client/game/bbr.dll/lifted-0110.c (209234B)
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_2514CF60(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(0x2514CF60u); 17 18 L_2514CF60: 19 eax = MEM32(ebp + (-0x10)); /* 0x2514CF60: mov eax, dword ptr [ebp - 0x10] */ 20 PUSH32(esp, eax); /* 0x2514CF63: push eax */ 21 RECOMP_ICALL(0x25137EECu); /* 0x2514CF64: call 0x25137eec */ /* not lifted */ 22 RECOMP_FLAGS_IN(); 23 ecx = POP32_VAL(esp); /* 0x2514CF69: pop ecx */ 24 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514CF6A: ret */ 25 RECOMP_REGS_OUT(); 26 } 27 28 void sub_2514CF6B(void) { 29 int _fpu_cmp = 0; 30 uint32_t _cf = 0; 31 int _df = 1; 32 uint32_t _flag_k = FK_NONE; 33 uint32_t _flag_a = 0, _flag_b = 0; 34 uint32_t _itail_tgt = 0; 35 RECOMP_REGS_LOCALS 36 RECOMP_ENTER(0x2514CF6Bu); 37 38 goto L_2514CF6B; 39 L_251380C4: 40 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 41 L_2514CF6B: 42 eax = 0x2516E3C0u; /* 0x2514CF6B: mov eax, 0x2516e3c0 */ 43 L_2514CF70: 44 RECOMP_BACKEDGE(); 45 goto L_251380C4; /* 0x2514CF70: jmp 0x251380c4 */ 46 { RECOMP_REGS_OUT(); return; } /* end of function */ 47 _ljump: 48 switch (_itail_tgt) { 49 case 0x251380C4u: goto L_251380C4; 50 case 0x2514CF6Bu: goto L_2514CF6B; 51 case 0x2514CF70u: goto L_2514CF70; 52 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 53 } 54 RECOMP_REGS_OUT(); 55 } 56 57 void sub_2514CF80(void) { 58 int _fpu_cmp = 0; 59 uint32_t _cf = 0; 60 int _df = 1; 61 uint32_t _flag_k = FK_NONE; 62 uint32_t _flag_a = 0, _flag_b = 0; 63 uint32_t _itail_tgt = 0; 64 RECOMP_REGS_LOCALS 65 RECOMP_ENTER(0x2514CF80u); 66 67 goto L_2514CF80; 68 L_250E62B0: 69 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 70 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 71 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 72 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 73 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 74 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 75 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 76 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 77 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 78 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 79 _flag_k = FK_CMP; 80 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 81 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 82 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 83 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 84 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 85 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 86 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 87 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 88 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 89 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 90 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 91 RECOMP_FLAGS_IN(); 92 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 93 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 94 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 95 _cf = 0; 96 _flag_k = FK_TEST; 97 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 98 L_250E62F7: 99 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 100 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 101 _flag_k = FK_DEC; 102 L_250E62FD: 103 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 104 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 106 _cf = 0; 107 _flag_k = FK_TEST; 108 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 109 L_250E6304: 110 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 111 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 112 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 113 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 114 _cf = 0; 115 _flag_k = FK_NARROW(FK_TEST, 24); 116 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 117 L_250E630D: 118 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 119 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 121 _flag_k = FK_NARROW(FK_CMP, 24); 122 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 123 L_250E6311: 124 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 125 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 126 _flag_k = FK_NARROW(FK_DEC, 24); 127 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 128 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 129 L_250E6317: 130 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 131 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 132 RECOMP_FLAGS_IN(); 133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 135 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 136 _flag_k = FK_ADD; 137 L_250E6320: 138 ecx = esi; /* 0x250E6320: mov ecx, esi */ 139 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 140 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 141 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 142 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 143 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 144 RECOMP_FLAGS_IN(); 145 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 146 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 147 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 148 esp = ebp; /* 0x250E634F: mov esp, ebp */ 149 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 150 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 151 L_2514CF80: 152 ecx = MEM32(ebp + (-0x18)); /* 0x2514CF80: mov ecx, dword ptr [ebp - 0x18] */ 153 RECOMP_BACKEDGE(); 154 goto L_250E62B0; /* 0x2514CF83: jmp 0x250e62b0 */ 155 { RECOMP_REGS_OUT(); return; } /* end of function */ 156 RECOMP_REGS_OUT(); 157 } 158 159 void sub_2514CF88(void) { 160 int _fpu_cmp = 0; 161 uint32_t _cf = 0; 162 int _df = 1; 163 uint32_t _flag_k = FK_NONE; 164 uint32_t _flag_a = 0, _flag_b = 0; 165 uint32_t _itail_tgt = 0; 166 RECOMP_REGS_LOCALS 167 RECOMP_ENTER(0x2514CF88u); 168 169 L_2514CF88: 170 eax = MEM32(ebp + (-0x10)); /* 0x2514CF88: mov eax, dword ptr [ebp - 0x10] */ 171 PUSH32(esp, eax); /* 0x2514CF8B: push eax */ 172 RECOMP_ICALL(0x25137EECu); /* 0x2514CF8C: call 0x25137eec */ /* not lifted */ 173 RECOMP_FLAGS_IN(); 174 ecx = POP32_VAL(esp); /* 0x2514CF91: pop ecx */ 175 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514CF92: ret */ 176 RECOMP_REGS_OUT(); 177 } 178 179 void sub_2514CF93(void) { 180 int _fpu_cmp = 0; 181 uint32_t _cf = 0; 182 int _df = 1; 183 uint32_t _flag_k = FK_NONE; 184 uint32_t _flag_a = 0, _flag_b = 0; 185 uint32_t _itail_tgt = 0; 186 RECOMP_REGS_LOCALS 187 RECOMP_ENTER(0x2514CF93u); 188 189 L_2514CF93: 190 ecx = MEM32(ebp + (-0x10)); /* 0x2514CF93: mov ecx, dword ptr [ebp - 0x10] */ 191 L_2514CF96: 192 { _itail_tgt = (uint32_t)(MEM32(0x251513FC)); goto _ljump; } 193 { RECOMP_REGS_OUT(); return; } /* end of function */ 194 _ljump: 195 switch (_itail_tgt) { 196 case 0x2514CF93u: goto L_2514CF93; 197 case 0x2514CF96u: goto L_2514CF96; 198 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 199 } 200 RECOMP_REGS_OUT(); 201 } 202 203 void sub_2514CF9C(void) { 204 int _fpu_cmp = 0; 205 uint32_t _cf = 0; 206 int _df = 1; 207 uint32_t _flag_k = FK_NONE; 208 uint32_t _flag_a = 0, _flag_b = 0; 209 uint32_t _itail_tgt = 0; 210 RECOMP_REGS_LOCALS 211 RECOMP_ENTER(0x2514CF9Cu); 212 213 L_2514CF9C: 214 eax = MEM32(ebp + (-0x14)); /* 0x2514CF9C: mov eax, dword ptr [ebp - 0x14] */ 215 PUSH32(esp, eax); /* 0x2514CF9F: push eax */ 216 RECOMP_ICALL(0x25137EECu); /* 0x2514CFA0: call 0x25137eec */ /* not lifted */ 217 RECOMP_FLAGS_IN(); 218 ecx = POP32_VAL(esp); /* 0x2514CFA5: pop ecx */ 219 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514CFA6: ret */ 220 RECOMP_REGS_OUT(); 221 } 222 223 void sub_2514CFA7(void) { 224 int _fpu_cmp = 0; 225 uint32_t _cf = 0; 226 int _df = 1; 227 uint32_t _flag_k = FK_NONE; 228 uint32_t _flag_a = 0, _flag_b = 0; 229 uint32_t _itail_tgt = 0; 230 RECOMP_REGS_LOCALS 231 RECOMP_ENTER(0x2514CFA7u); 232 233 goto L_2514CFA7; 234 L_25118D30: 235 MEM32(ecx) = 0x25158574u; /* 0x25118D30: mov dword ptr [ecx], 0x25158574 */ 236 ecx = MEM32(ecx + 0x4); /* 0x25118D36: mov ecx, dword ptr [ecx + 4] */ 237 /* test ecx, ecx */ /* 0x25118D39: test ecx, ecx */ 238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 239 _cf = 0; 240 _flag_k = FK_TEST; 241 if (TEST_Z(_flag_a, _flag_b)) goto L_25118D43; /* 0x25118D3B: je 0x25118d43 */ 242 L_25118D3D: 243 eax = MEM32(ecx); /* 0x25118D3D: mov eax, dword ptr [ecx] */ 244 PUSH32(esp, ecx); /* 0x25118D3F: push ecx */ 245 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x25118D40: call dword ptr [eax + 8] */ 246 RECOMP_FLAGS_IN(); 247 L_25118D43: 248 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25118D43: ret */ 249 L_2514CFA7: 250 ecx = ebp + (-0x34); /* 0x2514CFA7: lea ecx, [ebp - 0x34] */ 251 RECOMP_BACKEDGE(); 252 goto L_25118D30; /* 0x2514CFAA: jmp 0x25118d30 */ 253 { RECOMP_REGS_OUT(); return; } /* end of function */ 254 RECOMP_REGS_OUT(); 255 } 256 257 void sub_2514CFAF(void) { 258 int _fpu_cmp = 0; 259 uint32_t _cf = 0; 260 int _df = 1; 261 uint32_t _flag_k = FK_NONE; 262 uint32_t _flag_a = 0, _flag_b = 0; 263 uint32_t _itail_tgt = 0; 264 RECOMP_REGS_LOCALS 265 RECOMP_ENTER(0x2514CFAFu); 266 267 goto L_2514CFAF; 268 L_251380C4: 269 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 270 L_2514CFAF: 271 eax = 0x2516E3E8u; /* 0x2514CFAF: mov eax, 0x2516e3e8 */ 272 L_2514CFB4: 273 RECOMP_BACKEDGE(); 274 goto L_251380C4; /* 0x2514CFB4: jmp 0x251380c4 */ 275 { RECOMP_REGS_OUT(); return; } /* end of function */ 276 _ljump: 277 switch (_itail_tgt) { 278 case 0x251380C4u: goto L_251380C4; 279 case 0x2514CFAFu: goto L_2514CFAF; 280 case 0x2514CFB4u: goto L_2514CFB4; 281 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 282 } 283 RECOMP_REGS_OUT(); 284 } 285 286 void sub_2514CFC0(void) { 287 int _fpu_cmp = 0; 288 uint32_t _cf = 0; 289 int _df = 1; 290 uint32_t _flag_k = FK_NONE; 291 uint32_t _flag_a = 0, _flag_b = 0; 292 uint32_t _itail_tgt = 0; 293 RECOMP_REGS_LOCALS 294 RECOMP_ENTER(0x2514CFC0u); 295 296 goto L_2514CFC0; 297 L_250E62B0: 298 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 299 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 300 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 301 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 302 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 303 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 304 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 307 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 308 _flag_k = FK_CMP; 309 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 310 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 311 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 312 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 313 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 314 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 315 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 316 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 317 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 318 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 319 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 320 RECOMP_FLAGS_IN(); 321 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 322 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 324 _cf = 0; 325 _flag_k = FK_TEST; 326 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 327 L_250E62F7: 328 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 329 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 330 _flag_k = FK_DEC; 331 L_250E62FD: 332 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 333 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 335 _cf = 0; 336 _flag_k = FK_TEST; 337 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 338 L_250E6304: 339 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 340 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 341 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 342 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 343 _cf = 0; 344 _flag_k = FK_NARROW(FK_TEST, 24); 345 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 346 L_250E630D: 347 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 348 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 350 _flag_k = FK_NARROW(FK_CMP, 24); 351 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 352 L_250E6311: 353 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 354 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 355 _flag_k = FK_NARROW(FK_DEC, 24); 356 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 357 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 358 L_250E6317: 359 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 360 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 361 RECOMP_FLAGS_IN(); 362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 364 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 365 _flag_k = FK_ADD; 366 L_250E6320: 367 ecx = esi; /* 0x250E6320: mov ecx, esi */ 368 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 369 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 370 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 371 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 372 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 373 RECOMP_FLAGS_IN(); 374 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 375 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 376 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 377 esp = ebp; /* 0x250E634F: mov esp, ebp */ 378 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 379 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 380 L_2514CFC0: 381 ecx = MEM32(ebp + (-0x10)); /* 0x2514CFC0: mov ecx, dword ptr [ebp - 0x10] */ 382 RECOMP_BACKEDGE(); 383 goto L_250E62B0; /* 0x2514CFC3: jmp 0x250e62b0 */ 384 { RECOMP_REGS_OUT(); return; } /* end of function */ 385 RECOMP_REGS_OUT(); 386 } 387 388 void sub_2514CFC8(void) { 389 int _fpu_cmp = 0; 390 uint32_t _cf = 0; 391 int _df = 1; 392 uint32_t _flag_k = FK_NONE; 393 uint32_t _flag_a = 0, _flag_b = 0; 394 uint32_t _itail_tgt = 0; 395 RECOMP_REGS_LOCALS 396 RECOMP_ENTER(0x2514CFC8u); 397 398 goto L_2514CFC8; 399 L_251380C4: 400 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 401 L_2514CFC8: 402 eax = 0x2516E430u; /* 0x2514CFC8: mov eax, 0x2516e430 */ 403 L_2514CFCD: 404 RECOMP_BACKEDGE(); 405 goto L_251380C4; /* 0x2514CFCD: jmp 0x251380c4 */ 406 { RECOMP_REGS_OUT(); return; } /* end of function */ 407 _ljump: 408 switch (_itail_tgt) { 409 case 0x251380C4u: goto L_251380C4; 410 case 0x2514CFC8u: goto L_2514CFC8; 411 case 0x2514CFCDu: goto L_2514CFCD; 412 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 413 } 414 RECOMP_REGS_OUT(); 415 } 416 417 void sub_2514CFE0(void) { 418 int _fpu_cmp = 0; 419 uint32_t _cf = 0; 420 int _df = 1; 421 uint32_t _flag_k = FK_NONE; 422 uint32_t _flag_a = 0, _flag_b = 0; 423 uint32_t _itail_tgt = 0; 424 RECOMP_REGS_LOCALS 425 RECOMP_ENTER(0x2514CFE0u); 426 427 goto L_2514CFE0; 428 L_250E62B0: 429 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 430 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 431 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 432 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 433 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 434 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 435 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 436 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 438 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 439 _flag_k = FK_CMP; 440 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 441 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 442 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 443 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 444 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 445 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 446 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 447 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 448 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 449 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 450 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 451 RECOMP_FLAGS_IN(); 452 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 453 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 455 _cf = 0; 456 _flag_k = FK_TEST; 457 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 458 L_250E62F7: 459 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 460 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 461 _flag_k = FK_DEC; 462 L_250E62FD: 463 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 464 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 466 _cf = 0; 467 _flag_k = FK_TEST; 468 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 469 L_250E6304: 470 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 471 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 472 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 473 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 474 _cf = 0; 475 _flag_k = FK_NARROW(FK_TEST, 24); 476 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 477 L_250E630D: 478 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 479 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 481 _flag_k = FK_NARROW(FK_CMP, 24); 482 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 483 L_250E6311: 484 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 485 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 486 _flag_k = FK_NARROW(FK_DEC, 24); 487 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 488 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 489 L_250E6317: 490 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 491 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 492 RECOMP_FLAGS_IN(); 493 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 494 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 495 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 496 _flag_k = FK_ADD; 497 L_250E6320: 498 ecx = esi; /* 0x250E6320: mov ecx, esi */ 499 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 500 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 501 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 502 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 503 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 504 RECOMP_FLAGS_IN(); 505 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 506 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 507 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 508 esp = ebp; /* 0x250E634F: mov esp, ebp */ 509 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 510 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 511 L_2514CFE0: 512 ecx = MEM32(ebp + (-0x24)); /* 0x2514CFE0: mov ecx, dword ptr [ebp - 0x24] */ 513 RECOMP_BACKEDGE(); 514 goto L_250E62B0; /* 0x2514CFE3: jmp 0x250e62b0 */ 515 { RECOMP_REGS_OUT(); return; } /* end of function */ 516 RECOMP_REGS_OUT(); 517 } 518 519 void sub_2514CFE8(void) { 520 int _fpu_cmp = 0; 521 uint32_t _cf = 0; 522 int _df = 1; 523 uint32_t _flag_k = FK_NONE; 524 uint32_t _flag_a = 0, _flag_b = 0; 525 uint32_t _itail_tgt = 0; 526 RECOMP_REGS_LOCALS 527 RECOMP_ENTER(0x2514CFE8u); 528 529 goto L_2514CFE8; 530 L_251380C4: 531 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 532 L_2514CFE8: 533 eax = 0x2516E458u; /* 0x2514CFE8: mov eax, 0x2516e458 */ 534 L_2514CFED: 535 RECOMP_BACKEDGE(); 536 goto L_251380C4; /* 0x2514CFED: jmp 0x251380c4 */ 537 { RECOMP_REGS_OUT(); return; } /* end of function */ 538 _ljump: 539 switch (_itail_tgt) { 540 case 0x251380C4u: goto L_251380C4; 541 case 0x2514CFE8u: goto L_2514CFE8; 542 case 0x2514CFEDu: goto L_2514CFED; 543 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 544 } 545 RECOMP_REGS_OUT(); 546 } 547 548 void sub_2514D000(void) { 549 int _fpu_cmp = 0; 550 uint32_t _cf = 0; 551 int _df = 1; 552 uint32_t _flag_k = FK_NONE; 553 uint32_t _flag_a = 0, _flag_b = 0; 554 uint32_t _itail_tgt = 0; 555 RECOMP_REGS_LOCALS 556 RECOMP_ENTER(0x2514D000u); 557 558 goto L_2514D000; 559 L_2509DA40: 560 eax = MEM32(ecx + 0x4); /* 0x2509DA40: mov eax, dword ptr [ecx + 4] */ 561 /* test eax, eax */ /* 0x2509DA43: test eax, eax */ 562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 563 _cf = 0; 564 _flag_k = FK_TEST; 565 if (TEST_Z(_flag_a, _flag_b)) goto L_2509DA4C; /* 0x2509DA45: je 0x2509da4c */ 566 L_2509DA47: 567 goto L_25118FA0; /* 0x2509DA47: jmp 0x25118fa0 */ 568 L_2509DA4C: 569 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509DA4C: ret */ 570 L_25118FA0: 571 PUSH32(esp, esi); /* 0x25118FA0: push esi */ 572 esi = ecx; /* 0x25118FA1: mov esi, ecx */ 573 eax = MEM32(esi); /* 0x25118FA3: mov eax, dword ptr [esi] */ 574 ecx = MEM32(0x25238B58); /* 0x25118FA5: mov ecx, dword ptr [0x25238b58] */ 575 PUSH32(esp, eax); /* 0x25118FAB: push eax */ 576 RECOMP_ICALL(0x25103A90u); /* 0x25118FAC: call 0x25103a90 */ /* not lifted */ 577 RECOMP_FLAGS_IN(); 578 MEM32(esi + 0x4) = 0; /* 0x25118FB1: mov dword ptr [esi + 4], 0 */ 579 esi = POP32_VAL(esp); /* 0x25118FB8: pop esi */ 580 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25118FB9: ret */ 581 L_2514D000: 582 ecx = ebp + (-0x68); /* 0x2514D000: lea ecx, [ebp - 0x68] */ 583 RECOMP_BACKEDGE(); 584 goto L_2509DA40; /* 0x2514D003: jmp 0x2509da40 */ 585 { RECOMP_REGS_OUT(); return; } /* end of function */ 586 RECOMP_REGS_OUT(); 587 } 588 589 void sub_2514D008(void) { 590 int _fpu_cmp = 0; 591 uint32_t _cf = 0; 592 int _df = 1; 593 uint32_t _flag_k = FK_NONE; 594 uint32_t _flag_a = 0, _flag_b = 0; 595 uint32_t _itail_tgt = 0; 596 RECOMP_REGS_LOCALS 597 RECOMP_ENTER(0x2514D008u); 598 599 goto L_2514D008; 600 L_251380C4: 601 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 602 L_2514D008: 603 eax = 0x2516E480u; /* 0x2514D008: mov eax, 0x2516e480 */ 604 L_2514D00D: 605 RECOMP_BACKEDGE(); 606 goto L_251380C4; /* 0x2514D00D: jmp 0x251380c4 */ 607 { RECOMP_REGS_OUT(); return; } /* end of function */ 608 _ljump: 609 switch (_itail_tgt) { 610 case 0x251380C4u: goto L_251380C4; 611 case 0x2514D008u: goto L_2514D008; 612 case 0x2514D00Du: goto L_2514D00D; 613 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 614 } 615 RECOMP_REGS_OUT(); 616 } 617 618 void sub_2514D020(void) { 619 int _fpu_cmp = 0; 620 uint32_t _cf = 0; 621 int _df = 1; 622 uint32_t _flag_k = FK_NONE; 623 uint32_t _flag_a = 0, _flag_b = 0; 624 uint32_t _itail_tgt = 0; 625 RECOMP_REGS_LOCALS 626 RECOMP_ENTER(0x2514D020u); 627 628 goto L_2514D020; 629 L_25118D30: 630 MEM32(ecx) = 0x25158574u; /* 0x25118D30: mov dword ptr [ecx], 0x25158574 */ 631 ecx = MEM32(ecx + 0x4); /* 0x25118D36: mov ecx, dword ptr [ecx + 4] */ 632 /* test ecx, ecx */ /* 0x25118D39: test ecx, ecx */ 633 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 634 _cf = 0; 635 _flag_k = FK_TEST; 636 if (TEST_Z(_flag_a, _flag_b)) goto L_25118D43; /* 0x25118D3B: je 0x25118d43 */ 637 L_25118D3D: 638 eax = MEM32(ecx); /* 0x25118D3D: mov eax, dword ptr [ecx] */ 639 PUSH32(esp, ecx); /* 0x25118D3F: push ecx */ 640 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x25118D40: call dword ptr [eax + 8] */ 641 RECOMP_FLAGS_IN(); 642 L_25118D43: 643 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25118D43: ret */ 644 L_2514D020: 645 ecx = ebp + (-0x28); /* 0x2514D020: lea ecx, [ebp - 0x28] */ 646 RECOMP_BACKEDGE(); 647 goto L_25118D30; /* 0x2514D023: jmp 0x25118d30 */ 648 { RECOMP_REGS_OUT(); return; } /* end of function */ 649 RECOMP_REGS_OUT(); 650 } 651 652 void sub_2514D028(void) { 653 int _fpu_cmp = 0; 654 uint32_t _cf = 0; 655 int _df = 1; 656 uint32_t _flag_k = FK_NONE; 657 uint32_t _flag_a = 0, _flag_b = 0; 658 uint32_t _itail_tgt = 0; 659 RECOMP_REGS_LOCALS 660 RECOMP_ENTER(0x2514D028u); 661 662 goto L_2514D028; 663 L_251380C4: 664 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 665 L_2514D028: 666 eax = 0x2516E4A8u; /* 0x2514D028: mov eax, 0x2516e4a8 */ 667 L_2514D02D: 668 RECOMP_BACKEDGE(); 669 goto L_251380C4; /* 0x2514D02D: jmp 0x251380c4 */ 670 { RECOMP_REGS_OUT(); return; } /* end of function */ 671 _ljump: 672 switch (_itail_tgt) { 673 case 0x251380C4u: goto L_251380C4; 674 case 0x2514D028u: goto L_2514D028; 675 case 0x2514D02Du: goto L_2514D02D; 676 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 677 } 678 RECOMP_REGS_OUT(); 679 } 680 681 void sub_2514D040(void) { 682 int _fpu_cmp = 0; 683 uint32_t _cf = 0; 684 int _df = 1; 685 uint32_t _flag_k = FK_NONE; 686 uint32_t _flag_a = 0, _flag_b = 0; 687 uint32_t _itail_tgt = 0; 688 RECOMP_REGS_LOCALS 689 RECOMP_ENTER(0x2514D040u); 690 691 goto L_2514D040; 692 L_25085240: 693 PUSH32(esp, ebp); /* 0x25085240: push ebp */ 694 ebp = esp; /* 0x25085241: mov ebp, esp */ 695 PUSH32(esp, ecx); /* 0x25085243: push ecx */ 696 PUSH32(esp, esi); /* 0x25085244: push esi */ 697 esi = ecx; /* 0x25085245: mov esi, ecx */ 698 eax = MEM32(esi + 0x4); /* 0x25085247: mov eax, dword ptr [esi + 4] */ 699 PUSH32(esp, eax); /* 0x2508524A: push eax */ 700 MEM32(ebp + (-0x4)) = eax; /* 0x2508524B: mov dword ptr [ebp - 4], eax */ 701 RECOMP_ICALL(0x25137EECu); /* 0x2508524E: call 0x25137eec */ /* not lifted */ 702 RECOMP_FLAGS_IN(); 703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 704 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 705 esp = esp + 4; /* 0x25085253: add esp, 4 */ 706 _flag_k = FK_ADD; 707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 708 eax = 0; /* 0x25085256: xor eax, eax */ 709 _cf = 0; 710 _flag_k = FK_TEST; 711 MEM32(esi + 0x4) = eax; /* 0x25085258: mov dword ptr [esi + 4], eax */ 712 MEM32(esi + 0x8) = eax; /* 0x2508525B: mov dword ptr [esi + 8], eax */ 713 MEM32(esi + 0xC) = eax; /* 0x2508525E: mov dword ptr [esi + 0xc], eax */ 714 esi = POP32_VAL(esp); /* 0x25085261: pop esi */ 715 esp = ebp; /* 0x25085262: mov esp, ebp */ 716 ebp = POP32_VAL(esp); /* 0x25085264: pop ebp */ 717 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25085265: ret */ 718 L_2514D040: 719 ecx = ebp + (-0x70); /* 0x2514D040: lea ecx, [ebp - 0x70] */ 720 RECOMP_BACKEDGE(); 721 goto L_25085240; /* 0x2514D043: jmp 0x25085240 */ 722 { RECOMP_REGS_OUT(); return; } /* end of function */ 723 RECOMP_REGS_OUT(); 724 } 725 726 void sub_2514D048(void) { 727 int _fpu_cmp = 0; 728 uint32_t _cf = 0; 729 int _df = 1; 730 uint32_t _flag_k = FK_NONE; 731 uint32_t _flag_a = 0, _flag_b = 0; 732 uint32_t _itail_tgt = 0; 733 RECOMP_REGS_LOCALS 734 RECOMP_ENTER(0x2514D048u); 735 736 goto L_2514D048; 737 L_251380C4: 738 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 739 L_2514D048: 740 eax = 0x2516E4D0u; /* 0x2514D048: mov eax, 0x2516e4d0 */ 741 L_2514D04D: 742 RECOMP_BACKEDGE(); 743 goto L_251380C4; /* 0x2514D04D: jmp 0x251380c4 */ 744 { RECOMP_REGS_OUT(); return; } /* end of function */ 745 _ljump: 746 switch (_itail_tgt) { 747 case 0x251380C4u: goto L_251380C4; 748 case 0x2514D048u: goto L_2514D048; 749 case 0x2514D04Du: goto L_2514D04D; 750 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 751 } 752 RECOMP_REGS_OUT(); 753 } 754 755 void sub_2514D060(void) { 756 int _fpu_cmp = 0; 757 uint32_t _cf = 0; 758 int _df = 1; 759 uint32_t _flag_k = FK_NONE; 760 uint32_t _flag_a = 0, _flag_b = 0; 761 uint32_t _itail_tgt = 0; 762 RECOMP_REGS_LOCALS 763 RECOMP_ENTER(0x2514D060u); 764 765 L_2514D060: 766 ecx = ebp + (-0x44); /* 0x2514D060: lea ecx, [ebp - 0x44] */ 767 L_2514D063: 768 { _itail_tgt = (uint32_t)(MEM32(0x251511A0)); goto _ljump; } 769 { RECOMP_REGS_OUT(); return; } /* end of function */ 770 _ljump: 771 switch (_itail_tgt) { 772 case 0x2514D060u: goto L_2514D060; 773 case 0x2514D063u: goto L_2514D063; 774 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 775 } 776 RECOMP_REGS_OUT(); 777 } 778 779 void sub_2514D069(void) { 780 int _fpu_cmp = 0; 781 uint32_t _cf = 0; 782 int _df = 1; 783 uint32_t _flag_k = FK_NONE; 784 uint32_t _flag_a = 0, _flag_b = 0; 785 uint32_t _itail_tgt = 0; 786 RECOMP_REGS_LOCALS 787 RECOMP_ENTER(0x2514D069u); 788 789 L_2514D069: 790 ecx = ebp + (-0x24); /* 0x2514D069: lea ecx, [ebp - 0x24] */ 791 L_2514D06C: 792 { _itail_tgt = (uint32_t)(MEM32(0x251511A0)); goto _ljump; } 793 { RECOMP_REGS_OUT(); return; } /* end of function */ 794 _ljump: 795 switch (_itail_tgt) { 796 case 0x2514D069u: goto L_2514D069; 797 case 0x2514D06Cu: goto L_2514D06C; 798 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 799 } 800 RECOMP_REGS_OUT(); 801 } 802 803 void sub_2514D072(void) { 804 int _fpu_cmp = 0; 805 uint32_t _cf = 0; 806 int _df = 1; 807 uint32_t _flag_k = FK_NONE; 808 uint32_t _flag_a = 0, _flag_b = 0; 809 uint32_t _itail_tgt = 0; 810 RECOMP_REGS_LOCALS 811 RECOMP_ENTER(0x2514D072u); 812 813 L_2514D072: 814 ecx = ebp + (-0x54); /* 0x2514D072: lea ecx, [ebp - 0x54] */ 815 L_2514D075: 816 { _itail_tgt = (uint32_t)(MEM32(0x251511A0)); goto _ljump; } 817 { RECOMP_REGS_OUT(); return; } /* end of function */ 818 _ljump: 819 switch (_itail_tgt) { 820 case 0x2514D072u: goto L_2514D072; 821 case 0x2514D075u: goto L_2514D075; 822 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 823 } 824 RECOMP_REGS_OUT(); 825 } 826 827 void sub_2514D07B(void) { 828 int _fpu_cmp = 0; 829 uint32_t _cf = 0; 830 int _df = 1; 831 uint32_t _flag_k = FK_NONE; 832 uint32_t _flag_a = 0, _flag_b = 0; 833 uint32_t _itail_tgt = 0; 834 RECOMP_REGS_LOCALS 835 RECOMP_ENTER(0x2514D07Bu); 836 837 L_2514D07B: 838 ecx = ebp + (-0x34); /* 0x2514D07B: lea ecx, [ebp - 0x34] */ 839 L_2514D07E: 840 { _itail_tgt = (uint32_t)(MEM32(0x251511A0)); goto _ljump; } 841 { RECOMP_REGS_OUT(); return; } /* end of function */ 842 _ljump: 843 switch (_itail_tgt) { 844 case 0x2514D07Bu: goto L_2514D07B; 845 case 0x2514D07Eu: goto L_2514D07E; 846 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 847 } 848 RECOMP_REGS_OUT(); 849 } 850 851 void sub_2514D084(void) { 852 int _fpu_cmp = 0; 853 uint32_t _cf = 0; 854 int _df = 1; 855 uint32_t _flag_k = FK_NONE; 856 uint32_t _flag_a = 0, _flag_b = 0; 857 uint32_t _itail_tgt = 0; 858 RECOMP_REGS_LOCALS 859 RECOMP_ENTER(0x2514D084u); 860 861 goto L_2514D084; 862 L_251380C4: 863 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 864 L_2514D084: 865 eax = 0x2516E4F8u; /* 0x2514D084: mov eax, 0x2516e4f8 */ 866 L_2514D089: 867 RECOMP_BACKEDGE(); 868 goto L_251380C4; /* 0x2514D089: jmp 0x251380c4 */ 869 { RECOMP_REGS_OUT(); return; } /* end of function */ 870 _ljump: 871 switch (_itail_tgt) { 872 case 0x251380C4u: goto L_251380C4; 873 case 0x2514D084u: goto L_2514D084; 874 case 0x2514D089u: goto L_2514D089; 875 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 876 } 877 RECOMP_REGS_OUT(); 878 } 879 880 void sub_2514D090(void) { 881 int _fpu_cmp = 0; 882 uint32_t _cf = 0; 883 int _df = 1; 884 uint32_t _flag_k = FK_NONE; 885 uint32_t _flag_a = 0, _flag_b = 0; 886 uint32_t _itail_tgt = 0; 887 RECOMP_REGS_LOCALS 888 RECOMP_ENTER(0x2514D090u); 889 890 L_2514D090: 891 eax = MEM32(ebp + (-0x10)); /* 0x2514D090: mov eax, dword ptr [ebp - 0x10] */ 892 PUSH32(esp, eax); /* 0x2514D093: push eax */ 893 RECOMP_ICALL(0x25137EECu); /* 0x2514D094: call 0x25137eec */ /* not lifted */ 894 RECOMP_FLAGS_IN(); 895 ecx = POP32_VAL(esp); /* 0x2514D099: pop ecx */ 896 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D09A: ret */ 897 RECOMP_REGS_OUT(); 898 } 899 900 void sub_2514D09B(void) { 901 int _fpu_cmp = 0; 902 uint32_t _cf = 0; 903 int _df = 1; 904 uint32_t _flag_k = FK_NONE; 905 uint32_t _flag_a = 0, _flag_b = 0; 906 uint32_t _itail_tgt = 0; 907 RECOMP_REGS_LOCALS 908 RECOMP_ENTER(0x2514D09Bu); 909 910 goto L_2514D09B; 911 L_251380C4: 912 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 913 L_2514D09B: 914 eax = 0x2516E538u; /* 0x2514D09B: mov eax, 0x2516e538 */ 915 L_2514D0A0: 916 RECOMP_BACKEDGE(); 917 goto L_251380C4; /* 0x2514D0A0: jmp 0x251380c4 */ 918 { RECOMP_REGS_OUT(); return; } /* end of function */ 919 _ljump: 920 switch (_itail_tgt) { 921 case 0x251380C4u: goto L_251380C4; 922 case 0x2514D09Bu: goto L_2514D09B; 923 case 0x2514D0A0u: goto L_2514D0A0; 924 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 925 } 926 RECOMP_REGS_OUT(); 927 } 928 929 void sub_2514D0B0(void) { 930 int _fpu_cmp = 0; 931 uint32_t _cf = 0; 932 int _df = 1; 933 uint32_t _flag_k = FK_NONE; 934 uint32_t _flag_a = 0, _flag_b = 0; 935 uint32_t _itail_tgt = 0; 936 RECOMP_REGS_LOCALS 937 RECOMP_ENTER(0x2514D0B0u); 938 939 goto L_2514D0B0; 940 L_250E62B0: 941 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 942 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 943 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 944 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 945 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 946 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 947 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 948 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 950 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 951 _flag_k = FK_CMP; 952 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 953 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 954 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 955 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 956 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 957 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 958 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 959 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 960 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 961 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 962 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 963 RECOMP_FLAGS_IN(); 964 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 965 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 967 _cf = 0; 968 _flag_k = FK_TEST; 969 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 970 L_250E62F7: 971 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 972 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 973 _flag_k = FK_DEC; 974 L_250E62FD: 975 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 976 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 978 _cf = 0; 979 _flag_k = FK_TEST; 980 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 981 L_250E6304: 982 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 983 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 984 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 985 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 986 _cf = 0; 987 _flag_k = FK_NARROW(FK_TEST, 24); 988 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 989 L_250E630D: 990 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 991 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 993 _flag_k = FK_NARROW(FK_CMP, 24); 994 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 995 L_250E6311: 996 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 997 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 998 _flag_k = FK_NARROW(FK_DEC, 24); 999 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 1000 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 1001 L_250E6317: 1002 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 1003 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 1004 RECOMP_FLAGS_IN(); 1005 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1007 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 1008 _flag_k = FK_ADD; 1009 L_250E6320: 1010 ecx = esi; /* 0x250E6320: mov ecx, esi */ 1011 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 1012 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 1013 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 1014 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 1015 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 1016 RECOMP_FLAGS_IN(); 1017 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 1018 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 1019 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 1020 esp = ebp; /* 0x250E634F: mov esp, ebp */ 1021 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 1022 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 1023 L_2514D0B0: 1024 ecx = MEM32(ebp + (-0x18)); /* 0x2514D0B0: mov ecx, dword ptr [ebp - 0x18] */ 1025 RECOMP_BACKEDGE(); 1026 goto L_250E62B0; /* 0x2514D0B3: jmp 0x250e62b0 */ 1027 { RECOMP_REGS_OUT(); return; } /* end of function */ 1028 RECOMP_REGS_OUT(); 1029 } 1030 1031 void sub_2514D0B8(void) { 1032 int _fpu_cmp = 0; 1033 uint32_t _cf = 0; 1034 int _df = 1; 1035 uint32_t _flag_k = FK_NONE; 1036 uint32_t _flag_a = 0, _flag_b = 0; 1037 uint32_t _itail_tgt = 0; 1038 RECOMP_REGS_LOCALS 1039 RECOMP_ENTER(0x2514D0B8u); 1040 1041 goto L_2514D0B8; 1042 L_25085240: 1043 PUSH32(esp, ebp); /* 0x25085240: push ebp */ 1044 ebp = esp; /* 0x25085241: mov ebp, esp */ 1045 PUSH32(esp, ecx); /* 0x25085243: push ecx */ 1046 PUSH32(esp, esi); /* 0x25085244: push esi */ 1047 esi = ecx; /* 0x25085245: mov esi, ecx */ 1048 eax = MEM32(esi + 0x4); /* 0x25085247: mov eax, dword ptr [esi + 4] */ 1049 PUSH32(esp, eax); /* 0x2508524A: push eax */ 1050 MEM32(ebp + (-0x4)) = eax; /* 0x2508524B: mov dword ptr [ebp - 4], eax */ 1051 RECOMP_ICALL(0x25137EECu); /* 0x2508524E: call 0x25137eec */ /* not lifted */ 1052 RECOMP_FLAGS_IN(); 1053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1055 esp = esp + 4; /* 0x25085253: add esp, 4 */ 1056 _flag_k = FK_ADD; 1057 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1058 eax = 0; /* 0x25085256: xor eax, eax */ 1059 _cf = 0; 1060 _flag_k = FK_TEST; 1061 MEM32(esi + 0x4) = eax; /* 0x25085258: mov dword ptr [esi + 4], eax */ 1062 MEM32(esi + 0x8) = eax; /* 0x2508525B: mov dword ptr [esi + 8], eax */ 1063 MEM32(esi + 0xC) = eax; /* 0x2508525E: mov dword ptr [esi + 0xc], eax */ 1064 esi = POP32_VAL(esp); /* 0x25085261: pop esi */ 1065 esp = ebp; /* 0x25085262: mov esp, ebp */ 1066 ebp = POP32_VAL(esp); /* 0x25085264: pop ebp */ 1067 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25085265: ret */ 1068 L_2514D0B8: 1069 ecx = MEM32(ebp + (-0x18)); /* 0x2514D0B8: mov ecx, dword ptr [ebp - 0x18] */ 1070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x44u); 1071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1072 ecx = ecx + 0x44u; /* 0x2514D0BB: add ecx, 0x44 */ 1073 _flag_k = FK_ADD; 1074 RECOMP_BACKEDGE(); 1075 goto L_25085240; /* 0x2514D0BE: jmp 0x25085240 */ 1076 { RECOMP_REGS_OUT(); return; } /* end of function */ 1077 RECOMP_REGS_OUT(); 1078 } 1079 1080 void sub_2514D0C3(void) { 1081 int _fpu_cmp = 0; 1082 uint32_t _cf = 0; 1083 int _df = 1; 1084 uint32_t _flag_k = FK_NONE; 1085 uint32_t _flag_a = 0, _flag_b = 0; 1086 uint32_t _itail_tgt = 0; 1087 RECOMP_REGS_LOCALS 1088 RECOMP_ENTER(0x2514D0C3u); 1089 1090 goto L_2514D0C3; 1091 L_251380C4: 1092 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1093 L_2514D0C3: 1094 eax = 0x2516E560u; /* 0x2514D0C3: mov eax, 0x2516e560 */ 1095 L_2514D0C8: 1096 RECOMP_BACKEDGE(); 1097 goto L_251380C4; /* 0x2514D0C8: jmp 0x251380c4 */ 1098 { RECOMP_REGS_OUT(); return; } /* end of function */ 1099 _ljump: 1100 switch (_itail_tgt) { 1101 case 0x251380C4u: goto L_251380C4; 1102 case 0x2514D0C3u: goto L_2514D0C3; 1103 case 0x2514D0C8u: goto L_2514D0C8; 1104 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1105 } 1106 RECOMP_REGS_OUT(); 1107 } 1108 1109 void sub_2514D0D0(void) { 1110 int _fpu_cmp = 0; 1111 uint32_t _cf = 0; 1112 int _df = 1; 1113 uint32_t _flag_k = FK_NONE; 1114 uint32_t _flag_a = 0, _flag_b = 0; 1115 uint32_t _itail_tgt = 0; 1116 RECOMP_REGS_LOCALS 1117 RECOMP_ENTER(0x2514D0D0u); 1118 1119 goto L_2514D0D0; 1120 L_250E62B0: 1121 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 1122 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 1123 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 1124 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 1125 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 1126 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 1127 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 1128 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1130 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 1131 _flag_k = FK_CMP; 1132 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 1133 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 1134 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 1135 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 1136 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 1137 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 1138 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 1139 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 1140 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 1141 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 1142 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 1143 RECOMP_FLAGS_IN(); 1144 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 1145 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 1146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1147 _cf = 0; 1148 _flag_k = FK_TEST; 1149 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 1150 L_250E62F7: 1151 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 1152 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 1153 _flag_k = FK_DEC; 1154 L_250E62FD: 1155 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 1156 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 1157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1158 _cf = 0; 1159 _flag_k = FK_TEST; 1160 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 1161 L_250E6304: 1162 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 1163 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 1164 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 1165 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1166 _cf = 0; 1167 _flag_k = FK_NARROW(FK_TEST, 24); 1168 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 1169 L_250E630D: 1170 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 1171 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1173 _flag_k = FK_NARROW(FK_CMP, 24); 1174 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 1175 L_250E6311: 1176 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1177 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 1178 _flag_k = FK_NARROW(FK_DEC, 24); 1179 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 1180 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 1181 L_250E6317: 1182 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 1183 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 1184 RECOMP_FLAGS_IN(); 1185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1187 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 1188 _flag_k = FK_ADD; 1189 L_250E6320: 1190 ecx = esi; /* 0x250E6320: mov ecx, esi */ 1191 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 1192 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 1193 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 1194 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 1195 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 1196 RECOMP_FLAGS_IN(); 1197 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 1198 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 1199 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 1200 esp = ebp; /* 0x250E634F: mov esp, ebp */ 1201 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 1202 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 1203 L_2514D0D0: 1204 ecx = MEM32(ebp + (-0x14)); /* 0x2514D0D0: mov ecx, dword ptr [ebp - 0x14] */ 1205 RECOMP_BACKEDGE(); 1206 goto L_250E62B0; /* 0x2514D0D3: jmp 0x250e62b0 */ 1207 { RECOMP_REGS_OUT(); return; } /* end of function */ 1208 RECOMP_REGS_OUT(); 1209 } 1210 1211 void sub_2514D0D8(void) { 1212 int _fpu_cmp = 0; 1213 uint32_t _cf = 0; 1214 int _df = 1; 1215 uint32_t _flag_k = FK_NONE; 1216 uint32_t _flag_a = 0, _flag_b = 0; 1217 uint32_t _itail_tgt = 0; 1218 RECOMP_REGS_LOCALS 1219 RECOMP_ENTER(0x2514D0D8u); 1220 1221 goto L_2514D0D8; 1222 L_25085240: 1223 PUSH32(esp, ebp); /* 0x25085240: push ebp */ 1224 ebp = esp; /* 0x25085241: mov ebp, esp */ 1225 PUSH32(esp, ecx); /* 0x25085243: push ecx */ 1226 PUSH32(esp, esi); /* 0x25085244: push esi */ 1227 esi = ecx; /* 0x25085245: mov esi, ecx */ 1228 eax = MEM32(esi + 0x4); /* 0x25085247: mov eax, dword ptr [esi + 4] */ 1229 PUSH32(esp, eax); /* 0x2508524A: push eax */ 1230 MEM32(ebp + (-0x4)) = eax; /* 0x2508524B: mov dword ptr [ebp - 4], eax */ 1231 RECOMP_ICALL(0x25137EECu); /* 0x2508524E: call 0x25137eec */ /* not lifted */ 1232 RECOMP_FLAGS_IN(); 1233 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1235 esp = esp + 4; /* 0x25085253: add esp, 4 */ 1236 _flag_k = FK_ADD; 1237 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1238 eax = 0; /* 0x25085256: xor eax, eax */ 1239 _cf = 0; 1240 _flag_k = FK_TEST; 1241 MEM32(esi + 0x4) = eax; /* 0x25085258: mov dword ptr [esi + 4], eax */ 1242 MEM32(esi + 0x8) = eax; /* 0x2508525B: mov dword ptr [esi + 8], eax */ 1243 MEM32(esi + 0xC) = eax; /* 0x2508525E: mov dword ptr [esi + 0xc], eax */ 1244 esi = POP32_VAL(esp); /* 0x25085261: pop esi */ 1245 esp = ebp; /* 0x25085262: mov esp, ebp */ 1246 ebp = POP32_VAL(esp); /* 0x25085264: pop ebp */ 1247 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25085265: ret */ 1248 L_2514D0D8: 1249 ecx = MEM32(ebp + (-0x14)); /* 0x2514D0D8: mov ecx, dword ptr [ebp - 0x14] */ 1250 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x44u); 1251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1252 ecx = ecx + 0x44u; /* 0x2514D0DB: add ecx, 0x44 */ 1253 _flag_k = FK_ADD; 1254 RECOMP_BACKEDGE(); 1255 goto L_25085240; /* 0x2514D0DE: jmp 0x25085240 */ 1256 { RECOMP_REGS_OUT(); return; } /* end of function */ 1257 RECOMP_REGS_OUT(); 1258 } 1259 1260 void sub_2514D0E3(void) { 1261 int _fpu_cmp = 0; 1262 uint32_t _cf = 0; 1263 int _df = 1; 1264 uint32_t _flag_k = FK_NONE; 1265 uint32_t _flag_a = 0, _flag_b = 0; 1266 uint32_t _itail_tgt = 0; 1267 RECOMP_REGS_LOCALS 1268 RECOMP_ENTER(0x2514D0E3u); 1269 1270 L_2514D0E3: 1271 eax = MEM32(ebp + (-0x18)); /* 0x2514D0E3: mov eax, dword ptr [ebp - 0x18] */ 1272 PUSH32(esp, eax); /* 0x2514D0E6: push eax */ 1273 RECOMP_ICALL(0x25137EECu); /* 0x2514D0E7: call 0x25137eec */ /* not lifted */ 1274 RECOMP_FLAGS_IN(); 1275 ecx = POP32_VAL(esp); /* 0x2514D0EC: pop ecx */ 1276 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D0ED: ret */ 1277 RECOMP_REGS_OUT(); 1278 } 1279 1280 void sub_2514D0EE(void) { 1281 int _fpu_cmp = 0; 1282 uint32_t _cf = 0; 1283 int _df = 1; 1284 uint32_t _flag_k = FK_NONE; 1285 uint32_t _flag_a = 0, _flag_b = 0; 1286 uint32_t _itail_tgt = 0; 1287 RECOMP_REGS_LOCALS 1288 RECOMP_ENTER(0x2514D0EEu); 1289 1290 goto L_2514D0EE; 1291 L_251380C4: 1292 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1293 L_2514D0EE: 1294 eax = 0x2516E590u; /* 0x2514D0EE: mov eax, 0x2516e590 */ 1295 L_2514D0F3: 1296 RECOMP_BACKEDGE(); 1297 goto L_251380C4; /* 0x2514D0F3: jmp 0x251380c4 */ 1298 { RECOMP_REGS_OUT(); return; } /* end of function */ 1299 _ljump: 1300 switch (_itail_tgt) { 1301 case 0x251380C4u: goto L_251380C4; 1302 case 0x2514D0EEu: goto L_2514D0EE; 1303 case 0x2514D0F3u: goto L_2514D0F3; 1304 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1305 } 1306 RECOMP_REGS_OUT(); 1307 } 1308 1309 void sub_2514D100(void) { 1310 int _fpu_cmp = 0; 1311 uint32_t _cf = 0; 1312 int _df = 1; 1313 uint32_t _flag_k = FK_NONE; 1314 uint32_t _flag_a = 0, _flag_b = 0; 1315 uint32_t _itail_tgt = 0; 1316 RECOMP_REGS_LOCALS 1317 RECOMP_ENTER(0x2514D100u); 1318 1319 goto L_2514D100; 1320 L_250E62B0: 1321 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 1322 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 1323 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 1324 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 1325 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 1326 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 1327 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 1328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1330 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 1331 _flag_k = FK_CMP; 1332 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 1333 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 1334 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 1335 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 1336 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 1337 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 1338 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 1339 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 1340 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 1341 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 1342 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 1343 RECOMP_FLAGS_IN(); 1344 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 1345 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 1346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1347 _cf = 0; 1348 _flag_k = FK_TEST; 1349 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 1350 L_250E62F7: 1351 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 1352 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 1353 _flag_k = FK_DEC; 1354 L_250E62FD: 1355 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 1356 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 1357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1358 _cf = 0; 1359 _flag_k = FK_TEST; 1360 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 1361 L_250E6304: 1362 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 1363 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 1364 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 1365 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1366 _cf = 0; 1367 _flag_k = FK_NARROW(FK_TEST, 24); 1368 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 1369 L_250E630D: 1370 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 1371 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1373 _flag_k = FK_NARROW(FK_CMP, 24); 1374 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 1375 L_250E6311: 1376 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1377 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 1378 _flag_k = FK_NARROW(FK_DEC, 24); 1379 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 1380 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 1381 L_250E6317: 1382 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 1383 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 1384 RECOMP_FLAGS_IN(); 1385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1387 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 1388 _flag_k = FK_ADD; 1389 L_250E6320: 1390 ecx = esi; /* 0x250E6320: mov ecx, esi */ 1391 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 1392 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 1393 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 1394 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 1395 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 1396 RECOMP_FLAGS_IN(); 1397 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 1398 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 1399 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 1400 esp = ebp; /* 0x250E634F: mov esp, ebp */ 1401 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 1402 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 1403 L_2514D100: 1404 ecx = MEM32(ebp + (-0x10)); /* 0x2514D100: mov ecx, dword ptr [ebp - 0x10] */ 1405 RECOMP_BACKEDGE(); 1406 goto L_250E62B0; /* 0x2514D103: jmp 0x250e62b0 */ 1407 { RECOMP_REGS_OUT(); return; } /* end of function */ 1408 RECOMP_REGS_OUT(); 1409 } 1410 1411 void sub_2514D108(void) { 1412 int _fpu_cmp = 0; 1413 uint32_t _cf = 0; 1414 int _df = 1; 1415 uint32_t _flag_k = FK_NONE; 1416 uint32_t _flag_a = 0, _flag_b = 0; 1417 uint32_t _itail_tgt = 0; 1418 RECOMP_REGS_LOCALS 1419 RECOMP_ENTER(0x2514D108u); 1420 1421 goto L_2514D108; 1422 L_25085240: 1423 PUSH32(esp, ebp); /* 0x25085240: push ebp */ 1424 ebp = esp; /* 0x25085241: mov ebp, esp */ 1425 PUSH32(esp, ecx); /* 0x25085243: push ecx */ 1426 PUSH32(esp, esi); /* 0x25085244: push esi */ 1427 esi = ecx; /* 0x25085245: mov esi, ecx */ 1428 eax = MEM32(esi + 0x4); /* 0x25085247: mov eax, dword ptr [esi + 4] */ 1429 PUSH32(esp, eax); /* 0x2508524A: push eax */ 1430 MEM32(ebp + (-0x4)) = eax; /* 0x2508524B: mov dword ptr [ebp - 4], eax */ 1431 RECOMP_ICALL(0x25137EECu); /* 0x2508524E: call 0x25137eec */ /* not lifted */ 1432 RECOMP_FLAGS_IN(); 1433 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1435 esp = esp + 4; /* 0x25085253: add esp, 4 */ 1436 _flag_k = FK_ADD; 1437 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1438 eax = 0; /* 0x25085256: xor eax, eax */ 1439 _cf = 0; 1440 _flag_k = FK_TEST; 1441 MEM32(esi + 0x4) = eax; /* 0x25085258: mov dword ptr [esi + 4], eax */ 1442 MEM32(esi + 0x8) = eax; /* 0x2508525B: mov dword ptr [esi + 8], eax */ 1443 MEM32(esi + 0xC) = eax; /* 0x2508525E: mov dword ptr [esi + 0xc], eax */ 1444 esi = POP32_VAL(esp); /* 0x25085261: pop esi */ 1445 esp = ebp; /* 0x25085262: mov esp, ebp */ 1446 ebp = POP32_VAL(esp); /* 0x25085264: pop ebp */ 1447 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25085265: ret */ 1448 L_2514D108: 1449 ecx = MEM32(ebp + (-0x10)); /* 0x2514D108: mov ecx, dword ptr [ebp - 0x10] */ 1450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x44u); 1451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1452 ecx = ecx + 0x44u; /* 0x2514D10B: add ecx, 0x44 */ 1453 _flag_k = FK_ADD; 1454 RECOMP_BACKEDGE(); 1455 goto L_25085240; /* 0x2514D10E: jmp 0x25085240 */ 1456 { RECOMP_REGS_OUT(); return; } /* end of function */ 1457 RECOMP_REGS_OUT(); 1458 } 1459 1460 void sub_2514D113(void) { 1461 int _fpu_cmp = 0; 1462 uint32_t _cf = 0; 1463 int _df = 1; 1464 uint32_t _flag_k = FK_NONE; 1465 uint32_t _flag_a = 0, _flag_b = 0; 1466 uint32_t _itail_tgt = 0; 1467 RECOMP_REGS_LOCALS 1468 RECOMP_ENTER(0x2514D113u); 1469 1470 goto L_2514D113; 1471 L_251380C4: 1472 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1473 L_2514D113: 1474 eax = 0x2516E5C8u; /* 0x2514D113: mov eax, 0x2516e5c8 */ 1475 L_2514D118: 1476 RECOMP_BACKEDGE(); 1477 goto L_251380C4; /* 0x2514D118: jmp 0x251380c4 */ 1478 { RECOMP_REGS_OUT(); return; } /* end of function */ 1479 _ljump: 1480 switch (_itail_tgt) { 1481 case 0x251380C4u: goto L_251380C4; 1482 case 0x2514D113u: goto L_2514D113; 1483 case 0x2514D118u: goto L_2514D118; 1484 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1485 } 1486 RECOMP_REGS_OUT(); 1487 } 1488 1489 void sub_2514D120(void) { 1490 int _fpu_cmp = 0; 1491 uint32_t _cf = 0; 1492 int _df = 1; 1493 uint32_t _flag_k = FK_NONE; 1494 uint32_t _flag_a = 0, _flag_b = 0; 1495 uint32_t _itail_tgt = 0; 1496 RECOMP_REGS_LOCALS 1497 RECOMP_ENTER(0x2514D120u); 1498 1499 goto L_2514D120; 1500 L_250E62B0: 1501 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 1502 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 1503 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 1504 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 1505 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 1506 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 1507 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 1508 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1510 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 1511 _flag_k = FK_CMP; 1512 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 1513 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 1514 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 1515 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 1516 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 1517 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 1518 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 1519 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 1520 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 1521 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 1522 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 1523 RECOMP_FLAGS_IN(); 1524 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 1525 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 1526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1527 _cf = 0; 1528 _flag_k = FK_TEST; 1529 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 1530 L_250E62F7: 1531 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 1532 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 1533 _flag_k = FK_DEC; 1534 L_250E62FD: 1535 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 1536 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 1537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1538 _cf = 0; 1539 _flag_k = FK_TEST; 1540 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 1541 L_250E6304: 1542 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 1543 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 1544 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 1545 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1546 _cf = 0; 1547 _flag_k = FK_NARROW(FK_TEST, 24); 1548 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 1549 L_250E630D: 1550 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 1551 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1553 _flag_k = FK_NARROW(FK_CMP, 24); 1554 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 1555 L_250E6311: 1556 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1557 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 1558 _flag_k = FK_NARROW(FK_DEC, 24); 1559 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 1560 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 1561 L_250E6317: 1562 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 1563 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 1564 RECOMP_FLAGS_IN(); 1565 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1567 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 1568 _flag_k = FK_ADD; 1569 L_250E6320: 1570 ecx = esi; /* 0x250E6320: mov ecx, esi */ 1571 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 1572 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 1573 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 1574 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 1575 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 1576 RECOMP_FLAGS_IN(); 1577 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 1578 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 1579 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 1580 esp = ebp; /* 0x250E634F: mov esp, ebp */ 1581 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 1582 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 1583 L_2514D120: 1584 ecx = MEM32(ebp + (-0x18)); /* 0x2514D120: mov ecx, dword ptr [ebp - 0x18] */ 1585 RECOMP_BACKEDGE(); 1586 goto L_250E62B0; /* 0x2514D123: jmp 0x250e62b0 */ 1587 { RECOMP_REGS_OUT(); return; } /* end of function */ 1588 RECOMP_REGS_OUT(); 1589 } 1590 1591 void sub_2514D128(void) { 1592 int _fpu_cmp = 0; 1593 uint32_t _cf = 0; 1594 int _df = 1; 1595 uint32_t _flag_k = FK_NONE; 1596 uint32_t _flag_a = 0, _flag_b = 0; 1597 uint32_t _itail_tgt = 0; 1598 RECOMP_REGS_LOCALS 1599 RECOMP_ENTER(0x2514D128u); 1600 1601 goto L_2514D128; 1602 L_25085240: 1603 PUSH32(esp, ebp); /* 0x25085240: push ebp */ 1604 ebp = esp; /* 0x25085241: mov ebp, esp */ 1605 PUSH32(esp, ecx); /* 0x25085243: push ecx */ 1606 PUSH32(esp, esi); /* 0x25085244: push esi */ 1607 esi = ecx; /* 0x25085245: mov esi, ecx */ 1608 eax = MEM32(esi + 0x4); /* 0x25085247: mov eax, dword ptr [esi + 4] */ 1609 PUSH32(esp, eax); /* 0x2508524A: push eax */ 1610 MEM32(ebp + (-0x4)) = eax; /* 0x2508524B: mov dword ptr [ebp - 4], eax */ 1611 RECOMP_ICALL(0x25137EECu); /* 0x2508524E: call 0x25137eec */ /* not lifted */ 1612 RECOMP_FLAGS_IN(); 1613 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1615 esp = esp + 4; /* 0x25085253: add esp, 4 */ 1616 _flag_k = FK_ADD; 1617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1618 eax = 0; /* 0x25085256: xor eax, eax */ 1619 _cf = 0; 1620 _flag_k = FK_TEST; 1621 MEM32(esi + 0x4) = eax; /* 0x25085258: mov dword ptr [esi + 4], eax */ 1622 MEM32(esi + 0x8) = eax; /* 0x2508525B: mov dword ptr [esi + 8], eax */ 1623 MEM32(esi + 0xC) = eax; /* 0x2508525E: mov dword ptr [esi + 0xc], eax */ 1624 esi = POP32_VAL(esp); /* 0x25085261: pop esi */ 1625 esp = ebp; /* 0x25085262: mov esp, ebp */ 1626 ebp = POP32_VAL(esp); /* 0x25085264: pop ebp */ 1627 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25085265: ret */ 1628 L_2514D128: 1629 ecx = MEM32(ebp + (-0x18)); /* 0x2514D128: mov ecx, dword ptr [ebp - 0x18] */ 1630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x44u); 1631 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1632 ecx = ecx + 0x44u; /* 0x2514D12B: add ecx, 0x44 */ 1633 _flag_k = FK_ADD; 1634 RECOMP_BACKEDGE(); 1635 goto L_25085240; /* 0x2514D12E: jmp 0x25085240 */ 1636 { RECOMP_REGS_OUT(); return; } /* end of function */ 1637 RECOMP_REGS_OUT(); 1638 } 1639 1640 void sub_2514D133(void) { 1641 int _fpu_cmp = 0; 1642 uint32_t _cf = 0; 1643 int _df = 1; 1644 uint32_t _flag_k = FK_NONE; 1645 uint32_t _flag_a = 0, _flag_b = 0; 1646 uint32_t _itail_tgt = 0; 1647 RECOMP_REGS_LOCALS 1648 RECOMP_ENTER(0x2514D133u); 1649 1650 goto L_2514D133; 1651 L_251380C4: 1652 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1653 L_2514D133: 1654 eax = 0x2516E5F8u; /* 0x2514D133: mov eax, 0x2516e5f8 */ 1655 L_2514D138: 1656 RECOMP_BACKEDGE(); 1657 goto L_251380C4; /* 0x2514D138: jmp 0x251380c4 */ 1658 { RECOMP_REGS_OUT(); return; } /* end of function */ 1659 _ljump: 1660 switch (_itail_tgt) { 1661 case 0x251380C4u: goto L_251380C4; 1662 case 0x2514D133u: goto L_2514D133; 1663 case 0x2514D138u: goto L_2514D138; 1664 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1665 } 1666 RECOMP_REGS_OUT(); 1667 } 1668 1669 void sub_2514D140(void) { 1670 int _fpu_cmp = 0; 1671 uint32_t _cf = 0; 1672 int _df = 1; 1673 uint32_t _flag_k = FK_NONE; 1674 uint32_t _flag_a = 0, _flag_b = 0; 1675 uint32_t _itail_tgt = 0; 1676 RECOMP_REGS_LOCALS 1677 RECOMP_ENTER(0x2514D140u); 1678 1679 L_2514D140: 1680 eax = MEM32(ebp + (-0x10)); /* 0x2514D140: mov eax, dword ptr [ebp - 0x10] */ 1681 PUSH32(esp, eax); /* 0x2514D143: push eax */ 1682 RECOMP_ICALL(0x25137EECu); /* 0x2514D144: call 0x25137eec */ /* not lifted */ 1683 RECOMP_FLAGS_IN(); 1684 ecx = POP32_VAL(esp); /* 0x2514D149: pop ecx */ 1685 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D14A: ret */ 1686 RECOMP_REGS_OUT(); 1687 } 1688 1689 void sub_2514D14B(void) { 1690 int _fpu_cmp = 0; 1691 uint32_t _cf = 0; 1692 int _df = 1; 1693 uint32_t _flag_k = FK_NONE; 1694 uint32_t _flag_a = 0, _flag_b = 0; 1695 uint32_t _itail_tgt = 0; 1696 RECOMP_REGS_LOCALS 1697 RECOMP_ENTER(0x2514D14Bu); 1698 1699 goto L_2514D14B; 1700 L_251380C4: 1701 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1702 L_2514D14B: 1703 eax = 0x2516E628u; /* 0x2514D14B: mov eax, 0x2516e628 */ 1704 L_2514D150: 1705 RECOMP_BACKEDGE(); 1706 goto L_251380C4; /* 0x2514D150: jmp 0x251380c4 */ 1707 { RECOMP_REGS_OUT(); return; } /* end of function */ 1708 _ljump: 1709 switch (_itail_tgt) { 1710 case 0x251380C4u: goto L_251380C4; 1711 case 0x2514D14Bu: goto L_2514D14B; 1712 case 0x2514D150u: goto L_2514D150; 1713 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1714 } 1715 RECOMP_REGS_OUT(); 1716 } 1717 1718 void sub_2514D160(void) { 1719 int _fpu_cmp = 0; 1720 uint32_t _cf = 0; 1721 int _df = 1; 1722 uint32_t _flag_k = FK_NONE; 1723 uint32_t _flag_a = 0, _flag_b = 0; 1724 uint32_t _itail_tgt = 0; 1725 RECOMP_REGS_LOCALS 1726 RECOMP_ENTER(0x2514D160u); 1727 1728 L_2514D160: 1729 eax = MEM32(ebp + (-0x10)); /* 0x2514D160: mov eax, dword ptr [ebp - 0x10] */ 1730 PUSH32(esp, eax); /* 0x2514D163: push eax */ 1731 RECOMP_ICALL(0x25137EECu); /* 0x2514D164: call 0x25137eec */ /* not lifted */ 1732 RECOMP_FLAGS_IN(); 1733 ecx = POP32_VAL(esp); /* 0x2514D169: pop ecx */ 1734 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D16A: ret */ 1735 RECOMP_REGS_OUT(); 1736 } 1737 1738 void sub_2514D16B(void) { 1739 int _fpu_cmp = 0; 1740 uint32_t _cf = 0; 1741 int _df = 1; 1742 uint32_t _flag_k = FK_NONE; 1743 uint32_t _flag_a = 0, _flag_b = 0; 1744 uint32_t _itail_tgt = 0; 1745 RECOMP_REGS_LOCALS 1746 RECOMP_ENTER(0x2514D16Bu); 1747 1748 goto L_2514D16B; 1749 L_251380C4: 1750 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1751 L_2514D16B: 1752 eax = 0x2516E650u; /* 0x2514D16B: mov eax, 0x2516e650 */ 1753 L_2514D170: 1754 RECOMP_BACKEDGE(); 1755 goto L_251380C4; /* 0x2514D170: jmp 0x251380c4 */ 1756 { RECOMP_REGS_OUT(); return; } /* end of function */ 1757 _ljump: 1758 switch (_itail_tgt) { 1759 case 0x251380C4u: goto L_251380C4; 1760 case 0x2514D16Bu: goto L_2514D16B; 1761 case 0x2514D170u: goto L_2514D170; 1762 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1763 } 1764 RECOMP_REGS_OUT(); 1765 } 1766 1767 void sub_2514D180(void) { 1768 int _fpu_cmp = 0; 1769 uint32_t _cf = 0; 1770 int _df = 1; 1771 uint32_t _flag_k = FK_NONE; 1772 uint32_t _flag_a = 0, _flag_b = 0; 1773 uint32_t _itail_tgt = 0; 1774 RECOMP_REGS_LOCALS 1775 RECOMP_ENTER(0x2514D180u); 1776 1777 L_2514D180: 1778 ecx = MEM32(ebp + (-0x10)); /* 0x2514D180: mov ecx, dword ptr [ebp - 0x10] */ 1779 L_2514D183: 1780 { _itail_tgt = (uint32_t)(MEM32(0x251513FC)); goto _ljump; } 1781 { RECOMP_REGS_OUT(); return; } /* end of function */ 1782 _ljump: 1783 switch (_itail_tgt) { 1784 case 0x2514D180u: goto L_2514D180; 1785 case 0x2514D183u: goto L_2514D183; 1786 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1787 } 1788 RECOMP_REGS_OUT(); 1789 } 1790 1791 void sub_2514D189(void) { 1792 int _fpu_cmp = 0; 1793 uint32_t _cf = 0; 1794 int _df = 1; 1795 uint32_t _flag_k = FK_NONE; 1796 uint32_t _flag_a = 0, _flag_b = 0; 1797 uint32_t _itail_tgt = 0; 1798 RECOMP_REGS_LOCALS 1799 RECOMP_ENTER(0x2514D189u); 1800 1801 goto L_2514D189; 1802 L_251380C4: 1803 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 1804 L_2514D189: 1805 eax = 0x2516E678u; /* 0x2514D189: mov eax, 0x2516e678 */ 1806 L_2514D18E: 1807 RECOMP_BACKEDGE(); 1808 goto L_251380C4; /* 0x2514D18E: jmp 0x251380c4 */ 1809 { RECOMP_REGS_OUT(); return; } /* end of function */ 1810 _ljump: 1811 switch (_itail_tgt) { 1812 case 0x251380C4u: goto L_251380C4; 1813 case 0x2514D189u: goto L_2514D189; 1814 case 0x2514D18Eu: goto L_2514D18E; 1815 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1816 } 1817 RECOMP_REGS_OUT(); 1818 } 1819 1820 void sub_2514D1A0(void) { 1821 int _fpu_cmp = 0; 1822 uint32_t _cf = 0; 1823 int _df = 1; 1824 uint32_t _flag_k = FK_NONE; 1825 uint32_t _flag_a = 0, _flag_b = 0; 1826 uint32_t _itail_tgt = 0; 1827 RECOMP_REGS_LOCALS 1828 RECOMP_ENTER(0x2514D1A0u); 1829 1830 goto L_2514D1A0; 1831 L_250DB0B0: 1832 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 1833 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 1834 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 1835 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 1836 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 1837 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 1838 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 1839 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1841 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 1842 _flag_k = FK_CMP; 1843 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 1844 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 1845 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 1846 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 1847 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 1848 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 1849 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 1850 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 1851 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 1852 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 1853 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 1854 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 1855 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 1856 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 1857 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1858 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 1859 _cf = 0; 1860 _flag_k = FK_TEST; 1861 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 1862 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1864 _flag_k = FK_CMP; 1865 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 1866 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 1867 L_250DB11E: 1868 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 1869 RECOMP_FLAGS_IN(); 1870 L_250DB123: 1871 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 1872 PUSH32(esp, eax); /* 0x250DB129: push eax */ 1873 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 1874 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 1875 RECOMP_FLAGS_IN(); 1876 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1877 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1878 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 1879 _flag_k = FK_ADD; 1880 eax = edi; /* 0x250DB135: mov eax, edi */ 1881 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1882 _cf = (eax) != 0; 1883 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 1884 _flag_k = FK_CMP; 1885 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 1886 eax = _sc ? 0xFFFFFFFFu : 0; 1887 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1888 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1889 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1890 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 1891 _cf = 0; 1892 _flag_k = FK_TEST; 1893 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 1894 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 1895 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 1896 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 1897 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 1898 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 1899 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 1900 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 1901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1902 _flag_k = FK_CMP; 1903 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 1904 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 1905 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 1906 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 1907 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 1908 L_250DB16C: 1909 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 1910 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 1911 ecx = esi; /* 0x250DB170: mov ecx, esi */ 1912 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 1913 RECOMP_FLAGS_IN(); 1914 ecx = eax; /* 0x250DB177: mov ecx, eax */ 1915 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 1916 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 1917 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 1918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1920 _flag_k = FK_CMP; 1921 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 1922 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 1923 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1925 _flag_k = FK_NARROW(FK_CMP, 24); 1926 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 1927 L_250DB187: 1928 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 1929 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 1930 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 1931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1932 _flag_k = FK_CMP; 1933 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 1934 L_250DB18F: 1935 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 1936 PUSH32(esp, edx); /* 0x250DB192: push edx */ 1937 ecx = esi; /* 0x250DB193: mov ecx, esi */ 1938 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 1939 RECOMP_FLAGS_IN(); 1940 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 1941 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 1942 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 1943 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 1944 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 1945 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 1946 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 1947 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 1948 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 1949 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 1950 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 1951 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 1952 RECOMP_FLAGS_IN(); 1953 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 1954 L_250DB1BE: 1955 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 1956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 1957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1958 _flag_k = FK_CMP; 1959 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 1960 L_250DB1C3: 1961 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 1962 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 1963 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 1964 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 1965 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 1966 RECOMP_FLAGS_IN(); 1967 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 1968 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 1969 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 1970 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 1971 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 1972 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 1973 RECOMP_FLAGS_IN(); 1974 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 1975 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 1976 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 1977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1978 _flag_k = FK_CMP; 1979 RECOMP_BACKEDGE(); 1980 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 1981 L_250DB1E6: 1982 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 1983 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 1984 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 1985 RECOMP_FLAGS_IN(); 1986 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 1987 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 1988 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 1989 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 1990 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 1991 RECOMP_FLAGS_IN(); 1992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1994 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 1995 _flag_k = FK_ADD; 1996 eax = edi; /* 0x250DB201: mov eax, edi */ 1997 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1998 _cf = (eax) != 0; 1999 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 2000 _flag_k = FK_CMP; 2001 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 2002 eax = _sc ? 0xFFFFFFFFu : 0; 2003 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2004 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2005 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 2006 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 2007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2008 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 2009 _cf = 0; 2010 _flag_k = FK_TEST; 2011 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 2012 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 2013 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 2014 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 2015 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2017 _flag_k = FK_CMP; 2018 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 2019 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 2020 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 2021 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 2022 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 2023 L_250DB22E: 2024 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 2025 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 2026 ecx = esi; /* 0x250DB232: mov ecx, esi */ 2027 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 2028 RECOMP_FLAGS_IN(); 2029 edx = eax; /* 0x250DB239: mov edx, eax */ 2030 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 2031 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 2032 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 2033 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2035 _flag_k = FK_CMP; 2036 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 2037 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 2038 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2040 _flag_k = FK_NARROW(FK_CMP, 24); 2041 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 2042 L_250DB249: 2043 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 2044 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 2045 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 2046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2047 _flag_k = FK_CMP; 2048 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 2049 L_250DB251: 2050 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 2051 PUSH32(esp, eax); /* 0x250DB254: push eax */ 2052 ecx = esi; /* 0x250DB255: mov ecx, esi */ 2053 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 2054 RECOMP_FLAGS_IN(); 2055 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 2056 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 2057 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 2058 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 2059 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 2060 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 2061 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 2062 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 2063 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 2064 PUSH32(esp, eax); /* 0x250DB276: push eax */ 2065 ecx = esi; /* 0x250DB277: mov ecx, esi */ 2066 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 2067 RECOMP_FLAGS_IN(); 2068 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 2069 L_250DB280: 2070 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 2071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 2072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2073 _flag_k = FK_CMP; 2074 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 2075 L_250DB285: 2076 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 2077 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 2078 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 2079 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 2080 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 2081 RECOMP_FLAGS_IN(); 2082 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 2083 PUSH32(esp, edx); /* 0x250DB294: push edx */ 2084 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 2085 PUSH32(esp, eax); /* 0x250DB298: push eax */ 2086 ecx = esi; /* 0x250DB299: mov ecx, esi */ 2087 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 2088 RECOMP_FLAGS_IN(); 2089 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 2090 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 2091 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2093 _flag_k = FK_CMP; 2094 RECOMP_BACKEDGE(); 2095 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 2096 L_250DB2A8: 2097 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 2098 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 2099 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 2100 RECOMP_FLAGS_IN(); 2101 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 2102 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 2103 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 2104 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 2105 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 2106 RECOMP_FLAGS_IN(); 2107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2109 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 2110 _flag_k = FK_ADD; 2111 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 2112 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 2113 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 2114 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 2115 RECOMP_FLAGS_IN(); 2116 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 2117 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 2118 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 2119 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 2120 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 2121 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 2122 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 2123 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 2124 L_2514D1A0: 2125 ecx = MEM32(ebp + (-0x10)); /* 0x2514D1A0: mov ecx, dword ptr [ebp - 0x10] */ 2126 RECOMP_BACKEDGE(); 2127 goto L_250DB0B0; /* 0x2514D1A3: jmp 0x250db0b0 */ 2128 { RECOMP_REGS_OUT(); return; } /* end of function */ 2129 RECOMP_REGS_OUT(); 2130 } 2131 2132 void sub_2514D1A8(void) { 2133 int _fpu_cmp = 0; 2134 uint32_t _cf = 0; 2135 int _df = 1; 2136 uint32_t _flag_k = FK_NONE; 2137 uint32_t _flag_a = 0, _flag_b = 0; 2138 uint32_t _itail_tgt = 0; 2139 RECOMP_REGS_LOCALS 2140 RECOMP_ENTER(0x2514D1A8u); 2141 2142 goto L_2514D1A8; 2143 L_251380C4: 2144 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 2145 L_2514D1A8: 2146 eax = 0x2516E6A0u; /* 0x2514D1A8: mov eax, 0x2516e6a0 */ 2147 L_2514D1AD: 2148 RECOMP_BACKEDGE(); 2149 goto L_251380C4; /* 0x2514D1AD: jmp 0x251380c4 */ 2150 { RECOMP_REGS_OUT(); return; } /* end of function */ 2151 _ljump: 2152 switch (_itail_tgt) { 2153 case 0x251380C4u: goto L_251380C4; 2154 case 0x2514D1A8u: goto L_2514D1A8; 2155 case 0x2514D1ADu: goto L_2514D1AD; 2156 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2157 } 2158 RECOMP_REGS_OUT(); 2159 } 2160 2161 void sub_2514D1C0(void) { 2162 int _fpu_cmp = 0; 2163 uint32_t _cf = 0; 2164 int _df = 1; 2165 uint32_t _flag_k = FK_NONE; 2166 uint32_t _flag_a = 0, _flag_b = 0; 2167 uint32_t _itail_tgt = 0; 2168 RECOMP_REGS_LOCALS 2169 RECOMP_ENTER(0x2514D1C0u); 2170 2171 goto L_2514D1C0; 2172 L_250DB0B0: 2173 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 2174 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 2175 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 2176 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 2177 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 2178 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 2179 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 2180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2182 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 2183 _flag_k = FK_CMP; 2184 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 2185 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 2186 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 2187 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 2188 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 2189 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 2190 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 2191 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 2192 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 2193 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 2194 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 2195 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 2196 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 2197 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 2198 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2199 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 2200 _cf = 0; 2201 _flag_k = FK_TEST; 2202 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 2203 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2205 _flag_k = FK_CMP; 2206 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 2207 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 2208 L_250DB11E: 2209 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 2210 RECOMP_FLAGS_IN(); 2211 L_250DB123: 2212 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 2213 PUSH32(esp, eax); /* 0x250DB129: push eax */ 2214 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 2215 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 2216 RECOMP_FLAGS_IN(); 2217 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2219 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 2220 _flag_k = FK_ADD; 2221 eax = edi; /* 0x250DB135: mov eax, edi */ 2222 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2223 _cf = (eax) != 0; 2224 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 2225 _flag_k = FK_CMP; 2226 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 2227 eax = _sc ? 0xFFFFFFFFu : 0; 2228 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2229 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2231 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 2232 _cf = 0; 2233 _flag_k = FK_TEST; 2234 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 2235 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 2236 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 2237 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 2238 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 2239 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 2240 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 2241 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2243 _flag_k = FK_CMP; 2244 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 2245 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 2246 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 2247 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 2248 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 2249 L_250DB16C: 2250 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 2251 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 2252 ecx = esi; /* 0x250DB170: mov ecx, esi */ 2253 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 2254 RECOMP_FLAGS_IN(); 2255 ecx = eax; /* 0x250DB177: mov ecx, eax */ 2256 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 2257 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 2258 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 2259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2261 _flag_k = FK_CMP; 2262 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 2263 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 2264 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2266 _flag_k = FK_NARROW(FK_CMP, 24); 2267 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 2268 L_250DB187: 2269 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 2270 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 2271 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2273 _flag_k = FK_CMP; 2274 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 2275 L_250DB18F: 2276 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 2277 PUSH32(esp, edx); /* 0x250DB192: push edx */ 2278 ecx = esi; /* 0x250DB193: mov ecx, esi */ 2279 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 2280 RECOMP_FLAGS_IN(); 2281 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 2282 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 2283 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 2284 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 2285 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 2286 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 2287 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 2288 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 2289 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 2290 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 2291 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 2292 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 2293 RECOMP_FLAGS_IN(); 2294 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 2295 L_250DB1BE: 2296 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 2297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2299 _flag_k = FK_CMP; 2300 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 2301 L_250DB1C3: 2302 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 2303 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 2304 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 2305 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 2306 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 2307 RECOMP_FLAGS_IN(); 2308 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 2309 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 2310 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 2311 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 2312 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 2313 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 2314 RECOMP_FLAGS_IN(); 2315 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 2316 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 2317 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 2318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2319 _flag_k = FK_CMP; 2320 RECOMP_BACKEDGE(); 2321 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 2322 L_250DB1E6: 2323 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 2324 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 2325 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 2326 RECOMP_FLAGS_IN(); 2327 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 2328 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 2329 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 2330 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 2331 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 2332 RECOMP_FLAGS_IN(); 2333 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2334 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2335 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 2336 _flag_k = FK_ADD; 2337 eax = edi; /* 0x250DB201: mov eax, edi */ 2338 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2339 _cf = (eax) != 0; 2340 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 2341 _flag_k = FK_CMP; 2342 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 2343 eax = _sc ? 0xFFFFFFFFu : 0; 2344 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2345 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2346 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 2347 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 2348 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2349 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 2350 _cf = 0; 2351 _flag_k = FK_TEST; 2352 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 2353 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 2354 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 2355 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 2356 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2358 _flag_k = FK_CMP; 2359 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 2360 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 2361 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 2362 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 2363 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 2364 L_250DB22E: 2365 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 2366 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 2367 ecx = esi; /* 0x250DB232: mov ecx, esi */ 2368 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 2369 RECOMP_FLAGS_IN(); 2370 edx = eax; /* 0x250DB239: mov edx, eax */ 2371 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 2372 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 2373 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 2374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2376 _flag_k = FK_CMP; 2377 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 2378 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 2379 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2381 _flag_k = FK_NARROW(FK_CMP, 24); 2382 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 2383 L_250DB249: 2384 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 2385 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 2386 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 2387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2388 _flag_k = FK_CMP; 2389 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 2390 L_250DB251: 2391 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 2392 PUSH32(esp, eax); /* 0x250DB254: push eax */ 2393 ecx = esi; /* 0x250DB255: mov ecx, esi */ 2394 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 2395 RECOMP_FLAGS_IN(); 2396 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 2397 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 2398 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 2399 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 2400 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 2401 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 2402 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 2403 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 2404 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 2405 PUSH32(esp, eax); /* 0x250DB276: push eax */ 2406 ecx = esi; /* 0x250DB277: mov ecx, esi */ 2407 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 2408 RECOMP_FLAGS_IN(); 2409 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 2410 L_250DB280: 2411 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 2412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 2413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2414 _flag_k = FK_CMP; 2415 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 2416 L_250DB285: 2417 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 2418 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 2419 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 2420 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 2421 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 2422 RECOMP_FLAGS_IN(); 2423 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 2424 PUSH32(esp, edx); /* 0x250DB294: push edx */ 2425 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 2426 PUSH32(esp, eax); /* 0x250DB298: push eax */ 2427 ecx = esi; /* 0x250DB299: mov ecx, esi */ 2428 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 2429 RECOMP_FLAGS_IN(); 2430 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 2431 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 2432 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2434 _flag_k = FK_CMP; 2435 RECOMP_BACKEDGE(); 2436 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 2437 L_250DB2A8: 2438 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 2439 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 2440 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 2441 RECOMP_FLAGS_IN(); 2442 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 2443 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 2444 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 2445 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 2446 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 2447 RECOMP_FLAGS_IN(); 2448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2450 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 2451 _flag_k = FK_ADD; 2452 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 2453 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 2454 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 2455 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 2456 RECOMP_FLAGS_IN(); 2457 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 2458 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 2459 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 2460 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 2461 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 2462 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 2463 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 2464 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 2465 L_2514D1C0: 2466 ecx = MEM32(ebp + (-0x10)); /* 0x2514D1C0: mov ecx, dword ptr [ebp - 0x10] */ 2467 RECOMP_BACKEDGE(); 2468 goto L_250DB0B0; /* 0x2514D1C3: jmp 0x250db0b0 */ 2469 { RECOMP_REGS_OUT(); return; } /* end of function */ 2470 RECOMP_REGS_OUT(); 2471 } 2472 2473 void sub_2514D1C8(void) { 2474 int _fpu_cmp = 0; 2475 uint32_t _cf = 0; 2476 int _df = 1; 2477 uint32_t _flag_k = FK_NONE; 2478 uint32_t _flag_a = 0, _flag_b = 0; 2479 uint32_t _itail_tgt = 0; 2480 RECOMP_REGS_LOCALS 2481 RECOMP_ENTER(0x2514D1C8u); 2482 2483 L_2514D1C8: 2484 eax = MEM32(ebp + 0x8); /* 0x2514D1C8: mov eax, dword ptr [ebp + 8] */ 2485 PUSH32(esp, eax); /* 0x2514D1CB: push eax */ 2486 RECOMP_ICALL(0x25137EECu); /* 0x2514D1CC: call 0x25137eec */ /* not lifted */ 2487 RECOMP_FLAGS_IN(); 2488 ecx = POP32_VAL(esp); /* 0x2514D1D1: pop ecx */ 2489 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D1D2: ret */ 2490 RECOMP_REGS_OUT(); 2491 } 2492 2493 void sub_2514D1D3(void) { 2494 int _fpu_cmp = 0; 2495 uint32_t _cf = 0; 2496 int _df = 1; 2497 uint32_t _flag_k = FK_NONE; 2498 uint32_t _flag_a = 0, _flag_b = 0; 2499 uint32_t _itail_tgt = 0; 2500 RECOMP_REGS_LOCALS 2501 RECOMP_ENTER(0x2514D1D3u); 2502 2503 goto L_2514D1D3; 2504 L_251380C4: 2505 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 2506 L_2514D1D3: 2507 eax = 0x2516E6C8u; /* 0x2514D1D3: mov eax, 0x2516e6c8 */ 2508 L_2514D1D8: 2509 RECOMP_BACKEDGE(); 2510 goto L_251380C4; /* 0x2514D1D8: jmp 0x251380c4 */ 2511 { RECOMP_REGS_OUT(); return; } /* end of function */ 2512 _ljump: 2513 switch (_itail_tgt) { 2514 case 0x251380C4u: goto L_251380C4; 2515 case 0x2514D1D3u: goto L_2514D1D3; 2516 case 0x2514D1D8u: goto L_2514D1D8; 2517 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2518 } 2519 RECOMP_REGS_OUT(); 2520 } 2521 2522 void sub_2514D1E0(void) { 2523 int _fpu_cmp = 0; 2524 uint32_t _cf = 0; 2525 int _df = 1; 2526 uint32_t _flag_k = FK_NONE; 2527 uint32_t _flag_a = 0, _flag_b = 0; 2528 uint32_t _itail_tgt = 0; 2529 RECOMP_REGS_LOCALS 2530 RECOMP_ENTER(0x2514D1E0u); 2531 2532 L_2514D1E0: 2533 eax = MEM32(ebp + (-0x10)); /* 0x2514D1E0: mov eax, dword ptr [ebp - 0x10] */ 2534 PUSH32(esp, eax); /* 0x2514D1E3: push eax */ 2535 RECOMP_ICALL(0x25137EECu); /* 0x2514D1E4: call 0x25137eec */ /* not lifted */ 2536 RECOMP_FLAGS_IN(); 2537 ecx = POP32_VAL(esp); /* 0x2514D1E9: pop ecx */ 2538 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D1EA: ret */ 2539 RECOMP_REGS_OUT(); 2540 } 2541 2542 void sub_2514D1EB(void) { 2543 int _fpu_cmp = 0; 2544 uint32_t _cf = 0; 2545 int _df = 1; 2546 uint32_t _flag_k = FK_NONE; 2547 uint32_t _flag_a = 0, _flag_b = 0; 2548 uint32_t _itail_tgt = 0; 2549 RECOMP_REGS_LOCALS 2550 RECOMP_ENTER(0x2514D1EBu); 2551 2552 goto L_2514D1EB; 2553 L_251380C4: 2554 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 2555 L_2514D1EB: 2556 eax = 0x2516E6F8u; /* 0x2514D1EB: mov eax, 0x2516e6f8 */ 2557 L_2514D1F0: 2558 RECOMP_BACKEDGE(); 2559 goto L_251380C4; /* 0x2514D1F0: jmp 0x251380c4 */ 2560 { RECOMP_REGS_OUT(); return; } /* end of function */ 2561 _ljump: 2562 switch (_itail_tgt) { 2563 case 0x251380C4u: goto L_251380C4; 2564 case 0x2514D1EBu: goto L_2514D1EB; 2565 case 0x2514D1F0u: goto L_2514D1F0; 2566 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2567 } 2568 RECOMP_REGS_OUT(); 2569 } 2570 2571 void sub_2514D200(void) { 2572 int _fpu_cmp = 0; 2573 uint32_t _cf = 0; 2574 int _df = 1; 2575 uint32_t _flag_k = FK_NONE; 2576 uint32_t _flag_a = 0, _flag_b = 0; 2577 uint32_t _itail_tgt = 0; 2578 RECOMP_REGS_LOCALS 2579 RECOMP_ENTER(0x2514D200u); 2580 2581 goto L_2514D200; 2582 L_250DB0B0: 2583 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 2584 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 2585 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 2586 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 2587 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 2588 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 2589 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 2590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2592 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 2593 _flag_k = FK_CMP; 2594 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 2595 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 2596 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 2597 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 2598 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 2599 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 2600 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 2601 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 2602 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 2603 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 2604 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 2605 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 2606 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 2607 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 2608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2609 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 2610 _cf = 0; 2611 _flag_k = FK_TEST; 2612 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 2613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2615 _flag_k = FK_CMP; 2616 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 2617 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 2618 L_250DB11E: 2619 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 2620 RECOMP_FLAGS_IN(); 2621 L_250DB123: 2622 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 2623 PUSH32(esp, eax); /* 0x250DB129: push eax */ 2624 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 2625 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 2626 RECOMP_FLAGS_IN(); 2627 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2629 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 2630 _flag_k = FK_ADD; 2631 eax = edi; /* 0x250DB135: mov eax, edi */ 2632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2633 _cf = (eax) != 0; 2634 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 2635 _flag_k = FK_CMP; 2636 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 2637 eax = _sc ? 0xFFFFFFFFu : 0; 2638 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2639 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2641 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 2642 _cf = 0; 2643 _flag_k = FK_TEST; 2644 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 2645 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 2646 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 2647 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 2648 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 2649 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 2650 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 2651 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2653 _flag_k = FK_CMP; 2654 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 2655 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 2656 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 2657 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 2658 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 2659 L_250DB16C: 2660 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 2661 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 2662 ecx = esi; /* 0x250DB170: mov ecx, esi */ 2663 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 2664 RECOMP_FLAGS_IN(); 2665 ecx = eax; /* 0x250DB177: mov ecx, eax */ 2666 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 2667 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 2668 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 2669 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2671 _flag_k = FK_CMP; 2672 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 2673 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 2674 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2676 _flag_k = FK_NARROW(FK_CMP, 24); 2677 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 2678 L_250DB187: 2679 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 2680 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 2681 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2683 _flag_k = FK_CMP; 2684 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 2685 L_250DB18F: 2686 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 2687 PUSH32(esp, edx); /* 0x250DB192: push edx */ 2688 ecx = esi; /* 0x250DB193: mov ecx, esi */ 2689 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 2690 RECOMP_FLAGS_IN(); 2691 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 2692 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 2693 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 2694 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 2695 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 2696 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 2697 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 2698 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 2699 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 2700 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 2701 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 2702 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 2703 RECOMP_FLAGS_IN(); 2704 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 2705 L_250DB1BE: 2706 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 2707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2708 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2709 _flag_k = FK_CMP; 2710 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 2711 L_250DB1C3: 2712 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 2713 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 2714 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 2715 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 2716 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 2717 RECOMP_FLAGS_IN(); 2718 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 2719 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 2720 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 2721 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 2722 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 2723 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 2724 RECOMP_FLAGS_IN(); 2725 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 2726 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 2727 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 2728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2729 _flag_k = FK_CMP; 2730 RECOMP_BACKEDGE(); 2731 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 2732 L_250DB1E6: 2733 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 2734 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 2735 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 2736 RECOMP_FLAGS_IN(); 2737 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 2738 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 2739 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 2740 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 2741 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 2742 RECOMP_FLAGS_IN(); 2743 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2745 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 2746 _flag_k = FK_ADD; 2747 eax = edi; /* 0x250DB201: mov eax, edi */ 2748 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2749 _cf = (eax) != 0; 2750 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 2751 _flag_k = FK_CMP; 2752 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 2753 eax = _sc ? 0xFFFFFFFFu : 0; 2754 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2755 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2756 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 2757 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 2758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2759 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 2760 _cf = 0; 2761 _flag_k = FK_TEST; 2762 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 2763 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 2764 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 2765 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 2766 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2768 _flag_k = FK_CMP; 2769 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 2770 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 2771 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 2772 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 2773 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 2774 L_250DB22E: 2775 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 2776 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 2777 ecx = esi; /* 0x250DB232: mov ecx, esi */ 2778 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 2779 RECOMP_FLAGS_IN(); 2780 edx = eax; /* 0x250DB239: mov edx, eax */ 2781 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 2782 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 2783 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 2784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2786 _flag_k = FK_CMP; 2787 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 2788 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 2789 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2791 _flag_k = FK_NARROW(FK_CMP, 24); 2792 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 2793 L_250DB249: 2794 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 2795 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 2796 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 2797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2798 _flag_k = FK_CMP; 2799 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 2800 L_250DB251: 2801 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 2802 PUSH32(esp, eax); /* 0x250DB254: push eax */ 2803 ecx = esi; /* 0x250DB255: mov ecx, esi */ 2804 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 2805 RECOMP_FLAGS_IN(); 2806 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 2807 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 2808 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 2809 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 2810 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 2811 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 2812 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 2813 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 2814 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 2815 PUSH32(esp, eax); /* 0x250DB276: push eax */ 2816 ecx = esi; /* 0x250DB277: mov ecx, esi */ 2817 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 2818 RECOMP_FLAGS_IN(); 2819 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 2820 L_250DB280: 2821 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 2822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 2823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2824 _flag_k = FK_CMP; 2825 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 2826 L_250DB285: 2827 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 2828 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 2829 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 2830 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 2831 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 2832 RECOMP_FLAGS_IN(); 2833 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 2834 PUSH32(esp, edx); /* 0x250DB294: push edx */ 2835 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 2836 PUSH32(esp, eax); /* 0x250DB298: push eax */ 2837 ecx = esi; /* 0x250DB299: mov ecx, esi */ 2838 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 2839 RECOMP_FLAGS_IN(); 2840 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 2841 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 2842 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 2843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2844 _flag_k = FK_CMP; 2845 RECOMP_BACKEDGE(); 2846 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 2847 L_250DB2A8: 2848 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 2849 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 2850 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 2851 RECOMP_FLAGS_IN(); 2852 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 2853 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 2854 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 2855 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 2856 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 2857 RECOMP_FLAGS_IN(); 2858 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2860 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 2861 _flag_k = FK_ADD; 2862 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 2863 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 2864 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 2865 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 2866 RECOMP_FLAGS_IN(); 2867 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 2868 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 2869 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 2870 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 2871 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 2872 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 2873 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 2874 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 2875 L_2514D200: 2876 ecx = MEM32(ebp + (-0x10)); /* 0x2514D200: mov ecx, dword ptr [ebp - 0x10] */ 2877 RECOMP_BACKEDGE(); 2878 goto L_250DB0B0; /* 0x2514D203: jmp 0x250db0b0 */ 2879 { RECOMP_REGS_OUT(); return; } /* end of function */ 2880 RECOMP_REGS_OUT(); 2881 } 2882 2883 void sub_2514D208(void) { 2884 int _fpu_cmp = 0; 2885 uint32_t _cf = 0; 2886 int _df = 1; 2887 uint32_t _flag_k = FK_NONE; 2888 uint32_t _flag_a = 0, _flag_b = 0; 2889 uint32_t _itail_tgt = 0; 2890 RECOMP_REGS_LOCALS 2891 RECOMP_ENTER(0x2514D208u); 2892 2893 goto L_2514D208; 2894 L_251380C4: 2895 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 2896 L_2514D208: 2897 eax = 0x2516E720u; /* 0x2514D208: mov eax, 0x2516e720 */ 2898 L_2514D20D: 2899 RECOMP_BACKEDGE(); 2900 goto L_251380C4; /* 0x2514D20D: jmp 0x251380c4 */ 2901 { RECOMP_REGS_OUT(); return; } /* end of function */ 2902 _ljump: 2903 switch (_itail_tgt) { 2904 case 0x251380C4u: goto L_251380C4; 2905 case 0x2514D208u: goto L_2514D208; 2906 case 0x2514D20Du: goto L_2514D20D; 2907 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2908 } 2909 RECOMP_REGS_OUT(); 2910 } 2911 2912 void sub_2514D220(void) { 2913 int _fpu_cmp = 0; 2914 uint32_t _cf = 0; 2915 int _df = 1; 2916 uint32_t _flag_k = FK_NONE; 2917 uint32_t _flag_a = 0, _flag_b = 0; 2918 uint32_t _itail_tgt = 0; 2919 RECOMP_REGS_LOCALS 2920 RECOMP_ENTER(0x2514D220u); 2921 2922 goto L_2514D220; 2923 L_250DB0B0: 2924 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 2925 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 2926 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 2927 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 2928 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 2929 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 2930 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 2931 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2933 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 2934 _flag_k = FK_CMP; 2935 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 2936 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 2937 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 2938 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 2939 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 2940 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 2941 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 2942 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 2943 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 2944 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 2945 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 2946 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 2947 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 2948 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 2949 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2950 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 2951 _cf = 0; 2952 _flag_k = FK_TEST; 2953 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 2954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2956 _flag_k = FK_CMP; 2957 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 2958 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 2959 L_250DB11E: 2960 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 2961 RECOMP_FLAGS_IN(); 2962 L_250DB123: 2963 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 2964 PUSH32(esp, eax); /* 0x250DB129: push eax */ 2965 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 2966 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 2967 RECOMP_FLAGS_IN(); 2968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2970 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 2971 _flag_k = FK_ADD; 2972 eax = edi; /* 0x250DB135: mov eax, edi */ 2973 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2974 _cf = (eax) != 0; 2975 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 2976 _flag_k = FK_CMP; 2977 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 2978 eax = _sc ? 0xFFFFFFFFu : 0; 2979 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2980 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2982 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 2983 _cf = 0; 2984 _flag_k = FK_TEST; 2985 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 2986 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 2987 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 2988 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 2989 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 2990 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 2991 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 2992 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 2993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2994 _flag_k = FK_CMP; 2995 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 2996 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 2997 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 2998 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 2999 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 3000 L_250DB16C: 3001 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 3002 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 3003 ecx = esi; /* 0x250DB170: mov ecx, esi */ 3004 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 3005 RECOMP_FLAGS_IN(); 3006 ecx = eax; /* 0x250DB177: mov ecx, eax */ 3007 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 3008 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 3009 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 3010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3012 _flag_k = FK_CMP; 3013 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 3014 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 3015 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3017 _flag_k = FK_NARROW(FK_CMP, 24); 3018 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 3019 L_250DB187: 3020 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 3021 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 3022 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3024 _flag_k = FK_CMP; 3025 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 3026 L_250DB18F: 3027 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 3028 PUSH32(esp, edx); /* 0x250DB192: push edx */ 3029 ecx = esi; /* 0x250DB193: mov ecx, esi */ 3030 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 3031 RECOMP_FLAGS_IN(); 3032 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 3033 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 3034 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 3035 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 3036 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 3037 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 3038 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 3039 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 3040 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 3041 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 3042 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 3043 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 3044 RECOMP_FLAGS_IN(); 3045 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 3046 L_250DB1BE: 3047 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 3048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 3049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3050 _flag_k = FK_CMP; 3051 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 3052 L_250DB1C3: 3053 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 3054 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 3055 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 3056 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 3057 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 3058 RECOMP_FLAGS_IN(); 3059 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 3060 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 3061 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 3062 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 3063 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 3064 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 3065 RECOMP_FLAGS_IN(); 3066 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 3067 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 3068 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 3069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3070 _flag_k = FK_CMP; 3071 RECOMP_BACKEDGE(); 3072 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 3073 L_250DB1E6: 3074 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 3075 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 3076 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 3077 RECOMP_FLAGS_IN(); 3078 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 3079 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 3080 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 3081 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 3082 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 3083 RECOMP_FLAGS_IN(); 3084 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3085 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3086 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 3087 _flag_k = FK_ADD; 3088 eax = edi; /* 0x250DB201: mov eax, edi */ 3089 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3090 _cf = (eax) != 0; 3091 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 3092 _flag_k = FK_CMP; 3093 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 3094 eax = _sc ? 0xFFFFFFFFu : 0; 3095 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3096 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3097 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 3098 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 3099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3100 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 3101 _cf = 0; 3102 _flag_k = FK_TEST; 3103 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 3104 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 3105 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 3106 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 3107 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 3108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3109 _flag_k = FK_CMP; 3110 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 3111 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 3112 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 3113 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 3114 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 3115 L_250DB22E: 3116 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 3117 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 3118 ecx = esi; /* 0x250DB232: mov ecx, esi */ 3119 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 3120 RECOMP_FLAGS_IN(); 3121 edx = eax; /* 0x250DB239: mov edx, eax */ 3122 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 3123 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 3124 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 3125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3127 _flag_k = FK_CMP; 3128 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 3129 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 3130 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3132 _flag_k = FK_NARROW(FK_CMP, 24); 3133 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 3134 L_250DB249: 3135 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 3136 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 3137 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 3138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3139 _flag_k = FK_CMP; 3140 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 3141 L_250DB251: 3142 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 3143 PUSH32(esp, eax); /* 0x250DB254: push eax */ 3144 ecx = esi; /* 0x250DB255: mov ecx, esi */ 3145 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 3146 RECOMP_FLAGS_IN(); 3147 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 3148 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 3149 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 3150 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 3151 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 3152 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 3153 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 3154 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 3155 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 3156 PUSH32(esp, eax); /* 0x250DB276: push eax */ 3157 ecx = esi; /* 0x250DB277: mov ecx, esi */ 3158 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 3159 RECOMP_FLAGS_IN(); 3160 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 3161 L_250DB280: 3162 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 3163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 3164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3165 _flag_k = FK_CMP; 3166 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 3167 L_250DB285: 3168 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 3169 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 3170 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 3171 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 3172 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 3173 RECOMP_FLAGS_IN(); 3174 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 3175 PUSH32(esp, edx); /* 0x250DB294: push edx */ 3176 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 3177 PUSH32(esp, eax); /* 0x250DB298: push eax */ 3178 ecx = esi; /* 0x250DB299: mov ecx, esi */ 3179 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 3180 RECOMP_FLAGS_IN(); 3181 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 3182 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 3183 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3185 _flag_k = FK_CMP; 3186 RECOMP_BACKEDGE(); 3187 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 3188 L_250DB2A8: 3189 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 3190 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 3191 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 3192 RECOMP_FLAGS_IN(); 3193 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 3194 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 3195 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 3196 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 3197 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 3198 RECOMP_FLAGS_IN(); 3199 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3200 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3201 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 3202 _flag_k = FK_ADD; 3203 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 3204 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 3205 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 3206 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 3207 RECOMP_FLAGS_IN(); 3208 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 3209 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 3210 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 3211 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 3212 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 3213 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 3214 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 3215 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 3216 L_2514D220: 3217 ecx = MEM32(ebp + (-0x10)); /* 0x2514D220: mov ecx, dword ptr [ebp - 0x10] */ 3218 RECOMP_BACKEDGE(); 3219 goto L_250DB0B0; /* 0x2514D223: jmp 0x250db0b0 */ 3220 { RECOMP_REGS_OUT(); return; } /* end of function */ 3221 RECOMP_REGS_OUT(); 3222 } 3223 3224 void sub_2514D228(void) { 3225 int _fpu_cmp = 0; 3226 uint32_t _cf = 0; 3227 int _df = 1; 3228 uint32_t _flag_k = FK_NONE; 3229 uint32_t _flag_a = 0, _flag_b = 0; 3230 uint32_t _itail_tgt = 0; 3231 RECOMP_REGS_LOCALS 3232 RECOMP_ENTER(0x2514D228u); 3233 3234 goto L_2514D228; 3235 L_251380C4: 3236 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3237 L_2514D228: 3238 eax = 0x2516E748u; /* 0x2514D228: mov eax, 0x2516e748 */ 3239 L_2514D22D: 3240 RECOMP_BACKEDGE(); 3241 goto L_251380C4; /* 0x2514D22D: jmp 0x251380c4 */ 3242 { RECOMP_REGS_OUT(); return; } /* end of function */ 3243 _ljump: 3244 switch (_itail_tgt) { 3245 case 0x251380C4u: goto L_251380C4; 3246 case 0x2514D228u: goto L_2514D228; 3247 case 0x2514D22Du: goto L_2514D22D; 3248 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3249 } 3250 RECOMP_REGS_OUT(); 3251 } 3252 3253 void sub_2514D240(void) { 3254 int _fpu_cmp = 0; 3255 uint32_t _cf = 0; 3256 int _df = 1; 3257 uint32_t _flag_k = FK_NONE; 3258 uint32_t _flag_a = 0, _flag_b = 0; 3259 uint32_t _itail_tgt = 0; 3260 RECOMP_REGS_LOCALS 3261 RECOMP_ENTER(0x2514D240u); 3262 3263 goto L_2514D240; 3264 L_250DB0B0: 3265 PUSH32(esp, ebp); /* 0x250DB0B0: push ebp */ 3266 ebp = esp; /* 0x250DB0B1: mov ebp, esp */ 3267 PUSH32(esp, 0xFFFFFFFFu); /* 0x250DB0B3: push -1 */ 3268 PUSH32(esp, 0x2514AD21u); /* 0x250DB0B5: push 0x2514ad21 */ 3269 eax = MEM32(FS_BASE + (0)); /* 0x250DB0BA: mov eax, dword ptr fs:[0] */ 3270 PUSH32(esp, eax); /* 0x250DB0C0: push eax */ 3271 MEM32(FS_BASE + (0)) = esp; /* 0x250DB0C1: mov dword ptr fs:[0], esp */ 3272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3274 esp = esp - 0x14u; /* 0x250DB0C8: sub esp, 0x14 */ 3275 _flag_k = FK_CMP; 3276 PUSH32(esp, ebx); /* 0x250DB0CB: push ebx */ 3277 PUSH32(esp, esi); /* 0x250DB0CC: push esi */ 3278 PUSH32(esp, edi); /* 0x250DB0CD: push edi */ 3279 edi = ecx; /* 0x250DB0CE: mov edi, ecx */ 3280 esi = edi + 0x150; /* 0x250DB0D0: lea esi, [edi + 0x150] */ 3281 MEM32(ebp + (-0x18)) = edi; /* 0x250DB0D6: mov dword ptr [ebp - 0x18], edi */ 3282 MEM32(edi) = 0x25158310u; /* 0x250DB0D9: mov dword ptr [edi], 0x25158310 */ 3283 MEM32(edi + 0x8) = 0x25158300u; /* 0x250DB0DF: mov dword ptr [edi + 8], 0x25158300 */ 3284 MEM32(edi + 0x20) = 0x251582F0u; /* 0x250DB0E6: mov dword ptr [edi + 0x20], 0x251582f0 */ 3285 MEM32(edi + 0x38) = 0x251582E0u; /* 0x250DB0ED: mov dword ptr [edi + 0x38], 0x251582e0 */ 3286 MEM32(edi + 0x50) = 0x251582D0u; /* 0x250DB0F4: mov dword ptr [edi + 0x50], 0x251582d0 */ 3287 MEM32(edi + 0x138) = 0x251582C0u; /* 0x250DB0FB: mov dword ptr [edi + 0x138], 0x251582c0 */ 3288 MEM32(esi) = 0x251582B0u; /* 0x250DB105: mov dword ptr [esi], 0x251582b0 */ 3289 ecx = MEM32(edi + 0x168); /* 0x250DB10B: mov ecx, dword ptr [edi + 0x168] */ 3290 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3291 ebx = 0; /* 0x250DB111: xor ebx, ebx */ 3292 _cf = 0; 3293 _flag_k = FK_TEST; 3294 /* cmp ecx, ebx */ /* 0x250DB113: cmp ecx, ebx */ 3295 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3297 _flag_k = FK_CMP; 3298 MEM32(ebp + (-0x4)) = 3; /* 0x250DB115: mov dword ptr [ebp - 4], 3 */ 3299 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB123; /* 0x250DB11C: je 0x250db123 */ 3300 L_250DB11E: 3301 RECOMP_ICALL(0x250E6370u); /* 0x250DB11E: call 0x250e6370 */ /* not lifted */ 3302 RECOMP_FLAGS_IN(); 3303 L_250DB123: 3304 eax = MEM32(edi + 0x1BC); /* 0x250DB123: mov eax, dword ptr [edi + 0x1bc] */ 3305 PUSH32(esp, eax); /* 0x250DB129: push eax */ 3306 MEM32(ebp + (-0x14)) = eax; /* 0x250DB12A: mov dword ptr [ebp - 0x14], eax */ 3307 RECOMP_ICALL(0x25137EECu); /* 0x250DB12D: call 0x25137eec */ /* not lifted */ 3308 RECOMP_FLAGS_IN(); 3309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3311 esp = esp + 4; /* 0x250DB132: add esp, 4 */ 3312 _flag_k = FK_ADD; 3313 eax = edi; /* 0x250DB135: mov eax, edi */ 3314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3315 _cf = (eax) != 0; 3316 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB137: neg eax */ 3317 _flag_k = FK_CMP; 3318 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB139: sbb eax, eax */ 3319 eax = _sc ? 0xFFFFFFFFu : 0; 3320 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3321 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3323 eax = eax & esi; /* 0x250DB13B: and eax, esi */ 3324 _cf = 0; 3325 _flag_k = FK_TEST; 3326 MEM32(edi + 0x1BC) = ebx; /* 0x250DB13D: mov dword ptr [edi + 0x1bc], ebx */ 3327 MEM32(edi + 0x1C0) = ebx; /* 0x250DB143: mov dword ptr [edi + 0x1c0], ebx */ 3328 MEM32(edi + 0x1C4) = ebx; /* 0x250DB149: mov dword ptr [edi + 0x1c4], ebx */ 3329 esi = eax + 0x4; /* 0x250DB14F: lea esi, [eax + 4] */ 3330 MEM32(eax) = 0x25158364u; /* 0x250DB152: mov dword ptr [eax], 0x25158364 */ 3331 eax = MEM32(esi + 0x4); /* 0x250DB158: mov eax, dword ptr [esi + 4] */ 3332 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB15B: cmp dword ptr [esi + 0x10], ebx */ 3333 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 3334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3335 _flag_k = FK_CMP; 3336 MEM32(ebp + (-0x10)) = eax; /* 0x250DB15E: mov dword ptr [ebp - 0x10], eax */ 3337 eax = MEM32(eax); /* 0x250DB161: mov eax, dword ptr [eax] */ 3338 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250DB163: mov byte ptr [ebp - 4], 1 */ 3339 MEM32(ebp + (-0x14)) = eax; /* 0x250DB167: mov dword ptr [ebp - 0x14], eax */ 3340 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB16A: je 0x250db1be */ 3341 L_250DB16C: 3342 eax = ebp + (-0x1C); /* 0x250DB16C: lea eax, [ebp - 0x1c] */ 3343 PUSH32(esp, eax); /* 0x250DB16F: push eax */ 3344 ecx = esi; /* 0x250DB170: mov ecx, esi */ 3345 RECOMP_ICALL(0x25085270u); /* 0x250DB172: call 0x25085270 */ /* not lifted */ 3346 RECOMP_FLAGS_IN(); 3347 ecx = eax; /* 0x250DB177: mov ecx, eax */ 3348 edx = MEM32(ecx); /* 0x250DB179: mov edx, dword ptr [ecx] */ 3349 eax = MEM32(ebp + (-0x14)); /* 0x250DB17B: mov eax, dword ptr [ebp - 0x14] */ 3350 /* cmp eax, edx */ /* 0x250DB17E: cmp eax, edx */ 3351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3353 _flag_k = FK_CMP; 3354 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB180: setne cl */ 3355 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB183: cmp cl, bl */ 3356 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3358 _flag_k = FK_NARROW(FK_CMP, 24); 3359 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB185: jne 0x250db1be */ 3360 L_250DB187: 3361 ecx = MEM32(esi + 0x4); /* 0x250DB187: mov ecx, dword ptr [esi + 4] */ 3362 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB18A: cmp dword ptr [ebp - 0x10], ecx */ 3363 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3365 _flag_k = FK_CMP; 3366 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1BE; /* 0x250DB18D: jne 0x250db1be */ 3367 L_250DB18F: 3368 edx = MEM32(ecx + 0x4); /* 0x250DB18F: mov edx, dword ptr [ecx + 4] */ 3369 PUSH32(esp, edx); /* 0x250DB192: push edx */ 3370 ecx = esi; /* 0x250DB193: mov ecx, esi */ 3371 RECOMP_ICALL(0x25006C00u); /* 0x250DB195: call 0x25006c00 */ /* not lifted */ 3372 RECOMP_FLAGS_IN(); 3373 eax = MEM32(esi + 0x4); /* 0x250DB19A: mov eax, dword ptr [esi + 4] */ 3374 ecx = MEM32(esi + 0x8); /* 0x250DB19D: mov ecx, dword ptr [esi + 8] */ 3375 MEM32(eax + 0x4) = ecx; /* 0x250DB1A0: mov dword ptr [eax + 4], ecx */ 3376 eax = MEM32(esi + 0x4); /* 0x250DB1A3: mov eax, dword ptr [esi + 4] */ 3377 MEM32(esi + 0x10) = ebx; /* 0x250DB1A6: mov dword ptr [esi + 0x10], ebx */ 3378 MEM32(eax) = eax; /* 0x250DB1A9: mov dword ptr [eax], eax */ 3379 eax = MEM32(esi + 0x4); /* 0x250DB1AB: mov eax, dword ptr [esi + 4] */ 3380 edx = ebp + (-0x1C); /* 0x250DB1AE: lea edx, [ebp - 0x1c] */ 3381 PUSH32(esp, edx); /* 0x250DB1B1: push edx */ 3382 ecx = esi; /* 0x250DB1B2: mov ecx, esi */ 3383 MEM32(eax + 0x8) = eax; /* 0x250DB1B4: mov dword ptr [eax + 8], eax */ 3384 RECOMP_ICALL(0x25085270u); /* 0x250DB1B7: call 0x25085270 */ /* not lifted */ 3385 RECOMP_FLAGS_IN(); 3386 goto L_250DB1E6; /* 0x250DB1BC: jmp 0x250db1e6 */ 3387 L_250DB1BE: 3388 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x250DB1BE: cmp eax, dword ptr [ebp - 0x10] */ 3389 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 3390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3391 _flag_k = FK_CMP; 3392 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB1E6; /* 0x250DB1C1: je 0x250db1e6 */ 3393 L_250DB1C3: 3394 PUSH32(esp, ebx); /* 0x250DB1C3: push ebx */ 3395 eax = ebp + (-0x1C); /* 0x250DB1C4: lea eax, [ebp - 0x1c] */ 3396 PUSH32(esp, eax); /* 0x250DB1C7: push eax */ 3397 ecx = ebp + (-0x14); /* 0x250DB1C8: lea ecx, [ebp - 0x14] */ 3398 RECOMP_ICALL(0x250076D0u); /* 0x250DB1CB: call 0x250076d0 */ /* not lifted */ 3399 RECOMP_FLAGS_IN(); 3400 ecx = MEM32(eax); /* 0x250DB1D0: mov ecx, dword ptr [eax] */ 3401 PUSH32(esp, ecx); /* 0x250DB1D2: push ecx */ 3402 edx = ebp + (-0x20); /* 0x250DB1D3: lea edx, [ebp - 0x20] */ 3403 PUSH32(esp, edx); /* 0x250DB1D6: push edx */ 3404 ecx = esi; /* 0x250DB1D7: mov ecx, esi */ 3405 RECOMP_ICALL(0x25006380u); /* 0x250DB1D9: call 0x25006380 */ /* not lifted */ 3406 RECOMP_FLAGS_IN(); 3407 eax = MEM32(ebp + (-0x10)); /* 0x250DB1DE: mov eax, dword ptr [ebp - 0x10] */ 3408 /* cmp MEM32(ebp + (-0x14)), eax */ /* 0x250DB1E1: cmp dword ptr [ebp - 0x14], eax */ 3409 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(eax); 3410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3411 _flag_k = FK_CMP; 3412 RECOMP_BACKEDGE(); 3413 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB1C3; /* 0x250DB1E4: jne 0x250db1c3 */ 3414 L_250DB1E6: 3415 eax = MEM32(esi + 0x4); /* 0x250DB1E6: mov eax, dword ptr [esi + 4] */ 3416 PUSH32(esp, eax); /* 0x250DB1E9: push eax */ 3417 RECOMP_ICALL(0x25137EECu); /* 0x250DB1EA: call 0x25137eec */ /* not lifted */ 3418 RECOMP_FLAGS_IN(); 3419 eax = MEM32(esi + 0x8); /* 0x250DB1EF: mov eax, dword ptr [esi + 8] */ 3420 PUSH32(esp, eax); /* 0x250DB1F2: push eax */ 3421 MEM32(esi + 0x4) = ebx; /* 0x250DB1F3: mov dword ptr [esi + 4], ebx */ 3422 MEM32(esi + 0x10) = ebx; /* 0x250DB1F6: mov dword ptr [esi + 0x10], ebx */ 3423 RECOMP_ICALL(0x25137EECu); /* 0x250DB1F9: call 0x25137eec */ /* not lifted */ 3424 RECOMP_FLAGS_IN(); 3425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3427 esp = esp + 8; /* 0x250DB1FE: add esp, 8 */ 3428 _flag_k = FK_ADD; 3429 eax = edi; /* 0x250DB201: mov eax, edi */ 3430 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3431 _cf = (eax) != 0; 3432 eax = (uint32_t)(-(int32_t)eax); /* 0x250DB203: neg eax */ 3433 _flag_k = FK_CMP; 3434 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x250DB205: sbb eax, eax */ 3435 eax = _sc ? 0xFFFFFFFFu : 0; 3436 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3437 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3438 MEM32(esi + 0x8) = ebx; /* 0x250DB207: mov dword ptr [esi + 8], ebx */ 3439 ecx = edi + 0x138; /* 0x250DB20A: lea ecx, [edi + 0x138] */ 3440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3441 eax = eax & ecx; /* 0x250DB210: and eax, ecx */ 3442 _cf = 0; 3443 _flag_k = FK_TEST; 3444 esi = eax + 0x4; /* 0x250DB212: lea esi, [eax + 4] */ 3445 MEM32(eax) = 0x25158374u; /* 0x250DB215: mov dword ptr [eax], 0x25158374 */ 3446 eax = MEM32(esi + 0x4); /* 0x250DB21B: mov eax, dword ptr [esi + 4] */ 3447 /* cmp MEM32(esi + 0x10), ebx */ /* 0x250DB21E: cmp dword ptr [esi + 0x10], ebx */ 3448 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(ebx); 3449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3450 _flag_k = FK_CMP; 3451 MEM32(ebp + (-0x14)) = eax; /* 0x250DB221: mov dword ptr [ebp - 0x14], eax */ 3452 eax = MEM32(eax); /* 0x250DB224: mov eax, dword ptr [eax] */ 3453 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250DB226: mov byte ptr [ebp - 4], bl */ 3454 MEM32(ebp + (-0x10)) = eax; /* 0x250DB229: mov dword ptr [ebp - 0x10], eax */ 3455 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB22C: je 0x250db280 */ 3456 L_250DB22E: 3457 ecx = ebp + (-0x20); /* 0x250DB22E: lea ecx, [ebp - 0x20] */ 3458 PUSH32(esp, ecx); /* 0x250DB231: push ecx */ 3459 ecx = esi; /* 0x250DB232: mov ecx, esi */ 3460 RECOMP_ICALL(0x25085270u); /* 0x250DB234: call 0x25085270 */ /* not lifted */ 3461 RECOMP_FLAGS_IN(); 3462 edx = eax; /* 0x250DB239: mov edx, eax */ 3463 ecx = MEM32(edx); /* 0x250DB23B: mov ecx, dword ptr [edx] */ 3464 eax = MEM32(ebp + (-0x10)); /* 0x250DB23D: mov eax, dword ptr [ebp - 0x10] */ 3465 /* cmp eax, ecx */ /* 0x250DB240: cmp eax, ecx */ 3466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3468 _flag_k = FK_CMP; 3469 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x250DB242: setne cl */ 3470 /* cmp LO8(ecx), LO8(ebx) */ /* 0x250DB245: cmp cl, bl */ 3471 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3473 _flag_k = FK_NARROW(FK_CMP, 24); 3474 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB247: jne 0x250db280 */ 3475 L_250DB249: 3476 ecx = MEM32(esi + 0x4); /* 0x250DB249: mov ecx, dword ptr [esi + 4] */ 3477 /* cmp MEM32(ebp + (-0x14)), ecx */ /* 0x250DB24C: cmp dword ptr [ebp - 0x14], ecx */ 3478 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(ecx); 3479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3480 _flag_k = FK_CMP; 3481 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB280; /* 0x250DB24F: jne 0x250db280 */ 3482 L_250DB251: 3483 eax = MEM32(ecx + 0x4); /* 0x250DB251: mov eax, dword ptr [ecx + 4] */ 3484 PUSH32(esp, eax); /* 0x250DB254: push eax */ 3485 ecx = esi; /* 0x250DB255: mov ecx, esi */ 3486 RECOMP_ICALL(0x250068F0u); /* 0x250DB257: call 0x250068f0 */ /* not lifted */ 3487 RECOMP_FLAGS_IN(); 3488 ecx = MEM32(esi + 0x4); /* 0x250DB25C: mov ecx, dword ptr [esi + 4] */ 3489 edx = MEM32(esi + 0x8); /* 0x250DB25F: mov edx, dword ptr [esi + 8] */ 3490 MEM32(ecx + 0x4) = edx; /* 0x250DB262: mov dword ptr [ecx + 4], edx */ 3491 eax = MEM32(esi + 0x4); /* 0x250DB265: mov eax, dword ptr [esi + 4] */ 3492 MEM32(esi + 0x10) = ebx; /* 0x250DB268: mov dword ptr [esi + 0x10], ebx */ 3493 MEM32(eax) = eax; /* 0x250DB26B: mov dword ptr [eax], eax */ 3494 eax = MEM32(esi + 0x4); /* 0x250DB26D: mov eax, dword ptr [esi + 4] */ 3495 MEM32(eax + 0x8) = eax; /* 0x250DB270: mov dword ptr [eax + 8], eax */ 3496 eax = ebp + (-0x20); /* 0x250DB273: lea eax, [ebp - 0x20] */ 3497 PUSH32(esp, eax); /* 0x250DB276: push eax */ 3498 ecx = esi; /* 0x250DB277: mov ecx, esi */ 3499 RECOMP_ICALL(0x25085270u); /* 0x250DB279: call 0x25085270 */ /* not lifted */ 3500 RECOMP_FLAGS_IN(); 3501 goto L_250DB2A8; /* 0x250DB27E: jmp 0x250db2a8 */ 3502 L_250DB280: 3503 /* cmp eax, MEM32(ebp + (-0x14)) */ /* 0x250DB280: cmp eax, dword ptr [ebp - 0x14] */ 3504 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 3505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3506 _flag_k = FK_CMP; 3507 if (CMP_EQ(_flag_a, _flag_b)) goto L_250DB2A8; /* 0x250DB283: je 0x250db2a8 */ 3508 L_250DB285: 3509 PUSH32(esp, ebx); /* 0x250DB285: push ebx */ 3510 ecx = ebp + (-0x20); /* 0x250DB286: lea ecx, [ebp - 0x20] */ 3511 PUSH32(esp, ecx); /* 0x250DB289: push ecx */ 3512 ecx = ebp + (-0x10); /* 0x250DB28A: lea ecx, [ebp - 0x10] */ 3513 RECOMP_ICALL(0x250076D0u); /* 0x250DB28D: call 0x250076d0 */ /* not lifted */ 3514 RECOMP_FLAGS_IN(); 3515 edx = MEM32(eax); /* 0x250DB292: mov edx, dword ptr [eax] */ 3516 PUSH32(esp, edx); /* 0x250DB294: push edx */ 3517 eax = ebp + (-0x1C); /* 0x250DB295: lea eax, [ebp - 0x1c] */ 3518 PUSH32(esp, eax); /* 0x250DB298: push eax */ 3519 ecx = esi; /* 0x250DB299: mov ecx, esi */ 3520 RECOMP_ICALL(0x25006380u); /* 0x250DB29B: call 0x25006380 */ /* not lifted */ 3521 RECOMP_FLAGS_IN(); 3522 ecx = MEM32(ebp + (-0x14)); /* 0x250DB2A0: mov ecx, dword ptr [ebp - 0x14] */ 3523 /* cmp MEM32(ebp + (-0x10)), ecx */ /* 0x250DB2A3: cmp dword ptr [ebp - 0x10], ecx */ 3524 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ecx); 3525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3526 _flag_k = FK_CMP; 3527 RECOMP_BACKEDGE(); 3528 if (CMP_NE(_flag_a, _flag_b)) goto L_250DB285; /* 0x250DB2A6: jne 0x250db285 */ 3529 L_250DB2A8: 3530 eax = MEM32(esi + 0x4); /* 0x250DB2A8: mov eax, dword ptr [esi + 4] */ 3531 PUSH32(esp, eax); /* 0x250DB2AB: push eax */ 3532 RECOMP_ICALL(0x25137EECu); /* 0x250DB2AC: call 0x25137eec */ /* not lifted */ 3533 RECOMP_FLAGS_IN(); 3534 eax = MEM32(esi + 0x8); /* 0x250DB2B1: mov eax, dword ptr [esi + 8] */ 3535 PUSH32(esp, eax); /* 0x250DB2B4: push eax */ 3536 MEM32(esi + 0x4) = ebx; /* 0x250DB2B5: mov dword ptr [esi + 4], ebx */ 3537 MEM32(esi + 0x10) = ebx; /* 0x250DB2B8: mov dword ptr [esi + 0x10], ebx */ 3538 RECOMP_ICALL(0x25137EECu); /* 0x250DB2BB: call 0x25137eec */ /* not lifted */ 3539 RECOMP_FLAGS_IN(); 3540 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3542 esp = esp + 8; /* 0x250DB2C0: add esp, 8 */ 3543 _flag_k = FK_ADD; 3544 ecx = edi; /* 0x250DB2C3: mov ecx, edi */ 3545 MEM32(esi + 0x8) = ebx; /* 0x250DB2C5: mov dword ptr [esi + 8], ebx */ 3546 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250DB2C8: mov dword ptr [ebp - 4], 0xffffffff */ 3547 RECOMP_ICALL(0x250E19E0u); /* 0x250DB2CF: call 0x250e19e0 */ /* not lifted */ 3548 RECOMP_FLAGS_IN(); 3549 ecx = MEM32(ebp + (-0xC)); /* 0x250DB2D4: mov ecx, dword ptr [ebp - 0xc] */ 3550 edi = POP32_VAL(esp); /* 0x250DB2D7: pop edi */ 3551 esi = POP32_VAL(esp); /* 0x250DB2D8: pop esi */ 3552 ebx = POP32_VAL(esp); /* 0x250DB2D9: pop ebx */ 3553 MEM32(FS_BASE + (0)) = ecx; /* 0x250DB2DA: mov dword ptr fs:[0], ecx */ 3554 esp = ebp; /* 0x250DB2E1: mov esp, ebp */ 3555 ebp = POP32_VAL(esp); /* 0x250DB2E3: pop ebp */ 3556 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250DB2E4: ret */ 3557 L_2514D240: 3558 ecx = MEM32(ebp + (-0x14)); /* 0x2514D240: mov ecx, dword ptr [ebp - 0x14] */ 3559 RECOMP_BACKEDGE(); 3560 goto L_250DB0B0; /* 0x2514D243: jmp 0x250db0b0 */ 3561 { RECOMP_REGS_OUT(); return; } /* end of function */ 3562 RECOMP_REGS_OUT(); 3563 } 3564 3565 void sub_2514D248(void) { 3566 int _fpu_cmp = 0; 3567 uint32_t _cf = 0; 3568 int _df = 1; 3569 uint32_t _flag_k = FK_NONE; 3570 uint32_t _flag_a = 0, _flag_b = 0; 3571 uint32_t _itail_tgt = 0; 3572 RECOMP_REGS_LOCALS 3573 RECOMP_ENTER(0x2514D248u); 3574 3575 goto L_2514D248; 3576 L_251380C4: 3577 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3578 L_2514D248: 3579 eax = 0x2516E770u; /* 0x2514D248: mov eax, 0x2516e770 */ 3580 L_2514D24D: 3581 RECOMP_BACKEDGE(); 3582 goto L_251380C4; /* 0x2514D24D: jmp 0x251380c4 */ 3583 { RECOMP_REGS_OUT(); return; } /* end of function */ 3584 _ljump: 3585 switch (_itail_tgt) { 3586 case 0x251380C4u: goto L_251380C4; 3587 case 0x2514D248u: goto L_2514D248; 3588 case 0x2514D24Du: goto L_2514D24D; 3589 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3590 } 3591 RECOMP_REGS_OUT(); 3592 } 3593 3594 void sub_2514D260(void) { 3595 int _fpu_cmp = 0; 3596 uint32_t _cf = 0; 3597 int _df = 1; 3598 uint32_t _flag_k = FK_NONE; 3599 uint32_t _flag_a = 0, _flag_b = 0; 3600 uint32_t _itail_tgt = 0; 3601 RECOMP_REGS_LOCALS 3602 RECOMP_ENTER(0x2514D260u); 3603 3604 L_2514D260: 3605 eax = MEM32(ebp + 0x8); /* 0x2514D260: mov eax, dword ptr [ebp + 8] */ 3606 PUSH32(esp, eax); /* 0x2514D263: push eax */ 3607 RECOMP_ICALL(0x25137EECu); /* 0x2514D264: call 0x25137eec */ /* not lifted */ 3608 RECOMP_FLAGS_IN(); 3609 ecx = POP32_VAL(esp); /* 0x2514D269: pop ecx */ 3610 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D26A: ret */ 3611 RECOMP_REGS_OUT(); 3612 } 3613 3614 void sub_2514D26B(void) { 3615 int _fpu_cmp = 0; 3616 uint32_t _cf = 0; 3617 int _df = 1; 3618 uint32_t _flag_k = FK_NONE; 3619 uint32_t _flag_a = 0, _flag_b = 0; 3620 uint32_t _itail_tgt = 0; 3621 RECOMP_REGS_LOCALS 3622 RECOMP_ENTER(0x2514D26Bu); 3623 3624 L_2514D26B: 3625 eax = MEM32(ebp + 0x8); /* 0x2514D26B: mov eax, dword ptr [ebp + 8] */ 3626 PUSH32(esp, eax); /* 0x2514D26E: push eax */ 3627 RECOMP_ICALL(0x25137EECu); /* 0x2514D26F: call 0x25137eec */ /* not lifted */ 3628 RECOMP_FLAGS_IN(); 3629 ecx = POP32_VAL(esp); /* 0x2514D274: pop ecx */ 3630 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2514D275: ret */ 3631 RECOMP_REGS_OUT(); 3632 } 3633 3634 void sub_2514D276(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(0x2514D276u); 3643 3644 goto L_2514D276; 3645 L_251380C4: 3646 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3647 L_2514D276: 3648 eax = 0x2516E798u; /* 0x2514D276: mov eax, 0x2516e798 */ 3649 L_2514D27B: 3650 RECOMP_BACKEDGE(); 3651 goto L_251380C4; /* 0x2514D27B: jmp 0x251380c4 */ 3652 { RECOMP_REGS_OUT(); return; } /* end of function */ 3653 _ljump: 3654 switch (_itail_tgt) { 3655 case 0x251380C4u: goto L_251380C4; 3656 case 0x2514D276u: goto L_2514D276; 3657 case 0x2514D27Bu: goto L_2514D27B; 3658 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3659 } 3660 RECOMP_REGS_OUT(); 3661 } 3662 3663 void sub_2514D280(void) { 3664 int _fpu_cmp = 0; 3665 uint32_t _cf = 0; 3666 int _df = 1; 3667 uint32_t _flag_k = FK_NONE; 3668 uint32_t _flag_a = 0, _flag_b = 0; 3669 uint32_t _itail_tgt = 0; 3670 RECOMP_REGS_LOCALS 3671 RECOMP_ENTER(0x2514D280u); 3672 3673 L_2514D280: 3674 ecx = ebp + (-0x9C); /* 0x2514D280: lea ecx, [ebp - 0x9c] */ 3675 L_2514D286: 3676 { _itail_tgt = (uint32_t)(MEM32(0x25151504)); goto _ljump; } 3677 { RECOMP_REGS_OUT(); return; } /* end of function */ 3678 _ljump: 3679 switch (_itail_tgt) { 3680 case 0x2514D280u: goto L_2514D280; 3681 case 0x2514D286u: goto L_2514D286; 3682 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3683 } 3684 RECOMP_REGS_OUT(); 3685 } 3686 3687 void sub_2514D28C(void) { 3688 int _fpu_cmp = 0; 3689 uint32_t _cf = 0; 3690 int _df = 1; 3691 uint32_t _flag_k = FK_NONE; 3692 uint32_t _flag_a = 0, _flag_b = 0; 3693 uint32_t _itail_tgt = 0; 3694 RECOMP_REGS_LOCALS 3695 RECOMP_ENTER(0x2514D28Cu); 3696 3697 L_2514D28C: 3698 ecx = ebp + (-0x34); /* 0x2514D28C: lea ecx, [ebp - 0x34] */ 3699 goto L_25009BC0; /* 0x2514D28F: jmp 0x25009bc0 */ 3700 { RECOMP_REGS_OUT(); return; } /* end of function */ 3701 L_25009BC0: RECOMP_ITAIL(0x25009BC0u); { RECOMP_REGS_OUT(); return; } 3702 RECOMP_REGS_OUT(); 3703 } 3704 3705 void sub_2514D294(void) { 3706 int _fpu_cmp = 0; 3707 uint32_t _cf = 0; 3708 int _df = 1; 3709 uint32_t _flag_k = FK_NONE; 3710 uint32_t _flag_a = 0, _flag_b = 0; 3711 uint32_t _itail_tgt = 0; 3712 RECOMP_REGS_LOCALS 3713 RECOMP_ENTER(0x2514D294u); 3714 3715 L_2514D294: 3716 ecx = ebp + (-0x58); /* 0x2514D294: lea ecx, [ebp - 0x58] */ 3717 goto L_25009BF0; /* 0x2514D297: jmp 0x25009bf0 */ 3718 { RECOMP_REGS_OUT(); return; } /* end of function */ 3719 L_25009BF0: RECOMP_ITAIL(0x25009BF0u); { RECOMP_REGS_OUT(); return; } 3720 RECOMP_REGS_OUT(); 3721 } 3722 3723 void sub_2514D29C(void) { 3724 int _fpu_cmp = 0; 3725 uint32_t _cf = 0; 3726 int _df = 1; 3727 uint32_t _flag_k = FK_NONE; 3728 uint32_t _flag_a = 0, _flag_b = 0; 3729 uint32_t _itail_tgt = 0; 3730 RECOMP_REGS_LOCALS 3731 RECOMP_ENTER(0x2514D29Cu); 3732 3733 L_2514D29C: 3734 ecx = ebp + (-0x24); /* 0x2514D29C: lea ecx, [ebp - 0x24] */ 3735 goto L_25009BF0; /* 0x2514D29F: jmp 0x25009bf0 */ 3736 { RECOMP_REGS_OUT(); return; } /* end of function */ 3737 L_25009BF0: RECOMP_ITAIL(0x25009BF0u); { RECOMP_REGS_OUT(); return; } 3738 RECOMP_REGS_OUT(); 3739 } 3740 3741 void sub_2514D2A4(void) { 3742 int _fpu_cmp = 0; 3743 uint32_t _cf = 0; 3744 int _df = 1; 3745 uint32_t _flag_k = FK_NONE; 3746 uint32_t _flag_a = 0, _flag_b = 0; 3747 uint32_t _itail_tgt = 0; 3748 RECOMP_REGS_LOCALS 3749 RECOMP_ENTER(0x2514D2A4u); 3750 3751 L_2514D2A4: 3752 ecx = ebp + (-0x48); /* 0x2514D2A4: lea ecx, [ebp - 0x48] */ 3753 goto L_25009BF0; /* 0x2514D2A7: jmp 0x25009bf0 */ 3754 { RECOMP_REGS_OUT(); return; } /* end of function */ 3755 L_25009BF0: RECOMP_ITAIL(0x25009BF0u); { RECOMP_REGS_OUT(); return; } 3756 RECOMP_REGS_OUT(); 3757 } 3758 3759 void sub_2514D2AC(void) { 3760 int _fpu_cmp = 0; 3761 uint32_t _cf = 0; 3762 int _df = 1; 3763 uint32_t _flag_k = FK_NONE; 3764 uint32_t _flag_a = 0, _flag_b = 0; 3765 uint32_t _itail_tgt = 0; 3766 RECOMP_REGS_LOCALS 3767 RECOMP_ENTER(0x2514D2ACu); 3768 3769 L_2514D2AC: 3770 ecx = ebp + (-0x34); /* 0x2514D2AC: lea ecx, [ebp - 0x34] */ 3771 goto L_25009BC0; /* 0x2514D2AF: jmp 0x25009bc0 */ 3772 { RECOMP_REGS_OUT(); return; } /* end of function */ 3773 L_25009BC0: RECOMP_ITAIL(0x25009BC0u); { RECOMP_REGS_OUT(); return; } 3774 RECOMP_REGS_OUT(); 3775 } 3776 3777 void sub_2514D2B4(void) { 3778 int _fpu_cmp = 0; 3779 uint32_t _cf = 0; 3780 int _df = 1; 3781 uint32_t _flag_k = FK_NONE; 3782 uint32_t _flag_a = 0, _flag_b = 0; 3783 uint32_t _itail_tgt = 0; 3784 RECOMP_REGS_LOCALS 3785 RECOMP_ENTER(0x2514D2B4u); 3786 3787 L_2514D2B4: 3788 ecx = ebp + (-0x24); /* 0x2514D2B4: lea ecx, [ebp - 0x24] */ 3789 goto L_25009BF0; /* 0x2514D2B7: jmp 0x25009bf0 */ 3790 { RECOMP_REGS_OUT(); return; } /* end of function */ 3791 L_25009BF0: RECOMP_ITAIL(0x25009BF0u); { RECOMP_REGS_OUT(); return; } 3792 RECOMP_REGS_OUT(); 3793 } 3794 3795 void sub_2514D2BC(void) { 3796 int _fpu_cmp = 0; 3797 uint32_t _cf = 0; 3798 int _df = 1; 3799 uint32_t _flag_k = FK_NONE; 3800 uint32_t _flag_a = 0, _flag_b = 0; 3801 uint32_t _itail_tgt = 0; 3802 RECOMP_REGS_LOCALS 3803 RECOMP_ENTER(0x2514D2BCu); 3804 3805 L_2514D2BC: 3806 ecx = ebp + (-0x48); /* 0x2514D2BC: lea ecx, [ebp - 0x48] */ 3807 goto L_25009BF0; /* 0x2514D2BF: jmp 0x25009bf0 */ 3808 { RECOMP_REGS_OUT(); return; } /* end of function */ 3809 L_25009BF0: RECOMP_ITAIL(0x25009BF0u); { RECOMP_REGS_OUT(); return; } 3810 RECOMP_REGS_OUT(); 3811 } 3812 3813 void sub_2514D2C4(void) { 3814 int _fpu_cmp = 0; 3815 uint32_t _cf = 0; 3816 int _df = 1; 3817 uint32_t _flag_k = FK_NONE; 3818 uint32_t _flag_a = 0, _flag_b = 0; 3819 uint32_t _itail_tgt = 0; 3820 RECOMP_REGS_LOCALS 3821 RECOMP_ENTER(0x2514D2C4u); 3822 3823 L_2514D2C4: 3824 ecx = ebp + (-0x58); /* 0x2514D2C4: lea ecx, [ebp - 0x58] */ 3825 goto L_25009BF0; /* 0x2514D2C7: jmp 0x25009bf0 */ 3826 { RECOMP_REGS_OUT(); return; } /* end of function */ 3827 L_25009BF0: RECOMP_ITAIL(0x25009BF0u); { RECOMP_REGS_OUT(); return; } 3828 RECOMP_REGS_OUT(); 3829 } 3830 3831 void sub_2514D2CC(void) { 3832 int _fpu_cmp = 0; 3833 uint32_t _cf = 0; 3834 int _df = 1; 3835 uint32_t _flag_k = FK_NONE; 3836 uint32_t _flag_a = 0, _flag_b = 0; 3837 uint32_t _itail_tgt = 0; 3838 RECOMP_REGS_LOCALS 3839 RECOMP_ENTER(0x2514D2CCu); 3840 3841 goto L_2514D2CC; 3842 L_251380C4: 3843 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3844 L_2514D2CC: 3845 eax = 0x2516E7C8u; /* 0x2514D2CC: mov eax, 0x2516e7c8 */ 3846 L_2514D2D1: 3847 RECOMP_BACKEDGE(); 3848 goto L_251380C4; /* 0x2514D2D1: jmp 0x251380c4 */ 3849 { RECOMP_REGS_OUT(); return; } /* end of function */ 3850 _ljump: 3851 switch (_itail_tgt) { 3852 case 0x251380C4u: goto L_251380C4; 3853 case 0x2514D2CCu: goto L_2514D2CC; 3854 case 0x2514D2D1u: goto L_2514D2D1; 3855 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3856 } 3857 RECOMP_REGS_OUT(); 3858 } 3859 3860 void sub_2514D2E0(void) { 3861 int _fpu_cmp = 0; 3862 uint32_t _cf = 0; 3863 int _df = 1; 3864 uint32_t _flag_k = FK_NONE; 3865 uint32_t _flag_a = 0, _flag_b = 0; 3866 uint32_t _itail_tgt = 0; 3867 RECOMP_REGS_LOCALS 3868 RECOMP_ENTER(0x2514D2E0u); 3869 3870 L_2514D2E0: 3871 ecx = ebp + (-0x1C); /* 0x2514D2E0: lea ecx, [ebp - 0x1c] */ 3872 L_2514D2E3: 3873 { _itail_tgt = (uint32_t)(MEM32(0x251511A0)); goto _ljump; } 3874 { RECOMP_REGS_OUT(); return; } /* end of function */ 3875 _ljump: 3876 switch (_itail_tgt) { 3877 case 0x2514D2E0u: goto L_2514D2E0; 3878 case 0x2514D2E3u: goto L_2514D2E3; 3879 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3880 } 3881 RECOMP_REGS_OUT(); 3882 } 3883 3884 void sub_2514D2E9(void) { 3885 int _fpu_cmp = 0; 3886 uint32_t _cf = 0; 3887 int _df = 1; 3888 uint32_t _flag_k = FK_NONE; 3889 uint32_t _flag_a = 0, _flag_b = 0; 3890 uint32_t _itail_tgt = 0; 3891 RECOMP_REGS_LOCALS 3892 RECOMP_ENTER(0x2514D2E9u); 3893 3894 L_2514D2E9: 3895 ecx = ebp + (-0x38); /* 0x2514D2E9: lea ecx, [ebp - 0x38] */ 3896 L_2514D2EC: 3897 { _itail_tgt = (uint32_t)(MEM32(0x25151310)); goto _ljump; } 3898 { RECOMP_REGS_OUT(); return; } /* end of function */ 3899 _ljump: 3900 switch (_itail_tgt) { 3901 case 0x2514D2E9u: goto L_2514D2E9; 3902 case 0x2514D2ECu: goto L_2514D2EC; 3903 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3904 } 3905 RECOMP_REGS_OUT(); 3906 } 3907 3908 void sub_2514D2F2(void) { 3909 int _fpu_cmp = 0; 3910 uint32_t _cf = 0; 3911 int _df = 1; 3912 uint32_t _flag_k = FK_NONE; 3913 uint32_t _flag_a = 0, _flag_b = 0; 3914 uint32_t _itail_tgt = 0; 3915 RECOMP_REGS_LOCALS 3916 RECOMP_ENTER(0x2514D2F2u); 3917 3918 goto L_2514D2F2; 3919 L_251380C4: 3920 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3921 L_2514D2F2: 3922 eax = 0x2516E8B8u; /* 0x2514D2F2: mov eax, 0x2516e8b8 */ 3923 L_2514D2F7: 3924 RECOMP_BACKEDGE(); 3925 goto L_251380C4; /* 0x2514D2F7: jmp 0x251380c4 */ 3926 { RECOMP_REGS_OUT(); return; } /* end of function */ 3927 _ljump: 3928 switch (_itail_tgt) { 3929 case 0x251380C4u: goto L_251380C4; 3930 case 0x2514D2F2u: goto L_2514D2F2; 3931 case 0x2514D2F7u: goto L_2514D2F7; 3932 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3933 } 3934 RECOMP_REGS_OUT(); 3935 } 3936 3937 void sub_2514D300(void) { 3938 int _fpu_cmp = 0; 3939 uint32_t _cf = 0; 3940 int _df = 1; 3941 uint32_t _flag_k = FK_NONE; 3942 uint32_t _flag_a = 0, _flag_b = 0; 3943 uint32_t _itail_tgt = 0; 3944 RECOMP_REGS_LOCALS 3945 RECOMP_ENTER(0x2514D300u); 3946 3947 L_2514D300: 3948 ecx = ebp + (-0x1C); /* 0x2514D300: lea ecx, [ebp - 0x1c] */ 3949 L_2514D303: 3950 { _itail_tgt = (uint32_t)(MEM32(0x251511A0)); goto _ljump; } 3951 { RECOMP_REGS_OUT(); return; } /* end of function */ 3952 _ljump: 3953 switch (_itail_tgt) { 3954 case 0x2514D300u: goto L_2514D300; 3955 case 0x2514D303u: goto L_2514D303; 3956 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3957 } 3958 RECOMP_REGS_OUT(); 3959 } 3960 3961 void sub_2514D309(void) { 3962 int _fpu_cmp = 0; 3963 uint32_t _cf = 0; 3964 int _df = 1; 3965 uint32_t _flag_k = FK_NONE; 3966 uint32_t _flag_a = 0, _flag_b = 0; 3967 uint32_t _itail_tgt = 0; 3968 RECOMP_REGS_LOCALS 3969 RECOMP_ENTER(0x2514D309u); 3970 3971 L_2514D309: 3972 ecx = ebp + (-0x38); /* 0x2514D309: lea ecx, [ebp - 0x38] */ 3973 L_2514D30C: 3974 { _itail_tgt = (uint32_t)(MEM32(0x25151310)); goto _ljump; } 3975 { RECOMP_REGS_OUT(); return; } /* end of function */ 3976 _ljump: 3977 switch (_itail_tgt) { 3978 case 0x2514D309u: goto L_2514D309; 3979 case 0x2514D30Cu: goto L_2514D30C; 3980 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3981 } 3982 RECOMP_REGS_OUT(); 3983 } 3984 3985 void sub_2514D312(void) { 3986 int _fpu_cmp = 0; 3987 uint32_t _cf = 0; 3988 int _df = 1; 3989 uint32_t _flag_k = FK_NONE; 3990 uint32_t _flag_a = 0, _flag_b = 0; 3991 uint32_t _itail_tgt = 0; 3992 RECOMP_REGS_LOCALS 3993 RECOMP_ENTER(0x2514D312u); 3994 3995 goto L_2514D312; 3996 L_251380C4: 3997 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 3998 L_2514D312: 3999 eax = 0x2516E930u; /* 0x2514D312: mov eax, 0x2516e930 */ 4000 L_2514D317: 4001 RECOMP_BACKEDGE(); 4002 goto L_251380C4; /* 0x2514D317: jmp 0x251380c4 */ 4003 { RECOMP_REGS_OUT(); return; } /* end of function */ 4004 _ljump: 4005 switch (_itail_tgt) { 4006 case 0x251380C4u: goto L_251380C4; 4007 case 0x2514D312u: goto L_2514D312; 4008 case 0x2514D317u: goto L_2514D317; 4009 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4010 } 4011 RECOMP_REGS_OUT(); 4012 } 4013 4014 void sub_2514D320(void) { 4015 int _fpu_cmp = 0; 4016 uint32_t _cf = 0; 4017 int _df = 1; 4018 uint32_t _flag_k = FK_NONE; 4019 uint32_t _flag_a = 0, _flag_b = 0; 4020 uint32_t _itail_tgt = 0; 4021 RECOMP_REGS_LOCALS 4022 RECOMP_ENTER(0x2514D320u); 4023 4024 L_2514D320: 4025 ecx = MEM32(ebp + (-0x10)); /* 0x2514D320: mov ecx, dword ptr [ebp - 0x10] */ 4026 L_2514D323: 4027 { _itail_tgt = (uint32_t)(MEM32(0x25151310)); goto _ljump; } 4028 { RECOMP_REGS_OUT(); return; } /* end of function */ 4029 _ljump: 4030 switch (_itail_tgt) { 4031 case 0x2514D320u: goto L_2514D320; 4032 case 0x2514D323u: goto L_2514D323; 4033 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4034 } 4035 RECOMP_REGS_OUT(); 4036 } 4037 4038 void sub_2514D329(void) { 4039 int _fpu_cmp = 0; 4040 uint32_t _cf = 0; 4041 int _df = 1; 4042 uint32_t _flag_k = FK_NONE; 4043 uint32_t _flag_a = 0, _flag_b = 0; 4044 uint32_t _itail_tgt = 0; 4045 RECOMP_REGS_LOCALS 4046 RECOMP_ENTER(0x2514D329u); 4047 4048 goto L_2514D329; 4049 L_251380C4: 4050 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4051 L_2514D329: 4052 eax = 0x2516E960u; /* 0x2514D329: mov eax, 0x2516e960 */ 4053 L_2514D32E: 4054 RECOMP_BACKEDGE(); 4055 goto L_251380C4; /* 0x2514D32E: jmp 0x251380c4 */ 4056 { RECOMP_REGS_OUT(); return; } /* end of function */ 4057 _ljump: 4058 switch (_itail_tgt) { 4059 case 0x251380C4u: goto L_251380C4; 4060 case 0x2514D329u: goto L_2514D329; 4061 case 0x2514D32Eu: goto L_2514D32E; 4062 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4063 } 4064 RECOMP_REGS_OUT(); 4065 } 4066 4067 void sub_2514D340(void) { 4068 int _fpu_cmp = 0; 4069 uint32_t _cf = 0; 4070 int _df = 1; 4071 uint32_t _flag_k = FK_NONE; 4072 uint32_t _flag_a = 0, _flag_b = 0; 4073 uint32_t _itail_tgt = 0; 4074 RECOMP_REGS_LOCALS 4075 RECOMP_ENTER(0x2514D340u); 4076 4077 L_2514D340: 4078 ecx = MEM32(ebp + (-0x10)); /* 0x2514D340: mov ecx, dword ptr [ebp - 0x10] */ 4079 L_2514D343: 4080 { _itail_tgt = (uint32_t)(MEM32(0x25151310)); goto _ljump; } 4081 { RECOMP_REGS_OUT(); return; } /* end of function */ 4082 _ljump: 4083 switch (_itail_tgt) { 4084 case 0x2514D340u: goto L_2514D340; 4085 case 0x2514D343u: goto L_2514D343; 4086 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4087 } 4088 RECOMP_REGS_OUT(); 4089 } 4090 4091 void sub_2514D349(void) { 4092 int _fpu_cmp = 0; 4093 uint32_t _cf = 0; 4094 int _df = 1; 4095 uint32_t _flag_k = FK_NONE; 4096 uint32_t _flag_a = 0, _flag_b = 0; 4097 uint32_t _itail_tgt = 0; 4098 RECOMP_REGS_LOCALS 4099 RECOMP_ENTER(0x2514D349u); 4100 4101 goto L_2514D349; 4102 L_251380C4: 4103 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4104 L_2514D349: 4105 eax = 0x2516E988u; /* 0x2514D349: mov eax, 0x2516e988 */ 4106 L_2514D34E: 4107 RECOMP_BACKEDGE(); 4108 goto L_251380C4; /* 0x2514D34E: jmp 0x251380c4 */ 4109 { RECOMP_REGS_OUT(); return; } /* end of function */ 4110 _ljump: 4111 switch (_itail_tgt) { 4112 case 0x251380C4u: goto L_251380C4; 4113 case 0x2514D349u: goto L_2514D349; 4114 case 0x2514D34Eu: goto L_2514D34E; 4115 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4116 } 4117 RECOMP_REGS_OUT(); 4118 } 4119 4120 void sub_2514D360(void) { 4121 int _fpu_cmp = 0; 4122 uint32_t _cf = 0; 4123 int _df = 1; 4124 uint32_t _flag_k = FK_NONE; 4125 uint32_t _flag_a = 0, _flag_b = 0; 4126 uint32_t _itail_tgt = 0; 4127 RECOMP_REGS_LOCALS 4128 RECOMP_ENTER(0x2514D360u); 4129 4130 L_2514D360: 4131 ecx = MEM32(ebp + (-0x10)); /* 0x2514D360: mov ecx, dword ptr [ebp - 0x10] */ 4132 L_2514D363: 4133 { _itail_tgt = (uint32_t)(MEM32(0x25151310)); goto _ljump; } 4134 { RECOMP_REGS_OUT(); return; } /* end of function */ 4135 _ljump: 4136 switch (_itail_tgt) { 4137 case 0x2514D360u: goto L_2514D360; 4138 case 0x2514D363u: goto L_2514D363; 4139 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4140 } 4141 RECOMP_REGS_OUT(); 4142 } 4143 4144 void sub_2514D369(void) { 4145 int _fpu_cmp = 0; 4146 uint32_t _cf = 0; 4147 int _df = 1; 4148 uint32_t _flag_k = FK_NONE; 4149 uint32_t _flag_a = 0, _flag_b = 0; 4150 uint32_t _itail_tgt = 0; 4151 RECOMP_REGS_LOCALS 4152 RECOMP_ENTER(0x2514D369u); 4153 4154 goto L_2514D369; 4155 L_251380C4: 4156 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4157 L_2514D369: 4158 eax = 0x2516E9B0u; /* 0x2514D369: mov eax, 0x2516e9b0 */ 4159 L_2514D36E: 4160 RECOMP_BACKEDGE(); 4161 goto L_251380C4; /* 0x2514D36E: jmp 0x251380c4 */ 4162 { RECOMP_REGS_OUT(); return; } /* end of function */ 4163 _ljump: 4164 switch (_itail_tgt) { 4165 case 0x251380C4u: goto L_251380C4; 4166 case 0x2514D369u: goto L_2514D369; 4167 case 0x2514D36Eu: goto L_2514D36E; 4168 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4169 } 4170 RECOMP_REGS_OUT(); 4171 } 4172 4173 void sub_2514D380(void) { 4174 int _fpu_cmp = 0; 4175 uint32_t _cf = 0; 4176 int _df = 1; 4177 uint32_t _flag_k = FK_NONE; 4178 uint32_t _flag_a = 0, _flag_b = 0; 4179 uint32_t _itail_tgt = 0; 4180 RECOMP_REGS_LOCALS 4181 RECOMP_ENTER(0x2514D380u); 4182 4183 goto L_2514D380; 4184 L_2510CE30: 4185 MEM32(ecx) = 0x251590D0u; /* 0x2510CE30: mov dword ptr [ecx], 0x251590d0 */ 4186 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510CE36: ret */ 4187 L_2514D380: 4188 ecx = MEM32(ebp + (-0x10)); /* 0x2514D380: mov ecx, dword ptr [ebp - 0x10] */ 4189 RECOMP_BACKEDGE(); 4190 goto L_2510CE30; /* 0x2514D383: jmp 0x2510ce30 */ 4191 { RECOMP_REGS_OUT(); return; } /* end of function */ 4192 RECOMP_REGS_OUT(); 4193 } 4194 4195 void sub_2514D388(void) { 4196 int _fpu_cmp = 0; 4197 uint32_t _cf = 0; 4198 int _df = 1; 4199 uint32_t _flag_k = FK_NONE; 4200 uint32_t _flag_a = 0, _flag_b = 0; 4201 uint32_t _itail_tgt = 0; 4202 RECOMP_REGS_LOCALS 4203 RECOMP_ENTER(0x2514D388u); 4204 4205 goto L_2514D388; 4206 L_251380C4: 4207 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4208 L_2514D388: 4209 eax = 0x2516E9D8u; /* 0x2514D388: mov eax, 0x2516e9d8 */ 4210 L_2514D38D: 4211 RECOMP_BACKEDGE(); 4212 goto L_251380C4; /* 0x2514D38D: jmp 0x251380c4 */ 4213 { RECOMP_REGS_OUT(); return; } /* end of function */ 4214 _ljump: 4215 switch (_itail_tgt) { 4216 case 0x251380C4u: goto L_251380C4; 4217 case 0x2514D388u: goto L_2514D388; 4218 case 0x2514D38Du: goto L_2514D38D; 4219 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4220 } 4221 RECOMP_REGS_OUT(); 4222 } 4223 4224 void sub_2514D3A0(void) { 4225 int _fpu_cmp = 0; 4226 uint32_t _cf = 0; 4227 int _df = 1; 4228 uint32_t _flag_k = FK_NONE; 4229 uint32_t _flag_a = 0, _flag_b = 0; 4230 uint32_t _itail_tgt = 0; 4231 RECOMP_REGS_LOCALS 4232 RECOMP_ENTER(0x2514D3A0u); 4233 4234 goto L_2514D3A0; 4235 L_2510CE30: 4236 MEM32(ecx) = 0x251590D0u; /* 0x2510CE30: mov dword ptr [ecx], 0x251590d0 */ 4237 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510CE36: ret */ 4238 L_2514D3A0: 4239 ecx = MEM32(ebp + (-0x10)); /* 0x2514D3A0: mov ecx, dword ptr [ebp - 0x10] */ 4240 RECOMP_BACKEDGE(); 4241 goto L_2510CE30; /* 0x2514D3A3: jmp 0x2510ce30 */ 4242 { RECOMP_REGS_OUT(); return; } /* end of function */ 4243 RECOMP_REGS_OUT(); 4244 } 4245 4246 void sub_2514D3A8(void) { 4247 int _fpu_cmp = 0; 4248 uint32_t _cf = 0; 4249 int _df = 1; 4250 uint32_t _flag_k = FK_NONE; 4251 uint32_t _flag_a = 0, _flag_b = 0; 4252 uint32_t _itail_tgt = 0; 4253 RECOMP_REGS_LOCALS 4254 RECOMP_ENTER(0x2514D3A8u); 4255 4256 goto L_2514D3A8; 4257 L_251380C4: 4258 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4259 L_2514D3A8: 4260 eax = 0x2516EA00u; /* 0x2514D3A8: mov eax, 0x2516ea00 */ 4261 L_2514D3AD: 4262 RECOMP_BACKEDGE(); 4263 goto L_251380C4; /* 0x2514D3AD: jmp 0x251380c4 */ 4264 { RECOMP_REGS_OUT(); return; } /* end of function */ 4265 _ljump: 4266 switch (_itail_tgt) { 4267 case 0x251380C4u: goto L_251380C4; 4268 case 0x2514D3A8u: goto L_2514D3A8; 4269 case 0x2514D3ADu: goto L_2514D3AD; 4270 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4271 } 4272 RECOMP_REGS_OUT(); 4273 } 4274 4275 void sub_2514D3C0(void) { 4276 int _fpu_cmp = 0; 4277 uint32_t _cf = 0; 4278 int _df = 1; 4279 uint32_t _flag_k = FK_NONE; 4280 uint32_t _flag_a = 0, _flag_b = 0; 4281 uint32_t _itail_tgt = 0; 4282 RECOMP_REGS_LOCALS 4283 RECOMP_ENTER(0x2514D3C0u); 4284 4285 goto L_2514D3C0; 4286 L_2510EA30: 4287 eax = MEM32(ecx + 0x4); /* 0x2510EA30: mov eax, dword ptr [ecx + 4] */ 4288 PUSH32(esp, eax); /* 0x2510EA33: push eax */ 4289 RECOMP_ICALL(0x25137EECu); /* 0x2510EA34: call 0x25137eec */ /* not lifted */ 4290 RECOMP_FLAGS_IN(); 4291 ecx = POP32_VAL(esp); /* 0x2510EA39: pop ecx */ 4292 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EA3A: ret */ 4293 L_2514D3C0: 4294 ecx = MEM32(ebp + (-0x48)); /* 0x2514D3C0: mov ecx, dword ptr [ebp - 0x48] */ 4295 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4297 ecx = ecx + 8; /* 0x2514D3C3: add ecx, 8 */ 4298 _flag_k = FK_ADD; 4299 RECOMP_BACKEDGE(); 4300 goto L_2510EA30; /* 0x2514D3C6: jmp 0x2510ea30 */ 4301 { RECOMP_REGS_OUT(); return; } /* end of function */ 4302 RECOMP_REGS_OUT(); 4303 } 4304 4305 void sub_2514D3CB(void) { 4306 int _fpu_cmp = 0; 4307 uint32_t _cf = 0; 4308 int _df = 1; 4309 uint32_t _flag_k = FK_NONE; 4310 uint32_t _flag_a = 0, _flag_b = 0; 4311 uint32_t _itail_tgt = 0; 4312 RECOMP_REGS_LOCALS 4313 RECOMP_ENTER(0x2514D3CBu); 4314 4315 goto L_2514D3CB; 4316 L_251380C4: 4317 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4318 L_2514D3CB: 4319 eax = 0x2516EA28u; /* 0x2514D3CB: mov eax, 0x2516ea28 */ 4320 L_2514D3D0: 4321 RECOMP_BACKEDGE(); 4322 goto L_251380C4; /* 0x2514D3D0: jmp 0x251380c4 */ 4323 { RECOMP_REGS_OUT(); return; } /* end of function */ 4324 _ljump: 4325 switch (_itail_tgt) { 4326 case 0x251380C4u: goto L_251380C4; 4327 case 0x2514D3CBu: goto L_2514D3CB; 4328 case 0x2514D3D0u: goto L_2514D3D0; 4329 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4330 } 4331 RECOMP_REGS_OUT(); 4332 } 4333 4334 void sub_2514D3E0(void) { 4335 int _fpu_cmp = 0; 4336 uint32_t _cf = 0; 4337 int _df = 1; 4338 uint32_t _flag_k = FK_NONE; 4339 uint32_t _flag_a = 0, _flag_b = 0; 4340 uint32_t _itail_tgt = 0; 4341 RECOMP_REGS_LOCALS 4342 RECOMP_ENTER(0x2514D3E0u); 4343 4344 goto L_2514D3E0; 4345 L_2510EA30: 4346 eax = MEM32(ecx + 0x4); /* 0x2510EA30: mov eax, dword ptr [ecx + 4] */ 4347 PUSH32(esp, eax); /* 0x2510EA33: push eax */ 4348 RECOMP_ICALL(0x25137EECu); /* 0x2510EA34: call 0x25137eec */ /* not lifted */ 4349 RECOMP_FLAGS_IN(); 4350 ecx = POP32_VAL(esp); /* 0x2510EA39: pop ecx */ 4351 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EA3A: ret */ 4352 L_2514D3E0: 4353 ecx = MEM32(ebp + (-0x10)); /* 0x2514D3E0: mov ecx, dword ptr [ebp - 0x10] */ 4354 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4355 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4356 ecx = ecx + 8; /* 0x2514D3E3: add ecx, 8 */ 4357 _flag_k = FK_ADD; 4358 RECOMP_BACKEDGE(); 4359 goto L_2510EA30; /* 0x2514D3E6: jmp 0x2510ea30 */ 4360 { RECOMP_REGS_OUT(); return; } /* end of function */ 4361 RECOMP_REGS_OUT(); 4362 } 4363 4364 void sub_2514D3EB(void) { 4365 int _fpu_cmp = 0; 4366 uint32_t _cf = 0; 4367 int _df = 1; 4368 uint32_t _flag_k = FK_NONE; 4369 uint32_t _flag_a = 0, _flag_b = 0; 4370 uint32_t _itail_tgt = 0; 4371 RECOMP_REGS_LOCALS 4372 RECOMP_ENTER(0x2514D3EBu); 4373 4374 goto L_2514D3EB; 4375 L_2510EA30: 4376 eax = MEM32(ecx + 0x4); /* 0x2510EA30: mov eax, dword ptr [ecx + 4] */ 4377 PUSH32(esp, eax); /* 0x2510EA33: push eax */ 4378 RECOMP_ICALL(0x25137EECu); /* 0x2510EA34: call 0x25137eec */ /* not lifted */ 4379 RECOMP_FLAGS_IN(); 4380 ecx = POP32_VAL(esp); /* 0x2510EA39: pop ecx */ 4381 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EA3A: ret */ 4382 L_2514D3EB: 4383 ecx = MEM32(ebp + (-0x10)); /* 0x2514D3EB: mov ecx, dword ptr [ebp - 0x10] */ 4384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 4385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4386 ecx = ecx + 0x10u; /* 0x2514D3EE: add ecx, 0x10 */ 4387 _flag_k = FK_ADD; 4388 RECOMP_BACKEDGE(); 4389 goto L_2510EA30; /* 0x2514D3F1: jmp 0x2510ea30 */ 4390 { RECOMP_REGS_OUT(); return; } /* end of function */ 4391 RECOMP_REGS_OUT(); 4392 } 4393 4394 void sub_2514D3F6(void) { 4395 int _fpu_cmp = 0; 4396 uint32_t _cf = 0; 4397 int _df = 1; 4398 uint32_t _flag_k = FK_NONE; 4399 uint32_t _flag_a = 0, _flag_b = 0; 4400 uint32_t _itail_tgt = 0; 4401 RECOMP_REGS_LOCALS 4402 RECOMP_ENTER(0x2514D3F6u); 4403 4404 goto L_2514D3F6; 4405 L_251380C4: 4406 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4407 L_2514D3F6: 4408 eax = 0x2516EA50u; /* 0x2514D3F6: mov eax, 0x2516ea50 */ 4409 L_2514D3FB: 4410 RECOMP_BACKEDGE(); 4411 goto L_251380C4; /* 0x2514D3FB: jmp 0x251380c4 */ 4412 { RECOMP_REGS_OUT(); return; } /* end of function */ 4413 _ljump: 4414 switch (_itail_tgt) { 4415 case 0x251380C4u: goto L_251380C4; 4416 case 0x2514D3F6u: goto L_2514D3F6; 4417 case 0x2514D3FBu: goto L_2514D3FB; 4418 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4419 } 4420 RECOMP_REGS_OUT(); 4421 } 4422 4423 void sub_2514D400(void) { 4424 int _fpu_cmp = 0; 4425 uint32_t _cf = 0; 4426 int _df = 1; 4427 uint32_t _flag_k = FK_NONE; 4428 uint32_t _flag_a = 0, _flag_b = 0; 4429 uint32_t _itail_tgt = 0; 4430 RECOMP_REGS_LOCALS 4431 RECOMP_ENTER(0x2514D400u); 4432 4433 goto L_2514D400; 4434 L_250E62B0: 4435 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 4436 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 4437 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 4438 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 4439 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 4440 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 4441 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 4442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4444 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 4445 _flag_k = FK_CMP; 4446 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 4447 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 4448 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 4449 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 4450 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 4451 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 4452 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 4453 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 4454 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 4455 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 4456 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 4457 RECOMP_FLAGS_IN(); 4458 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 4459 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 4460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4461 _cf = 0; 4462 _flag_k = FK_TEST; 4463 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 4464 L_250E62F7: 4465 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 4466 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 4467 _flag_k = FK_DEC; 4468 L_250E62FD: 4469 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 4470 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 4471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4472 _cf = 0; 4473 _flag_k = FK_TEST; 4474 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 4475 L_250E6304: 4476 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 4477 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 4478 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 4479 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4480 _cf = 0; 4481 _flag_k = FK_NARROW(FK_TEST, 24); 4482 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 4483 L_250E630D: 4484 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 4485 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4487 _flag_k = FK_NARROW(FK_CMP, 24); 4488 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 4489 L_250E6311: 4490 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4491 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 4492 _flag_k = FK_NARROW(FK_DEC, 24); 4493 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 4494 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 4495 L_250E6317: 4496 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 4497 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 4498 RECOMP_FLAGS_IN(); 4499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4501 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 4502 _flag_k = FK_ADD; 4503 L_250E6320: 4504 ecx = esi; /* 0x250E6320: mov ecx, esi */ 4505 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 4506 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 4507 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 4508 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 4509 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 4510 RECOMP_FLAGS_IN(); 4511 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 4512 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 4513 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 4514 esp = ebp; /* 0x250E634F: mov esp, ebp */ 4515 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 4516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 4517 L_2514D400: 4518 ecx = MEM32(ebp + (-0x74)); /* 0x2514D400: mov ecx, dword ptr [ebp - 0x74] */ 4519 RECOMP_BACKEDGE(); 4520 goto L_250E62B0; /* 0x2514D403: jmp 0x250e62b0 */ 4521 { RECOMP_REGS_OUT(); return; } /* end of function */ 4522 RECOMP_REGS_OUT(); 4523 } 4524 4525 void sub_2514D408(void) { 4526 int _fpu_cmp = 0; 4527 uint32_t _cf = 0; 4528 int _df = 1; 4529 uint32_t _flag_k = FK_NONE; 4530 uint32_t _flag_a = 0, _flag_b = 0; 4531 uint32_t _itail_tgt = 0; 4532 RECOMP_REGS_LOCALS 4533 RECOMP_ENTER(0x2514D408u); 4534 4535 goto L_2514D408; 4536 L_2510EA30: 4537 eax = MEM32(ecx + 0x4); /* 0x2510EA30: mov eax, dword ptr [ecx + 4] */ 4538 PUSH32(esp, eax); /* 0x2510EA33: push eax */ 4539 RECOMP_ICALL(0x25137EECu); /* 0x2510EA34: call 0x25137eec */ /* not lifted */ 4540 RECOMP_FLAGS_IN(); 4541 ecx = POP32_VAL(esp); /* 0x2510EA39: pop ecx */ 4542 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EA3A: ret */ 4543 L_2514D408: 4544 ecx = MEM32(ebp + (-0x74)); /* 0x2514D408: mov ecx, dword ptr [ebp - 0x74] */ 4545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u); 4546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4547 ecx = ecx + 0x30u; /* 0x2514D40B: add ecx, 0x30 */ 4548 _flag_k = FK_ADD; 4549 RECOMP_BACKEDGE(); 4550 goto L_2510EA30; /* 0x2514D40E: jmp 0x2510ea30 */ 4551 { RECOMP_REGS_OUT(); return; } /* end of function */ 4552 RECOMP_REGS_OUT(); 4553 } 4554 4555 void sub_2514D413(void) { 4556 int _fpu_cmp = 0; 4557 uint32_t _cf = 0; 4558 int _df = 1; 4559 uint32_t _flag_k = FK_NONE; 4560 uint32_t _flag_a = 0, _flag_b = 0; 4561 uint32_t _itail_tgt = 0; 4562 RECOMP_REGS_LOCALS 4563 RECOMP_ENTER(0x2514D413u); 4564 4565 goto L_2514D413; 4566 L_2510EAE0: 4567 eax = MEM32(ecx + 0x4); /* 0x2510EAE0: mov eax, dword ptr [ecx + 4] */ 4568 /* test eax, eax */ /* 0x2510EAE3: test eax, eax */ 4569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4570 _cf = 0; 4571 _flag_k = FK_TEST; 4572 if (TEST_Z(_flag_a, _flag_b)) goto L_2510EB06; /* 0x2510EAE5: je 0x2510eb06 */ 4573 L_2510EAE7: 4574 ecx = MEM32(eax + (-0x4)); /* 0x2510EAE7: mov ecx, dword ptr [eax - 4] */ 4575 PUSH32(esp, esi); /* 0x2510EAEA: push esi */ 4576 esi = eax + (-0x4); /* 0x2510EAEB: lea esi, [eax - 4] */ 4577 PUSH32(esp, 0x2510ED20u); /* 0x2510EAEE: push 0x2510ed20 */ 4578 PUSH32(esp, ecx); /* 0x2510EAF3: push ecx */ 4579 PUSH32(esp, 0x1Cu); /* 0x2510EAF4: push 0x1c */ 4580 PUSH32(esp, eax); /* 0x2510EAF6: push eax */ 4581 RECOMP_ICALL(0x25137F92u); /* 0x2510EAF7: call 0x25137f92 */ /* not lifted */ 4582 RECOMP_FLAGS_IN(); 4583 PUSH32(esp, esi); /* 0x2510EAFC: push esi */ 4584 RECOMP_ICALL(0x25137EECu); /* 0x2510EAFD: call 0x25137eec */ /* not lifted */ 4585 RECOMP_FLAGS_IN(); 4586 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4588 esp = esp + 4; /* 0x2510EB02: add esp, 4 */ 4589 _flag_k = FK_ADD; 4590 esi = POP32_VAL(esp); /* 0x2510EB05: pop esi */ 4591 L_2510EB06: 4592 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EB06: ret */ 4593 L_2514D413: 4594 ecx = MEM32(ebp + (-0x74)); /* 0x2514D413: mov ecx, dword ptr [ebp - 0x74] */ 4595 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 4596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4597 ecx = ecx + 0x38u; /* 0x2514D416: add ecx, 0x38 */ 4598 _flag_k = FK_ADD; 4599 RECOMP_BACKEDGE(); 4600 goto L_2510EAE0; /* 0x2514D419: jmp 0x2510eae0 */ 4601 { RECOMP_REGS_OUT(); return; } /* end of function */ 4602 RECOMP_REGS_OUT(); 4603 } 4604 4605 void sub_2514D41E(void) { 4606 int _fpu_cmp = 0; 4607 uint32_t _cf = 0; 4608 int _df = 1; 4609 uint32_t _flag_k = FK_NONE; 4610 uint32_t _flag_a = 0, _flag_b = 0; 4611 uint32_t _itail_tgt = 0; 4612 RECOMP_REGS_LOCALS 4613 RECOMP_ENTER(0x2514D41Eu); 4614 4615 goto L_2514D41E; 4616 L_2510EBB0: 4617 eax = MEM32(ecx + 0x4); /* 0x2510EBB0: mov eax, dword ptr [ecx + 4] */ 4618 /* test eax, eax */ /* 0x2510EBB3: test eax, eax */ 4619 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4620 _cf = 0; 4621 _flag_k = FK_TEST; 4622 if (TEST_Z(_flag_a, _flag_b)) goto L_2510EBD6; /* 0x2510EBB5: je 0x2510ebd6 */ 4623 L_2510EBB7: 4624 ecx = MEM32(eax + (-0x4)); /* 0x2510EBB7: mov ecx, dword ptr [eax - 4] */ 4625 PUSH32(esp, esi); /* 0x2510EBBA: push esi */ 4626 esi = eax + (-0x4); /* 0x2510EBBB: lea esi, [eax - 4] */ 4627 PUSH32(esp, 0x250F5440u); /* 0x2510EBBE: push 0x250f5440 */ 4628 PUSH32(esp, ecx); /* 0x2510EBC3: push ecx */ 4629 PUSH32(esp, 0x28u); /* 0x2510EBC4: push 0x28 */ 4630 PUSH32(esp, eax); /* 0x2510EBC6: push eax */ 4631 RECOMP_ICALL(0x25137F92u); /* 0x2510EBC7: call 0x25137f92 */ /* not lifted */ 4632 RECOMP_FLAGS_IN(); 4633 PUSH32(esp, esi); /* 0x2510EBCC: push esi */ 4634 RECOMP_ICALL(0x25137EECu); /* 0x2510EBCD: call 0x25137eec */ /* not lifted */ 4635 RECOMP_FLAGS_IN(); 4636 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4638 esp = esp + 4; /* 0x2510EBD2: add esp, 4 */ 4639 _flag_k = FK_ADD; 4640 esi = POP32_VAL(esp); /* 0x2510EBD5: pop esi */ 4641 L_2510EBD6: 4642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EBD6: ret */ 4643 L_2514D41E: 4644 ecx = MEM32(ebp + (-0x74)); /* 0x2514D41E: mov ecx, dword ptr [ebp - 0x74] */ 4645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 4646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4647 ecx = ecx + 0x40u; /* 0x2514D421: add ecx, 0x40 */ 4648 _flag_k = FK_ADD; 4649 RECOMP_BACKEDGE(); 4650 goto L_2510EBB0; /* 0x2514D424: jmp 0x2510ebb0 */ 4651 { RECOMP_REGS_OUT(); return; } /* end of function */ 4652 RECOMP_REGS_OUT(); 4653 } 4654 4655 void sub_2514D429(void) { 4656 int _fpu_cmp = 0; 4657 uint32_t _cf = 0; 4658 int _df = 1; 4659 uint32_t _flag_k = FK_NONE; 4660 uint32_t _flag_a = 0, _flag_b = 0; 4661 uint32_t _itail_tgt = 0; 4662 RECOMP_REGS_LOCALS 4663 RECOMP_ENTER(0x2514D429u); 4664 4665 goto L_2514D429; 4666 L_251380C4: 4667 { _itail_tgt = (uint32_t)(MEM32(0x25151244)); goto _ljump; } 4668 L_2514D429: 4669 eax = 0x2516EA80u; /* 0x2514D429: mov eax, 0x2516ea80 */ 4670 L_2514D42E: 4671 RECOMP_BACKEDGE(); 4672 goto L_251380C4; /* 0x2514D42E: jmp 0x251380c4 */ 4673 { RECOMP_REGS_OUT(); return; } /* end of function */ 4674 _ljump: 4675 switch (_itail_tgt) { 4676 case 0x251380C4u: goto L_251380C4; 4677 case 0x2514D429u: goto L_2514D429; 4678 case 0x2514D42Eu: goto L_2514D42E; 4679 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4680 } 4681 RECOMP_REGS_OUT(); 4682 } 4683 4684 void sub_2514D440(void) { 4685 int _fpu_cmp = 0; 4686 uint32_t _cf = 0; 4687 int _df = 1; 4688 uint32_t _flag_k = FK_NONE; 4689 uint32_t _flag_a = 0, _flag_b = 0; 4690 uint32_t _itail_tgt = 0; 4691 RECOMP_REGS_LOCALS 4692 RECOMP_ENTER(0x2514D440u); 4693 4694 goto L_2514D440; 4695 L_250E62B0: 4696 PUSH32(esp, ebp); /* 0x250E62B0: push ebp */ 4697 ebp = esp; /* 0x250E62B1: mov ebp, esp */ 4698 PUSH32(esp, 0xFFFFFFFFu); /* 0x250E62B3: push -1 */ 4699 PUSH32(esp, 0x2514B535u); /* 0x250E62B5: push 0x2514b535 */ 4700 eax = MEM32(FS_BASE + (0)); /* 0x250E62BA: mov eax, dword ptr fs:[0] */ 4701 PUSH32(esp, eax); /* 0x250E62C0: push eax */ 4702 MEM32(FS_BASE + (0)) = esp; /* 0x250E62C1: mov dword ptr fs:[0], esp */ 4703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4705 esp = esp - 8; /* 0x250E62C8: sub esp, 8 */ 4706 _flag_k = FK_CMP; 4707 PUSH32(esp, esi); /* 0x250E62CB: push esi */ 4708 esi = ecx; /* 0x250E62CC: mov esi, ecx */ 4709 MEM32(ebp + (-0x10)) = esi; /* 0x250E62CE: mov dword ptr [ebp - 0x10], esi */ 4710 MEM32(esi) = 0x25158544u; /* 0x250E62D1: mov dword ptr [esi], 0x25158544 */ 4711 eax = MEM32(esi + 0x20); /* 0x250E62D7: mov eax, dword ptr [esi + 0x20] */ 4712 PUSH32(esp, eax); /* 0x250E62DA: push eax */ 4713 eax = ebp + (-0x14); /* 0x250E62DB: lea eax, [ebp - 0x14] */ 4714 PUSH32(esp, eax); /* 0x250E62DE: push eax */ 4715 ecx = 0x2524C650u; /* 0x250E62DF: mov ecx, 0x2524c650 */ 4716 MEM32(ebp + (-0x4)) = 1; /* 0x250E62E4: mov dword ptr [ebp - 4], 1 */ 4717 RECOMP_ICALL(0x25114760u); /* 0x250E62EB: call 0x25114760 */ /* not lifted */ 4718 RECOMP_FLAGS_IN(); 4719 eax = MEM32(esi + 0x1C); /* 0x250E62F0: mov eax, dword ptr [esi + 0x1c] */ 4720 /* test eax, eax */ /* 0x250E62F3: test eax, eax */ 4721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4722 _cf = 0; 4723 _flag_k = FK_TEST; 4724 if (TEST_NZ(_flag_a, _flag_b)) goto L_250E62FD; /* 0x250E62F5: jne 0x250e62fd */ 4725 L_250E62F7: 4726 _flag_a = (uint32_t)(MEM32(0x2524C668)); _flag_b = (uint32_t)(1); 4727 MEM32(0x2524C668) = MEM32(0x2524C668) - 1; /* 0x250E62F7: dec dword ptr [0x2524c668] */ 4728 _flag_k = FK_DEC; 4729 L_250E62FD: 4730 eax = MEM32(esi + 0xC); /* 0x250E62FD: mov eax, dword ptr [esi + 0xc] */ 4731 /* test eax, eax */ /* 0x250E6300: test eax, eax */ 4732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4733 _cf = 0; 4734 _flag_k = FK_TEST; 4735 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6320; /* 0x250E6302: je 0x250e6320 */ 4736 L_250E6304: 4737 ecx = eax + (-0x1); /* 0x250E6304: lea ecx, [eax - 1] */ 4738 SET_LO8(eax, MEM8(ecx)); /* 0x250E6307: mov al, byte ptr [ecx] */ 4739 /* test LO8(eax), LO8(eax) */ /* 0x250E6309: test al, al */ 4740 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4741 _cf = 0; 4742 _flag_k = FK_NARROW(FK_TEST, 24); 4743 if (TEST_Z(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630B: je 0x250e6317 */ 4744 L_250E630D: 4745 /* cmp LO8(eax), 0xFFu */ /* 0x250E630D: cmp al, 0xff */ 4746 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4748 _flag_k = FK_NARROW(FK_CMP, 24); 4749 if (CMP_EQ(_flag_a, _flag_b)) goto L_250E6317; /* 0x250E630F: je 0x250e6317 */ 4750 L_250E6311: 4751 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4752 SET_LO8(eax, LO8(eax) - 1); /* 0x250E6311: dec al */ 4753 _flag_k = FK_NARROW(FK_DEC, 24); 4754 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x250E6313: mov byte ptr [ecx], al */ 4755 goto L_250E6320; /* 0x250E6315: jmp 0x250e6320 */ 4756 L_250E6317: 4757 PUSH32(esp, ecx); /* 0x250E6317: push ecx */ 4758 RECOMP_ICALL(0x25137EECu); /* 0x250E6318: call 0x25137eec */ /* not lifted */ 4759 RECOMP_FLAGS_IN(); 4760 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4762 esp = esp + 4; /* 0x250E631D: add esp, 4 */ 4763 _flag_k = FK_ADD; 4764 L_250E6320: 4765 ecx = esi; /* 0x250E6320: mov ecx, esi */ 4766 MEM32(esi + 0xC) = 0; /* 0x250E6322: mov dword ptr [esi + 0xc], 0 */ 4767 MEM32(esi + 0x10) = 0; /* 0x250E6329: mov dword ptr [esi + 0x10], 0 */ 4768 MEM32(esi + 0x14) = 0; /* 0x250E6330: mov dword ptr [esi + 0x14], 0 */ 4769 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250E6337: mov dword ptr [ebp - 4], 0xffffffff */ 4770 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250E633E: call dword ptr [0x251513fc] */ 4771 RECOMP_FLAGS_IN(); 4772 ecx = MEM32(ebp + (-0xC)); /* 0x250E6344: mov ecx, dword ptr [ebp - 0xc] */ 4773 esi = POP32_VAL(esp); /* 0x250E6347: pop esi */ 4774 MEM32(FS_BASE + (0)) = ecx; /* 0x250E6348: mov dword ptr fs:[0], ecx */ 4775 esp = ebp; /* 0x250E634F: mov esp, ebp */ 4776 ebp = POP32_VAL(esp); /* 0x250E6351: pop ebp */ 4777 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250E6352: ret */ 4778 L_2514D440: 4779 ecx = MEM32(ebp + (-0x38)); /* 0x2514D440: mov ecx, dword ptr [ebp - 0x38] */ 4780 RECOMP_BACKEDGE(); 4781 goto L_250E62B0; /* 0x2514D443: jmp 0x250e62b0 */ 4782 { RECOMP_REGS_OUT(); return; } /* end of function */ 4783 RECOMP_REGS_OUT(); 4784 } 4785 4786 void sub_2514D448(void) { 4787 int _fpu_cmp = 0; 4788 uint32_t _cf = 0; 4789 int _df = 1; 4790 uint32_t _flag_k = FK_NONE; 4791 uint32_t _flag_a = 0, _flag_b = 0; 4792 uint32_t _itail_tgt = 0; 4793 RECOMP_REGS_LOCALS 4794 RECOMP_ENTER(0x2514D448u); 4795 4796 goto L_2514D448; 4797 L_2510EA30: 4798 eax = MEM32(ecx + 0x4); /* 0x2510EA30: mov eax, dword ptr [ecx + 4] */ 4799 PUSH32(esp, eax); /* 0x2510EA33: push eax */ 4800 RECOMP_ICALL(0x25137EECu); /* 0x2510EA34: call 0x25137eec */ /* not lifted */ 4801 RECOMP_FLAGS_IN(); 4802 ecx = POP32_VAL(esp); /* 0x2510EA39: pop ecx */ 4803 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EA3A: ret */ 4804 L_2514D448: 4805 ecx = MEM32(ebp + (-0x38)); /* 0x2514D448: mov ecx, dword ptr [ebp - 0x38] */ 4806 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x30u); 4807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4808 ecx = ecx + 0x30u; /* 0x2514D44B: add ecx, 0x30 */ 4809 _flag_k = FK_ADD; 4810 RECOMP_BACKEDGE(); 4811 goto L_2510EA30; /* 0x2514D44E: jmp 0x2510ea30 */ 4812 { RECOMP_REGS_OUT(); return; } /* end of function */ 4813 RECOMP_REGS_OUT(); 4814 } 4815 4816 void sub_2514D453(void) { 4817 int _fpu_cmp = 0; 4818 uint32_t _cf = 0; 4819 int _df = 1; 4820 uint32_t _flag_k = FK_NONE; 4821 uint32_t _flag_a = 0, _flag_b = 0; 4822 uint32_t _itail_tgt = 0; 4823 RECOMP_REGS_LOCALS 4824 RECOMP_ENTER(0x2514D453u); 4825 4826 goto L_2514D453; 4827 L_2510EAE0: 4828 eax = MEM32(ecx + 0x4); /* 0x2510EAE0: mov eax, dword ptr [ecx + 4] */ 4829 /* test eax, eax */ /* 0x2510EAE3: test eax, eax */ 4830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4831 _cf = 0; 4832 _flag_k = FK_TEST; 4833 if (TEST_Z(_flag_a, _flag_b)) goto L_2510EB06; /* 0x2510EAE5: je 0x2510eb06 */ 4834 L_2510EAE7: 4835 ecx = MEM32(eax + (-0x4)); /* 0x2510EAE7: mov ecx, dword ptr [eax - 4] */ 4836 PUSH32(esp, esi); /* 0x2510EAEA: push esi */ 4837 esi = eax + (-0x4); /* 0x2510EAEB: lea esi, [eax - 4] */ 4838 PUSH32(esp, 0x2510ED20u); /* 0x2510EAEE: push 0x2510ed20 */ 4839 PUSH32(esp, ecx); /* 0x2510EAF3: push ecx */ 4840 PUSH32(esp, 0x1Cu); /* 0x2510EAF4: push 0x1c */ 4841 PUSH32(esp, eax); /* 0x2510EAF6: push eax */ 4842 RECOMP_ICALL(0x25137F92u); /* 0x2510EAF7: call 0x25137f92 */ /* not lifted */ 4843 RECOMP_FLAGS_IN(); 4844 PUSH32(esp, esi); /* 0x2510EAFC: push esi */ 4845 RECOMP_ICALL(0x25137EECu); /* 0x2510EAFD: call 0x25137eec */ /* not lifted */ 4846 RECOMP_FLAGS_IN(); 4847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4849 esp = esp + 4; /* 0x2510EB02: add esp, 4 */ 4850 _flag_k = FK_ADD; 4851 esi = POP32_VAL(esp); /* 0x2510EB05: pop esi */ 4852 L_2510EB06: 4853 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EB06: ret */ 4854 L_2514D453: 4855 ecx = MEM32(ebp + (-0x38)); /* 0x2514D453: mov ecx, dword ptr [ebp - 0x38] */ 4856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 4857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4858 ecx = ecx + 0x38u; /* 0x2514D456: add ecx, 0x38 */ 4859 _flag_k = FK_ADD; 4860 RECOMP_BACKEDGE(); 4861 goto L_2510EAE0; /* 0x2514D459: jmp 0x2510eae0 */ 4862 { RECOMP_REGS_OUT(); return; } /* end of function */ 4863 RECOMP_REGS_OUT(); 4864 } 4865 4866 void sub_2514D45E(void) { 4867 int _fpu_cmp = 0; 4868 uint32_t _cf = 0; 4869 int _df = 1; 4870 uint32_t _flag_k = FK_NONE; 4871 uint32_t _flag_a = 0, _flag_b = 0; 4872 uint32_t _itail_tgt = 0; 4873 RECOMP_REGS_LOCALS 4874 RECOMP_ENTER(0x2514D45Eu); 4875 4876 goto L_2514D45E; 4877 L_2510EBB0: 4878 eax = MEM32(ecx + 0x4); /* 0x2510EBB0: mov eax, dword ptr [ecx + 4] */ 4879 /* test eax, eax */ /* 0x2510EBB3: test eax, eax */ 4880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4881 _cf = 0; 4882 _flag_k = FK_TEST; 4883 if (TEST_Z(_flag_a, _flag_b)) goto L_2510EBD6; /* 0x2510EBB5: je 0x2510ebd6 */ 4884 L_2510EBB7: 4885 ecx = MEM32(eax + (-0x4)); /* 0x2510EBB7: mov ecx, dword ptr [eax - 4] */ 4886 PUSH32(esp, esi); /* 0x2510EBBA: push esi */ 4887 esi = eax + (-0x4); /* 0x2510EBBB: lea esi, [eax - 4] */ 4888 PUSH32(esp, 0x250F5440u); /* 0x2510EBBE: push 0x250f5440 */ 4889 PUSH32(esp, ecx); /* 0x2510EBC3: push ecx */ 4890 PUSH32(esp, 0x28u); /* 0x2510EBC4: push 0x28 */ 4891 PUSH32(esp, eax); /* 0x2510EBC6: push eax */ 4892 RECOMP_ICALL(0x25137F92u); /* 0x2510EBC7: call 0x25137f92 */ /* not lifted */ 4893 RECOMP_FLAGS_IN(); 4894 PUSH32(esp, esi); /* 0x2510EBCC: push esi */ 4895 RECOMP_ICALL(0x25137EECu); /* 0x2510EBCD: call 0x25137eec */ /* not lifted */ 4896 RECOMP_FLAGS_IN(); 4897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4899 esp = esp + 4; /* 0x2510EBD2: add esp, 4 */ 4900 _flag_k = FK_ADD; 4901 esi = POP32_VAL(esp); /* 0x2510EBD5: pop esi */ 4902 L_2510EBD6: 4903 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2510EBD6: ret */ 4904 L_2514D45E: 4905 ecx = MEM32(ebp + (-0x38)); /* 0x2514D45E: mov ecx, dword ptr [ebp - 0x38] */ 4906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 4907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4908 ecx = ecx + 0x40u; /* 0x2514D461: add ecx, 0x40 */ 4909 _flag_k = FK_ADD; 4910 RECOMP_BACKEDGE(); 4911 goto L_2510EBB0; /* 0x2514D464: jmp 0x2510ebb0 */ 4912 { RECOMP_REGS_OUT(); return; } /* end of function */ 4913 RECOMP_REGS_OUT(); 4914 }