client/game/bbr.dll/lifted-0017.c (650904B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_25050990(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x25050990u); 17 18 L_25050990: 19 PUSH32(esp, ebp); /* 0x25050990: push ebp */ 20 ebp = esp; /* 0x25050991: mov ebp, esp */ 21 eax = MEM32(ebp + 0x8); /* 0x25050993: mov eax, dword ptr [ebp + 8] */ 22 PUSH32(esp, esi); /* 0x25050996: push esi */ 23 esi = ecx; /* 0x25050997: mov esi, ecx */ 24 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 25 ecx = 0; /* 0x25050999: xor ecx, ecx */ 26 _cf = 0; 27 _flag_k = FK_TEST; 28 /* cmp eax, 0x2710u */ /* 0x2505099B: cmp eax, 0x2710 */ 29 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2710u); 30 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 31 _flag_k = FK_CMP; 32 MEM32(esi) = ecx; /* 0x250509A0: mov dword ptr [esi], ecx */ 33 MEM32(esi + 0x4) = eax; /* 0x250509A2: mov dword ptr [esi + 4], eax */ 34 MEM32(esi + 0x8) = ecx; /* 0x250509A5: mov dword ptr [esi + 8], ecx */ 35 MEM32(esi + 0xC) = ecx; /* 0x250509A8: mov dword ptr [esi + 0xc], ecx */ 36 if (CMP_GE(_flag_a, _flag_b)) goto L_250509B4; /* 0x250509AB: jge 0x250509b4 */ 37 L_250509AD: 38 MEM32(esi + 0x4) = 0x2710u; /* 0x250509AD: mov dword ptr [esi + 4], 0x2710 */ 39 L_250509B4: 40 ecx = esi; /* 0x250509B4: mov ecx, esi */ 41 RECOMP_ICALL(0x25050A40u); /* 0x250509B6: call 0x25050a40 */ /* not lifted */ 42 RECOMP_FLAGS_IN(); 43 eax = esi; /* 0x250509BB: mov eax, esi */ 44 esi = POP32_VAL(esp); /* 0x250509BD: pop esi */ 45 ebp = POP32_VAL(esp); /* 0x250509BE: pop ebp */ 46 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250509BF: ret 4 */ 47 RECOMP_REGS_OUT(); 48 } 49 50 void sub_250509D0(void) { 51 int _fpu_cmp = 0; 52 uint32_t _cf = 0; 53 int _df = 1; 54 uint32_t _flag_k = FK_NONE; 55 uint32_t _flag_a = 0, _flag_b = 0; 56 uint32_t _itail_tgt = 0; 57 RECOMP_REGS_LOCALS 58 RECOMP_ENTER(0x250509D0u); 59 60 L_250509D0: 61 PUSH32(esp, esi); /* 0x250509D0: push esi */ 62 esi = ecx; /* 0x250509D1: mov esi, ecx */ 63 RECOMP_ICALL(0x25050A10u); /* 0x250509D3: call 0x25050a10 */ /* not lifted */ 64 RECOMP_FLAGS_IN(); 65 eax = MEM32(esi); /* 0x250509D8: mov eax, dword ptr [esi] */ 66 PUSH32(esp, eax); /* 0x250509DA: push eax */ 67 RECOMP_ICALL(0x25137EECu); /* 0x250509DB: call 0x25137eec */ /* not lifted */ 68 RECOMP_FLAGS_IN(); 69 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 70 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 71 esp = esp + 4; /* 0x250509E0: add esp, 4 */ 72 _flag_k = FK_ADD; 73 MEM32(esi) = 0; /* 0x250509E3: mov dword ptr [esi], 0 */ 74 esi = POP32_VAL(esp); /* 0x250509E9: pop esi */ 75 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250509EA: ret */ 76 RECOMP_REGS_OUT(); 77 } 78 79 void sub_250509F0(void) { 80 int _fpu_cmp = 0; 81 uint32_t _cf = 0; 82 int _df = 1; 83 uint32_t _flag_k = FK_NONE; 84 uint32_t _flag_a = 0, _flag_b = 0; 85 uint32_t _itail_tgt = 0; 86 RECOMP_REGS_LOCALS 87 RECOMP_ENTER(0x250509F0u); 88 89 L_250509F0: 90 eax = MEM32(ecx + 0xC); /* 0x250509F0: mov eax, dword ptr [ecx + 0xc] */ 91 /* test eax, eax */ /* 0x250509F3: test eax, eax */ 92 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 93 _cf = 0; 94 _flag_k = FK_TEST; 95 if (TEST_NZ(_flag_a, _flag_b)) goto L_25050A05; /* 0x250509F5: jne 0x25050a05 */ 96 L_250509F7: 97 eax = MEM32(ecx); /* 0x250509F7: mov eax, dword ptr [ecx] */ 98 MEM32(ecx + 0xC) = eax; /* 0x250509F9: mov dword ptr [ecx + 0xc], eax */ 99 edx = MEM32(0x251C7648); /* 0x250509FC: mov edx, dword ptr [0x251c7648] */ 100 MEM32(ecx + 0x8) = edx; /* 0x25050A02: mov dword ptr [ecx + 8], edx */ 101 L_25050A05: 102 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050A05: ret */ 103 RECOMP_REGS_OUT(); 104 } 105 106 void sub_25050A10(void) { 107 int _fpu_cmp = 0; 108 uint32_t _cf = 0; 109 int _df = 1; 110 uint32_t _flag_k = FK_NONE; 111 uint32_t _flag_a = 0, _flag_b = 0; 112 uint32_t _itail_tgt = 0; 113 RECOMP_REGS_LOCALS 114 RECOMP_ENTER(0x25050A10u); 115 116 L_25050A10: 117 eax = MEM32(ecx + 0xC); /* 0x25050A10: mov eax, dword ptr [ecx + 0xc] */ 118 /* test eax, eax */ /* 0x25050A13: test eax, eax */ 119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 120 _cf = 0; 121 _flag_k = FK_TEST; 122 if (TEST_Z(_flag_a, _flag_b)) goto L_25050A1E; /* 0x25050A15: je 0x25050a1e */ 123 L_25050A17: 124 MEM32(ecx + 0xC) = 0; /* 0x25050A17: mov dword ptr [ecx + 0xc], 0 */ 125 L_25050A1E: 126 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050A1E: ret */ 127 RECOMP_REGS_OUT(); 128 } 129 130 void sub_25050A20(void) { 131 int _fpu_cmp = 0; 132 uint32_t _cf = 0; 133 int _df = 1; 134 uint32_t _flag_k = FK_NONE; 135 uint32_t _flag_a = 0, _flag_b = 0; 136 uint32_t _itail_tgt = 0; 137 RECOMP_REGS_LOCALS 138 RECOMP_ENTER(0x25050A20u); 139 140 L_25050A20: 141 PUSH32(esp, ebp); /* 0x25050A20: push ebp */ 142 ebp = esp; /* 0x25050A21: mov ebp, esp */ 143 PUSH32(esp, esi); /* 0x25050A23: push esi */ 144 esi = ecx; /* 0x25050A24: mov esi, ecx */ 145 eax = MEM32(esi + 0xC); /* 0x25050A26: mov eax, dword ptr [esi + 0xc] */ 146 /* test eax, eax */ /* 0x25050A29: test eax, eax */ 147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 148 _cf = 0; 149 _flag_k = FK_TEST; 150 if (TEST_NZ(_flag_a, _flag_b)) goto L_25050A32; /* 0x25050A2B: jne 0x25050a32 */ 151 L_25050A2D: 152 RECOMP_ICALL(0x250509F0u); /* 0x25050A2D: call 0x250509f0 */ /* not lifted */ 153 RECOMP_FLAGS_IN(); 154 L_25050A32: 155 eax = MEM32(esi + 0xC); /* 0x25050A32: mov eax, dword ptr [esi + 0xc] */ 156 ecx = MEM32(ebp + 0x8); /* 0x25050A35: mov ecx, dword ptr [ebp + 8] */ 157 eax = eax + ecx * 2; /* 0x25050A38: lea eax, [eax + ecx*2] */ 158 esi = POP32_VAL(esp); /* 0x25050A3B: pop esi */ 159 ebp = POP32_VAL(esp); /* 0x25050A3C: pop ebp */ 160 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050A3D: ret 4 */ 161 RECOMP_REGS_OUT(); 162 } 163 164 void sub_25050A40(void) { 165 int _fpu_cmp = 0; 166 uint32_t _cf = 0; 167 int _df = 1; 168 uint32_t _flag_k = FK_NONE; 169 uint32_t _flag_a = 0, _flag_b = 0; 170 uint32_t _itail_tgt = 0; 171 RECOMP_REGS_LOCALS 172 RECOMP_ENTER(0x25050A40u); 173 174 L_25050A40: 175 PUSH32(esp, esi); /* 0x25050A40: push esi */ 176 esi = ecx; /* 0x25050A41: mov esi, ecx */ 177 /* cmp MEM32(esi), 0 */ /* 0x25050A43: cmp dword ptr [esi], 0 */ 178 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 180 _flag_k = FK_CMP; 181 if (CMP_NE(_flag_a, _flag_b)) goto L_25050A58; /* 0x25050A46: jne 0x25050a58 */ 182 L_25050A48: 183 eax = MEM32(esi + 0x4); /* 0x25050A48: mov eax, dword ptr [esi + 4] */ 184 if (1u) _cf = (((eax) >> 31) & 1u); /* 0x25050A4B: shl eax, 1 */ 185 if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 186 eax = eax << 1u; /* 0x25050A4B: shl eax, 1 */ 187 PUSH32(esp, eax); /* 0x25050A4D: push eax */ 188 RECOMP_ICALL(0x251380D0u); /* 0x25050A4E: call 0x251380d0 */ /* not lifted */ 189 RECOMP_FLAGS_IN(); 190 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 191 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 192 esp = esp + 4; /* 0x25050A53: add esp, 4 */ 193 _flag_k = FK_ADD; 194 MEM32(esi) = eax; /* 0x25050A56: mov dword ptr [esi], eax */ 195 L_25050A58: 196 esi = POP32_VAL(esp); /* 0x25050A58: pop esi */ 197 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050A59: ret */ 198 RECOMP_REGS_OUT(); 199 } 200 201 void sub_25050A60(void) { 202 int _fpu_cmp = 0; 203 uint32_t _cf = 0; 204 int _df = 1; 205 uint32_t _flag_k = FK_NONE; 206 uint32_t _flag_a = 0, _flag_b = 0; 207 uint32_t _itail_tgt = 0; 208 RECOMP_REGS_LOCALS 209 RECOMP_ENTER(0x25050A60u); 210 211 L_25050A60: 212 PUSH32(esp, ebp); /* 0x25050A60: push ebp */ 213 ebp = esp; /* 0x25050A61: mov ebp, esp */ 214 edx = MEM32(ecx + 0x8); /* 0x25050A63: mov edx, dword ptr [ecx + 8] */ 215 eax = MEM32(0x251C7648); /* 0x25050A66: mov eax, dword ptr [0x251c7648] */ 216 ecx = MEM32(ebp + 0x8); /* 0x25050A6B: mov ecx, dword ptr [ebp + 8] */ 217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 219 eax = eax - edx; /* 0x25050A6E: sub eax, edx */ 220 _flag_k = FK_CMP; 221 /* cmp ecx, eax */ /* 0x25050A70: cmp ecx, eax */ 222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 224 _flag_k = FK_CMP; 225 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x25050A72: sbb eax, eax */ 226 eax = _sc ? 0xFFFFFFFFu : 0; 227 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 228 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 229 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 230 _cf = (eax) != 0; 231 eax = (uint32_t)(-(int32_t)eax); /* 0x25050A74: neg eax */ 232 _flag_k = FK_CMP; 233 ebp = POP32_VAL(esp); /* 0x25050A76: pop ebp */ 234 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050A77: ret 4 */ 235 RECOMP_REGS_OUT(); 236 } 237 238 void sub_25050A80(void) { 239 int _fpu_cmp = 0; 240 uint32_t _cf = 0; 241 int _df = 1; 242 uint32_t _flag_k = FK_NONE; 243 uint32_t _flag_a = 0, _flag_b = 0; 244 uint32_t _itail_tgt = 0; 245 RECOMP_REGS_LOCALS 246 RECOMP_ENTER(0x25050A80u); 247 248 L_25050A80: 249 _flag_a = (uint32_t)(MEM32(0x251C7648)); _flag_b = (uint32_t)(1); 250 MEM32(0x251C7648) = MEM32(0x251C7648) + 1; /* 0x25050A80: inc dword ptr [0x251c7648] */ 251 _flag_k = FK_INC; 252 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050A86: ret */ 253 RECOMP_REGS_OUT(); 254 } 255 256 void sub_25050A90(void) { 257 int _fpu_cmp = 0; 258 uint32_t _cf = 0; 259 int _df = 1; 260 uint32_t _flag_k = FK_NONE; 261 uint32_t _flag_a = 0, _flag_b = 0; 262 uint32_t _itail_tgt = 0; 263 RECOMP_REGS_LOCALS 264 RECOMP_ENTER(0x25050A90u); 265 266 L_25050A90: 267 eax = ecx; /* 0x25050A90: mov eax, ecx */ 268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 269 ecx = 0; /* 0x25050A92: xor ecx, ecx */ 270 _cf = 0; 271 _flag_k = FK_TEST; 272 MEM32(eax) = 0xFFFFFFFFu; /* 0x25050A94: mov dword ptr [eax], 0xffffffff */ 273 MEM32(eax + 0x4) = ecx; /* 0x25050A9A: mov dword ptr [eax + 4], ecx */ 274 MEM32(eax + 0x8) = ecx; /* 0x25050A9D: mov dword ptr [eax + 8], ecx */ 275 MEM32(eax + 0xC) = ecx; /* 0x25050AA0: mov dword ptr [eax + 0xc], ecx */ 276 MEM32(eax + 0x10) = ecx; /* 0x25050AA3: mov dword ptr [eax + 0x10], ecx */ 277 MEM32(eax + 0x14) = ecx; /* 0x25050AA6: mov dword ptr [eax + 0x14], ecx */ 278 MEM32(eax + 0x18) = ecx; /* 0x25050AA9: mov dword ptr [eax + 0x18], ecx */ 279 MEM32(eax + 0x1C) = ecx; /* 0x25050AAC: mov dword ptr [eax + 0x1c], ecx */ 280 MEM32(eax + 0x20) = ecx; /* 0x25050AAF: mov dword ptr [eax + 0x20], ecx */ 281 MEM32(eax + 0x24) = ecx; /* 0x25050AB2: mov dword ptr [eax + 0x24], ecx */ 282 MEM32(eax + 0x28) = ecx; /* 0x25050AB5: mov dword ptr [eax + 0x28], ecx */ 283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050AB8: ret */ 284 RECOMP_REGS_OUT(); 285 } 286 287 void sub_25050AC0(void) { 288 int _fpu_cmp = 0; 289 uint32_t _cf = 0; 290 int _df = 1; 291 uint32_t _flag_k = FK_NONE; 292 uint32_t _flag_a = 0, _flag_b = 0; 293 uint32_t _itail_tgt = 0; 294 RECOMP_REGS_LOCALS 295 RECOMP_ENTER(0x25050AC0u); 296 297 L_25050AC0: 298 goto L_25050AD0; /* 0x25050AC0: jmp 0x25050ad0 */ 299 L_25050AD0: 300 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 301 eax = 0; /* 0x25050AD0: xor eax, eax */ 302 _cf = 0; 303 _flag_k = FK_TEST; 304 MEM32(ecx + 0x20) = eax; /* 0x25050AD2: mov dword ptr [ecx + 0x20], eax */ 305 MEM32(ecx + 0x1C) = eax; /* 0x25050AD5: mov dword ptr [ecx + 0x1c], eax */ 306 MEM32(ecx + 0x28) = eax; /* 0x25050AD8: mov dword ptr [ecx + 0x28], eax */ 307 MEM32(ecx + 0x24) = eax; /* 0x25050ADB: mov dword ptr [ecx + 0x24], eax */ 308 MEM32(ecx + 0xC) = eax; /* 0x25050ADE: mov dword ptr [ecx + 0xc], eax */ 309 MEM32(ecx + 0x14) = eax; /* 0x25050AE1: mov dword ptr [ecx + 0x14], eax */ 310 MEM32(ecx + 0x10) = eax; /* 0x25050AE4: mov dword ptr [ecx + 0x10], eax */ 311 MEM32(ecx + 0x18) = eax; /* 0x25050AE7: mov dword ptr [ecx + 0x18], eax */ 312 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050AEA: ret */ 313 RECOMP_REGS_OUT(); 314 } 315 316 void sub_25050AD0(void) { 317 int _fpu_cmp = 0; 318 uint32_t _cf = 0; 319 int _df = 1; 320 uint32_t _flag_k = FK_NONE; 321 uint32_t _flag_a = 0, _flag_b = 0; 322 uint32_t _itail_tgt = 0; 323 RECOMP_REGS_LOCALS 324 RECOMP_ENTER(0x25050AD0u); 325 326 L_25050AD0: 327 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 328 eax = 0; /* 0x25050AD0: xor eax, eax */ 329 _cf = 0; 330 _flag_k = FK_TEST; 331 MEM32(ecx + 0x20) = eax; /* 0x25050AD2: mov dword ptr [ecx + 0x20], eax */ 332 MEM32(ecx + 0x1C) = eax; /* 0x25050AD5: mov dword ptr [ecx + 0x1c], eax */ 333 MEM32(ecx + 0x28) = eax; /* 0x25050AD8: mov dword ptr [ecx + 0x28], eax */ 334 MEM32(ecx + 0x24) = eax; /* 0x25050ADB: mov dword ptr [ecx + 0x24], eax */ 335 MEM32(ecx + 0xC) = eax; /* 0x25050ADE: mov dword ptr [ecx + 0xc], eax */ 336 MEM32(ecx + 0x14) = eax; /* 0x25050AE1: mov dword ptr [ecx + 0x14], eax */ 337 MEM32(ecx + 0x10) = eax; /* 0x25050AE4: mov dword ptr [ecx + 0x10], eax */ 338 MEM32(ecx + 0x18) = eax; /* 0x25050AE7: mov dword ptr [ecx + 0x18], eax */ 339 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050AEA: ret */ 340 RECOMP_REGS_OUT(); 341 } 342 343 void sub_25050AF0(void) { 344 int _fpu_cmp = 0; 345 uint32_t _cf = 0; 346 int _df = 1; 347 uint32_t _flag_k = FK_NONE; 348 uint32_t _flag_a = 0, _flag_b = 0; 349 uint32_t _itail_tgt = 0; 350 RECOMP_REGS_LOCALS 351 RECOMP_ENTER(0x25050AF0u); 352 353 L_25050AF0: 354 eax = MEM32(ecx + 0x2C); /* 0x25050AF0: mov eax, dword ptr [ecx + 0x2c] */ 355 SET_LO8(edx, MEM8(eax + 0x54)); /* 0x25050AF3: mov dl, byte ptr [eax + 0x54] */ 356 /* test LO8(edx), LO8(edx) */ /* 0x25050AF6: test dl, dl */ 357 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 358 _cf = 0; 359 _flag_k = FK_NARROW(FK_TEST, 24); 360 if (TEST_Z(_flag_a, _flag_b)) goto L_25050B45; /* 0x25050AF8: je 0x25050b45 */ 361 L_25050AFA: 362 eax = MEM32(ecx + 0x28); /* 0x25050AFA: mov eax, dword ptr [ecx + 0x28] */ 363 /* test eax, eax */ /* 0x25050AFD: test eax, eax */ 364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 365 _cf = 0; 366 _flag_k = FK_TEST; 367 PUSH32(esp, 0); /* 0x25050AFF: push 0 */ 368 if (TEST_LE(_flag_a, _flag_b)) goto L_25050B2C; /* 0x25050B01: jle 0x25050b2c */ 369 L_25050B03: 370 edx = MEM32(ecx + 0x18); /* 0x25050B03: mov edx, dword ptr [ecx + 0x18] */ 371 PUSH32(esp, eax); /* 0x25050B06: push eax */ 372 eax = MEM32(ecx + 0x14); /* 0x25050B07: mov eax, dword ptr [ecx + 0x14] */ 373 eax = MEM32(eax); /* 0x25050B0A: mov eax, dword ptr [eax] */ 374 edx = eax + edx * 2; /* 0x25050B0C: lea edx, [eax + edx*2] */ 375 eax = MEM32(ecx + 0x20); /* 0x25050B0F: mov eax, dword ptr [ecx + 0x20] */ 376 PUSH32(esp, edx); /* 0x25050B12: push edx */ 377 edx = MEM32(ecx + 0x10); /* 0x25050B13: mov edx, dword ptr [ecx + 0x10] */ 378 PUSH32(esp, eax); /* 0x25050B16: push eax */ 379 eax = MEM32(ecx + 0xC); /* 0x25050B17: mov eax, dword ptr [ecx + 0xc] */ 380 ecx = MEM32(eax); /* 0x25050B1A: mov ecx, dword ptr [eax] */ 381 PUSH32(esp, edx); /* 0x25050B1C: push edx */ 382 PUSH32(esp, ecx); /* 0x25050B1D: push ecx */ 383 ecx = MEM32(0x25238B58); /* 0x25050B1E: mov ecx, dword ptr [0x25238b58] */ 384 RECOMP_ICALL(0x250E6AD0u); /* 0x25050B24: call 0x250e6ad0 */ /* not lifted */ 385 RECOMP_FLAGS_IN(); 386 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050B29: ret 4 */ 387 L_25050B2C: 388 edx = MEM32(ecx + 0x20); /* 0x25050B2C: mov edx, dword ptr [ecx + 0x20] */ 389 eax = MEM32(ecx + 0x10); /* 0x25050B2F: mov eax, dword ptr [ecx + 0x10] */ 390 ecx = MEM32(ecx + 0xC); /* 0x25050B32: mov ecx, dword ptr [ecx + 0xc] */ 391 PUSH32(esp, edx); /* 0x25050B35: push edx */ 392 edx = MEM32(ecx); /* 0x25050B36: mov edx, dword ptr [ecx] */ 393 ecx = MEM32(0x25238B58); /* 0x25050B38: mov ecx, dword ptr [0x25238b58] */ 394 PUSH32(esp, eax); /* 0x25050B3E: push eax */ 395 PUSH32(esp, edx); /* 0x25050B3F: push edx */ 396 RECOMP_ICALL(0x250E7750u); /* 0x25050B40: call 0x250e7750 */ /* not lifted */ 397 RECOMP_FLAGS_IN(); 398 L_25050B45: 399 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050B45: ret 4 */ 400 RECOMP_REGS_OUT(); 401 } 402 403 void sub_25050B50(void) { 404 int _fpu_cmp = 0; 405 uint32_t _cf = 0; 406 int _df = 1; 407 uint32_t _flag_k = FK_NONE; 408 uint32_t _flag_a = 0, _flag_b = 0; 409 uint32_t _itail_tgt = 0; 410 RECOMP_REGS_LOCALS 411 RECOMP_ENTER(0x25050B50u); 412 413 L_25050B50: 414 PUSH32(esp, ebp); /* 0x25050B50: push ebp */ 415 ebp = esp; /* 0x25050B51: mov ebp, esp */ 416 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050B53: push -1 */ 417 PUSH32(esp, 0x25146F28u); /* 0x25050B55: push 0x25146f28 */ 418 eax = MEM32(FS_BASE + (0)); /* 0x25050B5A: mov eax, dword ptr fs:[0] */ 419 PUSH32(esp, eax); /* 0x25050B60: push eax */ 420 MEM32(FS_BASE + (0)) = esp; /* 0x25050B61: mov dword ptr fs:[0], esp */ 421 PUSH32(esp, ecx); /* 0x25050B68: push ecx */ 422 PUSH32(esp, esi); /* 0x25050B69: push esi */ 423 esi = ecx; /* 0x25050B6A: mov esi, ecx */ 424 MEM32(ebp + (-0x10)) = esi; /* 0x25050B6C: mov dword ptr [ebp - 0x10], esi */ 425 MEM32(esi) = 0x25153D98u; /* 0x25050B6F: mov dword ptr [esi], 0x25153d98 */ 426 ecx = MEM32(esi + 0x8); /* 0x25050B75: mov ecx, dword ptr [esi + 8] */ 427 MEM32(ebp + (-0x4)) = 0; /* 0x25050B78: mov dword ptr [ebp - 4], 0 */ 428 RECOMP_ICALL(0x250D2C70u); /* 0x25050B7F: call 0x250d2c70 */ /* not lifted */ 429 RECOMP_FLAGS_IN(); 430 ecx = esi; /* 0x25050B84: mov ecx, esi */ 431 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25050B86: mov dword ptr [ebp - 4], 0xffffffff */ 432 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x25050B8D: call dword ptr [0x251513fc] */ 433 RECOMP_FLAGS_IN(); 434 ecx = MEM32(ebp + (-0xC)); /* 0x25050B93: mov ecx, dword ptr [ebp - 0xc] */ 435 esi = POP32_VAL(esp); /* 0x25050B96: pop esi */ 436 MEM32(FS_BASE + (0)) = ecx; /* 0x25050B97: mov dword ptr fs:[0], ecx */ 437 esp = ebp; /* 0x25050B9E: mov esp, ebp */ 438 ebp = POP32_VAL(esp); /* 0x25050BA0: pop ebp */ 439 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050BA1: ret */ 440 RECOMP_REGS_OUT(); 441 } 442 443 void sub_25050BB0(void) { 444 int _fpu_cmp = 0; 445 uint32_t _cf = 0; 446 int _df = 1; 447 uint32_t _flag_k = FK_NONE; 448 uint32_t _flag_a = 0, _flag_b = 0; 449 uint32_t _itail_tgt = 0; 450 RECOMP_REGS_LOCALS 451 RECOMP_ENTER(0x25050BB0u); 452 453 L_25050BB0: 454 PUSH32(esp, ebp); /* 0x25050BB0: push ebp */ 455 ebp = esp; /* 0x25050BB1: mov ebp, esp */ 456 PUSH32(esp, esi); /* 0x25050BB3: push esi */ 457 esi = ecx; /* 0x25050BB4: mov esi, ecx */ 458 RECOMP_ICALL(0x25050B50u); /* 0x25050BB6: call 0x25050b50 */ /* not lifted */ 459 RECOMP_FLAGS_IN(); 460 /* test MEM8(ebp + 0x8), 1 */ /* 0x25050BBB: test byte ptr [ebp + 8], 1 */ 461 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 462 _cf = 0; 463 _flag_k = FK_NARROW(FK_TEST, 24); 464 if (TEST_Z(_flag_a, _flag_b)) goto L_25050BCA; /* 0x25050BBF: je 0x25050bca */ 465 L_25050BC1: 466 PUSH32(esp, esi); /* 0x25050BC1: push esi */ 467 RECOMP_ICALL(0x25137EECu); /* 0x25050BC2: call 0x25137eec */ /* not lifted */ 468 RECOMP_FLAGS_IN(); 469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 471 esp = esp + 4; /* 0x25050BC7: add esp, 4 */ 472 _flag_k = FK_ADD; 473 L_25050BCA: 474 eax = esi; /* 0x25050BCA: mov eax, esi */ 475 esi = POP32_VAL(esp); /* 0x25050BCC: pop esi */ 476 ebp = POP32_VAL(esp); /* 0x25050BCD: pop ebp */ 477 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050BCE: ret 4 */ 478 RECOMP_REGS_OUT(); 479 } 480 481 void sub_25050BE0(void) { 482 int _fpu_cmp = 0; 483 uint32_t _cf = 0; 484 int _df = 1; 485 uint32_t _flag_k = FK_NONE; 486 uint32_t _flag_a = 0, _flag_b = 0; 487 uint32_t _itail_tgt = 0; 488 RECOMP_REGS_LOCALS 489 RECOMP_ENTER(0x25050BE0u); 490 491 L_25050BE0: 492 PUSH32(esp, ebp); /* 0x25050BE0: push ebp */ 493 ebp = esp; /* 0x25050BE1: mov ebp, esp */ 494 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050BE3: push -1 */ 495 PUSH32(esp, 0x25146F48u); /* 0x25050BE5: push 0x25146f48 */ 496 eax = MEM32(FS_BASE + (0)); /* 0x25050BEA: mov eax, dword ptr fs:[0] */ 497 PUSH32(esp, eax); /* 0x25050BF0: push eax */ 498 MEM32(FS_BASE + (0)) = esp; /* 0x25050BF1: mov dword ptr fs:[0], esp */ 499 PUSH32(esp, ecx); /* 0x25050BF8: push ecx */ 500 PUSH32(esp, esi); /* 0x25050BF9: push esi */ 501 esi = ecx; /* 0x25050BFA: mov esi, ecx */ 502 PUSH32(esp, edi); /* 0x25050BFC: push edi */ 503 MEM32(ebp + (-0x10)) = esi; /* 0x25050BFD: mov dword ptr [ebp - 0x10], esi */ 504 RECOMP_ICALL(MEM32(0x25151400)); /* 0x25050C00: call dword ptr [0x25151400] */ 505 RECOMP_FLAGS_IN(); 506 edi = MEM32(ebp + 0x8); /* 0x25050C06: mov edi, dword ptr [ebp + 8] */ 507 MEM32(esi) = 0x25153D98u; /* 0x25050C09: mov dword ptr [esi], 0x25153d98 */ 508 ecx = MEM32(edi + 0x28); /* 0x25050C0F: mov ecx, dword ptr [edi + 0x28] */ 509 MEM32(ebp + (-0x4)) = 0; /* 0x25050C12: mov dword ptr [ebp - 4], 0 */ 510 RECOMP_ICALL(0x250D2C50u); /* 0x25050C19: call 0x250d2c50 */ /* not lifted */ 511 RECOMP_FLAGS_IN(); 512 eax = MEM32(edi + 0x28); /* 0x25050C1E: mov eax, dword ptr [edi + 0x28] */ 513 ecx = MEM32(ebp + (-0xC)); /* 0x25050C21: mov ecx, dword ptr [ebp - 0xc] */ 514 MEM32(esi + 0x8) = eax; /* 0x25050C24: mov dword ptr [esi + 8], eax */ 515 edi = POP32_VAL(esp); /* 0x25050C27: pop edi */ 516 eax = esi; /* 0x25050C28: mov eax, esi */ 517 esi = POP32_VAL(esp); /* 0x25050C2A: pop esi */ 518 MEM32(FS_BASE + (0)) = ecx; /* 0x25050C2B: mov dword ptr fs:[0], ecx */ 519 esp = ebp; /* 0x25050C32: mov esp, ebp */ 520 ebp = POP32_VAL(esp); /* 0x25050C34: pop ebp */ 521 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050C35: ret 4 */ 522 RECOMP_REGS_OUT(); 523 } 524 525 void sub_25050C40(void) { 526 int _fpu_cmp = 0; 527 uint32_t _cf = 0; 528 int _df = 1; 529 uint32_t _flag_k = FK_NONE; 530 uint32_t _flag_a = 0, _flag_b = 0; 531 uint32_t _itail_tgt = 0; 532 RECOMP_REGS_LOCALS 533 RECOMP_ENTER(0x25050C40u); 534 535 L_25050C40: 536 PUSH32(esp, ebp); /* 0x25050C40: push ebp */ 537 ebp = esp; /* 0x25050C41: mov ebp, esp */ 538 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050C43: push -1 */ 539 PUSH32(esp, 0x25146F68u); /* 0x25050C45: push 0x25146f68 */ 540 eax = MEM32(FS_BASE + (0)); /* 0x25050C4A: mov eax, dword ptr fs:[0] */ 541 PUSH32(esp, eax); /* 0x25050C50: push eax */ 542 MEM32(FS_BASE + (0)) = esp; /* 0x25050C51: mov dword ptr fs:[0], esp */ 543 PUSH32(esp, ecx); /* 0x25050C58: push ecx */ 544 PUSH32(esp, esi); /* 0x25050C59: push esi */ 545 PUSH32(esp, edi); /* 0x25050C5A: push edi */ 546 edi = MEM32(ebp + 0x8); /* 0x25050C5B: mov edi, dword ptr [ebp + 8] */ 547 esi = ecx; /* 0x25050C5E: mov esi, ecx */ 548 PUSH32(esp, edi); /* 0x25050C60: push edi */ 549 MEM32(ebp + (-0x10)) = esi; /* 0x25050C61: mov dword ptr [ebp - 0x10], esi */ 550 RECOMP_ICALL(0x250EC4B0u); /* 0x25050C64: call 0x250ec4b0 */ /* not lifted */ 551 RECOMP_FLAGS_IN(); 552 ecx = edi; /* 0x25050C69: mov ecx, edi */ 553 MEM32(ebp + (-0x4)) = 0; /* 0x25050C6B: mov dword ptr [ebp - 4], 0 */ 554 MEM32(esi) = 0x25153D98u; /* 0x25050C72: mov dword ptr [esi], 0x25153d98 */ 555 RECOMP_ICALL(MEM32(0x251513EC)); /* 0x25050C78: call dword ptr [0x251513ec] */ 556 RECOMP_FLAGS_IN(); 557 PUSH32(esp, eax); /* 0x25050C7E: push eax */ 558 ecx = esi; /* 0x25050C7F: mov ecx, esi */ 559 RECOMP_ICALL(0x25050E00u); /* 0x25050C81: call 0x25050e00 */ /* not lifted */ 560 RECOMP_FLAGS_IN(); 561 ecx = MEM32(ebp + (-0xC)); /* 0x25050C86: mov ecx, dword ptr [ebp - 0xc] */ 562 MEM32(esi + 0x8) = eax; /* 0x25050C89: mov dword ptr [esi + 8], eax */ 563 edi = POP32_VAL(esp); /* 0x25050C8C: pop edi */ 564 eax = esi; /* 0x25050C8D: mov eax, esi */ 565 esi = POP32_VAL(esp); /* 0x25050C8F: pop esi */ 566 MEM32(FS_BASE + (0)) = ecx; /* 0x25050C90: mov dword ptr fs:[0], ecx */ 567 esp = ebp; /* 0x25050C97: mov esp, ebp */ 568 ebp = POP32_VAL(esp); /* 0x25050C99: pop ebp */ 569 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050C9A: ret 4 */ 570 RECOMP_REGS_OUT(); 571 } 572 573 void sub_25050CA0(void) { 574 int _fpu_cmp = 0; 575 uint32_t _cf = 0; 576 int _df = 1; 577 uint32_t _flag_k = FK_NONE; 578 uint32_t _flag_a = 0, _flag_b = 0; 579 uint32_t _itail_tgt = 0; 580 RECOMP_REGS_LOCALS 581 RECOMP_ENTER(0x25050CA0u); 582 583 L_25050CA0: 584 PUSH32(esp, ebp); /* 0x25050CA0: push ebp */ 585 ebp = esp; /* 0x25050CA1: mov ebp, esp */ 586 PUSH32(esp, esi); /* 0x25050CA3: push esi */ 587 PUSH32(esp, edi); /* 0x25050CA4: push edi */ 588 edi = MEM32(ebp + 0x8); /* 0x25050CA5: mov edi, dword ptr [ebp + 8] */ 589 esi = ecx; /* 0x25050CA8: mov esi, ecx */ 590 PUSH32(esp, edi); /* 0x25050CAA: push edi */ 591 RECOMP_ICALL(0x2510AA60u); /* 0x25050CAB: call 0x2510aa60 */ /* not lifted */ 592 RECOMP_FLAGS_IN(); 593 eax = MEM32(esi + 0x8); /* 0x25050CB0: mov eax, dword ptr [esi + 8] */ 594 PUSH32(esp, eax); /* 0x25050CB3: push eax */ 595 ecx = edi; /* 0x25050CB4: mov ecx, edi */ 596 RECOMP_ICALL(MEM32(0x251513EC)); /* 0x25050CB6: call dword ptr [0x251513ec] */ 597 RECOMP_FLAGS_IN(); 598 PUSH32(esp, eax); /* 0x25050CBC: push eax */ 599 ecx = esi; /* 0x25050CBD: mov ecx, esi */ 600 RECOMP_ICALL(0x25050CD0u); /* 0x25050CBF: call 0x25050cd0 */ /* not lifted */ 601 RECOMP_FLAGS_IN(); 602 edi = POP32_VAL(esp); /* 0x25050CC4: pop edi */ 603 esi = POP32_VAL(esp); /* 0x25050CC5: pop esi */ 604 ebp = POP32_VAL(esp); /* 0x25050CC6: pop ebp */ 605 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050CC7: ret 4 */ 606 RECOMP_REGS_OUT(); 607 } 608 609 void sub_25050CD0(void) { 610 int _fpu_cmp = 0; 611 uint32_t _cf = 0; 612 int _df = 1; 613 uint32_t _flag_k = FK_NONE; 614 uint32_t _flag_a = 0, _flag_b = 0; 615 uint32_t _itail_tgt = 0; 616 RECOMP_REGS_LOCALS 617 RECOMP_ENTER(0x25050CD0u); 618 619 L_25050CD0: 620 PUSH32(esp, ebp); /* 0x25050CD0: push ebp */ 621 ebp = esp; /* 0x25050CD1: mov ebp, esp */ 622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x84u); 623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 624 esp = esp - 0x84u; /* 0x25050CD3: sub esp, 0x84 */ 625 _flag_k = FK_CMP; 626 ecx = MEM32(ebp + 0xC); /* 0x25050CD9: mov ecx, dword ptr [ebp + 0xc] */ 627 edx = MEM32(ecx); /* 0x25050CDC: mov edx, dword ptr [ecx] */ 628 ecx = MEM32(0x25238B58); /* 0x25050CDE: mov ecx, dword ptr [0x25238b58] */ 629 PUSH32(esp, ebx); /* 0x25050CE4: push ebx */ 630 PUSH32(esp, esi); /* 0x25050CE5: push esi */ 631 PUSH32(esp, edi); /* 0x25050CE6: push edi */ 632 PUSH32(esp, 0); /* 0x25050CE7: push 0 */ 633 PUSH32(esp, 0x811u); /* 0x25050CE9: push 0x811 */ 634 eax = ebp + (-0x84); /* 0x25050CEE: lea eax, [ebp - 0x84] */ 635 PUSH32(esp, eax); /* 0x25050CF4: push eax */ 636 PUSH32(esp, 0); /* 0x25050CF5: push 0 */ 637 PUSH32(esp, edx); /* 0x25050CF7: push edx */ 638 MEM32(ebp + (-0x84)) = 0x7Cu; /* 0x25050CF8: mov dword ptr [ebp - 0x84], 0x7c */ 639 RECOMP_ICALL(0x250D1A00u); /* 0x25050D02: call 0x250d1a00 */ /* not lifted */ 640 RECOMP_FLAGS_IN(); 641 eax = MEM32(ebp + (-0x80)); /* 0x25050D07: mov eax, dword ptr [ebp - 0x80] */ 642 esi = MEM32(ebp + 0x8); /* 0x25050D0A: mov esi, dword ptr [ebp + 8] */ 643 edi = MEM32(0x251513F8); /* 0x25050D0D: mov edi, dword ptr [0x251513f8] */ 644 PUSH32(esp, eax); /* 0x25050D13: push eax */ 645 PUSH32(esp, 0x251B2FCCu); /* 0x25050D14: push 0x251b2fcc */ 646 ecx = esi; /* 0x25050D19: mov ecx, esi */ 647 RECOMP_ICALL(edi); /* 0x25050D1B: call edi */ 648 RECOMP_FLAGS_IN(); 649 ecx = MEM32(ebp + (-0x78)); /* 0x25050D1D: mov ecx, dword ptr [ebp - 0x78] */ 650 PUSH32(esp, ecx); /* 0x25050D20: push ecx */ 651 PUSH32(esp, 0x251B2FC4u); /* 0x25050D21: push 0x251b2fc4 */ 652 ecx = esi; /* 0x25050D26: mov ecx, esi */ 653 RECOMP_ICALL(edi); /* 0x25050D28: call edi */ 654 RECOMP_FLAGS_IN(); 655 edx = MEM32(ebp + (-0x7C)); /* 0x25050D2A: mov edx, dword ptr [ebp - 0x7c] */ 656 PUSH32(esp, edx); /* 0x25050D2D: push edx */ 657 PUSH32(esp, 0x251B2FBCu); /* 0x25050D2E: push 0x251b2fbc */ 658 ecx = esi; /* 0x25050D33: mov ecx, esi */ 659 RECOMP_ICALL(edi); /* 0x25050D35: call edi */ 660 RECOMP_FLAGS_IN(); 661 PUSH32(esp, 1); /* 0x25050D37: push 1 */ 662 PUSH32(esp, 1); /* 0x25050D39: push 1 */ 663 PUSH32(esp, 0x20u); /* 0x25050D3B: push 0x20 */ 664 eax = ebp + (-0x3C); /* 0x25050D3D: lea eax, [ebp - 0x3c] */ 665 PUSH32(esp, eax); /* 0x25050D40: push eax */ 666 PUSH32(esp, 0x251B2FB0u); /* 0x25050D41: push 0x251b2fb0 */ 667 ecx = esi; /* 0x25050D46: mov ecx, esi */ 668 RECOMP_ICALL(MEM32(0x251513F4)); /* 0x25050D48: call dword ptr [0x251513f4] */ 669 RECOMP_FLAGS_IN(); 670 ecx = MEM32(ebp + (-0x30)); /* 0x25050D4E: mov ecx, dword ptr [ebp - 0x30] */ 671 ebx = ecx + 0x7; /* 0x25050D51: lea ebx, [ecx + 7] */ 672 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x25050D54: shr ebx, 3 */ 673 if (3u) { _flag_a = recomp_flags_pack((ebx >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 674 ebx = ebx >> 3u; /* 0x25050D54: shr ebx, 3 */ 675 edx = ebx; /* 0x25050D57: mov edx, ebx */ 676 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(ebp + (-0x7C))); /* 0x25050D59: imul edx, dword ptr [ebp - 0x7c] */ 677 edx = (uint32_t)((int32_t)edx * (int32_t)MEM32(ebp + (-0x78))); /* 0x25050D5D: imul edx, dword ptr [ebp - 0x78] */ 678 PUSH32(esp, edx); /* 0x25050D61: push edx */ 679 RECOMP_ICALL(0x251380D0u); /* 0x25050D62: call 0x251380d0 */ /* not lifted */ 680 RECOMP_FLAGS_IN(); 681 ecx = MEM32(ebp + (-0x7C)); /* 0x25050D67: mov ecx, dword ptr [ebp - 0x7c] */ 682 edi = eax; /* 0x25050D6A: mov edi, eax */ 683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 685 esp = esp + 4; /* 0x25050D6C: add esp, 4 */ 686 _flag_k = FK_ADD; 687 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 688 eax = 0; /* 0x25050D6F: xor eax, eax */ 689 _cf = 0; 690 _flag_k = FK_TEST; 691 /* test ecx, ecx */ /* 0x25050D71: test ecx, ecx */ 692 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 693 _cf = 0; 694 _flag_k = FK_TEST; 695 MEM32(ebp + (-0x4)) = edi; /* 0x25050D73: mov dword ptr [ebp - 4], edi */ 696 if (TEST_Z(_flag_a, _flag_b)) goto L_25050DB8; /* 0x25050D76: jbe 0x25050db8 */ 697 L_25050D78: 698 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 699 edi = 0; /* 0x25050D78: xor edi, edi */ 700 _cf = 0; 701 _flag_k = FK_TEST; 702 MEM32(ebp + (-0x8)) = edi; /* 0x25050D7A: mov dword ptr [ebp - 8], edi */ 703 L_25050D7D: 704 edx = MEM32(ebp + (-0x78)); /* 0x25050D7D: mov edx, dword ptr [ebp - 0x78] */ 705 esi = MEM32(ebp + (-0x74)); /* 0x25050D80: mov esi, dword ptr [ebp - 0x74] */ 706 edi = (uint32_t)((int32_t)edi * (int32_t)edx); /* 0x25050D83: imul edi, edx */ 707 esi = (uint32_t)((int32_t)esi * (int32_t)eax); /* 0x25050D86: imul esi, eax */ 708 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x60))); 709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 710 esi = esi + MEM32(ebp + (-0x60)); /* 0x25050D89: add esi, dword ptr [ebp - 0x60] */ 711 _flag_k = FK_ADD; 712 ecx = ebx; /* 0x25050D8C: mov ecx, ebx */ 713 ecx = (uint32_t)((int32_t)ecx * (int32_t)edx); /* 0x25050D8E: imul ecx, edx */ 714 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4))); 715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 716 edi = edi + MEM32(ebp + (-0x4)); /* 0x25050D91: add edi, dword ptr [ebp - 4] */ 717 _flag_k = FK_ADD; 718 edx = ecx; /* 0x25050D94: mov edx, ecx */ 719 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x25050D96: shr ecx, 2 */ 720 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 721 ecx = ecx >> 2u; /* 0x25050D96: shr ecx, 2 */ 722 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25050D99: 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; } 723 ecx = edx; /* 0x25050D9B: mov ecx, edx */ 724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 725 ecx = ecx & 3; /* 0x25050D9D: and ecx, 3 */ 726 _cf = 0; 727 _flag_k = FK_TEST; 728 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x25050DA0: 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; } 729 edi = MEM32(ebp + (-0x8)); /* 0x25050DA2: mov edi, dword ptr [ebp - 8] */ 730 ecx = MEM32(ebp + (-0x7C)); /* 0x25050DA5: mov ecx, dword ptr [ebp - 0x7c] */ 731 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 732 eax = eax + 1; /* 0x25050DA8: inc eax */ 733 _flag_k = FK_INC; 734 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 735 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 736 edi = edi + ebx; /* 0x25050DA9: add edi, ebx */ 737 _flag_k = FK_ADD; 738 /* cmp eax, ecx */ /* 0x25050DAB: cmp eax, ecx */ 739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 741 _flag_k = FK_CMP; 742 MEM32(ebp + (-0x8)) = edi; /* 0x25050DAD: mov dword ptr [ebp - 8], edi */ 743 RECOMP_BACKEDGE(); 744 if (CMP_B(_flag_a, _flag_b)) goto L_25050D7D; /* 0x25050DB0: jb 0x25050d7d */ 745 L_25050DB2: 746 edi = MEM32(ebp + (-0x4)); /* 0x25050DB2: mov edi, dword ptr [ebp - 4] */ 747 esi = MEM32(ebp + 0x8); /* 0x25050DB5: mov esi, dword ptr [ebp + 8] */ 748 L_25050DB8: 749 ebx = (uint32_t)((int32_t)ebx * (int32_t)ecx); /* 0x25050DB8: imul ebx, ecx */ 750 ebx = (uint32_t)((int32_t)ebx * (int32_t)MEM32(ebp + (-0x78))); /* 0x25050DBB: imul ebx, dword ptr [ebp - 0x78] */ 751 PUSH32(esp, 1); /* 0x25050DBF: push 1 */ 752 PUSH32(esp, 1); /* 0x25050DC1: push 1 */ 753 PUSH32(esp, ebx); /* 0x25050DC3: push ebx */ 754 PUSH32(esp, edi); /* 0x25050DC4: push edi */ 755 PUSH32(esp, 0x251B2FA8u); /* 0x25050DC5: push 0x251b2fa8 */ 756 ecx = esi; /* 0x25050DCA: mov ecx, esi */ 757 RECOMP_ICALL(MEM32(0x251513F4)); /* 0x25050DCC: call dword ptr [0x251513f4] */ 758 RECOMP_FLAGS_IN(); 759 PUSH32(esp, edi); /* 0x25050DD2: push edi */ 760 RECOMP_ICALL(0x25137EECu); /* 0x25050DD3: call 0x25137eec */ /* not lifted */ 761 RECOMP_FLAGS_IN(); 762 eax = MEM32(ebp + 0xC); /* 0x25050DD8: mov eax, dword ptr [ebp + 0xc] */ 763 ecx = MEM32(eax); /* 0x25050DDB: mov ecx, dword ptr [eax] */ 764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 766 esp = esp + 4; /* 0x25050DDD: add esp, 4 */ 767 _flag_k = FK_ADD; 768 PUSH32(esp, 0); /* 0x25050DE0: push 0 */ 769 PUSH32(esp, ecx); /* 0x25050DE2: push ecx */ 770 ecx = MEM32(0x25238B58); /* 0x25050DE3: mov ecx, dword ptr [0x25238b58] */ 771 RECOMP_ICALL(0x250D1B20u); /* 0x25050DE9: call 0x250d1b20 */ /* not lifted */ 772 RECOMP_FLAGS_IN(); 773 edi = POP32_VAL(esp); /* 0x25050DEE: pop edi */ 774 esi = POP32_VAL(esp); /* 0x25050DEF: pop esi */ 775 ebx = POP32_VAL(esp); /* 0x25050DF0: pop ebx */ 776 esp = ebp; /* 0x25050DF1: mov esp, ebp */ 777 ebp = POP32_VAL(esp); /* 0x25050DF3: pop ebp */ 778 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25050DF4: ret 8 */ 779 RECOMP_REGS_OUT(); 780 } 781 782 void sub_25050E00(void) { 783 int _fpu_cmp = 0; 784 uint32_t _cf = 0; 785 int _df = 1; 786 uint32_t _flag_k = FK_NONE; 787 uint32_t _flag_a = 0, _flag_b = 0; 788 uint32_t _itail_tgt = 0; 789 RECOMP_REGS_LOCALS 790 RECOMP_ENTER(0x25050E00u); 791 792 L_25050E00: 793 PUSH32(esp, ebp); /* 0x25050E00: push ebp */ 794 ebp = esp; /* 0x25050E01: mov ebp, esp */ 795 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050E03: push -1 */ 796 PUSH32(esp, 0x25146F8Bu); /* 0x25050E05: push 0x25146f8b */ 797 eax = MEM32(FS_BASE + (0)); /* 0x25050E0A: mov eax, dword ptr fs:[0] */ 798 PUSH32(esp, eax); /* 0x25050E10: push eax */ 799 MEM32(FS_BASE + (0)) = esp; /* 0x25050E11: mov dword ptr fs:[0], esp */ 800 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 802 esp = esp - 0x20u; /* 0x25050E18: sub esp, 0x20 */ 803 _flag_k = FK_CMP; 804 PUSH32(esp, esi); /* 0x25050E1B: push esi */ 805 esi = MEM32(ebp + 0x8); /* 0x25050E1C: mov esi, dword ptr [ebp + 8] */ 806 PUSH32(esp, edi); /* 0x25050E1F: push edi */ 807 edi = MEM32(0x251513E8); /* 0x25050E20: mov edi, dword ptr [0x251513e8] */ 808 PUSH32(esp, 0); /* 0x25050E26: push 0 */ 809 eax = ebp + (-0x10); /* 0x25050E28: lea eax, [ebp - 0x10] */ 810 PUSH32(esp, eax); /* 0x25050E2B: push eax */ 811 PUSH32(esp, 0x251B2FCCu); /* 0x25050E2C: push 0x251b2fcc */ 812 ecx = esi; /* 0x25050E31: mov ecx, esi */ 813 RECOMP_ICALL(edi); /* 0x25050E33: call edi */ 814 RECOMP_FLAGS_IN(); 815 /* test eax, eax */ /* 0x25050E35: test eax, eax */ 816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 817 _cf = 0; 818 _flag_k = FK_TEST; 819 if (TEST_NZ(_flag_a, _flag_b)) goto L_25050F55; /* 0x25050E37: jne 0x25050f55 */ 820 L_25050E3D: 821 PUSH32(esp, eax); /* 0x25050E3D: push eax */ 822 ecx = ebp + (-0x10); /* 0x25050E3E: lea ecx, [ebp - 0x10] */ 823 PUSH32(esp, ecx); /* 0x25050E41: push ecx */ 824 PUSH32(esp, 0x251B2FC4u); /* 0x25050E42: push 0x251b2fc4 */ 825 ecx = esi; /* 0x25050E47: mov ecx, esi */ 826 RECOMP_ICALL(edi); /* 0x25050E49: call edi */ 827 RECOMP_FLAGS_IN(); 828 /* test eax, eax */ /* 0x25050E4B: test eax, eax */ 829 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 830 _cf = 0; 831 _flag_k = FK_TEST; 832 if (TEST_NZ(_flag_a, _flag_b)) goto L_25050F55; /* 0x25050E4D: jne 0x25050f55 */ 833 L_25050E53: 834 PUSH32(esp, eax); /* 0x25050E53: push eax */ 835 edx = ebp + (-0x14); /* 0x25050E54: lea edx, [ebp - 0x14] */ 836 PUSH32(esp, edx); /* 0x25050E57: push edx */ 837 PUSH32(esp, 0x251B2FBCu); /* 0x25050E58: push 0x251b2fbc */ 838 ecx = esi; /* 0x25050E5D: mov ecx, esi */ 839 RECOMP_ICALL(edi); /* 0x25050E5F: call edi */ 840 RECOMP_FLAGS_IN(); 841 /* test eax, eax */ /* 0x25050E61: test eax, eax */ 842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 843 _cf = 0; 844 _flag_k = FK_TEST; 845 if (TEST_NZ(_flag_a, _flag_b)) goto L_25050F55; /* 0x25050E63: jne 0x25050f55 */ 846 L_25050E69: 847 edi = MEM32(0x251513E4); /* 0x25050E69: mov edi, dword ptr [0x251513e4] */ 848 PUSH32(esp, eax); /* 0x25050E6F: push eax */ 849 PUSH32(esp, eax); /* 0x25050E70: push eax */ 850 eax = ebp + 0x8; /* 0x25050E71: lea eax, [ebp + 8] */ 851 PUSH32(esp, eax); /* 0x25050E74: push eax */ 852 PUSH32(esp, 0x251B2FB0u); /* 0x25050E75: push 0x251b2fb0 */ 853 ecx = esi; /* 0x25050E7A: mov ecx, esi */ 854 RECOMP_ICALL(edi); /* 0x25050E7C: call edi */ 855 RECOMP_FLAGS_IN(); 856 /* test eax, eax */ /* 0x25050E7E: test eax, eax */ 857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 858 _cf = 0; 859 _flag_k = FK_TEST; 860 if (TEST_NZ(_flag_a, _flag_b)) goto L_25050F55; /* 0x25050E80: jne 0x25050f55 */ 861 L_25050E86: 862 PUSH32(esp, eax); /* 0x25050E86: push eax */ 863 PUSH32(esp, eax); /* 0x25050E87: push eax */ 864 ecx = ebp + (-0x2C); /* 0x25050E88: lea ecx, [ebp - 0x2c] */ 865 PUSH32(esp, ecx); /* 0x25050E8B: push ecx */ 866 PUSH32(esp, 0x251B2FA8u); /* 0x25050E8C: push 0x251b2fa8 */ 867 ecx = esi; /* 0x25050E91: mov ecx, esi */ 868 RECOMP_ICALL(edi); /* 0x25050E93: call edi */ 869 RECOMP_FLAGS_IN(); 870 /* test eax, eax */ /* 0x25050E95: test eax, eax */ 871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 872 _cf = 0; 873 _flag_k = FK_TEST; 874 if (TEST_NZ(_flag_a, _flag_b)) goto L_25050F55; /* 0x25050E97: jne 0x25050f55 */ 875 L_25050E9D: 876 ecx = MEM32(ebp + 0x8); /* 0x25050E9D: mov ecx, dword ptr [ebp + 8] */ 877 edx = MEM32(ebp + (-0x10)); /* 0x25050EA0: mov edx, dword ptr [ebp - 0x10] */ 878 eax = MEM32(ebp + (-0x14)); /* 0x25050EA3: mov eax, dword ptr [ebp - 0x14] */ 879 PUSH32(esp, ecx); /* 0x25050EA6: push ecx */ 880 MEM32(ebp + (-0x28)) = 0x100u; /* 0x25050EA7: mov dword ptr [ebp - 0x28], 0x100 */ 881 MEM32(ebp + (-0x24)) = edx; /* 0x25050EAE: mov dword ptr [ebp - 0x24], edx */ 882 MEM32(ebp + (-0x20)) = eax; /* 0x25050EB1: mov dword ptr [ebp - 0x20], eax */ 883 RECOMP_ICALL(0x25051020u); /* 0x25050EB4: call 0x25051020 */ /* not lifted */ 884 RECOMP_FLAGS_IN(); 885 PUSH32(esp, 0x58u); /* 0x25050EB9: push 0x58 */ 886 MEM32(ebp + (-0x1C)) = eax; /* 0x25050EBB: mov dword ptr [ebp - 0x1c], eax */ 887 MEM32(ebp + (-0x18)) = 0; /* 0x25050EBE: mov dword ptr [ebp - 0x18], 0 */ 888 RECOMP_ICALL(0x251380D0u); /* 0x25050EC5: call 0x251380d0 */ /* not lifted */ 889 RECOMP_FLAGS_IN(); 890 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 892 esp = esp + 8; /* 0x25050ECA: add esp, 8 */ 893 _flag_k = FK_ADD; 894 MEM32(ebp + (-0x10)) = eax; /* 0x25050ECD: mov dword ptr [ebp - 0x10], eax */ 895 /* test eax, eax */ /* 0x25050ED0: test eax, eax */ 896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 897 _cf = 0; 898 _flag_k = FK_TEST; 899 MEM32(ebp + (-0x4)) = 0; /* 0x25050ED2: mov dword ptr [ebp - 4], 0 */ 900 if (TEST_Z(_flag_a, _flag_b)) goto L_25050EED; /* 0x25050ED9: je 0x25050eed */ 901 L_25050EDB: 902 PUSH32(esp, 0x251C764Cu); /* 0x25050EDB: push 0x251c764c */ 903 PUSH32(esp, 0); /* 0x25050EE0: push 0 */ 904 ecx = eax; /* 0x25050EE2: mov ecx, eax */ 905 RECOMP_ICALL(0x250D2C30u); /* 0x25050EE4: call 0x250d2c30 */ /* not lifted */ 906 RECOMP_FLAGS_IN(); 907 esi = eax; /* 0x25050EE9: mov esi, eax */ 908 goto L_25050EEF; /* 0x25050EEB: jmp 0x25050eef */ 909 L_25050EED: 910 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 911 esi = 0; /* 0x25050EED: xor esi, esi */ 912 _cf = 0; 913 _flag_k = FK_TEST; 914 L_25050EEF: 915 edx = ebp + (-0x18); /* 0x25050EEF: lea edx, [ebp - 0x18] */ 916 PUSH32(esp, edx); /* 0x25050EF2: push edx */ 917 PUSH32(esp, esi); /* 0x25050EF3: push esi */ 918 PUSH32(esp, 0); /* 0x25050EF4: push 0 */ 919 eax = ebp + (-0x1C); /* 0x25050EF6: lea eax, [ebp - 0x1c] */ 920 PUSH32(esp, eax); /* 0x25050EF9: push eax */ 921 ecx = ebp + (-0x20); /* 0x25050EFA: lea ecx, [ebp - 0x20] */ 922 PUSH32(esp, ecx); /* 0x25050EFD: push ecx */ 923 ecx = MEM32(0x25238B58); /* 0x25050EFE: mov ecx, dword ptr [0x25238b58] */ 924 edx = ebp + (-0x24); /* 0x25050F04: lea edx, [ebp - 0x24] */ 925 PUSH32(esp, edx); /* 0x25050F07: push edx */ 926 eax = ebp + (-0x28); /* 0x25050F08: lea eax, [ebp - 0x28] */ 927 PUSH32(esp, eax); /* 0x25050F0B: push eax */ 928 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25050F0C: mov dword ptr [ebp - 4], 0xffffffff */ 929 RECOMP_ICALL(0x250D28B0u); /* 0x25050F13: call 0x250d28b0 */ /* not lifted */ 930 RECOMP_FLAGS_IN(); 931 ecx = MEM32(ebp + 0x8); /* 0x25050F18: mov ecx, dword ptr [ebp + 8] */ 932 edi = MEM32(0x25238B58); /* 0x25050F1B: mov edi, dword ptr [0x25238b58] */ 933 PUSH32(esp, 1); /* 0x25050F21: push 1 */ 934 PUSH32(esp, 0); /* 0x25050F23: push 0 */ 935 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050F25: push -1 */ 936 PUSH32(esp, ecx); /* 0x25050F27: push ecx */ 937 RECOMP_ICALL(0x25051020u); /* 0x25050F28: call 0x25051020 */ /* not lifted */ 938 RECOMP_FLAGS_IN(); 939 edx = MEM32(ebp + (-0x2C)); /* 0x25050F2D: mov edx, dword ptr [ebp - 0x2c] */ 940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 942 esp = esp + 4; /* 0x25050F30: add esp, 4 */ 943 _flag_k = FK_ADD; 944 PUSH32(esp, eax); /* 0x25050F33: push eax */ 945 PUSH32(esp, 0); /* 0x25050F34: push 0 */ 946 PUSH32(esp, edx); /* 0x25050F36: push edx */ 947 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050F37: push -1 */ 948 PUSH32(esp, esi); /* 0x25050F39: push esi */ 949 ecx = edi; /* 0x25050F3A: mov ecx, edi */ 950 RECOMP_ICALL(0x250D29E0u); /* 0x25050F3C: call 0x250d29e0 */ /* not lifted */ 951 RECOMP_FLAGS_IN(); 952 edi = POP32_VAL(esp); /* 0x25050F41: pop edi */ 953 eax = esi; /* 0x25050F42: mov eax, esi */ 954 esi = POP32_VAL(esp); /* 0x25050F44: pop esi */ 955 ecx = MEM32(ebp + (-0xC)); /* 0x25050F45: mov ecx, dword ptr [ebp - 0xc] */ 956 MEM32(FS_BASE + (0)) = ecx; /* 0x25050F48: mov dword ptr fs:[0], ecx */ 957 esp = ebp; /* 0x25050F4F: mov esp, ebp */ 958 ebp = POP32_VAL(esp); /* 0x25050F51: pop ebp */ 959 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050F52: ret 4 */ 960 L_25050F55: 961 ecx = MEM32(ebp + (-0xC)); /* 0x25050F55: mov ecx, dword ptr [ebp - 0xc] */ 962 edi = POP32_VAL(esp); /* 0x25050F58: pop edi */ 963 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 964 eax = 0; /* 0x25050F59: xor eax, eax */ 965 _cf = 0; 966 _flag_k = FK_TEST; 967 esi = POP32_VAL(esp); /* 0x25050F5B: pop esi */ 968 MEM32(FS_BASE + (0)) = ecx; /* 0x25050F5C: mov dword ptr fs:[0], ecx */ 969 esp = ebp; /* 0x25050F63: mov esp, ebp */ 970 ebp = POP32_VAL(esp); /* 0x25050F65: pop ebp */ 971 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050F66: ret 4 */ 972 RECOMP_REGS_OUT(); 973 } 974 975 void sub_25050EC5(void) { 976 int _fpu_cmp = 0; 977 uint32_t _cf = 0; 978 int _df = 1; 979 uint32_t _flag_k = FK_NONE; 980 uint32_t _flag_a = 0, _flag_b = 0; 981 uint32_t _itail_tgt = 0; 982 RECOMP_REGS_LOCALS 983 RECOMP_ENTER(0x25050EC5u); 984 985 L_25050EC5: 986 RECOMP_ICALL(0x251380D0u); /* 0x25050EC5: call 0x251380d0 */ /* not lifted */ 987 RECOMP_FLAGS_IN(); 988 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 990 esp = esp + 8; /* 0x25050ECA: add esp, 8 */ 991 _flag_k = FK_ADD; 992 MEM32(ebp + (-0x10)) = eax; /* 0x25050ECD: mov dword ptr [ebp - 0x10], eax */ 993 /* test eax, eax */ /* 0x25050ED0: test eax, eax */ 994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 995 _cf = 0; 996 _flag_k = FK_TEST; 997 MEM32(ebp + (-0x4)) = 0; /* 0x25050ED2: mov dword ptr [ebp - 4], 0 */ 998 if (TEST_Z(_flag_a, _flag_b)) goto L_25050EED; /* 0x25050ED9: je 0x25050eed */ 999 L_25050EDB: 1000 PUSH32(esp, 0x251C764Cu); /* 0x25050EDB: push 0x251c764c */ 1001 PUSH32(esp, 0); /* 0x25050EE0: push 0 */ 1002 ecx = eax; /* 0x25050EE2: mov ecx, eax */ 1003 RECOMP_ICALL(0x250D2C30u); /* 0x25050EE4: call 0x250d2c30 */ /* not lifted */ 1004 RECOMP_FLAGS_IN(); 1005 esi = eax; /* 0x25050EE9: mov esi, eax */ 1006 goto L_25050EEF; /* 0x25050EEB: jmp 0x25050eef */ 1007 L_25050EED: 1008 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1009 esi = 0; /* 0x25050EED: xor esi, esi */ 1010 _cf = 0; 1011 _flag_k = FK_TEST; 1012 L_25050EEF: 1013 edx = ebp + (-0x18); /* 0x25050EEF: lea edx, [ebp - 0x18] */ 1014 PUSH32(esp, edx); /* 0x25050EF2: push edx */ 1015 PUSH32(esp, esi); /* 0x25050EF3: push esi */ 1016 PUSH32(esp, 0); /* 0x25050EF4: push 0 */ 1017 eax = ebp + (-0x1C); /* 0x25050EF6: lea eax, [ebp - 0x1c] */ 1018 PUSH32(esp, eax); /* 0x25050EF9: push eax */ 1019 ecx = ebp + (-0x20); /* 0x25050EFA: lea ecx, [ebp - 0x20] */ 1020 PUSH32(esp, ecx); /* 0x25050EFD: push ecx */ 1021 ecx = MEM32(0x25238B58); /* 0x25050EFE: mov ecx, dword ptr [0x25238b58] */ 1022 edx = ebp + (-0x24); /* 0x25050F04: lea edx, [ebp - 0x24] */ 1023 PUSH32(esp, edx); /* 0x25050F07: push edx */ 1024 eax = ebp + (-0x28); /* 0x25050F08: lea eax, [ebp - 0x28] */ 1025 PUSH32(esp, eax); /* 0x25050F0B: push eax */ 1026 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25050F0C: mov dword ptr [ebp - 4], 0xffffffff */ 1027 RECOMP_ICALL(0x250D28B0u); /* 0x25050F13: call 0x250d28b0 */ /* not lifted */ 1028 RECOMP_FLAGS_IN(); 1029 ecx = MEM32(ebp + 0x8); /* 0x25050F18: mov ecx, dword ptr [ebp + 8] */ 1030 edi = MEM32(0x25238B58); /* 0x25050F1B: mov edi, dword ptr [0x25238b58] */ 1031 PUSH32(esp, 1); /* 0x25050F21: push 1 */ 1032 PUSH32(esp, 0); /* 0x25050F23: push 0 */ 1033 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050F25: push -1 */ 1034 PUSH32(esp, ecx); /* 0x25050F27: push ecx */ 1035 RECOMP_ICALL(0x25051020u); /* 0x25050F28: call 0x25051020 */ /* not lifted */ 1036 RECOMP_FLAGS_IN(); 1037 edx = MEM32(ebp + (-0x2C)); /* 0x25050F2D: mov edx, dword ptr [ebp - 0x2c] */ 1038 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1040 esp = esp + 4; /* 0x25050F30: add esp, 4 */ 1041 _flag_k = FK_ADD; 1042 PUSH32(esp, eax); /* 0x25050F33: push eax */ 1043 PUSH32(esp, 0); /* 0x25050F34: push 0 */ 1044 PUSH32(esp, edx); /* 0x25050F36: push edx */ 1045 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050F37: push -1 */ 1046 PUSH32(esp, esi); /* 0x25050F39: push esi */ 1047 ecx = edi; /* 0x25050F3A: mov ecx, edi */ 1048 RECOMP_ICALL(0x250D29E0u); /* 0x25050F3C: call 0x250d29e0 */ /* not lifted */ 1049 RECOMP_FLAGS_IN(); 1050 edi = POP32_VAL(esp); /* 0x25050F41: pop edi */ 1051 eax = esi; /* 0x25050F42: mov eax, esi */ 1052 esi = POP32_VAL(esp); /* 0x25050F44: pop esi */ 1053 ecx = MEM32(ebp + (-0xC)); /* 0x25050F45: mov ecx, dword ptr [ebp - 0xc] */ 1054 MEM32(FS_BASE + (0)) = ecx; /* 0x25050F48: mov dword ptr fs:[0], ecx */ 1055 esp = ebp; /* 0x25050F4F: mov esp, ebp */ 1056 ebp = POP32_VAL(esp); /* 0x25050F51: pop ebp */ 1057 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050F52: ret 4 */ 1058 RECOMP_REGS_OUT(); 1059 } 1060 1061 void sub_25050EEF(void) { 1062 int _fpu_cmp = 0; 1063 uint32_t _cf = 0; 1064 int _df = 1; 1065 uint32_t _flag_k = FK_NONE; 1066 uint32_t _flag_a = 0, _flag_b = 0; 1067 uint32_t _itail_tgt = 0; 1068 RECOMP_REGS_LOCALS 1069 RECOMP_ENTER(0x25050EEFu); 1070 1071 L_25050EEF: 1072 edx = ebp + (-0x18); /* 0x25050EEF: lea edx, [ebp - 0x18] */ 1073 PUSH32(esp, edx); /* 0x25050EF2: push edx */ 1074 PUSH32(esp, esi); /* 0x25050EF3: push esi */ 1075 PUSH32(esp, 0); /* 0x25050EF4: push 0 */ 1076 eax = ebp + (-0x1C); /* 0x25050EF6: lea eax, [ebp - 0x1c] */ 1077 PUSH32(esp, eax); /* 0x25050EF9: push eax */ 1078 ecx = ebp + (-0x20); /* 0x25050EFA: lea ecx, [ebp - 0x20] */ 1079 PUSH32(esp, ecx); /* 0x25050EFD: push ecx */ 1080 ecx = MEM32(0x25238B58); /* 0x25050EFE: mov ecx, dword ptr [0x25238b58] */ 1081 edx = ebp + (-0x24); /* 0x25050F04: lea edx, [ebp - 0x24] */ 1082 PUSH32(esp, edx); /* 0x25050F07: push edx */ 1083 eax = ebp + (-0x28); /* 0x25050F08: lea eax, [ebp - 0x28] */ 1084 PUSH32(esp, eax); /* 0x25050F0B: push eax */ 1085 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25050F0C: mov dword ptr [ebp - 4], 0xffffffff */ 1086 RECOMP_ICALL(0x250D28B0u); /* 0x25050F13: call 0x250d28b0 */ /* not lifted */ 1087 RECOMP_FLAGS_IN(); 1088 ecx = MEM32(ebp + 0x8); /* 0x25050F18: mov ecx, dword ptr [ebp + 8] */ 1089 edi = MEM32(0x25238B58); /* 0x25050F1B: mov edi, dword ptr [0x25238b58] */ 1090 PUSH32(esp, 1); /* 0x25050F21: push 1 */ 1091 PUSH32(esp, 0); /* 0x25050F23: push 0 */ 1092 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050F25: push -1 */ 1093 PUSH32(esp, ecx); /* 0x25050F27: push ecx */ 1094 RECOMP_ICALL(0x25051020u); /* 0x25050F28: call 0x25051020 */ /* not lifted */ 1095 RECOMP_FLAGS_IN(); 1096 edx = MEM32(ebp + (-0x2C)); /* 0x25050F2D: mov edx, dword ptr [ebp - 0x2c] */ 1097 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1099 esp = esp + 4; /* 0x25050F30: add esp, 4 */ 1100 _flag_k = FK_ADD; 1101 PUSH32(esp, eax); /* 0x25050F33: push eax */ 1102 PUSH32(esp, 0); /* 0x25050F34: push 0 */ 1103 PUSH32(esp, edx); /* 0x25050F36: push edx */ 1104 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050F37: push -1 */ 1105 PUSH32(esp, esi); /* 0x25050F39: push esi */ 1106 ecx = edi; /* 0x25050F3A: mov ecx, edi */ 1107 RECOMP_ICALL(0x250D29E0u); /* 0x25050F3C: call 0x250d29e0 */ /* not lifted */ 1108 RECOMP_FLAGS_IN(); 1109 edi = POP32_VAL(esp); /* 0x25050F41: pop edi */ 1110 eax = esi; /* 0x25050F42: mov eax, esi */ 1111 esi = POP32_VAL(esp); /* 0x25050F44: pop esi */ 1112 ecx = MEM32(ebp + (-0xC)); /* 0x25050F45: mov ecx, dword ptr [ebp - 0xc] */ 1113 MEM32(FS_BASE + (0)) = ecx; /* 0x25050F48: mov dword ptr fs:[0], ecx */ 1114 esp = ebp; /* 0x25050F4F: mov esp, ebp */ 1115 ebp = POP32_VAL(esp); /* 0x25050F51: pop ebp */ 1116 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25050F52: ret 4 */ 1117 RECOMP_REGS_OUT(); 1118 } 1119 1120 void sub_25050F70(void) { 1121 int _fpu_cmp = 0; 1122 uint32_t _cf = 0; 1123 int _df = 1; 1124 uint32_t _flag_k = FK_NONE; 1125 uint32_t _flag_a = 0, _flag_b = 0; 1126 uint32_t _itail_tgt = 0; 1127 RECOMP_REGS_LOCALS 1128 RECOMP_ENTER(0x25050F70u); 1129 1130 L_25050F70: 1131 PUSH32(esp, esi); /* 0x25050F70: push esi */ 1132 esi = ecx; /* 0x25050F71: mov esi, ecx */ 1133 ecx = MEM32(esi + 0x8); /* 0x25050F73: mov ecx, dword ptr [esi + 8] */ 1134 /* test ecx, ecx */ /* 0x25050F76: test ecx, ecx */ 1135 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1136 _cf = 0; 1137 _flag_k = FK_TEST; 1138 if (TEST_Z(_flag_a, _flag_b)) goto L_25050F7F; /* 0x25050F78: je 0x25050f7f */ 1139 L_25050F7A: 1140 RECOMP_ICALL(0x250D2C50u); /* 0x25050F7A: call 0x250d2c50 */ /* not lifted */ 1141 RECOMP_FLAGS_IN(); 1142 L_25050F7F: 1143 eax = MEM32(esi + 0x8); /* 0x25050F7F: mov eax, dword ptr [esi + 8] */ 1144 esi = POP32_VAL(esp); /* 0x25050F82: pop esi */ 1145 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25050F83: ret */ 1146 RECOMP_REGS_OUT(); 1147 } 1148 1149 void sub_25050F90(void) { 1150 int _fpu_cmp = 0; 1151 uint32_t _cf = 0; 1152 int _df = 1; 1153 uint32_t _flag_k = FK_NONE; 1154 uint32_t _flag_a = 0, _flag_b = 0; 1155 uint32_t _itail_tgt = 0; 1156 RECOMP_REGS_LOCALS 1157 RECOMP_ENTER(0x25050F90u); 1158 1159 L_25050F90: 1160 { _itail_tgt = (uint32_t)(MEM32(0x251513FC)); goto _ljump; } 1161 { RECOMP_REGS_OUT(); return; } /* end of function */ 1162 _ljump: 1163 switch (_itail_tgt) { 1164 case 0x25050F90u: goto L_25050F90; 1165 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1166 } 1167 RECOMP_REGS_OUT(); 1168 } 1169 1170 void sub_25050FA0(void) { 1171 int _fpu_cmp = 0; 1172 uint32_t _cf = 0; 1173 int _df = 1; 1174 uint32_t _flag_k = FK_NONE; 1175 uint32_t _flag_a = 0, _flag_b = 0; 1176 uint32_t _itail_tgt = 0; 1177 RECOMP_REGS_LOCALS 1178 RECOMP_ENTER(0x25050FA0u); 1179 1180 L_25050FA0: 1181 PUSH32(esp, ebp); /* 0x25050FA0: push ebp */ 1182 ebp = esp; /* 0x25050FA1: mov ebp, esp */ 1183 PUSH32(esp, 0xFFFFFFFFu); /* 0x25050FA3: push -1 */ 1184 PUSH32(esp, 0x25146FABu); /* 0x25050FA5: push 0x25146fab */ 1185 eax = MEM32(FS_BASE + (0)); /* 0x25050FAA: mov eax, dword ptr fs:[0] */ 1186 PUSH32(esp, eax); /* 0x25050FB0: push eax */ 1187 MEM32(FS_BASE + (0)) = esp; /* 0x25050FB1: mov dword ptr fs:[0], esp */ 1188 PUSH32(esp, ecx); /* 0x25050FB8: push ecx */ 1189 PUSH32(esp, 0xB0u); /* 0x25050FB9: push 0xb0 */ 1190 RECOMP_ICALL(0x251380D0u); /* 0x25050FBE: call 0x251380d0 */ /* not lifted */ 1191 RECOMP_FLAGS_IN(); 1192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1194 esp = esp + 4; /* 0x25050FC3: add esp, 4 */ 1195 _flag_k = FK_ADD; 1196 MEM32(ebp + (-0x10)) = eax; /* 0x25050FC6: mov dword ptr [ebp - 0x10], eax */ 1197 /* test eax, eax */ /* 0x25050FC9: test eax, eax */ 1198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1199 _cf = 0; 1200 _flag_k = FK_TEST; 1201 MEM32(ebp + (-0x4)) = 0; /* 0x25050FCB: mov dword ptr [ebp - 4], 0 */ 1202 if (TEST_Z(_flag_a, _flag_b)) goto L_25051002; /* 0x25050FD2: je 0x25051002 */ 1203 L_25050FD4: 1204 ecx = MEM32(ebp + 0x18); /* 0x25050FD4: mov ecx, dword ptr [ebp + 0x18] */ 1205 edx = MEM32(ebp + 0x10); /* 0x25050FD7: mov edx, dword ptr [ebp + 0x10] */ 1206 PUSH32(esp, ecx); /* 0x25050FDA: push ecx */ 1207 ecx = MEM32(ebp + 0x14); /* 0x25050FDB: mov ecx, dword ptr [ebp + 0x14] */ 1208 PUSH32(esp, edx); /* 0x25050FDE: push edx */ 1209 edx = MEM32(ebp + 0xC); /* 0x25050FDF: mov edx, dword ptr [ebp + 0xc] */ 1210 PUSH32(esp, ecx); /* 0x25050FE2: push ecx */ 1211 ecx = MEM32(ebp + 0x8); /* 0x25050FE3: mov ecx, dword ptr [ebp + 8] */ 1212 PUSH32(esp, edx); /* 0x25050FE6: push edx */ 1213 PUSH32(esp, ecx); /* 0x25050FE7: push ecx */ 1214 PUSH32(esp, 0x251C764Cu); /* 0x25050FE8: push 0x251c764c */ 1215 ecx = eax; /* 0x25050FED: mov ecx, eax */ 1216 RECOMP_ICALL(0x250EB5A0u); /* 0x25050FEF: call 0x250eb5a0 */ /* not lifted */ 1217 RECOMP_FLAGS_IN(); 1218 ecx = MEM32(ebp + (-0xC)); /* 0x25050FF4: mov ecx, dword ptr [ebp - 0xc] */ 1219 MEM32(FS_BASE + (0)) = ecx; /* 0x25050FF7: mov dword ptr fs:[0], ecx */ 1220 esp = ebp; /* 0x25050FFE: mov esp, ebp */ 1221 ebp = POP32_VAL(esp); /* 0x25051000: pop ebp */ 1222 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051001: ret */ 1223 L_25051002: 1224 ecx = MEM32(ebp + (-0xC)); /* 0x25051002: mov ecx, dword ptr [ebp - 0xc] */ 1225 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1226 eax = 0; /* 0x25051005: xor eax, eax */ 1227 _cf = 0; 1228 _flag_k = FK_TEST; 1229 MEM32(FS_BASE + (0)) = ecx; /* 0x25051007: mov dword ptr fs:[0], ecx */ 1230 esp = ebp; /* 0x2505100E: mov esp, ebp */ 1231 ebp = POP32_VAL(esp); /* 0x25051010: pop ebp */ 1232 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051011: ret */ 1233 RECOMP_REGS_OUT(); 1234 } 1235 1236 void sub_25051020(void) { 1237 int _fpu_cmp = 0; 1238 uint32_t _cf = 0; 1239 int _df = 1; 1240 uint32_t _flag_k = FK_NONE; 1241 uint32_t _flag_a = 0, _flag_b = 0; 1242 uint32_t _itail_tgt = 0; 1243 RECOMP_REGS_LOCALS 1244 RECOMP_ENTER(0x25051020u); 1245 1246 L_25051020: 1247 PUSH32(esp, ebp); /* 0x25051020: push ebp */ 1248 L_25051021: 1249 ebp = esp; /* 0x25051021: mov ebp, esp */ 1250 L_25051023: 1251 eax = MEM32(ebp + 0x8); /* 0x25051023: mov eax, dword ptr [ebp + 8] */ 1252 L_25051026: 1253 ecx = MEM32(eax + 0xC); /* 0x25051026: mov ecx, dword ptr [eax + 0xc] */ 1254 L_25051029: 1255 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 1256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1257 ecx = ecx + 0xFFFFFFF8u; /* 0x25051029: add ecx, -8 */ 1258 _flag_k = FK_ADD; 1259 L_2505102C: 1260 /* cmp ecx, 0x18u */ /* 0x2505102C: cmp ecx, 0x18 */ 1261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 1262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1263 _flag_k = FK_CMP; 1264 L_2505102F: 1265 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_25051095; /* 0x2505102F: ja 0x25051095 */ 1266 L_25051031: 1267 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1268 edx = 0; /* 0x25051031: xor edx, edx */ 1269 _cf = 0; 1270 _flag_k = FK_TEST; 1271 L_25051033: 1272 SET_LO8(edx, MEM8(ecx + 0x250510B0)); /* 0x25051033: mov dl, byte ptr [ecx + 0x250510b0] */ 1273 L_25051039: 1274 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x2505109C)); goto _ljump; } 1275 L_25051040: 1276 eax = 7; /* 0x25051040: mov eax, 7 */ 1277 L_25051045: 1278 ebp = POP32_VAL(esp); /* 0x25051045: pop ebp */ 1279 L_25051046: 1280 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051046: ret */ 1281 L_25051047: 1282 ecx = MEM32(eax + 0x10); /* 0x25051047: mov ecx, dword ptr [eax + 0x10] */ 1283 L_2505104A: 1284 /* cmp ecx, 0xF800u */ /* 0x2505104A: cmp ecx, 0xf800 */ 1285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xF800u); 1286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1287 _flag_k = FK_CMP; 1288 L_25051050: 1289 edx = 0x1Fu; /* 0x25051050: mov edx, 0x1f */ 1290 L_25051055: 1291 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2505106C; /* 0x25051055: jne 0x2505106c */ 1292 L_25051057: 1293 /* cmp MEM32(eax + 0x14), 0x7E0u */ /* 0x25051057: cmp dword ptr [eax + 0x14], 0x7e0 */ 1294 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(0x7E0u); 1295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1296 _flag_k = FK_CMP; 1297 L_2505105E: 1298 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2505106C; /* 0x2505105E: jne 0x2505106c */ 1299 L_25051060: 1300 /* cmp MEM32(eax + 0x18), edx */ /* 0x25051060: cmp dword ptr [eax + 0x18], edx */ 1301 _flag_a = (uint32_t)(MEM32(eax + 0x18)); _flag_b = (uint32_t)(edx); 1302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1303 _flag_k = FK_CMP; 1304 L_25051063: 1305 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2505106C; /* 0x25051063: jne 0x2505106c */ 1306 L_25051065: 1307 eax = 4; /* 0x25051065: mov eax, 4 */ 1308 L_2505106A: 1309 ebp = POP32_VAL(esp); /* 0x2505106A: pop ebp */ 1310 L_2505106B: 1311 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2505106B: ret */ 1312 L_2505106C: 1313 /* cmp ecx, 0x7C00u */ /* 0x2505106C: cmp ecx, 0x7c00 */ 1314 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x7C00u); 1315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1316 _flag_k = FK_CMP; 1317 L_25051072: 1318 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_25051080; /* 0x25051072: jne 0x25051080 */ 1319 L_25051074: 1320 /* cmp MEM32(eax + 0x14), 0x3E0u */ /* 0x25051074: cmp dword ptr [eax + 0x14], 0x3e0 */ 1321 _flag_a = (uint32_t)(MEM32(eax + 0x14)); _flag_b = (uint32_t)(0x3E0u); 1322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1323 _flag_k = FK_CMP; 1324 L_2505107B: 1325 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_25051080; /* 0x2505107B: jne 0x25051080 */ 1326 L_2505107D: 1327 ecx = MEM32(eax + 0x18); /* 0x2505107D: mov ecx, dword ptr [eax + 0x18] */ 1328 L_25051080: 1329 eax = 5; /* 0x25051080: mov eax, 5 */ 1330 L_25051085: 1331 ebp = POP32_VAL(esp); /* 0x25051085: pop ebp */ 1332 L_25051086: 1333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051086: ret */ 1334 L_25051087: 1335 eax = 1; /* 0x25051087: mov eax, 1 */ 1336 L_2505108C: 1337 ebp = POP32_VAL(esp); /* 0x2505108C: pop ebp */ 1338 L_2505108D: 1339 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2505108D: ret */ 1340 L_2505108E: 1341 eax = 3; /* 0x2505108E: mov eax, 3 */ 1342 L_25051093: 1343 ebp = POP32_VAL(esp); /* 0x25051093: pop ebp */ 1344 L_25051094: 1345 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051094: ret */ 1346 L_25051095: 1347 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1348 eax = 0; /* 0x25051095: xor eax, eax */ 1349 _cf = 0; 1350 _flag_k = FK_TEST; 1351 L_25051097: 1352 ebp = POP32_VAL(esp); /* 0x25051097: pop ebp */ 1353 L_25051098: 1354 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051098: ret */ 1355 _ljump: 1356 switch (_itail_tgt) { 1357 case 0x25051020u: goto L_25051020; 1358 case 0x25051021u: goto L_25051021; 1359 case 0x25051023u: goto L_25051023; 1360 case 0x25051026u: goto L_25051026; 1361 case 0x25051029u: goto L_25051029; 1362 case 0x2505102Cu: goto L_2505102C; 1363 case 0x2505102Fu: goto L_2505102F; 1364 case 0x25051031u: goto L_25051031; 1365 case 0x25051033u: goto L_25051033; 1366 case 0x25051039u: goto L_25051039; 1367 case 0x25051040u: goto L_25051040; 1368 case 0x25051045u: goto L_25051045; 1369 case 0x25051046u: goto L_25051046; 1370 case 0x25051047u: goto L_25051047; 1371 case 0x2505104Au: goto L_2505104A; 1372 case 0x25051050u: goto L_25051050; 1373 case 0x25051055u: goto L_25051055; 1374 case 0x25051057u: goto L_25051057; 1375 case 0x2505105Eu: goto L_2505105E; 1376 case 0x25051060u: goto L_25051060; 1377 case 0x25051063u: goto L_25051063; 1378 case 0x25051065u: goto L_25051065; 1379 case 0x2505106Au: goto L_2505106A; 1380 case 0x2505106Bu: goto L_2505106B; 1381 case 0x2505106Cu: goto L_2505106C; 1382 case 0x25051072u: goto L_25051072; 1383 case 0x25051074u: goto L_25051074; 1384 case 0x2505107Bu: goto L_2505107B; 1385 case 0x2505107Du: goto L_2505107D; 1386 case 0x25051080u: goto L_25051080; 1387 case 0x25051085u: goto L_25051085; 1388 case 0x25051086u: goto L_25051086; 1389 case 0x25051087u: goto L_25051087; 1390 case 0x2505108Cu: goto L_2505108C; 1391 case 0x2505108Du: goto L_2505108D; 1392 case 0x2505108Eu: goto L_2505108E; 1393 case 0x25051093u: goto L_25051093; 1394 case 0x25051094u: goto L_25051094; 1395 case 0x25051095u: goto L_25051095; 1396 case 0x25051097u: goto L_25051097; 1397 case 0x25051098u: goto L_25051098; 1398 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1399 } 1400 RECOMP_REGS_OUT(); 1401 } 1402 1403 void sub_250510D0(void) { 1404 int _fpu_cmp = 0; 1405 uint32_t _cf = 0; 1406 int _df = 1; 1407 uint32_t _flag_k = FK_NONE; 1408 uint32_t _flag_a = 0, _flag_b = 0; 1409 uint32_t _itail_tgt = 0; 1410 RECOMP_REGS_LOCALS 1411 RECOMP_ENTER(0x250510D0u); 1412 1413 L_250510D0: 1414 MEM32(0x251C7654) = 0; /* 0x250510D0: mov dword ptr [0x251c7654], 0 */ 1415 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250510DA: ret */ 1416 RECOMP_REGS_OUT(); 1417 } 1418 1419 void sub_250510E0(void) { 1420 int _fpu_cmp = 0; 1421 uint32_t _cf = 0; 1422 int _df = 1; 1423 uint32_t _flag_k = FK_NONE; 1424 uint32_t _flag_a = 0, _flag_b = 0; 1425 uint32_t _itail_tgt = 0; 1426 RECOMP_REGS_LOCALS 1427 RECOMP_ENTER(0x250510E0u); 1428 1429 L_250510E0: 1430 eax = MEM32(0x251C7654); /* 0x250510E0: mov eax, dword ptr [0x251c7654] */ 1431 ecx = eax + 0x1; /* 0x250510E5: lea ecx, [eax + 1] */ 1432 eax = MEM32(0x251C7650); /* 0x250510E8: mov eax, dword ptr [0x251c7650] */ 1433 /* cmp ecx, eax */ /* 0x250510ED: cmp ecx, eax */ 1434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1436 _flag_k = FK_CMP; 1437 PUSH32(esp, edi); /* 0x250510EF: push edi */ 1438 if (CMP_LE(_flag_a, _flag_b)) goto L_2505114B; /* 0x250510F0: jle 0x2505114b */ 1439 L_250510F2: 1440 edi = eax + eax; /* 0x250510F2: lea edi, [eax + eax] */ 1441 /* cmp edi, 0x20u */ /* 0x250510F5: cmp edi, 0x20 */ 1442 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 1443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1444 _flag_k = FK_CMP; 1445 if (CMP_GE(_flag_a, _flag_b)) goto L_250510FF; /* 0x250510F8: jge 0x250510ff */ 1446 L_250510FA: 1447 edi = 0x20u; /* 0x250510FA: mov edi, 0x20 */ 1448 L_250510FF: 1449 eax = MEM32(0x251C7658); /* 0x250510FF: mov eax, dword ptr [0x251c7658] */ 1450 edx = edi * 4; /* 0x25051104: lea edx, [edi*4] */ 1451 PUSH32(esp, edx); /* 0x2505110B: push edx */ 1452 PUSH32(esp, eax); /* 0x2505110C: push eax */ 1453 RECOMP_ICALL(MEM32(0x25151330)); /* 0x2505110D: call dword ptr [0x25151330] */ 1454 RECOMP_FLAGS_IN(); 1455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1457 esp = esp + 8; /* 0x25051113: add esp, 8 */ 1458 _flag_k = FK_ADD; 1459 /* test eax, eax */ /* 0x25051116: test eax, eax */ 1460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1461 _cf = 0; 1462 _flag_k = FK_TEST; 1463 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505111C; /* 0x25051118: jne 0x2505111c */ 1464 L_2505111A: 1465 edi = POP32_VAL(esp); /* 0x2505111A: pop edi */ 1466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2505111B: ret */ 1467 L_2505111C: 1468 PUSH32(esp, esi); /* 0x2505111C: push esi */ 1469 esi = MEM32(0x251C7654); /* 0x2505111D: mov esi, dword ptr [0x251c7654] */ 1470 /* cmp esi, edi */ /* 0x25051123: cmp esi, edi */ 1471 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1473 _flag_k = FK_CMP; 1474 MEM32(0x251C7658) = eax; /* 0x25051125: mov dword ptr [0x251c7658], eax */ 1475 if (CMP_GE(_flag_a, _flag_b)) goto L_25051144; /* 0x2505112A: jge 0x25051144 */ 1476 L_2505112C: 1477 PUSH32(esp, 0x20u); /* 0x2505112C: push 0x20 */ 1478 RECOMP_ICALL(0x251380D0u); /* 0x2505112E: call 0x251380d0 */ /* not lifted */ 1479 RECOMP_FLAGS_IN(); 1480 ecx = MEM32(0x251C7658); /* 0x25051133: mov ecx, dword ptr [0x251c7658] */ 1481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1482 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1483 esp = esp + 4; /* 0x25051139: add esp, 4 */ 1484 _flag_k = FK_ADD; 1485 MEM32(ecx + esi * 4) = eax; /* 0x2505113C: mov dword ptr [ecx + esi*4], eax */ 1486 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1487 esi = esi + 1; /* 0x2505113F: inc esi */ 1488 _flag_k = FK_INC; 1489 /* cmp esi, edi */ /* 0x25051140: cmp esi, edi */ 1490 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1492 _flag_k = FK_CMP; 1493 RECOMP_BACKEDGE(); 1494 if (CMP_L(_flag_a, _flag_b)) goto L_2505112C; /* 0x25051142: jl 0x2505112c */ 1495 L_25051144: 1496 MEM32(0x251C7650) = edi; /* 0x25051144: mov dword ptr [0x251c7650], edi */ 1497 esi = POP32_VAL(esp); /* 0x2505114A: pop esi */ 1498 L_2505114B: 1499 ecx = MEM32(0x251C7654); /* 0x2505114B: mov ecx, dword ptr [0x251c7654] */ 1500 edx = MEM32(0x251C7658); /* 0x25051151: mov edx, dword ptr [0x251c7658] */ 1501 eax = MEM32(edx + ecx * 4); /* 0x25051157: mov eax, dword ptr [edx + ecx*4] */ 1502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1503 ecx = ecx + 1; /* 0x2505115A: inc ecx */ 1504 _flag_k = FK_INC; 1505 MEM32(0x251C7654) = ecx; /* 0x2505115B: mov dword ptr [0x251c7654], ecx */ 1506 edi = POP32_VAL(esp); /* 0x25051161: pop edi */ 1507 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051162: ret */ 1508 RECOMP_REGS_OUT(); 1509 } 1510 1511 void sub_25051170(void) { 1512 int _fpu_cmp = 0; 1513 uint32_t _cf = 0; 1514 int _df = 1; 1515 uint32_t _flag_k = FK_NONE; 1516 uint32_t _flag_a = 0, _flag_b = 0; 1517 uint32_t _itail_tgt = 0; 1518 RECOMP_REGS_LOCALS 1519 RECOMP_ENTER(0x25051170u); 1520 1521 L_25051170: 1522 eax = MEM32(0x251C7650); /* 0x25051170: mov eax, dword ptr [0x251c7650] */ 1523 PUSH32(esp, esi); /* 0x25051175: push esi */ 1524 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1525 esi = 0; /* 0x25051176: xor esi, esi */ 1526 _cf = 0; 1527 _flag_k = FK_TEST; 1528 /* test eax, eax */ /* 0x25051178: test eax, eax */ 1529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1530 _cf = 0; 1531 _flag_k = FK_TEST; 1532 if (TEST_LE(_flag_a, _flag_b)) goto L_25051197; /* 0x2505117A: jle 0x25051197 */ 1533 L_2505117C: 1534 eax = MEM32(0x251C7658); /* 0x2505117C: mov eax, dword ptr [0x251c7658] */ 1535 ecx = MEM32(eax + esi * 4); /* 0x25051181: mov ecx, dword ptr [eax + esi*4] */ 1536 PUSH32(esp, ecx); /* 0x25051184: push ecx */ 1537 RECOMP_ICALL(0x25137EECu); /* 0x25051185: call 0x25137eec */ /* not lifted */ 1538 RECOMP_FLAGS_IN(); 1539 eax = MEM32(0x251C7650); /* 0x2505118A: mov eax, dword ptr [0x251c7650] */ 1540 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1542 esp = esp + 4; /* 0x2505118F: add esp, 4 */ 1543 _flag_k = FK_ADD; 1544 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 1545 esi = esi + 1; /* 0x25051192: inc esi */ 1546 _flag_k = FK_INC; 1547 /* cmp esi, eax */ /* 0x25051193: cmp esi, eax */ 1548 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1550 _flag_k = FK_CMP; 1551 RECOMP_BACKEDGE(); 1552 if (CMP_L(_flag_a, _flag_b)) goto L_2505117C; /* 0x25051195: jl 0x2505117c */ 1553 L_25051197: 1554 edx = MEM32(0x251C7658); /* 0x25051197: mov edx, dword ptr [0x251c7658] */ 1555 PUSH32(esp, edx); /* 0x2505119D: push edx */ 1556 RECOMP_ICALL(MEM32(0x2515132C)); /* 0x2505119E: call dword ptr [0x2515132c] */ 1557 RECOMP_FLAGS_IN(); 1558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1560 esp = esp + 4; /* 0x250511A4: add esp, 4 */ 1561 _flag_k = FK_ADD; 1562 MEM32(0x251C7650) = 0; /* 0x250511A7: mov dword ptr [0x251c7650], 0 */ 1563 MEM32(0x251C7654) = 0; /* 0x250511B1: mov dword ptr [0x251c7654], 0 */ 1564 MEM32(0x251C7658) = 0; /* 0x250511BB: mov dword ptr [0x251c7658], 0 */ 1565 esi = POP32_VAL(esp); /* 0x250511C5: pop esi */ 1566 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250511C6: ret */ 1567 RECOMP_REGS_OUT(); 1568 } 1569 1570 void sub_250511D0(void) { 1571 int _fpu_cmp = 0; 1572 uint32_t _cf = 0; 1573 int _df = 1; 1574 uint32_t _flag_k = FK_NONE; 1575 uint32_t _flag_a = 0, _flag_b = 0; 1576 uint32_t _itail_tgt = 0; 1577 RECOMP_REGS_LOCALS 1578 RECOMP_ENTER(0x250511D0u); 1579 1580 L_250511D0: 1581 PUSH32(esp, esi); /* 0x250511D0: push esi */ 1582 PUSH32(esp, 0x20u); /* 0x250511D1: push 0x20 */ 1583 esi = ecx; /* 0x250511D3: mov esi, ecx */ 1584 RECOMP_ICALL(0x251380D0u); /* 0x250511D5: call 0x251380d0 */ /* not lifted */ 1585 RECOMP_FLAGS_IN(); 1586 MEM32(esi) = eax; /* 0x250511DA: mov dword ptr [esi], eax */ 1587 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1589 esp = esp + 4; /* 0x250511DC: add esp, 4 */ 1590 _flag_k = FK_ADD; 1591 eax = esi; /* 0x250511DF: mov eax, esi */ 1592 esi = POP32_VAL(esp); /* 0x250511E1: pop esi */ 1593 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250511E2: ret */ 1594 RECOMP_REGS_OUT(); 1595 } 1596 1597 void sub_250511F0(void) { 1598 int _fpu_cmp = 0; 1599 uint32_t _cf = 0; 1600 int _df = 1; 1601 uint32_t _flag_k = FK_NONE; 1602 uint32_t _flag_a = 0, _flag_b = 0; 1603 uint32_t _itail_tgt = 0; 1604 RECOMP_REGS_LOCALS 1605 RECOMP_ENTER(0x250511F0u); 1606 1607 L_250511F0: 1608 PUSH32(esp, esi); /* 0x250511F0: push esi */ 1609 esi = ecx; /* 0x250511F1: mov esi, ecx */ 1610 RECOMP_ICALL(0x25051170u); /* 0x250511F3: call 0x25051170 */ /* not lifted */ 1611 RECOMP_FLAGS_IN(); 1612 eax = MEM32(esi); /* 0x250511F8: mov eax, dword ptr [esi] */ 1613 PUSH32(esp, eax); /* 0x250511FA: push eax */ 1614 RECOMP_ICALL(0x25137EECu); /* 0x250511FB: call 0x25137eec */ /* not lifted */ 1615 RECOMP_FLAGS_IN(); 1616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1618 esp = esp + 4; /* 0x25051200: add esp, 4 */ 1619 _flag_k = FK_ADD; 1620 esi = POP32_VAL(esp); /* 0x25051203: pop esi */ 1621 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051204: ret */ 1622 RECOMP_REGS_OUT(); 1623 } 1624 1625 void sub_25051210(void) { 1626 int _fpu_cmp = 0; 1627 uint32_t _cf = 0; 1628 int _df = 1; 1629 uint32_t _flag_k = FK_NONE; 1630 uint32_t _flag_a = 0, _flag_b = 0; 1631 uint32_t _itail_tgt = 0; 1632 RECOMP_REGS_LOCALS 1633 RECOMP_ENTER(0x25051210u); 1634 1635 L_25051210: 1636 PUSH32(esp, ebp); /* 0x25051210: push ebp */ 1637 ebp = esp; /* 0x25051211: mov ebp, esp */ 1638 PUSH32(esp, esi); /* 0x25051213: push esi */ 1639 esi = MEM32(ebp + 0x8); /* 0x25051214: mov esi, dword ptr [ebp + 8] */ 1640 /* cmp MEM32(esi), 0 */ /* 0x25051217: cmp dword ptr [esi], 0 */ 1641 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 1642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1643 _flag_k = FK_CMP; 1644 PUSH32(esp, edi); /* 0x2505121A: push edi */ 1645 edi = ecx; /* 0x2505121B: mov edi, ecx */ 1646 if (CMP_NE(_flag_a, _flag_b)) goto L_25051293; /* 0x2505121D: jne 0x25051293 */ 1647 L_2505121F: 1648 eax = MEM32(esi + 0x8); /* 0x2505121F: mov eax, dword ptr [esi + 8] */ 1649 /* test eax, eax */ /* 0x25051222: test eax, eax */ 1650 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1651 _cf = 0; 1652 _flag_k = FK_TEST; 1653 if (TEST_Z(_flag_a, _flag_b)) goto L_25051278; /* 0x25051224: je 0x25051278 */ 1654 L_25051226: 1655 /* cmp MEM32(eax + 0x8), esi */ /* 0x25051226: cmp dword ptr [eax + 8], esi */ 1656 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(esi); 1657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1658 _flag_k = FK_CMP; 1659 if (CMP_EQ(_flag_a, _flag_b)) goto L_25051233; /* 0x25051229: je 0x25051233 */ 1660 L_2505122B: 1661 PUSH32(esp, eax); /* 0x2505122B: push eax */ 1662 ecx = edi; /* 0x2505122C: mov ecx, edi */ 1663 RECOMP_ICALL(0x25051210u); /* 0x2505122E: call 0x25051210 */ /* not lifted */ 1664 RECOMP_FLAGS_IN(); 1665 L_25051233: 1666 PUSH32(esp, esi); /* 0x25051233: push esi */ 1667 ecx = edi; /* 0x25051234: mov ecx, edi */ 1668 RECOMP_ICALL(0x250512A0u); /* 0x25051236: call 0x250512a0 */ /* not lifted */ 1669 RECOMP_FLAGS_IN(); 1670 eax = MEM32(esi + 0x8); /* 0x2505123B: mov eax, dword ptr [esi + 8] */ 1671 PUSH32(esp, eax); /* 0x2505123E: push eax */ 1672 ecx = edi; /* 0x2505123F: mov ecx, edi */ 1673 RECOMP_ICALL(0x250512A0u); /* 0x25051241: call 0x250512a0 */ /* not lifted */ 1674 RECOMP_FLAGS_IN(); 1675 ecx = MEM32(esi + 0x8); /* 0x25051246: mov ecx, dword ptr [esi + 8] */ 1676 eax = MEM32(ecx + 0x4); /* 0x25051249: mov eax, dword ptr [ecx + 4] */ 1677 edx = MEM32(esi); /* 0x2505124C: mov edx, dword ptr [esi] */ 1678 MEM32(edx + 0x10) = eax; /* 0x2505124E: mov dword ptr [edx + 0x10], eax */ 1679 ecx = MEM32(esi + 0x8); /* 0x25051251: mov ecx, dword ptr [esi + 8] */ 1680 edx = MEM32(ecx + 0x4); /* 0x25051254: mov edx, dword ptr [ecx + 4] */ 1681 eax = MEM32(esi); /* 0x25051257: mov eax, dword ptr [esi] */ 1682 MEM32(edx + 0xC) = eax; /* 0x25051259: mov dword ptr [edx + 0xc], eax */ 1683 ecx = MEM32(esi + 0x8); /* 0x2505125C: mov ecx, dword ptr [esi + 8] */ 1684 edx = MEM32(esi + 0x4); /* 0x2505125F: mov edx, dword ptr [esi + 4] */ 1685 eax = MEM32(ecx); /* 0x25051262: mov eax, dword ptr [ecx] */ 1686 MEM32(edx + 0xC) = eax; /* 0x25051264: mov dword ptr [edx + 0xc], eax */ 1687 ecx = MEM32(esi + 0x8); /* 0x25051267: mov ecx, dword ptr [esi + 8] */ 1688 eax = MEM32(esi + 0x4); /* 0x2505126A: mov eax, dword ptr [esi + 4] */ 1689 edx = MEM32(ecx); /* 0x2505126D: mov edx, dword ptr [ecx] */ 1690 edi = POP32_VAL(esp); /* 0x2505126F: pop edi */ 1691 MEM32(edx + 0x10) = eax; /* 0x25051270: mov dword ptr [edx + 0x10], eax */ 1692 esi = POP32_VAL(esp); /* 0x25051273: pop esi */ 1693 ebp = POP32_VAL(esp); /* 0x25051274: pop ebp */ 1694 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051275: ret 4 */ 1695 L_25051278: 1696 PUSH32(esp, esi); /* 0x25051278: push esi */ 1697 ecx = edi; /* 0x25051279: mov ecx, edi */ 1698 RECOMP_ICALL(0x250512A0u); /* 0x2505127B: call 0x250512a0 */ /* not lifted */ 1699 RECOMP_FLAGS_IN(); 1700 ecx = MEM32(esi); /* 0x25051280: mov ecx, dword ptr [esi] */ 1701 MEM32(ecx + 0x10) = 0; /* 0x25051282: mov dword ptr [ecx + 0x10], 0 */ 1702 edx = MEM32(esi + 0x4); /* 0x25051289: mov edx, dword ptr [esi + 4] */ 1703 MEM32(edx + 0xC) = 0; /* 0x2505128C: mov dword ptr [edx + 0xc], 0 */ 1704 L_25051293: 1705 edi = POP32_VAL(esp); /* 0x25051293: pop edi */ 1706 esi = POP32_VAL(esp); /* 0x25051294: pop esi */ 1707 ebp = POP32_VAL(esp); /* 0x25051295: pop ebp */ 1708 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051296: ret 4 */ 1709 RECOMP_REGS_OUT(); 1710 } 1711 1712 void sub_250512A0(void) { 1713 int _fpu_cmp = 0; 1714 uint32_t _cf = 0; 1715 int _df = 1; 1716 uint32_t _flag_k = FK_NONE; 1717 uint32_t _flag_a = 0, _flag_b = 0; 1718 uint32_t _itail_tgt = 0; 1719 RECOMP_REGS_LOCALS 1720 RECOMP_ENTER(0x250512A0u); 1721 1722 L_250512A0: 1723 PUSH32(esp, ebp); /* 0x250512A0: push ebp */ 1724 ebp = esp; /* 0x250512A1: mov ebp, esp */ 1725 PUSH32(esp, esi); /* 0x250512A3: push esi */ 1726 RECOMP_ICALL(0x250510E0u); /* 0x250512A4: call 0x250510e0 */ /* not lifted */ 1727 RECOMP_FLAGS_IN(); 1728 esi = MEM32(ebp + 0x8); /* 0x250512A9: mov esi, dword ptr [ebp + 8] */ 1729 MEM32(esi) = eax; /* 0x250512AC: mov dword ptr [esi], eax */ 1730 RECOMP_ICALL(0x250510E0u); /* 0x250512AE: call 0x250510e0 */ /* not lifted */ 1731 RECOMP_FLAGS_IN(); 1732 ecx = MEM32(esi); /* 0x250512B3: mov ecx, dword ptr [esi] */ 1733 MEM32(esi + 0x4) = eax; /* 0x250512B5: mov dword ptr [esi + 4], eax */ 1734 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1735 eax = eax | 0xFFFFFFFFu; /* 0x250512B8: or eax, 0xffffffff */ 1736 _cf = 0; 1737 _flag_k = FK_TEST; 1738 MEM32(ecx + 0x14) = eax; /* 0x250512BB: mov dword ptr [ecx + 0x14], eax */ 1739 edx = MEM32(esi + 0x4); /* 0x250512BE: mov edx, dword ptr [esi + 4] */ 1740 MEM32(edx + 0x14) = eax; /* 0x250512C1: mov dword ptr [edx + 0x14], eax */ 1741 eax = MEM32(esi); /* 0x250512C4: mov eax, dword ptr [esi] */ 1742 ecx = MEM32(esi + 0x4); /* 0x250512C6: mov ecx, dword ptr [esi + 4] */ 1743 MEM32(eax + 0xC) = ecx; /* 0x250512C9: mov dword ptr [eax + 0xc], ecx */ 1744 edx = MEM32(esi + 0x4); /* 0x250512CC: mov edx, dword ptr [esi + 4] */ 1745 eax = MEM32(esi); /* 0x250512CF: mov eax, dword ptr [esi] */ 1746 MEM32(edx + 0x10) = eax; /* 0x250512D1: mov dword ptr [edx + 0x10], eax */ 1747 ecx = MEM32(esi); /* 0x250512D4: mov ecx, dword ptr [esi] */ 1748 edx = MEM32(esi + 0xC); /* 0x250512D6: mov edx, dword ptr [esi + 0xc] */ 1749 MEM32(ecx + 0x8) = edx; /* 0x250512D9: mov dword ptr [ecx + 8], edx */ 1750 eax = MEM32(esi + 0xC); /* 0x250512DC: mov eax, dword ptr [esi + 0xc] */ 1751 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1752 ecx = 0; /* 0x250512DF: xor ecx, ecx */ 1753 _cf = 0; 1754 _flag_k = FK_TEST; 1755 /* cmp eax, ecx */ /* 0x250512E1: cmp eax, ecx */ 1756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1758 _flag_k = FK_CMP; 1759 if (CMP_EQ(_flag_a, _flag_b)) goto L_25051300; /* 0x250512E3: je 0x25051300 */ 1760 L_250512E5: 1761 /* cmp MEM32(eax + 0x8), esi */ /* 0x250512E5: cmp dword ptr [eax + 8], esi */ 1762 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(esi); 1763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1764 _flag_k = FK_CMP; 1765 if (CMP_NE(_flag_a, _flag_b)) goto L_250512F1; /* 0x250512E8: jne 0x250512f1 */ 1766 L_250512EA: 1767 edx = MEM32(esi); /* 0x250512EA: mov edx, dword ptr [esi] */ 1768 MEM32(eax + 0x8) = edx; /* 0x250512EC: mov dword ptr [eax + 8], edx */ 1769 goto L_25051300; /* 0x250512EF: jmp 0x25051300 */ 1770 L_250512F1: 1771 /* cmp MEM32(eax + 0xC), esi */ /* 0x250512F1: cmp dword ptr [eax + 0xc], esi */ 1772 _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(esi); 1773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1774 _flag_k = FK_CMP; 1775 edx = MEM32(esi); /* 0x250512F4: mov edx, dword ptr [esi] */ 1776 if (CMP_NE(_flag_a, _flag_b)) goto L_250512FD; /* 0x250512F6: jne 0x250512fd */ 1777 L_250512F8: 1778 MEM32(eax + 0xC) = edx; /* 0x250512F8: mov dword ptr [eax + 0xc], edx */ 1779 goto L_25051300; /* 0x250512FB: jmp 0x25051300 */ 1780 L_250512FD: 1781 MEM32(eax + 0x10) = edx; /* 0x250512FD: mov dword ptr [eax + 0x10], edx */ 1782 L_25051300: 1783 eax = MEM32(esi + 0x4); /* 0x25051300: mov eax, dword ptr [esi + 4] */ 1784 edx = MEM32(esi + 0x10); /* 0x25051303: mov edx, dword ptr [esi + 0x10] */ 1785 MEM32(eax + 0x8) = edx; /* 0x25051306: mov dword ptr [eax + 8], edx */ 1786 eax = MEM32(esi + 0x10); /* 0x25051309: mov eax, dword ptr [esi + 0x10] */ 1787 /* cmp eax, ecx */ /* 0x2505130C: cmp eax, ecx */ 1788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1790 _flag_k = FK_CMP; 1791 if (CMP_EQ(_flag_a, _flag_b)) goto L_2505132D; /* 0x2505130E: je 0x2505132d */ 1792 L_25051310: 1793 /* cmp MEM32(eax + 0x8), esi */ /* 0x25051310: cmp dword ptr [eax + 8], esi */ 1794 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(esi); 1795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1796 _flag_k = FK_CMP; 1797 if (CMP_NE(_flag_a, _flag_b)) goto L_2505131D; /* 0x25051313: jne 0x2505131d */ 1798 L_25051315: 1799 edx = MEM32(esi + 0x4); /* 0x25051315: mov edx, dword ptr [esi + 4] */ 1800 MEM32(eax + 0x8) = edx; /* 0x25051318: mov dword ptr [eax + 8], edx */ 1801 goto L_2505132D; /* 0x2505131B: jmp 0x2505132d */ 1802 L_2505131D: 1803 /* cmp MEM32(eax + 0x10), esi */ /* 0x2505131D: cmp dword ptr [eax + 0x10], esi */ 1804 _flag_a = (uint32_t)(MEM32(eax + 0x10)); _flag_b = (uint32_t)(esi); 1805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1806 _flag_k = FK_CMP; 1807 edx = MEM32(esi + 0x4); /* 0x25051320: mov edx, dword ptr [esi + 4] */ 1808 if (CMP_NE(_flag_a, _flag_b)) goto L_2505132A; /* 0x25051323: jne 0x2505132a */ 1809 L_25051325: 1810 MEM32(eax + 0x10) = edx; /* 0x25051325: mov dword ptr [eax + 0x10], edx */ 1811 goto L_2505132D; /* 0x25051328: jmp 0x2505132d */ 1812 L_2505132A: 1813 MEM32(eax + 0xC) = edx; /* 0x2505132A: mov dword ptr [eax + 0xc], edx */ 1814 L_2505132D: 1815 eax = MEM32(esi); /* 0x2505132D: mov eax, dword ptr [esi] */ 1816 MEM32(eax) = ecx; /* 0x2505132F: mov dword ptr [eax], ecx */ 1817 edx = MEM32(esi); /* 0x25051331: mov edx, dword ptr [esi] */ 1818 MEM32(edx + 0x4) = ecx; /* 0x25051333: mov dword ptr [edx + 4], ecx */ 1819 eax = MEM32(esi + 0x4); /* 0x25051336: mov eax, dword ptr [esi + 4] */ 1820 MEM32(eax) = ecx; /* 0x25051339: mov dword ptr [eax], ecx */ 1821 edx = MEM32(esi + 0x4); /* 0x2505133B: mov edx, dword ptr [esi + 4] */ 1822 MEM32(edx + 0x4) = ecx; /* 0x2505133E: mov dword ptr [edx + 4], ecx */ 1823 esi = POP32_VAL(esp); /* 0x25051341: pop esi */ 1824 ebp = POP32_VAL(esp); /* 0x25051342: pop ebp */ 1825 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051343: ret 4 */ 1826 RECOMP_REGS_OUT(); 1827 } 1828 1829 void sub_25051350(void) { 1830 int _fpu_cmp = 0; 1831 uint32_t _cf = 0; 1832 int _df = 1; 1833 uint32_t _flag_k = FK_NONE; 1834 uint32_t _flag_a = 0, _flag_b = 0; 1835 uint32_t _itail_tgt = 0; 1836 RECOMP_REGS_LOCALS 1837 RECOMP_ENTER(0x25051350u); 1838 1839 L_25051350: 1840 PUSH32(esp, ebp); /* 0x25051350: push ebp */ 1841 ebp = esp; /* 0x25051351: mov ebp, esp */ 1842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20Cu); 1843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1844 esp = esp - 0x20Cu; /* 0x25051353: sub esp, 0x20c */ 1845 _flag_k = FK_CMP; 1846 eax = MEM32(ebp + 0x10); /* 0x25051359: mov eax, dword ptr [ebp + 0x10] */ 1847 PUSH32(esp, ebx); /* 0x2505135C: push ebx */ 1848 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1849 ebx = 0; /* 0x2505135D: xor ebx, ebx */ 1850 _cf = 0; 1851 _flag_k = FK_TEST; 1852 /* cmp eax, ebx */ /* 0x2505135F: cmp eax, ebx */ 1853 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1855 _flag_k = FK_CMP; 1856 PUSH32(esp, esi); /* 0x25051361: push esi */ 1857 PUSH32(esp, edi); /* 0x25051362: push edi */ 1858 if (CMP_NE(_flag_a, _flag_b)) goto L_2505136B; /* 0x25051363: jne 0x2505136b */ 1859 L_25051365: 1860 eax = MEM32(ebp + 0xC); /* 0x25051365: mov eax, dword ptr [ebp + 0xc] */ 1861 MEM32(ebp + 0x10) = eax; /* 0x25051368: mov dword ptr [ebp + 0x10], eax */ 1862 L_2505136B: 1863 /* cmp MEM32(ebp + 0xC), ebx */ /* 0x2505136B: cmp dword ptr [ebp + 0xc], ebx */ 1864 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(ebx); 1865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1866 _flag_k = FK_CMP; 1867 if (CMP_NE(_flag_a, _flag_b)) goto L_2505137B; /* 0x2505136E: jne 0x2505137b */ 1868 L_25051370: 1869 /* cmp eax, ebx */ /* 0x25051370: cmp eax, ebx */ 1870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1872 _flag_k = FK_CMP; 1873 MEM32(ebp + 0xC) = eax; /* 0x25051372: mov dword ptr [ebp + 0xc], eax */ 1874 if (CMP_EQ(_flag_a, _flag_b)) goto L_250514AA; /* 0x25051375: je 0x250514aa */ 1875 L_2505137B: 1876 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x2505137B: fld dword ptr [ebp + 0x1c] */ 1877 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2505137E: fcom dword ptr [0x2515177c] */ 1878 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25051384: fnstsw ax */ 1879 /* test HI8(eax), 1 */ /* 0x25051386: test ah, 1 */ 1880 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1881 _cf = 0; 1882 _flag_k = FK_NARROW(FK_TEST, 24); 1883 if (TEST_Z(_flag_a, _flag_b)) goto L_25051395; /* 0x25051389: je 0x25051395 */ 1884 L_2505138B: 1885 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505138B: fstp st(0) */ 1886 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x2505138D: fld dword ptr [0x2515177c] */ 1887 goto L_250513AA; /* 0x25051393: jmp 0x250513aa */ 1888 L_25051395: 1889 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x251517A4)); /* 0x25051395: fcom dword ptr [0x251517a4] */ 1890 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2505139B: fnstsw ax */ 1891 /* test HI8(eax), 0x41u */ /* 0x2505139D: test ah, 0x41 */ 1892 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 1893 _cf = 0; 1894 _flag_k = FK_NARROW(FK_TEST, 24); 1895 if (TEST_NZ(_flag_a, _flag_b)) goto L_250513AA; /* 0x250513A0: jne 0x250513aa */ 1896 L_250513A2: 1897 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250513A2: fstp st(0) */ 1898 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250513A4: fld dword ptr [0x251517a4] */ 1899 L_250513AA: 1900 _st[0] *= (double)*(float*)ADDR(0x25151928); /* 0x250513AA: fmul dword ptr [0x25151928] */ 1901 RECOMP_ICALL(0x251380E8u); /* 0x250513B0: call 0x251380e8 */ /* not lifted */ 1902 RECOMP_FLAGS_IN(); 1903 ecx = 0xFFu; /* 0x250513B5: mov ecx, 0xff */ 1904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1906 ecx = ecx - eax; /* 0x250513BA: sub ecx, eax */ 1907 _flag_k = FK_CMP; 1908 MEM32(ebp + (-0x4)) = ecx; /* 0x250513BC: mov dword ptr [ebp - 4], ecx */ 1909 MEM32(ebp + 0x1C) = ebx; /* 0x250513BF: mov dword ptr [ebp + 0x1c], ebx */ 1910 L_250513C2: 1911 esi = MEM32(ebp + 0x1C); /* 0x250513C2: mov esi, dword ptr [ebp + 0x1c] */ 1912 edx = ebx; /* 0x250513C5: mov edx, ebx */ 1913 edi = 0x10u; /* 0x250513C7: mov edi, 0x10 */ 1914 L_250513CC: 1915 ecx = esi; /* 0x250513CC: mov ecx, esi */ 1916 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x250513CE: shr ecx, 8 */ 1917 if (8u) { _flag_a = recomp_flags_pack((ecx >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1918 ecx = ecx >> 8u; /* 0x250513CE: shr ecx, 8 */ 1919 MEM8(ebp + edx + (-0x20C)) = (uint8_t)(LO8(ecx)); /* 0x250513D1: mov byte ptr [ebp + edx - 0x20c], cl */ 1920 if (4u) _cf = (((LO8(ecx)) >> 4) & 1u); /* 0x250513D8: shl cl, 4 */ 1921 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(ecx) << 4u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1922 SET_LO8(ecx, LO8(ecx) << 4u); /* 0x250513D8: shl cl, 4 */ 1923 MEM8(ebp + edx + (-0x10C)) = (uint8_t)(LO8(ecx)); /* 0x250513DB: mov byte ptr [ebp + edx - 0x10c], cl */ 1924 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1925 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1926 esi = esi + eax; /* 0x250513E2: add esi, eax */ 1927 _flag_k = FK_ADD; 1928 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 1929 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1930 edx = edx + 0x10u; /* 0x250513E4: add edx, 0x10 */ 1931 _flag_k = FK_ADD; 1932 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1933 edi = edi - 1; /* 0x250513E7: dec edi */ 1934 _flag_k = FK_DEC; 1935 RECOMP_BACKEDGE(); 1936 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_250513CC; /* 0x250513E8: jne 0x250513cc */ 1937 L_250513EA: 1938 edx = MEM32(ebp + 0x1C); /* 0x250513EA: mov edx, dword ptr [ebp + 0x1c] */ 1939 ecx = MEM32(ebp + (-0x4)); /* 0x250513ED: mov ecx, dword ptr [ebp - 4] */ 1940 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 1941 ebx = ebx + 1; /* 0x250513F0: inc ebx */ 1942 _flag_k = FK_INC; 1943 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 1944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1945 edx = edx + ecx; /* 0x250513F1: add edx, ecx */ 1946 _flag_k = FK_ADD; 1947 /* cmp ebx, 0x10u */ /* 0x250513F3: cmp ebx, 0x10 */ 1948 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 1949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1950 _flag_k = FK_CMP; 1951 MEM32(ebp + 0x1C) = edx; /* 0x250513F6: mov dword ptr [ebp + 0x1c], edx */ 1952 RECOMP_BACKEDGE(); 1953 if (CMP_B(_flag_a, _flag_b)) goto L_250513C2; /* 0x250513F9: jb 0x250513c2 */ 1954 L_250513FB: 1955 esi = MEM32(ebp + 0x18); /* 0x250513FB: mov esi, dword ptr [ebp + 0x18] */ 1956 /* test esi, esi */ /* 0x250513FE: test esi, esi */ 1957 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1958 _cf = 0; 1959 _flag_k = FK_TEST; 1960 if (TEST_Z(_flag_a, _flag_b)) goto L_250514AA; /* 0x25051400: jbe 0x250514aa */ 1961 L_25051406: 1962 ecx = MEM32(ebp + 0x14); /* 0x25051406: mov ecx, dword ptr [ebp + 0x14] */ 1963 edi = MEM32(ebp + 0x10); /* 0x25051409: mov edi, dword ptr [ebp + 0x10] */ 1964 edx = MEM32(ebp + 0x8); /* 0x2505140C: mov edx, dword ptr [ebp + 8] */ 1965 eax = ecx; /* 0x2505140F: mov eax, ecx */ 1966 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x25051411: shr eax, 1 */ 1967 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1968 eax = eax >> 1u; /* 0x25051411: shr eax, 1 */ 1969 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1970 ecx = ecx + 1; /* 0x25051413: inc ecx */ 1971 _flag_k = FK_INC; 1972 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x25051414: shr ecx, 1 */ 1973 if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1974 ecx = ecx >> 1u; /* 0x25051414: shr ecx, 1 */ 1975 MEM32(ebp + (-0x8)) = ecx; /* 0x25051416: mov dword ptr [ebp - 8], ecx */ 1976 ecx = MEM32(ebp + 0xC); /* 0x25051419: mov ecx, dword ptr [ebp + 0xc] */ 1977 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1979 ecx = ecx - edi; /* 0x2505141C: sub ecx, edi */ 1980 _flag_k = FK_CMP; 1981 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 1982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1983 edx = edx - edi; /* 0x2505141E: sub edx, edi */ 1984 _flag_k = FK_CMP; 1985 MEM32(ebp + (-0x4)) = eax; /* 0x25051420: mov dword ptr [ebp - 4], eax */ 1986 MEM32(ebp + 0x1C) = edi; /* 0x25051423: mov dword ptr [ebp + 0x1c], edi */ 1987 MEM32(ebp + (-0xC)) = ecx; /* 0x25051426: mov dword ptr [ebp - 0xc], ecx */ 1988 MEM32(ebp + 0x8) = edx; /* 0x25051429: mov dword ptr [ebp + 8], edx */ 1989 MEM32(ebp + 0x18) = esi; /* 0x2505142C: mov dword ptr [ebp + 0x18], esi */ 1990 L_2505142F: 1991 /* test eax, eax */ /* 0x2505142F: test eax, eax */ 1992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1993 _cf = 0; 1994 _flag_k = FK_TEST; 1995 ebx = edx + edi; /* 0x25051431: lea ebx, [edx + edi] */ 1996 esi = ecx + edi; /* 0x25051434: lea esi, [ecx + edi] */ 1997 MEM32(ebp + 0x10) = ebx; /* 0x25051437: mov dword ptr [ebp + 0x10], ebx */ 1998 if (TEST_Z(_flag_a, _flag_b)) goto L_25051499; /* 0x2505143A: jbe 0x25051499 */ 1999 L_2505143C: 2000 MEM32(ebp + 0xC) = eax; /* 0x2505143C: mov dword ptr [ebp + 0xc], eax */ 2001 L_2505143F: 2002 SET_LO8(edx, MEM8(edi)); /* 0x2505143F: mov dl, byte ptr [edi] */ 2003 SET_LO8(eax, MEM8(esi)); /* 0x25051441: mov al, byte ptr [esi] */ 2004 MEM8(ebp + 0x14) = (uint8_t)(LO8(edx)); /* 0x25051443: mov byte ptr [ebp + 0x14], dl */ 2005 ecx = MEM32(ebp + 0x14); /* 0x25051446: mov ecx, dword ptr [ebp + 0x14] */ 2006 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2007 edx = 0; /* 0x25051449: xor edx, edx */ 2008 _cf = 0; 2009 _flag_k = FK_TEST; 2010 SET_LO8(edx, LO8(eax)); /* 0x2505144B: mov dl, al */ 2011 if (4u) _cf = (((LO8(eax)) >> 4) & 1u); /* 0x2505144D: shl al, 4 */ 2012 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((LO8(eax) << 4u)) << 24), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2013 SET_LO8(eax, LO8(eax) << 4u); /* 0x2505144D: shl al, 4 */ 2014 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 2015 ecx = ecx & 0xFFu; /* 0x25051450: and ecx, 0xff */ 2016 _cf = 0; 2017 _flag_k = FK_TEST; 2018 ebx = ecx; /* 0x25051456: mov ebx, ecx */ 2019 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFu); 2020 ecx = ecx & 0xFu; /* 0x25051458: and ecx, 0xf */ 2021 _cf = 0; 2022 _flag_k = FK_TEST; 2023 if (4u) _cf = (((ebx) >> 3) & 1u); /* 0x2505145B: shr ebx, 4 */ 2024 if (4u) { _flag_a = recomp_flags_pack((ebx >> 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2025 ebx = ebx >> 4u; /* 0x2505145B: shr ebx, 4 */ 2026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2027 esi = esi + 1; /* 0x2505145E: inc esi */ 2028 _flag_k = FK_INC; 2029 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xF0u); 2030 edx = edx & 0xF0u; /* 0x2505145F: and edx, 0xf0 */ 2031 _cf = 0; 2032 _flag_k = FK_TEST; 2033 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 2034 eax = eax & 0xFFu; /* 0x25051465: and eax, 0xff */ 2035 _cf = 0; 2036 _flag_k = FK_TEST; 2037 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 2038 eax = eax | ecx; /* 0x2505146A: or eax, ecx */ 2039 _cf = 0; 2040 _flag_k = FK_TEST; 2041 _flag_a = (uint32_t)((edx | ebx)); _flag_b = (uint32_t)((edx | ebx)); 2042 edx = edx | ebx; /* 0x2505146C: or edx, ebx */ 2043 _cf = 0; 2044 _flag_k = FK_TEST; 2045 SET_LO8(ecx, MEM8(ebp + edx + (-0x10C))); /* 0x2505146E: mov cl, byte ptr [ebp + edx - 0x10c] */ 2046 SET_LO8(edx, MEM8(ebp + eax + (-0x20C))); /* 0x25051475: mov dl, byte ptr [ebp + eax - 0x20c] */ 2047 eax = MEM32(ebp + 0x10); /* 0x2505147C: mov eax, dword ptr [ebp + 0x10] */ 2048 _flag_a = (uint32_t)((LO8(ecx) | LO8(edx))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(edx))) << 24; 2049 SET_LO8(ecx, LO8(ecx) | LO8(edx)); /* 0x2505147F: or cl, dl */ 2050 _cf = 0; 2051 _flag_k = FK_NARROW(FK_TEST, 24); 2052 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x25051481: mov byte ptr [eax], cl */ 2053 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2054 edi = edi + 1; /* 0x25051483: inc edi */ 2055 _flag_k = FK_INC; 2056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2057 eax = eax + 1; /* 0x25051484: inc eax */ 2058 _flag_k = FK_INC; 2059 MEM32(ebp + 0x10) = eax; /* 0x25051485: mov dword ptr [ebp + 0x10], eax */ 2060 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(1); 2061 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) - 1; /* 0x25051488: dec dword ptr [ebp + 0xc] */ 2062 _flag_k = FK_DEC; 2063 RECOMP_BACKEDGE(); 2064 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2505143F; /* 0x2505148B: jne 0x2505143f */ 2065 L_2505148D: 2066 eax = MEM32(ebp + (-0x4)); /* 0x2505148D: mov eax, dword ptr [ebp - 4] */ 2067 edi = MEM32(ebp + 0x1C); /* 0x25051490: mov edi, dword ptr [ebp + 0x1c] */ 2068 ecx = MEM32(ebp + (-0xC)); /* 0x25051493: mov ecx, dword ptr [ebp - 0xc] */ 2069 edx = MEM32(ebp + 0x8); /* 0x25051496: mov edx, dword ptr [ebp + 8] */ 2070 L_25051499: 2071 ebx = MEM32(ebp + (-0x8)); /* 0x25051499: mov ebx, dword ptr [ebp - 8] */ 2072 esi = MEM32(ebp + 0x18); /* 0x2505149C: mov esi, dword ptr [ebp + 0x18] */ 2073 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2075 edi = edi + ebx; /* 0x2505149F: add edi, ebx */ 2076 _flag_k = FK_ADD; 2077 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2078 esi = esi - 1; /* 0x250514A1: dec esi */ 2079 _flag_k = FK_DEC; 2080 MEM32(ebp + 0x1C) = edi; /* 0x250514A2: mov dword ptr [ebp + 0x1c], edi */ 2081 MEM32(ebp + 0x18) = esi; /* 0x250514A5: mov dword ptr [ebp + 0x18], esi */ 2082 RECOMP_BACKEDGE(); 2083 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2505142F; /* 0x250514A8: jne 0x2505142f */ 2084 L_250514AA: 2085 edi = POP32_VAL(esp); /* 0x250514AA: pop edi */ 2086 esi = POP32_VAL(esp); /* 0x250514AB: pop esi */ 2087 ebx = POP32_VAL(esp); /* 0x250514AC: pop ebx */ 2088 esp = ebp; /* 0x250514AD: mov esp, ebp */ 2089 ebp = POP32_VAL(esp); /* 0x250514AF: pop ebp */ 2090 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250514B0: ret */ 2091 RECOMP_REGS_OUT(); 2092 } 2093 2094 void sub_250514C0(void) { 2095 int _fpu_cmp = 0; 2096 uint32_t _cf = 0; 2097 int _df = 1; 2098 uint32_t _flag_k = FK_NONE; 2099 uint32_t _flag_a = 0, _flag_b = 0; 2100 uint32_t _itail_tgt = 0; 2101 RECOMP_REGS_LOCALS 2102 RECOMP_ENTER(0x250514C0u); 2103 2104 L_250514C0: 2105 MEM32(0x251C7684) = 0; /* 0x250514C0: mov dword ptr [0x251c7684], 0 */ 2106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250514CA: ret */ 2107 RECOMP_REGS_OUT(); 2108 } 2109 2110 void sub_250514D0(void) { 2111 int _fpu_cmp = 0; 2112 uint32_t _cf = 0; 2113 int _df = 1; 2114 uint32_t _flag_k = FK_NONE; 2115 uint32_t _flag_a = 0, _flag_b = 0; 2116 uint32_t _itail_tgt = 0; 2117 RECOMP_REGS_LOCALS 2118 RECOMP_ENTER(0x250514D0u); 2119 2120 L_250514D0: 2121 PUSH32(esp, esi); /* 0x250514D0: push esi */ 2122 esi = ecx; /* 0x250514D1: mov esi, ecx */ 2123 RECOMP_ICALL(0x250526E0u); /* 0x250514D3: call 0x250526e0 */ /* not lifted */ 2124 RECOMP_FLAGS_IN(); 2125 eax = esi; /* 0x250514D8: mov eax, esi */ 2126 esi = POP32_VAL(esp); /* 0x250514DA: pop esi */ 2127 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250514DB: ret */ 2128 RECOMP_REGS_OUT(); 2129 } 2130 2131 void sub_250514E0(void) { 2132 int _fpu_cmp = 0; 2133 uint32_t _cf = 0; 2134 int _df = 1; 2135 uint32_t _flag_k = FK_NONE; 2136 uint32_t _flag_a = 0, _flag_b = 0; 2137 uint32_t _itail_tgt = 0; 2138 RECOMP_REGS_LOCALS 2139 RECOMP_ENTER(0x250514E0u); 2140 2141 L_250514E0: 2142 PUSH32(esp, ebp); /* 0x250514E0: push ebp */ 2143 ebp = esp; /* 0x250514E1: mov ebp, esp */ 2144 PUSH32(esp, esi); /* 0x250514E3: push esi */ 2145 esi = MEM32(ebp + 0x8); /* 0x250514E4: mov esi, dword ptr [ebp + 8] */ 2146 PUSH32(esp, edi); /* 0x250514E7: push edi */ 2147 eax = ecx; /* 0x250514E8: mov eax, ecx */ 2148 ecx = 0x1Bu; /* 0x250514EA: mov ecx, 0x1b */ 2149 edi = eax; /* 0x250514EF: mov edi, eax */ 2150 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x250514F1: 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; } 2151 edi = POP32_VAL(esp); /* 0x250514F3: pop edi */ 2152 esi = POP32_VAL(esp); /* 0x250514F4: pop esi */ 2153 ebp = POP32_VAL(esp); /* 0x250514F5: pop ebp */ 2154 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250514F6: ret 4 */ 2155 RECOMP_REGS_OUT(); 2156 } 2157 2158 void sub_25051500(void) { 2159 int _fpu_cmp = 0; 2160 uint32_t _cf = 0; 2161 int _df = 1; 2162 uint32_t _flag_k = FK_NONE; 2163 uint32_t _flag_a = 0, _flag_b = 0; 2164 uint32_t _itail_tgt = 0; 2165 RECOMP_REGS_LOCALS 2166 RECOMP_ENTER(0x25051500u); 2167 2168 L_25051500: 2169 RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x25051500: ret 0x24 */ 2170 RECOMP_REGS_OUT(); 2171 } 2172 2173 void sub_25051510(void) { 2174 int _fpu_cmp = 0; 2175 uint32_t _cf = 0; 2176 int _df = 1; 2177 uint32_t _flag_k = FK_NONE; 2178 uint32_t _flag_a = 0, _flag_b = 0; 2179 uint32_t _itail_tgt = 0; 2180 RECOMP_REGS_LOCALS 2181 RECOMP_ENTER(0x25051510u); 2182 2183 L_25051510: 2184 eax = 0x251C7670u; /* 0x25051510: mov eax, 0x251c7670 */ 2185 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25051515: ret */ 2186 RECOMP_REGS_OUT(); 2187 } 2188 2189 void sub_25051520(void) { 2190 int _fpu_cmp = 0; 2191 uint32_t _cf = 0; 2192 int _df = 1; 2193 uint32_t _flag_k = FK_NONE; 2194 uint32_t _flag_a = 0, _flag_b = 0; 2195 uint32_t _itail_tgt = 0; 2196 RECOMP_REGS_LOCALS 2197 RECOMP_ENTER(0x25051520u); 2198 2199 L_25051520: 2200 PUSH32(esp, ebp); /* 0x25051520: push ebp */ 2201 ebp = esp; /* 0x25051521: mov ebp, esp */ 2202 PUSH32(esp, esi); /* 0x25051523: push esi */ 2203 PUSH32(esp, edi); /* 0x25051524: push edi */ 2204 edi = MEM32(ebp + 0x8); /* 0x25051525: mov edi, dword ptr [ebp + 8] */ 2205 esi = ecx; /* 0x25051528: mov esi, ecx */ 2206 PUSH32(esp, edi); /* 0x2505152A: push edi */ 2207 RECOMP_ICALL(0x250DAB70u); /* 0x2505152B: call 0x250dab70 */ /* not lifted */ 2208 RECOMP_FLAGS_IN(); 2209 eax = MEM32(edi + 0x1D4); /* 0x25051530: mov eax, dword ptr [edi + 0x1d4] */ 2210 MEM32(esi + 0x1D4) = eax; /* 0x25051536: mov dword ptr [esi + 0x1d4], eax */ 2211 ecx = MEM32(edi + 0x1D8); /* 0x2505153C: mov ecx, dword ptr [edi + 0x1d8] */ 2212 MEM32(esi + 0x1D8) = ecx; /* 0x25051542: mov dword ptr [esi + 0x1d8], ecx */ 2213 edx = MEM32(edi + 0x1DC); /* 0x25051548: mov edx, dword ptr [edi + 0x1dc] */ 2214 MEM32(esi + 0x1DC) = edx; /* 0x2505154E: mov dword ptr [esi + 0x1dc], edx */ 2215 eax = MEM32(edi + 0x1E0); /* 0x25051554: mov eax, dword ptr [edi + 0x1e0] */ 2216 MEM32(esi + 0x1E0) = eax; /* 0x2505155A: mov dword ptr [esi + 0x1e0], eax */ 2217 ecx = MEM32(edi + 0x1E4); /* 0x25051560: mov ecx, dword ptr [edi + 0x1e4] */ 2218 MEM32(esi + 0x1E4) = ecx; /* 0x25051566: mov dword ptr [esi + 0x1e4], ecx */ 2219 edx = MEM32(edi + 0x1E8); /* 0x2505156C: mov edx, dword ptr [edi + 0x1e8] */ 2220 MEM32(esi + 0x1E8) = edx; /* 0x25051572: mov dword ptr [esi + 0x1e8], edx */ 2221 eax = MEM32(edi + 0x1EC); /* 0x25051578: mov eax, dword ptr [edi + 0x1ec] */ 2222 MEM32(esi + 0x1EC) = eax; /* 0x2505157E: mov dword ptr [esi + 0x1ec], eax */ 2223 ecx = MEM32(edi + 0x1F0); /* 0x25051584: mov ecx, dword ptr [edi + 0x1f0] */ 2224 MEM32(esi + 0x1F0) = ecx; /* 0x2505158A: mov dword ptr [esi + 0x1f0], ecx */ 2225 edx = MEM32(edi + 0x1F4); /* 0x25051590: mov edx, dword ptr [edi + 0x1f4] */ 2226 MEM32(esi + 0x1F4) = edx; /* 0x25051596: mov dword ptr [esi + 0x1f4], edx */ 2227 eax = MEM32(edi + 0x1F8); /* 0x2505159C: mov eax, dword ptr [edi + 0x1f8] */ 2228 MEM32(esi + 0x1F8) = eax; /* 0x250515A2: mov dword ptr [esi + 0x1f8], eax */ 2229 MEM32(esi) = 0x25151990u; /* 0x250515A8: mov dword ptr [esi], 0x25151990 */ 2230 MEM32(esi + 0x8) = 0x25151980u; /* 0x250515AE: mov dword ptr [esi + 8], 0x25151980 */ 2231 MEM32(esi + 0x20) = 0x25151970u; /* 0x250515B5: mov dword ptr [esi + 0x20], 0x25151970 */ 2232 MEM32(esi + 0x38) = 0x25151960u; /* 0x250515BC: mov dword ptr [esi + 0x38], 0x25151960 */ 2233 MEM32(esi + 0x50) = 0x25151950u; /* 0x250515C3: mov dword ptr [esi + 0x50], 0x25151950 */ 2234 MEM32(esi + 0x138) = 0x25151940u; /* 0x250515CA: mov dword ptr [esi + 0x138], 0x25151940 */ 2235 MEM32(esi + 0x150) = 0x25151930u; /* 0x250515D4: mov dword ptr [esi + 0x150], 0x25151930 */ 2236 ecx = edi + 0x1FC; /* 0x250515DE: lea ecx, [edi + 0x1fc] */ 2237 eax = MEM32(ecx); /* 0x250515E4: mov eax, dword ptr [ecx] */ 2238 edx = esi + 0x1FC; /* 0x250515E6: lea edx, [esi + 0x1fc] */ 2239 MEM32(edx) = eax; /* 0x250515EC: mov dword ptr [edx], eax */ 2240 eax = MEM32(ecx + 0x4); /* 0x250515EE: mov eax, dword ptr [ecx + 4] */ 2241 MEM32(edx + 0x4) = eax; /* 0x250515F1: mov dword ptr [edx + 4], eax */ 2242 ecx = MEM32(ecx + 0x8); /* 0x250515F4: mov ecx, dword ptr [ecx + 8] */ 2243 MEM32(edx + 0x8) = ecx; /* 0x250515F7: mov dword ptr [edx + 8], ecx */ 2244 edx = edi + 0x208; /* 0x250515FA: lea edx, [edi + 0x208] */ 2245 ecx = MEM32(edx); /* 0x25051600: mov ecx, dword ptr [edx] */ 2246 eax = esi + 0x208; /* 0x25051602: lea eax, [esi + 0x208] */ 2247 MEM32(eax) = ecx; /* 0x25051608: mov dword ptr [eax], ecx */ 2248 ecx = MEM32(edx + 0x4); /* 0x2505160A: mov ecx, dword ptr [edx + 4] */ 2249 MEM32(eax + 0x4) = ecx; /* 0x2505160D: mov dword ptr [eax + 4], ecx */ 2250 edx = MEM32(edx + 0x8); /* 0x25051610: mov edx, dword ptr [edx + 8] */ 2251 MEM32(eax + 0x8) = edx; /* 0x25051613: mov dword ptr [eax + 8], edx */ 2252 eax = MEM32(edi + 0x214); /* 0x25051616: mov eax, dword ptr [edi + 0x214] */ 2253 MEM32(esi + 0x214) = eax; /* 0x2505161C: mov dword ptr [esi + 0x214], eax */ 2254 ecx = MEM32(edi + 0x218); /* 0x25051622: mov ecx, dword ptr [edi + 0x218] */ 2255 MEM32(esi + 0x218) = ecx; /* 0x25051628: mov dword ptr [esi + 0x218], ecx */ 2256 edx = MEM32(edi + 0x21C); /* 0x2505162E: mov edx, dword ptr [edi + 0x21c] */ 2257 MEM32(esi + 0x21C) = edx; /* 0x25051634: mov dword ptr [esi + 0x21c], edx */ 2258 eax = edi + 0x220; /* 0x2505163A: lea eax, [edi + 0x220] */ 2259 edx = MEM32(eax); /* 0x25051640: mov edx, dword ptr [eax] */ 2260 ecx = esi + 0x220; /* 0x25051642: lea ecx, [esi + 0x220] */ 2261 MEM32(ecx) = edx; /* 0x25051648: mov dword ptr [ecx], edx */ 2262 edx = MEM32(eax + 0x4); /* 0x2505164A: mov edx, dword ptr [eax + 4] */ 2263 MEM32(ecx + 0x4) = edx; /* 0x2505164D: mov dword ptr [ecx + 4], edx */ 2264 eax = MEM32(eax + 0x8); /* 0x25051650: mov eax, dword ptr [eax + 8] */ 2265 MEM32(ecx + 0x8) = eax; /* 0x25051653: mov dword ptr [ecx + 8], eax */ 2266 ecx = edi + 0x22C; /* 0x25051656: lea ecx, [edi + 0x22c] */ 2267 eax = MEM32(ecx); /* 0x2505165C: mov eax, dword ptr [ecx] */ 2268 edx = esi + 0x22C; /* 0x2505165E: lea edx, [esi + 0x22c] */ 2269 MEM32(edx) = eax; /* 0x25051664: mov dword ptr [edx], eax */ 2270 eax = MEM32(ecx + 0x4); /* 0x25051666: mov eax, dword ptr [ecx + 4] */ 2271 MEM32(edx + 0x4) = eax; /* 0x25051669: mov dword ptr [edx + 4], eax */ 2272 ecx = MEM32(ecx + 0x8); /* 0x2505166C: mov ecx, dword ptr [ecx + 8] */ 2273 MEM32(edx + 0x8) = ecx; /* 0x2505166F: mov dword ptr [edx + 8], ecx */ 2274 edx = MEM32(edi + 0x238); /* 0x25051672: mov edx, dword ptr [edi + 0x238] */ 2275 MEM32(esi + 0x238) = edx; /* 0x25051678: mov dword ptr [esi + 0x238], edx */ 2276 eax = MEM32(edi + 0x23C); /* 0x2505167E: mov eax, dword ptr [edi + 0x23c] */ 2277 MEM32(esi + 0x23C) = eax; /* 0x25051684: mov dword ptr [esi + 0x23c], eax */ 2278 ecx = MEM32(edi + 0x240); /* 0x2505168A: mov ecx, dword ptr [edi + 0x240] */ 2279 MEM32(esi + 0x240) = ecx; /* 0x25051690: mov dword ptr [esi + 0x240], ecx */ 2280 edx = MEM32(edi + 0x244); /* 0x25051696: mov edx, dword ptr [edi + 0x244] */ 2281 MEM32(esi + 0x244) = edx; /* 0x2505169C: mov dword ptr [esi + 0x244], edx */ 2282 eax = MEM32(edi + 0x248); /* 0x250516A2: mov eax, dword ptr [edi + 0x248] */ 2283 MEM32(esi + 0x248) = eax; /* 0x250516A8: mov dword ptr [esi + 0x248], eax */ 2284 SET_LO8(ecx, MEM8(edi + 0x24C)); /* 0x250516AE: mov cl, byte ptr [edi + 0x24c] */ 2285 MEM8(esi + 0x24C) = (uint8_t)(LO8(ecx)); /* 0x250516B4: mov byte ptr [esi + 0x24c], cl */ 2286 edx = MEM32(edi + 0x250); /* 0x250516BA: mov edx, dword ptr [edi + 0x250] */ 2287 MEM32(esi + 0x250) = edx; /* 0x250516C0: mov dword ptr [esi + 0x250], edx */ 2288 eax = MEM32(edi + 0x254); /* 0x250516C6: mov eax, dword ptr [edi + 0x254] */ 2289 MEM32(esi + 0x254) = eax; /* 0x250516CC: mov dword ptr [esi + 0x254], eax */ 2290 ecx = MEM32(edi + 0x258); /* 0x250516D2: mov ecx, dword ptr [edi + 0x258] */ 2291 MEM32(esi + 0x258) = ecx; /* 0x250516D8: mov dword ptr [esi + 0x258], ecx */ 2292 edx = MEM32(edi + 0x25C); /* 0x250516DE: mov edx, dword ptr [edi + 0x25c] */ 2293 MEM32(esi + 0x25C) = edx; /* 0x250516E4: mov dword ptr [esi + 0x25c], edx */ 2294 eax = MEM32(edi + 0x260); /* 0x250516EA: mov eax, dword ptr [edi + 0x260] */ 2295 MEM32(esi + 0x260) = eax; /* 0x250516F0: mov dword ptr [esi + 0x260], eax */ 2296 edi = POP32_VAL(esp); /* 0x250516F6: pop edi */ 2297 MEM32(esi) = 0x25153E0Cu; /* 0x250516F7: mov dword ptr [esi], 0x25153e0c */ 2298 MEM32(esi + 0x8) = 0x25153DFCu; /* 0x250516FD: mov dword ptr [esi + 8], 0x25153dfc */ 2299 MEM32(esi + 0x20) = 0x25153DECu; /* 0x25051704: mov dword ptr [esi + 0x20], 0x25153dec */ 2300 MEM32(esi + 0x38) = 0x25153DDCu; /* 0x2505170B: mov dword ptr [esi + 0x38], 0x25153ddc */ 2301 MEM32(esi + 0x50) = 0x25153DCCu; /* 0x25051712: mov dword ptr [esi + 0x50], 0x25153dcc */ 2302 MEM32(esi + 0x138) = 0x25153DBCu; /* 0x25051719: mov dword ptr [esi + 0x138], 0x25153dbc */ 2303 MEM32(esi + 0x150) = 0x25153DACu; /* 0x25051723: mov dword ptr [esi + 0x150], 0x25153dac */ 2304 eax = esi; /* 0x2505172D: mov eax, esi */ 2305 esi = POP32_VAL(esp); /* 0x2505172F: pop esi */ 2306 ebp = POP32_VAL(esp); /* 0x25051730: pop ebp */ 2307 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051731: ret 4 */ 2308 RECOMP_REGS_OUT(); 2309 } 2310 2311 void sub_25051740(void) { 2312 int _fpu_cmp = 0; 2313 uint32_t _cf = 0; 2314 int _df = 1; 2315 uint32_t _flag_k = FK_NONE; 2316 uint32_t _flag_a = 0, _flag_b = 0; 2317 uint32_t _itail_tgt = 0; 2318 RECOMP_REGS_LOCALS 2319 RECOMP_ENTER(0x25051740u); 2320 2321 L_25051740: 2322 PUSH32(esp, ebp); /* 0x25051740: push ebp */ 2323 ebp = esp; /* 0x25051741: mov ebp, esp */ 2324 PUSH32(esp, ecx); /* 0x25051743: push ecx */ 2325 PUSH32(esp, ebx); /* 0x25051744: push ebx */ 2326 ebx = MEM32(ebp + 0x8); /* 0x25051745: mov ebx, dword ptr [ebp + 8] */ 2327 /* test ebx, ebx */ /* 0x25051748: test ebx, ebx */ 2328 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2329 _cf = 0; 2330 _flag_k = FK_TEST; 2331 eax = MEM32(ebx + 0x4); /* 0x2505174A: mov eax, dword ptr [ebx + 4] */ 2332 PUSH32(esp, esi); /* 0x2505174D: push esi */ 2333 PUSH32(esp, edi); /* 0x2505174E: push edi */ 2334 edi = ecx; /* 0x2505174F: mov edi, ecx */ 2335 MEM32(ebp + (-0x4)) = edi; /* 0x25051751: mov dword ptr [ebp - 4], edi */ 2336 MEM32(edi + 0x4) = eax; /* 0x25051754: mov dword ptr [edi + 4], eax */ 2337 if (TEST_Z(_flag_a, _flag_b)) goto L_2505175E; /* 0x25051757: je 0x2505175e */ 2338 L_25051759: 2339 eax = ebx + 0x8; /* 0x25051759: lea eax, [ebx + 8] */ 2340 goto L_25051760; /* 0x2505175C: jmp 0x25051760 */ 2341 L_2505175E: 2342 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2343 eax = 0; /* 0x2505175E: xor eax, eax */ 2344 _cf = 0; 2345 _flag_k = FK_TEST; 2346 L_25051760: 2347 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2349 eax = eax + 4; /* 0x25051760: add eax, 4 */ 2350 _flag_k = FK_ADD; 2351 PUSH32(esp, eax); /* 0x25051763: push eax */ 2352 ecx = edi + 0xC; /* 0x25051764: lea ecx, [edi + 0xc] */ 2353 RECOMP_ICALL(0x2500B8C0u); /* 0x25051767: call 0x2500b8c0 */ /* not lifted */ 2354 RECOMP_FLAGS_IN(); 2355 /* test ebx, ebx */ /* 0x2505176C: test ebx, ebx */ 2356 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2357 _cf = 0; 2358 _flag_k = FK_TEST; 2359 if (TEST_Z(_flag_a, _flag_b)) goto L_25051775; /* 0x2505176E: je 0x25051775 */ 2360 L_25051770: 2361 eax = ebx + 0x20; /* 0x25051770: lea eax, [ebx + 0x20] */ 2362 goto L_25051777; /* 0x25051773: jmp 0x25051777 */ 2363 L_25051775: 2364 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2365 eax = 0; /* 0x25051775: xor eax, eax */ 2366 _cf = 0; 2367 _flag_k = FK_TEST; 2368 L_25051777: 2369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2371 eax = eax + 4; /* 0x25051777: add eax, 4 */ 2372 _flag_k = FK_ADD; 2373 PUSH32(esp, eax); /* 0x2505177A: push eax */ 2374 ecx = edi + 0x24; /* 0x2505177B: lea ecx, [edi + 0x24] */ 2375 RECOMP_ICALL(0x2500BA40u); /* 0x2505177E: call 0x2500ba40 */ /* not lifted */ 2376 RECOMP_FLAGS_IN(); 2377 /* test ebx, ebx */ /* 0x25051783: test ebx, ebx */ 2378 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2379 _cf = 0; 2380 _flag_k = FK_TEST; 2381 if (TEST_Z(_flag_a, _flag_b)) goto L_2505178C; /* 0x25051785: je 0x2505178c */ 2382 L_25051787: 2383 eax = ebx + 0x38; /* 0x25051787: lea eax, [ebx + 0x38] */ 2384 goto L_2505178E; /* 0x2505178A: jmp 0x2505178e */ 2385 L_2505178C: 2386 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2387 eax = 0; /* 0x2505178C: xor eax, eax */ 2388 _cf = 0; 2389 _flag_k = FK_TEST; 2390 L_2505178E: 2391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2393 eax = eax + 4; /* 0x2505178E: add eax, 4 */ 2394 _flag_k = FK_ADD; 2395 PUSH32(esp, eax); /* 0x25051791: push eax */ 2396 ecx = edi + 0x3C; /* 0x25051792: lea ecx, [edi + 0x3c] */ 2397 RECOMP_ICALL(0x2500BBC0u); /* 0x25051795: call 0x2500bbc0 */ /* not lifted */ 2398 RECOMP_FLAGS_IN(); 2399 /* test ebx, ebx */ /* 0x2505179A: test ebx, ebx */ 2400 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2401 _cf = 0; 2402 _flag_k = FK_TEST; 2403 if (TEST_Z(_flag_a, _flag_b)) goto L_250517A3; /* 0x2505179C: je 0x250517a3 */ 2404 L_2505179E: 2405 eax = ebx + 0x50; /* 0x2505179E: lea eax, [ebx + 0x50] */ 2406 goto L_250517A5; /* 0x250517A1: jmp 0x250517a5 */ 2407 L_250517A3: 2408 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2409 eax = 0; /* 0x250517A3: xor eax, eax */ 2410 _cf = 0; 2411 _flag_k = FK_TEST; 2412 L_250517A5: 2413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2414 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2415 eax = eax + 4; /* 0x250517A5: add eax, 4 */ 2416 _flag_k = FK_ADD; 2417 PUSH32(esp, eax); /* 0x250517A8: push eax */ 2418 ecx = edi + 0x54; /* 0x250517A9: lea ecx, [edi + 0x54] */ 2419 RECOMP_ICALL(0x2500BD40u); /* 0x250517AC: call 0x2500bd40 */ /* not lifted */ 2420 RECOMP_FLAGS_IN(); 2421 SET_LO8(ecx, MEM8(ebx + 0x68)); /* 0x250517B1: mov cl, byte ptr [ebx + 0x68] */ 2422 MEM8(edi + 0x68) = (uint8_t)(LO8(ecx)); /* 0x250517B4: mov byte ptr [edi + 0x68], cl */ 2423 SET_LO8(edx, MEM8(ebx + 0x69)); /* 0x250517B7: mov dl, byte ptr [ebx + 0x69] */ 2424 MEM8(edi + 0x69) = (uint8_t)(LO8(edx)); /* 0x250517BA: mov byte ptr [edi + 0x69], dl */ 2425 SET_LO8(eax, MEM8(ebx + 0x6A)); /* 0x250517BD: mov al, byte ptr [ebx + 0x6a] */ 2426 MEM8(edi + 0x6A) = (uint8_t)(LO8(eax)); /* 0x250517C0: mov byte ptr [edi + 0x6a], al */ 2427 SET_LO8(ecx, MEM8(ebx + 0x6B)); /* 0x250517C3: mov cl, byte ptr [ebx + 0x6b] */ 2428 MEM8(edi + 0x6B) = (uint8_t)(LO8(ecx)); /* 0x250517C6: mov byte ptr [edi + 0x6b], cl */ 2429 edx = MEM32(ebx + 0x6C); /* 0x250517C9: mov edx, dword ptr [ebx + 0x6c] */ 2430 MEM32(edi + 0x6C) = edx; /* 0x250517CC: mov dword ptr [edi + 0x6c], edx */ 2431 eax = MEM32(ebx + 0x70); /* 0x250517CF: mov eax, dword ptr [ebx + 0x70] */ 2432 MEM32(edi + 0x70) = eax; /* 0x250517D2: mov dword ptr [edi + 0x70], eax */ 2433 ecx = MEM32(ebx + 0x74); /* 0x250517D5: mov ecx, dword ptr [ebx + 0x74] */ 2434 MEM32(edi + 0x74) = ecx; /* 0x250517D8: mov dword ptr [edi + 0x74], ecx */ 2435 eax = edi + 0x78; /* 0x250517DB: lea eax, [edi + 0x78] */ 2436 edx = ebx + 0x78; /* 0x250517DE: lea edx, [ebx + 0x78] */ 2437 ecx = MEM32(edx); /* 0x250517E1: mov ecx, dword ptr [edx] */ 2438 MEM32(eax) = ecx; /* 0x250517E3: mov dword ptr [eax], ecx */ 2439 ecx = MEM32(edx + 0x4); /* 0x250517E5: mov ecx, dword ptr [edx + 4] */ 2440 MEM32(eax + 0x4) = ecx; /* 0x250517E8: mov dword ptr [eax + 4], ecx */ 2441 edx = MEM32(edx + 0x8); /* 0x250517EB: mov edx, dword ptr [edx + 8] */ 2442 MEM32(eax + 0x8) = edx; /* 0x250517EE: mov dword ptr [eax + 8], edx */ 2443 ecx = edi + 0x84; /* 0x250517F1: lea ecx, [edi + 0x84] */ 2444 eax = ebx + 0x84; /* 0x250517F7: lea eax, [ebx + 0x84] */ 2445 edx = MEM32(eax); /* 0x250517FD: mov edx, dword ptr [eax] */ 2446 MEM32(ecx) = edx; /* 0x250517FF: mov dword ptr [ecx], edx */ 2447 edx = MEM32(eax + 0x4); /* 0x25051801: mov edx, dword ptr [eax + 4] */ 2448 MEM32(ecx + 0x4) = edx; /* 0x25051804: mov dword ptr [ecx + 4], edx */ 2449 edx = MEM32(eax + 0x8); /* 0x25051807: mov edx, dword ptr [eax + 8] */ 2450 MEM32(ecx + 0x8) = edx; /* 0x2505180A: mov dword ptr [ecx + 8], edx */ 2451 eax = MEM32(eax + 0xC); /* 0x2505180D: mov eax, dword ptr [eax + 0xc] */ 2452 MEM32(ecx + 0xC) = eax; /* 0x25051810: mov dword ptr [ecx + 0xc], eax */ 2453 ecx = MEM32(ebx + 0x94); /* 0x25051813: mov ecx, dword ptr [ebx + 0x94] */ 2454 eax = MEM32(ebp + (-0x4)); /* 0x25051819: mov eax, dword ptr [ebp - 4] */ 2455 MEM32(edi + 0x94) = ecx; /* 0x2505181C: mov dword ptr [edi + 0x94], ecx */ 2456 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x98u); 2457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2458 edi = edi + 0x98u; /* 0x25051822: add edi, 0x98 */ 2459 _flag_k = FK_ADD; 2460 /* test ebx, ebx */ /* 0x25051828: test ebx, ebx */ 2461 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2462 _cf = 0; 2463 _flag_k = FK_TEST; 2464 esi = ebx + 0x98; /* 0x2505182A: lea esi, [ebx + 0x98] */ 2465 ecx = 0x10u; /* 0x25051830: mov ecx, 0x10 */ 2466 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25051835: 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; } 2467 esi = ebx + 0xD8; /* 0x25051837: lea esi, [ebx + 0xd8] */ 2468 edi = eax + 0xD8; /* 0x2505183D: lea edi, [eax + 0xd8] */ 2469 ecx = 0x10u; /* 0x25051843: mov ecx, 0x10 */ 2470 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25051848: 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; } 2471 edx = MEM32(ebx + 0x118); /* 0x2505184A: mov edx, dword ptr [ebx + 0x118] */ 2472 MEM32(eax + 0x118) = edx; /* 0x25051850: mov dword ptr [eax + 0x118], edx */ 2473 ecx = MEM32(ebx + 0x11C); /* 0x25051856: mov ecx, dword ptr [ebx + 0x11c] */ 2474 MEM32(eax + 0x11C) = ecx; /* 0x2505185C: mov dword ptr [eax + 0x11c], ecx */ 2475 SET_LO8(edx, MEM8(ebx + 0x120)); /* 0x25051862: mov dl, byte ptr [ebx + 0x120] */ 2476 MEM8(eax + 0x120) = (uint8_t)(LO8(edx)); /* 0x25051868: mov byte ptr [eax + 0x120], dl */ 2477 ecx = MEM32(ebx + 0x124); /* 0x2505186E: mov ecx, dword ptr [ebx + 0x124] */ 2478 MEM32(eax + 0x124) = ecx; /* 0x25051874: mov dword ptr [eax + 0x124], ecx */ 2479 edx = MEM32(ebx + 0x128); /* 0x2505187A: mov edx, dword ptr [ebx + 0x128] */ 2480 MEM32(eax + 0x128) = edx; /* 0x25051880: mov dword ptr [eax + 0x128], edx */ 2481 ecx = MEM32(ebx + 0x12C); /* 0x25051886: mov ecx, dword ptr [ebx + 0x12c] */ 2482 MEM32(eax + 0x12C) = ecx; /* 0x2505188C: mov dword ptr [eax + 0x12c], ecx */ 2483 SET_LO8(edx, MEM8(ebx + 0x130)); /* 0x25051892: mov dl, byte ptr [ebx + 0x130] */ 2484 MEM8(eax + 0x130) = (uint8_t)(LO8(edx)); /* 0x25051898: mov byte ptr [eax + 0x130], dl */ 2485 SET_LO8(ecx, MEM8(ebx + 0x131)); /* 0x2505189E: mov cl, byte ptr [ebx + 0x131] */ 2486 MEM8(eax + 0x131) = (uint8_t)(LO8(ecx)); /* 0x250518A4: mov byte ptr [eax + 0x131], cl */ 2487 SET_LO8(edx, MEM8(ebx + 0x132)); /* 0x250518AA: mov dl, byte ptr [ebx + 0x132] */ 2488 MEM8(eax + 0x132) = (uint8_t)(LO8(edx)); /* 0x250518B0: mov byte ptr [eax + 0x132], dl */ 2489 ecx = MEM32(ebx + 0x134); /* 0x250518B6: mov ecx, dword ptr [ebx + 0x134] */ 2490 MEM32(eax + 0x134) = ecx; /* 0x250518BC: mov dword ptr [eax + 0x134], ecx */ 2491 if (TEST_Z(_flag_a, _flag_b)) goto L_250518CC; /* 0x250518C2: je 0x250518cc */ 2492 L_250518C4: 2493 ecx = ebx + 0x138; /* 0x250518C4: lea ecx, [ebx + 0x138] */ 2494 goto L_250518CE; /* 0x250518CA: jmp 0x250518ce */ 2495 L_250518CC: 2496 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2497 ecx = 0; /* 0x250518CC: xor ecx, ecx */ 2498 _cf = 0; 2499 _flag_k = FK_TEST; 2500 L_250518CE: 2501 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2503 ecx = ecx + 4; /* 0x250518CE: add ecx, 4 */ 2504 _flag_k = FK_ADD; 2505 PUSH32(esp, ecx); /* 0x250518D1: push ecx */ 2506 ecx = eax + 0x13C; /* 0x250518D2: lea ecx, [eax + 0x13c] */ 2507 RECOMP_ICALL(0x25009590u); /* 0x250518D8: call 0x25009590 */ /* not lifted */ 2508 RECOMP_FLAGS_IN(); 2509 /* test ebx, ebx */ /* 0x250518DD: test ebx, ebx */ 2510 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2511 _cf = 0; 2512 _flag_k = FK_TEST; 2513 if (TEST_Z(_flag_a, _flag_b)) goto L_250518E9; /* 0x250518DF: je 0x250518e9 */ 2514 L_250518E1: 2515 eax = ebx + 0x150; /* 0x250518E1: lea eax, [ebx + 0x150] */ 2516 goto L_250518EB; /* 0x250518E7: jmp 0x250518eb */ 2517 L_250518E9: 2518 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2519 eax = 0; /* 0x250518E9: xor eax, eax */ 2520 _cf = 0; 2521 _flag_k = FK_TEST; 2522 L_250518EB: 2523 esi = MEM32(ebp + (-0x4)); /* 0x250518EB: mov esi, dword ptr [ebp - 4] */ 2524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2526 eax = eax + 4; /* 0x250518EE: add eax, 4 */ 2527 _flag_k = FK_ADD; 2528 PUSH32(esp, eax); /* 0x250518F1: push eax */ 2529 ecx = esi + 0x154; /* 0x250518F2: lea ecx, [esi + 0x154] */ 2530 RECOMP_ICALL(0x25009710u); /* 0x250518F8: call 0x25009710 */ /* not lifted */ 2531 RECOMP_FLAGS_IN(); 2532 edx = MEM32(ebx + 0x168); /* 0x250518FD: mov edx, dword ptr [ebx + 0x168] */ 2533 MEM32(esi + 0x168) = edx; /* 0x25051903: mov dword ptr [esi + 0x168], edx */ 2534 edx = ebx; /* 0x25051909: mov edx, ebx */ 2535 ecx = ebx + 0x16C; /* 0x2505190B: lea ecx, [ebx + 0x16c] */ 2536 eax = esi + 0x170; /* 0x25051911: lea eax, [esi + 0x170] */ 2537 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 2538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2539 edx = edx - esi; /* 0x25051917: sub edx, esi */ 2540 _flag_k = FK_CMP; 2541 MEM32(ebp + 0x8) = 8; /* 0x25051919: mov dword ptr [ebp + 8], 8 */ 2542 L_25051920: 2543 edi = MEM32(ecx); /* 0x25051920: mov edi, dword ptr [ecx] */ 2544 MEM32(eax + (-0x4)) = edi; /* 0x25051922: mov dword ptr [eax - 4], edi */ 2545 edi = MEM32(edx + eax); /* 0x25051925: mov edi, dword ptr [edx + eax] */ 2546 MEM32(eax) = edi; /* 0x25051928: mov dword ptr [eax], edi */ 2547 edi = MEM32(ebp + 0x8); /* 0x2505192A: mov edi, dword ptr [ebp + 8] */ 2548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 2549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2550 ecx = ecx + 8; /* 0x2505192D: add ecx, 8 */ 2551 _flag_k = FK_ADD; 2552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2554 eax = eax + 8; /* 0x25051930: add eax, 8 */ 2555 _flag_k = FK_ADD; 2556 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2557 edi = edi - 1; /* 0x25051933: dec edi */ 2558 _flag_k = FK_DEC; 2559 MEM32(ebp + 0x8) = edi; /* 0x25051934: mov dword ptr [ebp + 8], edi */ 2560 RECOMP_BACKEDGE(); 2561 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25051920; /* 0x25051937: jne 0x25051920 */ 2562 L_25051939: 2563 SET_LO8(eax, MEM8(ebx + 0x1AC)); /* 0x25051939: mov al, byte ptr [ebx + 0x1ac] */ 2564 MEM8(esi + 0x1AC) = (uint8_t)(LO8(eax)); /* 0x2505193F: mov byte ptr [esi + 0x1ac], al */ 2565 SET_LO8(ecx, MEM8(ebx + 0x1AD)); /* 0x25051945: mov cl, byte ptr [ebx + 0x1ad] */ 2566 MEM8(esi + 0x1AD) = (uint8_t)(LO8(ecx)); /* 0x2505194B: mov byte ptr [esi + 0x1ad], cl */ 2567 SET_LO8(edx, MEM8(ebx + 0x1AE)); /* 0x25051951: mov dl, byte ptr [ebx + 0x1ae] */ 2568 MEM8(esi + 0x1AE) = (uint8_t)(LO8(edx)); /* 0x25051957: mov byte ptr [esi + 0x1ae], dl */ 2569 eax = MEM32(ebx + 0x1B0); /* 0x2505195D: mov eax, dword ptr [ebx + 0x1b0] */ 2570 MEM32(esi + 0x1B0) = eax; /* 0x25051963: mov dword ptr [esi + 0x1b0], eax */ 2571 ecx = MEM32(ebx + 0x1B4); /* 0x25051969: mov ecx, dword ptr [ebx + 0x1b4] */ 2572 edx = ebx + 0x1B8; /* 0x2505196F: lea edx, [ebx + 0x1b8] */ 2573 MEM32(esi + 0x1B4) = ecx; /* 0x25051975: mov dword ptr [esi + 0x1b4], ecx */ 2574 PUSH32(esp, edx); /* 0x2505197B: push edx */ 2575 ecx = esi + 0x1B8; /* 0x2505197C: lea ecx, [esi + 0x1b8] */ 2576 RECOMP_ICALL(0x25005990u); /* 0x25051982: call 0x25005990 */ /* not lifted */ 2577 RECOMP_FLAGS_IN(); 2578 eax = MEM32(ebx + 0x1C8); /* 0x25051987: mov eax, dword ptr [ebx + 0x1c8] */ 2579 MEM32(esi + 0x1C8) = eax; /* 0x2505198D: mov dword ptr [esi + 0x1c8], eax */ 2580 SET_LO8(ecx, MEM8(ebx + 0x1CC)); /* 0x25051993: mov cl, byte ptr [ebx + 0x1cc] */ 2581 MEM8(esi + 0x1CC) = (uint8_t)(LO8(ecx)); /* 0x25051999: mov byte ptr [esi + 0x1cc], cl */ 2582 edx = MEM32(ebx + 0x1D0); /* 0x2505199F: mov edx, dword ptr [ebx + 0x1d0] */ 2583 MEM32(esi + 0x1D0) = edx; /* 0x250519A5: mov dword ptr [esi + 0x1d0], edx */ 2584 eax = MEM32(ebx + 0x1D4); /* 0x250519AB: mov eax, dword ptr [ebx + 0x1d4] */ 2585 MEM32(esi + 0x1D4) = eax; /* 0x250519B1: mov dword ptr [esi + 0x1d4], eax */ 2586 ecx = MEM32(ebx + 0x1D8); /* 0x250519B7: mov ecx, dword ptr [ebx + 0x1d8] */ 2587 MEM32(esi + 0x1D8) = ecx; /* 0x250519BD: mov dword ptr [esi + 0x1d8], ecx */ 2588 edx = MEM32(ebx + 0x1DC); /* 0x250519C3: mov edx, dword ptr [ebx + 0x1dc] */ 2589 MEM32(esi + 0x1DC) = edx; /* 0x250519C9: mov dword ptr [esi + 0x1dc], edx */ 2590 eax = MEM32(ebx + 0x1E0); /* 0x250519CF: mov eax, dword ptr [ebx + 0x1e0] */ 2591 MEM32(esi + 0x1E0) = eax; /* 0x250519D5: mov dword ptr [esi + 0x1e0], eax */ 2592 ecx = MEM32(ebx + 0x1E4); /* 0x250519DB: mov ecx, dword ptr [ebx + 0x1e4] */ 2593 MEM32(esi + 0x1E4) = ecx; /* 0x250519E1: mov dword ptr [esi + 0x1e4], ecx */ 2594 edx = MEM32(ebx + 0x1E8); /* 0x250519E7: mov edx, dword ptr [ebx + 0x1e8] */ 2595 MEM32(esi + 0x1E8) = edx; /* 0x250519ED: mov dword ptr [esi + 0x1e8], edx */ 2596 eax = MEM32(ebx + 0x1EC); /* 0x250519F3: mov eax, dword ptr [ebx + 0x1ec] */ 2597 MEM32(esi + 0x1EC) = eax; /* 0x250519F9: mov dword ptr [esi + 0x1ec], eax */ 2598 ecx = MEM32(ebx + 0x1F0); /* 0x250519FF: mov ecx, dword ptr [ebx + 0x1f0] */ 2599 MEM32(esi + 0x1F0) = ecx; /* 0x25051A05: mov dword ptr [esi + 0x1f0], ecx */ 2600 edx = MEM32(ebx + 0x1F4); /* 0x25051A0B: mov edx, dword ptr [ebx + 0x1f4] */ 2601 MEM32(esi + 0x1F4) = edx; /* 0x25051A11: mov dword ptr [esi + 0x1f4], edx */ 2602 eax = MEM32(ebx + 0x1F8); /* 0x25051A17: mov eax, dword ptr [ebx + 0x1f8] */ 2603 MEM32(esi + 0x1F8) = eax; /* 0x25051A1D: mov dword ptr [esi + 0x1f8], eax */ 2604 ecx = ebx + 0x1FC; /* 0x25051A23: lea ecx, [ebx + 0x1fc] */ 2605 eax = MEM32(ecx); /* 0x25051A29: mov eax, dword ptr [ecx] */ 2606 edx = esi + 0x1FC; /* 0x25051A2B: lea edx, [esi + 0x1fc] */ 2607 MEM32(edx) = eax; /* 0x25051A31: mov dword ptr [edx], eax */ 2608 eax = MEM32(ecx + 0x4); /* 0x25051A33: mov eax, dword ptr [ecx + 4] */ 2609 MEM32(edx + 0x4) = eax; /* 0x25051A36: mov dword ptr [edx + 4], eax */ 2610 ecx = MEM32(ecx + 0x8); /* 0x25051A39: mov ecx, dword ptr [ecx + 8] */ 2611 MEM32(edx + 0x8) = ecx; /* 0x25051A3C: mov dword ptr [edx + 8], ecx */ 2612 edx = ebx + 0x208; /* 0x25051A3F: lea edx, [ebx + 0x208] */ 2613 ecx = MEM32(edx); /* 0x25051A45: mov ecx, dword ptr [edx] */ 2614 eax = esi + 0x208; /* 0x25051A47: lea eax, [esi + 0x208] */ 2615 MEM32(eax) = ecx; /* 0x25051A4D: mov dword ptr [eax], ecx */ 2616 ecx = MEM32(edx + 0x4); /* 0x25051A4F: mov ecx, dword ptr [edx + 4] */ 2617 MEM32(eax + 0x4) = ecx; /* 0x25051A52: mov dword ptr [eax + 4], ecx */ 2618 edx = MEM32(edx + 0x8); /* 0x25051A55: mov edx, dword ptr [edx + 8] */ 2619 MEM32(eax + 0x8) = edx; /* 0x25051A58: mov dword ptr [eax + 8], edx */ 2620 eax = MEM32(ebx + 0x214); /* 0x25051A5B: mov eax, dword ptr [ebx + 0x214] */ 2621 MEM32(esi + 0x214) = eax; /* 0x25051A61: mov dword ptr [esi + 0x214], eax */ 2622 ecx = MEM32(ebx + 0x218); /* 0x25051A67: mov ecx, dword ptr [ebx + 0x218] */ 2623 MEM32(esi + 0x218) = ecx; /* 0x25051A6D: mov dword ptr [esi + 0x218], ecx */ 2624 edx = MEM32(ebx + 0x21C); /* 0x25051A73: mov edx, dword ptr [ebx + 0x21c] */ 2625 MEM32(esi + 0x21C) = edx; /* 0x25051A79: mov dword ptr [esi + 0x21c], edx */ 2626 eax = ebx + 0x220; /* 0x25051A7F: lea eax, [ebx + 0x220] */ 2627 edx = MEM32(eax); /* 0x25051A85: mov edx, dword ptr [eax] */ 2628 ecx = esi + 0x220; /* 0x25051A87: lea ecx, [esi + 0x220] */ 2629 MEM32(ecx) = edx; /* 0x25051A8D: mov dword ptr [ecx], edx */ 2630 edx = MEM32(eax + 0x4); /* 0x25051A8F: mov edx, dword ptr [eax + 4] */ 2631 MEM32(ecx + 0x4) = edx; /* 0x25051A92: mov dword ptr [ecx + 4], edx */ 2632 eax = MEM32(eax + 0x8); /* 0x25051A95: mov eax, dword ptr [eax + 8] */ 2633 MEM32(ecx + 0x8) = eax; /* 0x25051A98: mov dword ptr [ecx + 8], eax */ 2634 ecx = ebx + 0x22C; /* 0x25051A9B: lea ecx, [ebx + 0x22c] */ 2635 eax = MEM32(ecx); /* 0x25051AA1: mov eax, dword ptr [ecx] */ 2636 edx = esi + 0x22C; /* 0x25051AA3: lea edx, [esi + 0x22c] */ 2637 MEM32(edx) = eax; /* 0x25051AA9: mov dword ptr [edx], eax */ 2638 eax = MEM32(ecx + 0x4); /* 0x25051AAB: mov eax, dword ptr [ecx + 4] */ 2639 MEM32(edx + 0x4) = eax; /* 0x25051AAE: mov dword ptr [edx + 4], eax */ 2640 ecx = MEM32(ecx + 0x8); /* 0x25051AB1: mov ecx, dword ptr [ecx + 8] */ 2641 MEM32(edx + 0x8) = ecx; /* 0x25051AB4: mov dword ptr [edx + 8], ecx */ 2642 edx = MEM32(ebx + 0x238); /* 0x25051AB7: mov edx, dword ptr [ebx + 0x238] */ 2643 MEM32(esi + 0x238) = edx; /* 0x25051ABD: mov dword ptr [esi + 0x238], edx */ 2644 eax = MEM32(ebx + 0x23C); /* 0x25051AC3: mov eax, dword ptr [ebx + 0x23c] */ 2645 MEM32(esi + 0x23C) = eax; /* 0x25051AC9: mov dword ptr [esi + 0x23c], eax */ 2646 ecx = MEM32(ebx + 0x240); /* 0x25051ACF: mov ecx, dword ptr [ebx + 0x240] */ 2647 MEM32(esi + 0x240) = ecx; /* 0x25051AD5: mov dword ptr [esi + 0x240], ecx */ 2648 edx = MEM32(ebx + 0x244); /* 0x25051ADB: mov edx, dword ptr [ebx + 0x244] */ 2649 MEM32(esi + 0x244) = edx; /* 0x25051AE1: mov dword ptr [esi + 0x244], edx */ 2650 eax = MEM32(ebx + 0x248); /* 0x25051AE7: mov eax, dword ptr [ebx + 0x248] */ 2651 MEM32(esi + 0x248) = eax; /* 0x25051AED: mov dword ptr [esi + 0x248], eax */ 2652 SET_LO8(ecx, MEM8(ebx + 0x24C)); /* 0x25051AF3: mov cl, byte ptr [ebx + 0x24c] */ 2653 MEM8(esi + 0x24C) = (uint8_t)(LO8(ecx)); /* 0x25051AF9: mov byte ptr [esi + 0x24c], cl */ 2654 edx = MEM32(ebx + 0x250); /* 0x25051AFF: mov edx, dword ptr [ebx + 0x250] */ 2655 MEM32(esi + 0x250) = edx; /* 0x25051B05: mov dword ptr [esi + 0x250], edx */ 2656 eax = MEM32(ebx + 0x254); /* 0x25051B0B: mov eax, dword ptr [ebx + 0x254] */ 2657 MEM32(esi + 0x254) = eax; /* 0x25051B11: mov dword ptr [esi + 0x254], eax */ 2658 ecx = MEM32(ebx + 0x258); /* 0x25051B17: mov ecx, dword ptr [ebx + 0x258] */ 2659 MEM32(esi + 0x258) = ecx; /* 0x25051B1D: mov dword ptr [esi + 0x258], ecx */ 2660 edx = MEM32(ebx + 0x25C); /* 0x25051B23: mov edx, dword ptr [ebx + 0x25c] */ 2661 MEM32(esi + 0x25C) = edx; /* 0x25051B29: mov dword ptr [esi + 0x25c], edx */ 2662 eax = MEM32(ebx + 0x260); /* 0x25051B2F: mov eax, dword ptr [ebx + 0x260] */ 2663 MEM32(esi + 0x260) = eax; /* 0x25051B35: mov dword ptr [esi + 0x260], eax */ 2664 edi = POP32_VAL(esp); /* 0x25051B3B: pop edi */ 2665 eax = esi; /* 0x25051B3C: mov eax, esi */ 2666 esi = POP32_VAL(esp); /* 0x25051B3E: pop esi */ 2667 ebx = POP32_VAL(esp); /* 0x25051B3F: pop ebx */ 2668 esp = ebp; /* 0x25051B40: mov esp, ebp */ 2669 ebp = POP32_VAL(esp); /* 0x25051B42: pop ebp */ 2670 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B43: ret 4 */ 2671 RECOMP_REGS_OUT(); 2672 } 2673 2674 void sub_25051B50(void) { 2675 int _fpu_cmp = 0; 2676 uint32_t _cf = 0; 2677 int _df = 1; 2678 uint32_t _flag_k = FK_NONE; 2679 uint32_t _flag_a = 0, _flag_b = 0; 2680 uint32_t _itail_tgt = 0; 2681 RECOMP_REGS_LOCALS 2682 RECOMP_ENTER(0x25051B50u); 2683 2684 L_25051B50: 2685 PUSH32(esp, ebp); /* 0x25051B50: push ebp */ 2686 ebp = esp; /* 0x25051B51: mov ebp, esp */ 2687 PUSH32(esp, ebx); /* 0x25051B53: push ebx */ 2688 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25051B54: mov bl, byte ptr [ebp + 8] */ 2689 /* test LO8(ebx), 2 */ /* 0x25051B57: test bl, 2 */ 2690 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2691 _cf = 0; 2692 _flag_k = FK_NARROW(FK_TEST, 24); 2693 PUSH32(esp, esi); /* 0x25051B5A: push esi */ 2694 esi = ecx; /* 0x25051B5B: mov esi, ecx */ 2695 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B8E; /* 0x25051B5D: je 0x25051b8e */ 2696 L_25051B5F: 2697 eax = MEM32(esi + (-0x4)); /* 0x25051B5F: mov eax, dword ptr [esi - 4] */ 2698 PUSH32(esp, edi); /* 0x25051B62: push edi */ 2699 PUSH32(esp, 0x25086720u); /* 0x25051B63: push 0x25086720 */ 2700 edi = esi + (-0x4); /* 0x25051B68: lea edi, [esi - 4] */ 2701 PUSH32(esp, eax); /* 0x25051B6B: push eax */ 2702 PUSH32(esp, 0x264u); /* 0x25051B6C: push 0x264 */ 2703 PUSH32(esp, esi); /* 0x25051B71: push esi */ 2704 RECOMP_ICALL(0x25137F92u); /* 0x25051B72: call 0x25137f92 */ /* not lifted */ 2705 RECOMP_FLAGS_IN(); 2706 /* test LO8(ebx), 1 */ /* 0x25051B77: test bl, 1 */ 2707 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2708 _cf = 0; 2709 _flag_k = FK_NARROW(FK_TEST, 24); 2710 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B85; /* 0x25051B7A: je 0x25051b85 */ 2711 L_25051B7C: 2712 PUSH32(esp, edi); /* 0x25051B7C: push edi */ 2713 RECOMP_ICALL(0x25137EECu); /* 0x25051B7D: call 0x25137eec */ /* not lifted */ 2714 RECOMP_FLAGS_IN(); 2715 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2717 esp = esp + 4; /* 0x25051B82: add esp, 4 */ 2718 _flag_k = FK_ADD; 2719 L_25051B85: 2720 eax = edi; /* 0x25051B85: mov eax, edi */ 2721 edi = POP32_VAL(esp); /* 0x25051B87: pop edi */ 2722 esi = POP32_VAL(esp); /* 0x25051B88: pop esi */ 2723 ebx = POP32_VAL(esp); /* 0x25051B89: pop ebx */ 2724 ebp = POP32_VAL(esp); /* 0x25051B8A: pop ebp */ 2725 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B8B: ret 4 */ 2726 L_25051B8E: 2727 ecx = esi; /* 0x25051B8E: mov ecx, esi */ 2728 RECOMP_ICALL(0x25086720u); /* 0x25051B90: call 0x25086720 */ /* not lifted */ 2729 RECOMP_FLAGS_IN(); 2730 /* test LO8(ebx), 1 */ /* 0x25051B95: test bl, 1 */ 2731 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2732 _cf = 0; 2733 _flag_k = FK_NARROW(FK_TEST, 24); 2734 if (TEST_Z(_flag_a, _flag_b)) goto L_25051BA3; /* 0x25051B98: je 0x25051ba3 */ 2735 L_25051B9A: 2736 PUSH32(esp, esi); /* 0x25051B9A: push esi */ 2737 RECOMP_ICALL(0x25137EECu); /* 0x25051B9B: call 0x25137eec */ /* not lifted */ 2738 RECOMP_FLAGS_IN(); 2739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2741 esp = esp + 4; /* 0x25051BA0: add esp, 4 */ 2742 _flag_k = FK_ADD; 2743 L_25051BA3: 2744 eax = esi; /* 0x25051BA3: mov eax, esi */ 2745 esi = POP32_VAL(esp); /* 0x25051BA5: pop esi */ 2746 ebx = POP32_VAL(esp); /* 0x25051BA6: pop ebx */ 2747 ebp = POP32_VAL(esp); /* 0x25051BA7: pop ebp */ 2748 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051BA8: ret 4 */ 2749 RECOMP_REGS_OUT(); 2750 } 2751 2752 void sub_25051BB0(void) { 2753 int _fpu_cmp = 0; 2754 uint32_t _cf = 0; 2755 int _df = 1; 2756 uint32_t _flag_k = FK_NONE; 2757 uint32_t _flag_a = 0, _flag_b = 0; 2758 uint32_t _itail_tgt = 0; 2759 RECOMP_REGS_LOCALS 2760 RECOMP_ENTER(0x25051BB0u); 2761 2762 L_25051BB0: 2763 PUSH32(esp, ebp); /* 0x25051BB0: push ebp */ 2764 ebp = esp; /* 0x25051BB1: mov ebp, esp */ 2765 PUSH32(esp, esi); /* 0x25051BB3: push esi */ 2766 PUSH32(esp, edi); /* 0x25051BB4: push edi */ 2767 edi = MEM32(ebp + 0x8); /* 0x25051BB5: mov edi, dword ptr [ebp + 8] */ 2768 esi = ecx; /* 0x25051BB8: mov esi, ecx */ 2769 PUSH32(esp, edi); /* 0x25051BBA: push edi */ 2770 RECOMP_ICALL(0x250DAB70u); /* 0x25051BBB: call 0x250dab70 */ /* not lifted */ 2771 RECOMP_FLAGS_IN(); 2772 eax = MEM32(edi + 0x1D4); /* 0x25051BC0: mov eax, dword ptr [edi + 0x1d4] */ 2773 MEM32(esi + 0x1D4) = eax; /* 0x25051BC6: mov dword ptr [esi + 0x1d4], eax */ 2774 ecx = MEM32(edi + 0x1D8); /* 0x25051BCC: mov ecx, dword ptr [edi + 0x1d8] */ 2775 MEM32(esi + 0x1D8) = ecx; /* 0x25051BD2: mov dword ptr [esi + 0x1d8], ecx */ 2776 edx = MEM32(edi + 0x1DC); /* 0x25051BD8: mov edx, dword ptr [edi + 0x1dc] */ 2777 MEM32(esi + 0x1DC) = edx; /* 0x25051BDE: mov dword ptr [esi + 0x1dc], edx */ 2778 eax = MEM32(edi + 0x1E0); /* 0x25051BE4: mov eax, dword ptr [edi + 0x1e0] */ 2779 MEM32(esi + 0x1E0) = eax; /* 0x25051BEA: mov dword ptr [esi + 0x1e0], eax */ 2780 ecx = MEM32(edi + 0x1E4); /* 0x25051BF0: mov ecx, dword ptr [edi + 0x1e4] */ 2781 MEM32(esi + 0x1E4) = ecx; /* 0x25051BF6: mov dword ptr [esi + 0x1e4], ecx */ 2782 edx = MEM32(edi + 0x1E8); /* 0x25051BFC: mov edx, dword ptr [edi + 0x1e8] */ 2783 MEM32(esi + 0x1E8) = edx; /* 0x25051C02: mov dword ptr [esi + 0x1e8], edx */ 2784 eax = MEM32(edi + 0x1EC); /* 0x25051C08: mov eax, dword ptr [edi + 0x1ec] */ 2785 MEM32(esi + 0x1EC) = eax; /* 0x25051C0E: mov dword ptr [esi + 0x1ec], eax */ 2786 ecx = MEM32(edi + 0x1F0); /* 0x25051C14: mov ecx, dword ptr [edi + 0x1f0] */ 2787 MEM32(esi + 0x1F0) = ecx; /* 0x25051C1A: mov dword ptr [esi + 0x1f0], ecx */ 2788 edx = MEM32(edi + 0x1F4); /* 0x25051C20: mov edx, dword ptr [edi + 0x1f4] */ 2789 MEM32(esi + 0x1F4) = edx; /* 0x25051C26: mov dword ptr [esi + 0x1f4], edx */ 2790 eax = MEM32(edi + 0x1F8); /* 0x25051C2C: mov eax, dword ptr [edi + 0x1f8] */ 2791 MEM32(esi + 0x1F8) = eax; /* 0x25051C32: mov dword ptr [esi + 0x1f8], eax */ 2792 SET_LO8(ecx, MEM8(edi + 0x1FC)); /* 0x25051C38: mov cl, byte ptr [edi + 0x1fc] */ 2793 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ecx)); /* 0x25051C3E: mov byte ptr [esi + 0x1fc], cl */ 2794 edx = MEM32(edi + 0x200); /* 0x25051C44: mov edx, dword ptr [edi + 0x200] */ 2795 MEM32(esi + 0x200) = edx; /* 0x25051C4A: mov dword ptr [esi + 0x200], edx */ 2796 eax = edi + 0x204; /* 0x25051C50: lea eax, [edi + 0x204] */ 2797 edx = MEM32(eax); /* 0x25051C56: mov edx, dword ptr [eax] */ 2798 ecx = esi + 0x204; /* 0x25051C58: lea ecx, [esi + 0x204] */ 2799 MEM32(ecx) = edx; /* 0x25051C5E: mov dword ptr [ecx], edx */ 2800 edx = MEM32(eax + 0x4); /* 0x25051C60: mov edx, dword ptr [eax + 4] */ 2801 MEM32(ecx + 0x4) = edx; /* 0x25051C63: mov dword ptr [ecx + 4], edx */ 2802 eax = MEM32(eax + 0x8); /* 0x25051C66: mov eax, dword ptr [eax + 8] */ 2803 MEM32(ecx + 0x8) = eax; /* 0x25051C69: mov dword ptr [ecx + 8], eax */ 2804 ecx = MEM32(edi + 0x210); /* 0x25051C6C: mov ecx, dword ptr [edi + 0x210] */ 2805 MEM32(esi + 0x210) = ecx; /* 0x25051C72: mov dword ptr [esi + 0x210], ecx */ 2806 SET_LO8(edx, MEM8(edi + 0x214)); /* 0x25051C78: mov dl, byte ptr [edi + 0x214] */ 2807 MEM8(esi + 0x214) = (uint8_t)(LO8(edx)); /* 0x25051C7E: mov byte ptr [esi + 0x214], dl */ 2808 eax = MEM32(edi + 0x218); /* 0x25051C84: mov eax, dword ptr [edi + 0x218] */ 2809 MEM32(esi + 0x218) = eax; /* 0x25051C8A: mov dword ptr [esi + 0x218], eax */ 2810 ecx = MEM32(edi + 0x21C); /* 0x25051C90: mov ecx, dword ptr [edi + 0x21c] */ 2811 MEM32(esi + 0x21C) = ecx; /* 0x25051C96: mov dword ptr [esi + 0x21c], ecx */ 2812 edx = MEM32(edi + 0x220); /* 0x25051C9C: mov edx, dword ptr [edi + 0x220] */ 2813 MEM32(esi + 0x220) = edx; /* 0x25051CA2: mov dword ptr [esi + 0x220], edx */ 2814 MEM32(esi) = 0x25152700u; /* 0x25051CA8: mov dword ptr [esi], 0x25152700 */ 2815 MEM32(esi + 0x8) = 0x251526F0u; /* 0x25051CAE: mov dword ptr [esi + 8], 0x251526f0 */ 2816 MEM32(esi + 0x20) = 0x251526E0u; /* 0x25051CB5: mov dword ptr [esi + 0x20], 0x251526e0 */ 2817 MEM32(esi + 0x38) = 0x251526D0u; /* 0x25051CBC: mov dword ptr [esi + 0x38], 0x251526d0 */ 2818 MEM32(esi + 0x50) = 0x251526C0u; /* 0x25051CC3: mov dword ptr [esi + 0x50], 0x251526c0 */ 2819 MEM32(esi + 0x138) = 0x251526B0u; /* 0x25051CCA: mov dword ptr [esi + 0x138], 0x251526b0 */ 2820 MEM32(esi + 0x150) = 0x251526A0u; /* 0x25051CD4: mov dword ptr [esi + 0x150], 0x251526a0 */ 2821 eax = edi + 0x224; /* 0x25051CDE: lea eax, [edi + 0x224] */ 2822 edx = MEM32(eax); /* 0x25051CE4: mov edx, dword ptr [eax] */ 2823 ecx = esi + 0x224; /* 0x25051CE6: lea ecx, [esi + 0x224] */ 2824 MEM32(ecx) = edx; /* 0x25051CEC: mov dword ptr [ecx], edx */ 2825 edx = MEM32(eax + 0x4); /* 0x25051CEE: mov edx, dword ptr [eax + 4] */ 2826 MEM32(ecx + 0x4) = edx; /* 0x25051CF1: mov dword ptr [ecx + 4], edx */ 2827 eax = MEM32(eax + 0x8); /* 0x25051CF4: mov eax, dword ptr [eax + 8] */ 2828 MEM32(ecx + 0x8) = eax; /* 0x25051CF7: mov dword ptr [ecx + 8], eax */ 2829 ecx = edi + 0x230; /* 0x25051CFA: lea ecx, [edi + 0x230] */ 2830 eax = MEM32(ecx); /* 0x25051D00: mov eax, dword ptr [ecx] */ 2831 edx = esi + 0x230; /* 0x25051D02: lea edx, [esi + 0x230] */ 2832 MEM32(edx) = eax; /* 0x25051D08: mov dword ptr [edx], eax */ 2833 eax = MEM32(ecx + 0x4); /* 0x25051D0A: mov eax, dword ptr [ecx + 4] */ 2834 MEM32(edx + 0x4) = eax; /* 0x25051D0D: mov dword ptr [edx + 4], eax */ 2835 ecx = MEM32(ecx + 0x8); /* 0x25051D10: mov ecx, dword ptr [ecx + 8] */ 2836 MEM32(edx + 0x8) = ecx; /* 0x25051D13: mov dword ptr [edx + 8], ecx */ 2837 edx = MEM32(edi + 0x23C); /* 0x25051D16: mov edx, dword ptr [edi + 0x23c] */ 2838 MEM32(esi + 0x23C) = edx; /* 0x25051D1C: mov dword ptr [esi + 0x23c], edx */ 2839 eax = edi + 0x240; /* 0x25051D22: lea eax, [edi + 0x240] */ 2840 edx = MEM32(eax); /* 0x25051D28: mov edx, dword ptr [eax] */ 2841 ecx = esi + 0x240; /* 0x25051D2A: lea ecx, [esi + 0x240] */ 2842 MEM32(ecx) = edx; /* 0x25051D30: mov dword ptr [ecx], edx */ 2843 edx = MEM32(eax + 0x4); /* 0x25051D32: mov edx, dword ptr [eax + 4] */ 2844 MEM32(ecx + 0x4) = edx; /* 0x25051D35: mov dword ptr [ecx + 4], edx */ 2845 eax = MEM32(eax + 0x8); /* 0x25051D38: mov eax, dword ptr [eax + 8] */ 2846 MEM32(ecx + 0x8) = eax; /* 0x25051D3B: mov dword ptr [ecx + 8], eax */ 2847 ecx = MEM32(edi + 0x24C); /* 0x25051D3E: mov ecx, dword ptr [edi + 0x24c] */ 2848 MEM32(esi + 0x24C) = ecx; /* 0x25051D44: mov dword ptr [esi + 0x24c], ecx */ 2849 edx = edi + 0x250; /* 0x25051D4A: lea edx, [edi + 0x250] */ 2850 ecx = MEM32(edx); /* 0x25051D50: mov ecx, dword ptr [edx] */ 2851 eax = esi + 0x250; /* 0x25051D52: lea eax, [esi + 0x250] */ 2852 MEM32(eax) = ecx; /* 0x25051D58: mov dword ptr [eax], ecx */ 2853 ecx = MEM32(edx + 0x4); /* 0x25051D5A: mov ecx, dword ptr [edx + 4] */ 2854 MEM32(eax + 0x4) = ecx; /* 0x25051D5D: mov dword ptr [eax + 4], ecx */ 2855 edx = MEM32(edx + 0x8); /* 0x25051D60: mov edx, dword ptr [edx + 8] */ 2856 MEM32(eax + 0x8) = edx; /* 0x25051D63: mov dword ptr [eax + 8], edx */ 2857 eax = MEM32(edi + 0x25C); /* 0x25051D66: mov eax, dword ptr [edi + 0x25c] */ 2858 MEM32(esi + 0x25C) = eax; /* 0x25051D6C: mov dword ptr [esi + 0x25c], eax */ 2859 ecx = MEM32(edi + 0x260); /* 0x25051D72: mov ecx, dword ptr [edi + 0x260] */ 2860 MEM32(esi + 0x260) = ecx; /* 0x25051D78: mov dword ptr [esi + 0x260], ecx */ 2861 SET_LO8(edx, MEM8(edi + 0x264)); /* 0x25051D7E: mov dl, byte ptr [edi + 0x264] */ 2862 MEM8(esi + 0x264) = (uint8_t)(LO8(edx)); /* 0x25051D84: mov byte ptr [esi + 0x264], dl */ 2863 SET_LO8(eax, MEM8(edi + 0x265)); /* 0x25051D8A: mov al, byte ptr [edi + 0x265] */ 2864 MEM8(esi + 0x265) = (uint8_t)(LO8(eax)); /* 0x25051D90: mov byte ptr [esi + 0x265], al */ 2865 ecx = MEM32(edi + 0x268); /* 0x25051D96: mov ecx, dword ptr [edi + 0x268] */ 2866 MEM32(esi + 0x268) = ecx; /* 0x25051D9C: mov dword ptr [esi + 0x268], ecx */ 2867 edx = edi + 0x26C; /* 0x25051DA2: lea edx, [edi + 0x26c] */ 2868 ecx = MEM32(edx); /* 0x25051DA8: mov ecx, dword ptr [edx] */ 2869 eax = esi + 0x26C; /* 0x25051DAA: lea eax, [esi + 0x26c] */ 2870 MEM32(eax) = ecx; /* 0x25051DB0: mov dword ptr [eax], ecx */ 2871 ecx = MEM32(edx + 0x4); /* 0x25051DB2: mov ecx, dword ptr [edx + 4] */ 2872 MEM32(eax + 0x4) = ecx; /* 0x25051DB5: mov dword ptr [eax + 4], ecx */ 2873 edx = MEM32(edx + 0x8); /* 0x25051DB8: mov edx, dword ptr [edx + 8] */ 2874 MEM32(eax + 0x8) = edx; /* 0x25051DBB: mov dword ptr [eax + 8], edx */ 2875 eax = MEM32(edi + 0x278); /* 0x25051DBE: mov eax, dword ptr [edi + 0x278] */ 2876 MEM32(esi + 0x278) = eax; /* 0x25051DC4: mov dword ptr [esi + 0x278], eax */ 2877 ecx = MEM32(edi + 0x27C); /* 0x25051DCA: mov ecx, dword ptr [edi + 0x27c] */ 2878 edi = POP32_VAL(esp); /* 0x25051DD0: pop edi */ 2879 MEM32(esi + 0x27C) = ecx; /* 0x25051DD1: mov dword ptr [esi + 0x27c], ecx */ 2880 MEM32(esi) = 0x25153EC4u; /* 0x25051DD7: mov dword ptr [esi], 0x25153ec4 */ 2881 MEM32(esi + 0x8) = 0x25153EB4u; /* 0x25051DDD: mov dword ptr [esi + 8], 0x25153eb4 */ 2882 MEM32(esi + 0x20) = 0x25153EA4u; /* 0x25051DE4: mov dword ptr [esi + 0x20], 0x25153ea4 */ 2883 MEM32(esi + 0x38) = 0x25153E94u; /* 0x25051DEB: mov dword ptr [esi + 0x38], 0x25153e94 */ 2884 MEM32(esi + 0x50) = 0x25153E84u; /* 0x25051DF2: mov dword ptr [esi + 0x50], 0x25153e84 */ 2885 MEM32(esi + 0x138) = 0x25153E74u; /* 0x25051DF9: mov dword ptr [esi + 0x138], 0x25153e74 */ 2886 MEM32(esi + 0x150) = 0x25153E64u; /* 0x25051E03: mov dword ptr [esi + 0x150], 0x25153e64 */ 2887 eax = esi; /* 0x25051E0D: mov eax, esi */ 2888 esi = POP32_VAL(esp); /* 0x25051E0F: pop esi */ 2889 ebp = POP32_VAL(esp); /* 0x25051E10: pop ebp */ 2890 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051E11: ret 4 */ 2891 RECOMP_REGS_OUT(); 2892 } 2893 2894 void sub_25051E20(void) { 2895 int _fpu_cmp = 0; 2896 uint32_t _cf = 0; 2897 int _df = 1; 2898 uint32_t _flag_k = FK_NONE; 2899 uint32_t _flag_a = 0, _flag_b = 0; 2900 uint32_t _itail_tgt = 0; 2901 RECOMP_REGS_LOCALS 2902 RECOMP_ENTER(0x25051E20u); 2903 2904 L_25051E20: 2905 PUSH32(esp, ebp); /* 0x25051E20: push ebp */ 2906 ebp = esp; /* 0x25051E21: mov ebp, esp */ 2907 PUSH32(esp, ecx); /* 0x25051E23: push ecx */ 2908 PUSH32(esp, ebx); /* 0x25051E24: push ebx */ 2909 ebx = MEM32(ebp + 0x8); /* 0x25051E25: mov ebx, dword ptr [ebp + 8] */ 2910 /* test ebx, ebx */ /* 0x25051E28: test ebx, ebx */ 2911 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2912 _cf = 0; 2913 _flag_k = FK_TEST; 2914 eax = MEM32(ebx + 0x4); /* 0x25051E2A: mov eax, dword ptr [ebx + 4] */ 2915 PUSH32(esp, esi); /* 0x25051E2D: push esi */ 2916 PUSH32(esp, edi); /* 0x25051E2E: push edi */ 2917 edi = ecx; /* 0x25051E2F: mov edi, ecx */ 2918 MEM32(ebp + (-0x4)) = edi; /* 0x25051E31: mov dword ptr [ebp - 4], edi */ 2919 MEM32(edi + 0x4) = eax; /* 0x25051E34: mov dword ptr [edi + 4], eax */ 2920 if (TEST_Z(_flag_a, _flag_b)) goto L_25051E3E; /* 0x25051E37: je 0x25051e3e */ 2921 L_25051E39: 2922 eax = ebx + 0x8; /* 0x25051E39: lea eax, [ebx + 8] */ 2923 goto L_25051E40; /* 0x25051E3C: jmp 0x25051e40 */ 2924 L_25051E3E: 2925 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2926 eax = 0; /* 0x25051E3E: xor eax, eax */ 2927 _cf = 0; 2928 _flag_k = FK_TEST; 2929 L_25051E40: 2930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2932 eax = eax + 4; /* 0x25051E40: add eax, 4 */ 2933 _flag_k = FK_ADD; 2934 PUSH32(esp, eax); /* 0x25051E43: push eax */ 2935 ecx = edi + 0xC; /* 0x25051E44: lea ecx, [edi + 0xc] */ 2936 RECOMP_ICALL(0x2500B8C0u); /* 0x25051E47: call 0x2500b8c0 */ /* not lifted */ 2937 RECOMP_FLAGS_IN(); 2938 /* test ebx, ebx */ /* 0x25051E4C: test ebx, ebx */ 2939 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2940 _cf = 0; 2941 _flag_k = FK_TEST; 2942 if (TEST_Z(_flag_a, _flag_b)) goto L_25051E55; /* 0x25051E4E: je 0x25051e55 */ 2943 L_25051E50: 2944 eax = ebx + 0x20; /* 0x25051E50: lea eax, [ebx + 0x20] */ 2945 goto L_25051E57; /* 0x25051E53: jmp 0x25051e57 */ 2946 L_25051E55: 2947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2948 eax = 0; /* 0x25051E55: xor eax, eax */ 2949 _cf = 0; 2950 _flag_k = FK_TEST; 2951 L_25051E57: 2952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2953 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2954 eax = eax + 4; /* 0x25051E57: add eax, 4 */ 2955 _flag_k = FK_ADD; 2956 PUSH32(esp, eax); /* 0x25051E5A: push eax */ 2957 ecx = edi + 0x24; /* 0x25051E5B: lea ecx, [edi + 0x24] */ 2958 RECOMP_ICALL(0x2500BA40u); /* 0x25051E5E: call 0x2500ba40 */ /* not lifted */ 2959 RECOMP_FLAGS_IN(); 2960 /* test ebx, ebx */ /* 0x25051E63: test ebx, ebx */ 2961 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2962 _cf = 0; 2963 _flag_k = FK_TEST; 2964 if (TEST_Z(_flag_a, _flag_b)) goto L_25051E6C; /* 0x25051E65: je 0x25051e6c */ 2965 L_25051E67: 2966 eax = ebx + 0x38; /* 0x25051E67: lea eax, [ebx + 0x38] */ 2967 goto L_25051E6E; /* 0x25051E6A: jmp 0x25051e6e */ 2968 L_25051E6C: 2969 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2970 eax = 0; /* 0x25051E6C: xor eax, eax */ 2971 _cf = 0; 2972 _flag_k = FK_TEST; 2973 L_25051E6E: 2974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2976 eax = eax + 4; /* 0x25051E6E: add eax, 4 */ 2977 _flag_k = FK_ADD; 2978 PUSH32(esp, eax); /* 0x25051E71: push eax */ 2979 ecx = edi + 0x3C; /* 0x25051E72: lea ecx, [edi + 0x3c] */ 2980 RECOMP_ICALL(0x2500BBC0u); /* 0x25051E75: call 0x2500bbc0 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 /* test ebx, ebx */ /* 0x25051E7A: test ebx, ebx */ 2983 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2984 _cf = 0; 2985 _flag_k = FK_TEST; 2986 if (TEST_Z(_flag_a, _flag_b)) goto L_25051E83; /* 0x25051E7C: je 0x25051e83 */ 2987 L_25051E7E: 2988 eax = ebx + 0x50; /* 0x25051E7E: lea eax, [ebx + 0x50] */ 2989 goto L_25051E85; /* 0x25051E81: jmp 0x25051e85 */ 2990 L_25051E83: 2991 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2992 eax = 0; /* 0x25051E83: xor eax, eax */ 2993 _cf = 0; 2994 _flag_k = FK_TEST; 2995 L_25051E85: 2996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2998 eax = eax + 4; /* 0x25051E85: add eax, 4 */ 2999 _flag_k = FK_ADD; 3000 PUSH32(esp, eax); /* 0x25051E88: push eax */ 3001 ecx = edi + 0x54; /* 0x25051E89: lea ecx, [edi + 0x54] */ 3002 RECOMP_ICALL(0x2500BD40u); /* 0x25051E8C: call 0x2500bd40 */ /* not lifted */ 3003 RECOMP_FLAGS_IN(); 3004 SET_LO8(ecx, MEM8(ebx + 0x68)); /* 0x25051E91: mov cl, byte ptr [ebx + 0x68] */ 3005 MEM8(edi + 0x68) = (uint8_t)(LO8(ecx)); /* 0x25051E94: mov byte ptr [edi + 0x68], cl */ 3006 SET_LO8(edx, MEM8(ebx + 0x69)); /* 0x25051E97: mov dl, byte ptr [ebx + 0x69] */ 3007 MEM8(edi + 0x69) = (uint8_t)(LO8(edx)); /* 0x25051E9A: mov byte ptr [edi + 0x69], dl */ 3008 SET_LO8(eax, MEM8(ebx + 0x6A)); /* 0x25051E9D: mov al, byte ptr [ebx + 0x6a] */ 3009 MEM8(edi + 0x6A) = (uint8_t)(LO8(eax)); /* 0x25051EA0: mov byte ptr [edi + 0x6a], al */ 3010 SET_LO8(ecx, MEM8(ebx + 0x6B)); /* 0x25051EA3: mov cl, byte ptr [ebx + 0x6b] */ 3011 MEM8(edi + 0x6B) = (uint8_t)(LO8(ecx)); /* 0x25051EA6: mov byte ptr [edi + 0x6b], cl */ 3012 edx = MEM32(ebx + 0x6C); /* 0x25051EA9: mov edx, dword ptr [ebx + 0x6c] */ 3013 MEM32(edi + 0x6C) = edx; /* 0x25051EAC: mov dword ptr [edi + 0x6c], edx */ 3014 eax = MEM32(ebx + 0x70); /* 0x25051EAF: mov eax, dword ptr [ebx + 0x70] */ 3015 MEM32(edi + 0x70) = eax; /* 0x25051EB2: mov dword ptr [edi + 0x70], eax */ 3016 ecx = MEM32(ebx + 0x74); /* 0x25051EB5: mov ecx, dword ptr [ebx + 0x74] */ 3017 MEM32(edi + 0x74) = ecx; /* 0x25051EB8: mov dword ptr [edi + 0x74], ecx */ 3018 eax = edi + 0x78; /* 0x25051EBB: lea eax, [edi + 0x78] */ 3019 edx = ebx + 0x78; /* 0x25051EBE: lea edx, [ebx + 0x78] */ 3020 ecx = MEM32(edx); /* 0x25051EC1: mov ecx, dword ptr [edx] */ 3021 MEM32(eax) = ecx; /* 0x25051EC3: mov dword ptr [eax], ecx */ 3022 ecx = MEM32(edx + 0x4); /* 0x25051EC5: mov ecx, dword ptr [edx + 4] */ 3023 MEM32(eax + 0x4) = ecx; /* 0x25051EC8: mov dword ptr [eax + 4], ecx */ 3024 edx = MEM32(edx + 0x8); /* 0x25051ECB: mov edx, dword ptr [edx + 8] */ 3025 MEM32(eax + 0x8) = edx; /* 0x25051ECE: mov dword ptr [eax + 8], edx */ 3026 ecx = edi + 0x84; /* 0x25051ED1: lea ecx, [edi + 0x84] */ 3027 eax = ebx + 0x84; /* 0x25051ED7: lea eax, [ebx + 0x84] */ 3028 edx = MEM32(eax); /* 0x25051EDD: mov edx, dword ptr [eax] */ 3029 MEM32(ecx) = edx; /* 0x25051EDF: mov dword ptr [ecx], edx */ 3030 edx = MEM32(eax + 0x4); /* 0x25051EE1: mov edx, dword ptr [eax + 4] */ 3031 MEM32(ecx + 0x4) = edx; /* 0x25051EE4: mov dword ptr [ecx + 4], edx */ 3032 edx = MEM32(eax + 0x8); /* 0x25051EE7: mov edx, dword ptr [eax + 8] */ 3033 MEM32(ecx + 0x8) = edx; /* 0x25051EEA: mov dword ptr [ecx + 8], edx */ 3034 eax = MEM32(eax + 0xC); /* 0x25051EED: mov eax, dword ptr [eax + 0xc] */ 3035 MEM32(ecx + 0xC) = eax; /* 0x25051EF0: mov dword ptr [ecx + 0xc], eax */ 3036 ecx = MEM32(ebx + 0x94); /* 0x25051EF3: mov ecx, dword ptr [ebx + 0x94] */ 3037 eax = MEM32(ebp + (-0x4)); /* 0x25051EF9: mov eax, dword ptr [ebp - 4] */ 3038 MEM32(edi + 0x94) = ecx; /* 0x25051EFC: mov dword ptr [edi + 0x94], ecx */ 3039 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x98u); 3040 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3041 edi = edi + 0x98u; /* 0x25051F02: add edi, 0x98 */ 3042 _flag_k = FK_ADD; 3043 /* test ebx, ebx */ /* 0x25051F08: test ebx, ebx */ 3044 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3045 _cf = 0; 3046 _flag_k = FK_TEST; 3047 esi = ebx + 0x98; /* 0x25051F0A: lea esi, [ebx + 0x98] */ 3048 ecx = 0x10u; /* 0x25051F10: mov ecx, 0x10 */ 3049 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25051F15: 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; } 3050 esi = ebx + 0xD8; /* 0x25051F17: lea esi, [ebx + 0xd8] */ 3051 edi = eax + 0xD8; /* 0x25051F1D: lea edi, [eax + 0xd8] */ 3052 ecx = 0x10u; /* 0x25051F23: mov ecx, 0x10 */ 3053 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25051F28: 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; } 3054 edx = MEM32(ebx + 0x118); /* 0x25051F2A: mov edx, dword ptr [ebx + 0x118] */ 3055 MEM32(eax + 0x118) = edx; /* 0x25051F30: mov dword ptr [eax + 0x118], edx */ 3056 ecx = MEM32(ebx + 0x11C); /* 0x25051F36: mov ecx, dword ptr [ebx + 0x11c] */ 3057 MEM32(eax + 0x11C) = ecx; /* 0x25051F3C: mov dword ptr [eax + 0x11c], ecx */ 3058 SET_LO8(edx, MEM8(ebx + 0x120)); /* 0x25051F42: mov dl, byte ptr [ebx + 0x120] */ 3059 MEM8(eax + 0x120) = (uint8_t)(LO8(edx)); /* 0x25051F48: mov byte ptr [eax + 0x120], dl */ 3060 ecx = MEM32(ebx + 0x124); /* 0x25051F4E: mov ecx, dword ptr [ebx + 0x124] */ 3061 MEM32(eax + 0x124) = ecx; /* 0x25051F54: mov dword ptr [eax + 0x124], ecx */ 3062 edx = MEM32(ebx + 0x128); /* 0x25051F5A: mov edx, dword ptr [ebx + 0x128] */ 3063 MEM32(eax + 0x128) = edx; /* 0x25051F60: mov dword ptr [eax + 0x128], edx */ 3064 ecx = MEM32(ebx + 0x12C); /* 0x25051F66: mov ecx, dword ptr [ebx + 0x12c] */ 3065 MEM32(eax + 0x12C) = ecx; /* 0x25051F6C: mov dword ptr [eax + 0x12c], ecx */ 3066 SET_LO8(edx, MEM8(ebx + 0x130)); /* 0x25051F72: mov dl, byte ptr [ebx + 0x130] */ 3067 MEM8(eax + 0x130) = (uint8_t)(LO8(edx)); /* 0x25051F78: mov byte ptr [eax + 0x130], dl */ 3068 SET_LO8(ecx, MEM8(ebx + 0x131)); /* 0x25051F7E: mov cl, byte ptr [ebx + 0x131] */ 3069 MEM8(eax + 0x131) = (uint8_t)(LO8(ecx)); /* 0x25051F84: mov byte ptr [eax + 0x131], cl */ 3070 SET_LO8(edx, MEM8(ebx + 0x132)); /* 0x25051F8A: mov dl, byte ptr [ebx + 0x132] */ 3071 MEM8(eax + 0x132) = (uint8_t)(LO8(edx)); /* 0x25051F90: mov byte ptr [eax + 0x132], dl */ 3072 ecx = MEM32(ebx + 0x134); /* 0x25051F96: mov ecx, dword ptr [ebx + 0x134] */ 3073 MEM32(eax + 0x134) = ecx; /* 0x25051F9C: mov dword ptr [eax + 0x134], ecx */ 3074 if (TEST_Z(_flag_a, _flag_b)) goto L_25051FAC; /* 0x25051FA2: je 0x25051fac */ 3075 L_25051FA4: 3076 ecx = ebx + 0x138; /* 0x25051FA4: lea ecx, [ebx + 0x138] */ 3077 goto L_25051FAE; /* 0x25051FAA: jmp 0x25051fae */ 3078 L_25051FAC: 3079 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3080 ecx = 0; /* 0x25051FAC: xor ecx, ecx */ 3081 _cf = 0; 3082 _flag_k = FK_TEST; 3083 L_25051FAE: 3084 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3086 ecx = ecx + 4; /* 0x25051FAE: add ecx, 4 */ 3087 _flag_k = FK_ADD; 3088 PUSH32(esp, ecx); /* 0x25051FB1: push ecx */ 3089 ecx = eax + 0x13C; /* 0x25051FB2: lea ecx, [eax + 0x13c] */ 3090 RECOMP_ICALL(0x25009590u); /* 0x25051FB8: call 0x25009590 */ /* not lifted */ 3091 RECOMP_FLAGS_IN(); 3092 /* test ebx, ebx */ /* 0x25051FBD: test ebx, ebx */ 3093 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3094 _cf = 0; 3095 _flag_k = FK_TEST; 3096 if (TEST_Z(_flag_a, _flag_b)) goto L_25051FC9; /* 0x25051FBF: je 0x25051fc9 */ 3097 L_25051FC1: 3098 eax = ebx + 0x150; /* 0x25051FC1: lea eax, [ebx + 0x150] */ 3099 goto L_25051FCB; /* 0x25051FC7: jmp 0x25051fcb */ 3100 L_25051FC9: 3101 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3102 eax = 0; /* 0x25051FC9: xor eax, eax */ 3103 _cf = 0; 3104 _flag_k = FK_TEST; 3105 L_25051FCB: 3106 esi = MEM32(ebp + (-0x4)); /* 0x25051FCB: mov esi, dword ptr [ebp - 4] */ 3107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3109 eax = eax + 4; /* 0x25051FCE: add eax, 4 */ 3110 _flag_k = FK_ADD; 3111 PUSH32(esp, eax); /* 0x25051FD1: push eax */ 3112 ecx = esi + 0x154; /* 0x25051FD2: lea ecx, [esi + 0x154] */ 3113 RECOMP_ICALL(0x25009710u); /* 0x25051FD8: call 0x25009710 */ /* not lifted */ 3114 RECOMP_FLAGS_IN(); 3115 edx = MEM32(ebx + 0x168); /* 0x25051FDD: mov edx, dword ptr [ebx + 0x168] */ 3116 edi = ebx; /* 0x25051FE3: mov edi, ebx */ 3117 MEM32(esi + 0x168) = edx; /* 0x25051FE5: mov dword ptr [esi + 0x168], edx */ 3118 ecx = ebx + 0x16C; /* 0x25051FEB: lea ecx, [ebx + 0x16c] */ 3119 eax = esi + 0x170; /* 0x25051FF1: lea eax, [esi + 0x170] */ 3120 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 3121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3122 edi = edi - esi; /* 0x25051FF7: sub edi, esi */ 3123 _flag_k = FK_CMP; 3124 MEM32(ebp + 0x8) = 8; /* 0x25051FF9: mov dword ptr [ebp + 8], 8 */ 3125 L_25052000: 3126 edx = MEM32(ecx); /* 0x25052000: mov edx, dword ptr [ecx] */ 3127 MEM32(eax + (-0x4)) = edx; /* 0x25052002: mov dword ptr [eax - 4], edx */ 3128 edx = MEM32(edi + eax); /* 0x25052005: mov edx, dword ptr [edi + eax] */ 3129 MEM32(eax) = edx; /* 0x25052008: mov dword ptr [eax], edx */ 3130 edx = MEM32(ebp + 0x8); /* 0x2505200A: mov edx, dword ptr [ebp + 8] */ 3131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3133 ecx = ecx + 8; /* 0x2505200D: add ecx, 8 */ 3134 _flag_k = FK_ADD; 3135 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3136 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3137 eax = eax + 8; /* 0x25052010: add eax, 8 */ 3138 _flag_k = FK_ADD; 3139 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3140 edx = edx - 1; /* 0x25052013: dec edx */ 3141 _flag_k = FK_DEC; 3142 MEM32(ebp + 0x8) = edx; /* 0x25052014: mov dword ptr [ebp + 8], edx */ 3143 RECOMP_BACKEDGE(); 3144 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25052000; /* 0x25052017: jne 0x25052000 */ 3145 L_25052019: 3146 SET_LO8(eax, MEM8(ebx + 0x1AC)); /* 0x25052019: mov al, byte ptr [ebx + 0x1ac] */ 3147 MEM8(esi + 0x1AC) = (uint8_t)(LO8(eax)); /* 0x2505201F: mov byte ptr [esi + 0x1ac], al */ 3148 SET_LO8(ecx, MEM8(ebx + 0x1AD)); /* 0x25052025: mov cl, byte ptr [ebx + 0x1ad] */ 3149 MEM8(esi + 0x1AD) = (uint8_t)(LO8(ecx)); /* 0x2505202B: mov byte ptr [esi + 0x1ad], cl */ 3150 SET_LO8(edx, MEM8(ebx + 0x1AE)); /* 0x25052031: mov dl, byte ptr [ebx + 0x1ae] */ 3151 MEM8(esi + 0x1AE) = (uint8_t)(LO8(edx)); /* 0x25052037: mov byte ptr [esi + 0x1ae], dl */ 3152 eax = MEM32(ebx + 0x1B0); /* 0x2505203D: mov eax, dword ptr [ebx + 0x1b0] */ 3153 MEM32(esi + 0x1B0) = eax; /* 0x25052043: mov dword ptr [esi + 0x1b0], eax */ 3154 ecx = MEM32(ebx + 0x1B4); /* 0x25052049: mov ecx, dword ptr [ebx + 0x1b4] */ 3155 edx = ebx + 0x1B8; /* 0x2505204F: lea edx, [ebx + 0x1b8] */ 3156 MEM32(esi + 0x1B4) = ecx; /* 0x25052055: mov dword ptr [esi + 0x1b4], ecx */ 3157 PUSH32(esp, edx); /* 0x2505205B: push edx */ 3158 ecx = esi + 0x1B8; /* 0x2505205C: lea ecx, [esi + 0x1b8] */ 3159 RECOMP_ICALL(0x25005990u); /* 0x25052062: call 0x25005990 */ /* not lifted */ 3160 RECOMP_FLAGS_IN(); 3161 eax = MEM32(ebx + 0x1C8); /* 0x25052067: mov eax, dword ptr [ebx + 0x1c8] */ 3162 MEM32(esi + 0x1C8) = eax; /* 0x2505206D: mov dword ptr [esi + 0x1c8], eax */ 3163 SET_LO8(ecx, MEM8(ebx + 0x1CC)); /* 0x25052073: mov cl, byte ptr [ebx + 0x1cc] */ 3164 MEM8(esi + 0x1CC) = (uint8_t)(LO8(ecx)); /* 0x25052079: mov byte ptr [esi + 0x1cc], cl */ 3165 edx = MEM32(ebx + 0x1D0); /* 0x2505207F: mov edx, dword ptr [ebx + 0x1d0] */ 3166 MEM32(esi + 0x1D0) = edx; /* 0x25052085: mov dword ptr [esi + 0x1d0], edx */ 3167 eax = MEM32(ebx + 0x1D4); /* 0x2505208B: mov eax, dword ptr [ebx + 0x1d4] */ 3168 MEM32(esi + 0x1D4) = eax; /* 0x25052091: mov dword ptr [esi + 0x1d4], eax */ 3169 ecx = MEM32(ebx + 0x1D8); /* 0x25052097: mov ecx, dword ptr [ebx + 0x1d8] */ 3170 MEM32(esi + 0x1D8) = ecx; /* 0x2505209D: mov dword ptr [esi + 0x1d8], ecx */ 3171 edx = MEM32(ebx + 0x1DC); /* 0x250520A3: mov edx, dword ptr [ebx + 0x1dc] */ 3172 MEM32(esi + 0x1DC) = edx; /* 0x250520A9: mov dword ptr [esi + 0x1dc], edx */ 3173 eax = MEM32(ebx + 0x1E0); /* 0x250520AF: mov eax, dword ptr [ebx + 0x1e0] */ 3174 MEM32(esi + 0x1E0) = eax; /* 0x250520B5: mov dword ptr [esi + 0x1e0], eax */ 3175 ecx = MEM32(ebx + 0x1E4); /* 0x250520BB: mov ecx, dword ptr [ebx + 0x1e4] */ 3176 MEM32(esi + 0x1E4) = ecx; /* 0x250520C1: mov dword ptr [esi + 0x1e4], ecx */ 3177 edx = MEM32(ebx + 0x1E8); /* 0x250520C7: mov edx, dword ptr [ebx + 0x1e8] */ 3178 MEM32(esi + 0x1E8) = edx; /* 0x250520CD: mov dword ptr [esi + 0x1e8], edx */ 3179 eax = MEM32(ebx + 0x1EC); /* 0x250520D3: mov eax, dword ptr [ebx + 0x1ec] */ 3180 MEM32(esi + 0x1EC) = eax; /* 0x250520D9: mov dword ptr [esi + 0x1ec], eax */ 3181 ecx = MEM32(ebx + 0x1F0); /* 0x250520DF: mov ecx, dword ptr [ebx + 0x1f0] */ 3182 MEM32(esi + 0x1F0) = ecx; /* 0x250520E5: mov dword ptr [esi + 0x1f0], ecx */ 3183 edx = MEM32(ebx + 0x1F4); /* 0x250520EB: mov edx, dword ptr [ebx + 0x1f4] */ 3184 MEM32(esi + 0x1F4) = edx; /* 0x250520F1: mov dword ptr [esi + 0x1f4], edx */ 3185 eax = MEM32(ebx + 0x1F8); /* 0x250520F7: mov eax, dword ptr [ebx + 0x1f8] */ 3186 MEM32(esi + 0x1F8) = eax; /* 0x250520FD: mov dword ptr [esi + 0x1f8], eax */ 3187 SET_LO8(ecx, MEM8(ebx + 0x1FC)); /* 0x25052103: mov cl, byte ptr [ebx + 0x1fc] */ 3188 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ecx)); /* 0x25052109: mov byte ptr [esi + 0x1fc], cl */ 3189 edx = MEM32(ebx + 0x200); /* 0x2505210F: mov edx, dword ptr [ebx + 0x200] */ 3190 MEM32(esi + 0x200) = edx; /* 0x25052115: mov dword ptr [esi + 0x200], edx */ 3191 eax = ebx + 0x204; /* 0x2505211B: lea eax, [ebx + 0x204] */ 3192 edx = MEM32(eax); /* 0x25052121: mov edx, dword ptr [eax] */ 3193 ecx = esi + 0x204; /* 0x25052123: lea ecx, [esi + 0x204] */ 3194 MEM32(ecx) = edx; /* 0x25052129: mov dword ptr [ecx], edx */ 3195 edx = MEM32(eax + 0x4); /* 0x2505212B: mov edx, dword ptr [eax + 4] */ 3196 MEM32(ecx + 0x4) = edx; /* 0x2505212E: mov dword ptr [ecx + 4], edx */ 3197 eax = MEM32(eax + 0x8); /* 0x25052131: mov eax, dword ptr [eax + 8] */ 3198 MEM32(ecx + 0x8) = eax; /* 0x25052134: mov dword ptr [ecx + 8], eax */ 3199 ecx = MEM32(ebx + 0x210); /* 0x25052137: mov ecx, dword ptr [ebx + 0x210] */ 3200 MEM32(esi + 0x210) = ecx; /* 0x2505213D: mov dword ptr [esi + 0x210], ecx */ 3201 SET_LO8(edx, MEM8(ebx + 0x214)); /* 0x25052143: mov dl, byte ptr [ebx + 0x214] */ 3202 MEM8(esi + 0x214) = (uint8_t)(LO8(edx)); /* 0x25052149: mov byte ptr [esi + 0x214], dl */ 3203 eax = MEM32(ebx + 0x218); /* 0x2505214F: mov eax, dword ptr [ebx + 0x218] */ 3204 MEM32(esi + 0x218) = eax; /* 0x25052155: mov dword ptr [esi + 0x218], eax */ 3205 ecx = MEM32(ebx + 0x21C); /* 0x2505215B: mov ecx, dword ptr [ebx + 0x21c] */ 3206 MEM32(esi + 0x21C) = ecx; /* 0x25052161: mov dword ptr [esi + 0x21c], ecx */ 3207 edx = MEM32(ebx + 0x220); /* 0x25052167: mov edx, dword ptr [ebx + 0x220] */ 3208 MEM32(esi + 0x220) = edx; /* 0x2505216D: mov dword ptr [esi + 0x220], edx */ 3209 eax = ebx + 0x224; /* 0x25052173: lea eax, [ebx + 0x224] */ 3210 edx = MEM32(eax); /* 0x25052179: mov edx, dword ptr [eax] */ 3211 ecx = esi + 0x224; /* 0x2505217B: lea ecx, [esi + 0x224] */ 3212 MEM32(ecx) = edx; /* 0x25052181: mov dword ptr [ecx], edx */ 3213 edx = MEM32(eax + 0x4); /* 0x25052183: mov edx, dword ptr [eax + 4] */ 3214 MEM32(ecx + 0x4) = edx; /* 0x25052186: mov dword ptr [ecx + 4], edx */ 3215 eax = MEM32(eax + 0x8); /* 0x25052189: mov eax, dword ptr [eax + 8] */ 3216 MEM32(ecx + 0x8) = eax; /* 0x2505218C: mov dword ptr [ecx + 8], eax */ 3217 ecx = ebx + 0x230; /* 0x2505218F: lea ecx, [ebx + 0x230] */ 3218 eax = MEM32(ecx); /* 0x25052195: mov eax, dword ptr [ecx] */ 3219 edx = esi + 0x230; /* 0x25052197: lea edx, [esi + 0x230] */ 3220 MEM32(edx) = eax; /* 0x2505219D: mov dword ptr [edx], eax */ 3221 eax = MEM32(ecx + 0x4); /* 0x2505219F: mov eax, dword ptr [ecx + 4] */ 3222 MEM32(edx + 0x4) = eax; /* 0x250521A2: mov dword ptr [edx + 4], eax */ 3223 ecx = MEM32(ecx + 0x8); /* 0x250521A5: mov ecx, dword ptr [ecx + 8] */ 3224 MEM32(edx + 0x8) = ecx; /* 0x250521A8: mov dword ptr [edx + 8], ecx */ 3225 edx = MEM32(ebx + 0x23C); /* 0x250521AB: mov edx, dword ptr [ebx + 0x23c] */ 3226 MEM32(esi + 0x23C) = edx; /* 0x250521B1: mov dword ptr [esi + 0x23c], edx */ 3227 eax = ebx + 0x240; /* 0x250521B7: lea eax, [ebx + 0x240] */ 3228 edx = MEM32(eax); /* 0x250521BD: mov edx, dword ptr [eax] */ 3229 ecx = esi + 0x240; /* 0x250521BF: lea ecx, [esi + 0x240] */ 3230 MEM32(ecx) = edx; /* 0x250521C5: mov dword ptr [ecx], edx */ 3231 edx = MEM32(eax + 0x4); /* 0x250521C7: mov edx, dword ptr [eax + 4] */ 3232 MEM32(ecx + 0x4) = edx; /* 0x250521CA: mov dword ptr [ecx + 4], edx */ 3233 eax = MEM32(eax + 0x8); /* 0x250521CD: mov eax, dword ptr [eax + 8] */ 3234 MEM32(ecx + 0x8) = eax; /* 0x250521D0: mov dword ptr [ecx + 8], eax */ 3235 ecx = MEM32(ebx + 0x24C); /* 0x250521D3: mov ecx, dword ptr [ebx + 0x24c] */ 3236 MEM32(esi + 0x24C) = ecx; /* 0x250521D9: mov dword ptr [esi + 0x24c], ecx */ 3237 edx = ebx + 0x250; /* 0x250521DF: lea edx, [ebx + 0x250] */ 3238 ecx = MEM32(edx); /* 0x250521E5: mov ecx, dword ptr [edx] */ 3239 eax = esi + 0x250; /* 0x250521E7: lea eax, [esi + 0x250] */ 3240 MEM32(eax) = ecx; /* 0x250521ED: mov dword ptr [eax], ecx */ 3241 ecx = MEM32(edx + 0x4); /* 0x250521EF: mov ecx, dword ptr [edx + 4] */ 3242 MEM32(eax + 0x4) = ecx; /* 0x250521F2: mov dword ptr [eax + 4], ecx */ 3243 edx = MEM32(edx + 0x8); /* 0x250521F5: mov edx, dword ptr [edx + 8] */ 3244 MEM32(eax + 0x8) = edx; /* 0x250521F8: mov dword ptr [eax + 8], edx */ 3245 eax = MEM32(ebx + 0x25C); /* 0x250521FB: mov eax, dword ptr [ebx + 0x25c] */ 3246 MEM32(esi + 0x25C) = eax; /* 0x25052201: mov dword ptr [esi + 0x25c], eax */ 3247 ecx = MEM32(ebx + 0x260); /* 0x25052207: mov ecx, dword ptr [ebx + 0x260] */ 3248 MEM32(esi + 0x260) = ecx; /* 0x2505220D: mov dword ptr [esi + 0x260], ecx */ 3249 SET_LO8(edx, MEM8(ebx + 0x264)); /* 0x25052213: mov dl, byte ptr [ebx + 0x264] */ 3250 MEM8(esi + 0x264) = (uint8_t)(LO8(edx)); /* 0x25052219: mov byte ptr [esi + 0x264], dl */ 3251 SET_LO8(eax, MEM8(ebx + 0x265)); /* 0x2505221F: mov al, byte ptr [ebx + 0x265] */ 3252 MEM8(esi + 0x265) = (uint8_t)(LO8(eax)); /* 0x25052225: mov byte ptr [esi + 0x265], al */ 3253 ecx = MEM32(ebx + 0x268); /* 0x2505222B: mov ecx, dword ptr [ebx + 0x268] */ 3254 MEM32(esi + 0x268) = ecx; /* 0x25052231: mov dword ptr [esi + 0x268], ecx */ 3255 eax = esi + 0x26C; /* 0x25052237: lea eax, [esi + 0x26c] */ 3256 ecx = 3; /* 0x2505223D: mov ecx, 3 */ 3257 L_25052242: 3258 edx = MEM32(eax + edi); /* 0x25052242: mov edx, dword ptr [eax + edi] */ 3259 MEM32(eax) = edx; /* 0x25052245: mov dword ptr [eax], edx */ 3260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3261 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3262 eax = eax + 4; /* 0x25052247: add eax, 4 */ 3263 _flag_k = FK_ADD; 3264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3265 ecx = ecx - 1; /* 0x2505224A: dec ecx */ 3266 _flag_k = FK_DEC; 3267 RECOMP_BACKEDGE(); 3268 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25052242; /* 0x2505224B: jne 0x25052242 */ 3269 L_2505224D: 3270 eax = MEM32(ebx + 0x278); /* 0x2505224D: mov eax, dword ptr [ebx + 0x278] */ 3271 MEM32(esi + 0x278) = eax; /* 0x25052253: mov dword ptr [esi + 0x278], eax */ 3272 ecx = MEM32(ebx + 0x27C); /* 0x25052259: mov ecx, dword ptr [ebx + 0x27c] */ 3273 edi = POP32_VAL(esp); /* 0x2505225F: pop edi */ 3274 MEM32(esi + 0x27C) = ecx; /* 0x25052260: mov dword ptr [esi + 0x27c], ecx */ 3275 eax = esi; /* 0x25052266: mov eax, esi */ 3276 esi = POP32_VAL(esp); /* 0x25052268: pop esi */ 3277 ebx = POP32_VAL(esp); /* 0x25052269: pop ebx */ 3278 esp = ebp; /* 0x2505226A: mov esp, ebp */ 3279 ebp = POP32_VAL(esp); /* 0x2505226C: pop ebp */ 3280 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2505226D: ret 4 */ 3281 RECOMP_REGS_OUT(); 3282 } 3283 3284 void sub_25052270(void) { 3285 int _fpu_cmp = 0; 3286 uint32_t _cf = 0; 3287 int _df = 1; 3288 uint32_t _flag_k = FK_NONE; 3289 uint32_t _flag_a = 0, _flag_b = 0; 3290 uint32_t _itail_tgt = 0; 3291 RECOMP_REGS_LOCALS 3292 RECOMP_ENTER(0x25052270u); 3293 3294 L_25052270: 3295 PUSH32(esp, ebp); /* 0x25052270: push ebp */ 3296 ebp = esp; /* 0x25052271: mov ebp, esp */ 3297 PUSH32(esp, ebx); /* 0x25052273: push ebx */ 3298 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25052274: mov bl, byte ptr [ebp + 8] */ 3299 /* test LO8(ebx), 2 */ /* 0x25052277: test bl, 2 */ 3300 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3301 _cf = 0; 3302 _flag_k = FK_NARROW(FK_TEST, 24); 3303 PUSH32(esp, esi); /* 0x2505227A: push esi */ 3304 esi = ecx; /* 0x2505227B: mov esi, ecx */ 3305 if (TEST_Z(_flag_a, _flag_b)) goto L_250522AE; /* 0x2505227D: je 0x250522ae */ 3306 L_2505227F: 3307 eax = MEM32(esi + (-0x4)); /* 0x2505227F: mov eax, dword ptr [esi - 4] */ 3308 PUSH32(esp, edi); /* 0x25052282: push edi */ 3309 PUSH32(esp, 0x250524C0u); /* 0x25052283: push 0x250524c0 */ 3310 edi = esi + (-0x4); /* 0x25052288: lea edi, [esi - 4] */ 3311 PUSH32(esp, eax); /* 0x2505228B: push eax */ 3312 PUSH32(esp, 0x280u); /* 0x2505228C: push 0x280 */ 3313 PUSH32(esp, esi); /* 0x25052291: push esi */ 3314 RECOMP_ICALL(0x25137F92u); /* 0x25052292: call 0x25137f92 */ /* not lifted */ 3315 RECOMP_FLAGS_IN(); 3316 /* test LO8(ebx), 1 */ /* 0x25052297: test bl, 1 */ 3317 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3318 _cf = 0; 3319 _flag_k = FK_NARROW(FK_TEST, 24); 3320 if (TEST_Z(_flag_a, _flag_b)) goto L_250522A5; /* 0x2505229A: je 0x250522a5 */ 3321 L_2505229C: 3322 PUSH32(esp, edi); /* 0x2505229C: push edi */ 3323 RECOMP_ICALL(0x25137EECu); /* 0x2505229D: call 0x25137eec */ /* not lifted */ 3324 RECOMP_FLAGS_IN(); 3325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3327 esp = esp + 4; /* 0x250522A2: add esp, 4 */ 3328 _flag_k = FK_ADD; 3329 L_250522A5: 3330 eax = edi; /* 0x250522A5: mov eax, edi */ 3331 edi = POP32_VAL(esp); /* 0x250522A7: pop edi */ 3332 esi = POP32_VAL(esp); /* 0x250522A8: pop esi */ 3333 ebx = POP32_VAL(esp); /* 0x250522A9: pop ebx */ 3334 ebp = POP32_VAL(esp); /* 0x250522AA: pop ebp */ 3335 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522AB: ret 4 */ 3336 L_250522AE: 3337 ecx = esi; /* 0x250522AE: mov ecx, esi */ 3338 RECOMP_ICALL(0x250524C0u); /* 0x250522B0: call 0x250524c0 */ /* not lifted */ 3339 RECOMP_FLAGS_IN(); 3340 /* test LO8(ebx), 1 */ /* 0x250522B5: test bl, 1 */ 3341 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3342 _cf = 0; 3343 _flag_k = FK_NARROW(FK_TEST, 24); 3344 if (TEST_Z(_flag_a, _flag_b)) goto L_250522C3; /* 0x250522B8: je 0x250522c3 */ 3345 L_250522BA: 3346 PUSH32(esp, esi); /* 0x250522BA: push esi */ 3347 RECOMP_ICALL(0x25137EECu); /* 0x250522BB: call 0x25137eec */ /* not lifted */ 3348 RECOMP_FLAGS_IN(); 3349 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3351 esp = esp + 4; /* 0x250522C0: add esp, 4 */ 3352 _flag_k = FK_ADD; 3353 L_250522C3: 3354 eax = esi; /* 0x250522C3: mov eax, esi */ 3355 esi = POP32_VAL(esp); /* 0x250522C5: pop esi */ 3356 ebx = POP32_VAL(esp); /* 0x250522C6: pop ebx */ 3357 ebp = POP32_VAL(esp); /* 0x250522C7: pop ebp */ 3358 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522C8: ret 4 */ 3359 RECOMP_REGS_OUT(); 3360 } 3361 3362 void sub_250522D0(void) { 3363 int _fpu_cmp = 0; 3364 uint32_t _cf = 0; 3365 int _df = 1; 3366 uint32_t _flag_k = FK_NONE; 3367 uint32_t _flag_a = 0, _flag_b = 0; 3368 uint32_t _itail_tgt = 0; 3369 RECOMP_REGS_LOCALS 3370 RECOMP_ENTER(0x250522D0u); 3371 3372 L_250522D0: 3373 PUSH32(esp, ebp); /* 0x250522D0: push ebp */ 3374 ebp = esp; /* 0x250522D1: mov ebp, esp */ 3375 PUSH32(esp, 0xFFFFFFFFu); /* 0x250522D3: push -1 */ 3376 PUSH32(esp, 0x25146FDBu); /* 0x250522D5: push 0x25146fdb */ 3377 eax = MEM32(FS_BASE + (0)); /* 0x250522DA: mov eax, dword ptr fs:[0] */ 3378 PUSH32(esp, eax); /* 0x250522E0: push eax */ 3379 MEM32(FS_BASE + (0)) = esp; /* 0x250522E1: mov dword ptr fs:[0], esp */ 3380 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3382 esp = esp - 0x10u; /* 0x250522E8: sub esp, 0x10 */ 3383 _flag_k = FK_CMP; 3384 PUSH32(esp, ebx); /* 0x250522EB: push ebx */ 3385 PUSH32(esp, esi); /* 0x250522EC: push esi */ 3386 PUSH32(esp, edi); /* 0x250522ED: push edi */ 3387 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3388 ebx = 0; /* 0x250522EE: xor ebx, ebx */ 3389 _cf = 0; 3390 _flag_k = FK_TEST; 3391 PUSH32(esp, ebx); /* 0x250522F0: push ebx */ 3392 esi = ecx; /* 0x250522F1: mov esi, ecx */ 3393 PUSH32(esp, ebx); /* 0x250522F3: push ebx */ 3394 MEM32(ebp + (-0x10)) = esi; /* 0x250522F4: mov dword ptr [ebp - 0x10], esi */ 3395 MEM32(ebp + (-0x1C)) = 0; /* 0x250522F7: mov dword ptr [ebp - 0x1c], 0 */ 3396 MEM32(ebp + (-0x18)) = 0; /* 0x250522FE: mov dword ptr [ebp - 0x18], 0 */ 3397 MEM32(ebp + (-0x14)) = 0; /* 0x25052305: mov dword ptr [ebp - 0x14], 0 */ 3398 RECOMP_ICALL(0x250DA9D0u); /* 0x2505230C: call 0x250da9d0 */ /* not lifted */ 3399 RECOMP_FLAGS_IN(); 3400 eax = MEM32(ebp + 0x8); /* 0x25052311: mov eax, dword ptr [ebp + 8] */ 3401 ecx = MEM32(ebp + 0xC); /* 0x25052314: mov ecx, dword ptr [ebp + 0xc] */ 3402 edx = esi + 0x204; /* 0x25052317: lea edx, [esi + 0x204] */ 3403 MEM32(esi + 0x1D4) = eax; /* 0x2505231D: mov dword ptr [esi + 0x1d4], eax */ 3404 eax = MEM32(ebp + (-0x1C)); /* 0x25052323: mov eax, dword ptr [ebp - 0x1c] */ 3405 edi = edx; /* 0x25052326: mov edi, edx */ 3406 edx = MEM32(ebp + (-0x14)); /* 0x25052328: mov edx, dword ptr [ebp - 0x14] */ 3407 MEM32(edi) = eax; /* 0x2505232B: mov dword ptr [edi], eax */ 3408 MEM32(esi + 0x1D8) = ecx; /* 0x2505232D: mov dword ptr [esi + 0x1d8], ecx */ 3409 ecx = MEM32(ebp + (-0x18)); /* 0x25052333: mov ecx, dword ptr [ebp - 0x18] */ 3410 MEM32(edi + 0x4) = ecx; /* 0x25052336: mov dword ptr [edi + 4], ecx */ 3411 MEM32(edi + 0x8) = edx; /* 0x25052339: mov dword ptr [edi + 8], edx */ 3412 edi = esi + 0x78; /* 0x2505233C: lea edi, [esi + 0x78] */ 3413 MEM32(edi) = eax; /* 0x2505233F: mov dword ptr [edi], eax */ 3414 MEM32(edi + 0x4) = ecx; /* 0x25052341: mov dword ptr [edi + 4], ecx */ 3415 PUSH32(esp, 1); /* 0x25052344: push 1 */ 3416 PUSH32(esp, 1); /* 0x25052346: push 1 */ 3417 ecx = esi; /* 0x25052348: mov ecx, esi */ 3418 MEM32(ebp + (-0x4)) = ebx; /* 0x2505234A: mov dword ptr [ebp - 4], ebx */ 3419 MEM32(esi + 0x1DC) = ebx; /* 0x2505234D: mov dword ptr [esi + 0x1dc], ebx */ 3420 MEM32(esi + 0x1E0) = ebx; /* 0x25052353: mov dword ptr [esi + 0x1e0], ebx */ 3421 MEM32(esi + 0x1E4) = ebx; /* 0x25052359: mov dword ptr [esi + 0x1e4], ebx */ 3422 MEM32(esi + 0x1E8) = ebx; /* 0x2505235F: mov dword ptr [esi + 0x1e8], ebx */ 3423 MEM32(esi + 0x1EC) = ebx; /* 0x25052365: mov dword ptr [esi + 0x1ec], ebx */ 3424 MEM32(esi + 0x1F0) = ebx; /* 0x2505236B: mov dword ptr [esi + 0x1f0], ebx */ 3425 MEM32(esi + 0x1F4) = ebx; /* 0x25052371: mov dword ptr [esi + 0x1f4], ebx */ 3426 MEM32(esi + 0x1F8) = ebx; /* 0x25052377: mov dword ptr [esi + 0x1f8], ebx */ 3427 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x2505237D: mov byte ptr [esi + 0x1fc], bl */ 3428 MEM32(esi + 0x210) = ebx; /* 0x25052383: mov dword ptr [esi + 0x210], ebx */ 3429 MEM8(esi + 0x214) = (uint8_t)(LO8(ebx)); /* 0x25052389: mov byte ptr [esi + 0x214], bl */ 3430 MEM32(esi) = 0x25152700u; /* 0x2505238F: mov dword ptr [esi], 0x25152700 */ 3431 MEM32(esi + 0x8) = 0x251526F0u; /* 0x25052395: mov dword ptr [esi + 8], 0x251526f0 */ 3432 MEM32(esi + 0x20) = 0x251526E0u; /* 0x2505239C: mov dword ptr [esi + 0x20], 0x251526e0 */ 3433 MEM32(esi + 0x38) = 0x251526D0u; /* 0x250523A3: mov dword ptr [esi + 0x38], 0x251526d0 */ 3434 MEM32(esi + 0x50) = 0x251526C0u; /* 0x250523AA: mov dword ptr [esi + 0x50], 0x251526c0 */ 3435 MEM32(esi + 0x138) = 0x251526B0u; /* 0x250523B1: mov dword ptr [esi + 0x138], 0x251526b0 */ 3436 MEM32(esi + 0x150) = 0x251526A0u; /* 0x250523BB: mov dword ptr [esi + 0x150], 0x251526a0 */ 3437 MEM32(edi + 0x8) = edx; /* 0x250523C5: mov dword ptr [edi + 8], edx */ 3438 RECOMP_ICALL(MEM32(0x2515272C)); /* 0x250523C8: call dword ptr [0x2515272c] */ 3439 RECOMP_FLAGS_IN(); 3440 PUSH32(esp, 0x3ECu); /* 0x250523CE: push 0x3ec */ 3441 RECOMP_ICALL(0x251380D0u); /* 0x250523D3: call 0x251380d0 */ /* not lifted */ 3442 RECOMP_FLAGS_IN(); 3443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3444 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3445 esp = esp + 4; /* 0x250523D8: add esp, 4 */ 3446 _flag_k = FK_ADD; 3447 MEM32(ebp + 0x8) = eax; /* 0x250523DB: mov dword ptr [ebp + 8], eax */ 3448 /* cmp eax, ebx */ /* 0x250523DE: cmp eax, ebx */ 3449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3451 _flag_k = FK_CMP; 3452 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250523E0: mov byte ptr [ebp - 4], 1 */ 3453 if (CMP_EQ(_flag_a, _flag_b)) goto L_250523F1; /* 0x250523E4: je 0x250523f1 */ 3454 L_250523E6: 3455 PUSH32(esp, 1); /* 0x250523E6: push 1 */ 3456 ecx = eax; /* 0x250523E8: mov ecx, eax */ 3457 RECOMP_ICALL(0x250BC800u); /* 0x250523EA: call 0x250bc800 */ /* not lifted */ 3458 RECOMP_FLAGS_IN(); 3459 goto L_250523F3; /* 0x250523EF: jmp 0x250523f3 */ 3460 L_250523F1: 3461 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3462 eax = 0; /* 0x250523F1: xor eax, eax */ 3463 _cf = 0; 3464 _flag_k = FK_TEST; 3465 L_250523F3: 3466 MEM32(esi + 0x218) = eax; /* 0x250523F3: mov dword ptr [esi + 0x218], eax */ 3467 MEM32(esi + 0x224) = ebx; /* 0x250523F9: mov dword ptr [esi + 0x224], ebx */ 3468 MEM32(esi + 0x228) = ebx; /* 0x250523FF: mov dword ptr [esi + 0x228], ebx */ 3469 MEM32(esi + 0x22C) = ebx; /* 0x25052405: mov dword ptr [esi + 0x22c], ebx */ 3470 MEM32(esi + 0x230) = ebx; /* 0x2505240B: mov dword ptr [esi + 0x230], ebx */ 3471 MEM32(esi + 0x234) = ebx; /* 0x25052411: mov dword ptr [esi + 0x234], ebx */ 3472 MEM32(esi + 0x238) = ebx; /* 0x25052417: mov dword ptr [esi + 0x238], ebx */ 3473 MEM32(esi + 0x240) = ebx; /* 0x2505241D: mov dword ptr [esi + 0x240], ebx */ 3474 MEM32(esi + 0x244) = ebx; /* 0x25052423: mov dword ptr [esi + 0x244], ebx */ 3475 MEM32(esi + 0x248) = ebx; /* 0x25052429: mov dword ptr [esi + 0x248], ebx */ 3476 MEM32(esi + 0x250) = ebx; /* 0x2505242F: mov dword ptr [esi + 0x250], ebx */ 3477 MEM32(esi + 0x254) = ebx; /* 0x25052435: mov dword ptr [esi + 0x254], ebx */ 3478 MEM32(esi + 0x258) = ebx; /* 0x2505243B: mov dword ptr [esi + 0x258], ebx */ 3479 MEM32(ebp + (-0x4)) = 2; /* 0x25052441: mov dword ptr [ebp - 4], 2 */ 3480 MEM32(esi) = 0x25153EC4u; /* 0x25052448: mov dword ptr [esi], 0x25153ec4 */ 3481 MEM32(esi + 0x8) = 0x25153EB4u; /* 0x2505244E: mov dword ptr [esi + 8], 0x25153eb4 */ 3482 MEM32(esi + 0x20) = 0x25153EA4u; /* 0x25052455: mov dword ptr [esi + 0x20], 0x25153ea4 */ 3483 MEM32(esi + 0x38) = 0x25153E94u; /* 0x2505245C: mov dword ptr [esi + 0x38], 0x25153e94 */ 3484 MEM32(esi + 0x50) = 0x25153E84u; /* 0x25052463: mov dword ptr [esi + 0x50], 0x25153e84 */ 3485 MEM32(esi + 0x138) = 0x25153E74u; /* 0x2505246A: mov dword ptr [esi + 0x138], 0x25153e74 */ 3486 MEM32(esi + 0x150) = 0x25153E64u; /* 0x25052474: mov dword ptr [esi + 0x150], 0x25153e64 */ 3487 RECOMP_ICALL(0x2507F900u); /* 0x2505247E: call 0x2507f900 */ /* not lifted */ 3488 RECOMP_FLAGS_IN(); 3489 eax = MEM32(eax + 0x718); /* 0x25052483: mov eax, dword ptr [eax + 0x718] */ 3490 PUSH32(esp, 4); /* 0x25052489: push 4 */ 3491 ecx = esi; /* 0x2505248B: mov ecx, esi */ 3492 MEM32(esi + 0x21C) = eax; /* 0x2505248D: mov dword ptr [esi + 0x21c], eax */ 3493 RECOMP_ICALL(0x250DDB50u); /* 0x25052493: call 0x250ddb50 */ /* not lifted */ 3494 RECOMP_FLAGS_IN(); 3495 ecx = esi; /* 0x25052498: mov ecx, esi */ 3496 RECOMP_ICALL(0x25054E00u); /* 0x2505249A: call 0x25054e00 */ /* not lifted */ 3497 RECOMP_FLAGS_IN(); 3498 ecx = MEM32(ebp + (-0xC)); /* 0x2505249F: mov ecx, dword ptr [ebp - 0xc] */ 3499 edi = POP32_VAL(esp); /* 0x250524A2: pop edi */ 3500 eax = esi; /* 0x250524A3: mov eax, esi */ 3501 esi = POP32_VAL(esp); /* 0x250524A5: pop esi */ 3502 ebx = POP32_VAL(esp); /* 0x250524A6: pop ebx */ 3503 MEM32(FS_BASE + (0)) = ecx; /* 0x250524A7: mov dword ptr fs:[0], ecx */ 3504 esp = ebp; /* 0x250524AE: mov esp, ebp */ 3505 ebp = POP32_VAL(esp); /* 0x250524B0: pop ebp */ 3506 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250524B1: ret 8 */ 3507 RECOMP_REGS_OUT(); 3508 } 3509 3510 void sub_25052305(void) { 3511 int _fpu_cmp = 0; 3512 uint32_t _cf = 0; 3513 int _df = 1; 3514 uint32_t _flag_k = FK_NONE; 3515 uint32_t _flag_a = 0, _flag_b = 0; 3516 uint32_t _itail_tgt = 0; 3517 RECOMP_REGS_LOCALS 3518 RECOMP_ENTER(0x25052305u); 3519 3520 L_25052305: 3521 MEM32(ebp + (-0x14)) = 0; /* 0x25052305: mov dword ptr [ebp - 0x14], 0 */ 3522 RECOMP_ICALL(0x250DA9D0u); /* 0x2505230C: call 0x250da9d0 */ /* not lifted */ 3523 RECOMP_FLAGS_IN(); 3524 eax = MEM32(ebp + 0x8); /* 0x25052311: mov eax, dword ptr [ebp + 8] */ 3525 ecx = MEM32(ebp + 0xC); /* 0x25052314: mov ecx, dword ptr [ebp + 0xc] */ 3526 edx = esi + 0x204; /* 0x25052317: lea edx, [esi + 0x204] */ 3527 MEM32(esi + 0x1D4) = eax; /* 0x2505231D: mov dword ptr [esi + 0x1d4], eax */ 3528 eax = MEM32(ebp + (-0x1C)); /* 0x25052323: mov eax, dword ptr [ebp - 0x1c] */ 3529 edi = edx; /* 0x25052326: mov edi, edx */ 3530 edx = MEM32(ebp + (-0x14)); /* 0x25052328: mov edx, dword ptr [ebp - 0x14] */ 3531 MEM32(edi) = eax; /* 0x2505232B: mov dword ptr [edi], eax */ 3532 MEM32(esi + 0x1D8) = ecx; /* 0x2505232D: mov dword ptr [esi + 0x1d8], ecx */ 3533 ecx = MEM32(ebp + (-0x18)); /* 0x25052333: mov ecx, dword ptr [ebp - 0x18] */ 3534 MEM32(edi + 0x4) = ecx; /* 0x25052336: mov dword ptr [edi + 4], ecx */ 3535 MEM32(edi + 0x8) = edx; /* 0x25052339: mov dword ptr [edi + 8], edx */ 3536 edi = esi + 0x78; /* 0x2505233C: lea edi, [esi + 0x78] */ 3537 MEM32(edi) = eax; /* 0x2505233F: mov dword ptr [edi], eax */ 3538 MEM32(edi + 0x4) = ecx; /* 0x25052341: mov dword ptr [edi + 4], ecx */ 3539 PUSH32(esp, 1); /* 0x25052344: push 1 */ 3540 PUSH32(esp, 1); /* 0x25052346: push 1 */ 3541 ecx = esi; /* 0x25052348: mov ecx, esi */ 3542 MEM32(ebp + (-0x4)) = ebx; /* 0x2505234A: mov dword ptr [ebp - 4], ebx */ 3543 MEM32(esi + 0x1DC) = ebx; /* 0x2505234D: mov dword ptr [esi + 0x1dc], ebx */ 3544 MEM32(esi + 0x1E0) = ebx; /* 0x25052353: mov dword ptr [esi + 0x1e0], ebx */ 3545 MEM32(esi + 0x1E4) = ebx; /* 0x25052359: mov dword ptr [esi + 0x1e4], ebx */ 3546 MEM32(esi + 0x1E8) = ebx; /* 0x2505235F: mov dword ptr [esi + 0x1e8], ebx */ 3547 MEM32(esi + 0x1EC) = ebx; /* 0x25052365: mov dword ptr [esi + 0x1ec], ebx */ 3548 MEM32(esi + 0x1F0) = ebx; /* 0x2505236B: mov dword ptr [esi + 0x1f0], ebx */ 3549 MEM32(esi + 0x1F4) = ebx; /* 0x25052371: mov dword ptr [esi + 0x1f4], ebx */ 3550 MEM32(esi + 0x1F8) = ebx; /* 0x25052377: mov dword ptr [esi + 0x1f8], ebx */ 3551 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x2505237D: mov byte ptr [esi + 0x1fc], bl */ 3552 MEM32(esi + 0x210) = ebx; /* 0x25052383: mov dword ptr [esi + 0x210], ebx */ 3553 MEM8(esi + 0x214) = (uint8_t)(LO8(ebx)); /* 0x25052389: mov byte ptr [esi + 0x214], bl */ 3554 MEM32(esi) = 0x25152700u; /* 0x2505238F: mov dword ptr [esi], 0x25152700 */ 3555 MEM32(esi + 0x8) = 0x251526F0u; /* 0x25052395: mov dword ptr [esi + 8], 0x251526f0 */ 3556 MEM32(esi + 0x20) = 0x251526E0u; /* 0x2505239C: mov dword ptr [esi + 0x20], 0x251526e0 */ 3557 MEM32(esi + 0x38) = 0x251526D0u; /* 0x250523A3: mov dword ptr [esi + 0x38], 0x251526d0 */ 3558 MEM32(esi + 0x50) = 0x251526C0u; /* 0x250523AA: mov dword ptr [esi + 0x50], 0x251526c0 */ 3559 MEM32(esi + 0x138) = 0x251526B0u; /* 0x250523B1: mov dword ptr [esi + 0x138], 0x251526b0 */ 3560 MEM32(esi + 0x150) = 0x251526A0u; /* 0x250523BB: mov dword ptr [esi + 0x150], 0x251526a0 */ 3561 MEM32(edi + 0x8) = edx; /* 0x250523C5: mov dword ptr [edi + 8], edx */ 3562 RECOMP_ICALL(MEM32(0x2515272C)); /* 0x250523C8: call dword ptr [0x2515272c] */ 3563 RECOMP_FLAGS_IN(); 3564 PUSH32(esp, 0x3ECu); /* 0x250523CE: push 0x3ec */ 3565 RECOMP_ICALL(0x251380D0u); /* 0x250523D3: call 0x251380d0 */ /* not lifted */ 3566 RECOMP_FLAGS_IN(); 3567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3568 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3569 esp = esp + 4; /* 0x250523D8: add esp, 4 */ 3570 _flag_k = FK_ADD; 3571 MEM32(ebp + 0x8) = eax; /* 0x250523DB: mov dword ptr [ebp + 8], eax */ 3572 /* cmp eax, ebx */ /* 0x250523DE: cmp eax, ebx */ 3573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3575 _flag_k = FK_CMP; 3576 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250523E0: mov byte ptr [ebp - 4], 1 */ 3577 if (CMP_EQ(_flag_a, _flag_b)) goto L_250523F1; /* 0x250523E4: je 0x250523f1 */ 3578 L_250523E6: 3579 PUSH32(esp, 1); /* 0x250523E6: push 1 */ 3580 ecx = eax; /* 0x250523E8: mov ecx, eax */ 3581 RECOMP_ICALL(0x250BC800u); /* 0x250523EA: call 0x250bc800 */ /* not lifted */ 3582 RECOMP_FLAGS_IN(); 3583 goto L_250523F3; /* 0x250523EF: jmp 0x250523f3 */ 3584 L_250523F1: 3585 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3586 eax = 0; /* 0x250523F1: xor eax, eax */ 3587 _cf = 0; 3588 _flag_k = FK_TEST; 3589 L_250523F3: 3590 MEM32(esi + 0x218) = eax; /* 0x250523F3: mov dword ptr [esi + 0x218], eax */ 3591 MEM32(esi + 0x224) = ebx; /* 0x250523F9: mov dword ptr [esi + 0x224], ebx */ 3592 MEM32(esi + 0x228) = ebx; /* 0x250523FF: mov dword ptr [esi + 0x228], ebx */ 3593 MEM32(esi + 0x22C) = ebx; /* 0x25052405: mov dword ptr [esi + 0x22c], ebx */ 3594 MEM32(esi + 0x230) = ebx; /* 0x2505240B: mov dword ptr [esi + 0x230], ebx */ 3595 MEM32(esi + 0x234) = ebx; /* 0x25052411: mov dword ptr [esi + 0x234], ebx */ 3596 MEM32(esi + 0x238) = ebx; /* 0x25052417: mov dword ptr [esi + 0x238], ebx */ 3597 MEM32(esi + 0x240) = ebx; /* 0x2505241D: mov dword ptr [esi + 0x240], ebx */ 3598 MEM32(esi + 0x244) = ebx; /* 0x25052423: mov dword ptr [esi + 0x244], ebx */ 3599 MEM32(esi + 0x248) = ebx; /* 0x25052429: mov dword ptr [esi + 0x248], ebx */ 3600 MEM32(esi + 0x250) = ebx; /* 0x2505242F: mov dword ptr [esi + 0x250], ebx */ 3601 MEM32(esi + 0x254) = ebx; /* 0x25052435: mov dword ptr [esi + 0x254], ebx */ 3602 MEM32(esi + 0x258) = ebx; /* 0x2505243B: mov dword ptr [esi + 0x258], ebx */ 3603 MEM32(ebp + (-0x4)) = 2; /* 0x25052441: mov dword ptr [ebp - 4], 2 */ 3604 MEM32(esi) = 0x25153EC4u; /* 0x25052448: mov dword ptr [esi], 0x25153ec4 */ 3605 MEM32(esi + 0x8) = 0x25153EB4u; /* 0x2505244E: mov dword ptr [esi + 8], 0x25153eb4 */ 3606 MEM32(esi + 0x20) = 0x25153EA4u; /* 0x25052455: mov dword ptr [esi + 0x20], 0x25153ea4 */ 3607 MEM32(esi + 0x38) = 0x25153E94u; /* 0x2505245C: mov dword ptr [esi + 0x38], 0x25153e94 */ 3608 MEM32(esi + 0x50) = 0x25153E84u; /* 0x25052463: mov dword ptr [esi + 0x50], 0x25153e84 */ 3609 MEM32(esi + 0x138) = 0x25153E74u; /* 0x2505246A: mov dword ptr [esi + 0x138], 0x25153e74 */ 3610 MEM32(esi + 0x150) = 0x25153E64u; /* 0x25052474: mov dword ptr [esi + 0x150], 0x25153e64 */ 3611 RECOMP_ICALL(0x2507F900u); /* 0x2505247E: call 0x2507f900 */ /* not lifted */ 3612 RECOMP_FLAGS_IN(); 3613 eax = MEM32(eax + 0x718); /* 0x25052483: mov eax, dword ptr [eax + 0x718] */ 3614 PUSH32(esp, 4); /* 0x25052489: push 4 */ 3615 ecx = esi; /* 0x2505248B: mov ecx, esi */ 3616 MEM32(esi + 0x21C) = eax; /* 0x2505248D: mov dword ptr [esi + 0x21c], eax */ 3617 RECOMP_ICALL(0x250DDB50u); /* 0x25052493: call 0x250ddb50 */ /* not lifted */ 3618 RECOMP_FLAGS_IN(); 3619 ecx = esi; /* 0x25052498: mov ecx, esi */ 3620 RECOMP_ICALL(0x25054E00u); /* 0x2505249A: call 0x25054e00 */ /* not lifted */ 3621 RECOMP_FLAGS_IN(); 3622 ecx = MEM32(ebp + (-0xC)); /* 0x2505249F: mov ecx, dword ptr [ebp - 0xc] */ 3623 edi = POP32_VAL(esp); /* 0x250524A2: pop edi */ 3624 eax = esi; /* 0x250524A3: mov eax, esi */ 3625 esi = POP32_VAL(esp); /* 0x250524A5: pop esi */ 3626 ebx = POP32_VAL(esp); /* 0x250524A6: pop ebx */ 3627 MEM32(FS_BASE + (0)) = ecx; /* 0x250524A7: mov dword ptr fs:[0], ecx */ 3628 esp = ebp; /* 0x250524AE: mov esp, ebp */ 3629 ebp = POP32_VAL(esp); /* 0x250524B0: pop ebp */ 3630 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250524B1: ret 8 */ 3631 RECOMP_REGS_OUT(); 3632 } 3633 3634 void sub_250523F3(void) { 3635 int _fpu_cmp = 0; 3636 uint32_t _cf = 0; 3637 int _df = 1; 3638 uint32_t _flag_k = FK_NONE; 3639 uint32_t _flag_a = 0, _flag_b = 0; 3640 uint32_t _itail_tgt = 0; 3641 RECOMP_REGS_LOCALS 3642 RECOMP_ENTER(0x250523F3u); 3643 3644 L_250523F3: 3645 MEM32(esi + 0x218) = eax; /* 0x250523F3: mov dword ptr [esi + 0x218], eax */ 3646 MEM32(esi + 0x224) = ebx; /* 0x250523F9: mov dword ptr [esi + 0x224], ebx */ 3647 MEM32(esi + 0x228) = ebx; /* 0x250523FF: mov dword ptr [esi + 0x228], ebx */ 3648 MEM32(esi + 0x22C) = ebx; /* 0x25052405: mov dword ptr [esi + 0x22c], ebx */ 3649 MEM32(esi + 0x230) = ebx; /* 0x2505240B: mov dword ptr [esi + 0x230], ebx */ 3650 MEM32(esi + 0x234) = ebx; /* 0x25052411: mov dword ptr [esi + 0x234], ebx */ 3651 MEM32(esi + 0x238) = ebx; /* 0x25052417: mov dword ptr [esi + 0x238], ebx */ 3652 MEM32(esi + 0x240) = ebx; /* 0x2505241D: mov dword ptr [esi + 0x240], ebx */ 3653 MEM32(esi + 0x244) = ebx; /* 0x25052423: mov dword ptr [esi + 0x244], ebx */ 3654 MEM32(esi + 0x248) = ebx; /* 0x25052429: mov dword ptr [esi + 0x248], ebx */ 3655 MEM32(esi + 0x250) = ebx; /* 0x2505242F: mov dword ptr [esi + 0x250], ebx */ 3656 MEM32(esi + 0x254) = ebx; /* 0x25052435: mov dword ptr [esi + 0x254], ebx */ 3657 MEM32(esi + 0x258) = ebx; /* 0x2505243B: mov dword ptr [esi + 0x258], ebx */ 3658 MEM32(ebp + (-0x4)) = 2; /* 0x25052441: mov dword ptr [ebp - 4], 2 */ 3659 MEM32(esi) = 0x25153EC4u; /* 0x25052448: mov dword ptr [esi], 0x25153ec4 */ 3660 MEM32(esi + 0x8) = 0x25153EB4u; /* 0x2505244E: mov dword ptr [esi + 8], 0x25153eb4 */ 3661 MEM32(esi + 0x20) = 0x25153EA4u; /* 0x25052455: mov dword ptr [esi + 0x20], 0x25153ea4 */ 3662 MEM32(esi + 0x38) = 0x25153E94u; /* 0x2505245C: mov dword ptr [esi + 0x38], 0x25153e94 */ 3663 MEM32(esi + 0x50) = 0x25153E84u; /* 0x25052463: mov dword ptr [esi + 0x50], 0x25153e84 */ 3664 MEM32(esi + 0x138) = 0x25153E74u; /* 0x2505246A: mov dword ptr [esi + 0x138], 0x25153e74 */ 3665 MEM32(esi + 0x150) = 0x25153E64u; /* 0x25052474: mov dword ptr [esi + 0x150], 0x25153e64 */ 3666 RECOMP_ICALL(0x2507F900u); /* 0x2505247E: call 0x2507f900 */ /* not lifted */ 3667 RECOMP_FLAGS_IN(); 3668 eax = MEM32(eax + 0x718); /* 0x25052483: mov eax, dword ptr [eax + 0x718] */ 3669 PUSH32(esp, 4); /* 0x25052489: push 4 */ 3670 ecx = esi; /* 0x2505248B: mov ecx, esi */ 3671 MEM32(esi + 0x21C) = eax; /* 0x2505248D: mov dword ptr [esi + 0x21c], eax */ 3672 RECOMP_ICALL(0x250DDB50u); /* 0x25052493: call 0x250ddb50 */ /* not lifted */ 3673 RECOMP_FLAGS_IN(); 3674 ecx = esi; /* 0x25052498: mov ecx, esi */ 3675 RECOMP_ICALL(0x25054E00u); /* 0x2505249A: call 0x25054e00 */ /* not lifted */ 3676 RECOMP_FLAGS_IN(); 3677 ecx = MEM32(ebp + (-0xC)); /* 0x2505249F: mov ecx, dword ptr [ebp - 0xc] */ 3678 edi = POP32_VAL(esp); /* 0x250524A2: pop edi */ 3679 eax = esi; /* 0x250524A3: mov eax, esi */ 3680 esi = POP32_VAL(esp); /* 0x250524A5: pop esi */ 3681 ebx = POP32_VAL(esp); /* 0x250524A6: pop ebx */ 3682 MEM32(FS_BASE + (0)) = ecx; /* 0x250524A7: mov dword ptr fs:[0], ecx */ 3683 esp = ebp; /* 0x250524AE: mov esp, ebp */ 3684 ebp = POP32_VAL(esp); /* 0x250524B0: pop ebp */ 3685 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250524B1: ret 8 */ 3686 RECOMP_REGS_OUT(); 3687 } 3688 3689 void sub_250524C0(void) { 3690 int _fpu_cmp = 0; 3691 uint32_t _cf = 0; 3692 int _df = 1; 3693 uint32_t _flag_k = FK_NONE; 3694 uint32_t _flag_a = 0, _flag_b = 0; 3695 uint32_t _itail_tgt = 0; 3696 RECOMP_REGS_LOCALS 3697 RECOMP_ENTER(0x250524C0u); 3698 3699 L_250524C0: 3700 PUSH32(esp, ebp); /* 0x250524C0: push ebp */ 3701 ebp = esp; /* 0x250524C1: mov ebp, esp */ 3702 PUSH32(esp, 0xFFFFFFFFu); /* 0x250524C3: push -1 */ 3703 PUSH32(esp, 0x25147000u); /* 0x250524C5: push 0x25147000 */ 3704 eax = MEM32(FS_BASE + (0)); /* 0x250524CA: mov eax, dword ptr fs:[0] */ 3705 PUSH32(esp, eax); /* 0x250524D0: push eax */ 3706 MEM32(FS_BASE + (0)) = esp; /* 0x250524D1: mov dword ptr fs:[0], esp */ 3707 PUSH32(esp, ecx); /* 0x250524D8: push ecx */ 3708 PUSH32(esp, ebx); /* 0x250524D9: push ebx */ 3709 PUSH32(esp, esi); /* 0x250524DA: push esi */ 3710 esi = ecx; /* 0x250524DB: mov esi, ecx */ 3711 MEM32(ebp + (-0x10)) = esi; /* 0x250524DD: mov dword ptr [ebp - 0x10], esi */ 3712 MEM32(esi) = 0x25153EC4u; /* 0x250524E0: mov dword ptr [esi], 0x25153ec4 */ 3713 MEM32(esi + 0x8) = 0x25153EB4u; /* 0x250524E6: mov dword ptr [esi + 8], 0x25153eb4 */ 3714 MEM32(esi + 0x20) = 0x25153EA4u; /* 0x250524ED: mov dword ptr [esi + 0x20], 0x25153ea4 */ 3715 MEM32(esi + 0x38) = 0x25153E94u; /* 0x250524F4: mov dword ptr [esi + 0x38], 0x25153e94 */ 3716 MEM32(esi + 0x50) = 0x25153E84u; /* 0x250524FB: mov dword ptr [esi + 0x50], 0x25153e84 */ 3717 MEM32(esi + 0x138) = 0x25153E74u; /* 0x25052502: mov dword ptr [esi + 0x138], 0x25153e74 */ 3718 MEM32(esi + 0x150) = 0x25153E64u; /* 0x2505250C: mov dword ptr [esi + 0x150], 0x25153e64 */ 3719 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3720 ebx = 0; /* 0x25052516: xor ebx, ebx */ 3721 _cf = 0; 3722 _flag_k = FK_TEST; 3723 MEM32(ebp + (-0x4)) = ebx; /* 0x25052518: mov dword ptr [ebp - 4], ebx */ 3724 RECOMP_ICALL(0x25054B90u); /* 0x2505251B: call 0x25054b90 */ /* not lifted */ 3725 RECOMP_FLAGS_IN(); 3726 MEM32(esi) = 0x25152700u; /* 0x25052520: mov dword ptr [esi], 0x25152700 */ 3727 MEM32(esi + 0x8) = 0x251526F0u; /* 0x25052526: mov dword ptr [esi + 8], 0x251526f0 */ 3728 MEM32(esi + 0x20) = 0x251526E0u; /* 0x2505252D: mov dword ptr [esi + 0x20], 0x251526e0 */ 3729 MEM32(esi + 0x38) = 0x251526D0u; /* 0x25052534: mov dword ptr [esi + 0x38], 0x251526d0 */ 3730 MEM32(esi + 0x50) = 0x251526C0u; /* 0x2505253B: mov dword ptr [esi + 0x50], 0x251526c0 */ 3731 MEM32(esi + 0x138) = 0x251526B0u; /* 0x25052542: mov dword ptr [esi + 0x138], 0x251526b0 */ 3732 MEM32(esi + 0x150) = 0x251526A0u; /* 0x2505254C: mov dword ptr [esi + 0x150], 0x251526a0 */ 3733 /* cmp MEM8(esi + 0x1FC), LO8(ebx) */ /* 0x25052556: cmp byte ptr [esi + 0x1fc], bl */ 3734 _flag_a = (uint32_t)(MEM8(esi + 0x1FC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3736 _flag_k = FK_NARROW(FK_CMP, 24); 3737 MEM32(ebp + (-0x4)) = 1; /* 0x2505255C: mov dword ptr [ebp - 4], 1 */ 3738 if (CMP_EQ(_flag_a, _flag_b)) goto L_2505257F; /* 0x25052563: je 0x2505257f */ 3739 L_25052565: 3740 RECOMP_ICALL(0x25094150u); /* 0x25052565: call 0x25094150 */ /* not lifted */ 3741 RECOMP_FLAGS_IN(); 3742 ecx = eax; /* 0x2505256A: mov ecx, eax */ 3743 RECOMP_ICALL(0x25094220u); /* 0x2505256C: call 0x25094220 */ /* not lifted */ 3744 RECOMP_FLAGS_IN(); 3745 edx = MEM32(eax); /* 0x25052571: mov edx, dword ptr [eax] */ 3746 PUSH32(esp, esi); /* 0x25052573: push esi */ 3747 ecx = eax; /* 0x25052574: mov ecx, eax */ 3748 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x25052576: call dword ptr [edx + 0x10] */ 3749 RECOMP_FLAGS_IN(); 3750 MEM8(esi + 0x1FC) = (uint8_t)(LO8(ebx)); /* 0x25052579: mov byte ptr [esi + 0x1fc], bl */ 3751 L_2505257F: 3752 eax = MEM32(esi + 0x1E0); /* 0x2505257F: mov eax, dword ptr [esi + 0x1e0] */ 3753 /* cmp eax, ebx */ /* 0x25052585: cmp eax, ebx */ 3754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3756 _flag_k = FK_CMP; 3757 if (CMP_EQ(_flag_a, _flag_b)) goto L_25052598; /* 0x25052587: je 0x25052598 */ 3758 L_25052589: 3759 PUSH32(esp, eax); /* 0x25052589: push eax */ 3760 RECOMP_ICALL(0x25137EECu); /* 0x2505258A: call 0x25137eec */ /* not lifted */ 3761 RECOMP_FLAGS_IN(); 3762 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3763 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3764 esp = esp + 4; /* 0x2505258F: add esp, 4 */ 3765 _flag_k = FK_ADD; 3766 MEM32(esi + 0x1E0) = ebx; /* 0x25052592: mov dword ptr [esi + 0x1e0], ebx */ 3767 L_25052598: 3768 eax = MEM32(esi + 0x1E4); /* 0x25052598: mov eax, dword ptr [esi + 0x1e4] */ 3769 /* cmp eax, ebx */ /* 0x2505259E: cmp eax, ebx */ 3770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3772 _flag_k = FK_CMP; 3773 if (CMP_EQ(_flag_a, _flag_b)) goto L_250525B1; /* 0x250525A0: je 0x250525b1 */ 3774 L_250525A2: 3775 PUSH32(esp, eax); /* 0x250525A2: push eax */ 3776 RECOMP_ICALL(0x25137EECu); /* 0x250525A3: call 0x25137eec */ /* not lifted */ 3777 RECOMP_FLAGS_IN(); 3778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3779 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3780 esp = esp + 4; /* 0x250525A8: add esp, 4 */ 3781 _flag_k = FK_ADD; 3782 MEM32(esi + 0x1E4) = ebx; /* 0x250525AB: mov dword ptr [esi + 0x1e4], ebx */ 3783 L_250525B1: 3784 eax = MEM32(esi + 0x1E8); /* 0x250525B1: mov eax, dword ptr [esi + 0x1e8] */ 3785 /* cmp eax, ebx */ /* 0x250525B7: cmp eax, ebx */ 3786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3788 _flag_k = FK_CMP; 3789 if (CMP_EQ(_flag_a, _flag_b)) goto L_250525CA; /* 0x250525B9: je 0x250525ca */ 3790 L_250525BB: 3791 PUSH32(esp, eax); /* 0x250525BB: push eax */ 3792 RECOMP_ICALL(0x25137EECu); /* 0x250525BC: call 0x25137eec */ /* not lifted */ 3793 RECOMP_FLAGS_IN(); 3794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3795 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3796 esp = esp + 4; /* 0x250525C1: add esp, 4 */ 3797 _flag_k = FK_ADD; 3798 MEM32(esi + 0x1E8) = ebx; /* 0x250525C4: mov dword ptr [esi + 0x1e8], ebx */ 3799 L_250525CA: 3800 eax = MEM32(esi + 0x1EC); /* 0x250525CA: mov eax, dword ptr [esi + 0x1ec] */ 3801 /* cmp eax, ebx */ /* 0x250525D0: cmp eax, ebx */ 3802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3804 _flag_k = FK_CMP; 3805 if (CMP_EQ(_flag_a, _flag_b)) goto L_250525E3; /* 0x250525D2: je 0x250525e3 */ 3806 L_250525D4: 3807 PUSH32(esp, eax); /* 0x250525D4: push eax */ 3808 RECOMP_ICALL(0x25137EECu); /* 0x250525D5: call 0x25137eec */ /* not lifted */ 3809 RECOMP_FLAGS_IN(); 3810 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3812 esp = esp + 4; /* 0x250525DA: add esp, 4 */ 3813 _flag_k = FK_ADD; 3814 MEM32(esi + 0x1EC) = ebx; /* 0x250525DD: mov dword ptr [esi + 0x1ec], ebx */ 3815 L_250525E3: 3816 eax = MEM32(esi + 0x1F0); /* 0x250525E3: mov eax, dword ptr [esi + 0x1f0] */ 3817 /* cmp eax, ebx */ /* 0x250525E9: cmp eax, ebx */ 3818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3820 _flag_k = FK_CMP; 3821 if (CMP_EQ(_flag_a, _flag_b)) goto L_250525FC; /* 0x250525EB: je 0x250525fc */ 3822 L_250525ED: 3823 PUSH32(esp, eax); /* 0x250525ED: push eax */ 3824 RECOMP_ICALL(0x25137EECu); /* 0x250525EE: call 0x25137eec */ /* not lifted */ 3825 RECOMP_FLAGS_IN(); 3826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3828 esp = esp + 4; /* 0x250525F3: add esp, 4 */ 3829 _flag_k = FK_ADD; 3830 MEM32(esi + 0x1F0) = ebx; /* 0x250525F6: mov dword ptr [esi + 0x1f0], ebx */ 3831 L_250525FC: 3832 eax = MEM32(esi + 0x1F4); /* 0x250525FC: mov eax, dword ptr [esi + 0x1f4] */ 3833 /* cmp eax, ebx */ /* 0x25052602: cmp eax, ebx */ 3834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3836 _flag_k = FK_CMP; 3837 if (CMP_EQ(_flag_a, _flag_b)) goto L_25052615; /* 0x25052604: je 0x25052615 */ 3838 L_25052606: 3839 PUSH32(esp, eax); /* 0x25052606: push eax */ 3840 RECOMP_ICALL(0x25137EECu); /* 0x25052607: call 0x25137eec */ /* not lifted */ 3841 RECOMP_FLAGS_IN(); 3842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3844 esp = esp + 4; /* 0x2505260C: add esp, 4 */ 3845 _flag_k = FK_ADD; 3846 MEM32(esi + 0x1F4) = ebx; /* 0x2505260F: mov dword ptr [esi + 0x1f4], ebx */ 3847 L_25052615: 3848 eax = MEM32(esi + 0x218); /* 0x25052615: mov eax, dword ptr [esi + 0x218] */ 3849 /* cmp eax, ebx */ /* 0x2505261B: cmp eax, ebx */ 3850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3852 _flag_k = FK_CMP; 3853 if (CMP_EQ(_flag_a, _flag_b)) goto L_2505262E; /* 0x2505261D: je 0x2505262e */ 3854 L_2505261F: 3855 PUSH32(esp, eax); /* 0x2505261F: push eax */ 3856 RECOMP_ICALL(0x25137EECu); /* 0x25052620: call 0x25137eec */ /* not lifted */ 3857 RECOMP_FLAGS_IN(); 3858 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3860 esp = esp + 4; /* 0x25052625: add esp, 4 */ 3861 _flag_k = FK_ADD; 3862 MEM32(esi + 0x218) = ebx; /* 0x25052628: mov dword ptr [esi + 0x218], ebx */ 3863 L_2505262E: 3864 ecx = esi; /* 0x2505262E: mov ecx, esi */ 3865 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25052630: mov dword ptr [ebp - 4], 0xffffffff */ 3866 RECOMP_ICALL(0x250DB0B0u); /* 0x25052637: call 0x250db0b0 */ /* not lifted */ 3867 RECOMP_FLAGS_IN(); 3868 ecx = MEM32(ebp + (-0xC)); /* 0x2505263C: mov ecx, dword ptr [ebp - 0xc] */ 3869 esi = POP32_VAL(esp); /* 0x2505263F: pop esi */ 3870 ebx = POP32_VAL(esp); /* 0x25052640: pop ebx */ 3871 MEM32(FS_BASE + (0)) = ecx; /* 0x25052641: mov dword ptr fs:[0], ecx */ 3872 esp = ebp; /* 0x25052648: mov esp, ebp */ 3873 ebp = POP32_VAL(esp); /* 0x2505264A: pop ebp */ 3874 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2505264B: ret */ 3875 RECOMP_REGS_OUT(); 3876 } 3877 3878 void sub_25052650(void) { 3879 int _fpu_cmp = 0; 3880 uint32_t _cf = 0; 3881 int _df = 1; 3882 uint32_t _flag_k = FK_NONE; 3883 uint32_t _flag_a = 0, _flag_b = 0; 3884 uint32_t _itail_tgt = 0; 3885 RECOMP_REGS_LOCALS 3886 RECOMP_ENTER(0x25052650u); 3887 3888 L_25052650: 3889 goto L_25052660; /* 0x25052650: jmp 0x25052660 */ 3890 L_25052660: 3891 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25052660: ret */ 3892 RECOMP_REGS_OUT(); 3893 } 3894 3895 void sub_25052660(void) { 3896 int _fpu_cmp = 0; 3897 uint32_t _cf = 0; 3898 int _df = 1; 3899 uint32_t _flag_k = FK_NONE; 3900 uint32_t _flag_a = 0, _flag_b = 0; 3901 uint32_t _itail_tgt = 0; 3902 RECOMP_REGS_LOCALS 3903 RECOMP_ENTER(0x25052660u); 3904 3905 L_25052660: 3906 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25052660: ret */ 3907 RECOMP_REGS_OUT(); 3908 } 3909 3910 void sub_25052670(void) { 3911 int _fpu_cmp = 0; 3912 uint32_t _cf = 0; 3913 int _df = 1; 3914 uint32_t _flag_k = FK_NONE; 3915 uint32_t _flag_a = 0, _flag_b = 0; 3916 uint32_t _itail_tgt = 0; 3917 RECOMP_REGS_LOCALS 3918 RECOMP_ENTER(0x25052670u); 3919 3920 L_25052670: 3921 goto L_25052680; /* 0x25052670: jmp 0x25052680 */ 3922 L_25052680: 3923 PUSH32(esp, ebp); /* 0x25052680: push ebp */ 3924 ebp = esp; /* 0x25052681: mov ebp, esp */ 3925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3927 esp = esp - 0xCu; /* 0x25052683: sub esp, 0xc */ 3928 _flag_k = FK_CMP; 3929 MEM32(ebp + (-0xC)) = 0; /* 0x25052686: mov dword ptr [ebp - 0xc], 0 */ 3930 eax = MEM32(ebp + (-0xC)); /* 0x2505268D: mov eax, dword ptr [ebp - 0xc] */ 3931 MEM32(ebp + (-0x8)) = 0; /* 0x25052690: mov dword ptr [ebp - 8], 0 */ 3932 ecx = MEM32(ebp + (-0x8)); /* 0x25052697: mov ecx, dword ptr [ebp - 8] */ 3933 MEM32(ebp + (-0x4)) = 0; /* 0x2505269A: mov dword ptr [ebp - 4], 0 */ 3934 edx = MEM32(ebp + (-0x4)); /* 0x250526A1: mov edx, dword ptr [ebp - 4] */ 3935 MEM32(0x251C7660) = eax; /* 0x250526A4: mov dword ptr [0x251c7660], eax */ 3936 MEM32(0x251C7664) = ecx; /* 0x250526A9: mov dword ptr [0x251c7664], ecx */ 3937 MEM32(0x251C7668) = edx; /* 0x250526AF: mov dword ptr [0x251c7668], edx */ 3938 esp = ebp; /* 0x250526B5: mov esp, ebp */ 3939 ebp = POP32_VAL(esp); /* 0x250526B7: pop ebp */ 3940 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250526B8: ret */ 3941 RECOMP_REGS_OUT(); 3942 } 3943 3944 void sub_25052680(void) { 3945 int _fpu_cmp = 0; 3946 uint32_t _cf = 0; 3947 int _df = 1; 3948 uint32_t _flag_k = FK_NONE; 3949 uint32_t _flag_a = 0, _flag_b = 0; 3950 uint32_t _itail_tgt = 0; 3951 RECOMP_REGS_LOCALS 3952 RECOMP_ENTER(0x25052680u); 3953 3954 L_25052680: 3955 PUSH32(esp, ebp); /* 0x25052680: push ebp */ 3956 ebp = esp; /* 0x25052681: mov ebp, esp */ 3957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3959 esp = esp - 0xCu; /* 0x25052683: sub esp, 0xc */ 3960 _flag_k = FK_CMP; 3961 MEM32(ebp + (-0xC)) = 0; /* 0x25052686: mov dword ptr [ebp - 0xc], 0 */ 3962 eax = MEM32(ebp + (-0xC)); /* 0x2505268D: mov eax, dword ptr [ebp - 0xc] */ 3963 MEM32(ebp + (-0x8)) = 0; /* 0x25052690: mov dword ptr [ebp - 8], 0 */ 3964 ecx = MEM32(ebp + (-0x8)); /* 0x25052697: mov ecx, dword ptr [ebp - 8] */ 3965 MEM32(ebp + (-0x4)) = 0; /* 0x2505269A: mov dword ptr [ebp - 4], 0 */ 3966 edx = MEM32(ebp + (-0x4)); /* 0x250526A1: mov edx, dword ptr [ebp - 4] */ 3967 MEM32(0x251C7660) = eax; /* 0x250526A4: mov dword ptr [0x251c7660], eax */ 3968 MEM32(0x251C7664) = ecx; /* 0x250526A9: mov dword ptr [0x251c7664], ecx */ 3969 MEM32(0x251C7668) = edx; /* 0x250526AF: mov dword ptr [0x251c7668], edx */ 3970 esp = ebp; /* 0x250526B5: mov esp, ebp */ 3971 ebp = POP32_VAL(esp); /* 0x250526B7: pop ebp */ 3972 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250526B8: ret */ 3973 RECOMP_REGS_OUT(); 3974 } 3975 3976 void sub_250526C0(void) { 3977 int _fpu_cmp = 0; 3978 uint32_t _cf = 0; 3979 int _df = 1; 3980 uint32_t _flag_k = FK_NONE; 3981 uint32_t _flag_a = 0, _flag_b = 0; 3982 uint32_t _itail_tgt = 0; 3983 RECOMP_REGS_LOCALS 3984 RECOMP_ENTER(0x250526C0u); 3985 3986 L_250526C0: 3987 goto L_250526D0; /* 0x250526C0: jmp 0x250526d0 */ 3988 L_250526D0: 3989 MEM32(0x251C7670) = 0; /* 0x250526D0: mov dword ptr [0x251c7670], 0 */ 3990 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250526DA: ret */ 3991 RECOMP_REGS_OUT(); 3992 } 3993 3994 void sub_250526D0(void) { 3995 int _fpu_cmp = 0; 3996 uint32_t _cf = 0; 3997 int _df = 1; 3998 uint32_t _flag_k = FK_NONE; 3999 uint32_t _flag_a = 0, _flag_b = 0; 4000 uint32_t _itail_tgt = 0; 4001 RECOMP_REGS_LOCALS 4002 RECOMP_ENTER(0x250526D0u); 4003 4004 L_250526D0: 4005 MEM32(0x251C7670) = 0; /* 0x250526D0: mov dword ptr [0x251c7670], 0 */ 4006 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250526DA: ret */ 4007 RECOMP_REGS_OUT(); 4008 } 4009 4010 void sub_250526E0(void) { 4011 int _fpu_cmp = 0; 4012 uint32_t _cf = 0; 4013 int _df = 1; 4014 uint32_t _flag_k = FK_NONE; 4015 uint32_t _flag_a = 0, _flag_b = 0; 4016 uint32_t _itail_tgt = 0; 4017 RECOMP_REGS_LOCALS 4018 RECOMP_ENTER(0x250526E0u); 4019 4020 L_250526E0: 4021 PUSH32(esp, ebp); /* 0x250526E0: push ebp */ 4022 ebp = esp; /* 0x250526E1: mov ebp, esp */ 4023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4025 esp = esp - 0xCu; /* 0x250526E3: sub esp, 0xc */ 4026 _flag_k = FK_CMP; 4027 PUSH32(esp, esi); /* 0x250526E6: push esi */ 4028 eax = ecx; /* 0x250526E7: mov eax, ecx */ 4029 MEM32(ebp + (-0xC)) = 0; /* 0x250526E9: mov dword ptr [ebp - 0xc], 0 */ 4030 edx = MEM32(ebp + (-0xC)); /* 0x250526F0: mov edx, dword ptr [ebp - 0xc] */ 4031 MEM32(ecx) = edx; /* 0x250526F3: mov dword ptr [ecx], edx */ 4032 MEM32(ebp + (-0x8)) = 0; /* 0x250526F5: mov dword ptr [ebp - 8], 0 */ 4033 edx = MEM32(ebp + (-0x8)); /* 0x250526FC: mov edx, dword ptr [ebp - 8] */ 4034 MEM32(ecx + 0x4) = edx; /* 0x250526FF: mov dword ptr [ecx + 4], edx */ 4035 MEM32(ebp + (-0x4)) = 0; /* 0x25052702: mov dword ptr [ebp - 4], 0 */ 4036 edx = MEM32(ebp + (-0x4)); /* 0x25052709: mov edx, dword ptr [ebp - 4] */ 4037 MEM32(ecx + 0x8) = edx; /* 0x2505270C: mov dword ptr [ecx + 8], edx */ 4038 MEM32(ebp + (-0xC)) = 0; /* 0x2505270F: mov dword ptr [ebp - 0xc], 0 */ 4039 edx = MEM32(ebp + (-0xC)); /* 0x25052716: mov edx, dword ptr [ebp - 0xc] */ 4040 ecx = eax + 0xC; /* 0x25052719: lea ecx, [eax + 0xc] */ 4041 MEM32(ecx) = edx; /* 0x2505271C: mov dword ptr [ecx], edx */ 4042 MEM32(ebp + (-0x8)) = 0; /* 0x2505271E: mov dword ptr [ebp - 8], 0 */ 4043 edx = MEM32(ebp + (-0x8)); /* 0x25052725: mov edx, dword ptr [ebp - 8] */ 4044 MEM32(ecx + 0x4) = edx; /* 0x25052728: mov dword ptr [ecx + 4], edx */ 4045 MEM32(ebp + (-0x4)) = 0; /* 0x2505272B: mov dword ptr [ebp - 4], 0 */ 4046 edx = MEM32(ebp + (-0x4)); /* 0x25052732: mov edx, dword ptr [ebp - 4] */ 4047 MEM32(ecx + 0x8) = edx; /* 0x25052735: mov dword ptr [ecx + 8], edx */ 4048 MEM32(ebp + (-0xC)) = 0; /* 0x25052738: mov dword ptr [ebp - 0xc], 0 */ 4049 edx = MEM32(ebp + (-0xC)); /* 0x2505273F: mov edx, dword ptr [ebp - 0xc] */ 4050 ecx = eax + 0x18; /* 0x25052742: lea ecx, [eax + 0x18] */ 4051 MEM32(ecx) = edx; /* 0x25052745: mov dword ptr [ecx], edx */ 4052 MEM32(ebp + (-0x8)) = 0; /* 0x25052747: mov dword ptr [ebp - 8], 0 */ 4053 edx = MEM32(ebp + (-0x8)); /* 0x2505274E: mov edx, dword ptr [ebp - 8] */ 4054 MEM32(ecx + 0x4) = edx; /* 0x25052751: mov dword ptr [ecx + 4], edx */ 4055 MEM32(ebp + (-0x4)) = 0; /* 0x25052754: mov dword ptr [ebp - 4], 0 */ 4056 edx = MEM32(ebp + (-0x4)); /* 0x2505275B: mov edx, dword ptr [ebp - 4] */ 4057 MEM32(ecx + 0x8) = edx; /* 0x2505275E: mov dword ptr [ecx + 8], edx */ 4058 MEM32(ebp + (-0xC)) = 0; /* 0x25052761: mov dword ptr [ebp - 0xc], 0 */ 4059 edx = MEM32(ebp + (-0xC)); /* 0x25052768: mov edx, dword ptr [ebp - 0xc] */ 4060 ecx = eax + 0x24; /* 0x2505276B: lea ecx, [eax + 0x24] */ 4061 MEM32(ecx) = edx; /* 0x2505276E: mov dword ptr [ecx], edx */ 4062 MEM32(ebp + (-0x8)) = 0; /* 0x25052770: mov dword ptr [ebp - 8], 0 */ 4063 edx = MEM32(ebp + (-0x8)); /* 0x25052777: mov edx, dword ptr [ebp - 8] */ 4064 MEM32(ecx + 0x4) = edx; /* 0x2505277A: mov dword ptr [ecx + 4], edx */ 4065 MEM32(ebp + (-0x4)) = 0; /* 0x2505277D: mov dword ptr [ebp - 4], 0 */ 4066 edx = MEM32(ebp + (-0x4)); /* 0x25052784: mov edx, dword ptr [ebp - 4] */ 4067 MEM32(ecx + 0x8) = edx; /* 0x25052787: mov dword ptr [ecx + 8], edx */ 4068 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4069 ecx = 0; /* 0x2505278A: xor ecx, ecx */ 4070 _cf = 0; 4071 _flag_k = FK_TEST; 4072 esi = ecx; /* 0x2505278C: mov esi, ecx */ 4073 edx = eax + 0x38; /* 0x2505278E: lea edx, [eax + 0x38] */ 4074 MEM32(edx) = esi; /* 0x25052791: mov dword ptr [edx], esi */ 4075 MEM32(edx + 0x4) = esi; /* 0x25052793: mov dword ptr [edx + 4], esi */ 4076 MEM32(edx + 0x8) = esi; /* 0x25052796: mov dword ptr [edx + 8], esi */ 4077 edx = eax + 0x44; /* 0x25052799: lea edx, [eax + 0x44] */ 4078 MEM32(edx) = esi; /* 0x2505279C: mov dword ptr [edx], esi */ 4079 MEM32(edx + 0x4) = esi; /* 0x2505279E: mov dword ptr [edx + 4], esi */ 4080 MEM32(ebp + (-0xC)) = ecx; /* 0x250527A1: mov dword ptr [ebp - 0xc], ecx */ 4081 MEM32(ebp + (-0x8)) = ecx; /* 0x250527A4: mov dword ptr [ebp - 8], ecx */ 4082 MEM32(ebp + (-0x4)) = ecx; /* 0x250527A7: mov dword ptr [ebp - 4], ecx */ 4083 MEM32(edx + 0x8) = esi; /* 0x250527AA: mov dword ptr [edx + 8], esi */ 4084 MEM32(eax + 0x30) = ecx; /* 0x250527AD: mov dword ptr [eax + 0x30], ecx */ 4085 MEM32(eax + 0x34) = ecx; /* 0x250527B0: mov dword ptr [eax + 0x34], ecx */ 4086 MEM32(ebp + (-0xC)) = ecx; /* 0x250527B3: mov dword ptr [ebp - 0xc], ecx */ 4087 MEM32(ebp + (-0x8)) = ecx; /* 0x250527B6: mov dword ptr [ebp - 8], ecx */ 4088 MEM32(ebp + (-0x4)) = ecx; /* 0x250527B9: mov dword ptr [ebp - 4], ecx */ 4089 MEM32(eax + 0x50) = ecx; /* 0x250527BC: mov dword ptr [eax + 0x50], ecx */ 4090 MEM32(eax + 0x54) = ecx; /* 0x250527BF: mov dword ptr [eax + 0x54], ecx */ 4091 MEM32(eax + 0x58) = ecx; /* 0x250527C2: mov dword ptr [eax + 0x58], ecx */ 4092 MEM32(eax + 0x5C) = ecx; /* 0x250527C5: mov dword ptr [eax + 0x5c], ecx */ 4093 MEM32(eax + 0x60) = ecx; /* 0x250527C8: mov dword ptr [eax + 0x60], ecx */ 4094 MEM32(eax + 0x64) = ecx; /* 0x250527CB: mov dword ptr [eax + 0x64], ecx */ 4095 MEM32(eax + 0x68) = ecx; /* 0x250527CE: mov dword ptr [eax + 0x68], ecx */ 4096 esi = POP32_VAL(esp); /* 0x250527D1: pop esi */ 4097 esp = ebp; /* 0x250527D2: mov esp, ebp */ 4098 ebp = POP32_VAL(esp); /* 0x250527D4: pop ebp */ 4099 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250527D5: ret */ 4100 RECOMP_REGS_OUT(); 4101 } 4102 4103 void sub_250527E0(void) { 4104 int _fpu_cmp = 0; 4105 uint32_t _cf = 0; 4106 int _df = 1; 4107 uint32_t _flag_k = FK_NONE; 4108 uint32_t _flag_a = 0, _flag_b = 0; 4109 uint32_t _itail_tgt = 0; 4110 RECOMP_REGS_LOCALS 4111 RECOMP_ENTER(0x250527E0u); 4112 4113 L_250527E0: 4114 PUSH32(esp, ebp); /* 0x250527E0: push ebp */ 4115 ebp = esp; /* 0x250527E1: mov ebp, esp */ 4116 eax = MEM32(ebp + 0x8); /* 0x250527E3: mov eax, dword ptr [ebp + 8] */ 4117 edx = MEM32(ebp + 0xC); /* 0x250527E6: mov edx, dword ptr [ebp + 0xc] */ 4118 MEM32(ecx + 0x30) = eax; /* 0x250527E9: mov dword ptr [ecx + 0x30], eax */ 4119 eax = MEM32(ebp + 0x10); /* 0x250527EC: mov eax, dword ptr [ebp + 0x10] */ 4120 MEM32(ecx + 0x34) = edx; /* 0x250527EF: mov dword ptr [ecx + 0x34], edx */ 4121 PUSH32(esp, ebx); /* 0x250527F2: push ebx */ 4122 PUSH32(esp, esi); /* 0x250527F3: push esi */ 4123 PUSH32(esp, edi); /* 0x250527F4: push edi */ 4124 edi = MEM32(eax); /* 0x250527F5: mov edi, dword ptr [eax] */ 4125 edx = ecx + 0xC; /* 0x250527F7: lea edx, [ecx + 0xc] */ 4126 esi = edx; /* 0x250527FA: mov esi, edx */ 4127 MEM32(esi) = edi; /* 0x250527FC: mov dword ptr [esi], edi */ 4128 edi = MEM32(eax + 0x4); /* 0x250527FE: mov edi, dword ptr [eax + 4] */ 4129 MEM32(esi + 0x4) = edi; /* 0x25052801: mov dword ptr [esi + 4], edi */ 4130 eax = MEM32(eax + 0x8); /* 0x25052804: mov eax, dword ptr [eax + 8] */ 4131 MEM32(esi + 0x8) = eax; /* 0x25052807: mov dword ptr [esi + 8], eax */ 4132 fp_push(*(float*)&MEM32(edx)); /* 0x2505280A: fld dword ptr [edx] */ 4133 eax = MEM32(ebp + 0x14); /* 0x2505280C: mov eax, dword ptr [ebp + 0x14] */ 4134 ebx = MEM32(eax); /* 0x2505280F: mov ebx, dword ptr [eax] */ 4135 esi = ecx + 0x18; /* 0x25052811: lea esi, [ecx + 0x18] */ 4136 edi = esi; /* 0x25052814: mov edi, esi */ 4137 MEM32(edi) = ebx; /* 0x25052816: mov dword ptr [edi], ebx */ 4138 ebx = MEM32(eax + 0x4); /* 0x25052818: mov ebx, dword ptr [eax + 4] */ 4139 MEM32(edi + 0x4) = ebx; /* 0x2505281B: mov dword ptr [edi + 4], ebx */ 4140 eax = MEM32(eax + 0x8); /* 0x2505281E: mov eax, dword ptr [eax + 8] */ 4141 MEM32(edi + 0x8) = eax; /* 0x25052821: mov dword ptr [edi + 8], eax */ 4142 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi)); /* 0x25052824: fcomp dword ptr [esi] */ 4143 fp_pop(); 4144 edi = MEM32(ebp + 0x18); /* 0x25052826: mov edi, dword ptr [ebp + 0x18] */ 4145 ebx = MEM32(edi); /* 0x25052829: mov ebx, dword ptr [edi] */ 4146 eax = ecx + 0x24; /* 0x2505282B: lea eax, [ecx + 0x24] */ 4147 MEM32(eax) = ebx; /* 0x2505282E: mov dword ptr [eax], ebx */ 4148 ebx = MEM32(edi + 0x4); /* 0x25052830: mov ebx, dword ptr [edi + 4] */ 4149 MEM32(eax + 0x4) = ebx; /* 0x25052833: mov dword ptr [eax + 4], ebx */ 4150 edi = MEM32(edi + 0x8); /* 0x25052836: mov edi, dword ptr [edi + 8] */ 4151 MEM32(eax + 0x8) = edi; /* 0x25052839: mov dword ptr [eax + 8], edi */ 4152 edi = MEM32(ebp + 0x1C); /* 0x2505283C: mov edi, dword ptr [ebp + 0x1c] */ 4153 ebx = MEM32(edi); /* 0x2505283F: mov ebx, dword ptr [edi] */ 4154 eax = ecx + 0x38; /* 0x25052841: lea eax, [ecx + 0x38] */ 4155 MEM32(eax) = ebx; /* 0x25052844: mov dword ptr [eax], ebx */ 4156 ebx = MEM32(edi + 0x4); /* 0x25052846: mov ebx, dword ptr [edi + 4] */ 4157 MEM32(eax + 0x4) = ebx; /* 0x25052849: mov dword ptr [eax + 4], ebx */ 4158 edi = MEM32(edi + 0x8); /* 0x2505284C: mov edi, dword ptr [edi + 8] */ 4159 MEM32(eax + 0x8) = edi; /* 0x2505284F: mov dword ptr [eax + 8], edi */ 4160 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052852: fnstsw ax */ 4161 /* test HI8(eax), 1 */ /* 0x25052854: test ah, 1 */ 4162 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4163 _cf = 0; 4164 _flag_k = FK_NARROW(FK_TEST, 24); 4165 if (TEST_Z(_flag_a, _flag_b)) goto L_25052869; /* 0x25052857: je 0x25052869 */ 4166 L_25052859: 4167 fp_push(*(float*)&MEM32(edx)); /* 0x25052859: fld dword ptr [edx] */ 4168 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x2505285B: fcomp dword ptr [ecx + 0x24] */ 4169 fp_pop(); 4170 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2505285E: fnstsw ax */ 4171 /* test HI8(eax), 1 */ /* 0x25052860: test ah, 1 */ 4172 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4173 _cf = 0; 4174 _flag_k = FK_NARROW(FK_TEST, 24); 4175 if (TEST_Z(_flag_a, _flag_b)) goto L_25052879; /* 0x25052863: je 0x25052879 */ 4176 L_25052865: 4177 fp_push(*(float*)&MEM32(edx)); /* 0x25052865: fld dword ptr [edx] */ 4178 goto L_2505287C; /* 0x25052867: jmp 0x2505287c */ 4179 L_25052869: 4180 fp_push(*(float*)&MEM32(esi)); /* 0x25052869: fld dword ptr [esi] */ 4181 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x2505286B: fcomp dword ptr [ecx + 0x24] */ 4182 fp_pop(); 4183 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2505286E: fnstsw ax */ 4184 /* test HI8(eax), 1 */ /* 0x25052870: test ah, 1 */ 4185 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4186 _cf = 0; 4187 _flag_k = FK_NARROW(FK_TEST, 24); 4188 if (TEST_Z(_flag_a, _flag_b)) goto L_25052879; /* 0x25052873: je 0x25052879 */ 4189 L_25052875: 4190 fp_push(*(float*)&MEM32(esi)); /* 0x25052875: fld dword ptr [esi] */ 4191 goto L_2505287C; /* 0x25052877: jmp 0x2505287c */ 4192 L_25052879: 4193 fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x25052879: fld dword ptr [ecx + 0x24] */ 4194 L_2505287C: 4195 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x44) = _v; } /* 0x2505287C: fstp dword ptr [ecx + 0x44] */ 4196 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x2505287F: fld dword ptr [ecx + 0x14] */ 4197 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x20)); /* 0x25052882: fcomp dword ptr [ecx + 0x20] */ 4198 fp_pop(); 4199 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052885: fnstsw ax */ 4200 /* test HI8(eax), 1 */ /* 0x25052887: test ah, 1 */ 4201 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4202 _cf = 0; 4203 _flag_k = FK_NARROW(FK_TEST, 24); 4204 if (TEST_Z(_flag_a, _flag_b)) goto L_2505289E; /* 0x2505288A: je 0x2505289e */ 4205 L_2505288C: 4206 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x2505288C: fld dword ptr [ecx + 0x14] */ 4207 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x2C)); /* 0x2505288F: fcomp dword ptr [ecx + 0x2c] */ 4208 fp_pop(); 4209 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052892: fnstsw ax */ 4210 /* test HI8(eax), 1 */ /* 0x25052894: test ah, 1 */ 4211 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4212 _cf = 0; 4213 _flag_k = FK_NARROW(FK_TEST, 24); 4214 if (TEST_Z(_flag_a, _flag_b)) goto L_250528B0; /* 0x25052897: je 0x250528b0 */ 4215 L_25052899: 4216 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x25052899: fld dword ptr [ecx + 0x14] */ 4217 goto L_250528B3; /* 0x2505289C: jmp 0x250528b3 */ 4218 L_2505289E: 4219 fp_push(*(float*)&MEM32(ecx + 0x20)); /* 0x2505289E: fld dword ptr [ecx + 0x20] */ 4220 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x2C)); /* 0x250528A1: fcomp dword ptr [ecx + 0x2c] */ 4221 fp_pop(); 4222 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250528A4: fnstsw ax */ 4223 /* test HI8(eax), 1 */ /* 0x250528A6: test ah, 1 */ 4224 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4225 _cf = 0; 4226 _flag_k = FK_NARROW(FK_TEST, 24); 4227 if (TEST_Z(_flag_a, _flag_b)) goto L_250528B0; /* 0x250528A9: je 0x250528b0 */ 4228 L_250528AB: 4229 fp_push(*(float*)&MEM32(ecx + 0x20)); /* 0x250528AB: fld dword ptr [ecx + 0x20] */ 4230 goto L_250528B3; /* 0x250528AE: jmp 0x250528b3 */ 4231 L_250528B0: 4232 fp_push(*(float*)&MEM32(ecx + 0x2C)); /* 0x250528B0: fld dword ptr [ecx + 0x2c] */ 4233 L_250528B3: 4234 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x4C) = _v; } /* 0x250528B3: fstp dword ptr [ecx + 0x4c] */ 4235 fp_push(*(float*)&MEM32(edx)); /* 0x250528B6: fld dword ptr [edx] */ 4236 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi)); /* 0x250528B8: fcomp dword ptr [esi] */ 4237 fp_pop(); 4238 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250528BA: fnstsw ax */ 4239 /* test HI8(eax), 0x41u */ /* 0x250528BC: test ah, 0x41 */ 4240 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4241 _cf = 0; 4242 _flag_k = FK_NARROW(FK_TEST, 24); 4243 if (TEST_NZ(_flag_a, _flag_b)) goto L_250528D1; /* 0x250528BF: jne 0x250528d1 */ 4244 L_250528C1: 4245 fp_push(*(float*)&MEM32(edx)); /* 0x250528C1: fld dword ptr [edx] */ 4246 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x250528C3: fcomp dword ptr [ecx + 0x24] */ 4247 fp_pop(); 4248 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250528C6: fnstsw ax */ 4249 /* test HI8(eax), 0x41u */ /* 0x250528C8: test ah, 0x41 */ 4250 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4251 _cf = 0; 4252 _flag_k = FK_NARROW(FK_TEST, 24); 4253 if (TEST_NZ(_flag_a, _flag_b)) goto L_250528E1; /* 0x250528CB: jne 0x250528e1 */ 4254 L_250528CD: 4255 fp_push(*(float*)&MEM32(edx)); /* 0x250528CD: fld dword ptr [edx] */ 4256 goto L_250528E4; /* 0x250528CF: jmp 0x250528e4 */ 4257 L_250528D1: 4258 fp_push(*(float*)&MEM32(esi)); /* 0x250528D1: fld dword ptr [esi] */ 4259 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x24)); /* 0x250528D3: fcomp dword ptr [ecx + 0x24] */ 4260 fp_pop(); 4261 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250528D6: fnstsw ax */ 4262 /* test HI8(eax), 0x41u */ /* 0x250528D8: test ah, 0x41 */ 4263 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4264 _cf = 0; 4265 _flag_k = FK_NARROW(FK_TEST, 24); 4266 if (TEST_NZ(_flag_a, _flag_b)) goto L_250528E1; /* 0x250528DB: jne 0x250528e1 */ 4267 L_250528DD: 4268 fp_push(*(float*)&MEM32(esi)); /* 0x250528DD: fld dword ptr [esi] */ 4269 goto L_250528E4; /* 0x250528DF: jmp 0x250528e4 */ 4270 L_250528E1: 4271 fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x250528E1: fld dword ptr [ecx + 0x24] */ 4272 L_250528E4: 4273 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x250528E4: fstp dword ptr [ecx] */ 4274 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x250528E6: fld dword ptr [ecx + 0x10] */ 4275 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x1C)); /* 0x250528E9: fcomp dword ptr [ecx + 0x1c] */ 4276 fp_pop(); 4277 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250528EC: fnstsw ax */ 4278 /* test HI8(eax), 0x41u */ /* 0x250528EE: test ah, 0x41 */ 4279 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4280 _cf = 0; 4281 _flag_k = FK_NARROW(FK_TEST, 24); 4282 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052905; /* 0x250528F1: jne 0x25052905 */ 4283 L_250528F3: 4284 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x250528F3: fld dword ptr [ecx + 0x10] */ 4285 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x28)); /* 0x250528F6: fcomp dword ptr [ecx + 0x28] */ 4286 fp_pop(); 4287 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250528F9: fnstsw ax */ 4288 /* test HI8(eax), 0x41u */ /* 0x250528FB: test ah, 0x41 */ 4289 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4290 _cf = 0; 4291 _flag_k = FK_NARROW(FK_TEST, 24); 4292 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052917; /* 0x250528FE: jne 0x25052917 */ 4293 L_25052900: 4294 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x25052900: fld dword ptr [ecx + 0x10] */ 4295 goto L_2505291A; /* 0x25052903: jmp 0x2505291a */ 4296 L_25052905: 4297 fp_push(*(float*)&MEM32(ecx + 0x1C)); /* 0x25052905: fld dword ptr [ecx + 0x1c] */ 4298 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x28)); /* 0x25052908: fcomp dword ptr [ecx + 0x28] */ 4299 fp_pop(); 4300 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2505290B: fnstsw ax */ 4301 /* test HI8(eax), 0x41u */ /* 0x2505290D: test ah, 0x41 */ 4302 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4303 _cf = 0; 4304 _flag_k = FK_NARROW(FK_TEST, 24); 4305 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052917; /* 0x25052910: jne 0x25052917 */ 4306 L_25052912: 4307 fp_push(*(float*)&MEM32(ecx + 0x1C)); /* 0x25052912: fld dword ptr [ecx + 0x1c] */ 4308 goto L_2505291A; /* 0x25052915: jmp 0x2505291a */ 4309 L_25052917: 4310 fp_push(*(float*)&MEM32(ecx + 0x28)); /* 0x25052917: fld dword ptr [ecx + 0x28] */ 4311 L_2505291A: 4312 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x4) = _v; } /* 0x2505291A: fstp dword ptr [ecx + 4] */ 4313 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x2505291D: fld dword ptr [ecx + 0x14] */ 4314 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x20)); /* 0x25052920: fcomp dword ptr [ecx + 0x20] */ 4315 fp_pop(); 4316 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052923: fnstsw ax */ 4317 /* test HI8(eax), 0x41u */ /* 0x25052925: test ah, 0x41 */ 4318 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4319 _cf = 0; 4320 _flag_k = FK_NARROW(FK_TEST, 24); 4321 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505293C; /* 0x25052928: jne 0x2505293c */ 4322 L_2505292A: 4323 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x2505292A: fld dword ptr [ecx + 0x14] */ 4324 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x2C)); /* 0x2505292D: fcomp dword ptr [ecx + 0x2c] */ 4325 fp_pop(); 4326 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052930: fnstsw ax */ 4327 /* test HI8(eax), 0x41u */ /* 0x25052932: test ah, 0x41 */ 4328 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4329 _cf = 0; 4330 _flag_k = FK_NARROW(FK_TEST, 24); 4331 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505294E; /* 0x25052935: jne 0x2505294e */ 4332 L_25052937: 4333 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x25052937: fld dword ptr [ecx + 0x14] */ 4334 goto L_25052951; /* 0x2505293A: jmp 0x25052951 */ 4335 L_2505293C: 4336 fp_push(*(float*)&MEM32(ecx + 0x20)); /* 0x2505293C: fld dword ptr [ecx + 0x20] */ 4337 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x2C)); /* 0x2505293F: fcomp dword ptr [ecx + 0x2c] */ 4338 fp_pop(); 4339 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052942: fnstsw ax */ 4340 /* test HI8(eax), 0x41u */ /* 0x25052944: test ah, 0x41 */ 4341 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4342 _cf = 0; 4343 _flag_k = FK_NARROW(FK_TEST, 24); 4344 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505294E; /* 0x25052947: jne 0x2505294e */ 4345 L_25052949: 4346 fp_push(*(float*)&MEM32(ecx + 0x20)); /* 0x25052949: fld dword ptr [ecx + 0x20] */ 4347 goto L_25052951; /* 0x2505294C: jmp 0x25052951 */ 4348 L_2505294E: 4349 fp_push(*(float*)&MEM32(ecx + 0x2C)); /* 0x2505294E: fld dword ptr [ecx + 0x2c] */ 4350 L_25052951: 4351 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x8) = _v; } /* 0x25052951: fstp dword ptr [ecx + 8] */ 4352 edi = POP32_VAL(esp); /* 0x25052954: pop edi */ 4353 fp_push(*(float*)&MEM32(ecx + 0x40)); /* 0x25052955: fld dword ptr [ecx + 0x40] */ 4354 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x25052958: fmul dword ptr [edx + 8] */ 4355 fp_push(*(float*)&MEM32(ecx + 0x3C)); /* 0x2505295B: fld dword ptr [ecx + 0x3c] */ 4356 _st[0] *= (double)*(float*)ADDR(edx + 0x4); /* 0x2505295E: fmul dword ptr [edx + 4] */ 4357 { double _v = fp_pop(); _st[0] += _v; } /* 0x25052961: faddp st(1) */ 4358 fp_push(*(float*)&MEM32(ecx + 0x38)); /* 0x25052963: fld dword ptr [ecx + 0x38] */ 4359 _st[0] *= (double)*(float*)ADDR(edx); /* 0x25052966: fmul dword ptr [edx] */ 4360 { double _v = fp_pop(); _st[0] += _v; } /* 0x25052968: faddp st(1) */ 4361 _st[0] = -_st[0]; /* 0x2505296A: fchs */ 4362 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x50) = _v; } /* 0x2505296C: fstp dword ptr [ecx + 0x50] */ 4363 fp_push(*(float*)&MEM32(esi)); /* 0x2505296F: fld dword ptr [esi] */ 4364 _st[0] -= (double)*(float*)ADDR(edx); /* 0x25052971: fsub dword ptr [edx] */ 4365 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x54) = _v; } /* 0x25052973: fstp dword ptr [ecx + 0x54] */ 4366 fp_push(*(float*)&MEM32(ecx + 0x20)); /* 0x25052976: fld dword ptr [ecx + 0x20] */ 4367 _st[0] -= (double)*(float*)ADDR(ecx + 0x14); /* 0x25052979: fsub dword ptr [ecx + 0x14] */ 4368 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x58) = _v; } /* 0x2505297C: fstp dword ptr [ecx + 0x58] */ 4369 fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x2505297F: fld dword ptr [ecx + 0x24] */ 4370 _st[0] -= (double)*(float*)ADDR(esi); /* 0x25052982: fsub dword ptr [esi] */ 4371 esi = POP32_VAL(esp); /* 0x25052984: pop esi */ 4372 ebx = POP32_VAL(esp); /* 0x25052985: pop ebx */ 4373 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x5C) = _v; } /* 0x25052986: fstp dword ptr [ecx + 0x5c] */ 4374 fp_push(*(float*)&MEM32(ecx + 0x2C)); /* 0x25052989: fld dword ptr [ecx + 0x2c] */ 4375 _st[0] -= (double)*(float*)ADDR(ecx + 0x20); /* 0x2505298C: fsub dword ptr [ecx + 0x20] */ 4376 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x60) = _v; } /* 0x2505298F: fstp dword ptr [ecx + 0x60] */ 4377 fp_push(*(float*)&MEM32(edx)); /* 0x25052992: fld dword ptr [edx] */ 4378 _st[0] -= (double)*(float*)ADDR(ecx + 0x24); /* 0x25052994: fsub dword ptr [ecx + 0x24] */ 4379 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x64) = _v; } /* 0x25052997: fstp dword ptr [ecx + 0x64] */ 4380 fp_push(*(float*)&MEM32(ecx + 0x14)); /* 0x2505299A: fld dword ptr [ecx + 0x14] */ 4381 _st[0] -= (double)*(float*)ADDR(ecx + 0x2C); /* 0x2505299D: fsub dword ptr [ecx + 0x2c] */ 4382 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x68) = _v; } /* 0x250529A0: fstp dword ptr [ecx + 0x68] */ 4383 ebp = POP32_VAL(esp); /* 0x250529A3: pop ebp */ 4384 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x250529A4: ret 0x18 */ 4385 RECOMP_REGS_OUT(); 4386 } 4387 4388 void sub_250529B0(void) { 4389 int _fpu_cmp = 0; 4390 uint32_t _cf = 0; 4391 int _df = 1; 4392 uint32_t _flag_k = FK_NONE; 4393 uint32_t _flag_a = 0, _flag_b = 0; 4394 uint32_t _itail_tgt = 0; 4395 RECOMP_REGS_LOCALS 4396 RECOMP_ENTER(0x250529B0u); 4397 4398 L_250529B0: 4399 PUSH32(esp, ebp); /* 0x250529B0: push ebp */ 4400 ebp = esp; /* 0x250529B1: mov ebp, esp */ 4401 edx = MEM32(ebp + 0x8); /* 0x250529B3: mov edx, dword ptr [ebp + 8] */ 4402 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x250529B6: fld dword ptr [edx + 4] */ 4403 PUSH32(esp, esi); /* 0x250529B9: push esi */ 4404 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x4)); /* 0x250529BA: fcomp dword ptr [ecx + 4] */ 4405 fp_pop(); 4406 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250529BD: fnstsw ax */ 4407 /* test HI8(eax), 1 */ /* 0x250529BF: test ah, 1 */ 4408 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4409 _cf = 0; 4410 _flag_k = FK_NARROW(FK_TEST, 24); 4411 if (TEST_Z(_flag_a, _flag_b)) goto L_25052AEA; /* 0x250529C2: je 0x25052aea */ 4412 L_250529C8: 4413 fp_push(*(float*)&MEM32(edx)); /* 0x250529C8: fld dword ptr [edx] */ 4414 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x44)); /* 0x250529CA: fcomp dword ptr [ecx + 0x44] */ 4415 fp_pop(); 4416 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250529CD: fnstsw ax */ 4417 /* test HI8(eax), 0x41u */ /* 0x250529CF: test ah, 0x41 */ 4418 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4419 _cf = 0; 4420 _flag_k = FK_NARROW(FK_TEST, 24); 4421 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052AEA; /* 0x250529D2: jne 0x25052aea */ 4422 L_250529D8: 4423 fp_push(*(float*)&MEM32(edx)); /* 0x250529D8: fld dword ptr [edx] */ 4424 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx)); /* 0x250529DA: fcomp dword ptr [ecx] */ 4425 fp_pop(); 4426 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250529DC: fnstsw ax */ 4427 /* test HI8(eax), 1 */ /* 0x250529DE: test ah, 1 */ 4428 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4429 _cf = 0; 4430 _flag_k = FK_NARROW(FK_TEST, 24); 4431 if (TEST_Z(_flag_a, _flag_b)) goto L_25052AEA; /* 0x250529E1: je 0x25052aea */ 4432 L_250529E7: 4433 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x250529E7: fld dword ptr [edx + 8] */ 4434 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x4C)); /* 0x250529EA: fcomp dword ptr [ecx + 0x4c] */ 4435 fp_pop(); 4436 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250529ED: fnstsw ax */ 4437 /* test HI8(eax), 0x41u */ /* 0x250529EF: test ah, 0x41 */ 4438 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4439 _cf = 0; 4440 _flag_k = FK_NARROW(FK_TEST, 24); 4441 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052AEA; /* 0x250529F2: jne 0x25052aea */ 4442 L_250529F8: 4443 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x250529F8: fld dword ptr [edx + 8] */ 4444 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x8)); /* 0x250529FB: fcomp dword ptr [ecx + 8] */ 4445 fp_pop(); 4446 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250529FE: fnstsw ax */ 4447 /* test HI8(eax), 1 */ /* 0x25052A00: test ah, 1 */ 4448 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4449 _cf = 0; 4450 _flag_k = FK_NARROW(FK_TEST, 24); 4451 if (TEST_Z(_flag_a, _flag_b)) goto L_25052AEA; /* 0x25052A03: je 0x25052aea */ 4452 L_25052A09: 4453 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x25052A09: fld dword ptr [edx + 8] */ 4454 _st[0] -= (double)*(float*)ADDR(ecx + 0x14); /* 0x25052A0C: fsub dword ptr [ecx + 0x14] */ 4455 _st[0] *= (double)*(float*)ADDR(ecx + 0x54); /* 0x25052A0F: fmul dword ptr [ecx + 0x54] */ 4456 fp_push(*(float*)&MEM32(edx)); /* 0x25052A12: fld dword ptr [edx] */ 4457 _st[0] -= (double)*(float*)ADDR(ecx + 0xC); /* 0x25052A14: fsub dword ptr [ecx + 0xc] */ 4458 _st[0] *= (double)*(float*)ADDR(ecx + 0x58); /* 0x25052A17: fmul dword ptr [ecx + 0x58] */ 4459 { double _v = fp_pop(); _st[0] -= _v; } /* 0x25052A1A: fsubp st(1) */ 4460 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25052A1C: fcomp dword ptr [0x2515177c] */ 4461 fp_pop(); 4462 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052A22: fnstsw ax */ 4463 /* test HI8(eax), 1 */ /* 0x25052A24: test ah, 1 */ 4464 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4465 _cf = 0; 4466 _flag_k = FK_NARROW(FK_TEST, 24); 4467 if (TEST_Z(_flag_a, _flag_b)) goto L_25052AEA; /* 0x25052A27: je 0x25052aea */ 4468 L_25052A2D: 4469 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x25052A2D: fld dword ptr [edx + 8] */ 4470 _st[0] -= (double)*(float*)ADDR(ecx + 0x20); /* 0x25052A30: fsub dword ptr [ecx + 0x20] */ 4471 _st[0] *= (double)*(float*)ADDR(ecx + 0x5C); /* 0x25052A33: fmul dword ptr [ecx + 0x5c] */ 4472 fp_push(*(float*)&MEM32(edx)); /* 0x25052A36: fld dword ptr [edx] */ 4473 _st[0] -= (double)*(float*)ADDR(ecx + 0x18); /* 0x25052A38: fsub dword ptr [ecx + 0x18] */ 4474 _st[0] *= (double)*(float*)ADDR(ecx + 0x60); /* 0x25052A3B: fmul dword ptr [ecx + 0x60] */ 4475 { double _v = fp_pop(); _st[0] -= _v; } /* 0x25052A3E: fsubp st(1) */ 4476 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25052A40: fcomp dword ptr [0x2515177c] */ 4477 fp_pop(); 4478 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052A46: fnstsw ax */ 4479 /* test HI8(eax), 1 */ /* 0x25052A48: test ah, 1 */ 4480 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4481 _cf = 0; 4482 _flag_k = FK_NARROW(FK_TEST, 24); 4483 if (TEST_Z(_flag_a, _flag_b)) goto L_25052AEA; /* 0x25052A4B: je 0x25052aea */ 4484 L_25052A51: 4485 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x25052A51: fld dword ptr [edx + 8] */ 4486 _st[0] -= (double)*(float*)ADDR(ecx + 0x2C); /* 0x25052A54: fsub dword ptr [ecx + 0x2c] */ 4487 _st[0] *= (double)*(float*)ADDR(ecx + 0x64); /* 0x25052A57: fmul dword ptr [ecx + 0x64] */ 4488 fp_push(*(float*)&MEM32(edx)); /* 0x25052A5A: fld dword ptr [edx] */ 4489 _st[0] -= (double)*(float*)ADDR(ecx + 0x24); /* 0x25052A5C: fsub dword ptr [ecx + 0x24] */ 4490 _st[0] *= (double)*(float*)ADDR(ecx + 0x68); /* 0x25052A5F: fmul dword ptr [ecx + 0x68] */ 4491 { double _v = fp_pop(); _st[0] -= _v; } /* 0x25052A62: fsubp st(1) */ 4492 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25052A64: fcomp dword ptr [0x2515177c] */ 4493 fp_pop(); 4494 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052A6A: fnstsw ax */ 4495 /* test HI8(eax), 1 */ /* 0x25052A6C: test ah, 1 */ 4496 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4497 _cf = 0; 4498 _flag_k = FK_NARROW(FK_TEST, 24); 4499 if (TEST_Z(_flag_a, _flag_b)) goto L_25052AEA; /* 0x25052A6F: je 0x25052aea */ 4500 L_25052A71: 4501 fp_push(*(float*)&MEM32(edx)); /* 0x25052A71: fld dword ptr [edx] */ 4502 esi = ecx + 0x38; /* 0x25052A73: lea esi, [ecx + 0x38] */ 4503 _st[0] *= (double)*(float*)ADDR(esi); /* 0x25052A76: fmul dword ptr [esi] */ 4504 _st[0] = -_st[0]; /* 0x25052A78: fchs */ 4505 fp_push(*(float*)&MEM32(ecx + 0x40)); /* 0x25052A7A: fld dword ptr [ecx + 0x40] */ 4506 _st[0] *= (double)*(float*)ADDR(edx + 0x8); /* 0x25052A7D: fmul dword ptr [edx + 8] */ 4507 { double _v = fp_pop(); _st[0] -= _v; } /* 0x25052A80: fsubp st(1) */ 4508 _st[0] -= (double)*(float*)ADDR(ecx + 0x50); /* 0x25052A82: fsub dword ptr [ecx + 0x50] */ 4509 _st[0] /= (double)*(float*)ADDR(ecx + 0x3C); /* 0x25052A85: fdiv dword ptr [ecx + 0x3c] */ 4510 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25052A88: fcom dword ptr [0x2515177c] */ 4511 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052A8E: fnstsw ax */ 4512 /* test HI8(eax), 0x41u */ /* 0x25052A90: test ah, 0x41 */ 4513 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4514 _cf = 0; 4515 _flag_k = FK_NARROW(FK_TEST, 24); 4516 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052AE8; /* 0x25052A93: jne 0x25052ae8 */ 4517 L_25052A95: 4518 edx = MEM32(ebp + 0xC); /* 0x25052A95: mov edx, dword ptr [ebp + 0xc] */ 4519 PUSH32(esp, edi); /* 0x25052A98: push edi */ 4520 eax = esi; /* 0x25052A99: mov eax, esi */ 4521 edi = MEM32(eax); /* 0x25052A9B: mov edi, dword ptr [eax] */ 4522 MEM32(edx) = edi; /* 0x25052A9D: mov dword ptr [edx], edi */ 4523 edi = MEM32(eax + 0x4); /* 0x25052A9F: mov edi, dword ptr [eax + 4] */ 4524 MEM32(edx + 0x4) = edi; /* 0x25052AA2: mov dword ptr [edx + 4], edi */ 4525 eax = MEM32(eax + 0x8); /* 0x25052AA5: mov eax, dword ptr [eax + 8] */ 4526 MEM32(edx + 0x8) = eax; /* 0x25052AA8: mov dword ptr [edx + 8], eax */ 4527 edx = MEM32(ecx + 0x30); /* 0x25052AAB: mov edx, dword ptr [ecx + 0x30] */ 4528 eax = MEM32(ebp + 0x10); /* 0x25052AAE: mov eax, dword ptr [ebp + 0x10] */ 4529 MEM32(eax) = edx; /* 0x25052AB1: mov dword ptr [eax], edx */ 4530 edx = MEM32(ecx + 0x34); /* 0x25052AB3: mov edx, dword ptr [ecx + 0x34] */ 4531 eax = MEM32(ebp + 0x14); /* 0x25052AB6: mov eax, dword ptr [ebp + 0x14] */ 4532 MEM32(eax) = edx; /* 0x25052AB9: mov dword ptr [eax], edx */ 4533 edx = MEM32(esi); /* 0x25052ABB: mov edx, dword ptr [esi] */ 4534 MEM32(0x251C7660) = edx; /* 0x25052ABD: mov dword ptr [0x251c7660], edx */ 4535 eax = MEM32(esi + 0x4); /* 0x25052AC3: mov eax, dword ptr [esi + 4] */ 4536 MEM32(0x251C7664) = eax; /* 0x25052AC6: mov dword ptr [0x251c7664], eax */ 4537 edx = MEM32(esi + 0x8); /* 0x25052ACB: mov edx, dword ptr [esi + 8] */ 4538 MEM32(0x251C7668) = edx; /* 0x25052ACE: mov dword ptr [0x251c7668], edx */ 4539 eax = MEM32(ecx + 0x30); /* 0x25052AD4: mov eax, dword ptr [ecx + 0x30] */ 4540 { float _v = (float)_st[0]; *(float*)ADDR(0x251C7684) = _v; } /* 0x25052AD7: fst dword ptr [0x251c7684] */ 4541 edi = POP32_VAL(esp); /* 0x25052ADD: pop edi */ 4542 MEM32(0x251C7688) = eax; /* 0x25052ADE: mov dword ptr [0x251c7688], eax */ 4543 esi = POP32_VAL(esp); /* 0x25052AE3: pop esi */ 4544 ebp = POP32_VAL(esp); /* 0x25052AE4: pop ebp */ 4545 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25052AE5: ret 0x10 */ 4546 L_25052AE8: 4547 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25052AE8: fstp st(0) */ 4548 L_25052AEA: 4549 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x25052AEA: fld dword ptr [0x2515177c] */ 4550 MEM32(0x251C7684) = 0xC7C35000u; /* 0x25052AF0: mov dword ptr [0x251c7684], 0xc7c35000 */ 4551 esi = POP32_VAL(esp); /* 0x25052AFA: pop esi */ 4552 ebp = POP32_VAL(esp); /* 0x25052AFB: pop ebp */ 4553 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25052AFC: ret 0x10 */ 4554 RECOMP_REGS_OUT(); 4555 } 4556 4557 void sub_25052B00(void) { 4558 int _fpu_cmp = 0; 4559 uint32_t _cf = 0; 4560 int _df = 1; 4561 uint32_t _flag_k = FK_NONE; 4562 uint32_t _flag_a = 0, _flag_b = 0; 4563 uint32_t _itail_tgt = 0; 4564 RECOMP_REGS_LOCALS 4565 RECOMP_ENTER(0x25052B00u); 4566 4567 L_25052B00: 4568 PUSH32(esp, ebp); /* 0x25052B00: push ebp */ 4569 ebp = esp; /* 0x25052B01: mov ebp, esp */ 4570 eax = MEM32(ebp + 0x8); /* 0x25052B03: mov eax, dword ptr [ebp + 8] */ 4571 ecx = MEM32(ebp + 0xC); /* 0x25052B06: mov ecx, dword ptr [ebp + 0xc] */ 4572 MEM32(0x251C7684) = eax; /* 0x25052B09: mov dword ptr [0x251c7684], eax */ 4573 edx = MEM32(ecx); /* 0x25052B0E: mov edx, dword ptr [ecx] */ 4574 MEM32(0x251C7660) = edx; /* 0x25052B10: mov dword ptr [0x251c7660], edx */ 4575 eax = MEM32(ecx + 0x4); /* 0x25052B16: mov eax, dword ptr [ecx + 4] */ 4576 edx = MEM32(ebp + 0x10); /* 0x25052B19: mov edx, dword ptr [ebp + 0x10] */ 4577 MEM32(0x251C7664) = eax; /* 0x25052B1C: mov dword ptr [0x251c7664], eax */ 4578 ecx = MEM32(ecx + 0x8); /* 0x25052B21: mov ecx, dword ptr [ecx + 8] */ 4579 MEM32(0x251C7668) = ecx; /* 0x25052B24: mov dword ptr [0x251c7668], ecx */ 4580 MEM32(0x251C7688) = edx; /* 0x25052B2A: mov dword ptr [0x251c7688], edx */ 4581 ebp = POP32_VAL(esp); /* 0x25052B30: pop ebp */ 4582 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25052B31: ret */ 4583 RECOMP_REGS_OUT(); 4584 } 4585 4586 void sub_25052B40(void) { 4587 int _fpu_cmp = 0; 4588 uint32_t _cf = 0; 4589 int _df = 1; 4590 uint32_t _flag_k = FK_NONE; 4591 uint32_t _flag_a = 0, _flag_b = 0; 4592 uint32_t _itail_tgt = 0; 4593 RECOMP_REGS_LOCALS 4594 RECOMP_ENTER(0x25052B40u); 4595 4596 L_25052B40: 4597 PUSH32(esp, ebp); /* 0x25052B40: push ebp */ 4598 ebp = esp; /* 0x25052B41: mov ebp, esp */ 4599 fp_push(*(float*)&MEM32(0x251C7684)); /* 0x25052B43: fld dword ptr [0x251c7684] */ 4600 eax = MEM32(ebp + 0x8); /* 0x25052B49: mov eax, dword ptr [ebp + 8] */ 4601 ecx = MEM32(ebp + 0xC); /* 0x25052B4C: mov ecx, dword ptr [ebp + 0xc] */ 4602 { float _v = (float)fp_pop(); *(float*)ADDR(eax) = _v; } /* 0x25052B4F: fstp dword ptr [eax] */ 4603 edx = MEM32(0x251C7660); /* 0x25052B51: mov edx, dword ptr [0x251c7660] */ 4604 MEM32(ecx) = edx; /* 0x25052B57: mov dword ptr [ecx], edx */ 4605 eax = MEM32(0x251C7664); /* 0x25052B59: mov eax, dword ptr [0x251c7664] */ 4606 MEM32(ecx + 0x4) = eax; /* 0x25052B5E: mov dword ptr [ecx + 4], eax */ 4607 edx = MEM32(0x251C7668); /* 0x25052B61: mov edx, dword ptr [0x251c7668] */ 4608 eax = MEM32(ebp + 0x10); /* 0x25052B67: mov eax, dword ptr [ebp + 0x10] */ 4609 MEM32(ecx + 0x8) = edx; /* 0x25052B6A: mov dword ptr [ecx + 8], edx */ 4610 ecx = MEM32(0x251C7688); /* 0x25052B6D: mov ecx, dword ptr [0x251c7688] */ 4611 MEM32(eax) = ecx; /* 0x25052B73: mov dword ptr [eax], ecx */ 4612 MEM32(0x251C7684) = 0xC7C35000u; /* 0x25052B75: mov dword ptr [0x251c7684], 0xc7c35000 */ 4613 ebp = POP32_VAL(esp); /* 0x25052B7F: pop ebp */ 4614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25052B80: ret */ 4615 RECOMP_REGS_OUT(); 4616 } 4617 4618 void sub_25052B90(void) { 4619 int _fpu_cmp = 0; 4620 uint32_t _cf = 0; 4621 int _df = 1; 4622 uint32_t _flag_k = FK_NONE; 4623 uint32_t _flag_a = 0, _flag_b = 0; 4624 uint32_t _itail_tgt = 0; 4625 RECOMP_REGS_LOCALS 4626 RECOMP_ENTER(0x25052B90u); 4627 4628 L_25052B90: 4629 PUSH32(esp, ebp); /* 0x25052B90: push ebp */ 4630 ebp = esp; /* 0x25052B91: mov ebp, esp */ 4631 PUSH32(esp, 0xFFFFFFFFu); /* 0x25052B93: push -1 */ 4632 PUSH32(esp, 0x2514701Bu); /* 0x25052B95: push 0x2514701b */ 4633 eax = MEM32(FS_BASE + (0)); /* 0x25052B9A: mov eax, dword ptr fs:[0] */ 4634 PUSH32(esp, eax); /* 0x25052BA0: push eax */ 4635 MEM32(FS_BASE + (0)) = esp; /* 0x25052BA1: mov dword ptr fs:[0], esp */ 4636 PUSH32(esp, ecx); /* 0x25052BA8: push ecx */ 4637 PUSH32(esp, esi); /* 0x25052BA9: push esi */ 4638 PUSH32(esp, edi); /* 0x25052BAA: push edi */ 4639 edi = ecx; /* 0x25052BAB: mov edi, ecx */ 4640 PUSH32(esp, 0xCu); /* 0x25052BAD: push 0xc */ 4641 MEM32(edi) = 0; /* 0x25052BAF: mov dword ptr [edi], 0 */ 4642 RECOMP_ICALL(0x251380D0u); /* 0x25052BB5: call 0x251380d0 */ /* not lifted */ 4643 RECOMP_FLAGS_IN(); 4644 esi = eax; /* 0x25052BBA: mov esi, eax */ 4645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4647 esp = esp + 4; /* 0x25052BBC: add esp, 4 */ 4648 _flag_k = FK_ADD; 4649 MEM32(ebp + (-0x10)) = esi; /* 0x25052BBF: mov dword ptr [ebp - 0x10], esi */ 4650 /* test esi, esi */ /* 0x25052BC2: test esi, esi */ 4651 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4652 _cf = 0; 4653 _flag_k = FK_TEST; 4654 MEM32(ebp + (-0x4)) = 0; /* 0x25052BC4: mov dword ptr [ebp - 4], 0 */ 4655 if (TEST_Z(_flag_a, _flag_b)) goto L_25052BED; /* 0x25052BCB: je 0x25052bed */ 4656 L_25052BCD: 4657 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x25052BCD: mov al, byte ptr [ebp + 0xf] */ 4658 PUSH32(esp, 0xCu); /* 0x25052BD0: push 0xc */ 4659 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x25052BD2: mov byte ptr [esi], al */ 4660 RECOMP_ICALL(0x251380D0u); /* 0x25052BD4: call 0x251380d0 */ /* not lifted */ 4661 RECOMP_FLAGS_IN(); 4662 MEM32(eax) = eax; /* 0x25052BD9: mov dword ptr [eax], eax */ 4663 MEM32(eax + 0x4) = eax; /* 0x25052BDB: mov dword ptr [eax + 4], eax */ 4664 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4666 esp = esp + 4; /* 0x25052BDE: add esp, 4 */ 4667 _flag_k = FK_ADD; 4668 MEM32(esi + 0x4) = eax; /* 0x25052BE1: mov dword ptr [esi + 4], eax */ 4669 MEM32(esi + 0x8) = 0; /* 0x25052BE4: mov dword ptr [esi + 8], 0 */ 4670 goto L_25052BEF; /* 0x25052BEB: jmp 0x25052bef */ 4671 L_25052BED: 4672 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4673 esi = 0; /* 0x25052BED: xor esi, esi */ 4674 _cf = 0; 4675 _flag_k = FK_TEST; 4676 L_25052BEF: 4677 PUSH32(esp, 0x3Cu); /* 0x25052BEF: push 0x3c */ 4678 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25052BF1: mov dword ptr [ebp - 4], 0xffffffff */ 4679 MEM32(edi) = esi; /* 0x25052BF8: mov dword ptr [edi], esi */ 4680 RECOMP_ICALL(0x2507F900u); /* 0x25052BFA: call 0x2507f900 */ /* not lifted */ 4681 RECOMP_FLAGS_IN(); 4682 ecx = eax; /* 0x25052BFF: mov ecx, eax */ 4683 RECOMP_ICALL(0x25084400u); /* 0x25052C01: call 0x25084400 */ /* not lifted */ 4684 RECOMP_FLAGS_IN(); 4685 ecx = MEM32(ebp + 0xC); /* 0x25052C06: mov ecx, dword ptr [ebp + 0xc] */ 4686 edx = MEM32(ebp + 0x8); /* 0x25052C09: mov edx, dword ptr [ebp + 8] */ 4687 PUSH32(esp, ecx); /* 0x25052C0C: push ecx */ 4688 PUSH32(esp, edx); /* 0x25052C0D: push edx */ 4689 RECOMP_ICALL(0x2505A8F0u); /* 0x25052C0E: call 0x2505a8f0 */ /* not lifted */ 4690 RECOMP_FLAGS_IN(); 4691 eax = MEM32(ebp + 0x1C); /* 0x25052C13: mov eax, dword ptr [ebp + 0x1c] */ 4692 ecx = MEM32(ebp + 0x10); /* 0x25052C16: mov ecx, dword ptr [ebp + 0x10] */ 4693 PUSH32(esp, eax); /* 0x25052C19: push eax */ 4694 PUSH32(esp, ecx); /* 0x25052C1A: push ecx */ 4695 RECOMP_ICALL(0x2505C860u); /* 0x25052C1B: call 0x2505c860 */ /* not lifted */ 4696 RECOMP_FLAGS_IN(); 4697 ecx = MEM32(ebp + (-0xC)); /* 0x25052C20: mov ecx, dword ptr [ebp - 0xc] */ 4698 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4700 esp = esp + 0x10u; /* 0x25052C23: add esp, 0x10 */ 4701 _flag_k = FK_ADD; 4702 eax = edi; /* 0x25052C26: mov eax, edi */ 4703 edi = POP32_VAL(esp); /* 0x25052C28: pop edi */ 4704 esi = POP32_VAL(esp); /* 0x25052C29: pop esi */ 4705 MEM32(FS_BASE + (0)) = ecx; /* 0x25052C2A: mov dword ptr fs:[0], ecx */ 4706 esp = ebp; /* 0x25052C31: mov esp, ebp */ 4707 ebp = POP32_VAL(esp); /* 0x25052C33: pop ebp */ 4708 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x25052C34: ret 0x1c */ 4709 RECOMP_REGS_OUT(); 4710 } 4711 4712 void sub_25052C40(void) { 4713 int _fpu_cmp = 0; 4714 uint32_t _cf = 0; 4715 int _df = 1; 4716 uint32_t _flag_k = FK_NONE; 4717 uint32_t _flag_a = 0, _flag_b = 0; 4718 uint32_t _itail_tgt = 0; 4719 RECOMP_REGS_LOCALS 4720 RECOMP_ENTER(0x25052C40u); 4721 4722 L_25052C40: 4723 PUSH32(esp, ebp); /* 0x25052C40: push ebp */ 4724 ebp = esp; /* 0x25052C41: mov ebp, esp */ 4725 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4727 esp = esp - 8; /* 0x25052C43: sub esp, 8 */ 4728 _flag_k = FK_CMP; 4729 PUSH32(esp, ebx); /* 0x25052C46: push ebx */ 4730 ebx = ecx; /* 0x25052C47: mov ebx, ecx */ 4731 ecx = MEM32(0x251C7670); /* 0x25052C49: mov ecx, dword ptr [0x251c7670] */ 4732 /* test ecx, ecx */ /* 0x25052C4F: test ecx, ecx */ 4733 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4734 _cf = 0; 4735 _flag_k = FK_TEST; 4736 MEM32(ebp + (-0x4)) = ebx; /* 0x25052C51: mov dword ptr [ebp - 4], ebx */ 4737 if (TEST_Z(_flag_a, _flag_b)) goto L_25052C65; /* 0x25052C54: je 0x25052c65 */ 4738 L_25052C56: 4739 RECOMP_ICALL(0x250E6370u); /* 0x25052C56: call 0x250e6370 */ /* not lifted */ 4740 RECOMP_FLAGS_IN(); 4741 MEM32(0x251C7670) = 0; /* 0x25052C5B: mov dword ptr [0x251c7670], 0 */ 4742 L_25052C65: 4743 eax = MEM32(ebx); /* 0x25052C65: mov eax, dword ptr [ebx] */ 4744 /* test eax, eax */ /* 0x25052C67: test eax, eax */ 4745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4746 _cf = 0; 4747 _flag_k = FK_TEST; 4748 if (TEST_Z(_flag_a, _flag_b)) goto L_25052D0E; /* 0x25052C69: je 0x25052d0e */ 4749 L_25052C6F: 4750 ecx = MEM32(eax + 0x4); /* 0x25052C6F: mov ecx, dword ptr [eax + 4] */ 4751 eax = MEM32(ecx); /* 0x25052C72: mov eax, dword ptr [ecx] */ 4752 /* cmp eax, ecx */ /* 0x25052C74: cmp eax, ecx */ 4753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4755 _flag_k = FK_CMP; 4756 PUSH32(esp, esi); /* 0x25052C76: push esi */ 4757 PUSH32(esp, edi); /* 0x25052C77: push edi */ 4758 if (CMP_EQ(_flag_a, _flag_b)) goto L_25052CC6; /* 0x25052C78: je 0x25052cc6 */ 4759 L_25052C7A: 4760 ecx = MEM32(eax + 0x8); /* 0x25052C7A: mov ecx, dword ptr [eax + 8] */ 4761 /* test ecx, ecx */ /* 0x25052C7D: test ecx, ecx */ 4762 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4763 _cf = 0; 4764 _flag_k = FK_TEST; 4765 if (TEST_Z(_flag_a, _flag_b)) goto L_25052C95; /* 0x25052C7F: je 0x25052c95 */ 4766 L_25052C81: 4767 esi = ecx; /* 0x25052C81: mov esi, ecx */ 4768 /* test esi, esi */ /* 0x25052C83: test esi, esi */ 4769 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4770 _cf = 0; 4771 _flag_k = FK_TEST; 4772 if (TEST_Z(_flag_a, _flag_b)) goto L_25052C95; /* 0x25052C85: je 0x25052c95 */ 4773 L_25052C87: 4774 RECOMP_ICALL(0x2501C580u); /* 0x25052C87: call 0x2501c580 */ /* not lifted */ 4775 RECOMP_FLAGS_IN(); 4776 PUSH32(esp, esi); /* 0x25052C8C: push esi */ 4777 RECOMP_ICALL(0x25137EECu); /* 0x25052C8D: call 0x25137eec */ /* not lifted */ 4778 RECOMP_FLAGS_IN(); 4779 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4781 esp = esp + 4; /* 0x25052C92: add esp, 4 */ 4782 _flag_k = FK_ADD; 4783 L_25052C95: 4784 esi = MEM32(ebx); /* 0x25052C95: mov esi, dword ptr [ebx] */ 4785 eax = MEM32(esi + 0x4); /* 0x25052C97: mov eax, dword ptr [esi + 4] */ 4786 eax = MEM32(eax); /* 0x25052C9A: mov eax, dword ptr [eax] */ 4787 ecx = MEM32(eax + 0x4); /* 0x25052C9C: mov ecx, dword ptr [eax + 4] */ 4788 edx = MEM32(eax); /* 0x25052C9F: mov edx, dword ptr [eax] */ 4789 MEM32(ecx) = edx; /* 0x25052CA1: mov dword ptr [ecx], edx */ 4790 ecx = MEM32(eax); /* 0x25052CA3: mov ecx, dword ptr [eax] */ 4791 edx = MEM32(eax + 0x4); /* 0x25052CA5: mov edx, dword ptr [eax + 4] */ 4792 PUSH32(esp, eax); /* 0x25052CA8: push eax */ 4793 MEM32(ecx + 0x4) = edx; /* 0x25052CA9: mov dword ptr [ecx + 4], edx */ 4794 RECOMP_ICALL(0x25137EECu); /* 0x25052CAC: call 0x25137eec */ /* not lifted */ 4795 RECOMP_FLAGS_IN(); 4796 edi = MEM32(esi + 0x8); /* 0x25052CB1: mov edi, dword ptr [esi + 8] */ 4797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4799 esp = esp + 4; /* 0x25052CB4: add esp, 4 */ 4800 _flag_k = FK_ADD; 4801 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4802 edi = edi - 1; /* 0x25052CB7: dec edi */ 4803 _flag_k = FK_DEC; 4804 MEM32(esi + 0x8) = edi; /* 0x25052CB8: mov dword ptr [esi + 8], edi */ 4805 eax = MEM32(ebx); /* 0x25052CBB: mov eax, dword ptr [ebx] */ 4806 ecx = MEM32(eax + 0x4); /* 0x25052CBD: mov ecx, dword ptr [eax + 4] */ 4807 eax = MEM32(ecx); /* 0x25052CC0: mov eax, dword ptr [ecx] */ 4808 /* cmp eax, ecx */ /* 0x25052CC2: cmp eax, ecx */ 4809 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4811 _flag_k = FK_CMP; 4812 RECOMP_BACKEDGE(); 4813 if (CMP_NE(_flag_a, _flag_b)) goto L_25052C7A; /* 0x25052CC4: jne 0x25052c7a */ 4814 L_25052CC6: 4815 edi = MEM32(ebx); /* 0x25052CC6: mov edi, dword ptr [ebx] */ 4816 /* test edi, edi */ /* 0x25052CC8: test edi, edi */ 4817 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4818 _cf = 0; 4819 _flag_k = FK_TEST; 4820 if (TEST_Z(_flag_a, _flag_b)) goto L_25052D06; /* 0x25052CCA: je 0x25052d06 */ 4821 L_25052CCC: 4822 ebx = MEM32(edi + 0x4); /* 0x25052CCC: mov ebx, dword ptr [edi + 4] */ 4823 esi = MEM32(ebx); /* 0x25052CCF: mov esi, dword ptr [ebx] */ 4824 /* cmp esi, ebx */ /* 0x25052CD1: cmp esi, ebx */ 4825 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4827 _flag_k = FK_CMP; 4828 if (CMP_EQ(_flag_a, _flag_b)) goto L_25052CE9; /* 0x25052CD3: je 0x25052ce9 */ 4829 L_25052CD5: 4830 eax = esi; /* 0x25052CD5: mov eax, esi */ 4831 esi = MEM32(esi); /* 0x25052CD7: mov esi, dword ptr [esi] */ 4832 PUSH32(esp, eax); /* 0x25052CD9: push eax */ 4833 ecx = ebp + (-0x8); /* 0x25052CDA: lea ecx, [ebp - 8] */ 4834 PUSH32(esp, ecx); /* 0x25052CDD: push ecx */ 4835 ecx = edi; /* 0x25052CDE: mov ecx, edi */ 4836 RECOMP_ICALL(0x25085320u); /* 0x25052CE0: call 0x25085320 */ /* not lifted */ 4837 RECOMP_FLAGS_IN(); 4838 /* cmp esi, ebx */ /* 0x25052CE5: cmp esi, ebx */ 4839 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4841 _flag_k = FK_CMP; 4842 RECOMP_BACKEDGE(); 4843 if (CMP_NE(_flag_a, _flag_b)) goto L_25052CD5; /* 0x25052CE7: jne 0x25052cd5 */ 4844 L_25052CE9: 4845 edx = MEM32(edi + 0x4); /* 0x25052CE9: mov edx, dword ptr [edi + 4] */ 4846 PUSH32(esp, edx); /* 0x25052CEC: push edx */ 4847 RECOMP_ICALL(0x25137EECu); /* 0x25052CED: call 0x25137eec */ /* not lifted */ 4848 RECOMP_FLAGS_IN(); 4849 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4850 eax = 0; /* 0x25052CF2: xor eax, eax */ 4851 _cf = 0; 4852 _flag_k = FK_TEST; 4853 PUSH32(esp, edi); /* 0x25052CF4: push edi */ 4854 MEM32(edi + 0x4) = eax; /* 0x25052CF5: mov dword ptr [edi + 4], eax */ 4855 MEM32(edi + 0x8) = eax; /* 0x25052CF8: mov dword ptr [edi + 8], eax */ 4856 RECOMP_ICALL(0x25137EECu); /* 0x25052CFB: call 0x25137eec */ /* not lifted */ 4857 RECOMP_FLAGS_IN(); 4858 ebx = MEM32(ebp + (-0x4)); /* 0x25052D00: mov ebx, dword ptr [ebp - 4] */ 4859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4861 esp = esp + 8; /* 0x25052D03: add esp, 8 */ 4862 _flag_k = FK_ADD; 4863 L_25052D06: 4864 edi = POP32_VAL(esp); /* 0x25052D06: pop edi */ 4865 MEM32(ebx) = 0; /* 0x25052D07: mov dword ptr [ebx], 0 */ 4866 esi = POP32_VAL(esp); /* 0x25052D0D: pop esi */ 4867 L_25052D0E: 4868 ebx = POP32_VAL(esp); /* 0x25052D0E: pop ebx */ 4869 esp = ebp; /* 0x25052D0F: mov esp, ebp */ 4870 ebp = POP32_VAL(esp); /* 0x25052D11: pop ebp */ 4871 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25052D12: ret */ 4872 RECOMP_REGS_OUT(); 4873 } 4874 4875 void sub_25052D20(void) { 4876 int _fpu_cmp = 0; 4877 uint32_t _cf = 0; 4878 int _df = 1; 4879 uint32_t _flag_k = FK_NONE; 4880 uint32_t _flag_a = 0, _flag_b = 0; 4881 uint32_t _itail_tgt = 0; 4882 RECOMP_REGS_LOCALS 4883 RECOMP_ENTER(0x25052D20u); 4884 4885 L_25052D20: 4886 PUSH32(esp, ebp); /* 0x25052D20: push ebp */ 4887 ebp = esp; /* 0x25052D21: mov ebp, esp */ 4888 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 4889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4890 esp = esp - 0x4Cu; /* 0x25052D23: sub esp, 0x4c */ 4891 _flag_k = FK_CMP; 4892 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x25052D26: fld dword ptr [ebp + 0x28] */ 4893 PUSH32(esp, ebx); /* 0x25052D29: push ebx */ 4894 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x1C)); /* 0x25052D2A: fcomp dword ptr [ebp + 0x1c] */ 4895 fp_pop(); 4896 PUSH32(esp, esi); /* 0x25052D2D: push esi */ 4897 PUSH32(esp, edi); /* 0x25052D2E: push edi */ 4898 edi = ecx; /* 0x25052D2F: mov edi, ecx */ 4899 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D31: fnstsw ax */ 4900 /* test HI8(eax), 0x40u */ /* 0x25052D33: test ah, 0x40 */ 4901 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4902 _cf = 0; 4903 _flag_k = FK_NARROW(FK_TEST, 24); 4904 if (TEST_Z(_flag_a, _flag_b)) goto L_25052D56; /* 0x25052D36: je 0x25052d56 */ 4905 L_25052D38: 4906 fp_push(*(float*)&MEM32(ebp + 0x2C)); /* 0x25052D38: fld dword ptr [ebp + 0x2c] */ 4907 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x20)); /* 0x25052D3B: fcomp dword ptr [ebp + 0x20] */ 4908 fp_pop(); 4909 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D3E: fnstsw ax */ 4910 /* test HI8(eax), 0x40u */ /* 0x25052D40: test ah, 0x40 */ 4911 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4912 _cf = 0; 4913 _flag_k = FK_NARROW(FK_TEST, 24); 4914 if (TEST_Z(_flag_a, _flag_b)) goto L_25052D56; /* 0x25052D43: je 0x25052d56 */ 4915 L_25052D45: 4916 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x25052D45: fld dword ptr [ebp + 0x30] */ 4917 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x24)); /* 0x25052D48: fcomp dword ptr [ebp + 0x24] */ 4918 fp_pop(); 4919 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D4B: fnstsw ax */ 4920 /* test HI8(eax), 0x40u */ /* 0x25052D4D: test ah, 0x40 */ 4921 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4922 _cf = 0; 4923 _flag_k = FK_NARROW(FK_TEST, 24); 4924 if (TEST_NZ(_flag_a, _flag_b)) goto L_25053202; /* 0x25052D50: jne 0x25053202 */ 4925 L_25052D56: 4926 fp_push(*(float*)&MEM32(ebp + 0x34)); /* 0x25052D56: fld dword ptr [ebp + 0x34] */ 4927 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x28)); /* 0x25052D59: fcomp dword ptr [ebp + 0x28] */ 4928 fp_pop(); 4929 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D5C: fnstsw ax */ 4930 /* test HI8(eax), 0x40u */ /* 0x25052D5E: test ah, 0x40 */ 4931 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4932 _cf = 0; 4933 _flag_k = FK_NARROW(FK_TEST, 24); 4934 if (TEST_Z(_flag_a, _flag_b)) goto L_25052D81; /* 0x25052D61: je 0x25052d81 */ 4935 L_25052D63: 4936 fp_push(*(float*)&MEM32(ebp + 0x38)); /* 0x25052D63: fld dword ptr [ebp + 0x38] */ 4937 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x2C)); /* 0x25052D66: fcomp dword ptr [ebp + 0x2c] */ 4938 fp_pop(); 4939 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D69: fnstsw ax */ 4940 /* test HI8(eax), 0x40u */ /* 0x25052D6B: test ah, 0x40 */ 4941 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4942 _cf = 0; 4943 _flag_k = FK_NARROW(FK_TEST, 24); 4944 if (TEST_Z(_flag_a, _flag_b)) goto L_25052D81; /* 0x25052D6E: je 0x25052d81 */ 4945 L_25052D70: 4946 fp_push(*(float*)&MEM32(ebp + 0x3C)); /* 0x25052D70: fld dword ptr [ebp + 0x3c] */ 4947 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x30)); /* 0x25052D73: fcomp dword ptr [ebp + 0x30] */ 4948 fp_pop(); 4949 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D76: fnstsw ax */ 4950 /* test HI8(eax), 0x40u */ /* 0x25052D78: test ah, 0x40 */ 4951 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4952 _cf = 0; 4953 _flag_k = FK_NARROW(FK_TEST, 24); 4954 if (TEST_NZ(_flag_a, _flag_b)) goto L_25053202; /* 0x25052D7B: jne 0x25053202 */ 4955 L_25052D81: 4956 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25052D81: fld dword ptr [ebp + 0x1c] */ 4957 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x34)); /* 0x25052D84: fcomp dword ptr [ebp + 0x34] */ 4958 fp_pop(); 4959 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D87: fnstsw ax */ 4960 /* test HI8(eax), 0x40u */ /* 0x25052D89: test ah, 0x40 */ 4961 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4962 _cf = 0; 4963 _flag_k = FK_NARROW(FK_TEST, 24); 4964 if (TEST_Z(_flag_a, _flag_b)) goto L_25052DAC; /* 0x25052D8C: je 0x25052dac */ 4965 L_25052D8E: 4966 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25052D8E: fld dword ptr [ebp + 0x20] */ 4967 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x38)); /* 0x25052D91: fcomp dword ptr [ebp + 0x38] */ 4968 fp_pop(); 4969 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052D94: fnstsw ax */ 4970 /* test HI8(eax), 0x40u */ /* 0x25052D96: test ah, 0x40 */ 4971 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4972 _cf = 0; 4973 _flag_k = FK_NARROW(FK_TEST, 24); 4974 if (TEST_Z(_flag_a, _flag_b)) goto L_25052DAC; /* 0x25052D99: je 0x25052dac */ 4975 L_25052D9B: 4976 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25052D9B: fld dword ptr [ebp + 0x24] */ 4977 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x3C)); /* 0x25052D9E: fcomp dword ptr [ebp + 0x3c] */ 4978 fp_pop(); 4979 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052DA1: fnstsw ax */ 4980 /* test HI8(eax), 0x40u */ /* 0x25052DA3: test ah, 0x40 */ 4981 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 4982 _cf = 0; 4983 _flag_k = FK_NARROW(FK_TEST, 24); 4984 if (TEST_NZ(_flag_a, _flag_b)) goto L_25053202; /* 0x25052DA6: jne 0x25053202 */ 4985 L_25052DAC: 4986 ebx = MEM32(ebp + 0x8); /* 0x25052DAC: mov ebx, dword ptr [ebp + 8] */ 4987 /* test LO8(ebx), 1 */ /* 0x25052DAF: test bl, 1 */ 4988 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4989 _cf = 0; 4990 _flag_k = FK_NARROW(FK_TEST, 24); 4991 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052E1F; /* 0x25052DB2: jne 0x25052e1f */ 4992 L_25052DB4: 4993 eax = MEM32(ebp + 0x44); /* 0x25052DB4: mov eax, dword ptr [ebp + 0x44] */ 4994 ecx = MEM32(ebp + 0x40); /* 0x25052DB7: mov ecx, dword ptr [ebp + 0x40] */ 4995 PUSH32(esp, eax); /* 0x25052DBA: push eax */ 4996 eax = MEM32(ebp + 0x34); /* 0x25052DBB: mov eax, dword ptr [ebp + 0x34] */ 4997 PUSH32(esp, ecx); /* 0x25052DBE: push ecx */ 4998 ecx = MEM32(ebp + 0x38); /* 0x25052DBF: mov ecx, dword ptr [ebp + 0x38] */ 4999 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5001 esp = esp - 0xCu; /* 0x25052DC2: sub esp, 0xc */ 5002 _flag_k = FK_CMP; 5003 edx = esp; /* 0x25052DC5: mov edx, esp */ 5004 MEM32(edx) = eax; /* 0x25052DC7: mov dword ptr [edx], eax */ 5005 eax = MEM32(ebp + 0x3C); /* 0x25052DC9: mov eax, dword ptr [ebp + 0x3c] */ 5006 MEM32(edx + 0x4) = ecx; /* 0x25052DCC: mov dword ptr [edx + 4], ecx */ 5007 MEM32(edx + 0x8) = eax; /* 0x25052DCF: mov dword ptr [edx + 8], eax */ 5008 edx = MEM32(ebp + 0x28); /* 0x25052DD2: mov edx, dword ptr [ebp + 0x28] */ 5009 eax = MEM32(ebp + 0x2C); /* 0x25052DD5: mov eax, dword ptr [ebp + 0x2c] */ 5010 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5012 esp = esp - 0xCu; /* 0x25052DD8: sub esp, 0xc */ 5013 _flag_k = FK_CMP; 5014 ecx = esp; /* 0x25052DDB: mov ecx, esp */ 5015 MEM32(ecx) = edx; /* 0x25052DDD: mov dword ptr [ecx], edx */ 5016 edx = MEM32(ebp + 0x30); /* 0x25052DDF: mov edx, dword ptr [ebp + 0x30] */ 5017 MEM32(ecx + 0x4) = eax; /* 0x25052DE2: mov dword ptr [ecx + 4], eax */ 5018 MEM32(ecx + 0x8) = edx; /* 0x25052DE5: mov dword ptr [ecx + 8], edx */ 5019 ecx = MEM32(ebp + 0x1C); /* 0x25052DE8: mov ecx, dword ptr [ebp + 0x1c] */ 5020 edx = MEM32(ebp + 0x20); /* 0x25052DEB: mov edx, dword ptr [ebp + 0x20] */ 5021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5023 esp = esp - 0xCu; /* 0x25052DEE: sub esp, 0xc */ 5024 _flag_k = FK_CMP; 5025 eax = esp; /* 0x25052DF1: mov eax, esp */ 5026 MEM32(eax) = ecx; /* 0x25052DF3: mov dword ptr [eax], ecx */ 5027 ecx = MEM32(ebp + 0x24); /* 0x25052DF5: mov ecx, dword ptr [ebp + 0x24] */ 5028 MEM32(eax + 0x4) = edx; /* 0x25052DF8: mov dword ptr [eax + 4], edx */ 5029 edx = MEM32(ebp + 0x18); /* 0x25052DFB: mov edx, dword ptr [ebp + 0x18] */ 5030 PUSH32(esp, edx); /* 0x25052DFE: push edx */ 5031 edx = MEM32(ebp + 0xC); /* 0x25052DFF: mov edx, dword ptr [ebp + 0xc] */ 5032 MEM32(eax + 0x8) = ecx; /* 0x25052E02: mov dword ptr [eax + 8], ecx */ 5033 eax = MEM32(ebp + 0x14); /* 0x25052E05: mov eax, dword ptr [ebp + 0x14] */ 5034 ecx = MEM32(ebp + 0x10); /* 0x25052E08: mov ecx, dword ptr [ebp + 0x10] */ 5035 PUSH32(esp, eax); /* 0x25052E0B: push eax */ 5036 PUSH32(esp, ecx); /* 0x25052E0C: push ecx */ 5037 PUSH32(esp, edx); /* 0x25052E0D: push edx */ 5038 PUSH32(esp, ebx); /* 0x25052E0E: push ebx */ 5039 ecx = edi; /* 0x25052E0F: mov ecx, edi */ 5040 RECOMP_ICALL(0x25053A90u); /* 0x25052E11: call 0x25053a90 */ /* not lifted */ 5041 RECOMP_FLAGS_IN(); 5042 edi = POP32_VAL(esp); /* 0x25052E16: pop edi */ 5043 esi = POP32_VAL(esp); /* 0x25052E17: pop esi */ 5044 ebx = POP32_VAL(esp); /* 0x25052E18: pop ebx */ 5045 esp = ebp; /* 0x25052E19: mov esp, ebp */ 5046 ebp = POP32_VAL(esp); /* 0x25052E1B: pop ebp */ 5047 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25052E1C: ret 0x40 */ 5048 L_25052E1F: 5049 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25052E1F: fld dword ptr [ebp + 0x20] */ 5050 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x2C)); /* 0x25052E22: fcomp dword ptr [ebp + 0x2c] */ 5051 fp_pop(); 5052 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052E25: fnstsw ax */ 5053 /* test HI8(eax), 0x41u */ /* 0x25052E27: test ah, 0x41 */ 5054 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5055 _cf = 0; 5056 _flag_k = FK_NARROW(FK_TEST, 24); 5057 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052E3E; /* 0x25052E2A: jne 0x25052e3e */ 5058 L_25052E2C: 5059 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25052E2C: fld dword ptr [ebp + 0x20] */ 5060 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x38)); /* 0x25052E2F: fcomp dword ptr [ebp + 0x38] */ 5061 fp_pop(); 5062 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052E32: fnstsw ax */ 5063 /* test HI8(eax), 0x41u */ /* 0x25052E34: test ah, 0x41 */ 5064 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5065 _cf = 0; 5066 _flag_k = FK_NARROW(FK_TEST, 24); 5067 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052E50; /* 0x25052E37: jne 0x25052e50 */ 5068 L_25052E39: 5069 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25052E39: fld dword ptr [ebp + 0x20] */ 5070 goto L_25052E53; /* 0x25052E3C: jmp 0x25052e53 */ 5071 L_25052E3E: 5072 fp_push(*(float*)&MEM32(ebp + 0x2C)); /* 0x25052E3E: fld dword ptr [ebp + 0x2c] */ 5073 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x38)); /* 0x25052E41: fcomp dword ptr [ebp + 0x38] */ 5074 fp_pop(); 5075 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052E44: fnstsw ax */ 5076 /* test HI8(eax), 0x41u */ /* 0x25052E46: test ah, 0x41 */ 5077 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5078 _cf = 0; 5079 _flag_k = FK_NARROW(FK_TEST, 24); 5080 if (TEST_NZ(_flag_a, _flag_b)) goto L_25052E50; /* 0x25052E49: jne 0x25052e50 */ 5081 L_25052E4B: 5082 fp_push(*(float*)&MEM32(ebp + 0x2C)); /* 0x25052E4B: fld dword ptr [ebp + 0x2c] */ 5083 goto L_25052E53; /* 0x25052E4E: jmp 0x25052e53 */ 5084 L_25052E50: 5085 fp_push(*(float*)&MEM32(ebp + 0x38)); /* 0x25052E50: fld dword ptr [ebp + 0x38] */ 5086 L_25052E53: 5087 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25052E53: fld dword ptr [ebp + 0x20] */ 5088 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x2C)); /* 0x25052E56: fcomp dword ptr [ebp + 0x2c] */ 5089 fp_pop(); 5090 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052E59: fnstsw ax */ 5091 /* test HI8(eax), 1 */ /* 0x25052E5B: test ah, 1 */ 5092 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5093 _cf = 0; 5094 _flag_k = FK_NARROW(FK_TEST, 24); 5095 if (TEST_Z(_flag_a, _flag_b)) goto L_25052E7A; /* 0x25052E5E: je 0x25052e7a */ 5096 L_25052E60: 5097 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25052E60: fld dword ptr [ebp + 0x20] */ 5098 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x38)); /* 0x25052E63: fcomp dword ptr [ebp + 0x38] */ 5099 fp_pop(); 5100 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052E66: fnstsw ax */ 5101 /* test HI8(eax), 1 */ /* 0x25052E68: test ah, 1 */ 5102 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5103 _cf = 0; 5104 _flag_k = FK_NARROW(FK_TEST, 24); 5105 if (TEST_Z(_flag_a, _flag_b)) goto L_25052E72; /* 0x25052E6B: je 0x25052e72 */ 5106 L_25052E6D: 5107 eax = MEM32(ebp + 0x20); /* 0x25052E6D: mov eax, dword ptr [ebp + 0x20] */ 5108 goto L_25052E92; /* 0x25052E70: jmp 0x25052e92 */ 5109 L_25052E72: 5110 ecx = MEM32(ebp + 0x38); /* 0x25052E72: mov ecx, dword ptr [ebp + 0x38] */ 5111 MEM32(ebp + 0x8) = ecx; /* 0x25052E75: mov dword ptr [ebp + 8], ecx */ 5112 goto L_25052E95; /* 0x25052E78: jmp 0x25052e95 */ 5113 L_25052E7A: 5114 fp_push(*(float*)&MEM32(ebp + 0x2C)); /* 0x25052E7A: fld dword ptr [ebp + 0x2c] */ 5115 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x38)); /* 0x25052E7D: fcomp dword ptr [ebp + 0x38] */ 5116 fp_pop(); 5117 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052E80: fnstsw ax */ 5118 /* test HI8(eax), 1 */ /* 0x25052E82: test ah, 1 */ 5119 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5120 _cf = 0; 5121 _flag_k = FK_NARROW(FK_TEST, 24); 5122 if (TEST_Z(_flag_a, _flag_b)) goto L_25052E8F; /* 0x25052E85: je 0x25052e8f */ 5123 L_25052E87: 5124 edx = MEM32(ebp + 0x2C); /* 0x25052E87: mov edx, dword ptr [ebp + 0x2c] */ 5125 MEM32(ebp + 0x8) = edx; /* 0x25052E8A: mov dword ptr [ebp + 8], edx */ 5126 goto L_25052E95; /* 0x25052E8D: jmp 0x25052e95 */ 5127 L_25052E8F: 5128 eax = MEM32(ebp + 0x38); /* 0x25052E8F: mov eax, dword ptr [ebp + 0x38] */ 5129 L_25052E92: 5130 MEM32(ebp + 0x8) = eax; /* 0x25052E92: mov dword ptr [ebp + 8], eax */ 5131 L_25052E95: 5132 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x25052E95: fsub dword ptr [ebp + 8] */ 5133 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x25052E98: fst dword ptr [ebp - 4] */ 5134 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151860)); /* 0x25052E9B: fcomp dword ptr [0x25151860] */ 5135 fp_pop(); 5136 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052EA1: fnstsw ax */ 5137 /* test HI8(eax), 1 */ /* 0x25052EA3: test ah, 1 */ 5138 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5139 _cf = 0; 5140 _flag_k = FK_NARROW(FK_TEST, 24); 5141 if (TEST_NZ(_flag_a, _flag_b)) goto L_250531A0; /* 0x25052EA6: jne 0x250531a0 */ 5142 L_25052EAC: 5143 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25052EAC: fld dword ptr [ebp + 0x1c] */ 5144 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x25052EAF: fstp dword ptr [ebp - 0x10] */ 5145 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25052EB2: fld dword ptr [ebp + 0x20] */ 5146 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x25052EB5: fsub dword ptr [ebp + 8] */ 5147 _st[0] /= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x25052EB8: fdiv dword ptr [ebp - 4] */ 5148 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x25052EBB: fstp dword ptr [ebp - 0xc] */ 5149 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25052EBE: fld dword ptr [ebp + 0x24] */ 5150 ecx = MEM32(ebp + (-0xC)); /* 0x25052EC1: mov ecx, dword ptr [ebp - 0xc] */ 5151 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x25052EC4: fstp dword ptr [ebp - 8] */ 5152 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x25052EC7: fld dword ptr [ebp + 0x28] */ 5153 MEM32(ebp + (-0x24)) = ecx; /* 0x25052ECA: mov dword ptr [ebp - 0x24], ecx */ 5154 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x25052ECD: fstp dword ptr [ebp - 0x4c] */ 5155 fp_push(*(float*)&MEM32(ebp + 0x2C)); /* 0x25052ED0: fld dword ptr [ebp + 0x2c] */ 5156 MEM32(ebp + (-0x24)) = 0x3F800000u; /* 0x25052ED3: mov dword ptr [ebp - 0x24], 0x3f800000 */ 5157 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x25052EDA: fsub dword ptr [ebp + 8] */ 5158 _st[0] /= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x25052EDD: fdiv dword ptr [ebp - 4] */ 5159 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x25052EE0: fst dword ptr [ebp - 0x48] */ 5160 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x25052EE3: fld dword ptr [ebp + 0x30] */ 5161 edx = MEM32(ebp + (-0x48)); /* 0x25052EE6: mov edx, dword ptr [ebp - 0x48] */ 5162 MEM32(ebp + (-0x3C)) = edx; /* 0x25052EE9: mov dword ptr [ebp - 0x3c], edx */ 5163 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25052EEC: fstp dword ptr [ebp - 0x44] */ 5164 fp_push(*(float*)&MEM32(ebp + 0x34)); /* 0x25052EEF: fld dword ptr [ebp + 0x34] */ 5165 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x25052EF2: fstp dword ptr [ebp - 0x1c] */ 5166 fp_push(*(float*)&MEM32(ebp + 0x38)); /* 0x25052EF5: fld dword ptr [ebp + 0x38] */ 5167 _st[0] -= (double)*(float*)ADDR(ebp + 0x8); /* 0x25052EF8: fsub dword ptr [ebp + 8] */ 5168 _st[0] /= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x25052EFB: fdiv dword ptr [ebp - 4] */ 5169 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x25052EFE: fstp dword ptr [ebp - 0x18] */ 5170 fp_push(*(float*)&MEM32(ebp + 0x3C)); /* 0x25052F01: fld dword ptr [ebp + 0x3c] */ 5171 eax = MEM32(ebp + (-0x18)); /* 0x25052F04: mov eax, dword ptr [ebp - 0x18] */ 5172 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x25052F07: fstp dword ptr [ebp - 0x14] */ 5173 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25052F0A: fld dword ptr [ebp - 0xc] */ 5174 MEM32(ebp + (-0x30)) = eax; /* 0x25052F0D: mov dword ptr [ebp - 0x30], eax */ 5175 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x25052F10: fcomp dword ptr [0x25151788] */ 5176 fp_pop(); 5177 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052F16: fnstsw ax */ 5178 /* test HI8(eax), 0x41u */ /* 0x25052F18: test ah, 0x41 */ 5179 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5180 _cf = 0; 5181 _flag_k = FK_NARROW(FK_TEST, 24); 5182 if (TEST_Z(_flag_a, _flag_b)) goto L_25052F24; /* 0x25052F1B: je 0x25052f24 */ 5183 L_25052F1D: 5184 MEM32(ebp + (-0x24)) = 0xBC23D70Au; /* 0x25052F1D: mov dword ptr [ebp - 0x24], 0xbc23d70a */ 5185 L_25052F24: 5186 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x25052F24: fcomp dword ptr [0x25151788] */ 5187 fp_pop(); 5188 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x25052F2A: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 5189 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052F31: fnstsw ax */ 5190 /* test HI8(eax), 0x41u */ /* 0x25052F33: test ah, 0x41 */ 5191 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5192 _cf = 0; 5193 _flag_k = FK_NARROW(FK_TEST, 24); 5194 if (TEST_Z(_flag_a, _flag_b)) goto L_25052F3F; /* 0x25052F36: je 0x25052f3f */ 5195 L_25052F38: 5196 MEM32(ebp + (-0x3C)) = 0xBC23D70Au; /* 0x25052F38: mov dword ptr [ebp - 0x3c], 0xbc23d70a */ 5197 L_25052F3F: 5198 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x25052F3F: fld dword ptr [ebp - 0x18] */ 5199 MEM32(ebp + (-0x30)) = 0x3F800000u; /* 0x25052F42: mov dword ptr [ebp - 0x30], 0x3f800000 */ 5200 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x25052F49: fcomp dword ptr [0x25151788] */ 5201 fp_pop(); 5202 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052F4F: fnstsw ax */ 5203 /* test HI8(eax), 0x41u */ /* 0x25052F51: test ah, 0x41 */ 5204 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5205 _cf = 0; 5206 _flag_k = FK_NARROW(FK_TEST, 24); 5207 if (TEST_Z(_flag_a, _flag_b)) goto L_25052F5D; /* 0x25052F54: je 0x25052f5d */ 5208 L_25052F56: 5209 MEM32(ebp + (-0x30)) = 0xBC23D70Au; /* 0x25052F56: mov dword ptr [ebp - 0x30], 0xbc23d70a */ 5210 L_25052F5D: 5211 /* cmp ebx, 2 */ /* 0x25052F5D: cmp ebx, 2 */ 5212 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(2); 5213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5214 _flag_k = FK_CMP; 5215 esi = MEM32(ebp + (-0x4)); /* 0x25052F60: mov esi, dword ptr [ebp - 4] */ 5216 if (CMP_EQ(_flag_a, _flag_b)) goto L_25053061; /* 0x25052F63: je 0x25053061 */ 5217 L_25052F69: 5218 /* cmp ebx, 3 */ /* 0x25052F69: cmp ebx, 3 */ 5219 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(3); 5220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5221 _flag_k = FK_CMP; 5222 if (CMP_EQ(_flag_a, _flag_b)) goto L_25053061; /* 0x25052F6C: je 0x25053061 */ 5223 L_25052F72: 5224 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25052F72: fld dword ptr [ebp - 0x24] */ 5225 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x25052F75: fcomp dword ptr [0x25151788] */ 5226 fp_pop(); 5227 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x25052F7B: fld dword ptr [ebp - 0x3c] */ 5228 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052F7E: fnstsw ax */ 5229 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x25052F80: fcomp dword ptr [0x25151788] */ 5230 fp_pop(); 5231 /* test HI8(eax), 1 */ /* 0x25052F86: test ah, 1 */ 5232 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5233 _cf = 0; 5234 _flag_k = FK_NARROW(FK_TEST, 24); 5235 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052F89: fnstsw ax */ 5236 if (TEST_Z(_flag_a, _flag_b)) goto L_25052FC4; /* 0x25052F8B: je 0x25052fc4 */ 5237 L_25052F8D: 5238 /* test HI8(eax), 1 */ /* 0x25052F8D: test ah, 1 */ 5239 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5240 _cf = 0; 5241 _flag_k = FK_NARROW(FK_TEST, 24); 5242 if (TEST_Z(_flag_a, _flag_b)) goto L_2505300C; /* 0x25052F90: je 0x2505300c */ 5243 L_25052F92: 5244 edx = MEM32(ebp + 0x28); /* 0x25052F92: mov edx, dword ptr [ebp + 0x28] */ 5245 eax = MEM32(ebp + 0x2C); /* 0x25052F95: mov eax, dword ptr [ebp + 0x2c] */ 5246 PUSH32(esp, esi); /* 0x25052F98: push esi */ 5247 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5249 esp = esp - 0xCu; /* 0x25052F99: sub esp, 0xc */ 5250 _flag_k = FK_CMP; 5251 ecx = esp; /* 0x25052F9C: mov ecx, esp */ 5252 MEM32(ecx) = edx; /* 0x25052F9E: mov dword ptr [ecx], edx */ 5253 edx = MEM32(ebp + 0x30); /* 0x25052FA0: mov edx, dword ptr [ebp + 0x30] */ 5254 MEM32(ecx + 0x4) = eax; /* 0x25052FA3: mov dword ptr [ecx + 4], eax */ 5255 MEM32(ecx + 0x8) = edx; /* 0x25052FA6: mov dword ptr [ecx + 8], edx */ 5256 ecx = MEM32(ebp + 0x1C); /* 0x25052FA9: mov ecx, dword ptr [ebp + 0x1c] */ 5257 edx = MEM32(ebp + 0x20); /* 0x25052FAC: mov edx, dword ptr [ebp + 0x20] */ 5258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5260 esp = esp - 0xCu; /* 0x25052FAF: sub esp, 0xc */ 5261 _flag_k = FK_CMP; 5262 eax = esp; /* 0x25052FB2: mov eax, esp */ 5263 MEM32(eax) = ecx; /* 0x25052FB4: mov dword ptr [eax], ecx */ 5264 ecx = MEM32(ebp + 0x24); /* 0x25052FB6: mov ecx, dword ptr [ebp + 0x24] */ 5265 MEM32(eax + 0x4) = edx; /* 0x25052FB9: mov dword ptr [eax + 4], edx */ 5266 MEM32(eax + 0x8) = ecx; /* 0x25052FBC: mov dword ptr [eax + 8], ecx */ 5267 goto L_25053059; /* 0x25052FBF: jmp 0x25053059 */ 5268 L_25052FC4: 5269 /* test HI8(eax), 1 */ /* 0x25052FC4: test ah, 1 */ 5270 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5271 _cf = 0; 5272 _flag_k = FK_NARROW(FK_TEST, 24); 5273 if (TEST_Z(_flag_a, _flag_b)) goto L_2505300C; /* 0x25052FC7: je 0x2505300c */ 5274 L_25052FC9: 5275 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x25052FC9: fld dword ptr [ebp - 0x30] */ 5276 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x25052FCC: fcomp dword ptr [0x25151788] */ 5277 fp_pop(); 5278 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25052FD2: fnstsw ax */ 5279 /* test HI8(eax), 1 */ /* 0x25052FD4: test ah, 1 */ 5280 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5281 _cf = 0; 5282 _flag_k = FK_NARROW(FK_TEST, 24); 5283 if (TEST_Z(_flag_a, _flag_b)) goto L_25053061; /* 0x25052FD7: je 0x25053061 */ 5284 L_25052FDD: 5285 eax = MEM32(ebp + 0x34); /* 0x25052FDD: mov eax, dword ptr [ebp + 0x34] */ 5286 ecx = MEM32(ebp + 0x38); /* 0x25052FE0: mov ecx, dword ptr [ebp + 0x38] */ 5287 PUSH32(esp, esi); /* 0x25052FE3: push esi */ 5288 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5290 esp = esp - 0xCu; /* 0x25052FE4: sub esp, 0xc */ 5291 _flag_k = FK_CMP; 5292 edx = esp; /* 0x25052FE7: mov edx, esp */ 5293 MEM32(edx) = eax; /* 0x25052FE9: mov dword ptr [edx], eax */ 5294 eax = MEM32(ebp + 0x3C); /* 0x25052FEB: mov eax, dword ptr [ebp + 0x3c] */ 5295 MEM32(edx + 0x4) = ecx; /* 0x25052FEE: mov dword ptr [edx + 4], ecx */ 5296 MEM32(edx + 0x8) = eax; /* 0x25052FF1: mov dword ptr [edx + 8], eax */ 5297 edx = MEM32(ebp + 0x28); /* 0x25052FF4: mov edx, dword ptr [ebp + 0x28] */ 5298 eax = MEM32(ebp + 0x2C); /* 0x25052FF7: mov eax, dword ptr [ebp + 0x2c] */ 5299 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5301 esp = esp - 0xCu; /* 0x25052FFA: sub esp, 0xc */ 5302 _flag_k = FK_CMP; 5303 ecx = esp; /* 0x25052FFD: mov ecx, esp */ 5304 MEM32(ecx) = edx; /* 0x25052FFF: mov dword ptr [ecx], edx */ 5305 edx = MEM32(ebp + 0x30); /* 0x25053001: mov edx, dword ptr [ebp + 0x30] */ 5306 MEM32(ecx + 0x4) = eax; /* 0x25053004: mov dword ptr [ecx + 4], eax */ 5307 MEM32(ecx + 0x8) = edx; /* 0x25053007: mov dword ptr [ecx + 8], edx */ 5308 goto L_25053059; /* 0x2505300A: jmp 0x25053059 */ 5309 L_2505300C: 5310 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x2505300C: fld dword ptr [ebp - 0x30] */ 5311 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x2505300F: fcomp dword ptr [0x25151788] */ 5312 fp_pop(); 5313 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053015: fnstsw ax */ 5314 /* test HI8(eax), 1 */ /* 0x25053017: test ah, 1 */ 5315 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5316 _cf = 0; 5317 _flag_k = FK_NARROW(FK_TEST, 24); 5318 if (TEST_Z(_flag_a, _flag_b)) goto L_25053061; /* 0x2505301A: je 0x25053061 */ 5319 L_2505301C: 5320 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2505301C: fld dword ptr [ebp - 0x24] */ 5321 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x2505301F: fcomp dword ptr [0x25151788] */ 5322 fp_pop(); 5323 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053025: fnstsw ax */ 5324 /* test HI8(eax), 1 */ /* 0x25053027: test ah, 1 */ 5325 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5326 _cf = 0; 5327 _flag_k = FK_NARROW(FK_TEST, 24); 5328 if (TEST_Z(_flag_a, _flag_b)) goto L_25053061; /* 0x2505302A: je 0x25053061 */ 5329 L_2505302C: 5330 ecx = MEM32(ebp + 0x1C); /* 0x2505302C: mov ecx, dword ptr [ebp + 0x1c] */ 5331 edx = MEM32(ebp + 0x20); /* 0x2505302F: mov edx, dword ptr [ebp + 0x20] */ 5332 PUSH32(esp, esi); /* 0x25053032: push esi */ 5333 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5335 esp = esp - 0xCu; /* 0x25053033: sub esp, 0xc */ 5336 _flag_k = FK_CMP; 5337 eax = esp; /* 0x25053036: mov eax, esp */ 5338 MEM32(eax) = ecx; /* 0x25053038: mov dword ptr [eax], ecx */ 5339 ecx = MEM32(ebp + 0x24); /* 0x2505303A: mov ecx, dword ptr [ebp + 0x24] */ 5340 MEM32(eax + 0x4) = edx; /* 0x2505303D: mov dword ptr [eax + 4], edx */ 5341 MEM32(eax + 0x8) = ecx; /* 0x25053040: mov dword ptr [eax + 8], ecx */ 5342 eax = MEM32(ebp + 0x34); /* 0x25053043: mov eax, dword ptr [ebp + 0x34] */ 5343 ecx = MEM32(ebp + 0x38); /* 0x25053046: mov ecx, dword ptr [ebp + 0x38] */ 5344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5346 esp = esp - 0xCu; /* 0x25053049: sub esp, 0xc */ 5347 _flag_k = FK_CMP; 5348 edx = esp; /* 0x2505304C: mov edx, esp */ 5349 MEM32(edx) = eax; /* 0x2505304E: mov dword ptr [edx], eax */ 5350 eax = MEM32(ebp + 0x3C); /* 0x25053050: mov eax, dword ptr [ebp + 0x3c] */ 5351 MEM32(edx + 0x4) = ecx; /* 0x25053053: mov dword ptr [edx + 4], ecx */ 5352 MEM32(edx + 0x8) = eax; /* 0x25053056: mov dword ptr [edx + 8], eax */ 5353 L_25053059: 5354 RECOMP_ICALL(0x25055330u); /* 0x25053059: call 0x25055330 */ /* not lifted */ 5355 RECOMP_FLAGS_IN(); 5356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5358 esp = esp + 0x1Cu; /* 0x2505305E: add esp, 0x1c */ 5359 _flag_k = FK_ADD; 5360 L_25053061: 5361 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25053061: fld dword ptr [ebp - 0x24] */ 5362 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x3C))); /* 0x25053064: fcomp dword ptr [ebp - 0x3c] */ 5363 fp_pop(); 5364 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053067: fnstsw ax */ 5365 /* test HI8(eax), 0x40u */ /* 0x25053069: test ah, 0x40 */ 5366 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 5367 _cf = 0; 5368 _flag_k = FK_NARROW(FK_TEST, 24); 5369 if (TEST_Z(_flag_a, _flag_b)) goto L_250530A6; /* 0x2505306C: je 0x250530a6 */ 5370 L_2505306E: 5371 ecx = MEM32(ebp + 0x8); /* 0x2505306E: mov ecx, dword ptr [ebp + 8] */ 5372 edx = MEM32(ebp + 0x44); /* 0x25053071: mov edx, dword ptr [ebp + 0x44] */ 5373 eax = MEM32(ebp + 0x40); /* 0x25053074: mov eax, dword ptr [ebp + 0x40] */ 5374 PUSH32(esp, esi); /* 0x25053077: push esi */ 5375 PUSH32(esp, ecx); /* 0x25053078: push ecx */ 5376 PUSH32(esp, edx); /* 0x25053079: push edx */ 5377 edx = MEM32(ebp + (-0x30)); /* 0x2505307A: mov edx, dword ptr [ebp - 0x30] */ 5378 PUSH32(esp, eax); /* 0x2505307D: push eax */ 5379 eax = MEM32(ebp + (-0x1C)); /* 0x2505307E: mov eax, dword ptr [ebp - 0x1c] */ 5380 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5382 esp = esp - 0xCu; /* 0x25053081: sub esp, 0xc */ 5383 _flag_k = FK_CMP; 5384 ecx = esp; /* 0x25053084: mov ecx, esp */ 5385 MEM32(ecx) = eax; /* 0x25053086: mov dword ptr [ecx], eax */ 5386 eax = MEM32(ebp + (-0x14)); /* 0x25053088: mov eax, dword ptr [ebp - 0x14] */ 5387 MEM32(ecx + 0x4) = edx; /* 0x2505308B: mov dword ptr [ecx + 4], edx */ 5388 edx = MEM32(ebp + (-0x3C)); /* 0x2505308E: mov edx, dword ptr [ebp - 0x3c] */ 5389 MEM32(ecx + 0x8) = eax; /* 0x25053091: mov dword ptr [ecx + 8], eax */ 5390 eax = MEM32(ebp + (-0x4C)); /* 0x25053094: mov eax, dword ptr [ebp - 0x4c] */ 5391 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5393 esp = esp - 0xCu; /* 0x25053097: sub esp, 0xc */ 5394 _flag_k = FK_CMP; 5395 ecx = esp; /* 0x2505309A: mov ecx, esp */ 5396 MEM32(ecx) = eax; /* 0x2505309C: mov dword ptr [ecx], eax */ 5397 eax = MEM32(ebp + (-0x44)); /* 0x2505309E: mov eax, dword ptr [ebp - 0x44] */ 5398 MEM32(ecx + 0x4) = edx; /* 0x250530A1: mov dword ptr [ecx + 4], edx */ 5399 goto L_250530E9; /* 0x250530A4: jmp 0x250530e9 */ 5400 L_250530A6: 5401 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x250530A6: fld dword ptr [ebp - 0x24] */ 5402 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x30))); /* 0x250530A9: fcomp dword ptr [ebp - 0x30] */ 5403 fp_pop(); 5404 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250530AC: fnstsw ax */ 5405 /* test HI8(eax), 0x40u */ /* 0x250530AE: test ah, 0x40 */ 5406 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 5407 _cf = 0; 5408 _flag_k = FK_NARROW(FK_TEST, 24); 5409 if (TEST_Z(_flag_a, _flag_b)) goto L_25053123; /* 0x250530B1: je 0x25053123 */ 5410 L_250530B3: 5411 ecx = MEM32(ebp + 0x8); /* 0x250530B3: mov ecx, dword ptr [ebp + 8] */ 5412 edx = MEM32(ebp + 0x44); /* 0x250530B6: mov edx, dword ptr [ebp + 0x44] */ 5413 eax = MEM32(ebp + 0x40); /* 0x250530B9: mov eax, dword ptr [ebp + 0x40] */ 5414 PUSH32(esp, esi); /* 0x250530BC: push esi */ 5415 PUSH32(esp, ecx); /* 0x250530BD: push ecx */ 5416 PUSH32(esp, edx); /* 0x250530BE: push edx */ 5417 edx = MEM32(ebp + (-0x3C)); /* 0x250530BF: mov edx, dword ptr [ebp - 0x3c] */ 5418 PUSH32(esp, eax); /* 0x250530C2: push eax */ 5419 eax = MEM32(ebp + (-0x4C)); /* 0x250530C3: mov eax, dword ptr [ebp - 0x4c] */ 5420 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5422 esp = esp - 0xCu; /* 0x250530C6: sub esp, 0xc */ 5423 _flag_k = FK_CMP; 5424 ecx = esp; /* 0x250530C9: mov ecx, esp */ 5425 MEM32(ecx) = eax; /* 0x250530CB: mov dword ptr [ecx], eax */ 5426 eax = MEM32(ebp + (-0x44)); /* 0x250530CD: mov eax, dword ptr [ebp - 0x44] */ 5427 MEM32(ecx + 0x4) = edx; /* 0x250530D0: mov dword ptr [ecx + 4], edx */ 5428 edx = MEM32(ebp + (-0x30)); /* 0x250530D3: mov edx, dword ptr [ebp - 0x30] */ 5429 MEM32(ecx + 0x8) = eax; /* 0x250530D6: mov dword ptr [ecx + 8], eax */ 5430 eax = MEM32(ebp + (-0x1C)); /* 0x250530D9: mov eax, dword ptr [ebp - 0x1c] */ 5431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5433 esp = esp - 0xCu; /* 0x250530DC: sub esp, 0xc */ 5434 _flag_k = FK_CMP; 5435 ecx = esp; /* 0x250530DF: mov ecx, esp */ 5436 MEM32(ecx) = eax; /* 0x250530E1: mov dword ptr [ecx], eax */ 5437 eax = MEM32(ebp + (-0x14)); /* 0x250530E3: mov eax, dword ptr [ebp - 0x14] */ 5438 MEM32(ecx + 0x4) = edx; /* 0x250530E6: mov dword ptr [ecx + 4], edx */ 5439 L_250530E9: 5440 edx = MEM32(ebp + (-0x24)); /* 0x250530E9: mov edx, dword ptr [ebp - 0x24] */ 5441 MEM32(ecx + 0x8) = eax; /* 0x250530EC: mov dword ptr [ecx + 8], eax */ 5442 eax = MEM32(ebp + (-0x10)); /* 0x250530EF: mov eax, dword ptr [ebp - 0x10] */ 5443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5445 esp = esp - 0xCu; /* 0x250530F2: sub esp, 0xc */ 5446 _flag_k = FK_CMP; 5447 ecx = esp; /* 0x250530F5: mov ecx, esp */ 5448 MEM32(ecx) = eax; /* 0x250530F7: mov dword ptr [ecx], eax */ 5449 eax = MEM32(ebp + (-0x8)); /* 0x250530F9: mov eax, dword ptr [ebp - 8] */ 5450 MEM32(ecx + 0x4) = edx; /* 0x250530FC: mov dword ptr [ecx + 4], edx */ 5451 edx = MEM32(ebp + 0x10); /* 0x250530FF: mov edx, dword ptr [ebp + 0x10] */ 5452 MEM32(ecx + 0x8) = eax; /* 0x25053102: mov dword ptr [ecx + 8], eax */ 5453 eax = MEM32(ebp + 0x18); /* 0x25053105: mov eax, dword ptr [ebp + 0x18] */ 5454 ecx = MEM32(ebp + 0x14); /* 0x25053108: mov ecx, dword ptr [ebp + 0x14] */ 5455 PUSH32(esp, eax); /* 0x2505310B: push eax */ 5456 eax = MEM32(ebp + 0xC); /* 0x2505310C: mov eax, dword ptr [ebp + 0xc] */ 5457 PUSH32(esp, ecx); /* 0x2505310F: push ecx */ 5458 PUSH32(esp, edx); /* 0x25053110: push edx */ 5459 PUSH32(esp, eax); /* 0x25053111: push eax */ 5460 PUSH32(esp, ebx); /* 0x25053112: push ebx */ 5461 ecx = edi; /* 0x25053113: mov ecx, edi */ 5462 RECOMP_ICALL(0x25053210u); /* 0x25053115: call 0x25053210 */ /* not lifted */ 5463 RECOMP_FLAGS_IN(); 5464 edi = POP32_VAL(esp); /* 0x2505311A: pop edi */ 5465 esi = POP32_VAL(esp); /* 0x2505311B: pop esi */ 5466 ebx = POP32_VAL(esp); /* 0x2505311C: pop ebx */ 5467 esp = ebp; /* 0x2505311D: mov esp, ebp */ 5468 ebp = POP32_VAL(esp); /* 0x2505311F: pop ebp */ 5469 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25053120: ret 0x40 */ 5470 L_25053123: 5471 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x25053123: fld dword ptr [ebp - 0x3c] */ 5472 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x30))); /* 0x25053126: fcomp dword ptr [ebp - 0x30] */ 5473 fp_pop(); 5474 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053129: fnstsw ax */ 5475 /* test HI8(eax), 0x40u */ /* 0x2505312B: test ah, 0x40 */ 5476 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 5477 _cf = 0; 5478 _flag_k = FK_NARROW(FK_TEST, 24); 5479 if (TEST_Z(_flag_a, _flag_b)) goto L_250531A0; /* 0x2505312E: je 0x250531a0 */ 5480 L_25053130: 5481 ecx = MEM32(ebp + 0x8); /* 0x25053130: mov ecx, dword ptr [ebp + 8] */ 5482 edx = MEM32(ebp + 0x44); /* 0x25053133: mov edx, dword ptr [ebp + 0x44] */ 5483 eax = MEM32(ebp + 0x40); /* 0x25053136: mov eax, dword ptr [ebp + 0x40] */ 5484 PUSH32(esp, esi); /* 0x25053139: push esi */ 5485 PUSH32(esp, ecx); /* 0x2505313A: push ecx */ 5486 PUSH32(esp, edx); /* 0x2505313B: push edx */ 5487 edx = MEM32(ebp + (-0x24)); /* 0x2505313C: mov edx, dword ptr [ebp - 0x24] */ 5488 PUSH32(esp, eax); /* 0x2505313F: push eax */ 5489 eax = MEM32(ebp + (-0x10)); /* 0x25053140: mov eax, dword ptr [ebp - 0x10] */ 5490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5492 esp = esp - 0xCu; /* 0x25053143: sub esp, 0xc */ 5493 _flag_k = FK_CMP; 5494 ecx = esp; /* 0x25053146: mov ecx, esp */ 5495 MEM32(ecx) = eax; /* 0x25053148: mov dword ptr [ecx], eax */ 5496 eax = MEM32(ebp + (-0x8)); /* 0x2505314A: mov eax, dword ptr [ebp - 8] */ 5497 MEM32(ecx + 0x4) = edx; /* 0x2505314D: mov dword ptr [ecx + 4], edx */ 5498 edx = MEM32(ebp + (-0x30)); /* 0x25053150: mov edx, dword ptr [ebp - 0x30] */ 5499 MEM32(ecx + 0x8) = eax; /* 0x25053153: mov dword ptr [ecx + 8], eax */ 5500 eax = MEM32(ebp + (-0x1C)); /* 0x25053156: mov eax, dword ptr [ebp - 0x1c] */ 5501 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5503 esp = esp - 0xCu; /* 0x25053159: sub esp, 0xc */ 5504 _flag_k = FK_CMP; 5505 ecx = esp; /* 0x2505315C: mov ecx, esp */ 5506 MEM32(ecx) = eax; /* 0x2505315E: mov dword ptr [ecx], eax */ 5507 eax = MEM32(ebp + (-0x14)); /* 0x25053160: mov eax, dword ptr [ebp - 0x14] */ 5508 MEM32(ecx + 0x4) = edx; /* 0x25053163: mov dword ptr [ecx + 4], edx */ 5509 edx = MEM32(ebp + (-0x3C)); /* 0x25053166: mov edx, dword ptr [ebp - 0x3c] */ 5510 MEM32(ecx + 0x8) = eax; /* 0x25053169: mov dword ptr [ecx + 8], eax */ 5511 eax = MEM32(ebp + (-0x4C)); /* 0x2505316C: mov eax, dword ptr [ebp - 0x4c] */ 5512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5514 esp = esp - 0xCu; /* 0x2505316F: sub esp, 0xc */ 5515 _flag_k = FK_CMP; 5516 ecx = esp; /* 0x25053172: mov ecx, esp */ 5517 MEM32(ecx) = eax; /* 0x25053174: mov dword ptr [ecx], eax */ 5518 eax = MEM32(ebp + (-0x44)); /* 0x25053176: mov eax, dword ptr [ebp - 0x44] */ 5519 MEM32(ecx + 0x4) = edx; /* 0x25053179: mov dword ptr [ecx + 4], edx */ 5520 edx = MEM32(ebp + 0x10); /* 0x2505317C: mov edx, dword ptr [ebp + 0x10] */ 5521 MEM32(ecx + 0x8) = eax; /* 0x2505317F: mov dword ptr [ecx + 8], eax */ 5522 eax = MEM32(ebp + 0x18); /* 0x25053182: mov eax, dword ptr [ebp + 0x18] */ 5523 ecx = MEM32(ebp + 0x14); /* 0x25053185: mov ecx, dword ptr [ebp + 0x14] */ 5524 PUSH32(esp, eax); /* 0x25053188: push eax */ 5525 eax = MEM32(ebp + 0xC); /* 0x25053189: mov eax, dword ptr [ebp + 0xc] */ 5526 PUSH32(esp, ecx); /* 0x2505318C: push ecx */ 5527 PUSH32(esp, edx); /* 0x2505318D: push edx */ 5528 PUSH32(esp, eax); /* 0x2505318E: push eax */ 5529 PUSH32(esp, ebx); /* 0x2505318F: push ebx */ 5530 ecx = edi; /* 0x25053190: mov ecx, edi */ 5531 RECOMP_ICALL(0x25053210u); /* 0x25053192: call 0x25053210 */ /* not lifted */ 5532 RECOMP_FLAGS_IN(); 5533 edi = POP32_VAL(esp); /* 0x25053197: pop edi */ 5534 esi = POP32_VAL(esp); /* 0x25053198: pop esi */ 5535 ebx = POP32_VAL(esp); /* 0x25053199: pop ebx */ 5536 esp = ebp; /* 0x2505319A: mov esp, ebp */ 5537 ebp = POP32_VAL(esp); /* 0x2505319C: pop ebp */ 5538 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x2505319D: ret 0x40 */ 5539 L_250531A0: 5540 ecx = MEM32(ebp + 0x44); /* 0x250531A0: mov ecx, dword ptr [ebp + 0x44] */ 5541 edx = MEM32(ebp + 0x40); /* 0x250531A3: mov edx, dword ptr [ebp + 0x40] */ 5542 PUSH32(esp, ecx); /* 0x250531A6: push ecx */ 5543 ecx = MEM32(ebp + 0x34); /* 0x250531A7: mov ecx, dword ptr [ebp + 0x34] */ 5544 PUSH32(esp, edx); /* 0x250531AA: push edx */ 5545 edx = MEM32(ebp + 0x38); /* 0x250531AB: mov edx, dword ptr [ebp + 0x38] */ 5546 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5548 esp = esp - 0xCu; /* 0x250531AE: sub esp, 0xc */ 5549 _flag_k = FK_CMP; 5550 eax = esp; /* 0x250531B1: mov eax, esp */ 5551 MEM32(eax) = ecx; /* 0x250531B3: mov dword ptr [eax], ecx */ 5552 ecx = MEM32(ebp + 0x3C); /* 0x250531B5: mov ecx, dword ptr [ebp + 0x3c] */ 5553 MEM32(eax + 0x4) = edx; /* 0x250531B8: mov dword ptr [eax + 4], edx */ 5554 MEM32(eax + 0x8) = ecx; /* 0x250531BB: mov dword ptr [eax + 8], ecx */ 5555 eax = MEM32(ebp + 0x28); /* 0x250531BE: mov eax, dword ptr [ebp + 0x28] */ 5556 ecx = MEM32(ebp + 0x2C); /* 0x250531C1: mov ecx, dword ptr [ebp + 0x2c] */ 5557 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5559 esp = esp - 0xCu; /* 0x250531C4: sub esp, 0xc */ 5560 _flag_k = FK_CMP; 5561 edx = esp; /* 0x250531C7: mov edx, esp */ 5562 MEM32(edx) = eax; /* 0x250531C9: mov dword ptr [edx], eax */ 5563 eax = MEM32(ebp + 0x30); /* 0x250531CB: mov eax, dword ptr [ebp + 0x30] */ 5564 MEM32(edx + 0x4) = ecx; /* 0x250531CE: mov dword ptr [edx + 4], ecx */ 5565 MEM32(edx + 0x8) = eax; /* 0x250531D1: mov dword ptr [edx + 8], eax */ 5566 edx = MEM32(ebp + 0x1C); /* 0x250531D4: mov edx, dword ptr [ebp + 0x1c] */ 5567 eax = MEM32(ebp + 0x20); /* 0x250531D7: mov eax, dword ptr [ebp + 0x20] */ 5568 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5570 esp = esp - 0xCu; /* 0x250531DA: sub esp, 0xc */ 5571 _flag_k = FK_CMP; 5572 ecx = esp; /* 0x250531DD: mov ecx, esp */ 5573 MEM32(ecx) = edx; /* 0x250531DF: mov dword ptr [ecx], edx */ 5574 edx = MEM32(ebp + 0x24); /* 0x250531E1: mov edx, dword ptr [ebp + 0x24] */ 5575 MEM32(ecx + 0x4) = eax; /* 0x250531E4: mov dword ptr [ecx + 4], eax */ 5576 eax = MEM32(ebp + 0x18); /* 0x250531E7: mov eax, dword ptr [ebp + 0x18] */ 5577 PUSH32(esp, eax); /* 0x250531EA: push eax */ 5578 eax = MEM32(ebp + 0xC); /* 0x250531EB: mov eax, dword ptr [ebp + 0xc] */ 5579 MEM32(ecx + 0x8) = edx; /* 0x250531EE: mov dword ptr [ecx + 8], edx */ 5580 ecx = MEM32(ebp + 0x14); /* 0x250531F1: mov ecx, dword ptr [ebp + 0x14] */ 5581 edx = MEM32(ebp + 0x10); /* 0x250531F4: mov edx, dword ptr [ebp + 0x10] */ 5582 PUSH32(esp, ecx); /* 0x250531F7: push ecx */ 5583 PUSH32(esp, edx); /* 0x250531F8: push edx */ 5584 PUSH32(esp, eax); /* 0x250531F9: push eax */ 5585 PUSH32(esp, ebx); /* 0x250531FA: push ebx */ 5586 ecx = edi; /* 0x250531FB: mov ecx, edi */ 5587 RECOMP_ICALL(0x25053A90u); /* 0x250531FD: call 0x25053a90 */ /* not lifted */ 5588 RECOMP_FLAGS_IN(); 5589 L_25053202: 5590 edi = POP32_VAL(esp); /* 0x25053202: pop edi */ 5591 esi = POP32_VAL(esp); /* 0x25053203: pop esi */ 5592 ebx = POP32_VAL(esp); /* 0x25053204: pop ebx */ 5593 esp = ebp; /* 0x25053205: mov esp, ebp */ 5594 ebp = POP32_VAL(esp); /* 0x25053207: pop ebp */ 5595 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25053208: ret 0x40 */ 5596 RECOMP_REGS_OUT(); 5597 } 5598 5599 void sub_25053059(void) { 5600 int _fpu_cmp = 0; 5601 uint32_t _cf = 0; 5602 int _df = 1; 5603 uint32_t _flag_k = FK_NONE; 5604 uint32_t _flag_a = 0, _flag_b = 0; 5605 uint32_t _itail_tgt = 0; 5606 RECOMP_REGS_LOCALS 5607 RECOMP_ENTER(0x25053059u); 5608 5609 L_25053059: 5610 RECOMP_ICALL(0x25055330u); /* 0x25053059: call 0x25055330 */ /* not lifted */ 5611 RECOMP_FLAGS_IN(); 5612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5614 esp = esp + 0x1Cu; /* 0x2505305E: add esp, 0x1c */ 5615 _flag_k = FK_ADD; 5616 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25053061: fld dword ptr [ebp - 0x24] */ 5617 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x3C))); /* 0x25053064: fcomp dword ptr [ebp - 0x3c] */ 5618 fp_pop(); 5619 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053067: fnstsw ax */ 5620 /* test HI8(eax), 0x40u */ /* 0x25053069: test ah, 0x40 */ 5621 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 5622 _cf = 0; 5623 _flag_k = FK_NARROW(FK_TEST, 24); 5624 if (TEST_Z(_flag_a, _flag_b)) goto L_250530A6; /* 0x2505306C: je 0x250530a6 */ 5625 L_2505306E: 5626 ecx = MEM32(ebp + 0x8); /* 0x2505306E: mov ecx, dword ptr [ebp + 8] */ 5627 edx = MEM32(ebp + 0x44); /* 0x25053071: mov edx, dword ptr [ebp + 0x44] */ 5628 eax = MEM32(ebp + 0x40); /* 0x25053074: mov eax, dword ptr [ebp + 0x40] */ 5629 PUSH32(esp, esi); /* 0x25053077: push esi */ 5630 PUSH32(esp, ecx); /* 0x25053078: push ecx */ 5631 PUSH32(esp, edx); /* 0x25053079: push edx */ 5632 edx = MEM32(ebp + (-0x30)); /* 0x2505307A: mov edx, dword ptr [ebp - 0x30] */ 5633 PUSH32(esp, eax); /* 0x2505307D: push eax */ 5634 eax = MEM32(ebp + (-0x1C)); /* 0x2505307E: mov eax, dword ptr [ebp - 0x1c] */ 5635 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5637 esp = esp - 0xCu; /* 0x25053081: sub esp, 0xc */ 5638 _flag_k = FK_CMP; 5639 ecx = esp; /* 0x25053084: mov ecx, esp */ 5640 MEM32(ecx) = eax; /* 0x25053086: mov dword ptr [ecx], eax */ 5641 eax = MEM32(ebp + (-0x14)); /* 0x25053088: mov eax, dword ptr [ebp - 0x14] */ 5642 MEM32(ecx + 0x4) = edx; /* 0x2505308B: mov dword ptr [ecx + 4], edx */ 5643 edx = MEM32(ebp + (-0x3C)); /* 0x2505308E: mov edx, dword ptr [ebp - 0x3c] */ 5644 MEM32(ecx + 0x8) = eax; /* 0x25053091: mov dword ptr [ecx + 8], eax */ 5645 eax = MEM32(ebp + (-0x4C)); /* 0x25053094: mov eax, dword ptr [ebp - 0x4c] */ 5646 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5648 esp = esp - 0xCu; /* 0x25053097: sub esp, 0xc */ 5649 _flag_k = FK_CMP; 5650 ecx = esp; /* 0x2505309A: mov ecx, esp */ 5651 MEM32(ecx) = eax; /* 0x2505309C: mov dword ptr [ecx], eax */ 5652 eax = MEM32(ebp + (-0x44)); /* 0x2505309E: mov eax, dword ptr [ebp - 0x44] */ 5653 MEM32(ecx + 0x4) = edx; /* 0x250530A1: mov dword ptr [ecx + 4], edx */ 5654 goto L_250530E9; /* 0x250530A4: jmp 0x250530e9 */ 5655 L_250530A6: 5656 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x250530A6: fld dword ptr [ebp - 0x24] */ 5657 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x30))); /* 0x250530A9: fcomp dword ptr [ebp - 0x30] */ 5658 fp_pop(); 5659 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250530AC: fnstsw ax */ 5660 /* test HI8(eax), 0x40u */ /* 0x250530AE: test ah, 0x40 */ 5661 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 5662 _cf = 0; 5663 _flag_k = FK_NARROW(FK_TEST, 24); 5664 if (TEST_Z(_flag_a, _flag_b)) goto L_25053123; /* 0x250530B1: je 0x25053123 */ 5665 L_250530B3: 5666 ecx = MEM32(ebp + 0x8); /* 0x250530B3: mov ecx, dword ptr [ebp + 8] */ 5667 edx = MEM32(ebp + 0x44); /* 0x250530B6: mov edx, dword ptr [ebp + 0x44] */ 5668 eax = MEM32(ebp + 0x40); /* 0x250530B9: mov eax, dword ptr [ebp + 0x40] */ 5669 PUSH32(esp, esi); /* 0x250530BC: push esi */ 5670 PUSH32(esp, ecx); /* 0x250530BD: push ecx */ 5671 PUSH32(esp, edx); /* 0x250530BE: push edx */ 5672 edx = MEM32(ebp + (-0x3C)); /* 0x250530BF: mov edx, dword ptr [ebp - 0x3c] */ 5673 PUSH32(esp, eax); /* 0x250530C2: push eax */ 5674 eax = MEM32(ebp + (-0x4C)); /* 0x250530C3: mov eax, dword ptr [ebp - 0x4c] */ 5675 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5677 esp = esp - 0xCu; /* 0x250530C6: sub esp, 0xc */ 5678 _flag_k = FK_CMP; 5679 ecx = esp; /* 0x250530C9: mov ecx, esp */ 5680 MEM32(ecx) = eax; /* 0x250530CB: mov dword ptr [ecx], eax */ 5681 eax = MEM32(ebp + (-0x44)); /* 0x250530CD: mov eax, dword ptr [ebp - 0x44] */ 5682 MEM32(ecx + 0x4) = edx; /* 0x250530D0: mov dword ptr [ecx + 4], edx */ 5683 edx = MEM32(ebp + (-0x30)); /* 0x250530D3: mov edx, dword ptr [ebp - 0x30] */ 5684 MEM32(ecx + 0x8) = eax; /* 0x250530D6: mov dword ptr [ecx + 8], eax */ 5685 eax = MEM32(ebp + (-0x1C)); /* 0x250530D9: mov eax, dword ptr [ebp - 0x1c] */ 5686 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5688 esp = esp - 0xCu; /* 0x250530DC: sub esp, 0xc */ 5689 _flag_k = FK_CMP; 5690 ecx = esp; /* 0x250530DF: mov ecx, esp */ 5691 MEM32(ecx) = eax; /* 0x250530E1: mov dword ptr [ecx], eax */ 5692 eax = MEM32(ebp + (-0x14)); /* 0x250530E3: mov eax, dword ptr [ebp - 0x14] */ 5693 MEM32(ecx + 0x4) = edx; /* 0x250530E6: mov dword ptr [ecx + 4], edx */ 5694 L_250530E9: 5695 edx = MEM32(ebp + (-0x24)); /* 0x250530E9: mov edx, dword ptr [ebp - 0x24] */ 5696 MEM32(ecx + 0x8) = eax; /* 0x250530EC: mov dword ptr [ecx + 8], eax */ 5697 eax = MEM32(ebp + (-0x10)); /* 0x250530EF: mov eax, dword ptr [ebp - 0x10] */ 5698 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5700 esp = esp - 0xCu; /* 0x250530F2: sub esp, 0xc */ 5701 _flag_k = FK_CMP; 5702 ecx = esp; /* 0x250530F5: mov ecx, esp */ 5703 MEM32(ecx) = eax; /* 0x250530F7: mov dword ptr [ecx], eax */ 5704 eax = MEM32(ebp + (-0x8)); /* 0x250530F9: mov eax, dword ptr [ebp - 8] */ 5705 MEM32(ecx + 0x4) = edx; /* 0x250530FC: mov dword ptr [ecx + 4], edx */ 5706 edx = MEM32(ebp + 0x10); /* 0x250530FF: mov edx, dword ptr [ebp + 0x10] */ 5707 MEM32(ecx + 0x8) = eax; /* 0x25053102: mov dword ptr [ecx + 8], eax */ 5708 eax = MEM32(ebp + 0x18); /* 0x25053105: mov eax, dword ptr [ebp + 0x18] */ 5709 ecx = MEM32(ebp + 0x14); /* 0x25053108: mov ecx, dword ptr [ebp + 0x14] */ 5710 PUSH32(esp, eax); /* 0x2505310B: push eax */ 5711 eax = MEM32(ebp + 0xC); /* 0x2505310C: mov eax, dword ptr [ebp + 0xc] */ 5712 PUSH32(esp, ecx); /* 0x2505310F: push ecx */ 5713 PUSH32(esp, edx); /* 0x25053110: push edx */ 5714 PUSH32(esp, eax); /* 0x25053111: push eax */ 5715 PUSH32(esp, ebx); /* 0x25053112: push ebx */ 5716 ecx = edi; /* 0x25053113: mov ecx, edi */ 5717 RECOMP_ICALL(0x25053210u); /* 0x25053115: call 0x25053210 */ /* not lifted */ 5718 RECOMP_FLAGS_IN(); 5719 edi = POP32_VAL(esp); /* 0x2505311A: pop edi */ 5720 esi = POP32_VAL(esp); /* 0x2505311B: pop esi */ 5721 ebx = POP32_VAL(esp); /* 0x2505311C: pop ebx */ 5722 esp = ebp; /* 0x2505311D: mov esp, ebp */ 5723 ebp = POP32_VAL(esp); /* 0x2505311F: pop ebp */ 5724 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25053120: ret 0x40 */ 5725 L_25053123: 5726 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x25053123: fld dword ptr [ebp - 0x3c] */ 5727 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x30))); /* 0x25053126: fcomp dword ptr [ebp - 0x30] */ 5728 fp_pop(); 5729 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053129: fnstsw ax */ 5730 /* test HI8(eax), 0x40u */ /* 0x2505312B: test ah, 0x40 */ 5731 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 5732 _cf = 0; 5733 _flag_k = FK_NARROW(FK_TEST, 24); 5734 if (TEST_Z(_flag_a, _flag_b)) goto L_250531A0; /* 0x2505312E: je 0x250531a0 */ 5735 L_25053130: 5736 ecx = MEM32(ebp + 0x8); /* 0x25053130: mov ecx, dword ptr [ebp + 8] */ 5737 edx = MEM32(ebp + 0x44); /* 0x25053133: mov edx, dword ptr [ebp + 0x44] */ 5738 eax = MEM32(ebp + 0x40); /* 0x25053136: mov eax, dword ptr [ebp + 0x40] */ 5739 PUSH32(esp, esi); /* 0x25053139: push esi */ 5740 PUSH32(esp, ecx); /* 0x2505313A: push ecx */ 5741 PUSH32(esp, edx); /* 0x2505313B: push edx */ 5742 edx = MEM32(ebp + (-0x24)); /* 0x2505313C: mov edx, dword ptr [ebp - 0x24] */ 5743 PUSH32(esp, eax); /* 0x2505313F: push eax */ 5744 eax = MEM32(ebp + (-0x10)); /* 0x25053140: mov eax, dword ptr [ebp - 0x10] */ 5745 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5747 esp = esp - 0xCu; /* 0x25053143: sub esp, 0xc */ 5748 _flag_k = FK_CMP; 5749 ecx = esp; /* 0x25053146: mov ecx, esp */ 5750 MEM32(ecx) = eax; /* 0x25053148: mov dword ptr [ecx], eax */ 5751 eax = MEM32(ebp + (-0x8)); /* 0x2505314A: mov eax, dword ptr [ebp - 8] */ 5752 MEM32(ecx + 0x4) = edx; /* 0x2505314D: mov dword ptr [ecx + 4], edx */ 5753 edx = MEM32(ebp + (-0x30)); /* 0x25053150: mov edx, dword ptr [ebp - 0x30] */ 5754 MEM32(ecx + 0x8) = eax; /* 0x25053153: mov dword ptr [ecx + 8], eax */ 5755 eax = MEM32(ebp + (-0x1C)); /* 0x25053156: mov eax, dword ptr [ebp - 0x1c] */ 5756 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5758 esp = esp - 0xCu; /* 0x25053159: sub esp, 0xc */ 5759 _flag_k = FK_CMP; 5760 ecx = esp; /* 0x2505315C: mov ecx, esp */ 5761 MEM32(ecx) = eax; /* 0x2505315E: mov dword ptr [ecx], eax */ 5762 eax = MEM32(ebp + (-0x14)); /* 0x25053160: mov eax, dword ptr [ebp - 0x14] */ 5763 MEM32(ecx + 0x4) = edx; /* 0x25053163: mov dword ptr [ecx + 4], edx */ 5764 edx = MEM32(ebp + (-0x3C)); /* 0x25053166: mov edx, dword ptr [ebp - 0x3c] */ 5765 MEM32(ecx + 0x8) = eax; /* 0x25053169: mov dword ptr [ecx + 8], eax */ 5766 eax = MEM32(ebp + (-0x4C)); /* 0x2505316C: mov eax, dword ptr [ebp - 0x4c] */ 5767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5769 esp = esp - 0xCu; /* 0x2505316F: sub esp, 0xc */ 5770 _flag_k = FK_CMP; 5771 ecx = esp; /* 0x25053172: mov ecx, esp */ 5772 MEM32(ecx) = eax; /* 0x25053174: mov dword ptr [ecx], eax */ 5773 eax = MEM32(ebp + (-0x44)); /* 0x25053176: mov eax, dword ptr [ebp - 0x44] */ 5774 MEM32(ecx + 0x4) = edx; /* 0x25053179: mov dword ptr [ecx + 4], edx */ 5775 edx = MEM32(ebp + 0x10); /* 0x2505317C: mov edx, dword ptr [ebp + 0x10] */ 5776 MEM32(ecx + 0x8) = eax; /* 0x2505317F: mov dword ptr [ecx + 8], eax */ 5777 eax = MEM32(ebp + 0x18); /* 0x25053182: mov eax, dword ptr [ebp + 0x18] */ 5778 ecx = MEM32(ebp + 0x14); /* 0x25053185: mov ecx, dword ptr [ebp + 0x14] */ 5779 PUSH32(esp, eax); /* 0x25053188: push eax */ 5780 eax = MEM32(ebp + 0xC); /* 0x25053189: mov eax, dword ptr [ebp + 0xc] */ 5781 PUSH32(esp, ecx); /* 0x2505318C: push ecx */ 5782 PUSH32(esp, edx); /* 0x2505318D: push edx */ 5783 PUSH32(esp, eax); /* 0x2505318E: push eax */ 5784 PUSH32(esp, ebx); /* 0x2505318F: push ebx */ 5785 ecx = edi; /* 0x25053190: mov ecx, edi */ 5786 RECOMP_ICALL(0x25053210u); /* 0x25053192: call 0x25053210 */ /* not lifted */ 5787 RECOMP_FLAGS_IN(); 5788 edi = POP32_VAL(esp); /* 0x25053197: pop edi */ 5789 esi = POP32_VAL(esp); /* 0x25053198: pop esi */ 5790 ebx = POP32_VAL(esp); /* 0x25053199: pop ebx */ 5791 esp = ebp; /* 0x2505319A: mov esp, ebp */ 5792 ebp = POP32_VAL(esp); /* 0x2505319C: pop ebp */ 5793 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x2505319D: ret 0x40 */ 5794 L_250531A0: 5795 ecx = MEM32(ebp + 0x44); /* 0x250531A0: mov ecx, dword ptr [ebp + 0x44] */ 5796 edx = MEM32(ebp + 0x40); /* 0x250531A3: mov edx, dword ptr [ebp + 0x40] */ 5797 PUSH32(esp, ecx); /* 0x250531A6: push ecx */ 5798 ecx = MEM32(ebp + 0x34); /* 0x250531A7: mov ecx, dword ptr [ebp + 0x34] */ 5799 PUSH32(esp, edx); /* 0x250531AA: push edx */ 5800 edx = MEM32(ebp + 0x38); /* 0x250531AB: mov edx, dword ptr [ebp + 0x38] */ 5801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5803 esp = esp - 0xCu; /* 0x250531AE: sub esp, 0xc */ 5804 _flag_k = FK_CMP; 5805 eax = esp; /* 0x250531B1: mov eax, esp */ 5806 MEM32(eax) = ecx; /* 0x250531B3: mov dword ptr [eax], ecx */ 5807 ecx = MEM32(ebp + 0x3C); /* 0x250531B5: mov ecx, dword ptr [ebp + 0x3c] */ 5808 MEM32(eax + 0x4) = edx; /* 0x250531B8: mov dword ptr [eax + 4], edx */ 5809 MEM32(eax + 0x8) = ecx; /* 0x250531BB: mov dword ptr [eax + 8], ecx */ 5810 eax = MEM32(ebp + 0x28); /* 0x250531BE: mov eax, dword ptr [ebp + 0x28] */ 5811 ecx = MEM32(ebp + 0x2C); /* 0x250531C1: mov ecx, dword ptr [ebp + 0x2c] */ 5812 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5814 esp = esp - 0xCu; /* 0x250531C4: sub esp, 0xc */ 5815 _flag_k = FK_CMP; 5816 edx = esp; /* 0x250531C7: mov edx, esp */ 5817 MEM32(edx) = eax; /* 0x250531C9: mov dword ptr [edx], eax */ 5818 eax = MEM32(ebp + 0x30); /* 0x250531CB: mov eax, dword ptr [ebp + 0x30] */ 5819 MEM32(edx + 0x4) = ecx; /* 0x250531CE: mov dword ptr [edx + 4], ecx */ 5820 MEM32(edx + 0x8) = eax; /* 0x250531D1: mov dword ptr [edx + 8], eax */ 5821 edx = MEM32(ebp + 0x1C); /* 0x250531D4: mov edx, dword ptr [ebp + 0x1c] */ 5822 eax = MEM32(ebp + 0x20); /* 0x250531D7: mov eax, dword ptr [ebp + 0x20] */ 5823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5825 esp = esp - 0xCu; /* 0x250531DA: sub esp, 0xc */ 5826 _flag_k = FK_CMP; 5827 ecx = esp; /* 0x250531DD: mov ecx, esp */ 5828 MEM32(ecx) = edx; /* 0x250531DF: mov dword ptr [ecx], edx */ 5829 edx = MEM32(ebp + 0x24); /* 0x250531E1: mov edx, dword ptr [ebp + 0x24] */ 5830 MEM32(ecx + 0x4) = eax; /* 0x250531E4: mov dword ptr [ecx + 4], eax */ 5831 eax = MEM32(ebp + 0x18); /* 0x250531E7: mov eax, dword ptr [ebp + 0x18] */ 5832 PUSH32(esp, eax); /* 0x250531EA: push eax */ 5833 eax = MEM32(ebp + 0xC); /* 0x250531EB: mov eax, dword ptr [ebp + 0xc] */ 5834 MEM32(ecx + 0x8) = edx; /* 0x250531EE: mov dword ptr [ecx + 8], edx */ 5835 ecx = MEM32(ebp + 0x14); /* 0x250531F1: mov ecx, dword ptr [ebp + 0x14] */ 5836 edx = MEM32(ebp + 0x10); /* 0x250531F4: mov edx, dword ptr [ebp + 0x10] */ 5837 PUSH32(esp, ecx); /* 0x250531F7: push ecx */ 5838 PUSH32(esp, edx); /* 0x250531F8: push edx */ 5839 PUSH32(esp, eax); /* 0x250531F9: push eax */ 5840 PUSH32(esp, ebx); /* 0x250531FA: push ebx */ 5841 ecx = edi; /* 0x250531FB: mov ecx, edi */ 5842 RECOMP_ICALL(0x25053A90u); /* 0x250531FD: call 0x25053a90 */ /* not lifted */ 5843 RECOMP_FLAGS_IN(); 5844 edi = POP32_VAL(esp); /* 0x25053202: pop edi */ 5845 esi = POP32_VAL(esp); /* 0x25053203: pop esi */ 5846 ebx = POP32_VAL(esp); /* 0x25053204: pop ebx */ 5847 esp = ebp; /* 0x25053205: mov esp, ebp */ 5848 ebp = POP32_VAL(esp); /* 0x25053207: pop ebp */ 5849 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25053208: ret 0x40 */ 5850 RECOMP_REGS_OUT(); 5851 } 5852 5853 void sub_250530E9(void) { 5854 int _fpu_cmp = 0; 5855 uint32_t _cf = 0; 5856 int _df = 1; 5857 uint32_t _flag_k = FK_NONE; 5858 uint32_t _flag_a = 0, _flag_b = 0; 5859 uint32_t _itail_tgt = 0; 5860 RECOMP_REGS_LOCALS 5861 RECOMP_ENTER(0x250530E9u); 5862 5863 L_250530E9: 5864 edx = MEM32(ebp + (-0x24)); /* 0x250530E9: mov edx, dword ptr [ebp - 0x24] */ 5865 MEM32(ecx + 0x8) = eax; /* 0x250530EC: mov dword ptr [ecx + 8], eax */ 5866 eax = MEM32(ebp + (-0x10)); /* 0x250530EF: mov eax, dword ptr [ebp - 0x10] */ 5867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5869 esp = esp - 0xCu; /* 0x250530F2: sub esp, 0xc */ 5870 _flag_k = FK_CMP; 5871 ecx = esp; /* 0x250530F5: mov ecx, esp */ 5872 MEM32(ecx) = eax; /* 0x250530F7: mov dword ptr [ecx], eax */ 5873 eax = MEM32(ebp + (-0x8)); /* 0x250530F9: mov eax, dword ptr [ebp - 8] */ 5874 MEM32(ecx + 0x4) = edx; /* 0x250530FC: mov dword ptr [ecx + 4], edx */ 5875 edx = MEM32(ebp + 0x10); /* 0x250530FF: mov edx, dword ptr [ebp + 0x10] */ 5876 MEM32(ecx + 0x8) = eax; /* 0x25053102: mov dword ptr [ecx + 8], eax */ 5877 eax = MEM32(ebp + 0x18); /* 0x25053105: mov eax, dword ptr [ebp + 0x18] */ 5878 ecx = MEM32(ebp + 0x14); /* 0x25053108: mov ecx, dword ptr [ebp + 0x14] */ 5879 PUSH32(esp, eax); /* 0x2505310B: push eax */ 5880 eax = MEM32(ebp + 0xC); /* 0x2505310C: mov eax, dword ptr [ebp + 0xc] */ 5881 PUSH32(esp, ecx); /* 0x2505310F: push ecx */ 5882 PUSH32(esp, edx); /* 0x25053110: push edx */ 5883 PUSH32(esp, eax); /* 0x25053111: push eax */ 5884 PUSH32(esp, ebx); /* 0x25053112: push ebx */ 5885 ecx = edi; /* 0x25053113: mov ecx, edi */ 5886 RECOMP_ICALL(0x25053210u); /* 0x25053115: call 0x25053210 */ /* not lifted */ 5887 RECOMP_FLAGS_IN(); 5888 edi = POP32_VAL(esp); /* 0x2505311A: pop edi */ 5889 esi = POP32_VAL(esp); /* 0x2505311B: pop esi */ 5890 ebx = POP32_VAL(esp); /* 0x2505311C: pop ebx */ 5891 esp = ebp; /* 0x2505311D: mov esp, ebp */ 5892 ebp = POP32_VAL(esp); /* 0x2505311F: pop ebp */ 5893 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25053120: ret 0x40 */ 5894 RECOMP_REGS_OUT(); 5895 } 5896 5897 void sub_25053210(void) { 5898 int _fpu_cmp = 0; 5899 uint32_t _cf = 0; 5900 int _df = 1; 5901 uint32_t _flag_k = FK_NONE; 5902 uint32_t _flag_a = 0, _flag_b = 0; 5903 uint32_t _itail_tgt = 0; 5904 RECOMP_REGS_LOCALS 5905 RECOMP_ENTER(0x25053210u); 5906 5907 L_25053210: 5908 PUSH32(esp, ebp); /* 0x25053210: push ebp */ 5909 ebp = esp; /* 0x25053211: mov ebp, esp */ 5910 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x9Cu); 5911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5912 esp = esp - 0x9Cu; /* 0x25053213: sub esp, 0x9c */ 5913 _flag_k = FK_CMP; 5914 fp_push(*(float*)&MEM32(ebp + 0x38)); /* 0x25053219: fld dword ptr [ebp + 0x38] */ 5915 PUSH32(esp, ebx); /* 0x2505321C: push ebx */ 5916 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25151788)); /* 0x2505321D: fcomp dword ptr [0x25151788] */ 5917 fp_pop(); 5918 PUSH32(esp, esi); /* 0x25053223: push esi */ 5919 PUSH32(esp, edi); /* 0x25053224: push edi */ 5920 esi = ecx; /* 0x25053225: mov esi, ecx */ 5921 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053227: fnstsw ax */ 5922 /* test HI8(eax), 0x41u */ /* 0x25053229: test ah, 0x41 */ 5923 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 5924 _cf = 0; 5925 _flag_k = FK_NARROW(FK_TEST, 24); 5926 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505365C; /* 0x2505322C: jne 0x2505365c */ 5927 L_25053232: 5928 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25053232: fld dword ptr [ebp + 0x1c] */ 5929 eax = MEM32(ebp + 0x1C); /* 0x25053235: mov eax, dword ptr [ebp + 0x1c] */ 5930 _st[0] -= (double)*(float*)ADDR(ebp + 0x34); /* 0x25053238: fsub dword ptr [ebp + 0x34] */ 5931 ecx = MEM32(ebp + 0x20); /* 0x2505323B: mov ecx, dword ptr [ebp + 0x20] */ 5932 edx = MEM32(ebp + 0x24); /* 0x2505323E: mov edx, dword ptr [ebp + 0x24] */ 5933 MEM32(ebp + (-0xC)) = eax; /* 0x25053241: mov dword ptr [ebp - 0xc], eax */ 5934 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x25053244: fstp dword ptr [ebp - 0xc] */ 5935 eax = MEM32(ebp + (-0xC)); /* 0x25053247: mov eax, dword ptr [ebp - 0xc] */ 5936 MEM32(ebp + (-0x8)) = ecx; /* 0x2505324A: mov dword ptr [ebp - 8], ecx */ 5937 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2505324D: fld dword ptr [ebp - 8] */ 5938 _st[0] -= (double)*(float*)ADDR(ebp + 0x38); /* 0x25053250: fsub dword ptr [ebp + 0x38] */ 5939 MEM32(ebp + (-0x4)) = edx; /* 0x25053253: mov dword ptr [ebp - 4], edx */ 5940 MEM32(ebp + (-0x24)) = eax; /* 0x25053256: mov dword ptr [ebp - 0x24], eax */ 5941 eax = MEM32(ebp + 0x28); /* 0x25053259: mov eax, dword ptr [ebp + 0x28] */ 5942 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2505325C: fstp dword ptr [ebp - 8] */ 5943 ecx = MEM32(ebp + (-0x8)); /* 0x2505325F: mov ecx, dword ptr [ebp - 8] */ 5944 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x25053262: fld dword ptr [ebp - 4] */ 5945 MEM32(ebp + (-0x20)) = ecx; /* 0x25053265: mov dword ptr [ebp - 0x20], ecx */ 5946 _st[0] -= (double)*(float*)ADDR(ebp + 0x3C); /* 0x25053268: fsub dword ptr [ebp + 0x3c] */ 5947 ecx = MEM32(ebp + 0x2C); /* 0x2505326B: mov ecx, dword ptr [ebp + 0x2c] */ 5948 MEM32(ebp + 0x1C) = eax; /* 0x2505326E: mov dword ptr [ebp + 0x1c], eax */ 5949 MEM32(ebp + 0x20) = ecx; /* 0x25053271: mov dword ptr [ebp + 0x20], ecx */ 5950 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x25053274: fstp dword ptr [ebp - 4] */ 5951 edx = MEM32(ebp + (-0x4)); /* 0x25053277: mov edx, dword ptr [ebp - 4] */ 5952 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2505327A: fld dword ptr [ebp - 0xc] */ 5953 MEM32(ebp + (-0x1C)) = edx; /* 0x2505327D: mov dword ptr [ebp - 0x1c], edx */ 5954 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x25053280: fmul dword ptr [0x25153ca8] */ 5955 edx = MEM32(ebp + 0x30); /* 0x25053286: mov edx, dword ptr [ebp + 0x30] */ 5956 edi = MEM32(ebp + 0x44); /* 0x25053289: mov edi, dword ptr [ebp + 0x44] */ 5957 ebx = MEM32(ebp + 0x18); /* 0x2505328C: mov ebx, dword ptr [ebp + 0x18] */ 5958 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2505328F: fstp dword ptr [ebp - 0x24] */ 5959 MEM32(ebp + 0x24) = edx; /* 0x25053292: mov dword ptr [ebp + 0x24], edx */ 5960 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x25053295: fld dword ptr [ebp - 0x20] */ 5961 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x25053298: fmul dword ptr [0x25153ca8] */ 5962 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2505329E: fstp dword ptr [ebp - 0x20] */ 5963 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x250532A1: fld dword ptr [ebp - 0x1c] */ 5964 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x250532A4: fmul dword ptr [0x25153ca8] */ 5965 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x250532AA: fstp dword ptr [ebp - 0x1c] */ 5966 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x250532AD: fld dword ptr [ebp + 0x28] */ 5967 _st[0] -= (double)*(float*)ADDR(ebp + 0x34); /* 0x250532B0: fsub dword ptr [ebp + 0x34] */ 5968 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x250532B3: fstp dword ptr [ebp + 0x1c] */ 5969 eax = MEM32(ebp + 0x1C); /* 0x250532B6: mov eax, dword ptr [ebp + 0x1c] */ 5970 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x250532B9: fld dword ptr [ebp + 0x20] */ 5971 MEM32(ebp + (-0xC)) = eax; /* 0x250532BC: mov dword ptr [ebp - 0xc], eax */ 5972 _st[0] -= (double)*(float*)ADDR(ebp + 0x38); /* 0x250532BF: fsub dword ptr [ebp + 0x38] */ 5973 eax = MEM32(ebp + 0x34); /* 0x250532C2: mov eax, dword ptr [ebp + 0x34] */ 5974 MEM32(ebp + 0x28) = eax; /* 0x250532C5: mov dword ptr [ebp + 0x28], eax */ 5975 MEM32(ebp + (-0x18)) = eax; /* 0x250532C8: mov dword ptr [ebp - 0x18], eax */ 5976 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x250532CB: fstp dword ptr [ebp + 0x20] */ 5977 ecx = MEM32(ebp + 0x20); /* 0x250532CE: mov ecx, dword ptr [ebp + 0x20] */ 5978 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250532D1: fld dword ptr [ebp + 0x24] */ 5979 MEM32(ebp + (-0x8)) = ecx; /* 0x250532D4: mov dword ptr [ebp - 8], ecx */ 5980 _st[0] -= (double)*(float*)ADDR(ebp + 0x3C); /* 0x250532D7: fsub dword ptr [ebp + 0x3c] */ 5981 ecx = MEM32(ebp + 0x38); /* 0x250532DA: mov ecx, dword ptr [ebp + 0x38] */ 5982 MEM32(ebp + 0x20) = ecx; /* 0x250532DD: mov dword ptr [ebp + 0x20], ecx */ 5983 MEM32(ebp + 0x2C) = ecx; /* 0x250532E0: mov dword ptr [ebp + 0x2c], ecx */ 5984 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x250532E3: fstp dword ptr [ebp + 0x24] */ 5985 edx = MEM32(ebp + 0x24); /* 0x250532E6: mov edx, dword ptr [ebp + 0x24] */ 5986 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x250532E9: fld dword ptr [ebp + 0x1c] */ 5987 MEM32(ebp + (-0x4)) = edx; /* 0x250532EC: mov dword ptr [ebp - 4], edx */ 5988 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x250532EF: fmul dword ptr [0x25153ca8] */ 5989 edx = MEM32(ebp + 0x3C); /* 0x250532F5: mov edx, dword ptr [ebp + 0x3c] */ 5990 MEM32(ebp + 0x1C) = eax; /* 0x250532F8: mov dword ptr [ebp + 0x1c], eax */ 5991 MEM32(ebp + 0x24) = edx; /* 0x250532FB: mov dword ptr [ebp + 0x24], edx */ 5992 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x250532FE: fstp dword ptr [ebp - 0xc] */ 5993 MEM32(ebp + 0x30) = edx; /* 0x25053301: mov dword ptr [ebp + 0x30], edx */ 5994 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x25053304: fld dword ptr [ebp - 8] */ 5995 MEM32(ebp + (-0x14)) = ecx; /* 0x25053307: mov dword ptr [ebp - 0x14], ecx */ 5996 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x2505330A: fmul dword ptr [0x25153ca8] */ 5997 MEM32(ebp + (-0x10)) = edx; /* 0x25053310: mov dword ptr [ebp - 0x10], edx */ 5998 MEM32(ebp + (-0x30)) = eax; /* 0x25053313: mov dword ptr [ebp - 0x30], eax */ 5999 MEM32(ebp + (-0x2C)) = ecx; /* 0x25053316: mov dword ptr [ebp - 0x2c], ecx */ 6000 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x25053319: fstp dword ptr [ebp - 8] */ 6001 MEM32(ebp + (-0x28)) = edx; /* 0x2505331C: mov dword ptr [ebp - 0x28], edx */ 6002 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2505331F: fld dword ptr [ebp - 4] */ 6003 MEM32(ebp + 0x3C) = 0; /* 0x25053322: mov dword ptr [ebp + 0x3c], 0 */ 6004 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x25053329: fmul dword ptr [0x25153ca8] */ 6005 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2505332F: fstp dword ptr [ebp - 4] */ 6006 L_25053332: 6007 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25053332: fld dword ptr [ebp - 0x24] */ 6008 eax = MEM32(ebp + 0x3C); /* 0x25053335: mov eax, dword ptr [ebp + 0x3c] */ 6009 /* test eax, eax */ /* 0x25053338: test eax, eax */ 6010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6011 _cf = 0; 6012 _flag_k = FK_TEST; 6013 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x2505333A: fadd dword ptr [ebp + 0x1c] */ 6014 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x2505333D: fstp dword ptr [ebp + 0x1c] */ 6015 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x25053340: fld dword ptr [ebp - 0x20] */ 6016 _st[0] += (double)*(float*)ADDR(ebp + 0x20); /* 0x25053343: fadd dword ptr [ebp + 0x20] */ 6017 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x25053346: fstp dword ptr [ebp + 0x20] */ 6018 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25053349: fld dword ptr [ebp - 0x1c] */ 6019 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x2505334C: fadd dword ptr [ebp + 0x24] */ 6020 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x2505334F: fstp dword ptr [ebp + 0x24] */ 6021 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25053352: fld dword ptr [ebp - 0xc] */ 6022 _st[0] += (double)*(float*)ADDR(ebp + 0x28); /* 0x25053355: fadd dword ptr [ebp + 0x28] */ 6023 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x28) = _v; } /* 0x25053358: fstp dword ptr [ebp + 0x28] */ 6024 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2505335B: fld dword ptr [ebp - 8] */ 6025 _st[0] += (double)*(float*)ADDR(ebp + 0x2C); /* 0x2505335E: fadd dword ptr [ebp + 0x2c] */ 6026 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x2C) = _v; } /* 0x25053361: fstp dword ptr [ebp + 0x2c] */ 6027 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x25053364: fld dword ptr [ebp - 4] */ 6028 _st[0] += (double)*(float*)ADDR(ebp + 0x30); /* 0x25053367: fadd dword ptr [ebp + 0x30] */ 6029 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x30) = _v; } /* 0x2505336A: fstp dword ptr [ebp + 0x30] */ 6030 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x2505336D: fld dword ptr [ebp + 0x28] */ 6031 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505344C; /* 0x25053370: jne 0x2505344c */ 6032 L_25053376: 6033 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x25053376: fstp dword ptr [ebp - 0x3c] */ 6034 edx = MEM32(ebp + 0x40); /* 0x25053379: mov edx, dword ptr [ebp + 0x40] */ 6035 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505337C: fld dword ptr [0x251517a4] */ 6036 eax = MEM32(ebp + (-0x18)); /* 0x25053382: mov eax, dword ptr [ebp - 0x18] */ 6037 _st[0] -= (double)*(float*)ADDR(ebp + 0x2C); /* 0x25053385: fsub dword ptr [ebp + 0x2c] */ 6038 ecx = MEM32(ebp + (-0x10)); /* 0x25053388: mov ecx, dword ptr [ebp - 0x10] */ 6039 PUSH32(esp, edi); /* 0x2505338B: push edi */ 6040 PUSH32(esp, edx); /* 0x2505338C: push edx */ 6041 fp_push(_st[0]); /* 0x2505338D: fld st(0) */ 6042 MEM32(ebp + (-0x48)) = eax; /* 0x2505338F: mov dword ptr [ebp - 0x48], eax */ 6043 fp_push(_st[0]); /* 0x25053392: fld st(0) */ 6044 _st[0] *= _st[1]; /* 0x25053394: fmul st(1) */ 6045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6047 esp = esp - 0xCu; /* 0x25053396: sub esp, 0xc */ 6048 _flag_k = FK_CMP; 6049 MEM32(ebp + (-0x40)) = ecx; /* 0x25053399: mov dword ptr [ebp - 0x40], ecx */ 6050 ecx = MEM32(ebp + (-0x3C)); /* 0x2505339C: mov ecx, dword ptr [ebp - 0x3c] */ 6051 _st[0] *= _st[2]; /* 0x2505339F: fmul st(2) */ 6052 eax = esp; /* 0x250533A1: mov eax, esp */ 6053 MEM32(eax) = ecx; /* 0x250533A3: mov dword ptr [eax], ecx */ 6054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6056 esp = esp - 0xCu; /* 0x250533A5: sub esp, 0xc */ 6057 _flag_k = FK_CMP; 6058 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250533A8: fsubr dword ptr [0x251517a4] */ 6059 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250533AE: fmul dword ptr [ebp + 0x4c] */ 6060 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250533B1: fadd dword ptr [ebp + 0x48] */ 6061 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x250533B4: fstp dword ptr [ebp - 0x38] */ 6062 edx = MEM32(ebp + (-0x38)); /* 0x250533B7: mov edx, dword ptr [ebp - 0x38] */ 6063 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250533BA: fstp st(0) */ 6064 MEM32(eax + 0x4) = edx; /* 0x250533BC: mov dword ptr [eax + 4], edx */ 6065 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250533BF: fstp st(0) */ 6066 edx = esp; /* 0x250533C1: mov edx, esp */ 6067 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x250533C3: fld dword ptr [ebp + 0x30] */ 6068 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6070 esp = esp - 0xCu; /* 0x250533C6: sub esp, 0xc */ 6071 _flag_k = FK_CMP; 6072 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250533C9: fstp dword ptr [ebp - 0x34] */ 6073 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x250533CC: fld dword ptr [ebp + 0x1c] */ 6074 ecx = MEM32(ebp + (-0x34)); /* 0x250533CF: mov ecx, dword ptr [ebp - 0x34] */ 6075 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x250533D2: fstp dword ptr [ebp - 0x60] */ 6076 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250533D5: fld dword ptr [0x251517a4] */ 6077 MEM32(eax + 0x8) = ecx; /* 0x250533DB: mov dword ptr [eax + 8], ecx */ 6078 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250533DE: fsub dword ptr [ebp + 0x20] */ 6079 eax = MEM32(ebp + (-0x60)); /* 0x250533E1: mov eax, dword ptr [ebp - 0x60] */ 6080 MEM32(edx) = eax; /* 0x250533E4: mov dword ptr [edx], eax */ 6081 fp_push(_st[0]); /* 0x250533E6: fld st(0) */ 6082 fp_push(_st[0]); /* 0x250533E8: fld st(0) */ 6083 _st[0] *= _st[1]; /* 0x250533EA: fmul st(1) */ 6084 _st[0] *= _st[2]; /* 0x250533EC: fmul st(2) */ 6085 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250533EE: fsubr dword ptr [0x251517a4] */ 6086 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250533F4: fmul dword ptr [ebp + 0x4c] */ 6087 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250533F7: fadd dword ptr [ebp + 0x48] */ 6088 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x250533FA: fstp dword ptr [ebp - 0x5c] */ 6089 ecx = MEM32(ebp + (-0x5C)); /* 0x250533FD: mov ecx, dword ptr [ebp - 0x5c] */ 6090 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053400: fstp st(0) */ 6091 MEM32(edx + 0x4) = ecx; /* 0x25053402: mov dword ptr [edx + 4], ecx */ 6092 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053405: fstp st(0) */ 6093 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25053407: fld dword ptr [ebp + 0x24] */ 6094 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x2505340A: fstp dword ptr [ebp - 0x58] */ 6095 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505340D: fld dword ptr [0x251517a4] */ 6096 eax = MEM32(ebp + (-0x58)); /* 0x25053413: mov eax, dword ptr [ebp - 0x58] */ 6097 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25053416: fsub dword ptr [ebp - 0x14] */ 6098 MEM32(edx + 0x8) = eax; /* 0x25053419: mov dword ptr [edx + 8], eax */ 6099 fp_push(_st[0]); /* 0x2505341C: fld st(0) */ 6100 fp_push(_st[0]); /* 0x2505341E: fld st(0) */ 6101 _st[0] *= _st[1]; /* 0x25053420: fmul st(1) */ 6102 _st[0] *= _st[2]; /* 0x25053422: fmul st(2) */ 6103 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053424: fsubr dword ptr [0x251517a4] */ 6104 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505342A: fmul dword ptr [ebp + 0x4c] */ 6105 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505342D: fadd dword ptr [ebp + 0x48] */ 6106 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25053430: fstp dword ptr [ebp - 0x44] */ 6107 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053433: fstp st(0) */ 6108 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053435: fstp st(0) */ 6109 edx = MEM32(ebp + (-0x48)); /* 0x25053437: mov edx, dword ptr [ebp - 0x48] */ 6110 eax = MEM32(ebp + (-0x44)); /* 0x2505343A: mov eax, dword ptr [ebp - 0x44] */ 6111 ecx = esp; /* 0x2505343D: mov ecx, esp */ 6112 MEM32(ecx) = edx; /* 0x2505343F: mov dword ptr [ecx], edx */ 6113 edx = MEM32(ebp + (-0x40)); /* 0x25053441: mov edx, dword ptr [ebp - 0x40] */ 6114 MEM32(ecx + 0x4) = eax; /* 0x25053444: mov dword ptr [ecx + 4], eax */ 6115 goto L_25053604; /* 0x25053447: jmp 0x25053604 */ 6116 L_2505344C: 6117 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x2505344C: fstp dword ptr [ebp - 0x90] */ 6118 eax = MEM32(ebp + 0x40); /* 0x25053452: mov eax, dword ptr [ebp + 0x40] */ 6119 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25053455: fld dword ptr [0x251517a4] */ 6120 ecx = MEM32(ebp + (-0x18)); /* 0x2505345B: mov ecx, dword ptr [ebp - 0x18] */ 6121 _st[0] -= (double)*(float*)ADDR(ebp + 0x2C); /* 0x2505345E: fsub dword ptr [ebp + 0x2c] */ 6122 edx = MEM32(ebp + (-0x10)); /* 0x25053461: mov edx, dword ptr [ebp - 0x10] */ 6123 PUSH32(esp, edi); /* 0x25053464: push edi */ 6124 PUSH32(esp, eax); /* 0x25053465: push eax */ 6125 fp_push(_st[0]); /* 0x25053466: fld st(0) */ 6126 MEM32(ebp + (-0x54)) = ecx; /* 0x25053468: mov dword ptr [ebp - 0x54], ecx */ 6127 fp_push(_st[0]); /* 0x2505346B: fld st(0) */ 6128 _st[0] *= _st[1]; /* 0x2505346D: fmul st(1) */ 6129 MEM32(ebp + (-0x4C)) = edx; /* 0x2505346F: mov dword ptr [ebp - 0x4c], edx */ 6130 edx = MEM32(ebp + (-0x90)); /* 0x25053472: mov edx, dword ptr [ebp - 0x90] */ 6131 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6133 esp = esp - 0xCu; /* 0x25053478: sub esp, 0xc */ 6134 _flag_k = FK_CMP; 6135 { double _v = fp_pop(); _st[1] *= _v; } /* 0x2505347B: fmulp st(2) */ 6136 ecx = esp; /* 0x2505347D: mov ecx, esp */ 6137 fp_xch(1); /* 0x2505347F: fxch st(1) */ 6138 MEM32(ecx) = edx; /* 0x25053481: mov dword ptr [ecx], edx */ 6139 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6141 esp = esp - 0xCu; /* 0x25053483: sub esp, 0xc */ 6142 _flag_k = FK_CMP; 6143 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053486: fsubr dword ptr [0x251517a4] */ 6144 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505348C: fmul dword ptr [ebp + 0x4c] */ 6145 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505348F: fadd dword ptr [ebp + 0x48] */ 6146 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x44) = _v; } /* 0x25053492: fst dword ptr [ebp + 0x44] */ 6147 fp_xch(1); /* 0x25053495: fxch st(1) */ 6148 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053497: fstp st(0) */ 6149 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x25053499: fstp dword ptr [ebp - 0x8c] */ 6150 eax = MEM32(ebp + (-0x8C)); /* 0x2505349F: mov eax, dword ptr [ebp - 0x8c] */ 6151 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x250534A5: fld dword ptr [ebp + 0x30] */ 6152 MEM32(ecx + 0x4) = eax; /* 0x250534A8: mov dword ptr [ecx + 4], eax */ 6153 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x250534AB: fstp dword ptr [ebp - 0x88] */ 6154 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x250534B1: fld dword ptr [ebp + 0x1c] */ 6155 edx = MEM32(ebp + (-0x88)); /* 0x250534B4: mov edx, dword ptr [ebp - 0x88] */ 6156 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x250534BA: fstp dword ptr [ebp - 0x78] */ 6157 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250534BD: fld dword ptr [0x251517a4] */ 6158 MEM32(ecx + 0x8) = edx; /* 0x250534C3: mov dword ptr [ecx + 8], edx */ 6159 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250534C6: fsub dword ptr [ebp + 0x20] */ 6160 ecx = MEM32(ebp + (-0x78)); /* 0x250534C9: mov ecx, dword ptr [ebp - 0x78] */ 6161 eax = esp; /* 0x250534CC: mov eax, esp */ 6162 MEM32(eax) = ecx; /* 0x250534CE: mov dword ptr [eax], ecx */ 6163 fp_push(_st[0]); /* 0x250534D0: fld st(0) */ 6164 fp_push(_st[0]); /* 0x250534D2: fld st(0) */ 6165 _st[0] *= _st[1]; /* 0x250534D4: fmul st(1) */ 6166 _st[0] *= _st[2]; /* 0x250534D6: fmul st(2) */ 6167 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250534D8: fsubr dword ptr [0x251517a4] */ 6168 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250534DE: fmul dword ptr [ebp + 0x4c] */ 6169 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250534E1: fadd dword ptr [ebp + 0x48] */ 6170 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x250534E4: fstp dword ptr [ebp - 0x74] */ 6171 edx = MEM32(ebp + (-0x74)); /* 0x250534E7: mov edx, dword ptr [ebp - 0x74] */ 6172 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250534EA: fstp st(0) */ 6173 MEM32(eax + 0x4) = edx; /* 0x250534EC: mov dword ptr [eax + 4], edx */ 6174 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250534EF: fstp st(0) */ 6175 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250534F1: fld dword ptr [ebp + 0x24] */ 6176 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x250534F4: fstp dword ptr [ebp - 0x70] */ 6177 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250534F7: fld dword ptr [0x251517a4] */ 6178 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x250534FD: fsub dword ptr [ebp - 0x14] */ 6179 fp_push(_st[0]); /* 0x25053500: fld st(0) */ 6180 fp_push(_st[0]); /* 0x25053502: fld st(0) */ 6181 _st[0] *= _st[1]; /* 0x25053504: fmul st(1) */ 6182 { double _v = fp_pop(); _st[1] *= _v; } /* 0x25053506: fmulp st(2) */ 6183 fp_xch(1); /* 0x25053508: fxch st(1) */ 6184 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505350A: fsubr dword ptr [0x251517a4] */ 6185 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053510: fmul dword ptr [ebp + 0x4c] */ 6186 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053513: fadd dword ptr [ebp + 0x48] */ 6187 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x25053516: fst dword ptr [ebp + 0x18] */ 6188 fp_xch(1); /* 0x25053519: fxch st(1) */ 6189 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505351B: fstp st(0) */ 6190 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x2505351D: fstp dword ptr [ebp - 0x50] */ 6191 ecx = MEM32(ebp + (-0x70)); /* 0x25053520: mov ecx, dword ptr [ebp - 0x70] */ 6192 MEM32(eax + 0x8) = ecx; /* 0x25053523: mov dword ptr [eax + 8], ecx */ 6193 eax = MEM32(ebp + (-0x54)); /* 0x25053526: mov eax, dword ptr [ebp - 0x54] */ 6194 ecx = MEM32(ebp + (-0x50)); /* 0x25053529: mov ecx, dword ptr [ebp - 0x50] */ 6195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6197 esp = esp - 0xCu; /* 0x2505352C: sub esp, 0xc */ 6198 _flag_k = FK_CMP; 6199 edx = esp; /* 0x2505352F: mov edx, esp */ 6200 MEM32(edx) = eax; /* 0x25053531: mov dword ptr [edx], eax */ 6201 eax = MEM32(ebp + (-0x4C)); /* 0x25053533: mov eax, dword ptr [ebp - 0x4c] */ 6202 MEM32(edx + 0x4) = ecx; /* 0x25053536: mov dword ptr [edx + 4], ecx */ 6203 ecx = MEM32(ebp + 0x14); /* 0x25053539: mov ecx, dword ptr [ebp + 0x14] */ 6204 PUSH32(esp, ebx); /* 0x2505353C: push ebx */ 6205 PUSH32(esp, ecx); /* 0x2505353D: push ecx */ 6206 ecx = MEM32(ebp + 0x8); /* 0x2505353E: mov ecx, dword ptr [ebp + 8] */ 6207 MEM32(edx + 0x8) = eax; /* 0x25053541: mov dword ptr [edx + 8], eax */ 6208 edx = MEM32(ebp + 0x10); /* 0x25053544: mov edx, dword ptr [ebp + 0x10] */ 6209 eax = MEM32(ebp + 0xC); /* 0x25053547: mov eax, dword ptr [ebp + 0xc] */ 6210 PUSH32(esp, edx); /* 0x2505354A: push edx */ 6211 PUSH32(esp, eax); /* 0x2505354B: push eax */ 6212 PUSH32(esp, ecx); /* 0x2505354C: push ecx */ 6213 ecx = esi; /* 0x2505354D: mov ecx, esi */ 6214 RECOMP_ICALL(0x25053A90u); /* 0x2505354F: call 0x25053a90 */ /* not lifted */ 6215 RECOMP_FLAGS_IN(); 6216 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x25053554: fld dword ptr [ebp + 0x28] */ 6217 edx = MEM32(ebp + 0x44); /* 0x25053557: mov edx, dword ptr [ebp + 0x44] */ 6218 eax = MEM32(ebp + (-0x30)); /* 0x2505355A: mov eax, dword ptr [ebp - 0x30] */ 6219 ecx = MEM32(ebp + (-0x28)); /* 0x2505355D: mov ecx, dword ptr [ebp - 0x28] */ 6220 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x25053560: fstp dword ptr [ebp - 0x6c] */ 6221 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x25053563: fld dword ptr [ebp + 0x30] */ 6222 MEM32(ebp + (-0x68)) = edx; /* 0x25053566: mov dword ptr [ebp - 0x68], edx */ 6223 edx = MEM32(ebp + (-0x18)); /* 0x25053569: mov edx, dword ptr [ebp - 0x18] */ 6224 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x2505356C: fstp dword ptr [ebp - 0x64] */ 6225 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505356F: fld dword ptr [0x251517a4] */ 6226 MEM32(ebp + (-0x9C)) = edx; /* 0x25053575: mov dword ptr [ebp - 0x9c], edx */ 6227 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x2505357B: fsub dword ptr [ebp - 0x2c] */ 6228 edx = MEM32(ebp + 0x40); /* 0x2505357E: mov edx, dword ptr [ebp + 0x40] */ 6229 MEM32(ebp + (-0x7C)) = ecx; /* 0x25053581: mov dword ptr [ebp - 0x7c], ecx */ 6230 ecx = MEM32(ebp + (-0x10)); /* 0x25053584: mov ecx, dword ptr [ebp - 0x10] */ 6231 fp_push(_st[0]); /* 0x25053587: fld st(0) */ 6232 MEM32(ebp + (-0x84)) = eax; /* 0x25053589: mov dword ptr [ebp - 0x84], eax */ 6233 eax = MEM32(ebp + 0x18); /* 0x2505358F: mov eax, dword ptr [ebp + 0x18] */ 6234 fp_push(_st[0]); /* 0x25053592: fld st(0) */ 6235 _st[0] *= _st[1]; /* 0x25053594: fmul st(1) */ 6236 PUSH32(esp, edi); /* 0x25053596: push edi */ 6237 PUSH32(esp, edx); /* 0x25053597: push edx */ 6238 edx = MEM32(ebp + (-0x68)); /* 0x25053598: mov edx, dword ptr [ebp - 0x68] */ 6239 _st[0] *= _st[2]; /* 0x2505359B: fmul st(2) */ 6240 MEM32(ebp + (-0x94)) = ecx; /* 0x2505359D: mov dword ptr [ebp - 0x94], ecx */ 6241 ecx = MEM32(ebp + (-0x6C)); /* 0x250535A3: mov ecx, dword ptr [ebp - 0x6c] */ 6242 MEM32(ebp + (-0x98)) = eax; /* 0x250535A6: mov dword ptr [ebp - 0x98], eax */ 6243 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250535AC: fsubr dword ptr [0x251517a4] */ 6244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6246 esp = esp - 0xCu; /* 0x250535B2: sub esp, 0xc */ 6247 _flag_k = FK_CMP; 6248 eax = esp; /* 0x250535B5: mov eax, esp */ 6249 MEM32(eax) = ecx; /* 0x250535B7: mov dword ptr [eax], ecx */ 6250 ecx = MEM32(ebp + (-0x64)); /* 0x250535B9: mov ecx, dword ptr [ebp - 0x64] */ 6251 MEM32(eax + 0x4) = edx; /* 0x250535BC: mov dword ptr [eax + 4], edx */ 6252 MEM32(eax + 0x8) = ecx; /* 0x250535BF: mov dword ptr [eax + 8], ecx */ 6253 eax = MEM32(ebp + (-0x84)); /* 0x250535C2: mov eax, dword ptr [ebp - 0x84] */ 6254 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250535C8: fmul dword ptr [ebp + 0x4c] */ 6255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6257 esp = esp - 0xCu; /* 0x250535CB: sub esp, 0xc */ 6258 _flag_k = FK_CMP; 6259 edx = esp; /* 0x250535CE: mov edx, esp */ 6260 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250535D0: fadd dword ptr [ebp + 0x48] */ 6261 MEM32(edx) = eax; /* 0x250535D3: mov dword ptr [edx], eax */ 6262 eax = MEM32(ebp + (-0x7C)); /* 0x250535D5: mov eax, dword ptr [ebp - 0x7c] */ 6263 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6265 esp = esp - 0xCu; /* 0x250535D8: sub esp, 0xc */ 6266 _flag_k = FK_CMP; 6267 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x250535DB: fstp dword ptr [ebp - 0x80] */ 6268 ecx = MEM32(ebp + (-0x80)); /* 0x250535DE: mov ecx, dword ptr [ebp - 0x80] */ 6269 MEM32(edx + 0x4) = ecx; /* 0x250535E1: mov dword ptr [edx + 4], ecx */ 6270 MEM32(edx + 0x8) = eax; /* 0x250535E4: mov dword ptr [edx + 8], eax */ 6271 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250535E7: fstp st(0) */ 6272 edx = MEM32(ebp + (-0x9C)); /* 0x250535E9: mov edx, dword ptr [ebp - 0x9c] */ 6273 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250535EF: fstp st(0) */ 6274 eax = MEM32(ebp + (-0x98)); /* 0x250535F1: mov eax, dword ptr [ebp - 0x98] */ 6275 ecx = esp; /* 0x250535F7: mov ecx, esp */ 6276 MEM32(ecx) = edx; /* 0x250535F9: mov dword ptr [ecx], edx */ 6277 edx = MEM32(ebp + (-0x94)); /* 0x250535FB: mov edx, dword ptr [ebp - 0x94] */ 6278 MEM32(ecx + 0x4) = eax; /* 0x25053601: mov dword ptr [ecx + 4], eax */ 6279 L_25053604: 6280 eax = MEM32(ebp + 0x14); /* 0x25053604: mov eax, dword ptr [ebp + 0x14] */ 6281 PUSH32(esp, ebx); /* 0x25053607: push ebx */ 6282 MEM32(ecx + 0x8) = edx; /* 0x25053608: mov dword ptr [ecx + 8], edx */ 6283 ecx = MEM32(ebp + 0x10); /* 0x2505360B: mov ecx, dword ptr [ebp + 0x10] */ 6284 edx = MEM32(ebp + 0xC); /* 0x2505360E: mov edx, dword ptr [ebp + 0xc] */ 6285 PUSH32(esp, eax); /* 0x25053611: push eax */ 6286 eax = MEM32(ebp + 0x8); /* 0x25053612: mov eax, dword ptr [ebp + 8] */ 6287 PUSH32(esp, ecx); /* 0x25053615: push ecx */ 6288 PUSH32(esp, edx); /* 0x25053616: push edx */ 6289 PUSH32(esp, eax); /* 0x25053617: push eax */ 6290 ecx = esi; /* 0x25053618: mov ecx, esi */ 6291 RECOMP_ICALL(0x25053A90u); /* 0x2505361A: call 0x25053a90 */ /* not lifted */ 6292 RECOMP_FLAGS_IN(); 6293 eax = MEM32(ebp + 0x24); /* 0x2505361F: mov eax, dword ptr [ebp + 0x24] */ 6294 ecx = MEM32(ebp + 0x1C); /* 0x25053622: mov ecx, dword ptr [ebp + 0x1c] */ 6295 edx = MEM32(ebp + 0x20); /* 0x25053625: mov edx, dword ptr [ebp + 0x20] */ 6296 MEM32(ebp + (-0x10)) = eax; /* 0x25053628: mov dword ptr [ebp - 0x10], eax */ 6297 eax = MEM32(ebp + 0x30); /* 0x2505362B: mov eax, dword ptr [ebp + 0x30] */ 6298 MEM32(ebp + (-0x28)) = eax; /* 0x2505362E: mov dword ptr [ebp - 0x28], eax */ 6299 eax = MEM32(ebp + 0x3C); /* 0x25053631: mov eax, dword ptr [ebp + 0x3c] */ 6300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6301 eax = eax + 1; /* 0x25053634: inc eax */ 6302 _flag_k = FK_INC; 6303 /* cmp eax, 0xAu */ /* 0x25053635: cmp eax, 0xa */ 6304 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 6305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6306 _flag_k = FK_CMP; 6307 MEM32(ebp + (-0x18)) = ecx; /* 0x25053638: mov dword ptr [ebp - 0x18], ecx */ 6308 ecx = MEM32(ebp + 0x28); /* 0x2505363B: mov ecx, dword ptr [ebp + 0x28] */ 6309 MEM32(ebp + (-0x14)) = edx; /* 0x2505363E: mov dword ptr [ebp - 0x14], edx */ 6310 edx = MEM32(ebp + 0x2C); /* 0x25053641: mov edx, dword ptr [ebp + 0x2c] */ 6311 MEM32(ebp + (-0x30)) = ecx; /* 0x25053644: mov dword ptr [ebp - 0x30], ecx */ 6312 MEM32(ebp + (-0x2C)) = edx; /* 0x25053647: mov dword ptr [ebp - 0x2c], edx */ 6313 MEM32(ebp + 0x3C) = eax; /* 0x2505364A: mov dword ptr [ebp + 0x3c], eax */ 6314 RECOMP_BACKEDGE(); 6315 if (CMP_L(_flag_a, _flag_b)) goto L_25053332; /* 0x2505364D: jl 0x25053332 */ 6316 L_25053653: 6317 edi = POP32_VAL(esp); /* 0x25053653: pop edi */ 6318 esi = POP32_VAL(esp); /* 0x25053654: pop esi */ 6319 ebx = POP32_VAL(esp); /* 0x25053655: pop ebx */ 6320 esp = ebp; /* 0x25053656: mov esp, ebp */ 6321 ebp = POP32_VAL(esp); /* 0x25053658: pop ebp */ 6322 RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x25053659: ret 0x48 */ 6323 L_2505365C: 6324 fp_push(*(float*)&MEM32(ebp + 0x34)); /* 0x2505365C: fld dword ptr [ebp + 0x34] */ 6325 eax = MEM32(ebp + 0x34); /* 0x2505365F: mov eax, dword ptr [ebp + 0x34] */ 6326 _st[0] -= (double)*(float*)ADDR(ebp + 0x1C); /* 0x25053662: fsub dword ptr [ebp + 0x1c] */ 6327 ecx = MEM32(ebp + 0x38); /* 0x25053665: mov ecx, dword ptr [ebp + 0x38] */ 6328 edx = MEM32(ebp + 0x3C); /* 0x25053668: mov edx, dword ptr [ebp + 0x3c] */ 6329 MEM32(ebp + (-0x8)) = ecx; /* 0x2505366B: mov dword ptr [ebp - 8], ecx */ 6330 MEM32(ebp + (-0xC)) = eax; /* 0x2505366E: mov dword ptr [ebp - 0xc], eax */ 6331 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x25053671: fstp dword ptr [ebp - 0xc] */ 6332 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x25053674: fld dword ptr [ebp - 8] */ 6333 edi = MEM32(ebp + (-0xC)); /* 0x25053677: mov edi, dword ptr [ebp - 0xc] */ 6334 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x2505367A: fsub dword ptr [ebp + 0x20] */ 6335 MEM32(ebp + (-0x4)) = edx; /* 0x2505367D: mov dword ptr [ebp - 4], edx */ 6336 MEM32(ebp + (-0x3C)) = edi; /* 0x25053680: mov dword ptr [ebp - 0x3c], edi */ 6337 ebx = MEM32(ebp + 0x2C); /* 0x25053683: mov ebx, dword ptr [ebp + 0x2c] */ 6338 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x25053686: fstp dword ptr [ebp - 8] */ 6339 edi = MEM32(ebp + (-0x8)); /* 0x25053689: mov edi, dword ptr [ebp - 8] */ 6340 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2505368C: fld dword ptr [ebp - 4] */ 6341 MEM32(ebp + (-0x38)) = edi; /* 0x2505368F: mov dword ptr [ebp - 0x38], edi */ 6342 _st[0] -= (double)*(float*)ADDR(ebp + 0x24); /* 0x25053692: fsub dword ptr [ebp + 0x24] */ 6343 MEM32(ebp + (-0x8)) = ecx; /* 0x25053695: mov dword ptr [ebp - 8], ecx */ 6344 MEM32(ebp + 0x3C) = 0; /* 0x25053698: mov dword ptr [ebp + 0x3c], 0 */ 6345 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2505369F: fstp dword ptr [ebp - 4] */ 6346 edi = MEM32(ebp + (-0x4)); /* 0x250536A2: mov edi, dword ptr [ebp - 4] */ 6347 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x250536A5: fld dword ptr [ebp - 0xc] */ 6348 MEM32(ebp + (-0x34)) = edi; /* 0x250536A8: mov dword ptr [ebp - 0x34], edi */ 6349 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x250536AB: fmul dword ptr [0x25153ca8] */ 6350 MEM32(ebp + (-0xC)) = eax; /* 0x250536B1: mov dword ptr [ebp - 0xc], eax */ 6351 edi = MEM32(ebp + 0x28); /* 0x250536B4: mov edi, dword ptr [ebp + 0x28] */ 6352 MEM32(ebp + (-0x4)) = edx; /* 0x250536B7: mov dword ptr [ebp - 4], edx */ 6353 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x250536BA: fstp dword ptr [ebp - 0x3c] */ 6354 MEM32(ebp + (-0x24)) = edi; /* 0x250536BD: mov dword ptr [ebp - 0x24], edi */ 6355 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x250536C0: fld dword ptr [ebp - 0x38] */ 6356 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x250536C3: fmul dword ptr [0x25153ca8] */ 6357 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x250536C9: fstp dword ptr [ebp - 0x38] */ 6358 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x250536CC: fld dword ptr [ebp - 0x34] */ 6359 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x250536CF: fmul dword ptr [0x25153ca8] */ 6360 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250536D5: fstp dword ptr [ebp - 0x34] */ 6361 fp_push(*(float*)&MEM32(ebp + 0x34)); /* 0x250536D8: fld dword ptr [ebp + 0x34] */ 6362 _st[0] -= (double)*(float*)ADDR(ebp + 0x28); /* 0x250536DB: fsub dword ptr [ebp + 0x28] */ 6363 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x250536DE: fstp dword ptr [ebp - 0xc] */ 6364 ecx = MEM32(ebp + (-0xC)); /* 0x250536E1: mov ecx, dword ptr [ebp - 0xc] */ 6365 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x250536E4: fld dword ptr [ebp - 8] */ 6366 MEM32(ebp + (-0x30)) = ecx; /* 0x250536E7: mov dword ptr [ebp - 0x30], ecx */ 6367 _st[0] -= (double)*(float*)ADDR(ebp + 0x2C); /* 0x250536EA: fsub dword ptr [ebp + 0x2c] */ 6368 ecx = MEM32(ebp + 0x20); /* 0x250536ED: mov ecx, dword ptr [ebp + 0x20] */ 6369 MEM32(ebp + 0x20) = ebx; /* 0x250536F0: mov dword ptr [ebp + 0x20], ebx */ 6370 ebx = MEM32(ebp + 0x30); /* 0x250536F3: mov ebx, dword ptr [ebp + 0x30] */ 6371 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x250536F6: fstp dword ptr [ebp - 8] */ 6372 edx = MEM32(ebp + (-0x8)); /* 0x250536F9: mov edx, dword ptr [ebp - 8] */ 6373 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x250536FC: fld dword ptr [ebp - 4] */ 6374 MEM32(ebp + (-0x2C)) = edx; /* 0x250536FF: mov dword ptr [ebp - 0x2c], edx */ 6375 _st[0] -= (double)*(float*)ADDR(ebp + 0x30); /* 0x25053702: fsub dword ptr [ebp + 0x30] */ 6376 edx = MEM32(ebp + 0x24); /* 0x25053705: mov edx, dword ptr [ebp + 0x24] */ 6377 MEM32(ebp + (-0x14)) = ecx; /* 0x25053708: mov dword ptr [ebp - 0x14], ecx */ 6378 MEM32(ebp + (-0x8)) = ecx; /* 0x2505370B: mov dword ptr [ebp - 8], ecx */ 6379 ecx = MEM32(ebp + 0x2C); /* 0x2505370E: mov ecx, dword ptr [ebp + 0x2c] */ 6380 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x25053711: fstp dword ptr [ebp - 4] */ 6381 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25053714: fld dword ptr [ebp - 0xc] */ 6382 eax = MEM32(ebp + (-0x4)); /* 0x25053717: mov eax, dword ptr [ebp - 4] */ 6383 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x2505371A: fmul dword ptr [0x25153ca8] */ 6384 MEM32(ebp + (-0x28)) = eax; /* 0x25053720: mov dword ptr [ebp - 0x28], eax */ 6385 eax = MEM32(ebp + 0x1C); /* 0x25053723: mov eax, dword ptr [ebp + 0x1c] */ 6386 MEM32(ebp + 0x1C) = edi; /* 0x25053726: mov dword ptr [ebp + 0x1c], edi */ 6387 edi = MEM32(ebp + 0x44); /* 0x25053729: mov edi, dword ptr [ebp + 0x44] */ 6388 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x2505372C: fstp dword ptr [ebp - 0x30] */ 6389 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x2505372F: fld dword ptr [ebp - 0x2c] */ 6390 MEM32(ebp + 0x24) = ebx; /* 0x25053732: mov dword ptr [ebp + 0x24], ebx */ 6391 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x25053735: fmul dword ptr [0x25153ca8] */ 6392 MEM32(ebp + (-0x1C)) = ebx; /* 0x2505373B: mov dword ptr [ebp - 0x1c], ebx */ 6393 ebx = MEM32(ebp + 0x18); /* 0x2505373E: mov ebx, dword ptr [ebp + 0x18] */ 6394 MEM32(ebp + (-0x18)) = eax; /* 0x25053741: mov dword ptr [ebp - 0x18], eax */ 6395 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x25053744: fstp dword ptr [ebp - 0x2c] */ 6396 MEM32(ebp + (-0x10)) = edx; /* 0x25053747: mov dword ptr [ebp - 0x10], edx */ 6397 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2505374A: fld dword ptr [ebp - 0x28] */ 6398 MEM32(ebp + (-0xC)) = eax; /* 0x2505374D: mov dword ptr [ebp - 0xc], eax */ 6399 _st[0] *= (double)*(float*)ADDR(0x25153CA8); /* 0x25053750: fmul dword ptr [0x25153ca8] */ 6400 MEM32(ebp + (-0x4)) = edx; /* 0x25053756: mov dword ptr [ebp - 4], edx */ 6401 MEM32(ebp + (-0x20)) = ecx; /* 0x25053759: mov dword ptr [ebp - 0x20], ecx */ 6402 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2505375C: fstp dword ptr [ebp - 0x28] */ 6403 L_2505375F: 6404 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x2505375F: fld dword ptr [ebp - 0x3c] */ 6405 eax = MEM32(ebp + 0x3C); /* 0x25053762: mov eax, dword ptr [ebp + 0x3c] */ 6406 /* cmp eax, 9 */ /* 0x25053765: cmp eax, 9 */ 6407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 6408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6409 _flag_k = FK_CMP; 6410 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x25053768: fadd dword ptr [ebp - 0x18] */ 6411 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2505376B: fstp dword ptr [ebp - 0x18] */ 6412 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2505376E: fld dword ptr [ebp - 0x38] */ 6413 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25053771: fadd dword ptr [ebp - 0x14] */ 6414 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x25053774: fstp dword ptr [ebp - 0x14] */ 6415 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25053777: fld dword ptr [ebp - 0x34] */ 6416 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2505377A: fadd dword ptr [ebp - 0x10] */ 6417 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2505377D: fstp dword ptr [ebp - 0x10] */ 6418 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x25053780: fld dword ptr [ebp - 0x30] */ 6419 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x25053783: fadd dword ptr [ebp + 0x1c] */ 6420 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x25053786: fstp dword ptr [ebp + 0x1c] */ 6421 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x25053789: fld dword ptr [ebp - 0x2c] */ 6422 _st[0] += (double)*(float*)ADDR(ebp + 0x20); /* 0x2505378C: fadd dword ptr [ebp + 0x20] */ 6423 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x2505378F: fstp dword ptr [ebp + 0x20] */ 6424 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x25053792: fld dword ptr [ebp - 0x28] */ 6425 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x25053795: fadd dword ptr [ebp + 0x24] */ 6426 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x25053798: fstp dword ptr [ebp + 0x24] */ 6427 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x2505379B: fld dword ptr [ebp + 0x1c] */ 6428 if (CMP_NE(_flag_a, _flag_b)) goto L_25053892; /* 0x2505379E: jne 0x25053892 */ 6429 L_250537A4: 6430 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x28) = _v; } /* 0x250537A4: fstp dword ptr [ebp + 0x28] */ 6431 eax = MEM32(ebp + (-0x1C)); /* 0x250537A7: mov eax, dword ptr [ebp - 0x1c] */ 6432 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250537AA: fld dword ptr [0x251517a4] */ 6433 edx = MEM32(ebp + (-0x24)); /* 0x250537B0: mov edx, dword ptr [ebp - 0x24] */ 6434 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250537B3: fsub dword ptr [ebp + 0x20] */ 6435 ecx = MEM32(ebp + (-0xC)); /* 0x250537B6: mov ecx, dword ptr [ebp - 0xc] */ 6436 MEM32(ebp + (-0x94)) = eax; /* 0x250537B9: mov dword ptr [ebp - 0x94], eax */ 6437 eax = MEM32(ebp + 0x40); /* 0x250537BF: mov eax, dword ptr [ebp + 0x40] */ 6438 fp_push(_st[0]); /* 0x250537C2: fld st(0) */ 6439 MEM32(ebp + (-0x9C)) = edx; /* 0x250537C4: mov dword ptr [ebp - 0x9c], edx */ 6440 fp_push(_st[0]); /* 0x250537CA: fld st(0) */ 6441 _st[0] *= _st[1]; /* 0x250537CC: fmul st(1) */ 6442 edx = MEM32(ebp + (-0x4)); /* 0x250537CE: mov edx, dword ptr [ebp - 4] */ 6443 PUSH32(esp, edi); /* 0x250537D1: push edi */ 6444 PUSH32(esp, eax); /* 0x250537D2: push eax */ 6445 _st[0] *= _st[2]; /* 0x250537D3: fmul st(2) */ 6446 MEM32(ebp + (-0x84)) = ecx; /* 0x250537D5: mov dword ptr [ebp - 0x84], ecx */ 6447 MEM32(ebp + (-0x7C)) = edx; /* 0x250537DB: mov dword ptr [ebp - 0x7c], edx */ 6448 edx = MEM32(ebp + 0x28); /* 0x250537DE: mov edx, dword ptr [ebp + 0x28] */ 6449 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250537E1: fsubr dword ptr [0x251517a4] */ 6450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6452 esp = esp - 0xCu; /* 0x250537E7: sub esp, 0xc */ 6453 _flag_k = FK_CMP; 6454 ecx = esp; /* 0x250537EA: mov ecx, esp */ 6455 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250537EC: fmul dword ptr [ebp + 0x4c] */ 6456 MEM32(ecx) = edx; /* 0x250537EF: mov dword ptr [ecx], edx */ 6457 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6459 esp = esp - 0xCu; /* 0x250537F1: sub esp, 0xc */ 6460 _flag_k = FK_CMP; 6461 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250537F4: fadd dword ptr [ebp + 0x48] */ 6462 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x2C) = _v; } /* 0x250537F7: fstp dword ptr [ebp + 0x2c] */ 6463 eax = MEM32(ebp + 0x2C); /* 0x250537FA: mov eax, dword ptr [ebp + 0x2c] */ 6464 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250537FD: fstp st(0) */ 6465 MEM32(ecx + 0x4) = eax; /* 0x250537FF: mov dword ptr [ecx + 4], eax */ 6466 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053802: fstp st(0) */ 6467 eax = esp; /* 0x25053804: mov eax, esp */ 6468 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25053806: fld dword ptr [ebp + 0x24] */ 6469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6471 esp = esp - 0xCu; /* 0x25053809: sub esp, 0xc */ 6472 _flag_k = FK_CMP; 6473 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x30) = _v; } /* 0x2505380C: fstp dword ptr [ebp + 0x30] */ 6474 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505380F: fld dword ptr [0x251517a4] */ 6475 edx = MEM32(ebp + 0x30); /* 0x25053815: mov edx, dword ptr [ebp + 0x30] */ 6476 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x25053818: fsub dword ptr [ebp - 0x20] */ 6477 MEM32(ecx + 0x8) = edx; /* 0x2505381B: mov dword ptr [ecx + 8], edx */ 6478 ecx = MEM32(ebp + (-0x9C)); /* 0x2505381E: mov ecx, dword ptr [ebp - 0x9c] */ 6479 MEM32(eax) = ecx; /* 0x25053824: mov dword ptr [eax], ecx */ 6480 fp_push(_st[0]); /* 0x25053826: fld st(0) */ 6481 ecx = MEM32(ebp + (-0x94)); /* 0x25053828: mov ecx, dword ptr [ebp - 0x94] */ 6482 fp_push(_st[0]); /* 0x2505382E: fld st(0) */ 6483 _st[0] *= _st[1]; /* 0x25053830: fmul st(1) */ 6484 _st[0] *= _st[2]; /* 0x25053832: fmul st(2) */ 6485 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053834: fsubr dword ptr [0x251517a4] */ 6486 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505383A: fmul dword ptr [ebp + 0x4c] */ 6487 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505383D: fadd dword ptr [ebp + 0x48] */ 6488 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x25053840: fstp dword ptr [ebp - 0x98] */ 6489 edx = MEM32(ebp + (-0x98)); /* 0x25053846: mov edx, dword ptr [ebp - 0x98] */ 6490 MEM32(eax + 0x4) = edx; /* 0x2505384C: mov dword ptr [eax + 4], edx */ 6491 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505384F: fstp st(0) */ 6492 MEM32(eax + 0x8) = ecx; /* 0x25053851: mov dword ptr [eax + 8], ecx */ 6493 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053854: fstp st(0) */ 6494 eax = MEM32(ebp + (-0x84)); /* 0x25053856: mov eax, dword ptr [ebp - 0x84] */ 6495 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505385C: fld dword ptr [0x251517a4] */ 6496 edx = esp; /* 0x25053862: mov edx, esp */ 6497 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053864: fsub dword ptr [ebp - 8] */ 6498 MEM32(edx) = eax; /* 0x25053867: mov dword ptr [edx], eax */ 6499 fp_push(_st[0]); /* 0x25053869: fld st(0) */ 6500 fp_push(_st[0]); /* 0x2505386B: fld st(0) */ 6501 _st[0] *= _st[1]; /* 0x2505386D: fmul st(1) */ 6502 _st[0] *= _st[2]; /* 0x2505386F: fmul st(2) */ 6503 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053871: fsubr dword ptr [0x251517a4] */ 6504 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053877: fmul dword ptr [ebp + 0x4c] */ 6505 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505387A: fadd dword ptr [ebp + 0x48] */ 6506 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x2505387D: fstp dword ptr [ebp - 0x80] */ 6507 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053880: fstp st(0) */ 6508 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053882: fstp st(0) */ 6509 ecx = MEM32(ebp + (-0x80)); /* 0x25053884: mov ecx, dword ptr [ebp - 0x80] */ 6510 eax = MEM32(ebp + (-0x7C)); /* 0x25053887: mov eax, dword ptr [ebp - 0x7c] */ 6511 MEM32(edx + 0x4) = ecx; /* 0x2505388A: mov dword ptr [edx + 4], ecx */ 6512 goto L_25053A32; /* 0x2505388D: jmp 0x25053a32 */ 6513 L_25053892: 6514 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x25053892: fstp dword ptr [ebp - 0x6c] */ 6515 ecx = MEM32(ebp + 0x40); /* 0x25053895: mov ecx, dword ptr [ebp + 0x40] */ 6516 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25053898: fld dword ptr [0x251517a4] */ 6517 edx = MEM32(ebp + (-0xC)); /* 0x2505389E: mov edx, dword ptr [ebp - 0xc] */ 6518 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250538A1: fsub dword ptr [ebp + 0x20] */ 6519 eax = MEM32(ebp + (-0x4)); /* 0x250538A4: mov eax, dword ptr [ebp - 4] */ 6520 PUSH32(esp, edi); /* 0x250538A7: push edi */ 6521 PUSH32(esp, ecx); /* 0x250538A8: push ecx */ 6522 fp_push(_st[0]); /* 0x250538A9: fld st(0) */ 6523 MEM32(ebp + (-0x78)) = edx; /* 0x250538AB: mov dword ptr [ebp - 0x78], edx */ 6524 fp_push(_st[0]); /* 0x250538AE: fld st(0) */ 6525 _st[0] *= _st[1]; /* 0x250538B0: fmul st(1) */ 6526 MEM32(ebp + (-0x70)) = eax; /* 0x250538B2: mov dword ptr [ebp - 0x70], eax */ 6527 eax = MEM32(ebp + (-0x6C)); /* 0x250538B5: mov eax, dword ptr [ebp - 0x6c] */ 6528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6530 esp = esp - 0xCu; /* 0x250538B8: sub esp, 0xc */ 6531 _flag_k = FK_CMP; 6532 { double _v = fp_pop(); _st[1] *= _v; } /* 0x250538BB: fmulp st(2) */ 6533 edx = esp; /* 0x250538BD: mov edx, esp */ 6534 fp_xch(1); /* 0x250538BF: fxch st(1) */ 6535 MEM32(edx) = eax; /* 0x250538C1: mov dword ptr [edx], eax */ 6536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6538 esp = esp - 0xCu; /* 0x250538C3: sub esp, 0xc */ 6539 _flag_k = FK_CMP; 6540 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250538C6: fsubr dword ptr [0x251517a4] */ 6541 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250538CC: fmul dword ptr [ebp + 0x4c] */ 6542 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250538CF: fadd dword ptr [ebp + 0x48] */ 6543 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x44) = _v; } /* 0x250538D2: fst dword ptr [ebp + 0x44] */ 6544 fp_xch(1); /* 0x250538D5: fxch st(1) */ 6545 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250538D7: fstp st(0) */ 6546 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x250538D9: fstp dword ptr [ebp - 0x68] */ 6547 ecx = MEM32(ebp + (-0x68)); /* 0x250538DC: mov ecx, dword ptr [ebp - 0x68] */ 6548 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250538DF: fld dword ptr [ebp + 0x24] */ 6549 MEM32(edx + 0x4) = ecx; /* 0x250538E2: mov dword ptr [edx + 4], ecx */ 6550 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x250538E5: fstp dword ptr [ebp - 0x64] */ 6551 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x250538E8: fld dword ptr [ebp - 0x18] */ 6552 eax = MEM32(ebp + (-0x64)); /* 0x250538EB: mov eax, dword ptr [ebp - 0x64] */ 6553 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x250538EE: fstp dword ptr [ebp - 0x54] */ 6554 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250538F1: fld dword ptr [0x251517a4] */ 6555 MEM32(edx + 0x8) = eax; /* 0x250538F7: mov dword ptr [edx + 8], eax */ 6556 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x250538FA: fsub dword ptr [ebp - 0x14] */ 6557 edx = MEM32(ebp + (-0x54)); /* 0x250538FD: mov edx, dword ptr [ebp - 0x54] */ 6558 ecx = esp; /* 0x25053900: mov ecx, esp */ 6559 MEM32(ecx) = edx; /* 0x25053902: mov dword ptr [ecx], edx */ 6560 fp_push(_st[0]); /* 0x25053904: fld st(0) */ 6561 fp_push(_st[0]); /* 0x25053906: fld st(0) */ 6562 _st[0] *= _st[1]; /* 0x25053908: fmul st(1) */ 6563 _st[0] *= _st[2]; /* 0x2505390A: fmul st(2) */ 6564 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505390C: fsubr dword ptr [0x251517a4] */ 6565 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053912: fmul dword ptr [ebp + 0x4c] */ 6566 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053915: fadd dword ptr [ebp + 0x48] */ 6567 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x25053918: fstp dword ptr [ebp - 0x50] */ 6568 eax = MEM32(ebp + (-0x50)); /* 0x2505391B: mov eax, dword ptr [ebp - 0x50] */ 6569 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505391E: fstp st(0) */ 6570 MEM32(ecx + 0x4) = eax; /* 0x25053920: mov dword ptr [ecx + 4], eax */ 6571 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053923: fstp st(0) */ 6572 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25053925: fld dword ptr [ebp - 0x10] */ 6573 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x25053928: fstp dword ptr [ebp - 0x4c] */ 6574 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505392B: fld dword ptr [0x251517a4] */ 6575 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053931: fsub dword ptr [ebp - 8] */ 6576 fp_push(_st[0]); /* 0x25053934: fld st(0) */ 6577 fp_push(_st[0]); /* 0x25053936: fld st(0) */ 6578 _st[0] *= _st[1]; /* 0x25053938: fmul st(1) */ 6579 { double _v = fp_pop(); _st[1] *= _v; } /* 0x2505393A: fmulp st(2) */ 6580 fp_xch(1); /* 0x2505393C: fxch st(1) */ 6581 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505393E: fsubr dword ptr [0x251517a4] */ 6582 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053944: fmul dword ptr [ebp + 0x4c] */ 6583 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053947: fadd dword ptr [ebp + 0x48] */ 6584 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x2505394A: fst dword ptr [ebp + 0x18] */ 6585 fp_xch(1); /* 0x2505394D: fxch st(1) */ 6586 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505394F: fstp st(0) */ 6587 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x25053951: fstp dword ptr [ebp - 0x74] */ 6588 edx = MEM32(ebp + (-0x4C)); /* 0x25053954: mov edx, dword ptr [ebp - 0x4c] */ 6589 MEM32(ecx + 0x8) = edx; /* 0x25053957: mov dword ptr [ecx + 8], edx */ 6590 ecx = MEM32(ebp + (-0x78)); /* 0x2505395A: mov ecx, dword ptr [ebp - 0x78] */ 6591 edx = MEM32(ebp + (-0x74)); /* 0x2505395D: mov edx, dword ptr [ebp - 0x74] */ 6592 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6594 esp = esp - 0xCu; /* 0x25053960: sub esp, 0xc */ 6595 _flag_k = FK_CMP; 6596 eax = esp; /* 0x25053963: mov eax, esp */ 6597 MEM32(eax) = ecx; /* 0x25053965: mov dword ptr [eax], ecx */ 6598 ecx = MEM32(ebp + (-0x70)); /* 0x25053967: mov ecx, dword ptr [ebp - 0x70] */ 6599 MEM32(eax + 0x4) = edx; /* 0x2505396A: mov dword ptr [eax + 4], edx */ 6600 edx = MEM32(ebp + 0x14); /* 0x2505396D: mov edx, dword ptr [ebp + 0x14] */ 6601 PUSH32(esp, ebx); /* 0x25053970: push ebx */ 6602 MEM32(eax + 0x8) = ecx; /* 0x25053971: mov dword ptr [eax + 8], ecx */ 6603 eax = MEM32(ebp + 0x10); /* 0x25053974: mov eax, dword ptr [ebp + 0x10] */ 6604 ecx = MEM32(ebp + 0xC); /* 0x25053977: mov ecx, dword ptr [ebp + 0xc] */ 6605 PUSH32(esp, edx); /* 0x2505397A: push edx */ 6606 edx = MEM32(ebp + 0x8); /* 0x2505397B: mov edx, dword ptr [ebp + 8] */ 6607 PUSH32(esp, eax); /* 0x2505397E: push eax */ 6608 PUSH32(esp, ecx); /* 0x2505397F: push ecx */ 6609 PUSH32(esp, edx); /* 0x25053980: push edx */ 6610 ecx = esi; /* 0x25053981: mov ecx, esi */ 6611 RECOMP_ICALL(0x25053A90u); /* 0x25053983: call 0x25053a90 */ /* not lifted */ 6612 RECOMP_FLAGS_IN(); 6613 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25053988: fld dword ptr [ebp + 0x1c] */ 6614 eax = MEM32(ebp + 0x44); /* 0x2505398B: mov eax, dword ptr [ebp + 0x44] */ 6615 ecx = MEM32(ebp + (-0x24)); /* 0x2505398E: mov ecx, dword ptr [ebp - 0x24] */ 6616 edx = MEM32(ebp + (-0x1C)); /* 0x25053991: mov edx, dword ptr [ebp - 0x1c] */ 6617 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x25053994: fstp dword ptr [ebp - 0x90] */ 6618 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x2505399A: fld dword ptr [ebp + 0x24] */ 6619 MEM32(ebp + (-0x8C)) = eax; /* 0x2505399D: mov dword ptr [ebp - 0x8c], eax */ 6620 eax = MEM32(ebp + (-0xC)); /* 0x250539A3: mov eax, dword ptr [ebp - 0xc] */ 6621 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x250539A6: fstp dword ptr [ebp - 0x88] */ 6622 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250539AC: fld dword ptr [0x251517a4] */ 6623 MEM32(ebp + (-0x60)) = eax; /* 0x250539B2: mov dword ptr [ebp - 0x60], eax */ 6624 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x250539B5: fsub dword ptr [ebp - 0x20] */ 6625 eax = MEM32(ebp + 0x40); /* 0x250539B8: mov eax, dword ptr [ebp + 0x40] */ 6626 MEM32(ebp + (-0x40)) = edx; /* 0x250539BB: mov dword ptr [ebp - 0x40], edx */ 6627 edx = MEM32(ebp + (-0x4)); /* 0x250539BE: mov edx, dword ptr [ebp - 4] */ 6628 fp_push(_st[0]); /* 0x250539C1: fld st(0) */ 6629 MEM32(ebp + (-0x48)) = ecx; /* 0x250539C3: mov dword ptr [ebp - 0x48], ecx */ 6630 ecx = MEM32(ebp + 0x18); /* 0x250539C6: mov ecx, dword ptr [ebp + 0x18] */ 6631 fp_push(_st[0]); /* 0x250539C9: fld st(0) */ 6632 _st[0] *= _st[1]; /* 0x250539CB: fmul st(1) */ 6633 PUSH32(esp, edi); /* 0x250539CD: push edi */ 6634 PUSH32(esp, eax); /* 0x250539CE: push eax */ 6635 eax = MEM32(ebp + (-0x8C)); /* 0x250539CF: mov eax, dword ptr [ebp - 0x8c] */ 6636 _st[0] *= _st[2]; /* 0x250539D5: fmul st(2) */ 6637 MEM32(ebp + (-0x58)) = edx; /* 0x250539D7: mov dword ptr [ebp - 0x58], edx */ 6638 edx = MEM32(ebp + (-0x90)); /* 0x250539DA: mov edx, dword ptr [ebp - 0x90] */ 6639 MEM32(ebp + (-0x5C)) = ecx; /* 0x250539E0: mov dword ptr [ebp - 0x5c], ecx */ 6640 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250539E3: fsubr dword ptr [0x251517a4] */ 6641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6643 esp = esp - 0xCu; /* 0x250539E9: sub esp, 0xc */ 6644 _flag_k = FK_CMP; 6645 ecx = esp; /* 0x250539EC: mov ecx, esp */ 6646 MEM32(ecx) = edx; /* 0x250539EE: mov dword ptr [ecx], edx */ 6647 edx = MEM32(ebp + (-0x88)); /* 0x250539F0: mov edx, dword ptr [ebp - 0x88] */ 6648 MEM32(ecx + 0x4) = eax; /* 0x250539F6: mov dword ptr [ecx + 4], eax */ 6649 MEM32(ecx + 0x8) = edx; /* 0x250539F9: mov dword ptr [ecx + 8], edx */ 6650 ecx = MEM32(ebp + (-0x48)); /* 0x250539FC: mov ecx, dword ptr [ebp - 0x48] */ 6651 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250539FF: fmul dword ptr [ebp + 0x4c] */ 6652 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6654 esp = esp - 0xCu; /* 0x25053A02: sub esp, 0xc */ 6655 _flag_k = FK_CMP; 6656 eax = esp; /* 0x25053A05: mov eax, esp */ 6657 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053A07: fadd dword ptr [ebp + 0x48] */ 6658 MEM32(eax) = ecx; /* 0x25053A0A: mov dword ptr [eax], ecx */ 6659 ecx = MEM32(ebp + (-0x40)); /* 0x25053A0C: mov ecx, dword ptr [ebp - 0x40] */ 6660 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6662 esp = esp - 0xCu; /* 0x25053A0F: sub esp, 0xc */ 6663 _flag_k = FK_CMP; 6664 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25053A12: fstp dword ptr [ebp - 0x44] */ 6665 edx = MEM32(ebp + (-0x44)); /* 0x25053A15: mov edx, dword ptr [ebp - 0x44] */ 6666 MEM32(eax + 0x4) = edx; /* 0x25053A18: mov dword ptr [eax + 4], edx */ 6667 MEM32(eax + 0x8) = ecx; /* 0x25053A1B: mov dword ptr [eax + 8], ecx */ 6668 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A1E: fstp st(0) */ 6669 eax = MEM32(ebp + (-0x60)); /* 0x25053A20: mov eax, dword ptr [ebp - 0x60] */ 6670 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A23: fstp st(0) */ 6671 ecx = MEM32(ebp + (-0x5C)); /* 0x25053A25: mov ecx, dword ptr [ebp - 0x5c] */ 6672 edx = esp; /* 0x25053A28: mov edx, esp */ 6673 MEM32(edx) = eax; /* 0x25053A2A: mov dword ptr [edx], eax */ 6674 eax = MEM32(ebp + (-0x58)); /* 0x25053A2C: mov eax, dword ptr [ebp - 0x58] */ 6675 MEM32(edx + 0x4) = ecx; /* 0x25053A2F: mov dword ptr [edx + 4], ecx */ 6676 L_25053A32: 6677 ecx = MEM32(ebp + 0x14); /* 0x25053A32: mov ecx, dword ptr [ebp + 0x14] */ 6678 PUSH32(esp, ebx); /* 0x25053A35: push ebx */ 6679 PUSH32(esp, ecx); /* 0x25053A36: push ecx */ 6680 ecx = MEM32(ebp + 0x8); /* 0x25053A37: mov ecx, dword ptr [ebp + 8] */ 6681 MEM32(edx + 0x8) = eax; /* 0x25053A3A: mov dword ptr [edx + 8], eax */ 6682 edx = MEM32(ebp + 0x10); /* 0x25053A3D: mov edx, dword ptr [ebp + 0x10] */ 6683 eax = MEM32(ebp + 0xC); /* 0x25053A40: mov eax, dword ptr [ebp + 0xc] */ 6684 PUSH32(esp, edx); /* 0x25053A43: push edx */ 6685 PUSH32(esp, eax); /* 0x25053A44: push eax */ 6686 PUSH32(esp, ecx); /* 0x25053A45: push ecx */ 6687 ecx = esi; /* 0x25053A46: mov ecx, esi */ 6688 RECOMP_ICALL(0x25053A90u); /* 0x25053A48: call 0x25053a90 */ /* not lifted */ 6689 RECOMP_FLAGS_IN(); 6690 eax = MEM32(ebp + (-0x14)); /* 0x25053A4D: mov eax, dword ptr [ebp - 0x14] */ 6691 edx = MEM32(ebp + (-0x18)); /* 0x25053A50: mov edx, dword ptr [ebp - 0x18] */ 6692 ecx = MEM32(ebp + (-0x10)); /* 0x25053A53: mov ecx, dword ptr [ebp - 0x10] */ 6693 MEM32(ebp + (-0x8)) = eax; /* 0x25053A56: mov dword ptr [ebp - 8], eax */ 6694 eax = MEM32(ebp + 0x20); /* 0x25053A59: mov eax, dword ptr [ebp + 0x20] */ 6695 MEM32(ebp + (-0x20)) = eax; /* 0x25053A5C: mov dword ptr [ebp - 0x20], eax */ 6696 eax = MEM32(ebp + 0x3C); /* 0x25053A5F: mov eax, dword ptr [ebp + 0x3c] */ 6697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6698 eax = eax + 1; /* 0x25053A62: inc eax */ 6699 _flag_k = FK_INC; 6700 /* cmp eax, 0xAu */ /* 0x25053A63: cmp eax, 0xa */ 6701 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 6702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6703 _flag_k = FK_CMP; 6704 MEM32(ebp + (-0xC)) = edx; /* 0x25053A66: mov dword ptr [ebp - 0xc], edx */ 6705 edx = MEM32(ebp + 0x1C); /* 0x25053A69: mov edx, dword ptr [ebp + 0x1c] */ 6706 MEM32(ebp + (-0x4)) = ecx; /* 0x25053A6C: mov dword ptr [ebp - 4], ecx */ 6707 ecx = MEM32(ebp + 0x24); /* 0x25053A6F: mov ecx, dword ptr [ebp + 0x24] */ 6708 MEM32(ebp + (-0x24)) = edx; /* 0x25053A72: mov dword ptr [ebp - 0x24], edx */ 6709 MEM32(ebp + (-0x1C)) = ecx; /* 0x25053A75: mov dword ptr [ebp - 0x1c], ecx */ 6710 MEM32(ebp + 0x3C) = eax; /* 0x25053A78: mov dword ptr [ebp + 0x3c], eax */ 6711 RECOMP_BACKEDGE(); 6712 if (CMP_L(_flag_a, _flag_b)) goto L_2505375F; /* 0x25053A7B: jl 0x2505375f */ 6713 L_25053A81: 6714 edi = POP32_VAL(esp); /* 0x25053A81: pop edi */ 6715 esi = POP32_VAL(esp); /* 0x25053A82: pop esi */ 6716 ebx = POP32_VAL(esp); /* 0x25053A83: pop ebx */ 6717 esp = ebp; /* 0x25053A84: mov esp, ebp */ 6718 ebp = POP32_VAL(esp); /* 0x25053A86: pop ebp */ 6719 RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x25053A87: ret 0x48 */ 6720 RECOMP_REGS_OUT(); 6721 } 6722 6723 void sub_25053332(void) { 6724 int _fpu_cmp = 0; 6725 uint32_t _cf = 0; 6726 int _df = 1; 6727 uint32_t _flag_k = FK_NONE; 6728 uint32_t _flag_a = 0, _flag_b = 0; 6729 uint32_t _itail_tgt = 0; 6730 RECOMP_REGS_LOCALS 6731 RECOMP_ENTER(0x25053332u); 6732 6733 L_25053332: 6734 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25053332: fld dword ptr [ebp - 0x24] */ 6735 eax = MEM32(ebp + 0x3C); /* 0x25053335: mov eax, dword ptr [ebp + 0x3c] */ 6736 /* test eax, eax */ /* 0x25053338: test eax, eax */ 6737 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6738 _cf = 0; 6739 _flag_k = FK_TEST; 6740 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x2505333A: fadd dword ptr [ebp + 0x1c] */ 6741 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x2505333D: fstp dword ptr [ebp + 0x1c] */ 6742 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x25053340: fld dword ptr [ebp - 0x20] */ 6743 _st[0] += (double)*(float*)ADDR(ebp + 0x20); /* 0x25053343: fadd dword ptr [ebp + 0x20] */ 6744 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x25053346: fstp dword ptr [ebp + 0x20] */ 6745 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25053349: fld dword ptr [ebp - 0x1c] */ 6746 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x2505334C: fadd dword ptr [ebp + 0x24] */ 6747 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x2505334F: fstp dword ptr [ebp + 0x24] */ 6748 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25053352: fld dword ptr [ebp - 0xc] */ 6749 _st[0] += (double)*(float*)ADDR(ebp + 0x28); /* 0x25053355: fadd dword ptr [ebp + 0x28] */ 6750 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x28) = _v; } /* 0x25053358: fstp dword ptr [ebp + 0x28] */ 6751 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2505335B: fld dword ptr [ebp - 8] */ 6752 _st[0] += (double)*(float*)ADDR(ebp + 0x2C); /* 0x2505335E: fadd dword ptr [ebp + 0x2c] */ 6753 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x2C) = _v; } /* 0x25053361: fstp dword ptr [ebp + 0x2c] */ 6754 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x25053364: fld dword ptr [ebp - 4] */ 6755 _st[0] += (double)*(float*)ADDR(ebp + 0x30); /* 0x25053367: fadd dword ptr [ebp + 0x30] */ 6756 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x30) = _v; } /* 0x2505336A: fstp dword ptr [ebp + 0x30] */ 6757 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x2505336D: fld dword ptr [ebp + 0x28] */ 6758 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505344C; /* 0x25053370: jne 0x2505344c */ 6759 L_25053376: 6760 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x25053376: fstp dword ptr [ebp - 0x3c] */ 6761 edx = MEM32(ebp + 0x40); /* 0x25053379: mov edx, dword ptr [ebp + 0x40] */ 6762 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505337C: fld dword ptr [0x251517a4] */ 6763 eax = MEM32(ebp + (-0x18)); /* 0x25053382: mov eax, dword ptr [ebp - 0x18] */ 6764 _st[0] -= (double)*(float*)ADDR(ebp + 0x2C); /* 0x25053385: fsub dword ptr [ebp + 0x2c] */ 6765 ecx = MEM32(ebp + (-0x10)); /* 0x25053388: mov ecx, dword ptr [ebp - 0x10] */ 6766 PUSH32(esp, edi); /* 0x2505338B: push edi */ 6767 PUSH32(esp, edx); /* 0x2505338C: push edx */ 6768 fp_push(_st[0]); /* 0x2505338D: fld st(0) */ 6769 MEM32(ebp + (-0x48)) = eax; /* 0x2505338F: mov dword ptr [ebp - 0x48], eax */ 6770 fp_push(_st[0]); /* 0x25053392: fld st(0) */ 6771 _st[0] *= _st[1]; /* 0x25053394: fmul st(1) */ 6772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6774 esp = esp - 0xCu; /* 0x25053396: sub esp, 0xc */ 6775 _flag_k = FK_CMP; 6776 MEM32(ebp + (-0x40)) = ecx; /* 0x25053399: mov dword ptr [ebp - 0x40], ecx */ 6777 ecx = MEM32(ebp + (-0x3C)); /* 0x2505339C: mov ecx, dword ptr [ebp - 0x3c] */ 6778 _st[0] *= _st[2]; /* 0x2505339F: fmul st(2) */ 6779 eax = esp; /* 0x250533A1: mov eax, esp */ 6780 MEM32(eax) = ecx; /* 0x250533A3: mov dword ptr [eax], ecx */ 6781 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6783 esp = esp - 0xCu; /* 0x250533A5: sub esp, 0xc */ 6784 _flag_k = FK_CMP; 6785 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250533A8: fsubr dword ptr [0x251517a4] */ 6786 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250533AE: fmul dword ptr [ebp + 0x4c] */ 6787 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250533B1: fadd dword ptr [ebp + 0x48] */ 6788 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x250533B4: fstp dword ptr [ebp - 0x38] */ 6789 edx = MEM32(ebp + (-0x38)); /* 0x250533B7: mov edx, dword ptr [ebp - 0x38] */ 6790 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250533BA: fstp st(0) */ 6791 MEM32(eax + 0x4) = edx; /* 0x250533BC: mov dword ptr [eax + 4], edx */ 6792 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250533BF: fstp st(0) */ 6793 edx = esp; /* 0x250533C1: mov edx, esp */ 6794 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x250533C3: fld dword ptr [ebp + 0x30] */ 6795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6797 esp = esp - 0xCu; /* 0x250533C6: sub esp, 0xc */ 6798 _flag_k = FK_CMP; 6799 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250533C9: fstp dword ptr [ebp - 0x34] */ 6800 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x250533CC: fld dword ptr [ebp + 0x1c] */ 6801 ecx = MEM32(ebp + (-0x34)); /* 0x250533CF: mov ecx, dword ptr [ebp - 0x34] */ 6802 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x250533D2: fstp dword ptr [ebp - 0x60] */ 6803 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250533D5: fld dword ptr [0x251517a4] */ 6804 MEM32(eax + 0x8) = ecx; /* 0x250533DB: mov dword ptr [eax + 8], ecx */ 6805 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250533DE: fsub dword ptr [ebp + 0x20] */ 6806 eax = MEM32(ebp + (-0x60)); /* 0x250533E1: mov eax, dword ptr [ebp - 0x60] */ 6807 MEM32(edx) = eax; /* 0x250533E4: mov dword ptr [edx], eax */ 6808 fp_push(_st[0]); /* 0x250533E6: fld st(0) */ 6809 fp_push(_st[0]); /* 0x250533E8: fld st(0) */ 6810 _st[0] *= _st[1]; /* 0x250533EA: fmul st(1) */ 6811 _st[0] *= _st[2]; /* 0x250533EC: fmul st(2) */ 6812 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250533EE: fsubr dword ptr [0x251517a4] */ 6813 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250533F4: fmul dword ptr [ebp + 0x4c] */ 6814 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250533F7: fadd dword ptr [ebp + 0x48] */ 6815 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x250533FA: fstp dword ptr [ebp - 0x5c] */ 6816 ecx = MEM32(ebp + (-0x5C)); /* 0x250533FD: mov ecx, dword ptr [ebp - 0x5c] */ 6817 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053400: fstp st(0) */ 6818 MEM32(edx + 0x4) = ecx; /* 0x25053402: mov dword ptr [edx + 4], ecx */ 6819 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053405: fstp st(0) */ 6820 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25053407: fld dword ptr [ebp + 0x24] */ 6821 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x2505340A: fstp dword ptr [ebp - 0x58] */ 6822 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505340D: fld dword ptr [0x251517a4] */ 6823 eax = MEM32(ebp + (-0x58)); /* 0x25053413: mov eax, dword ptr [ebp - 0x58] */ 6824 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25053416: fsub dword ptr [ebp - 0x14] */ 6825 MEM32(edx + 0x8) = eax; /* 0x25053419: mov dword ptr [edx + 8], eax */ 6826 fp_push(_st[0]); /* 0x2505341C: fld st(0) */ 6827 fp_push(_st[0]); /* 0x2505341E: fld st(0) */ 6828 _st[0] *= _st[1]; /* 0x25053420: fmul st(1) */ 6829 _st[0] *= _st[2]; /* 0x25053422: fmul st(2) */ 6830 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053424: fsubr dword ptr [0x251517a4] */ 6831 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505342A: fmul dword ptr [ebp + 0x4c] */ 6832 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505342D: fadd dword ptr [ebp + 0x48] */ 6833 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25053430: fstp dword ptr [ebp - 0x44] */ 6834 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053433: fstp st(0) */ 6835 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053435: fstp st(0) */ 6836 edx = MEM32(ebp + (-0x48)); /* 0x25053437: mov edx, dword ptr [ebp - 0x48] */ 6837 eax = MEM32(ebp + (-0x44)); /* 0x2505343A: mov eax, dword ptr [ebp - 0x44] */ 6838 ecx = esp; /* 0x2505343D: mov ecx, esp */ 6839 MEM32(ecx) = edx; /* 0x2505343F: mov dword ptr [ecx], edx */ 6840 edx = MEM32(ebp + (-0x40)); /* 0x25053441: mov edx, dword ptr [ebp - 0x40] */ 6841 MEM32(ecx + 0x4) = eax; /* 0x25053444: mov dword ptr [ecx + 4], eax */ 6842 goto L_25053604; /* 0x25053447: jmp 0x25053604 */ 6843 L_2505344C: 6844 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x2505344C: fstp dword ptr [ebp - 0x90] */ 6845 eax = MEM32(ebp + 0x40); /* 0x25053452: mov eax, dword ptr [ebp + 0x40] */ 6846 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25053455: fld dword ptr [0x251517a4] */ 6847 ecx = MEM32(ebp + (-0x18)); /* 0x2505345B: mov ecx, dword ptr [ebp - 0x18] */ 6848 _st[0] -= (double)*(float*)ADDR(ebp + 0x2C); /* 0x2505345E: fsub dword ptr [ebp + 0x2c] */ 6849 edx = MEM32(ebp + (-0x10)); /* 0x25053461: mov edx, dword ptr [ebp - 0x10] */ 6850 PUSH32(esp, edi); /* 0x25053464: push edi */ 6851 PUSH32(esp, eax); /* 0x25053465: push eax */ 6852 fp_push(_st[0]); /* 0x25053466: fld st(0) */ 6853 MEM32(ebp + (-0x54)) = ecx; /* 0x25053468: mov dword ptr [ebp - 0x54], ecx */ 6854 fp_push(_st[0]); /* 0x2505346B: fld st(0) */ 6855 _st[0] *= _st[1]; /* 0x2505346D: fmul st(1) */ 6856 MEM32(ebp + (-0x4C)) = edx; /* 0x2505346F: mov dword ptr [ebp - 0x4c], edx */ 6857 edx = MEM32(ebp + (-0x90)); /* 0x25053472: mov edx, dword ptr [ebp - 0x90] */ 6858 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6860 esp = esp - 0xCu; /* 0x25053478: sub esp, 0xc */ 6861 _flag_k = FK_CMP; 6862 { double _v = fp_pop(); _st[1] *= _v; } /* 0x2505347B: fmulp st(2) */ 6863 ecx = esp; /* 0x2505347D: mov ecx, esp */ 6864 fp_xch(1); /* 0x2505347F: fxch st(1) */ 6865 MEM32(ecx) = edx; /* 0x25053481: mov dword ptr [ecx], edx */ 6866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6868 esp = esp - 0xCu; /* 0x25053483: sub esp, 0xc */ 6869 _flag_k = FK_CMP; 6870 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053486: fsubr dword ptr [0x251517a4] */ 6871 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505348C: fmul dword ptr [ebp + 0x4c] */ 6872 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505348F: fadd dword ptr [ebp + 0x48] */ 6873 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x44) = _v; } /* 0x25053492: fst dword ptr [ebp + 0x44] */ 6874 fp_xch(1); /* 0x25053495: fxch st(1) */ 6875 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053497: fstp st(0) */ 6876 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x25053499: fstp dword ptr [ebp - 0x8c] */ 6877 eax = MEM32(ebp + (-0x8C)); /* 0x2505349F: mov eax, dword ptr [ebp - 0x8c] */ 6878 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x250534A5: fld dword ptr [ebp + 0x30] */ 6879 MEM32(ecx + 0x4) = eax; /* 0x250534A8: mov dword ptr [ecx + 4], eax */ 6880 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x250534AB: fstp dword ptr [ebp - 0x88] */ 6881 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x250534B1: fld dword ptr [ebp + 0x1c] */ 6882 edx = MEM32(ebp + (-0x88)); /* 0x250534B4: mov edx, dword ptr [ebp - 0x88] */ 6883 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x250534BA: fstp dword ptr [ebp - 0x78] */ 6884 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250534BD: fld dword ptr [0x251517a4] */ 6885 MEM32(ecx + 0x8) = edx; /* 0x250534C3: mov dword ptr [ecx + 8], edx */ 6886 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250534C6: fsub dword ptr [ebp + 0x20] */ 6887 ecx = MEM32(ebp + (-0x78)); /* 0x250534C9: mov ecx, dword ptr [ebp - 0x78] */ 6888 eax = esp; /* 0x250534CC: mov eax, esp */ 6889 MEM32(eax) = ecx; /* 0x250534CE: mov dword ptr [eax], ecx */ 6890 fp_push(_st[0]); /* 0x250534D0: fld st(0) */ 6891 fp_push(_st[0]); /* 0x250534D2: fld st(0) */ 6892 _st[0] *= _st[1]; /* 0x250534D4: fmul st(1) */ 6893 _st[0] *= _st[2]; /* 0x250534D6: fmul st(2) */ 6894 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250534D8: fsubr dword ptr [0x251517a4] */ 6895 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250534DE: fmul dword ptr [ebp + 0x4c] */ 6896 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250534E1: fadd dword ptr [ebp + 0x48] */ 6897 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x250534E4: fstp dword ptr [ebp - 0x74] */ 6898 edx = MEM32(ebp + (-0x74)); /* 0x250534E7: mov edx, dword ptr [ebp - 0x74] */ 6899 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250534EA: fstp st(0) */ 6900 MEM32(eax + 0x4) = edx; /* 0x250534EC: mov dword ptr [eax + 4], edx */ 6901 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250534EF: fstp st(0) */ 6902 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250534F1: fld dword ptr [ebp + 0x24] */ 6903 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x250534F4: fstp dword ptr [ebp - 0x70] */ 6904 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250534F7: fld dword ptr [0x251517a4] */ 6905 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x250534FD: fsub dword ptr [ebp - 0x14] */ 6906 fp_push(_st[0]); /* 0x25053500: fld st(0) */ 6907 fp_push(_st[0]); /* 0x25053502: fld st(0) */ 6908 _st[0] *= _st[1]; /* 0x25053504: fmul st(1) */ 6909 { double _v = fp_pop(); _st[1] *= _v; } /* 0x25053506: fmulp st(2) */ 6910 fp_xch(1); /* 0x25053508: fxch st(1) */ 6911 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505350A: fsubr dword ptr [0x251517a4] */ 6912 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053510: fmul dword ptr [ebp + 0x4c] */ 6913 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053513: fadd dword ptr [ebp + 0x48] */ 6914 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x25053516: fst dword ptr [ebp + 0x18] */ 6915 fp_xch(1); /* 0x25053519: fxch st(1) */ 6916 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505351B: fstp st(0) */ 6917 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x2505351D: fstp dword ptr [ebp - 0x50] */ 6918 ecx = MEM32(ebp + (-0x70)); /* 0x25053520: mov ecx, dword ptr [ebp - 0x70] */ 6919 MEM32(eax + 0x8) = ecx; /* 0x25053523: mov dword ptr [eax + 8], ecx */ 6920 eax = MEM32(ebp + (-0x54)); /* 0x25053526: mov eax, dword ptr [ebp - 0x54] */ 6921 ecx = MEM32(ebp + (-0x50)); /* 0x25053529: mov ecx, dword ptr [ebp - 0x50] */ 6922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6924 esp = esp - 0xCu; /* 0x2505352C: sub esp, 0xc */ 6925 _flag_k = FK_CMP; 6926 edx = esp; /* 0x2505352F: mov edx, esp */ 6927 MEM32(edx) = eax; /* 0x25053531: mov dword ptr [edx], eax */ 6928 eax = MEM32(ebp + (-0x4C)); /* 0x25053533: mov eax, dword ptr [ebp - 0x4c] */ 6929 MEM32(edx + 0x4) = ecx; /* 0x25053536: mov dword ptr [edx + 4], ecx */ 6930 ecx = MEM32(ebp + 0x14); /* 0x25053539: mov ecx, dword ptr [ebp + 0x14] */ 6931 PUSH32(esp, ebx); /* 0x2505353C: push ebx */ 6932 PUSH32(esp, ecx); /* 0x2505353D: push ecx */ 6933 ecx = MEM32(ebp + 0x8); /* 0x2505353E: mov ecx, dword ptr [ebp + 8] */ 6934 MEM32(edx + 0x8) = eax; /* 0x25053541: mov dword ptr [edx + 8], eax */ 6935 edx = MEM32(ebp + 0x10); /* 0x25053544: mov edx, dword ptr [ebp + 0x10] */ 6936 eax = MEM32(ebp + 0xC); /* 0x25053547: mov eax, dword ptr [ebp + 0xc] */ 6937 PUSH32(esp, edx); /* 0x2505354A: push edx */ 6938 PUSH32(esp, eax); /* 0x2505354B: push eax */ 6939 PUSH32(esp, ecx); /* 0x2505354C: push ecx */ 6940 ecx = esi; /* 0x2505354D: mov ecx, esi */ 6941 RECOMP_ICALL(0x25053A90u); /* 0x2505354F: call 0x25053a90 */ /* not lifted */ 6942 RECOMP_FLAGS_IN(); 6943 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x25053554: fld dword ptr [ebp + 0x28] */ 6944 edx = MEM32(ebp + 0x44); /* 0x25053557: mov edx, dword ptr [ebp + 0x44] */ 6945 eax = MEM32(ebp + (-0x30)); /* 0x2505355A: mov eax, dword ptr [ebp - 0x30] */ 6946 ecx = MEM32(ebp + (-0x28)); /* 0x2505355D: mov ecx, dword ptr [ebp - 0x28] */ 6947 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x25053560: fstp dword ptr [ebp - 0x6c] */ 6948 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x25053563: fld dword ptr [ebp + 0x30] */ 6949 MEM32(ebp + (-0x68)) = edx; /* 0x25053566: mov dword ptr [ebp - 0x68], edx */ 6950 edx = MEM32(ebp + (-0x18)); /* 0x25053569: mov edx, dword ptr [ebp - 0x18] */ 6951 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x2505356C: fstp dword ptr [ebp - 0x64] */ 6952 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505356F: fld dword ptr [0x251517a4] */ 6953 MEM32(ebp + (-0x9C)) = edx; /* 0x25053575: mov dword ptr [ebp - 0x9c], edx */ 6954 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x2505357B: fsub dword ptr [ebp - 0x2c] */ 6955 edx = MEM32(ebp + 0x40); /* 0x2505357E: mov edx, dword ptr [ebp + 0x40] */ 6956 MEM32(ebp + (-0x7C)) = ecx; /* 0x25053581: mov dword ptr [ebp - 0x7c], ecx */ 6957 ecx = MEM32(ebp + (-0x10)); /* 0x25053584: mov ecx, dword ptr [ebp - 0x10] */ 6958 fp_push(_st[0]); /* 0x25053587: fld st(0) */ 6959 MEM32(ebp + (-0x84)) = eax; /* 0x25053589: mov dword ptr [ebp - 0x84], eax */ 6960 eax = MEM32(ebp + 0x18); /* 0x2505358F: mov eax, dword ptr [ebp + 0x18] */ 6961 fp_push(_st[0]); /* 0x25053592: fld st(0) */ 6962 _st[0] *= _st[1]; /* 0x25053594: fmul st(1) */ 6963 PUSH32(esp, edi); /* 0x25053596: push edi */ 6964 PUSH32(esp, edx); /* 0x25053597: push edx */ 6965 edx = MEM32(ebp + (-0x68)); /* 0x25053598: mov edx, dword ptr [ebp - 0x68] */ 6966 _st[0] *= _st[2]; /* 0x2505359B: fmul st(2) */ 6967 MEM32(ebp + (-0x94)) = ecx; /* 0x2505359D: mov dword ptr [ebp - 0x94], ecx */ 6968 ecx = MEM32(ebp + (-0x6C)); /* 0x250535A3: mov ecx, dword ptr [ebp - 0x6c] */ 6969 MEM32(ebp + (-0x98)) = eax; /* 0x250535A6: mov dword ptr [ebp - 0x98], eax */ 6970 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250535AC: fsubr dword ptr [0x251517a4] */ 6971 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6973 esp = esp - 0xCu; /* 0x250535B2: sub esp, 0xc */ 6974 _flag_k = FK_CMP; 6975 eax = esp; /* 0x250535B5: mov eax, esp */ 6976 MEM32(eax) = ecx; /* 0x250535B7: mov dword ptr [eax], ecx */ 6977 ecx = MEM32(ebp + (-0x64)); /* 0x250535B9: mov ecx, dword ptr [ebp - 0x64] */ 6978 MEM32(eax + 0x4) = edx; /* 0x250535BC: mov dword ptr [eax + 4], edx */ 6979 MEM32(eax + 0x8) = ecx; /* 0x250535BF: mov dword ptr [eax + 8], ecx */ 6980 eax = MEM32(ebp + (-0x84)); /* 0x250535C2: mov eax, dword ptr [ebp - 0x84] */ 6981 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250535C8: fmul dword ptr [ebp + 0x4c] */ 6982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6984 esp = esp - 0xCu; /* 0x250535CB: sub esp, 0xc */ 6985 _flag_k = FK_CMP; 6986 edx = esp; /* 0x250535CE: mov edx, esp */ 6987 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250535D0: fadd dword ptr [ebp + 0x48] */ 6988 MEM32(edx) = eax; /* 0x250535D3: mov dword ptr [edx], eax */ 6989 eax = MEM32(ebp + (-0x7C)); /* 0x250535D5: mov eax, dword ptr [ebp - 0x7c] */ 6990 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6992 esp = esp - 0xCu; /* 0x250535D8: sub esp, 0xc */ 6993 _flag_k = FK_CMP; 6994 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x250535DB: fstp dword ptr [ebp - 0x80] */ 6995 ecx = MEM32(ebp + (-0x80)); /* 0x250535DE: mov ecx, dword ptr [ebp - 0x80] */ 6996 MEM32(edx + 0x4) = ecx; /* 0x250535E1: mov dword ptr [edx + 4], ecx */ 6997 MEM32(edx + 0x8) = eax; /* 0x250535E4: mov dword ptr [edx + 8], eax */ 6998 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250535E7: fstp st(0) */ 6999 edx = MEM32(ebp + (-0x9C)); /* 0x250535E9: mov edx, dword ptr [ebp - 0x9c] */ 7000 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250535EF: fstp st(0) */ 7001 eax = MEM32(ebp + (-0x98)); /* 0x250535F1: mov eax, dword ptr [ebp - 0x98] */ 7002 ecx = esp; /* 0x250535F7: mov ecx, esp */ 7003 MEM32(ecx) = edx; /* 0x250535F9: mov dword ptr [ecx], edx */ 7004 edx = MEM32(ebp + (-0x94)); /* 0x250535FB: mov edx, dword ptr [ebp - 0x94] */ 7005 MEM32(ecx + 0x4) = eax; /* 0x25053601: mov dword ptr [ecx + 4], eax */ 7006 L_25053604: 7007 eax = MEM32(ebp + 0x14); /* 0x25053604: mov eax, dword ptr [ebp + 0x14] */ 7008 PUSH32(esp, ebx); /* 0x25053607: push ebx */ 7009 MEM32(ecx + 0x8) = edx; /* 0x25053608: mov dword ptr [ecx + 8], edx */ 7010 ecx = MEM32(ebp + 0x10); /* 0x2505360B: mov ecx, dword ptr [ebp + 0x10] */ 7011 edx = MEM32(ebp + 0xC); /* 0x2505360E: mov edx, dword ptr [ebp + 0xc] */ 7012 PUSH32(esp, eax); /* 0x25053611: push eax */ 7013 eax = MEM32(ebp + 0x8); /* 0x25053612: mov eax, dword ptr [ebp + 8] */ 7014 PUSH32(esp, ecx); /* 0x25053615: push ecx */ 7015 PUSH32(esp, edx); /* 0x25053616: push edx */ 7016 PUSH32(esp, eax); /* 0x25053617: push eax */ 7017 ecx = esi; /* 0x25053618: mov ecx, esi */ 7018 RECOMP_ICALL(0x25053A90u); /* 0x2505361A: call 0x25053a90 */ /* not lifted */ 7019 RECOMP_FLAGS_IN(); 7020 eax = MEM32(ebp + 0x24); /* 0x2505361F: mov eax, dword ptr [ebp + 0x24] */ 7021 ecx = MEM32(ebp + 0x1C); /* 0x25053622: mov ecx, dword ptr [ebp + 0x1c] */ 7022 edx = MEM32(ebp + 0x20); /* 0x25053625: mov edx, dword ptr [ebp + 0x20] */ 7023 MEM32(ebp + (-0x10)) = eax; /* 0x25053628: mov dword ptr [ebp - 0x10], eax */ 7024 eax = MEM32(ebp + 0x30); /* 0x2505362B: mov eax, dword ptr [ebp + 0x30] */ 7025 MEM32(ebp + (-0x28)) = eax; /* 0x2505362E: mov dword ptr [ebp - 0x28], eax */ 7026 eax = MEM32(ebp + 0x3C); /* 0x25053631: mov eax, dword ptr [ebp + 0x3c] */ 7027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7028 eax = eax + 1; /* 0x25053634: inc eax */ 7029 _flag_k = FK_INC; 7030 /* cmp eax, 0xAu */ /* 0x25053635: cmp eax, 0xa */ 7031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 7032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7033 _flag_k = FK_CMP; 7034 MEM32(ebp + (-0x18)) = ecx; /* 0x25053638: mov dword ptr [ebp - 0x18], ecx */ 7035 ecx = MEM32(ebp + 0x28); /* 0x2505363B: mov ecx, dword ptr [ebp + 0x28] */ 7036 MEM32(ebp + (-0x14)) = edx; /* 0x2505363E: mov dword ptr [ebp - 0x14], edx */ 7037 edx = MEM32(ebp + 0x2C); /* 0x25053641: mov edx, dword ptr [ebp + 0x2c] */ 7038 MEM32(ebp + (-0x30)) = ecx; /* 0x25053644: mov dword ptr [ebp - 0x30], ecx */ 7039 MEM32(ebp + (-0x2C)) = edx; /* 0x25053647: mov dword ptr [ebp - 0x2c], edx */ 7040 MEM32(ebp + 0x3C) = eax; /* 0x2505364A: mov dword ptr [ebp + 0x3c], eax */ 7041 RECOMP_BACKEDGE(); 7042 if (CMP_L(_flag_a, _flag_b)) goto L_25053332; /* 0x2505364D: jl 0x25053332 */ 7043 L_25053653: 7044 edi = POP32_VAL(esp); /* 0x25053653: pop edi */ 7045 esi = POP32_VAL(esp); /* 0x25053654: pop esi */ 7046 ebx = POP32_VAL(esp); /* 0x25053655: pop ebx */ 7047 esp = ebp; /* 0x25053656: mov esp, ebp */ 7048 ebp = POP32_VAL(esp); /* 0x25053658: pop ebp */ 7049 RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x25053659: ret 0x48 */ 7050 RECOMP_REGS_OUT(); 7051 } 7052 7053 void sub_25053604(void) { 7054 int _fpu_cmp = 0; 7055 uint32_t _cf = 0; 7056 int _df = 1; 7057 uint32_t _flag_k = FK_NONE; 7058 uint32_t _flag_a = 0, _flag_b = 0; 7059 uint32_t _itail_tgt = 0; 7060 RECOMP_REGS_LOCALS 7061 RECOMP_ENTER(0x25053604u); 7062 7063 goto L_25053604; 7064 L_25053332: 7065 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x25053332: fld dword ptr [ebp - 0x24] */ 7066 eax = MEM32(ebp + 0x3C); /* 0x25053335: mov eax, dword ptr [ebp + 0x3c] */ 7067 /* test eax, eax */ /* 0x25053338: test eax, eax */ 7068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7069 _cf = 0; 7070 _flag_k = FK_TEST; 7071 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x2505333A: fadd dword ptr [ebp + 0x1c] */ 7072 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x2505333D: fstp dword ptr [ebp + 0x1c] */ 7073 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x25053340: fld dword ptr [ebp - 0x20] */ 7074 _st[0] += (double)*(float*)ADDR(ebp + 0x20); /* 0x25053343: fadd dword ptr [ebp + 0x20] */ 7075 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x25053346: fstp dword ptr [ebp + 0x20] */ 7076 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x25053349: fld dword ptr [ebp - 0x1c] */ 7077 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x2505334C: fadd dword ptr [ebp + 0x24] */ 7078 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x2505334F: fstp dword ptr [ebp + 0x24] */ 7079 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25053352: fld dword ptr [ebp - 0xc] */ 7080 _st[0] += (double)*(float*)ADDR(ebp + 0x28); /* 0x25053355: fadd dword ptr [ebp + 0x28] */ 7081 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x28) = _v; } /* 0x25053358: fstp dword ptr [ebp + 0x28] */ 7082 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2505335B: fld dword ptr [ebp - 8] */ 7083 _st[0] += (double)*(float*)ADDR(ebp + 0x2C); /* 0x2505335E: fadd dword ptr [ebp + 0x2c] */ 7084 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x2C) = _v; } /* 0x25053361: fstp dword ptr [ebp + 0x2c] */ 7085 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x25053364: fld dword ptr [ebp - 4] */ 7086 _st[0] += (double)*(float*)ADDR(ebp + 0x30); /* 0x25053367: fadd dword ptr [ebp + 0x30] */ 7087 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x30) = _v; } /* 0x2505336A: fstp dword ptr [ebp + 0x30] */ 7088 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x2505336D: fld dword ptr [ebp + 0x28] */ 7089 if (TEST_NZ(_flag_a, _flag_b)) goto L_2505344C; /* 0x25053370: jne 0x2505344c */ 7090 L_25053376: 7091 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x25053376: fstp dword ptr [ebp - 0x3c] */ 7092 edx = MEM32(ebp + 0x40); /* 0x25053379: mov edx, dword ptr [ebp + 0x40] */ 7093 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505337C: fld dword ptr [0x251517a4] */ 7094 eax = MEM32(ebp + (-0x18)); /* 0x25053382: mov eax, dword ptr [ebp - 0x18] */ 7095 _st[0] -= (double)*(float*)ADDR(ebp + 0x2C); /* 0x25053385: fsub dword ptr [ebp + 0x2c] */ 7096 ecx = MEM32(ebp + (-0x10)); /* 0x25053388: mov ecx, dword ptr [ebp - 0x10] */ 7097 PUSH32(esp, edi); /* 0x2505338B: push edi */ 7098 PUSH32(esp, edx); /* 0x2505338C: push edx */ 7099 fp_push(_st[0]); /* 0x2505338D: fld st(0) */ 7100 MEM32(ebp + (-0x48)) = eax; /* 0x2505338F: mov dword ptr [ebp - 0x48], eax */ 7101 fp_push(_st[0]); /* 0x25053392: fld st(0) */ 7102 _st[0] *= _st[1]; /* 0x25053394: fmul st(1) */ 7103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7105 esp = esp - 0xCu; /* 0x25053396: sub esp, 0xc */ 7106 _flag_k = FK_CMP; 7107 MEM32(ebp + (-0x40)) = ecx; /* 0x25053399: mov dword ptr [ebp - 0x40], ecx */ 7108 ecx = MEM32(ebp + (-0x3C)); /* 0x2505339C: mov ecx, dword ptr [ebp - 0x3c] */ 7109 _st[0] *= _st[2]; /* 0x2505339F: fmul st(2) */ 7110 eax = esp; /* 0x250533A1: mov eax, esp */ 7111 MEM32(eax) = ecx; /* 0x250533A3: mov dword ptr [eax], ecx */ 7112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7114 esp = esp - 0xCu; /* 0x250533A5: sub esp, 0xc */ 7115 _flag_k = FK_CMP; 7116 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250533A8: fsubr dword ptr [0x251517a4] */ 7117 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250533AE: fmul dword ptr [ebp + 0x4c] */ 7118 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250533B1: fadd dword ptr [ebp + 0x48] */ 7119 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x250533B4: fstp dword ptr [ebp - 0x38] */ 7120 edx = MEM32(ebp + (-0x38)); /* 0x250533B7: mov edx, dword ptr [ebp - 0x38] */ 7121 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250533BA: fstp st(0) */ 7122 MEM32(eax + 0x4) = edx; /* 0x250533BC: mov dword ptr [eax + 4], edx */ 7123 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250533BF: fstp st(0) */ 7124 edx = esp; /* 0x250533C1: mov edx, esp */ 7125 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x250533C3: fld dword ptr [ebp + 0x30] */ 7126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7128 esp = esp - 0xCu; /* 0x250533C6: sub esp, 0xc */ 7129 _flag_k = FK_CMP; 7130 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x250533C9: fstp dword ptr [ebp - 0x34] */ 7131 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x250533CC: fld dword ptr [ebp + 0x1c] */ 7132 ecx = MEM32(ebp + (-0x34)); /* 0x250533CF: mov ecx, dword ptr [ebp - 0x34] */ 7133 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x60)) = _v; } /* 0x250533D2: fstp dword ptr [ebp - 0x60] */ 7134 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250533D5: fld dword ptr [0x251517a4] */ 7135 MEM32(eax + 0x8) = ecx; /* 0x250533DB: mov dword ptr [eax + 8], ecx */ 7136 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250533DE: fsub dword ptr [ebp + 0x20] */ 7137 eax = MEM32(ebp + (-0x60)); /* 0x250533E1: mov eax, dword ptr [ebp - 0x60] */ 7138 MEM32(edx) = eax; /* 0x250533E4: mov dword ptr [edx], eax */ 7139 fp_push(_st[0]); /* 0x250533E6: fld st(0) */ 7140 fp_push(_st[0]); /* 0x250533E8: fld st(0) */ 7141 _st[0] *= _st[1]; /* 0x250533EA: fmul st(1) */ 7142 _st[0] *= _st[2]; /* 0x250533EC: fmul st(2) */ 7143 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250533EE: fsubr dword ptr [0x251517a4] */ 7144 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250533F4: fmul dword ptr [ebp + 0x4c] */ 7145 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250533F7: fadd dword ptr [ebp + 0x48] */ 7146 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x250533FA: fstp dword ptr [ebp - 0x5c] */ 7147 ecx = MEM32(ebp + (-0x5C)); /* 0x250533FD: mov ecx, dword ptr [ebp - 0x5c] */ 7148 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053400: fstp st(0) */ 7149 MEM32(edx + 0x4) = ecx; /* 0x25053402: mov dword ptr [edx + 4], ecx */ 7150 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053405: fstp st(0) */ 7151 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25053407: fld dword ptr [ebp + 0x24] */ 7152 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x58)) = _v; } /* 0x2505340A: fstp dword ptr [ebp - 0x58] */ 7153 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505340D: fld dword ptr [0x251517a4] */ 7154 eax = MEM32(ebp + (-0x58)); /* 0x25053413: mov eax, dword ptr [ebp - 0x58] */ 7155 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25053416: fsub dword ptr [ebp - 0x14] */ 7156 MEM32(edx + 0x8) = eax; /* 0x25053419: mov dword ptr [edx + 8], eax */ 7157 fp_push(_st[0]); /* 0x2505341C: fld st(0) */ 7158 fp_push(_st[0]); /* 0x2505341E: fld st(0) */ 7159 _st[0] *= _st[1]; /* 0x25053420: fmul st(1) */ 7160 _st[0] *= _st[2]; /* 0x25053422: fmul st(2) */ 7161 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053424: fsubr dword ptr [0x251517a4] */ 7162 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505342A: fmul dword ptr [ebp + 0x4c] */ 7163 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505342D: fadd dword ptr [ebp + 0x48] */ 7164 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25053430: fstp dword ptr [ebp - 0x44] */ 7165 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053433: fstp st(0) */ 7166 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053435: fstp st(0) */ 7167 edx = MEM32(ebp + (-0x48)); /* 0x25053437: mov edx, dword ptr [ebp - 0x48] */ 7168 eax = MEM32(ebp + (-0x44)); /* 0x2505343A: mov eax, dword ptr [ebp - 0x44] */ 7169 ecx = esp; /* 0x2505343D: mov ecx, esp */ 7170 MEM32(ecx) = edx; /* 0x2505343F: mov dword ptr [ecx], edx */ 7171 edx = MEM32(ebp + (-0x40)); /* 0x25053441: mov edx, dword ptr [ebp - 0x40] */ 7172 MEM32(ecx + 0x4) = eax; /* 0x25053444: mov dword ptr [ecx + 4], eax */ 7173 goto L_25053604; /* 0x25053447: jmp 0x25053604 */ 7174 L_2505344C: 7175 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x2505344C: fstp dword ptr [ebp - 0x90] */ 7176 eax = MEM32(ebp + 0x40); /* 0x25053452: mov eax, dword ptr [ebp + 0x40] */ 7177 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25053455: fld dword ptr [0x251517a4] */ 7178 ecx = MEM32(ebp + (-0x18)); /* 0x2505345B: mov ecx, dword ptr [ebp - 0x18] */ 7179 _st[0] -= (double)*(float*)ADDR(ebp + 0x2C); /* 0x2505345E: fsub dword ptr [ebp + 0x2c] */ 7180 edx = MEM32(ebp + (-0x10)); /* 0x25053461: mov edx, dword ptr [ebp - 0x10] */ 7181 PUSH32(esp, edi); /* 0x25053464: push edi */ 7182 PUSH32(esp, eax); /* 0x25053465: push eax */ 7183 fp_push(_st[0]); /* 0x25053466: fld st(0) */ 7184 MEM32(ebp + (-0x54)) = ecx; /* 0x25053468: mov dword ptr [ebp - 0x54], ecx */ 7185 fp_push(_st[0]); /* 0x2505346B: fld st(0) */ 7186 _st[0] *= _st[1]; /* 0x2505346D: fmul st(1) */ 7187 MEM32(ebp + (-0x4C)) = edx; /* 0x2505346F: mov dword ptr [ebp - 0x4c], edx */ 7188 edx = MEM32(ebp + (-0x90)); /* 0x25053472: mov edx, dword ptr [ebp - 0x90] */ 7189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7191 esp = esp - 0xCu; /* 0x25053478: sub esp, 0xc */ 7192 _flag_k = FK_CMP; 7193 { double _v = fp_pop(); _st[1] *= _v; } /* 0x2505347B: fmulp st(2) */ 7194 ecx = esp; /* 0x2505347D: mov ecx, esp */ 7195 fp_xch(1); /* 0x2505347F: fxch st(1) */ 7196 MEM32(ecx) = edx; /* 0x25053481: mov dword ptr [ecx], edx */ 7197 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7199 esp = esp - 0xCu; /* 0x25053483: sub esp, 0xc */ 7200 _flag_k = FK_CMP; 7201 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053486: fsubr dword ptr [0x251517a4] */ 7202 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505348C: fmul dword ptr [ebp + 0x4c] */ 7203 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505348F: fadd dword ptr [ebp + 0x48] */ 7204 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x44) = _v; } /* 0x25053492: fst dword ptr [ebp + 0x44] */ 7205 fp_xch(1); /* 0x25053495: fxch st(1) */ 7206 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053497: fstp st(0) */ 7207 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8C)) = _v; } /* 0x25053499: fstp dword ptr [ebp - 0x8c] */ 7208 eax = MEM32(ebp + (-0x8C)); /* 0x2505349F: mov eax, dword ptr [ebp - 0x8c] */ 7209 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x250534A5: fld dword ptr [ebp + 0x30] */ 7210 MEM32(ecx + 0x4) = eax; /* 0x250534A8: mov dword ptr [ecx + 4], eax */ 7211 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x250534AB: fstp dword ptr [ebp - 0x88] */ 7212 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x250534B1: fld dword ptr [ebp + 0x1c] */ 7213 edx = MEM32(ebp + (-0x88)); /* 0x250534B4: mov edx, dword ptr [ebp - 0x88] */ 7214 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x250534BA: fstp dword ptr [ebp - 0x78] */ 7215 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250534BD: fld dword ptr [0x251517a4] */ 7216 MEM32(ecx + 0x8) = edx; /* 0x250534C3: mov dword ptr [ecx + 8], edx */ 7217 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250534C6: fsub dword ptr [ebp + 0x20] */ 7218 ecx = MEM32(ebp + (-0x78)); /* 0x250534C9: mov ecx, dword ptr [ebp - 0x78] */ 7219 eax = esp; /* 0x250534CC: mov eax, esp */ 7220 MEM32(eax) = ecx; /* 0x250534CE: mov dword ptr [eax], ecx */ 7221 fp_push(_st[0]); /* 0x250534D0: fld st(0) */ 7222 fp_push(_st[0]); /* 0x250534D2: fld st(0) */ 7223 _st[0] *= _st[1]; /* 0x250534D4: fmul st(1) */ 7224 _st[0] *= _st[2]; /* 0x250534D6: fmul st(2) */ 7225 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250534D8: fsubr dword ptr [0x251517a4] */ 7226 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250534DE: fmul dword ptr [ebp + 0x4c] */ 7227 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250534E1: fadd dword ptr [ebp + 0x48] */ 7228 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x250534E4: fstp dword ptr [ebp - 0x74] */ 7229 edx = MEM32(ebp + (-0x74)); /* 0x250534E7: mov edx, dword ptr [ebp - 0x74] */ 7230 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250534EA: fstp st(0) */ 7231 MEM32(eax + 0x4) = edx; /* 0x250534EC: mov dword ptr [eax + 4], edx */ 7232 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250534EF: fstp st(0) */ 7233 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250534F1: fld dword ptr [ebp + 0x24] */ 7234 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x70)) = _v; } /* 0x250534F4: fstp dword ptr [ebp - 0x70] */ 7235 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250534F7: fld dword ptr [0x251517a4] */ 7236 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x250534FD: fsub dword ptr [ebp - 0x14] */ 7237 fp_push(_st[0]); /* 0x25053500: fld st(0) */ 7238 fp_push(_st[0]); /* 0x25053502: fld st(0) */ 7239 _st[0] *= _st[1]; /* 0x25053504: fmul st(1) */ 7240 { double _v = fp_pop(); _st[1] *= _v; } /* 0x25053506: fmulp st(2) */ 7241 fp_xch(1); /* 0x25053508: fxch st(1) */ 7242 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505350A: fsubr dword ptr [0x251517a4] */ 7243 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053510: fmul dword ptr [ebp + 0x4c] */ 7244 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053513: fadd dword ptr [ebp + 0x48] */ 7245 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x25053516: fst dword ptr [ebp + 0x18] */ 7246 fp_xch(1); /* 0x25053519: fxch st(1) */ 7247 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505351B: fstp st(0) */ 7248 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x2505351D: fstp dword ptr [ebp - 0x50] */ 7249 ecx = MEM32(ebp + (-0x70)); /* 0x25053520: mov ecx, dword ptr [ebp - 0x70] */ 7250 MEM32(eax + 0x8) = ecx; /* 0x25053523: mov dword ptr [eax + 8], ecx */ 7251 eax = MEM32(ebp + (-0x54)); /* 0x25053526: mov eax, dword ptr [ebp - 0x54] */ 7252 ecx = MEM32(ebp + (-0x50)); /* 0x25053529: mov ecx, dword ptr [ebp - 0x50] */ 7253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7255 esp = esp - 0xCu; /* 0x2505352C: sub esp, 0xc */ 7256 _flag_k = FK_CMP; 7257 edx = esp; /* 0x2505352F: mov edx, esp */ 7258 MEM32(edx) = eax; /* 0x25053531: mov dword ptr [edx], eax */ 7259 eax = MEM32(ebp + (-0x4C)); /* 0x25053533: mov eax, dword ptr [ebp - 0x4c] */ 7260 MEM32(edx + 0x4) = ecx; /* 0x25053536: mov dword ptr [edx + 4], ecx */ 7261 ecx = MEM32(ebp + 0x14); /* 0x25053539: mov ecx, dword ptr [ebp + 0x14] */ 7262 PUSH32(esp, ebx); /* 0x2505353C: push ebx */ 7263 PUSH32(esp, ecx); /* 0x2505353D: push ecx */ 7264 ecx = MEM32(ebp + 0x8); /* 0x2505353E: mov ecx, dword ptr [ebp + 8] */ 7265 MEM32(edx + 0x8) = eax; /* 0x25053541: mov dword ptr [edx + 8], eax */ 7266 edx = MEM32(ebp + 0x10); /* 0x25053544: mov edx, dword ptr [ebp + 0x10] */ 7267 eax = MEM32(ebp + 0xC); /* 0x25053547: mov eax, dword ptr [ebp + 0xc] */ 7268 PUSH32(esp, edx); /* 0x2505354A: push edx */ 7269 PUSH32(esp, eax); /* 0x2505354B: push eax */ 7270 PUSH32(esp, ecx); /* 0x2505354C: push ecx */ 7271 ecx = esi; /* 0x2505354D: mov ecx, esi */ 7272 RECOMP_ICALL(0x25053A90u); /* 0x2505354F: call 0x25053a90 */ /* not lifted */ 7273 RECOMP_FLAGS_IN(); 7274 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x25053554: fld dword ptr [ebp + 0x28] */ 7275 edx = MEM32(ebp + 0x44); /* 0x25053557: mov edx, dword ptr [ebp + 0x44] */ 7276 eax = MEM32(ebp + (-0x30)); /* 0x2505355A: mov eax, dword ptr [ebp - 0x30] */ 7277 ecx = MEM32(ebp + (-0x28)); /* 0x2505355D: mov ecx, dword ptr [ebp - 0x28] */ 7278 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x25053560: fstp dword ptr [ebp - 0x6c] */ 7279 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x25053563: fld dword ptr [ebp + 0x30] */ 7280 MEM32(ebp + (-0x68)) = edx; /* 0x25053566: mov dword ptr [ebp - 0x68], edx */ 7281 edx = MEM32(ebp + (-0x18)); /* 0x25053569: mov edx, dword ptr [ebp - 0x18] */ 7282 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x2505356C: fstp dword ptr [ebp - 0x64] */ 7283 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505356F: fld dword ptr [0x251517a4] */ 7284 MEM32(ebp + (-0x9C)) = edx; /* 0x25053575: mov dword ptr [ebp - 0x9c], edx */ 7285 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x2505357B: fsub dword ptr [ebp - 0x2c] */ 7286 edx = MEM32(ebp + 0x40); /* 0x2505357E: mov edx, dword ptr [ebp + 0x40] */ 7287 MEM32(ebp + (-0x7C)) = ecx; /* 0x25053581: mov dword ptr [ebp - 0x7c], ecx */ 7288 ecx = MEM32(ebp + (-0x10)); /* 0x25053584: mov ecx, dword ptr [ebp - 0x10] */ 7289 fp_push(_st[0]); /* 0x25053587: fld st(0) */ 7290 MEM32(ebp + (-0x84)) = eax; /* 0x25053589: mov dword ptr [ebp - 0x84], eax */ 7291 eax = MEM32(ebp + 0x18); /* 0x2505358F: mov eax, dword ptr [ebp + 0x18] */ 7292 fp_push(_st[0]); /* 0x25053592: fld st(0) */ 7293 _st[0] *= _st[1]; /* 0x25053594: fmul st(1) */ 7294 PUSH32(esp, edi); /* 0x25053596: push edi */ 7295 PUSH32(esp, edx); /* 0x25053597: push edx */ 7296 edx = MEM32(ebp + (-0x68)); /* 0x25053598: mov edx, dword ptr [ebp - 0x68] */ 7297 _st[0] *= _st[2]; /* 0x2505359B: fmul st(2) */ 7298 MEM32(ebp + (-0x94)) = ecx; /* 0x2505359D: mov dword ptr [ebp - 0x94], ecx */ 7299 ecx = MEM32(ebp + (-0x6C)); /* 0x250535A3: mov ecx, dword ptr [ebp - 0x6c] */ 7300 MEM32(ebp + (-0x98)) = eax; /* 0x250535A6: mov dword ptr [ebp - 0x98], eax */ 7301 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250535AC: fsubr dword ptr [0x251517a4] */ 7302 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7304 esp = esp - 0xCu; /* 0x250535B2: sub esp, 0xc */ 7305 _flag_k = FK_CMP; 7306 eax = esp; /* 0x250535B5: mov eax, esp */ 7307 MEM32(eax) = ecx; /* 0x250535B7: mov dword ptr [eax], ecx */ 7308 ecx = MEM32(ebp + (-0x64)); /* 0x250535B9: mov ecx, dword ptr [ebp - 0x64] */ 7309 MEM32(eax + 0x4) = edx; /* 0x250535BC: mov dword ptr [eax + 4], edx */ 7310 MEM32(eax + 0x8) = ecx; /* 0x250535BF: mov dword ptr [eax + 8], ecx */ 7311 eax = MEM32(ebp + (-0x84)); /* 0x250535C2: mov eax, dword ptr [ebp - 0x84] */ 7312 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250535C8: fmul dword ptr [ebp + 0x4c] */ 7313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7315 esp = esp - 0xCu; /* 0x250535CB: sub esp, 0xc */ 7316 _flag_k = FK_CMP; 7317 edx = esp; /* 0x250535CE: mov edx, esp */ 7318 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250535D0: fadd dword ptr [ebp + 0x48] */ 7319 MEM32(edx) = eax; /* 0x250535D3: mov dword ptr [edx], eax */ 7320 eax = MEM32(ebp + (-0x7C)); /* 0x250535D5: mov eax, dword ptr [ebp - 0x7c] */ 7321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7323 esp = esp - 0xCu; /* 0x250535D8: sub esp, 0xc */ 7324 _flag_k = FK_CMP; 7325 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x250535DB: fstp dword ptr [ebp - 0x80] */ 7326 ecx = MEM32(ebp + (-0x80)); /* 0x250535DE: mov ecx, dword ptr [ebp - 0x80] */ 7327 MEM32(edx + 0x4) = ecx; /* 0x250535E1: mov dword ptr [edx + 4], ecx */ 7328 MEM32(edx + 0x8) = eax; /* 0x250535E4: mov dword ptr [edx + 8], eax */ 7329 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250535E7: fstp st(0) */ 7330 edx = MEM32(ebp + (-0x9C)); /* 0x250535E9: mov edx, dword ptr [ebp - 0x9c] */ 7331 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250535EF: fstp st(0) */ 7332 eax = MEM32(ebp + (-0x98)); /* 0x250535F1: mov eax, dword ptr [ebp - 0x98] */ 7333 ecx = esp; /* 0x250535F7: mov ecx, esp */ 7334 MEM32(ecx) = edx; /* 0x250535F9: mov dword ptr [ecx], edx */ 7335 edx = MEM32(ebp + (-0x94)); /* 0x250535FB: mov edx, dword ptr [ebp - 0x94] */ 7336 MEM32(ecx + 0x4) = eax; /* 0x25053601: mov dword ptr [ecx + 4], eax */ 7337 L_25053604: 7338 eax = MEM32(ebp + 0x14); /* 0x25053604: mov eax, dword ptr [ebp + 0x14] */ 7339 PUSH32(esp, ebx); /* 0x25053607: push ebx */ 7340 MEM32(ecx + 0x8) = edx; /* 0x25053608: mov dword ptr [ecx + 8], edx */ 7341 ecx = MEM32(ebp + 0x10); /* 0x2505360B: mov ecx, dword ptr [ebp + 0x10] */ 7342 edx = MEM32(ebp + 0xC); /* 0x2505360E: mov edx, dword ptr [ebp + 0xc] */ 7343 PUSH32(esp, eax); /* 0x25053611: push eax */ 7344 eax = MEM32(ebp + 0x8); /* 0x25053612: mov eax, dword ptr [ebp + 8] */ 7345 PUSH32(esp, ecx); /* 0x25053615: push ecx */ 7346 PUSH32(esp, edx); /* 0x25053616: push edx */ 7347 PUSH32(esp, eax); /* 0x25053617: push eax */ 7348 ecx = esi; /* 0x25053618: mov ecx, esi */ 7349 RECOMP_ICALL(0x25053A90u); /* 0x2505361A: call 0x25053a90 */ /* not lifted */ 7350 RECOMP_FLAGS_IN(); 7351 eax = MEM32(ebp + 0x24); /* 0x2505361F: mov eax, dword ptr [ebp + 0x24] */ 7352 ecx = MEM32(ebp + 0x1C); /* 0x25053622: mov ecx, dword ptr [ebp + 0x1c] */ 7353 edx = MEM32(ebp + 0x20); /* 0x25053625: mov edx, dword ptr [ebp + 0x20] */ 7354 MEM32(ebp + (-0x10)) = eax; /* 0x25053628: mov dword ptr [ebp - 0x10], eax */ 7355 eax = MEM32(ebp + 0x30); /* 0x2505362B: mov eax, dword ptr [ebp + 0x30] */ 7356 MEM32(ebp + (-0x28)) = eax; /* 0x2505362E: mov dword ptr [ebp - 0x28], eax */ 7357 eax = MEM32(ebp + 0x3C); /* 0x25053631: mov eax, dword ptr [ebp + 0x3c] */ 7358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7359 eax = eax + 1; /* 0x25053634: inc eax */ 7360 _flag_k = FK_INC; 7361 /* cmp eax, 0xAu */ /* 0x25053635: cmp eax, 0xa */ 7362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 7363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7364 _flag_k = FK_CMP; 7365 MEM32(ebp + (-0x18)) = ecx; /* 0x25053638: mov dword ptr [ebp - 0x18], ecx */ 7366 ecx = MEM32(ebp + 0x28); /* 0x2505363B: mov ecx, dword ptr [ebp + 0x28] */ 7367 MEM32(ebp + (-0x14)) = edx; /* 0x2505363E: mov dword ptr [ebp - 0x14], edx */ 7368 edx = MEM32(ebp + 0x2C); /* 0x25053641: mov edx, dword ptr [ebp + 0x2c] */ 7369 MEM32(ebp + (-0x30)) = ecx; /* 0x25053644: mov dword ptr [ebp - 0x30], ecx */ 7370 MEM32(ebp + (-0x2C)) = edx; /* 0x25053647: mov dword ptr [ebp - 0x2c], edx */ 7371 MEM32(ebp + 0x3C) = eax; /* 0x2505364A: mov dword ptr [ebp + 0x3c], eax */ 7372 RECOMP_BACKEDGE(); 7373 if (CMP_L(_flag_a, _flag_b)) goto L_25053332; /* 0x2505364D: jl 0x25053332 */ 7374 L_25053653: 7375 edi = POP32_VAL(esp); /* 0x25053653: pop edi */ 7376 esi = POP32_VAL(esp); /* 0x25053654: pop esi */ 7377 ebx = POP32_VAL(esp); /* 0x25053655: pop ebx */ 7378 esp = ebp; /* 0x25053656: mov esp, ebp */ 7379 ebp = POP32_VAL(esp); /* 0x25053658: pop ebp */ 7380 RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x25053659: ret 0x48 */ 7381 RECOMP_REGS_OUT(); 7382 } 7383 7384 void sub_2505375F(void) { 7385 int _fpu_cmp = 0; 7386 uint32_t _cf = 0; 7387 int _df = 1; 7388 uint32_t _flag_k = FK_NONE; 7389 uint32_t _flag_a = 0, _flag_b = 0; 7390 uint32_t _itail_tgt = 0; 7391 RECOMP_REGS_LOCALS 7392 RECOMP_ENTER(0x2505375Fu); 7393 7394 L_2505375F: 7395 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x2505375F: fld dword ptr [ebp - 0x3c] */ 7396 eax = MEM32(ebp + 0x3C); /* 0x25053762: mov eax, dword ptr [ebp + 0x3c] */ 7397 /* cmp eax, 9 */ /* 0x25053765: cmp eax, 9 */ 7398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 7399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7400 _flag_k = FK_CMP; 7401 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x25053768: fadd dword ptr [ebp - 0x18] */ 7402 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2505376B: fstp dword ptr [ebp - 0x18] */ 7403 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2505376E: fld dword ptr [ebp - 0x38] */ 7404 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25053771: fadd dword ptr [ebp - 0x14] */ 7405 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x25053774: fstp dword ptr [ebp - 0x14] */ 7406 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25053777: fld dword ptr [ebp - 0x34] */ 7407 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2505377A: fadd dword ptr [ebp - 0x10] */ 7408 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2505377D: fstp dword ptr [ebp - 0x10] */ 7409 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x25053780: fld dword ptr [ebp - 0x30] */ 7410 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x25053783: fadd dword ptr [ebp + 0x1c] */ 7411 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x25053786: fstp dword ptr [ebp + 0x1c] */ 7412 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x25053789: fld dword ptr [ebp - 0x2c] */ 7413 _st[0] += (double)*(float*)ADDR(ebp + 0x20); /* 0x2505378C: fadd dword ptr [ebp + 0x20] */ 7414 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x2505378F: fstp dword ptr [ebp + 0x20] */ 7415 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x25053792: fld dword ptr [ebp - 0x28] */ 7416 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x25053795: fadd dword ptr [ebp + 0x24] */ 7417 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x25053798: fstp dword ptr [ebp + 0x24] */ 7418 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x2505379B: fld dword ptr [ebp + 0x1c] */ 7419 if (CMP_NE(_flag_a, _flag_b)) goto L_25053892; /* 0x2505379E: jne 0x25053892 */ 7420 L_250537A4: 7421 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x28) = _v; } /* 0x250537A4: fstp dword ptr [ebp + 0x28] */ 7422 eax = MEM32(ebp + (-0x1C)); /* 0x250537A7: mov eax, dword ptr [ebp - 0x1c] */ 7423 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250537AA: fld dword ptr [0x251517a4] */ 7424 edx = MEM32(ebp + (-0x24)); /* 0x250537B0: mov edx, dword ptr [ebp - 0x24] */ 7425 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250537B3: fsub dword ptr [ebp + 0x20] */ 7426 ecx = MEM32(ebp + (-0xC)); /* 0x250537B6: mov ecx, dword ptr [ebp - 0xc] */ 7427 MEM32(ebp + (-0x94)) = eax; /* 0x250537B9: mov dword ptr [ebp - 0x94], eax */ 7428 eax = MEM32(ebp + 0x40); /* 0x250537BF: mov eax, dword ptr [ebp + 0x40] */ 7429 fp_push(_st[0]); /* 0x250537C2: fld st(0) */ 7430 MEM32(ebp + (-0x9C)) = edx; /* 0x250537C4: mov dword ptr [ebp - 0x9c], edx */ 7431 fp_push(_st[0]); /* 0x250537CA: fld st(0) */ 7432 _st[0] *= _st[1]; /* 0x250537CC: fmul st(1) */ 7433 edx = MEM32(ebp + (-0x4)); /* 0x250537CE: mov edx, dword ptr [ebp - 4] */ 7434 PUSH32(esp, edi); /* 0x250537D1: push edi */ 7435 PUSH32(esp, eax); /* 0x250537D2: push eax */ 7436 _st[0] *= _st[2]; /* 0x250537D3: fmul st(2) */ 7437 MEM32(ebp + (-0x84)) = ecx; /* 0x250537D5: mov dword ptr [ebp - 0x84], ecx */ 7438 MEM32(ebp + (-0x7C)) = edx; /* 0x250537DB: mov dword ptr [ebp - 0x7c], edx */ 7439 edx = MEM32(ebp + 0x28); /* 0x250537DE: mov edx, dword ptr [ebp + 0x28] */ 7440 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250537E1: fsubr dword ptr [0x251517a4] */ 7441 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7443 esp = esp - 0xCu; /* 0x250537E7: sub esp, 0xc */ 7444 _flag_k = FK_CMP; 7445 ecx = esp; /* 0x250537EA: mov ecx, esp */ 7446 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250537EC: fmul dword ptr [ebp + 0x4c] */ 7447 MEM32(ecx) = edx; /* 0x250537EF: mov dword ptr [ecx], edx */ 7448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7450 esp = esp - 0xCu; /* 0x250537F1: sub esp, 0xc */ 7451 _flag_k = FK_CMP; 7452 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250537F4: fadd dword ptr [ebp + 0x48] */ 7453 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x2C) = _v; } /* 0x250537F7: fstp dword ptr [ebp + 0x2c] */ 7454 eax = MEM32(ebp + 0x2C); /* 0x250537FA: mov eax, dword ptr [ebp + 0x2c] */ 7455 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250537FD: fstp st(0) */ 7456 MEM32(ecx + 0x4) = eax; /* 0x250537FF: mov dword ptr [ecx + 4], eax */ 7457 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053802: fstp st(0) */ 7458 eax = esp; /* 0x25053804: mov eax, esp */ 7459 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25053806: fld dword ptr [ebp + 0x24] */ 7460 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7462 esp = esp - 0xCu; /* 0x25053809: sub esp, 0xc */ 7463 _flag_k = FK_CMP; 7464 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x30) = _v; } /* 0x2505380C: fstp dword ptr [ebp + 0x30] */ 7465 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505380F: fld dword ptr [0x251517a4] */ 7466 edx = MEM32(ebp + 0x30); /* 0x25053815: mov edx, dword ptr [ebp + 0x30] */ 7467 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x25053818: fsub dword ptr [ebp - 0x20] */ 7468 MEM32(ecx + 0x8) = edx; /* 0x2505381B: mov dword ptr [ecx + 8], edx */ 7469 ecx = MEM32(ebp + (-0x9C)); /* 0x2505381E: mov ecx, dword ptr [ebp - 0x9c] */ 7470 MEM32(eax) = ecx; /* 0x25053824: mov dword ptr [eax], ecx */ 7471 fp_push(_st[0]); /* 0x25053826: fld st(0) */ 7472 ecx = MEM32(ebp + (-0x94)); /* 0x25053828: mov ecx, dword ptr [ebp - 0x94] */ 7473 fp_push(_st[0]); /* 0x2505382E: fld st(0) */ 7474 _st[0] *= _st[1]; /* 0x25053830: fmul st(1) */ 7475 _st[0] *= _st[2]; /* 0x25053832: fmul st(2) */ 7476 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053834: fsubr dword ptr [0x251517a4] */ 7477 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505383A: fmul dword ptr [ebp + 0x4c] */ 7478 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505383D: fadd dword ptr [ebp + 0x48] */ 7479 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x25053840: fstp dword ptr [ebp - 0x98] */ 7480 edx = MEM32(ebp + (-0x98)); /* 0x25053846: mov edx, dword ptr [ebp - 0x98] */ 7481 MEM32(eax + 0x4) = edx; /* 0x2505384C: mov dword ptr [eax + 4], edx */ 7482 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505384F: fstp st(0) */ 7483 MEM32(eax + 0x8) = ecx; /* 0x25053851: mov dword ptr [eax + 8], ecx */ 7484 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053854: fstp st(0) */ 7485 eax = MEM32(ebp + (-0x84)); /* 0x25053856: mov eax, dword ptr [ebp - 0x84] */ 7486 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505385C: fld dword ptr [0x251517a4] */ 7487 edx = esp; /* 0x25053862: mov edx, esp */ 7488 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053864: fsub dword ptr [ebp - 8] */ 7489 MEM32(edx) = eax; /* 0x25053867: mov dword ptr [edx], eax */ 7490 fp_push(_st[0]); /* 0x25053869: fld st(0) */ 7491 fp_push(_st[0]); /* 0x2505386B: fld st(0) */ 7492 _st[0] *= _st[1]; /* 0x2505386D: fmul st(1) */ 7493 _st[0] *= _st[2]; /* 0x2505386F: fmul st(2) */ 7494 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053871: fsubr dword ptr [0x251517a4] */ 7495 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053877: fmul dword ptr [ebp + 0x4c] */ 7496 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505387A: fadd dword ptr [ebp + 0x48] */ 7497 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x2505387D: fstp dword ptr [ebp - 0x80] */ 7498 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053880: fstp st(0) */ 7499 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053882: fstp st(0) */ 7500 ecx = MEM32(ebp + (-0x80)); /* 0x25053884: mov ecx, dword ptr [ebp - 0x80] */ 7501 eax = MEM32(ebp + (-0x7C)); /* 0x25053887: mov eax, dword ptr [ebp - 0x7c] */ 7502 MEM32(edx + 0x4) = ecx; /* 0x2505388A: mov dword ptr [edx + 4], ecx */ 7503 goto L_25053A32; /* 0x2505388D: jmp 0x25053a32 */ 7504 L_25053892: 7505 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x25053892: fstp dword ptr [ebp - 0x6c] */ 7506 ecx = MEM32(ebp + 0x40); /* 0x25053895: mov ecx, dword ptr [ebp + 0x40] */ 7507 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25053898: fld dword ptr [0x251517a4] */ 7508 edx = MEM32(ebp + (-0xC)); /* 0x2505389E: mov edx, dword ptr [ebp - 0xc] */ 7509 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250538A1: fsub dword ptr [ebp + 0x20] */ 7510 eax = MEM32(ebp + (-0x4)); /* 0x250538A4: mov eax, dword ptr [ebp - 4] */ 7511 PUSH32(esp, edi); /* 0x250538A7: push edi */ 7512 PUSH32(esp, ecx); /* 0x250538A8: push ecx */ 7513 fp_push(_st[0]); /* 0x250538A9: fld st(0) */ 7514 MEM32(ebp + (-0x78)) = edx; /* 0x250538AB: mov dword ptr [ebp - 0x78], edx */ 7515 fp_push(_st[0]); /* 0x250538AE: fld st(0) */ 7516 _st[0] *= _st[1]; /* 0x250538B0: fmul st(1) */ 7517 MEM32(ebp + (-0x70)) = eax; /* 0x250538B2: mov dword ptr [ebp - 0x70], eax */ 7518 eax = MEM32(ebp + (-0x6C)); /* 0x250538B5: mov eax, dword ptr [ebp - 0x6c] */ 7519 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7521 esp = esp - 0xCu; /* 0x250538B8: sub esp, 0xc */ 7522 _flag_k = FK_CMP; 7523 { double _v = fp_pop(); _st[1] *= _v; } /* 0x250538BB: fmulp st(2) */ 7524 edx = esp; /* 0x250538BD: mov edx, esp */ 7525 fp_xch(1); /* 0x250538BF: fxch st(1) */ 7526 MEM32(edx) = eax; /* 0x250538C1: mov dword ptr [edx], eax */ 7527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7529 esp = esp - 0xCu; /* 0x250538C3: sub esp, 0xc */ 7530 _flag_k = FK_CMP; 7531 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250538C6: fsubr dword ptr [0x251517a4] */ 7532 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250538CC: fmul dword ptr [ebp + 0x4c] */ 7533 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250538CF: fadd dword ptr [ebp + 0x48] */ 7534 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x44) = _v; } /* 0x250538D2: fst dword ptr [ebp + 0x44] */ 7535 fp_xch(1); /* 0x250538D5: fxch st(1) */ 7536 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250538D7: fstp st(0) */ 7537 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x250538D9: fstp dword ptr [ebp - 0x68] */ 7538 ecx = MEM32(ebp + (-0x68)); /* 0x250538DC: mov ecx, dword ptr [ebp - 0x68] */ 7539 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250538DF: fld dword ptr [ebp + 0x24] */ 7540 MEM32(edx + 0x4) = ecx; /* 0x250538E2: mov dword ptr [edx + 4], ecx */ 7541 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x250538E5: fstp dword ptr [ebp - 0x64] */ 7542 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x250538E8: fld dword ptr [ebp - 0x18] */ 7543 eax = MEM32(ebp + (-0x64)); /* 0x250538EB: mov eax, dword ptr [ebp - 0x64] */ 7544 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x250538EE: fstp dword ptr [ebp - 0x54] */ 7545 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250538F1: fld dword ptr [0x251517a4] */ 7546 MEM32(edx + 0x8) = eax; /* 0x250538F7: mov dword ptr [edx + 8], eax */ 7547 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x250538FA: fsub dword ptr [ebp - 0x14] */ 7548 edx = MEM32(ebp + (-0x54)); /* 0x250538FD: mov edx, dword ptr [ebp - 0x54] */ 7549 ecx = esp; /* 0x25053900: mov ecx, esp */ 7550 MEM32(ecx) = edx; /* 0x25053902: mov dword ptr [ecx], edx */ 7551 fp_push(_st[0]); /* 0x25053904: fld st(0) */ 7552 fp_push(_st[0]); /* 0x25053906: fld st(0) */ 7553 _st[0] *= _st[1]; /* 0x25053908: fmul st(1) */ 7554 _st[0] *= _st[2]; /* 0x2505390A: fmul st(2) */ 7555 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505390C: fsubr dword ptr [0x251517a4] */ 7556 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053912: fmul dword ptr [ebp + 0x4c] */ 7557 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053915: fadd dword ptr [ebp + 0x48] */ 7558 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x25053918: fstp dword ptr [ebp - 0x50] */ 7559 eax = MEM32(ebp + (-0x50)); /* 0x2505391B: mov eax, dword ptr [ebp - 0x50] */ 7560 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505391E: fstp st(0) */ 7561 MEM32(ecx + 0x4) = eax; /* 0x25053920: mov dword ptr [ecx + 4], eax */ 7562 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053923: fstp st(0) */ 7563 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25053925: fld dword ptr [ebp - 0x10] */ 7564 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x25053928: fstp dword ptr [ebp - 0x4c] */ 7565 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505392B: fld dword ptr [0x251517a4] */ 7566 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053931: fsub dword ptr [ebp - 8] */ 7567 fp_push(_st[0]); /* 0x25053934: fld st(0) */ 7568 fp_push(_st[0]); /* 0x25053936: fld st(0) */ 7569 _st[0] *= _st[1]; /* 0x25053938: fmul st(1) */ 7570 { double _v = fp_pop(); _st[1] *= _v; } /* 0x2505393A: fmulp st(2) */ 7571 fp_xch(1); /* 0x2505393C: fxch st(1) */ 7572 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505393E: fsubr dword ptr [0x251517a4] */ 7573 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053944: fmul dword ptr [ebp + 0x4c] */ 7574 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053947: fadd dword ptr [ebp + 0x48] */ 7575 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x2505394A: fst dword ptr [ebp + 0x18] */ 7576 fp_xch(1); /* 0x2505394D: fxch st(1) */ 7577 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505394F: fstp st(0) */ 7578 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x25053951: fstp dword ptr [ebp - 0x74] */ 7579 edx = MEM32(ebp + (-0x4C)); /* 0x25053954: mov edx, dword ptr [ebp - 0x4c] */ 7580 MEM32(ecx + 0x8) = edx; /* 0x25053957: mov dword ptr [ecx + 8], edx */ 7581 ecx = MEM32(ebp + (-0x78)); /* 0x2505395A: mov ecx, dword ptr [ebp - 0x78] */ 7582 edx = MEM32(ebp + (-0x74)); /* 0x2505395D: mov edx, dword ptr [ebp - 0x74] */ 7583 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7585 esp = esp - 0xCu; /* 0x25053960: sub esp, 0xc */ 7586 _flag_k = FK_CMP; 7587 eax = esp; /* 0x25053963: mov eax, esp */ 7588 MEM32(eax) = ecx; /* 0x25053965: mov dword ptr [eax], ecx */ 7589 ecx = MEM32(ebp + (-0x70)); /* 0x25053967: mov ecx, dword ptr [ebp - 0x70] */ 7590 MEM32(eax + 0x4) = edx; /* 0x2505396A: mov dword ptr [eax + 4], edx */ 7591 edx = MEM32(ebp + 0x14); /* 0x2505396D: mov edx, dword ptr [ebp + 0x14] */ 7592 PUSH32(esp, ebx); /* 0x25053970: push ebx */ 7593 MEM32(eax + 0x8) = ecx; /* 0x25053971: mov dword ptr [eax + 8], ecx */ 7594 eax = MEM32(ebp + 0x10); /* 0x25053974: mov eax, dword ptr [ebp + 0x10] */ 7595 ecx = MEM32(ebp + 0xC); /* 0x25053977: mov ecx, dword ptr [ebp + 0xc] */ 7596 PUSH32(esp, edx); /* 0x2505397A: push edx */ 7597 edx = MEM32(ebp + 0x8); /* 0x2505397B: mov edx, dword ptr [ebp + 8] */ 7598 PUSH32(esp, eax); /* 0x2505397E: push eax */ 7599 PUSH32(esp, ecx); /* 0x2505397F: push ecx */ 7600 PUSH32(esp, edx); /* 0x25053980: push edx */ 7601 ecx = esi; /* 0x25053981: mov ecx, esi */ 7602 RECOMP_ICALL(0x25053A90u); /* 0x25053983: call 0x25053a90 */ /* not lifted */ 7603 RECOMP_FLAGS_IN(); 7604 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25053988: fld dword ptr [ebp + 0x1c] */ 7605 eax = MEM32(ebp + 0x44); /* 0x2505398B: mov eax, dword ptr [ebp + 0x44] */ 7606 ecx = MEM32(ebp + (-0x24)); /* 0x2505398E: mov ecx, dword ptr [ebp - 0x24] */ 7607 edx = MEM32(ebp + (-0x1C)); /* 0x25053991: mov edx, dword ptr [ebp - 0x1c] */ 7608 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x25053994: fstp dword ptr [ebp - 0x90] */ 7609 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x2505399A: fld dword ptr [ebp + 0x24] */ 7610 MEM32(ebp + (-0x8C)) = eax; /* 0x2505399D: mov dword ptr [ebp - 0x8c], eax */ 7611 eax = MEM32(ebp + (-0xC)); /* 0x250539A3: mov eax, dword ptr [ebp - 0xc] */ 7612 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x250539A6: fstp dword ptr [ebp - 0x88] */ 7613 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250539AC: fld dword ptr [0x251517a4] */ 7614 MEM32(ebp + (-0x60)) = eax; /* 0x250539B2: mov dword ptr [ebp - 0x60], eax */ 7615 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x250539B5: fsub dword ptr [ebp - 0x20] */ 7616 eax = MEM32(ebp + 0x40); /* 0x250539B8: mov eax, dword ptr [ebp + 0x40] */ 7617 MEM32(ebp + (-0x40)) = edx; /* 0x250539BB: mov dword ptr [ebp - 0x40], edx */ 7618 edx = MEM32(ebp + (-0x4)); /* 0x250539BE: mov edx, dword ptr [ebp - 4] */ 7619 fp_push(_st[0]); /* 0x250539C1: fld st(0) */ 7620 MEM32(ebp + (-0x48)) = ecx; /* 0x250539C3: mov dword ptr [ebp - 0x48], ecx */ 7621 ecx = MEM32(ebp + 0x18); /* 0x250539C6: mov ecx, dword ptr [ebp + 0x18] */ 7622 fp_push(_st[0]); /* 0x250539C9: fld st(0) */ 7623 _st[0] *= _st[1]; /* 0x250539CB: fmul st(1) */ 7624 PUSH32(esp, edi); /* 0x250539CD: push edi */ 7625 PUSH32(esp, eax); /* 0x250539CE: push eax */ 7626 eax = MEM32(ebp + (-0x8C)); /* 0x250539CF: mov eax, dword ptr [ebp - 0x8c] */ 7627 _st[0] *= _st[2]; /* 0x250539D5: fmul st(2) */ 7628 MEM32(ebp + (-0x58)) = edx; /* 0x250539D7: mov dword ptr [ebp - 0x58], edx */ 7629 edx = MEM32(ebp + (-0x90)); /* 0x250539DA: mov edx, dword ptr [ebp - 0x90] */ 7630 MEM32(ebp + (-0x5C)) = ecx; /* 0x250539E0: mov dword ptr [ebp - 0x5c], ecx */ 7631 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250539E3: fsubr dword ptr [0x251517a4] */ 7632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7634 esp = esp - 0xCu; /* 0x250539E9: sub esp, 0xc */ 7635 _flag_k = FK_CMP; 7636 ecx = esp; /* 0x250539EC: mov ecx, esp */ 7637 MEM32(ecx) = edx; /* 0x250539EE: mov dword ptr [ecx], edx */ 7638 edx = MEM32(ebp + (-0x88)); /* 0x250539F0: mov edx, dword ptr [ebp - 0x88] */ 7639 MEM32(ecx + 0x4) = eax; /* 0x250539F6: mov dword ptr [ecx + 4], eax */ 7640 MEM32(ecx + 0x8) = edx; /* 0x250539F9: mov dword ptr [ecx + 8], edx */ 7641 ecx = MEM32(ebp + (-0x48)); /* 0x250539FC: mov ecx, dword ptr [ebp - 0x48] */ 7642 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250539FF: fmul dword ptr [ebp + 0x4c] */ 7643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7645 esp = esp - 0xCu; /* 0x25053A02: sub esp, 0xc */ 7646 _flag_k = FK_CMP; 7647 eax = esp; /* 0x25053A05: mov eax, esp */ 7648 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053A07: fadd dword ptr [ebp + 0x48] */ 7649 MEM32(eax) = ecx; /* 0x25053A0A: mov dword ptr [eax], ecx */ 7650 ecx = MEM32(ebp + (-0x40)); /* 0x25053A0C: mov ecx, dword ptr [ebp - 0x40] */ 7651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7653 esp = esp - 0xCu; /* 0x25053A0F: sub esp, 0xc */ 7654 _flag_k = FK_CMP; 7655 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25053A12: fstp dword ptr [ebp - 0x44] */ 7656 edx = MEM32(ebp + (-0x44)); /* 0x25053A15: mov edx, dword ptr [ebp - 0x44] */ 7657 MEM32(eax + 0x4) = edx; /* 0x25053A18: mov dword ptr [eax + 4], edx */ 7658 MEM32(eax + 0x8) = ecx; /* 0x25053A1B: mov dword ptr [eax + 8], ecx */ 7659 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A1E: fstp st(0) */ 7660 eax = MEM32(ebp + (-0x60)); /* 0x25053A20: mov eax, dword ptr [ebp - 0x60] */ 7661 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A23: fstp st(0) */ 7662 ecx = MEM32(ebp + (-0x5C)); /* 0x25053A25: mov ecx, dword ptr [ebp - 0x5c] */ 7663 edx = esp; /* 0x25053A28: mov edx, esp */ 7664 MEM32(edx) = eax; /* 0x25053A2A: mov dword ptr [edx], eax */ 7665 eax = MEM32(ebp + (-0x58)); /* 0x25053A2C: mov eax, dword ptr [ebp - 0x58] */ 7666 MEM32(edx + 0x4) = ecx; /* 0x25053A2F: mov dword ptr [edx + 4], ecx */ 7667 L_25053A32: 7668 ecx = MEM32(ebp + 0x14); /* 0x25053A32: mov ecx, dword ptr [ebp + 0x14] */ 7669 PUSH32(esp, ebx); /* 0x25053A35: push ebx */ 7670 PUSH32(esp, ecx); /* 0x25053A36: push ecx */ 7671 ecx = MEM32(ebp + 0x8); /* 0x25053A37: mov ecx, dword ptr [ebp + 8] */ 7672 MEM32(edx + 0x8) = eax; /* 0x25053A3A: mov dword ptr [edx + 8], eax */ 7673 edx = MEM32(ebp + 0x10); /* 0x25053A3D: mov edx, dword ptr [ebp + 0x10] */ 7674 eax = MEM32(ebp + 0xC); /* 0x25053A40: mov eax, dword ptr [ebp + 0xc] */ 7675 PUSH32(esp, edx); /* 0x25053A43: push edx */ 7676 PUSH32(esp, eax); /* 0x25053A44: push eax */ 7677 PUSH32(esp, ecx); /* 0x25053A45: push ecx */ 7678 ecx = esi; /* 0x25053A46: mov ecx, esi */ 7679 RECOMP_ICALL(0x25053A90u); /* 0x25053A48: call 0x25053a90 */ /* not lifted */ 7680 RECOMP_FLAGS_IN(); 7681 eax = MEM32(ebp + (-0x14)); /* 0x25053A4D: mov eax, dword ptr [ebp - 0x14] */ 7682 edx = MEM32(ebp + (-0x18)); /* 0x25053A50: mov edx, dword ptr [ebp - 0x18] */ 7683 ecx = MEM32(ebp + (-0x10)); /* 0x25053A53: mov ecx, dword ptr [ebp - 0x10] */ 7684 MEM32(ebp + (-0x8)) = eax; /* 0x25053A56: mov dword ptr [ebp - 8], eax */ 7685 eax = MEM32(ebp + 0x20); /* 0x25053A59: mov eax, dword ptr [ebp + 0x20] */ 7686 MEM32(ebp + (-0x20)) = eax; /* 0x25053A5C: mov dword ptr [ebp - 0x20], eax */ 7687 eax = MEM32(ebp + 0x3C); /* 0x25053A5F: mov eax, dword ptr [ebp + 0x3c] */ 7688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7689 eax = eax + 1; /* 0x25053A62: inc eax */ 7690 _flag_k = FK_INC; 7691 /* cmp eax, 0xAu */ /* 0x25053A63: cmp eax, 0xa */ 7692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 7693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7694 _flag_k = FK_CMP; 7695 MEM32(ebp + (-0xC)) = edx; /* 0x25053A66: mov dword ptr [ebp - 0xc], edx */ 7696 edx = MEM32(ebp + 0x1C); /* 0x25053A69: mov edx, dword ptr [ebp + 0x1c] */ 7697 MEM32(ebp + (-0x4)) = ecx; /* 0x25053A6C: mov dword ptr [ebp - 4], ecx */ 7698 ecx = MEM32(ebp + 0x24); /* 0x25053A6F: mov ecx, dword ptr [ebp + 0x24] */ 7699 MEM32(ebp + (-0x24)) = edx; /* 0x25053A72: mov dword ptr [ebp - 0x24], edx */ 7700 MEM32(ebp + (-0x1C)) = ecx; /* 0x25053A75: mov dword ptr [ebp - 0x1c], ecx */ 7701 MEM32(ebp + 0x3C) = eax; /* 0x25053A78: mov dword ptr [ebp + 0x3c], eax */ 7702 RECOMP_BACKEDGE(); 7703 if (CMP_L(_flag_a, _flag_b)) goto L_2505375F; /* 0x25053A7B: jl 0x2505375f */ 7704 L_25053A81: 7705 edi = POP32_VAL(esp); /* 0x25053A81: pop edi */ 7706 esi = POP32_VAL(esp); /* 0x25053A82: pop esi */ 7707 ebx = POP32_VAL(esp); /* 0x25053A83: pop ebx */ 7708 esp = ebp; /* 0x25053A84: mov esp, ebp */ 7709 ebp = POP32_VAL(esp); /* 0x25053A86: pop ebp */ 7710 RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x25053A87: ret 0x48 */ 7711 RECOMP_REGS_OUT(); 7712 } 7713 7714 void sub_25053A32(void) { 7715 int _fpu_cmp = 0; 7716 uint32_t _cf = 0; 7717 int _df = 1; 7718 uint32_t _flag_k = FK_NONE; 7719 uint32_t _flag_a = 0, _flag_b = 0; 7720 uint32_t _itail_tgt = 0; 7721 RECOMP_REGS_LOCALS 7722 RECOMP_ENTER(0x25053A32u); 7723 7724 goto L_25053A32; 7725 L_2505375F: 7726 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x2505375F: fld dword ptr [ebp - 0x3c] */ 7727 eax = MEM32(ebp + 0x3C); /* 0x25053762: mov eax, dword ptr [ebp + 0x3c] */ 7728 /* cmp eax, 9 */ /* 0x25053765: cmp eax, 9 */ 7729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 7730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7731 _flag_k = FK_CMP; 7732 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x25053768: fadd dword ptr [ebp - 0x18] */ 7733 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2505376B: fstp dword ptr [ebp - 0x18] */ 7734 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2505376E: fld dword ptr [ebp - 0x38] */ 7735 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25053771: fadd dword ptr [ebp - 0x14] */ 7736 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x25053774: fstp dword ptr [ebp - 0x14] */ 7737 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25053777: fld dword ptr [ebp - 0x34] */ 7738 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2505377A: fadd dword ptr [ebp - 0x10] */ 7739 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2505377D: fstp dword ptr [ebp - 0x10] */ 7740 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x25053780: fld dword ptr [ebp - 0x30] */ 7741 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x25053783: fadd dword ptr [ebp + 0x1c] */ 7742 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x25053786: fstp dword ptr [ebp + 0x1c] */ 7743 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x25053789: fld dword ptr [ebp - 0x2c] */ 7744 _st[0] += (double)*(float*)ADDR(ebp + 0x20); /* 0x2505378C: fadd dword ptr [ebp + 0x20] */ 7745 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x2505378F: fstp dword ptr [ebp + 0x20] */ 7746 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x25053792: fld dword ptr [ebp - 0x28] */ 7747 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x25053795: fadd dword ptr [ebp + 0x24] */ 7748 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x25053798: fstp dword ptr [ebp + 0x24] */ 7749 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x2505379B: fld dword ptr [ebp + 0x1c] */ 7750 if (CMP_NE(_flag_a, _flag_b)) goto L_25053892; /* 0x2505379E: jne 0x25053892 */ 7751 L_250537A4: 7752 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x28) = _v; } /* 0x250537A4: fstp dword ptr [ebp + 0x28] */ 7753 eax = MEM32(ebp + (-0x1C)); /* 0x250537A7: mov eax, dword ptr [ebp - 0x1c] */ 7754 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250537AA: fld dword ptr [0x251517a4] */ 7755 edx = MEM32(ebp + (-0x24)); /* 0x250537B0: mov edx, dword ptr [ebp - 0x24] */ 7756 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250537B3: fsub dword ptr [ebp + 0x20] */ 7757 ecx = MEM32(ebp + (-0xC)); /* 0x250537B6: mov ecx, dword ptr [ebp - 0xc] */ 7758 MEM32(ebp + (-0x94)) = eax; /* 0x250537B9: mov dword ptr [ebp - 0x94], eax */ 7759 eax = MEM32(ebp + 0x40); /* 0x250537BF: mov eax, dword ptr [ebp + 0x40] */ 7760 fp_push(_st[0]); /* 0x250537C2: fld st(0) */ 7761 MEM32(ebp + (-0x9C)) = edx; /* 0x250537C4: mov dword ptr [ebp - 0x9c], edx */ 7762 fp_push(_st[0]); /* 0x250537CA: fld st(0) */ 7763 _st[0] *= _st[1]; /* 0x250537CC: fmul st(1) */ 7764 edx = MEM32(ebp + (-0x4)); /* 0x250537CE: mov edx, dword ptr [ebp - 4] */ 7765 PUSH32(esp, edi); /* 0x250537D1: push edi */ 7766 PUSH32(esp, eax); /* 0x250537D2: push eax */ 7767 _st[0] *= _st[2]; /* 0x250537D3: fmul st(2) */ 7768 MEM32(ebp + (-0x84)) = ecx; /* 0x250537D5: mov dword ptr [ebp - 0x84], ecx */ 7769 MEM32(ebp + (-0x7C)) = edx; /* 0x250537DB: mov dword ptr [ebp - 0x7c], edx */ 7770 edx = MEM32(ebp + 0x28); /* 0x250537DE: mov edx, dword ptr [ebp + 0x28] */ 7771 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250537E1: fsubr dword ptr [0x251517a4] */ 7772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7774 esp = esp - 0xCu; /* 0x250537E7: sub esp, 0xc */ 7775 _flag_k = FK_CMP; 7776 ecx = esp; /* 0x250537EA: mov ecx, esp */ 7777 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250537EC: fmul dword ptr [ebp + 0x4c] */ 7778 MEM32(ecx) = edx; /* 0x250537EF: mov dword ptr [ecx], edx */ 7779 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7781 esp = esp - 0xCu; /* 0x250537F1: sub esp, 0xc */ 7782 _flag_k = FK_CMP; 7783 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250537F4: fadd dword ptr [ebp + 0x48] */ 7784 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x2C) = _v; } /* 0x250537F7: fstp dword ptr [ebp + 0x2c] */ 7785 eax = MEM32(ebp + 0x2C); /* 0x250537FA: mov eax, dword ptr [ebp + 0x2c] */ 7786 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250537FD: fstp st(0) */ 7787 MEM32(ecx + 0x4) = eax; /* 0x250537FF: mov dword ptr [ecx + 4], eax */ 7788 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053802: fstp st(0) */ 7789 eax = esp; /* 0x25053804: mov eax, esp */ 7790 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25053806: fld dword ptr [ebp + 0x24] */ 7791 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7793 esp = esp - 0xCu; /* 0x25053809: sub esp, 0xc */ 7794 _flag_k = FK_CMP; 7795 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x30) = _v; } /* 0x2505380C: fstp dword ptr [ebp + 0x30] */ 7796 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505380F: fld dword ptr [0x251517a4] */ 7797 edx = MEM32(ebp + 0x30); /* 0x25053815: mov edx, dword ptr [ebp + 0x30] */ 7798 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x25053818: fsub dword ptr [ebp - 0x20] */ 7799 MEM32(ecx + 0x8) = edx; /* 0x2505381B: mov dword ptr [ecx + 8], edx */ 7800 ecx = MEM32(ebp + (-0x9C)); /* 0x2505381E: mov ecx, dword ptr [ebp - 0x9c] */ 7801 MEM32(eax) = ecx; /* 0x25053824: mov dword ptr [eax], ecx */ 7802 fp_push(_st[0]); /* 0x25053826: fld st(0) */ 7803 ecx = MEM32(ebp + (-0x94)); /* 0x25053828: mov ecx, dword ptr [ebp - 0x94] */ 7804 fp_push(_st[0]); /* 0x2505382E: fld st(0) */ 7805 _st[0] *= _st[1]; /* 0x25053830: fmul st(1) */ 7806 _st[0] *= _st[2]; /* 0x25053832: fmul st(2) */ 7807 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053834: fsubr dword ptr [0x251517a4] */ 7808 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505383A: fmul dword ptr [ebp + 0x4c] */ 7809 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505383D: fadd dword ptr [ebp + 0x48] */ 7810 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x25053840: fstp dword ptr [ebp - 0x98] */ 7811 edx = MEM32(ebp + (-0x98)); /* 0x25053846: mov edx, dword ptr [ebp - 0x98] */ 7812 MEM32(eax + 0x4) = edx; /* 0x2505384C: mov dword ptr [eax + 4], edx */ 7813 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505384F: fstp st(0) */ 7814 MEM32(eax + 0x8) = ecx; /* 0x25053851: mov dword ptr [eax + 8], ecx */ 7815 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053854: fstp st(0) */ 7816 eax = MEM32(ebp + (-0x84)); /* 0x25053856: mov eax, dword ptr [ebp - 0x84] */ 7817 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505385C: fld dword ptr [0x251517a4] */ 7818 edx = esp; /* 0x25053862: mov edx, esp */ 7819 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053864: fsub dword ptr [ebp - 8] */ 7820 MEM32(edx) = eax; /* 0x25053867: mov dword ptr [edx], eax */ 7821 fp_push(_st[0]); /* 0x25053869: fld st(0) */ 7822 fp_push(_st[0]); /* 0x2505386B: fld st(0) */ 7823 _st[0] *= _st[1]; /* 0x2505386D: fmul st(1) */ 7824 _st[0] *= _st[2]; /* 0x2505386F: fmul st(2) */ 7825 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053871: fsubr dword ptr [0x251517a4] */ 7826 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053877: fmul dword ptr [ebp + 0x4c] */ 7827 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505387A: fadd dword ptr [ebp + 0x48] */ 7828 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x2505387D: fstp dword ptr [ebp - 0x80] */ 7829 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053880: fstp st(0) */ 7830 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053882: fstp st(0) */ 7831 ecx = MEM32(ebp + (-0x80)); /* 0x25053884: mov ecx, dword ptr [ebp - 0x80] */ 7832 eax = MEM32(ebp + (-0x7C)); /* 0x25053887: mov eax, dword ptr [ebp - 0x7c] */ 7833 MEM32(edx + 0x4) = ecx; /* 0x2505388A: mov dword ptr [edx + 4], ecx */ 7834 goto L_25053A32; /* 0x2505388D: jmp 0x25053a32 */ 7835 L_25053892: 7836 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x25053892: fstp dword ptr [ebp - 0x6c] */ 7837 ecx = MEM32(ebp + 0x40); /* 0x25053895: mov ecx, dword ptr [ebp + 0x40] */ 7838 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25053898: fld dword ptr [0x251517a4] */ 7839 edx = MEM32(ebp + (-0xC)); /* 0x2505389E: mov edx, dword ptr [ebp - 0xc] */ 7840 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250538A1: fsub dword ptr [ebp + 0x20] */ 7841 eax = MEM32(ebp + (-0x4)); /* 0x250538A4: mov eax, dword ptr [ebp - 4] */ 7842 PUSH32(esp, edi); /* 0x250538A7: push edi */ 7843 PUSH32(esp, ecx); /* 0x250538A8: push ecx */ 7844 fp_push(_st[0]); /* 0x250538A9: fld st(0) */ 7845 MEM32(ebp + (-0x78)) = edx; /* 0x250538AB: mov dword ptr [ebp - 0x78], edx */ 7846 fp_push(_st[0]); /* 0x250538AE: fld st(0) */ 7847 _st[0] *= _st[1]; /* 0x250538B0: fmul st(1) */ 7848 MEM32(ebp + (-0x70)) = eax; /* 0x250538B2: mov dword ptr [ebp - 0x70], eax */ 7849 eax = MEM32(ebp + (-0x6C)); /* 0x250538B5: mov eax, dword ptr [ebp - 0x6c] */ 7850 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7852 esp = esp - 0xCu; /* 0x250538B8: sub esp, 0xc */ 7853 _flag_k = FK_CMP; 7854 { double _v = fp_pop(); _st[1] *= _v; } /* 0x250538BB: fmulp st(2) */ 7855 edx = esp; /* 0x250538BD: mov edx, esp */ 7856 fp_xch(1); /* 0x250538BF: fxch st(1) */ 7857 MEM32(edx) = eax; /* 0x250538C1: mov dword ptr [edx], eax */ 7858 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7860 esp = esp - 0xCu; /* 0x250538C3: sub esp, 0xc */ 7861 _flag_k = FK_CMP; 7862 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250538C6: fsubr dword ptr [0x251517a4] */ 7863 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250538CC: fmul dword ptr [ebp + 0x4c] */ 7864 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250538CF: fadd dword ptr [ebp + 0x48] */ 7865 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x44) = _v; } /* 0x250538D2: fst dword ptr [ebp + 0x44] */ 7866 fp_xch(1); /* 0x250538D5: fxch st(1) */ 7867 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250538D7: fstp st(0) */ 7868 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x250538D9: fstp dword ptr [ebp - 0x68] */ 7869 ecx = MEM32(ebp + (-0x68)); /* 0x250538DC: mov ecx, dword ptr [ebp - 0x68] */ 7870 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250538DF: fld dword ptr [ebp + 0x24] */ 7871 MEM32(edx + 0x4) = ecx; /* 0x250538E2: mov dword ptr [edx + 4], ecx */ 7872 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x250538E5: fstp dword ptr [ebp - 0x64] */ 7873 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x250538E8: fld dword ptr [ebp - 0x18] */ 7874 eax = MEM32(ebp + (-0x64)); /* 0x250538EB: mov eax, dword ptr [ebp - 0x64] */ 7875 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x250538EE: fstp dword ptr [ebp - 0x54] */ 7876 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250538F1: fld dword ptr [0x251517a4] */ 7877 MEM32(edx + 0x8) = eax; /* 0x250538F7: mov dword ptr [edx + 8], eax */ 7878 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x250538FA: fsub dword ptr [ebp - 0x14] */ 7879 edx = MEM32(ebp + (-0x54)); /* 0x250538FD: mov edx, dword ptr [ebp - 0x54] */ 7880 ecx = esp; /* 0x25053900: mov ecx, esp */ 7881 MEM32(ecx) = edx; /* 0x25053902: mov dword ptr [ecx], edx */ 7882 fp_push(_st[0]); /* 0x25053904: fld st(0) */ 7883 fp_push(_st[0]); /* 0x25053906: fld st(0) */ 7884 _st[0] *= _st[1]; /* 0x25053908: fmul st(1) */ 7885 _st[0] *= _st[2]; /* 0x2505390A: fmul st(2) */ 7886 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505390C: fsubr dword ptr [0x251517a4] */ 7887 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053912: fmul dword ptr [ebp + 0x4c] */ 7888 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053915: fadd dword ptr [ebp + 0x48] */ 7889 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x25053918: fstp dword ptr [ebp - 0x50] */ 7890 eax = MEM32(ebp + (-0x50)); /* 0x2505391B: mov eax, dword ptr [ebp - 0x50] */ 7891 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505391E: fstp st(0) */ 7892 MEM32(ecx + 0x4) = eax; /* 0x25053920: mov dword ptr [ecx + 4], eax */ 7893 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053923: fstp st(0) */ 7894 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25053925: fld dword ptr [ebp - 0x10] */ 7895 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x25053928: fstp dword ptr [ebp - 0x4c] */ 7896 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505392B: fld dword ptr [0x251517a4] */ 7897 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053931: fsub dword ptr [ebp - 8] */ 7898 fp_push(_st[0]); /* 0x25053934: fld st(0) */ 7899 fp_push(_st[0]); /* 0x25053936: fld st(0) */ 7900 _st[0] *= _st[1]; /* 0x25053938: fmul st(1) */ 7901 { double _v = fp_pop(); _st[1] *= _v; } /* 0x2505393A: fmulp st(2) */ 7902 fp_xch(1); /* 0x2505393C: fxch st(1) */ 7903 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505393E: fsubr dword ptr [0x251517a4] */ 7904 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053944: fmul dword ptr [ebp + 0x4c] */ 7905 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053947: fadd dword ptr [ebp + 0x48] */ 7906 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x2505394A: fst dword ptr [ebp + 0x18] */ 7907 fp_xch(1); /* 0x2505394D: fxch st(1) */ 7908 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505394F: fstp st(0) */ 7909 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x25053951: fstp dword ptr [ebp - 0x74] */ 7910 edx = MEM32(ebp + (-0x4C)); /* 0x25053954: mov edx, dword ptr [ebp - 0x4c] */ 7911 MEM32(ecx + 0x8) = edx; /* 0x25053957: mov dword ptr [ecx + 8], edx */ 7912 ecx = MEM32(ebp + (-0x78)); /* 0x2505395A: mov ecx, dword ptr [ebp - 0x78] */ 7913 edx = MEM32(ebp + (-0x74)); /* 0x2505395D: mov edx, dword ptr [ebp - 0x74] */ 7914 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7916 esp = esp - 0xCu; /* 0x25053960: sub esp, 0xc */ 7917 _flag_k = FK_CMP; 7918 eax = esp; /* 0x25053963: mov eax, esp */ 7919 MEM32(eax) = ecx; /* 0x25053965: mov dword ptr [eax], ecx */ 7920 ecx = MEM32(ebp + (-0x70)); /* 0x25053967: mov ecx, dword ptr [ebp - 0x70] */ 7921 MEM32(eax + 0x4) = edx; /* 0x2505396A: mov dword ptr [eax + 4], edx */ 7922 edx = MEM32(ebp + 0x14); /* 0x2505396D: mov edx, dword ptr [ebp + 0x14] */ 7923 PUSH32(esp, ebx); /* 0x25053970: push ebx */ 7924 MEM32(eax + 0x8) = ecx; /* 0x25053971: mov dword ptr [eax + 8], ecx */ 7925 eax = MEM32(ebp + 0x10); /* 0x25053974: mov eax, dword ptr [ebp + 0x10] */ 7926 ecx = MEM32(ebp + 0xC); /* 0x25053977: mov ecx, dword ptr [ebp + 0xc] */ 7927 PUSH32(esp, edx); /* 0x2505397A: push edx */ 7928 edx = MEM32(ebp + 0x8); /* 0x2505397B: mov edx, dword ptr [ebp + 8] */ 7929 PUSH32(esp, eax); /* 0x2505397E: push eax */ 7930 PUSH32(esp, ecx); /* 0x2505397F: push ecx */ 7931 PUSH32(esp, edx); /* 0x25053980: push edx */ 7932 ecx = esi; /* 0x25053981: mov ecx, esi */ 7933 RECOMP_ICALL(0x25053A90u); /* 0x25053983: call 0x25053a90 */ /* not lifted */ 7934 RECOMP_FLAGS_IN(); 7935 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25053988: fld dword ptr [ebp + 0x1c] */ 7936 eax = MEM32(ebp + 0x44); /* 0x2505398B: mov eax, dword ptr [ebp + 0x44] */ 7937 ecx = MEM32(ebp + (-0x24)); /* 0x2505398E: mov ecx, dword ptr [ebp - 0x24] */ 7938 edx = MEM32(ebp + (-0x1C)); /* 0x25053991: mov edx, dword ptr [ebp - 0x1c] */ 7939 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x25053994: fstp dword ptr [ebp - 0x90] */ 7940 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x2505399A: fld dword ptr [ebp + 0x24] */ 7941 MEM32(ebp + (-0x8C)) = eax; /* 0x2505399D: mov dword ptr [ebp - 0x8c], eax */ 7942 eax = MEM32(ebp + (-0xC)); /* 0x250539A3: mov eax, dword ptr [ebp - 0xc] */ 7943 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x250539A6: fstp dword ptr [ebp - 0x88] */ 7944 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250539AC: fld dword ptr [0x251517a4] */ 7945 MEM32(ebp + (-0x60)) = eax; /* 0x250539B2: mov dword ptr [ebp - 0x60], eax */ 7946 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x250539B5: fsub dword ptr [ebp - 0x20] */ 7947 eax = MEM32(ebp + 0x40); /* 0x250539B8: mov eax, dword ptr [ebp + 0x40] */ 7948 MEM32(ebp + (-0x40)) = edx; /* 0x250539BB: mov dword ptr [ebp - 0x40], edx */ 7949 edx = MEM32(ebp + (-0x4)); /* 0x250539BE: mov edx, dword ptr [ebp - 4] */ 7950 fp_push(_st[0]); /* 0x250539C1: fld st(0) */ 7951 MEM32(ebp + (-0x48)) = ecx; /* 0x250539C3: mov dword ptr [ebp - 0x48], ecx */ 7952 ecx = MEM32(ebp + 0x18); /* 0x250539C6: mov ecx, dword ptr [ebp + 0x18] */ 7953 fp_push(_st[0]); /* 0x250539C9: fld st(0) */ 7954 _st[0] *= _st[1]; /* 0x250539CB: fmul st(1) */ 7955 PUSH32(esp, edi); /* 0x250539CD: push edi */ 7956 PUSH32(esp, eax); /* 0x250539CE: push eax */ 7957 eax = MEM32(ebp + (-0x8C)); /* 0x250539CF: mov eax, dword ptr [ebp - 0x8c] */ 7958 _st[0] *= _st[2]; /* 0x250539D5: fmul st(2) */ 7959 MEM32(ebp + (-0x58)) = edx; /* 0x250539D7: mov dword ptr [ebp - 0x58], edx */ 7960 edx = MEM32(ebp + (-0x90)); /* 0x250539DA: mov edx, dword ptr [ebp - 0x90] */ 7961 MEM32(ebp + (-0x5C)) = ecx; /* 0x250539E0: mov dword ptr [ebp - 0x5c], ecx */ 7962 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250539E3: fsubr dword ptr [0x251517a4] */ 7963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7965 esp = esp - 0xCu; /* 0x250539E9: sub esp, 0xc */ 7966 _flag_k = FK_CMP; 7967 ecx = esp; /* 0x250539EC: mov ecx, esp */ 7968 MEM32(ecx) = edx; /* 0x250539EE: mov dword ptr [ecx], edx */ 7969 edx = MEM32(ebp + (-0x88)); /* 0x250539F0: mov edx, dword ptr [ebp - 0x88] */ 7970 MEM32(ecx + 0x4) = eax; /* 0x250539F6: mov dword ptr [ecx + 4], eax */ 7971 MEM32(ecx + 0x8) = edx; /* 0x250539F9: mov dword ptr [ecx + 8], edx */ 7972 ecx = MEM32(ebp + (-0x48)); /* 0x250539FC: mov ecx, dword ptr [ebp - 0x48] */ 7973 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250539FF: fmul dword ptr [ebp + 0x4c] */ 7974 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7976 esp = esp - 0xCu; /* 0x25053A02: sub esp, 0xc */ 7977 _flag_k = FK_CMP; 7978 eax = esp; /* 0x25053A05: mov eax, esp */ 7979 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053A07: fadd dword ptr [ebp + 0x48] */ 7980 MEM32(eax) = ecx; /* 0x25053A0A: mov dword ptr [eax], ecx */ 7981 ecx = MEM32(ebp + (-0x40)); /* 0x25053A0C: mov ecx, dword ptr [ebp - 0x40] */ 7982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7984 esp = esp - 0xCu; /* 0x25053A0F: sub esp, 0xc */ 7985 _flag_k = FK_CMP; 7986 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25053A12: fstp dword ptr [ebp - 0x44] */ 7987 edx = MEM32(ebp + (-0x44)); /* 0x25053A15: mov edx, dword ptr [ebp - 0x44] */ 7988 MEM32(eax + 0x4) = edx; /* 0x25053A18: mov dword ptr [eax + 4], edx */ 7989 MEM32(eax + 0x8) = ecx; /* 0x25053A1B: mov dword ptr [eax + 8], ecx */ 7990 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A1E: fstp st(0) */ 7991 eax = MEM32(ebp + (-0x60)); /* 0x25053A20: mov eax, dword ptr [ebp - 0x60] */ 7992 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A23: fstp st(0) */ 7993 ecx = MEM32(ebp + (-0x5C)); /* 0x25053A25: mov ecx, dword ptr [ebp - 0x5c] */ 7994 edx = esp; /* 0x25053A28: mov edx, esp */ 7995 MEM32(edx) = eax; /* 0x25053A2A: mov dword ptr [edx], eax */ 7996 eax = MEM32(ebp + (-0x58)); /* 0x25053A2C: mov eax, dword ptr [ebp - 0x58] */ 7997 MEM32(edx + 0x4) = ecx; /* 0x25053A2F: mov dword ptr [edx + 4], ecx */ 7998 L_25053A32: 7999 ecx = MEM32(ebp + 0x14); /* 0x25053A32: mov ecx, dword ptr [ebp + 0x14] */ 8000 PUSH32(esp, ebx); /* 0x25053A35: push ebx */ 8001 PUSH32(esp, ecx); /* 0x25053A36: push ecx */ 8002 ecx = MEM32(ebp + 0x8); /* 0x25053A37: mov ecx, dword ptr [ebp + 8] */ 8003 MEM32(edx + 0x8) = eax; /* 0x25053A3A: mov dword ptr [edx + 8], eax */ 8004 edx = MEM32(ebp + 0x10); /* 0x25053A3D: mov edx, dword ptr [ebp + 0x10] */ 8005 eax = MEM32(ebp + 0xC); /* 0x25053A40: mov eax, dword ptr [ebp + 0xc] */ 8006 PUSH32(esp, edx); /* 0x25053A43: push edx */ 8007 PUSH32(esp, eax); /* 0x25053A44: push eax */ 8008 PUSH32(esp, ecx); /* 0x25053A45: push ecx */ 8009 ecx = esi; /* 0x25053A46: mov ecx, esi */ 8010 RECOMP_ICALL(0x25053A90u); /* 0x25053A48: call 0x25053a90 */ /* not lifted */ 8011 RECOMP_FLAGS_IN(); 8012 eax = MEM32(ebp + (-0x14)); /* 0x25053A4D: mov eax, dword ptr [ebp - 0x14] */ 8013 edx = MEM32(ebp + (-0x18)); /* 0x25053A50: mov edx, dword ptr [ebp - 0x18] */ 8014 ecx = MEM32(ebp + (-0x10)); /* 0x25053A53: mov ecx, dword ptr [ebp - 0x10] */ 8015 MEM32(ebp + (-0x8)) = eax; /* 0x25053A56: mov dword ptr [ebp - 8], eax */ 8016 eax = MEM32(ebp + 0x20); /* 0x25053A59: mov eax, dword ptr [ebp + 0x20] */ 8017 MEM32(ebp + (-0x20)) = eax; /* 0x25053A5C: mov dword ptr [ebp - 0x20], eax */ 8018 eax = MEM32(ebp + 0x3C); /* 0x25053A5F: mov eax, dword ptr [ebp + 0x3c] */ 8019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8020 eax = eax + 1; /* 0x25053A62: inc eax */ 8021 _flag_k = FK_INC; 8022 /* cmp eax, 0xAu */ /* 0x25053A63: cmp eax, 0xa */ 8023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 8024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8025 _flag_k = FK_CMP; 8026 MEM32(ebp + (-0xC)) = edx; /* 0x25053A66: mov dword ptr [ebp - 0xc], edx */ 8027 edx = MEM32(ebp + 0x1C); /* 0x25053A69: mov edx, dword ptr [ebp + 0x1c] */ 8028 MEM32(ebp + (-0x4)) = ecx; /* 0x25053A6C: mov dword ptr [ebp - 4], ecx */ 8029 ecx = MEM32(ebp + 0x24); /* 0x25053A6F: mov ecx, dword ptr [ebp + 0x24] */ 8030 MEM32(ebp + (-0x24)) = edx; /* 0x25053A72: mov dword ptr [ebp - 0x24], edx */ 8031 MEM32(ebp + (-0x1C)) = ecx; /* 0x25053A75: mov dword ptr [ebp - 0x1c], ecx */ 8032 MEM32(ebp + 0x3C) = eax; /* 0x25053A78: mov dword ptr [ebp + 0x3c], eax */ 8033 RECOMP_BACKEDGE(); 8034 if (CMP_L(_flag_a, _flag_b)) goto L_2505375F; /* 0x25053A7B: jl 0x2505375f */ 8035 L_25053A81: 8036 edi = POP32_VAL(esp); /* 0x25053A81: pop edi */ 8037 esi = POP32_VAL(esp); /* 0x25053A82: pop esi */ 8038 ebx = POP32_VAL(esp); /* 0x25053A83: pop ebx */ 8039 esp = ebp; /* 0x25053A84: mov esp, ebp */ 8040 ebp = POP32_VAL(esp); /* 0x25053A86: pop ebp */ 8041 RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x25053A87: ret 0x48 */ 8042 RECOMP_REGS_OUT(); 8043 } 8044 8045 void sub_25053A69(void) { 8046 int _fpu_cmp = 0; 8047 uint32_t _cf = 0; 8048 int _df = 1; 8049 uint32_t _flag_k = FK_NONE; 8050 uint32_t _flag_a = 0, _flag_b = 0; 8051 uint32_t _itail_tgt = 0; 8052 RECOMP_REGS_LOCALS 8053 RECOMP_ENTER(0x25053A69u); 8054 8055 goto L_25053A69; 8056 L_2505375F: 8057 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x2505375F: fld dword ptr [ebp - 0x3c] */ 8058 eax = MEM32(ebp + 0x3C); /* 0x25053762: mov eax, dword ptr [ebp + 0x3c] */ 8059 /* cmp eax, 9 */ /* 0x25053765: cmp eax, 9 */ 8060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 8061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8062 _flag_k = FK_CMP; 8063 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x25053768: fadd dword ptr [ebp - 0x18] */ 8064 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2505376B: fstp dword ptr [ebp - 0x18] */ 8065 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2505376E: fld dword ptr [ebp - 0x38] */ 8066 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x25053771: fadd dword ptr [ebp - 0x14] */ 8067 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x25053774: fstp dword ptr [ebp - 0x14] */ 8068 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x25053777: fld dword ptr [ebp - 0x34] */ 8069 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2505377A: fadd dword ptr [ebp - 0x10] */ 8070 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2505377D: fstp dword ptr [ebp - 0x10] */ 8071 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x25053780: fld dword ptr [ebp - 0x30] */ 8072 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x25053783: fadd dword ptr [ebp + 0x1c] */ 8073 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x1C) = _v; } /* 0x25053786: fstp dword ptr [ebp + 0x1c] */ 8074 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x25053789: fld dword ptr [ebp - 0x2c] */ 8075 _st[0] += (double)*(float*)ADDR(ebp + 0x20); /* 0x2505378C: fadd dword ptr [ebp + 0x20] */ 8076 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x20) = _v; } /* 0x2505378F: fstp dword ptr [ebp + 0x20] */ 8077 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x25053792: fld dword ptr [ebp - 0x28] */ 8078 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x25053795: fadd dword ptr [ebp + 0x24] */ 8079 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x24) = _v; } /* 0x25053798: fstp dword ptr [ebp + 0x24] */ 8080 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x2505379B: fld dword ptr [ebp + 0x1c] */ 8081 if (CMP_NE(_flag_a, _flag_b)) goto L_25053892; /* 0x2505379E: jne 0x25053892 */ 8082 L_250537A4: 8083 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x28) = _v; } /* 0x250537A4: fstp dword ptr [ebp + 0x28] */ 8084 eax = MEM32(ebp + (-0x1C)); /* 0x250537A7: mov eax, dword ptr [ebp - 0x1c] */ 8085 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250537AA: fld dword ptr [0x251517a4] */ 8086 edx = MEM32(ebp + (-0x24)); /* 0x250537B0: mov edx, dword ptr [ebp - 0x24] */ 8087 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250537B3: fsub dword ptr [ebp + 0x20] */ 8088 ecx = MEM32(ebp + (-0xC)); /* 0x250537B6: mov ecx, dword ptr [ebp - 0xc] */ 8089 MEM32(ebp + (-0x94)) = eax; /* 0x250537B9: mov dword ptr [ebp - 0x94], eax */ 8090 eax = MEM32(ebp + 0x40); /* 0x250537BF: mov eax, dword ptr [ebp + 0x40] */ 8091 fp_push(_st[0]); /* 0x250537C2: fld st(0) */ 8092 MEM32(ebp + (-0x9C)) = edx; /* 0x250537C4: mov dword ptr [ebp - 0x9c], edx */ 8093 fp_push(_st[0]); /* 0x250537CA: fld st(0) */ 8094 _st[0] *= _st[1]; /* 0x250537CC: fmul st(1) */ 8095 edx = MEM32(ebp + (-0x4)); /* 0x250537CE: mov edx, dword ptr [ebp - 4] */ 8096 PUSH32(esp, edi); /* 0x250537D1: push edi */ 8097 PUSH32(esp, eax); /* 0x250537D2: push eax */ 8098 _st[0] *= _st[2]; /* 0x250537D3: fmul st(2) */ 8099 MEM32(ebp + (-0x84)) = ecx; /* 0x250537D5: mov dword ptr [ebp - 0x84], ecx */ 8100 MEM32(ebp + (-0x7C)) = edx; /* 0x250537DB: mov dword ptr [ebp - 0x7c], edx */ 8101 edx = MEM32(ebp + 0x28); /* 0x250537DE: mov edx, dword ptr [ebp + 0x28] */ 8102 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250537E1: fsubr dword ptr [0x251517a4] */ 8103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8105 esp = esp - 0xCu; /* 0x250537E7: sub esp, 0xc */ 8106 _flag_k = FK_CMP; 8107 ecx = esp; /* 0x250537EA: mov ecx, esp */ 8108 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250537EC: fmul dword ptr [ebp + 0x4c] */ 8109 MEM32(ecx) = edx; /* 0x250537EF: mov dword ptr [ecx], edx */ 8110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8112 esp = esp - 0xCu; /* 0x250537F1: sub esp, 0xc */ 8113 _flag_k = FK_CMP; 8114 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250537F4: fadd dword ptr [ebp + 0x48] */ 8115 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x2C) = _v; } /* 0x250537F7: fstp dword ptr [ebp + 0x2c] */ 8116 eax = MEM32(ebp + 0x2C); /* 0x250537FA: mov eax, dword ptr [ebp + 0x2c] */ 8117 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250537FD: fstp st(0) */ 8118 MEM32(ecx + 0x4) = eax; /* 0x250537FF: mov dword ptr [ecx + 4], eax */ 8119 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053802: fstp st(0) */ 8120 eax = esp; /* 0x25053804: mov eax, esp */ 8121 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25053806: fld dword ptr [ebp + 0x24] */ 8122 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8124 esp = esp - 0xCu; /* 0x25053809: sub esp, 0xc */ 8125 _flag_k = FK_CMP; 8126 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x30) = _v; } /* 0x2505380C: fstp dword ptr [ebp + 0x30] */ 8127 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505380F: fld dword ptr [0x251517a4] */ 8128 edx = MEM32(ebp + 0x30); /* 0x25053815: mov edx, dword ptr [ebp + 0x30] */ 8129 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x25053818: fsub dword ptr [ebp - 0x20] */ 8130 MEM32(ecx + 0x8) = edx; /* 0x2505381B: mov dword ptr [ecx + 8], edx */ 8131 ecx = MEM32(ebp + (-0x9C)); /* 0x2505381E: mov ecx, dword ptr [ebp - 0x9c] */ 8132 MEM32(eax) = ecx; /* 0x25053824: mov dword ptr [eax], ecx */ 8133 fp_push(_st[0]); /* 0x25053826: fld st(0) */ 8134 ecx = MEM32(ebp + (-0x94)); /* 0x25053828: mov ecx, dword ptr [ebp - 0x94] */ 8135 fp_push(_st[0]); /* 0x2505382E: fld st(0) */ 8136 _st[0] *= _st[1]; /* 0x25053830: fmul st(1) */ 8137 _st[0] *= _st[2]; /* 0x25053832: fmul st(2) */ 8138 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053834: fsubr dword ptr [0x251517a4] */ 8139 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x2505383A: fmul dword ptr [ebp + 0x4c] */ 8140 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505383D: fadd dword ptr [ebp + 0x48] */ 8141 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x98)) = _v; } /* 0x25053840: fstp dword ptr [ebp - 0x98] */ 8142 edx = MEM32(ebp + (-0x98)); /* 0x25053846: mov edx, dword ptr [ebp - 0x98] */ 8143 MEM32(eax + 0x4) = edx; /* 0x2505384C: mov dword ptr [eax + 4], edx */ 8144 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505384F: fstp st(0) */ 8145 MEM32(eax + 0x8) = ecx; /* 0x25053851: mov dword ptr [eax + 8], ecx */ 8146 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053854: fstp st(0) */ 8147 eax = MEM32(ebp + (-0x84)); /* 0x25053856: mov eax, dword ptr [ebp - 0x84] */ 8148 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505385C: fld dword ptr [0x251517a4] */ 8149 edx = esp; /* 0x25053862: mov edx, esp */ 8150 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053864: fsub dword ptr [ebp - 8] */ 8151 MEM32(edx) = eax; /* 0x25053867: mov dword ptr [edx], eax */ 8152 fp_push(_st[0]); /* 0x25053869: fld st(0) */ 8153 fp_push(_st[0]); /* 0x2505386B: fld st(0) */ 8154 _st[0] *= _st[1]; /* 0x2505386D: fmul st(1) */ 8155 _st[0] *= _st[2]; /* 0x2505386F: fmul st(2) */ 8156 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x25053871: fsubr dword ptr [0x251517a4] */ 8157 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053877: fmul dword ptr [ebp + 0x4c] */ 8158 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x2505387A: fadd dword ptr [ebp + 0x48] */ 8159 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x80)) = _v; } /* 0x2505387D: fstp dword ptr [ebp - 0x80] */ 8160 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053880: fstp st(0) */ 8161 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053882: fstp st(0) */ 8162 ecx = MEM32(ebp + (-0x80)); /* 0x25053884: mov ecx, dword ptr [ebp - 0x80] */ 8163 eax = MEM32(ebp + (-0x7C)); /* 0x25053887: mov eax, dword ptr [ebp - 0x7c] */ 8164 MEM32(edx + 0x4) = ecx; /* 0x2505388A: mov dword ptr [edx + 4], ecx */ 8165 goto L_25053A32; /* 0x2505388D: jmp 0x25053a32 */ 8166 L_25053892: 8167 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x6C)) = _v; } /* 0x25053892: fstp dword ptr [ebp - 0x6c] */ 8168 ecx = MEM32(ebp + 0x40); /* 0x25053895: mov ecx, dword ptr [ebp + 0x40] */ 8169 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25053898: fld dword ptr [0x251517a4] */ 8170 edx = MEM32(ebp + (-0xC)); /* 0x2505389E: mov edx, dword ptr [ebp - 0xc] */ 8171 _st[0] -= (double)*(float*)ADDR(ebp + 0x20); /* 0x250538A1: fsub dword ptr [ebp + 0x20] */ 8172 eax = MEM32(ebp + (-0x4)); /* 0x250538A4: mov eax, dword ptr [ebp - 4] */ 8173 PUSH32(esp, edi); /* 0x250538A7: push edi */ 8174 PUSH32(esp, ecx); /* 0x250538A8: push ecx */ 8175 fp_push(_st[0]); /* 0x250538A9: fld st(0) */ 8176 MEM32(ebp + (-0x78)) = edx; /* 0x250538AB: mov dword ptr [ebp - 0x78], edx */ 8177 fp_push(_st[0]); /* 0x250538AE: fld st(0) */ 8178 _st[0] *= _st[1]; /* 0x250538B0: fmul st(1) */ 8179 MEM32(ebp + (-0x70)) = eax; /* 0x250538B2: mov dword ptr [ebp - 0x70], eax */ 8180 eax = MEM32(ebp + (-0x6C)); /* 0x250538B5: mov eax, dword ptr [ebp - 0x6c] */ 8181 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8183 esp = esp - 0xCu; /* 0x250538B8: sub esp, 0xc */ 8184 _flag_k = FK_CMP; 8185 { double _v = fp_pop(); _st[1] *= _v; } /* 0x250538BB: fmulp st(2) */ 8186 edx = esp; /* 0x250538BD: mov edx, esp */ 8187 fp_xch(1); /* 0x250538BF: fxch st(1) */ 8188 MEM32(edx) = eax; /* 0x250538C1: mov dword ptr [edx], eax */ 8189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8191 esp = esp - 0xCu; /* 0x250538C3: sub esp, 0xc */ 8192 _flag_k = FK_CMP; 8193 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250538C6: fsubr dword ptr [0x251517a4] */ 8194 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250538CC: fmul dword ptr [ebp + 0x4c] */ 8195 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x250538CF: fadd dword ptr [ebp + 0x48] */ 8196 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x44) = _v; } /* 0x250538D2: fst dword ptr [ebp + 0x44] */ 8197 fp_xch(1); /* 0x250538D5: fxch st(1) */ 8198 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250538D7: fstp st(0) */ 8199 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x250538D9: fstp dword ptr [ebp - 0x68] */ 8200 ecx = MEM32(ebp + (-0x68)); /* 0x250538DC: mov ecx, dword ptr [ebp - 0x68] */ 8201 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x250538DF: fld dword ptr [ebp + 0x24] */ 8202 MEM32(edx + 0x4) = ecx; /* 0x250538E2: mov dword ptr [edx + 4], ecx */ 8203 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x250538E5: fstp dword ptr [ebp - 0x64] */ 8204 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x250538E8: fld dword ptr [ebp - 0x18] */ 8205 eax = MEM32(ebp + (-0x64)); /* 0x250538EB: mov eax, dword ptr [ebp - 0x64] */ 8206 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x250538EE: fstp dword ptr [ebp - 0x54] */ 8207 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250538F1: fld dword ptr [0x251517a4] */ 8208 MEM32(edx + 0x8) = eax; /* 0x250538F7: mov dword ptr [edx + 8], eax */ 8209 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x250538FA: fsub dword ptr [ebp - 0x14] */ 8210 edx = MEM32(ebp + (-0x54)); /* 0x250538FD: mov edx, dword ptr [ebp - 0x54] */ 8211 ecx = esp; /* 0x25053900: mov ecx, esp */ 8212 MEM32(ecx) = edx; /* 0x25053902: mov dword ptr [ecx], edx */ 8213 fp_push(_st[0]); /* 0x25053904: fld st(0) */ 8214 fp_push(_st[0]); /* 0x25053906: fld st(0) */ 8215 _st[0] *= _st[1]; /* 0x25053908: fmul st(1) */ 8216 _st[0] *= _st[2]; /* 0x2505390A: fmul st(2) */ 8217 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505390C: fsubr dword ptr [0x251517a4] */ 8218 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053912: fmul dword ptr [ebp + 0x4c] */ 8219 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053915: fadd dword ptr [ebp + 0x48] */ 8220 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x50)) = _v; } /* 0x25053918: fstp dword ptr [ebp - 0x50] */ 8221 eax = MEM32(ebp + (-0x50)); /* 0x2505391B: mov eax, dword ptr [ebp - 0x50] */ 8222 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505391E: fstp st(0) */ 8223 MEM32(ecx + 0x4) = eax; /* 0x25053920: mov dword ptr [ecx + 4], eax */ 8224 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053923: fstp st(0) */ 8225 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25053925: fld dword ptr [ebp - 0x10] */ 8226 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x25053928: fstp dword ptr [ebp - 0x4c] */ 8227 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x2505392B: fld dword ptr [0x251517a4] */ 8228 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x25053931: fsub dword ptr [ebp - 8] */ 8229 fp_push(_st[0]); /* 0x25053934: fld st(0) */ 8230 fp_push(_st[0]); /* 0x25053936: fld st(0) */ 8231 _st[0] *= _st[1]; /* 0x25053938: fmul st(1) */ 8232 { double _v = fp_pop(); _st[1] *= _v; } /* 0x2505393A: fmulp st(2) */ 8233 fp_xch(1); /* 0x2505393C: fxch st(1) */ 8234 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x2505393E: fsubr dword ptr [0x251517a4] */ 8235 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x25053944: fmul dword ptr [ebp + 0x4c] */ 8236 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053947: fadd dword ptr [ebp + 0x48] */ 8237 { float _v = (float)_st[0]; *(float*)ADDR(ebp + 0x18) = _v; } /* 0x2505394A: fst dword ptr [ebp + 0x18] */ 8238 fp_xch(1); /* 0x2505394D: fxch st(1) */ 8239 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505394F: fstp st(0) */ 8240 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x74)) = _v; } /* 0x25053951: fstp dword ptr [ebp - 0x74] */ 8241 edx = MEM32(ebp + (-0x4C)); /* 0x25053954: mov edx, dword ptr [ebp - 0x4c] */ 8242 MEM32(ecx + 0x8) = edx; /* 0x25053957: mov dword ptr [ecx + 8], edx */ 8243 ecx = MEM32(ebp + (-0x78)); /* 0x2505395A: mov ecx, dword ptr [ebp - 0x78] */ 8244 edx = MEM32(ebp + (-0x74)); /* 0x2505395D: mov edx, dword ptr [ebp - 0x74] */ 8245 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8247 esp = esp - 0xCu; /* 0x25053960: sub esp, 0xc */ 8248 _flag_k = FK_CMP; 8249 eax = esp; /* 0x25053963: mov eax, esp */ 8250 MEM32(eax) = ecx; /* 0x25053965: mov dword ptr [eax], ecx */ 8251 ecx = MEM32(ebp + (-0x70)); /* 0x25053967: mov ecx, dword ptr [ebp - 0x70] */ 8252 MEM32(eax + 0x4) = edx; /* 0x2505396A: mov dword ptr [eax + 4], edx */ 8253 edx = MEM32(ebp + 0x14); /* 0x2505396D: mov edx, dword ptr [ebp + 0x14] */ 8254 PUSH32(esp, ebx); /* 0x25053970: push ebx */ 8255 MEM32(eax + 0x8) = ecx; /* 0x25053971: mov dword ptr [eax + 8], ecx */ 8256 eax = MEM32(ebp + 0x10); /* 0x25053974: mov eax, dword ptr [ebp + 0x10] */ 8257 ecx = MEM32(ebp + 0xC); /* 0x25053977: mov ecx, dword ptr [ebp + 0xc] */ 8258 PUSH32(esp, edx); /* 0x2505397A: push edx */ 8259 edx = MEM32(ebp + 0x8); /* 0x2505397B: mov edx, dword ptr [ebp + 8] */ 8260 PUSH32(esp, eax); /* 0x2505397E: push eax */ 8261 PUSH32(esp, ecx); /* 0x2505397F: push ecx */ 8262 PUSH32(esp, edx); /* 0x25053980: push edx */ 8263 ecx = esi; /* 0x25053981: mov ecx, esi */ 8264 RECOMP_ICALL(0x25053A90u); /* 0x25053983: call 0x25053a90 */ /* not lifted */ 8265 RECOMP_FLAGS_IN(); 8266 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25053988: fld dword ptr [ebp + 0x1c] */ 8267 eax = MEM32(ebp + 0x44); /* 0x2505398B: mov eax, dword ptr [ebp + 0x44] */ 8268 ecx = MEM32(ebp + (-0x24)); /* 0x2505398E: mov ecx, dword ptr [ebp - 0x24] */ 8269 edx = MEM32(ebp + (-0x1C)); /* 0x25053991: mov edx, dword ptr [ebp - 0x1c] */ 8270 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x90)) = _v; } /* 0x25053994: fstp dword ptr [ebp - 0x90] */ 8271 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x2505399A: fld dword ptr [ebp + 0x24] */ 8272 MEM32(ebp + (-0x8C)) = eax; /* 0x2505399D: mov dword ptr [ebp - 0x8c], eax */ 8273 eax = MEM32(ebp + (-0xC)); /* 0x250539A3: mov eax, dword ptr [ebp - 0xc] */ 8274 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x88)) = _v; } /* 0x250539A6: fstp dword ptr [ebp - 0x88] */ 8275 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x250539AC: fld dword ptr [0x251517a4] */ 8276 MEM32(ebp + (-0x60)) = eax; /* 0x250539B2: mov dword ptr [ebp - 0x60], eax */ 8277 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x250539B5: fsub dword ptr [ebp - 0x20] */ 8278 eax = MEM32(ebp + 0x40); /* 0x250539B8: mov eax, dword ptr [ebp + 0x40] */ 8279 MEM32(ebp + (-0x40)) = edx; /* 0x250539BB: mov dword ptr [ebp - 0x40], edx */ 8280 edx = MEM32(ebp + (-0x4)); /* 0x250539BE: mov edx, dword ptr [ebp - 4] */ 8281 fp_push(_st[0]); /* 0x250539C1: fld st(0) */ 8282 MEM32(ebp + (-0x48)) = ecx; /* 0x250539C3: mov dword ptr [ebp - 0x48], ecx */ 8283 ecx = MEM32(ebp + 0x18); /* 0x250539C6: mov ecx, dword ptr [ebp + 0x18] */ 8284 fp_push(_st[0]); /* 0x250539C9: fld st(0) */ 8285 _st[0] *= _st[1]; /* 0x250539CB: fmul st(1) */ 8286 PUSH32(esp, edi); /* 0x250539CD: push edi */ 8287 PUSH32(esp, eax); /* 0x250539CE: push eax */ 8288 eax = MEM32(ebp + (-0x8C)); /* 0x250539CF: mov eax, dword ptr [ebp - 0x8c] */ 8289 _st[0] *= _st[2]; /* 0x250539D5: fmul st(2) */ 8290 MEM32(ebp + (-0x58)) = edx; /* 0x250539D7: mov dword ptr [ebp - 0x58], edx */ 8291 edx = MEM32(ebp + (-0x90)); /* 0x250539DA: mov edx, dword ptr [ebp - 0x90] */ 8292 MEM32(ebp + (-0x5C)) = ecx; /* 0x250539E0: mov dword ptr [ebp - 0x5c], ecx */ 8293 _st[0] = (double)*(float*)ADDR(0x251517A4) - _st[0]; /* 0x250539E3: fsubr dword ptr [0x251517a4] */ 8294 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8296 esp = esp - 0xCu; /* 0x250539E9: sub esp, 0xc */ 8297 _flag_k = FK_CMP; 8298 ecx = esp; /* 0x250539EC: mov ecx, esp */ 8299 MEM32(ecx) = edx; /* 0x250539EE: mov dword ptr [ecx], edx */ 8300 edx = MEM32(ebp + (-0x88)); /* 0x250539F0: mov edx, dword ptr [ebp - 0x88] */ 8301 MEM32(ecx + 0x4) = eax; /* 0x250539F6: mov dword ptr [ecx + 4], eax */ 8302 MEM32(ecx + 0x8) = edx; /* 0x250539F9: mov dword ptr [ecx + 8], edx */ 8303 ecx = MEM32(ebp + (-0x48)); /* 0x250539FC: mov ecx, dword ptr [ebp - 0x48] */ 8304 _st[0] *= (double)*(float*)ADDR(ebp + 0x4C); /* 0x250539FF: fmul dword ptr [ebp + 0x4c] */ 8305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8307 esp = esp - 0xCu; /* 0x25053A02: sub esp, 0xc */ 8308 _flag_k = FK_CMP; 8309 eax = esp; /* 0x25053A05: mov eax, esp */ 8310 _st[0] += (double)*(float*)ADDR(ebp + 0x48); /* 0x25053A07: fadd dword ptr [ebp + 0x48] */ 8311 MEM32(eax) = ecx; /* 0x25053A0A: mov dword ptr [eax], ecx */ 8312 ecx = MEM32(ebp + (-0x40)); /* 0x25053A0C: mov ecx, dword ptr [ebp - 0x40] */ 8313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8315 esp = esp - 0xCu; /* 0x25053A0F: sub esp, 0xc */ 8316 _flag_k = FK_CMP; 8317 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x25053A12: fstp dword ptr [ebp - 0x44] */ 8318 edx = MEM32(ebp + (-0x44)); /* 0x25053A15: mov edx, dword ptr [ebp - 0x44] */ 8319 MEM32(eax + 0x4) = edx; /* 0x25053A18: mov dword ptr [eax + 4], edx */ 8320 MEM32(eax + 0x8) = ecx; /* 0x25053A1B: mov dword ptr [eax + 8], ecx */ 8321 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A1E: fstp st(0) */ 8322 eax = MEM32(ebp + (-0x60)); /* 0x25053A20: mov eax, dword ptr [ebp - 0x60] */ 8323 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25053A23: fstp st(0) */ 8324 ecx = MEM32(ebp + (-0x5C)); /* 0x25053A25: mov ecx, dword ptr [ebp - 0x5c] */ 8325 edx = esp; /* 0x25053A28: mov edx, esp */ 8326 MEM32(edx) = eax; /* 0x25053A2A: mov dword ptr [edx], eax */ 8327 eax = MEM32(ebp + (-0x58)); /* 0x25053A2C: mov eax, dword ptr [ebp - 0x58] */ 8328 MEM32(edx + 0x4) = ecx; /* 0x25053A2F: mov dword ptr [edx + 4], ecx */ 8329 L_25053A32: 8330 ecx = MEM32(ebp + 0x14); /* 0x25053A32: mov ecx, dword ptr [ebp + 0x14] */ 8331 PUSH32(esp, ebx); /* 0x25053A35: push ebx */ 8332 PUSH32(esp, ecx); /* 0x25053A36: push ecx */ 8333 ecx = MEM32(ebp + 0x8); /* 0x25053A37: mov ecx, dword ptr [ebp + 8] */ 8334 MEM32(edx + 0x8) = eax; /* 0x25053A3A: mov dword ptr [edx + 8], eax */ 8335 edx = MEM32(ebp + 0x10); /* 0x25053A3D: mov edx, dword ptr [ebp + 0x10] */ 8336 eax = MEM32(ebp + 0xC); /* 0x25053A40: mov eax, dword ptr [ebp + 0xc] */ 8337 PUSH32(esp, edx); /* 0x25053A43: push edx */ 8338 PUSH32(esp, eax); /* 0x25053A44: push eax */ 8339 PUSH32(esp, ecx); /* 0x25053A45: push ecx */ 8340 ecx = esi; /* 0x25053A46: mov ecx, esi */ 8341 RECOMP_ICALL(0x25053A90u); /* 0x25053A48: call 0x25053a90 */ /* not lifted */ 8342 RECOMP_FLAGS_IN(); 8343 eax = MEM32(ebp + (-0x14)); /* 0x25053A4D: mov eax, dword ptr [ebp - 0x14] */ 8344 edx = MEM32(ebp + (-0x18)); /* 0x25053A50: mov edx, dword ptr [ebp - 0x18] */ 8345 ecx = MEM32(ebp + (-0x10)); /* 0x25053A53: mov ecx, dword ptr [ebp - 0x10] */ 8346 MEM32(ebp + (-0x8)) = eax; /* 0x25053A56: mov dword ptr [ebp - 8], eax */ 8347 eax = MEM32(ebp + 0x20); /* 0x25053A59: mov eax, dword ptr [ebp + 0x20] */ 8348 MEM32(ebp + (-0x20)) = eax; /* 0x25053A5C: mov dword ptr [ebp - 0x20], eax */ 8349 eax = MEM32(ebp + 0x3C); /* 0x25053A5F: mov eax, dword ptr [ebp + 0x3c] */ 8350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8351 eax = eax + 1; /* 0x25053A62: inc eax */ 8352 _flag_k = FK_INC; 8353 /* cmp eax, 0xAu */ /* 0x25053A63: cmp eax, 0xa */ 8354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xAu); 8355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8356 _flag_k = FK_CMP; 8357 MEM32(ebp + (-0xC)) = edx; /* 0x25053A66: mov dword ptr [ebp - 0xc], edx */ 8358 L_25053A69: 8359 edx = MEM32(ebp + 0x1C); /* 0x25053A69: mov edx, dword ptr [ebp + 0x1c] */ 8360 MEM32(ebp + (-0x4)) = ecx; /* 0x25053A6C: mov dword ptr [ebp - 4], ecx */ 8361 ecx = MEM32(ebp + 0x24); /* 0x25053A6F: mov ecx, dword ptr [ebp + 0x24] */ 8362 MEM32(ebp + (-0x24)) = edx; /* 0x25053A72: mov dword ptr [ebp - 0x24], edx */ 8363 MEM32(ebp + (-0x1C)) = ecx; /* 0x25053A75: mov dword ptr [ebp - 0x1c], ecx */ 8364 MEM32(ebp + 0x3C) = eax; /* 0x25053A78: mov dword ptr [ebp + 0x3c], eax */ 8365 RECOMP_BACKEDGE(); 8366 if (CMP_L(_flag_a, _flag_b)) goto L_2505375F; /* 0x25053A7B: jl 0x2505375f */ 8367 L_25053A81: 8368 edi = POP32_VAL(esp); /* 0x25053A81: pop edi */ 8369 esi = POP32_VAL(esp); /* 0x25053A82: pop esi */ 8370 ebx = POP32_VAL(esp); /* 0x25053A83: pop ebx */ 8371 esp = ebp; /* 0x25053A84: mov esp, ebp */ 8372 ebp = POP32_VAL(esp); /* 0x25053A86: pop ebp */ 8373 RECOMP_FLAGS_OUT(); esp += 76; { RECOMP_REGS_OUT(); return; } /* 0x25053A87: ret 0x48 */ 8374 RECOMP_REGS_OUT(); 8375 } 8376 8377 void sub_25053A90(void) { 8378 int _fpu_cmp = 0; 8379 uint32_t _cf = 0; 8380 int _df = 1; 8381 uint32_t _flag_k = FK_NONE; 8382 uint32_t _flag_a = 0, _flag_b = 0; 8383 uint32_t _itail_tgt = 0; 8384 RECOMP_REGS_LOCALS 8385 RECOMP_ENTER(0x25053A90u); 8386 8387 L_25053A90: 8388 PUSH32(esp, ebp); /* 0x25053A90: push ebp */ 8389 ebp = esp; /* 0x25053A91: mov ebp, esp */ 8390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu); 8391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8392 esp = esp - 0x6Cu; /* 0x25053A93: sub esp, 0x6c */ 8393 _flag_k = FK_CMP; 8394 PUSH32(esp, ebx); /* 0x25053A96: push ebx */ 8395 ebx = MEM32(ebp + 0x8); /* 0x25053A97: mov ebx, dword ptr [ebp + 8] */ 8396 /* test LO8(ebx), 1 */ /* 0x25053A9A: test bl, 1 */ 8397 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 8398 _cf = 0; 8399 _flag_k = FK_NARROW(FK_TEST, 24); 8400 PUSH32(esp, esi); /* 0x25053A9D: push esi */ 8401 PUSH32(esp, edi); /* 0x25053A9E: push edi */ 8402 esi = ecx; /* 0x25053A9F: mov esi, ecx */ 8403 if (TEST_NZ(_flag_a, _flag_b)) goto L_25053FDE; /* 0x25053AA1: jne 0x25053fde */ 8404 L_25053AA7: 8405 eax = MEM32(ebp + 0x34); /* 0x25053AA7: mov eax, dword ptr [ebp + 0x34] */ 8406 ecx = MEM32(ebp + 0x38); /* 0x25053AAA: mov ecx, dword ptr [ebp + 0x38] */ 8407 edx = MEM32(ebp + 0x3C); /* 0x25053AAD: mov edx, dword ptr [ebp + 0x3c] */ 8408 MEM32(ebp + (-0xC)) = eax; /* 0x25053AB0: mov dword ptr [ebp - 0xc], eax */ 8409 eax = ebp + 0x1C; /* 0x25053AB3: lea eax, [ebp + 0x1c] */ 8410 MEM32(ebp + (-0x8)) = ecx; /* 0x25053AB6: mov dword ptr [ebp - 8], ecx */ 8411 PUSH32(esp, eax); /* 0x25053AB9: push eax */ 8412 ecx = ebp + (-0xC); /* 0x25053ABA: lea ecx, [ebp - 0xc] */ 8413 MEM32(ebp + (-0x4)) = edx; /* 0x25053ABD: mov dword ptr [ebp - 4], edx */ 8414 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053AC0: call dword ptr [0x25151540] */ 8415 RECOMP_FLAGS_IN(); 8416 ecx = MEM32(eax); /* 0x25053AC6: mov ecx, dword ptr [eax] */ 8417 MEM32(ebp + (-0x24)) = ecx; /* 0x25053AC8: mov dword ptr [ebp - 0x24], ecx */ 8418 edx = MEM32(eax + 0x4); /* 0x25053ACB: mov edx, dword ptr [eax + 4] */ 8419 ecx = MEM32(ebp + 0x28); /* 0x25053ACE: mov ecx, dword ptr [ebp + 0x28] */ 8420 MEM32(ebp + (-0x20)) = edx; /* 0x25053AD1: mov dword ptr [ebp - 0x20], edx */ 8421 eax = MEM32(eax + 0x8); /* 0x25053AD4: mov eax, dword ptr [eax + 8] */ 8422 edx = MEM32(ebp + 0x2C); /* 0x25053AD7: mov edx, dword ptr [ebp + 0x2c] */ 8423 MEM32(ebp + (-0x18)) = ecx; /* 0x25053ADA: mov dword ptr [ebp - 0x18], ecx */ 8424 ecx = ebp + 0x1C; /* 0x25053ADD: lea ecx, [ebp + 0x1c] */ 8425 MEM32(ebp + (-0x1C)) = eax; /* 0x25053AE0: mov dword ptr [ebp - 0x1c], eax */ 8426 eax = MEM32(ebp + 0x30); /* 0x25053AE3: mov eax, dword ptr [ebp + 0x30] */ 8427 PUSH32(esp, ecx); /* 0x25053AE6: push ecx */ 8428 ecx = ebp + (-0x18); /* 0x25053AE7: lea ecx, [ebp - 0x18] */ 8429 MEM32(ebp + (-0x14)) = edx; /* 0x25053AEA: mov dword ptr [ebp - 0x14], edx */ 8430 MEM32(ebp + (-0x10)) = eax; /* 0x25053AED: mov dword ptr [ebp - 0x10], eax */ 8431 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053AF0: call dword ptr [0x25151540] */ 8432 RECOMP_FLAGS_IN(); 8433 edx = MEM32(eax); /* 0x25053AF6: mov edx, dword ptr [eax] */ 8434 ecx = MEM32(eax + 0x4); /* 0x25053AF8: mov ecx, dword ptr [eax + 4] */ 8435 MEM32(ebp + (-0x30)) = edx; /* 0x25053AFB: mov dword ptr [ebp - 0x30], edx */ 8436 edx = MEM32(eax + 0x8); /* 0x25053AFE: mov edx, dword ptr [eax + 8] */ 8437 eax = ebp + (-0x24); /* 0x25053B01: lea eax, [ebp - 0x24] */ 8438 MEM32(ebp + (-0x2C)) = ecx; /* 0x25053B04: mov dword ptr [ebp - 0x2c], ecx */ 8439 PUSH32(esp, eax); /* 0x25053B07: push eax */ 8440 ecx = ebp + (-0x30); /* 0x25053B08: lea ecx, [ebp - 0x30] */ 8441 MEM32(ebp + (-0x28)) = edx; /* 0x25053B0B: mov dword ptr [ebp - 0x28], edx */ 8442 RECOMP_ICALL(MEM32(0x25151564)); /* 0x25053B0E: call dword ptr [0x25151564] */ 8443 RECOMP_FLAGS_IN(); 8444 ecx = MEM32(eax); /* 0x25053B14: mov ecx, dword ptr [eax] */ 8445 MEM32(ebp + (-0x3C)) = ecx; /* 0x25053B16: mov dword ptr [ebp - 0x3c], ecx */ 8446 edx = MEM32(eax + 0x4); /* 0x25053B19: mov edx, dword ptr [eax + 4] */ 8447 MEM32(ebp + (-0x38)) = edx; /* 0x25053B1C: mov dword ptr [ebp - 0x38], edx */ 8448 eax = MEM32(eax + 0x8); /* 0x25053B1F: mov eax, dword ptr [eax + 8] */ 8449 ecx = ebp + (-0x3C); /* 0x25053B22: lea ecx, [ebp - 0x3c] */ 8450 MEM32(ebp + (-0x34)) = eax; /* 0x25053B25: mov dword ptr [ebp - 0x34], eax */ 8451 RECOMP_ICALL(MEM32(0x25151560)); /* 0x25053B28: call dword ptr [0x25151560] */ 8452 RECOMP_FLAGS_IN(); 8453 _st[0] = sqrt(_st[0]); /* 0x25053B2E: fsqrt */ 8454 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25153F30)); /* 0x25053B30: fcomp dword ptr [0x25153f30] */ 8455 fp_pop(); 8456 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25053B36: fnstsw ax */ 8457 /* test HI8(eax), 0x41u */ /* 0x25053B38: test ah, 0x41 */ 8458 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8459 _cf = 0; 8460 _flag_k = FK_NARROW(FK_TEST, 24); 8461 if (TEST_NZ(_flag_a, _flag_b)) goto L_25053FDE; /* 0x25053B3B: jne 0x25053fde */ 8462 L_25053B41: 8463 ecx = MEM32(ebp + 0x34); /* 0x25053B41: mov ecx, dword ptr [ebp + 0x34] */ 8464 edx = MEM32(ebp + 0x38); /* 0x25053B44: mov edx, dword ptr [ebp + 0x38] */ 8465 eax = MEM32(ebp + 0x3C); /* 0x25053B47: mov eax, dword ptr [ebp + 0x3c] */ 8466 MEM32(ebp + (-0x3C)) = ecx; /* 0x25053B4A: mov dword ptr [ebp - 0x3c], ecx */ 8467 ecx = ebp + 0x1C; /* 0x25053B4D: lea ecx, [ebp + 0x1c] */ 8468 PUSH32(esp, ecx); /* 0x25053B50: push ecx */ 8469 ecx = ebp + (-0x3C); /* 0x25053B51: lea ecx, [ebp - 0x3c] */ 8470 MEM32(ebp + (-0x38)) = edx; /* 0x25053B54: mov dword ptr [ebp - 0x38], edx */ 8471 MEM32(ebp + (-0x34)) = eax; /* 0x25053B57: mov dword ptr [ebp - 0x34], eax */ 8472 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053B5A: call dword ptr [0x25151540] */ 8473 RECOMP_FLAGS_IN(); 8474 edx = MEM32(eax); /* 0x25053B60: mov edx, dword ptr [eax] */ 8475 ecx = MEM32(eax + 0x4); /* 0x25053B62: mov ecx, dword ptr [eax + 4] */ 8476 MEM32(ebp + (-0x30)) = edx; /* 0x25053B65: mov dword ptr [ebp - 0x30], edx */ 8477 edx = MEM32(eax + 0x8); /* 0x25053B68: mov edx, dword ptr [eax + 8] */ 8478 MEM32(ebp + (-0x2C)) = ecx; /* 0x25053B6B: mov dword ptr [ebp - 0x2c], ecx */ 8479 PUSH32(esp, 0x40000000u); /* 0x25053B6E: push 0x40000000 */ 8480 ecx = ebp + (-0x30); /* 0x25053B73: lea ecx, [ebp - 0x30] */ 8481 MEM32(ebp + (-0x28)) = edx; /* 0x25053B76: mov dword ptr [ebp - 0x28], edx */ 8482 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x25053B79: call dword ptr [0x2515155c] */ 8483 RECOMP_FLAGS_IN(); 8484 ecx = MEM32(eax); /* 0x25053B7F: mov ecx, dword ptr [eax] */ 8485 edx = MEM32(eax + 0x4); /* 0x25053B81: mov edx, dword ptr [eax + 4] */ 8486 eax = MEM32(eax + 0x8); /* 0x25053B84: mov eax, dword ptr [eax + 8] */ 8487 MEM32(ebp + (-0x24)) = ecx; /* 0x25053B87: mov dword ptr [ebp - 0x24], ecx */ 8488 ecx = ebp + 0x1C; /* 0x25053B8A: lea ecx, [ebp + 0x1c] */ 8489 PUSH32(esp, ecx); /* 0x25053B8D: push ecx */ 8490 ecx = ebp + (-0x24); /* 0x25053B8E: lea ecx, [ebp - 0x24] */ 8491 MEM32(ebp + (-0x20)) = edx; /* 0x25053B91: mov dword ptr [ebp - 0x20], edx */ 8492 MEM32(ebp + (-0x1C)) = eax; /* 0x25053B94: mov dword ptr [ebp - 0x1c], eax */ 8493 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25053B97: call dword ptr [0x251514f8] */ 8494 RECOMP_FLAGS_IN(); 8495 edx = MEM32(eax); /* 0x25053B9D: mov edx, dword ptr [eax] */ 8496 ecx = MEM32(eax + 0x4); /* 0x25053B9F: mov ecx, dword ptr [eax + 4] */ 8497 MEM32(ebp + (-0xC)) = edx; /* 0x25053BA2: mov dword ptr [ebp - 0xc], edx */ 8498 edx = MEM32(eax + 0x8); /* 0x25053BA5: mov edx, dword ptr [eax + 8] */ 8499 eax = MEM32(ebp + 0x28); /* 0x25053BA8: mov eax, dword ptr [ebp + 0x28] */ 8500 MEM32(ebp + (-0x8)) = ecx; /* 0x25053BAB: mov dword ptr [ebp - 8], ecx */ 8501 ecx = MEM32(ebp + 0x2C); /* 0x25053BAE: mov ecx, dword ptr [ebp + 0x2c] */ 8502 MEM32(ebp + (-0x18)) = eax; /* 0x25053BB1: mov dword ptr [ebp - 0x18], eax */ 8503 MEM32(ebp + (-0x4)) = edx; /* 0x25053BB4: mov dword ptr [ebp - 4], edx */ 8504 edx = MEM32(ebp + 0x30); /* 0x25053BB7: mov edx, dword ptr [ebp + 0x30] */ 8505 eax = ebp + 0x1C; /* 0x25053BBA: lea eax, [ebp + 0x1c] */ 8506 MEM32(ebp + (-0x14)) = ecx; /* 0x25053BBD: mov dword ptr [ebp - 0x14], ecx */ 8507 PUSH32(esp, eax); /* 0x25053BC0: push eax */ 8508 ecx = ebp + (-0x18); /* 0x25053BC1: lea ecx, [ebp - 0x18] */ 8509 MEM32(ebp + (-0x10)) = edx; /* 0x25053BC4: mov dword ptr [ebp - 0x10], edx */ 8510 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053BC7: call dword ptr [0x25151540] */ 8511 RECOMP_FLAGS_IN(); 8512 ecx = MEM32(eax); /* 0x25053BCD: mov ecx, dword ptr [eax] */ 8513 edx = MEM32(eax + 0x4); /* 0x25053BCF: mov edx, dword ptr [eax + 4] */ 8514 eax = MEM32(eax + 0x8); /* 0x25053BD2: mov eax, dword ptr [eax + 8] */ 8515 MEM32(ebp + (-0x48)) = ecx; /* 0x25053BD5: mov dword ptr [ebp - 0x48], ecx */ 8516 PUSH32(esp, 0x40000000u); /* 0x25053BD8: push 0x40000000 */ 8517 ecx = ebp + (-0x48); /* 0x25053BDD: lea ecx, [ebp - 0x48] */ 8518 MEM32(ebp + (-0x44)) = edx; /* 0x25053BE0: mov dword ptr [ebp - 0x44], edx */ 8519 MEM32(ebp + (-0x40)) = eax; /* 0x25053BE3: mov dword ptr [ebp - 0x40], eax */ 8520 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x25053BE6: call dword ptr [0x2515155c] */ 8521 RECOMP_FLAGS_IN(); 8522 ecx = MEM32(eax); /* 0x25053BEC: mov ecx, dword ptr [eax] */ 8523 edx = MEM32(eax + 0x4); /* 0x25053BEE: mov edx, dword ptr [eax + 4] */ 8524 edi = MEM32(ebp + 0x44); /* 0x25053BF1: mov edi, dword ptr [ebp + 0x44] */ 8525 eax = MEM32(eax + 0x8); /* 0x25053BF4: mov eax, dword ptr [eax + 8] */ 8526 MEM32(ebp + (-0x54)) = ecx; /* 0x25053BF7: mov dword ptr [ebp - 0x54], ecx */ 8527 ecx = MEM32(ebp + 0x40); /* 0x25053BFA: mov ecx, dword ptr [ebp + 0x40] */ 8528 PUSH32(esp, edi); /* 0x25053BFD: push edi */ 8529 PUSH32(esp, ecx); /* 0x25053BFE: push ecx */ 8530 ecx = MEM32(ebp + (-0x8)); /* 0x25053BFF: mov ecx, dword ptr [ebp - 8] */ 8531 MEM32(ebp + (-0x50)) = edx; /* 0x25053C02: mov dword ptr [ebp - 0x50], edx */ 8532 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8534 esp = esp - 0xCu; /* 0x25053C05: sub esp, 0xc */ 8535 _flag_k = FK_CMP; 8536 MEM32(ebp + (-0x4C)) = eax; /* 0x25053C08: mov dword ptr [ebp - 0x4c], eax */ 8537 eax = MEM32(ebp + (-0xC)); /* 0x25053C0B: mov eax, dword ptr [ebp - 0xc] */ 8538 edx = esp; /* 0x25053C0E: mov edx, esp */ 8539 MEM32(edx) = eax; /* 0x25053C10: mov dword ptr [edx], eax */ 8540 eax = MEM32(ebp + (-0x4)); /* 0x25053C12: mov eax, dword ptr [ebp - 4] */ 8541 MEM32(edx + 0x4) = ecx; /* 0x25053C15: mov dword ptr [edx + 4], ecx */ 8542 ecx = ebp + 0x1C; /* 0x25053C18: lea ecx, [ebp + 0x1c] */ 8543 PUSH32(esp, ecx); /* 0x25053C1B: push ecx */ 8544 ecx = ebp + (-0x54); /* 0x25053C1C: lea ecx, [ebp - 0x54] */ 8545 MEM32(edx + 0x8) = eax; /* 0x25053C1F: mov dword ptr [edx + 8], eax */ 8546 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25053C22: call dword ptr [0x251514f8] */ 8547 RECOMP_FLAGS_IN(); 8548 ecx = MEM32(eax); /* 0x25053C28: mov ecx, dword ptr [eax] */ 8549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8551 esp = esp - 0xCu; /* 0x25053C2A: sub esp, 0xc */ 8552 _flag_k = FK_CMP; 8553 edx = esp; /* 0x25053C2D: mov edx, esp */ 8554 MEM32(edx) = ecx; /* 0x25053C2F: mov dword ptr [edx], ecx */ 8555 ecx = MEM32(eax + 0x4); /* 0x25053C31: mov ecx, dword ptr [eax + 4] */ 8556 eax = MEM32(eax + 0x8); /* 0x25053C34: mov eax, dword ptr [eax + 8] */ 8557 MEM32(edx + 0x4) = ecx; /* 0x25053C37: mov dword ptr [edx + 4], ecx */ 8558 MEM32(edx + 0x8) = eax; /* 0x25053C3A: mov dword ptr [edx + 8], eax */ 8559 edx = MEM32(ebp + 0x1C); /* 0x25053C3D: mov edx, dword ptr [ebp + 0x1c] */ 8560 eax = MEM32(ebp + 0x20); /* 0x25053C40: mov eax, dword ptr [ebp + 0x20] */ 8561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8563 esp = esp - 0xCu; /* 0x25053C43: sub esp, 0xc */ 8564 _flag_k = FK_CMP; 8565 ecx = esp; /* 0x25053C46: mov ecx, esp */ 8566 MEM32(ecx) = edx; /* 0x25053C48: mov dword ptr [ecx], edx */ 8567 edx = MEM32(ebp + 0x24); /* 0x25053C4A: mov edx, dword ptr [ebp + 0x24] */ 8568 MEM32(ecx + 0x4) = eax; /* 0x25053C4D: mov dword ptr [ecx + 4], eax */ 8569 eax = MEM32(ebp + 0x18); /* 0x25053C50: mov eax, dword ptr [ebp + 0x18] */ 8570 PUSH32(esp, eax); /* 0x25053C53: push eax */ 8571 eax = MEM32(ebp + 0xC); /* 0x25053C54: mov eax, dword ptr [ebp + 0xc] */ 8572 MEM32(ecx + 0x8) = edx; /* 0x25053C57: mov dword ptr [ecx + 8], edx */ 8573 ecx = MEM32(ebp + 0x14); /* 0x25053C5A: mov ecx, dword ptr [ebp + 0x14] */ 8574 edx = MEM32(ebp + 0x10); /* 0x25053C5D: mov edx, dword ptr [ebp + 0x10] */ 8575 PUSH32(esp, ecx); /* 0x25053C60: push ecx */ 8576 PUSH32(esp, edx); /* 0x25053C61: push edx */ 8577 PUSH32(esp, eax); /* 0x25053C62: push eax */ 8578 PUSH32(esp, ebx); /* 0x25053C63: push ebx */ 8579 ecx = esi; /* 0x25053C64: mov ecx, esi */ 8580 RECOMP_ICALL(0x25053A90u); /* 0x25053C66: call 0x25053a90 */ /* not lifted */ 8581 RECOMP_FLAGS_IN(); 8582 ecx = MEM32(ebp + 0x1C); /* 0x25053C6B: mov ecx, dword ptr [ebp + 0x1c] */ 8583 edx = MEM32(ebp + 0x20); /* 0x25053C6E: mov edx, dword ptr [ebp + 0x20] */ 8584 eax = MEM32(ebp + 0x24); /* 0x25053C71: mov eax, dword ptr [ebp + 0x24] */ 8585 MEM32(ebp + (-0x54)) = ecx; /* 0x25053C74: mov dword ptr [ebp - 0x54], ecx */ 8586 ecx = ebp + 0x28; /* 0x25053C77: lea ecx, [ebp + 0x28] */ 8587 PUSH32(esp, ecx); /* 0x25053C7A: push ecx */ 8588 ecx = ebp + (-0x54); /* 0x25053C7B: lea ecx, [ebp - 0x54] */ 8589 MEM32(ebp + (-0x50)) = edx; /* 0x25053C7E: mov dword ptr [ebp - 0x50], edx */ 8590 MEM32(ebp + (-0x4C)) = eax; /* 0x25053C81: mov dword ptr [ebp - 0x4c], eax */ 8591 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053C84: call dword ptr [0x25151540] */ 8592 RECOMP_FLAGS_IN(); 8593 edx = MEM32(eax); /* 0x25053C8A: mov edx, dword ptr [eax] */ 8594 ecx = MEM32(eax + 0x4); /* 0x25053C8C: mov ecx, dword ptr [eax + 4] */ 8595 MEM32(ebp + (-0x48)) = edx; /* 0x25053C8F: mov dword ptr [ebp - 0x48], edx */ 8596 edx = MEM32(eax + 0x8); /* 0x25053C92: mov edx, dword ptr [eax + 8] */ 8597 MEM32(ebp + (-0x44)) = ecx; /* 0x25053C95: mov dword ptr [ebp - 0x44], ecx */ 8598 PUSH32(esp, 0x40000000u); /* 0x25053C98: push 0x40000000 */ 8599 ecx = ebp + (-0x48); /* 0x25053C9D: lea ecx, [ebp - 0x48] */ 8600 MEM32(ebp + (-0x40)) = edx; /* 0x25053CA0: mov dword ptr [ebp - 0x40], edx */ 8601 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x25053CA3: call dword ptr [0x2515155c] */ 8602 RECOMP_FLAGS_IN(); 8603 ecx = MEM32(eax); /* 0x25053CA9: mov ecx, dword ptr [eax] */ 8604 edx = MEM32(eax + 0x4); /* 0x25053CAB: mov edx, dword ptr [eax + 4] */ 8605 eax = MEM32(eax + 0x8); /* 0x25053CAE: mov eax, dword ptr [eax + 8] */ 8606 MEM32(ebp + (-0x3C)) = ecx; /* 0x25053CB1: mov dword ptr [ebp - 0x3c], ecx */ 8607 ecx = ebp + 0x28; /* 0x25053CB4: lea ecx, [ebp + 0x28] */ 8608 PUSH32(esp, ecx); /* 0x25053CB7: push ecx */ 8609 ecx = ebp + (-0x3C); /* 0x25053CB8: lea ecx, [ebp - 0x3c] */ 8610 MEM32(ebp + (-0x38)) = edx; /* 0x25053CBB: mov dword ptr [ebp - 0x38], edx */ 8611 MEM32(ebp + (-0x34)) = eax; /* 0x25053CBE: mov dword ptr [ebp - 0x34], eax */ 8612 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25053CC1: call dword ptr [0x251514f8] */ 8613 RECOMP_FLAGS_IN(); 8614 edx = MEM32(eax); /* 0x25053CC7: mov edx, dword ptr [eax] */ 8615 ecx = MEM32(eax + 0x4); /* 0x25053CC9: mov ecx, dword ptr [eax + 4] */ 8616 MEM32(ebp + (-0xC)) = edx; /* 0x25053CCC: mov dword ptr [ebp - 0xc], edx */ 8617 edx = MEM32(eax + 0x8); /* 0x25053CCF: mov edx, dword ptr [eax + 8] */ 8618 eax = MEM32(ebp + 0x34); /* 0x25053CD2: mov eax, dword ptr [ebp + 0x34] */ 8619 MEM32(ebp + (-0x8)) = ecx; /* 0x25053CD5: mov dword ptr [ebp - 8], ecx */ 8620 ecx = MEM32(ebp + 0x38); /* 0x25053CD8: mov ecx, dword ptr [ebp + 0x38] */ 8621 MEM32(ebp + (-0x30)) = eax; /* 0x25053CDB: mov dword ptr [ebp - 0x30], eax */ 8622 MEM32(ebp + (-0x4)) = edx; /* 0x25053CDE: mov dword ptr [ebp - 4], edx */ 8623 edx = MEM32(ebp + 0x3C); /* 0x25053CE1: mov edx, dword ptr [ebp + 0x3c] */ 8624 eax = ebp + 0x28; /* 0x25053CE4: lea eax, [ebp + 0x28] */ 8625 MEM32(ebp + (-0x2C)) = ecx; /* 0x25053CE7: mov dword ptr [ebp - 0x2c], ecx */ 8626 PUSH32(esp, eax); /* 0x25053CEA: push eax */ 8627 ecx = ebp + (-0x30); /* 0x25053CEB: lea ecx, [ebp - 0x30] */ 8628 MEM32(ebp + (-0x28)) = edx; /* 0x25053CEE: mov dword ptr [ebp - 0x28], edx */ 8629 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053CF1: call dword ptr [0x25151540] */ 8630 RECOMP_FLAGS_IN(); 8631 ecx = MEM32(eax); /* 0x25053CF7: mov ecx, dword ptr [eax] */ 8632 edx = MEM32(eax + 0x4); /* 0x25053CF9: mov edx, dword ptr [eax + 4] */ 8633 eax = MEM32(eax + 0x8); /* 0x25053CFC: mov eax, dword ptr [eax + 8] */ 8634 MEM32(ebp + (-0x24)) = ecx; /* 0x25053CFF: mov dword ptr [ebp - 0x24], ecx */ 8635 PUSH32(esp, 0x40000000u); /* 0x25053D02: push 0x40000000 */ 8636 ecx = ebp + (-0x24); /* 0x25053D07: lea ecx, [ebp - 0x24] */ 8637 MEM32(ebp + (-0x20)) = edx; /* 0x25053D0A: mov dword ptr [ebp - 0x20], edx */ 8638 MEM32(ebp + (-0x1C)) = eax; /* 0x25053D0D: mov dword ptr [ebp - 0x1c], eax */ 8639 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x25053D10: call dword ptr [0x2515155c] */ 8640 RECOMP_FLAGS_IN(); 8641 ecx = MEM32(eax); /* 0x25053D16: mov ecx, dword ptr [eax] */ 8642 edx = MEM32(eax + 0x4); /* 0x25053D18: mov edx, dword ptr [eax + 4] */ 8643 eax = MEM32(eax + 0x8); /* 0x25053D1B: mov eax, dword ptr [eax + 8] */ 8644 MEM32(ebp + (-0x18)) = ecx; /* 0x25053D1E: mov dword ptr [ebp - 0x18], ecx */ 8645 MEM32(ebp + (-0x14)) = edx; /* 0x25053D21: mov dword ptr [ebp - 0x14], edx */ 8646 ecx = MEM32(ebp + 0x40); /* 0x25053D24: mov ecx, dword ptr [ebp + 0x40] */ 8647 PUSH32(esp, edi); /* 0x25053D27: push edi */ 8648 PUSH32(esp, ecx); /* 0x25053D28: push ecx */ 8649 ecx = MEM32(ebp + (-0x8)); /* 0x25053D29: mov ecx, dword ptr [ebp - 8] */ 8650 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8652 esp = esp - 0xCu; /* 0x25053D2C: sub esp, 0xc */ 8653 _flag_k = FK_CMP; 8654 MEM32(ebp + (-0x10)) = eax; /* 0x25053D2F: mov dword ptr [ebp - 0x10], eax */ 8655 eax = MEM32(ebp + (-0xC)); /* 0x25053D32: mov eax, dword ptr [ebp - 0xc] */ 8656 edx = esp; /* 0x25053D35: mov edx, esp */ 8657 MEM32(edx) = eax; /* 0x25053D37: mov dword ptr [edx], eax */ 8658 eax = MEM32(ebp + (-0x4)); /* 0x25053D39: mov eax, dword ptr [ebp - 4] */ 8659 MEM32(edx + 0x4) = ecx; /* 0x25053D3C: mov dword ptr [edx + 4], ecx */ 8660 ecx = ebp + 0x28; /* 0x25053D3F: lea ecx, [ebp + 0x28] */ 8661 PUSH32(esp, ecx); /* 0x25053D42: push ecx */ 8662 ecx = ebp + (-0x18); /* 0x25053D43: lea ecx, [ebp - 0x18] */ 8663 MEM32(edx + 0x8) = eax; /* 0x25053D46: mov dword ptr [edx + 8], eax */ 8664 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25053D49: call dword ptr [0x251514f8] */ 8665 RECOMP_FLAGS_IN(); 8666 ecx = MEM32(eax); /* 0x25053D4F: mov ecx, dword ptr [eax] */ 8667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8669 esp = esp - 0xCu; /* 0x25053D51: sub esp, 0xc */ 8670 _flag_k = FK_CMP; 8671 edx = esp; /* 0x25053D54: mov edx, esp */ 8672 MEM32(edx) = ecx; /* 0x25053D56: mov dword ptr [edx], ecx */ 8673 ecx = MEM32(eax + 0x4); /* 0x25053D58: mov ecx, dword ptr [eax + 4] */ 8674 eax = MEM32(eax + 0x8); /* 0x25053D5B: mov eax, dword ptr [eax + 8] */ 8675 MEM32(edx + 0x4) = ecx; /* 0x25053D5E: mov dword ptr [edx + 4], ecx */ 8676 MEM32(edx + 0x8) = eax; /* 0x25053D61: mov dword ptr [edx + 8], eax */ 8677 edx = MEM32(ebp + 0x28); /* 0x25053D64: mov edx, dword ptr [ebp + 0x28] */ 8678 eax = MEM32(ebp + 0x2C); /* 0x25053D67: mov eax, dword ptr [ebp + 0x2c] */ 8679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8681 esp = esp - 0xCu; /* 0x25053D6A: sub esp, 0xc */ 8682 _flag_k = FK_CMP; 8683 ecx = esp; /* 0x25053D6D: mov ecx, esp */ 8684 MEM32(ecx) = edx; /* 0x25053D6F: mov dword ptr [ecx], edx */ 8685 edx = MEM32(ebp + 0x30); /* 0x25053D71: mov edx, dword ptr [ebp + 0x30] */ 8686 MEM32(ecx + 0x4) = eax; /* 0x25053D74: mov dword ptr [ecx + 4], eax */ 8687 eax = MEM32(ebp + 0x18); /* 0x25053D77: mov eax, dword ptr [ebp + 0x18] */ 8688 PUSH32(esp, eax); /* 0x25053D7A: push eax */ 8689 eax = MEM32(ebp + 0xC); /* 0x25053D7B: mov eax, dword ptr [ebp + 0xc] */ 8690 MEM32(ecx + 0x8) = edx; /* 0x25053D7E: mov dword ptr [ecx + 8], edx */ 8691 ecx = MEM32(ebp + 0x14); /* 0x25053D81: mov ecx, dword ptr [ebp + 0x14] */ 8692 edx = MEM32(ebp + 0x10); /* 0x25053D84: mov edx, dword ptr [ebp + 0x10] */ 8693 PUSH32(esp, ecx); /* 0x25053D87: push ecx */ 8694 PUSH32(esp, edx); /* 0x25053D88: push edx */ 8695 PUSH32(esp, eax); /* 0x25053D89: push eax */ 8696 PUSH32(esp, ebx); /* 0x25053D8A: push ebx */ 8697 ecx = esi; /* 0x25053D8B: mov ecx, esi */ 8698 RECOMP_ICALL(0x25053A90u); /* 0x25053D8D: call 0x25053a90 */ /* not lifted */ 8699 RECOMP_FLAGS_IN(); 8700 ecx = MEM32(ebp + 0x28); /* 0x25053D92: mov ecx, dword ptr [ebp + 0x28] */ 8701 edx = MEM32(ebp + 0x2C); /* 0x25053D95: mov edx, dword ptr [ebp + 0x2c] */ 8702 eax = MEM32(ebp + 0x30); /* 0x25053D98: mov eax, dword ptr [ebp + 0x30] */ 8703 MEM32(ebp + (-0x54)) = ecx; /* 0x25053D9B: mov dword ptr [ebp - 0x54], ecx */ 8704 ecx = ebp + 0x34; /* 0x25053D9E: lea ecx, [ebp + 0x34] */ 8705 PUSH32(esp, ecx); /* 0x25053DA1: push ecx */ 8706 ecx = ebp + (-0x54); /* 0x25053DA2: lea ecx, [ebp - 0x54] */ 8707 MEM32(ebp + (-0x50)) = edx; /* 0x25053DA5: mov dword ptr [ebp - 0x50], edx */ 8708 MEM32(ebp + (-0x4C)) = eax; /* 0x25053DA8: mov dword ptr [ebp - 0x4c], eax */ 8709 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053DAB: call dword ptr [0x25151540] */ 8710 RECOMP_FLAGS_IN(); 8711 edx = MEM32(eax); /* 0x25053DB1: mov edx, dword ptr [eax] */ 8712 ecx = MEM32(eax + 0x4); /* 0x25053DB3: mov ecx, dword ptr [eax + 4] */ 8713 MEM32(ebp + (-0x48)) = edx; /* 0x25053DB6: mov dword ptr [ebp - 0x48], edx */ 8714 edx = MEM32(eax + 0x8); /* 0x25053DB9: mov edx, dword ptr [eax + 8] */ 8715 MEM32(ebp + (-0x44)) = ecx; /* 0x25053DBC: mov dword ptr [ebp - 0x44], ecx */ 8716 PUSH32(esp, 0x40000000u); /* 0x25053DBF: push 0x40000000 */ 8717 ecx = ebp + (-0x48); /* 0x25053DC4: lea ecx, [ebp - 0x48] */ 8718 MEM32(ebp + (-0x40)) = edx; /* 0x25053DC7: mov dword ptr [ebp - 0x40], edx */ 8719 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x25053DCA: call dword ptr [0x2515155c] */ 8720 RECOMP_FLAGS_IN(); 8721 ecx = MEM32(eax); /* 0x25053DD0: mov ecx, dword ptr [eax] */ 8722 edx = MEM32(eax + 0x4); /* 0x25053DD2: mov edx, dword ptr [eax + 4] */ 8723 eax = MEM32(eax + 0x8); /* 0x25053DD5: mov eax, dword ptr [eax + 8] */ 8724 MEM32(ebp + (-0x3C)) = ecx; /* 0x25053DD8: mov dword ptr [ebp - 0x3c], ecx */ 8725 ecx = ebp + 0x34; /* 0x25053DDB: lea ecx, [ebp + 0x34] */ 8726 PUSH32(esp, ecx); /* 0x25053DDE: push ecx */ 8727 ecx = ebp + (-0x3C); /* 0x25053DDF: lea ecx, [ebp - 0x3c] */ 8728 MEM32(ebp + (-0x38)) = edx; /* 0x25053DE2: mov dword ptr [ebp - 0x38], edx */ 8729 MEM32(ebp + (-0x34)) = eax; /* 0x25053DE5: mov dword ptr [ebp - 0x34], eax */ 8730 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25053DE8: call dword ptr [0x251514f8] */ 8731 RECOMP_FLAGS_IN(); 8732 edx = MEM32(eax); /* 0x25053DEE: mov edx, dword ptr [eax] */ 8733 ecx = MEM32(eax + 0x4); /* 0x25053DF0: mov ecx, dword ptr [eax + 4] */ 8734 MEM32(ebp + (-0xC)) = edx; /* 0x25053DF3: mov dword ptr [ebp - 0xc], edx */ 8735 edx = MEM32(eax + 0x8); /* 0x25053DF6: mov edx, dword ptr [eax + 8] */ 8736 eax = MEM32(ebp + 0x1C); /* 0x25053DF9: mov eax, dword ptr [ebp + 0x1c] */ 8737 MEM32(ebp + (-0x8)) = ecx; /* 0x25053DFC: mov dword ptr [ebp - 8], ecx */ 8738 ecx = MEM32(ebp + 0x20); /* 0x25053DFF: mov ecx, dword ptr [ebp + 0x20] */ 8739 MEM32(ebp + (-0x4)) = edx; /* 0x25053E02: mov dword ptr [ebp - 4], edx */ 8740 MEM32(ebp + (-0x30)) = eax; /* 0x25053E05: mov dword ptr [ebp - 0x30], eax */ 8741 edx = MEM32(ebp + 0x24); /* 0x25053E08: mov edx, dword ptr [ebp + 0x24] */ 8742 eax = ebp + 0x34; /* 0x25053E0B: lea eax, [ebp + 0x34] */ 8743 MEM32(ebp + (-0x2C)) = ecx; /* 0x25053E0E: mov dword ptr [ebp - 0x2c], ecx */ 8744 PUSH32(esp, eax); /* 0x25053E11: push eax */ 8745 ecx = ebp + (-0x30); /* 0x25053E12: lea ecx, [ebp - 0x30] */ 8746 MEM32(ebp + (-0x28)) = edx; /* 0x25053E15: mov dword ptr [ebp - 0x28], edx */ 8747 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053E18: call dword ptr [0x25151540] */ 8748 RECOMP_FLAGS_IN(); 8749 ecx = MEM32(eax); /* 0x25053E1E: mov ecx, dword ptr [eax] */ 8750 edx = MEM32(eax + 0x4); /* 0x25053E20: mov edx, dword ptr [eax + 4] */ 8751 eax = MEM32(eax + 0x8); /* 0x25053E23: mov eax, dword ptr [eax + 8] */ 8752 MEM32(ebp + (-0x24)) = ecx; /* 0x25053E26: mov dword ptr [ebp - 0x24], ecx */ 8753 PUSH32(esp, 0x40000000u); /* 0x25053E29: push 0x40000000 */ 8754 ecx = ebp + (-0x24); /* 0x25053E2E: lea ecx, [ebp - 0x24] */ 8755 MEM32(ebp + (-0x20)) = edx; /* 0x25053E31: mov dword ptr [ebp - 0x20], edx */ 8756 MEM32(ebp + (-0x1C)) = eax; /* 0x25053E34: mov dword ptr [ebp - 0x1c], eax */ 8757 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x25053E37: call dword ptr [0x2515155c] */ 8758 RECOMP_FLAGS_IN(); 8759 ecx = MEM32(eax); /* 0x25053E3D: mov ecx, dword ptr [eax] */ 8760 edx = MEM32(eax + 0x4); /* 0x25053E3F: mov edx, dword ptr [eax + 4] */ 8761 eax = MEM32(eax + 0x8); /* 0x25053E42: mov eax, dword ptr [eax + 8] */ 8762 MEM32(ebp + (-0x18)) = ecx; /* 0x25053E45: mov dword ptr [ebp - 0x18], ecx */ 8763 ecx = MEM32(ebp + 0x40); /* 0x25053E48: mov ecx, dword ptr [ebp + 0x40] */ 8764 PUSH32(esp, edi); /* 0x25053E4B: push edi */ 8765 PUSH32(esp, ecx); /* 0x25053E4C: push ecx */ 8766 ecx = MEM32(ebp + (-0x8)); /* 0x25053E4D: mov ecx, dword ptr [ebp - 8] */ 8767 MEM32(ebp + (-0x14)) = edx; /* 0x25053E50: mov dword ptr [ebp - 0x14], edx */ 8768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8770 esp = esp - 0xCu; /* 0x25053E53: sub esp, 0xc */ 8771 _flag_k = FK_CMP; 8772 MEM32(ebp + (-0x10)) = eax; /* 0x25053E56: mov dword ptr [ebp - 0x10], eax */ 8773 eax = MEM32(ebp + (-0xC)); /* 0x25053E59: mov eax, dword ptr [ebp - 0xc] */ 8774 edx = esp; /* 0x25053E5C: mov edx, esp */ 8775 MEM32(edx) = eax; /* 0x25053E5E: mov dword ptr [edx], eax */ 8776 eax = MEM32(ebp + (-0x4)); /* 0x25053E60: mov eax, dword ptr [ebp - 4] */ 8777 MEM32(edx + 0x4) = ecx; /* 0x25053E63: mov dword ptr [edx + 4], ecx */ 8778 ecx = ebp + 0x34; /* 0x25053E66: lea ecx, [ebp + 0x34] */ 8779 PUSH32(esp, ecx); /* 0x25053E69: push ecx */ 8780 ecx = ebp + (-0x18); /* 0x25053E6A: lea ecx, [ebp - 0x18] */ 8781 MEM32(edx + 0x8) = eax; /* 0x25053E6D: mov dword ptr [edx + 8], eax */ 8782 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25053E70: call dword ptr [0x251514f8] */ 8783 RECOMP_FLAGS_IN(); 8784 ecx = MEM32(eax); /* 0x25053E76: mov ecx, dword ptr [eax] */ 8785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8787 esp = esp - 0xCu; /* 0x25053E78: sub esp, 0xc */ 8788 _flag_k = FK_CMP; 8789 edx = esp; /* 0x25053E7B: mov edx, esp */ 8790 MEM32(edx) = ecx; /* 0x25053E7D: mov dword ptr [edx], ecx */ 8791 ecx = MEM32(eax + 0x4); /* 0x25053E7F: mov ecx, dword ptr [eax + 4] */ 8792 eax = MEM32(eax + 0x8); /* 0x25053E82: mov eax, dword ptr [eax + 8] */ 8793 MEM32(edx + 0x4) = ecx; /* 0x25053E85: mov dword ptr [edx + 4], ecx */ 8794 MEM32(edx + 0x8) = eax; /* 0x25053E88: mov dword ptr [edx + 8], eax */ 8795 edx = MEM32(ebp + 0x34); /* 0x25053E8B: mov edx, dword ptr [ebp + 0x34] */ 8796 eax = MEM32(ebp + 0x38); /* 0x25053E8E: mov eax, dword ptr [ebp + 0x38] */ 8797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8799 esp = esp - 0xCu; /* 0x25053E91: sub esp, 0xc */ 8800 _flag_k = FK_CMP; 8801 ecx = esp; /* 0x25053E94: mov ecx, esp */ 8802 MEM32(ecx) = edx; /* 0x25053E96: mov dword ptr [ecx], edx */ 8803 edx = MEM32(ebp + 0x3C); /* 0x25053E98: mov edx, dword ptr [ebp + 0x3c] */ 8804 MEM32(ecx + 0x4) = eax; /* 0x25053E9B: mov dword ptr [ecx + 4], eax */ 8805 eax = MEM32(ebp + 0x18); /* 0x25053E9E: mov eax, dword ptr [ebp + 0x18] */ 8806 PUSH32(esp, eax); /* 0x25053EA1: push eax */ 8807 eax = MEM32(ebp + 0xC); /* 0x25053EA2: mov eax, dword ptr [ebp + 0xc] */ 8808 MEM32(ecx + 0x8) = edx; /* 0x25053EA5: mov dword ptr [ecx + 8], edx */ 8809 ecx = MEM32(ebp + 0x14); /* 0x25053EA8: mov ecx, dword ptr [ebp + 0x14] */ 8810 edx = MEM32(ebp + 0x10); /* 0x25053EAB: mov edx, dword ptr [ebp + 0x10] */ 8811 PUSH32(esp, ecx); /* 0x25053EAE: push ecx */ 8812 PUSH32(esp, edx); /* 0x25053EAF: push edx */ 8813 PUSH32(esp, eax); /* 0x25053EB0: push eax */ 8814 PUSH32(esp, ebx); /* 0x25053EB1: push ebx */ 8815 ecx = esi; /* 0x25053EB2: mov ecx, esi */ 8816 RECOMP_ICALL(0x25053A90u); /* 0x25053EB4: call 0x25053a90 */ /* not lifted */ 8817 RECOMP_FLAGS_IN(); 8818 ecx = MEM32(ebp + 0x1C); /* 0x25053EB9: mov ecx, dword ptr [ebp + 0x1c] */ 8819 edx = MEM32(ebp + 0x20); /* 0x25053EBC: mov edx, dword ptr [ebp + 0x20] */ 8820 eax = MEM32(ebp + 0x24); /* 0x25053EBF: mov eax, dword ptr [ebp + 0x24] */ 8821 MEM32(ebp + (-0x54)) = ecx; /* 0x25053EC2: mov dword ptr [ebp - 0x54], ecx */ 8822 ecx = ebp + 0x34; /* 0x25053EC5: lea ecx, [ebp + 0x34] */ 8823 PUSH32(esp, ecx); /* 0x25053EC8: push ecx */ 8824 ecx = ebp + (-0x54); /* 0x25053EC9: lea ecx, [ebp - 0x54] */ 8825 MEM32(ebp + (-0x50)) = edx; /* 0x25053ECC: mov dword ptr [ebp - 0x50], edx */ 8826 MEM32(ebp + (-0x4C)) = eax; /* 0x25053ECF: mov dword ptr [ebp - 0x4c], eax */ 8827 RECOMP_ICALL(MEM32(0x25151540)); /* 0x25053ED2: call dword ptr [0x25151540] */ 8828 RECOMP_FLAGS_IN(); 8829 edx = MEM32(eax); /* 0x25053ED8: mov edx, dword ptr [eax] */ 8830 ecx = MEM32(eax + 0x4); /* 0x25053EDA: mov ecx, dword ptr [eax + 4] */ 8831 MEM32(ebp + (-0x48)) = edx; /* 0x25053EDD: mov dword ptr [ebp - 0x48], edx */ 8832 edx = MEM32(eax + 0x8); /* 0x25053EE0: mov edx, dword ptr [eax + 8] */ 8833 MEM32(ebp + (-0x44)) = ecx; /* 0x25053EE3: mov dword ptr [ebp - 0x44], ecx */ 8834 MEM32(ebp + (-0x40)) = edx; /* 0x25053EE6: mov dword ptr [ebp - 0x40], edx */ 8835 PUSH32(esp, 0x40000000u); /* 0x25053EE9: push 0x40000000 */ 8836 ecx = ebp + (-0x48); /* 0x25053EEE: lea ecx, [ebp - 0x48] */ 8837 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x25053EF1: call dword ptr [0x2515155c] */ 8838 RECOMP_FLAGS_IN(); 8839 ecx = MEM32(eax); /* 0x25053EF7: mov ecx, dword ptr [eax] */ 8840 edx = MEM32(eax + 0x4); /* 0x25053EF9: mov edx, dword ptr [eax + 4] */ 8841 eax = MEM32(eax + 0x8); /* 0x25053EFC: mov eax, dword ptr [eax + 8] */ 8842 MEM32(ebp + (-0x3C)) = ecx; /* 0x25053EFF: mov dword ptr [ebp - 0x3c], ecx */ 8843 ecx = MEM32(ebp + 0x40); /* 0x25053F02: mov ecx, dword ptr [ebp + 0x40] */ 8844 PUSH32(esp, edi); /* 0x25053F05: push edi */ 8845 MEM32(ebp + (-0x38)) = edx; /* 0x25053F06: mov dword ptr [ebp - 0x38], edx */ 8846 PUSH32(esp, ecx); /* 0x25053F09: push ecx */ 8847 edx = ebp + 0x34; /* 0x25053F0A: lea edx, [ebp + 0x34] */ 8848 PUSH32(esp, edx); /* 0x25053F0D: push edx */ 8849 ecx = ebp + (-0x3C); /* 0x25053F0E: lea ecx, [ebp - 0x3c] */ 8850 MEM32(ebp + (-0x34)) = eax; /* 0x25053F11: mov dword ptr [ebp - 0x34], eax */ 8851 RECOMP_ICALL(MEM32(0x251514F8)); /* 0x25053F14: call dword ptr [0x251514f8] */ 8852 RECOMP_FLAGS_IN(); 8853 edx = MEM32(eax); /* 0x25053F1A: mov edx, dword ptr [eax] */ 8854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8856 esp = esp - 0xCu; /* 0x25053F1C: sub esp, 0xc */ 8857 _flag_k = FK_CMP; 8858 ecx = esp; /* 0x25053F1F: mov ecx, esp */ 8859 MEM32(ecx) = edx; /* 0x25053F21: mov dword ptr [ecx], edx */ 8860 edx = MEM32(eax + 0x4); /* 0x25053F23: mov edx, dword ptr [eax + 4] */ 8861 eax = MEM32(eax + 0x8); /* 0x25053F26: mov eax, dword ptr [eax + 8] */ 8862 MEM32(ecx + 0x4) = edx; /* 0x25053F29: mov dword ptr [ecx + 4], edx */ 8863 MEM32(ecx + 0x8) = eax; /* 0x25053F2C: mov dword ptr [ecx + 8], eax */ 8864 ecx = ebp + 0x28; /* 0x25053F2F: lea ecx, [ebp + 0x28] */ 8865 PUSH32(esp, ecx); /* 0x25053F32: push ecx */ 8866 edx = ebp + (-0x30); /* 0x25053F33: lea edx, [ebp - 0x30] */ 8867 PUSH32(esp, edx); /* 0x25053F36: push edx */ 8868 PUSH32(esp, 0x40000000u); /* 0x25053F37: push 0x40000000 */ 8869 eax = ebp + (-0x24); /* 0x25053F3C: lea eax, [ebp - 0x24] */ 8870 PUSH32(esp, eax); /* 0x25053F3F: push eax */ 8871 ecx = ebp + 0x28; /* 0x25053F40: lea ecx, [ebp + 0x28] */ 8872 PUSH32(esp, ecx); /* 0x25053F43: push ecx */ 8873 edx = ebp + (-0x18); /* 0x25053F44: lea edx, [ebp - 0x18] */ 8874 PUSH32(esp, edx); /* 0x25053F47: push edx */ 8875 ecx = ebp + 0x34; /* 0x25053F48: lea ecx, [ebp + 0x34] */ 8876 RECOMP_ICALL(MEM32(0x2515153C)); /* 0x25053F4B: call dword ptr [0x2515153c] */ 8877 RECOMP_FLAGS_IN(); 8878 ecx = eax; /* 0x25053F51: mov ecx, eax */ 8879 RECOMP_ICALL(MEM32(0x2515154C)); /* 0x25053F53: call dword ptr [0x2515154c] */ 8880 RECOMP_FLAGS_IN(); 8881 ecx = eax; /* 0x25053F59: mov ecx, eax */ 8882 RECOMP_ICALL(MEM32(0x25151548)); /* 0x25053F5B: call dword ptr [0x25151548] */ 8883 RECOMP_FLAGS_IN(); 8884 edx = MEM32(eax); /* 0x25053F61: mov edx, dword ptr [eax] */ 8885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8887 esp = esp - 0xCu; /* 0x25053F63: sub esp, 0xc */ 8888 _flag_k = FK_CMP; 8889 ecx = esp; /* 0x25053F66: mov ecx, esp */ 8890 MEM32(ecx) = edx; /* 0x25053F68: mov dword ptr [ecx], edx */ 8891 edx = MEM32(eax + 0x4); /* 0x25053F6A: mov edx, dword ptr [eax + 4] */ 8892 eax = MEM32(eax + 0x8); /* 0x25053F6D: mov eax, dword ptr [eax + 8] */ 8893 MEM32(ecx + 0x4) = edx; /* 0x25053F70: mov dword ptr [ecx + 4], edx */ 8894 MEM32(ecx + 0x8) = eax; /* 0x25053F73: mov dword ptr [ecx + 8], eax */ 8895 ecx = ebp + 0x1C; /* 0x25053F76: lea ecx, [ebp + 0x1c] */ 8896 PUSH32(esp, ecx); /* 0x25053F79: push ecx */ 8897 edx = ebp + (-0xC); /* 0x25053F7A: lea edx, [ebp - 0xc] */ 8898 PUSH32(esp, edx); /* 0x25053F7D: push edx */ 8899 PUSH32(esp, 0x40000000u); /* 0x25053F7E: push 0x40000000 */ 8900 eax = ebp + (-0x60); /* 0x25053F83: lea eax, [ebp - 0x60] */ 8901 PUSH32(esp, eax); /* 0x25053F86: push eax */ 8902 ecx = ebp + 0x1C; /* 0x25053F87: lea ecx, [ebp + 0x1c] */ 8903 PUSH32(esp, ecx); /* 0x25053F8A: push ecx */ 8904 edx = ebp + (-0x6C); /* 0x25053F8B: lea edx, [ebp - 0x6c] */ 8905 PUSH32(esp, edx); /* 0x25053F8E: push edx */ 8906 ecx = ebp + 0x28; /* 0x25053F8F: lea ecx, [ebp + 0x28] */ 8907 RECOMP_ICALL(MEM32(0x2515153C)); /* 0x25053F92: call dword ptr [0x2515153c] */ 8908 RECOMP_FLAGS_IN(); 8909 ecx = eax; /* 0x25053F98: mov ecx, eax */ 8910 RECOMP_ICALL(MEM32(0x2515154C)); /* 0x25053F9A: call dword ptr [0x2515154c] */ 8911 RECOMP_FLAGS_IN(); 8912 ecx = eax; /* 0x25053FA0: mov ecx, eax */ 8913 RECOMP_ICALL(MEM32(0x25151548)); /* 0x25053FA2: call dword ptr [0x25151548] */ 8914 RECOMP_FLAGS_IN(); 8915 edx = MEM32(eax); /* 0x25053FA8: mov edx, dword ptr [eax] */ 8916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8918 esp = esp - 0xCu; /* 0x25053FAA: sub esp, 0xc */ 8919 _flag_k = FK_CMP; 8920 ecx = esp; /* 0x25053FAD: mov ecx, esp */ 8921 MEM32(ecx) = edx; /* 0x25053FAF: mov dword ptr [ecx], edx */ 8922 edx = MEM32(eax + 0x4); /* 0x25053FB1: mov edx, dword ptr [eax + 4] */ 8923 eax = MEM32(eax + 0x8); /* 0x25053FB4: mov eax, dword ptr [eax + 8] */ 8924 MEM32(ecx + 0x4) = edx; /* 0x25053FB7: mov dword ptr [ecx + 4], edx */ 8925 edx = MEM32(ebp + 0x14); /* 0x25053FBA: mov edx, dword ptr [ebp + 0x14] */ 8926 MEM32(ecx + 0x8) = eax; /* 0x25053FBD: mov dword ptr [ecx + 8], eax */ 8927 ecx = MEM32(ebp + 0x18); /* 0x25053FC0: mov ecx, dword ptr [ebp + 0x18] */ 8928 eax = MEM32(ebp + 0x10); /* 0x25053FC3: mov eax, dword ptr [ebp + 0x10] */ 8929 PUSH32(esp, ecx); /* 0x25053FC6: push ecx */ 8930 ecx = MEM32(ebp + 0xC); /* 0x25053FC7: mov ecx, dword ptr [ebp + 0xc] */ 8931 PUSH32(esp, edx); /* 0x25053FCA: push edx */ 8932 PUSH32(esp, eax); /* 0x25053FCB: push eax */ 8933 PUSH32(esp, ecx); /* 0x25053FCC: push ecx */ 8934 PUSH32(esp, ebx); /* 0x25053FCD: push ebx */ 8935 ecx = esi; /* 0x25053FCE: mov ecx, esi */ 8936 RECOMP_ICALL(0x25053A90u); /* 0x25053FD0: call 0x25053a90 */ /* not lifted */ 8937 RECOMP_FLAGS_IN(); 8938 edi = POP32_VAL(esp); /* 0x25053FD5: pop edi */ 8939 esi = POP32_VAL(esp); /* 0x25053FD6: pop esi */ 8940 ebx = POP32_VAL(esp); /* 0x25053FD7: pop ebx */ 8941 esp = ebp; /* 0x25053FD8: mov esp, ebp */ 8942 ebp = POP32_VAL(esp); /* 0x25053FDA: pop ebp */ 8943 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25053FDB: ret 0x40 */ 8944 L_25053FDE: 8945 edx = MEM32(ebp + 0x44); /* 0x25053FDE: mov edx, dword ptr [ebp + 0x44] */ 8946 eax = MEM32(ebp + 0x40); /* 0x25053FE1: mov eax, dword ptr [ebp + 0x40] */ 8947 PUSH32(esp, edx); /* 0x25053FE4: push edx */ 8948 edx = MEM32(ebp + 0x34); /* 0x25053FE5: mov edx, dword ptr [ebp + 0x34] */ 8949 PUSH32(esp, eax); /* 0x25053FE8: push eax */ 8950 eax = MEM32(ebp + 0x38); /* 0x25053FE9: mov eax, dword ptr [ebp + 0x38] */ 8951 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8953 esp = esp - 0xCu; /* 0x25053FEC: sub esp, 0xc */ 8954 _flag_k = FK_CMP; 8955 ecx = esp; /* 0x25053FEF: mov ecx, esp */ 8956 MEM32(ecx) = edx; /* 0x25053FF1: mov dword ptr [ecx], edx */ 8957 edx = MEM32(ebp + 0x3C); /* 0x25053FF3: mov edx, dword ptr [ebp + 0x3c] */ 8958 MEM32(ecx + 0x4) = eax; /* 0x25053FF6: mov dword ptr [ecx + 4], eax */ 8959 MEM32(ecx + 0x8) = edx; /* 0x25053FF9: mov dword ptr [ecx + 8], edx */ 8960 ecx = MEM32(ebp + 0x28); /* 0x25053FFC: mov ecx, dword ptr [ebp + 0x28] */ 8961 edx = MEM32(ebp + 0x2C); /* 0x25053FFF: mov edx, dword ptr [ebp + 0x2c] */ 8962 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8964 esp = esp - 0xCu; /* 0x25054002: sub esp, 0xc */ 8965 _flag_k = FK_CMP; 8966 eax = esp; /* 0x25054005: mov eax, esp */ 8967 MEM32(eax) = ecx; /* 0x25054007: mov dword ptr [eax], ecx */ 8968 ecx = MEM32(ebp + 0x30); /* 0x25054009: mov ecx, dword ptr [ebp + 0x30] */ 8969 MEM32(eax + 0x4) = edx; /* 0x2505400C: mov dword ptr [eax + 4], edx */ 8970 MEM32(eax + 0x8) = ecx; /* 0x2505400F: mov dword ptr [eax + 8], ecx */ 8971 eax = MEM32(ebp + 0x1C); /* 0x25054012: mov eax, dword ptr [ebp + 0x1c] */ 8972 ecx = MEM32(ebp + 0x20); /* 0x25054015: mov ecx, dword ptr [ebp + 0x20] */ 8973 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8975 esp = esp - 0xCu; /* 0x25054018: sub esp, 0xc */ 8976 _flag_k = FK_CMP; 8977 edx = esp; /* 0x2505401B: mov edx, esp */ 8978 MEM32(edx) = eax; /* 0x2505401D: mov dword ptr [edx], eax */ 8979 eax = MEM32(ebp + 0x24); /* 0x2505401F: mov eax, dword ptr [ebp + 0x24] */ 8980 MEM32(edx + 0x4) = ecx; /* 0x25054022: mov dword ptr [edx + 4], ecx */ 8981 ecx = MEM32(ebp + 0x18); /* 0x25054025: mov ecx, dword ptr [ebp + 0x18] */ 8982 PUSH32(esp, ecx); /* 0x25054028: push ecx */ 8983 ecx = MEM32(ebp + 0xC); /* 0x25054029: mov ecx, dword ptr [ebp + 0xc] */ 8984 MEM32(edx + 0x8) = eax; /* 0x2505402C: mov dword ptr [edx + 8], eax */ 8985 edx = MEM32(ebp + 0x14); /* 0x2505402F: mov edx, dword ptr [ebp + 0x14] */ 8986 eax = MEM32(ebp + 0x10); /* 0x25054032: mov eax, dword ptr [ebp + 0x10] */ 8987 PUSH32(esp, edx); /* 0x25054035: push edx */ 8988 PUSH32(esp, eax); /* 0x25054036: push eax */ 8989 PUSH32(esp, ecx); /* 0x25054037: push ecx */ 8990 PUSH32(esp, ebx); /* 0x25054038: push ebx */ 8991 ecx = esi; /* 0x25054039: mov ecx, esi */ 8992 RECOMP_ICALL(0x25054050u); /* 0x2505403B: call 0x25054050 */ /* not lifted */ 8993 RECOMP_FLAGS_IN(); 8994 edi = POP32_VAL(esp); /* 0x25054040: pop edi */ 8995 esi = POP32_VAL(esp); /* 0x25054041: pop esi */ 8996 ebx = POP32_VAL(esp); /* 0x25054042: pop ebx */ 8997 esp = ebp; /* 0x25054043: mov esp, ebp */ 8998 ebp = POP32_VAL(esp); /* 0x25054045: pop ebp */ 8999 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25054046: ret 0x40 */ 9000 RECOMP_REGS_OUT(); 9001 } 9002 9003 void sub_25054050(void) { 9004 int _fpu_cmp = 0; 9005 uint32_t _cf = 0; 9006 int _df = 1; 9007 uint32_t _flag_k = FK_NONE; 9008 uint32_t _flag_a = 0, _flag_b = 0; 9009 uint32_t _itail_tgt = 0; 9010 RECOMP_REGS_LOCALS 9011 RECOMP_ENTER(0x25054050u); 9012 9013 L_25054050: 9014 PUSH32(esp, ebp); /* 0x25054050: push ebp */ 9015 L_25054051: 9016 ebp = esp; /* 0x25054051: mov ebp, esp */ 9017 L_25054053: 9018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9020 esp = esp - 0x10u; /* 0x25054053: sub esp, 0x10 */ 9021 _flag_k = FK_CMP; 9022 L_25054056: 9023 fp_push(*(float*)&MEM32(ebp + 0x3C)); /* 0x25054056: fld dword ptr [ebp + 0x3c] */ 9024 L_25054059: 9025 PUSH32(esp, esi); /* 0x25054059: push esi */ 9026 L_2505405A: 9027 _st[0] += (double)*(float*)ADDR(ebp + 0x30); /* 0x2505405A: fadd dword ptr [ebp + 0x30] */ 9028 L_2505405D: 9029 PUSH32(esp, edi); /* 0x2505405D: push edi */ 9030 L_2505405E: 9031 edi = ecx; /* 0x2505405E: mov edi, ecx */ 9032 L_25054060: 9033 _st[0] += (double)*(float*)ADDR(ebp + 0x24); /* 0x25054060: fadd dword ptr [ebp + 0x24] */ 9034 L_25054063: 9035 _st[0] *= (double)*(float*)ADDR(0x25153F38); /* 0x25054063: fmul dword ptr [0x25153f38] */ 9036 L_25054069: 9037 _st[0] *= (double)*(float*)ADDR(0x25153F34); /* 0x25054069: fmul dword ptr [0x25153f34] */ 9038 L_2505406F: 9039 RECOMP_ICALL(0x251380E8u); /* 0x2505406F: call 0x251380e8 */ /* not lifted */ 9040 RECOMP_FLAGS_IN(); 9041 L_25054074: 9042 fp_push(*(float*)&MEM32(ebp + 0x34)); /* 0x25054074: fld dword ptr [ebp + 0x34] */ 9043 L_25054077: 9044 _st[0] += (double)*(float*)ADDR(ebp + 0x28); /* 0x25054077: fadd dword ptr [ebp + 0x28] */ 9045 L_2505407A: 9046 eax = eax + eax * 2; /* 0x2505407A: lea eax, [eax + eax*2] */ 9047 L_2505407D: 9048 eax = eax + eax * 4; /* 0x2505407D: lea eax, [eax + eax*4] */ 9049 L_25054080: 9050 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x25054080: shl eax, 2 */ 9051 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9052 eax = eax << 2u; /* 0x25054080: shl eax, 2 */ 9053 L_25054083: 9054 _st[0] += (double)*(float*)ADDR(ebp + 0x1C); /* 0x25054083: fadd dword ptr [ebp + 0x1c] */ 9055 L_25054086: 9056 esi = eax; /* 0x25054086: mov esi, eax */ 9057 L_25054088: 9058 _st[0] *= (double)*(float*)ADDR(0x25153F38); /* 0x25054088: fmul dword ptr [0x25153f38] */ 9059 L_2505408E: 9060 _st[0] *= (double)*(float*)ADDR(0x25151868); /* 0x2505408E: fmul dword ptr [0x25151868] */ 9061 L_25054094: 9062 RECOMP_ICALL(0x251380E8u); /* 0x25054094: call 0x251380e8 */ /* not lifted */ 9063 RECOMP_FLAGS_IN(); 9064 L_25054099: 9065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 9066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9067 eax = eax - esi; /* 0x25054099: sub eax, esi */ 9068 _flag_k = FK_CMP; 9069 L_2505409B: 9070 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_S, _cf)) goto L_250542EA; /* 0x2505409B: js 0x250542ea */ 9071 L_250540A1: 9072 /* cmp eax, 0xE10u */ /* 0x250540A1: cmp eax, 0xe10 */ 9073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE10u); 9074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9075 _flag_k = FK_CMP; 9076 L_250540A6: 9077 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_GE, _cf)) goto L_250542EA; /* 0x250540A6: jge 0x250542ea */ 9078 L_250540AC: 9079 fp_push(*(float*)&MEM32(ebp + 0x28)); /* 0x250540AC: fld dword ptr [ebp + 0x28] */ 9080 L_250540AF: 9081 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x1C)); /* 0x250540AF: fcomp dword ptr [ebp + 0x1c] */ 9082 fp_pop(); 9083 L_250540B2: 9084 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250540B2: fnstsw ax */ 9085 L_250540B4: 9086 /* test HI8(eax), 0x40u */ /* 0x250540B4: test ah, 0x40 */ 9087 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9088 _cf = 0; 9089 _flag_k = FK_NARROW(FK_TEST, 24); 9090 L_250540B7: 9091 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_250540D7; /* 0x250540B7: je 0x250540d7 */ 9092 L_250540B9: 9093 fp_push(*(float*)&MEM32(ebp + 0x2C)); /* 0x250540B9: fld dword ptr [ebp + 0x2c] */ 9094 L_250540BC: 9095 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x20)); /* 0x250540BC: fcomp dword ptr [ebp + 0x20] */ 9096 fp_pop(); 9097 L_250540BF: 9098 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250540BF: fnstsw ax */ 9099 L_250540C1: 9100 /* test HI8(eax), 0x40u */ /* 0x250540C1: test ah, 0x40 */ 9101 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9102 _cf = 0; 9103 _flag_k = FK_NARROW(FK_TEST, 24); 9104 L_250540C4: 9105 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_250540D7; /* 0x250540C4: je 0x250540d7 */ 9106 L_250540C6: 9107 fp_push(*(float*)&MEM32(ebp + 0x30)); /* 0x250540C6: fld dword ptr [ebp + 0x30] */ 9108 L_250540C9: 9109 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x24)); /* 0x250540C9: fcomp dword ptr [ebp + 0x24] */ 9110 fp_pop(); 9111 L_250540CC: 9112 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250540CC: fnstsw ax */ 9113 L_250540CE: 9114 /* test HI8(eax), 0x40u */ /* 0x250540CE: test ah, 0x40 */ 9115 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9116 _cf = 0; 9117 _flag_k = FK_NARROW(FK_TEST, 24); 9118 L_250540D1: 9119 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_250542EA; /* 0x250540D1: jne 0x250542ea */ 9120 L_250540D7: 9121 fp_push(*(float*)&MEM32(ebp + 0x34)); /* 0x250540D7: fld dword ptr [ebp + 0x34] */ 9122 L_250540DA: 9123 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x28)); /* 0x250540DA: fcomp dword ptr [ebp + 0x28] */ 9124 fp_pop(); 9125 L_250540DD: 9126 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250540DD: fnstsw ax */ 9127 L_250540DF: 9128 /* test HI8(eax), 0x40u */ /* 0x250540DF: test ah, 0x40 */ 9129 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9130 _cf = 0; 9131 _flag_k = FK_NARROW(FK_TEST, 24); 9132 L_250540E2: 9133 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_25054102; /* 0x250540E2: je 0x25054102 */ 9134 L_250540E4: 9135 fp_push(*(float*)&MEM32(ebp + 0x38)); /* 0x250540E4: fld dword ptr [ebp + 0x38] */ 9136 L_250540E7: 9137 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x2C)); /* 0x250540E7: fcomp dword ptr [ebp + 0x2c] */ 9138 fp_pop(); 9139 L_250540EA: 9140 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250540EA: fnstsw ax */ 9141 L_250540EC: 9142 /* test HI8(eax), 0x40u */ /* 0x250540EC: test ah, 0x40 */ 9143 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9144 _cf = 0; 9145 _flag_k = FK_NARROW(FK_TEST, 24); 9146 L_250540EF: 9147 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_25054102; /* 0x250540EF: je 0x25054102 */ 9148 L_250540F1: 9149 fp_push(*(float*)&MEM32(ebp + 0x3C)); /* 0x250540F1: fld dword ptr [ebp + 0x3c] */ 9150 L_250540F4: 9151 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x30)); /* 0x250540F4: fcomp dword ptr [ebp + 0x30] */ 9152 fp_pop(); 9153 L_250540F7: 9154 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250540F7: fnstsw ax */ 9155 L_250540F9: 9156 /* test HI8(eax), 0x40u */ /* 0x250540F9: test ah, 0x40 */ 9157 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9158 _cf = 0; 9159 _flag_k = FK_NARROW(FK_TEST, 24); 9160 L_250540FC: 9161 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_250542EA; /* 0x250540FC: jne 0x250542ea */ 9162 L_25054102: 9163 fp_push(*(float*)&MEM32(ebp + 0x1C)); /* 0x25054102: fld dword ptr [ebp + 0x1c] */ 9164 L_25054105: 9165 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x34)); /* 0x25054105: fcomp dword ptr [ebp + 0x34] */ 9166 fp_pop(); 9167 L_25054108: 9168 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25054108: fnstsw ax */ 9169 L_2505410A: 9170 /* test HI8(eax), 0x40u */ /* 0x2505410A: test ah, 0x40 */ 9171 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9172 _cf = 0; 9173 _flag_k = FK_NARROW(FK_TEST, 24); 9174 L_2505410D: 9175 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2505412D; /* 0x2505410D: je 0x2505412d */ 9176 L_2505410F: 9177 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x2505410F: fld dword ptr [ebp + 0x20] */ 9178 L_25054112: 9179 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x38)); /* 0x25054112: fcomp dword ptr [ebp + 0x38] */ 9180 fp_pop(); 9181 L_25054115: 9182 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25054115: fnstsw ax */ 9183 L_25054117: 9184 /* test HI8(eax), 0x40u */ /* 0x25054117: test ah, 0x40 */ 9185 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9186 _cf = 0; 9187 _flag_k = FK_NARROW(FK_TEST, 24); 9188 L_2505411A: 9189 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2505412D; /* 0x2505411A: je 0x2505412d */ 9190 L_2505411C: 9191 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x2505411C: fld dword ptr [ebp + 0x24] */ 9192 L_2505411F: 9193 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + 0x3C)); /* 0x2505411F: fcomp dword ptr [ebp + 0x3c] */ 9194 fp_pop(); 9195 L_25054122: 9196 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25054122: fnstsw ax */ 9197 L_25054124: 9198 /* test HI8(eax), 0x40u */ /* 0x25054124: test ah, 0x40 */ 9199 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9200 _cf = 0; 9201 _flag_k = FK_NARROW(FK_TEST, 24); 9202 L_25054127: 9203 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_250542EA; /* 0x25054127: jne 0x250542ea */ 9204 L_2505412D: 9205 ecx = ebp + (-0x10); /* 0x2505412D: lea ecx, [ebp - 0x10] */ 9206 L_25054130: 9207 PUSH32(esp, ecx); /* 0x25054130: push ecx */ 9208 L_25054131: 9209 edx = ebp + 0x34; /* 0x25054131: lea edx, [ebp + 0x34] */ 9210 L_25054134: 9211 PUSH32(esp, edx); /* 0x25054134: push edx */ 9212 L_25054135: 9213 eax = ebp + 0x28; /* 0x25054135: lea eax, [ebp + 0x28] */ 9214 L_25054138: 9215 PUSH32(esp, eax); /* 0x25054138: push eax */ 9216 L_25054139: 9217 ecx = ebp + 0x1C; /* 0x25054139: lea ecx, [ebp + 0x1c] */ 9218 L_2505413C: 9219 PUSH32(esp, ecx); /* 0x2505413C: push ecx */ 9220 L_2505413D: 9221 ecx = edi; /* 0x2505413D: mov ecx, edi */ 9222 L_2505413F: 9223 MEM32(ebp + (-0x10)) = 0; /* 0x2505413F: mov dword ptr [ebp - 0x10], 0 */ 9224 L_25054146: 9225 MEM32(ebp + (-0xC)) = 0; /* 0x25054146: mov dword ptr [ebp - 0xc], 0 */ 9226 L_2505414D: 9227 MEM32(ebp + (-0x8)) = 0; /* 0x2505414D: mov dword ptr [ebp - 8], 0 */ 9228 L_25054154: 9229 RECOMP_ICALL(0x25054340u); /* 0x25054154: call 0x25054340 */ /* not lifted */ 9230 RECOMP_FLAGS_IN(); 9231 L_25054159: 9232 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x25054159: fld dword ptr [ebp - 0x10] */ 9233 L_2505415C: 9234 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2505415C: fcomp dword ptr [0x2515177c] */ 9235 fp_pop(); 9236 L_25054162: 9237 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25054162: fnstsw ax */ 9238 L_25054164: 9239 /* test HI8(eax), 0x40u */ /* 0x25054164: test ah, 0x40 */ 9240 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9241 _cf = 0; 9242 _flag_k = FK_NARROW(FK_TEST, 24); 9243 L_25054167: 9244 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2505418D; /* 0x25054167: je 0x2505418d */ 9245 L_25054169: 9246 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25054169: fld dword ptr [ebp - 0xc] */ 9247 L_2505416C: 9248 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2505416C: fcomp dword ptr [0x2515177c] */ 9249 fp_pop(); 9250 L_25054172: 9251 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25054172: fnstsw ax */ 9252 L_25054174: 9253 /* test HI8(eax), 0x40u */ /* 0x25054174: test ah, 0x40 */ 9254 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9255 _cf = 0; 9256 _flag_k = FK_NARROW(FK_TEST, 24); 9257 L_25054177: 9258 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2505418D; /* 0x25054177: je 0x2505418d */ 9259 L_25054179: 9260 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x25054179: fld dword ptr [ebp - 8] */ 9261 L_2505417C: 9262 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2505417C: fcomp dword ptr [0x2515177c] */ 9263 fp_pop(); 9264 L_25054182: 9265 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x25054182: fnstsw ax */ 9266 L_25054184: 9267 /* test HI8(eax), 0x40u */ /* 0x25054184: test ah, 0x40 */ 9268 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 9269 _cf = 0; 9270 _flag_k = FK_NARROW(FK_TEST, 24); 9271 L_25054187: 9272 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_250542EA; /* 0x25054187: jne 0x250542ea */ 9273 L_2505418D: 9274 PUSH32(esp, 0x6Cu); /* 0x2505418D: push 0x6c */ 9275 L_2505418F: 9276 RECOMP_ICALL(0x251380D0u); /* 0x2505418F: call 0x251380d0 */ /* not lifted */ 9277 RECOMP_FLAGS_IN(); 9278 L_25054194: 9279 esi = eax; /* 0x25054194: mov esi, eax */ 9280 L_25054196: 9281 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9282 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9283 esp = esp + 4; /* 0x25054196: add esp, 4 */ 9284 _flag_k = FK_ADD; 9285 L_25054199: 9286 /* test esi, esi */ /* 0x25054199: test esi, esi */ 9287 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9288 _cf = 0; 9289 _flag_k = FK_TEST; 9290 L_2505419B: 9291 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_250541A9; /* 0x2505419B: je 0x250541a9 */ 9292 L_2505419D: 9293 ecx = esi; /* 0x2505419D: mov ecx, esi */ 9294 L_2505419F: 9295 RECOMP_ICALL(0x250526E0u); /* 0x2505419F: call 0x250526e0 */ /* not lifted */ 9296 RECOMP_FLAGS_IN(); 9297 L_250541A4: 9298 MEM32(ebp + (-0x4)) = esi; /* 0x250541A4: mov dword ptr [ebp - 4], esi */ 9299 L_250541A7: 9300 goto L_250541B0; /* 0x250541A7: jmp 0x250541b0 */ 9301 L_250541A9: 9302 MEM32(ebp + (-0x4)) = 0; /* 0x250541A9: mov dword ptr [ebp - 4], 0 */ 9303 L_250541B0: 9304 eax = MEM32(ebp + 0x8); /* 0x250541B0: mov eax, dword ptr [ebp + 8] */ 9305 L_250541B3: 9306 /* test LO8(eax), 1 */ /* 0x250541B3: test al, 1 */ 9307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9308 _cf = 0; 9309 _flag_k = FK_NARROW(FK_TEST, 24); 9310 L_250541B5: 9311 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_250541B8; /* 0x250541B5: je 0x250541b8 */ 9312 L_250541B7: 9313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9314 eax = eax - 1; /* 0x250541B7: dec eax */ 9315 _flag_k = FK_DEC; 9316 L_250541B8: 9317 PUSH32(esp, ebx); /* 0x250541B8: push ebx */ 9318 L_250541B9: 9319 edx = ebp + (-0x10); /* 0x250541B9: lea edx, [ebp - 0x10] */ 9320 L_250541BC: 9321 PUSH32(esp, edx); /* 0x250541BC: push edx */ 9322 L_250541BD: 9323 ecx = ebp + 0x34; /* 0x250541BD: lea ecx, [ebp + 0x34] */ 9324 L_250541C0: 9325 PUSH32(esp, ecx); /* 0x250541C0: push ecx */ 9326 L_250541C1: 9327 edx = ebp + 0x28; /* 0x250541C1: lea edx, [ebp + 0x28] */ 9328 L_250541C4: 9329 PUSH32(esp, edx); /* 0x250541C4: push edx */ 9330 L_250541C5: 9331 edx = MEM32(ebp + 0xC); /* 0x250541C5: mov edx, dword ptr [ebp + 0xc] */ 9332 L_250541C8: 9333 ecx = ebp + 0x1C; /* 0x250541C8: lea ecx, [ebp + 0x1c] */ 9334 L_250541CB: 9335 PUSH32(esp, ecx); /* 0x250541CB: push ecx */ 9336 L_250541CC: 9337 ecx = MEM32(ebp + (-0x4)); /* 0x250541CC: mov ecx, dword ptr [ebp - 4] */ 9338 L_250541CF: 9339 PUSH32(esp, edx); /* 0x250541CF: push edx */ 9340 L_250541D0: 9341 PUSH32(esp, eax); /* 0x250541D0: push eax */ 9342 L_250541D1: 9343 RECOMP_ICALL(0x250527E0u); /* 0x250541D1: call 0x250527e0 */ /* not lifted */ 9344 RECOMP_FLAGS_IN(); 9345 L_250541D6: 9346 ebx = MEM32(edi); /* 0x250541D6: mov ebx, dword ptr [edi] */ 9347 L_250541D8: 9348 esi = MEM32(ebx + 0x4); /* 0x250541D8: mov esi, dword ptr [ebx + 4] */ 9349 L_250541DB: 9350 edi = MEM32(esi + 0x4); /* 0x250541DB: mov edi, dword ptr [esi + 4] */ 9351 L_250541DE: 9352 PUSH32(esp, 0xCu); /* 0x250541DE: push 0xc */ 9353 L_250541E0: 9354 RECOMP_ICALL(0x251380D0u); /* 0x250541E0: call 0x251380d0 */ /* not lifted */ 9355 RECOMP_FLAGS_IN(); 9356 L_250541E5: 9357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9359 esp = esp + 4; /* 0x250541E5: add esp, 4 */ 9360 _flag_k = FK_ADD; 9361 L_250541E8: 9362 /* test esi, esi */ /* 0x250541E8: test esi, esi */ 9363 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9364 _cf = 0; 9365 _flag_k = FK_TEST; 9366 L_250541EA: 9367 ecx = esi; /* 0x250541EA: mov ecx, esi */ 9368 L_250541EC: 9369 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_250541F0; /* 0x250541EC: jne 0x250541f0 */ 9370 L_250541EE: 9371 ecx = eax; /* 0x250541EE: mov ecx, eax */ 9372 L_250541F0: 9373 /* test edi, edi */ /* 0x250541F0: test edi, edi */ 9374 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9375 _cf = 0; 9376 _flag_k = FK_TEST; 9377 L_250541F2: 9378 MEM32(eax) = ecx; /* 0x250541F2: mov dword ptr [eax], ecx */ 9379 L_250541F4: 9380 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_250541F8; /* 0x250541F4: jne 0x250541f8 */ 9381 L_250541F6: 9382 edi = eax; /* 0x250541F6: mov edi, eax */ 9383 L_250541F8: 9384 MEM32(eax + 0x4) = edi; /* 0x250541F8: mov dword ptr [eax + 4], edi */ 9385 L_250541FB: 9386 MEM32(esi + 0x4) = eax; /* 0x250541FB: mov dword ptr [esi + 4], eax */ 9387 L_250541FE: 9388 ecx = MEM32(eax + 0x4); /* 0x250541FE: mov ecx, dword ptr [eax + 4] */ 9389 L_25054201: 9390 MEM32(ecx) = eax; /* 0x25054201: mov dword ptr [ecx], eax */ 9391 L_25054203: 9392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 9393 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9394 eax = eax + 8; /* 0x25054203: add eax, 8 */ 9395 _flag_k = FK_ADD; 9396 L_25054206: 9397 /* test eax, eax */ /* 0x25054206: test eax, eax */ 9398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9399 _cf = 0; 9400 _flag_k = FK_TEST; 9401 L_25054208: 9402 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2505420F; /* 0x25054208: je 0x2505420f */ 9403 L_2505420A: 9404 edx = MEM32(ebp + (-0x4)); /* 0x2505420A: mov edx, dword ptr [ebp - 4] */ 9405 L_2505420D: 9406 MEM32(eax) = edx; /* 0x2505420D: mov dword ptr [eax], edx */ 9407 L_2505420F: 9408 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1); 9409 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 1; /* 0x2505420F: inc dword ptr [ebx + 8] */ 9410 _flag_k = FK_INC; 9411 L_25054212: 9412 ecx = MEM32(ebp + 0x8); /* 0x25054212: mov ecx, dword ptr [ebp + 8] */ 9413 L_25054215: 9414 /* cmp ecx, 0xDu */ /* 0x25054215: cmp ecx, 0xd */ 9415 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xDu); 9416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9417 _flag_k = FK_CMP; 9418 L_25054218: 9419 ebx = POP32_VAL(esp); /* 0x25054218: pop ebx */ 9420 L_25054219: 9421 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_25054259; /* 0x25054219: ja 0x25054259 */ 9422 L_2505421B: 9423 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9424 eax = 0; /* 0x2505421B: xor eax, eax */ 9425 _cf = 0; 9426 _flag_k = FK_TEST; 9427 L_2505421D: 9428 SET_LO8(eax, MEM8(ecx + 0x25054310)); /* 0x2505421D: mov al, byte ptr [ecx + 0x25054310] */ 9429 L_25054223: 9430 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x250542F4)); goto _ljump; } 9431 L_2505422A: 9432 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9433 eax = eax | 0xFFFFFFFFu; /* 0x2505422A: or eax, 0xffffffff */ 9434 _cf = 0; 9435 _flag_k = FK_TEST; 9436 L_2505422D: 9437 goto L_2505425C; /* 0x2505422D: jmp 0x2505425c */ 9438 L_2505422F: 9439 eax = 0xF727FC05u; /* 0x2505422F: mov eax, 0xf727fc05 */ 9440 L_25054234: 9441 goto L_2505425C; /* 0x25054234: jmp 0x2505425c */ 9442 L_25054236: 9443 eax = 0xCC33997Fu; /* 0x25054236: mov eax, 0xcc33997f */ 9444 L_2505423B: 9445 goto L_2505425C; /* 0x2505423B: jmp 0x2505425c */ 9446 L_2505423D: 9447 eax = 0xF21F3A21u; /* 0x2505423D: mov eax, 0xf21f3a21 */ 9448 L_25054242: 9449 goto L_2505425C; /* 0x25054242: jmp 0x2505425c */ 9450 L_25054244: 9451 eax = 0xED663B1Bu; /* 0x25054244: mov eax, 0xed663b1b */ 9452 L_25054249: 9453 goto L_2505425C; /* 0x25054249: jmp 0x2505425c */ 9454 L_2505424B: 9455 eax = 0x9933997Fu; /* 0x2505424B: mov eax, 0x9933997f */ 9456 L_25054250: 9457 goto L_2505425C; /* 0x25054250: jmp 0x2505425c */ 9458 L_25054252: 9459 eax = 0xCCC8E6FFu; /* 0x25054252: mov eax, 0xccc8e6ff */ 9460 L_25054257: 9461 goto L_2505425C; /* 0x25054257: jmp 0x2505425c */ 9462 L_25054259: 9463 eax = MEM32(ebp + 0x8); /* 0x25054259: mov eax, dword ptr [ebp + 8] */ 9464 L_2505425C: 9465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFEu); 9466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9467 ecx = ecx + 0xFFFFFFFEu; /* 0x2505425C: add ecx, -2 */ 9468 _flag_k = FK_ADD; 9469 L_2505425F: 9470 /* cmp ecx, 5 */ /* 0x2505425F: cmp ecx, 5 */ 9471 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 9472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9473 _flag_k = FK_CMP; 9474 L_25054262: 9475 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_250542C5; /* 0x25054262: ja 0x250542c5 */ 9476 L_25054264: 9477 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x25054320)); goto _ljump; } 9478 L_2505426B: 9479 PUSH32(esp, eax); /* 0x2505426B: push eax */ 9480 L_2505426C: 9481 PUSH32(esp, eax); /* 0x2505426C: push eax */ 9482 L_2505426D: 9483 PUSH32(esp, eax); /* 0x2505426D: push eax */ 9484 L_2505426E: 9485 ecx = ebp + (-0x10); /* 0x2505426E: lea ecx, [ebp - 0x10] */ 9486 L_25054271: 9487 PUSH32(esp, ecx); /* 0x25054271: push ecx */ 9488 L_25054272: 9489 edx = ebp + (-0x10); /* 0x25054272: lea edx, [ebp - 0x10] */ 9490 L_25054275: 9491 PUSH32(esp, edx); /* 0x25054275: push edx */ 9492 L_25054276: 9493 eax = ebp + (-0x10); /* 0x25054276: lea eax, [ebp - 0x10] */ 9494 L_25054279: 9495 PUSH32(esp, eax); /* 0x25054279: push eax */ 9496 L_2505427A: 9497 ecx = ebp + 0x34; /* 0x2505427A: lea ecx, [ebp + 0x34] */ 9498 L_2505427D: 9499 PUSH32(esp, ecx); /* 0x2505427D: push ecx */ 9500 L_2505427E: 9501 edx = ebp + 0x28; /* 0x2505427E: lea edx, [ebp + 0x28] */ 9502 L_25054281: 9503 PUSH32(esp, edx); /* 0x25054281: push edx */ 9504 L_25054282: 9505 eax = ebp + 0x1C; /* 0x25054282: lea eax, [ebp + 0x1c] */ 9506 L_25054285: 9507 PUSH32(esp, eax); /* 0x25054285: push eax */ 9508 L_25054286: 9509 PUSH32(esp, 1); /* 0x25054286: push 1 */ 9510 L_25054288: 9511 RECOMP_ICALL(0x250555C0u); /* 0x25054288: call 0x250555c0 */ /* not lifted */ 9512 RECOMP_FLAGS_IN(); 9513 L_2505428D: 9514 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 9515 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9516 esp = esp + 0x28u; /* 0x2505428D: add esp, 0x28 */ 9517 _flag_k = FK_ADD; 9518 L_25054290: 9519 edi = POP32_VAL(esp); /* 0x25054290: pop edi */ 9520 L_25054291: 9521 esi = POP32_VAL(esp); /* 0x25054291: pop esi */ 9522 L_25054292: 9523 esp = ebp; /* 0x25054292: mov esp, ebp */ 9524 L_25054294: 9525 ebp = POP32_VAL(esp); /* 0x25054294: pop ebp */ 9526 L_25054295: 9527 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x25054295: ret 0x40 */ 9528 L_25054298: 9529 PUSH32(esp, eax); /* 0x25054298: push eax */ 9530 L_25054299: 9531 PUSH32(esp, eax); /* 0x25054299: push eax */ 9532 L_2505429A: 9533 PUSH32(esp, eax); /* 0x2505429A: push eax */ 9534 L_2505429B: 9535 ecx = ebp + (-0x10); /* 0x2505429B: lea ecx, [ebp - 0x10] */ 9536 L_2505429E: 9537 PUSH32(esp, ecx); /* 0x2505429E: push ecx */ 9538 L_2505429F: 9539 edx = ebp + (-0x10); /* 0x2505429F: lea edx, [ebp - 0x10] */ 9540 L_250542A2: 9541 PUSH32(esp, edx); /* 0x250542A2: push edx */ 9542 L_250542A3: 9543 eax = ebp + (-0x10); /* 0x250542A3: lea eax, [ebp - 0x10] */ 9544 L_250542A6: 9545 PUSH32(esp, eax); /* 0x250542A6: push eax */ 9546 L_250542A7: 9547 ecx = ebp + 0x34; /* 0x250542A7: lea ecx, [ebp + 0x34] */ 9548 L_250542AA: 9549 PUSH32(esp, ecx); /* 0x250542AA: push ecx */ 9550 L_250542AB: 9551 edx = ebp + 0x28; /* 0x250542AB: lea edx, [ebp + 0x28] */ 9552 L_250542AE: 9553 PUSH32(esp, edx); /* 0x250542AE: push edx */ 9554 L_250542AF: 9555 eax = ebp + 0x1C; /* 0x250542AF: lea eax, [ebp + 0x1c] */ 9556 L_250542B2: 9557 PUSH32(esp, eax); /* 0x250542B2: push eax */ 9558 L_250542B3: 9559 PUSH32(esp, 2); /* 0x250542B3: push 2 */ 9560 L_250542B5: 9561 RECOMP_ICALL(0x250555C0u); /* 0x250542B5: call 0x250555c0 */ /* not lifted */ 9562 RECOMP_FLAGS_IN(); 9563 L_250542BA: 9564 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 9565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9566 esp = esp + 0x28u; /* 0x250542BA: add esp, 0x28 */ 9567 _flag_k = FK_ADD; 9568 L_250542BD: 9569 edi = POP32_VAL(esp); /* 0x250542BD: pop edi */ 9570 L_250542BE: 9571 esi = POP32_VAL(esp); /* 0x250542BE: pop esi */ 9572 L_250542BF: 9573 esp = ebp; /* 0x250542BF: mov esp, ebp */ 9574 L_250542C1: 9575 ebp = POP32_VAL(esp); /* 0x250542C1: pop ebp */ 9576 L_250542C2: 9577 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x250542C2: ret 0x40 */ 9578 L_250542C5: 9579 PUSH32(esp, eax); /* 0x250542C5: push eax */ 9580 L_250542C6: 9581 PUSH32(esp, eax); /* 0x250542C6: push eax */ 9582 L_250542C7: 9583 PUSH32(esp, eax); /* 0x250542C7: push eax */ 9584 L_250542C8: 9585 ecx = ebp + (-0x10); /* 0x250542C8: lea ecx, [ebp - 0x10] */ 9586 L_250542CB: 9587 PUSH32(esp, ecx); /* 0x250542CB: push ecx */ 9588 L_250542CC: 9589 edx = ebp + (-0x10); /* 0x250542CC: lea edx, [ebp - 0x10] */ 9590 L_250542CF: 9591 PUSH32(esp, edx); /* 0x250542CF: push edx */ 9592 L_250542D0: 9593 eax = ebp + (-0x10); /* 0x250542D0: lea eax, [ebp - 0x10] */ 9594 L_250542D3: 9595 PUSH32(esp, eax); /* 0x250542D3: push eax */ 9596 L_250542D4: 9597 ecx = ebp + 0x34; /* 0x250542D4: lea ecx, [ebp + 0x34] */ 9598 L_250542D7: 9599 PUSH32(esp, ecx); /* 0x250542D7: push ecx */ 9600 L_250542D8: 9601 edx = ebp + 0x28; /* 0x250542D8: lea edx, [ebp + 0x28] */ 9602 L_250542DB: 9603 PUSH32(esp, edx); /* 0x250542DB: push edx */ 9604 L_250542DC: 9605 eax = ebp + 0x1C; /* 0x250542DC: lea eax, [ebp + 0x1c] */ 9606 L_250542DF: 9607 PUSH32(esp, eax); /* 0x250542DF: push eax */ 9608 L_250542E0: 9609 PUSH32(esp, 0); /* 0x250542E0: push 0 */ 9610 L_250542E2: 9611 RECOMP_ICALL(0x250555C0u); /* 0x250542E2: call 0x250555c0 */ /* not lifted */ 9612 RECOMP_FLAGS_IN(); 9613 L_250542E7: 9614 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 9615 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9616 esp = esp + 0x28u; /* 0x250542E7: add esp, 0x28 */ 9617 _flag_k = FK_ADD; 9618 L_250542EA: 9619 edi = POP32_VAL(esp); /* 0x250542EA: pop edi */ 9620 L_250542EB: 9621 esi = POP32_VAL(esp); /* 0x250542EB: pop esi */ 9622 L_250542EC: 9623 esp = ebp; /* 0x250542EC: mov esp, ebp */ 9624 L_250542EE: 9625 ebp = POP32_VAL(esp); /* 0x250542EE: pop ebp */ 9626 L_250542EF: 9627 RECOMP_FLAGS_OUT(); esp += 68; { RECOMP_REGS_OUT(); return; } /* 0x250542EF: ret 0x40 */ 9628 _ljump: 9629 switch (_itail_tgt) { 9630 case 0x25054050u: goto L_25054050; 9631 case 0x25054051u: goto L_25054051; 9632 case 0x25054053u: goto L_25054053; 9633 case 0x25054056u: goto L_25054056; 9634 case 0x25054059u: goto L_25054059; 9635 case 0x2505405Au: goto L_2505405A; 9636 case 0x2505405Du: goto L_2505405D; 9637 case 0x2505405Eu: goto L_2505405E; 9638 case 0x25054060u: goto L_25054060; 9639 case 0x25054063u: goto L_25054063; 9640 case 0x25054069u: goto L_25054069; 9641 case 0x2505406Fu: goto L_2505406F; 9642 case 0x25054074u: goto L_25054074; 9643 case 0x25054077u: goto L_25054077; 9644 case 0x2505407Au: goto L_2505407A; 9645 case 0x2505407Du: goto L_2505407D; 9646 case 0x25054080u: goto L_25054080; 9647 case 0x25054083u: goto L_25054083; 9648 case 0x25054086u: goto L_25054086; 9649 case 0x25054088u: goto L_25054088; 9650 case 0x2505408Eu: goto L_2505408E; 9651 case 0x25054094u: goto L_25054094; 9652 case 0x25054099u: goto L_25054099; 9653 case 0x2505409Bu: goto L_2505409B; 9654 case 0x250540A1u: goto L_250540A1; 9655 case 0x250540A6u: goto L_250540A6; 9656 case 0x250540ACu: goto L_250540AC; 9657 case 0x250540AFu: goto L_250540AF; 9658 case 0x250540B2u: goto L_250540B2; 9659 case 0x250540B4u: goto L_250540B4; 9660 case 0x250540B7u: goto L_250540B7; 9661 case 0x250540B9u: goto L_250540B9; 9662 case 0x250540BCu: goto L_250540BC; 9663 case 0x250540BFu: goto L_250540BF; 9664 case 0x250540C1u: goto L_250540C1; 9665 case 0x250540C4u: goto L_250540C4; 9666 case 0x250540C6u: goto L_250540C6; 9667 case 0x250540C9u: goto L_250540C9; 9668 case 0x250540CCu: goto L_250540CC; 9669 case 0x250540CEu: goto L_250540CE; 9670 case 0x250540D1u: goto L_250540D1; 9671 case 0x250540D7u: goto L_250540D7; 9672 case 0x250540DAu: goto L_250540DA; 9673 case 0x250540DDu: goto L_250540DD; 9674 case 0x250540DFu: goto L_250540DF; 9675 case 0x250540E2u: goto L_250540E2; 9676 case 0x250540E4u: goto L_250540E4; 9677 case 0x250540E7u: goto L_250540E7; 9678 case 0x250540EAu: goto L_250540EA; 9679 case 0x250540ECu: goto L_250540EC; 9680 case 0x250540EFu: goto L_250540EF; 9681 case 0x250540F1u: goto L_250540F1; 9682 case 0x250540F4u: goto L_250540F4; 9683 case 0x250540F7u: goto L_250540F7; 9684 case 0x250540F9u: goto L_250540F9; 9685 case 0x250540FCu: goto L_250540FC; 9686 case 0x25054102u: goto L_25054102; 9687 case 0x25054105u: goto L_25054105; 9688 case 0x25054108u: goto L_25054108; 9689 case 0x2505410Au: goto L_2505410A; 9690 case 0x2505410Du: goto L_2505410D; 9691 case 0x2505410Fu: goto L_2505410F; 9692 case 0x25054112u: goto L_25054112; 9693 case 0x25054115u: goto L_25054115; 9694 case 0x25054117u: goto L_25054117; 9695 case 0x2505411Au: goto L_2505411A; 9696 case 0x2505411Cu: goto L_2505411C; 9697 case 0x2505411Fu: goto L_2505411F; 9698 case 0x25054122u: goto L_25054122; 9699 case 0x25054124u: goto L_25054124; 9700 case 0x25054127u: goto L_25054127; 9701 case 0x2505412Du: goto L_2505412D; 9702 case 0x25054130u: goto L_25054130; 9703 case 0x25054131u: goto L_25054131; 9704 case 0x25054134u: goto L_25054134; 9705 case 0x25054135u: goto L_25054135; 9706 case 0x25054138u: goto L_25054138; 9707 case 0x25054139u: goto L_25054139; 9708 case 0x2505413Cu: goto L_2505413C; 9709 case 0x2505413Du: goto L_2505413D; 9710 case 0x2505413Fu: goto L_2505413F; 9711 case 0x25054146u: goto L_25054146; 9712 case 0x2505414Du: goto L_2505414D; 9713 case 0x25054154u: goto L_25054154; 9714 case 0x25054159u: goto L_25054159; 9715 case 0x2505415Cu: goto L_2505415C; 9716 case 0x25054162u: goto L_25054162; 9717 case 0x25054164u: goto L_25054164; 9718 case 0x25054167u: goto L_25054167; 9719 case 0x25054169u: goto L_25054169; 9720 case 0x2505416Cu: goto L_2505416C; 9721 case 0x25054172u: goto L_25054172; 9722 case 0x25054174u: goto L_25054174; 9723 case 0x25054177u: goto L_25054177; 9724 case 0x25054179u: goto L_25054179; 9725 case 0x2505417Cu: goto L_2505417C; 9726 case 0x25054182u: goto L_25054182; 9727 case 0x25054184u: goto L_25054184; 9728 case 0x25054187u: goto L_25054187; 9729 case 0x2505418Du: goto L_2505418D; 9730 case 0x2505418Fu: goto L_2505418F; 9731 case 0x25054194u: goto L_25054194; 9732 case 0x25054196u: goto L_25054196; 9733 case 0x25054199u: goto L_25054199; 9734 case 0x2505419Bu: goto L_2505419B; 9735 case 0x2505419Du: goto L_2505419D; 9736 case 0x2505419Fu: goto L_2505419F; 9737 case 0x250541A4u: goto L_250541A4; 9738 case 0x250541A7u: goto L_250541A7; 9739 case 0x250541A9u: goto L_250541A9; 9740 case 0x250541B0u: goto L_250541B0; 9741 case 0x250541B3u: goto L_250541B3; 9742 case 0x250541B5u: goto L_250541B5; 9743 case 0x250541B7u: goto L_250541B7; 9744 case 0x250541B8u: goto L_250541B8; 9745 case 0x250541B9u: goto L_250541B9; 9746 case 0x250541BCu: goto L_250541BC; 9747 case 0x250541BDu: goto L_250541BD; 9748 case 0x250541C0u: goto L_250541C0; 9749 case 0x250541C1u: goto L_250541C1; 9750 case 0x250541C4u: goto L_250541C4; 9751 case 0x250541C5u: goto L_250541C5; 9752 case 0x250541C8u: goto L_250541C8; 9753 case 0x250541CBu: goto L_250541CB; 9754 case 0x250541CCu: goto L_250541CC; 9755 case 0x250541CFu: goto L_250541CF; 9756 case 0x250541D0u: goto L_250541D0; 9757 case 0x250541D1u: goto L_250541D1; 9758 case 0x250541D6u: goto L_250541D6; 9759 case 0x250541D8u: goto L_250541D8; 9760 case 0x250541DBu: goto L_250541DB; 9761 case 0x250541DEu: goto L_250541DE; 9762 case 0x250541E0u: goto L_250541E0; 9763 case 0x250541E5u: goto L_250541E5; 9764 case 0x250541E8u: goto L_250541E8; 9765 case 0x250541EAu: goto L_250541EA; 9766 case 0x250541ECu: goto L_250541EC; 9767 case 0x250541EEu: goto L_250541EE; 9768 case 0x250541F0u: goto L_250541F0; 9769 case 0x250541F2u: goto L_250541F2; 9770 case 0x250541F4u: goto L_250541F4; 9771 case 0x250541F6u: goto L_250541F6; 9772 case 0x250541F8u: goto L_250541F8; 9773 case 0x250541FBu: goto L_250541FB; 9774 case 0x250541FEu: goto L_250541FE; 9775 case 0x25054201u: goto L_25054201; 9776 case 0x25054203u: goto L_25054203; 9777 case 0x25054206u: goto L_25054206; 9778 case 0x25054208u: goto L_25054208; 9779 case 0x2505420Au: goto L_2505420A; 9780 case 0x2505420Du: goto L_2505420D; 9781 case 0x2505420Fu: goto L_2505420F; 9782 case 0x25054212u: goto L_25054212; 9783 case 0x25054215u: goto L_25054215; 9784 case 0x25054218u: goto L_25054218; 9785 case 0x25054219u: goto L_25054219; 9786 case 0x2505421Bu: goto L_2505421B; 9787 case 0x2505421Du: goto L_2505421D; 9788 case 0x25054223u: goto L_25054223; 9789 case 0x2505422Au: goto L_2505422A; 9790 case 0x2505422Du: goto L_2505422D; 9791 case 0x2505422Fu: goto L_2505422F; 9792 case 0x25054234u: goto L_25054234; 9793 case 0x25054236u: goto L_25054236; 9794 case 0x2505423Bu: goto L_2505423B; 9795 case 0x2505423Du: goto L_2505423D; 9796 case 0x25054242u: goto L_25054242; 9797 case 0x25054244u: goto L_25054244; 9798 case 0x25054249u: goto L_25054249; 9799 case 0x2505424Bu: goto L_2505424B; 9800 case 0x25054250u: goto L_25054250; 9801 case 0x25054252u: goto L_25054252; 9802 case 0x25054257u: goto L_25054257; 9803 case 0x25054259u: goto L_25054259; 9804 case 0x2505425Cu: goto L_2505425C; 9805 case 0x2505425Fu: goto L_2505425F; 9806 case 0x25054262u: goto L_25054262; 9807 case 0x25054264u: goto L_25054264; 9808 case 0x2505426Bu: goto L_2505426B; 9809 case 0x2505426Cu: goto L_2505426C; 9810 case 0x2505426Du: goto L_2505426D; 9811 case 0x2505426Eu: goto L_2505426E; 9812 case 0x25054271u: goto L_25054271; 9813 case 0x25054272u: goto L_25054272; 9814 case 0x25054275u: goto L_25054275; 9815 case 0x25054276u: goto L_25054276; 9816 case 0x25054279u: goto L_25054279; 9817 case 0x2505427Au: goto L_2505427A; 9818 case 0x2505427Du: goto L_2505427D; 9819 case 0x2505427Eu: goto L_2505427E; 9820 case 0x25054281u: goto L_25054281; 9821 case 0x25054282u: goto L_25054282; 9822 case 0x25054285u: goto L_25054285; 9823 case 0x25054286u: goto L_25054286; 9824 case 0x25054288u: goto L_25054288; 9825 case 0x2505428Du: goto L_2505428D; 9826 case 0x25054290u: goto L_25054290; 9827 case 0x25054291u: goto L_25054291; 9828 case 0x25054292u: goto L_25054292; 9829 case 0x25054294u: goto L_25054294; 9830 case 0x25054295u: goto L_25054295; 9831 case 0x25054298u: goto L_25054298; 9832 case 0x25054299u: goto L_25054299; 9833 case 0x2505429Au: goto L_2505429A; 9834 case 0x2505429Bu: goto L_2505429B; 9835 case 0x2505429Eu: goto L_2505429E; 9836 case 0x2505429Fu: goto L_2505429F; 9837 case 0x250542A2u: goto L_250542A2; 9838 case 0x250542A3u: goto L_250542A3; 9839 case 0x250542A6u: goto L_250542A6; 9840 case 0x250542A7u: goto L_250542A7; 9841 case 0x250542AAu: goto L_250542AA; 9842 case 0x250542ABu: goto L_250542AB; 9843 case 0x250542AEu: goto L_250542AE; 9844 case 0x250542AFu: goto L_250542AF; 9845 case 0x250542B2u: goto L_250542B2; 9846 case 0x250542B3u: goto L_250542B3; 9847 case 0x250542B5u: goto L_250542B5; 9848 case 0x250542BAu: goto L_250542BA; 9849 case 0x250542BDu: goto L_250542BD; 9850 case 0x250542BEu: goto L_250542BE; 9851 case 0x250542BFu: goto L_250542BF; 9852 case 0x250542C1u: goto L_250542C1; 9853 case 0x250542C2u: goto L_250542C2; 9854 case 0x250542C5u: goto L_250542C5; 9855 case 0x250542C6u: goto L_250542C6; 9856 case 0x250542C7u: goto L_250542C7; 9857 case 0x250542C8u: goto L_250542C8; 9858 case 0x250542CBu: goto L_250542CB; 9859 case 0x250542CCu: goto L_250542CC; 9860 case 0x250542CFu: goto L_250542CF; 9861 case 0x250542D0u: goto L_250542D0; 9862 case 0x250542D3u: goto L_250542D3; 9863 case 0x250542D4u: goto L_250542D4; 9864 case 0x250542D7u: goto L_250542D7; 9865 case 0x250542D8u: goto L_250542D8; 9866 case 0x250542DBu: goto L_250542DB; 9867 case 0x250542DCu: goto L_250542DC; 9868 case 0x250542DFu: goto L_250542DF; 9869 case 0x250542E0u: goto L_250542E0; 9870 case 0x250542E2u: goto L_250542E2; 9871 case 0x250542E7u: goto L_250542E7; 9872 case 0x250542EAu: goto L_250542EA; 9873 case 0x250542EBu: goto L_250542EB; 9874 case 0x250542ECu: goto L_250542EC; 9875 case 0x250542EEu: goto L_250542EE; 9876 case 0x250542EFu: goto L_250542EF; 9877 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9878 } 9879 RECOMP_REGS_OUT(); 9880 } 9881 9882 void sub_25054340(void) { 9883 int _fpu_cmp = 0; 9884 uint32_t _cf = 0; 9885 int _df = 1; 9886 uint32_t _flag_k = FK_NONE; 9887 uint32_t _flag_a = 0, _flag_b = 0; 9888 uint32_t _itail_tgt = 0; 9889 RECOMP_REGS_LOCALS 9890 RECOMP_ENTER(0x25054340u); 9891 9892 L_25054340: 9893 PUSH32(esp, ebp); /* 0x25054340: push ebp */ 9894 ebp = esp; /* 0x25054341: mov ebp, esp */ 9895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 9896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9897 esp = esp - 0x24u; /* 0x25054343: sub esp, 0x24 */ 9898 _flag_k = FK_CMP; 9899 PUSH32(esp, ebx); /* 0x25054346: push ebx */ 9900 ebx = MEM32(ebp + 0x10); /* 0x25054347: mov ebx, dword ptr [ebp + 0x10] */ 9901 eax = ebx; /* 0x2505434A: mov eax, ebx */ 9902 ecx = MEM32(eax); /* 0x2505434C: mov ecx, dword ptr [eax] */ 9903 edx = MEM32(eax + 0x4); /* 0x2505434E: mov edx, dword ptr [eax + 4] */ 9904 eax = MEM32(eax + 0x8); /* 0x25054351: mov eax, dword ptr [eax + 8] */ 9905 MEM32(ebp + (-0xC)) = ecx; /* 0x25054354: mov dword ptr [ebp - 0xc], ecx */ 9906 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25054357: fld dword ptr [ebp - 0xc] */ 9907 PUSH32(esp, esi); /* 0x2505435A: push esi */ 9908 esi = MEM32(ebp + 0x8); /* 0x2505435B: mov esi, dword ptr [ebp + 8] */ 9909 _st[0] -= (double)*(float*)ADDR(esi); /* 0x2505435E: fsub dword ptr [esi] */ 9910 MEM32(ebp + (-0x8)) = edx; /* 0x25054360: mov dword ptr [ebp - 8], edx */ 9911 MEM32(ebp + (-0x4)) = eax; /* 0x25054363: mov dword ptr [ebp - 4], eax */ 9912 PUSH32(esp, edi); /* 0x25054366: push edi */ 9913 edi = MEM32(ebp + 0xC); /* 0x25054367: mov edi, dword ptr [ebp + 0xc] */ 9914 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2505436A: fstp dword ptr [ebp - 0xc] */ 9915 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2505436D: fld dword ptr [ebp - 8] */ 9916 ecx = MEM32(ebp + (-0xC)); /* 0x25054370: mov ecx, dword ptr [ebp - 0xc] */ 9917 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x25054373: fsub dword ptr [esi + 4] */ 9918 MEM32(ebp + (-0x18)) = ecx; /* 0x25054376: mov dword ptr [ebp - 0x18], ecx */ 9919 ecx = edi; /* 0x25054379: mov ecx, edi */ 9920 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2505437B: fstp dword ptr [ebp - 8] */ 9921 edx = MEM32(ebp + (-0x8)); /* 0x2505437E: mov edx, dword ptr [ebp - 8] */ 9922 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x25054381: fld dword ptr [ebp - 4] */ 9923 MEM32(ebp + (-0x14)) = edx; /* 0x25054384: mov dword ptr [ebp - 0x14], edx */ 9924 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x25054387: fsub dword ptr [esi + 8] */ 9925 edx = MEM32(ecx); /* 0x2505438A: mov edx, dword ptr [ecx] */ 9926 MEM32(ebp + (-0xC)) = edx; /* 0x2505438C: mov dword ptr [ebp - 0xc], edx */ 9927 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2505438F: fstp dword ptr [ebp - 4] */ 9928 eax = MEM32(ebp + (-0x4)); /* 0x25054392: mov eax, dword ptr [ebp - 4] */ 9929 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25054395: fld dword ptr [ebp - 0xc] */ 9930 MEM32(ebp + (-0x10)) = eax; /* 0x25054398: mov dword ptr [ebp - 0x10], eax */ 9931 _st[0] -= (double)*(float*)ADDR(esi); /* 0x2505439B: fsub dword ptr [esi] */ 9932 eax = MEM32(ecx + 0x4); /* 0x2505439D: mov eax, dword ptr [ecx + 4] */ 9933 ecx = MEM32(ecx + 0x8); /* 0x250543A0: mov ecx, dword ptr [ecx + 8] */ 9934 MEM32(ebp + (-0x8)) = eax; /* 0x250543A3: mov dword ptr [ebp - 8], eax */ 9935 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x250543A6: fstp dword ptr [ebp - 0xc] */ 9936 edx = MEM32(ebp + (-0xC)); /* 0x250543A9: mov edx, dword ptr [ebp - 0xc] */ 9937 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x250543AC: fld dword ptr [ebp - 8] */ 9938 MEM32(ebp + (-0x4)) = ecx; /* 0x250543AF: mov dword ptr [ebp - 4], ecx */ 9939 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x250543B2: fsub dword ptr [esi + 4] */ 9940 MEM32(ebp + (-0x24)) = edx; /* 0x250543B5: mov dword ptr [ebp - 0x24], edx */ 9941 edx = ebp + (-0x18); /* 0x250543B8: lea edx, [ebp - 0x18] */ 9942 PUSH32(esp, edx); /* 0x250543BB: push edx */ 9943 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x250543BC: fstp dword ptr [ebp - 8] */ 9944 eax = MEM32(ebp + (-0x8)); /* 0x250543BF: mov eax, dword ptr [ebp - 8] */ 9945 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x250543C2: fld dword ptr [ebp - 4] */ 9946 MEM32(ebp + (-0x20)) = eax; /* 0x250543C5: mov dword ptr [ebp - 0x20], eax */ 9947 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x250543C8: fsub dword ptr [esi + 8] */ 9948 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x250543CB: fstp dword ptr [ebp - 4] */ 9949 ecx = MEM32(ebp + (-0x4)); /* 0x250543CE: mov ecx, dword ptr [ebp - 4] */ 9950 MEM32(ebp + (-0x1C)) = ecx; /* 0x250543D1: mov dword ptr [ebp - 0x1c], ecx */ 9951 ecx = ebp + (-0x24); /* 0x250543D4: lea ecx, [ebp - 0x24] */ 9952 RECOMP_ICALL(MEM32(0x25151564)); /* 0x250543D7: call dword ptr [0x25151564] */ 9953 RECOMP_FLAGS_IN(); 9954 edx = MEM32(eax); /* 0x250543DD: mov edx, dword ptr [eax] */ 9955 ecx = MEM32(ebp + 0x14); /* 0x250543DF: mov ecx, dword ptr [ebp + 0x14] */ 9956 MEM32(ecx) = edx; /* 0x250543E2: mov dword ptr [ecx], edx */ 9957 edx = MEM32(eax + 0x4); /* 0x250543E4: mov edx, dword ptr [eax + 4] */ 9958 MEM32(ecx + 0x4) = edx; /* 0x250543E7: mov dword ptr [ecx + 4], edx */ 9959 eax = MEM32(eax + 0x8); /* 0x250543EA: mov eax, dword ptr [eax + 8] */ 9960 MEM32(ecx + 0x8) = eax; /* 0x250543ED: mov dword ptr [ecx + 8], eax */ 9961 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x250543F0: fld dword ptr [ecx + 4] */ 9962 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x250543F3: fcomp dword ptr [0x2515177c] */ 9963 fp_pop(); 9964 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250543F9: fnstsw ax */ 9965 /* test HI8(eax), 1 */ /* 0x250543FB: test ah, 1 */ 9966 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9967 _cf = 0; 9968 _flag_k = FK_NARROW(FK_TEST, 24); 9969 if (TEST_Z(_flag_a, _flag_b)) goto L_250544CE; /* 0x250543FE: je 0x250544ce */ 9970 L_25054404: 9971 ecx = edi; /* 0x25054404: mov ecx, edi */ 9972 edx = MEM32(ecx); /* 0x25054406: mov edx, dword ptr [ecx] */ 9973 eax = MEM32(ecx + 0x4); /* 0x25054408: mov eax, dword ptr [ecx + 4] */ 9974 ecx = MEM32(ecx + 0x8); /* 0x2505440B: mov ecx, dword ptr [ecx + 8] */ 9975 MEM32(ebp + (-0x18)) = edx; /* 0x2505440E: mov dword ptr [ebp - 0x18], edx */ 9976 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x25054411: fld dword ptr [ebp - 0x18] */ 9977 MEM32(ebp + (-0x14)) = eax; /* 0x25054414: mov dword ptr [ebp - 0x14], eax */ 9978 MEM32(ebp + (-0x10)) = ecx; /* 0x25054417: mov dword ptr [ebp - 0x10], ecx */ 9979 edx = ebx; /* 0x2505441A: mov edx, ebx */ 9980 ecx = MEM32(edx); /* 0x2505441C: mov ecx, dword ptr [edx] */ 9981 eax = edi; /* 0x2505441E: mov eax, edi */ 9982 MEM32(eax) = ecx; /* 0x25054420: mov dword ptr [eax], ecx */ 9983 ecx = MEM32(edx + 0x4); /* 0x25054422: mov ecx, dword ptr [edx + 4] */ 9984 MEM32(eax + 0x4) = ecx; /* 0x25054425: mov dword ptr [eax + 4], ecx */ 9985 edx = MEM32(edx + 0x8); /* 0x25054428: mov edx, dword ptr [edx + 8] */ 9986 ecx = MEM32(ebp + (-0x14)); /* 0x2505442B: mov ecx, dword ptr [ebp - 0x14] */ 9987 MEM32(eax + 0x8) = edx; /* 0x2505442E: mov dword ptr [eax + 8], edx */ 9988 eax = MEM32(ebp + (-0x18)); /* 0x25054431: mov eax, dword ptr [ebp - 0x18] */ 9989 edx = MEM32(ebp + (-0x10)); /* 0x25054434: mov edx, dword ptr [ebp - 0x10] */ 9990 MEM32(ebx) = eax; /* 0x25054437: mov dword ptr [ebx], eax */ 9991 MEM32(ebx + 0x4) = ecx; /* 0x25054439: mov dword ptr [ebx + 4], ecx */ 9992 MEM32(ebx + 0x8) = edx; /* 0x2505443C: mov dword ptr [ebx + 8], edx */ 9993 _st[0] -= (double)*(float*)ADDR(esi); /* 0x2505443F: fsub dword ptr [esi] */ 9994 MEM32(ebp + (-0xC)) = eax; /* 0x25054441: mov dword ptr [ebp - 0xc], eax */ 9995 MEM32(ebp + (-0x8)) = ecx; /* 0x25054444: mov dword ptr [ebp - 8], ecx */ 9996 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x25054447: fstp dword ptr [ebp - 0xc] */ 9997 eax = MEM32(ebp + (-0xC)); /* 0x2505444A: mov eax, dword ptr [ebp - 0xc] */ 9998 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2505444D: fld dword ptr [ebp - 8] */ 9999 MEM32(ebp + (-0x4)) = edx; /* 0x25054450: mov dword ptr [ebp - 4], edx */ 10000 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x25054453: fsub dword ptr [esi + 4] */ 10001 MEM32(ebp + (-0x24)) = eax; /* 0x25054456: mov dword ptr [ebp - 0x24], eax */ 10002 eax = MEM32(edi); /* 0x25054459: mov eax, dword ptr [edi] */ 10003 MEM32(ebp + (-0xC)) = eax; /* 0x2505445B: mov dword ptr [ebp - 0xc], eax */ 10004 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2505445E: fstp dword ptr [ebp - 8] */ 10005 ecx = MEM32(ebp + (-0x8)); /* 0x25054461: mov ecx, dword ptr [ebp - 8] */ 10006 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x25054464: fld dword ptr [ebp - 4] */ 10007 MEM32(ebp + (-0x20)) = ecx; /* 0x25054467: mov dword ptr [ebp - 0x20], ecx */ 10008 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x2505446A: fsub dword ptr [esi + 8] */ 10009 ecx = MEM32(edi + 0x4); /* 0x2505446D: mov ecx, dword ptr [edi + 4] */ 10010 MEM32(ebp + (-0x8)) = ecx; /* 0x25054470: mov dword ptr [ebp - 8], ecx */ 10011 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x25054473: fstp dword ptr [ebp - 4] */ 10012 edx = MEM32(ebp + (-0x4)); /* 0x25054476: mov edx, dword ptr [ebp - 4] */ 10013 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x25054479: fld dword ptr [ebp - 0xc] */ 10014 MEM32(ebp + (-0x1C)) = edx; /* 0x2505447C: mov dword ptr [ebp - 0x1c], edx */ 10015 _st[0] -= (double)*(float*)ADDR(esi); /* 0x2505447F: fsub dword ptr [esi] */ 10016 edx = MEM32(edi + 0x8); /* 0x25054481: mov edx, dword ptr [edi + 8] */ 10017 MEM32(ebp + (-0x4)) = edx; /* 0x25054484: mov dword ptr [ebp - 4], edx */ 10018 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x25054487: fstp dword ptr [ebp - 0xc] */ 10019 eax = MEM32(ebp + (-0xC)); /* 0x2505448A: mov eax, dword ptr [ebp - 0xc] */ 10020 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x2505448D: fld dword ptr [ebp - 8] */ 10021 MEM32(ebp + (-0x18)) = eax; /* 0x25054490: mov dword ptr [ebp - 0x18], eax */ 10022 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x25054493: fsub dword ptr [esi + 4] */ 10023 eax = ebp + (-0x24); /* 0x25054496: lea eax, [ebp - 0x24] */ 10024 PUSH32(esp, eax); /* 0x25054499: push eax */ 10025 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2505449A: fstp dword ptr [ebp - 8] */ 10026 ecx = MEM32(ebp + (-0x8)); /* 0x2505449D: mov ecx, dword ptr [ebp - 8] */ 10027 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x250544A0: fld dword ptr [ebp - 4] */ 10028 MEM32(ebp + (-0x14)) = ecx; /* 0x250544A3: mov dword ptr [ebp - 0x14], ecx */ 10029 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x250544A6: fsub dword ptr [esi + 8] */ 10030 ecx = ebp + (-0x18); /* 0x250544A9: lea ecx, [ebp - 0x18] */ 10031 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x250544AC: fstp dword ptr [ebp - 4] */ 10032 edx = MEM32(ebp + (-0x4)); /* 0x250544AF: mov edx, dword ptr [ebp - 4] */ 10033 MEM32(ebp + (-0x10)) = edx; /* 0x250544B2: mov dword ptr [ebp - 0x10], edx */ 10034 RECOMP_ICALL(MEM32(0x25151564)); /* 0x250544B5: call dword ptr [0x25151564] */ 10035 RECOMP_FLAGS_IN(); 10036 edx = MEM32(eax); /* 0x250544BB: mov edx, dword ptr [eax] */ 10037 ecx = MEM32(ebp + 0x14); /* 0x250544BD: mov ecx, dword ptr [ebp + 0x14] */ 10038 MEM32(ecx) = edx; /* 0x250544C0: mov dword ptr [ecx], edx */ 10039 edx = MEM32(eax + 0x4); /* 0x250544C2: mov edx, dword ptr [eax + 4] */ 10040 MEM32(ecx + 0x4) = edx; /* 0x250544C5: mov dword ptr [ecx + 4], edx */ 10041 eax = MEM32(eax + 0x8); /* 0x250544C8: mov eax, dword ptr [eax + 8] */ 10042 MEM32(ecx + 0x8) = eax; /* 0x250544CB: mov dword ptr [ecx + 8], eax */ 10043 L_250544CE: 10044 fp_push(*(float*)&MEM32(ecx)); /* 0x250544CE: fld dword ptr [ecx] */ 10045 edi = POP32_VAL(esp); /* 0x250544D0: pop edi */ 10046 _st[0] = fabs(_st[0]); /* 0x250544D1: fabs */ 10047 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25153F3C)); /* 0x250544D3: fcomp dword ptr [0x25153f3c] */ 10048 fp_pop(); 10049 esi = POP32_VAL(esp); /* 0x250544D9: pop esi */ 10050 ebx = POP32_VAL(esp); /* 0x250544DA: pop ebx */ 10051 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250544DB: fnstsw ax */ 10052 /* test HI8(eax), 1 */ /* 0x250544DD: test ah, 1 */ 10053 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10054 _cf = 0; 10055 _flag_k = FK_NARROW(FK_TEST, 24); 10056 if (TEST_Z(_flag_a, _flag_b)) goto L_25054532; /* 0x250544E0: je 0x25054532 */ 10057 L_250544E2: 10058 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x250544E2: fld dword ptr [ecx + 4] */ 10059 _st[0] = fabs(_st[0]); /* 0x250544E5: fabs */ 10060 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25153F3C)); /* 0x250544E7: fcomp dword ptr [0x25153f3c] */ 10061 fp_pop(); 10062 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250544ED: fnstsw ax */ 10063 /* test HI8(eax), 1 */ /* 0x250544EF: test ah, 1 */ 10064 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10065 _cf = 0; 10066 _flag_k = FK_NARROW(FK_TEST, 24); 10067 if (TEST_Z(_flag_a, _flag_b)) goto L_25054532; /* 0x250544F2: je 0x25054532 */ 10068 L_250544F4: 10069 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x250544F4: fld dword ptr [ecx + 8] */ 10070 _st[0] = fabs(_st[0]); /* 0x250544F7: fabs */ 10071 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25153F3C)); /* 0x250544F9: fcomp dword ptr [0x25153f3c] */ 10072 fp_pop(); 10073 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x250544FF: fnstsw ax */ 10074 /* test HI8(eax), 1 */ /* 0x25054501: test ah, 1 */ 10075 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10076 _cf = 0; 10077 _flag_k = FK_NARROW(FK_TEST, 24); 10078 if (TEST_Z(_flag_a, _flag_b)) goto L_25054532; /* 0x25054504: je 0x25054532 */ 10079 L_25054506: 10080 MEM32(ebp + (-0x18)) = 0; /* 0x25054506: mov dword ptr [ebp - 0x18], 0 */ 10081 edx = MEM32(ebp + (-0x18)); /* 0x2505450D: mov edx, dword ptr [ebp - 0x18] */ 10082 MEM32(ecx) = edx; /* 0x25054510: mov dword ptr [ecx], edx */ 10083 MEM32(ebp + (-0x14)) = 0; /* 0x25054512: mov dword ptr [ebp - 0x14], 0 */ 10084 eax = MEM32(ebp + (-0x14)); /* 0x25054519: mov eax, dword ptr [ebp - 0x14] */ 10085 MEM32(ebp + (-0x10)) = 0; /* 0x2505451C: mov dword ptr [ebp - 0x10], 0 */ 10086 edx = MEM32(ebp + (-0x10)); /* 0x25054523: mov edx, dword ptr [ebp - 0x10] */ 10087 MEM32(ecx + 0x4) = eax; /* 0x25054526: mov dword ptr [ecx + 4], eax */ 10088 MEM32(ecx + 0x8) = edx; /* 0x25054529: mov dword ptr [ecx + 8], edx */ 10089 esp = ebp; /* 0x2505452C: mov esp, ebp */ 10090 ebp = POP32_VAL(esp); /* 0x2505452E: pop ebp */ 10091 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2505452F: ret 0x10 */ 10092 L_25054532: 10093 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x25054532: fld dword ptr [ecx + 8] */ 10094 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x25054535: fld dword ptr [ecx + 4] */ 10095 fp_push(*(float*)&MEM32(ecx)); /* 0x25054538: fld dword ptr [ecx] */ 10096 fp_push(_st[0]); /* 0x2505453A: fld st(0) */ 10097 _st[0] *= _st[1]; /* 0x2505453C: fmul st(1) */ 10098 fp_push(_st[2]); /* 0x2505453E: fld st(2) */ 10099 _st[0] *= _st[3]; /* 0x25054540: fmul st(3) */ 10100 { double _v = fp_pop(); _st[0] += _v; } /* 0x25054542: faddp st(1) */ 10101 fp_push(_st[3]); /* 0x25054544: fld st(3) */ 10102 _st[0] *= _st[4]; /* 0x25054546: fmul st(4) */ 10103 { double _v = fp_pop(); _st[0] += _v; } /* 0x25054548: faddp st(1) */ 10104 _st[0] = sqrt(_st[0]); /* 0x2505454A: fsqrt */ 10105 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x2505454C: fstp st(3) */ 10106 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2505454E: fstp st(0) */ 10107 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25054550: fstp st(0) */ 10108 _st[0] = (double)*(float*)ADDR(0x251517A4) / _st[0]; /* 0x25054552: fdivr dword ptr [0x251517a4] */ 10109 fp_push(_st[0]); /* 0x25054558: fld st(0) */ 10110 _st[0] *= (double)*(float*)ADDR(ecx); /* 0x2505455A: fmul dword ptr [ecx] */ 10111 { float _v = (float)fp_pop(); *(float*)ADDR(ecx) = _v; } /* 0x2505455C: fstp dword ptr [ecx] */ 10112 fp_push(_st[0]); /* 0x2505455E: fld st(0) */ 10113 _st[0] *= (double)*(float*)ADDR(ecx + 0x4); /* 0x25054560: fmul dword ptr [ecx + 4] */ 10114 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x4) = _v; } /* 0x25054563: fstp dword ptr [ecx + 4] */ 10115 _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x25054566: fmul dword ptr [ecx + 8] */ 10116 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x8) = _v; } /* 0x25054569: fstp dword ptr [ecx + 8] */ 10117 esp = ebp; /* 0x2505456C: mov esp, ebp */ 10118 ebp = POP32_VAL(esp); /* 0x2505456E: pop ebp */ 10119 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2505456F: ret 0x10 */ 10120 RECOMP_REGS_OUT(); 10121 } 10122 10123 void sub_2505450D(void) { 10124 int _fpu_cmp = 0; 10125 uint32_t _cf = 0; 10126 int _df = 1; 10127 uint32_t _flag_k = FK_NONE; 10128 uint32_t _flag_a = 0, _flag_b = 0; 10129 uint32_t _itail_tgt = 0; 10130 RECOMP_REGS_LOCALS 10131 RECOMP_ENTER(0x2505450Du); 10132 10133 L_2505450D: 10134 edx = MEM32(ebp + (-0x18)); /* 0x2505450D: mov edx, dword ptr [ebp - 0x18] */ 10135 MEM32(ecx) = edx; /* 0x25054510: mov dword ptr [ecx], edx */ 10136 MEM32(ebp + (-0x14)) = 0; /* 0x25054512: mov dword ptr [ebp - 0x14], 0 */ 10137 eax = MEM32(ebp + (-0x14)); /* 0x25054519: mov eax, dword ptr [ebp - 0x14] */ 10138 MEM32(ebp + (-0x10)) = 0; /* 0x2505451C: mov dword ptr [ebp - 0x10], 0 */ 10139 edx = MEM32(ebp + (-0x10)); /* 0x25054523: mov edx, dword ptr [ebp - 0x10] */ 10140 MEM32(ecx + 0x4) = eax; /* 0x25054526: mov dword ptr [ecx + 4], eax */ 10141 MEM32(ecx + 0x8) = edx; /* 0x25054529: mov dword ptr [ecx + 8], edx */ 10142 esp = ebp; /* 0x2505452C: mov esp, ebp */ 10143 ebp = POP32_VAL(esp); /* 0x2505452E: pop ebp */ 10144 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2505452F: ret 0x10 */ 10145 RECOMP_REGS_OUT(); 10146 } 10147 10148 void sub_25054580(void) { 10149 int _fpu_cmp = 0; 10150 uint32_t _cf = 0; 10151 int _df = 1; 10152 uint32_t _flag_k = FK_NONE; 10153 uint32_t _flag_a = 0, _flag_b = 0; 10154 uint32_t _itail_tgt = 0; 10155 RECOMP_REGS_LOCALS 10156 RECOMP_ENTER(0x25054580u); 10157 10158 L_25054580: 10159 eax = MEM32(ecx); /* 0x25054580: mov eax, dword ptr [ecx] */ 10160 edx = MEM32(eax + 0x4); /* 0x25054582: mov edx, dword ptr [eax + 4] */ 10161 eax = MEM32(edx); /* 0x25054585: mov eax, dword ptr [edx] */ 10162 MEM32(0x251C766C) = eax; /* 0x25054587: mov dword ptr [0x251c766c], eax */ 10163 ecx = MEM32(ecx); /* 0x2505458C: mov ecx, dword ptr [ecx] */ 10164 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2505458E: cmp eax, dword ptr [ecx + 4] */ 10165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10167 _flag_k = FK_CMP; 10168 if (CMP_NE(_flag_a, _flag_b)) goto L_25054596; /* 0x25054591: jne 0x25054596 */ 10169 L_25054593: 10170 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10171 eax = 0; /* 0x25054593: xor eax, eax */ 10172 _cf = 0; 10173 _flag_k = FK_TEST; 10174 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25054595: ret */ 10175 L_25054596: 10176 eax = MEM32(eax + 0x8); /* 0x25054596: mov eax, dword ptr [eax + 8] */ 10177 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25054599: ret */ 10178 RECOMP_REGS_OUT(); 10179 } 10180 10181 void sub_250545A0(void) { 10182 int _fpu_cmp = 0; 10183 uint32_t _cf = 0; 10184 int _df = 1; 10185 uint32_t _flag_k = FK_NONE; 10186 uint32_t _flag_a = 0, _flag_b = 0; 10187 uint32_t _itail_tgt = 0; 10188 RECOMP_REGS_LOCALS 10189 RECOMP_ENTER(0x250545A0u); 10190 10191 L_250545A0: 10192 eax = MEM32(ecx); /* 0x250545A0: mov eax, dword ptr [ecx] */ 10193 edx = MEM32(eax + 0x4); /* 0x250545A2: mov edx, dword ptr [eax + 4] */ 10194 eax = MEM32(0x251C766C); /* 0x250545A5: mov eax, dword ptr [0x251c766c] */ 10195 /* cmp eax, edx */ /* 0x250545AA: cmp eax, edx */ 10196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 10197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10198 _flag_k = FK_CMP; 10199 if (CMP_NE(_flag_a, _flag_b)) goto L_250545B1; /* 0x250545AC: jne 0x250545b1 */ 10200 L_250545AE: 10201 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10202 eax = 0; /* 0x250545AE: xor eax, eax */ 10203 _cf = 0; 10204 _flag_k = FK_TEST; 10205 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250545B0: ret */ 10206 L_250545B1: 10207 eax = MEM32(eax); /* 0x250545B1: mov eax, dword ptr [eax] */ 10208 MEM32(0x251C766C) = eax; /* 0x250545B3: mov dword ptr [0x251c766c], eax */ 10209 ecx = MEM32(ecx); /* 0x250545B8: mov ecx, dword ptr [ecx] */ 10210 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x250545BA: cmp eax, dword ptr [ecx + 4] */ 10211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10213 _flag_k = FK_CMP; 10214 if (CMP_NE(_flag_a, _flag_b)) goto L_250545C2; /* 0x250545BD: jne 0x250545c2 */ 10215 L_250545BF: 10216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10217 eax = 0; /* 0x250545BF: xor eax, eax */ 10218 _cf = 0; 10219 _flag_k = FK_TEST; 10220 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250545C1: ret */ 10221 L_250545C2: 10222 eax = MEM32(eax + 0x8); /* 0x250545C2: mov eax, dword ptr [eax + 8] */ 10223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250545C5: ret */ 10224 RECOMP_REGS_OUT(); 10225 } 10226 10227 void sub_250545D0(void) { 10228 int _fpu_cmp = 0; 10229 uint32_t _cf = 0; 10230 int _df = 1; 10231 uint32_t _flag_k = FK_NONE; 10232 uint32_t _flag_a = 0, _flag_b = 0; 10233 uint32_t _itail_tgt = 0; 10234 RECOMP_REGS_LOCALS 10235 RECOMP_ENTER(0x250545D0u); 10236 10237 L_250545D0: 10238 PUSH32(esp, ebp); /* 0x250545D0: push ebp */ 10239 ebp = esp; /* 0x250545D1: mov ebp, esp */ 10240 eax = MEM32(ebp + 0x8); /* 0x250545D3: mov eax, dword ptr [ebp + 8] */ 10241 PUSH32(esp, eax); /* 0x250545D6: push eax */ 10242 RECOMP_ICALL(0x25057190u); /* 0x250545D7: call 0x25057190 */ /* not lifted */ 10243 RECOMP_FLAGS_IN(); 10244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10246 esp = esp + 4; /* 0x250545DC: add esp, 4 */ 10247 _flag_k = FK_ADD; 10248 ebp = POP32_VAL(esp); /* 0x250545DF: pop ebp */ 10249 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250545E0: ret 4 */ 10250 RECOMP_REGS_OUT(); 10251 } 10252 10253 void sub_250545F0(void) { 10254 int _fpu_cmp = 0; 10255 uint32_t _cf = 0; 10256 int _df = 1; 10257 uint32_t _flag_k = FK_NONE; 10258 uint32_t _flag_a = 0, _flag_b = 0; 10259 uint32_t _itail_tgt = 0; 10260 RECOMP_REGS_LOCALS 10261 RECOMP_ENTER(0x250545F0u); 10262 10263 L_250545F0: 10264 goto L_250571D0; /* 0x250545F0: jmp 0x250571d0 */ 10265 L_250571D0: 10266 MEM8(0x252380C2) = (uint8_t)(1); /* 0x250571D0: mov byte ptr [0x252380c2], 1 */ 10267 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250571D7: ret */ 10268 RECOMP_REGS_OUT(); 10269 } 10270 10271 void sub_25054600(void) { 10272 int _fpu_cmp = 0; 10273 uint32_t _cf = 0; 10274 int _df = 1; 10275 uint32_t _flag_k = FK_NONE; 10276 uint32_t _flag_a = 0, _flag_b = 0; 10277 uint32_t _itail_tgt = 0; 10278 RECOMP_REGS_LOCALS 10279 RECOMP_ENTER(0x25054600u); 10280 10281 L_25054600: 10282 PUSH32(esp, ebp); /* 0x25054600: push ebp */ 10283 ebp = esp; /* 0x25054601: mov ebp, esp */ 10284 ecx = MEM32(0x251C7670); /* 0x25054603: mov ecx, dword ptr [0x251c7670] */ 10285 /* test ecx, ecx */ /* 0x25054609: test ecx, ecx */ 10286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10287 _cf = 0; 10288 _flag_k = FK_TEST; 10289 if (TEST_Z(_flag_a, _flag_b)) goto L_25054612; /* 0x2505460B: je 0x25054612 */ 10290 L_2505460D: 10291 RECOMP_ICALL(0x250E6370u); /* 0x2505460D: call 0x250e6370 */ /* not lifted */ 10292 RECOMP_FLAGS_IN(); 10293 L_25054612: 10294 PUSH32(esp, esi); /* 0x25054612: push esi */ 10295 esi = MEM32(ebp + 0x8); /* 0x25054613: mov esi, dword ptr [ebp + 8] */ 10296 PUSH32(esp, edi); /* 0x25054616: push edi */ 10297 ecx = 5; /* 0x25054617: mov ecx, 5 */ 10298 edi = 0x251C7670u; /* 0x2505461C: mov edi, 0x251c7670 */ 10299 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25054621: 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; } 10300 ecx = MEM32(0x251C7670); /* 0x25054623: mov ecx, dword ptr [0x251c7670] */ 10301 /* test ecx, ecx */ /* 0x25054629: test ecx, ecx */ 10302 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10303 _cf = 0; 10304 _flag_k = FK_TEST; 10305 edi = POP32_VAL(esp); /* 0x2505462B: pop edi */ 10306 esi = POP32_VAL(esp); /* 0x2505462C: pop esi */ 10307 if (TEST_Z(_flag_a, _flag_b)) goto L_25054634; /* 0x2505462D: je 0x25054634 */ 10308 L_2505462F: 10309 RECOMP_ICALL(0x250E6360u); /* 0x2505462F: call 0x250e6360 */ /* not lifted */ 10310 RECOMP_FLAGS_IN(); 10311 L_25054634: 10312 ebp = POP32_VAL(esp); /* 0x25054634: pop ebp */ 10313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25054635: ret */ 10314 RECOMP_REGS_OUT(); 10315 } 10316 10317 void sub_25054640(void) { 10318 int _fpu_cmp = 0; 10319 uint32_t _cf = 0; 10320 int _df = 1; 10321 uint32_t _flag_k = FK_NONE; 10322 uint32_t _flag_a = 0, _flag_b = 0; 10323 uint32_t _itail_tgt = 0; 10324 RECOMP_REGS_LOCALS 10325 RECOMP_ENTER(0x25054640u); 10326 10327 goto L_25054640; 10328 L_25051B50: 10329 PUSH32(esp, ebp); /* 0x25051B50: push ebp */ 10330 ebp = esp; /* 0x25051B51: mov ebp, esp */ 10331 PUSH32(esp, ebx); /* 0x25051B53: push ebx */ 10332 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25051B54: mov bl, byte ptr [ebp + 8] */ 10333 /* test LO8(ebx), 2 */ /* 0x25051B57: test bl, 2 */ 10334 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10335 _cf = 0; 10336 _flag_k = FK_NARROW(FK_TEST, 24); 10337 PUSH32(esp, esi); /* 0x25051B5A: push esi */ 10338 esi = ecx; /* 0x25051B5B: mov esi, ecx */ 10339 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B8E; /* 0x25051B5D: je 0x25051b8e */ 10340 L_25051B5F: 10341 eax = MEM32(esi + (-0x4)); /* 0x25051B5F: mov eax, dword ptr [esi - 4] */ 10342 PUSH32(esp, edi); /* 0x25051B62: push edi */ 10343 PUSH32(esp, 0x25086720u); /* 0x25051B63: push 0x25086720 */ 10344 edi = esi + (-0x4); /* 0x25051B68: lea edi, [esi - 4] */ 10345 PUSH32(esp, eax); /* 0x25051B6B: push eax */ 10346 PUSH32(esp, 0x264u); /* 0x25051B6C: push 0x264 */ 10347 PUSH32(esp, esi); /* 0x25051B71: push esi */ 10348 RECOMP_ICALL(0x25137F92u); /* 0x25051B72: call 0x25137f92 */ /* not lifted */ 10349 RECOMP_FLAGS_IN(); 10350 /* test LO8(ebx), 1 */ /* 0x25051B77: test bl, 1 */ 10351 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10352 _cf = 0; 10353 _flag_k = FK_NARROW(FK_TEST, 24); 10354 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B85; /* 0x25051B7A: je 0x25051b85 */ 10355 L_25051B7C: 10356 PUSH32(esp, edi); /* 0x25051B7C: push edi */ 10357 RECOMP_ICALL(0x25137EECu); /* 0x25051B7D: call 0x25137eec */ /* not lifted */ 10358 RECOMP_FLAGS_IN(); 10359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10361 esp = esp + 4; /* 0x25051B82: add esp, 4 */ 10362 _flag_k = FK_ADD; 10363 L_25051B85: 10364 eax = edi; /* 0x25051B85: mov eax, edi */ 10365 edi = POP32_VAL(esp); /* 0x25051B87: pop edi */ 10366 esi = POP32_VAL(esp); /* 0x25051B88: pop esi */ 10367 ebx = POP32_VAL(esp); /* 0x25051B89: pop ebx */ 10368 ebp = POP32_VAL(esp); /* 0x25051B8A: pop ebp */ 10369 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B8B: ret 4 */ 10370 L_25051B8E: 10371 ecx = esi; /* 0x25051B8E: mov ecx, esi */ 10372 RECOMP_ICALL(0x25086720u); /* 0x25051B90: call 0x25086720 */ /* not lifted */ 10373 RECOMP_FLAGS_IN(); 10374 /* test LO8(ebx), 1 */ /* 0x25051B95: test bl, 1 */ 10375 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10376 _cf = 0; 10377 _flag_k = FK_NARROW(FK_TEST, 24); 10378 if (TEST_Z(_flag_a, _flag_b)) goto L_25051BA3; /* 0x25051B98: je 0x25051ba3 */ 10379 L_25051B9A: 10380 PUSH32(esp, esi); /* 0x25051B9A: push esi */ 10381 RECOMP_ICALL(0x25137EECu); /* 0x25051B9B: call 0x25137eec */ /* not lifted */ 10382 RECOMP_FLAGS_IN(); 10383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10385 esp = esp + 4; /* 0x25051BA0: add esp, 4 */ 10386 _flag_k = FK_ADD; 10387 L_25051BA3: 10388 eax = esi; /* 0x25051BA3: mov eax, esi */ 10389 esi = POP32_VAL(esp); /* 0x25051BA5: pop esi */ 10390 ebx = POP32_VAL(esp); /* 0x25051BA6: pop ebx */ 10391 ebp = POP32_VAL(esp); /* 0x25051BA7: pop ebp */ 10392 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051BA8: ret 4 */ 10393 L_25054640: 10394 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 10395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10396 ecx = ecx - 8; /* 0x25054640: sub ecx, 8 */ 10397 _flag_k = FK_CMP; 10398 RECOMP_BACKEDGE(); 10399 goto L_25051B50; /* 0x25054643: jmp 0x25051b50 */ 10400 { RECOMP_REGS_OUT(); return; } /* end of function */ 10401 RECOMP_REGS_OUT(); 10402 } 10403 10404 void sub_25054650(void) { 10405 int _fpu_cmp = 0; 10406 uint32_t _cf = 0; 10407 int _df = 1; 10408 uint32_t _flag_k = FK_NONE; 10409 uint32_t _flag_a = 0, _flag_b = 0; 10410 uint32_t _itail_tgt = 0; 10411 RECOMP_REGS_LOCALS 10412 RECOMP_ENTER(0x25054650u); 10413 10414 goto L_25054650; 10415 L_25051B50: 10416 PUSH32(esp, ebp); /* 0x25051B50: push ebp */ 10417 ebp = esp; /* 0x25051B51: mov ebp, esp */ 10418 PUSH32(esp, ebx); /* 0x25051B53: push ebx */ 10419 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25051B54: mov bl, byte ptr [ebp + 8] */ 10420 /* test LO8(ebx), 2 */ /* 0x25051B57: test bl, 2 */ 10421 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10422 _cf = 0; 10423 _flag_k = FK_NARROW(FK_TEST, 24); 10424 PUSH32(esp, esi); /* 0x25051B5A: push esi */ 10425 esi = ecx; /* 0x25051B5B: mov esi, ecx */ 10426 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B8E; /* 0x25051B5D: je 0x25051b8e */ 10427 L_25051B5F: 10428 eax = MEM32(esi + (-0x4)); /* 0x25051B5F: mov eax, dword ptr [esi - 4] */ 10429 PUSH32(esp, edi); /* 0x25051B62: push edi */ 10430 PUSH32(esp, 0x25086720u); /* 0x25051B63: push 0x25086720 */ 10431 edi = esi + (-0x4); /* 0x25051B68: lea edi, [esi - 4] */ 10432 PUSH32(esp, eax); /* 0x25051B6B: push eax */ 10433 PUSH32(esp, 0x264u); /* 0x25051B6C: push 0x264 */ 10434 PUSH32(esp, esi); /* 0x25051B71: push esi */ 10435 RECOMP_ICALL(0x25137F92u); /* 0x25051B72: call 0x25137f92 */ /* not lifted */ 10436 RECOMP_FLAGS_IN(); 10437 /* test LO8(ebx), 1 */ /* 0x25051B77: test bl, 1 */ 10438 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10439 _cf = 0; 10440 _flag_k = FK_NARROW(FK_TEST, 24); 10441 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B85; /* 0x25051B7A: je 0x25051b85 */ 10442 L_25051B7C: 10443 PUSH32(esp, edi); /* 0x25051B7C: push edi */ 10444 RECOMP_ICALL(0x25137EECu); /* 0x25051B7D: call 0x25137eec */ /* not lifted */ 10445 RECOMP_FLAGS_IN(); 10446 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10448 esp = esp + 4; /* 0x25051B82: add esp, 4 */ 10449 _flag_k = FK_ADD; 10450 L_25051B85: 10451 eax = edi; /* 0x25051B85: mov eax, edi */ 10452 edi = POP32_VAL(esp); /* 0x25051B87: pop edi */ 10453 esi = POP32_VAL(esp); /* 0x25051B88: pop esi */ 10454 ebx = POP32_VAL(esp); /* 0x25051B89: pop ebx */ 10455 ebp = POP32_VAL(esp); /* 0x25051B8A: pop ebp */ 10456 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B8B: ret 4 */ 10457 L_25051B8E: 10458 ecx = esi; /* 0x25051B8E: mov ecx, esi */ 10459 RECOMP_ICALL(0x25086720u); /* 0x25051B90: call 0x25086720 */ /* not lifted */ 10460 RECOMP_FLAGS_IN(); 10461 /* test LO8(ebx), 1 */ /* 0x25051B95: test bl, 1 */ 10462 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10463 _cf = 0; 10464 _flag_k = FK_NARROW(FK_TEST, 24); 10465 if (TEST_Z(_flag_a, _flag_b)) goto L_25051BA3; /* 0x25051B98: je 0x25051ba3 */ 10466 L_25051B9A: 10467 PUSH32(esp, esi); /* 0x25051B9A: push esi */ 10468 RECOMP_ICALL(0x25137EECu); /* 0x25051B9B: call 0x25137eec */ /* not lifted */ 10469 RECOMP_FLAGS_IN(); 10470 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10472 esp = esp + 4; /* 0x25051BA0: add esp, 4 */ 10473 _flag_k = FK_ADD; 10474 L_25051BA3: 10475 eax = esi; /* 0x25051BA3: mov eax, esi */ 10476 esi = POP32_VAL(esp); /* 0x25051BA5: pop esi */ 10477 ebx = POP32_VAL(esp); /* 0x25051BA6: pop ebx */ 10478 ebp = POP32_VAL(esp); /* 0x25051BA7: pop ebp */ 10479 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051BA8: ret 4 */ 10480 L_25054650: 10481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 10482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10483 ecx = ecx - 0x20u; /* 0x25054650: sub ecx, 0x20 */ 10484 _flag_k = FK_CMP; 10485 RECOMP_BACKEDGE(); 10486 goto L_25051B50; /* 0x25054653: jmp 0x25051b50 */ 10487 { RECOMP_REGS_OUT(); return; } /* end of function */ 10488 RECOMP_REGS_OUT(); 10489 } 10490 10491 void sub_25054660(void) { 10492 int _fpu_cmp = 0; 10493 uint32_t _cf = 0; 10494 int _df = 1; 10495 uint32_t _flag_k = FK_NONE; 10496 uint32_t _flag_a = 0, _flag_b = 0; 10497 uint32_t _itail_tgt = 0; 10498 RECOMP_REGS_LOCALS 10499 RECOMP_ENTER(0x25054660u); 10500 10501 goto L_25054660; 10502 L_25051B50: 10503 PUSH32(esp, ebp); /* 0x25051B50: push ebp */ 10504 ebp = esp; /* 0x25051B51: mov ebp, esp */ 10505 PUSH32(esp, ebx); /* 0x25051B53: push ebx */ 10506 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25051B54: mov bl, byte ptr [ebp + 8] */ 10507 /* test LO8(ebx), 2 */ /* 0x25051B57: test bl, 2 */ 10508 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10509 _cf = 0; 10510 _flag_k = FK_NARROW(FK_TEST, 24); 10511 PUSH32(esp, esi); /* 0x25051B5A: push esi */ 10512 esi = ecx; /* 0x25051B5B: mov esi, ecx */ 10513 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B8E; /* 0x25051B5D: je 0x25051b8e */ 10514 L_25051B5F: 10515 eax = MEM32(esi + (-0x4)); /* 0x25051B5F: mov eax, dword ptr [esi - 4] */ 10516 PUSH32(esp, edi); /* 0x25051B62: push edi */ 10517 PUSH32(esp, 0x25086720u); /* 0x25051B63: push 0x25086720 */ 10518 edi = esi + (-0x4); /* 0x25051B68: lea edi, [esi - 4] */ 10519 PUSH32(esp, eax); /* 0x25051B6B: push eax */ 10520 PUSH32(esp, 0x264u); /* 0x25051B6C: push 0x264 */ 10521 PUSH32(esp, esi); /* 0x25051B71: push esi */ 10522 RECOMP_ICALL(0x25137F92u); /* 0x25051B72: call 0x25137f92 */ /* not lifted */ 10523 RECOMP_FLAGS_IN(); 10524 /* test LO8(ebx), 1 */ /* 0x25051B77: test bl, 1 */ 10525 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10526 _cf = 0; 10527 _flag_k = FK_NARROW(FK_TEST, 24); 10528 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B85; /* 0x25051B7A: je 0x25051b85 */ 10529 L_25051B7C: 10530 PUSH32(esp, edi); /* 0x25051B7C: push edi */ 10531 RECOMP_ICALL(0x25137EECu); /* 0x25051B7D: call 0x25137eec */ /* not lifted */ 10532 RECOMP_FLAGS_IN(); 10533 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10535 esp = esp + 4; /* 0x25051B82: add esp, 4 */ 10536 _flag_k = FK_ADD; 10537 L_25051B85: 10538 eax = edi; /* 0x25051B85: mov eax, edi */ 10539 edi = POP32_VAL(esp); /* 0x25051B87: pop edi */ 10540 esi = POP32_VAL(esp); /* 0x25051B88: pop esi */ 10541 ebx = POP32_VAL(esp); /* 0x25051B89: pop ebx */ 10542 ebp = POP32_VAL(esp); /* 0x25051B8A: pop ebp */ 10543 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B8B: ret 4 */ 10544 L_25051B8E: 10545 ecx = esi; /* 0x25051B8E: mov ecx, esi */ 10546 RECOMP_ICALL(0x25086720u); /* 0x25051B90: call 0x25086720 */ /* not lifted */ 10547 RECOMP_FLAGS_IN(); 10548 /* test LO8(ebx), 1 */ /* 0x25051B95: test bl, 1 */ 10549 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10550 _cf = 0; 10551 _flag_k = FK_NARROW(FK_TEST, 24); 10552 if (TEST_Z(_flag_a, _flag_b)) goto L_25051BA3; /* 0x25051B98: je 0x25051ba3 */ 10553 L_25051B9A: 10554 PUSH32(esp, esi); /* 0x25051B9A: push esi */ 10555 RECOMP_ICALL(0x25137EECu); /* 0x25051B9B: call 0x25137eec */ /* not lifted */ 10556 RECOMP_FLAGS_IN(); 10557 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10558 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10559 esp = esp + 4; /* 0x25051BA0: add esp, 4 */ 10560 _flag_k = FK_ADD; 10561 L_25051BA3: 10562 eax = esi; /* 0x25051BA3: mov eax, esi */ 10563 esi = POP32_VAL(esp); /* 0x25051BA5: pop esi */ 10564 ebx = POP32_VAL(esp); /* 0x25051BA6: pop ebx */ 10565 ebp = POP32_VAL(esp); /* 0x25051BA7: pop ebp */ 10566 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051BA8: ret 4 */ 10567 L_25054660: 10568 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 10569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10570 ecx = ecx - 0x38u; /* 0x25054660: sub ecx, 0x38 */ 10571 _flag_k = FK_CMP; 10572 RECOMP_BACKEDGE(); 10573 goto L_25051B50; /* 0x25054663: jmp 0x25051b50 */ 10574 { RECOMP_REGS_OUT(); return; } /* end of function */ 10575 RECOMP_REGS_OUT(); 10576 } 10577 10578 void sub_25054670(void) { 10579 int _fpu_cmp = 0; 10580 uint32_t _cf = 0; 10581 int _df = 1; 10582 uint32_t _flag_k = FK_NONE; 10583 uint32_t _flag_a = 0, _flag_b = 0; 10584 uint32_t _itail_tgt = 0; 10585 RECOMP_REGS_LOCALS 10586 RECOMP_ENTER(0x25054670u); 10587 10588 goto L_25054670; 10589 L_25051B50: 10590 PUSH32(esp, ebp); /* 0x25051B50: push ebp */ 10591 ebp = esp; /* 0x25051B51: mov ebp, esp */ 10592 PUSH32(esp, ebx); /* 0x25051B53: push ebx */ 10593 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25051B54: mov bl, byte ptr [ebp + 8] */ 10594 /* test LO8(ebx), 2 */ /* 0x25051B57: test bl, 2 */ 10595 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10596 _cf = 0; 10597 _flag_k = FK_NARROW(FK_TEST, 24); 10598 PUSH32(esp, esi); /* 0x25051B5A: push esi */ 10599 esi = ecx; /* 0x25051B5B: mov esi, ecx */ 10600 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B8E; /* 0x25051B5D: je 0x25051b8e */ 10601 L_25051B5F: 10602 eax = MEM32(esi + (-0x4)); /* 0x25051B5F: mov eax, dword ptr [esi - 4] */ 10603 PUSH32(esp, edi); /* 0x25051B62: push edi */ 10604 PUSH32(esp, 0x25086720u); /* 0x25051B63: push 0x25086720 */ 10605 edi = esi + (-0x4); /* 0x25051B68: lea edi, [esi - 4] */ 10606 PUSH32(esp, eax); /* 0x25051B6B: push eax */ 10607 PUSH32(esp, 0x264u); /* 0x25051B6C: push 0x264 */ 10608 PUSH32(esp, esi); /* 0x25051B71: push esi */ 10609 RECOMP_ICALL(0x25137F92u); /* 0x25051B72: call 0x25137f92 */ /* not lifted */ 10610 RECOMP_FLAGS_IN(); 10611 /* test LO8(ebx), 1 */ /* 0x25051B77: test bl, 1 */ 10612 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10613 _cf = 0; 10614 _flag_k = FK_NARROW(FK_TEST, 24); 10615 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B85; /* 0x25051B7A: je 0x25051b85 */ 10616 L_25051B7C: 10617 PUSH32(esp, edi); /* 0x25051B7C: push edi */ 10618 RECOMP_ICALL(0x25137EECu); /* 0x25051B7D: call 0x25137eec */ /* not lifted */ 10619 RECOMP_FLAGS_IN(); 10620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10622 esp = esp + 4; /* 0x25051B82: add esp, 4 */ 10623 _flag_k = FK_ADD; 10624 L_25051B85: 10625 eax = edi; /* 0x25051B85: mov eax, edi */ 10626 edi = POP32_VAL(esp); /* 0x25051B87: pop edi */ 10627 esi = POP32_VAL(esp); /* 0x25051B88: pop esi */ 10628 ebx = POP32_VAL(esp); /* 0x25051B89: pop ebx */ 10629 ebp = POP32_VAL(esp); /* 0x25051B8A: pop ebp */ 10630 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B8B: ret 4 */ 10631 L_25051B8E: 10632 ecx = esi; /* 0x25051B8E: mov ecx, esi */ 10633 RECOMP_ICALL(0x25086720u); /* 0x25051B90: call 0x25086720 */ /* not lifted */ 10634 RECOMP_FLAGS_IN(); 10635 /* test LO8(ebx), 1 */ /* 0x25051B95: test bl, 1 */ 10636 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10637 _cf = 0; 10638 _flag_k = FK_NARROW(FK_TEST, 24); 10639 if (TEST_Z(_flag_a, _flag_b)) goto L_25051BA3; /* 0x25051B98: je 0x25051ba3 */ 10640 L_25051B9A: 10641 PUSH32(esp, esi); /* 0x25051B9A: push esi */ 10642 RECOMP_ICALL(0x25137EECu); /* 0x25051B9B: call 0x25137eec */ /* not lifted */ 10643 RECOMP_FLAGS_IN(); 10644 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10646 esp = esp + 4; /* 0x25051BA0: add esp, 4 */ 10647 _flag_k = FK_ADD; 10648 L_25051BA3: 10649 eax = esi; /* 0x25051BA3: mov eax, esi */ 10650 esi = POP32_VAL(esp); /* 0x25051BA5: pop esi */ 10651 ebx = POP32_VAL(esp); /* 0x25051BA6: pop ebx */ 10652 ebp = POP32_VAL(esp); /* 0x25051BA7: pop ebp */ 10653 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051BA8: ret 4 */ 10654 L_25054670: 10655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 10656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10657 ecx = ecx - 0x50u; /* 0x25054670: sub ecx, 0x50 */ 10658 _flag_k = FK_CMP; 10659 RECOMP_BACKEDGE(); 10660 goto L_25051B50; /* 0x25054673: jmp 0x25051b50 */ 10661 { RECOMP_REGS_OUT(); return; } /* end of function */ 10662 RECOMP_REGS_OUT(); 10663 } 10664 10665 void sub_25054680(void) { 10666 int _fpu_cmp = 0; 10667 uint32_t _cf = 0; 10668 int _df = 1; 10669 uint32_t _flag_k = FK_NONE; 10670 uint32_t _flag_a = 0, _flag_b = 0; 10671 uint32_t _itail_tgt = 0; 10672 RECOMP_REGS_LOCALS 10673 RECOMP_ENTER(0x25054680u); 10674 10675 goto L_25054680; 10676 L_25051B50: 10677 PUSH32(esp, ebp); /* 0x25051B50: push ebp */ 10678 ebp = esp; /* 0x25051B51: mov ebp, esp */ 10679 PUSH32(esp, ebx); /* 0x25051B53: push ebx */ 10680 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25051B54: mov bl, byte ptr [ebp + 8] */ 10681 /* test LO8(ebx), 2 */ /* 0x25051B57: test bl, 2 */ 10682 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10683 _cf = 0; 10684 _flag_k = FK_NARROW(FK_TEST, 24); 10685 PUSH32(esp, esi); /* 0x25051B5A: push esi */ 10686 esi = ecx; /* 0x25051B5B: mov esi, ecx */ 10687 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B8E; /* 0x25051B5D: je 0x25051b8e */ 10688 L_25051B5F: 10689 eax = MEM32(esi + (-0x4)); /* 0x25051B5F: mov eax, dword ptr [esi - 4] */ 10690 PUSH32(esp, edi); /* 0x25051B62: push edi */ 10691 PUSH32(esp, 0x25086720u); /* 0x25051B63: push 0x25086720 */ 10692 edi = esi + (-0x4); /* 0x25051B68: lea edi, [esi - 4] */ 10693 PUSH32(esp, eax); /* 0x25051B6B: push eax */ 10694 PUSH32(esp, 0x264u); /* 0x25051B6C: push 0x264 */ 10695 PUSH32(esp, esi); /* 0x25051B71: push esi */ 10696 RECOMP_ICALL(0x25137F92u); /* 0x25051B72: call 0x25137f92 */ /* not lifted */ 10697 RECOMP_FLAGS_IN(); 10698 /* test LO8(ebx), 1 */ /* 0x25051B77: test bl, 1 */ 10699 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10700 _cf = 0; 10701 _flag_k = FK_NARROW(FK_TEST, 24); 10702 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B85; /* 0x25051B7A: je 0x25051b85 */ 10703 L_25051B7C: 10704 PUSH32(esp, edi); /* 0x25051B7C: push edi */ 10705 RECOMP_ICALL(0x25137EECu); /* 0x25051B7D: call 0x25137eec */ /* not lifted */ 10706 RECOMP_FLAGS_IN(); 10707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10709 esp = esp + 4; /* 0x25051B82: add esp, 4 */ 10710 _flag_k = FK_ADD; 10711 L_25051B85: 10712 eax = edi; /* 0x25051B85: mov eax, edi */ 10713 edi = POP32_VAL(esp); /* 0x25051B87: pop edi */ 10714 esi = POP32_VAL(esp); /* 0x25051B88: pop esi */ 10715 ebx = POP32_VAL(esp); /* 0x25051B89: pop ebx */ 10716 ebp = POP32_VAL(esp); /* 0x25051B8A: pop ebp */ 10717 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B8B: ret 4 */ 10718 L_25051B8E: 10719 ecx = esi; /* 0x25051B8E: mov ecx, esi */ 10720 RECOMP_ICALL(0x25086720u); /* 0x25051B90: call 0x25086720 */ /* not lifted */ 10721 RECOMP_FLAGS_IN(); 10722 /* test LO8(ebx), 1 */ /* 0x25051B95: test bl, 1 */ 10723 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10724 _cf = 0; 10725 _flag_k = FK_NARROW(FK_TEST, 24); 10726 if (TEST_Z(_flag_a, _flag_b)) goto L_25051BA3; /* 0x25051B98: je 0x25051ba3 */ 10727 L_25051B9A: 10728 PUSH32(esp, esi); /* 0x25051B9A: push esi */ 10729 RECOMP_ICALL(0x25137EECu); /* 0x25051B9B: call 0x25137eec */ /* not lifted */ 10730 RECOMP_FLAGS_IN(); 10731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10733 esp = esp + 4; /* 0x25051BA0: add esp, 4 */ 10734 _flag_k = FK_ADD; 10735 L_25051BA3: 10736 eax = esi; /* 0x25051BA3: mov eax, esi */ 10737 esi = POP32_VAL(esp); /* 0x25051BA5: pop esi */ 10738 ebx = POP32_VAL(esp); /* 0x25051BA6: pop ebx */ 10739 ebp = POP32_VAL(esp); /* 0x25051BA7: pop ebp */ 10740 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051BA8: ret 4 */ 10741 L_25054680: 10742 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 10743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10744 ecx = ecx - 0x138u; /* 0x25054680: sub ecx, 0x138 */ 10745 _flag_k = FK_CMP; 10746 RECOMP_BACKEDGE(); 10747 goto L_25051B50; /* 0x25054686: jmp 0x25051b50 */ 10748 { RECOMP_REGS_OUT(); return; } /* end of function */ 10749 RECOMP_REGS_OUT(); 10750 } 10751 10752 void sub_25054690(void) { 10753 int _fpu_cmp = 0; 10754 uint32_t _cf = 0; 10755 int _df = 1; 10756 uint32_t _flag_k = FK_NONE; 10757 uint32_t _flag_a = 0, _flag_b = 0; 10758 uint32_t _itail_tgt = 0; 10759 RECOMP_REGS_LOCALS 10760 RECOMP_ENTER(0x25054690u); 10761 10762 goto L_25054690; 10763 L_25051B50: 10764 PUSH32(esp, ebp); /* 0x25051B50: push ebp */ 10765 ebp = esp; /* 0x25051B51: mov ebp, esp */ 10766 PUSH32(esp, ebx); /* 0x25051B53: push ebx */ 10767 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25051B54: mov bl, byte ptr [ebp + 8] */ 10768 /* test LO8(ebx), 2 */ /* 0x25051B57: test bl, 2 */ 10769 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10770 _cf = 0; 10771 _flag_k = FK_NARROW(FK_TEST, 24); 10772 PUSH32(esp, esi); /* 0x25051B5A: push esi */ 10773 esi = ecx; /* 0x25051B5B: mov esi, ecx */ 10774 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B8E; /* 0x25051B5D: je 0x25051b8e */ 10775 L_25051B5F: 10776 eax = MEM32(esi + (-0x4)); /* 0x25051B5F: mov eax, dword ptr [esi - 4] */ 10777 PUSH32(esp, edi); /* 0x25051B62: push edi */ 10778 PUSH32(esp, 0x25086720u); /* 0x25051B63: push 0x25086720 */ 10779 edi = esi + (-0x4); /* 0x25051B68: lea edi, [esi - 4] */ 10780 PUSH32(esp, eax); /* 0x25051B6B: push eax */ 10781 PUSH32(esp, 0x264u); /* 0x25051B6C: push 0x264 */ 10782 PUSH32(esp, esi); /* 0x25051B71: push esi */ 10783 RECOMP_ICALL(0x25137F92u); /* 0x25051B72: call 0x25137f92 */ /* not lifted */ 10784 RECOMP_FLAGS_IN(); 10785 /* test LO8(ebx), 1 */ /* 0x25051B77: test bl, 1 */ 10786 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10787 _cf = 0; 10788 _flag_k = FK_NARROW(FK_TEST, 24); 10789 if (TEST_Z(_flag_a, _flag_b)) goto L_25051B85; /* 0x25051B7A: je 0x25051b85 */ 10790 L_25051B7C: 10791 PUSH32(esp, edi); /* 0x25051B7C: push edi */ 10792 RECOMP_ICALL(0x25137EECu); /* 0x25051B7D: call 0x25137eec */ /* not lifted */ 10793 RECOMP_FLAGS_IN(); 10794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10795 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10796 esp = esp + 4; /* 0x25051B82: add esp, 4 */ 10797 _flag_k = FK_ADD; 10798 L_25051B85: 10799 eax = edi; /* 0x25051B85: mov eax, edi */ 10800 edi = POP32_VAL(esp); /* 0x25051B87: pop edi */ 10801 esi = POP32_VAL(esp); /* 0x25051B88: pop esi */ 10802 ebx = POP32_VAL(esp); /* 0x25051B89: pop ebx */ 10803 ebp = POP32_VAL(esp); /* 0x25051B8A: pop ebp */ 10804 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051B8B: ret 4 */ 10805 L_25051B8E: 10806 ecx = esi; /* 0x25051B8E: mov ecx, esi */ 10807 RECOMP_ICALL(0x25086720u); /* 0x25051B90: call 0x25086720 */ /* not lifted */ 10808 RECOMP_FLAGS_IN(); 10809 /* test LO8(ebx), 1 */ /* 0x25051B95: test bl, 1 */ 10810 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10811 _cf = 0; 10812 _flag_k = FK_NARROW(FK_TEST, 24); 10813 if (TEST_Z(_flag_a, _flag_b)) goto L_25051BA3; /* 0x25051B98: je 0x25051ba3 */ 10814 L_25051B9A: 10815 PUSH32(esp, esi); /* 0x25051B9A: push esi */ 10816 RECOMP_ICALL(0x25137EECu); /* 0x25051B9B: call 0x25137eec */ /* not lifted */ 10817 RECOMP_FLAGS_IN(); 10818 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10820 esp = esp + 4; /* 0x25051BA0: add esp, 4 */ 10821 _flag_k = FK_ADD; 10822 L_25051BA3: 10823 eax = esi; /* 0x25051BA3: mov eax, esi */ 10824 esi = POP32_VAL(esp); /* 0x25051BA5: pop esi */ 10825 ebx = POP32_VAL(esp); /* 0x25051BA6: pop ebx */ 10826 ebp = POP32_VAL(esp); /* 0x25051BA7: pop ebp */ 10827 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25051BA8: ret 4 */ 10828 L_25054690: 10829 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 10830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10831 ecx = ecx - 0x150u; /* 0x25054690: sub ecx, 0x150 */ 10832 _flag_k = FK_CMP; 10833 RECOMP_BACKEDGE(); 10834 goto L_25051B50; /* 0x25054696: jmp 0x25051b50 */ 10835 { RECOMP_REGS_OUT(); return; } /* end of function */ 10836 RECOMP_REGS_OUT(); 10837 } 10838 10839 void sub_250546A0(void) { 10840 int _fpu_cmp = 0; 10841 uint32_t _cf = 0; 10842 int _df = 1; 10843 uint32_t _flag_k = FK_NONE; 10844 uint32_t _flag_a = 0, _flag_b = 0; 10845 uint32_t _itail_tgt = 0; 10846 RECOMP_REGS_LOCALS 10847 RECOMP_ENTER(0x250546A0u); 10848 10849 goto L_250546A0; 10850 L_25052270: 10851 PUSH32(esp, ebp); /* 0x25052270: push ebp */ 10852 ebp = esp; /* 0x25052271: mov ebp, esp */ 10853 PUSH32(esp, ebx); /* 0x25052273: push ebx */ 10854 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25052274: mov bl, byte ptr [ebp + 8] */ 10855 /* test LO8(ebx), 2 */ /* 0x25052277: test bl, 2 */ 10856 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10857 _cf = 0; 10858 _flag_k = FK_NARROW(FK_TEST, 24); 10859 PUSH32(esp, esi); /* 0x2505227A: push esi */ 10860 esi = ecx; /* 0x2505227B: mov esi, ecx */ 10861 if (TEST_Z(_flag_a, _flag_b)) goto L_250522AE; /* 0x2505227D: je 0x250522ae */ 10862 L_2505227F: 10863 eax = MEM32(esi + (-0x4)); /* 0x2505227F: mov eax, dword ptr [esi - 4] */ 10864 PUSH32(esp, edi); /* 0x25052282: push edi */ 10865 PUSH32(esp, 0x250524C0u); /* 0x25052283: push 0x250524c0 */ 10866 edi = esi + (-0x4); /* 0x25052288: lea edi, [esi - 4] */ 10867 PUSH32(esp, eax); /* 0x2505228B: push eax */ 10868 PUSH32(esp, 0x280u); /* 0x2505228C: push 0x280 */ 10869 PUSH32(esp, esi); /* 0x25052291: push esi */ 10870 RECOMP_ICALL(0x25137F92u); /* 0x25052292: call 0x25137f92 */ /* not lifted */ 10871 RECOMP_FLAGS_IN(); 10872 /* test LO8(ebx), 1 */ /* 0x25052297: test bl, 1 */ 10873 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10874 _cf = 0; 10875 _flag_k = FK_NARROW(FK_TEST, 24); 10876 if (TEST_Z(_flag_a, _flag_b)) goto L_250522A5; /* 0x2505229A: je 0x250522a5 */ 10877 L_2505229C: 10878 PUSH32(esp, edi); /* 0x2505229C: push edi */ 10879 RECOMP_ICALL(0x25137EECu); /* 0x2505229D: call 0x25137eec */ /* not lifted */ 10880 RECOMP_FLAGS_IN(); 10881 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10883 esp = esp + 4; /* 0x250522A2: add esp, 4 */ 10884 _flag_k = FK_ADD; 10885 L_250522A5: 10886 eax = edi; /* 0x250522A5: mov eax, edi */ 10887 edi = POP32_VAL(esp); /* 0x250522A7: pop edi */ 10888 esi = POP32_VAL(esp); /* 0x250522A8: pop esi */ 10889 ebx = POP32_VAL(esp); /* 0x250522A9: pop ebx */ 10890 ebp = POP32_VAL(esp); /* 0x250522AA: pop ebp */ 10891 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522AB: ret 4 */ 10892 L_250522AE: 10893 ecx = esi; /* 0x250522AE: mov ecx, esi */ 10894 RECOMP_ICALL(0x250524C0u); /* 0x250522B0: call 0x250524c0 */ /* not lifted */ 10895 RECOMP_FLAGS_IN(); 10896 /* test LO8(ebx), 1 */ /* 0x250522B5: test bl, 1 */ 10897 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10898 _cf = 0; 10899 _flag_k = FK_NARROW(FK_TEST, 24); 10900 if (TEST_Z(_flag_a, _flag_b)) goto L_250522C3; /* 0x250522B8: je 0x250522c3 */ 10901 L_250522BA: 10902 PUSH32(esp, esi); /* 0x250522BA: push esi */ 10903 RECOMP_ICALL(0x25137EECu); /* 0x250522BB: call 0x25137eec */ /* not lifted */ 10904 RECOMP_FLAGS_IN(); 10905 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10906 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10907 esp = esp + 4; /* 0x250522C0: add esp, 4 */ 10908 _flag_k = FK_ADD; 10909 L_250522C3: 10910 eax = esi; /* 0x250522C3: mov eax, esi */ 10911 esi = POP32_VAL(esp); /* 0x250522C5: pop esi */ 10912 ebx = POP32_VAL(esp); /* 0x250522C6: pop ebx */ 10913 ebp = POP32_VAL(esp); /* 0x250522C7: pop ebp */ 10914 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522C8: ret 4 */ 10915 L_250546A0: 10916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 10917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10918 ecx = ecx - 8; /* 0x250546A0: sub ecx, 8 */ 10919 _flag_k = FK_CMP; 10920 RECOMP_BACKEDGE(); 10921 goto L_25052270; /* 0x250546A3: jmp 0x25052270 */ 10922 { RECOMP_REGS_OUT(); return; } /* end of function */ 10923 RECOMP_REGS_OUT(); 10924 } 10925 10926 void sub_250546B0(void) { 10927 int _fpu_cmp = 0; 10928 uint32_t _cf = 0; 10929 int _df = 1; 10930 uint32_t _flag_k = FK_NONE; 10931 uint32_t _flag_a = 0, _flag_b = 0; 10932 uint32_t _itail_tgt = 0; 10933 RECOMP_REGS_LOCALS 10934 RECOMP_ENTER(0x250546B0u); 10935 10936 goto L_250546B0; 10937 L_25052270: 10938 PUSH32(esp, ebp); /* 0x25052270: push ebp */ 10939 ebp = esp; /* 0x25052271: mov ebp, esp */ 10940 PUSH32(esp, ebx); /* 0x25052273: push ebx */ 10941 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25052274: mov bl, byte ptr [ebp + 8] */ 10942 /* test LO8(ebx), 2 */ /* 0x25052277: test bl, 2 */ 10943 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10944 _cf = 0; 10945 _flag_k = FK_NARROW(FK_TEST, 24); 10946 PUSH32(esp, esi); /* 0x2505227A: push esi */ 10947 esi = ecx; /* 0x2505227B: mov esi, ecx */ 10948 if (TEST_Z(_flag_a, _flag_b)) goto L_250522AE; /* 0x2505227D: je 0x250522ae */ 10949 L_2505227F: 10950 eax = MEM32(esi + (-0x4)); /* 0x2505227F: mov eax, dword ptr [esi - 4] */ 10951 PUSH32(esp, edi); /* 0x25052282: push edi */ 10952 PUSH32(esp, 0x250524C0u); /* 0x25052283: push 0x250524c0 */ 10953 edi = esi + (-0x4); /* 0x25052288: lea edi, [esi - 4] */ 10954 PUSH32(esp, eax); /* 0x2505228B: push eax */ 10955 PUSH32(esp, 0x280u); /* 0x2505228C: push 0x280 */ 10956 PUSH32(esp, esi); /* 0x25052291: push esi */ 10957 RECOMP_ICALL(0x25137F92u); /* 0x25052292: call 0x25137f92 */ /* not lifted */ 10958 RECOMP_FLAGS_IN(); 10959 /* test LO8(ebx), 1 */ /* 0x25052297: test bl, 1 */ 10960 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10961 _cf = 0; 10962 _flag_k = FK_NARROW(FK_TEST, 24); 10963 if (TEST_Z(_flag_a, _flag_b)) goto L_250522A5; /* 0x2505229A: je 0x250522a5 */ 10964 L_2505229C: 10965 PUSH32(esp, edi); /* 0x2505229C: push edi */ 10966 RECOMP_ICALL(0x25137EECu); /* 0x2505229D: call 0x25137eec */ /* not lifted */ 10967 RECOMP_FLAGS_IN(); 10968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10970 esp = esp + 4; /* 0x250522A2: add esp, 4 */ 10971 _flag_k = FK_ADD; 10972 L_250522A5: 10973 eax = edi; /* 0x250522A5: mov eax, edi */ 10974 edi = POP32_VAL(esp); /* 0x250522A7: pop edi */ 10975 esi = POP32_VAL(esp); /* 0x250522A8: pop esi */ 10976 ebx = POP32_VAL(esp); /* 0x250522A9: pop ebx */ 10977 ebp = POP32_VAL(esp); /* 0x250522AA: pop ebp */ 10978 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522AB: ret 4 */ 10979 L_250522AE: 10980 ecx = esi; /* 0x250522AE: mov ecx, esi */ 10981 RECOMP_ICALL(0x250524C0u); /* 0x250522B0: call 0x250524c0 */ /* not lifted */ 10982 RECOMP_FLAGS_IN(); 10983 /* test LO8(ebx), 1 */ /* 0x250522B5: test bl, 1 */ 10984 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10985 _cf = 0; 10986 _flag_k = FK_NARROW(FK_TEST, 24); 10987 if (TEST_Z(_flag_a, _flag_b)) goto L_250522C3; /* 0x250522B8: je 0x250522c3 */ 10988 L_250522BA: 10989 PUSH32(esp, esi); /* 0x250522BA: push esi */ 10990 RECOMP_ICALL(0x25137EECu); /* 0x250522BB: call 0x25137eec */ /* not lifted */ 10991 RECOMP_FLAGS_IN(); 10992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10994 esp = esp + 4; /* 0x250522C0: add esp, 4 */ 10995 _flag_k = FK_ADD; 10996 L_250522C3: 10997 eax = esi; /* 0x250522C3: mov eax, esi */ 10998 esi = POP32_VAL(esp); /* 0x250522C5: pop esi */ 10999 ebx = POP32_VAL(esp); /* 0x250522C6: pop ebx */ 11000 ebp = POP32_VAL(esp); /* 0x250522C7: pop ebp */ 11001 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522C8: ret 4 */ 11002 L_250546B0: 11003 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 11004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11005 ecx = ecx - 0x20u; /* 0x250546B0: sub ecx, 0x20 */ 11006 _flag_k = FK_CMP; 11007 RECOMP_BACKEDGE(); 11008 goto L_25052270; /* 0x250546B3: jmp 0x25052270 */ 11009 { RECOMP_REGS_OUT(); return; } /* end of function */ 11010 RECOMP_REGS_OUT(); 11011 } 11012 11013 void sub_250546C0(void) { 11014 int _fpu_cmp = 0; 11015 uint32_t _cf = 0; 11016 int _df = 1; 11017 uint32_t _flag_k = FK_NONE; 11018 uint32_t _flag_a = 0, _flag_b = 0; 11019 uint32_t _itail_tgt = 0; 11020 RECOMP_REGS_LOCALS 11021 RECOMP_ENTER(0x250546C0u); 11022 11023 goto L_250546C0; 11024 L_25052270: 11025 PUSH32(esp, ebp); /* 0x25052270: push ebp */ 11026 ebp = esp; /* 0x25052271: mov ebp, esp */ 11027 PUSH32(esp, ebx); /* 0x25052273: push ebx */ 11028 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25052274: mov bl, byte ptr [ebp + 8] */ 11029 /* test LO8(ebx), 2 */ /* 0x25052277: test bl, 2 */ 11030 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 11031 _cf = 0; 11032 _flag_k = FK_NARROW(FK_TEST, 24); 11033 PUSH32(esp, esi); /* 0x2505227A: push esi */ 11034 esi = ecx; /* 0x2505227B: mov esi, ecx */ 11035 if (TEST_Z(_flag_a, _flag_b)) goto L_250522AE; /* 0x2505227D: je 0x250522ae */ 11036 L_2505227F: 11037 eax = MEM32(esi + (-0x4)); /* 0x2505227F: mov eax, dword ptr [esi - 4] */ 11038 PUSH32(esp, edi); /* 0x25052282: push edi */ 11039 PUSH32(esp, 0x250524C0u); /* 0x25052283: push 0x250524c0 */ 11040 edi = esi + (-0x4); /* 0x25052288: lea edi, [esi - 4] */ 11041 PUSH32(esp, eax); /* 0x2505228B: push eax */ 11042 PUSH32(esp, 0x280u); /* 0x2505228C: push 0x280 */ 11043 PUSH32(esp, esi); /* 0x25052291: push esi */ 11044 RECOMP_ICALL(0x25137F92u); /* 0x25052292: call 0x25137f92 */ /* not lifted */ 11045 RECOMP_FLAGS_IN(); 11046 /* test LO8(ebx), 1 */ /* 0x25052297: test bl, 1 */ 11047 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11048 _cf = 0; 11049 _flag_k = FK_NARROW(FK_TEST, 24); 11050 if (TEST_Z(_flag_a, _flag_b)) goto L_250522A5; /* 0x2505229A: je 0x250522a5 */ 11051 L_2505229C: 11052 PUSH32(esp, edi); /* 0x2505229C: push edi */ 11053 RECOMP_ICALL(0x25137EECu); /* 0x2505229D: call 0x25137eec */ /* not lifted */ 11054 RECOMP_FLAGS_IN(); 11055 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11057 esp = esp + 4; /* 0x250522A2: add esp, 4 */ 11058 _flag_k = FK_ADD; 11059 L_250522A5: 11060 eax = edi; /* 0x250522A5: mov eax, edi */ 11061 edi = POP32_VAL(esp); /* 0x250522A7: pop edi */ 11062 esi = POP32_VAL(esp); /* 0x250522A8: pop esi */ 11063 ebx = POP32_VAL(esp); /* 0x250522A9: pop ebx */ 11064 ebp = POP32_VAL(esp); /* 0x250522AA: pop ebp */ 11065 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522AB: ret 4 */ 11066 L_250522AE: 11067 ecx = esi; /* 0x250522AE: mov ecx, esi */ 11068 RECOMP_ICALL(0x250524C0u); /* 0x250522B0: call 0x250524c0 */ /* not lifted */ 11069 RECOMP_FLAGS_IN(); 11070 /* test LO8(ebx), 1 */ /* 0x250522B5: test bl, 1 */ 11071 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11072 _cf = 0; 11073 _flag_k = FK_NARROW(FK_TEST, 24); 11074 if (TEST_Z(_flag_a, _flag_b)) goto L_250522C3; /* 0x250522B8: je 0x250522c3 */ 11075 L_250522BA: 11076 PUSH32(esp, esi); /* 0x250522BA: push esi */ 11077 RECOMP_ICALL(0x25137EECu); /* 0x250522BB: call 0x25137eec */ /* not lifted */ 11078 RECOMP_FLAGS_IN(); 11079 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11081 esp = esp + 4; /* 0x250522C0: add esp, 4 */ 11082 _flag_k = FK_ADD; 11083 L_250522C3: 11084 eax = esi; /* 0x250522C3: mov eax, esi */ 11085 esi = POP32_VAL(esp); /* 0x250522C5: pop esi */ 11086 ebx = POP32_VAL(esp); /* 0x250522C6: pop ebx */ 11087 ebp = POP32_VAL(esp); /* 0x250522C7: pop ebp */ 11088 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522C8: ret 4 */ 11089 L_250546C0: 11090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 11091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11092 ecx = ecx - 0x38u; /* 0x250546C0: sub ecx, 0x38 */ 11093 _flag_k = FK_CMP; 11094 RECOMP_BACKEDGE(); 11095 goto L_25052270; /* 0x250546C3: jmp 0x25052270 */ 11096 { RECOMP_REGS_OUT(); return; } /* end of function */ 11097 RECOMP_REGS_OUT(); 11098 } 11099 11100 void sub_250546D0(void) { 11101 int _fpu_cmp = 0; 11102 uint32_t _cf = 0; 11103 int _df = 1; 11104 uint32_t _flag_k = FK_NONE; 11105 uint32_t _flag_a = 0, _flag_b = 0; 11106 uint32_t _itail_tgt = 0; 11107 RECOMP_REGS_LOCALS 11108 RECOMP_ENTER(0x250546D0u); 11109 11110 goto L_250546D0; 11111 L_25052270: 11112 PUSH32(esp, ebp); /* 0x25052270: push ebp */ 11113 ebp = esp; /* 0x25052271: mov ebp, esp */ 11114 PUSH32(esp, ebx); /* 0x25052273: push ebx */ 11115 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25052274: mov bl, byte ptr [ebp + 8] */ 11116 /* test LO8(ebx), 2 */ /* 0x25052277: test bl, 2 */ 11117 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 11118 _cf = 0; 11119 _flag_k = FK_NARROW(FK_TEST, 24); 11120 PUSH32(esp, esi); /* 0x2505227A: push esi */ 11121 esi = ecx; /* 0x2505227B: mov esi, ecx */ 11122 if (TEST_Z(_flag_a, _flag_b)) goto L_250522AE; /* 0x2505227D: je 0x250522ae */ 11123 L_2505227F: 11124 eax = MEM32(esi + (-0x4)); /* 0x2505227F: mov eax, dword ptr [esi - 4] */ 11125 PUSH32(esp, edi); /* 0x25052282: push edi */ 11126 PUSH32(esp, 0x250524C0u); /* 0x25052283: push 0x250524c0 */ 11127 edi = esi + (-0x4); /* 0x25052288: lea edi, [esi - 4] */ 11128 PUSH32(esp, eax); /* 0x2505228B: push eax */ 11129 PUSH32(esp, 0x280u); /* 0x2505228C: push 0x280 */ 11130 PUSH32(esp, esi); /* 0x25052291: push esi */ 11131 RECOMP_ICALL(0x25137F92u); /* 0x25052292: call 0x25137f92 */ /* not lifted */ 11132 RECOMP_FLAGS_IN(); 11133 /* test LO8(ebx), 1 */ /* 0x25052297: test bl, 1 */ 11134 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11135 _cf = 0; 11136 _flag_k = FK_NARROW(FK_TEST, 24); 11137 if (TEST_Z(_flag_a, _flag_b)) goto L_250522A5; /* 0x2505229A: je 0x250522a5 */ 11138 L_2505229C: 11139 PUSH32(esp, edi); /* 0x2505229C: push edi */ 11140 RECOMP_ICALL(0x25137EECu); /* 0x2505229D: call 0x25137eec */ /* not lifted */ 11141 RECOMP_FLAGS_IN(); 11142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11144 esp = esp + 4; /* 0x250522A2: add esp, 4 */ 11145 _flag_k = FK_ADD; 11146 L_250522A5: 11147 eax = edi; /* 0x250522A5: mov eax, edi */ 11148 edi = POP32_VAL(esp); /* 0x250522A7: pop edi */ 11149 esi = POP32_VAL(esp); /* 0x250522A8: pop esi */ 11150 ebx = POP32_VAL(esp); /* 0x250522A9: pop ebx */ 11151 ebp = POP32_VAL(esp); /* 0x250522AA: pop ebp */ 11152 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522AB: ret 4 */ 11153 L_250522AE: 11154 ecx = esi; /* 0x250522AE: mov ecx, esi */ 11155 RECOMP_ICALL(0x250524C0u); /* 0x250522B0: call 0x250524c0 */ /* not lifted */ 11156 RECOMP_FLAGS_IN(); 11157 /* test LO8(ebx), 1 */ /* 0x250522B5: test bl, 1 */ 11158 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11159 _cf = 0; 11160 _flag_k = FK_NARROW(FK_TEST, 24); 11161 if (TEST_Z(_flag_a, _flag_b)) goto L_250522C3; /* 0x250522B8: je 0x250522c3 */ 11162 L_250522BA: 11163 PUSH32(esp, esi); /* 0x250522BA: push esi */ 11164 RECOMP_ICALL(0x25137EECu); /* 0x250522BB: call 0x25137eec */ /* not lifted */ 11165 RECOMP_FLAGS_IN(); 11166 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11168 esp = esp + 4; /* 0x250522C0: add esp, 4 */ 11169 _flag_k = FK_ADD; 11170 L_250522C3: 11171 eax = esi; /* 0x250522C3: mov eax, esi */ 11172 esi = POP32_VAL(esp); /* 0x250522C5: pop esi */ 11173 ebx = POP32_VAL(esp); /* 0x250522C6: pop ebx */ 11174 ebp = POP32_VAL(esp); /* 0x250522C7: pop ebp */ 11175 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522C8: ret 4 */ 11176 L_250546D0: 11177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 11178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11179 ecx = ecx - 0x50u; /* 0x250546D0: sub ecx, 0x50 */ 11180 _flag_k = FK_CMP; 11181 RECOMP_BACKEDGE(); 11182 goto L_25052270; /* 0x250546D3: jmp 0x25052270 */ 11183 { RECOMP_REGS_OUT(); return; } /* end of function */ 11184 RECOMP_REGS_OUT(); 11185 } 11186 11187 void sub_250546E0(void) { 11188 int _fpu_cmp = 0; 11189 uint32_t _cf = 0; 11190 int _df = 1; 11191 uint32_t _flag_k = FK_NONE; 11192 uint32_t _flag_a = 0, _flag_b = 0; 11193 uint32_t _itail_tgt = 0; 11194 RECOMP_REGS_LOCALS 11195 RECOMP_ENTER(0x250546E0u); 11196 11197 goto L_250546E0; 11198 L_25052270: 11199 PUSH32(esp, ebp); /* 0x25052270: push ebp */ 11200 ebp = esp; /* 0x25052271: mov ebp, esp */ 11201 PUSH32(esp, ebx); /* 0x25052273: push ebx */ 11202 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25052274: mov bl, byte ptr [ebp + 8] */ 11203 /* test LO8(ebx), 2 */ /* 0x25052277: test bl, 2 */ 11204 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 11205 _cf = 0; 11206 _flag_k = FK_NARROW(FK_TEST, 24); 11207 PUSH32(esp, esi); /* 0x2505227A: push esi */ 11208 esi = ecx; /* 0x2505227B: mov esi, ecx */ 11209 if (TEST_Z(_flag_a, _flag_b)) goto L_250522AE; /* 0x2505227D: je 0x250522ae */ 11210 L_2505227F: 11211 eax = MEM32(esi + (-0x4)); /* 0x2505227F: mov eax, dword ptr [esi - 4] */ 11212 PUSH32(esp, edi); /* 0x25052282: push edi */ 11213 PUSH32(esp, 0x250524C0u); /* 0x25052283: push 0x250524c0 */ 11214 edi = esi + (-0x4); /* 0x25052288: lea edi, [esi - 4] */ 11215 PUSH32(esp, eax); /* 0x2505228B: push eax */ 11216 PUSH32(esp, 0x280u); /* 0x2505228C: push 0x280 */ 11217 PUSH32(esp, esi); /* 0x25052291: push esi */ 11218 RECOMP_ICALL(0x25137F92u); /* 0x25052292: call 0x25137f92 */ /* not lifted */ 11219 RECOMP_FLAGS_IN(); 11220 /* test LO8(ebx), 1 */ /* 0x25052297: test bl, 1 */ 11221 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11222 _cf = 0; 11223 _flag_k = FK_NARROW(FK_TEST, 24); 11224 if (TEST_Z(_flag_a, _flag_b)) goto L_250522A5; /* 0x2505229A: je 0x250522a5 */ 11225 L_2505229C: 11226 PUSH32(esp, edi); /* 0x2505229C: push edi */ 11227 RECOMP_ICALL(0x25137EECu); /* 0x2505229D: call 0x25137eec */ /* not lifted */ 11228 RECOMP_FLAGS_IN(); 11229 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11230 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11231 esp = esp + 4; /* 0x250522A2: add esp, 4 */ 11232 _flag_k = FK_ADD; 11233 L_250522A5: 11234 eax = edi; /* 0x250522A5: mov eax, edi */ 11235 edi = POP32_VAL(esp); /* 0x250522A7: pop edi */ 11236 esi = POP32_VAL(esp); /* 0x250522A8: pop esi */ 11237 ebx = POP32_VAL(esp); /* 0x250522A9: pop ebx */ 11238 ebp = POP32_VAL(esp); /* 0x250522AA: pop ebp */ 11239 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522AB: ret 4 */ 11240 L_250522AE: 11241 ecx = esi; /* 0x250522AE: mov ecx, esi */ 11242 RECOMP_ICALL(0x250524C0u); /* 0x250522B0: call 0x250524c0 */ /* not lifted */ 11243 RECOMP_FLAGS_IN(); 11244 /* test LO8(ebx), 1 */ /* 0x250522B5: test bl, 1 */ 11245 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11246 _cf = 0; 11247 _flag_k = FK_NARROW(FK_TEST, 24); 11248 if (TEST_Z(_flag_a, _flag_b)) goto L_250522C3; /* 0x250522B8: je 0x250522c3 */ 11249 L_250522BA: 11250 PUSH32(esp, esi); /* 0x250522BA: push esi */ 11251 RECOMP_ICALL(0x25137EECu); /* 0x250522BB: call 0x25137eec */ /* not lifted */ 11252 RECOMP_FLAGS_IN(); 11253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11255 esp = esp + 4; /* 0x250522C0: add esp, 4 */ 11256 _flag_k = FK_ADD; 11257 L_250522C3: 11258 eax = esi; /* 0x250522C3: mov eax, esi */ 11259 esi = POP32_VAL(esp); /* 0x250522C5: pop esi */ 11260 ebx = POP32_VAL(esp); /* 0x250522C6: pop ebx */ 11261 ebp = POP32_VAL(esp); /* 0x250522C7: pop ebp */ 11262 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522C8: ret 4 */ 11263 L_250546E0: 11264 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 11265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11266 ecx = ecx - 0x138u; /* 0x250546E0: sub ecx, 0x138 */ 11267 _flag_k = FK_CMP; 11268 RECOMP_BACKEDGE(); 11269 goto L_25052270; /* 0x250546E6: jmp 0x25052270 */ 11270 { RECOMP_REGS_OUT(); return; } /* end of function */ 11271 RECOMP_REGS_OUT(); 11272 } 11273 11274 void sub_250546F0(void) { 11275 int _fpu_cmp = 0; 11276 uint32_t _cf = 0; 11277 int _df = 1; 11278 uint32_t _flag_k = FK_NONE; 11279 uint32_t _flag_a = 0, _flag_b = 0; 11280 uint32_t _itail_tgt = 0; 11281 RECOMP_REGS_LOCALS 11282 RECOMP_ENTER(0x250546F0u); 11283 11284 goto L_250546F0; 11285 L_25052270: 11286 PUSH32(esp, ebp); /* 0x25052270: push ebp */ 11287 ebp = esp; /* 0x25052271: mov ebp, esp */ 11288 PUSH32(esp, ebx); /* 0x25052273: push ebx */ 11289 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25052274: mov bl, byte ptr [ebp + 8] */ 11290 /* test LO8(ebx), 2 */ /* 0x25052277: test bl, 2 */ 11291 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 11292 _cf = 0; 11293 _flag_k = FK_NARROW(FK_TEST, 24); 11294 PUSH32(esp, esi); /* 0x2505227A: push esi */ 11295 esi = ecx; /* 0x2505227B: mov esi, ecx */ 11296 if (TEST_Z(_flag_a, _flag_b)) goto L_250522AE; /* 0x2505227D: je 0x250522ae */ 11297 L_2505227F: 11298 eax = MEM32(esi + (-0x4)); /* 0x2505227F: mov eax, dword ptr [esi - 4] */ 11299 PUSH32(esp, edi); /* 0x25052282: push edi */ 11300 PUSH32(esp, 0x250524C0u); /* 0x25052283: push 0x250524c0 */ 11301 edi = esi + (-0x4); /* 0x25052288: lea edi, [esi - 4] */ 11302 PUSH32(esp, eax); /* 0x2505228B: push eax */ 11303 PUSH32(esp, 0x280u); /* 0x2505228C: push 0x280 */ 11304 PUSH32(esp, esi); /* 0x25052291: push esi */ 11305 RECOMP_ICALL(0x25137F92u); /* 0x25052292: call 0x25137f92 */ /* not lifted */ 11306 RECOMP_FLAGS_IN(); 11307 /* test LO8(ebx), 1 */ /* 0x25052297: test bl, 1 */ 11308 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11309 _cf = 0; 11310 _flag_k = FK_NARROW(FK_TEST, 24); 11311 if (TEST_Z(_flag_a, _flag_b)) goto L_250522A5; /* 0x2505229A: je 0x250522a5 */ 11312 L_2505229C: 11313 PUSH32(esp, edi); /* 0x2505229C: push edi */ 11314 RECOMP_ICALL(0x25137EECu); /* 0x2505229D: call 0x25137eec */ /* not lifted */ 11315 RECOMP_FLAGS_IN(); 11316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11318 esp = esp + 4; /* 0x250522A2: add esp, 4 */ 11319 _flag_k = FK_ADD; 11320 L_250522A5: 11321 eax = edi; /* 0x250522A5: mov eax, edi */ 11322 edi = POP32_VAL(esp); /* 0x250522A7: pop edi */ 11323 esi = POP32_VAL(esp); /* 0x250522A8: pop esi */ 11324 ebx = POP32_VAL(esp); /* 0x250522A9: pop ebx */ 11325 ebp = POP32_VAL(esp); /* 0x250522AA: pop ebp */ 11326 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522AB: ret 4 */ 11327 L_250522AE: 11328 ecx = esi; /* 0x250522AE: mov ecx, esi */ 11329 RECOMP_ICALL(0x250524C0u); /* 0x250522B0: call 0x250524c0 */ /* not lifted */ 11330 RECOMP_FLAGS_IN(); 11331 /* test LO8(ebx), 1 */ /* 0x250522B5: test bl, 1 */ 11332 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11333 _cf = 0; 11334 _flag_k = FK_NARROW(FK_TEST, 24); 11335 if (TEST_Z(_flag_a, _flag_b)) goto L_250522C3; /* 0x250522B8: je 0x250522c3 */ 11336 L_250522BA: 11337 PUSH32(esp, esi); /* 0x250522BA: push esi */ 11338 RECOMP_ICALL(0x25137EECu); /* 0x250522BB: call 0x25137eec */ /* not lifted */ 11339 RECOMP_FLAGS_IN(); 11340 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11341 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11342 esp = esp + 4; /* 0x250522C0: add esp, 4 */ 11343 _flag_k = FK_ADD; 11344 L_250522C3: 11345 eax = esi; /* 0x250522C3: mov eax, esi */ 11346 esi = POP32_VAL(esp); /* 0x250522C5: pop esi */ 11347 ebx = POP32_VAL(esp); /* 0x250522C6: pop ebx */ 11348 ebp = POP32_VAL(esp); /* 0x250522C7: pop ebp */ 11349 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250522C8: ret 4 */ 11350 L_250546F0: 11351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 11352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11353 ecx = ecx - 0x150u; /* 0x250546F0: sub ecx, 0x150 */ 11354 _flag_k = FK_CMP; 11355 RECOMP_BACKEDGE(); 11356 goto L_25052270; /* 0x250546F6: jmp 0x25052270 */ 11357 { RECOMP_REGS_OUT(); return; } /* end of function */ 11358 RECOMP_REGS_OUT(); 11359 } 11360 11361 void sub_25054700(void) { 11362 int _fpu_cmp = 0; 11363 uint32_t _cf = 0; 11364 int _df = 1; 11365 uint32_t _flag_k = FK_NONE; 11366 uint32_t _flag_a = 0, _flag_b = 0; 11367 uint32_t _itail_tgt = 0; 11368 RECOMP_REGS_LOCALS 11369 RECOMP_ENTER(0x25054700u); 11370 11371 L_25054700: 11372 eax = ecx; /* 0x25054700: mov eax, ecx */ 11373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11374 ecx = 0; /* 0x25054702: xor ecx, ecx */ 11375 _cf = 0; 11376 _flag_k = FK_TEST; 11377 MEM32(eax + 0xC) = ecx; /* 0x25054704: mov dword ptr [eax + 0xc], ecx */ 11378 MEM32(eax + 0x10) = ecx; /* 0x25054707: mov dword ptr [eax + 0x10], ecx */ 11379 MEM32(eax + 0x14) = ecx; /* 0x2505470A: mov dword ptr [eax + 0x14], ecx */ 11380 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2505470D: ret */ 11381 RECOMP_REGS_OUT(); 11382 } 11383 11384 void sub_25054710(void) { 11385 int _fpu_cmp = 0; 11386 uint32_t _cf = 0; 11387 int _df = 1; 11388 uint32_t _flag_k = FK_NONE; 11389 uint32_t _flag_a = 0, _flag_b = 0; 11390 uint32_t _itail_tgt = 0; 11391 RECOMP_REGS_LOCALS 11392 RECOMP_ENTER(0x25054710u); 11393 11394 L_25054710: 11395 PUSH32(esp, ebp); /* 0x25054710: push ebp */ 11396 ebp = esp; /* 0x25054711: mov ebp, esp */ 11397 PUSH32(esp, esi); /* 0x25054713: push esi */ 11398 esi = MEM32(ebp + 0x8); /* 0x25054714: mov esi, dword ptr [ebp + 8] */ 11399 PUSH32(esp, edi); /* 0x25054717: push edi */ 11400 eax = ecx; /* 0x25054718: mov eax, ecx */ 11401 ecx = 6; /* 0x2505471A: mov ecx, 6 */ 11402 edi = eax; /* 0x2505471F: mov edi, eax */ 11403 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25054721: 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; } 11404 edi = POP32_VAL(esp); /* 0x25054723: pop edi */ 11405 esi = POP32_VAL(esp); /* 0x25054724: pop esi */ 11406 ebp = POP32_VAL(esp); /* 0x25054725: pop ebp */ 11407 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25054726: ret 4 */ 11408 RECOMP_REGS_OUT(); 11409 } 11410 11411 void sub_25054730(void) { 11412 int _fpu_cmp = 0; 11413 uint32_t _cf = 0; 11414 int _df = 1; 11415 uint32_t _flag_k = FK_NONE; 11416 uint32_t _flag_a = 0, _flag_b = 0; 11417 uint32_t _itail_tgt = 0; 11418 RECOMP_REGS_LOCALS 11419 RECOMP_ENTER(0x25054730u); 11420 11421 L_25054730: 11422 PUSH32(esp, ebp); /* 0x25054730: push ebp */ 11423 ebp = esp; /* 0x25054731: mov ebp, esp */ 11424 edx = MEM32(0x25238238); /* 0x25054733: mov edx, dword ptr [0x25238238] */ 11425 eax = MEM32(ebp + 0x8); /* 0x25054739: mov eax, dword ptr [ebp + 8] */ 11426 ecx = eax; /* 0x2505473C: mov ecx, eax */ 11427 MEM32(ecx) = edx; /* 0x2505473E: mov dword ptr [ecx], edx */ 11428 edx = MEM32(0x2523823C); /* 0x25054740: mov edx, dword ptr [0x2523823c] */ 11429 MEM32(ecx + 0x4) = edx; /* 0x25054746: mov dword ptr [ecx + 4], edx */ 11430 edx = MEM32(0x25238240); /* 0x25054749: mov edx, dword ptr [0x25238240] */ 11431 MEM32(ecx + 0x8) = edx; /* 0x2505474F: mov dword ptr [ecx + 8], edx */ 11432 ebp = POP32_VAL(esp); /* 0x25054752: pop ebp */ 11433 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25054753: ret 4 */ 11434 RECOMP_REGS_OUT(); 11435 } 11436 11437 void sub_25054760(void) { 11438 int _fpu_cmp = 0; 11439 uint32_t _cf = 0; 11440 int _df = 1; 11441 uint32_t _flag_k = FK_NONE; 11442 uint32_t _flag_a = 0, _flag_b = 0; 11443 uint32_t _itail_tgt = 0; 11444 RECOMP_REGS_LOCALS 11445 RECOMP_ENTER(0x25054760u); 11446 11447 L_25054760: 11448 PUSH32(esp, ebp); /* 0x25054760: push ebp */ 11449 ebp = esp; /* 0x25054761: mov ebp, esp */ 11450 eax = MEM32(ebp + 0x8); /* 0x25054763: mov eax, dword ptr [ebp + 8] */ 11451 ecx = MEM32(eax); /* 0x25054766: mov ecx, dword ptr [eax] */ 11452 MEM32(0x25238238) = ecx; /* 0x25054768: mov dword ptr [0x25238238], ecx */ 11453 edx = MEM32(eax + 0x4); /* 0x2505476E: mov edx, dword ptr [eax + 4] */ 11454 MEM32(0x2523823C) = edx; /* 0x25054771: mov dword ptr [0x2523823c], edx */ 11455 eax = MEM32(eax + 0x8); /* 0x25054777: mov eax, dword ptr [eax + 8] */ 11456 MEM32(0x25238240) = eax; /* 0x2505477A: mov dword ptr [0x25238240], eax */ 11457 ebp = POP32_VAL(esp); /* 0x2505477F: pop ebp */ 11458 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25054780: ret 4 */ 11459 RECOMP_REGS_OUT(); 11460 } 11461 11462 void sub_25054790(void) { 11463 int _fpu_cmp = 0; 11464 uint32_t _cf = 0; 11465 int _df = 1; 11466 uint32_t _flag_k = FK_NONE; 11467 uint32_t _flag_a = 0, _flag_b = 0; 11468 uint32_t _itail_tgt = 0; 11469 RECOMP_REGS_LOCALS 11470 RECOMP_ENTER(0x25054790u); 11471 11472 L_25054790: 11473 PUSH32(esp, ebp); /* 0x25054790: push ebp */ 11474 ebp = esp; /* 0x25054791: mov ebp, esp */ 11475 eax = MEM32(ebp + 0x8); /* 0x25054793: mov eax, dword ptr [ebp + 8] */ 11476 MEM32(ecx + 0x58) = eax; /* 0x25054796: mov dword ptr [ecx + 0x58], eax */ 11477 ebp = POP32_VAL(esp); /* 0x25054799: pop ebp */ 11478 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2505479A: ret 4 */ 11479 RECOMP_REGS_OUT(); 11480 } 11481 11482 void sub_250547A0(void) { 11483 int _fpu_cmp = 0; 11484 uint32_t _cf = 0; 11485 int _df = 1; 11486 uint32_t _flag_k = FK_NONE; 11487 uint32_t _flag_a = 0, _flag_b = 0; 11488 uint32_t _itail_tgt = 0; 11489 RECOMP_REGS_LOCALS 11490 RECOMP_ENTER(0x250547A0u); 11491 11492 L_250547A0: 11493 PUSH32(esp, ebp); /* 0x250547A0: push ebp */ 11494 ebp = esp; /* 0x250547A1: mov ebp, esp */ 11495 eax = MEM32(ecx + 0x4); /* 0x250547A3: mov eax, dword ptr [ecx + 4] */ 11496 /* test eax, eax */ /* 0x250547A6: test eax, eax */ 11497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11498 _cf = 0; 11499 _flag_k = FK_TEST; 11500 if (TEST_Z(_flag_a, _flag_b)) goto L_250547C6; /* 0x250547A8: je 0x250547c6 */ 11501 L_250547AA: 11502 ecx = MEM32(ebp + 0x8); /* 0x250547AA: mov ecx, dword ptr [ebp + 8] */ 11503 edx = MEM32(ebp + 0xC); /* 0x250547AD: mov edx, dword ptr [ebp + 0xc] */ 11504 MEM32(eax + 0x240) = ecx; /* 0x250547B0: mov dword ptr [eax + 0x240], ecx */ 11505 MEM32(eax + 0x244) = edx; /* 0x250547B6: mov dword ptr [eax + 0x244], edx */ 11506 MEM32(eax + 0x248) = 2; /* 0x250547BC: mov dword ptr [eax + 0x248], 2 */ 11507 L_250547C6: 11508 ebp = POP32_VAL(esp); /* 0x250547C6: pop ebp */ 11509 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250547C7: ret 8 */ 11510 RECOMP_REGS_OUT(); 11511 } 11512 11513 void sub_250547D0(void) { 11514 int _fpu_cmp = 0; 11515 uint32_t _cf = 0; 11516 int _df = 1; 11517 uint32_t _flag_k = FK_NONE; 11518 uint32_t _flag_a = 0, _flag_b = 0; 11519 uint32_t _itail_tgt = 0; 11520 RECOMP_REGS_LOCALS 11521 RECOMP_ENTER(0x250547D0u); 11522 11523 L_250547D0: 11524 eax = MEM32(ecx + 0x18); /* 0x250547D0: mov eax, dword ptr [ecx + 0x18] */ 11525 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250547D3: ret */ 11526 RECOMP_REGS_OUT(); 11527 } 11528 11529 void sub_250547E0(void) { 11530 int _fpu_cmp = 0; 11531 uint32_t _cf = 0; 11532 int _df = 1; 11533 uint32_t _flag_k = FK_NONE; 11534 uint32_t _flag_a = 0, _flag_b = 0; 11535 uint32_t _itail_tgt = 0; 11536 RECOMP_REGS_LOCALS 11537 RECOMP_ENTER(0x250547E0u); 11538 11539 L_250547E0: 11540 eax = MEM32(ecx + 0x1C); /* 0x250547E0: mov eax, dword ptr [ecx + 0x1c] */ 11541 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250547E3: ret */ 11542 RECOMP_REGS_OUT(); 11543 } 11544 11545 void sub_250547F0(void) { 11546 int _fpu_cmp = 0; 11547 uint32_t _cf = 0; 11548 int _df = 1; 11549 uint32_t _flag_k = FK_NONE; 11550 uint32_t _flag_a = 0, _flag_b = 0; 11551 uint32_t _itail_tgt = 0; 11552 RECOMP_REGS_LOCALS 11553 RECOMP_ENTER(0x250547F0u); 11554 11555 L_250547F0: 11556 PUSH32(esp, ebp); /* 0x250547F0: push ebp */ 11557 ebp = esp; /* 0x250547F1: mov ebp, esp */ 11558 eax = MEM32(ebp + 0x8); /* 0x250547F3: mov eax, dword ptr [ebp + 8] */ 11559 MEM32(ecx + 0x5C) = eax; /* 0x250547F6: mov dword ptr [ecx + 0x5c], eax */ 11560 ebp = POP32_VAL(esp); /* 0x250547F9: pop ebp */ 11561 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250547FA: ret 4 */ 11562 RECOMP_REGS_OUT(); 11563 }