client/game/bbr.dll/lifted-0033.c (1142032B)
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_25097E70(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(0x25097E70u); 17 18 goto L_25097E70; 19 L_250915C0: 20 eax = ecx + 0x40; /* 0x250915C0: lea eax, [ecx + 0x40] */ 21 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250915C3: ret */ 22 L_25097E70: 23 eax = MEM32(ecx + 0x28); /* 0x25097E70: mov eax, dword ptr [ecx + 0x28] */ 24 /* test eax, eax */ /* 0x25097E73: test eax, eax */ 25 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 26 _cf = 0; 27 _flag_k = FK_TEST; 28 if (TEST_NZ(_flag_a, _flag_b)) goto L_25097EBE; /* 0x25097E75: jne 0x25097ebe */ 29 L_25097E77: 30 SET_LO8(ecx, MEM8(0x2523833C)); /* 0x25097E77: mov cl, byte ptr [0x2523833c] */ 31 SET_LO8(eax, 1); /* 0x25097E7D: mov al, 1 */ 32 /* test LO8(eax), LO8(ecx) */ /* 0x25097E7F: test al, cl */ 33 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 34 _cf = 0; 35 _flag_k = FK_NARROW(FK_TEST, 24); 36 if (TEST_NZ(_flag_a, _flag_b)) goto L_25097EB8; /* 0x25097E81: jne 0x25097eb8 */ 37 L_25097E83: 38 SET_LO8(edx, LO8(ecx)); /* 0x25097E83: mov dl, cl */ 39 _flag_a = (uint32_t)((LO8(edx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(eax))) << 24; 40 SET_LO8(edx, LO8(edx) | LO8(eax)); /* 0x25097E85: or dl, al */ 41 _cf = 0; 42 _flag_k = FK_NARROW(FK_TEST, 24); 43 PUSH32(esp, 0x25097ED0u); /* 0x25097E87: push 0x25097ed0 */ 44 MEM8(0x2523833C) = (uint8_t)(LO8(edx)); /* 0x25097E8C: mov byte ptr [0x2523833c], dl */ 45 MEM32(0x25238330) = 0; /* 0x25097E92: mov dword ptr [0x25238330], 0 */ 46 MEM32(0x25238334) = 0; /* 0x25097E9C: mov dword ptr [0x25238334], 0 */ 47 MEM32(0x25238338) = 0; /* 0x25097EA6: mov dword ptr [0x25238338], 0 */ 48 RECOMP_ICALL(0x251380B2u); /* 0x25097EB0: call 0x251380b2 */ /* not lifted */ 49 RECOMP_FLAGS_IN(); 50 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 51 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 52 esp = esp + 4; /* 0x25097EB5: add esp, 4 */ 53 _flag_k = FK_ADD; 54 L_25097EB8: 55 eax = 0x25238330u; /* 0x25097EB8: mov eax, 0x25238330 */ 56 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25097EBD: ret */ 57 L_25097EBE: 58 ecx = MEM32(ecx + 0x78); /* 0x25097EBE: mov ecx, dword ptr [ecx + 0x78] */ 59 goto L_250A14D0; /* 0x25097EC1: jmp 0x250a14d0 */ 60 L_250A14D0: 61 ecx = MEM32(ecx + 0x28); /* 0x250A14D0: mov ecx, dword ptr [ecx + 0x28] */ 62 RECOMP_BACKEDGE(); 63 goto L_250915C0; /* 0x250A14D3: jmp 0x250915c0 */ 64 { RECOMP_REGS_OUT(); return; } /* end of function */ 65 RECOMP_REGS_OUT(); 66 } 67 68 void sub_25097EE0(void) { 69 int _fpu_cmp = 0; 70 uint32_t _cf = 0; 71 int _df = 1; 72 uint32_t _flag_k = FK_NONE; 73 uint32_t _flag_a = 0, _flag_b = 0; 74 uint32_t _itail_tgt = 0; 75 RECOMP_REGS_LOCALS 76 RECOMP_ENTER(0x25097EE0u); 77 78 goto L_25097EE0; 79 L_250915D0: 80 fp_push(*(float*)&MEM32(ecx + 0x4C)); /* 0x250915D0: fld dword ptr [ecx + 0x4c] */ 81 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250915D3: ret */ 82 L_25097EE0: 83 eax = MEM32(ecx + 0x28); /* 0x25097EE0: mov eax, dword ptr [ecx + 0x28] */ 84 /* test eax, eax */ /* 0x25097EE3: test eax, eax */ 85 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 86 _cf = 0; 87 _flag_k = FK_TEST; 88 if (TEST_NZ(_flag_a, _flag_b)) goto L_25097EEE; /* 0x25097EE5: jne 0x25097eee */ 89 L_25097EE7: 90 fp_push(*(float*)&MEM32(0x251517A4)); /* 0x25097EE7: fld dword ptr [0x251517a4] */ 91 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25097EED: ret */ 92 L_25097EEE: 93 ecx = MEM32(ecx + 0x78); /* 0x25097EEE: mov ecx, dword ptr [ecx + 0x78] */ 94 goto L_250A14E0; /* 0x25097EF1: jmp 0x250a14e0 */ 95 L_250A14E0: 96 ecx = MEM32(ecx + 0x28); /* 0x250A14E0: mov ecx, dword ptr [ecx + 0x28] */ 97 RECOMP_BACKEDGE(); 98 goto L_250915D0; /* 0x250A14E3: jmp 0x250915d0 */ 99 { RECOMP_REGS_OUT(); return; } /* end of function */ 100 RECOMP_REGS_OUT(); 101 } 102 103 void sub_25097F00(void) { 104 int _fpu_cmp = 0; 105 uint32_t _cf = 0; 106 int _df = 1; 107 uint32_t _flag_k = FK_NONE; 108 uint32_t _flag_a = 0, _flag_b = 0; 109 uint32_t _itail_tgt = 0; 110 RECOMP_REGS_LOCALS 111 RECOMP_ENTER(0x25097F00u); 112 113 L_25097F00: 114 PUSH32(esp, ebp); /* 0x25097F00: push ebp */ 115 ebp = esp; /* 0x25097F01: mov ebp, esp */ 116 PUSH32(esp, ebx); /* 0x25097F03: push ebx */ 117 ebx = MEM32(ebp + 0x8); /* 0x25097F04: mov ebx, dword ptr [ebp + 8] */ 118 PUSH32(esp, esi); /* 0x25097F07: push esi */ 119 PUSH32(esp, edi); /* 0x25097F08: push edi */ 120 PUSH32(esp, ebx); /* 0x25097F09: push ebx */ 121 esi = ecx; /* 0x25097F0A: mov esi, ecx */ 122 PUSH32(esp, 0); /* 0x25097F0C: push 0 */ 123 RECOMP_ICALL(0x25097C80u); /* 0x25097F0E: call 0x25097c80 */ /* not lifted */ 124 RECOMP_FLAGS_IN(); 125 edi = eax; /* 0x25097F13: mov edi, eax */ 126 /* test edi, edi */ /* 0x25097F15: test edi, edi */ 127 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 128 _cf = 0; 129 _flag_k = FK_TEST; 130 if (TEST_Z(_flag_a, _flag_b)) goto L_25097F32; /* 0x25097F17: je 0x25097f32 */ 131 L_25097F19: 132 ecx = edi; /* 0x25097F19: mov ecx, edi */ 133 RECOMP_ICALL(0x250995C0u); /* 0x25097F1B: call 0x250995c0 */ /* not lifted */ 134 RECOMP_FLAGS_IN(); 135 _flag_a = (uint32_t)((MEM32(edi + 0x34) | 0xAu)); _flag_b = (uint32_t)((MEM32(edi + 0x34) | 0xAu)); 136 MEM32(edi + 0x34) = MEM32(edi + 0x34) | 0xAu; /* 0x25097F20: or dword ptr [edi + 0x34], 0xa */ 137 _cf = 0; 138 _flag_k = FK_TEST; 139 MEM32(esi + 0x38) = ebx; /* 0x25097F24: mov dword ptr [esi + 0x38], ebx */ 140 MEM32(esi + 0x34) = 0x3F800000u; /* 0x25097F27: mov dword ptr [esi + 0x34], 0x3f800000 */ 141 MEM8(esi + 0x30) = (uint8_t)(1); /* 0x25097F2E: mov byte ptr [esi + 0x30], 1 */ 142 L_25097F32: 143 edi = POP32_VAL(esp); /* 0x25097F32: pop edi */ 144 esi = POP32_VAL(esp); /* 0x25097F33: pop esi */ 145 ebx = POP32_VAL(esp); /* 0x25097F34: pop ebx */ 146 ebp = POP32_VAL(esp); /* 0x25097F35: pop ebp */ 147 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25097F36: ret 4 */ 148 RECOMP_REGS_OUT(); 149 } 150 151 void sub_25097F40(void) { 152 int _fpu_cmp = 0; 153 uint32_t _cf = 0; 154 int _df = 1; 155 uint32_t _flag_k = FK_NONE; 156 uint32_t _flag_a = 0, _flag_b = 0; 157 uint32_t _itail_tgt = 0; 158 RECOMP_REGS_LOCALS 159 RECOMP_ENTER(0x25097F40u); 160 161 L_25097F40: 162 PUSH32(esp, ebp); /* 0x25097F40: push ebp */ 163 ebp = esp; /* 0x25097F41: mov ebp, esp */ 164 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 166 esp = esp - 0x18u; /* 0x25097F43: sub esp, 0x18 */ 167 _flag_k = FK_CMP; 168 eax = MEM32(ecx + 0x7C); /* 0x25097F46: mov eax, dword ptr [ecx + 0x7c] */ 169 PUSH32(esp, esi); /* 0x25097F49: push esi */ 170 PUSH32(esp, eax); /* 0x25097F4A: push eax */ 171 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 172 esi = 0; /* 0x25097F4B: xor esi, esi */ 173 _cf = 0; 174 _flag_k = FK_TEST; 175 PUSH32(esp, esi); /* 0x25097F4D: push esi */ 176 RECOMP_ICALL(0x25097C80u); /* 0x25097F4E: call 0x25097c80 */ /* not lifted */ 177 RECOMP_FLAGS_IN(); 178 eax = MEM32(eax + 0x10); /* 0x25097F53: mov eax, dword ptr [eax + 0x10] */ 179 ecx = ebp + (-0x10); /* 0x25097F56: lea ecx, [ebp - 0x10] */ 180 PUSH32(esp, ecx); /* 0x25097F59: push ecx */ 181 ecx = ebp + (-0x18); /* 0x25097F5A: lea ecx, [ebp - 0x18] */ 182 MEM32(ebp + (-0x10)) = eax; /* 0x25097F5D: mov dword ptr [ebp - 0x10], eax */ 183 MEM32(ebp + (-0xC)) = eax; /* 0x25097F60: mov dword ptr [ebp - 0xc], eax */ 184 RECOMP_ICALL(0x25098250u); /* 0x25097F63: call 0x25098250 */ /* not lifted */ 185 RECOMP_FLAGS_IN(); 186 eax = MEM32(ebp + (-0x18)); /* 0x25097F68: mov eax, dword ptr [ebp - 0x18] */ 187 edx = MEM32(ebp + (-0x14)); /* 0x25097F6B: mov edx, dword ptr [ebp - 0x14] */ 188 PUSH32(esp, esi); /* 0x25097F6E: push esi */ 189 PUSH32(esp, 0x251B2970u); /* 0x25097F6F: push 0x251b2970 */ 190 PUSH32(esp, 0x251B2970u); /* 0x25097F74: push 0x251b2970 */ 191 PUSH32(esp, esi); /* 0x25097F79: push esi */ 192 PUSH32(esp, eax); /* 0x25097F7A: push eax */ 193 MEM32(ebp + (-0x8)) = eax; /* 0x25097F7B: mov dword ptr [ebp - 8], eax */ 194 MEM32(ebp + (-0x4)) = edx; /* 0x25097F7E: mov dword ptr [ebp - 4], edx */ 195 RECOMP_ICALL(0x251381ACu); /* 0x25097F81: call 0x251381ac */ /* not lifted */ 196 RECOMP_FLAGS_IN(); 197 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 199 esp = esp + 0x14u; /* 0x25097F86: add esp, 0x14 */ 200 _flag_k = FK_ADD; 201 /* test eax, eax */ /* 0x25097F89: test eax, eax */ 202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 203 _cf = 0; 204 _flag_k = FK_TEST; 205 if (TEST_NZ(_flag_a, _flag_b)) goto L_25097F95; /* 0x25097F8B: jne 0x25097f95 */ 206 L_25097F8D: 207 ecx = ebp + (-0x8); /* 0x25097F8D: lea ecx, [ebp - 8] */ 208 RECOMP_ICALL(0x250982C0u); /* 0x25097F90: call 0x250982c0 */ /* not lifted */ 209 RECOMP_FLAGS_IN(); 210 L_25097F95: 211 eax = ebp + (-0x18); /* 0x25097F95: lea eax, [ebp - 0x18] */ 212 PUSH32(esp, eax); /* 0x25097F98: push eax */ 213 ecx = ebp + (-0x10); /* 0x25097F99: lea ecx, [ebp - 0x10] */ 214 MEM32(ebp + (-0x18)) = esi; /* 0x25097F9C: mov dword ptr [ebp - 0x18], esi */ 215 MEM32(ebp + (-0x14)) = esi; /* 0x25097F9F: mov dword ptr [ebp - 0x14], esi */ 216 RECOMP_ICALL(0x25098250u); /* 0x25097FA2: call 0x25098250 */ /* not lifted */ 217 RECOMP_FLAGS_IN(); 218 eax = MEM32(ebp + (-0x8)); /* 0x25097FA7: mov eax, dword ptr [ebp - 8] */ 219 /* cmp eax, MEM32(ebp + (-0x10)) */ /* 0x25097FAA: cmp eax, dword ptr [ebp - 0x10] */ 220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 222 _flag_k = FK_CMP; 223 if (CMP_EQ(_flag_a, _flag_b)) goto L_25097FD1; /* 0x25097FAD: je 0x25097fd1 */ 224 L_25097FAF: 225 ecx = MEM32(eax + 0x1F0); /* 0x25097FAF: mov ecx, dword ptr [eax + 0x1f0] */ 226 edx = MEM32(ecx + 0x48); /* 0x25097FB5: mov edx, dword ptr [ecx + 0x48] */ 227 eax = MEM32(edx); /* 0x25097FB8: mov eax, dword ptr [edx] */ 228 ecx = MEM32(eax + 0x160); /* 0x25097FBA: mov ecx, dword ptr [eax + 0x160] */ 229 PUSH32(esp, esi); /* 0x25097FC0: push esi */ 230 RECOMP_ICALL(0x250E5130u); /* 0x25097FC1: call 0x250e5130 */ /* not lifted */ 231 RECOMP_FLAGS_IN(); 232 ecx = MEM32(eax + 0x24); /* 0x25097FC6: mov ecx, dword ptr [eax + 0x24] */ 233 eax = MEM32(ecx + 0x34); /* 0x25097FC9: mov eax, dword ptr [ecx + 0x34] */ 234 esi = POP32_VAL(esp); /* 0x25097FCC: pop esi */ 235 esp = ebp; /* 0x25097FCD: mov esp, ebp */ 236 ebp = POP32_VAL(esp); /* 0x25097FCF: pop ebp */ 237 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25097FD0: ret */ 238 L_25097FD1: 239 edx = MEM32(esi + 0x24); /* 0x25097FD1: mov edx, dword ptr [esi + 0x24] */ 240 eax = MEM32(edx + 0x34); /* 0x25097FD4: mov eax, dword ptr [edx + 0x34] */ 241 esi = POP32_VAL(esp); /* 0x25097FD7: pop esi */ 242 esp = ebp; /* 0x25097FD8: mov esp, ebp */ 243 ebp = POP32_VAL(esp); /* 0x25097FDA: pop ebp */ 244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25097FDB: ret */ 245 RECOMP_REGS_OUT(); 246 } 247 248 void sub_25097FE0(void) { 249 int _fpu_cmp = 0; 250 uint32_t _cf = 0; 251 int _df = 1; 252 uint32_t _flag_k = FK_NONE; 253 uint32_t _flag_a = 0, _flag_b = 0; 254 uint32_t _itail_tgt = 0; 255 RECOMP_REGS_LOCALS 256 RECOMP_ENTER(0x25097FE0u); 257 258 L_25097FE0: 259 PUSH32(esp, ebp); /* 0x25097FE0: push ebp */ 260 ebp = esp; /* 0x25097FE1: mov ebp, esp */ 261 PUSH32(esp, 0xFFFFFFFFu); /* 0x25097FE3: push -1 */ 262 PUSH32(esp, 0x2514981Bu); /* 0x25097FE5: push 0x2514981b */ 263 eax = MEM32(FS_BASE + (0)); /* 0x25097FEA: mov eax, dword ptr fs:[0] */ 264 PUSH32(esp, eax); /* 0x25097FF0: push eax */ 265 MEM32(FS_BASE + (0)) = esp; /* 0x25097FF1: mov dword ptr fs:[0], esp */ 266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 268 esp = esp - 0x2Cu; /* 0x25097FF8: sub esp, 0x2c */ 269 _flag_k = FK_CMP; 270 eax = MEM32(ecx + 0x28); /* 0x25097FFB: mov eax, dword ptr [ecx + 0x28] */ 271 eax = MEM32(eax + 0x4); /* 0x25097FFE: mov eax, dword ptr [eax + 4] */ 272 edx = MEM32(ebp + 0x8); /* 0x25098001: mov edx, dword ptr [ebp + 8] */ 273 PUSH32(esp, ebx); /* 0x25098004: push ebx */ 274 MEM32(ebp + (-0x1C)) = ecx; /* 0x25098005: mov dword ptr [ebp - 0x1c], ecx */ 275 ecx = MEM32(eax + 0x30); /* 0x25098008: mov ecx, dword ptr [eax + 0x30] */ 276 /* cmp edx, ecx */ /* 0x2509800B: cmp edx, ecx */ 277 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 279 _flag_k = FK_CMP; 280 PUSH32(esp, esi); /* 0x2509800D: push esi */ 281 PUSH32(esp, edi); /* 0x2509800E: push edi */ 282 MEM32(ebp + (-0x10)) = eax; /* 0x2509800F: mov dword ptr [ebp - 0x10], eax */ 283 if (CMP_GE(_flag_a, _flag_b)) goto L_25098231; /* 0x25098012: jge 0x25098231 */ 284 L_25098018: 285 ecx = MEM32(eax + 0x34); /* 0x25098018: mov ecx, dword ptr [eax + 0x34] */ 286 eax = MEM32(ecx + edx * 4); /* 0x2509801B: mov eax, dword ptr [ecx + edx*4] */ 287 /* test eax, eax */ /* 0x2509801E: test eax, eax */ 288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 289 _cf = 0; 290 _flag_k = FK_TEST; 291 if (TEST_Z(_flag_a, _flag_b)) goto L_25098231; /* 0x25098020: je 0x25098231 */ 292 L_25098026: 293 edx = MEM32(ebp + 0xC); /* 0x25098026: mov edx, dword ptr [ebp + 0xc] */ 294 esi = MEM32(0x251515D8); /* 0x25098029: mov esi, dword ptr [0x251515d8] */ 295 MEM32(ebp + (-0x24)) = 0x000F6954u; /* 0x2509802F: mov dword ptr [ebp - 0x24], 0xf6954 */ 296 MEM32(ebp + (-0x20)) = edx; /* 0x25098036: mov dword ptr [ebp - 0x20], edx */ 297 RECOMP_ICALL(esi); /* 0x25098039: call esi */ 298 RECOMP_FLAGS_IN(); 299 edx = MEM32(eax); /* 0x2509803B: mov edx, dword ptr [eax] */ 300 PUSH32(esp, 3); /* 0x2509803D: push 3 */ 301 PUSH32(esp, 1); /* 0x2509803F: push 1 */ 302 ecx = ebp + (-0x24); /* 0x25098041: lea ecx, [ebp - 0x24] */ 303 PUSH32(esp, ecx); /* 0x25098044: push ecx */ 304 ecx = eax; /* 0x25098045: mov ecx, eax */ 305 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x25098047: call dword ptr [edx + 0x24] */ 306 RECOMP_FLAGS_IN(); 307 ebx = eax; /* 0x2509804A: mov ebx, eax */ 308 eax = MEM32(ebp + 0x10); /* 0x2509804C: mov eax, dword ptr [ebp + 0x10] */ 309 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 310 edi = 0; /* 0x2509804F: xor edi, edi */ 311 _cf = 0; 312 _flag_k = FK_TEST; 313 /* test eax, eax */ /* 0x25098051: test eax, eax */ 314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 315 _cf = 0; 316 _flag_k = FK_TEST; 317 if (TEST_Z(_flag_a, _flag_b)) goto L_25098072; /* 0x25098053: je 0x25098072 */ 318 L_25098055: 319 MEM32(ebp + (-0x2C)) = 0x000F6954u; /* 0x25098055: mov dword ptr [ebp - 0x2c], 0xf6954 */ 320 MEM32(ebp + (-0x28)) = eax; /* 0x2509805C: mov dword ptr [ebp - 0x28], eax */ 321 RECOMP_ICALL(esi); /* 0x2509805F: call esi */ 322 RECOMP_FLAGS_IN(); 323 edx = MEM32(eax); /* 0x25098061: mov edx, dword ptr [eax] */ 324 PUSH32(esp, 3); /* 0x25098063: push 3 */ 325 PUSH32(esp, 1); /* 0x25098065: push 1 */ 326 ecx = ebp + (-0x2C); /* 0x25098067: lea ecx, [ebp - 0x2c] */ 327 PUSH32(esp, ecx); /* 0x2509806A: push ecx */ 328 ecx = eax; /* 0x2509806B: mov ecx, eax */ 329 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509806D: call dword ptr [edx + 0x24] */ 330 RECOMP_FLAGS_IN(); 331 edi = eax; /* 0x25098070: mov edi, eax */ 332 L_25098072: 333 /* test ebx, ebx */ /* 0x25098072: test ebx, ebx */ 334 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 335 _cf = 0; 336 _flag_k = FK_TEST; 337 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098088; /* 0x25098074: jne 0x25098088 */ 338 L_25098076: 339 /* test edi, edi */ /* 0x25098076: test edi, edi */ 340 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 341 _cf = 0; 342 _flag_k = FK_TEST; 343 if (TEST_Z(_flag_a, _flag_b)) goto L_25098231; /* 0x25098078: je 0x25098231 */ 344 L_2509807E: 345 edx = MEM32(edi); /* 0x2509807E: mov edx, dword ptr [edi] */ 346 PUSH32(esp, ebx); /* 0x25098080: push ebx */ 347 ecx = edi; /* 0x25098081: mov ecx, edi */ 348 goto L_2509822E; /* 0x25098083: jmp 0x2509822e */ 349 L_25098088: 350 eax = MEM32(ebp + (-0x10)); /* 0x25098088: mov eax, dword ptr [ebp - 0x10] */ 351 ecx = MEM32(eax + 0x34); /* 0x2509808B: mov ecx, dword ptr [eax + 0x34] */ 352 edx = MEM32(ebp + 0x8); /* 0x2509808E: mov edx, dword ptr [ebp + 8] */ 353 esi = MEM32(ecx + edx * 4); /* 0x25098091: mov esi, dword ptr [ecx + edx*4] */ 354 ecx = ebx; /* 0x25098094: mov ecx, ebx */ 355 RECOMP_ICALL(0x250A3B60u); /* 0x25098096: call 0x250a3b60 */ /* not lifted */ 356 RECOMP_FLAGS_IN(); 357 MEM32(ebp + 0xC) = eax; /* 0x2509809B: mov dword ptr [ebp + 0xc], eax */ 358 /* cmp MEM32(esi + 0x60), 0x3F800000u */ /* 0x2509809E: cmp dword ptr [esi + 0x60], 0x3f800000 */ 359 _flag_a = (uint32_t)(MEM32(esi + 0x60)); _flag_b = (uint32_t)(0x3F800000u); 360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 361 _flag_k = FK_CMP; 362 if (CMP_NE(_flag_a, _flag_b)) goto L_250980CF; /* 0x250980A5: jne 0x250980cf */ 363 L_250980A7: 364 PUSH32(esp, 0); /* 0x250980A7: push 0 */ 365 ecx = esi; /* 0x250980A9: mov ecx, esi */ 366 RECOMP_ICALL(0x250E5130u); /* 0x250980AB: call 0x250e5130 */ /* not lifted */ 367 RECOMP_FLAGS_IN(); 368 /* test eax, eax */ /* 0x250980B0: test eax, eax */ 369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 370 _cf = 0; 371 _flag_k = FK_TEST; 372 if (TEST_Z(_flag_a, _flag_b)) goto L_250980CF; /* 0x250980B2: je 0x250980cf */ 373 L_250980B4: 374 PUSH32(esp, 0); /* 0x250980B4: push 0 */ 375 ecx = esi; /* 0x250980B6: mov ecx, esi */ 376 RECOMP_ICALL(0x250E5130u); /* 0x250980B8: call 0x250e5130 */ /* not lifted */ 377 RECOMP_FLAGS_IN(); 378 ecx = eax; /* 0x250980BD: mov ecx, eax */ 379 RECOMP_ICALL(0x250EC230u); /* 0x250980BF: call 0x250ec230 */ /* not lifted */ 380 RECOMP_FLAGS_IN(); 381 /* cmp LO8(eax), 1 */ /* 0x250980C4: cmp al, 1 */ 382 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 384 _flag_k = FK_NARROW(FK_CMP, 24); 385 if (CMP_NE(_flag_a, _flag_b)) goto L_250980CF; /* 0x250980C6: jne 0x250980cf */ 386 L_250980C8: 387 ecx = esi; /* 0x250980C8: mov ecx, esi */ 388 RECOMP_ICALL(0x250E50D0u); /* 0x250980CA: call 0x250e50d0 */ /* not lifted */ 389 RECOMP_FLAGS_IN(); 390 L_250980CF: 391 PUSH32(esp, 0xB8u); /* 0x250980CF: push 0xb8 */ 392 RECOMP_ICALL(0x251380D0u); /* 0x250980D4: call 0x251380d0 */ /* not lifted */ 393 RECOMP_FLAGS_IN(); 394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 396 esp = esp + 4; /* 0x250980D9: add esp, 4 */ 397 _flag_k = FK_ADD; 398 MEM32(ebp + (-0x18)) = eax; /* 0x250980DC: mov dword ptr [ebp - 0x18], eax */ 399 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 400 esi = 0; /* 0x250980DF: xor esi, esi */ 401 _cf = 0; 402 _flag_k = FK_TEST; 403 /* cmp eax, esi */ /* 0x250980E1: cmp eax, esi */ 404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 406 _flag_k = FK_CMP; 407 MEM32(ebp + (-0x4)) = esi; /* 0x250980E3: mov dword ptr [ebp - 4], esi */ 408 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098141; /* 0x250980E6: je 0x25098141 */ 409 L_250980E8: 410 eax = MEM32(ebp + (-0x10)); /* 0x250980E8: mov eax, dword ptr [ebp - 0x10] */ 411 ecx = MEM32(eax + 0x34); /* 0x250980EB: mov ecx, dword ptr [eax + 0x34] */ 412 edx = MEM32(ebp + 0x8); /* 0x250980EE: mov edx, dword ptr [ebp + 8] */ 413 esi = MEM32(ecx + edx * 4); /* 0x250980F1: mov esi, dword ptr [ecx + edx*4] */ 414 eax = MEM32(esi + 0x60); /* 0x250980F4: mov eax, dword ptr [esi + 0x60] */ 415 ecx = MEM32(esi + 0x5C); /* 0x250980F7: mov ecx, dword ptr [esi + 0x5c] */ 416 edx = MEM32(esi + 0x58); /* 0x250980FA: mov edx, dword ptr [esi + 0x58] */ 417 MEM32(ebp + 0x10) = eax; /* 0x250980FD: mov dword ptr [ebp + 0x10], eax */ 418 eax = MEM32(ebp + 0x14); /* 0x25098100: mov eax, dword ptr [ebp + 0x14] */ 419 MEM32(ebp + (-0x10)) = ecx; /* 0x25098103: mov dword ptr [ebp - 0x10], ecx */ 420 PUSH32(esp, eax); /* 0x25098106: push eax */ 421 ecx = esi; /* 0x25098107: mov ecx, esi */ 422 MEM32(ebp + (-0x14)) = edx; /* 0x25098109: mov dword ptr [ebp - 0x14], edx */ 423 RECOMP_ICALL(0x250E5170u); /* 0x2509810C: call 0x250e5170 */ /* not lifted */ 424 RECOMP_FLAGS_IN(); 425 ecx = MEM32(ebp + 0x10); /* 0x25098111: mov ecx, dword ptr [ebp + 0x10] */ 426 edx = MEM32(ebp + (-0x10)); /* 0x25098114: mov edx, dword ptr [ebp - 0x10] */ 427 PUSH32(esp, eax); /* 0x25098117: push eax */ 428 eax = MEM32(ebp + (-0x14)); /* 0x25098118: mov eax, dword ptr [ebp - 0x14] */ 429 PUSH32(esp, ecx); /* 0x2509811B: push ecx */ 430 PUSH32(esp, edx); /* 0x2509811C: push edx */ 431 PUSH32(esp, eax); /* 0x2509811D: push eax */ 432 ecx = esi + 0x48; /* 0x2509811E: lea ecx, [esi + 0x48] */ 433 PUSH32(esp, ecx); /* 0x25098121: push ecx */ 434 ecx = MEM32(ebp + 0xC); /* 0x25098122: mov ecx, dword ptr [ebp + 0xc] */ 435 edx = esi + 0x3C; /* 0x25098125: lea edx, [esi + 0x3c] */ 436 PUSH32(esp, edx); /* 0x25098128: push edx */ 437 eax = esi + 0x30; /* 0x25098129: lea eax, [esi + 0x30] */ 438 PUSH32(esp, eax); /* 0x2509812C: push eax */ 439 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 440 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 441 esi = esi + 0x24u; /* 0x2509812D: add esi, 0x24 */ 442 _flag_k = FK_ADD; 443 PUSH32(esp, esi); /* 0x25098130: push esi */ 444 PUSH32(esp, ecx); /* 0x25098131: push ecx */ 445 ecx = MEM32(ebp + (-0x18)); /* 0x25098132: mov ecx, dword ptr [ebp - 0x18] */ 446 PUSH32(esp, 0x251B49A4u); /* 0x25098135: push 0x251b49a4 */ 447 RECOMP_ICALL(0x250E48F0u); /* 0x2509813A: call 0x250e48f0 */ /* not lifted */ 448 RECOMP_FLAGS_IN(); 449 esi = eax; /* 0x2509813F: mov esi, eax */ 450 L_25098141: 451 fp_push(*(float*)&MEM32(0x251B42EC)); /* 0x25098141: fld dword ptr [0x251b42ec] */ 452 edx = esi + 0x3C; /* 0x25098147: lea edx, [esi + 0x3c] */ 453 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x2509814A: fstp dword ptr [ebp - 0x38] */ 454 fp_push(*(float*)&MEM32(0x251B42F0)); /* 0x2509814D: fld dword ptr [0x251b42f0] */ 455 eax = MEM32(ebp + (-0x38)); /* 0x25098153: mov eax, dword ptr [ebp - 0x38] */ 456 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x25098156: fstp dword ptr [ebp - 0x34] */ 457 fp_push(*(float*)&MEM32(0x251B42F4)); /* 0x25098159: fld dword ptr [0x251b42f4] */ 458 ecx = MEM32(ebp + (-0x34)); /* 0x2509815F: mov ecx, dword ptr [ebp - 0x34] */ 459 MEM32(edx) = eax; /* 0x25098162: mov dword ptr [edx], eax */ 460 MEM32(edx + 0x4) = ecx; /* 0x25098164: mov dword ptr [edx + 4], ecx */ 461 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x25098167: fstp dword ptr [ebp - 0x30] */ 462 eax = MEM32(ebp + (-0x30)); /* 0x2509816A: mov eax, dword ptr [ebp - 0x30] */ 463 MEM32(edx + 0x8) = eax; /* 0x2509816D: mov dword ptr [edx + 8], eax */ 464 MEM8(esi + 0x64) = (uint8_t)(0); /* 0x25098170: mov byte ptr [esi + 0x64], 0 */ 465 fp_push(*(float*)&MEM32(0x251B42F8)); /* 0x25098174: fld dword ptr [0x251b42f8] */ 466 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x2509817A: fstp dword ptr [ebp - 0x38] */ 467 fp_push(*(float*)&MEM32(0x251B42FC)); /* 0x2509817D: fld dword ptr [0x251b42fc] */ 468 edx = MEM32(ebp + (-0x38)); /* 0x25098183: mov edx, dword ptr [ebp - 0x38] */ 469 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x25098186: fstp dword ptr [ebp - 0x34] */ 470 fp_push(*(float*)&MEM32(0x251B4300)); /* 0x25098189: fld dword ptr [0x251b4300] */ 471 eax = MEM32(ebp + (-0x34)); /* 0x2509818F: mov eax, dword ptr [ebp - 0x34] */ 472 ecx = esi + 0x24; /* 0x25098192: lea ecx, [esi + 0x24] */ 473 MEM32(ecx) = edx; /* 0x25098195: mov dword ptr [ecx], edx */ 474 MEM32(ecx + 0x4) = eax; /* 0x25098197: mov dword ptr [ecx + 4], eax */ 475 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x2509819A: fstp dword ptr [ebp - 0x30] */ 476 edx = MEM32(ebp + (-0x30)); /* 0x2509819D: mov edx, dword ptr [ebp - 0x30] */ 477 MEM32(ecx + 0x8) = edx; /* 0x250981A0: mov dword ptr [ecx + 8], edx */ 478 MEM32(ebp + (-0x38)) = 0; /* 0x250981A3: mov dword ptr [ebp - 0x38], 0 */ 479 ecx = MEM32(ebp + (-0x38)); /* 0x250981AA: mov ecx, dword ptr [ebp - 0x38] */ 480 eax = esi + 0x30; /* 0x250981AD: lea eax, [esi + 0x30] */ 481 MEM32(eax) = ecx; /* 0x250981B0: mov dword ptr [eax], ecx */ 482 MEM32(ebp + (-0x34)) = 0; /* 0x250981B2: mov dword ptr [ebp - 0x34], 0 */ 483 edx = MEM32(ebp + (-0x34)); /* 0x250981B9: mov edx, dword ptr [ebp - 0x34] */ 484 MEM32(ebp + (-0x30)) = 0; /* 0x250981BC: mov dword ptr [ebp - 0x30], 0 */ 485 ecx = MEM32(ebp + (-0x30)); /* 0x250981C3: mov ecx, dword ptr [ebp - 0x30] */ 486 MEM32(eax + 0x4) = edx; /* 0x250981C6: mov dword ptr [eax + 4], edx */ 487 MEM32(eax + 0x8) = ecx; /* 0x250981C9: mov dword ptr [eax + 8], ecx */ 488 ecx = esi; /* 0x250981CC: mov ecx, esi */ 489 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250981CE: mov dword ptr [ebp - 4], 0xffffffff */ 490 MEM8(esi + 0x64) = (uint8_t)(0); /* 0x250981D5: mov byte ptr [esi + 0x64], 0 */ 491 RECOMP_ICALL(0x250E5260u); /* 0x250981D9: call 0x250e5260 */ /* not lifted */ 492 RECOMP_FLAGS_IN(); 493 /* test edi, edi */ /* 0x250981DE: test edi, edi */ 494 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 495 _cf = 0; 496 _flag_k = FK_TEST; 497 MEM8(esi + 0x64) = (uint8_t)(0); /* 0x250981E0: mov byte ptr [esi + 0x64], 0 */ 498 if (TEST_Z(_flag_a, _flag_b)) goto L_25098209; /* 0x250981E4: je 0x25098209 */ 499 L_250981E6: 500 ecx = edi; /* 0x250981E6: mov ecx, edi */ 501 RECOMP_ICALL(0x250A3B60u); /* 0x250981E8: call 0x250a3b60 */ /* not lifted */ 502 RECOMP_FLAGS_IN(); 503 PUSH32(esp, eax); /* 0x250981ED: push eax */ 504 ecx = esi; /* 0x250981EE: mov ecx, esi */ 505 MEM32(ebp + 0x10) = eax; /* 0x250981F0: mov dword ptr [ebp + 0x10], eax */ 506 RECOMP_ICALL(0x250E5630u); /* 0x250981F3: call 0x250e5630 */ /* not lifted */ 507 RECOMP_FLAGS_IN(); 508 ecx = MEM32(ebp + 0x10); /* 0x250981F8: mov ecx, dword ptr [ebp + 0x10] */ 509 RECOMP_ICALL(0x250EBDE0u); /* 0x250981FB: call 0x250ebde0 */ /* not lifted */ 510 RECOMP_FLAGS_IN(); 511 edx = MEM32(edi); /* 0x25098200: mov edx, dword ptr [edi] */ 512 PUSH32(esp, 0); /* 0x25098202: push 0 */ 513 ecx = edi; /* 0x25098204: mov ecx, edi */ 514 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x25098206: call dword ptr [edx + 0x28] */ 515 RECOMP_FLAGS_IN(); 516 L_25098209: 517 eax = MEM32(ebp + 0x8); /* 0x25098209: mov eax, dword ptr [ebp + 8] */ 518 ecx = MEM32(ebp + (-0x1C)); /* 0x2509820C: mov ecx, dword ptr [ebp - 0x1c] */ 519 ecx = MEM32(ecx + 0x28); /* 0x2509820F: mov ecx, dword ptr [ecx + 0x28] */ 520 PUSH32(esp, esi); /* 0x25098212: push esi */ 521 PUSH32(esp, eax); /* 0x25098213: push eax */ 522 RECOMP_ICALL(0x25112500u); /* 0x25098214: call 0x25112500 */ /* not lifted */ 523 RECOMP_FLAGS_IN(); 524 ecx = esi; /* 0x25098219: mov ecx, esi */ 525 RECOMP_ICALL(0x250E6370u); /* 0x2509821B: call 0x250e6370 */ /* not lifted */ 526 RECOMP_FLAGS_IN(); 527 ecx = MEM32(ebp + 0xC); /* 0x25098220: mov ecx, dword ptr [ebp + 0xc] */ 528 RECOMP_ICALL(0x250EBDE0u); /* 0x25098223: call 0x250ebde0 */ /* not lifted */ 529 RECOMP_FLAGS_IN(); 530 edx = MEM32(ebx); /* 0x25098228: mov edx, dword ptr [ebx] */ 531 PUSH32(esp, 0); /* 0x2509822A: push 0 */ 532 ecx = ebx; /* 0x2509822C: mov ecx, ebx */ 533 L_2509822E: 534 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x2509822E: call dword ptr [edx + 0x28] */ 535 RECOMP_FLAGS_IN(); 536 L_25098231: 537 ecx = MEM32(ebp + (-0xC)); /* 0x25098231: mov ecx, dword ptr [ebp - 0xc] */ 538 edi = POP32_VAL(esp); /* 0x25098234: pop edi */ 539 esi = POP32_VAL(esp); /* 0x25098235: pop esi */ 540 ebx = POP32_VAL(esp); /* 0x25098236: pop ebx */ 541 MEM32(FS_BASE + (0)) = ecx; /* 0x25098237: mov dword ptr fs:[0], ecx */ 542 esp = ebp; /* 0x2509823E: mov esp, ebp */ 543 ebp = POP32_VAL(esp); /* 0x25098240: pop ebp */ 544 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098241: ret 0x10 */ 545 RECOMP_REGS_OUT(); 546 } 547 548 void sub_2509822E(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(0x2509822Eu); 557 558 L_2509822E: 559 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x2509822E: call dword ptr [edx + 0x28] */ 560 RECOMP_FLAGS_IN(); 561 ecx = MEM32(ebp + (-0xC)); /* 0x25098231: mov ecx, dword ptr [ebp - 0xc] */ 562 edi = POP32_VAL(esp); /* 0x25098234: pop edi */ 563 esi = POP32_VAL(esp); /* 0x25098235: pop esi */ 564 ebx = POP32_VAL(esp); /* 0x25098236: pop ebx */ 565 MEM32(FS_BASE + (0)) = ecx; /* 0x25098237: mov dword ptr fs:[0], ecx */ 566 esp = ebp; /* 0x2509823E: mov esp, ebp */ 567 ebp = POP32_VAL(esp); /* 0x25098240: pop ebp */ 568 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098241: ret 0x10 */ 569 RECOMP_REGS_OUT(); 570 } 571 572 void sub_25098250(void) { 573 int _fpu_cmp = 0; 574 uint32_t _cf = 0; 575 int _df = 1; 576 uint32_t _flag_k = FK_NONE; 577 uint32_t _flag_a = 0, _flag_b = 0; 578 uint32_t _itail_tgt = 0; 579 RECOMP_REGS_LOCALS 580 RECOMP_ENTER(0x25098250u); 581 582 L_25098250: 583 PUSH32(esp, ebp); /* 0x25098250: push ebp */ 584 ebp = esp; /* 0x25098251: mov ebp, esp */ 585 eax = MEM32(ebp + 0x8); /* 0x25098253: mov eax, dword ptr [ebp + 8] */ 586 PUSH32(esp, esi); /* 0x25098256: push esi */ 587 PUSH32(esp, 0); /* 0x25098257: push 0 */ 588 esi = ecx; /* 0x25098259: mov esi, ecx */ 589 ecx = MEM32(eax); /* 0x2509825B: mov ecx, dword ptr [eax] */ 590 PUSH32(esp, 0x251B2598u); /* 0x2509825D: push 0x251b2598 */ 591 MEM32(esi) = ecx; /* 0x25098262: mov dword ptr [esi], ecx */ 592 edx = MEM32(eax + 0x4); /* 0x25098264: mov edx, dword ptr [eax + 4] */ 593 PUSH32(esp, 0x251B2598u); /* 0x25098267: push 0x251b2598 */ 594 eax = ecx; /* 0x2509826C: mov eax, ecx */ 595 PUSH32(esp, 0); /* 0x2509826E: push 0 */ 596 PUSH32(esp, eax); /* 0x25098270: push eax */ 597 MEM32(esi + 0x4) = edx; /* 0x25098271: mov dword ptr [esi + 4], edx */ 598 RECOMP_ICALL(0x251381ACu); /* 0x25098274: call 0x251381ac */ /* not lifted */ 599 RECOMP_FLAGS_IN(); 600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 602 esp = esp + 0x14u; /* 0x25098279: add esp, 0x14 */ 603 _flag_k = FK_ADD; 604 /* test eax, eax */ /* 0x2509827C: test eax, eax */ 605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 606 _cf = 0; 607 _flag_k = FK_TEST; 608 if (TEST_NZ(_flag_a, _flag_b)) goto L_250982B1; /* 0x2509827E: jne 0x250982b1 */ 609 L_25098280: 610 /* cmp MEM32(esi), 0 */ /* 0x25098280: cmp dword ptr [esi], 0 */ 611 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 613 _flag_k = FK_CMP; 614 if (CMP_EQ(_flag_a, _flag_b)) goto L_250982B1; /* 0x25098283: je 0x250982b1 */ 615 L_25098285: 616 ecx = MEM32(esi + 0x4); /* 0x25098285: mov ecx, dword ptr [esi + 4] */ 617 PUSH32(esp, ecx); /* 0x25098288: push ecx */ 618 PUSH32(esp, esi); /* 0x25098289: push esi */ 619 RECOMP_ICALL(0x250E3530u); /* 0x2509828A: call 0x250e3530 */ /* not lifted */ 620 RECOMP_FLAGS_IN(); 621 edx = MEM32(esi); /* 0x2509828F: mov edx, dword ptr [esi] */ 622 PUSH32(esp, 0); /* 0x25098291: push 0 */ 623 PUSH32(esp, 0x251B2598u); /* 0x25098293: push 0x251b2598 */ 624 PUSH32(esp, 0x251B2598u); /* 0x25098298: push 0x251b2598 */ 625 PUSH32(esp, 0); /* 0x2509829D: push 0 */ 626 PUSH32(esp, edx); /* 0x2509829F: push edx */ 627 RECOMP_ICALL(0x251381ACu); /* 0x250982A0: call 0x251381ac */ /* not lifted */ 628 RECOMP_FLAGS_IN(); 629 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 631 esp = esp + 0x1Cu; /* 0x250982A5: add esp, 0x1c */ 632 _flag_k = FK_ADD; 633 /* test eax, eax */ /* 0x250982A8: test eax, eax */ 634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 635 _cf = 0; 636 _flag_k = FK_TEST; 637 if (TEST_NZ(_flag_a, _flag_b)) goto L_250982B1; /* 0x250982AA: jne 0x250982b1 */ 638 L_250982AC: 639 /* cmp MEM32(esi), 0 */ /* 0x250982AC: cmp dword ptr [esi], 0 */ 640 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 642 _flag_k = FK_CMP; 643 RECOMP_BACKEDGE(); 644 if (CMP_NE(_flag_a, _flag_b)) goto L_25098285; /* 0x250982AF: jne 0x25098285 */ 645 L_250982B1: 646 eax = esi; /* 0x250982B1: mov eax, esi */ 647 esi = POP32_VAL(esp); /* 0x250982B3: pop esi */ 648 ebp = POP32_VAL(esp); /* 0x250982B4: pop ebp */ 649 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250982B5: ret 4 */ 650 RECOMP_REGS_OUT(); 651 } 652 653 void sub_250982C0(void) { 654 int _fpu_cmp = 0; 655 uint32_t _cf = 0; 656 int _df = 1; 657 uint32_t _flag_k = FK_NONE; 658 uint32_t _flag_a = 0, _flag_b = 0; 659 uint32_t _itail_tgt = 0; 660 RECOMP_REGS_LOCALS 661 RECOMP_ENTER(0x250982C0u); 662 663 L_250982C0: 664 PUSH32(esp, esi); /* 0x250982C0: push esi */ 665 esi = ecx; /* 0x250982C1: mov esi, ecx */ 666 /* cmp MEM32(esi), 0 */ /* 0x250982C3: cmp dword ptr [esi], 0 */ 667 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 668 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 669 _flag_k = FK_CMP; 670 if (CMP_EQ(_flag_a, _flag_b)) goto L_250982F4; /* 0x250982C6: je 0x250982f4 */ 671 L_250982C8: 672 eax = MEM32(esi + 0x4); /* 0x250982C8: mov eax, dword ptr [esi + 4] */ 673 PUSH32(esp, eax); /* 0x250982CB: push eax */ 674 PUSH32(esp, esi); /* 0x250982CC: push esi */ 675 RECOMP_ICALL(0x250E3530u); /* 0x250982CD: call 0x250e3530 */ /* not lifted */ 676 RECOMP_FLAGS_IN(); 677 ecx = MEM32(esi); /* 0x250982D2: mov ecx, dword ptr [esi] */ 678 PUSH32(esp, 0); /* 0x250982D4: push 0 */ 679 PUSH32(esp, 0x251B2970u); /* 0x250982D6: push 0x251b2970 */ 680 PUSH32(esp, 0x251B2970u); /* 0x250982DB: push 0x251b2970 */ 681 PUSH32(esp, 0); /* 0x250982E0: push 0 */ 682 PUSH32(esp, ecx); /* 0x250982E2: push ecx */ 683 RECOMP_ICALL(0x251381ACu); /* 0x250982E3: call 0x251381ac */ /* not lifted */ 684 RECOMP_FLAGS_IN(); 685 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 686 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 687 esp = esp + 0x1Cu; /* 0x250982E8: add esp, 0x1c */ 688 _flag_k = FK_ADD; 689 /* test eax, eax */ /* 0x250982EB: test eax, eax */ 690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 691 _cf = 0; 692 _flag_k = FK_TEST; 693 if (TEST_NZ(_flag_a, _flag_b)) goto L_250982F4; /* 0x250982ED: jne 0x250982f4 */ 694 L_250982EF: 695 /* cmp MEM32(esi), 0 */ /* 0x250982EF: cmp dword ptr [esi], 0 */ 696 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 698 _flag_k = FK_CMP; 699 RECOMP_BACKEDGE(); 700 if (CMP_NE(_flag_a, _flag_b)) goto L_250982C8; /* 0x250982F2: jne 0x250982c8 */ 701 L_250982F4: 702 eax = esi; /* 0x250982F4: mov eax, esi */ 703 esi = POP32_VAL(esp); /* 0x250982F6: pop esi */ 704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250982F7: ret */ 705 RECOMP_REGS_OUT(); 706 } 707 708 void sub_25098300(void) { 709 int _fpu_cmp = 0; 710 uint32_t _cf = 0; 711 int _df = 1; 712 uint32_t _flag_k = FK_NONE; 713 uint32_t _flag_a = 0, _flag_b = 0; 714 uint32_t _itail_tgt = 0; 715 RECOMP_REGS_LOCALS 716 RECOMP_ENTER(0x25098300u); 717 718 L_25098300: 719 eax = MEM32(ecx); /* 0x25098300: mov eax, dword ptr [ecx] */ 720 edx = MEM32(eax + 0x8); /* 0x25098302: mov edx, dword ptr [eax + 8] */ 721 PUSH32(esp, ebx); /* 0x25098305: push ebx */ 722 SET_LO8(ebx, MEM8(edx + 0x21)); /* 0x25098306: mov bl, byte ptr [edx + 0x21] */ 723 /* test LO8(ebx), LO8(ebx) */ /* 0x25098309: test bl, bl */ 724 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 725 _cf = 0; 726 _flag_k = FK_NARROW(FK_TEST, 24); 727 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098325; /* 0x2509830B: jne 0x25098325 */ 728 L_2509830D: 729 eax = MEM32(edx); /* 0x2509830D: mov eax, dword ptr [edx] */ 730 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x2509830F: mov bl, byte ptr [eax + 0x21] */ 731 /* test LO8(ebx), LO8(ebx) */ /* 0x25098312: test bl, bl */ 732 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 733 _cf = 0; 734 _flag_k = FK_NARROW(FK_TEST, 24); 735 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098321; /* 0x25098314: jne 0x25098321 */ 736 L_25098316: 737 edx = eax; /* 0x25098316: mov edx, eax */ 738 eax = MEM32(edx); /* 0x25098318: mov eax, dword ptr [edx] */ 739 SET_LO8(ebx, MEM8(eax + 0x21)); /* 0x2509831A: mov bl, byte ptr [eax + 0x21] */ 740 /* test LO8(ebx), LO8(ebx) */ /* 0x2509831D: test bl, bl */ 741 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 742 _cf = 0; 743 _flag_k = FK_NARROW(FK_TEST, 24); 744 RECOMP_BACKEDGE(); 745 if (TEST_Z(_flag_a, _flag_b)) goto L_25098316; /* 0x2509831F: je 0x25098316 */ 746 L_25098321: 747 MEM32(ecx) = edx; /* 0x25098321: mov dword ptr [ecx], edx */ 748 ebx = POP32_VAL(esp); /* 0x25098323: pop ebx */ 749 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25098324: ret */ 750 L_25098325: 751 eax = MEM32(eax + 0x4); /* 0x25098325: mov eax, dword ptr [eax + 4] */ 752 edx = MEM32(ecx); /* 0x25098328: mov edx, dword ptr [ecx] */ 753 /* cmp edx, MEM32(eax + 0x8) */ /* 0x2509832A: cmp edx, dword ptr [eax + 8] */ 754 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 756 _flag_k = FK_CMP; 757 if (CMP_NE(_flag_a, _flag_b)) goto L_2509833B; /* 0x2509832D: jne 0x2509833b */ 758 L_2509832F: 759 MEM32(ecx) = eax; /* 0x2509832F: mov dword ptr [ecx], eax */ 760 eax = MEM32(eax + 0x4); /* 0x25098331: mov eax, dword ptr [eax + 4] */ 761 edx = MEM32(ecx); /* 0x25098334: mov edx, dword ptr [ecx] */ 762 /* cmp edx, MEM32(eax + 0x8) */ /* 0x25098336: cmp edx, dword ptr [eax + 8] */ 763 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 765 _flag_k = FK_CMP; 766 RECOMP_BACKEDGE(); 767 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509832F; /* 0x25098339: je 0x2509832f */ 768 L_2509833B: 769 edx = MEM32(ecx); /* 0x2509833B: mov edx, dword ptr [ecx] */ 770 /* cmp MEM32(edx + 0x8), eax */ /* 0x2509833D: cmp dword ptr [edx + 8], eax */ 771 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 773 _flag_k = FK_CMP; 774 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098344; /* 0x25098340: je 0x25098344 */ 775 L_25098342: 776 MEM32(ecx) = eax; /* 0x25098342: mov dword ptr [ecx], eax */ 777 L_25098344: 778 ebx = POP32_VAL(esp); /* 0x25098344: pop ebx */ 779 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25098345: ret */ 780 RECOMP_REGS_OUT(); 781 } 782 783 void sub_25098350(void) { 784 int _fpu_cmp = 0; 785 uint32_t _cf = 0; 786 int _df = 1; 787 uint32_t _flag_k = FK_NONE; 788 uint32_t _flag_a = 0, _flag_b = 0; 789 uint32_t _itail_tgt = 0; 790 RECOMP_REGS_LOCALS 791 RECOMP_ENTER(0x25098350u); 792 793 L_25098350: 794 PUSH32(esp, ebp); /* 0x25098350: push ebp */ 795 ebp = esp; /* 0x25098351: mov ebp, esp */ 796 PUSH32(esp, 0xCu); /* 0x25098353: push 0xc */ 797 RECOMP_ICALL(0x251380D0u); /* 0x25098355: call 0x251380d0 */ /* not lifted */ 798 RECOMP_FLAGS_IN(); 799 ecx = MEM32(ebp + 0x8); /* 0x2509835A: mov ecx, dword ptr [ebp + 8] */ 800 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 802 esp = esp + 4; /* 0x2509835D: add esp, 4 */ 803 _flag_k = FK_ADD; 804 /* test ecx, ecx */ /* 0x25098360: test ecx, ecx */ 805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 806 _cf = 0; 807 _flag_k = FK_TEST; 808 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098366; /* 0x25098362: jne 0x25098366 */ 809 L_25098364: 810 ecx = eax; /* 0x25098364: mov ecx, eax */ 811 L_25098366: 812 MEM32(eax) = ecx; /* 0x25098366: mov dword ptr [eax], ecx */ 813 ecx = MEM32(ebp + 0xC); /* 0x25098368: mov ecx, dword ptr [ebp + 0xc] */ 814 /* test ecx, ecx */ /* 0x2509836B: test ecx, ecx */ 815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 816 _cf = 0; 817 _flag_k = FK_TEST; 818 if (TEST_Z(_flag_a, _flag_b)) goto L_25098376; /* 0x2509836D: je 0x25098376 */ 819 L_2509836F: 820 MEM32(eax + 0x4) = ecx; /* 0x2509836F: mov dword ptr [eax + 4], ecx */ 821 ebp = POP32_VAL(esp); /* 0x25098372: pop ebp */ 822 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098373: ret 8 */ 823 L_25098376: 824 MEM32(eax + 0x4) = eax; /* 0x25098376: mov dword ptr [eax + 4], eax */ 825 ebp = POP32_VAL(esp); /* 0x25098379: pop ebp */ 826 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509837A: ret 8 */ 827 RECOMP_REGS_OUT(); 828 } 829 830 void sub_25098380(void) { 831 int _fpu_cmp = 0; 832 uint32_t _cf = 0; 833 int _df = 1; 834 uint32_t _flag_k = FK_NONE; 835 uint32_t _flag_a = 0, _flag_b = 0; 836 uint32_t _itail_tgt = 0; 837 RECOMP_REGS_LOCALS 838 RECOMP_ENTER(0x25098380u); 839 840 L_25098380: 841 PUSH32(esp, ebp); /* 0x25098380: push ebp */ 842 ebp = esp; /* 0x25098381: mov ebp, esp */ 843 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 845 esp = esp - 0xCu; /* 0x25098383: sub esp, 0xc */ 846 _flag_k = FK_CMP; 847 PUSH32(esp, ebx); /* 0x25098386: push ebx */ 848 PUSH32(esp, esi); /* 0x25098387: push esi */ 849 PUSH32(esp, edi); /* 0x25098388: push edi */ 850 edi = ecx; /* 0x25098389: mov edi, ecx */ 851 ecx = MEM32(edi + 0x4); /* 0x2509838B: mov ecx, dword ptr [edi + 4] */ 852 ebx = MEM32(ecx + 0x4); /* 0x2509838E: mov ebx, dword ptr [ecx + 4] */ 853 edx = MEM32(edi + 0x8); /* 0x25098391: mov edx, dword ptr [edi + 8] */ 854 /* cmp ebx, edx */ /* 0x25098394: cmp ebx, edx */ 855 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 857 _flag_k = FK_CMP; 858 esi = ecx; /* 0x25098396: mov esi, ecx */ 859 SET_LO8(eax, 1); /* 0x25098398: mov al, 1 */ 860 if (CMP_EQ(_flag_a, _flag_b)) goto L_250983BE; /* 0x2509839A: je 0x250983be */ 861 L_2509839C: 862 eax = MEM32(ebp + 0xC); /* 0x2509839C: mov eax, dword ptr [ebp + 0xc] */ 863 eax = MEM32(eax); /* 0x2509839F: mov eax, dword ptr [eax] */ 864 MEM32(ebp + (-0x8)) = eax; /* 0x250983A1: mov dword ptr [ebp - 8], eax */ 865 L_250983A4: 866 eax = MEM32(ebp + (-0x8)); /* 0x250983A4: mov eax, dword ptr [ebp - 8] */ 867 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x250983A7: cmp eax, dword ptr [ebx + 0xc] */ 868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 870 _flag_k = FK_CMP; 871 esi = ebx; /* 0x250983AA: mov esi, ebx */ 872 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x250983AC: setl al */ 873 /* test LO8(eax), LO8(eax) */ /* 0x250983AF: test al, al */ 874 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 875 _cf = 0; 876 _flag_k = FK_NARROW(FK_TEST, 24); 877 if (TEST_Z(_flag_a, _flag_b)) goto L_250983B7; /* 0x250983B1: je 0x250983b7 */ 878 L_250983B3: 879 ebx = MEM32(ebx); /* 0x250983B3: mov ebx, dword ptr [ebx] */ 880 goto L_250983BA; /* 0x250983B5: jmp 0x250983ba */ 881 L_250983B7: 882 ebx = MEM32(ebx + 0x8); /* 0x250983B7: mov ebx, dword ptr [ebx + 8] */ 883 L_250983BA: 884 /* cmp ebx, edx */ /* 0x250983BA: cmp ebx, edx */ 885 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 887 _flag_k = FK_CMP; 888 RECOMP_BACKEDGE(); 889 if (CMP_NE(_flag_a, _flag_b)) goto L_250983A4; /* 0x250983BC: jne 0x250983a4 */ 890 L_250983BE: 891 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x250983BE: mov dl, byte ptr [edi + 0xc] */ 892 /* test LO8(edx), LO8(edx) */ /* 0x250983C1: test dl, dl */ 893 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 894 _cf = 0; 895 _flag_k = FK_NARROW(FK_TEST, 24); 896 if (TEST_Z(_flag_a, _flag_b)) goto L_25098539; /* 0x250983C3: je 0x25098539 */ 897 L_250983C9: 898 PUSH32(esp, 0); /* 0x250983C9: push 0 */ 899 PUSH32(esp, esi); /* 0x250983CB: push esi */ 900 ecx = edi; /* 0x250983CC: mov ecx, edi */ 901 RECOMP_ICALL(0x25099030u); /* 0x250983CE: call 0x25099030 */ /* not lifted */ 902 RECOMP_FLAGS_IN(); 903 ecx = MEM32(edi + 0x8); /* 0x250983D3: mov ecx, dword ptr [edi + 8] */ 904 MEM32(eax) = ecx; /* 0x250983D6: mov dword ptr [eax], ecx */ 905 edx = MEM32(edi + 0x8); /* 0x250983D8: mov edx, dword ptr [edi + 8] */ 906 ecx = MEM32(ebp + 0xC); /* 0x250983DB: mov ecx, dword ptr [ebp + 0xc] */ 907 MEM32(ebp + (-0x4)) = eax; /* 0x250983DE: mov dword ptr [ebp - 4], eax */ 908 MEM32(eax + 0x8) = edx; /* 0x250983E1: mov dword ptr [eax + 8], edx */ 909 PUSH32(esp, ecx); /* 0x250983E4: push ecx */ 910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 912 eax = eax + 0xCu; /* 0x250983E5: add eax, 0xc */ 913 _flag_k = FK_ADD; 914 PUSH32(esp, eax); /* 0x250983E8: push eax */ 915 RECOMP_ICALL(0x2512B900u); /* 0x250983E9: call 0x2512b900 */ /* not lifted */ 916 RECOMP_FLAGS_IN(); 917 ecx = MEM32(edi + 0x10); /* 0x250983EE: mov ecx, dword ptr [edi + 0x10] */ 918 eax = MEM32(edi + 0x4); /* 0x250983F1: mov eax, dword ptr [edi + 4] */ 919 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 920 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 921 esp = esp + 8; /* 0x250983F4: add esp, 8 */ 922 _flag_k = FK_ADD; 923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 924 ecx = ecx + 1; /* 0x250983F7: inc ecx */ 925 _flag_k = FK_INC; 926 /* cmp esi, eax */ /* 0x250983F8: cmp esi, eax */ 927 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 929 _flag_k = FK_CMP; 930 MEM32(edi + 0x10) = ecx; /* 0x250983FA: mov dword ptr [edi + 0x10], ecx */ 931 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098421; /* 0x250983FD: je 0x25098421 */ 932 L_250983FF: 933 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x250983FF: cmp ebx, dword ptr [edi + 8] */ 934 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 936 _flag_k = FK_CMP; 937 if (CMP_NE(_flag_a, _flag_b)) goto L_25098421; /* 0x25098402: jne 0x25098421 */ 938 L_25098404: 939 edx = MEM32(ebp + 0xC); /* 0x25098404: mov edx, dword ptr [ebp + 0xc] */ 940 eax = MEM32(edx); /* 0x25098407: mov eax, dword ptr [edx] */ 941 /* cmp eax, MEM32(esi + 0xC) */ /* 0x25098409: cmp eax, dword ptr [esi + 0xc] */ 942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 944 _flag_k = FK_CMP; 945 if (CMP_L(_flag_a, _flag_b)) goto L_25098421; /* 0x2509840C: jl 0x25098421 */ 946 L_2509840E: 947 ebx = MEM32(ebp + (-0x4)); /* 0x2509840E: mov ebx, dword ptr [ebp - 4] */ 948 MEM32(esi + 0x8) = ebx; /* 0x25098411: mov dword ptr [esi + 8], ebx */ 949 eax = MEM32(edi + 0x4); /* 0x25098414: mov eax, dword ptr [edi + 4] */ 950 /* cmp esi, MEM32(eax + 0x8) */ /* 0x25098417: cmp esi, dword ptr [eax + 8] */ 951 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 953 _flag_k = FK_CMP; 954 if (CMP_NE(_flag_a, _flag_b)) goto L_25098444; /* 0x2509841A: jne 0x25098444 */ 955 L_2509841C: 956 MEM32(eax + 0x8) = ebx; /* 0x2509841C: mov dword ptr [eax + 8], ebx */ 957 goto L_25098444; /* 0x2509841F: jmp 0x25098444 */ 958 L_25098421: 959 ecx = MEM32(ebp + (-0x4)); /* 0x25098421: mov ecx, dword ptr [ebp - 4] */ 960 MEM32(esi) = ecx; /* 0x25098424: mov dword ptr [esi], ecx */ 961 eax = MEM32(edi + 0x4); /* 0x25098426: mov eax, dword ptr [edi + 4] */ 962 /* cmp esi, eax */ /* 0x25098429: cmp esi, eax */ 963 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 965 _flag_k = FK_CMP; 966 if (CMP_NE(_flag_a, _flag_b)) goto L_25098438; /* 0x2509842B: jne 0x25098438 */ 967 L_2509842D: 968 MEM32(eax + 0x4) = ecx; /* 0x2509842D: mov dword ptr [eax + 4], ecx */ 969 edx = MEM32(edi + 0x4); /* 0x25098430: mov edx, dword ptr [edi + 4] */ 970 MEM32(edx + 0x8) = ecx; /* 0x25098433: mov dword ptr [edx + 8], ecx */ 971 goto L_25098441; /* 0x25098436: jmp 0x25098441 */ 972 L_25098438: 973 /* cmp esi, MEM32(eax) */ /* 0x25098438: cmp esi, dword ptr [eax] */ 974 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 976 _flag_k = FK_CMP; 977 if (CMP_NE(_flag_a, _flag_b)) goto L_25098441; /* 0x2509843A: jne 0x25098441 */ 978 L_2509843C: 979 ecx = MEM32(ebp + (-0x4)); /* 0x2509843C: mov ecx, dword ptr [ebp - 4] */ 980 MEM32(eax) = ecx; /* 0x2509843F: mov dword ptr [eax], ecx */ 981 L_25098441: 982 ebx = MEM32(ebp + (-0x4)); /* 0x25098441: mov ebx, dword ptr [ebp - 4] */ 983 L_25098444: 984 edx = MEM32(edi + 0x4); /* 0x25098444: mov edx, dword ptr [edi + 4] */ 985 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x25098447: cmp ebx, dword ptr [edx + 4] */ 986 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 988 _flag_k = FK_CMP; 989 esi = ebx; /* 0x2509844A: mov esi, ebx */ 990 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098517; /* 0x2509844C: je 0x25098517 */ 991 L_25098452: 992 eax = MEM32(esi + 0x4); /* 0x25098452: mov eax, dword ptr [esi + 4] */ 993 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x25098455: mov cl, byte ptr [eax + 0x14] */ 994 /* test LO8(ecx), LO8(ecx) */ /* 0x25098458: test cl, cl */ 995 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 996 _cf = 0; 997 _flag_k = FK_NARROW(FK_TEST, 24); 998 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098517; /* 0x2509845A: jne 0x25098517 */ 999 L_25098460: 1000 edx = MEM32(eax + 0x4); /* 0x25098460: mov edx, dword ptr [eax + 4] */ 1001 ecx = MEM32(edx); /* 0x25098463: mov ecx, dword ptr [edx] */ 1002 /* cmp eax, ecx */ /* 0x25098465: cmp eax, ecx */ 1003 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1005 _flag_k = FK_CMP; 1006 if (CMP_NE(_flag_a, _flag_b)) goto L_250984BD; /* 0x25098467: jne 0x250984bd */ 1007 L_25098469: 1008 ecx = MEM32(edx + 0x8); /* 0x25098469: mov ecx, dword ptr [edx + 8] */ 1009 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x2509846C: mov dl, byte ptr [ecx + 0x14] */ 1010 /* test LO8(edx), LO8(edx) */ /* 0x2509846F: test dl, dl */ 1011 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1012 _cf = 0; 1013 _flag_k = FK_NARROW(FK_TEST, 24); 1014 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509848D; /* 0x25098471: jne 0x2509848d */ 1015 L_25098473: 1016 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x25098473: mov byte ptr [eax + 0x14], 1 */ 1017 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x25098477: mov byte ptr [ecx + 0x14], 1 */ 1018 eax = MEM32(esi + 0x4); /* 0x2509847B: mov eax, dword ptr [esi + 4] */ 1019 ecx = MEM32(eax + 0x4); /* 0x2509847E: mov ecx, dword ptr [eax + 4] */ 1020 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098481: mov byte ptr [ecx + 0x14], 0 */ 1021 edx = MEM32(esi + 0x4); /* 0x25098485: mov edx, dword ptr [esi + 4] */ 1022 esi = MEM32(edx + 0x4); /* 0x25098488: mov esi, dword ptr [edx + 4] */ 1023 goto L_2509850B; /* 0x2509848B: jmp 0x2509850b */ 1024 L_2509848D: 1025 /* cmp esi, MEM32(eax + 0x8) */ /* 0x2509848D: cmp esi, dword ptr [eax + 8] */ 1026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1028 _flag_k = FK_CMP; 1029 if (CMP_NE(_flag_a, _flag_b)) goto L_2509849C; /* 0x25098490: jne 0x2509849c */ 1030 L_25098492: 1031 esi = eax; /* 0x25098492: mov esi, eax */ 1032 PUSH32(esp, esi); /* 0x25098494: push esi */ 1033 ecx = edi; /* 0x25098495: mov ecx, edi */ 1034 RECOMP_ICALL(0x2509DF50u); /* 0x25098497: call 0x2509df50 */ /* not lifted */ 1035 RECOMP_FLAGS_IN(); 1036 L_2509849C: 1037 eax = MEM32(esi + 0x4); /* 0x2509849C: mov eax, dword ptr [esi + 4] */ 1038 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2509849F: mov byte ptr [eax + 0x14], 1 */ 1039 ecx = MEM32(esi + 0x4); /* 0x250984A3: mov ecx, dword ptr [esi + 4] */ 1040 edx = MEM32(ecx + 0x4); /* 0x250984A6: mov edx, dword ptr [ecx + 4] */ 1041 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x250984A9: mov byte ptr [edx + 0x14], 0 */ 1042 eax = MEM32(esi + 0x4); /* 0x250984AD: mov eax, dword ptr [esi + 4] */ 1043 ecx = MEM32(eax + 0x4); /* 0x250984B0: mov ecx, dword ptr [eax + 4] */ 1044 PUSH32(esp, ecx); /* 0x250984B3: push ecx */ 1045 ecx = edi; /* 0x250984B4: mov ecx, edi */ 1046 RECOMP_ICALL(0x2509DFB0u); /* 0x250984B6: call 0x2509dfb0 */ /* not lifted */ 1047 RECOMP_FLAGS_IN(); 1048 goto L_2509850B; /* 0x250984BB: jmp 0x2509850b */ 1049 L_250984BD: 1050 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x250984BD: mov dl, byte ptr [ecx + 0x14] */ 1051 /* test LO8(edx), LO8(edx) */ /* 0x250984C0: test dl, dl */ 1052 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1053 _cf = 0; 1054 _flag_k = FK_NARROW(FK_TEST, 24); 1055 if (TEST_NZ(_flag_a, _flag_b)) goto L_250984DE; /* 0x250984C2: jne 0x250984de */ 1056 L_250984C4: 1057 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x250984C4: mov byte ptr [eax + 0x14], 1 */ 1058 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x250984C8: mov byte ptr [ecx + 0x14], 1 */ 1059 edx = MEM32(esi + 0x4); /* 0x250984CC: mov edx, dword ptr [esi + 4] */ 1060 eax = MEM32(edx + 0x4); /* 0x250984CF: mov eax, dword ptr [edx + 4] */ 1061 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x250984D2: mov byte ptr [eax + 0x14], 0 */ 1062 ecx = MEM32(esi + 0x4); /* 0x250984D6: mov ecx, dword ptr [esi + 4] */ 1063 esi = MEM32(ecx + 0x4); /* 0x250984D9: mov esi, dword ptr [ecx + 4] */ 1064 goto L_2509850B; /* 0x250984DC: jmp 0x2509850b */ 1065 L_250984DE: 1066 /* cmp esi, MEM32(eax) */ /* 0x250984DE: cmp esi, dword ptr [eax] */ 1067 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 1068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1069 _flag_k = FK_CMP; 1070 if (CMP_NE(_flag_a, _flag_b)) goto L_250984EC; /* 0x250984E0: jne 0x250984ec */ 1071 L_250984E2: 1072 esi = eax; /* 0x250984E2: mov esi, eax */ 1073 PUSH32(esp, esi); /* 0x250984E4: push esi */ 1074 ecx = edi; /* 0x250984E5: mov ecx, edi */ 1075 RECOMP_ICALL(0x2509DFB0u); /* 0x250984E7: call 0x2509dfb0 */ /* not lifted */ 1076 RECOMP_FLAGS_IN(); 1077 L_250984EC: 1078 edx = MEM32(esi + 0x4); /* 0x250984EC: mov edx, dword ptr [esi + 4] */ 1079 MEM8(edx + 0x14) = (uint8_t)(1); /* 0x250984EF: mov byte ptr [edx + 0x14], 1 */ 1080 eax = MEM32(esi + 0x4); /* 0x250984F3: mov eax, dword ptr [esi + 4] */ 1081 ecx = MEM32(eax + 0x4); /* 0x250984F6: mov ecx, dword ptr [eax + 4] */ 1082 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250984F9: mov byte ptr [ecx + 0x14], 0 */ 1083 edx = MEM32(esi + 0x4); /* 0x250984FD: mov edx, dword ptr [esi + 4] */ 1084 eax = MEM32(edx + 0x4); /* 0x25098500: mov eax, dword ptr [edx + 4] */ 1085 PUSH32(esp, eax); /* 0x25098503: push eax */ 1086 ecx = edi; /* 0x25098504: mov ecx, edi */ 1087 RECOMP_ICALL(0x2509DF50u); /* 0x25098506: call 0x2509df50 */ /* not lifted */ 1088 RECOMP_FLAGS_IN(); 1089 L_2509850B: 1090 ecx = MEM32(edi + 0x4); /* 0x2509850B: mov ecx, dword ptr [edi + 4] */ 1091 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2509850E: cmp esi, dword ptr [ecx + 4] */ 1092 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1094 _flag_k = FK_CMP; 1095 RECOMP_BACKEDGE(); 1096 if (CMP_NE(_flag_a, _flag_b)) goto L_25098452; /* 0x25098511: jne 0x25098452 */ 1097 L_25098517: 1098 edx = MEM32(edi + 0x4); /* 0x25098517: mov edx, dword ptr [edi + 4] */ 1099 eax = MEM32(edx + 0x4); /* 0x2509851A: mov eax, dword ptr [edx + 4] */ 1100 MEM8(eax + 0x14) = (uint8_t)(1); /* 0x2509851D: mov byte ptr [eax + 0x14], 1 */ 1101 eax = MEM32(ebp + 0x8); /* 0x25098521: mov eax, dword ptr [ebp + 8] */ 1102 edi = POP32_VAL(esp); /* 0x25098524: pop edi */ 1103 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x25098525: mov byte ptr [ebp - 8], 1 */ 1104 ecx = MEM32(ebp + (-0x8)); /* 0x25098529: mov ecx, dword ptr [ebp - 8] */ 1105 MEM32(eax) = ebx; /* 0x2509852C: mov dword ptr [eax], ebx */ 1106 esi = POP32_VAL(esp); /* 0x2509852E: pop esi */ 1107 MEM32(eax + 0x4) = ecx; /* 0x2509852F: mov dword ptr [eax + 4], ecx */ 1108 ebx = POP32_VAL(esp); /* 0x25098532: pop ebx */ 1109 esp = ebp; /* 0x25098533: mov esp, ebp */ 1110 ebp = POP32_VAL(esp); /* 0x25098535: pop ebp */ 1111 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098536: ret 8 */ 1112 L_25098539: 1113 /* test LO8(eax), LO8(eax) */ /* 0x25098539: test al, al */ 1114 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1115 _cf = 0; 1116 _flag_k = FK_NARROW(FK_TEST, 24); 1117 edx = esi; /* 0x2509853B: mov edx, esi */ 1118 MEM32(ebp + (-0x8)) = edx; /* 0x2509853D: mov dword ptr [ebp - 8], edx */ 1119 if (TEST_Z(_flag_a, _flag_b)) goto L_2509857C; /* 0x25098540: je 0x2509857c */ 1120 L_25098542: 1121 /* cmp esi, MEM32(ecx) */ /* 0x25098542: cmp esi, dword ptr [ecx] */ 1122 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 1123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1124 _flag_k = FK_CMP; 1125 if (CMP_NE(_flag_a, _flag_b)) goto L_25098571; /* 0x25098544: jne 0x25098571 */ 1126 L_25098546: 1127 edx = MEM32(ebp + 0xC); /* 0x25098546: mov edx, dword ptr [ebp + 0xc] */ 1128 PUSH32(esp, edx); /* 0x25098549: push edx */ 1129 PUSH32(esp, esi); /* 0x2509854A: push esi */ 1130 PUSH32(esp, ebx); /* 0x2509854B: push ebx */ 1131 eax = ebp + 0xC; /* 0x2509854C: lea eax, [ebp + 0xc] */ 1132 PUSH32(esp, eax); /* 0x2509854F: push eax */ 1133 ecx = edi; /* 0x25098550: mov ecx, edi */ 1134 RECOMP_ICALL(0x25098A90u); /* 0x25098552: call 0x25098a90 */ /* not lifted */ 1135 RECOMP_FLAGS_IN(); 1136 ecx = MEM32(eax); /* 0x25098557: mov ecx, dword ptr [eax] */ 1137 eax = MEM32(ebp + 0x8); /* 0x25098559: mov eax, dword ptr [ebp + 8] */ 1138 edi = POP32_VAL(esp); /* 0x2509855C: pop edi */ 1139 MEM32(eax) = ecx; /* 0x2509855D: mov dword ptr [eax], ecx */ 1140 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x2509855F: mov byte ptr [ebp - 8], 1 */ 1141 ecx = MEM32(ebp + (-0x8)); /* 0x25098563: mov ecx, dword ptr [ebp - 8] */ 1142 esi = POP32_VAL(esp); /* 0x25098566: pop esi */ 1143 MEM32(eax + 0x4) = ecx; /* 0x25098567: mov dword ptr [eax + 4], ecx */ 1144 ebx = POP32_VAL(esp); /* 0x2509856A: pop ebx */ 1145 esp = ebp; /* 0x2509856B: mov esp, ebp */ 1146 ebp = POP32_VAL(esp); /* 0x2509856D: pop ebp */ 1147 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509856E: ret 8 */ 1148 L_25098571: 1149 ecx = ebp + (-0x8); /* 0x25098571: lea ecx, [ebp - 8] */ 1150 RECOMP_ICALL(0x250F0580u); /* 0x25098574: call 0x250f0580 */ /* not lifted */ 1151 RECOMP_FLAGS_IN(); 1152 edx = MEM32(ebp + (-0x8)); /* 0x25098579: mov edx, dword ptr [ebp - 8] */ 1153 L_2509857C: 1154 ecx = MEM32(edx + 0xC); /* 0x2509857C: mov ecx, dword ptr [edx + 0xc] */ 1155 eax = MEM32(ebp + 0xC); /* 0x2509857F: mov eax, dword ptr [ebp + 0xc] */ 1156 /* cmp ecx, MEM32(eax) */ /* 0x25098582: cmp ecx, dword ptr [eax] */ 1157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 1158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1159 _flag_k = FK_CMP; 1160 if (CMP_GE(_flag_a, _flag_b)) goto L_250985AE; /* 0x25098584: jge 0x250985ae */ 1161 L_25098586: 1162 PUSH32(esp, eax); /* 0x25098586: push eax */ 1163 PUSH32(esp, esi); /* 0x25098587: push esi */ 1164 PUSH32(esp, ebx); /* 0x25098588: push ebx */ 1165 edx = ebp + 0xC; /* 0x25098589: lea edx, [ebp + 0xc] */ 1166 PUSH32(esp, edx); /* 0x2509858C: push edx */ 1167 ecx = edi; /* 0x2509858D: mov ecx, edi */ 1168 RECOMP_ICALL(0x25098A90u); /* 0x2509858F: call 0x25098a90 */ /* not lifted */ 1169 RECOMP_FLAGS_IN(); 1170 ecx = MEM32(eax); /* 0x25098594: mov ecx, dword ptr [eax] */ 1171 eax = MEM32(ebp + 0x8); /* 0x25098596: mov eax, dword ptr [ebp + 8] */ 1172 edi = POP32_VAL(esp); /* 0x25098599: pop edi */ 1173 MEM32(eax) = ecx; /* 0x2509859A: mov dword ptr [eax], ecx */ 1174 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x2509859C: mov byte ptr [ebp - 8], 1 */ 1175 ecx = MEM32(ebp + (-0x8)); /* 0x250985A0: mov ecx, dword ptr [ebp - 8] */ 1176 esi = POP32_VAL(esp); /* 0x250985A3: pop esi */ 1177 MEM32(eax + 0x4) = ecx; /* 0x250985A4: mov dword ptr [eax + 4], ecx */ 1178 ebx = POP32_VAL(esp); /* 0x250985A7: pop ebx */ 1179 esp = ebp; /* 0x250985A8: mov esp, ebp */ 1180 ebp = POP32_VAL(esp); /* 0x250985AA: pop ebp */ 1181 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250985AB: ret 8 */ 1182 L_250985AE: 1183 eax = MEM32(ebp + 0x8); /* 0x250985AE: mov eax, dword ptr [ebp + 8] */ 1184 edi = POP32_VAL(esp); /* 0x250985B1: pop edi */ 1185 MEM32(eax) = edx; /* 0x250985B2: mov dword ptr [eax], edx */ 1186 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x250985B4: mov byte ptr [ebp - 8], 0 */ 1187 edx = MEM32(ebp + (-0x8)); /* 0x250985B8: mov edx, dword ptr [ebp - 8] */ 1188 esi = POP32_VAL(esp); /* 0x250985BB: pop esi */ 1189 MEM32(eax + 0x4) = edx; /* 0x250985BC: mov dword ptr [eax + 4], edx */ 1190 ebx = POP32_VAL(esp); /* 0x250985BF: pop ebx */ 1191 esp = ebp; /* 0x250985C0: mov esp, ebp */ 1192 ebp = POP32_VAL(esp); /* 0x250985C2: pop ebp */ 1193 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x250985C3: ret 8 */ 1194 RECOMP_REGS_OUT(); 1195 } 1196 1197 void sub_250985D0(void) { 1198 int _fpu_cmp = 0; 1199 uint32_t _cf = 0; 1200 int _df = 1; 1201 uint32_t _flag_k = FK_NONE; 1202 uint32_t _flag_a = 0, _flag_b = 0; 1203 uint32_t _itail_tgt = 0; 1204 RECOMP_REGS_LOCALS 1205 RECOMP_ENTER(0x250985D0u); 1206 1207 L_250985D0: 1208 PUSH32(esp, ebp); /* 0x250985D0: push ebp */ 1209 ebp = esp; /* 0x250985D1: mov ebp, esp */ 1210 PUSH32(esp, ecx); /* 0x250985D3: push ecx */ 1211 PUSH32(esp, ebx); /* 0x250985D4: push ebx */ 1212 PUSH32(esp, esi); /* 0x250985D5: push esi */ 1213 esi = MEM32(ebp + 0xC); /* 0x250985D6: mov esi, dword ptr [ebp + 0xc] */ 1214 PUSH32(esp, edi); /* 0x250985D9: push edi */ 1215 edi = ecx; /* 0x250985DA: mov edi, ecx */ 1216 ecx = ebp + 0xC; /* 0x250985DC: lea ecx, [ebp + 0xc] */ 1217 RECOMP_ICALL(0x250DE300u); /* 0x250985DF: call 0x250de300 */ /* not lifted */ 1218 RECOMP_FLAGS_IN(); 1219 edx = MEM32(esi); /* 0x250985E4: mov edx, dword ptr [esi] */ 1220 eax = MEM32(edi + 0x8); /* 0x250985E6: mov eax, dword ptr [edi + 8] */ 1221 /* cmp edx, eax */ /* 0x250985E9: cmp edx, eax */ 1222 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1224 _flag_k = FK_CMP; 1225 MEM32(ebp + (-0x4)) = esi; /* 0x250985EB: mov dword ptr [ebp - 4], esi */ 1226 if (CMP_NE(_flag_a, _flag_b)) goto L_25098610; /* 0x250985EE: jne 0x25098610 */ 1227 L_250985F0: 1228 eax = MEM32(esi + 0x8); /* 0x250985F0: mov eax, dword ptr [esi + 8] */ 1229 L_250985F3: 1230 ecx = MEM32(ebp + (-0x4)); /* 0x250985F3: mov ecx, dword ptr [ebp - 4] */ 1231 edx = MEM32(ecx + 0x4); /* 0x250985F6: mov edx, dword ptr [ecx + 4] */ 1232 MEM32(eax + 0x4) = edx; /* 0x250985F9: mov dword ptr [eax + 4], edx */ 1233 ecx = MEM32(edi + 0x4); /* 0x250985FC: mov ecx, dword ptr [edi + 4] */ 1234 /* cmp MEM32(ecx + 0x4), esi */ /* 0x250985FF: cmp dword ptr [ecx + 4], esi */ 1235 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 1236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1237 _flag_k = FK_CMP; 1238 if (CMP_NE(_flag_a, _flag_b)) goto L_25098693; /* 0x25098602: jne 0x25098693 */ 1239 L_25098608: 1240 MEM32(ecx + 0x4) = eax; /* 0x25098608: mov dword ptr [ecx + 4], eax */ 1241 goto L_250986A1; /* 0x2509860B: jmp 0x250986a1 */ 1242 L_25098610: 1243 ecx = MEM32(esi + 0x8); /* 0x25098610: mov ecx, dword ptr [esi + 8] */ 1244 /* cmp ecx, eax */ /* 0x25098613: cmp ecx, eax */ 1245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1247 _flag_k = FK_CMP; 1248 if (CMP_NE(_flag_a, _flag_b)) goto L_2509861B; /* 0x25098615: jne 0x2509861b */ 1249 L_25098617: 1250 eax = edx; /* 0x25098617: mov eax, edx */ 1251 RECOMP_BACKEDGE(); 1252 goto L_250985F3; /* 0x25098619: jmp 0x250985f3 */ 1253 L_2509861B: 1254 eax = MEM32(ecx); /* 0x2509861B: mov eax, dword ptr [ecx] */ 1255 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x2509861D: mov bl, byte ptr [eax + 0x15] */ 1256 /* test LO8(ebx), LO8(ebx) */ /* 0x25098620: test bl, bl */ 1257 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1258 _cf = 0; 1259 _flag_k = FK_NARROW(FK_TEST, 24); 1260 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509862F; /* 0x25098622: jne 0x2509862f */ 1261 L_25098624: 1262 ecx = eax; /* 0x25098624: mov ecx, eax */ 1263 eax = MEM32(ecx); /* 0x25098626: mov eax, dword ptr [ecx] */ 1264 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x25098628: mov bl, byte ptr [eax + 0x15] */ 1265 /* test LO8(ebx), LO8(ebx) */ /* 0x2509862B: test bl, bl */ 1266 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1267 _cf = 0; 1268 _flag_k = FK_NARROW(FK_TEST, 24); 1269 RECOMP_BACKEDGE(); 1270 if (TEST_Z(_flag_a, _flag_b)) goto L_25098624; /* 0x2509862D: je 0x25098624 */ 1271 L_2509862F: 1272 /* cmp ecx, esi */ /* 0x2509862F: cmp ecx, esi */ 1273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1275 _flag_k = FK_CMP; 1276 eax = MEM32(ecx + 0x8); /* 0x25098631: mov eax, dword ptr [ecx + 8] */ 1277 MEM32(ebp + (-0x4)) = ecx; /* 0x25098634: mov dword ptr [ebp - 4], ecx */ 1278 RECOMP_BACKEDGE(); 1279 if (CMP_EQ(_flag_a, _flag_b)) goto L_250985F3; /* 0x25098637: je 0x250985f3 */ 1280 L_25098639: 1281 MEM32(edx + 0x4) = ecx; /* 0x25098639: mov dword ptr [edx + 4], ecx */ 1282 edx = MEM32(esi); /* 0x2509863C: mov edx, dword ptr [esi] */ 1283 MEM32(ecx) = edx; /* 0x2509863E: mov dword ptr [ecx], edx */ 1284 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098640: cmp ecx, dword ptr [esi + 8] */ 1285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1287 _flag_k = FK_CMP; 1288 if (CMP_NE(_flag_a, _flag_b)) goto L_2509864A; /* 0x25098643: jne 0x2509864a */ 1289 L_25098645: 1290 MEM32(eax + 0x4) = ecx; /* 0x25098645: mov dword ptr [eax + 4], ecx */ 1291 goto L_25098661; /* 0x25098648: jmp 0x25098661 */ 1292 L_2509864A: 1293 edx = MEM32(ecx + 0x4); /* 0x2509864A: mov edx, dword ptr [ecx + 4] */ 1294 MEM32(eax + 0x4) = edx; /* 0x2509864D: mov dword ptr [eax + 4], edx */ 1295 edx = MEM32(ecx + 0x4); /* 0x25098650: mov edx, dword ptr [ecx + 4] */ 1296 MEM32(edx) = eax; /* 0x25098653: mov dword ptr [edx], eax */ 1297 edx = MEM32(esi + 0x8); /* 0x25098655: mov edx, dword ptr [esi + 8] */ 1298 MEM32(ecx + 0x8) = edx; /* 0x25098658: mov dword ptr [ecx + 8], edx */ 1299 edx = MEM32(esi + 0x8); /* 0x2509865B: mov edx, dword ptr [esi + 8] */ 1300 MEM32(edx + 0x4) = ecx; /* 0x2509865E: mov dword ptr [edx + 4], ecx */ 1301 L_25098661: 1302 edx = MEM32(edi + 0x4); /* 0x25098661: mov edx, dword ptr [edi + 4] */ 1303 /* cmp MEM32(edx + 0x4), esi */ /* 0x25098664: cmp dword ptr [edx + 4], esi */ 1304 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 1305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1306 _flag_k = FK_CMP; 1307 if (CMP_NE(_flag_a, _flag_b)) goto L_2509866E; /* 0x25098667: jne 0x2509866e */ 1308 L_25098669: 1309 MEM32(edx + 0x4) = ecx; /* 0x25098669: mov dword ptr [edx + 4], ecx */ 1310 goto L_2509867C; /* 0x2509866C: jmp 0x2509867c */ 1311 L_2509866E: 1312 edx = MEM32(esi + 0x4); /* 0x2509866E: mov edx, dword ptr [esi + 4] */ 1313 /* cmp MEM32(edx), esi */ /* 0x25098671: cmp dword ptr [edx], esi */ 1314 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 1315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1316 _flag_k = FK_CMP; 1317 if (CMP_NE(_flag_a, _flag_b)) goto L_25098679; /* 0x25098673: jne 0x25098679 */ 1318 L_25098675: 1319 MEM32(edx) = ecx; /* 0x25098675: mov dword ptr [edx], ecx */ 1320 goto L_2509867C; /* 0x25098677: jmp 0x2509867c */ 1321 L_25098679: 1322 MEM32(edx + 0x8) = ecx; /* 0x25098679: mov dword ptr [edx + 8], ecx */ 1323 L_2509867C: 1324 edx = MEM32(esi + 0x4); /* 0x2509867C: mov edx, dword ptr [esi + 4] */ 1325 MEM32(ecx + 0x4) = edx; /* 0x2509867F: mov dword ptr [ecx + 4], edx */ 1326 SET_LO8(ebx, MEM8(esi + 0x14)); /* 0x25098682: mov bl, byte ptr [esi + 0x14] */ 1327 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098685: mov dl, byte ptr [ecx + 0x14] */ 1328 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098688: mov byte ptr [ecx + 0x14], bl */ 1329 MEM8(esi + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509868B: mov byte ptr [esi + 0x14], dl */ 1330 MEM32(ebp + (-0x4)) = esi; /* 0x2509868E: mov dword ptr [ebp - 4], esi */ 1331 goto L_250986F8; /* 0x25098691: jmp 0x250986f8 */ 1332 L_25098693: 1333 ecx = MEM32(esi + 0x4); /* 0x25098693: mov ecx, dword ptr [esi + 4] */ 1334 /* cmp MEM32(ecx), esi */ /* 0x25098696: cmp dword ptr [ecx], esi */ 1335 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 1336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1337 _flag_k = FK_CMP; 1338 if (CMP_NE(_flag_a, _flag_b)) goto L_2509869E; /* 0x25098698: jne 0x2509869e */ 1339 L_2509869A: 1340 MEM32(ecx) = eax; /* 0x2509869A: mov dword ptr [ecx], eax */ 1341 goto L_250986A1; /* 0x2509869C: jmp 0x250986a1 */ 1342 L_2509869E: 1343 MEM32(ecx + 0x8) = eax; /* 0x2509869E: mov dword ptr [ecx + 8], eax */ 1344 L_250986A1: 1345 ebx = MEM32(edi + 0x4); /* 0x250986A1: mov ebx, dword ptr [edi + 4] */ 1346 /* cmp MEM32(ebx), esi */ /* 0x250986A4: cmp dword ptr [ebx], esi */ 1347 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 1348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1349 _flag_k = FK_CMP; 1350 if (CMP_NE(_flag_a, _flag_b)) goto L_250986CB; /* 0x250986A6: jne 0x250986cb */ 1351 L_250986A8: 1352 ecx = MEM32(esi + 0x8); /* 0x250986A8: mov ecx, dword ptr [esi + 8] */ 1353 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x250986AB: cmp ecx, dword ptr [edi + 8] */ 1354 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1356 _flag_k = FK_CMP; 1357 if (CMP_NE(_flag_a, _flag_b)) goto L_250986B5; /* 0x250986AE: jne 0x250986b5 */ 1358 L_250986B0: 1359 edx = MEM32(esi + 0x4); /* 0x250986B0: mov edx, dword ptr [esi + 4] */ 1360 goto L_250986C9; /* 0x250986B3: jmp 0x250986c9 */ 1361 L_250986B5: 1362 ecx = MEM32(eax); /* 0x250986B5: mov ecx, dword ptr [eax] */ 1363 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986B7: cmp byte ptr [ecx + 0x15], 0 */ 1364 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1366 _flag_k = FK_NARROW(FK_CMP, 24); 1367 edx = eax; /* 0x250986BB: mov edx, eax */ 1368 if (CMP_NE(_flag_a, _flag_b)) goto L_250986C9; /* 0x250986BD: jne 0x250986c9 */ 1369 L_250986BF: 1370 edx = ecx; /* 0x250986BF: mov edx, ecx */ 1371 ecx = MEM32(edx); /* 0x250986C1: mov ecx, dword ptr [edx] */ 1372 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986C3: cmp byte ptr [ecx + 0x15], 0 */ 1373 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1375 _flag_k = FK_NARROW(FK_CMP, 24); 1376 RECOMP_BACKEDGE(); 1377 if (CMP_EQ(_flag_a, _flag_b)) goto L_250986BF; /* 0x250986C7: je 0x250986bf */ 1378 L_250986C9: 1379 MEM32(ebx) = edx; /* 0x250986C9: mov dword ptr [ebx], edx */ 1380 L_250986CB: 1381 ebx = MEM32(edi + 0x4); /* 0x250986CB: mov ebx, dword ptr [edi + 4] */ 1382 /* cmp MEM32(ebx + 0x8), esi */ /* 0x250986CE: cmp dword ptr [ebx + 8], esi */ 1383 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 1384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1385 _flag_k = FK_CMP; 1386 if (CMP_NE(_flag_a, _flag_b)) goto L_250986F8; /* 0x250986D1: jne 0x250986f8 */ 1387 L_250986D3: 1388 ecx = MEM32(esi); /* 0x250986D3: mov ecx, dword ptr [esi] */ 1389 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x250986D5: cmp ecx, dword ptr [edi + 8] */ 1390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1392 _flag_k = FK_CMP; 1393 if (CMP_NE(_flag_a, _flag_b)) goto L_250986DF; /* 0x250986D8: jne 0x250986df */ 1394 L_250986DA: 1395 edx = MEM32(esi + 0x4); /* 0x250986DA: mov edx, dword ptr [esi + 4] */ 1396 goto L_250986F5; /* 0x250986DD: jmp 0x250986f5 */ 1397 L_250986DF: 1398 ecx = MEM32(eax + 0x8); /* 0x250986DF: mov ecx, dword ptr [eax + 8] */ 1399 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986E2: cmp byte ptr [ecx + 0x15], 0 */ 1400 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1402 _flag_k = FK_NARROW(FK_CMP, 24); 1403 edx = eax; /* 0x250986E6: mov edx, eax */ 1404 if (CMP_NE(_flag_a, _flag_b)) goto L_250986F5; /* 0x250986E8: jne 0x250986f5 */ 1405 L_250986EA: 1406 edx = ecx; /* 0x250986EA: mov edx, ecx */ 1407 ecx = MEM32(edx + 0x8); /* 0x250986EC: mov ecx, dword ptr [edx + 8] */ 1408 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986EF: cmp byte ptr [ecx + 0x15], 0 */ 1409 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1411 _flag_k = FK_NARROW(FK_CMP, 24); 1412 RECOMP_BACKEDGE(); 1413 if (CMP_EQ(_flag_a, _flag_b)) goto L_250986EA; /* 0x250986F3: je 0x250986ea */ 1414 L_250986F5: 1415 MEM32(ebx + 0x8) = edx; /* 0x250986F5: mov dword ptr [ebx + 8], edx */ 1416 L_250986F8: 1417 ecx = MEM32(ebp + (-0x4)); /* 0x250986F8: mov ecx, dword ptr [ebp - 4] */ 1418 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x250986FB: mov dl, byte ptr [ecx + 0x14] */ 1419 SET_LO8(ebx, 1); /* 0x250986FE: mov bl, 1 */ 1420 /* cmp LO8(edx), LO8(ebx) */ /* 0x25098700: cmp dl, bl */ 1421 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1423 _flag_k = FK_NARROW(FK_CMP, 24); 1424 if (CMP_NE(_flag_a, _flag_b)) goto L_25098965; /* 0x25098702: jne 0x25098965 */ 1425 L_25098708: 1426 edx = MEM32(edi + 0x4); /* 0x25098708: mov edx, dword ptr [edi + 4] */ 1427 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2509870B: cmp eax, dword ptr [edx + 4] */ 1428 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1430 _flag_k = FK_CMP; 1431 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098962; /* 0x2509870E: je 0x25098962 */ 1432 L_25098714: 1433 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 1434 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1436 _flag_k = FK_NARROW(FK_CMP, 24); 1437 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 1438 L_2509871D: 1439 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 1440 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 1441 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 1442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1444 _flag_k = FK_CMP; 1445 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 1446 L_25098726: 1447 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 1448 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 1449 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 1450 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1451 _cf = 0; 1452 _flag_k = FK_NARROW(FK_TEST, 24); 1453 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 1454 L_25098730: 1455 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 1456 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 1457 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 1458 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 1459 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 1460 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 1461 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 1462 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 1463 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 1464 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1466 _flag_k = FK_CMP; 1467 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 1468 L_2509874C: 1469 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 1470 L_2509874F: 1471 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 1472 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 1473 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 1474 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 1475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1477 _flag_k = FK_CMP; 1478 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 1479 L_2509875D: 1480 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 1481 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 1482 L_25098762: 1483 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 1484 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 1485 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 1486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1487 _flag_k = FK_CMP; 1488 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 1489 L_25098769: 1490 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 1491 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 1492 L_2509876D: 1493 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 1494 L_25098770: 1495 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 1496 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 1497 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 1498 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 1499 L_2509877B: 1500 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 1501 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 1502 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1504 _flag_k = FK_NARROW(FK_CMP, 24); 1505 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 1506 L_25098786: 1507 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 1508 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 1509 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1511 _flag_k = FK_NARROW(FK_CMP, 24); 1512 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 1513 L_25098792: 1514 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 1515 L_25098794: 1516 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 1517 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 1518 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1519 _cf = 0; 1520 _flag_k = FK_NARROW(FK_TEST, 24); 1521 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 1522 L_2509879B: 1523 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 1524 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 1525 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 1526 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 1527 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 1528 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 1529 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 1530 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 1531 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 1532 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1534 _flag_k = FK_CMP; 1535 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 1536 L_250987B7: 1537 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 1538 L_250987BA: 1539 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 1540 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 1541 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 1542 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 1543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1545 _flag_k = FK_CMP; 1546 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 1547 L_250987C8: 1548 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 1549 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 1550 L_250987CD: 1551 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 1552 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 1553 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1555 _flag_k = FK_CMP; 1556 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 1557 L_250987D5: 1558 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 1559 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 1560 L_250987DA: 1561 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 1562 L_250987DC: 1563 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 1564 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 1565 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 1566 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 1567 L_250987E7: 1568 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 1569 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 1570 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1572 _flag_k = FK_NARROW(FK_CMP, 24); 1573 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 1574 L_250987F3: 1575 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 1576 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 1577 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1579 _flag_k = FK_NARROW(FK_CMP, 24); 1580 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 1581 L_250987FE: 1582 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 1583 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 1584 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 1585 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 1586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1588 _flag_k = FK_CMP; 1589 RECOMP_BACKEDGE(); 1590 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 1591 L_25098811: 1592 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 1593 L_25098816: 1594 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 1595 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 1596 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1598 _flag_k = FK_NARROW(FK_CMP, 24); 1599 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 1600 L_2509881E: 1601 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 1602 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 1603 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 1604 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 1605 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 1606 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 1607 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 1608 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 1609 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1611 _flag_k = FK_CMP; 1612 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 1613 L_25098836: 1614 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 1615 L_25098839: 1616 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 1617 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 1618 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 1619 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 1620 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1622 _flag_k = FK_CMP; 1623 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 1624 L_25098847: 1625 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 1626 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 1627 L_2509884C: 1628 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 1629 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 1630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1632 _flag_k = FK_CMP; 1633 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 1634 L_25098854: 1635 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 1636 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 1637 L_25098859: 1638 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 1639 L_2509885B: 1640 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 1641 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 1642 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 1643 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 1644 L_25098867: 1645 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 1646 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 1647 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 1648 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 1649 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 1650 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 1651 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 1652 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 1653 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 1654 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 1655 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 1656 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 1657 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 1658 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1660 _flag_k = FK_CMP; 1661 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 1662 L_2509888E: 1663 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 1664 L_25098891: 1665 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 1666 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 1667 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 1668 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 1669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1671 _flag_k = FK_CMP; 1672 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 1673 L_2509889F: 1674 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 1675 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 1676 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 1677 L_250988A9: 1678 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 1679 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 1680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 1681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1682 _flag_k = FK_CMP; 1683 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 1684 L_250988B0: 1685 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 1686 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 1687 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 1688 L_250988B9: 1689 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 1690 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 1691 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 1692 L_250988C3: 1693 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 1694 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 1695 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1697 _flag_k = FK_NARROW(FK_CMP, 24); 1698 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 1699 L_250988CA: 1700 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 1701 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 1702 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 1703 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 1704 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 1705 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 1706 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 1707 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 1708 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1710 _flag_k = FK_CMP; 1711 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 1712 L_250988E3: 1713 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 1714 L_250988E6: 1715 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 1716 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 1717 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 1718 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 1719 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1721 _flag_k = FK_CMP; 1722 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 1723 L_250988F4: 1724 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 1725 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 1726 L_250988F9: 1727 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 1728 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 1729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 1730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1731 _flag_k = FK_CMP; 1732 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 1733 L_25098900: 1734 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 1735 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 1736 L_25098904: 1737 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 1738 L_25098907: 1739 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 1740 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 1741 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 1742 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 1743 L_25098911: 1744 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 1745 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 1746 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 1747 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 1748 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 1749 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 1750 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 1751 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 1752 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 1753 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 1754 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 1755 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 1756 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 1757 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1759 _flag_k = FK_CMP; 1760 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 1761 L_25098937: 1762 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 1763 L_2509893A: 1764 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 1765 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 1766 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 1767 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 1768 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1770 _flag_k = FK_CMP; 1771 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 1772 L_25098948: 1773 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 1774 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 1775 L_2509894D: 1776 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 1777 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 1778 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1780 _flag_k = FK_CMP; 1781 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 1782 L_25098955: 1783 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 1784 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 1785 L_2509895A: 1786 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 1787 L_2509895C: 1788 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 1789 L_2509895F: 1790 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 1791 L_25098962: 1792 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 1793 L_25098965: 1794 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 1795 PUSH32(esp, edx); /* 0x25098968: push edx */ 1796 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 1797 RECOMP_FLAGS_IN(); 1798 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 1799 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 1800 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1802 esp = esp + 4; /* 0x25098974: add esp, 4 */ 1803 _flag_k = FK_ADD; 1804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1805 eax = eax - 1; /* 0x25098977: dec eax */ 1806 _flag_k = FK_DEC; 1807 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 1808 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 1809 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 1810 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 1811 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 1812 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 1813 esp = ebp; /* 0x25098983: mov esp, ebp */ 1814 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 1815 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 1816 RECOMP_REGS_OUT(); 1817 } 1818 1819 void sub_250986A1(void) { 1820 int _fpu_cmp = 0; 1821 uint32_t _cf = 0; 1822 int _df = 1; 1823 uint32_t _flag_k = FK_NONE; 1824 uint32_t _flag_a = 0, _flag_b = 0; 1825 uint32_t _itail_tgt = 0; 1826 RECOMP_REGS_LOCALS 1827 RECOMP_ENTER(0x250986A1u); 1828 1829 L_250986A1: 1830 ebx = MEM32(edi + 0x4); /* 0x250986A1: mov ebx, dword ptr [edi + 4] */ 1831 /* cmp MEM32(ebx), esi */ /* 0x250986A4: cmp dword ptr [ebx], esi */ 1832 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 1833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1834 _flag_k = FK_CMP; 1835 if (CMP_NE(_flag_a, _flag_b)) goto L_250986CB; /* 0x250986A6: jne 0x250986cb */ 1836 L_250986A8: 1837 ecx = MEM32(esi + 0x8); /* 0x250986A8: mov ecx, dword ptr [esi + 8] */ 1838 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x250986AB: cmp ecx, dword ptr [edi + 8] */ 1839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1841 _flag_k = FK_CMP; 1842 if (CMP_NE(_flag_a, _flag_b)) goto L_250986B5; /* 0x250986AE: jne 0x250986b5 */ 1843 L_250986B0: 1844 edx = MEM32(esi + 0x4); /* 0x250986B0: mov edx, dword ptr [esi + 4] */ 1845 goto L_250986C9; /* 0x250986B3: jmp 0x250986c9 */ 1846 L_250986B5: 1847 ecx = MEM32(eax); /* 0x250986B5: mov ecx, dword ptr [eax] */ 1848 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986B7: cmp byte ptr [ecx + 0x15], 0 */ 1849 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1851 _flag_k = FK_NARROW(FK_CMP, 24); 1852 edx = eax; /* 0x250986BB: mov edx, eax */ 1853 if (CMP_NE(_flag_a, _flag_b)) goto L_250986C9; /* 0x250986BD: jne 0x250986c9 */ 1854 L_250986BF: 1855 edx = ecx; /* 0x250986BF: mov edx, ecx */ 1856 ecx = MEM32(edx); /* 0x250986C1: mov ecx, dword ptr [edx] */ 1857 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986C3: cmp byte ptr [ecx + 0x15], 0 */ 1858 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1860 _flag_k = FK_NARROW(FK_CMP, 24); 1861 RECOMP_BACKEDGE(); 1862 if (CMP_EQ(_flag_a, _flag_b)) goto L_250986BF; /* 0x250986C7: je 0x250986bf */ 1863 L_250986C9: 1864 MEM32(ebx) = edx; /* 0x250986C9: mov dword ptr [ebx], edx */ 1865 L_250986CB: 1866 ebx = MEM32(edi + 0x4); /* 0x250986CB: mov ebx, dword ptr [edi + 4] */ 1867 /* cmp MEM32(ebx + 0x8), esi */ /* 0x250986CE: cmp dword ptr [ebx + 8], esi */ 1868 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 1869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1870 _flag_k = FK_CMP; 1871 if (CMP_NE(_flag_a, _flag_b)) goto L_250986F8; /* 0x250986D1: jne 0x250986f8 */ 1872 L_250986D3: 1873 ecx = MEM32(esi); /* 0x250986D3: mov ecx, dword ptr [esi] */ 1874 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x250986D5: cmp ecx, dword ptr [edi + 8] */ 1875 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1877 _flag_k = FK_CMP; 1878 if (CMP_NE(_flag_a, _flag_b)) goto L_250986DF; /* 0x250986D8: jne 0x250986df */ 1879 L_250986DA: 1880 edx = MEM32(esi + 0x4); /* 0x250986DA: mov edx, dword ptr [esi + 4] */ 1881 goto L_250986F5; /* 0x250986DD: jmp 0x250986f5 */ 1882 L_250986DF: 1883 ecx = MEM32(eax + 0x8); /* 0x250986DF: mov ecx, dword ptr [eax + 8] */ 1884 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986E2: cmp byte ptr [ecx + 0x15], 0 */ 1885 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1887 _flag_k = FK_NARROW(FK_CMP, 24); 1888 edx = eax; /* 0x250986E6: mov edx, eax */ 1889 if (CMP_NE(_flag_a, _flag_b)) goto L_250986F5; /* 0x250986E8: jne 0x250986f5 */ 1890 L_250986EA: 1891 edx = ecx; /* 0x250986EA: mov edx, ecx */ 1892 ecx = MEM32(edx + 0x8); /* 0x250986EC: mov ecx, dword ptr [edx + 8] */ 1893 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986EF: cmp byte ptr [ecx + 0x15], 0 */ 1894 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 1895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1896 _flag_k = FK_NARROW(FK_CMP, 24); 1897 RECOMP_BACKEDGE(); 1898 if (CMP_EQ(_flag_a, _flag_b)) goto L_250986EA; /* 0x250986F3: je 0x250986ea */ 1899 L_250986F5: 1900 MEM32(ebx + 0x8) = edx; /* 0x250986F5: mov dword ptr [ebx + 8], edx */ 1901 L_250986F8: 1902 ecx = MEM32(ebp + (-0x4)); /* 0x250986F8: mov ecx, dword ptr [ebp - 4] */ 1903 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x250986FB: mov dl, byte ptr [ecx + 0x14] */ 1904 SET_LO8(ebx, 1); /* 0x250986FE: mov bl, 1 */ 1905 /* cmp LO8(edx), LO8(ebx) */ /* 0x25098700: cmp dl, bl */ 1906 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1908 _flag_k = FK_NARROW(FK_CMP, 24); 1909 if (CMP_NE(_flag_a, _flag_b)) goto L_25098965; /* 0x25098702: jne 0x25098965 */ 1910 L_25098708: 1911 edx = MEM32(edi + 0x4); /* 0x25098708: mov edx, dword ptr [edi + 4] */ 1912 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2509870B: cmp eax, dword ptr [edx + 4] */ 1913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1915 _flag_k = FK_CMP; 1916 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098962; /* 0x2509870E: je 0x25098962 */ 1917 L_25098714: 1918 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 1919 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1921 _flag_k = FK_NARROW(FK_CMP, 24); 1922 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 1923 L_2509871D: 1924 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 1925 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 1926 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 1927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1929 _flag_k = FK_CMP; 1930 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 1931 L_25098726: 1932 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 1933 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 1934 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 1935 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1936 _cf = 0; 1937 _flag_k = FK_NARROW(FK_TEST, 24); 1938 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 1939 L_25098730: 1940 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 1941 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 1942 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 1943 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 1944 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 1945 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 1946 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 1947 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 1948 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 1949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1951 _flag_k = FK_CMP; 1952 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 1953 L_2509874C: 1954 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 1955 L_2509874F: 1956 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 1957 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 1958 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 1959 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 1960 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1962 _flag_k = FK_CMP; 1963 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 1964 L_2509875D: 1965 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 1966 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 1967 L_25098762: 1968 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 1969 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 1970 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 1971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1972 _flag_k = FK_CMP; 1973 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 1974 L_25098769: 1975 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 1976 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 1977 L_2509876D: 1978 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 1979 L_25098770: 1980 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 1981 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 1982 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 1983 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 1984 L_2509877B: 1985 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 1986 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 1987 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1989 _flag_k = FK_NARROW(FK_CMP, 24); 1990 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 1991 L_25098786: 1992 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 1993 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 1994 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1996 _flag_k = FK_NARROW(FK_CMP, 24); 1997 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 1998 L_25098792: 1999 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 2000 L_25098794: 2001 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 2002 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 2003 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2004 _cf = 0; 2005 _flag_k = FK_NARROW(FK_TEST, 24); 2006 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 2007 L_2509879B: 2008 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 2009 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 2010 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 2011 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 2012 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 2013 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 2014 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 2015 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 2016 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 2017 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2019 _flag_k = FK_CMP; 2020 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 2021 L_250987B7: 2022 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 2023 L_250987BA: 2024 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 2025 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 2026 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 2027 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 2028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2030 _flag_k = FK_CMP; 2031 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 2032 L_250987C8: 2033 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 2034 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 2035 L_250987CD: 2036 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 2037 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 2038 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2040 _flag_k = FK_CMP; 2041 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 2042 L_250987D5: 2043 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 2044 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 2045 L_250987DA: 2046 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 2047 L_250987DC: 2048 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 2049 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 2050 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 2051 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 2052 L_250987E7: 2053 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 2054 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 2055 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2057 _flag_k = FK_NARROW(FK_CMP, 24); 2058 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 2059 L_250987F3: 2060 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 2061 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 2062 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2064 _flag_k = FK_NARROW(FK_CMP, 24); 2065 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 2066 L_250987FE: 2067 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 2068 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 2069 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 2070 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 2071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2073 _flag_k = FK_CMP; 2074 RECOMP_BACKEDGE(); 2075 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 2076 L_25098811: 2077 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 2078 L_25098816: 2079 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 2080 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 2081 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2083 _flag_k = FK_NARROW(FK_CMP, 24); 2084 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 2085 L_2509881E: 2086 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 2087 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 2088 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 2089 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 2090 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 2091 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 2092 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 2093 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 2094 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2096 _flag_k = FK_CMP; 2097 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 2098 L_25098836: 2099 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 2100 L_25098839: 2101 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 2102 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 2103 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 2104 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 2105 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2107 _flag_k = FK_CMP; 2108 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 2109 L_25098847: 2110 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 2111 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 2112 L_2509884C: 2113 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 2114 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 2115 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2117 _flag_k = FK_CMP; 2118 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 2119 L_25098854: 2120 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 2121 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 2122 L_25098859: 2123 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 2124 L_2509885B: 2125 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 2126 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 2127 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 2128 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 2129 L_25098867: 2130 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 2131 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 2132 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 2133 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 2134 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 2135 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 2136 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 2137 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 2138 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 2139 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 2140 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 2141 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 2142 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 2143 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2145 _flag_k = FK_CMP; 2146 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 2147 L_2509888E: 2148 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 2149 L_25098891: 2150 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 2151 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 2152 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 2153 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 2154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2156 _flag_k = FK_CMP; 2157 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 2158 L_2509889F: 2159 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 2160 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 2161 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 2162 L_250988A9: 2163 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 2164 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 2165 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2167 _flag_k = FK_CMP; 2168 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 2169 L_250988B0: 2170 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 2171 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 2172 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 2173 L_250988B9: 2174 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 2175 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 2176 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 2177 L_250988C3: 2178 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 2179 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 2180 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2182 _flag_k = FK_NARROW(FK_CMP, 24); 2183 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 2184 L_250988CA: 2185 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 2186 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 2187 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 2188 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 2189 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 2190 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 2191 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 2192 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 2193 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2195 _flag_k = FK_CMP; 2196 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 2197 L_250988E3: 2198 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 2199 L_250988E6: 2200 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 2201 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 2202 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 2203 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 2204 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2206 _flag_k = FK_CMP; 2207 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 2208 L_250988F4: 2209 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 2210 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 2211 L_250988F9: 2212 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 2213 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 2214 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2216 _flag_k = FK_CMP; 2217 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 2218 L_25098900: 2219 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 2220 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 2221 L_25098904: 2222 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 2223 L_25098907: 2224 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 2225 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 2226 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 2227 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 2228 L_25098911: 2229 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 2230 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 2231 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 2232 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 2233 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 2234 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 2235 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 2236 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 2237 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 2238 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 2239 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 2240 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 2241 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 2242 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2244 _flag_k = FK_CMP; 2245 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 2246 L_25098937: 2247 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 2248 L_2509893A: 2249 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 2250 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 2251 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 2252 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 2253 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2255 _flag_k = FK_CMP; 2256 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 2257 L_25098948: 2258 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 2259 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 2260 L_2509894D: 2261 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 2262 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 2263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2265 _flag_k = FK_CMP; 2266 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 2267 L_25098955: 2268 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 2269 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 2270 L_2509895A: 2271 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 2272 L_2509895C: 2273 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 2274 L_2509895F: 2275 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 2276 L_25098962: 2277 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 2278 L_25098965: 2279 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 2280 PUSH32(esp, edx); /* 0x25098968: push edx */ 2281 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 2282 RECOMP_FLAGS_IN(); 2283 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 2284 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 2285 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2286 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2287 esp = esp + 4; /* 0x25098974: add esp, 4 */ 2288 _flag_k = FK_ADD; 2289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2290 eax = eax - 1; /* 0x25098977: dec eax */ 2291 _flag_k = FK_DEC; 2292 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 2293 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 2294 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 2295 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 2296 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 2297 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 2298 esp = ebp; /* 0x25098983: mov esp, ebp */ 2299 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 2300 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 2301 RECOMP_REGS_OUT(); 2302 } 2303 2304 void sub_250986C9(void) { 2305 int _fpu_cmp = 0; 2306 uint32_t _cf = 0; 2307 int _df = 1; 2308 uint32_t _flag_k = FK_NONE; 2309 uint32_t _flag_a = 0, _flag_b = 0; 2310 uint32_t _itail_tgt = 0; 2311 RECOMP_REGS_LOCALS 2312 RECOMP_ENTER(0x250986C9u); 2313 2314 L_250986C9: 2315 MEM32(ebx) = edx; /* 0x250986C9: mov dword ptr [ebx], edx */ 2316 ebx = MEM32(edi + 0x4); /* 0x250986CB: mov ebx, dword ptr [edi + 4] */ 2317 /* cmp MEM32(ebx + 0x8), esi */ /* 0x250986CE: cmp dword ptr [ebx + 8], esi */ 2318 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 2319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2320 _flag_k = FK_CMP; 2321 if (CMP_NE(_flag_a, _flag_b)) goto L_250986F8; /* 0x250986D1: jne 0x250986f8 */ 2322 L_250986D3: 2323 ecx = MEM32(esi); /* 0x250986D3: mov ecx, dword ptr [esi] */ 2324 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x250986D5: cmp ecx, dword ptr [edi + 8] */ 2325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2327 _flag_k = FK_CMP; 2328 if (CMP_NE(_flag_a, _flag_b)) goto L_250986DF; /* 0x250986D8: jne 0x250986df */ 2329 L_250986DA: 2330 edx = MEM32(esi + 0x4); /* 0x250986DA: mov edx, dword ptr [esi + 4] */ 2331 goto L_250986F5; /* 0x250986DD: jmp 0x250986f5 */ 2332 L_250986DF: 2333 ecx = MEM32(eax + 0x8); /* 0x250986DF: mov ecx, dword ptr [eax + 8] */ 2334 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986E2: cmp byte ptr [ecx + 0x15], 0 */ 2335 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 2336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2337 _flag_k = FK_NARROW(FK_CMP, 24); 2338 edx = eax; /* 0x250986E6: mov edx, eax */ 2339 if (CMP_NE(_flag_a, _flag_b)) goto L_250986F5; /* 0x250986E8: jne 0x250986f5 */ 2340 L_250986EA: 2341 edx = ecx; /* 0x250986EA: mov edx, ecx */ 2342 ecx = MEM32(edx + 0x8); /* 0x250986EC: mov ecx, dword ptr [edx + 8] */ 2343 /* cmp MEM8(ecx + 0x15), 0 */ /* 0x250986EF: cmp byte ptr [ecx + 0x15], 0 */ 2344 _flag_a = (uint32_t)(MEM8(ecx + 0x15)) << 24; _flag_b = (uint32_t)(0) << 24; 2345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2346 _flag_k = FK_NARROW(FK_CMP, 24); 2347 RECOMP_BACKEDGE(); 2348 if (CMP_EQ(_flag_a, _flag_b)) goto L_250986EA; /* 0x250986F3: je 0x250986ea */ 2349 L_250986F5: 2350 MEM32(ebx + 0x8) = edx; /* 0x250986F5: mov dword ptr [ebx + 8], edx */ 2351 L_250986F8: 2352 ecx = MEM32(ebp + (-0x4)); /* 0x250986F8: mov ecx, dword ptr [ebp - 4] */ 2353 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x250986FB: mov dl, byte ptr [ecx + 0x14] */ 2354 SET_LO8(ebx, 1); /* 0x250986FE: mov bl, 1 */ 2355 /* cmp LO8(edx), LO8(ebx) */ /* 0x25098700: cmp dl, bl */ 2356 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2358 _flag_k = FK_NARROW(FK_CMP, 24); 2359 if (CMP_NE(_flag_a, _flag_b)) goto L_25098965; /* 0x25098702: jne 0x25098965 */ 2360 L_25098708: 2361 edx = MEM32(edi + 0x4); /* 0x25098708: mov edx, dword ptr [edi + 4] */ 2362 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2509870B: cmp eax, dword ptr [edx + 4] */ 2363 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2365 _flag_k = FK_CMP; 2366 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098962; /* 0x2509870E: je 0x25098962 */ 2367 L_25098714: 2368 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 2369 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2371 _flag_k = FK_NARROW(FK_CMP, 24); 2372 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 2373 L_2509871D: 2374 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 2375 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 2376 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 2377 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2379 _flag_k = FK_CMP; 2380 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 2381 L_25098726: 2382 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 2383 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 2384 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 2385 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2386 _cf = 0; 2387 _flag_k = FK_NARROW(FK_TEST, 24); 2388 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 2389 L_25098730: 2390 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 2391 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 2392 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 2393 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 2394 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 2395 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 2396 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 2397 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 2398 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 2399 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2401 _flag_k = FK_CMP; 2402 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 2403 L_2509874C: 2404 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 2405 L_2509874F: 2406 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 2407 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 2408 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 2409 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 2410 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2412 _flag_k = FK_CMP; 2413 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 2414 L_2509875D: 2415 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 2416 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 2417 L_25098762: 2418 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 2419 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 2420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2422 _flag_k = FK_CMP; 2423 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 2424 L_25098769: 2425 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 2426 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 2427 L_2509876D: 2428 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 2429 L_25098770: 2430 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 2431 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 2432 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 2433 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 2434 L_2509877B: 2435 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 2436 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 2437 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2439 _flag_k = FK_NARROW(FK_CMP, 24); 2440 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 2441 L_25098786: 2442 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 2443 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 2444 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2446 _flag_k = FK_NARROW(FK_CMP, 24); 2447 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 2448 L_25098792: 2449 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 2450 L_25098794: 2451 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 2452 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 2453 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2454 _cf = 0; 2455 _flag_k = FK_NARROW(FK_TEST, 24); 2456 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 2457 L_2509879B: 2458 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 2459 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 2460 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 2461 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 2462 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 2463 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 2464 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 2465 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 2466 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 2467 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2469 _flag_k = FK_CMP; 2470 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 2471 L_250987B7: 2472 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 2473 L_250987BA: 2474 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 2475 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 2476 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 2477 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 2478 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2480 _flag_k = FK_CMP; 2481 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 2482 L_250987C8: 2483 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 2484 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 2485 L_250987CD: 2486 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 2487 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 2488 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2490 _flag_k = FK_CMP; 2491 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 2492 L_250987D5: 2493 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 2494 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 2495 L_250987DA: 2496 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 2497 L_250987DC: 2498 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 2499 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 2500 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 2501 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 2502 L_250987E7: 2503 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 2504 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 2505 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2507 _flag_k = FK_NARROW(FK_CMP, 24); 2508 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 2509 L_250987F3: 2510 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 2511 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 2512 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2514 _flag_k = FK_NARROW(FK_CMP, 24); 2515 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 2516 L_250987FE: 2517 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 2518 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 2519 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 2520 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 2521 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2523 _flag_k = FK_CMP; 2524 RECOMP_BACKEDGE(); 2525 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 2526 L_25098811: 2527 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 2528 L_25098816: 2529 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 2530 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 2531 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2533 _flag_k = FK_NARROW(FK_CMP, 24); 2534 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 2535 L_2509881E: 2536 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 2537 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 2538 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 2539 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 2540 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 2541 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 2542 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 2543 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 2544 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2546 _flag_k = FK_CMP; 2547 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 2548 L_25098836: 2549 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 2550 L_25098839: 2551 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 2552 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 2553 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 2554 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 2555 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2557 _flag_k = FK_CMP; 2558 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 2559 L_25098847: 2560 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 2561 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 2562 L_2509884C: 2563 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 2564 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 2565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2567 _flag_k = FK_CMP; 2568 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 2569 L_25098854: 2570 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 2571 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 2572 L_25098859: 2573 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 2574 L_2509885B: 2575 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 2576 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 2577 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 2578 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 2579 L_25098867: 2580 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 2581 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 2582 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 2583 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 2584 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 2585 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 2586 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 2587 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 2588 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 2589 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 2590 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 2591 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 2592 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 2593 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2595 _flag_k = FK_CMP; 2596 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 2597 L_2509888E: 2598 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 2599 L_25098891: 2600 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 2601 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 2602 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 2603 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 2604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2606 _flag_k = FK_CMP; 2607 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 2608 L_2509889F: 2609 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 2610 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 2611 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 2612 L_250988A9: 2613 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 2614 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 2615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2617 _flag_k = FK_CMP; 2618 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 2619 L_250988B0: 2620 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 2621 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 2622 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 2623 L_250988B9: 2624 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 2625 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 2626 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 2627 L_250988C3: 2628 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 2629 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 2630 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2632 _flag_k = FK_NARROW(FK_CMP, 24); 2633 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 2634 L_250988CA: 2635 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 2636 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 2637 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 2638 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 2639 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 2640 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 2641 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 2642 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 2643 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2645 _flag_k = FK_CMP; 2646 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 2647 L_250988E3: 2648 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 2649 L_250988E6: 2650 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 2651 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 2652 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 2653 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 2654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2656 _flag_k = FK_CMP; 2657 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 2658 L_250988F4: 2659 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 2660 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 2661 L_250988F9: 2662 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 2663 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 2664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2666 _flag_k = FK_CMP; 2667 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 2668 L_25098900: 2669 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 2670 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 2671 L_25098904: 2672 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 2673 L_25098907: 2674 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 2675 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 2676 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 2677 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 2678 L_25098911: 2679 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 2680 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 2681 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 2682 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 2683 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 2684 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 2685 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 2686 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 2687 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 2688 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 2689 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 2690 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 2691 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 2692 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2694 _flag_k = FK_CMP; 2695 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 2696 L_25098937: 2697 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 2698 L_2509893A: 2699 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 2700 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 2701 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 2702 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 2703 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2705 _flag_k = FK_CMP; 2706 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 2707 L_25098948: 2708 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 2709 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 2710 L_2509894D: 2711 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 2712 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 2713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2715 _flag_k = FK_CMP; 2716 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 2717 L_25098955: 2718 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 2719 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 2720 L_2509895A: 2721 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 2722 L_2509895C: 2723 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 2724 L_2509895F: 2725 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 2726 L_25098962: 2727 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 2728 L_25098965: 2729 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 2730 PUSH32(esp, edx); /* 0x25098968: push edx */ 2731 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 2732 RECOMP_FLAGS_IN(); 2733 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 2734 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 2735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2737 esp = esp + 4; /* 0x25098974: add esp, 4 */ 2738 _flag_k = FK_ADD; 2739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2740 eax = eax - 1; /* 0x25098977: dec eax */ 2741 _flag_k = FK_DEC; 2742 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 2743 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 2744 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 2745 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 2746 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 2747 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 2748 esp = ebp; /* 0x25098983: mov esp, ebp */ 2749 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 2750 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 2751 RECOMP_REGS_OUT(); 2752 } 2753 2754 void sub_250986F5(void) { 2755 int _fpu_cmp = 0; 2756 uint32_t _cf = 0; 2757 int _df = 1; 2758 uint32_t _flag_k = FK_NONE; 2759 uint32_t _flag_a = 0, _flag_b = 0; 2760 uint32_t _itail_tgt = 0; 2761 RECOMP_REGS_LOCALS 2762 RECOMP_ENTER(0x250986F5u); 2763 2764 L_250986F5: 2765 MEM32(ebx + 0x8) = edx; /* 0x250986F5: mov dword ptr [ebx + 8], edx */ 2766 ecx = MEM32(ebp + (-0x4)); /* 0x250986F8: mov ecx, dword ptr [ebp - 4] */ 2767 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x250986FB: mov dl, byte ptr [ecx + 0x14] */ 2768 SET_LO8(ebx, 1); /* 0x250986FE: mov bl, 1 */ 2769 /* cmp LO8(edx), LO8(ebx) */ /* 0x25098700: cmp dl, bl */ 2770 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2772 _flag_k = FK_NARROW(FK_CMP, 24); 2773 if (CMP_NE(_flag_a, _flag_b)) goto L_25098965; /* 0x25098702: jne 0x25098965 */ 2774 L_25098708: 2775 edx = MEM32(edi + 0x4); /* 0x25098708: mov edx, dword ptr [edi + 4] */ 2776 /* cmp eax, MEM32(edx + 0x4) */ /* 0x2509870B: cmp eax, dword ptr [edx + 4] */ 2777 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2779 _flag_k = FK_CMP; 2780 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098962; /* 0x2509870E: je 0x25098962 */ 2781 L_25098714: 2782 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 2783 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2785 _flag_k = FK_NARROW(FK_CMP, 24); 2786 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 2787 L_2509871D: 2788 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 2789 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 2790 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 2791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2793 _flag_k = FK_CMP; 2794 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 2795 L_25098726: 2796 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 2797 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 2798 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 2799 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2800 _cf = 0; 2801 _flag_k = FK_NARROW(FK_TEST, 24); 2802 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 2803 L_25098730: 2804 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 2805 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 2806 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 2807 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 2808 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 2809 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 2810 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 2811 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 2812 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 2813 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2815 _flag_k = FK_CMP; 2816 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 2817 L_2509874C: 2818 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 2819 L_2509874F: 2820 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 2821 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 2822 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 2823 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 2824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2826 _flag_k = FK_CMP; 2827 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 2828 L_2509875D: 2829 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 2830 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 2831 L_25098762: 2832 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 2833 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 2834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2836 _flag_k = FK_CMP; 2837 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 2838 L_25098769: 2839 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 2840 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 2841 L_2509876D: 2842 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 2843 L_25098770: 2844 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 2845 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 2846 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 2847 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 2848 L_2509877B: 2849 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 2850 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 2851 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2853 _flag_k = FK_NARROW(FK_CMP, 24); 2854 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 2855 L_25098786: 2856 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 2857 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 2858 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2860 _flag_k = FK_NARROW(FK_CMP, 24); 2861 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 2862 L_25098792: 2863 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 2864 L_25098794: 2865 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 2866 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 2867 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2868 _cf = 0; 2869 _flag_k = FK_NARROW(FK_TEST, 24); 2870 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 2871 L_2509879B: 2872 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 2873 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 2874 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 2875 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 2876 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 2877 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 2878 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 2879 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 2880 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 2881 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2883 _flag_k = FK_CMP; 2884 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 2885 L_250987B7: 2886 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 2887 L_250987BA: 2888 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 2889 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 2890 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 2891 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 2892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2894 _flag_k = FK_CMP; 2895 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 2896 L_250987C8: 2897 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 2898 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 2899 L_250987CD: 2900 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 2901 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 2902 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2904 _flag_k = FK_CMP; 2905 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 2906 L_250987D5: 2907 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 2908 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 2909 L_250987DA: 2910 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 2911 L_250987DC: 2912 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 2913 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 2914 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 2915 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 2916 L_250987E7: 2917 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 2918 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 2919 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2921 _flag_k = FK_NARROW(FK_CMP, 24); 2922 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 2923 L_250987F3: 2924 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 2925 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 2926 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2928 _flag_k = FK_NARROW(FK_CMP, 24); 2929 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 2930 L_250987FE: 2931 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 2932 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 2933 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 2934 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 2935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2937 _flag_k = FK_CMP; 2938 RECOMP_BACKEDGE(); 2939 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 2940 L_25098811: 2941 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 2942 L_25098816: 2943 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 2944 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 2945 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2947 _flag_k = FK_NARROW(FK_CMP, 24); 2948 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 2949 L_2509881E: 2950 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 2951 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 2952 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 2953 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 2954 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 2955 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 2956 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 2957 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 2958 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2960 _flag_k = FK_CMP; 2961 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 2962 L_25098836: 2963 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 2964 L_25098839: 2965 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 2966 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 2967 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 2968 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 2969 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2971 _flag_k = FK_CMP; 2972 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 2973 L_25098847: 2974 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 2975 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 2976 L_2509884C: 2977 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 2978 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 2979 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2981 _flag_k = FK_CMP; 2982 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 2983 L_25098854: 2984 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 2985 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 2986 L_25098859: 2987 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 2988 L_2509885B: 2989 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 2990 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 2991 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 2992 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 2993 L_25098867: 2994 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 2995 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 2996 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 2997 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 2998 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 2999 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 3000 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 3001 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 3002 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 3003 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 3004 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 3005 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 3006 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 3007 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3009 _flag_k = FK_CMP; 3010 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 3011 L_2509888E: 3012 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 3013 L_25098891: 3014 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 3015 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 3016 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 3017 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 3018 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3020 _flag_k = FK_CMP; 3021 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 3022 L_2509889F: 3023 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 3024 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 3025 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 3026 L_250988A9: 3027 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 3028 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 3029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3031 _flag_k = FK_CMP; 3032 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 3033 L_250988B0: 3034 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 3035 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 3036 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 3037 L_250988B9: 3038 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 3039 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 3040 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 3041 L_250988C3: 3042 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 3043 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 3044 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3046 _flag_k = FK_NARROW(FK_CMP, 24); 3047 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 3048 L_250988CA: 3049 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 3050 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 3051 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 3052 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 3053 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 3054 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 3055 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 3056 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 3057 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3059 _flag_k = FK_CMP; 3060 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 3061 L_250988E3: 3062 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 3063 L_250988E6: 3064 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 3065 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 3066 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 3067 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 3068 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3070 _flag_k = FK_CMP; 3071 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 3072 L_250988F4: 3073 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 3074 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 3075 L_250988F9: 3076 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 3077 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 3078 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3080 _flag_k = FK_CMP; 3081 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 3082 L_25098900: 3083 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 3084 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 3085 L_25098904: 3086 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 3087 L_25098907: 3088 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 3089 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 3090 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 3091 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 3092 L_25098911: 3093 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 3094 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 3095 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 3096 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 3097 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 3098 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 3099 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 3100 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 3101 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 3102 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 3103 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 3104 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 3105 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 3106 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3108 _flag_k = FK_CMP; 3109 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 3110 L_25098937: 3111 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 3112 L_2509893A: 3113 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 3114 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 3115 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 3116 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 3117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3119 _flag_k = FK_CMP; 3120 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 3121 L_25098948: 3122 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 3123 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 3124 L_2509894D: 3125 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 3126 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 3127 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3129 _flag_k = FK_CMP; 3130 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 3131 L_25098955: 3132 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 3133 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 3134 L_2509895A: 3135 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 3136 L_2509895C: 3137 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 3138 L_2509895F: 3139 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 3140 L_25098962: 3141 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 3142 L_25098965: 3143 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 3144 PUSH32(esp, edx); /* 0x25098968: push edx */ 3145 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 3146 RECOMP_FLAGS_IN(); 3147 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 3148 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 3149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3151 esp = esp + 4; /* 0x25098974: add esp, 4 */ 3152 _flag_k = FK_ADD; 3153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3154 eax = eax - 1; /* 0x25098977: dec eax */ 3155 _flag_k = FK_DEC; 3156 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 3157 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 3158 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 3159 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 3160 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 3161 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 3162 esp = ebp; /* 0x25098983: mov esp, ebp */ 3163 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 3164 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 3165 RECOMP_REGS_OUT(); 3166 } 3167 3168 void sub_25098714(void) { 3169 int _fpu_cmp = 0; 3170 uint32_t _cf = 0; 3171 int _df = 1; 3172 uint32_t _flag_k = FK_NONE; 3173 uint32_t _flag_a = 0, _flag_b = 0; 3174 uint32_t _itail_tgt = 0; 3175 RECOMP_REGS_LOCALS 3176 RECOMP_ENTER(0x25098714u); 3177 3178 L_25098714: 3179 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 3180 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3182 _flag_k = FK_NARROW(FK_CMP, 24); 3183 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 3184 L_2509871D: 3185 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 3186 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 3187 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 3188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3190 _flag_k = FK_CMP; 3191 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 3192 L_25098726: 3193 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 3194 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 3195 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 3196 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3197 _cf = 0; 3198 _flag_k = FK_NARROW(FK_TEST, 24); 3199 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 3200 L_25098730: 3201 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 3202 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 3203 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 3204 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 3205 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 3206 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 3207 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 3208 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 3209 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 3210 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3212 _flag_k = FK_CMP; 3213 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 3214 L_2509874C: 3215 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 3216 L_2509874F: 3217 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 3218 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 3219 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 3220 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 3221 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3223 _flag_k = FK_CMP; 3224 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 3225 L_2509875D: 3226 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 3227 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 3228 L_25098762: 3229 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 3230 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 3231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3233 _flag_k = FK_CMP; 3234 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 3235 L_25098769: 3236 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 3237 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 3238 L_2509876D: 3239 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 3240 L_25098770: 3241 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 3242 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 3243 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 3244 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 3245 L_2509877B: 3246 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 3247 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 3248 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3250 _flag_k = FK_NARROW(FK_CMP, 24); 3251 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 3252 L_25098786: 3253 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 3254 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 3255 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3257 _flag_k = FK_NARROW(FK_CMP, 24); 3258 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 3259 L_25098792: 3260 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 3261 L_25098794: 3262 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 3263 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 3264 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3265 _cf = 0; 3266 _flag_k = FK_NARROW(FK_TEST, 24); 3267 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 3268 L_2509879B: 3269 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 3270 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 3271 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 3272 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 3273 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 3274 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 3275 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 3276 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 3277 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 3278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3280 _flag_k = FK_CMP; 3281 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 3282 L_250987B7: 3283 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 3284 L_250987BA: 3285 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 3286 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 3287 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 3288 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 3289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3291 _flag_k = FK_CMP; 3292 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 3293 L_250987C8: 3294 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 3295 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 3296 L_250987CD: 3297 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 3298 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 3299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3301 _flag_k = FK_CMP; 3302 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 3303 L_250987D5: 3304 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 3305 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 3306 L_250987DA: 3307 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 3308 L_250987DC: 3309 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 3310 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 3311 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 3312 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 3313 L_250987E7: 3314 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 3315 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 3316 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3318 _flag_k = FK_NARROW(FK_CMP, 24); 3319 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 3320 L_250987F3: 3321 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 3322 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 3323 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3325 _flag_k = FK_NARROW(FK_CMP, 24); 3326 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 3327 L_250987FE: 3328 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 3329 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 3330 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 3331 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 3332 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3334 _flag_k = FK_CMP; 3335 RECOMP_BACKEDGE(); 3336 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 3337 L_25098811: 3338 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 3339 L_25098816: 3340 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 3341 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 3342 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3344 _flag_k = FK_NARROW(FK_CMP, 24); 3345 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 3346 L_2509881E: 3347 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 3348 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 3349 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 3350 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 3351 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 3352 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 3353 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 3354 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 3355 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3357 _flag_k = FK_CMP; 3358 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 3359 L_25098836: 3360 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 3361 L_25098839: 3362 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 3363 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 3364 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 3365 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 3366 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3368 _flag_k = FK_CMP; 3369 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 3370 L_25098847: 3371 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 3372 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 3373 L_2509884C: 3374 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 3375 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 3376 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3378 _flag_k = FK_CMP; 3379 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 3380 L_25098854: 3381 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 3382 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 3383 L_25098859: 3384 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 3385 L_2509885B: 3386 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 3387 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 3388 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 3389 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 3390 L_25098867: 3391 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 3392 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 3393 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 3394 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 3395 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 3396 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 3397 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 3398 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 3399 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 3400 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 3401 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 3402 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 3403 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 3404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3406 _flag_k = FK_CMP; 3407 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 3408 L_2509888E: 3409 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 3410 L_25098891: 3411 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 3412 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 3413 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 3414 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 3415 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3417 _flag_k = FK_CMP; 3418 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 3419 L_2509889F: 3420 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 3421 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 3422 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 3423 L_250988A9: 3424 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 3425 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 3426 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3428 _flag_k = FK_CMP; 3429 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 3430 L_250988B0: 3431 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 3432 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 3433 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 3434 L_250988B9: 3435 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 3436 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 3437 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 3438 L_250988C3: 3439 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 3440 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 3441 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3443 _flag_k = FK_NARROW(FK_CMP, 24); 3444 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 3445 L_250988CA: 3446 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 3447 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 3448 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 3449 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 3450 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 3451 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 3452 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 3453 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 3454 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3456 _flag_k = FK_CMP; 3457 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 3458 L_250988E3: 3459 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 3460 L_250988E6: 3461 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 3462 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 3463 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 3464 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 3465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3467 _flag_k = FK_CMP; 3468 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 3469 L_250988F4: 3470 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 3471 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 3472 L_250988F9: 3473 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 3474 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 3475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3477 _flag_k = FK_CMP; 3478 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 3479 L_25098900: 3480 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 3481 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 3482 L_25098904: 3483 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 3484 L_25098907: 3485 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 3486 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 3487 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 3488 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 3489 L_25098911: 3490 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 3491 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 3492 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 3493 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 3494 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 3495 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 3496 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 3497 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 3498 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 3499 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 3500 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 3501 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 3502 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 3503 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3505 _flag_k = FK_CMP; 3506 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 3507 L_25098937: 3508 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 3509 L_2509893A: 3510 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 3511 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 3512 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 3513 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 3514 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3516 _flag_k = FK_CMP; 3517 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 3518 L_25098948: 3519 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 3520 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 3521 L_2509894D: 3522 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 3523 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 3524 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3526 _flag_k = FK_CMP; 3527 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 3528 L_25098955: 3529 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 3530 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 3531 L_2509895A: 3532 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 3533 L_2509895C: 3534 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 3535 L_2509895F: 3536 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 3537 L_25098962: 3538 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 3539 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 3540 PUSH32(esp, edx); /* 0x25098968: push edx */ 3541 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 3542 RECOMP_FLAGS_IN(); 3543 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 3544 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 3545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3547 esp = esp + 4; /* 0x25098974: add esp, 4 */ 3548 _flag_k = FK_ADD; 3549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3550 eax = eax - 1; /* 0x25098977: dec eax */ 3551 _flag_k = FK_DEC; 3552 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 3553 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 3554 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 3555 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 3556 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 3557 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 3558 esp = ebp; /* 0x25098983: mov esp, ebp */ 3559 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 3560 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 3561 RECOMP_REGS_OUT(); 3562 } 3563 3564 void sub_25098770(void) { 3565 int _fpu_cmp = 0; 3566 uint32_t _cf = 0; 3567 int _df = 1; 3568 uint32_t _flag_k = FK_NONE; 3569 uint32_t _flag_a = 0, _flag_b = 0; 3570 uint32_t _itail_tgt = 0; 3571 RECOMP_REGS_LOCALS 3572 RECOMP_ENTER(0x25098770u); 3573 3574 goto L_25098770; 3575 L_25098714: 3576 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 3577 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3579 _flag_k = FK_NARROW(FK_CMP, 24); 3580 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 3581 L_2509871D: 3582 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 3583 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 3584 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 3585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3587 _flag_k = FK_CMP; 3588 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 3589 L_25098726: 3590 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 3591 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 3592 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 3593 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3594 _cf = 0; 3595 _flag_k = FK_NARROW(FK_TEST, 24); 3596 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 3597 L_25098730: 3598 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 3599 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 3600 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 3601 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 3602 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 3603 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 3604 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 3605 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 3606 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 3607 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3609 _flag_k = FK_CMP; 3610 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 3611 L_2509874C: 3612 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 3613 L_2509874F: 3614 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 3615 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 3616 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 3617 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 3618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3620 _flag_k = FK_CMP; 3621 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 3622 L_2509875D: 3623 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 3624 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 3625 L_25098762: 3626 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 3627 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 3628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3630 _flag_k = FK_CMP; 3631 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 3632 L_25098769: 3633 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 3634 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 3635 L_2509876D: 3636 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 3637 L_25098770: 3638 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 3639 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 3640 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 3641 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 3642 L_2509877B: 3643 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 3644 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 3645 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3647 _flag_k = FK_NARROW(FK_CMP, 24); 3648 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 3649 L_25098786: 3650 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 3651 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 3652 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3654 _flag_k = FK_NARROW(FK_CMP, 24); 3655 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 3656 L_25098792: 3657 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 3658 L_25098794: 3659 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 3660 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 3661 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3662 _cf = 0; 3663 _flag_k = FK_NARROW(FK_TEST, 24); 3664 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 3665 L_2509879B: 3666 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 3667 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 3668 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 3669 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 3670 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 3671 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 3672 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 3673 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 3674 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 3675 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3677 _flag_k = FK_CMP; 3678 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 3679 L_250987B7: 3680 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 3681 L_250987BA: 3682 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 3683 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 3684 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 3685 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 3686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3688 _flag_k = FK_CMP; 3689 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 3690 L_250987C8: 3691 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 3692 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 3693 L_250987CD: 3694 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 3695 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 3696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3698 _flag_k = FK_CMP; 3699 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 3700 L_250987D5: 3701 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 3702 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 3703 L_250987DA: 3704 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 3705 L_250987DC: 3706 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 3707 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 3708 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 3709 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 3710 L_250987E7: 3711 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 3712 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 3713 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3715 _flag_k = FK_NARROW(FK_CMP, 24); 3716 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 3717 L_250987F3: 3718 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 3719 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 3720 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3722 _flag_k = FK_NARROW(FK_CMP, 24); 3723 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 3724 L_250987FE: 3725 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 3726 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 3727 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 3728 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 3729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3731 _flag_k = FK_CMP; 3732 RECOMP_BACKEDGE(); 3733 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 3734 L_25098811: 3735 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 3736 L_25098816: 3737 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 3738 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 3739 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3741 _flag_k = FK_NARROW(FK_CMP, 24); 3742 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 3743 L_2509881E: 3744 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 3745 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 3746 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 3747 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 3748 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 3749 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 3750 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 3751 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 3752 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3754 _flag_k = FK_CMP; 3755 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 3756 L_25098836: 3757 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 3758 L_25098839: 3759 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 3760 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 3761 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 3762 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 3763 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3765 _flag_k = FK_CMP; 3766 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 3767 L_25098847: 3768 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 3769 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 3770 L_2509884C: 3771 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 3772 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 3773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3775 _flag_k = FK_CMP; 3776 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 3777 L_25098854: 3778 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 3779 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 3780 L_25098859: 3781 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 3782 L_2509885B: 3783 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 3784 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 3785 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 3786 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 3787 L_25098867: 3788 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 3789 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 3790 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 3791 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 3792 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 3793 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 3794 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 3795 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 3796 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 3797 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 3798 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 3799 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 3800 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 3801 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3803 _flag_k = FK_CMP; 3804 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 3805 L_2509888E: 3806 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 3807 L_25098891: 3808 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 3809 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 3810 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 3811 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 3812 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3814 _flag_k = FK_CMP; 3815 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 3816 L_2509889F: 3817 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 3818 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 3819 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 3820 L_250988A9: 3821 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 3822 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 3823 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3825 _flag_k = FK_CMP; 3826 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 3827 L_250988B0: 3828 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 3829 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 3830 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 3831 L_250988B9: 3832 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 3833 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 3834 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 3835 L_250988C3: 3836 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 3837 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 3838 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3840 _flag_k = FK_NARROW(FK_CMP, 24); 3841 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 3842 L_250988CA: 3843 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 3844 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 3845 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 3846 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 3847 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 3848 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 3849 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 3850 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 3851 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3853 _flag_k = FK_CMP; 3854 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 3855 L_250988E3: 3856 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 3857 L_250988E6: 3858 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 3859 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 3860 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 3861 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 3862 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3864 _flag_k = FK_CMP; 3865 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 3866 L_250988F4: 3867 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 3868 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 3869 L_250988F9: 3870 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 3871 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 3872 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3874 _flag_k = FK_CMP; 3875 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 3876 L_25098900: 3877 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 3878 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 3879 L_25098904: 3880 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 3881 L_25098907: 3882 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 3883 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 3884 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 3885 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 3886 L_25098911: 3887 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 3888 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 3889 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 3890 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 3891 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 3892 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 3893 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 3894 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 3895 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 3896 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 3897 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 3898 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 3899 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 3900 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3902 _flag_k = FK_CMP; 3903 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 3904 L_25098937: 3905 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 3906 L_2509893A: 3907 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 3908 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 3909 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 3910 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 3911 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3913 _flag_k = FK_CMP; 3914 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 3915 L_25098948: 3916 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 3917 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 3918 L_2509894D: 3919 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 3920 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 3921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3923 _flag_k = FK_CMP; 3924 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 3925 L_25098955: 3926 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 3927 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 3928 L_2509895A: 3929 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 3930 L_2509895C: 3931 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 3932 L_2509895F: 3933 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 3934 L_25098962: 3935 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 3936 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 3937 PUSH32(esp, edx); /* 0x25098968: push edx */ 3938 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 3939 RECOMP_FLAGS_IN(); 3940 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 3941 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 3942 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3944 esp = esp + 4; /* 0x25098974: add esp, 4 */ 3945 _flag_k = FK_ADD; 3946 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3947 eax = eax - 1; /* 0x25098977: dec eax */ 3948 _flag_k = FK_DEC; 3949 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 3950 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 3951 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 3952 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 3953 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 3954 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 3955 esp = ebp; /* 0x25098983: mov esp, ebp */ 3956 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 3957 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 3958 RECOMP_REGS_OUT(); 3959 } 3960 3961 void sub_2509877B(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(0x2509877Bu); 3970 3971 goto L_2509877B; 3972 L_25098714: 3973 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 3974 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3976 _flag_k = FK_NARROW(FK_CMP, 24); 3977 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 3978 L_2509871D: 3979 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 3980 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 3981 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 3982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3984 _flag_k = FK_CMP; 3985 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 3986 L_25098726: 3987 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 3988 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 3989 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 3990 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3991 _cf = 0; 3992 _flag_k = FK_NARROW(FK_TEST, 24); 3993 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 3994 L_25098730: 3995 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 3996 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 3997 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 3998 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 3999 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 4000 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 4001 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 4002 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 4003 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 4004 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4006 _flag_k = FK_CMP; 4007 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 4008 L_2509874C: 4009 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 4010 L_2509874F: 4011 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 4012 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 4013 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 4014 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 4015 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4017 _flag_k = FK_CMP; 4018 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 4019 L_2509875D: 4020 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 4021 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 4022 L_25098762: 4023 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 4024 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 4025 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4027 _flag_k = FK_CMP; 4028 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 4029 L_25098769: 4030 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 4031 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 4032 L_2509876D: 4033 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 4034 L_25098770: 4035 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 4036 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 4037 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 4038 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 4039 L_2509877B: 4040 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 4041 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 4042 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4044 _flag_k = FK_NARROW(FK_CMP, 24); 4045 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 4046 L_25098786: 4047 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 4048 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 4049 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4051 _flag_k = FK_NARROW(FK_CMP, 24); 4052 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 4053 L_25098792: 4054 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 4055 L_25098794: 4056 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 4057 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 4058 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4059 _cf = 0; 4060 _flag_k = FK_NARROW(FK_TEST, 24); 4061 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 4062 L_2509879B: 4063 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 4064 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 4065 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 4066 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 4067 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 4068 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 4069 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 4070 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 4071 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 4072 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4074 _flag_k = FK_CMP; 4075 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 4076 L_250987B7: 4077 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 4078 L_250987BA: 4079 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 4080 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 4081 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 4082 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 4083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4085 _flag_k = FK_CMP; 4086 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 4087 L_250987C8: 4088 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 4089 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 4090 L_250987CD: 4091 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 4092 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 4093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4095 _flag_k = FK_CMP; 4096 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 4097 L_250987D5: 4098 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 4099 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 4100 L_250987DA: 4101 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 4102 L_250987DC: 4103 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 4104 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 4105 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 4106 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 4107 L_250987E7: 4108 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 4109 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 4110 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4112 _flag_k = FK_NARROW(FK_CMP, 24); 4113 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 4114 L_250987F3: 4115 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 4116 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 4117 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4119 _flag_k = FK_NARROW(FK_CMP, 24); 4120 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 4121 L_250987FE: 4122 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 4123 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 4124 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 4125 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 4126 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4128 _flag_k = FK_CMP; 4129 RECOMP_BACKEDGE(); 4130 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 4131 L_25098811: 4132 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 4133 L_25098816: 4134 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 4135 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 4136 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4138 _flag_k = FK_NARROW(FK_CMP, 24); 4139 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 4140 L_2509881E: 4141 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 4142 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 4143 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 4144 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 4145 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 4146 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 4147 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 4148 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 4149 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4151 _flag_k = FK_CMP; 4152 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 4153 L_25098836: 4154 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 4155 L_25098839: 4156 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 4157 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 4158 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 4159 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 4160 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4162 _flag_k = FK_CMP; 4163 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 4164 L_25098847: 4165 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 4166 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 4167 L_2509884C: 4168 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 4169 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 4170 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4172 _flag_k = FK_CMP; 4173 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 4174 L_25098854: 4175 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 4176 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 4177 L_25098859: 4178 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 4179 L_2509885B: 4180 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 4181 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 4182 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 4183 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 4184 L_25098867: 4185 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 4186 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 4187 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 4188 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 4189 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 4190 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 4191 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 4192 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 4193 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 4194 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 4195 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 4196 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 4197 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 4198 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4200 _flag_k = FK_CMP; 4201 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 4202 L_2509888E: 4203 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 4204 L_25098891: 4205 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 4206 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 4207 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 4208 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 4209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4211 _flag_k = FK_CMP; 4212 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 4213 L_2509889F: 4214 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 4215 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 4216 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 4217 L_250988A9: 4218 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 4219 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 4220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4222 _flag_k = FK_CMP; 4223 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 4224 L_250988B0: 4225 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 4226 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 4227 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 4228 L_250988B9: 4229 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 4230 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 4231 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 4232 L_250988C3: 4233 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 4234 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 4235 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4237 _flag_k = FK_NARROW(FK_CMP, 24); 4238 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 4239 L_250988CA: 4240 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 4241 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 4242 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 4243 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 4244 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 4245 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 4246 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 4247 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 4248 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4250 _flag_k = FK_CMP; 4251 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 4252 L_250988E3: 4253 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 4254 L_250988E6: 4255 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 4256 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 4257 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 4258 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 4259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4261 _flag_k = FK_CMP; 4262 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 4263 L_250988F4: 4264 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 4265 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 4266 L_250988F9: 4267 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 4268 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 4269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4271 _flag_k = FK_CMP; 4272 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 4273 L_25098900: 4274 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 4275 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 4276 L_25098904: 4277 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 4278 L_25098907: 4279 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 4280 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 4281 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 4282 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 4283 L_25098911: 4284 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 4285 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 4286 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 4287 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 4288 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 4289 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 4290 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 4291 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 4292 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 4293 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 4294 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 4295 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 4296 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 4297 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4299 _flag_k = FK_CMP; 4300 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 4301 L_25098937: 4302 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 4303 L_2509893A: 4304 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 4305 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 4306 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 4307 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 4308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4310 _flag_k = FK_CMP; 4311 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 4312 L_25098948: 4313 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 4314 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 4315 L_2509894D: 4316 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 4317 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 4318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4320 _flag_k = FK_CMP; 4321 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 4322 L_25098955: 4323 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 4324 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 4325 L_2509895A: 4326 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 4327 L_2509895C: 4328 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 4329 L_2509895F: 4330 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 4331 L_25098962: 4332 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 4333 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 4334 PUSH32(esp, edx); /* 0x25098968: push edx */ 4335 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 4336 RECOMP_FLAGS_IN(); 4337 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 4338 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 4339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4341 esp = esp + 4; /* 0x25098974: add esp, 4 */ 4342 _flag_k = FK_ADD; 4343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4344 eax = eax - 1; /* 0x25098977: dec eax */ 4345 _flag_k = FK_DEC; 4346 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 4347 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 4348 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 4349 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 4350 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 4351 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 4352 esp = ebp; /* 0x25098983: mov esp, ebp */ 4353 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 4354 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 4355 RECOMP_REGS_OUT(); 4356 } 4357 4358 void sub_25098794(void) { 4359 int _fpu_cmp = 0; 4360 uint32_t _cf = 0; 4361 int _df = 1; 4362 uint32_t _flag_k = FK_NONE; 4363 uint32_t _flag_a = 0, _flag_b = 0; 4364 uint32_t _itail_tgt = 0; 4365 RECOMP_REGS_LOCALS 4366 RECOMP_ENTER(0x25098794u); 4367 4368 goto L_25098794; 4369 L_25098714: 4370 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 4371 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4373 _flag_k = FK_NARROW(FK_CMP, 24); 4374 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 4375 L_2509871D: 4376 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 4377 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 4378 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 4379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4381 _flag_k = FK_CMP; 4382 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 4383 L_25098726: 4384 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 4385 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 4386 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 4387 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4388 _cf = 0; 4389 _flag_k = FK_NARROW(FK_TEST, 24); 4390 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 4391 L_25098730: 4392 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 4393 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 4394 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 4395 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 4396 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 4397 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 4398 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 4399 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 4400 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 4401 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4403 _flag_k = FK_CMP; 4404 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 4405 L_2509874C: 4406 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 4407 L_2509874F: 4408 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 4409 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 4410 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 4411 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 4412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4414 _flag_k = FK_CMP; 4415 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 4416 L_2509875D: 4417 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 4418 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 4419 L_25098762: 4420 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 4421 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 4422 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4424 _flag_k = FK_CMP; 4425 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 4426 L_25098769: 4427 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 4428 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 4429 L_2509876D: 4430 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 4431 L_25098770: 4432 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 4433 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 4434 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 4435 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 4436 L_2509877B: 4437 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 4438 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 4439 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4441 _flag_k = FK_NARROW(FK_CMP, 24); 4442 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 4443 L_25098786: 4444 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 4445 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 4446 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4448 _flag_k = FK_NARROW(FK_CMP, 24); 4449 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 4450 L_25098792: 4451 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 4452 L_25098794: 4453 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 4454 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 4455 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4456 _cf = 0; 4457 _flag_k = FK_NARROW(FK_TEST, 24); 4458 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 4459 L_2509879B: 4460 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 4461 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 4462 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 4463 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 4464 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 4465 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 4466 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 4467 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 4468 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 4469 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4471 _flag_k = FK_CMP; 4472 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 4473 L_250987B7: 4474 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 4475 L_250987BA: 4476 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 4477 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 4478 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 4479 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 4480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4482 _flag_k = FK_CMP; 4483 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 4484 L_250987C8: 4485 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 4486 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 4487 L_250987CD: 4488 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 4489 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 4490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4492 _flag_k = FK_CMP; 4493 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 4494 L_250987D5: 4495 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 4496 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 4497 L_250987DA: 4498 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 4499 L_250987DC: 4500 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 4501 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 4502 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 4503 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 4504 L_250987E7: 4505 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 4506 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 4507 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4509 _flag_k = FK_NARROW(FK_CMP, 24); 4510 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 4511 L_250987F3: 4512 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 4513 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 4514 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4516 _flag_k = FK_NARROW(FK_CMP, 24); 4517 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 4518 L_250987FE: 4519 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 4520 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 4521 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 4522 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 4523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4525 _flag_k = FK_CMP; 4526 RECOMP_BACKEDGE(); 4527 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 4528 L_25098811: 4529 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 4530 L_25098816: 4531 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 4532 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 4533 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4535 _flag_k = FK_NARROW(FK_CMP, 24); 4536 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 4537 L_2509881E: 4538 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 4539 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 4540 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 4541 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 4542 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 4543 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 4544 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 4545 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 4546 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4548 _flag_k = FK_CMP; 4549 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 4550 L_25098836: 4551 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 4552 L_25098839: 4553 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 4554 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 4555 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 4556 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 4557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4559 _flag_k = FK_CMP; 4560 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 4561 L_25098847: 4562 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 4563 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 4564 L_2509884C: 4565 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 4566 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 4567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4569 _flag_k = FK_CMP; 4570 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 4571 L_25098854: 4572 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 4573 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 4574 L_25098859: 4575 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 4576 L_2509885B: 4577 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 4578 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 4579 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 4580 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 4581 L_25098867: 4582 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 4583 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 4584 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 4585 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 4586 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 4587 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 4588 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 4589 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 4590 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 4591 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 4592 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 4593 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 4594 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 4595 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4597 _flag_k = FK_CMP; 4598 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 4599 L_2509888E: 4600 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 4601 L_25098891: 4602 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 4603 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 4604 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 4605 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 4606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4608 _flag_k = FK_CMP; 4609 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 4610 L_2509889F: 4611 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 4612 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 4613 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 4614 L_250988A9: 4615 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 4616 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 4617 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4619 _flag_k = FK_CMP; 4620 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 4621 L_250988B0: 4622 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 4623 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 4624 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 4625 L_250988B9: 4626 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 4627 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 4628 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 4629 L_250988C3: 4630 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 4631 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 4632 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4634 _flag_k = FK_NARROW(FK_CMP, 24); 4635 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 4636 L_250988CA: 4637 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 4638 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 4639 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 4640 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 4641 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 4642 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 4643 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 4644 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 4645 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4647 _flag_k = FK_CMP; 4648 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 4649 L_250988E3: 4650 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 4651 L_250988E6: 4652 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 4653 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 4654 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 4655 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 4656 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4658 _flag_k = FK_CMP; 4659 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 4660 L_250988F4: 4661 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 4662 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 4663 L_250988F9: 4664 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 4665 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 4666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4668 _flag_k = FK_CMP; 4669 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 4670 L_25098900: 4671 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 4672 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 4673 L_25098904: 4674 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 4675 L_25098907: 4676 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 4677 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 4678 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 4679 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 4680 L_25098911: 4681 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 4682 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 4683 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 4684 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 4685 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 4686 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 4687 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 4688 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 4689 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 4690 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 4691 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 4692 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 4693 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 4694 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4696 _flag_k = FK_CMP; 4697 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 4698 L_25098937: 4699 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 4700 L_2509893A: 4701 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 4702 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 4703 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 4704 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 4705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4707 _flag_k = FK_CMP; 4708 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 4709 L_25098948: 4710 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 4711 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 4712 L_2509894D: 4713 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 4714 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 4715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4717 _flag_k = FK_CMP; 4718 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 4719 L_25098955: 4720 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 4721 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 4722 L_2509895A: 4723 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 4724 L_2509895C: 4725 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 4726 L_2509895F: 4727 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 4728 L_25098962: 4729 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 4730 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 4731 PUSH32(esp, edx); /* 0x25098968: push edx */ 4732 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 4733 RECOMP_FLAGS_IN(); 4734 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 4735 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 4736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4738 esp = esp + 4; /* 0x25098974: add esp, 4 */ 4739 _flag_k = FK_ADD; 4740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4741 eax = eax - 1; /* 0x25098977: dec eax */ 4742 _flag_k = FK_DEC; 4743 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 4744 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 4745 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 4746 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 4747 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 4748 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 4749 esp = ebp; /* 0x25098983: mov esp, ebp */ 4750 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 4751 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 4752 RECOMP_REGS_OUT(); 4753 } 4754 4755 void sub_250987DC(void) { 4756 int _fpu_cmp = 0; 4757 uint32_t _cf = 0; 4758 int _df = 1; 4759 uint32_t _flag_k = FK_NONE; 4760 uint32_t _flag_a = 0, _flag_b = 0; 4761 uint32_t _itail_tgt = 0; 4762 RECOMP_REGS_LOCALS 4763 RECOMP_ENTER(0x250987DCu); 4764 4765 goto L_250987DC; 4766 L_25098714: 4767 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 4768 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4770 _flag_k = FK_NARROW(FK_CMP, 24); 4771 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 4772 L_2509871D: 4773 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 4774 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 4775 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 4776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4778 _flag_k = FK_CMP; 4779 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 4780 L_25098726: 4781 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 4782 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 4783 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 4784 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4785 _cf = 0; 4786 _flag_k = FK_NARROW(FK_TEST, 24); 4787 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 4788 L_25098730: 4789 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 4790 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 4791 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 4792 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 4793 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 4794 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 4795 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 4796 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 4797 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 4798 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4800 _flag_k = FK_CMP; 4801 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 4802 L_2509874C: 4803 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 4804 L_2509874F: 4805 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 4806 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 4807 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 4808 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 4809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4811 _flag_k = FK_CMP; 4812 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 4813 L_2509875D: 4814 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 4815 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 4816 L_25098762: 4817 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 4818 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 4819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4821 _flag_k = FK_CMP; 4822 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 4823 L_25098769: 4824 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 4825 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 4826 L_2509876D: 4827 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 4828 L_25098770: 4829 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 4830 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 4831 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 4832 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 4833 L_2509877B: 4834 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 4835 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 4836 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4838 _flag_k = FK_NARROW(FK_CMP, 24); 4839 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 4840 L_25098786: 4841 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 4842 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 4843 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4845 _flag_k = FK_NARROW(FK_CMP, 24); 4846 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 4847 L_25098792: 4848 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 4849 L_25098794: 4850 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 4851 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 4852 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4853 _cf = 0; 4854 _flag_k = FK_NARROW(FK_TEST, 24); 4855 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 4856 L_2509879B: 4857 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 4858 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 4859 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 4860 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 4861 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 4862 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 4863 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 4864 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 4865 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 4866 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4868 _flag_k = FK_CMP; 4869 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 4870 L_250987B7: 4871 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 4872 L_250987BA: 4873 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 4874 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 4875 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 4876 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 4877 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4879 _flag_k = FK_CMP; 4880 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 4881 L_250987C8: 4882 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 4883 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 4884 L_250987CD: 4885 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 4886 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 4887 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4889 _flag_k = FK_CMP; 4890 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 4891 L_250987D5: 4892 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 4893 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 4894 L_250987DA: 4895 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 4896 L_250987DC: 4897 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 4898 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 4899 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 4900 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 4901 L_250987E7: 4902 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 4903 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 4904 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4906 _flag_k = FK_NARROW(FK_CMP, 24); 4907 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 4908 L_250987F3: 4909 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 4910 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 4911 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4913 _flag_k = FK_NARROW(FK_CMP, 24); 4914 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 4915 L_250987FE: 4916 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 4917 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 4918 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 4919 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 4920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4922 _flag_k = FK_CMP; 4923 RECOMP_BACKEDGE(); 4924 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 4925 L_25098811: 4926 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 4927 L_25098816: 4928 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 4929 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 4930 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4932 _flag_k = FK_NARROW(FK_CMP, 24); 4933 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 4934 L_2509881E: 4935 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 4936 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 4937 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 4938 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 4939 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 4940 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 4941 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 4942 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 4943 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4945 _flag_k = FK_CMP; 4946 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 4947 L_25098836: 4948 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 4949 L_25098839: 4950 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 4951 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 4952 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 4953 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 4954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4956 _flag_k = FK_CMP; 4957 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 4958 L_25098847: 4959 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 4960 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 4961 L_2509884C: 4962 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 4963 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 4964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4966 _flag_k = FK_CMP; 4967 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 4968 L_25098854: 4969 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 4970 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 4971 L_25098859: 4972 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 4973 L_2509885B: 4974 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 4975 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 4976 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 4977 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 4978 L_25098867: 4979 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 4980 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 4981 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 4982 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 4983 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 4984 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 4985 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 4986 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 4987 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 4988 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 4989 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 4990 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 4991 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 4992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4994 _flag_k = FK_CMP; 4995 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 4996 L_2509888E: 4997 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 4998 L_25098891: 4999 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 5000 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 5001 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 5002 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 5003 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5005 _flag_k = FK_CMP; 5006 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 5007 L_2509889F: 5008 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 5009 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 5010 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 5011 L_250988A9: 5012 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 5013 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 5014 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5016 _flag_k = FK_CMP; 5017 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 5018 L_250988B0: 5019 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 5020 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 5021 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 5022 L_250988B9: 5023 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 5024 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 5025 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 5026 L_250988C3: 5027 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 5028 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 5029 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5031 _flag_k = FK_NARROW(FK_CMP, 24); 5032 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 5033 L_250988CA: 5034 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 5035 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 5036 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 5037 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 5038 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 5039 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 5040 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 5041 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 5042 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5044 _flag_k = FK_CMP; 5045 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 5046 L_250988E3: 5047 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 5048 L_250988E6: 5049 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 5050 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 5051 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 5052 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 5053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5055 _flag_k = FK_CMP; 5056 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 5057 L_250988F4: 5058 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 5059 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 5060 L_250988F9: 5061 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 5062 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 5063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5065 _flag_k = FK_CMP; 5066 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 5067 L_25098900: 5068 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 5069 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 5070 L_25098904: 5071 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 5072 L_25098907: 5073 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 5074 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 5075 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 5076 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 5077 L_25098911: 5078 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 5079 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 5080 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 5081 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 5082 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 5083 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 5084 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 5085 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 5086 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 5087 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 5088 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 5089 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 5090 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 5091 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5093 _flag_k = FK_CMP; 5094 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 5095 L_25098937: 5096 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 5097 L_2509893A: 5098 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 5099 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 5100 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 5101 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 5102 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5104 _flag_k = FK_CMP; 5105 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 5106 L_25098948: 5107 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 5108 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 5109 L_2509894D: 5110 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 5111 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 5112 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5114 _flag_k = FK_CMP; 5115 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 5116 L_25098955: 5117 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 5118 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 5119 L_2509895A: 5120 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 5121 L_2509895C: 5122 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 5123 L_2509895F: 5124 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 5125 L_25098962: 5126 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 5127 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 5128 PUSH32(esp, edx); /* 0x25098968: push edx */ 5129 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 5130 RECOMP_FLAGS_IN(); 5131 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 5132 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 5133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5135 esp = esp + 4; /* 0x25098974: add esp, 4 */ 5136 _flag_k = FK_ADD; 5137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5138 eax = eax - 1; /* 0x25098977: dec eax */ 5139 _flag_k = FK_DEC; 5140 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 5141 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 5142 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 5143 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 5144 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 5145 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 5146 esp = ebp; /* 0x25098983: mov esp, ebp */ 5147 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 5148 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 5149 RECOMP_REGS_OUT(); 5150 } 5151 5152 void sub_250987E7(void) { 5153 int _fpu_cmp = 0; 5154 uint32_t _cf = 0; 5155 int _df = 1; 5156 uint32_t _flag_k = FK_NONE; 5157 uint32_t _flag_a = 0, _flag_b = 0; 5158 uint32_t _itail_tgt = 0; 5159 RECOMP_REGS_LOCALS 5160 RECOMP_ENTER(0x250987E7u); 5161 5162 goto L_250987E7; 5163 L_25098714: 5164 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 5165 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5167 _flag_k = FK_NARROW(FK_CMP, 24); 5168 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 5169 L_2509871D: 5170 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 5171 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 5172 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 5173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5175 _flag_k = FK_CMP; 5176 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 5177 L_25098726: 5178 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 5179 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 5180 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 5181 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5182 _cf = 0; 5183 _flag_k = FK_NARROW(FK_TEST, 24); 5184 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 5185 L_25098730: 5186 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 5187 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 5188 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 5189 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 5190 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 5191 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 5192 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 5193 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 5194 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 5195 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5197 _flag_k = FK_CMP; 5198 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 5199 L_2509874C: 5200 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 5201 L_2509874F: 5202 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 5203 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 5204 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 5205 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 5206 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5208 _flag_k = FK_CMP; 5209 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 5210 L_2509875D: 5211 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 5212 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 5213 L_25098762: 5214 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 5215 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 5216 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5218 _flag_k = FK_CMP; 5219 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 5220 L_25098769: 5221 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 5222 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 5223 L_2509876D: 5224 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 5225 L_25098770: 5226 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 5227 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 5228 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 5229 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 5230 L_2509877B: 5231 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 5232 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 5233 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5235 _flag_k = FK_NARROW(FK_CMP, 24); 5236 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 5237 L_25098786: 5238 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 5239 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 5240 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5242 _flag_k = FK_NARROW(FK_CMP, 24); 5243 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 5244 L_25098792: 5245 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 5246 L_25098794: 5247 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 5248 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 5249 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5250 _cf = 0; 5251 _flag_k = FK_NARROW(FK_TEST, 24); 5252 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 5253 L_2509879B: 5254 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 5255 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 5256 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 5257 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 5258 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 5259 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 5260 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 5261 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 5262 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 5263 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5265 _flag_k = FK_CMP; 5266 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 5267 L_250987B7: 5268 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 5269 L_250987BA: 5270 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 5271 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 5272 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 5273 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 5274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5276 _flag_k = FK_CMP; 5277 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 5278 L_250987C8: 5279 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 5280 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 5281 L_250987CD: 5282 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 5283 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 5284 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5286 _flag_k = FK_CMP; 5287 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 5288 L_250987D5: 5289 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 5290 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 5291 L_250987DA: 5292 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 5293 L_250987DC: 5294 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 5295 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 5296 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 5297 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 5298 L_250987E7: 5299 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 5300 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 5301 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5303 _flag_k = FK_NARROW(FK_CMP, 24); 5304 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 5305 L_250987F3: 5306 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 5307 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 5308 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5310 _flag_k = FK_NARROW(FK_CMP, 24); 5311 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 5312 L_250987FE: 5313 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 5314 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 5315 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 5316 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 5317 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5319 _flag_k = FK_CMP; 5320 RECOMP_BACKEDGE(); 5321 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 5322 L_25098811: 5323 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 5324 L_25098816: 5325 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 5326 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 5327 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5329 _flag_k = FK_NARROW(FK_CMP, 24); 5330 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 5331 L_2509881E: 5332 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 5333 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 5334 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 5335 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 5336 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 5337 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 5338 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 5339 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 5340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5342 _flag_k = FK_CMP; 5343 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 5344 L_25098836: 5345 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 5346 L_25098839: 5347 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 5348 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 5349 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 5350 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 5351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5353 _flag_k = FK_CMP; 5354 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 5355 L_25098847: 5356 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 5357 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 5358 L_2509884C: 5359 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 5360 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 5361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5363 _flag_k = FK_CMP; 5364 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 5365 L_25098854: 5366 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 5367 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 5368 L_25098859: 5369 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 5370 L_2509885B: 5371 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 5372 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 5373 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 5374 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 5375 L_25098867: 5376 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 5377 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 5378 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 5379 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 5380 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 5381 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 5382 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 5383 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 5384 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 5385 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 5386 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 5387 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 5388 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 5389 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5391 _flag_k = FK_CMP; 5392 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 5393 L_2509888E: 5394 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 5395 L_25098891: 5396 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 5397 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 5398 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 5399 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 5400 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5402 _flag_k = FK_CMP; 5403 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 5404 L_2509889F: 5405 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 5406 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 5407 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 5408 L_250988A9: 5409 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 5410 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 5411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5413 _flag_k = FK_CMP; 5414 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 5415 L_250988B0: 5416 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 5417 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 5418 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 5419 L_250988B9: 5420 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 5421 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 5422 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 5423 L_250988C3: 5424 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 5425 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 5426 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5428 _flag_k = FK_NARROW(FK_CMP, 24); 5429 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 5430 L_250988CA: 5431 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 5432 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 5433 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 5434 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 5435 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 5436 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 5437 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 5438 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 5439 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5441 _flag_k = FK_CMP; 5442 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 5443 L_250988E3: 5444 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 5445 L_250988E6: 5446 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 5447 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 5448 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 5449 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 5450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5452 _flag_k = FK_CMP; 5453 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 5454 L_250988F4: 5455 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 5456 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 5457 L_250988F9: 5458 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 5459 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 5460 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5462 _flag_k = FK_CMP; 5463 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 5464 L_25098900: 5465 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 5466 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 5467 L_25098904: 5468 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 5469 L_25098907: 5470 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 5471 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 5472 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 5473 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 5474 L_25098911: 5475 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 5476 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 5477 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 5478 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 5479 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 5480 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 5481 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 5482 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 5483 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 5484 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 5485 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 5486 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 5487 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 5488 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5490 _flag_k = FK_CMP; 5491 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 5492 L_25098937: 5493 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 5494 L_2509893A: 5495 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 5496 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 5497 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 5498 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 5499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5501 _flag_k = FK_CMP; 5502 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 5503 L_25098948: 5504 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 5505 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 5506 L_2509894D: 5507 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 5508 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 5509 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5511 _flag_k = FK_CMP; 5512 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 5513 L_25098955: 5514 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 5515 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 5516 L_2509895A: 5517 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 5518 L_2509895C: 5519 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 5520 L_2509895F: 5521 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 5522 L_25098962: 5523 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 5524 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 5525 PUSH32(esp, edx); /* 0x25098968: push edx */ 5526 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 5527 RECOMP_FLAGS_IN(); 5528 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 5529 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 5530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5532 esp = esp + 4; /* 0x25098974: add esp, 4 */ 5533 _flag_k = FK_ADD; 5534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5535 eax = eax - 1; /* 0x25098977: dec eax */ 5536 _flag_k = FK_DEC; 5537 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 5538 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 5539 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 5540 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 5541 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 5542 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 5543 esp = ebp; /* 0x25098983: mov esp, ebp */ 5544 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 5545 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 5546 RECOMP_REGS_OUT(); 5547 } 5548 5549 void sub_250987FE(void) { 5550 int _fpu_cmp = 0; 5551 uint32_t _cf = 0; 5552 int _df = 1; 5553 uint32_t _flag_k = FK_NONE; 5554 uint32_t _flag_a = 0, _flag_b = 0; 5555 uint32_t _itail_tgt = 0; 5556 RECOMP_REGS_LOCALS 5557 RECOMP_ENTER(0x250987FEu); 5558 5559 goto L_250987FE; 5560 L_25098714: 5561 /* cmp MEM8(eax + 0x14), LO8(ebx) */ /* 0x25098714: cmp byte ptr [eax + 0x14], bl */ 5562 _flag_a = (uint32_t)(MEM8(eax + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5564 _flag_k = FK_NARROW(FK_CMP, 24); 5565 if (CMP_NE(_flag_a, _flag_b)) goto L_25098962; /* 0x25098717: jne 0x25098962 */ 5566 L_2509871D: 5567 edx = MEM32(eax + 0x4); /* 0x2509871D: mov edx, dword ptr [eax + 4] */ 5568 ecx = MEM32(edx); /* 0x25098720: mov ecx, dword ptr [edx] */ 5569 /* cmp eax, ecx */ /* 0x25098722: cmp eax, ecx */ 5570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5572 _flag_k = FK_CMP; 5573 if (CMP_NE(_flag_a, _flag_b)) goto L_25098794; /* 0x25098724: jne 0x25098794 */ 5574 L_25098726: 5575 ecx = MEM32(edx + 0x8); /* 0x25098726: mov ecx, dword ptr [edx + 8] */ 5576 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098729: mov dl, byte ptr [ecx + 0x14] */ 5577 /* test LO8(edx), LO8(edx) */ /* 0x2509872C: test dl, dl */ 5578 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5579 _cf = 0; 5580 _flag_k = FK_NARROW(FK_TEST, 24); 5581 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509877B; /* 0x2509872E: jne 0x2509877b */ 5582 L_25098730: 5583 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098730: mov byte ptr [ecx + 0x14], bl */ 5584 ecx = MEM32(eax + 0x4); /* 0x25098733: mov ecx, dword ptr [eax + 4] */ 5585 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098736: mov byte ptr [ecx + 0x14], 0 */ 5586 ecx = MEM32(eax + 0x4); /* 0x2509873A: mov ecx, dword ptr [eax + 4] */ 5587 edx = MEM32(ecx + 0x8); /* 0x2509873D: mov edx, dword ptr [ecx + 8] */ 5588 esi = MEM32(edx); /* 0x25098740: mov esi, dword ptr [edx] */ 5589 MEM32(ecx + 0x8) = esi; /* 0x25098742: mov dword ptr [ecx + 8], esi */ 5590 esi = MEM32(edx); /* 0x25098745: mov esi, dword ptr [edx] */ 5591 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098747: cmp esi, dword ptr [edi + 8] */ 5592 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5594 _flag_k = FK_CMP; 5595 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509874F; /* 0x2509874A: je 0x2509874f */ 5596 L_2509874C: 5597 MEM32(esi + 0x4) = ecx; /* 0x2509874C: mov dword ptr [esi + 4], ecx */ 5598 L_2509874F: 5599 esi = MEM32(ecx + 0x4); /* 0x2509874F: mov esi, dword ptr [ecx + 4] */ 5600 MEM32(edx + 0x4) = esi; /* 0x25098752: mov dword ptr [edx + 4], esi */ 5601 esi = MEM32(edi + 0x4); /* 0x25098755: mov esi, dword ptr [edi + 4] */ 5602 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098758: cmp ecx, dword ptr [esi + 4] */ 5603 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5605 _flag_k = FK_CMP; 5606 if (CMP_NE(_flag_a, _flag_b)) goto L_25098762; /* 0x2509875B: jne 0x25098762 */ 5607 L_2509875D: 5608 MEM32(esi + 0x4) = edx; /* 0x2509875D: mov dword ptr [esi + 4], edx */ 5609 goto L_25098770; /* 0x25098760: jmp 0x25098770 */ 5610 L_25098762: 5611 esi = MEM32(ecx + 0x4); /* 0x25098762: mov esi, dword ptr [ecx + 4] */ 5612 /* cmp ecx, MEM32(esi) */ /* 0x25098765: cmp ecx, dword ptr [esi] */ 5613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5615 _flag_k = FK_CMP; 5616 if (CMP_NE(_flag_a, _flag_b)) goto L_2509876D; /* 0x25098767: jne 0x2509876d */ 5617 L_25098769: 5618 MEM32(esi) = edx; /* 0x25098769: mov dword ptr [esi], edx */ 5619 goto L_25098770; /* 0x2509876B: jmp 0x25098770 */ 5620 L_2509876D: 5621 MEM32(esi + 0x8) = edx; /* 0x2509876D: mov dword ptr [esi + 8], edx */ 5622 L_25098770: 5623 MEM32(edx) = ecx; /* 0x25098770: mov dword ptr [edx], ecx */ 5624 MEM32(ecx + 0x4) = edx; /* 0x25098772: mov dword ptr [ecx + 4], edx */ 5625 edx = MEM32(eax + 0x4); /* 0x25098775: mov edx, dword ptr [eax + 4] */ 5626 ecx = MEM32(edx + 0x8); /* 0x25098778: mov ecx, dword ptr [edx + 8] */ 5627 L_2509877B: 5628 edx = MEM32(ecx); /* 0x2509877B: mov edx, dword ptr [ecx] */ 5629 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x2509877D: cmp byte ptr [edx + 0x14], bl */ 5630 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5632 _flag_k = FK_NARROW(FK_CMP, 24); 5633 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x25098780: jne 0x25098816 */ 5634 L_25098786: 5635 edx = MEM32(ecx + 0x8); /* 0x25098786: mov edx, dword ptr [ecx + 8] */ 5636 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098789: cmp byte ptr [edx + 0x14], bl */ 5637 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5639 _flag_k = FK_NARROW(FK_CMP, 24); 5640 if (CMP_NE(_flag_a, _flag_b)) goto L_25098816; /* 0x2509878C: jne 0x25098816 */ 5641 L_25098792: 5642 goto L_250987FE; /* 0x25098792: jmp 0x250987fe */ 5643 L_25098794: 5644 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098794: mov dl, byte ptr [ecx + 0x14] */ 5645 /* test LO8(edx), LO8(edx) */ /* 0x25098797: test dl, dl */ 5646 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5647 _cf = 0; 5648 _flag_k = FK_NARROW(FK_TEST, 24); 5649 if (TEST_NZ(_flag_a, _flag_b)) goto L_250987E7; /* 0x25098799: jne 0x250987e7 */ 5650 L_2509879B: 5651 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509879B: mov byte ptr [ecx + 0x14], bl */ 5652 ecx = MEM32(eax + 0x4); /* 0x2509879E: mov ecx, dword ptr [eax + 4] */ 5653 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987A1: mov byte ptr [ecx + 0x14], 0 */ 5654 ecx = MEM32(eax + 0x4); /* 0x250987A5: mov ecx, dword ptr [eax + 4] */ 5655 edx = MEM32(ecx); /* 0x250987A8: mov edx, dword ptr [ecx] */ 5656 esi = MEM32(edx + 0x8); /* 0x250987AA: mov esi, dword ptr [edx + 8] */ 5657 MEM32(ecx) = esi; /* 0x250987AD: mov dword ptr [ecx], esi */ 5658 esi = MEM32(edx + 0x8); /* 0x250987AF: mov esi, dword ptr [edx + 8] */ 5659 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250987B2: cmp esi, dword ptr [edi + 8] */ 5660 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5662 _flag_k = FK_CMP; 5663 if (CMP_EQ(_flag_a, _flag_b)) goto L_250987BA; /* 0x250987B5: je 0x250987ba */ 5664 L_250987B7: 5665 MEM32(esi + 0x4) = ecx; /* 0x250987B7: mov dword ptr [esi + 4], ecx */ 5666 L_250987BA: 5667 esi = MEM32(ecx + 0x4); /* 0x250987BA: mov esi, dword ptr [ecx + 4] */ 5668 MEM32(edx + 0x4) = esi; /* 0x250987BD: mov dword ptr [edx + 4], esi */ 5669 esi = MEM32(edi + 0x4); /* 0x250987C0: mov esi, dword ptr [edi + 4] */ 5670 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250987C3: cmp ecx, dword ptr [esi + 4] */ 5671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5673 _flag_k = FK_CMP; 5674 if (CMP_NE(_flag_a, _flag_b)) goto L_250987CD; /* 0x250987C6: jne 0x250987cd */ 5675 L_250987C8: 5676 MEM32(esi + 0x4) = edx; /* 0x250987C8: mov dword ptr [esi + 4], edx */ 5677 goto L_250987DC; /* 0x250987CB: jmp 0x250987dc */ 5678 L_250987CD: 5679 esi = MEM32(ecx + 0x4); /* 0x250987CD: mov esi, dword ptr [ecx + 4] */ 5680 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x250987D0: cmp ecx, dword ptr [esi + 8] */ 5681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5683 _flag_k = FK_CMP; 5684 if (CMP_NE(_flag_a, _flag_b)) goto L_250987DA; /* 0x250987D3: jne 0x250987da */ 5685 L_250987D5: 5686 MEM32(esi + 0x8) = edx; /* 0x250987D5: mov dword ptr [esi + 8], edx */ 5687 goto L_250987DC; /* 0x250987D8: jmp 0x250987dc */ 5688 L_250987DA: 5689 MEM32(esi) = edx; /* 0x250987DA: mov dword ptr [esi], edx */ 5690 L_250987DC: 5691 MEM32(edx + 0x8) = ecx; /* 0x250987DC: mov dword ptr [edx + 8], ecx */ 5692 MEM32(ecx + 0x4) = edx; /* 0x250987DF: mov dword ptr [ecx + 4], edx */ 5693 edx = MEM32(eax + 0x4); /* 0x250987E2: mov edx, dword ptr [eax + 4] */ 5694 ecx = MEM32(edx); /* 0x250987E5: mov ecx, dword ptr [edx] */ 5695 L_250987E7: 5696 edx = MEM32(ecx + 0x8); /* 0x250987E7: mov edx, dword ptr [ecx + 8] */ 5697 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987EA: cmp byte ptr [edx + 0x14], bl */ 5698 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5700 _flag_k = FK_NARROW(FK_CMP, 24); 5701 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987ED: jne 0x250988c3 */ 5702 L_250987F3: 5703 edx = MEM32(ecx); /* 0x250987F3: mov edx, dword ptr [ecx] */ 5704 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250987F5: cmp byte ptr [edx + 0x14], bl */ 5705 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5707 _flag_k = FK_NARROW(FK_CMP, 24); 5708 if (CMP_NE(_flag_a, _flag_b)) goto L_250988C3; /* 0x250987F8: jne 0x250988c3 */ 5709 L_250987FE: 5710 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250987FE: mov byte ptr [ecx + 0x14], 0 */ 5711 ecx = MEM32(edi + 0x4); /* 0x25098802: mov ecx, dword ptr [edi + 4] */ 5712 eax = MEM32(eax + 0x4); /* 0x25098805: mov eax, dword ptr [eax + 4] */ 5713 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098808: cmp eax, dword ptr [ecx + 4] */ 5714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5716 _flag_k = FK_CMP; 5717 RECOMP_BACKEDGE(); 5718 if (CMP_NE(_flag_a, _flag_b)) goto L_25098714; /* 0x2509880B: jne 0x25098714 */ 5719 L_25098811: 5720 goto L_25098962; /* 0x25098811: jmp 0x25098962 */ 5721 L_25098816: 5722 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 5723 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 5724 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5726 _flag_k = FK_NARROW(FK_CMP, 24); 5727 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 5728 L_2509881E: 5729 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 5730 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 5731 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 5732 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 5733 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 5734 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 5735 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 5736 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 5737 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5739 _flag_k = FK_CMP; 5740 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 5741 L_25098836: 5742 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 5743 L_25098839: 5744 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 5745 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 5746 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 5747 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 5748 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5750 _flag_k = FK_CMP; 5751 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 5752 L_25098847: 5753 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 5754 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 5755 L_2509884C: 5756 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 5757 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 5758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5760 _flag_k = FK_CMP; 5761 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 5762 L_25098854: 5763 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 5764 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 5765 L_25098859: 5766 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 5767 L_2509885B: 5768 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 5769 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 5770 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 5771 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 5772 L_25098867: 5773 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 5774 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 5775 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 5776 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 5777 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 5778 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 5779 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 5780 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 5781 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 5782 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 5783 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 5784 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 5785 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 5786 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5788 _flag_k = FK_CMP; 5789 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 5790 L_2509888E: 5791 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 5792 L_25098891: 5793 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 5794 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 5795 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 5796 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 5797 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5799 _flag_k = FK_CMP; 5800 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 5801 L_2509889F: 5802 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 5803 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 5804 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 5805 L_250988A9: 5806 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 5807 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 5808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5810 _flag_k = FK_CMP; 5811 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 5812 L_250988B0: 5813 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 5814 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 5815 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 5816 L_250988B9: 5817 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 5818 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 5819 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 5820 L_250988C3: 5821 edx = MEM32(ecx); /* 0x250988C3: mov edx, dword ptr [ecx] */ 5822 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x250988C5: cmp byte ptr [edx + 0x14], bl */ 5823 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5825 _flag_k = FK_NARROW(FK_CMP, 24); 5826 if (CMP_NE(_flag_a, _flag_b)) goto L_25098911; /* 0x250988C8: jne 0x25098911 */ 5827 L_250988CA: 5828 edx = MEM32(ecx + 0x8); /* 0x250988CA: mov edx, dword ptr [ecx + 8] */ 5829 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x250988CD: mov byte ptr [edx + 0x14], bl */ 5830 edx = MEM32(ecx + 0x8); /* 0x250988D0: mov edx, dword ptr [ecx + 8] */ 5831 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x250988D3: mov byte ptr [ecx + 0x14], 0 */ 5832 esi = MEM32(edx); /* 0x250988D7: mov esi, dword ptr [edx] */ 5833 MEM32(ecx + 0x8) = esi; /* 0x250988D9: mov dword ptr [ecx + 8], esi */ 5834 esi = MEM32(edx); /* 0x250988DC: mov esi, dword ptr [edx] */ 5835 /* cmp esi, MEM32(edi + 0x8) */ /* 0x250988DE: cmp esi, dword ptr [edi + 8] */ 5836 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5838 _flag_k = FK_CMP; 5839 if (CMP_EQ(_flag_a, _flag_b)) goto L_250988E6; /* 0x250988E1: je 0x250988e6 */ 5840 L_250988E3: 5841 MEM32(esi + 0x4) = ecx; /* 0x250988E3: mov dword ptr [esi + 4], ecx */ 5842 L_250988E6: 5843 esi = MEM32(ecx + 0x4); /* 0x250988E6: mov esi, dword ptr [ecx + 4] */ 5844 MEM32(edx + 0x4) = esi; /* 0x250988E9: mov dword ptr [edx + 4], esi */ 5845 esi = MEM32(edi + 0x4); /* 0x250988EC: mov esi, dword ptr [edi + 4] */ 5846 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x250988EF: cmp ecx, dword ptr [esi + 4] */ 5847 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5849 _flag_k = FK_CMP; 5850 if (CMP_NE(_flag_a, _flag_b)) goto L_250988F9; /* 0x250988F2: jne 0x250988f9 */ 5851 L_250988F4: 5852 MEM32(esi + 0x4) = edx; /* 0x250988F4: mov dword ptr [esi + 4], edx */ 5853 goto L_25098907; /* 0x250988F7: jmp 0x25098907 */ 5854 L_250988F9: 5855 esi = MEM32(ecx + 0x4); /* 0x250988F9: mov esi, dword ptr [ecx + 4] */ 5856 /* cmp ecx, MEM32(esi) */ /* 0x250988FC: cmp ecx, dword ptr [esi] */ 5857 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5859 _flag_k = FK_CMP; 5860 if (CMP_NE(_flag_a, _flag_b)) goto L_25098904; /* 0x250988FE: jne 0x25098904 */ 5861 L_25098900: 5862 MEM32(esi) = edx; /* 0x25098900: mov dword ptr [esi], edx */ 5863 goto L_25098907; /* 0x25098902: jmp 0x25098907 */ 5864 L_25098904: 5865 MEM32(esi + 0x8) = edx; /* 0x25098904: mov dword ptr [esi + 8], edx */ 5866 L_25098907: 5867 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 5868 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 5869 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 5870 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 5871 L_25098911: 5872 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 5873 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 5874 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 5875 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 5876 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 5877 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 5878 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 5879 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 5880 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 5881 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 5882 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 5883 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 5884 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 5885 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5887 _flag_k = FK_CMP; 5888 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 5889 L_25098937: 5890 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 5891 L_2509893A: 5892 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 5893 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 5894 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 5895 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 5896 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5898 _flag_k = FK_CMP; 5899 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 5900 L_25098948: 5901 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 5902 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 5903 L_2509894D: 5904 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 5905 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 5906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5908 _flag_k = FK_CMP; 5909 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 5910 L_25098955: 5911 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 5912 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 5913 L_2509895A: 5914 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 5915 L_2509895C: 5916 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 5917 L_2509895F: 5918 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 5919 L_25098962: 5920 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 5921 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 5922 PUSH32(esp, edx); /* 0x25098968: push edx */ 5923 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 5924 RECOMP_FLAGS_IN(); 5925 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 5926 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 5927 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5929 esp = esp + 4; /* 0x25098974: add esp, 4 */ 5930 _flag_k = FK_ADD; 5931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5932 eax = eax - 1; /* 0x25098977: dec eax */ 5933 _flag_k = FK_DEC; 5934 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 5935 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 5936 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 5937 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 5938 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 5939 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 5940 esp = ebp; /* 0x25098983: mov esp, ebp */ 5941 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 5942 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 5943 RECOMP_REGS_OUT(); 5944 } 5945 5946 void sub_25098816(void) { 5947 int _fpu_cmp = 0; 5948 uint32_t _cf = 0; 5949 int _df = 1; 5950 uint32_t _flag_k = FK_NONE; 5951 uint32_t _flag_a = 0, _flag_b = 0; 5952 uint32_t _itail_tgt = 0; 5953 RECOMP_REGS_LOCALS 5954 RECOMP_ENTER(0x25098816u); 5955 5956 L_25098816: 5957 edx = MEM32(ecx + 0x8); /* 0x25098816: mov edx, dword ptr [ecx + 8] */ 5958 /* cmp MEM8(edx + 0x14), LO8(ebx) */ /* 0x25098819: cmp byte ptr [edx + 0x14], bl */ 5959 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5961 _flag_k = FK_NARROW(FK_CMP, 24); 5962 if (CMP_NE(_flag_a, _flag_b)) goto L_25098867; /* 0x2509881C: jne 0x25098867 */ 5963 L_2509881E: 5964 edx = MEM32(ecx); /* 0x2509881E: mov edx, dword ptr [ecx] */ 5965 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098820: mov byte ptr [edx + 0x14], bl */ 5966 edx = MEM32(ecx); /* 0x25098823: mov edx, dword ptr [ecx] */ 5967 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098825: mov byte ptr [ecx + 0x14], 0 */ 5968 esi = MEM32(edx + 0x8); /* 0x25098829: mov esi, dword ptr [edx + 8] */ 5969 MEM32(ecx) = esi; /* 0x2509882C: mov dword ptr [ecx], esi */ 5970 esi = MEM32(edx + 0x8); /* 0x2509882E: mov esi, dword ptr [edx + 8] */ 5971 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098831: cmp esi, dword ptr [edi + 8] */ 5972 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5974 _flag_k = FK_CMP; 5975 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098839; /* 0x25098834: je 0x25098839 */ 5976 L_25098836: 5977 MEM32(esi + 0x4) = ecx; /* 0x25098836: mov dword ptr [esi + 4], ecx */ 5978 L_25098839: 5979 esi = MEM32(ecx + 0x4); /* 0x25098839: mov esi, dword ptr [ecx + 4] */ 5980 MEM32(edx + 0x4) = esi; /* 0x2509883C: mov dword ptr [edx + 4], esi */ 5981 esi = MEM32(edi + 0x4); /* 0x2509883F: mov esi, dword ptr [edi + 4] */ 5982 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098842: cmp ecx, dword ptr [esi + 4] */ 5983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5985 _flag_k = FK_CMP; 5986 if (CMP_NE(_flag_a, _flag_b)) goto L_2509884C; /* 0x25098845: jne 0x2509884c */ 5987 L_25098847: 5988 MEM32(esi + 0x4) = edx; /* 0x25098847: mov dword ptr [esi + 4], edx */ 5989 goto L_2509885B; /* 0x2509884A: jmp 0x2509885b */ 5990 L_2509884C: 5991 esi = MEM32(ecx + 0x4); /* 0x2509884C: mov esi, dword ptr [ecx + 4] */ 5992 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x2509884F: cmp ecx, dword ptr [esi + 8] */ 5993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5995 _flag_k = FK_CMP; 5996 if (CMP_NE(_flag_a, _flag_b)) goto L_25098859; /* 0x25098852: jne 0x25098859 */ 5997 L_25098854: 5998 MEM32(esi + 0x8) = edx; /* 0x25098854: mov dword ptr [esi + 8], edx */ 5999 goto L_2509885B; /* 0x25098857: jmp 0x2509885b */ 6000 L_25098859: 6001 MEM32(esi) = edx; /* 0x25098859: mov dword ptr [esi], edx */ 6002 L_2509885B: 6003 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 6004 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 6005 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 6006 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 6007 L_25098867: 6008 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 6009 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 6010 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 6011 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 6012 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 6013 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 6014 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 6015 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 6016 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 6017 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 6018 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 6019 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 6020 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 6021 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6023 _flag_k = FK_CMP; 6024 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 6025 L_2509888E: 6026 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 6027 L_25098891: 6028 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 6029 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 6030 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 6031 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 6032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6034 _flag_k = FK_CMP; 6035 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 6036 L_2509889F: 6037 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 6038 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 6039 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 6040 L_250988A9: 6041 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 6042 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 6043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6045 _flag_k = FK_CMP; 6046 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 6047 L_250988B0: 6048 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 6049 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 6050 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 6051 L_250988B9: 6052 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 6053 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 6054 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 6055 L_2509895F: 6056 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 6057 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 6058 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 6059 PUSH32(esp, edx); /* 0x25098968: push edx */ 6060 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 6061 RECOMP_FLAGS_IN(); 6062 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 6063 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 6064 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6066 esp = esp + 4; /* 0x25098974: add esp, 4 */ 6067 _flag_k = FK_ADD; 6068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6069 eax = eax - 1; /* 0x25098977: dec eax */ 6070 _flag_k = FK_DEC; 6071 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 6072 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 6073 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 6074 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 6075 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 6076 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 6077 esp = ebp; /* 0x25098983: mov esp, ebp */ 6078 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 6079 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 6080 RECOMP_REGS_OUT(); 6081 } 6082 6083 void sub_2509885B(void) { 6084 int _fpu_cmp = 0; 6085 uint32_t _cf = 0; 6086 int _df = 1; 6087 uint32_t _flag_k = FK_NONE; 6088 uint32_t _flag_a = 0, _flag_b = 0; 6089 uint32_t _itail_tgt = 0; 6090 RECOMP_REGS_LOCALS 6091 RECOMP_ENTER(0x2509885Bu); 6092 6093 L_2509885B: 6094 MEM32(edx + 0x8) = ecx; /* 0x2509885B: mov dword ptr [edx + 8], ecx */ 6095 MEM32(ecx + 0x4) = edx; /* 0x2509885E: mov dword ptr [ecx + 4], edx */ 6096 ecx = MEM32(eax + 0x4); /* 0x25098861: mov ecx, dword ptr [eax + 4] */ 6097 ecx = MEM32(ecx + 0x8); /* 0x25098864: mov ecx, dword ptr [ecx + 8] */ 6098 edx = MEM32(eax + 0x4); /* 0x25098867: mov edx, dword ptr [eax + 4] */ 6099 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x2509886A: mov dl, byte ptr [edx + 0x14] */ 6100 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x2509886D: mov byte ptr [ecx + 0x14], dl */ 6101 edx = MEM32(eax + 0x4); /* 0x25098870: mov edx, dword ptr [eax + 4] */ 6102 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098873: mov byte ptr [edx + 0x14], bl */ 6103 ecx = MEM32(ecx + 0x8); /* 0x25098876: mov ecx, dword ptr [ecx + 8] */ 6104 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098879: mov byte ptr [ecx + 0x14], bl */ 6105 ecx = MEM32(eax + 0x4); /* 0x2509887C: mov ecx, dword ptr [eax + 4] */ 6106 edx = MEM32(ecx + 0x8); /* 0x2509887F: mov edx, dword ptr [ecx + 8] */ 6107 esi = MEM32(edx); /* 0x25098882: mov esi, dword ptr [edx] */ 6108 MEM32(ecx + 0x8) = esi; /* 0x25098884: mov dword ptr [ecx + 8], esi */ 6109 esi = MEM32(edx); /* 0x25098887: mov esi, dword ptr [edx] */ 6110 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098889: cmp esi, dword ptr [edi + 8] */ 6111 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6113 _flag_k = FK_CMP; 6114 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098891; /* 0x2509888C: je 0x25098891 */ 6115 L_2509888E: 6116 MEM32(esi + 0x4) = ecx; /* 0x2509888E: mov dword ptr [esi + 4], ecx */ 6117 L_25098891: 6118 esi = MEM32(ecx + 0x4); /* 0x25098891: mov esi, dword ptr [ecx + 4] */ 6119 MEM32(edx + 0x4) = esi; /* 0x25098894: mov dword ptr [edx + 4], esi */ 6120 esi = MEM32(edi + 0x4); /* 0x25098897: mov esi, dword ptr [edi + 4] */ 6121 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x2509889A: cmp ecx, dword ptr [esi + 4] */ 6122 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6124 _flag_k = FK_CMP; 6125 if (CMP_NE(_flag_a, _flag_b)) goto L_250988A9; /* 0x2509889D: jne 0x250988a9 */ 6126 L_2509889F: 6127 MEM32(esi + 0x4) = edx; /* 0x2509889F: mov dword ptr [esi + 4], edx */ 6128 MEM32(edx) = ecx; /* 0x250988A2: mov dword ptr [edx], ecx */ 6129 goto L_2509895F; /* 0x250988A4: jmp 0x2509895f */ 6130 L_250988A9: 6131 esi = MEM32(ecx + 0x4); /* 0x250988A9: mov esi, dword ptr [ecx + 4] */ 6132 /* cmp ecx, MEM32(esi) */ /* 0x250988AC: cmp ecx, dword ptr [esi] */ 6133 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6135 _flag_k = FK_CMP; 6136 if (CMP_NE(_flag_a, _flag_b)) goto L_250988B9; /* 0x250988AE: jne 0x250988b9 */ 6137 L_250988B0: 6138 MEM32(esi) = edx; /* 0x250988B0: mov dword ptr [esi], edx */ 6139 MEM32(edx) = ecx; /* 0x250988B2: mov dword ptr [edx], ecx */ 6140 goto L_2509895F; /* 0x250988B4: jmp 0x2509895f */ 6141 L_250988B9: 6142 MEM32(esi + 0x8) = edx; /* 0x250988B9: mov dword ptr [esi + 8], edx */ 6143 MEM32(edx) = ecx; /* 0x250988BC: mov dword ptr [edx], ecx */ 6144 goto L_2509895F; /* 0x250988BE: jmp 0x2509895f */ 6145 L_2509895F: 6146 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 6147 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 6148 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 6149 PUSH32(esp, edx); /* 0x25098968: push edx */ 6150 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 6151 RECOMP_FLAGS_IN(); 6152 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 6153 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 6154 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6156 esp = esp + 4; /* 0x25098974: add esp, 4 */ 6157 _flag_k = FK_ADD; 6158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6159 eax = eax - 1; /* 0x25098977: dec eax */ 6160 _flag_k = FK_DEC; 6161 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 6162 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 6163 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 6164 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 6165 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 6166 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 6167 esp = ebp; /* 0x25098983: mov esp, ebp */ 6168 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 6169 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 6170 RECOMP_REGS_OUT(); 6171 } 6172 6173 void sub_25098907(void) { 6174 int _fpu_cmp = 0; 6175 uint32_t _cf = 0; 6176 int _df = 1; 6177 uint32_t _flag_k = FK_NONE; 6178 uint32_t _flag_a = 0, _flag_b = 0; 6179 uint32_t _itail_tgt = 0; 6180 RECOMP_REGS_LOCALS 6181 RECOMP_ENTER(0x25098907u); 6182 6183 L_25098907: 6184 MEM32(edx) = ecx; /* 0x25098907: mov dword ptr [edx], ecx */ 6185 MEM32(ecx + 0x4) = edx; /* 0x25098909: mov dword ptr [ecx + 4], edx */ 6186 ecx = MEM32(eax + 0x4); /* 0x2509890C: mov ecx, dword ptr [eax + 4] */ 6187 ecx = MEM32(ecx); /* 0x2509890F: mov ecx, dword ptr [ecx] */ 6188 edx = MEM32(eax + 0x4); /* 0x25098911: mov edx, dword ptr [eax + 4] */ 6189 SET_LO8(edx, MEM8(edx + 0x14)); /* 0x25098914: mov dl, byte ptr [edx + 0x14] */ 6190 MEM8(ecx + 0x14) = (uint8_t)(LO8(edx)); /* 0x25098917: mov byte ptr [ecx + 0x14], dl */ 6191 edx = MEM32(eax + 0x4); /* 0x2509891A: mov edx, dword ptr [eax + 4] */ 6192 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x2509891D: mov byte ptr [edx + 0x14], bl */ 6193 ecx = MEM32(ecx); /* 0x25098920: mov ecx, dword ptr [ecx] */ 6194 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098922: mov byte ptr [ecx + 0x14], bl */ 6195 ecx = MEM32(eax + 0x4); /* 0x25098925: mov ecx, dword ptr [eax + 4] */ 6196 edx = MEM32(ecx); /* 0x25098928: mov edx, dword ptr [ecx] */ 6197 esi = MEM32(edx + 0x8); /* 0x2509892A: mov esi, dword ptr [edx + 8] */ 6198 MEM32(ecx) = esi; /* 0x2509892D: mov dword ptr [ecx], esi */ 6199 esi = MEM32(edx + 0x8); /* 0x2509892F: mov esi, dword ptr [edx + 8] */ 6200 /* cmp esi, MEM32(edi + 0x8) */ /* 0x25098932: cmp esi, dword ptr [edi + 8] */ 6201 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6203 _flag_k = FK_CMP; 6204 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509893A; /* 0x25098935: je 0x2509893a */ 6205 L_25098937: 6206 MEM32(esi + 0x4) = ecx; /* 0x25098937: mov dword ptr [esi + 4], ecx */ 6207 L_2509893A: 6208 esi = MEM32(ecx + 0x4); /* 0x2509893A: mov esi, dword ptr [ecx + 4] */ 6209 MEM32(edx + 0x4) = esi; /* 0x2509893D: mov dword ptr [edx + 4], esi */ 6210 esi = MEM32(edi + 0x4); /* 0x25098940: mov esi, dword ptr [edi + 4] */ 6211 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x25098943: cmp ecx, dword ptr [esi + 4] */ 6212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6214 _flag_k = FK_CMP; 6215 if (CMP_NE(_flag_a, _flag_b)) goto L_2509894D; /* 0x25098946: jne 0x2509894d */ 6216 L_25098948: 6217 MEM32(esi + 0x4) = edx; /* 0x25098948: mov dword ptr [esi + 4], edx */ 6218 goto L_2509895C; /* 0x2509894B: jmp 0x2509895c */ 6219 L_2509894D: 6220 esi = MEM32(ecx + 0x4); /* 0x2509894D: mov esi, dword ptr [ecx + 4] */ 6221 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x25098950: cmp ecx, dword ptr [esi + 8] */ 6222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6224 _flag_k = FK_CMP; 6225 if (CMP_NE(_flag_a, _flag_b)) goto L_2509895A; /* 0x25098953: jne 0x2509895a */ 6226 L_25098955: 6227 MEM32(esi + 0x8) = edx; /* 0x25098955: mov dword ptr [esi + 8], edx */ 6228 goto L_2509895C; /* 0x25098958: jmp 0x2509895c */ 6229 L_2509895A: 6230 MEM32(esi) = edx; /* 0x2509895A: mov dword ptr [esi], edx */ 6231 L_2509895C: 6232 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 6233 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 6234 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 6235 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 6236 PUSH32(esp, edx); /* 0x25098968: push edx */ 6237 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 6238 RECOMP_FLAGS_IN(); 6239 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 6240 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 6241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6243 esp = esp + 4; /* 0x25098974: add esp, 4 */ 6244 _flag_k = FK_ADD; 6245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6246 eax = eax - 1; /* 0x25098977: dec eax */ 6247 _flag_k = FK_DEC; 6248 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 6249 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 6250 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 6251 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 6252 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 6253 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 6254 esp = ebp; /* 0x25098983: mov esp, ebp */ 6255 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 6256 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 6257 RECOMP_REGS_OUT(); 6258 } 6259 6260 void sub_2509895C(void) { 6261 int _fpu_cmp = 0; 6262 uint32_t _cf = 0; 6263 int _df = 1; 6264 uint32_t _flag_k = FK_NONE; 6265 uint32_t _flag_a = 0, _flag_b = 0; 6266 uint32_t _itail_tgt = 0; 6267 RECOMP_REGS_LOCALS 6268 RECOMP_ENTER(0x2509895Cu); 6269 6270 L_2509895C: 6271 MEM32(edx + 0x8) = ecx; /* 0x2509895C: mov dword ptr [edx + 8], ecx */ 6272 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 6273 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 6274 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 6275 PUSH32(esp, edx); /* 0x25098968: push edx */ 6276 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 6277 RECOMP_FLAGS_IN(); 6278 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 6279 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 6280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6282 esp = esp + 4; /* 0x25098974: add esp, 4 */ 6283 _flag_k = FK_ADD; 6284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6285 eax = eax - 1; /* 0x25098977: dec eax */ 6286 _flag_k = FK_DEC; 6287 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 6288 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 6289 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 6290 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 6291 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 6292 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 6293 esp = ebp; /* 0x25098983: mov esp, ebp */ 6294 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 6295 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 6296 RECOMP_REGS_OUT(); 6297 } 6298 6299 void sub_2509895F(void) { 6300 int _fpu_cmp = 0; 6301 uint32_t _cf = 0; 6302 int _df = 1; 6303 uint32_t _flag_k = FK_NONE; 6304 uint32_t _flag_a = 0, _flag_b = 0; 6305 uint32_t _itail_tgt = 0; 6306 RECOMP_REGS_LOCALS 6307 RECOMP_ENTER(0x2509895Fu); 6308 6309 L_2509895F: 6310 MEM32(ecx + 0x4) = edx; /* 0x2509895F: mov dword ptr [ecx + 4], edx */ 6311 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 6312 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 6313 PUSH32(esp, edx); /* 0x25098968: push edx */ 6314 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 6315 RECOMP_FLAGS_IN(); 6316 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 6317 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 6318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6320 esp = esp + 4; /* 0x25098974: add esp, 4 */ 6321 _flag_k = FK_ADD; 6322 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6323 eax = eax - 1; /* 0x25098977: dec eax */ 6324 _flag_k = FK_DEC; 6325 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 6326 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 6327 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 6328 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 6329 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 6330 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 6331 esp = ebp; /* 0x25098983: mov esp, ebp */ 6332 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 6333 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 6334 RECOMP_REGS_OUT(); 6335 } 6336 6337 void sub_25098962(void) { 6338 int _fpu_cmp = 0; 6339 uint32_t _cf = 0; 6340 int _df = 1; 6341 uint32_t _flag_k = FK_NONE; 6342 uint32_t _flag_a = 0, _flag_b = 0; 6343 uint32_t _itail_tgt = 0; 6344 RECOMP_REGS_LOCALS 6345 RECOMP_ENTER(0x25098962u); 6346 6347 L_25098962: 6348 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098962: mov byte ptr [eax + 0x14], bl */ 6349 edx = MEM32(ebp + (-0x4)); /* 0x25098965: mov edx, dword ptr [ebp - 4] */ 6350 PUSH32(esp, edx); /* 0x25098968: push edx */ 6351 RECOMP_ICALL(0x25137EECu); /* 0x25098969: call 0x25137eec */ /* not lifted */ 6352 RECOMP_FLAGS_IN(); 6353 eax = MEM32(edi + 0x10); /* 0x2509896E: mov eax, dword ptr [edi + 0x10] */ 6354 ecx = MEM32(ebp + 0xC); /* 0x25098971: mov ecx, dword ptr [ebp + 0xc] */ 6355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6357 esp = esp + 4; /* 0x25098974: add esp, 4 */ 6358 _flag_k = FK_ADD; 6359 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6360 eax = eax - 1; /* 0x25098977: dec eax */ 6361 _flag_k = FK_DEC; 6362 MEM32(edi + 0x10) = eax; /* 0x25098978: mov dword ptr [edi + 0x10], eax */ 6363 eax = MEM32(ebp + 0x8); /* 0x2509897B: mov eax, dword ptr [ebp + 8] */ 6364 edi = POP32_VAL(esp); /* 0x2509897E: pop edi */ 6365 esi = POP32_VAL(esp); /* 0x2509897F: pop esi */ 6366 MEM32(eax) = ecx; /* 0x25098980: mov dword ptr [eax], ecx */ 6367 ebx = POP32_VAL(esp); /* 0x25098982: pop ebx */ 6368 esp = ebp; /* 0x25098983: mov esp, ebp */ 6369 ebp = POP32_VAL(esp); /* 0x25098985: pop ebp */ 6370 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25098986: ret 8 */ 6371 RECOMP_REGS_OUT(); 6372 } 6373 6374 void sub_25098990(void) { 6375 int _fpu_cmp = 0; 6376 uint32_t _cf = 0; 6377 int _df = 1; 6378 uint32_t _flag_k = FK_NONE; 6379 uint32_t _flag_a = 0, _flag_b = 0; 6380 uint32_t _itail_tgt = 0; 6381 RECOMP_REGS_LOCALS 6382 RECOMP_ENTER(0x25098990u); 6383 6384 L_25098990: 6385 PUSH32(esp, ebp); /* 0x25098990: push ebp */ 6386 ebp = esp; /* 0x25098991: mov ebp, esp */ 6387 PUSH32(esp, ebx); /* 0x25098993: push ebx */ 6388 PUSH32(esp, esi); /* 0x25098994: push esi */ 6389 esi = MEM32(ebp + 0xC); /* 0x25098995: mov esi, dword ptr [ebp + 0xc] */ 6390 PUSH32(esp, edi); /* 0x25098998: push edi */ 6391 edi = MEM32(esi + 0x4); /* 0x25098999: mov edi, dword ptr [esi + 4] */ 6392 PUSH32(esp, 0xCu); /* 0x2509899C: push 0xc */ 6393 ebx = ecx; /* 0x2509899E: mov ebx, ecx */ 6394 RECOMP_ICALL(0x251380D0u); /* 0x250989A0: call 0x251380d0 */ /* not lifted */ 6395 RECOMP_FLAGS_IN(); 6396 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6398 esp = esp + 4; /* 0x250989A5: add esp, 4 */ 6399 _flag_k = FK_ADD; 6400 /* test esi, esi */ /* 0x250989A8: test esi, esi */ 6401 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6402 _cf = 0; 6403 _flag_k = FK_TEST; 6404 ecx = esi; /* 0x250989AA: mov ecx, esi */ 6405 if (TEST_NZ(_flag_a, _flag_b)) goto L_250989B0; /* 0x250989AC: jne 0x250989b0 */ 6406 L_250989AE: 6407 ecx = eax; /* 0x250989AE: mov ecx, eax */ 6408 L_250989B0: 6409 /* test edi, edi */ /* 0x250989B0: test edi, edi */ 6410 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6411 _cf = 0; 6412 _flag_k = FK_TEST; 6413 MEM32(eax) = ecx; /* 0x250989B2: mov dword ptr [eax], ecx */ 6414 ecx = edi; /* 0x250989B4: mov ecx, edi */ 6415 if (TEST_NZ(_flag_a, _flag_b)) goto L_250989BA; /* 0x250989B6: jne 0x250989ba */ 6416 L_250989B8: 6417 ecx = eax; /* 0x250989B8: mov ecx, eax */ 6418 L_250989BA: 6419 MEM32(eax + 0x4) = ecx; /* 0x250989BA: mov dword ptr [eax + 4], ecx */ 6420 MEM32(esi + 0x4) = eax; /* 0x250989BD: mov dword ptr [esi + 4], eax */ 6421 ecx = MEM32(eax + 0x4); /* 0x250989C0: mov ecx, dword ptr [eax + 4] */ 6422 MEM32(ecx) = eax; /* 0x250989C3: mov dword ptr [ecx], eax */ 6423 ecx = eax + 0x8; /* 0x250989C5: lea ecx, [eax + 8] */ 6424 /* test ecx, ecx */ /* 0x250989C8: test ecx, ecx */ 6425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6426 _cf = 0; 6427 _flag_k = FK_TEST; 6428 if (TEST_Z(_flag_a, _flag_b)) goto L_250989D3; /* 0x250989CA: je 0x250989d3 */ 6429 L_250989CC: 6430 edx = MEM32(ebp + 0x10); /* 0x250989CC: mov edx, dword ptr [ebp + 0x10] */ 6431 edx = MEM32(edx); /* 0x250989CF: mov edx, dword ptr [edx] */ 6432 MEM32(ecx) = edx; /* 0x250989D1: mov dword ptr [ecx], edx */ 6433 L_250989D3: 6434 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(1); 6435 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + 1; /* 0x250989D3: inc dword ptr [ebx + 8] */ 6436 _flag_k = FK_INC; 6437 ecx = MEM32(ebp + 0x8); /* 0x250989D6: mov ecx, dword ptr [ebp + 8] */ 6438 edi = POP32_VAL(esp); /* 0x250989D9: pop edi */ 6439 esi = POP32_VAL(esp); /* 0x250989DA: pop esi */ 6440 MEM32(ecx) = eax; /* 0x250989DB: mov dword ptr [ecx], eax */ 6441 eax = ecx; /* 0x250989DD: mov eax, ecx */ 6442 ebx = POP32_VAL(esp); /* 0x250989DF: pop ebx */ 6443 ebp = POP32_VAL(esp); /* 0x250989E0: pop ebp */ 6444 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x250989E1: ret 0xc */ 6445 RECOMP_REGS_OUT(); 6446 } 6447 6448 void sub_250989F0(void) { 6449 int _fpu_cmp = 0; 6450 uint32_t _cf = 0; 6451 int _df = 1; 6452 uint32_t _flag_k = FK_NONE; 6453 uint32_t _flag_a = 0, _flag_b = 0; 6454 uint32_t _itail_tgt = 0; 6455 RECOMP_REGS_LOCALS 6456 RECOMP_ENTER(0x250989F0u); 6457 6458 L_250989F0: 6459 PUSH32(esp, ebp); /* 0x250989F0: push ebp */ 6460 ebp = esp; /* 0x250989F1: mov ebp, esp */ 6461 PUSH32(esp, ebx); /* 0x250989F3: push ebx */ 6462 PUSH32(esp, esi); /* 0x250989F4: push esi */ 6463 ebx = ecx; /* 0x250989F5: mov ebx, ecx */ 6464 eax = MEM32(ebx + 0x8); /* 0x250989F7: mov eax, dword ptr [ebx + 8] */ 6465 PUSH32(esp, edi); /* 0x250989FA: push edi */ 6466 edi = MEM32(ebp + 0x8); /* 0x250989FB: mov edi, dword ptr [ebp + 8] */ 6467 /* cmp edi, eax */ /* 0x250989FE: cmp edi, eax */ 6468 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6470 _flag_k = FK_CMP; 6471 esi = edi; /* 0x25098A00: mov esi, edi */ 6472 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098A23; /* 0x25098A02: je 0x25098a23 */ 6473 L_25098A04: 6474 eax = MEM32(esi + 0x8); /* 0x25098A04: mov eax, dword ptr [esi + 8] */ 6475 PUSH32(esp, eax); /* 0x25098A07: push eax */ 6476 ecx = ebx; /* 0x25098A08: mov ecx, ebx */ 6477 RECOMP_ICALL(0x250989F0u); /* 0x25098A0A: call 0x250989f0 */ /* not lifted */ 6478 RECOMP_FLAGS_IN(); 6479 esi = MEM32(esi); /* 0x25098A0F: mov esi, dword ptr [esi] */ 6480 PUSH32(esp, edi); /* 0x25098A11: push edi */ 6481 RECOMP_ICALL(0x25137EECu); /* 0x25098A12: call 0x25137eec */ /* not lifted */ 6482 RECOMP_FLAGS_IN(); 6483 eax = MEM32(ebx + 0x8); /* 0x25098A17: mov eax, dword ptr [ebx + 8] */ 6484 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6486 esp = esp + 4; /* 0x25098A1A: add esp, 4 */ 6487 _flag_k = FK_ADD; 6488 /* cmp esi, eax */ /* 0x25098A1D: cmp esi, eax */ 6489 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6491 _flag_k = FK_CMP; 6492 edi = esi; /* 0x25098A1F: mov edi, esi */ 6493 RECOMP_BACKEDGE(); 6494 if (CMP_NE(_flag_a, _flag_b)) goto L_25098A04; /* 0x25098A21: jne 0x25098a04 */ 6495 L_25098A23: 6496 edi = POP32_VAL(esp); /* 0x25098A23: pop edi */ 6497 esi = POP32_VAL(esp); /* 0x25098A24: pop esi */ 6498 ebx = POP32_VAL(esp); /* 0x25098A25: pop ebx */ 6499 ebp = POP32_VAL(esp); /* 0x25098A26: pop ebp */ 6500 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25098A27: ret 4 */ 6501 RECOMP_REGS_OUT(); 6502 } 6503 6504 void sub_25098A30(void) { 6505 int _fpu_cmp = 0; 6506 uint32_t _cf = 0; 6507 int _df = 1; 6508 uint32_t _flag_k = FK_NONE; 6509 uint32_t _flag_a = 0, _flag_b = 0; 6510 uint32_t _itail_tgt = 0; 6511 RECOMP_REGS_LOCALS 6512 RECOMP_ENTER(0x25098A30u); 6513 6514 L_25098A30: 6515 PUSH32(esp, ebx); /* 0x25098A30: push ebx */ 6516 PUSH32(esp, esi); /* 0x25098A31: push esi */ 6517 PUSH32(esp, edi); /* 0x25098A32: push edi */ 6518 PUSH32(esp, 0x18u); /* 0x25098A33: push 0x18 */ 6519 esi = ecx; /* 0x25098A35: mov esi, ecx */ 6520 RECOMP_ICALL(0x251380D0u); /* 0x25098A37: call 0x251380d0 */ /* not lifted */ 6521 RECOMP_FLAGS_IN(); 6522 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6523 ebx = 0; /* 0x25098A3C: xor ebx, ebx */ 6524 _cf = 0; 6525 _flag_k = FK_TEST; 6526 MEM32(eax + 0x4) = ebx; /* 0x25098A3E: mov dword ptr [eax + 4], ebx */ 6527 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x25098A41: mov byte ptr [eax + 0x15], bl */ 6528 SET_LO8(ecx, 1); /* 0x25098A44: mov cl, 1 */ 6529 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x25098A46: mov byte ptr [eax + 0x14], cl */ 6530 MEM32(esi + 0x8) = eax; /* 0x25098A49: mov dword ptr [esi + 8], eax */ 6531 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x25098A4C: mov byte ptr [eax + 0x15], cl */ 6532 eax = MEM32(esi + 0x8); /* 0x25098A4F: mov eax, dword ptr [esi + 8] */ 6533 MEM32(eax) = ebx; /* 0x25098A52: mov dword ptr [eax], ebx */ 6534 ecx = MEM32(esi + 0x8); /* 0x25098A54: mov ecx, dword ptr [esi + 8] */ 6535 MEM32(ecx + 0x8) = ebx; /* 0x25098A57: mov dword ptr [ecx + 8], ebx */ 6536 edi = MEM32(esi + 0x8); /* 0x25098A5A: mov edi, dword ptr [esi + 8] */ 6537 PUSH32(esp, 0x18u); /* 0x25098A5D: push 0x18 */ 6538 RECOMP_ICALL(0x251380D0u); /* 0x25098A5F: call 0x251380d0 */ /* not lifted */ 6539 RECOMP_FLAGS_IN(); 6540 MEM32(eax + 0x4) = edi; /* 0x25098A64: mov dword ptr [eax + 4], edi */ 6541 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098A67: mov byte ptr [eax + 0x14], bl */ 6542 MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x25098A6A: mov byte ptr [eax + 0x15], bl */ 6543 MEM32(esi + 0x4) = eax; /* 0x25098A6D: mov dword ptr [esi + 4], eax */ 6544 MEM32(eax) = eax; /* 0x25098A70: mov dword ptr [eax], eax */ 6545 eax = MEM32(esi + 0x4); /* 0x25098A72: mov eax, dword ptr [esi + 4] */ 6546 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6548 esp = esp + 8; /* 0x25098A75: add esp, 8 */ 6549 _flag_k = FK_ADD; 6550 edi = POP32_VAL(esp); /* 0x25098A78: pop edi */ 6551 MEM32(eax + 0x8) = eax; /* 0x25098A79: mov dword ptr [eax + 8], eax */ 6552 MEM32(esi + 0x10) = ebx; /* 0x25098A7C: mov dword ptr [esi + 0x10], ebx */ 6553 esi = POP32_VAL(esp); /* 0x25098A7F: pop esi */ 6554 ebx = POP32_VAL(esp); /* 0x25098A80: pop ebx */ 6555 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25098A81: ret */ 6556 RECOMP_REGS_OUT(); 6557 } 6558 6559 void sub_25098A90(void) { 6560 int _fpu_cmp = 0; 6561 uint32_t _cf = 0; 6562 int _df = 1; 6563 uint32_t _flag_k = FK_NONE; 6564 uint32_t _flag_a = 0, _flag_b = 0; 6565 uint32_t _itail_tgt = 0; 6566 RECOMP_REGS_LOCALS 6567 RECOMP_ENTER(0x25098A90u); 6568 6569 L_25098A90: 6570 PUSH32(esp, ebp); /* 0x25098A90: push ebp */ 6571 ebp = esp; /* 0x25098A91: mov ebp, esp */ 6572 PUSH32(esp, ecx); /* 0x25098A93: push ecx */ 6573 PUSH32(esp, ebx); /* 0x25098A94: push ebx */ 6574 PUSH32(esp, esi); /* 0x25098A95: push esi */ 6575 PUSH32(esp, edi); /* 0x25098A96: push edi */ 6576 PUSH32(esp, 0x18u); /* 0x25098A97: push 0x18 */ 6577 esi = ecx; /* 0x25098A99: mov esi, ecx */ 6578 RECOMP_ICALL(0x251380D0u); /* 0x25098A9B: call 0x251380d0 */ /* not lifted */ 6579 RECOMP_FLAGS_IN(); 6580 edi = MEM32(ebp + 0x10); /* 0x25098AA0: mov edi, dword ptr [ebp + 0x10] */ 6581 ebx = MEM32(ebp + 0x14); /* 0x25098AA3: mov ebx, dword ptr [ebp + 0x14] */ 6582 MEM32(eax + 0x4) = edi; /* 0x25098AA6: mov dword ptr [eax + 4], edi */ 6583 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x25098AA9: mov byte ptr [eax + 0x14], 0 */ 6584 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x25098AAD: mov byte ptr [eax + 0x15], 0 */ 6585 ecx = MEM32(esi + 0x8); /* 0x25098AB1: mov ecx, dword ptr [esi + 8] */ 6586 MEM32(eax) = ecx; /* 0x25098AB4: mov dword ptr [eax], ecx */ 6587 edx = MEM32(esi + 0x8); /* 0x25098AB6: mov edx, dword ptr [esi + 8] */ 6588 MEM32(ebp + (-0x4)) = eax; /* 0x25098AB9: mov dword ptr [ebp - 4], eax */ 6589 MEM32(eax + 0x8) = edx; /* 0x25098ABC: mov dword ptr [eax + 8], edx */ 6590 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6592 eax = eax + 0xCu; /* 0x25098ABF: add eax, 0xc */ 6593 _flag_k = FK_ADD; 6594 PUSH32(esp, ebx); /* 0x25098AC2: push ebx */ 6595 PUSH32(esp, eax); /* 0x25098AC3: push eax */ 6596 RECOMP_ICALL(0x2512B900u); /* 0x25098AC4: call 0x2512b900 */ /* not lifted */ 6597 RECOMP_FLAGS_IN(); 6598 ecx = MEM32(esi + 0x10); /* 0x25098AC9: mov ecx, dword ptr [esi + 0x10] */ 6599 eax = MEM32(esi + 0x4); /* 0x25098ACC: mov eax, dword ptr [esi + 4] */ 6600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6602 esp = esp + 0xCu; /* 0x25098ACF: add esp, 0xc */ 6603 _flag_k = FK_ADD; 6604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6605 ecx = ecx + 1; /* 0x25098AD2: inc ecx */ 6606 _flag_k = FK_INC; 6607 /* cmp edi, eax */ /* 0x25098AD3: cmp edi, eax */ 6608 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6610 _flag_k = FK_CMP; 6611 MEM32(esi + 0x10) = ecx; /* 0x25098AD5: mov dword ptr [esi + 0x10], ecx */ 6612 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098AFC; /* 0x25098AD8: je 0x25098afc */ 6613 L_25098ADA: 6614 eax = MEM32(ebp + 0xC); /* 0x25098ADA: mov eax, dword ptr [ebp + 0xc] */ 6615 /* cmp eax, MEM32(esi + 0x8) */ /* 0x25098ADD: cmp eax, dword ptr [esi + 8] */ 6616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6618 _flag_k = FK_CMP; 6619 if (CMP_NE(_flag_a, _flag_b)) goto L_25098AFC; /* 0x25098AE0: jne 0x25098afc */ 6620 L_25098AE2: 6621 ecx = MEM32(ebx); /* 0x25098AE2: mov ecx, dword ptr [ebx] */ 6622 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x25098AE4: cmp ecx, dword ptr [edi + 0xc] */ 6623 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 6624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6625 _flag_k = FK_CMP; 6626 if (CMP_L(_flag_a, _flag_b)) goto L_25098AFC; /* 0x25098AE7: jl 0x25098afc */ 6627 L_25098AE9: 6628 ecx = MEM32(ebp + (-0x4)); /* 0x25098AE9: mov ecx, dword ptr [ebp - 4] */ 6629 MEM32(edi + 0x8) = ecx; /* 0x25098AEC: mov dword ptr [edi + 8], ecx */ 6630 eax = MEM32(esi + 0x4); /* 0x25098AEF: mov eax, dword ptr [esi + 4] */ 6631 /* cmp edi, MEM32(eax + 0x8) */ /* 0x25098AF2: cmp edi, dword ptr [eax + 8] */ 6632 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6634 _flag_k = FK_CMP; 6635 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B1C; /* 0x25098AF5: jne 0x25098b1c */ 6636 L_25098AF7: 6637 MEM32(eax + 0x8) = ecx; /* 0x25098AF7: mov dword ptr [eax + 8], ecx */ 6638 goto L_25098B1C; /* 0x25098AFA: jmp 0x25098b1c */ 6639 L_25098AFC: 6640 ecx = MEM32(ebp + (-0x4)); /* 0x25098AFC: mov ecx, dword ptr [ebp - 4] */ 6641 MEM32(edi) = ecx; /* 0x25098AFF: mov dword ptr [edi], ecx */ 6642 eax = MEM32(esi + 0x4); /* 0x25098B01: mov eax, dword ptr [esi + 4] */ 6643 /* cmp edi, eax */ /* 0x25098B04: cmp edi, eax */ 6644 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6646 _flag_k = FK_CMP; 6647 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B13; /* 0x25098B06: jne 0x25098b13 */ 6648 L_25098B08: 6649 MEM32(eax + 0x4) = ecx; /* 0x25098B08: mov dword ptr [eax + 4], ecx */ 6650 edx = MEM32(esi + 0x4); /* 0x25098B0B: mov edx, dword ptr [esi + 4] */ 6651 MEM32(edx + 0x8) = ecx; /* 0x25098B0E: mov dword ptr [edx + 8], ecx */ 6652 goto L_25098B1C; /* 0x25098B11: jmp 0x25098b1c */ 6653 L_25098B13: 6654 /* cmp edi, MEM32(eax) */ /* 0x25098B13: cmp edi, dword ptr [eax] */ 6655 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 6656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6657 _flag_k = FK_CMP; 6658 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B1C; /* 0x25098B15: jne 0x25098b1c */ 6659 L_25098B17: 6660 ecx = MEM32(ebp + (-0x4)); /* 0x25098B17: mov ecx, dword ptr [ebp - 4] */ 6661 MEM32(eax) = ecx; /* 0x25098B1A: mov dword ptr [eax], ecx */ 6662 L_25098B1C: 6663 edx = MEM32(esi + 0x4); /* 0x25098B1C: mov edx, dword ptr [esi + 4] */ 6664 eax = MEM32(ebp + (-0x4)); /* 0x25098B1F: mov eax, dword ptr [ebp - 4] */ 6665 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B22: cmp eax, dword ptr [edx + 4] */ 6666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6668 _flag_k = FK_CMP; 6669 SET_LO8(ebx, 1); /* 0x25098B25: mov bl, 1 */ 6670 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B27: je 0x25098cad */ 6671 L_25098B2D: 6672 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 6673 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 6674 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 6675 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6676 _cf = 0; 6677 _flag_k = FK_NARROW(FK_TEST, 24); 6678 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 6679 L_25098B3B: 6680 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 6681 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 6682 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 6683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6685 _flag_k = FK_CMP; 6686 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 6687 L_25098B48: 6688 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 6689 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 6690 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6692 _flag_k = FK_NARROW(FK_CMP, 24); 6693 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 6694 L_25098B51: 6695 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 6696 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 6697 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 6698 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 6699 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 6700 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 6701 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 6702 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 6703 L_25098B6C: 6704 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 6705 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6707 _flag_k = FK_CMP; 6708 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 6709 L_25098B71: 6710 eax = ecx; /* 0x25098B71: mov eax, ecx */ 6711 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 6712 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 6713 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 6714 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 6715 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 6716 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6718 _flag_k = FK_CMP; 6719 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 6720 L_25098B82: 6721 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 6722 L_25098B85: 6723 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 6724 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 6725 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 6726 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 6727 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6729 _flag_k = FK_CMP; 6730 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 6731 L_25098B93: 6732 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 6733 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 6734 L_25098B98: 6735 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 6736 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 6737 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6739 _flag_k = FK_CMP; 6740 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 6741 L_25098B9F: 6742 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 6743 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 6744 L_25098BA3: 6745 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 6746 L_25098BA6: 6747 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 6748 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 6749 L_25098BAB: 6750 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 6751 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 6752 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 6753 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 6754 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 6755 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 6756 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 6757 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 6758 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 6759 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 6760 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 6761 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 6762 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6764 _flag_k = FK_CMP; 6765 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 6766 L_25098BD0: 6767 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 6768 L_25098BD3: 6769 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 6770 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 6771 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 6772 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 6773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6775 _flag_k = FK_CMP; 6776 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 6777 L_25098BE1: 6778 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 6779 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 6780 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 6781 L_25098BEC: 6782 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 6783 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 6784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6786 _flag_k = FK_CMP; 6787 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 6788 L_25098BF4: 6789 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 6790 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 6791 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 6792 L_25098BFF: 6793 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 6794 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 6795 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 6796 L_25098C09: 6797 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 6798 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6800 _flag_k = FK_NARROW(FK_CMP, 24); 6801 RECOMP_BACKEDGE(); 6802 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 6803 L_25098C13: 6804 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 6805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 6806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6807 _flag_k = FK_CMP; 6808 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 6809 L_25098C17: 6810 eax = ecx; /* 0x25098C17: mov eax, ecx */ 6811 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 6812 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 6813 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 6814 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 6815 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 6816 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6818 _flag_k = FK_CMP; 6819 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 6820 L_25098C28: 6821 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 6822 L_25098C2B: 6823 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 6824 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 6825 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 6826 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 6827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6829 _flag_k = FK_CMP; 6830 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 6831 L_25098C39: 6832 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 6833 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 6834 L_25098C3E: 6835 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 6836 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 6837 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 6838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6839 _flag_k = FK_CMP; 6840 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 6841 L_25098C46: 6842 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 6843 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 6844 L_25098C4B: 6845 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 6846 L_25098C4D: 6847 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 6848 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 6849 L_25098C53: 6850 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 6851 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 6852 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 6853 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 6854 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 6855 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 6856 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 6857 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 6858 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 6859 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 6860 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 6861 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 6862 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6864 _flag_k = FK_CMP; 6865 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 6866 L_25098C78: 6867 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 6868 L_25098C7B: 6869 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 6870 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 6871 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 6872 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 6873 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 6874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6875 _flag_k = FK_CMP; 6876 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 6877 L_25098C89: 6878 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 6879 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 6880 L_25098C8E: 6881 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 6882 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 6883 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 6884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6885 _flag_k = FK_CMP; 6886 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 6887 L_25098C95: 6888 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 6889 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 6890 L_25098C99: 6891 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 6892 L_25098C9C: 6893 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 6894 L_25098C9E: 6895 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 6896 L_25098CA1: 6897 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 6898 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 6899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6901 _flag_k = FK_CMP; 6902 RECOMP_BACKEDGE(); 6903 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 6904 L_25098CAD: 6905 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 6906 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 6907 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 6908 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 6909 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 6910 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 6911 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 6912 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 6913 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 6914 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 6915 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 6916 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 6917 RECOMP_REGS_OUT(); 6918 } 6919 6920 void sub_25098B2D(void) { 6921 int _fpu_cmp = 0; 6922 uint32_t _cf = 0; 6923 int _df = 1; 6924 uint32_t _flag_k = FK_NONE; 6925 uint32_t _flag_a = 0, _flag_b = 0; 6926 uint32_t _itail_tgt = 0; 6927 RECOMP_REGS_LOCALS 6928 RECOMP_ENTER(0x25098B2Du); 6929 6930 L_25098B2D: 6931 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 6932 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 6933 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 6934 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6935 _cf = 0; 6936 _flag_k = FK_NARROW(FK_TEST, 24); 6937 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 6938 L_25098B3B: 6939 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 6940 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 6941 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 6942 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6944 _flag_k = FK_CMP; 6945 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 6946 L_25098B48: 6947 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 6948 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 6949 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 6950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6951 _flag_k = FK_NARROW(FK_CMP, 24); 6952 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 6953 L_25098B51: 6954 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 6955 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 6956 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 6957 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 6958 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 6959 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 6960 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 6961 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 6962 L_25098B6C: 6963 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 6964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 6965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6966 _flag_k = FK_CMP; 6967 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 6968 L_25098B71: 6969 eax = ecx; /* 0x25098B71: mov eax, ecx */ 6970 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 6971 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 6972 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 6973 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 6974 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 6975 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6977 _flag_k = FK_CMP; 6978 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 6979 L_25098B82: 6980 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 6981 L_25098B85: 6982 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 6983 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 6984 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 6985 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 6986 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 6987 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6988 _flag_k = FK_CMP; 6989 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 6990 L_25098B93: 6991 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 6992 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 6993 L_25098B98: 6994 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 6995 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 6996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 6997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6998 _flag_k = FK_CMP; 6999 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 7000 L_25098B9F: 7001 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 7002 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 7003 L_25098BA3: 7004 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 7005 L_25098BA6: 7006 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 7007 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 7008 L_25098BAB: 7009 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 7010 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 7011 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 7012 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 7013 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 7014 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 7015 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 7016 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 7017 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 7018 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 7019 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 7020 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 7021 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7023 _flag_k = FK_CMP; 7024 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 7025 L_25098BD0: 7026 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 7027 L_25098BD3: 7028 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 7029 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 7030 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 7031 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 7032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7034 _flag_k = FK_CMP; 7035 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 7036 L_25098BE1: 7037 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 7038 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 7039 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 7040 L_25098BEC: 7041 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 7042 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 7043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7045 _flag_k = FK_CMP; 7046 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 7047 L_25098BF4: 7048 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 7049 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 7050 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 7051 L_25098BFF: 7052 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 7053 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 7054 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 7055 L_25098C09: 7056 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 7057 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7059 _flag_k = FK_NARROW(FK_CMP, 24); 7060 RECOMP_BACKEDGE(); 7061 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 7062 L_25098C13: 7063 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 7064 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7066 _flag_k = FK_CMP; 7067 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 7068 L_25098C17: 7069 eax = ecx; /* 0x25098C17: mov eax, ecx */ 7070 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 7071 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 7072 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 7073 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 7074 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 7075 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7077 _flag_k = FK_CMP; 7078 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 7079 L_25098C28: 7080 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 7081 L_25098C2B: 7082 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 7083 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 7084 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 7085 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 7086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7088 _flag_k = FK_CMP; 7089 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 7090 L_25098C39: 7091 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 7092 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 7093 L_25098C3E: 7094 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 7095 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 7096 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7098 _flag_k = FK_CMP; 7099 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 7100 L_25098C46: 7101 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 7102 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 7103 L_25098C4B: 7104 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 7105 L_25098C4D: 7106 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 7107 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 7108 L_25098C53: 7109 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 7110 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 7111 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 7112 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 7113 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 7114 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 7115 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 7116 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 7117 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 7118 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 7119 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 7120 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 7121 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7123 _flag_k = FK_CMP; 7124 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 7125 L_25098C78: 7126 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 7127 L_25098C7B: 7128 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 7129 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 7130 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 7131 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 7132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7134 _flag_k = FK_CMP; 7135 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 7136 L_25098C89: 7137 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 7138 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 7139 L_25098C8E: 7140 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 7141 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 7142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7144 _flag_k = FK_CMP; 7145 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 7146 L_25098C95: 7147 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 7148 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 7149 L_25098C99: 7150 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 7151 L_25098C9C: 7152 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 7153 L_25098C9E: 7154 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 7155 L_25098CA1: 7156 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 7157 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 7158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7160 _flag_k = FK_CMP; 7161 RECOMP_BACKEDGE(); 7162 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 7163 L_25098CAD: 7164 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 7165 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 7166 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 7167 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 7168 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 7169 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 7170 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 7171 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 7172 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 7173 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 7174 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 7175 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 7176 RECOMP_REGS_OUT(); 7177 } 7178 7179 void sub_25098B51(void) { 7180 int _fpu_cmp = 0; 7181 uint32_t _cf = 0; 7182 int _df = 1; 7183 uint32_t _flag_k = FK_NONE; 7184 uint32_t _flag_a = 0, _flag_b = 0; 7185 uint32_t _itail_tgt = 0; 7186 RECOMP_REGS_LOCALS 7187 RECOMP_ENTER(0x25098B51u); 7188 7189 goto L_25098B51; 7190 L_25098B2D: 7191 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 7192 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 7193 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 7194 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7195 _cf = 0; 7196 _flag_k = FK_NARROW(FK_TEST, 24); 7197 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 7198 L_25098B3B: 7199 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 7200 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 7201 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 7202 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7204 _flag_k = FK_CMP; 7205 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 7206 L_25098B48: 7207 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 7208 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 7209 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7211 _flag_k = FK_NARROW(FK_CMP, 24); 7212 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 7213 L_25098B51: 7214 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 7215 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 7216 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 7217 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 7218 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 7219 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 7220 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 7221 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 7222 L_25098B6C: 7223 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 7224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7226 _flag_k = FK_CMP; 7227 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 7228 L_25098B71: 7229 eax = ecx; /* 0x25098B71: mov eax, ecx */ 7230 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 7231 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 7232 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 7233 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 7234 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 7235 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7237 _flag_k = FK_CMP; 7238 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 7239 L_25098B82: 7240 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 7241 L_25098B85: 7242 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 7243 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 7244 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 7245 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 7246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7248 _flag_k = FK_CMP; 7249 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 7250 L_25098B93: 7251 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 7252 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 7253 L_25098B98: 7254 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 7255 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 7256 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7258 _flag_k = FK_CMP; 7259 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 7260 L_25098B9F: 7261 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 7262 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 7263 L_25098BA3: 7264 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 7265 L_25098BA6: 7266 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 7267 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 7268 L_25098BAB: 7269 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 7270 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 7271 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 7272 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 7273 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 7274 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 7275 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 7276 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 7277 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 7278 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 7279 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 7280 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 7281 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7283 _flag_k = FK_CMP; 7284 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 7285 L_25098BD0: 7286 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 7287 L_25098BD3: 7288 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 7289 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 7290 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 7291 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 7292 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7294 _flag_k = FK_CMP; 7295 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 7296 L_25098BE1: 7297 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 7298 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 7299 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 7300 L_25098BEC: 7301 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 7302 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 7303 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7305 _flag_k = FK_CMP; 7306 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 7307 L_25098BF4: 7308 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 7309 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 7310 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 7311 L_25098BFF: 7312 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 7313 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 7314 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 7315 L_25098C09: 7316 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 7317 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7319 _flag_k = FK_NARROW(FK_CMP, 24); 7320 RECOMP_BACKEDGE(); 7321 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 7322 L_25098C13: 7323 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 7324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7326 _flag_k = FK_CMP; 7327 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 7328 L_25098C17: 7329 eax = ecx; /* 0x25098C17: mov eax, ecx */ 7330 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 7331 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 7332 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 7333 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 7334 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 7335 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7337 _flag_k = FK_CMP; 7338 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 7339 L_25098C28: 7340 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 7341 L_25098C2B: 7342 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 7343 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 7344 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 7345 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 7346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7348 _flag_k = FK_CMP; 7349 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 7350 L_25098C39: 7351 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 7352 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 7353 L_25098C3E: 7354 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 7355 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 7356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7358 _flag_k = FK_CMP; 7359 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 7360 L_25098C46: 7361 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 7362 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 7363 L_25098C4B: 7364 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 7365 L_25098C4D: 7366 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 7367 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 7368 L_25098C53: 7369 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 7370 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 7371 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 7372 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 7373 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 7374 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 7375 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 7376 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 7377 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 7378 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 7379 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 7380 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 7381 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7383 _flag_k = FK_CMP; 7384 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 7385 L_25098C78: 7386 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 7387 L_25098C7B: 7388 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 7389 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 7390 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 7391 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 7392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7394 _flag_k = FK_CMP; 7395 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 7396 L_25098C89: 7397 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 7398 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 7399 L_25098C8E: 7400 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 7401 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 7402 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7404 _flag_k = FK_CMP; 7405 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 7406 L_25098C95: 7407 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 7408 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 7409 L_25098C99: 7410 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 7411 L_25098C9C: 7412 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 7413 L_25098C9E: 7414 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 7415 L_25098CA1: 7416 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 7417 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 7418 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7420 _flag_k = FK_CMP; 7421 RECOMP_BACKEDGE(); 7422 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 7423 L_25098CAD: 7424 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 7425 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 7426 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 7427 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 7428 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 7429 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 7430 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 7431 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 7432 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 7433 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 7434 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 7435 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 7436 RECOMP_REGS_OUT(); 7437 } 7438 7439 void sub_25098BA6(void) { 7440 int _fpu_cmp = 0; 7441 uint32_t _cf = 0; 7442 int _df = 1; 7443 uint32_t _flag_k = FK_NONE; 7444 uint32_t _flag_a = 0, _flag_b = 0; 7445 uint32_t _itail_tgt = 0; 7446 RECOMP_REGS_LOCALS 7447 RECOMP_ENTER(0x25098BA6u); 7448 7449 goto L_25098BA6; 7450 L_25098B2D: 7451 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 7452 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 7453 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 7454 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7455 _cf = 0; 7456 _flag_k = FK_NARROW(FK_TEST, 24); 7457 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 7458 L_25098B3B: 7459 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 7460 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 7461 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 7462 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7464 _flag_k = FK_CMP; 7465 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 7466 L_25098B48: 7467 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 7468 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 7469 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7471 _flag_k = FK_NARROW(FK_CMP, 24); 7472 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 7473 L_25098B51: 7474 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 7475 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 7476 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 7477 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 7478 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 7479 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 7480 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 7481 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 7482 L_25098B6C: 7483 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 7484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7486 _flag_k = FK_CMP; 7487 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 7488 L_25098B71: 7489 eax = ecx; /* 0x25098B71: mov eax, ecx */ 7490 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 7491 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 7492 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 7493 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 7494 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 7495 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7497 _flag_k = FK_CMP; 7498 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 7499 L_25098B82: 7500 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 7501 L_25098B85: 7502 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 7503 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 7504 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 7505 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 7506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7508 _flag_k = FK_CMP; 7509 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 7510 L_25098B93: 7511 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 7512 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 7513 L_25098B98: 7514 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 7515 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 7516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7518 _flag_k = FK_CMP; 7519 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 7520 L_25098B9F: 7521 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 7522 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 7523 L_25098BA3: 7524 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 7525 L_25098BA6: 7526 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 7527 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 7528 L_25098BAB: 7529 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 7530 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 7531 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 7532 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 7533 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 7534 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 7535 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 7536 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 7537 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 7538 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 7539 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 7540 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 7541 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7543 _flag_k = FK_CMP; 7544 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 7545 L_25098BD0: 7546 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 7547 L_25098BD3: 7548 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 7549 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 7550 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 7551 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 7552 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7554 _flag_k = FK_CMP; 7555 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 7556 L_25098BE1: 7557 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 7558 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 7559 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 7560 L_25098BEC: 7561 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 7562 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 7563 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7565 _flag_k = FK_CMP; 7566 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 7567 L_25098BF4: 7568 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 7569 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 7570 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 7571 L_25098BFF: 7572 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 7573 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 7574 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 7575 L_25098C09: 7576 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 7577 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7579 _flag_k = FK_NARROW(FK_CMP, 24); 7580 RECOMP_BACKEDGE(); 7581 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 7582 L_25098C13: 7583 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 7584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7586 _flag_k = FK_CMP; 7587 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 7588 L_25098C17: 7589 eax = ecx; /* 0x25098C17: mov eax, ecx */ 7590 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 7591 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 7592 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 7593 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 7594 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 7595 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7597 _flag_k = FK_CMP; 7598 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 7599 L_25098C28: 7600 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 7601 L_25098C2B: 7602 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 7603 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 7604 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 7605 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 7606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7608 _flag_k = FK_CMP; 7609 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 7610 L_25098C39: 7611 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 7612 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 7613 L_25098C3E: 7614 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 7615 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 7616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7618 _flag_k = FK_CMP; 7619 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 7620 L_25098C46: 7621 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 7622 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 7623 L_25098C4B: 7624 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 7625 L_25098C4D: 7626 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 7627 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 7628 L_25098C53: 7629 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 7630 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 7631 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 7632 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 7633 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 7634 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 7635 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 7636 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 7637 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 7638 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 7639 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 7640 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 7641 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7643 _flag_k = FK_CMP; 7644 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 7645 L_25098C78: 7646 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 7647 L_25098C7B: 7648 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 7649 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 7650 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 7651 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 7652 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7654 _flag_k = FK_CMP; 7655 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 7656 L_25098C89: 7657 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 7658 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 7659 L_25098C8E: 7660 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 7661 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 7662 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7664 _flag_k = FK_CMP; 7665 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 7666 L_25098C95: 7667 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 7668 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 7669 L_25098C99: 7670 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 7671 L_25098C9C: 7672 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 7673 L_25098C9E: 7674 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 7675 L_25098CA1: 7676 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 7677 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 7678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7680 _flag_k = FK_CMP; 7681 RECOMP_BACKEDGE(); 7682 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 7683 L_25098CAD: 7684 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 7685 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 7686 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 7687 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 7688 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 7689 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 7690 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 7691 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 7692 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 7693 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 7694 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 7695 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 7696 RECOMP_REGS_OUT(); 7697 } 7698 7699 void sub_25098BAB(void) { 7700 int _fpu_cmp = 0; 7701 uint32_t _cf = 0; 7702 int _df = 1; 7703 uint32_t _flag_k = FK_NONE; 7704 uint32_t _flag_a = 0, _flag_b = 0; 7705 uint32_t _itail_tgt = 0; 7706 RECOMP_REGS_LOCALS 7707 RECOMP_ENTER(0x25098BABu); 7708 7709 goto L_25098BAB; 7710 L_25098B2D: 7711 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 7712 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 7713 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 7714 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7715 _cf = 0; 7716 _flag_k = FK_NARROW(FK_TEST, 24); 7717 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 7718 L_25098B3B: 7719 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 7720 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 7721 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 7722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7724 _flag_k = FK_CMP; 7725 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 7726 L_25098B48: 7727 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 7728 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 7729 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7731 _flag_k = FK_NARROW(FK_CMP, 24); 7732 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 7733 L_25098B51: 7734 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 7735 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 7736 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 7737 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 7738 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 7739 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 7740 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 7741 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 7742 L_25098B6C: 7743 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 7744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7746 _flag_k = FK_CMP; 7747 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 7748 L_25098B71: 7749 eax = ecx; /* 0x25098B71: mov eax, ecx */ 7750 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 7751 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 7752 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 7753 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 7754 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 7755 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7757 _flag_k = FK_CMP; 7758 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 7759 L_25098B82: 7760 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 7761 L_25098B85: 7762 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 7763 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 7764 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 7765 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 7766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7768 _flag_k = FK_CMP; 7769 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 7770 L_25098B93: 7771 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 7772 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 7773 L_25098B98: 7774 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 7775 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 7776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7778 _flag_k = FK_CMP; 7779 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 7780 L_25098B9F: 7781 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 7782 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 7783 L_25098BA3: 7784 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 7785 L_25098BA6: 7786 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 7787 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 7788 L_25098BAB: 7789 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 7790 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 7791 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 7792 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 7793 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 7794 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 7795 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 7796 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 7797 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 7798 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 7799 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 7800 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 7801 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7803 _flag_k = FK_CMP; 7804 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 7805 L_25098BD0: 7806 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 7807 L_25098BD3: 7808 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 7809 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 7810 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 7811 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 7812 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7814 _flag_k = FK_CMP; 7815 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 7816 L_25098BE1: 7817 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 7818 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 7819 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 7820 L_25098BEC: 7821 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 7822 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 7823 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7825 _flag_k = FK_CMP; 7826 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 7827 L_25098BF4: 7828 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 7829 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 7830 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 7831 L_25098BFF: 7832 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 7833 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 7834 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 7835 L_25098C09: 7836 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 7837 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7839 _flag_k = FK_NARROW(FK_CMP, 24); 7840 RECOMP_BACKEDGE(); 7841 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 7842 L_25098C13: 7843 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 7844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7846 _flag_k = FK_CMP; 7847 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 7848 L_25098C17: 7849 eax = ecx; /* 0x25098C17: mov eax, ecx */ 7850 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 7851 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 7852 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 7853 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 7854 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 7855 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7857 _flag_k = FK_CMP; 7858 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 7859 L_25098C28: 7860 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 7861 L_25098C2B: 7862 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 7863 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 7864 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 7865 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 7866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7868 _flag_k = FK_CMP; 7869 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 7870 L_25098C39: 7871 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 7872 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 7873 L_25098C3E: 7874 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 7875 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 7876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 7877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7878 _flag_k = FK_CMP; 7879 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 7880 L_25098C46: 7881 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 7882 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 7883 L_25098C4B: 7884 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 7885 L_25098C4D: 7886 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 7887 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 7888 L_25098C53: 7889 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 7890 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 7891 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 7892 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 7893 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 7894 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 7895 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 7896 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 7897 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 7898 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 7899 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 7900 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 7901 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7903 _flag_k = FK_CMP; 7904 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 7905 L_25098C78: 7906 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 7907 L_25098C7B: 7908 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 7909 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 7910 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 7911 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 7912 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7914 _flag_k = FK_CMP; 7915 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 7916 L_25098C89: 7917 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 7918 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 7919 L_25098C8E: 7920 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 7921 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 7922 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 7923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7924 _flag_k = FK_CMP; 7925 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 7926 L_25098C95: 7927 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 7928 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 7929 L_25098C99: 7930 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 7931 L_25098C9C: 7932 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 7933 L_25098C9E: 7934 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 7935 L_25098CA1: 7936 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 7937 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 7938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7940 _flag_k = FK_CMP; 7941 RECOMP_BACKEDGE(); 7942 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 7943 L_25098CAD: 7944 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 7945 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 7946 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 7947 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 7948 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 7949 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 7950 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 7951 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 7952 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 7953 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 7954 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 7955 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 7956 RECOMP_REGS_OUT(); 7957 } 7958 7959 void sub_25098C09(void) { 7960 int _fpu_cmp = 0; 7961 uint32_t _cf = 0; 7962 int _df = 1; 7963 uint32_t _flag_k = FK_NONE; 7964 uint32_t _flag_a = 0, _flag_b = 0; 7965 uint32_t _itail_tgt = 0; 7966 RECOMP_REGS_LOCALS 7967 RECOMP_ENTER(0x25098C09u); 7968 7969 goto L_25098C09; 7970 L_25098B2D: 7971 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 7972 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 7973 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 7974 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7975 _cf = 0; 7976 _flag_k = FK_NARROW(FK_TEST, 24); 7977 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 7978 L_25098B3B: 7979 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 7980 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 7981 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 7982 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7984 _flag_k = FK_CMP; 7985 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 7986 L_25098B48: 7987 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 7988 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 7989 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 7990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7991 _flag_k = FK_NARROW(FK_CMP, 24); 7992 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 7993 L_25098B51: 7994 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 7995 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 7996 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 7997 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 7998 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 7999 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 8000 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 8001 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 8002 L_25098B6C: 8003 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 8004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8006 _flag_k = FK_CMP; 8007 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 8008 L_25098B71: 8009 eax = ecx; /* 0x25098B71: mov eax, ecx */ 8010 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 8011 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 8012 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 8013 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 8014 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 8015 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8017 _flag_k = FK_CMP; 8018 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 8019 L_25098B82: 8020 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 8021 L_25098B85: 8022 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 8023 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 8024 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 8025 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 8026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8028 _flag_k = FK_CMP; 8029 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 8030 L_25098B93: 8031 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 8032 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 8033 L_25098B98: 8034 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 8035 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 8036 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8038 _flag_k = FK_CMP; 8039 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 8040 L_25098B9F: 8041 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 8042 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 8043 L_25098BA3: 8044 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 8045 L_25098BA6: 8046 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 8047 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 8048 L_25098BAB: 8049 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 8050 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 8051 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 8052 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 8053 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 8054 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 8055 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 8056 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 8057 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 8058 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 8059 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 8060 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 8061 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8063 _flag_k = FK_CMP; 8064 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 8065 L_25098BD0: 8066 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 8067 L_25098BD3: 8068 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 8069 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 8070 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 8071 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 8072 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8074 _flag_k = FK_CMP; 8075 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 8076 L_25098BE1: 8077 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 8078 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 8079 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 8080 L_25098BEC: 8081 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 8082 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 8083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8085 _flag_k = FK_CMP; 8086 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 8087 L_25098BF4: 8088 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 8089 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 8090 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 8091 L_25098BFF: 8092 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 8093 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 8094 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 8095 L_25098C09: 8096 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 8097 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8099 _flag_k = FK_NARROW(FK_CMP, 24); 8100 RECOMP_BACKEDGE(); 8101 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 8102 L_25098C13: 8103 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 8104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8106 _flag_k = FK_CMP; 8107 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 8108 L_25098C17: 8109 eax = ecx; /* 0x25098C17: mov eax, ecx */ 8110 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 8111 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 8112 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 8113 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 8114 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 8115 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8117 _flag_k = FK_CMP; 8118 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 8119 L_25098C28: 8120 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 8121 L_25098C2B: 8122 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 8123 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 8124 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 8125 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 8126 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8128 _flag_k = FK_CMP; 8129 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 8130 L_25098C39: 8131 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 8132 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 8133 L_25098C3E: 8134 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 8135 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 8136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8138 _flag_k = FK_CMP; 8139 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 8140 L_25098C46: 8141 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 8142 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 8143 L_25098C4B: 8144 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 8145 L_25098C4D: 8146 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 8147 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 8148 L_25098C53: 8149 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 8150 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 8151 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 8152 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 8153 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 8154 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 8155 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 8156 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 8157 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 8158 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 8159 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 8160 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 8161 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8163 _flag_k = FK_CMP; 8164 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 8165 L_25098C78: 8166 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 8167 L_25098C7B: 8168 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 8169 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 8170 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 8171 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 8172 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8174 _flag_k = FK_CMP; 8175 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 8176 L_25098C89: 8177 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 8178 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 8179 L_25098C8E: 8180 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 8181 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 8182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8184 _flag_k = FK_CMP; 8185 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 8186 L_25098C95: 8187 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 8188 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 8189 L_25098C99: 8190 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 8191 L_25098C9C: 8192 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 8193 L_25098C9E: 8194 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 8195 L_25098CA1: 8196 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 8197 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 8198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8200 _flag_k = FK_CMP; 8201 RECOMP_BACKEDGE(); 8202 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 8203 L_25098CAD: 8204 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 8205 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 8206 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 8207 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 8208 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 8209 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 8210 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 8211 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 8212 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 8213 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 8214 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 8215 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 8216 RECOMP_REGS_OUT(); 8217 } 8218 8219 void sub_25098C4D(void) { 8220 int _fpu_cmp = 0; 8221 uint32_t _cf = 0; 8222 int _df = 1; 8223 uint32_t _flag_k = FK_NONE; 8224 uint32_t _flag_a = 0, _flag_b = 0; 8225 uint32_t _itail_tgt = 0; 8226 RECOMP_REGS_LOCALS 8227 RECOMP_ENTER(0x25098C4Du); 8228 8229 goto L_25098C4D; 8230 L_25098B2D: 8231 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 8232 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 8233 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 8234 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8235 _cf = 0; 8236 _flag_k = FK_NARROW(FK_TEST, 24); 8237 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 8238 L_25098B3B: 8239 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 8240 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 8241 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 8242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8244 _flag_k = FK_CMP; 8245 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 8246 L_25098B48: 8247 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 8248 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 8249 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8251 _flag_k = FK_NARROW(FK_CMP, 24); 8252 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 8253 L_25098B51: 8254 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 8255 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 8256 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 8257 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 8258 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 8259 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 8260 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 8261 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 8262 L_25098B6C: 8263 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 8264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8266 _flag_k = FK_CMP; 8267 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 8268 L_25098B71: 8269 eax = ecx; /* 0x25098B71: mov eax, ecx */ 8270 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 8271 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 8272 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 8273 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 8274 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 8275 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8277 _flag_k = FK_CMP; 8278 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 8279 L_25098B82: 8280 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 8281 L_25098B85: 8282 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 8283 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 8284 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 8285 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 8286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8288 _flag_k = FK_CMP; 8289 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 8290 L_25098B93: 8291 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 8292 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 8293 L_25098B98: 8294 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 8295 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 8296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8298 _flag_k = FK_CMP; 8299 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 8300 L_25098B9F: 8301 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 8302 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 8303 L_25098BA3: 8304 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 8305 L_25098BA6: 8306 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 8307 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 8308 L_25098BAB: 8309 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 8310 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 8311 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 8312 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 8313 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 8314 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 8315 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 8316 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 8317 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 8318 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 8319 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 8320 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 8321 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8323 _flag_k = FK_CMP; 8324 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 8325 L_25098BD0: 8326 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 8327 L_25098BD3: 8328 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 8329 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 8330 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 8331 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 8332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8334 _flag_k = FK_CMP; 8335 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 8336 L_25098BE1: 8337 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 8338 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 8339 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 8340 L_25098BEC: 8341 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 8342 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 8343 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8345 _flag_k = FK_CMP; 8346 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 8347 L_25098BF4: 8348 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 8349 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 8350 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 8351 L_25098BFF: 8352 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 8353 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 8354 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 8355 L_25098C09: 8356 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 8357 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8359 _flag_k = FK_NARROW(FK_CMP, 24); 8360 RECOMP_BACKEDGE(); 8361 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 8362 L_25098C13: 8363 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 8364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8366 _flag_k = FK_CMP; 8367 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 8368 L_25098C17: 8369 eax = ecx; /* 0x25098C17: mov eax, ecx */ 8370 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 8371 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 8372 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 8373 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 8374 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 8375 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8377 _flag_k = FK_CMP; 8378 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 8379 L_25098C28: 8380 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 8381 L_25098C2B: 8382 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 8383 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 8384 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 8385 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 8386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8388 _flag_k = FK_CMP; 8389 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 8390 L_25098C39: 8391 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 8392 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 8393 L_25098C3E: 8394 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 8395 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 8396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8398 _flag_k = FK_CMP; 8399 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 8400 L_25098C46: 8401 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 8402 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 8403 L_25098C4B: 8404 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 8405 L_25098C4D: 8406 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 8407 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 8408 L_25098C53: 8409 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 8410 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 8411 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 8412 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 8413 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 8414 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 8415 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 8416 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 8417 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 8418 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 8419 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 8420 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 8421 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8423 _flag_k = FK_CMP; 8424 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 8425 L_25098C78: 8426 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 8427 L_25098C7B: 8428 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 8429 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 8430 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 8431 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 8432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8434 _flag_k = FK_CMP; 8435 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 8436 L_25098C89: 8437 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 8438 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 8439 L_25098C8E: 8440 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 8441 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 8442 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8444 _flag_k = FK_CMP; 8445 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 8446 L_25098C95: 8447 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 8448 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 8449 L_25098C99: 8450 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 8451 L_25098C9C: 8452 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 8453 L_25098C9E: 8454 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 8455 L_25098CA1: 8456 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 8457 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 8458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8460 _flag_k = FK_CMP; 8461 RECOMP_BACKEDGE(); 8462 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 8463 L_25098CAD: 8464 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 8465 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 8466 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 8467 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 8468 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 8469 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 8470 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 8471 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 8472 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 8473 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 8474 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 8475 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 8476 RECOMP_REGS_OUT(); 8477 } 8478 8479 void sub_25098C53(void) { 8480 int _fpu_cmp = 0; 8481 uint32_t _cf = 0; 8482 int _df = 1; 8483 uint32_t _flag_k = FK_NONE; 8484 uint32_t _flag_a = 0, _flag_b = 0; 8485 uint32_t _itail_tgt = 0; 8486 RECOMP_REGS_LOCALS 8487 RECOMP_ENTER(0x25098C53u); 8488 8489 goto L_25098C53; 8490 L_25098B2D: 8491 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 8492 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 8493 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 8494 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8495 _cf = 0; 8496 _flag_k = FK_NARROW(FK_TEST, 24); 8497 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 8498 L_25098B3B: 8499 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 8500 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 8501 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 8502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8504 _flag_k = FK_CMP; 8505 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 8506 L_25098B48: 8507 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 8508 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 8509 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8511 _flag_k = FK_NARROW(FK_CMP, 24); 8512 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 8513 L_25098B51: 8514 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 8515 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 8516 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 8517 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 8518 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 8519 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 8520 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 8521 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 8522 L_25098B6C: 8523 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 8524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8526 _flag_k = FK_CMP; 8527 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 8528 L_25098B71: 8529 eax = ecx; /* 0x25098B71: mov eax, ecx */ 8530 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 8531 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 8532 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 8533 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 8534 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 8535 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8537 _flag_k = FK_CMP; 8538 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 8539 L_25098B82: 8540 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 8541 L_25098B85: 8542 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 8543 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 8544 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 8545 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 8546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8548 _flag_k = FK_CMP; 8549 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 8550 L_25098B93: 8551 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 8552 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 8553 L_25098B98: 8554 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 8555 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 8556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8558 _flag_k = FK_CMP; 8559 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 8560 L_25098B9F: 8561 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 8562 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 8563 L_25098BA3: 8564 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 8565 L_25098BA6: 8566 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 8567 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 8568 L_25098BAB: 8569 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 8570 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 8571 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 8572 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 8573 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 8574 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 8575 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 8576 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 8577 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 8578 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 8579 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 8580 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 8581 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8583 _flag_k = FK_CMP; 8584 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 8585 L_25098BD0: 8586 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 8587 L_25098BD3: 8588 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 8589 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 8590 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 8591 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 8592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8594 _flag_k = FK_CMP; 8595 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 8596 L_25098BE1: 8597 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 8598 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 8599 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 8600 L_25098BEC: 8601 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 8602 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 8603 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8605 _flag_k = FK_CMP; 8606 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 8607 L_25098BF4: 8608 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 8609 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 8610 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 8611 L_25098BFF: 8612 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 8613 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 8614 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 8615 L_25098C09: 8616 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 8617 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8619 _flag_k = FK_NARROW(FK_CMP, 24); 8620 RECOMP_BACKEDGE(); 8621 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 8622 L_25098C13: 8623 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 8624 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8626 _flag_k = FK_CMP; 8627 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 8628 L_25098C17: 8629 eax = ecx; /* 0x25098C17: mov eax, ecx */ 8630 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 8631 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 8632 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 8633 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 8634 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 8635 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8637 _flag_k = FK_CMP; 8638 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 8639 L_25098C28: 8640 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 8641 L_25098C2B: 8642 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 8643 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 8644 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 8645 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 8646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8648 _flag_k = FK_CMP; 8649 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 8650 L_25098C39: 8651 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 8652 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 8653 L_25098C3E: 8654 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 8655 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 8656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8658 _flag_k = FK_CMP; 8659 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 8660 L_25098C46: 8661 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 8662 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 8663 L_25098C4B: 8664 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 8665 L_25098C4D: 8666 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 8667 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 8668 L_25098C53: 8669 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 8670 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 8671 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 8672 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 8673 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 8674 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 8675 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 8676 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 8677 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 8678 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 8679 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 8680 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 8681 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8683 _flag_k = FK_CMP; 8684 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 8685 L_25098C78: 8686 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 8687 L_25098C7B: 8688 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 8689 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 8690 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 8691 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 8692 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8694 _flag_k = FK_CMP; 8695 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 8696 L_25098C89: 8697 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 8698 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 8699 L_25098C8E: 8700 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 8701 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 8702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8704 _flag_k = FK_CMP; 8705 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 8706 L_25098C95: 8707 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 8708 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 8709 L_25098C99: 8710 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 8711 L_25098C9C: 8712 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 8713 L_25098C9E: 8714 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 8715 L_25098CA1: 8716 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 8717 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 8718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8720 _flag_k = FK_CMP; 8721 RECOMP_BACKEDGE(); 8722 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 8723 L_25098CAD: 8724 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 8725 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 8726 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 8727 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 8728 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 8729 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 8730 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 8731 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 8732 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 8733 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 8734 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 8735 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 8736 RECOMP_REGS_OUT(); 8737 } 8738 8739 void sub_25098C9C(void) { 8740 int _fpu_cmp = 0; 8741 uint32_t _cf = 0; 8742 int _df = 1; 8743 uint32_t _flag_k = FK_NONE; 8744 uint32_t _flag_a = 0, _flag_b = 0; 8745 uint32_t _itail_tgt = 0; 8746 RECOMP_REGS_LOCALS 8747 RECOMP_ENTER(0x25098C9Cu); 8748 8749 goto L_25098C9C; 8750 L_25098B2D: 8751 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 8752 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 8753 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 8754 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8755 _cf = 0; 8756 _flag_k = FK_NARROW(FK_TEST, 24); 8757 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 8758 L_25098B3B: 8759 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 8760 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 8761 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 8762 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8764 _flag_k = FK_CMP; 8765 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 8766 L_25098B48: 8767 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 8768 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 8769 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8771 _flag_k = FK_NARROW(FK_CMP, 24); 8772 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 8773 L_25098B51: 8774 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 8775 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 8776 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 8777 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 8778 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 8779 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 8780 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 8781 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 8782 L_25098B6C: 8783 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 8784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8786 _flag_k = FK_CMP; 8787 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 8788 L_25098B71: 8789 eax = ecx; /* 0x25098B71: mov eax, ecx */ 8790 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 8791 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 8792 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 8793 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 8794 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 8795 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8797 _flag_k = FK_CMP; 8798 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 8799 L_25098B82: 8800 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 8801 L_25098B85: 8802 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 8803 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 8804 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 8805 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 8806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8808 _flag_k = FK_CMP; 8809 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 8810 L_25098B93: 8811 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 8812 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 8813 L_25098B98: 8814 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 8815 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 8816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8818 _flag_k = FK_CMP; 8819 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 8820 L_25098B9F: 8821 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 8822 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 8823 L_25098BA3: 8824 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 8825 L_25098BA6: 8826 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 8827 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 8828 L_25098BAB: 8829 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 8830 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 8831 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 8832 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 8833 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 8834 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 8835 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 8836 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 8837 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 8838 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 8839 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 8840 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 8841 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8843 _flag_k = FK_CMP; 8844 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 8845 L_25098BD0: 8846 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 8847 L_25098BD3: 8848 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 8849 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 8850 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 8851 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 8852 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8854 _flag_k = FK_CMP; 8855 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 8856 L_25098BE1: 8857 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 8858 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 8859 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 8860 L_25098BEC: 8861 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 8862 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 8863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8865 _flag_k = FK_CMP; 8866 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 8867 L_25098BF4: 8868 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 8869 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 8870 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 8871 L_25098BFF: 8872 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 8873 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 8874 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 8875 L_25098C09: 8876 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 8877 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 8878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8879 _flag_k = FK_NARROW(FK_CMP, 24); 8880 RECOMP_BACKEDGE(); 8881 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 8882 L_25098C13: 8883 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 8884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8886 _flag_k = FK_CMP; 8887 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 8888 L_25098C17: 8889 eax = ecx; /* 0x25098C17: mov eax, ecx */ 8890 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 8891 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 8892 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 8893 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 8894 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 8895 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8897 _flag_k = FK_CMP; 8898 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 8899 L_25098C28: 8900 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 8901 L_25098C2B: 8902 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 8903 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 8904 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 8905 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 8906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8908 _flag_k = FK_CMP; 8909 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 8910 L_25098C39: 8911 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 8912 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 8913 L_25098C3E: 8914 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 8915 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 8916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8918 _flag_k = FK_CMP; 8919 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 8920 L_25098C46: 8921 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 8922 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 8923 L_25098C4B: 8924 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 8925 L_25098C4D: 8926 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 8927 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 8928 L_25098C53: 8929 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 8930 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 8931 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 8932 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 8933 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 8934 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 8935 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 8936 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 8937 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 8938 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 8939 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 8940 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 8941 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8943 _flag_k = FK_CMP; 8944 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 8945 L_25098C78: 8946 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 8947 L_25098C7B: 8948 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 8949 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 8950 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 8951 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 8952 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8954 _flag_k = FK_CMP; 8955 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 8956 L_25098C89: 8957 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 8958 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 8959 L_25098C8E: 8960 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 8961 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 8962 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8964 _flag_k = FK_CMP; 8965 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 8966 L_25098C95: 8967 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 8968 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 8969 L_25098C99: 8970 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 8971 L_25098C9C: 8972 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 8973 L_25098C9E: 8974 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 8975 L_25098CA1: 8976 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 8977 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 8978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8980 _flag_k = FK_CMP; 8981 RECOMP_BACKEDGE(); 8982 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 8983 L_25098CAD: 8984 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 8985 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 8986 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 8987 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 8988 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 8989 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 8990 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 8991 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 8992 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 8993 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 8994 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 8995 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 8996 RECOMP_REGS_OUT(); 8997 } 8998 8999 void sub_25098C9E(void) { 9000 int _fpu_cmp = 0; 9001 uint32_t _cf = 0; 9002 int _df = 1; 9003 uint32_t _flag_k = FK_NONE; 9004 uint32_t _flag_a = 0, _flag_b = 0; 9005 uint32_t _itail_tgt = 0; 9006 RECOMP_REGS_LOCALS 9007 RECOMP_ENTER(0x25098C9Eu); 9008 9009 goto L_25098C9E; 9010 L_25098B2D: 9011 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 9012 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 9013 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 9014 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9015 _cf = 0; 9016 _flag_k = FK_NARROW(FK_TEST, 24); 9017 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 9018 L_25098B3B: 9019 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 9020 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 9021 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 9022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9024 _flag_k = FK_CMP; 9025 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 9026 L_25098B48: 9027 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 9028 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 9029 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 9030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9031 _flag_k = FK_NARROW(FK_CMP, 24); 9032 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 9033 L_25098B51: 9034 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 9035 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 9036 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 9037 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 9038 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 9039 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 9040 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 9041 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 9042 L_25098B6C: 9043 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 9044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 9045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9046 _flag_k = FK_CMP; 9047 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 9048 L_25098B71: 9049 eax = ecx; /* 0x25098B71: mov eax, ecx */ 9050 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 9051 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 9052 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 9053 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 9054 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 9055 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9057 _flag_k = FK_CMP; 9058 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 9059 L_25098B82: 9060 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 9061 L_25098B85: 9062 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 9063 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 9064 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 9065 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 9066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9068 _flag_k = FK_CMP; 9069 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 9070 L_25098B93: 9071 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 9072 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 9073 L_25098B98: 9074 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 9075 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 9076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 9077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9078 _flag_k = FK_CMP; 9079 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 9080 L_25098B9F: 9081 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 9082 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 9083 L_25098BA3: 9084 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 9085 L_25098BA6: 9086 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 9087 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 9088 L_25098BAB: 9089 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 9090 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 9091 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 9092 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 9093 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 9094 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 9095 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 9096 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 9097 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 9098 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 9099 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 9100 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 9101 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9103 _flag_k = FK_CMP; 9104 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 9105 L_25098BD0: 9106 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 9107 L_25098BD3: 9108 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 9109 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 9110 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 9111 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 9112 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9114 _flag_k = FK_CMP; 9115 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 9116 L_25098BE1: 9117 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 9118 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 9119 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 9120 L_25098BEC: 9121 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 9122 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 9123 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9125 _flag_k = FK_CMP; 9126 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 9127 L_25098BF4: 9128 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 9129 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 9130 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 9131 L_25098BFF: 9132 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 9133 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 9134 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 9135 L_25098C09: 9136 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 9137 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 9138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9139 _flag_k = FK_NARROW(FK_CMP, 24); 9140 RECOMP_BACKEDGE(); 9141 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 9142 L_25098C13: 9143 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 9144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 9145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9146 _flag_k = FK_CMP; 9147 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 9148 L_25098C17: 9149 eax = ecx; /* 0x25098C17: mov eax, ecx */ 9150 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 9151 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 9152 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 9153 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 9154 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 9155 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9157 _flag_k = FK_CMP; 9158 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 9159 L_25098C28: 9160 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 9161 L_25098C2B: 9162 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 9163 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 9164 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 9165 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 9166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9168 _flag_k = FK_CMP; 9169 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 9170 L_25098C39: 9171 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 9172 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 9173 L_25098C3E: 9174 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 9175 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 9176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9178 _flag_k = FK_CMP; 9179 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 9180 L_25098C46: 9181 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 9182 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 9183 L_25098C4B: 9184 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 9185 L_25098C4D: 9186 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 9187 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 9188 L_25098C53: 9189 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 9190 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 9191 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 9192 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 9193 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 9194 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 9195 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 9196 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 9197 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 9198 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 9199 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 9200 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 9201 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9203 _flag_k = FK_CMP; 9204 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 9205 L_25098C78: 9206 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 9207 L_25098C7B: 9208 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 9209 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 9210 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 9211 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 9212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9214 _flag_k = FK_CMP; 9215 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 9216 L_25098C89: 9217 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 9218 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 9219 L_25098C8E: 9220 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 9221 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 9222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 9223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9224 _flag_k = FK_CMP; 9225 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 9226 L_25098C95: 9227 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 9228 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 9229 L_25098C99: 9230 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 9231 L_25098C9C: 9232 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 9233 L_25098C9E: 9234 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 9235 L_25098CA1: 9236 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 9237 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 9238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9240 _flag_k = FK_CMP; 9241 RECOMP_BACKEDGE(); 9242 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 9243 L_25098CAD: 9244 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 9245 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 9246 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 9247 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 9248 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 9249 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 9250 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 9251 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 9252 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 9253 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 9254 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 9255 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 9256 RECOMP_REGS_OUT(); 9257 } 9258 9259 void sub_25098CA1(void) { 9260 int _fpu_cmp = 0; 9261 uint32_t _cf = 0; 9262 int _df = 1; 9263 uint32_t _flag_k = FK_NONE; 9264 uint32_t _flag_a = 0, _flag_b = 0; 9265 uint32_t _itail_tgt = 0; 9266 RECOMP_REGS_LOCALS 9267 RECOMP_ENTER(0x25098CA1u); 9268 9269 goto L_25098CA1; 9270 L_25098B2D: 9271 ecx = MEM32(eax + 0x4); /* 0x25098B2D: mov ecx, dword ptr [eax + 4] */ 9272 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25098B30: mov dl, byte ptr [ecx + 0x14] */ 9273 /* test LO8(edx), LO8(edx) */ /* 0x25098B33: test dl, dl */ 9274 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9275 _cf = 0; 9276 _flag_k = FK_NARROW(FK_TEST, 24); 9277 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098CAD; /* 0x25098B35: jne 0x25098cad */ 9278 L_25098B3B: 9279 edi = MEM32(ecx + 0x4); /* 0x25098B3B: mov edi, dword ptr [ecx + 4] */ 9280 edx = MEM32(edi); /* 0x25098B3E: mov edx, dword ptr [edi] */ 9281 /* cmp ecx, edx */ /* 0x25098B40: cmp ecx, edx */ 9282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9284 _flag_k = FK_CMP; 9285 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C09; /* 0x25098B42: jne 0x25098c09 */ 9286 L_25098B48: 9287 edx = MEM32(edi + 0x8); /* 0x25098B48: mov edx, dword ptr [edi + 8] */ 9288 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098B4B: cmp byte ptr [edx + 0x14], 0 */ 9289 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 9290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9291 _flag_k = FK_NARROW(FK_CMP, 24); 9292 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B6C; /* 0x25098B4F: jne 0x25098b6c */ 9293 L_25098B51: 9294 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B51: mov byte ptr [ecx + 0x14], bl */ 9295 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098B54: mov byte ptr [edx + 0x14], bl */ 9296 ecx = MEM32(eax + 0x4); /* 0x25098B57: mov ecx, dword ptr [eax + 4] */ 9297 edx = MEM32(ecx + 0x4); /* 0x25098B5A: mov edx, dword ptr [ecx + 4] */ 9298 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x25098B5D: mov byte ptr [edx + 0x14], 0 */ 9299 eax = MEM32(eax + 0x4); /* 0x25098B61: mov eax, dword ptr [eax + 4] */ 9300 eax = MEM32(eax + 0x4); /* 0x25098B64: mov eax, dword ptr [eax + 4] */ 9301 goto L_25098CA1; /* 0x25098B67: jmp 0x25098ca1 */ 9302 L_25098B6C: 9303 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x25098B6C: cmp eax, dword ptr [ecx + 8] */ 9304 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 9305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9306 _flag_k = FK_CMP; 9307 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BAB; /* 0x25098B6F: jne 0x25098bab */ 9308 L_25098B71: 9309 eax = ecx; /* 0x25098B71: mov eax, ecx */ 9310 ecx = MEM32(eax + 0x8); /* 0x25098B73: mov ecx, dword ptr [eax + 8] */ 9311 edx = MEM32(ecx); /* 0x25098B76: mov edx, dword ptr [ecx] */ 9312 MEM32(eax + 0x8) = edx; /* 0x25098B78: mov dword ptr [eax + 8], edx */ 9313 edx = MEM32(ecx); /* 0x25098B7B: mov edx, dword ptr [ecx] */ 9314 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098B7D: cmp edx, dword ptr [esi + 8] */ 9315 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9317 _flag_k = FK_CMP; 9318 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B85; /* 0x25098B80: je 0x25098b85 */ 9319 L_25098B82: 9320 MEM32(edx + 0x4) = eax; /* 0x25098B82: mov dword ptr [edx + 4], eax */ 9321 L_25098B85: 9322 edx = MEM32(eax + 0x4); /* 0x25098B85: mov edx, dword ptr [eax + 4] */ 9323 MEM32(ecx + 0x4) = edx; /* 0x25098B88: mov dword ptr [ecx + 4], edx */ 9324 edx = MEM32(esi + 0x4); /* 0x25098B8B: mov edx, dword ptr [esi + 4] */ 9325 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098B8E: cmp eax, dword ptr [edx + 4] */ 9326 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9328 _flag_k = FK_CMP; 9329 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B98; /* 0x25098B91: jne 0x25098b98 */ 9330 L_25098B93: 9331 MEM32(edx + 0x4) = ecx; /* 0x25098B93: mov dword ptr [edx + 4], ecx */ 9332 goto L_25098BA6; /* 0x25098B96: jmp 0x25098ba6 */ 9333 L_25098B98: 9334 edx = MEM32(eax + 0x4); /* 0x25098B98: mov edx, dword ptr [eax + 4] */ 9335 /* cmp eax, MEM32(edx) */ /* 0x25098B9B: cmp eax, dword ptr [edx] */ 9336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 9337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9338 _flag_k = FK_CMP; 9339 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BA3; /* 0x25098B9D: jne 0x25098ba3 */ 9340 L_25098B9F: 9341 MEM32(edx) = ecx; /* 0x25098B9F: mov dword ptr [edx], ecx */ 9342 goto L_25098BA6; /* 0x25098BA1: jmp 0x25098ba6 */ 9343 L_25098BA3: 9344 MEM32(edx + 0x8) = ecx; /* 0x25098BA3: mov dword ptr [edx + 8], ecx */ 9345 L_25098BA6: 9346 MEM32(ecx) = eax; /* 0x25098BA6: mov dword ptr [ecx], eax */ 9347 MEM32(eax + 0x4) = ecx; /* 0x25098BA8: mov dword ptr [eax + 4], ecx */ 9348 L_25098BAB: 9349 ecx = MEM32(eax + 0x4); /* 0x25098BAB: mov ecx, dword ptr [eax + 4] */ 9350 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098BAE: mov byte ptr [ecx + 0x14], bl */ 9351 edx = MEM32(eax + 0x4); /* 0x25098BB1: mov edx, dword ptr [eax + 4] */ 9352 ecx = MEM32(edx + 0x4); /* 0x25098BB4: mov ecx, dword ptr [edx + 4] */ 9353 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098BB7: mov byte ptr [ecx + 0x14], 0 */ 9354 edx = MEM32(eax + 0x4); /* 0x25098BBB: mov edx, dword ptr [eax + 4] */ 9355 ecx = MEM32(edx + 0x4); /* 0x25098BBE: mov ecx, dword ptr [edx + 4] */ 9356 edx = MEM32(ecx); /* 0x25098BC1: mov edx, dword ptr [ecx] */ 9357 edi = MEM32(edx + 0x8); /* 0x25098BC3: mov edi, dword ptr [edx + 8] */ 9358 MEM32(ecx) = edi; /* 0x25098BC6: mov dword ptr [ecx], edi */ 9359 edi = MEM32(edx + 0x8); /* 0x25098BC8: mov edi, dword ptr [edx + 8] */ 9360 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098BCB: cmp edi, dword ptr [esi + 8] */ 9361 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9363 _flag_k = FK_CMP; 9364 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098BD3; /* 0x25098BCE: je 0x25098bd3 */ 9365 L_25098BD0: 9366 MEM32(edi + 0x4) = ecx; /* 0x25098BD0: mov dword ptr [edi + 4], ecx */ 9367 L_25098BD3: 9368 edi = MEM32(ecx + 0x4); /* 0x25098BD3: mov edi, dword ptr [ecx + 4] */ 9369 MEM32(edx + 0x4) = edi; /* 0x25098BD6: mov dword ptr [edx + 4], edi */ 9370 edi = MEM32(esi + 0x4); /* 0x25098BD9: mov edi, dword ptr [esi + 4] */ 9371 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098BDC: cmp ecx, dword ptr [edi + 4] */ 9372 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9374 _flag_k = FK_CMP; 9375 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BEC; /* 0x25098BDF: jne 0x25098bec */ 9376 L_25098BE1: 9377 MEM32(edi + 0x4) = edx; /* 0x25098BE1: mov dword ptr [edi + 4], edx */ 9378 MEM32(edx + 0x8) = ecx; /* 0x25098BE4: mov dword ptr [edx + 8], ecx */ 9379 goto L_25098C9E; /* 0x25098BE7: jmp 0x25098c9e */ 9380 L_25098BEC: 9381 edi = MEM32(ecx + 0x4); /* 0x25098BEC: mov edi, dword ptr [ecx + 4] */ 9382 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x25098BEF: cmp ecx, dword ptr [edi + 8] */ 9383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9385 _flag_k = FK_CMP; 9386 if (CMP_NE(_flag_a, _flag_b)) goto L_25098BFF; /* 0x25098BF2: jne 0x25098bff */ 9387 L_25098BF4: 9388 MEM32(edi + 0x8) = edx; /* 0x25098BF4: mov dword ptr [edi + 8], edx */ 9389 MEM32(edx + 0x8) = ecx; /* 0x25098BF7: mov dword ptr [edx + 8], ecx */ 9390 goto L_25098C9E; /* 0x25098BFA: jmp 0x25098c9e */ 9391 L_25098BFF: 9392 MEM32(edi) = edx; /* 0x25098BFF: mov dword ptr [edi], edx */ 9393 MEM32(edx + 0x8) = ecx; /* 0x25098C01: mov dword ptr [edx + 8], ecx */ 9394 goto L_25098C9E; /* 0x25098C04: jmp 0x25098c9e */ 9395 L_25098C09: 9396 /* cmp MEM8(edx + 0x14), 0 */ /* 0x25098C09: cmp byte ptr [edx + 0x14], 0 */ 9397 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 9398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9399 _flag_k = FK_NARROW(FK_CMP, 24); 9400 RECOMP_BACKEDGE(); 9401 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098B51; /* 0x25098C0D: je 0x25098b51 */ 9402 L_25098C13: 9403 /* cmp eax, MEM32(ecx) */ /* 0x25098C13: cmp eax, dword ptr [ecx] */ 9404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 9405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9406 _flag_k = FK_CMP; 9407 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C53; /* 0x25098C15: jne 0x25098c53 */ 9408 L_25098C17: 9409 eax = ecx; /* 0x25098C17: mov eax, ecx */ 9410 ecx = MEM32(eax); /* 0x25098C19: mov ecx, dword ptr [eax] */ 9411 edx = MEM32(ecx + 0x8); /* 0x25098C1B: mov edx, dword ptr [ecx + 8] */ 9412 MEM32(eax) = edx; /* 0x25098C1E: mov dword ptr [eax], edx */ 9413 edx = MEM32(ecx + 0x8); /* 0x25098C20: mov edx, dword ptr [ecx + 8] */ 9414 /* cmp edx, MEM32(esi + 0x8) */ /* 0x25098C23: cmp edx, dword ptr [esi + 8] */ 9415 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9417 _flag_k = FK_CMP; 9418 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C2B; /* 0x25098C26: je 0x25098c2b */ 9419 L_25098C28: 9420 MEM32(edx + 0x4) = eax; /* 0x25098C28: mov dword ptr [edx + 4], eax */ 9421 L_25098C2B: 9422 edx = MEM32(eax + 0x4); /* 0x25098C2B: mov edx, dword ptr [eax + 4] */ 9423 MEM32(ecx + 0x4) = edx; /* 0x25098C2E: mov dword ptr [ecx + 4], edx */ 9424 edx = MEM32(esi + 0x4); /* 0x25098C31: mov edx, dword ptr [esi + 4] */ 9425 /* cmp eax, MEM32(edx + 0x4) */ /* 0x25098C34: cmp eax, dword ptr [edx + 4] */ 9426 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9428 _flag_k = FK_CMP; 9429 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C3E; /* 0x25098C37: jne 0x25098c3e */ 9430 L_25098C39: 9431 MEM32(edx + 0x4) = ecx; /* 0x25098C39: mov dword ptr [edx + 4], ecx */ 9432 goto L_25098C4D; /* 0x25098C3C: jmp 0x25098c4d */ 9433 L_25098C3E: 9434 edx = MEM32(eax + 0x4); /* 0x25098C3E: mov edx, dword ptr [eax + 4] */ 9435 /* cmp eax, MEM32(edx + 0x8) */ /* 0x25098C41: cmp eax, dword ptr [edx + 8] */ 9436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9438 _flag_k = FK_CMP; 9439 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C4B; /* 0x25098C44: jne 0x25098c4b */ 9440 L_25098C46: 9441 MEM32(edx + 0x8) = ecx; /* 0x25098C46: mov dword ptr [edx + 8], ecx */ 9442 goto L_25098C4D; /* 0x25098C49: jmp 0x25098c4d */ 9443 L_25098C4B: 9444 MEM32(edx) = ecx; /* 0x25098C4B: mov dword ptr [edx], ecx */ 9445 L_25098C4D: 9446 MEM32(ecx + 0x8) = eax; /* 0x25098C4D: mov dword ptr [ecx + 8], eax */ 9447 MEM32(eax + 0x4) = ecx; /* 0x25098C50: mov dword ptr [eax + 4], ecx */ 9448 L_25098C53: 9449 ecx = MEM32(eax + 0x4); /* 0x25098C53: mov ecx, dword ptr [eax + 4] */ 9450 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098C56: mov byte ptr [ecx + 0x14], bl */ 9451 edx = MEM32(eax + 0x4); /* 0x25098C59: mov edx, dword ptr [eax + 4] */ 9452 ecx = MEM32(edx + 0x4); /* 0x25098C5C: mov ecx, dword ptr [edx + 4] */ 9453 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x25098C5F: mov byte ptr [ecx + 0x14], 0 */ 9454 edx = MEM32(eax + 0x4); /* 0x25098C63: mov edx, dword ptr [eax + 4] */ 9455 ecx = MEM32(edx + 0x4); /* 0x25098C66: mov ecx, dword ptr [edx + 4] */ 9456 edx = MEM32(ecx + 0x8); /* 0x25098C69: mov edx, dword ptr [ecx + 8] */ 9457 edi = MEM32(edx); /* 0x25098C6C: mov edi, dword ptr [edx] */ 9458 MEM32(ecx + 0x8) = edi; /* 0x25098C6E: mov dword ptr [ecx + 8], edi */ 9459 edi = MEM32(edx); /* 0x25098C71: mov edi, dword ptr [edx] */ 9460 /* cmp edi, MEM32(esi + 0x8) */ /* 0x25098C73: cmp edi, dword ptr [esi + 8] */ 9461 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9463 _flag_k = FK_CMP; 9464 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098C7B; /* 0x25098C76: je 0x25098c7b */ 9465 L_25098C78: 9466 MEM32(edi + 0x4) = ecx; /* 0x25098C78: mov dword ptr [edi + 4], ecx */ 9467 L_25098C7B: 9468 edi = MEM32(ecx + 0x4); /* 0x25098C7B: mov edi, dword ptr [ecx + 4] */ 9469 MEM32(edx + 0x4) = edi; /* 0x25098C7E: mov dword ptr [edx + 4], edi */ 9470 edi = MEM32(esi + 0x4); /* 0x25098C81: mov edi, dword ptr [esi + 4] */ 9471 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x25098C84: cmp ecx, dword ptr [edi + 4] */ 9472 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9474 _flag_k = FK_CMP; 9475 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C8E; /* 0x25098C87: jne 0x25098c8e */ 9476 L_25098C89: 9477 MEM32(edi + 0x4) = edx; /* 0x25098C89: mov dword ptr [edi + 4], edx */ 9478 goto L_25098C9C; /* 0x25098C8C: jmp 0x25098c9c */ 9479 L_25098C8E: 9480 edi = MEM32(ecx + 0x4); /* 0x25098C8E: mov edi, dword ptr [ecx + 4] */ 9481 /* cmp ecx, MEM32(edi) */ /* 0x25098C91: cmp ecx, dword ptr [edi] */ 9482 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 9483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9484 _flag_k = FK_CMP; 9485 if (CMP_NE(_flag_a, _flag_b)) goto L_25098C99; /* 0x25098C93: jne 0x25098c99 */ 9486 L_25098C95: 9487 MEM32(edi) = edx; /* 0x25098C95: mov dword ptr [edi], edx */ 9488 goto L_25098C9C; /* 0x25098C97: jmp 0x25098c9c */ 9489 L_25098C99: 9490 MEM32(edi + 0x8) = edx; /* 0x25098C99: mov dword ptr [edi + 8], edx */ 9491 L_25098C9C: 9492 MEM32(edx) = ecx; /* 0x25098C9C: mov dword ptr [edx], ecx */ 9493 L_25098C9E: 9494 MEM32(ecx + 0x4) = edx; /* 0x25098C9E: mov dword ptr [ecx + 4], edx */ 9495 L_25098CA1: 9496 ecx = MEM32(esi + 0x4); /* 0x25098CA1: mov ecx, dword ptr [esi + 4] */ 9497 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x25098CA4: cmp eax, dword ptr [ecx + 4] */ 9498 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9500 _flag_k = FK_CMP; 9501 RECOMP_BACKEDGE(); 9502 if (CMP_NE(_flag_a, _flag_b)) goto L_25098B2D; /* 0x25098CA7: jne 0x25098b2d */ 9503 L_25098CAD: 9504 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 9505 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 9506 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 9507 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 9508 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 9509 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 9510 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 9511 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 9512 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 9513 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 9514 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 9515 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 9516 RECOMP_REGS_OUT(); 9517 } 9518 9519 void sub_25098CAD(void) { 9520 int _fpu_cmp = 0; 9521 uint32_t _cf = 0; 9522 int _df = 1; 9523 uint32_t _flag_k = FK_NONE; 9524 uint32_t _flag_a = 0, _flag_b = 0; 9525 uint32_t _itail_tgt = 0; 9526 RECOMP_REGS_LOCALS 9527 RECOMP_ENTER(0x25098CADu); 9528 9529 L_25098CAD: 9530 edx = MEM32(esi + 0x4); /* 0x25098CAD: mov edx, dword ptr [esi + 4] */ 9531 eax = MEM32(edx + 0x4); /* 0x25098CB0: mov eax, dword ptr [edx + 4] */ 9532 ecx = MEM32(ebp + (-0x4)); /* 0x25098CB3: mov ecx, dword ptr [ebp - 4] */ 9533 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x25098CB6: mov byte ptr [eax + 0x14], bl */ 9534 eax = MEM32(ebp + 0x8); /* 0x25098CB9: mov eax, dword ptr [ebp + 8] */ 9535 edi = POP32_VAL(esp); /* 0x25098CBC: pop edi */ 9536 esi = POP32_VAL(esp); /* 0x25098CBD: pop esi */ 9537 MEM32(eax) = ecx; /* 0x25098CBE: mov dword ptr [eax], ecx */ 9538 ebx = POP32_VAL(esp); /* 0x25098CC0: pop ebx */ 9539 esp = ebp; /* 0x25098CC1: mov esp, ebp */ 9540 ebp = POP32_VAL(esp); /* 0x25098CC3: pop ebp */ 9541 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x25098CC4: ret 0x10 */ 9542 RECOMP_REGS_OUT(); 9543 } 9544 9545 void sub_25098CD0(void) { 9546 int _fpu_cmp = 0; 9547 uint32_t _cf = 0; 9548 int _df = 1; 9549 uint32_t _flag_k = FK_NONE; 9550 uint32_t _flag_a = 0, _flag_b = 0; 9551 uint32_t _itail_tgt = 0; 9552 RECOMP_REGS_LOCALS 9553 RECOMP_ENTER(0x25098CD0u); 9554 9555 L_25098CD0: 9556 PUSH32(esp, ebp); /* 0x25098CD0: push ebp */ 9557 ebp = esp; /* 0x25098CD1: mov ebp, esp */ 9558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9560 esp = esp - 0xCu; /* 0x25098CD3: sub esp, 0xc */ 9561 _flag_k = FK_CMP; 9562 PUSH32(esp, ebx); /* 0x25098CD6: push ebx */ 9563 ebx = ecx; /* 0x25098CD7: mov ebx, ecx */ 9564 ecx = MEM32(ebx + 0x8); /* 0x25098CD9: mov ecx, dword ptr [ebx + 8] */ 9565 edx = MEM32(ebx + 0xC); /* 0x25098CDC: mov edx, dword ptr [ebx + 0xc] */ 9566 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9568 edx = edx - ecx; /* 0x25098CDF: sub edx, ecx */ 9569 _flag_k = FK_CMP; 9570 eax = 0x2AAAAAABu; /* 0x25098CE1: mov eax, 0x2aaaaaab */ 9571 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x25098CE6: imul edx */ 9572 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9573 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9574 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x25098CE8: sar edx, 1 */ 9575 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9576 edx = (uint32_t)((int32_t)edx >> 1u); 9577 eax = edx; /* 0x25098CEA: mov eax, edx */ 9578 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x25098CEC: shr eax, 0x1f */ 9579 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9580 eax = eax >> 31u; /* 0x25098CEC: shr eax, 0x1f */ 9581 PUSH32(esp, esi); /* 0x25098CEF: push esi */ 9582 esi = MEM32(ebp + 0xC); /* 0x25098CF0: mov esi, dword ptr [ebp + 0xc] */ 9583 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9585 edx = edx + eax; /* 0x25098CF3: add edx, eax */ 9586 _flag_k = FK_ADD; 9587 /* cmp edx, esi */ /* 0x25098CF5: cmp edx, esi */ 9588 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 9589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9590 _flag_k = FK_CMP; 9591 PUSH32(esp, edi); /* 0x25098CF7: push edi */ 9592 MEM32(ebp + (-0x4)) = ebx; /* 0x25098CF8: mov dword ptr [ebp - 4], ebx */ 9593 if (CMP_AE(_flag_a, _flag_b)) goto L_25098E74; /* 0x25098CFB: jae 0x25098e74 */ 9594 L_25098D01: 9595 edi = MEM32(ebx + 0x4); /* 0x25098D01: mov edi, dword ptr [ebx + 4] */ 9596 /* test edi, edi */ /* 0x25098D04: test edi, edi */ 9597 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9598 _cf = 0; 9599 _flag_k = FK_TEST; 9600 if (TEST_Z(_flag_a, _flag_b)) goto L_25098D22; /* 0x25098D06: je 0x25098d22 */ 9601 L_25098D08: 9602 edx = ecx; /* 0x25098D08: mov edx, ecx */ 9603 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9605 edx = edx - edi; /* 0x25098D0A: sub edx, edi */ 9606 _flag_k = FK_CMP; 9607 eax = 0x2AAAAAABu; /* 0x25098D0C: mov eax, 0x2aaaaaab */ 9608 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x25098D11: imul edx */ 9609 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9610 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9611 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x25098D13: sar edx, 1 */ 9612 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9613 edx = (uint32_t)((int32_t)edx >> 1u); 9614 eax = edx; /* 0x25098D15: mov eax, edx */ 9615 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x25098D17: shr eax, 0x1f */ 9616 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9617 eax = eax >> 31u; /* 0x25098D17: shr eax, 0x1f */ 9618 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9620 edx = edx + eax; /* 0x25098D1A: add edx, eax */ 9621 _flag_k = FK_ADD; 9622 /* cmp esi, edx */ /* 0x25098D1C: cmp esi, edx */ 9623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 9624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9625 _flag_k = FK_CMP; 9626 ebx = edx; /* 0x25098D1E: mov ebx, edx */ 9627 if (CMP_B(_flag_a, _flag_b)) goto L_25098D24; /* 0x25098D20: jb 0x25098d24 */ 9628 L_25098D22: 9629 ebx = esi; /* 0x25098D22: mov ebx, esi */ 9630 L_25098D24: 9631 /* test edi, edi */ /* 0x25098D24: test edi, edi */ 9632 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9633 _cf = 0; 9634 _flag_k = FK_TEST; 9635 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098D2C; /* 0x25098D26: jne 0x25098d2c */ 9636 L_25098D28: 9637 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9638 edx = 0; /* 0x25098D28: xor edx, edx */ 9639 _cf = 0; 9640 _flag_k = FK_TEST; 9641 goto L_25098D3E; /* 0x25098D2A: jmp 0x25098d3e */ 9642 L_25098D2C: 9643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9645 ecx = ecx - edi; /* 0x25098D2C: sub ecx, edi */ 9646 _flag_k = FK_CMP; 9647 eax = 0x2AAAAAABu; /* 0x25098D2E: mov eax, 0x2aaaaaab */ 9648 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x25098D33: imul ecx */ 9649 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9650 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9651 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x25098D35: sar edx, 1 */ 9652 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9653 edx = (uint32_t)((int32_t)edx >> 1u); 9654 ecx = edx; /* 0x25098D37: mov ecx, edx */ 9655 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x25098D39: shr ecx, 0x1f */ 9656 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9657 ecx = ecx >> 31u; /* 0x25098D39: shr ecx, 0x1f */ 9658 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9660 edx = edx + ecx; /* 0x25098D3C: add edx, ecx */ 9661 _flag_k = FK_ADD; 9662 L_25098D3E: 9663 eax = edx + ebx; /* 0x25098D3E: lea eax, [edx + ebx] */ 9664 /* test eax, eax */ /* 0x25098D41: test eax, eax */ 9665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9666 _cf = 0; 9667 _flag_k = FK_TEST; 9668 MEM32(ebp + (-0x8)) = eax; /* 0x25098D43: mov dword ptr [ebp - 8], eax */ 9669 if (TEST_NS(_flag_a, _flag_b)) goto L_25098D4A; /* 0x25098D46: jge 0x25098d4a */ 9670 L_25098D48: 9671 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9672 eax = 0; /* 0x25098D48: xor eax, eax */ 9673 _cf = 0; 9674 _flag_k = FK_TEST; 9675 L_25098D4A: 9676 edx = eax + eax * 2; /* 0x25098D4A: lea edx, [eax + eax*2] */ 9677 if (2u) _cf = (((edx) >> 30) & 1u); /* 0x25098D4D: shl edx, 2 */ 9678 if (2u) { _flag_a = recomp_flags_pack((edx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9679 edx = edx << 2u; /* 0x25098D4D: shl edx, 2 */ 9680 PUSH32(esp, edx); /* 0x25098D50: push edx */ 9681 RECOMP_ICALL(0x251380D0u); /* 0x25098D51: call 0x251380d0 */ /* not lifted */ 9682 RECOMP_FLAGS_IN(); 9683 ecx = MEM32(ebp + 0x8); /* 0x25098D56: mov ecx, dword ptr [ebp + 8] */ 9684 MEM32(ebp + (-0xC)) = eax; /* 0x25098D59: mov dword ptr [ebp - 0xc], eax */ 9685 edx = eax; /* 0x25098D5C: mov edx, eax */ 9686 eax = MEM32(ebp + (-0x4)); /* 0x25098D5E: mov eax, dword ptr [ebp - 4] */ 9687 eax = MEM32(eax + 0x4); /* 0x25098D61: mov eax, dword ptr [eax + 4] */ 9688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9690 esp = esp + 4; /* 0x25098D64: add esp, 4 */ 9691 _flag_k = FK_ADD; 9692 /* cmp eax, ecx */ /* 0x25098D67: cmp eax, ecx */ 9693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9695 _flag_k = FK_CMP; 9696 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098D90; /* 0x25098D69: je 0x25098d90 */ 9697 L_25098D6B: 9698 /* test edx, edx */ /* 0x25098D6B: test edx, edx */ 9699 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9700 _cf = 0; 9701 _flag_k = FK_TEST; 9702 if (TEST_Z(_flag_a, _flag_b)) goto L_25098D83; /* 0x25098D6D: je 0x25098d83 */ 9703 L_25098D6F: 9704 ecx = eax; /* 0x25098D6F: mov ecx, eax */ 9705 ebx = MEM32(ecx); /* 0x25098D71: mov ebx, dword ptr [ecx] */ 9706 edi = edx; /* 0x25098D73: mov edi, edx */ 9707 MEM32(edi) = ebx; /* 0x25098D75: mov dword ptr [edi], ebx */ 9708 ebx = MEM32(ecx + 0x4); /* 0x25098D77: mov ebx, dword ptr [ecx + 4] */ 9709 MEM32(edi + 0x4) = ebx; /* 0x25098D7A: mov dword ptr [edi + 4], ebx */ 9710 ecx = MEM32(ecx + 0x8); /* 0x25098D7D: mov ecx, dword ptr [ecx + 8] */ 9711 MEM32(edi + 0x8) = ecx; /* 0x25098D80: mov dword ptr [edi + 8], ecx */ 9712 L_25098D83: 9713 ecx = MEM32(ebp + 0x8); /* 0x25098D83: mov ecx, dword ptr [ebp + 8] */ 9714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 9715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9716 eax = eax + 0xCu; /* 0x25098D86: add eax, 0xc */ 9717 _flag_k = FK_ADD; 9718 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 9719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9720 edx = edx + 0xCu; /* 0x25098D89: add edx, 0xc */ 9721 _flag_k = FK_ADD; 9722 /* cmp eax, ecx */ /* 0x25098D8C: cmp eax, ecx */ 9723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9725 _flag_k = FK_CMP; 9726 RECOMP_BACKEDGE(); 9727 if (CMP_NE(_flag_a, _flag_b)) goto L_25098D6B; /* 0x25098D8E: jne 0x25098d6b */ 9728 L_25098D90: 9729 /* test esi, esi */ /* 0x25098D90: test esi, esi */ 9730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9731 _cf = 0; 9732 _flag_k = FK_TEST; 9733 eax = edx; /* 0x25098D92: mov eax, edx */ 9734 if (TEST_Z(_flag_a, _flag_b)) goto L_25098DBE; /* 0x25098D94: jbe 0x25098dbe */ 9735 L_25098D96: 9736 MEM32(ebp + 0xC) = esi; /* 0x25098D96: mov dword ptr [ebp + 0xc], esi */ 9737 L_25098D99: 9738 /* test eax, eax */ /* 0x25098D99: test eax, eax */ 9739 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9740 _cf = 0; 9741 _flag_k = FK_TEST; 9742 if (TEST_Z(_flag_a, _flag_b)) goto L_25098DB2; /* 0x25098D9B: je 0x25098db2 */ 9743 L_25098D9D: 9744 ecx = MEM32(ebp + 0x10); /* 0x25098D9D: mov ecx, dword ptr [ebp + 0x10] */ 9745 ebx = MEM32(ecx); /* 0x25098DA0: mov ebx, dword ptr [ecx] */ 9746 edi = eax; /* 0x25098DA2: mov edi, eax */ 9747 MEM32(edi) = ebx; /* 0x25098DA4: mov dword ptr [edi], ebx */ 9748 ebx = MEM32(ecx + 0x4); /* 0x25098DA6: mov ebx, dword ptr [ecx + 4] */ 9749 MEM32(edi + 0x4) = ebx; /* 0x25098DA9: mov dword ptr [edi + 4], ebx */ 9750 ecx = MEM32(ecx + 0x8); /* 0x25098DAC: mov ecx, dword ptr [ecx + 8] */ 9751 MEM32(edi + 0x8) = ecx; /* 0x25098DAF: mov dword ptr [edi + 8], ecx */ 9752 L_25098DB2: 9753 ecx = MEM32(ebp + 0xC); /* 0x25098DB2: mov ecx, dword ptr [ebp + 0xc] */ 9754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 9755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9756 eax = eax + 0xCu; /* 0x25098DB5: add eax, 0xc */ 9757 _flag_k = FK_ADD; 9758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9759 ecx = ecx - 1; /* 0x25098DB8: dec ecx */ 9760 _flag_k = FK_DEC; 9761 MEM32(ebp + 0xC) = ecx; /* 0x25098DB9: mov dword ptr [ebp + 0xc], ecx */ 9762 RECOMP_BACKEDGE(); 9763 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25098D99; /* 0x25098DBC: jne 0x25098d99 */ 9764 L_25098DBE: 9765 eax = MEM32(ebp + (-0x4)); /* 0x25098DBE: mov eax, dword ptr [ebp - 4] */ 9766 ebx = MEM32(eax + 0x8); /* 0x25098DC1: mov ebx, dword ptr [eax + 8] */ 9767 eax = MEM32(ebp + 0x8); /* 0x25098DC4: mov eax, dword ptr [ebp + 8] */ 9768 ecx = esi + esi * 2; /* 0x25098DC7: lea ecx, [esi + esi*2] */ 9769 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x25098DCA: shl ecx, 2 */ 9770 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9771 ecx = ecx << 2u; /* 0x25098DCA: shl ecx, 2 */ 9772 /* cmp eax, ebx */ /* 0x25098DCD: cmp eax, ebx */ 9773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9775 _flag_k = FK_CMP; 9776 edi = ecx + edx; /* 0x25098DCF: lea edi, [ecx + edx] */ 9777 MEM32(ebp + 0x10) = ebx; /* 0x25098DD2: mov dword ptr [ebp + 0x10], ebx */ 9778 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098E07; /* 0x25098DD5: je 0x25098e07 */ 9779 L_25098DD7: 9780 eax = edi; /* 0x25098DD7: mov eax, edi */ 9781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9783 eax = eax - ecx; /* 0x25098DD9: sub eax, ecx */ 9784 _flag_k = FK_CMP; 9785 ecx = MEM32(ebp + 0x8); /* 0x25098DDB: mov ecx, dword ptr [ebp + 8] */ 9786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 9787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9788 eax = eax - edx; /* 0x25098DDE: sub eax, edx */ 9789 _flag_k = FK_CMP; 9790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9791 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9792 eax = eax + ecx; /* 0x25098DE0: add eax, ecx */ 9793 _flag_k = FK_ADD; 9794 L_25098DE2: 9795 /* test edi, edi */ /* 0x25098DE2: test edi, edi */ 9796 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9797 _cf = 0; 9798 _flag_k = FK_TEST; 9799 if (TEST_Z(_flag_a, _flag_b)) goto L_25098DFD; /* 0x25098DE4: je 0x25098dfd */ 9800 L_25098DE6: 9801 ecx = eax; /* 0x25098DE6: mov ecx, eax */ 9802 ebx = MEM32(ecx); /* 0x25098DE8: mov ebx, dword ptr [ecx] */ 9803 edx = edi; /* 0x25098DEA: mov edx, edi */ 9804 MEM32(edx) = ebx; /* 0x25098DEC: mov dword ptr [edx], ebx */ 9805 ebx = MEM32(ecx + 0x4); /* 0x25098DEE: mov ebx, dword ptr [ecx + 4] */ 9806 MEM32(edx + 0x4) = ebx; /* 0x25098DF1: mov dword ptr [edx + 4], ebx */ 9807 ecx = MEM32(ecx + 0x8); /* 0x25098DF4: mov ecx, dword ptr [ecx + 8] */ 9808 ebx = MEM32(ebp + 0x10); /* 0x25098DF7: mov ebx, dword ptr [ebp + 0x10] */ 9809 MEM32(edx + 0x8) = ecx; /* 0x25098DFA: mov dword ptr [edx + 8], ecx */ 9810 L_25098DFD: 9811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 9812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9813 eax = eax + 0xCu; /* 0x25098DFD: add eax, 0xc */ 9814 _flag_k = FK_ADD; 9815 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 9816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9817 edi = edi + 0xCu; /* 0x25098E00: add edi, 0xc */ 9818 _flag_k = FK_ADD; 9819 /* cmp eax, ebx */ /* 0x25098E03: cmp eax, ebx */ 9820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9822 _flag_k = FK_CMP; 9823 RECOMP_BACKEDGE(); 9824 if (CMP_NE(_flag_a, _flag_b)) goto L_25098DE2; /* 0x25098E05: jne 0x25098de2 */ 9825 L_25098E07: 9826 edi = MEM32(ebp + (-0x4)); /* 0x25098E07: mov edi, dword ptr [ebp - 4] */ 9827 eax = MEM32(edi + 0x4); /* 0x25098E0A: mov eax, dword ptr [edi + 4] */ 9828 PUSH32(esp, eax); /* 0x25098E0D: push eax */ 9829 MEM32(ebp + 0x8) = eax; /* 0x25098E0E: mov dword ptr [ebp + 8], eax */ 9830 RECOMP_ICALL(0x25137EECu); /* 0x25098E11: call 0x25137eec */ /* not lifted */ 9831 RECOMP_FLAGS_IN(); 9832 eax = MEM32(ebp + (-0x8)); /* 0x25098E16: mov eax, dword ptr [ebp - 8] */ 9833 ebx = MEM32(ebp + (-0xC)); /* 0x25098E19: mov ebx, dword ptr [ebp - 0xc] */ 9834 edx = eax + eax * 2; /* 0x25098E1C: lea edx, [eax + eax*2] */ 9835 eax = ebx + edx * 4; /* 0x25098E1F: lea eax, [ebx + edx*4] */ 9836 MEM32(edi + 0xC) = eax; /* 0x25098E22: mov dword ptr [edi + 0xc], eax */ 9837 eax = MEM32(edi + 0x4); /* 0x25098E25: mov eax, dword ptr [edi + 4] */ 9838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9840 esp = esp + 4; /* 0x25098E28: add esp, 4 */ 9841 _flag_k = FK_ADD; 9842 /* test eax, eax */ /* 0x25098E2B: test eax, eax */ 9843 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9844 _cf = 0; 9845 _flag_k = FK_TEST; 9846 if (TEST_NZ(_flag_a, _flag_b)) goto L_25098E48; /* 0x25098E2D: jne 0x25098e48 */ 9847 L_25098E2F: 9848 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9849 edx = 0; /* 0x25098E2F: xor edx, edx */ 9850 _cf = 0; 9851 _flag_k = FK_TEST; 9852 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 9853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9854 esi = esi + edx; /* 0x25098E31: add esi, edx */ 9855 _flag_k = FK_ADD; 9856 edx = esi + esi * 2; /* 0x25098E33: lea edx, [esi + esi*2] */ 9857 eax = ebx + edx * 4; /* 0x25098E36: lea eax, [ebx + edx*4] */ 9858 MEM32(edi + 0x4) = ebx; /* 0x25098E39: mov dword ptr [edi + 4], ebx */ 9859 MEM32(edi + 0x8) = eax; /* 0x25098E3C: mov dword ptr [edi + 8], eax */ 9860 edi = POP32_VAL(esp); /* 0x25098E3F: pop edi */ 9861 esi = POP32_VAL(esp); /* 0x25098E40: pop esi */ 9862 ebx = POP32_VAL(esp); /* 0x25098E41: pop ebx */ 9863 esp = ebp; /* 0x25098E42: mov esp, ebp */ 9864 ebp = POP32_VAL(esp); /* 0x25098E44: pop ebp */ 9865 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x25098E45: ret 0xc */ 9866 L_25098E48: 9867 ecx = MEM32(edi + 0x8); /* 0x25098E48: mov ecx, dword ptr [edi + 8] */ 9868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9870 ecx = ecx - eax; /* 0x25098E4B: sub ecx, eax */ 9871 _flag_k = FK_CMP; 9872 eax = 0x2AAAAAABu; /* 0x25098E4D: mov eax, 0x2aaaaaab */ 9873 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x25098E52: imul ecx */ 9874 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9875 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9876 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x25098E54: sar edx, 1 */ 9877 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9878 edx = (uint32_t)((int32_t)edx >> 1u); 9879 ecx = edx; /* 0x25098E56: mov ecx, edx */ 9880 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x25098E58: shr ecx, 0x1f */ 9881 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9882 ecx = ecx >> 31u; /* 0x25098E58: shr ecx, 0x1f */ 9883 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 9884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9885 edx = edx + ecx; /* 0x25098E5B: add edx, ecx */ 9886 _flag_k = FK_ADD; 9887 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 9888 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9889 esi = esi + edx; /* 0x25098E5D: add esi, edx */ 9890 _flag_k = FK_ADD; 9891 edx = esi + esi * 2; /* 0x25098E5F: lea edx, [esi + esi*2] */ 9892 eax = ebx + edx * 4; /* 0x25098E62: lea eax, [ebx + edx*4] */ 9893 MEM32(edi + 0x4) = ebx; /* 0x25098E65: mov dword ptr [edi + 4], ebx */ 9894 MEM32(edi + 0x8) = eax; /* 0x25098E68: mov dword ptr [edi + 8], eax */ 9895 edi = POP32_VAL(esp); /* 0x25098E6B: pop edi */ 9896 esi = POP32_VAL(esp); /* 0x25098E6C: pop esi */ 9897 ebx = POP32_VAL(esp); /* 0x25098E6D: pop ebx */ 9898 esp = ebp; /* 0x25098E6E: mov esp, ebp */ 9899 ebp = POP32_VAL(esp); /* 0x25098E70: pop ebp */ 9900 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x25098E71: ret 0xc */ 9901 L_25098E74: 9902 edi = MEM32(ebp + 0x8); /* 0x25098E74: mov edi, dword ptr [ebp + 8] */ 9903 edx = ecx; /* 0x25098E77: mov edx, ecx */ 9904 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9906 edx = edx - edi; /* 0x25098E79: sub edx, edi */ 9907 _flag_k = FK_CMP; 9908 eax = 0x2AAAAAABu; /* 0x25098E7B: mov eax, 0x2aaaaaab */ 9909 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x25098E80: imul edx */ 9910 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9911 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9912 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x25098E82: sar edx, 1 */ 9913 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9914 edx = (uint32_t)((int32_t)edx >> 1u); 9915 eax = edx; /* 0x25098E84: mov eax, edx */ 9916 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x25098E86: shr eax, 0x1f */ 9917 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9918 eax = eax >> 31u; /* 0x25098E86: shr eax, 0x1f */ 9919 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9920 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9921 edx = edx + eax; /* 0x25098E89: add edx, eax */ 9922 _flag_k = FK_ADD; 9923 /* cmp edx, esi */ /* 0x25098E8B: cmp edx, esi */ 9924 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 9925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9926 _flag_k = FK_CMP; 9927 if (CMP_AE(_flag_a, _flag_b)) goto L_25098F53; /* 0x25098E8D: jae 0x25098f53 */ 9928 L_25098E93: 9929 ebx = esi + esi * 2; /* 0x25098E93: lea ebx, [esi + esi*2] */ 9930 if (2u) _cf = (((ebx) >> 30) & 1u); /* 0x25098E96: shl ebx, 2 */ 9931 if (2u) { _flag_a = recomp_flags_pack((ebx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9932 ebx = ebx << 2u; /* 0x25098E96: shl ebx, 2 */ 9933 /* cmp edi, ecx */ /* 0x25098E99: cmp edi, ecx */ 9934 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 9935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9936 _flag_k = FK_CMP; 9937 edx = ebx + edi; /* 0x25098E9B: lea edx, [ebx + edi] */ 9938 MEM32(ebp + 0x8) = ebx; /* 0x25098E9E: mov dword ptr [ebp + 8], ebx */ 9939 MEM32(ebp + 0xC) = edx; /* 0x25098EA1: mov dword ptr [ebp + 0xc], edx */ 9940 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098ED7; /* 0x25098EA4: je 0x25098ed7 */ 9941 L_25098EA6: 9942 eax = edx; /* 0x25098EA6: mov eax, edx */ 9943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9945 eax = eax - ebx; /* 0x25098EA8: sub eax, ebx */ 9946 _flag_k = FK_CMP; 9947 MEM32(ebp + (-0x8)) = eax; /* 0x25098EAA: mov dword ptr [ebp - 8], eax */ 9948 L_25098EAD: 9949 /* test edx, edx */ /* 0x25098EAD: test edx, edx */ 9950 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 9951 _cf = 0; 9952 _flag_k = FK_TEST; 9953 if (TEST_Z(_flag_a, _flag_b)) goto L_25098EC7; /* 0x25098EAF: je 0x25098ec7 */ 9954 L_25098EB1: 9955 ebx = MEM32(eax); /* 0x25098EB1: mov ebx, dword ptr [eax] */ 9956 MEM32(edx) = ebx; /* 0x25098EB3: mov dword ptr [edx], ebx */ 9957 ebx = MEM32(eax + 0x4); /* 0x25098EB5: mov ebx, dword ptr [eax + 4] */ 9958 MEM32(edx + 0x4) = ebx; /* 0x25098EB8: mov dword ptr [edx + 4], ebx */ 9959 eax = MEM32(eax + 0x8); /* 0x25098EBB: mov eax, dword ptr [eax + 8] */ 9960 MEM32(edx + 0x8) = eax; /* 0x25098EBE: mov dword ptr [edx + 8], eax */ 9961 edx = MEM32(ebp + 0xC); /* 0x25098EC1: mov edx, dword ptr [ebp + 0xc] */ 9962 eax = MEM32(ebp + (-0x8)); /* 0x25098EC4: mov eax, dword ptr [ebp - 8] */ 9963 L_25098EC7: 9964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 9965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9966 eax = eax + 0xCu; /* 0x25098EC7: add eax, 0xc */ 9967 _flag_k = FK_ADD; 9968 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 9969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9970 edx = edx + 0xCu; /* 0x25098ECA: add edx, 0xc */ 9971 _flag_k = FK_ADD; 9972 /* cmp eax, ecx */ /* 0x25098ECD: cmp eax, ecx */ 9973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9975 _flag_k = FK_CMP; 9976 MEM32(ebp + 0xC) = edx; /* 0x25098ECF: mov dword ptr [ebp + 0xc], edx */ 9977 MEM32(ebp + (-0x8)) = eax; /* 0x25098ED2: mov dword ptr [ebp - 8], eax */ 9978 RECOMP_BACKEDGE(); 9979 if (CMP_NE(_flag_a, _flag_b)) goto L_25098EAD; /* 0x25098ED5: jne 0x25098ead */ 9980 L_25098ED7: 9981 ecx = MEM32(ebp + (-0x4)); /* 0x25098ED7: mov ecx, dword ptr [ebp - 4] */ 9982 ebx = MEM32(ecx + 0x8); /* 0x25098EDA: mov ebx, dword ptr [ecx + 8] */ 9983 ecx = ebx; /* 0x25098EDD: mov ecx, ebx */ 9984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9986 ecx = ecx - edi; /* 0x25098EDF: sub ecx, edi */ 9987 _flag_k = FK_CMP; 9988 eax = 0x2AAAAAABu; /* 0x25098EE1: mov eax, 0x2aaaaaab */ 9989 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x25098EE6: imul ecx */ 9990 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 9991 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 9992 ecx = MEM32(ebp + 0x10); /* 0x25098EE8: mov ecx, dword ptr [ebp + 0x10] */ 9993 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x25098EEB: sar edx, 1 */ 9994 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9995 edx = (uint32_t)((int32_t)edx >> 1u); 9996 eax = edx; /* 0x25098EED: mov eax, edx */ 9997 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x25098EEF: shr eax, 0x1f */ 9998 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9999 eax = eax >> 31u; /* 0x25098EEF: shr eax, 0x1f */ 10000 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 10001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10002 edx = edx + eax; /* 0x25098EF2: add edx, eax */ 10003 _flag_k = FK_ADD; 10004 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 10005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10006 esi = esi - edx; /* 0x25098EF4: sub esi, edx */ 10007 _flag_k = FK_CMP; 10008 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_25098F17; /* 0x25098EF6: je 0x25098f17 */ 10009 L_25098EF8: 10010 /* test ebx, ebx */ /* 0x25098EF8: test ebx, ebx */ 10011 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10012 _cf = 0; 10013 _flag_k = FK_TEST; 10014 if (TEST_Z(_flag_a, _flag_b)) goto L_25098F11; /* 0x25098EFA: je 0x25098f11 */ 10015 L_25098EFC: 10016 eax = MEM32(ecx); /* 0x25098EFC: mov eax, dword ptr [ecx] */ 10017 edx = ebx; /* 0x25098EFE: mov edx, ebx */ 10018 MEM32(edx) = eax; /* 0x25098F00: mov dword ptr [edx], eax */ 10019 eax = MEM32(ecx + 0x4); /* 0x25098F02: mov eax, dword ptr [ecx + 4] */ 10020 MEM32(edx + 0x4) = eax; /* 0x25098F05: mov dword ptr [edx + 4], eax */ 10021 ecx = MEM32(ecx + 0x8); /* 0x25098F08: mov ecx, dword ptr [ecx + 8] */ 10022 MEM32(edx + 0x8) = ecx; /* 0x25098F0B: mov dword ptr [edx + 8], ecx */ 10023 ecx = MEM32(ebp + 0x10); /* 0x25098F0E: mov ecx, dword ptr [ebp + 0x10] */ 10024 L_25098F11: 10025 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 10026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10027 ebx = ebx + 0xCu; /* 0x25098F11: add ebx, 0xc */ 10028 _flag_k = FK_ADD; 10029 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 10030 esi = esi - 1; /* 0x25098F14: dec esi */ 10031 _flag_k = FK_DEC; 10032 RECOMP_BACKEDGE(); 10033 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25098EF8; /* 0x25098F15: jne 0x25098ef8 */ 10034 L_25098F17: 10035 edx = MEM32(ebp + (-0x4)); /* 0x25098F17: mov edx, dword ptr [ebp - 4] */ 10036 eax = MEM32(edx + 0x8); /* 0x25098F1A: mov eax, dword ptr [edx + 8] */ 10037 /* cmp edi, eax */ /* 0x25098F1D: cmp edi, eax */ 10038 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10040 _flag_k = FK_CMP; 10041 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098F3F; /* 0x25098F1F: je 0x25098f3f */ 10042 L_25098F21: 10043 edx = ecx; /* 0x25098F21: mov edx, ecx */ 10044 ebx = MEM32(edx); /* 0x25098F23: mov ebx, dword ptr [edx] */ 10045 esi = edi; /* 0x25098F25: mov esi, edi */ 10046 MEM32(esi) = ebx; /* 0x25098F27: mov dword ptr [esi], ebx */ 10047 ebx = MEM32(edx + 0x4); /* 0x25098F29: mov ebx, dword ptr [edx + 4] */ 10048 MEM32(esi + 0x4) = ebx; /* 0x25098F2C: mov dword ptr [esi + 4], ebx */ 10049 edx = MEM32(edx + 0x8); /* 0x25098F2F: mov edx, dword ptr [edx + 8] */ 10050 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 10051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10052 edi = edi + 0xCu; /* 0x25098F32: add edi, 0xc */ 10053 _flag_k = FK_ADD; 10054 /* cmp edi, eax */ /* 0x25098F35: cmp edi, eax */ 10055 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10057 _flag_k = FK_CMP; 10058 MEM32(esi + 0x8) = edx; /* 0x25098F37: mov dword ptr [esi + 8], edx */ 10059 RECOMP_BACKEDGE(); 10060 if (CMP_NE(_flag_a, _flag_b)) goto L_25098F21; /* 0x25098F3A: jne 0x25098f21 */ 10061 L_25098F3C: 10062 edx = MEM32(ebp + (-0x4)); /* 0x25098F3C: mov edx, dword ptr [ebp - 4] */ 10063 L_25098F3F: 10064 ecx = MEM32(edx + 0x8); /* 0x25098F3F: mov ecx, dword ptr [edx + 8] */ 10065 eax = MEM32(ebp + 0x8); /* 0x25098F42: mov eax, dword ptr [ebp + 8] */ 10066 edi = POP32_VAL(esp); /* 0x25098F45: pop edi */ 10067 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10069 ecx = ecx + eax; /* 0x25098F46: add ecx, eax */ 10070 _flag_k = FK_ADD; 10071 esi = POP32_VAL(esp); /* 0x25098F48: pop esi */ 10072 MEM32(edx + 0x8) = ecx; /* 0x25098F49: mov dword ptr [edx + 8], ecx */ 10073 ebx = POP32_VAL(esp); /* 0x25098F4C: pop ebx */ 10074 esp = ebp; /* 0x25098F4D: mov esp, ebp */ 10075 ebp = POP32_VAL(esp); /* 0x25098F4F: pop ebp */ 10076 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x25098F50: ret 0xc */ 10077 L_25098F53: 10078 /* test esi, esi */ /* 0x25098F53: test esi, esi */ 10079 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10080 _cf = 0; 10081 _flag_k = FK_TEST; 10082 if (TEST_Z(_flag_a, _flag_b)) goto L_25098FF5; /* 0x25098F55: jbe 0x25098ff5 */ 10083 L_25098F5B: 10084 esi = esi + esi * 2; /* 0x25098F5B: lea esi, [esi + esi*2] */ 10085 if (2u) _cf = (((esi) >> 30) & 1u); /* 0x25098F5E: shl esi, 2 */ 10086 if (2u) { _flag_a = recomp_flags_pack((esi << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10087 esi = esi << 2u; /* 0x25098F5E: shl esi, 2 */ 10088 eax = ecx; /* 0x25098F61: mov eax, ecx */ 10089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 10090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10091 eax = eax - esi; /* 0x25098F63: sub eax, esi */ 10092 _flag_k = FK_CMP; 10093 /* cmp eax, ecx */ /* 0x25098F65: cmp eax, ecx */ 10094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10096 _flag_k = FK_CMP; 10097 edx = ecx; /* 0x25098F67: mov edx, ecx */ 10098 MEM32(ebp + 0xC) = edx; /* 0x25098F69: mov dword ptr [ebp + 0xc], edx */ 10099 MEM32(ebp + 0x8) = esi; /* 0x25098F6C: mov dword ptr [ebp + 8], esi */ 10100 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098F9D; /* 0x25098F6F: je 0x25098f9d */ 10101 L_25098F71: 10102 /* test edx, edx */ /* 0x25098F71: test edx, edx */ 10103 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10104 _cf = 0; 10105 _flag_k = FK_TEST; 10106 if (TEST_Z(_flag_a, _flag_b)) goto L_25098F90; /* 0x25098F73: je 0x25098f90 */ 10107 L_25098F75: 10108 esi = eax; /* 0x25098F75: mov esi, eax */ 10109 ebx = MEM32(esi); /* 0x25098F77: mov ebx, dword ptr [esi] */ 10110 MEM32(edx) = ebx; /* 0x25098F79: mov dword ptr [edx], ebx */ 10111 ebx = MEM32(esi + 0x4); /* 0x25098F7B: mov ebx, dword ptr [esi + 4] */ 10112 MEM32(edx + 0x4) = ebx; /* 0x25098F7E: mov dword ptr [edx + 4], ebx */ 10113 esi = MEM32(esi + 0x8); /* 0x25098F81: mov esi, dword ptr [esi + 8] */ 10114 ebx = MEM32(ebp + (-0x4)); /* 0x25098F84: mov ebx, dword ptr [ebp - 4] */ 10115 MEM32(edx + 0x8) = esi; /* 0x25098F87: mov dword ptr [edx + 8], esi */ 10116 edx = MEM32(ebp + 0xC); /* 0x25098F8A: mov edx, dword ptr [ebp + 0xc] */ 10117 esi = MEM32(ebp + 0x8); /* 0x25098F8D: mov esi, dword ptr [ebp + 8] */ 10118 L_25098F90: 10119 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 10120 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10121 edx = edx + 0xCu; /* 0x25098F90: add edx, 0xc */ 10122 _flag_k = FK_ADD; 10123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 10124 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10125 eax = eax + 0xCu; /* 0x25098F93: add eax, 0xc */ 10126 _flag_k = FK_ADD; 10127 /* cmp eax, ecx */ /* 0x25098F96: cmp eax, ecx */ 10128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 10129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10130 _flag_k = FK_CMP; 10131 MEM32(ebp + 0xC) = edx; /* 0x25098F98: mov dword ptr [ebp + 0xc], edx */ 10132 RECOMP_BACKEDGE(); 10133 if (CMP_NE(_flag_a, _flag_b)) goto L_25098F71; /* 0x25098F9B: jne 0x25098f71 */ 10134 L_25098F9D: 10135 ecx = MEM32(ebx + 0x8); /* 0x25098F9D: mov ecx, dword ptr [ebx + 8] */ 10136 eax = ecx; /* 0x25098FA0: mov eax, ecx */ 10137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 10138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10139 eax = eax - esi; /* 0x25098FA2: sub eax, esi */ 10140 _flag_k = FK_CMP; 10141 /* cmp edi, eax */ /* 0x25098FA4: cmp edi, eax */ 10142 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10144 _flag_k = FK_CMP; 10145 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098FCC; /* 0x25098FA6: je 0x25098fcc */ 10146 L_25098FA8: 10147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 10148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10149 eax = eax - 0xCu; /* 0x25098FA8: sub eax, 0xc */ 10150 _flag_k = FK_CMP; 10151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 10152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10153 ecx = ecx - 0xCu; /* 0x25098FAB: sub ecx, 0xc */ 10154 _flag_k = FK_CMP; 10155 /* cmp eax, edi */ /* 0x25098FAE: cmp eax, edi */ 10156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10158 _flag_k = FK_CMP; 10159 edx = eax; /* 0x25098FB0: mov edx, eax */ 10160 ebx = MEM32(edx); /* 0x25098FB2: mov ebx, dword ptr [edx] */ 10161 esi = ecx; /* 0x25098FB4: mov esi, ecx */ 10162 MEM32(esi) = ebx; /* 0x25098FB6: mov dword ptr [esi], ebx */ 10163 ebx = MEM32(edx + 0x4); /* 0x25098FB8: mov ebx, dword ptr [edx + 4] */ 10164 MEM32(esi + 0x4) = ebx; /* 0x25098FBB: mov dword ptr [esi + 4], ebx */ 10165 edx = MEM32(edx + 0x8); /* 0x25098FBE: mov edx, dword ptr [edx + 8] */ 10166 MEM32(esi + 0x8) = edx; /* 0x25098FC1: mov dword ptr [esi + 8], edx */ 10167 RECOMP_BACKEDGE(); 10168 if (CMP_NE(_flag_a, _flag_b)) goto L_25098FA8; /* 0x25098FC4: jne 0x25098fa8 */ 10169 L_25098FC6: 10170 esi = MEM32(ebp + 0x8); /* 0x25098FC6: mov esi, dword ptr [ebp + 8] */ 10171 ebx = MEM32(ebp + (-0x4)); /* 0x25098FC9: mov ebx, dword ptr [ebp - 4] */ 10172 L_25098FCC: 10173 eax = esi + edi; /* 0x25098FCC: lea eax, [esi + edi] */ 10174 /* cmp edi, eax */ /* 0x25098FCF: cmp edi, eax */ 10175 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10177 _flag_k = FK_CMP; 10178 if (CMP_EQ(_flag_a, _flag_b)) goto L_25098FF2; /* 0x25098FD1: je 0x25098ff2 */ 10179 L_25098FD3: 10180 ecx = MEM32(ebp + 0x10); /* 0x25098FD3: mov ecx, dword ptr [ebp + 0x10] */ 10181 ebx = MEM32(ecx); /* 0x25098FD6: mov ebx, dword ptr [ecx] */ 10182 edx = edi; /* 0x25098FD8: mov edx, edi */ 10183 MEM32(edx) = ebx; /* 0x25098FDA: mov dword ptr [edx], ebx */ 10184 ebx = MEM32(ecx + 0x4); /* 0x25098FDC: mov ebx, dword ptr [ecx + 4] */ 10185 MEM32(edx + 0x4) = ebx; /* 0x25098FDF: mov dword ptr [edx + 4], ebx */ 10186 ecx = MEM32(ecx + 0x8); /* 0x25098FE2: mov ecx, dword ptr [ecx + 8] */ 10187 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 10188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10189 edi = edi + 0xCu; /* 0x25098FE5: add edi, 0xc */ 10190 _flag_k = FK_ADD; 10191 /* cmp edi, eax */ /* 0x25098FE8: cmp edi, eax */ 10192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 10193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10194 _flag_k = FK_CMP; 10195 MEM32(edx + 0x8) = ecx; /* 0x25098FEA: mov dword ptr [edx + 8], ecx */ 10196 RECOMP_BACKEDGE(); 10197 if (CMP_NE(_flag_a, _flag_b)) goto L_25098FD3; /* 0x25098FED: jne 0x25098fd3 */ 10198 L_25098FEF: 10199 ebx = MEM32(ebp + (-0x4)); /* 0x25098FEF: mov ebx, dword ptr [ebp - 4] */ 10200 L_25098FF2: 10201 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 10202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10203 MEM32(ebx + 0x8) = MEM32(ebx + 0x8) + esi; /* 0x25098FF2: add dword ptr [ebx + 8], esi */ 10204 _flag_k = FK_ADD; 10205 L_25098FF5: 10206 edi = POP32_VAL(esp); /* 0x25098FF5: pop edi */ 10207 esi = POP32_VAL(esp); /* 0x25098FF6: pop esi */ 10208 ebx = POP32_VAL(esp); /* 0x25098FF7: pop ebx */ 10209 esp = ebp; /* 0x25098FF8: mov esp, ebp */ 10210 ebp = POP32_VAL(esp); /* 0x25098FFA: pop ebp */ 10211 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x25098FFB: ret 0xc */ 10212 RECOMP_REGS_OUT(); 10213 } 10214 10215 void sub_25099000(void) { 10216 int _fpu_cmp = 0; 10217 uint32_t _cf = 0; 10218 int _df = 1; 10219 uint32_t _flag_k = FK_NONE; 10220 uint32_t _flag_a = 0, _flag_b = 0; 10221 uint32_t _itail_tgt = 0; 10222 RECOMP_REGS_LOCALS 10223 RECOMP_ENTER(0x25099000u); 10224 10225 L_25099000: 10226 PUSH32(esp, ebp); /* 0x25099000: push ebp */ 10227 ebp = esp; /* 0x25099001: mov ebp, esp */ 10228 eax = MEM32(ecx + 0x4); /* 0x25099003: mov eax, dword ptr [ecx + 4] */ 10229 edx = MEM32(eax + 0x4); /* 0x25099006: mov edx, dword ptr [eax + 4] */ 10230 ecx = MEM32(ecx + 0x8); /* 0x25099009: mov ecx, dword ptr [ecx + 8] */ 10231 /* cmp edx, ecx */ /* 0x2509900C: cmp edx, ecx */ 10232 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10234 _flag_k = FK_CMP; 10235 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099029; /* 0x2509900E: je 0x25099029 */ 10236 L_25099010: 10237 PUSH32(esp, esi); /* 0x25099010: push esi */ 10238 esi = MEM32(ebp + 0x8); /* 0x25099011: mov esi, dword ptr [ebp + 8] */ 10239 esi = MEM32(esi); /* 0x25099014: mov esi, dword ptr [esi] */ 10240 L_25099016: 10241 /* cmp MEM32(edx + 0xC), esi */ /* 0x25099016: cmp dword ptr [edx + 0xc], esi */ 10242 _flag_a = (uint32_t)(MEM32(edx + 0xC)); _flag_b = (uint32_t)(esi); 10243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10244 _flag_k = FK_CMP; 10245 if (CMP_GE(_flag_a, _flag_b)) goto L_25099020; /* 0x25099019: jge 0x25099020 */ 10246 L_2509901B: 10247 edx = MEM32(edx + 0x8); /* 0x2509901B: mov edx, dword ptr [edx + 8] */ 10248 goto L_25099024; /* 0x2509901E: jmp 0x25099024 */ 10249 L_25099020: 10250 eax = edx; /* 0x25099020: mov eax, edx */ 10251 edx = MEM32(edx); /* 0x25099022: mov edx, dword ptr [edx] */ 10252 L_25099024: 10253 /* cmp edx, ecx */ /* 0x25099024: cmp edx, ecx */ 10254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 10255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10256 _flag_k = FK_CMP; 10257 RECOMP_BACKEDGE(); 10258 if (CMP_NE(_flag_a, _flag_b)) goto L_25099016; /* 0x25099026: jne 0x25099016 */ 10259 L_25099028: 10260 esi = POP32_VAL(esp); /* 0x25099028: pop esi */ 10261 L_25099029: 10262 ebp = POP32_VAL(esp); /* 0x25099029: pop ebp */ 10263 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509902A: ret 4 */ 10264 RECOMP_REGS_OUT(); 10265 } 10266 10267 void sub_25099030(void) { 10268 int _fpu_cmp = 0; 10269 uint32_t _cf = 0; 10270 int _df = 1; 10271 uint32_t _flag_k = FK_NONE; 10272 uint32_t _flag_a = 0, _flag_b = 0; 10273 uint32_t _itail_tgt = 0; 10274 RECOMP_REGS_LOCALS 10275 RECOMP_ENTER(0x25099030u); 10276 10277 L_25099030: 10278 PUSH32(esp, ebp); /* 0x25099030: push ebp */ 10279 ebp = esp; /* 0x25099031: mov ebp, esp */ 10280 PUSH32(esp, 0x18u); /* 0x25099033: push 0x18 */ 10281 RECOMP_ICALL(0x251380D0u); /* 0x25099035: call 0x251380d0 */ /* not lifted */ 10282 RECOMP_FLAGS_IN(); 10283 ecx = MEM32(ebp + 0x8); /* 0x2509903A: mov ecx, dword ptr [ebp + 8] */ 10284 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x2509903D: mov dl, byte ptr [ebp + 0xc] */ 10285 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10286 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10287 esp = esp + 4; /* 0x25099040: add esp, 4 */ 10288 _flag_k = FK_ADD; 10289 MEM32(eax + 0x4) = ecx; /* 0x25099043: mov dword ptr [eax + 4], ecx */ 10290 MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x25099046: mov byte ptr [eax + 0x14], dl */ 10291 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x25099049: mov byte ptr [eax + 0x15], 0 */ 10292 ebp = POP32_VAL(esp); /* 0x2509904D: pop ebp */ 10293 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509904E: ret 8 */ 10294 RECOMP_REGS_OUT(); 10295 } 10296 10297 void sub_25099060(void) { 10298 int _fpu_cmp = 0; 10299 uint32_t _cf = 0; 10300 int _df = 1; 10301 uint32_t _flag_k = FK_NONE; 10302 uint32_t _flag_a = 0, _flag_b = 0; 10303 uint32_t _itail_tgt = 0; 10304 RECOMP_REGS_LOCALS 10305 RECOMP_ENTER(0x25099060u); 10306 10307 L_25099060: 10308 PUSH32(esp, ebp); /* 0x25099060: push ebp */ 10309 ebp = esp; /* 0x25099061: mov ebp, esp */ 10310 edx = MEM32(ebp + 0xC); /* 0x25099063: mov edx, dword ptr [ebp + 0xc] */ 10311 eax = ecx; /* 0x25099066: mov eax, ecx */ 10312 ecx = MEM32(ebp + 0x8); /* 0x25099068: mov ecx, dword ptr [ebp + 8] */ 10313 MEM32(eax + 0x4) = ecx; /* 0x2509906B: mov dword ptr [eax + 4], ecx */ 10314 MEM32(eax + 0x8) = edx; /* 0x2509906E: mov dword ptr [eax + 8], edx */ 10315 MEM32(eax) = 0x25153C8Cu; /* 0x25099071: mov dword ptr [eax], 0x25153c8c */ 10316 ebp = POP32_VAL(esp); /* 0x25099077: pop ebp */ 10317 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25099078: ret 8 */ 10318 RECOMP_REGS_OUT(); 10319 } 10320 10321 void sub_25099080(void) { 10322 int _fpu_cmp = 0; 10323 uint32_t _cf = 0; 10324 int _df = 1; 10325 uint32_t _flag_k = FK_NONE; 10326 uint32_t _flag_a = 0, _flag_b = 0; 10327 uint32_t _itail_tgt = 0; 10328 RECOMP_REGS_LOCALS 10329 RECOMP_ENTER(0x25099080u); 10330 10331 L_25099080: 10332 MEM32(ecx) = 0x25153C8Cu; /* 0x25099080: mov dword ptr [ecx], 0x25153c8c */ 10333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25099086: ret */ 10334 RECOMP_REGS_OUT(); 10335 } 10336 10337 void sub_25099090(void) { 10338 int _fpu_cmp = 0; 10339 uint32_t _cf = 0; 10340 int _df = 1; 10341 uint32_t _flag_k = FK_NONE; 10342 uint32_t _flag_a = 0, _flag_b = 0; 10343 uint32_t _itail_tgt = 0; 10344 RECOMP_REGS_LOCALS 10345 RECOMP_ENTER(0x25099090u); 10346 10347 L_25099090: 10348 goto L_250990A0; /* 0x25099090: jmp 0x250990a0 */ 10349 L_250990A0: 10350 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250990A0: ret */ 10351 RECOMP_REGS_OUT(); 10352 } 10353 10354 void sub_250990A0(void) { 10355 int _fpu_cmp = 0; 10356 uint32_t _cf = 0; 10357 int _df = 1; 10358 uint32_t _flag_k = FK_NONE; 10359 uint32_t _flag_a = 0, _flag_b = 0; 10360 uint32_t _itail_tgt = 0; 10361 RECOMP_REGS_LOCALS 10362 RECOMP_ENTER(0x250990A0u); 10363 10364 L_250990A0: 10365 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250990A0: ret */ 10366 RECOMP_REGS_OUT(); 10367 } 10368 10369 void sub_250990B0(void) { 10370 int _fpu_cmp = 0; 10371 uint32_t _cf = 0; 10372 int _df = 1; 10373 uint32_t _flag_k = FK_NONE; 10374 uint32_t _flag_a = 0, _flag_b = 0; 10375 uint32_t _itail_tgt = 0; 10376 RECOMP_REGS_LOCALS 10377 RECOMP_ENTER(0x250990B0u); 10378 10379 L_250990B0: 10380 PUSH32(esp, ebp); /* 0x250990B0: push ebp */ 10381 ebp = esp; /* 0x250990B1: mov ebp, esp */ 10382 PUSH32(esp, 0xFFFFFFFFu); /* 0x250990B3: push -1 */ 10383 PUSH32(esp, 0x25149846u); /* 0x250990B5: push 0x25149846 */ 10384 eax = MEM32(FS_BASE + (0)); /* 0x250990BA: mov eax, dword ptr fs:[0] */ 10385 PUSH32(esp, eax); /* 0x250990C0: push eax */ 10386 MEM32(FS_BASE + (0)) = esp; /* 0x250990C1: mov dword ptr fs:[0], esp */ 10387 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 10388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10389 esp = esp - 0x24u; /* 0x250990C8: sub esp, 0x24 */ 10390 _flag_k = FK_CMP; 10391 eax = MEM32(ebp + 0xC); /* 0x250990CB: mov eax, dword ptr [ebp + 0xc] */ 10392 PUSH32(esp, ebx); /* 0x250990CE: push ebx */ 10393 ebx = MEM32(ebp + 0x8); /* 0x250990CF: mov ebx, dword ptr [ebp + 8] */ 10394 PUSH32(esp, esi); /* 0x250990D2: push esi */ 10395 esi = ecx; /* 0x250990D3: mov esi, ecx */ 10396 PUSH32(esp, edi); /* 0x250990D5: push edi */ 10397 edi = MEM32(ebp + 0x14); /* 0x250990D6: mov edi, dword ptr [ebp + 0x14] */ 10398 PUSH32(esp, 0xB0u); /* 0x250990D9: push 0xb0 */ 10399 MEM32(esi + 0x8) = ebx; /* 0x250990DE: mov dword ptr [esi + 8], ebx */ 10400 MEM32(esi + 0xC) = eax; /* 0x250990E1: mov dword ptr [esi + 0xc], eax */ 10401 MEM32(esi + 0x10) = edi; /* 0x250990E4: mov dword ptr [esi + 0x10], edi */ 10402 RECOMP_ICALL(0x251380D0u); /* 0x250990E7: call 0x251380d0 */ /* not lifted */ 10403 RECOMP_FLAGS_IN(); 10404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10406 esp = esp + 4; /* 0x250990EC: add esp, 4 */ 10407 _flag_k = FK_ADD; 10408 MEM32(ebp + 0x8) = eax; /* 0x250990EF: mov dword ptr [ebp + 8], eax */ 10409 /* test eax, eax */ /* 0x250990F2: test eax, eax */ 10410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10411 _cf = 0; 10412 _flag_k = FK_TEST; 10413 MEM32(ebp + (-0x4)) = 0; /* 0x250990F4: mov dword ptr [ebp - 4], 0 */ 10414 if (TEST_Z(_flag_a, _flag_b)) goto L_25099115; /* 0x250990FB: je 0x25099115 */ 10415 L_250990FD: 10416 ecx = MEM32(ebp + 0xC); /* 0x250990FD: mov ecx, dword ptr [ebp + 0xc] */ 10417 PUSH32(esp, 0); /* 0x25099100: push 0 */ 10418 PUSH32(esp, 0); /* 0x25099102: push 0 */ 10419 PUSH32(esp, edi); /* 0x25099104: push edi */ 10420 PUSH32(esp, ecx); /* 0x25099105: push ecx */ 10421 PUSH32(esp, ebx); /* 0x25099106: push ebx */ 10422 PUSH32(esp, 0x251B49D4u); /* 0x25099107: push 0x251b49d4 */ 10423 ecx = eax; /* 0x2509910C: mov ecx, eax */ 10424 RECOMP_ICALL(0x250EB5A0u); /* 0x2509910E: call 0x250eb5a0 */ /* not lifted */ 10425 RECOMP_FLAGS_IN(); 10426 goto L_25099117; /* 0x25099113: jmp 0x25099117 */ 10427 L_25099115: 10428 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10429 eax = 0; /* 0x25099115: xor eax, eax */ 10430 _cf = 0; 10431 _flag_k = FK_TEST; 10432 L_25099117: 10433 edx = MEM32(ebp + 0x10); /* 0x25099117: mov edx, dword ptr [ebp + 0x10] */ 10434 PUSH32(esp, 1); /* 0x2509911A: push 1 */ 10435 PUSH32(esp, 0); /* 0x2509911C: push 0 */ 10436 PUSH32(esp, 0); /* 0x2509911E: push 0 */ 10437 PUSH32(esp, 0); /* 0x25099120: push 0 */ 10438 PUSH32(esp, edi); /* 0x25099122: push edi */ 10439 PUSH32(esp, edx); /* 0x25099123: push edx */ 10440 ecx = eax; /* 0x25099124: mov ecx, eax */ 10441 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25099126: mov dword ptr [ebp - 4], 0xffffffff */ 10442 MEM32(esi + 0x4) = eax; /* 0x2509912D: mov dword ptr [esi + 4], eax */ 10443 RECOMP_ICALL(0x250EBC10u); /* 0x25099130: call 0x250ebc10 */ /* not lifted */ 10444 RECOMP_FLAGS_IN(); 10445 PUSH32(esp, 0xB8u); /* 0x25099135: push 0xb8 */ 10446 RECOMP_ICALL(0x251380D0u); /* 0x2509913A: call 0x251380d0 */ /* not lifted */ 10447 RECOMP_FLAGS_IN(); 10448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10450 esp = esp + 4; /* 0x2509913F: add esp, 4 */ 10451 _flag_k = FK_ADD; 10452 MEM32(ebp + 0xC) = eax; /* 0x25099142: mov dword ptr [ebp + 0xc], eax */ 10453 /* test eax, eax */ /* 0x25099145: test eax, eax */ 10454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10455 _cf = 0; 10456 _flag_k = FK_TEST; 10457 MEM32(ebp + (-0x4)) = 1; /* 0x25099147: mov dword ptr [ebp - 4], 1 */ 10458 if (TEST_Z(_flag_a, _flag_b)) goto L_250991BC; /* 0x2509914E: je 0x250991bc */ 10459 L_25099150: 10460 PUSH32(esp, 1); /* 0x25099150: push 1 */ 10461 PUSH32(esp, 0); /* 0x25099152: push 0 */ 10462 PUSH32(esp, 0x3F800000u); /* 0x25099154: push 0x3f800000 */ 10463 PUSH32(esp, 0); /* 0x25099159: push 0 */ 10464 PUSH32(esp, 0); /* 0x2509915B: push 0 */ 10465 ecx = ebp + (-0x18); /* 0x2509915D: lea ecx, [ebp - 0x18] */ 10466 PUSH32(esp, ecx); /* 0x25099160: push ecx */ 10467 edx = ebp + (-0x24); /* 0x25099161: lea edx, [ebp - 0x24] */ 10468 PUSH32(esp, edx); /* 0x25099164: push edx */ 10469 edx = MEM32(esi + 0x4); /* 0x25099165: mov edx, dword ptr [esi + 4] */ 10470 PUSH32(esp, 0); /* 0x25099168: push 0 */ 10471 ecx = ebp + (-0x30); /* 0x2509916A: lea ecx, [ebp - 0x30] */ 10472 PUSH32(esp, ecx); /* 0x2509916D: push ecx */ 10473 PUSH32(esp, edx); /* 0x2509916E: push edx */ 10474 PUSH32(esp, 0x251B49CCu); /* 0x2509916F: push 0x251b49cc */ 10475 ecx = eax; /* 0x25099174: mov ecx, eax */ 10476 MEM32(ebp + (-0x18)) = 0x3F800000u; /* 0x25099176: mov dword ptr [ebp - 0x18], 0x3f800000 */ 10477 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x2509917D: mov dword ptr [ebp - 0x14], 0x3f800000 */ 10478 MEM32(ebp + (-0x10)) = 0x3F800000u; /* 0x25099184: mov dword ptr [ebp - 0x10], 0x3f800000 */ 10479 MEM32(ebp + (-0x24)) = 0x3F800000u; /* 0x2509918B: mov dword ptr [ebp - 0x24], 0x3f800000 */ 10480 MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x25099192: mov dword ptr [ebp - 0x20], 0x3f800000 */ 10481 MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x25099199: mov dword ptr [ebp - 0x1c], 0x3f800000 */ 10482 MEM32(ebp + (-0x30)) = 0x3F800000u; /* 0x250991A0: mov dword ptr [ebp - 0x30], 0x3f800000 */ 10483 MEM32(ebp + (-0x2C)) = 0x3F800000u; /* 0x250991A7: mov dword ptr [ebp - 0x2c], 0x3f800000 */ 10484 MEM32(ebp + (-0x28)) = 0x3F800000u; /* 0x250991AE: mov dword ptr [ebp - 0x28], 0x3f800000 */ 10485 RECOMP_ICALL(0x250E48F0u); /* 0x250991B5: call 0x250e48f0 */ /* not lifted */ 10486 RECOMP_FLAGS_IN(); 10487 goto L_250991BE; /* 0x250991BA: jmp 0x250991be */ 10488 L_250991BC: 10489 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10490 eax = 0; /* 0x250991BC: xor eax, eax */ 10491 _cf = 0; 10492 _flag_k = FK_TEST; 10493 L_250991BE: 10494 ecx = MEM32(ebp + (-0xC)); /* 0x250991BE: mov ecx, dword ptr [ebp - 0xc] */ 10495 MEM32(esi) = eax; /* 0x250991C1: mov dword ptr [esi], eax */ 10496 edi = POP32_VAL(esp); /* 0x250991C3: pop edi */ 10497 eax = esi; /* 0x250991C4: mov eax, esi */ 10498 esi = POP32_VAL(esp); /* 0x250991C6: pop esi */ 10499 ebx = POP32_VAL(esp); /* 0x250991C7: pop ebx */ 10500 MEM32(FS_BASE + (0)) = ecx; /* 0x250991C8: mov dword ptr fs:[0], ecx */ 10501 esp = ebp; /* 0x250991CF: mov esp, ebp */ 10502 ebp = POP32_VAL(esp); /* 0x250991D1: pop ebp */ 10503 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x250991D2: ret 0x10 */ 10504 RECOMP_REGS_OUT(); 10505 } 10506 10507 void sub_250991E0(void) { 10508 int _fpu_cmp = 0; 10509 uint32_t _cf = 0; 10510 int _df = 1; 10511 uint32_t _flag_k = FK_NONE; 10512 uint32_t _flag_a = 0, _flag_b = 0; 10513 uint32_t _itail_tgt = 0; 10514 RECOMP_REGS_LOCALS 10515 RECOMP_ENTER(0x250991E0u); 10516 10517 L_250991E0: 10518 PUSH32(esp, esi); /* 0x250991E0: push esi */ 10519 esi = ecx; /* 0x250991E1: mov esi, ecx */ 10520 ecx = MEM32(esi); /* 0x250991E3: mov ecx, dword ptr [esi] */ 10521 RECOMP_ICALL(0x250E6370u); /* 0x250991E5: call 0x250e6370 */ /* not lifted */ 10522 RECOMP_FLAGS_IN(); 10523 ecx = MEM32(esi + 0x4); /* 0x250991EA: mov ecx, dword ptr [esi + 4] */ 10524 RECOMP_ICALL(0x250EBDE0u); /* 0x250991ED: call 0x250ebde0 */ /* not lifted */ 10525 RECOMP_FLAGS_IN(); 10526 esi = POP32_VAL(esp); /* 0x250991F2: pop esi */ 10527 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250991F3: ret */ 10528 RECOMP_REGS_OUT(); 10529 } 10530 10531 void sub_25099200(void) { 10532 int _fpu_cmp = 0; 10533 uint32_t _cf = 0; 10534 int _df = 1; 10535 uint32_t _flag_k = FK_NONE; 10536 uint32_t _flag_a = 0, _flag_b = 0; 10537 uint32_t _itail_tgt = 0; 10538 RECOMP_REGS_LOCALS 10539 RECOMP_ENTER(0x25099200u); 10540 10541 L_25099200: 10542 PUSH32(esp, ebp); /* 0x25099200: push ebp */ 10543 ebp = esp; /* 0x25099201: mov ebp, esp */ 10544 eax = MEM32(ebp + 0xC); /* 0x25099203: mov eax, dword ptr [ebp + 0xc] */ 10545 edx = MEM32(ecx + 0x10); /* 0x25099206: mov edx, dword ptr [ecx + 0x10] */ 10546 ecx = MEM32(ecx + 0x4); /* 0x25099209: mov ecx, dword ptr [ecx + 4] */ 10547 PUSH32(esp, 1); /* 0x2509920C: push 1 */ 10548 PUSH32(esp, 0); /* 0x2509920E: push 0 */ 10549 PUSH32(esp, 0); /* 0x25099210: push 0 */ 10550 PUSH32(esp, eax); /* 0x25099212: push eax */ 10551 eax = MEM32(ebp + 0x8); /* 0x25099213: mov eax, dword ptr [ebp + 8] */ 10552 PUSH32(esp, edx); /* 0x25099216: push edx */ 10553 PUSH32(esp, eax); /* 0x25099217: push eax */ 10554 RECOMP_ICALL(0x250EBC10u); /* 0x25099218: call 0x250ebc10 */ /* not lifted */ 10555 RECOMP_FLAGS_IN(); 10556 ebp = POP32_VAL(esp); /* 0x2509921D: pop ebp */ 10557 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509921E: ret 8 */ 10558 RECOMP_REGS_OUT(); 10559 } 10560 10561 void sub_25099230(void) { 10562 int _fpu_cmp = 0; 10563 uint32_t _cf = 0; 10564 int _df = 1; 10565 uint32_t _flag_k = FK_NONE; 10566 uint32_t _flag_a = 0, _flag_b = 0; 10567 uint32_t _itail_tgt = 0; 10568 RECOMP_REGS_LOCALS 10569 RECOMP_ENTER(0x25099230u); 10570 10571 L_25099230: 10572 RECOMP_ICALL(0x25099240u); /* 0x25099230: call 0x25099240 */ /* not lifted */ 10573 RECOMP_FLAGS_IN(); 10574 goto L_25099260; /* 0x25099235: jmp 0x25099260 */ 10575 L_25099260: 10576 PUSH32(esp, 0x25099270u); /* 0x25099260: push 0x25099270 */ 10577 RECOMP_ICALL(0x251380B2u); /* 0x25099265: call 0x251380b2 */ /* not lifted */ 10578 RECOMP_FLAGS_IN(); 10579 ecx = POP32_VAL(esp); /* 0x2509926A: pop ecx */ 10580 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509926B: ret */ 10581 RECOMP_REGS_OUT(); 10582 } 10583 10584 void sub_25099240(void) { 10585 int _fpu_cmp = 0; 10586 uint32_t _cf = 0; 10587 int _df = 1; 10588 uint32_t _flag_k = FK_NONE; 10589 uint32_t _flag_a = 0, _flag_b = 0; 10590 uint32_t _itail_tgt = 0; 10591 RECOMP_REGS_LOCALS 10592 RECOMP_ENTER(0x25099240u); 10593 10594 L_25099240: 10595 PUSH32(esp, 0x80u); /* 0x25099240: push 0x80 */ 10596 ecx = 0x252383A8u; /* 0x25099245: mov ecx, 0x252383a8 */ 10597 RECOMP_ICALL(MEM32(0x251515C8)); /* 0x2509924A: call dword ptr [0x251515c8] */ 10598 RECOMP_FLAGS_IN(); 10599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25099250: ret */ 10600 RECOMP_REGS_OUT(); 10601 } 10602 10603 void sub_25099260(void) { 10604 int _fpu_cmp = 0; 10605 uint32_t _cf = 0; 10606 int _df = 1; 10607 uint32_t _flag_k = FK_NONE; 10608 uint32_t _flag_a = 0, _flag_b = 0; 10609 uint32_t _itail_tgt = 0; 10610 RECOMP_REGS_LOCALS 10611 RECOMP_ENTER(0x25099260u); 10612 10613 L_25099260: 10614 PUSH32(esp, 0x25099270u); /* 0x25099260: push 0x25099270 */ 10615 RECOMP_ICALL(0x251380B2u); /* 0x25099265: call 0x251380b2 */ /* not lifted */ 10616 RECOMP_FLAGS_IN(); 10617 ecx = POP32_VAL(esp); /* 0x2509926A: pop ecx */ 10618 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509926B: ret */ 10619 RECOMP_REGS_OUT(); 10620 } 10621 10622 void sub_25099270(void) { 10623 int _fpu_cmp = 0; 10624 uint32_t _cf = 0; 10625 int _df = 1; 10626 uint32_t _flag_k = FK_NONE; 10627 uint32_t _flag_a = 0, _flag_b = 0; 10628 uint32_t _itail_tgt = 0; 10629 RECOMP_REGS_LOCALS 10630 RECOMP_ENTER(0x25099270u); 10631 10632 L_25099270: 10633 SET_LO8(ecx, MEM8(0x252383A5)); /* 0x25099270: mov cl, byte ptr [0x252383a5] */ 10634 L_25099276: 10635 SET_LO8(eax, 1); /* 0x25099276: mov al, 1 */ 10636 L_25099278: 10637 /* test LO8(eax), LO8(ecx) */ /* 0x25099278: test al, cl */ 10638 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 10639 _cf = 0; 10640 _flag_k = FK_NARROW(FK_TEST, 24); 10641 L_2509927A: 10642 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_2509928F; /* 0x2509927A: jne 0x2509928f */ 10643 L_2509927C: 10644 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 10645 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x2509927C: or cl, al */ 10646 _cf = 0; 10647 _flag_k = FK_NARROW(FK_TEST, 24); 10648 L_2509927E: 10649 MEM8(0x252383A5) = (uint8_t)(LO8(ecx)); /* 0x2509927E: mov byte ptr [0x252383a5], cl */ 10650 L_25099284: 10651 ecx = 0x252383A8u; /* 0x25099284: mov ecx, 0x252383a8 */ 10652 L_25099289: 10653 { _itail_tgt = (uint32_t)(MEM32(0x251515C4)); goto _ljump; } 10654 L_2509928F: 10655 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509928F: ret */ 10656 _ljump: 10657 switch (_itail_tgt) { 10658 case 0x25099270u: goto L_25099270; 10659 case 0x25099276u: goto L_25099276; 10660 case 0x25099278u: goto L_25099278; 10661 case 0x2509927Au: goto L_2509927A; 10662 case 0x2509927Cu: goto L_2509927C; 10663 case 0x2509927Eu: goto L_2509927E; 10664 case 0x25099284u: goto L_25099284; 10665 case 0x25099289u: goto L_25099289; 10666 case 0x2509928Fu: goto L_2509928F; 10667 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10668 } 10669 RECOMP_REGS_OUT(); 10670 } 10671 10672 void sub_25099290(void) { 10673 int _fpu_cmp = 0; 10674 uint32_t _cf = 0; 10675 int _df = 1; 10676 uint32_t _flag_k = FK_NONE; 10677 uint32_t _flag_a = 0, _flag_b = 0; 10678 uint32_t _itail_tgt = 0; 10679 RECOMP_REGS_LOCALS 10680 RECOMP_ENTER(0x25099290u); 10681 10682 L_25099290: 10683 PUSH32(esp, ebp); /* 0x25099290: push ebp */ 10684 ebp = esp; /* 0x25099291: mov ebp, esp */ 10685 PUSH32(esp, 0xFFFFFFFFu); /* 0x25099293: push -1 */ 10686 PUSH32(esp, 0x25149859u); /* 0x25099295: push 0x25149859 */ 10687 eax = MEM32(FS_BASE + (0)); /* 0x2509929A: mov eax, dword ptr fs:[0] */ 10688 PUSH32(esp, eax); /* 0x250992A0: push eax */ 10689 MEM32(FS_BASE + (0)) = esp; /* 0x250992A1: mov dword ptr fs:[0], esp */ 10690 PUSH32(esp, ecx); /* 0x250992A8: push ecx */ 10691 PUSH32(esp, ebx); /* 0x250992A9: push ebx */ 10692 PUSH32(esp, esi); /* 0x250992AA: push esi */ 10693 esi = ecx; /* 0x250992AB: mov esi, ecx */ 10694 PUSH32(esp, edi); /* 0x250992AD: push edi */ 10695 MEM32(ebp + (-0x10)) = esi; /* 0x250992AE: mov dword ptr [ebp - 0x10], esi */ 10696 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10697 eax = 0; /* 0x250992B1: xor eax, eax */ 10698 _cf = 0; 10699 _flag_k = FK_TEST; 10700 MEM32(esi + 0x8) = 0x25155AA4u; /* 0x250992B3: mov dword ptr [esi + 8], 0x25155aa4 */ 10701 MEM32(esi + 0x10) = eax; /* 0x250992BA: mov dword ptr [esi + 0x10], eax */ 10702 MEM32(esi + 0x14) = eax; /* 0x250992BD: mov dword ptr [esi + 0x14], eax */ 10703 MEM32(esi + 0x18) = eax; /* 0x250992C0: mov dword ptr [esi + 0x18], eax */ 10704 edi = esi + 0x14; /* 0x250992C3: lea edi, [esi + 0x14] */ 10705 MEM32(ebp + (-0x4)) = eax; /* 0x250992C6: mov dword ptr [ebp - 4], eax */ 10706 MEM32(esi + 0x50) = eax; /* 0x250992C9: mov dword ptr [esi + 0x50], eax */ 10707 MEM32(esi + 0x54) = eax; /* 0x250992CC: mov dword ptr [esi + 0x54], eax */ 10708 MEM32(esi) = 0x251560F0u; /* 0x250992CF: mov dword ptr [esi], 0x251560f0 */ 10709 MEM32(esi + 0x8) = 0x251560DCu; /* 0x250992D5: mov dword ptr [esi + 8], 0x251560dc */ 10710 RECOMP_ICALL(0x25099580u); /* 0x250992DC: call 0x25099580 */ /* not lifted */ 10711 RECOMP_FLAGS_IN(); 10712 ecx = esi; /* 0x250992E1: mov ecx, esi */ 10713 RECOMP_ICALL(0x25096DC0u); /* 0x250992E3: call 0x25096dc0 */ /* not lifted */ 10714 RECOMP_FLAGS_IN(); 10715 eax = MEM32(ebp + 0x18); /* 0x250992E8: mov eax, dword ptr [ebp + 0x18] */ 10716 ecx = MEM32(ebp + 0x10); /* 0x250992EB: mov ecx, dword ptr [ebp + 0x10] */ 10717 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x250992EE: mov dl, byte ptr [ebp + 0xc] */ 10718 MEM32(esi + 0x40) = eax; /* 0x250992F1: mov dword ptr [esi + 0x40], eax */ 10719 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x250992F4: mov al, byte ptr [ebp + 0x14] */ 10720 /* test LO8(eax), LO8(eax) */ /* 0x250992F7: test al, al */ 10721 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10722 _cf = 0; 10723 _flag_k = FK_NARROW(FK_TEST, 24); 10724 MEM32(esi + 0x38) = ecx; /* 0x250992F9: mov dword ptr [esi + 0x38], ecx */ 10725 MEM8(esi + 0xC) = (uint8_t)(LO8(edx)); /* 0x250992FC: mov byte ptr [esi + 0xc], dl */ 10726 if (TEST_Z(_flag_a, _flag_b)) goto L_25099308; /* 0x250992FF: je 0x25099308 */ 10727 L_25099301: 10728 eax = 0x000F696Au; /* 0x25099301: mov eax, 0xf696a */ 10729 goto L_25099314; /* 0x25099306: jmp 0x25099314 */ 10730 L_25099308: 10731 SET_LO8(eax, MEM8(0x252383D0)); /* 0x25099308: mov al, byte ptr [0x252383d0] */ 10732 /* test LO8(eax), LO8(eax) */ /* 0x2509930D: test al, al */ 10733 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10734 _cf = 0; 10735 _flag_k = FK_NARROW(FK_TEST, 24); 10736 eax = 0x000F6951u; /* 0x2509930F: mov eax, 0xf6951 */ 10737 L_25099314: 10738 /* test LO8(edx), LO8(edx) */ /* 0x25099314: test dl, dl */ 10739 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10740 _cf = 0; 10741 _flag_k = FK_NARROW(FK_TEST, 24); 10742 ebx = MEM32(ebp + 0x8); /* 0x25099316: mov ebx, dword ptr [ebp + 8] */ 10743 MEM32(edi) = eax; /* 0x25099319: mov dword ptr [edi], eax */ 10744 MEM32(edi + 0x4) = ebx; /* 0x2509931B: mov dword ptr [edi + 4], ebx */ 10745 if (TEST_Z(_flag_a, _flag_b)) goto L_2509933B; /* 0x2509931E: je 0x2509933b */ 10746 L_25099320: 10747 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x25099320: call dword ptr [0x251515d8] */ 10748 RECOMP_FLAGS_IN(); 10749 ecx = MEM32(ebp + 0x1C); /* 0x25099326: mov ecx, dword ptr [ebp + 0x1c] */ 10750 edx = MEM32(eax); /* 0x25099329: mov edx, dword ptr [eax] */ 10751 PUSH32(esp, 0); /* 0x2509932B: push 0 */ 10752 PUSH32(esp, ecx); /* 0x2509932D: push ecx */ 10753 ecx = MEM32(esi + 0x38); /* 0x2509932E: mov ecx, dword ptr [esi + 0x38] */ 10754 PUSH32(esp, ecx); /* 0x25099331: push ecx */ 10755 PUSH32(esp, esi); /* 0x25099332: push esi */ 10756 PUSH32(esp, edi); /* 0x25099333: push edi */ 10757 ecx = eax; /* 0x25099334: mov ecx, eax */ 10758 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x25099336: call dword ptr [edx + 0x10] */ 10759 RECOMP_FLAGS_IN(); 10760 goto L_2509938A; /* 0x25099339: jmp 0x2509938a */ 10761 L_2509933B: 10762 edx = MEM32(ebp + 0x1C); /* 0x2509933B: mov edx, dword ptr [ebp + 0x1c] */ 10763 PUSH32(esp, edx); /* 0x2509933E: push edx */ 10764 PUSH32(esp, ecx); /* 0x2509933F: push ecx */ 10765 PUSH32(esp, edi); /* 0x25099340: push edi */ 10766 ecx = 0x252383A8u; /* 0x25099341: mov ecx, 0x252383a8 */ 10767 RECOMP_ICALL(MEM32(0x251515C0)); /* 0x25099346: call dword ptr [0x251515c0] */ 10768 RECOMP_FLAGS_IN(); 10769 /* test eax, eax */ /* 0x2509934C: test eax, eax */ 10770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10771 _cf = 0; 10772 _flag_k = FK_TEST; 10773 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099381; /* 0x2509934E: jne 0x25099381 */ 10774 L_25099350: 10775 eax = MEM32(esi + 0x34); /* 0x25099350: mov eax, dword ptr [esi + 0x34] */ 10776 /* test LO8(eax), 1 */ /* 0x25099353: test al, 1 */ 10777 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10778 _cf = 0; 10779 _flag_k = FK_NARROW(FK_TEST, 24); 10780 if (TEST_Z(_flag_a, _flag_b)) goto L_2509938A; /* 0x25099355: je 0x2509938a */ 10781 L_25099357: 10782 _flag_a = (uint32_t)((eax ^ 1)); _flag_b = (uint32_t)((eax ^ 1)); 10783 eax = eax ^ 1; /* 0x25099357: xor eax, 1 */ 10784 _cf = 0; 10785 _flag_k = FK_TEST; 10786 MEM32(esi + 0x34) = eax; /* 0x2509935A: mov dword ptr [esi + 0x34], eax */ 10787 eax = 0x000F6951u; /* 0x2509935D: mov eax, 0xf6951 */ 10788 MEM32(edi) = eax; /* 0x25099362: mov dword ptr [edi], eax */ 10789 MEM32(edi + 0x4) = ebx; /* 0x25099364: mov dword ptr [edi + 4], ebx */ 10790 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x25099367: call dword ptr [0x251515d8] */ 10791 RECOMP_FLAGS_IN(); 10792 ecx = MEM32(ebp + 0x1C); /* 0x2509936D: mov ecx, dword ptr [ebp + 0x1c] */ 10793 edx = MEM32(eax); /* 0x25099370: mov edx, dword ptr [eax] */ 10794 PUSH32(esp, ecx); /* 0x25099372: push ecx */ 10795 ecx = MEM32(ebp + 0x10); /* 0x25099373: mov ecx, dword ptr [ebp + 0x10] */ 10796 PUSH32(esp, ecx); /* 0x25099376: push ecx */ 10797 PUSH32(esp, edi); /* 0x25099377: push edi */ 10798 ecx = eax; /* 0x25099378: mov ecx, eax */ 10799 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509937A: call dword ptr [edx + 0x24] */ 10800 RECOMP_FLAGS_IN(); 10801 /* test eax, eax */ /* 0x2509937D: test eax, eax */ 10802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10803 _cf = 0; 10804 _flag_k = FK_TEST; 10805 if (TEST_Z(_flag_a, _flag_b)) goto L_2509938A; /* 0x2509937F: je 0x2509938a */ 10806 L_25099381: 10807 PUSH32(esp, eax); /* 0x25099381: push eax */ 10808 PUSH32(esp, edi); /* 0x25099382: push edi */ 10809 ecx = esi; /* 0x25099383: mov ecx, esi */ 10810 RECOMP_ICALL(0x2509BD10u); /* 0x25099385: call 0x2509bd10 */ /* not lifted */ 10811 RECOMP_FLAGS_IN(); 10812 L_2509938A: 10813 ecx = MEM32(ebp + (-0xC)); /* 0x2509938A: mov ecx, dword ptr [ebp - 0xc] */ 10814 edi = POP32_VAL(esp); /* 0x2509938D: pop edi */ 10815 eax = esi; /* 0x2509938E: mov eax, esi */ 10816 esi = POP32_VAL(esp); /* 0x25099390: pop esi */ 10817 ebx = POP32_VAL(esp); /* 0x25099391: pop ebx */ 10818 MEM32(FS_BASE + (0)) = ecx; /* 0x25099392: mov dword ptr fs:[0], ecx */ 10819 esp = ebp; /* 0x25099399: mov esp, ebp */ 10820 ebp = POP32_VAL(esp); /* 0x2509939B: pop ebp */ 10821 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x2509939C: ret 0x18 */ 10822 RECOMP_REGS_OUT(); 10823 } 10824 10825 void sub_250993A0(void) { 10826 int _fpu_cmp = 0; 10827 uint32_t _cf = 0; 10828 int _df = 1; 10829 uint32_t _flag_k = FK_NONE; 10830 uint32_t _flag_a = 0, _flag_b = 0; 10831 uint32_t _itail_tgt = 0; 10832 RECOMP_REGS_LOCALS 10833 RECOMP_ENTER(0x250993A0u); 10834 10835 L_250993A0: 10836 PUSH32(esp, ebp); /* 0x250993A0: push ebp */ 10837 ebp = esp; /* 0x250993A1: mov ebp, esp */ 10838 PUSH32(esp, ebx); /* 0x250993A3: push ebx */ 10839 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x250993A4: mov bl, byte ptr [ebp + 8] */ 10840 /* test LO8(ebx), 2 */ /* 0x250993A7: test bl, 2 */ 10841 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 10842 _cf = 0; 10843 _flag_k = FK_NARROW(FK_TEST, 24); 10844 PUSH32(esp, esi); /* 0x250993AA: push esi */ 10845 esi = ecx; /* 0x250993AB: mov esi, ecx */ 10846 if (TEST_Z(_flag_a, _flag_b)) goto L_250993DB; /* 0x250993AD: je 0x250993db */ 10847 L_250993AF: 10848 eax = MEM32(esi + (-0x4)); /* 0x250993AF: mov eax, dword ptr [esi - 4] */ 10849 PUSH32(esp, edi); /* 0x250993B2: push edi */ 10850 PUSH32(esp, 0x250999D0u); /* 0x250993B3: push 0x250999d0 */ 10851 edi = esi + (-0x4); /* 0x250993B8: lea edi, [esi - 4] */ 10852 PUSH32(esp, eax); /* 0x250993BB: push eax */ 10853 PUSH32(esp, 0x5Cu); /* 0x250993BC: push 0x5c */ 10854 PUSH32(esp, esi); /* 0x250993BE: push esi */ 10855 RECOMP_ICALL(0x25137F92u); /* 0x250993BF: call 0x25137f92 */ /* not lifted */ 10856 RECOMP_FLAGS_IN(); 10857 /* test LO8(ebx), 1 */ /* 0x250993C4: test bl, 1 */ 10858 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10859 _cf = 0; 10860 _flag_k = FK_NARROW(FK_TEST, 24); 10861 if (TEST_Z(_flag_a, _flag_b)) goto L_250993D2; /* 0x250993C7: je 0x250993d2 */ 10862 L_250993C9: 10863 PUSH32(esp, edi); /* 0x250993C9: push edi */ 10864 RECOMP_ICALL(0x25137EECu); /* 0x250993CA: call 0x25137eec */ /* not lifted */ 10865 RECOMP_FLAGS_IN(); 10866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10868 esp = esp + 4; /* 0x250993CF: add esp, 4 */ 10869 _flag_k = FK_ADD; 10870 L_250993D2: 10871 eax = edi; /* 0x250993D2: mov eax, edi */ 10872 edi = POP32_VAL(esp); /* 0x250993D4: pop edi */ 10873 esi = POP32_VAL(esp); /* 0x250993D5: pop esi */ 10874 ebx = POP32_VAL(esp); /* 0x250993D6: pop ebx */ 10875 ebp = POP32_VAL(esp); /* 0x250993D7: pop ebp */ 10876 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250993D8: ret 4 */ 10877 L_250993DB: 10878 ecx = esi; /* 0x250993DB: mov ecx, esi */ 10879 RECOMP_ICALL(0x250999D0u); /* 0x250993DD: call 0x250999d0 */ /* not lifted */ 10880 RECOMP_FLAGS_IN(); 10881 /* test LO8(ebx), 1 */ /* 0x250993E2: test bl, 1 */ 10882 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 10883 _cf = 0; 10884 _flag_k = FK_NARROW(FK_TEST, 24); 10885 if (TEST_Z(_flag_a, _flag_b)) goto L_250993F0; /* 0x250993E5: je 0x250993f0 */ 10886 L_250993E7: 10887 PUSH32(esp, esi); /* 0x250993E7: push esi */ 10888 RECOMP_ICALL(0x25137EECu); /* 0x250993E8: call 0x25137eec */ /* not lifted */ 10889 RECOMP_FLAGS_IN(); 10890 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10892 esp = esp + 4; /* 0x250993ED: add esp, 4 */ 10893 _flag_k = FK_ADD; 10894 L_250993F0: 10895 eax = esi; /* 0x250993F0: mov eax, esi */ 10896 esi = POP32_VAL(esp); /* 0x250993F2: pop esi */ 10897 ebx = POP32_VAL(esp); /* 0x250993F3: pop ebx */ 10898 ebp = POP32_VAL(esp); /* 0x250993F4: pop ebp */ 10899 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250993F5: ret 4 */ 10900 RECOMP_REGS_OUT(); 10901 } 10902 10903 void sub_25099400(void) { 10904 int _fpu_cmp = 0; 10905 uint32_t _cf = 0; 10906 int _df = 1; 10907 uint32_t _flag_k = FK_NONE; 10908 uint32_t _flag_a = 0, _flag_b = 0; 10909 uint32_t _itail_tgt = 0; 10910 RECOMP_REGS_LOCALS 10911 RECOMP_ENTER(0x25099400u); 10912 10913 L_25099400: 10914 PUSH32(esp, ebp); /* 0x25099400: push ebp */ 10915 ebp = esp; /* 0x25099401: mov ebp, esp */ 10916 PUSH32(esp, 0xFFFFFFFFu); /* 0x25099403: push -1 */ 10917 PUSH32(esp, 0x25149884u); /* 0x25099405: push 0x25149884 */ 10918 eax = MEM32(FS_BASE + (0)); /* 0x2509940A: mov eax, dword ptr fs:[0] */ 10919 PUSH32(esp, eax); /* 0x25099410: push eax */ 10920 MEM32(FS_BASE + (0)) = esp; /* 0x25099411: mov dword ptr fs:[0], esp */ 10921 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 10922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10923 esp = esp - 0x18u; /* 0x25099418: sub esp, 0x18 */ 10924 _flag_k = FK_CMP; 10925 PUSH32(esp, ebx); /* 0x2509941B: push ebx */ 10926 PUSH32(esp, esi); /* 0x2509941C: push esi */ 10927 esi = ecx; /* 0x2509941D: mov esi, ecx */ 10928 PUSH32(esp, edi); /* 0x2509941F: push edi */ 10929 MEM32(ebp + (-0x10)) = esi; /* 0x25099420: mov dword ptr [ebp - 0x10], esi */ 10930 MEM32(esi + 0x8) = 0x25155AA4u; /* 0x25099423: mov dword ptr [esi + 8], 0x25155aa4 */ 10931 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10932 ebx = 0; /* 0x2509942A: xor ebx, ebx */ 10933 _cf = 0; 10934 _flag_k = FK_TEST; 10935 MEM32(esi + 0x14) = ebx; /* 0x2509942C: mov dword ptr [esi + 0x14], ebx */ 10936 MEM32(esi + 0x18) = ebx; /* 0x2509942F: mov dword ptr [esi + 0x18], ebx */ 10937 MEM32(ebp + (-0x4)) = ebx; /* 0x25099432: mov dword ptr [ebp - 4], ebx */ 10938 MEM32(esi + 0x50) = ebx; /* 0x25099435: mov dword ptr [esi + 0x50], ebx */ 10939 MEM32(esi + 0x54) = ebx; /* 0x25099438: mov dword ptr [esi + 0x54], ebx */ 10940 MEM32(esi) = 0x251560F0u; /* 0x2509943B: mov dword ptr [esi], 0x251560f0 */ 10941 MEM32(esi + 0x8) = 0x251560DCu; /* 0x25099441: mov dword ptr [esi + 8], 0x251560dc */ 10942 RECOMP_ICALL(0x25099580u); /* 0x25099448: call 0x25099580 */ /* not lifted */ 10943 RECOMP_FLAGS_IN(); 10944 ecx = esi; /* 0x2509944D: mov ecx, esi */ 10945 RECOMP_ICALL(0x25096DC0u); /* 0x2509944F: call 0x25096dc0 */ /* not lifted */ 10946 RECOMP_FLAGS_IN(); 10947 PUSH32(esp, 0x1ACu); /* 0x25099454: push 0x1ac */ 10948 RECOMP_ICALL(0x251380D0u); /* 0x25099459: call 0x251380d0 */ /* not lifted */ 10949 RECOMP_FLAGS_IN(); 10950 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10952 esp = esp + 4; /* 0x2509945E: add esp, 4 */ 10953 _flag_k = FK_ADD; 10954 MEM32(ebp + (-0x14)) = eax; /* 0x25099461: mov dword ptr [ebp - 0x14], eax */ 10955 /* cmp eax, ebx */ /* 0x25099464: cmp eax, ebx */ 10956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10958 _flag_k = FK_CMP; 10959 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x25099466: mov byte ptr [ebp - 4], 1 */ 10960 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099487; /* 0x2509946A: je 0x25099487 */ 10961 L_2509946C: 10962 ecx = MEM32(ebp + 0xC); /* 0x2509946C: mov ecx, dword ptr [ebp + 0xc] */ 10963 edx = MEM32(ebp + 0x8); /* 0x2509946F: mov edx, dword ptr [ebp + 8] */ 10964 PUSH32(esp, ebx); /* 0x25099472: push ebx */ 10965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 10966 ecx = ecx & 0xFFu; /* 0x25099473: and ecx, 0xff */ 10967 _cf = 0; 10968 _flag_k = FK_TEST; 10969 PUSH32(esp, ecx); /* 0x25099479: push ecx */ 10970 PUSH32(esp, edx); /* 0x2509947A: push edx */ 10971 PUSH32(esp, ebx); /* 0x2509947B: push ebx */ 10972 ecx = eax; /* 0x2509947C: mov ecx, eax */ 10973 RECOMP_ICALL(0x25104D00u); /* 0x2509947E: call 0x25104d00 */ /* not lifted */ 10974 RECOMP_FLAGS_IN(); 10975 edi = eax; /* 0x25099483: mov edi, eax */ 10976 goto L_25099489; /* 0x25099485: jmp 0x25099489 */ 10977 L_25099487: 10978 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10979 edi = 0; /* 0x25099487: xor edi, edi */ 10980 _cf = 0; 10981 _flag_k = FK_TEST; 10982 L_25099489: 10983 eax = MEM32(ebp + 0x10); /* 0x25099489: mov eax, dword ptr [ebp + 0x10] */ 10984 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 10985 eax = eax & 0xFFFFu; /* 0x2509948C: and eax, 0xffff */ 10986 _cf = 0; 10987 _flag_k = FK_TEST; 10988 MEM32(ebp + 0xC) = eax; /* 0x25099491: mov dword ptr [ebp + 0xc], eax */ 10989 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x25099494: fild dword ptr [ebp + 0xc] */ 10990 ecx = MEM32(ebp + 0x14); /* 0x25099497: mov ecx, dword ptr [ebp + 0x14] */ 10991 edx = MEM32(ebp + 0x18); /* 0x2509949A: mov edx, dword ptr [ebp + 0x18] */ 10992 eax = MEM32(ebp + 0x1C); /* 0x2509949D: mov eax, dword ptr [ebp + 0x1c] */ 10993 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x184) = _v; } /* 0x250994A0: fstp dword ptr [edi + 0x184] */ 10994 MEM32(edi + 0x18C) = ecx; /* 0x250994A6: mov dword ptr [edi + 0x18c], ecx */ 10995 fp_push(*(double*)ADDR(0x25155880)); /* 0x250994AC: fld qword ptr [0x25155880] */ 10996 MEM32(edi + 0x190) = edx; /* 0x250994B2: mov dword ptr [edi + 0x190], edx */ 10997 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x250994B8: fsin */ 10998 MEM32(edi + 0x194) = eax; /* 0x250994BA: mov dword ptr [edi + 0x194], eax */ 10999 ecx = edi + 0x84; /* 0x250994C0: lea ecx, [edi + 0x84] */ 11000 PUSH32(esp, 1); /* 0x250994C6: push 1 */ 11001 PUSH32(esp, 2); /* 0x250994C8: push 2 */ 11002 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x250994CA: mov byte ptr [ebp - 4], bl */ 11003 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x250994CD: fstp dword ptr [ebp - 0x24] */ 11004 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x250994D0: fld dword ptr [0x2515177c] */ 11005 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x250994D6: fst dword ptr [ebp - 0x20] */ 11006 edx = MEM32(ebp + (-0x24)); /* 0x250994D9: mov edx, dword ptr [ebp - 0x24] */ 11007 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x250994DC: fstp dword ptr [ebp - 0x1c] */ 11008 MEM32(ecx) = edx; /* 0x250994DF: mov dword ptr [ecx], edx */ 11009 fp_push(*(double*)ADDR(0x25155880)); /* 0x250994E1: fld qword ptr [0x25155880] */ 11010 eax = MEM32(ebp + (-0x20)); /* 0x250994E7: mov eax, dword ptr [ebp - 0x20] */ 11011 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x250994EA: fcos */ 11012 edx = MEM32(ebp + (-0x1C)); /* 0x250994EC: mov edx, dword ptr [ebp - 0x1c] */ 11013 MEM32(ecx + 0x4) = eax; /* 0x250994EF: mov dword ptr [ecx + 4], eax */ 11014 MEM32(ecx + 0x8) = edx; /* 0x250994F2: mov dword ptr [ecx + 8], edx */ 11015 edx = MEM32(edi); /* 0x250994F5: mov edx, dword ptr [edi] */ 11016 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x250994F7: fstp dword ptr [ebp - 0x18] */ 11017 eax = MEM32(ebp + (-0x18)); /* 0x250994FA: mov eax, dword ptr [ebp - 0x18] */ 11018 MEM32(ecx + 0xC) = eax; /* 0x250994FD: mov dword ptr [ecx + 0xc], eax */ 11019 ecx = edi; /* 0x25099500: mov ecx, edi */ 11020 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x25099502: call dword ptr [edx + 0x2c] */ 11021 RECOMP_FLAGS_IN(); 11022 fp_push(*(float*)&MEM32(ebp + 0x20)); /* 0x25099505: fld dword ptr [ebp + 0x20] */ 11023 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25099508: fcomp dword ptr [0x2515177c] */ 11024 fp_pop(); 11025 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509950E: fnstsw ax */ 11026 /* test HI8(eax), 0x40u */ /* 0x25099510: test ah, 0x40 */ 11027 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 11028 _cf = 0; 11029 _flag_k = FK_NARROW(FK_TEST, 24); 11030 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099534; /* 0x25099513: jne 0x25099534 */ 11031 L_25099515: 11032 fp_push(*(float*)&MEM32(ebp + 0x24)); /* 0x25099515: fld dword ptr [ebp + 0x24] */ 11033 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x25099518: fcomp dword ptr [0x2515177c] */ 11034 fp_pop(); 11035 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509951E: fnstsw ax */ 11036 /* test HI8(eax), 0x40u */ /* 0x25099520: test ah, 0x40 */ 11037 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 11038 _cf = 0; 11039 _flag_k = FK_NARROW(FK_TEST, 24); 11040 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099534; /* 0x25099523: jne 0x25099534 */ 11041 L_25099525: 11042 eax = MEM32(ebp + 0x24); /* 0x25099525: mov eax, dword ptr [ebp + 0x24] */ 11043 ecx = MEM32(ebp + 0x20); /* 0x25099528: mov ecx, dword ptr [ebp + 0x20] */ 11044 PUSH32(esp, eax); /* 0x2509952B: push eax */ 11045 PUSH32(esp, ecx); /* 0x2509952C: push ecx */ 11046 ecx = edi; /* 0x2509952D: mov ecx, edi */ 11047 RECOMP_ICALL(0x25105370u); /* 0x2509952F: call 0x25105370 */ /* not lifted */ 11048 RECOMP_FLAGS_IN(); 11049 L_25099534: 11050 ecx = MEM32(ebp + (-0xC)); /* 0x25099534: mov ecx, dword ptr [ebp - 0xc] */ 11051 MEM32(esi + 0x10) = edi; /* 0x25099537: mov dword ptr [esi + 0x10], edi */ 11052 edi = POP32_VAL(esp); /* 0x2509953A: pop edi */ 11053 eax = esi; /* 0x2509953B: mov eax, esi */ 11054 esi = POP32_VAL(esp); /* 0x2509953D: pop esi */ 11055 ebx = POP32_VAL(esp); /* 0x2509953E: pop ebx */ 11056 MEM32(FS_BASE + (0)) = ecx; /* 0x2509953F: mov dword ptr fs:[0], ecx */ 11057 esp = ebp; /* 0x25099546: mov esp, ebp */ 11058 ebp = POP32_VAL(esp); /* 0x25099548: pop ebp */ 11059 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x25099549: ret 0x20 */ 11060 RECOMP_REGS_OUT(); 11061 } 11062 11063 void sub_25099550(void) { 11064 int _fpu_cmp = 0; 11065 uint32_t _cf = 0; 11066 int _df = 1; 11067 uint32_t _flag_k = FK_NONE; 11068 uint32_t _flag_a = 0, _flag_b = 0; 11069 uint32_t _itail_tgt = 0; 11070 RECOMP_REGS_LOCALS 11071 RECOMP_ENTER(0x25099550u); 11072 11073 L_25099550: 11074 PUSH32(esp, esi); /* 0x25099550: push esi */ 11075 esi = ecx; /* 0x25099551: mov esi, ecx */ 11076 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x25099553: mov al, byte ptr [esi + 0xc] */ 11077 /* test LO8(eax), LO8(eax) */ /* 0x25099556: test al, al */ 11078 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11079 _cf = 0; 11080 _flag_k = FK_NARROW(FK_TEST, 24); 11081 if (TEST_Z(_flag_a, _flag_b)) goto L_25099571; /* 0x25099558: je 0x25099571 */ 11082 L_2509955A: 11083 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509955A: call dword ptr [0x251515d8] */ 11084 RECOMP_FLAGS_IN(); 11085 ecx = MEM32(esi + 0x38); /* 0x25099560: mov ecx, dword ptr [esi + 0x38] */ 11086 edx = MEM32(eax); /* 0x25099563: mov edx, dword ptr [eax] */ 11087 PUSH32(esp, 3); /* 0x25099565: push 3 */ 11088 PUSH32(esp, ecx); /* 0x25099567: push ecx */ 11089 ecx = esi + 0x14; /* 0x25099568: lea ecx, [esi + 0x14] */ 11090 PUSH32(esp, ecx); /* 0x2509956B: push ecx */ 11091 ecx = eax; /* 0x2509956C: mov ecx, eax */ 11092 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509956E: call dword ptr [edx + 0x24] */ 11093 RECOMP_FLAGS_IN(); 11094 L_25099571: 11095 eax = MEM32(esi + 0x10); /* 0x25099571: mov eax, dword ptr [esi + 0x10] */ 11096 /* test eax, eax */ /* 0x25099574: test eax, eax */ 11097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11098 _cf = 0; 11099 _flag_k = FK_TEST; 11100 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x25099576: setne al */ 11101 esi = POP32_VAL(esp); /* 0x25099579: pop esi */ 11102 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509957A: ret */ 11103 RECOMP_REGS_OUT(); 11104 } 11105 11106 void sub_25099580(void) { 11107 int _fpu_cmp = 0; 11108 uint32_t _cf = 0; 11109 int _df = 1; 11110 uint32_t _flag_k = FK_NONE; 11111 uint32_t _flag_a = 0, _flag_b = 0; 11112 uint32_t _itail_tgt = 0; 11113 RECOMP_REGS_LOCALS 11114 RECOMP_ENTER(0x25099580u); 11115 11116 L_25099580: 11117 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11118 eax = 0; /* 0x25099580: xor eax, eax */ 11119 _cf = 0; 11120 _flag_k = FK_TEST; 11121 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11122 edx = 0; /* 0x25099582: xor edx, edx */ 11123 _cf = 0; 11124 _flag_k = FK_TEST; 11125 MEM32(ecx + 0x14) = eax; /* 0x25099584: mov dword ptr [ecx + 0x14], eax */ 11126 MEM8(ecx + 0xC) = (uint8_t)(LO8(eax)); /* 0x25099587: mov byte ptr [ecx + 0xc], al */ 11127 MEM32(ecx + 0x40) = eax; /* 0x2509958A: mov dword ptr [ecx + 0x40], eax */ 11128 MEM32(ecx + 0x3C) = eax; /* 0x2509958D: mov dword ptr [ecx + 0x3c], eax */ 11129 MEM32(ecx + 0x10) = eax; /* 0x25099590: mov dword ptr [ecx + 0x10], eax */ 11130 MEM32(ecx + 0x18) = edx; /* 0x25099593: mov dword ptr [ecx + 0x18], edx */ 11131 MEM8(ecx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x25099596: mov byte ptr [ecx + 0x1c], al */ 11132 MEM32(ecx + 0x20) = eax; /* 0x25099599: mov dword ptr [ecx + 0x20], eax */ 11133 MEM32(ecx + 0x24) = eax; /* 0x2509959C: mov dword ptr [ecx + 0x24], eax */ 11134 MEM32(ecx + 0x28) = 0x00FFFFFFu; /* 0x2509959F: mov dword ptr [ecx + 0x28], 0xffffff */ 11135 MEM32(ecx + 0x2C) = eax; /* 0x250995A6: mov dword ptr [ecx + 0x2c], eax */ 11136 MEM32(ecx + 0x34) = eax; /* 0x250995A9: mov dword ptr [ecx + 0x34], eax */ 11137 MEM32(ecx + 0x44) = eax; /* 0x250995AC: mov dword ptr [ecx + 0x44], eax */ 11138 MEM32(ecx + 0x48) = eax; /* 0x250995AF: mov dword ptr [ecx + 0x48], eax */ 11139 MEM32(ecx + 0x4C) = eax; /* 0x250995B2: mov dword ptr [ecx + 0x4c], eax */ 11140 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250995B5: ret */ 11141 RECOMP_REGS_OUT(); 11142 } 11143 11144 void sub_250995C0(void) { 11145 int _fpu_cmp = 0; 11146 uint32_t _cf = 0; 11147 int _df = 1; 11148 uint32_t _flag_k = FK_NONE; 11149 uint32_t _flag_a = 0, _flag_b = 0; 11150 uint32_t _itail_tgt = 0; 11151 RECOMP_REGS_LOCALS 11152 RECOMP_ENTER(0x250995C0u); 11153 11154 L_250995C0: 11155 PUSH32(esp, ebp); /* 0x250995C0: push ebp */ 11156 ebp = esp; /* 0x250995C1: mov ebp, esp */ 11157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 11158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11159 esp = esp - 0x28u; /* 0x250995C3: sub esp, 0x28 */ 11160 _flag_k = FK_CMP; 11161 PUSH32(esp, ebx); /* 0x250995C6: push ebx */ 11162 ebx = ecx; /* 0x250995C7: mov ebx, ecx */ 11163 eax = MEM32(ebx + 0x10); /* 0x250995C9: mov eax, dword ptr [ebx + 0x10] */ 11164 /* test eax, eax */ /* 0x250995CC: test eax, eax */ 11165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11166 _cf = 0; 11167 _flag_k = FK_TEST; 11168 PUSH32(esp, esi); /* 0x250995CE: push esi */ 11169 PUSH32(esp, edi); /* 0x250995CF: push edi */ 11170 if (TEST_Z(_flag_a, _flag_b)) goto L_25099774; /* 0x250995D0: je 0x25099774 */ 11171 L_250995D6: 11172 PUSH32(esp, 0); /* 0x250995D6: push 0 */ 11173 PUSH32(esp, 0x251B2598u); /* 0x250995D8: push 0x251b2598 */ 11174 PUSH32(esp, 0x251B2598u); /* 0x250995DD: push 0x251b2598 */ 11175 PUSH32(esp, 0); /* 0x250995E2: push 0 */ 11176 PUSH32(esp, eax); /* 0x250995E4: push eax */ 11177 MEM32(ebp + (-0x8)) = eax; /* 0x250995E5: mov dword ptr [ebp - 8], eax */ 11178 MEM32(ebp + (-0x4)) = eax; /* 0x250995E8: mov dword ptr [ebp - 4], eax */ 11179 RECOMP_ICALL(0x251381ACu); /* 0x250995EB: call 0x251381ac */ /* not lifted */ 11180 RECOMP_FLAGS_IN(); 11181 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11183 esp = esp + 0x14u; /* 0x250995F0: add esp, 0x14 */ 11184 _flag_k = FK_ADD; 11185 /* test eax, eax */ /* 0x250995F3: test eax, eax */ 11186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11187 _cf = 0; 11188 _flag_k = FK_TEST; 11189 if (TEST_NZ(_flag_a, _flag_b)) goto L_250995FF; /* 0x250995F5: jne 0x250995ff */ 11190 L_250995F7: 11191 ecx = ebp + (-0x8); /* 0x250995F7: lea ecx, [ebp - 8] */ 11192 RECOMP_ICALL(0x2509DA50u); /* 0x250995FA: call 0x2509da50 */ /* not lifted */ 11193 RECOMP_FLAGS_IN(); 11194 L_250995FF: 11195 eax = MEM32(ebp + (-0x8)); /* 0x250995FF: mov eax, dword ptr [ebp - 8] */ 11196 ecx = MEM32(ebp + (-0x4)); /* 0x25099602: mov ecx, dword ptr [ebp - 4] */ 11197 PUSH32(esp, 0); /* 0x25099605: push 0 */ 11198 PUSH32(esp, 0x251B2970u); /* 0x25099607: push 0x251b2970 */ 11199 PUSH32(esp, 0x251B2970u); /* 0x2509960C: push 0x251b2970 */ 11200 PUSH32(esp, 0); /* 0x25099611: push 0 */ 11201 PUSH32(esp, eax); /* 0x25099613: push eax */ 11202 MEM32(ebp + (-0x10)) = eax; /* 0x25099614: mov dword ptr [ebp - 0x10], eax */ 11203 MEM32(ebp + (-0xC)) = ecx; /* 0x25099617: mov dword ptr [ebp - 0xc], ecx */ 11204 RECOMP_ICALL(0x251381ACu); /* 0x2509961A: call 0x251381ac */ /* not lifted */ 11205 RECOMP_FLAGS_IN(); 11206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11208 esp = esp + 0x14u; /* 0x2509961F: add esp, 0x14 */ 11209 _flag_k = FK_ADD; 11210 /* test eax, eax */ /* 0x25099622: test eax, eax */ 11211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11212 _cf = 0; 11213 _flag_k = FK_TEST; 11214 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509965F; /* 0x25099624: jne 0x2509965f */ 11215 L_25099626: 11216 eax = MEM32(ebp + (-0x10)); /* 0x25099626: mov eax, dword ptr [ebp - 0x10] */ 11217 /* test eax, eax */ /* 0x25099629: test eax, eax */ 11218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11219 _cf = 0; 11220 _flag_k = FK_TEST; 11221 if (TEST_Z(_flag_a, _flag_b)) goto L_2509965F; /* 0x2509962B: je 0x2509965f */ 11222 L_2509962D: 11223 edx = MEM32(ebp + (-0xC)); /* 0x2509962D: mov edx, dword ptr [ebp - 0xc] */ 11224 PUSH32(esp, edx); /* 0x25099630: push edx */ 11225 eax = ebp + (-0x10); /* 0x25099631: lea eax, [ebp - 0x10] */ 11226 PUSH32(esp, eax); /* 0x25099634: push eax */ 11227 RECOMP_ICALL(0x250E3530u); /* 0x25099635: call 0x250e3530 */ /* not lifted */ 11228 RECOMP_FLAGS_IN(); 11229 ecx = MEM32(ebp + (-0x10)); /* 0x2509963A: mov ecx, dword ptr [ebp - 0x10] */ 11230 PUSH32(esp, 0); /* 0x2509963D: push 0 */ 11231 PUSH32(esp, 0x251B2970u); /* 0x2509963F: push 0x251b2970 */ 11232 PUSH32(esp, 0x251B2970u); /* 0x25099644: push 0x251b2970 */ 11233 PUSH32(esp, 0); /* 0x25099649: push 0 */ 11234 PUSH32(esp, ecx); /* 0x2509964B: push ecx */ 11235 RECOMP_ICALL(0x251381ACu); /* 0x2509964C: call 0x251381ac */ /* not lifted */ 11236 RECOMP_FLAGS_IN(); 11237 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 11238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11239 esp = esp + 0x1Cu; /* 0x25099651: add esp, 0x1c */ 11240 _flag_k = FK_ADD; 11241 /* test eax, eax */ /* 0x25099654: test eax, eax */ 11242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11243 _cf = 0; 11244 _flag_k = FK_TEST; 11245 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509965F; /* 0x25099656: jne 0x2509965f */ 11246 L_25099658: 11247 eax = MEM32(ebp + (-0x10)); /* 0x25099658: mov eax, dword ptr [ebp - 0x10] */ 11248 /* test eax, eax */ /* 0x2509965B: test eax, eax */ 11249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11250 _cf = 0; 11251 _flag_k = FK_TEST; 11252 RECOMP_BACKEDGE(); 11253 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509962D; /* 0x2509965D: jne 0x2509962d */ 11254 L_2509965F: 11255 esi = MEM32(0x251512FC); /* 0x2509965F: mov esi, dword ptr [0x251512fc] */ 11256 L_25099665: 11257 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11258 eax = 0; /* 0x25099665: xor eax, eax */ 11259 _cf = 0; 11260 _flag_k = FK_TEST; 11261 PUSH32(esp, eax); /* 0x25099667: push eax */ 11262 PUSH32(esp, 0x251B2598u); /* 0x25099668: push 0x251b2598 */ 11263 PUSH32(esp, 0x251B2598u); /* 0x2509966D: push 0x251b2598 */ 11264 PUSH32(esp, eax); /* 0x25099672: push eax */ 11265 PUSH32(esp, eax); /* 0x25099673: push eax */ 11266 MEM32(ebp + (-0x18)) = eax; /* 0x25099674: mov dword ptr [ebp - 0x18], eax */ 11267 MEM32(ebp + (-0x14)) = eax; /* 0x25099677: mov dword ptr [ebp - 0x14], eax */ 11268 RECOMP_ICALL(0x251381ACu); /* 0x2509967A: call 0x251381ac */ /* not lifted */ 11269 RECOMP_FLAGS_IN(); 11270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11272 esp = esp + 0x14u; /* 0x2509967F: add esp, 0x14 */ 11273 _flag_k = FK_ADD; 11274 /* test eax, eax */ /* 0x25099682: test eax, eax */ 11275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11276 _cf = 0; 11277 _flag_k = FK_TEST; 11278 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509968E; /* 0x25099684: jne 0x2509968e */ 11279 L_25099686: 11280 ecx = ebp + (-0x18); /* 0x25099686: lea ecx, [ebp - 0x18] */ 11281 RECOMP_ICALL(0x2509DA50u); /* 0x25099689: call 0x2509da50 */ /* not lifted */ 11282 RECOMP_FLAGS_IN(); 11283 L_2509968E: 11284 eax = MEM32(ebp + (-0x10)); /* 0x2509968E: mov eax, dword ptr [ebp - 0x10] */ 11285 /* cmp eax, MEM32(ebp + (-0x18)) */ /* 0x25099691: cmp eax, dword ptr [ebp - 0x18] */ 11286 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 11287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11288 _flag_k = FK_CMP; 11289 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099774; /* 0x25099694: je 0x25099774 */ 11290 L_2509969A: 11291 PUSH32(esp, 0x251B4078u); /* 0x2509969A: push 0x251b4078 */ 11292 ecx = 0x251B4078u; /* 0x2509969F: mov ecx, 0x251b4078 */ 11293 edi = eax; /* 0x250996A4: mov edi, eax */ 11294 RECOMP_ICALL(esi); /* 0x250996A6: call esi */ 11295 RECOMP_FLAGS_IN(); 11296 /* test eax, eax */ /* 0x250996A8: test eax, eax */ 11297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11298 _cf = 0; 11299 _flag_k = FK_TEST; 11300 if (TEST_NZ(_flag_a, _flag_b)) goto L_250996BC; /* 0x250996AA: jne 0x250996bc */ 11301 L_250996AC: 11302 PUSH32(esp, 0x251B4078u); /* 0x250996AC: push 0x251b4078 */ 11303 ecx = 0x251B4050u; /* 0x250996B1: mov ecx, 0x251b4050 */ 11304 RECOMP_ICALL(esi); /* 0x250996B6: call esi */ 11305 RECOMP_FLAGS_IN(); 11306 /* test eax, eax */ /* 0x250996B8: test eax, eax */ 11307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11308 _cf = 0; 11309 _flag_k = FK_TEST; 11310 if (TEST_Z(_flag_a, _flag_b)) goto L_250996ED; /* 0x250996BA: je 0x250996ed */ 11311 L_250996BC: 11312 PUSH32(esp, 0); /* 0x250996BC: push 0 */ 11313 PUSH32(esp, 0x251B4050u); /* 0x250996BE: push 0x251b4050 */ 11314 PUSH32(esp, 0x251B4C30u); /* 0x250996C3: push 0x251b4c30 */ 11315 PUSH32(esp, 0); /* 0x250996C8: push 0 */ 11316 PUSH32(esp, ebx); /* 0x250996CA: push ebx */ 11317 RECOMP_ICALL(0x251381ACu); /* 0x250996CB: call 0x251381ac */ /* not lifted */ 11318 RECOMP_FLAGS_IN(); 11319 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11321 esp = esp + 0x14u; /* 0x250996D0: add esp, 0x14 */ 11322 _flag_k = FK_ADD; 11323 /* test eax, eax */ /* 0x250996D3: test eax, eax */ 11324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11325 _cf = 0; 11326 _flag_k = FK_TEST; 11327 if (TEST_Z(_flag_a, _flag_b)) goto L_250996ED; /* 0x250996D5: je 0x250996ed */ 11328 L_250996D7: 11329 edx = ebp + (-0x4); /* 0x250996D7: lea edx, [ebp - 4] */ 11330 MEM32(ebp + (-0x4)) = eax; /* 0x250996DA: mov dword ptr [ebp - 4], eax */ 11331 PUSH32(esp, edx); /* 0x250996DD: push edx */ 11332 eax = ebp + (-0x20); /* 0x250996DE: lea eax, [ebp - 0x20] */ 11333 PUSH32(esp, eax); /* 0x250996E1: push eax */ 11334 ecx = edi + 0x13C; /* 0x250996E2: lea ecx, [edi + 0x13c] */ 11335 RECOMP_ICALL(0x25086360u); /* 0x250996E8: call 0x25086360 */ /* not lifted */ 11336 RECOMP_FLAGS_IN(); 11337 L_250996ED: 11338 PUSH32(esp, 0x251B4078u); /* 0x250996ED: push 0x251b4078 */ 11339 ecx = 0x251B4078u; /* 0x250996F2: mov ecx, 0x251b4078 */ 11340 RECOMP_ICALL(esi); /* 0x250996F7: call esi */ 11341 RECOMP_FLAGS_IN(); 11342 /* test eax, eax */ /* 0x250996F9: test eax, eax */ 11343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11344 _cf = 0; 11345 _flag_k = FK_TEST; 11346 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509970D; /* 0x250996FB: jne 0x2509970d */ 11347 L_250996FD: 11348 PUSH32(esp, 0x251B4078u); /* 0x250996FD: push 0x251b4078 */ 11349 ecx = 0x251B4008u; /* 0x25099702: mov ecx, 0x251b4008 */ 11350 RECOMP_ICALL(esi); /* 0x25099707: call esi */ 11351 RECOMP_FLAGS_IN(); 11352 /* test eax, eax */ /* 0x25099709: test eax, eax */ 11353 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11354 _cf = 0; 11355 _flag_k = FK_TEST; 11356 if (TEST_Z(_flag_a, _flag_b)) goto L_2509972E; /* 0x2509970B: je 0x2509972e */ 11357 L_2509970D: 11358 /* test ebx, ebx */ /* 0x2509970D: test ebx, ebx */ 11359 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11360 _cf = 0; 11361 _flag_k = FK_TEST; 11362 if (TEST_Z(_flag_a, _flag_b)) goto L_2509972E; /* 0x2509970F: je 0x2509972e */ 11363 L_25099711: 11364 eax = ebx + 0x8; /* 0x25099711: lea eax, [ebx + 8] */ 11365 /* test eax, eax */ /* 0x25099714: test eax, eax */ 11366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11367 _cf = 0; 11368 _flag_k = FK_TEST; 11369 if (TEST_Z(_flag_a, _flag_b)) goto L_2509972E; /* 0x25099716: je 0x2509972e */ 11370 L_25099718: 11371 ecx = ebp + (-0x4); /* 0x25099718: lea ecx, [ebp - 4] */ 11372 PUSH32(esp, ecx); /* 0x2509971B: push ecx */ 11373 edx = ebp + (-0x28); /* 0x2509971C: lea edx, [ebp - 0x28] */ 11374 PUSH32(esp, edx); /* 0x2509971F: push edx */ 11375 ecx = edi + 0x154; /* 0x25099720: lea ecx, [edi + 0x154] */ 11376 MEM32(ebp + (-0x4)) = eax; /* 0x25099726: mov dword ptr [ebp - 4], eax */ 11377 RECOMP_ICALL(0x25086360u); /* 0x25099729: call 0x25086360 */ /* not lifted */ 11378 RECOMP_FLAGS_IN(); 11379 L_2509972E: 11380 eax = MEM32(ebp + (-0x10)); /* 0x2509972E: mov eax, dword ptr [ebp - 0x10] */ 11381 /* test eax, eax */ /* 0x25099731: test eax, eax */ 11382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11383 _cf = 0; 11384 _flag_k = FK_TEST; 11385 RECOMP_BACKEDGE(); 11386 if (TEST_Z(_flag_a, _flag_b)) goto L_25099665; /* 0x25099733: je 0x25099665 */ 11387 L_25099739: 11388 eax = MEM32(ebp + (-0xC)); /* 0x25099739: mov eax, dword ptr [ebp - 0xc] */ 11389 PUSH32(esp, eax); /* 0x2509973C: push eax */ 11390 ecx = ebp + (-0x10); /* 0x2509973D: lea ecx, [ebp - 0x10] */ 11391 PUSH32(esp, ecx); /* 0x25099740: push ecx */ 11392 RECOMP_ICALL(0x250E3530u); /* 0x25099741: call 0x250e3530 */ /* not lifted */ 11393 RECOMP_FLAGS_IN(); 11394 edx = MEM32(ebp + (-0x10)); /* 0x25099746: mov edx, dword ptr [ebp - 0x10] */ 11395 PUSH32(esp, 0); /* 0x25099749: push 0 */ 11396 PUSH32(esp, 0x251B2970u); /* 0x2509974B: push 0x251b2970 */ 11397 PUSH32(esp, 0x251B2970u); /* 0x25099750: push 0x251b2970 */ 11398 PUSH32(esp, 0); /* 0x25099755: push 0 */ 11399 PUSH32(esp, edx); /* 0x25099757: push edx */ 11400 RECOMP_ICALL(0x251381ACu); /* 0x25099758: call 0x251381ac */ /* not lifted */ 11401 RECOMP_FLAGS_IN(); 11402 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 11403 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11404 esp = esp + 0x1Cu; /* 0x2509975D: add esp, 0x1c */ 11405 _flag_k = FK_ADD; 11406 /* test eax, eax */ /* 0x25099760: test eax, eax */ 11407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11408 _cf = 0; 11409 _flag_k = FK_TEST; 11410 RECOMP_BACKEDGE(); 11411 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099665; /* 0x25099762: jne 0x25099665 */ 11412 L_25099768: 11413 eax = MEM32(ebp + (-0x10)); /* 0x25099768: mov eax, dword ptr [ebp - 0x10] */ 11414 /* test eax, eax */ /* 0x2509976B: test eax, eax */ 11415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11416 _cf = 0; 11417 _flag_k = FK_TEST; 11418 RECOMP_BACKEDGE(); 11419 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099739; /* 0x2509976D: jne 0x25099739 */ 11420 L_2509976F: 11421 RECOMP_BACKEDGE(); 11422 goto L_25099665; /* 0x2509976F: jmp 0x25099665 */ 11423 L_25099774: 11424 edi = POP32_VAL(esp); /* 0x25099774: pop edi */ 11425 esi = POP32_VAL(esp); /* 0x25099775: pop esi */ 11426 ebx = POP32_VAL(esp); /* 0x25099776: pop ebx */ 11427 esp = ebp; /* 0x25099777: mov esp, ebp */ 11428 ebp = POP32_VAL(esp); /* 0x25099779: pop ebp */ 11429 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509977A: ret */ 11430 RECOMP_REGS_OUT(); 11431 } 11432 11433 void sub_25099665(void) { 11434 int _fpu_cmp = 0; 11435 uint32_t _cf = 0; 11436 int _df = 1; 11437 uint32_t _flag_k = FK_NONE; 11438 uint32_t _flag_a = 0, _flag_b = 0; 11439 uint32_t _itail_tgt = 0; 11440 RECOMP_REGS_LOCALS 11441 RECOMP_ENTER(0x25099665u); 11442 11443 L_25099665: 11444 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11445 eax = 0; /* 0x25099665: xor eax, eax */ 11446 _cf = 0; 11447 _flag_k = FK_TEST; 11448 PUSH32(esp, eax); /* 0x25099667: push eax */ 11449 PUSH32(esp, 0x251B2598u); /* 0x25099668: push 0x251b2598 */ 11450 PUSH32(esp, 0x251B2598u); /* 0x2509966D: push 0x251b2598 */ 11451 PUSH32(esp, eax); /* 0x25099672: push eax */ 11452 PUSH32(esp, eax); /* 0x25099673: push eax */ 11453 MEM32(ebp + (-0x18)) = eax; /* 0x25099674: mov dword ptr [ebp - 0x18], eax */ 11454 MEM32(ebp + (-0x14)) = eax; /* 0x25099677: mov dword ptr [ebp - 0x14], eax */ 11455 RECOMP_ICALL(0x251381ACu); /* 0x2509967A: call 0x251381ac */ /* not lifted */ 11456 RECOMP_FLAGS_IN(); 11457 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11459 esp = esp + 0x14u; /* 0x2509967F: add esp, 0x14 */ 11460 _flag_k = FK_ADD; 11461 /* test eax, eax */ /* 0x25099682: test eax, eax */ 11462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11463 _cf = 0; 11464 _flag_k = FK_TEST; 11465 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509968E; /* 0x25099684: jne 0x2509968e */ 11466 L_25099686: 11467 ecx = ebp + (-0x18); /* 0x25099686: lea ecx, [ebp - 0x18] */ 11468 RECOMP_ICALL(0x2509DA50u); /* 0x25099689: call 0x2509da50 */ /* not lifted */ 11469 RECOMP_FLAGS_IN(); 11470 L_2509968E: 11471 eax = MEM32(ebp + (-0x10)); /* 0x2509968E: mov eax, dword ptr [ebp - 0x10] */ 11472 /* cmp eax, MEM32(ebp + (-0x18)) */ /* 0x25099691: cmp eax, dword ptr [ebp - 0x18] */ 11473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 11474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11475 _flag_k = FK_CMP; 11476 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099774; /* 0x25099694: je 0x25099774 */ 11477 L_2509969A: 11478 PUSH32(esp, 0x251B4078u); /* 0x2509969A: push 0x251b4078 */ 11479 ecx = 0x251B4078u; /* 0x2509969F: mov ecx, 0x251b4078 */ 11480 edi = eax; /* 0x250996A4: mov edi, eax */ 11481 RECOMP_ICALL(esi); /* 0x250996A6: call esi */ 11482 RECOMP_FLAGS_IN(); 11483 /* test eax, eax */ /* 0x250996A8: test eax, eax */ 11484 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11485 _cf = 0; 11486 _flag_k = FK_TEST; 11487 if (TEST_NZ(_flag_a, _flag_b)) goto L_250996BC; /* 0x250996AA: jne 0x250996bc */ 11488 L_250996AC: 11489 PUSH32(esp, 0x251B4078u); /* 0x250996AC: push 0x251b4078 */ 11490 ecx = 0x251B4050u; /* 0x250996B1: mov ecx, 0x251b4050 */ 11491 RECOMP_ICALL(esi); /* 0x250996B6: call esi */ 11492 RECOMP_FLAGS_IN(); 11493 /* test eax, eax */ /* 0x250996B8: test eax, eax */ 11494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11495 _cf = 0; 11496 _flag_k = FK_TEST; 11497 if (TEST_Z(_flag_a, _flag_b)) goto L_250996ED; /* 0x250996BA: je 0x250996ed */ 11498 L_250996BC: 11499 PUSH32(esp, 0); /* 0x250996BC: push 0 */ 11500 PUSH32(esp, 0x251B4050u); /* 0x250996BE: push 0x251b4050 */ 11501 PUSH32(esp, 0x251B4C30u); /* 0x250996C3: push 0x251b4c30 */ 11502 PUSH32(esp, 0); /* 0x250996C8: push 0 */ 11503 PUSH32(esp, ebx); /* 0x250996CA: push ebx */ 11504 RECOMP_ICALL(0x251381ACu); /* 0x250996CB: call 0x251381ac */ /* not lifted */ 11505 RECOMP_FLAGS_IN(); 11506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11508 esp = esp + 0x14u; /* 0x250996D0: add esp, 0x14 */ 11509 _flag_k = FK_ADD; 11510 /* test eax, eax */ /* 0x250996D3: test eax, eax */ 11511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11512 _cf = 0; 11513 _flag_k = FK_TEST; 11514 if (TEST_Z(_flag_a, _flag_b)) goto L_250996ED; /* 0x250996D5: je 0x250996ed */ 11515 L_250996D7: 11516 edx = ebp + (-0x4); /* 0x250996D7: lea edx, [ebp - 4] */ 11517 MEM32(ebp + (-0x4)) = eax; /* 0x250996DA: mov dword ptr [ebp - 4], eax */ 11518 PUSH32(esp, edx); /* 0x250996DD: push edx */ 11519 eax = ebp + (-0x20); /* 0x250996DE: lea eax, [ebp - 0x20] */ 11520 PUSH32(esp, eax); /* 0x250996E1: push eax */ 11521 ecx = edi + 0x13C; /* 0x250996E2: lea ecx, [edi + 0x13c] */ 11522 RECOMP_ICALL(0x25086360u); /* 0x250996E8: call 0x25086360 */ /* not lifted */ 11523 RECOMP_FLAGS_IN(); 11524 L_250996ED: 11525 PUSH32(esp, 0x251B4078u); /* 0x250996ED: push 0x251b4078 */ 11526 ecx = 0x251B4078u; /* 0x250996F2: mov ecx, 0x251b4078 */ 11527 RECOMP_ICALL(esi); /* 0x250996F7: call esi */ 11528 RECOMP_FLAGS_IN(); 11529 /* test eax, eax */ /* 0x250996F9: test eax, eax */ 11530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11531 _cf = 0; 11532 _flag_k = FK_TEST; 11533 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509970D; /* 0x250996FB: jne 0x2509970d */ 11534 L_250996FD: 11535 PUSH32(esp, 0x251B4078u); /* 0x250996FD: push 0x251b4078 */ 11536 ecx = 0x251B4008u; /* 0x25099702: mov ecx, 0x251b4008 */ 11537 RECOMP_ICALL(esi); /* 0x25099707: call esi */ 11538 RECOMP_FLAGS_IN(); 11539 /* test eax, eax */ /* 0x25099709: test eax, eax */ 11540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11541 _cf = 0; 11542 _flag_k = FK_TEST; 11543 if (TEST_Z(_flag_a, _flag_b)) goto L_2509972E; /* 0x2509970B: je 0x2509972e */ 11544 L_2509970D: 11545 /* test ebx, ebx */ /* 0x2509970D: test ebx, ebx */ 11546 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11547 _cf = 0; 11548 _flag_k = FK_TEST; 11549 if (TEST_Z(_flag_a, _flag_b)) goto L_2509972E; /* 0x2509970F: je 0x2509972e */ 11550 L_25099711: 11551 eax = ebx + 0x8; /* 0x25099711: lea eax, [ebx + 8] */ 11552 /* test eax, eax */ /* 0x25099714: test eax, eax */ 11553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11554 _cf = 0; 11555 _flag_k = FK_TEST; 11556 if (TEST_Z(_flag_a, _flag_b)) goto L_2509972E; /* 0x25099716: je 0x2509972e */ 11557 L_25099718: 11558 ecx = ebp + (-0x4); /* 0x25099718: lea ecx, [ebp - 4] */ 11559 PUSH32(esp, ecx); /* 0x2509971B: push ecx */ 11560 edx = ebp + (-0x28); /* 0x2509971C: lea edx, [ebp - 0x28] */ 11561 PUSH32(esp, edx); /* 0x2509971F: push edx */ 11562 ecx = edi + 0x154; /* 0x25099720: lea ecx, [edi + 0x154] */ 11563 MEM32(ebp + (-0x4)) = eax; /* 0x25099726: mov dword ptr [ebp - 4], eax */ 11564 RECOMP_ICALL(0x25086360u); /* 0x25099729: call 0x25086360 */ /* not lifted */ 11565 RECOMP_FLAGS_IN(); 11566 L_2509972E: 11567 eax = MEM32(ebp + (-0x10)); /* 0x2509972E: mov eax, dword ptr [ebp - 0x10] */ 11568 /* test eax, eax */ /* 0x25099731: test eax, eax */ 11569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11570 _cf = 0; 11571 _flag_k = FK_TEST; 11572 RECOMP_BACKEDGE(); 11573 if (TEST_Z(_flag_a, _flag_b)) goto L_25099665; /* 0x25099733: je 0x25099665 */ 11574 L_25099739: 11575 eax = MEM32(ebp + (-0xC)); /* 0x25099739: mov eax, dword ptr [ebp - 0xc] */ 11576 PUSH32(esp, eax); /* 0x2509973C: push eax */ 11577 ecx = ebp + (-0x10); /* 0x2509973D: lea ecx, [ebp - 0x10] */ 11578 PUSH32(esp, ecx); /* 0x25099740: push ecx */ 11579 RECOMP_ICALL(0x250E3530u); /* 0x25099741: call 0x250e3530 */ /* not lifted */ 11580 RECOMP_FLAGS_IN(); 11581 edx = MEM32(ebp + (-0x10)); /* 0x25099746: mov edx, dword ptr [ebp - 0x10] */ 11582 PUSH32(esp, 0); /* 0x25099749: push 0 */ 11583 PUSH32(esp, 0x251B2970u); /* 0x2509974B: push 0x251b2970 */ 11584 PUSH32(esp, 0x251B2970u); /* 0x25099750: push 0x251b2970 */ 11585 PUSH32(esp, 0); /* 0x25099755: push 0 */ 11586 PUSH32(esp, edx); /* 0x25099757: push edx */ 11587 RECOMP_ICALL(0x251381ACu); /* 0x25099758: call 0x251381ac */ /* not lifted */ 11588 RECOMP_FLAGS_IN(); 11589 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 11590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11591 esp = esp + 0x1Cu; /* 0x2509975D: add esp, 0x1c */ 11592 _flag_k = FK_ADD; 11593 /* test eax, eax */ /* 0x25099760: test eax, eax */ 11594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11595 _cf = 0; 11596 _flag_k = FK_TEST; 11597 RECOMP_BACKEDGE(); 11598 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099665; /* 0x25099762: jne 0x25099665 */ 11599 L_25099768: 11600 eax = MEM32(ebp + (-0x10)); /* 0x25099768: mov eax, dword ptr [ebp - 0x10] */ 11601 /* test eax, eax */ /* 0x2509976B: test eax, eax */ 11602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11603 _cf = 0; 11604 _flag_k = FK_TEST; 11605 RECOMP_BACKEDGE(); 11606 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099739; /* 0x2509976D: jne 0x25099739 */ 11607 L_2509976F: 11608 RECOMP_BACKEDGE(); 11609 goto L_25099665; /* 0x2509976F: jmp 0x25099665 */ 11610 L_25099774: 11611 edi = POP32_VAL(esp); /* 0x25099774: pop edi */ 11612 esi = POP32_VAL(esp); /* 0x25099775: pop esi */ 11613 ebx = POP32_VAL(esp); /* 0x25099776: pop ebx */ 11614 esp = ebp; /* 0x25099777: mov esp, ebp */ 11615 ebp = POP32_VAL(esp); /* 0x25099779: pop ebp */ 11616 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509977A: ret */ 11617 RECOMP_REGS_OUT(); 11618 } 11619 11620 void sub_25099780(void) { 11621 int _fpu_cmp = 0; 11622 uint32_t _cf = 0; 11623 int _df = 1; 11624 uint32_t _flag_k = FK_NONE; 11625 uint32_t _flag_a = 0, _flag_b = 0; 11626 uint32_t _itail_tgt = 0; 11627 RECOMP_REGS_LOCALS 11628 RECOMP_ENTER(0x25099780u); 11629 11630 L_25099780: 11631 PUSH32(esp, ebp); /* 0x25099780: push ebp */ 11632 ebp = esp; /* 0x25099781: mov ebp, esp */ 11633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 11634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11635 esp = esp - 0x40u; /* 0x25099783: sub esp, 0x40 */ 11636 _flag_k = FK_CMP; 11637 PUSH32(esp, ebx); /* 0x25099786: push ebx */ 11638 ebx = ecx; /* 0x25099787: mov ebx, ecx */ 11639 eax = MEM32(ebx + 0x10); /* 0x25099789: mov eax, dword ptr [ebx + 0x10] */ 11640 /* test eax, eax */ /* 0x2509978C: test eax, eax */ 11641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11642 _cf = 0; 11643 _flag_k = FK_TEST; 11644 PUSH32(esp, esi); /* 0x2509978E: push esi */ 11645 PUSH32(esp, edi); /* 0x2509978F: push edi */ 11646 MEM32(ebp + (-0x8)) = ebx; /* 0x25099790: mov dword ptr [ebp - 8], ebx */ 11647 if (TEST_Z(_flag_a, _flag_b)) goto L_250999BD; /* 0x25099793: je 0x250999bd */ 11648 L_25099799: 11649 PUSH32(esp, 0); /* 0x25099799: push 0 */ 11650 PUSH32(esp, 0x251B2598u); /* 0x2509979B: push 0x251b2598 */ 11651 PUSH32(esp, 0x251B2598u); /* 0x250997A0: push 0x251b2598 */ 11652 PUSH32(esp, 0); /* 0x250997A5: push 0 */ 11653 PUSH32(esp, eax); /* 0x250997A7: push eax */ 11654 MEM32(ebp + (-0x30)) = eax; /* 0x250997A8: mov dword ptr [ebp - 0x30], eax */ 11655 MEM32(ebp + (-0x2C)) = eax; /* 0x250997AB: mov dword ptr [ebp - 0x2c], eax */ 11656 RECOMP_ICALL(0x251381ACu); /* 0x250997AE: call 0x251381ac */ /* not lifted */ 11657 RECOMP_FLAGS_IN(); 11658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11660 esp = esp + 0x14u; /* 0x250997B3: add esp, 0x14 */ 11661 _flag_k = FK_ADD; 11662 /* test eax, eax */ /* 0x250997B6: test eax, eax */ 11663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11664 _cf = 0; 11665 _flag_k = FK_TEST; 11666 if (TEST_NZ(_flag_a, _flag_b)) goto L_250997C2; /* 0x250997B8: jne 0x250997c2 */ 11667 L_250997BA: 11668 ecx = ebp + (-0x30); /* 0x250997BA: lea ecx, [ebp - 0x30] */ 11669 RECOMP_ICALL(0x2509DA50u); /* 0x250997BD: call 0x2509da50 */ /* not lifted */ 11670 RECOMP_FLAGS_IN(); 11671 L_250997C2: 11672 eax = MEM32(ebp + (-0x30)); /* 0x250997C2: mov eax, dword ptr [ebp - 0x30] */ 11673 ecx = MEM32(ebp + (-0x2C)); /* 0x250997C5: mov ecx, dword ptr [ebp - 0x2c] */ 11674 PUSH32(esp, 0); /* 0x250997C8: push 0 */ 11675 PUSH32(esp, 0x251B2970u); /* 0x250997CA: push 0x251b2970 */ 11676 PUSH32(esp, 0x251B2970u); /* 0x250997CF: push 0x251b2970 */ 11677 PUSH32(esp, 0); /* 0x250997D4: push 0 */ 11678 PUSH32(esp, eax); /* 0x250997D6: push eax */ 11679 MEM32(ebp + (-0x38)) = eax; /* 0x250997D7: mov dword ptr [ebp - 0x38], eax */ 11680 MEM32(ebp + (-0x34)) = ecx; /* 0x250997DA: mov dword ptr [ebp - 0x34], ecx */ 11681 RECOMP_ICALL(0x251381ACu); /* 0x250997DD: call 0x251381ac */ /* not lifted */ 11682 RECOMP_FLAGS_IN(); 11683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11685 esp = esp + 0x14u; /* 0x250997E2: add esp, 0x14 */ 11686 _flag_k = FK_ADD; 11687 /* test eax, eax */ /* 0x250997E5: test eax, eax */ 11688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11689 _cf = 0; 11690 _flag_k = FK_TEST; 11691 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099822; /* 0x250997E7: jne 0x25099822 */ 11692 L_250997E9: 11693 eax = MEM32(ebp + (-0x38)); /* 0x250997E9: mov eax, dword ptr [ebp - 0x38] */ 11694 /* test eax, eax */ /* 0x250997EC: test eax, eax */ 11695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11696 _cf = 0; 11697 _flag_k = FK_TEST; 11698 if (TEST_Z(_flag_a, _flag_b)) goto L_25099822; /* 0x250997EE: je 0x25099822 */ 11699 L_250997F0: 11700 edx = MEM32(ebp + (-0x34)); /* 0x250997F0: mov edx, dword ptr [ebp - 0x34] */ 11701 PUSH32(esp, edx); /* 0x250997F3: push edx */ 11702 eax = ebp + (-0x38); /* 0x250997F4: lea eax, [ebp - 0x38] */ 11703 PUSH32(esp, eax); /* 0x250997F7: push eax */ 11704 RECOMP_ICALL(0x250E3530u); /* 0x250997F8: call 0x250e3530 */ /* not lifted */ 11705 RECOMP_FLAGS_IN(); 11706 ecx = MEM32(ebp + (-0x38)); /* 0x250997FD: mov ecx, dword ptr [ebp - 0x38] */ 11707 PUSH32(esp, 0); /* 0x25099800: push 0 */ 11708 PUSH32(esp, 0x251B2970u); /* 0x25099802: push 0x251b2970 */ 11709 PUSH32(esp, 0x251B2970u); /* 0x25099807: push 0x251b2970 */ 11710 PUSH32(esp, 0); /* 0x2509980C: push 0 */ 11711 PUSH32(esp, ecx); /* 0x2509980E: push ecx */ 11712 RECOMP_ICALL(0x251381ACu); /* 0x2509980F: call 0x251381ac */ /* not lifted */ 11713 RECOMP_FLAGS_IN(); 11714 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 11715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11716 esp = esp + 0x1Cu; /* 0x25099814: add esp, 0x1c */ 11717 _flag_k = FK_ADD; 11718 /* test eax, eax */ /* 0x25099817: test eax, eax */ 11719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11720 _cf = 0; 11721 _flag_k = FK_TEST; 11722 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099822; /* 0x25099819: jne 0x25099822 */ 11723 L_2509981B: 11724 eax = MEM32(ebp + (-0x38)); /* 0x2509981B: mov eax, dword ptr [ebp - 0x38] */ 11725 /* test eax, eax */ /* 0x2509981E: test eax, eax */ 11726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11727 _cf = 0; 11728 _flag_k = FK_TEST; 11729 RECOMP_BACKEDGE(); 11730 if (TEST_NZ(_flag_a, _flag_b)) goto L_250997F0; /* 0x25099820: jne 0x250997f0 */ 11731 L_25099822: 11732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11733 eax = 0; /* 0x25099822: xor eax, eax */ 11734 _cf = 0; 11735 _flag_k = FK_TEST; 11736 PUSH32(esp, eax); /* 0x25099824: push eax */ 11737 PUSH32(esp, 0x251B2598u); /* 0x25099825: push 0x251b2598 */ 11738 PUSH32(esp, 0x251B2598u); /* 0x2509982A: push 0x251b2598 */ 11739 PUSH32(esp, eax); /* 0x2509982F: push eax */ 11740 PUSH32(esp, eax); /* 0x25099830: push eax */ 11741 MEM32(ebp + (-0x40)) = eax; /* 0x25099831: mov dword ptr [ebp - 0x40], eax */ 11742 MEM32(ebp + (-0x3C)) = eax; /* 0x25099834: mov dword ptr [ebp - 0x3c], eax */ 11743 RECOMP_ICALL(0x251381ACu); /* 0x25099837: call 0x251381ac */ /* not lifted */ 11744 RECOMP_FLAGS_IN(); 11745 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11747 esp = esp + 0x14u; /* 0x2509983C: add esp, 0x14 */ 11748 _flag_k = FK_ADD; 11749 /* test eax, eax */ /* 0x2509983F: test eax, eax */ 11750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11751 _cf = 0; 11752 _flag_k = FK_TEST; 11753 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509984B; /* 0x25099841: jne 0x2509984b */ 11754 L_25099843: 11755 ecx = ebp + (-0x40); /* 0x25099843: lea ecx, [ebp - 0x40] */ 11756 RECOMP_ICALL(0x2509DA50u); /* 0x25099846: call 0x2509da50 */ /* not lifted */ 11757 RECOMP_FLAGS_IN(); 11758 L_2509984B: 11759 esi = MEM32(ebp + (-0x38)); /* 0x2509984B: mov esi, dword ptr [ebp - 0x38] */ 11760 /* cmp esi, MEM32(ebp + (-0x40)) */ /* 0x2509984E: cmp esi, dword ptr [ebp - 0x40] */ 11761 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 11762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11763 _flag_k = FK_CMP; 11764 if (CMP_EQ(_flag_a, _flag_b)) goto L_250999BD; /* 0x25099851: je 0x250999bd */ 11765 L_25099857: 11766 edi = MEM32(0x251512FC); /* 0x25099857: mov edi, dword ptr [0x251512fc] */ 11767 PUSH32(esp, 0x251B4078u); /* 0x2509985D: push 0x251b4078 */ 11768 ecx = 0x251B4078u; /* 0x25099862: mov ecx, 0x251b4078 */ 11769 MEM32(ebp + (-0x10)) = esi; /* 0x25099867: mov dword ptr [ebp - 0x10], esi */ 11770 RECOMP_ICALL(edi); /* 0x2509986A: call edi */ 11771 RECOMP_FLAGS_IN(); 11772 /* test eax, eax */ /* 0x2509986C: test eax, eax */ 11773 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11774 _cf = 0; 11775 _flag_k = FK_TEST; 11776 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099880; /* 0x2509986E: jne 0x25099880 */ 11777 L_25099870: 11778 PUSH32(esp, 0x251B4078u); /* 0x25099870: push 0x251b4078 */ 11779 ecx = 0x251B4050u; /* 0x25099875: mov ecx, 0x251b4050 */ 11780 RECOMP_ICALL(edi); /* 0x2509987A: call edi */ 11781 RECOMP_FLAGS_IN(); 11782 /* test eax, eax */ /* 0x2509987C: test eax, eax */ 11783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11784 _cf = 0; 11785 _flag_k = FK_TEST; 11786 if (TEST_Z(_flag_a, _flag_b)) goto L_250998F6; /* 0x2509987E: je 0x250998f6 */ 11787 L_25099880: 11788 PUSH32(esp, 0); /* 0x25099880: push 0 */ 11789 PUSH32(esp, 0x251B4050u); /* 0x25099882: push 0x251b4050 */ 11790 PUSH32(esp, 0x251B4C30u); /* 0x25099887: push 0x251b4c30 */ 11791 PUSH32(esp, 0); /* 0x2509988C: push 0 */ 11792 PUSH32(esp, ebx); /* 0x2509988E: push ebx */ 11793 RECOMP_ICALL(0x251381ACu); /* 0x2509988F: call 0x251381ac */ /* not lifted */ 11794 RECOMP_FLAGS_IN(); 11795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11797 esp = esp + 0x14u; /* 0x25099894: add esp, 0x14 */ 11798 _flag_k = FK_ADD; 11799 /* test eax, eax */ /* 0x25099897: test eax, eax */ 11800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11801 _cf = 0; 11802 _flag_k = FK_TEST; 11803 if (TEST_Z(_flag_a, _flag_b)) goto L_250998F6; /* 0x25099899: je 0x250998f6 */ 11804 L_2509989B: 11805 edx = ebp + (-0x4); /* 0x2509989B: lea edx, [ebp - 4] */ 11806 MEM32(ebp + (-0x4)) = eax; /* 0x2509989E: mov dword ptr [ebp - 4], eax */ 11807 PUSH32(esp, edx); /* 0x250998A1: push edx */ 11808 eax = ebp + (-0x18); /* 0x250998A2: lea eax, [ebp - 0x18] */ 11809 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x13Cu); 11810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11811 esi = esi + 0x13Cu; /* 0x250998A5: add esi, 0x13c */ 11812 _flag_k = FK_ADD; 11813 PUSH32(esp, eax); /* 0x250998AB: push eax */ 11814 ecx = esi; /* 0x250998AC: mov ecx, esi */ 11815 RECOMP_ICALL(0x2509DF10u); /* 0x250998AE: call 0x2509df10 */ /* not lifted */ 11816 RECOMP_FLAGS_IN(); 11817 ecx = ebp + (-0x4); /* 0x250998B3: lea ecx, [ebp - 4] */ 11818 PUSH32(esp, ecx); /* 0x250998B6: push ecx */ 11819 edx = ebp + (-0x1C); /* 0x250998B7: lea edx, [ebp - 0x1c] */ 11820 PUSH32(esp, edx); /* 0x250998BA: push edx */ 11821 ecx = esi; /* 0x250998BB: mov ecx, esi */ 11822 ebx = eax; /* 0x250998BD: mov ebx, eax */ 11823 RECOMP_ICALL(0x2509DED0u); /* 0x250998BF: call 0x2509ded0 */ /* not lifted */ 11824 RECOMP_FLAGS_IN(); 11825 edi = MEM32(eax); /* 0x250998C4: mov edi, dword ptr [eax] */ 11826 ebx = MEM32(ebx); /* 0x250998C6: mov ebx, dword ptr [ebx] */ 11827 eax = ebp + (-0xC); /* 0x250998C8: lea eax, [ebp - 0xc] */ 11828 PUSH32(esp, eax); /* 0x250998CB: push eax */ 11829 PUSH32(esp, ebx); /* 0x250998CC: push ebx */ 11830 PUSH32(esp, edi); /* 0x250998CD: push edi */ 11831 MEM32(ebp + (-0xC)) = 0; /* 0x250998CE: mov dword ptr [ebp - 0xc], 0 */ 11832 RECOMP_ICALL(0x2509E010u); /* 0x250998D5: call 0x2509e010 */ /* not lifted */ 11833 RECOMP_FLAGS_IN(); 11834 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11836 esp = esp + 0xCu; /* 0x250998DA: add esp, 0xc */ 11837 _flag_k = FK_ADD; 11838 PUSH32(esp, ebx); /* 0x250998DD: push ebx */ 11839 PUSH32(esp, edi); /* 0x250998DE: push edi */ 11840 ecx = ebp + (-0x20); /* 0x250998DF: lea ecx, [ebp - 0x20] */ 11841 PUSH32(esp, ecx); /* 0x250998E2: push ecx */ 11842 ecx = esi; /* 0x250998E3: mov ecx, esi */ 11843 RECOMP_ICALL(0x25006020u); /* 0x250998E5: call 0x25006020 */ /* not lifted */ 11844 RECOMP_FLAGS_IN(); 11845 edi = MEM32(0x251512FC); /* 0x250998EA: mov edi, dword ptr [0x251512fc] */ 11846 ebx = MEM32(ebp + (-0x8)); /* 0x250998F0: mov ebx, dword ptr [ebp - 8] */ 11847 esi = MEM32(ebp + (-0x10)); /* 0x250998F3: mov esi, dword ptr [ebp - 0x10] */ 11848 L_250998F6: 11849 PUSH32(esp, 0x251B4078u); /* 0x250998F6: push 0x251b4078 */ 11850 ecx = 0x251B4078u; /* 0x250998FB: mov ecx, 0x251b4078 */ 11851 RECOMP_ICALL(edi); /* 0x25099900: call edi */ 11852 RECOMP_FLAGS_IN(); 11853 /* test eax, eax */ /* 0x25099902: test eax, eax */ 11854 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11855 _cf = 0; 11856 _flag_k = FK_TEST; 11857 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099916; /* 0x25099904: jne 0x25099916 */ 11858 L_25099906: 11859 PUSH32(esp, 0x251B4078u); /* 0x25099906: push 0x251b4078 */ 11860 ecx = 0x251B4008u; /* 0x2509990B: mov ecx, 0x251b4008 */ 11861 RECOMP_ICALL(edi); /* 0x25099910: call edi */ 11862 RECOMP_FLAGS_IN(); 11863 /* test eax, eax */ /* 0x25099912: test eax, eax */ 11864 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11865 _cf = 0; 11866 _flag_k = FK_TEST; 11867 if (TEST_Z(_flag_a, _flag_b)) goto L_25099977; /* 0x25099914: je 0x25099977 */ 11868 L_25099916: 11869 /* test ebx, ebx */ /* 0x25099916: test ebx, ebx */ 11870 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 11871 _cf = 0; 11872 _flag_k = FK_TEST; 11873 if (TEST_Z(_flag_a, _flag_b)) goto L_25099977; /* 0x25099918: je 0x25099977 */ 11874 L_2509991A: 11875 eax = ebx + 0x8; /* 0x2509991A: lea eax, [ebx + 8] */ 11876 /* test eax, eax */ /* 0x2509991D: test eax, eax */ 11877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11878 _cf = 0; 11879 _flag_k = FK_TEST; 11880 if (TEST_Z(_flag_a, _flag_b)) goto L_25099977; /* 0x2509991F: je 0x25099977 */ 11881 L_25099921: 11882 edx = ebp + (-0x4); /* 0x25099921: lea edx, [ebp - 4] */ 11883 MEM32(ebp + (-0x4)) = eax; /* 0x25099924: mov dword ptr [ebp - 4], eax */ 11884 PUSH32(esp, edx); /* 0x25099927: push edx */ 11885 eax = ebp + (-0x24); /* 0x25099928: lea eax, [ebp - 0x24] */ 11886 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x154u); 11887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11888 esi = esi + 0x154u; /* 0x2509992B: add esi, 0x154 */ 11889 _flag_k = FK_ADD; 11890 PUSH32(esp, eax); /* 0x25099931: push eax */ 11891 ecx = esi; /* 0x25099932: mov ecx, esi */ 11892 RECOMP_ICALL(0x2509DF10u); /* 0x25099934: call 0x2509df10 */ /* not lifted */ 11893 RECOMP_FLAGS_IN(); 11894 ecx = ebp + (-0x4); /* 0x25099939: lea ecx, [ebp - 4] */ 11895 PUSH32(esp, ecx); /* 0x2509993C: push ecx */ 11896 edx = ebp + (-0x28); /* 0x2509993D: lea edx, [ebp - 0x28] */ 11897 PUSH32(esp, edx); /* 0x25099940: push edx */ 11898 ecx = esi; /* 0x25099941: mov ecx, esi */ 11899 ebx = eax; /* 0x25099943: mov ebx, eax */ 11900 RECOMP_ICALL(0x2509DED0u); /* 0x25099945: call 0x2509ded0 */ /* not lifted */ 11901 RECOMP_FLAGS_IN(); 11902 edi = MEM32(eax); /* 0x2509994A: mov edi, dword ptr [eax] */ 11903 eax = MEM32(ebp + (-0x28)); /* 0x2509994C: mov eax, dword ptr [ebp - 0x28] */ 11904 ebx = MEM32(ebx); /* 0x2509994F: mov ebx, dword ptr [ebx] */ 11905 PUSH32(esp, eax); /* 0x25099951: push eax */ 11906 ecx = ebp + (-0x14); /* 0x25099952: lea ecx, [ebp - 0x14] */ 11907 PUSH32(esp, ecx); /* 0x25099955: push ecx */ 11908 PUSH32(esp, ebx); /* 0x25099956: push ebx */ 11909 PUSH32(esp, edi); /* 0x25099957: push edi */ 11910 MEM32(ebp + (-0x14)) = 0; /* 0x25099958: mov dword ptr [ebp - 0x14], 0 */ 11911 RECOMP_ICALL(0x2509E010u); /* 0x2509995F: call 0x2509e010 */ /* not lifted */ 11912 RECOMP_FLAGS_IN(); 11913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11915 esp = esp + 0x10u; /* 0x25099964: add esp, 0x10 */ 11916 _flag_k = FK_ADD; 11917 PUSH32(esp, ebx); /* 0x25099967: push ebx */ 11918 PUSH32(esp, edi); /* 0x25099968: push edi */ 11919 edx = ebp + (-0x2C); /* 0x25099969: lea edx, [ebp - 0x2c] */ 11920 PUSH32(esp, edx); /* 0x2509996C: push edx */ 11921 ecx = esi; /* 0x2509996D: mov ecx, esi */ 11922 RECOMP_ICALL(0x250061D0u); /* 0x2509996F: call 0x250061d0 */ /* not lifted */ 11923 RECOMP_FLAGS_IN(); 11924 ebx = MEM32(ebp + (-0x8)); /* 0x25099974: mov ebx, dword ptr [ebp - 8] */ 11925 L_25099977: 11926 eax = MEM32(ebp + (-0x38)); /* 0x25099977: mov eax, dword ptr [ebp - 0x38] */ 11927 /* test eax, eax */ /* 0x2509997A: test eax, eax */ 11928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11929 _cf = 0; 11930 _flag_k = FK_TEST; 11931 RECOMP_BACKEDGE(); 11932 if (TEST_Z(_flag_a, _flag_b)) goto L_25099822; /* 0x2509997C: je 0x25099822 */ 11933 L_25099982: 11934 eax = MEM32(ebp + (-0x34)); /* 0x25099982: mov eax, dword ptr [ebp - 0x34] */ 11935 PUSH32(esp, eax); /* 0x25099985: push eax */ 11936 ecx = ebp + (-0x38); /* 0x25099986: lea ecx, [ebp - 0x38] */ 11937 PUSH32(esp, ecx); /* 0x25099989: push ecx */ 11938 RECOMP_ICALL(0x250E3530u); /* 0x2509998A: call 0x250e3530 */ /* not lifted */ 11939 RECOMP_FLAGS_IN(); 11940 edx = MEM32(ebp + (-0x38)); /* 0x2509998F: mov edx, dword ptr [ebp - 0x38] */ 11941 PUSH32(esp, 0); /* 0x25099992: push 0 */ 11942 PUSH32(esp, 0x251B2970u); /* 0x25099994: push 0x251b2970 */ 11943 PUSH32(esp, 0x251B2970u); /* 0x25099999: push 0x251b2970 */ 11944 PUSH32(esp, 0); /* 0x2509999E: push 0 */ 11945 PUSH32(esp, edx); /* 0x250999A0: push edx */ 11946 RECOMP_ICALL(0x251381ACu); /* 0x250999A1: call 0x251381ac */ /* not lifted */ 11947 RECOMP_FLAGS_IN(); 11948 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 11949 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11950 esp = esp + 0x1Cu; /* 0x250999A6: add esp, 0x1c */ 11951 _flag_k = FK_ADD; 11952 /* test eax, eax */ /* 0x250999A9: test eax, eax */ 11953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11954 _cf = 0; 11955 _flag_k = FK_TEST; 11956 RECOMP_BACKEDGE(); 11957 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099822; /* 0x250999AB: jne 0x25099822 */ 11958 L_250999B1: 11959 eax = MEM32(ebp + (-0x38)); /* 0x250999B1: mov eax, dword ptr [ebp - 0x38] */ 11960 /* test eax, eax */ /* 0x250999B4: test eax, eax */ 11961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11962 _cf = 0; 11963 _flag_k = FK_TEST; 11964 RECOMP_BACKEDGE(); 11965 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099982; /* 0x250999B6: jne 0x25099982 */ 11966 L_250999B8: 11967 RECOMP_BACKEDGE(); 11968 goto L_25099822; /* 0x250999B8: jmp 0x25099822 */ 11969 L_250999BD: 11970 edi = POP32_VAL(esp); /* 0x250999BD: pop edi */ 11971 esi = POP32_VAL(esp); /* 0x250999BE: pop esi */ 11972 ebx = POP32_VAL(esp); /* 0x250999BF: pop ebx */ 11973 esp = ebp; /* 0x250999C0: mov esp, ebp */ 11974 ebp = POP32_VAL(esp); /* 0x250999C2: pop ebp */ 11975 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250999C3: ret */ 11976 RECOMP_REGS_OUT(); 11977 } 11978 11979 void sub_25099822(void) { 11980 int _fpu_cmp = 0; 11981 uint32_t _cf = 0; 11982 int _df = 1; 11983 uint32_t _flag_k = FK_NONE; 11984 uint32_t _flag_a = 0, _flag_b = 0; 11985 uint32_t _itail_tgt = 0; 11986 RECOMP_REGS_LOCALS 11987 RECOMP_ENTER(0x25099822u); 11988 11989 L_25099822: 11990 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11991 eax = 0; /* 0x25099822: xor eax, eax */ 11992 _cf = 0; 11993 _flag_k = FK_TEST; 11994 PUSH32(esp, eax); /* 0x25099824: push eax */ 11995 PUSH32(esp, 0x251B2598u); /* 0x25099825: push 0x251b2598 */ 11996 PUSH32(esp, 0x251B2598u); /* 0x2509982A: push 0x251b2598 */ 11997 PUSH32(esp, eax); /* 0x2509982F: push eax */ 11998 PUSH32(esp, eax); /* 0x25099830: push eax */ 11999 MEM32(ebp + (-0x40)) = eax; /* 0x25099831: mov dword ptr [ebp - 0x40], eax */ 12000 MEM32(ebp + (-0x3C)) = eax; /* 0x25099834: mov dword ptr [ebp - 0x3c], eax */ 12001 RECOMP_ICALL(0x251381ACu); /* 0x25099837: call 0x251381ac */ /* not lifted */ 12002 RECOMP_FLAGS_IN(); 12003 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 12004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12005 esp = esp + 0x14u; /* 0x2509983C: add esp, 0x14 */ 12006 _flag_k = FK_ADD; 12007 /* test eax, eax */ /* 0x2509983F: test eax, eax */ 12008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12009 _cf = 0; 12010 _flag_k = FK_TEST; 12011 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509984B; /* 0x25099841: jne 0x2509984b */ 12012 L_25099843: 12013 ecx = ebp + (-0x40); /* 0x25099843: lea ecx, [ebp - 0x40] */ 12014 RECOMP_ICALL(0x2509DA50u); /* 0x25099846: call 0x2509da50 */ /* not lifted */ 12015 RECOMP_FLAGS_IN(); 12016 L_2509984B: 12017 esi = MEM32(ebp + (-0x38)); /* 0x2509984B: mov esi, dword ptr [ebp - 0x38] */ 12018 /* cmp esi, MEM32(ebp + (-0x40)) */ /* 0x2509984E: cmp esi, dword ptr [ebp - 0x40] */ 12019 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 12020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12021 _flag_k = FK_CMP; 12022 if (CMP_EQ(_flag_a, _flag_b)) goto L_250999BD; /* 0x25099851: je 0x250999bd */ 12023 L_25099857: 12024 edi = MEM32(0x251512FC); /* 0x25099857: mov edi, dword ptr [0x251512fc] */ 12025 PUSH32(esp, 0x251B4078u); /* 0x2509985D: push 0x251b4078 */ 12026 ecx = 0x251B4078u; /* 0x25099862: mov ecx, 0x251b4078 */ 12027 MEM32(ebp + (-0x10)) = esi; /* 0x25099867: mov dword ptr [ebp - 0x10], esi */ 12028 RECOMP_ICALL(edi); /* 0x2509986A: call edi */ 12029 RECOMP_FLAGS_IN(); 12030 /* test eax, eax */ /* 0x2509986C: test eax, eax */ 12031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12032 _cf = 0; 12033 _flag_k = FK_TEST; 12034 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099880; /* 0x2509986E: jne 0x25099880 */ 12035 L_25099870: 12036 PUSH32(esp, 0x251B4078u); /* 0x25099870: push 0x251b4078 */ 12037 ecx = 0x251B4050u; /* 0x25099875: mov ecx, 0x251b4050 */ 12038 RECOMP_ICALL(edi); /* 0x2509987A: call edi */ 12039 RECOMP_FLAGS_IN(); 12040 /* test eax, eax */ /* 0x2509987C: test eax, eax */ 12041 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12042 _cf = 0; 12043 _flag_k = FK_TEST; 12044 if (TEST_Z(_flag_a, _flag_b)) goto L_250998F6; /* 0x2509987E: je 0x250998f6 */ 12045 L_25099880: 12046 PUSH32(esp, 0); /* 0x25099880: push 0 */ 12047 PUSH32(esp, 0x251B4050u); /* 0x25099882: push 0x251b4050 */ 12048 PUSH32(esp, 0x251B4C30u); /* 0x25099887: push 0x251b4c30 */ 12049 PUSH32(esp, 0); /* 0x2509988C: push 0 */ 12050 PUSH32(esp, ebx); /* 0x2509988E: push ebx */ 12051 RECOMP_ICALL(0x251381ACu); /* 0x2509988F: call 0x251381ac */ /* not lifted */ 12052 RECOMP_FLAGS_IN(); 12053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 12054 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12055 esp = esp + 0x14u; /* 0x25099894: add esp, 0x14 */ 12056 _flag_k = FK_ADD; 12057 /* test eax, eax */ /* 0x25099897: test eax, eax */ 12058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12059 _cf = 0; 12060 _flag_k = FK_TEST; 12061 if (TEST_Z(_flag_a, _flag_b)) goto L_250998F6; /* 0x25099899: je 0x250998f6 */ 12062 L_2509989B: 12063 edx = ebp + (-0x4); /* 0x2509989B: lea edx, [ebp - 4] */ 12064 MEM32(ebp + (-0x4)) = eax; /* 0x2509989E: mov dword ptr [ebp - 4], eax */ 12065 PUSH32(esp, edx); /* 0x250998A1: push edx */ 12066 eax = ebp + (-0x18); /* 0x250998A2: lea eax, [ebp - 0x18] */ 12067 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x13Cu); 12068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12069 esi = esi + 0x13Cu; /* 0x250998A5: add esi, 0x13c */ 12070 _flag_k = FK_ADD; 12071 PUSH32(esp, eax); /* 0x250998AB: push eax */ 12072 ecx = esi; /* 0x250998AC: mov ecx, esi */ 12073 RECOMP_ICALL(0x2509DF10u); /* 0x250998AE: call 0x2509df10 */ /* not lifted */ 12074 RECOMP_FLAGS_IN(); 12075 ecx = ebp + (-0x4); /* 0x250998B3: lea ecx, [ebp - 4] */ 12076 PUSH32(esp, ecx); /* 0x250998B6: push ecx */ 12077 edx = ebp + (-0x1C); /* 0x250998B7: lea edx, [ebp - 0x1c] */ 12078 PUSH32(esp, edx); /* 0x250998BA: push edx */ 12079 ecx = esi; /* 0x250998BB: mov ecx, esi */ 12080 ebx = eax; /* 0x250998BD: mov ebx, eax */ 12081 RECOMP_ICALL(0x2509DED0u); /* 0x250998BF: call 0x2509ded0 */ /* not lifted */ 12082 RECOMP_FLAGS_IN(); 12083 edi = MEM32(eax); /* 0x250998C4: mov edi, dword ptr [eax] */ 12084 ebx = MEM32(ebx); /* 0x250998C6: mov ebx, dword ptr [ebx] */ 12085 eax = ebp + (-0xC); /* 0x250998C8: lea eax, [ebp - 0xc] */ 12086 PUSH32(esp, eax); /* 0x250998CB: push eax */ 12087 PUSH32(esp, ebx); /* 0x250998CC: push ebx */ 12088 PUSH32(esp, edi); /* 0x250998CD: push edi */ 12089 MEM32(ebp + (-0xC)) = 0; /* 0x250998CE: mov dword ptr [ebp - 0xc], 0 */ 12090 RECOMP_ICALL(0x2509E010u); /* 0x250998D5: call 0x2509e010 */ /* not lifted */ 12091 RECOMP_FLAGS_IN(); 12092 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12094 esp = esp + 0xCu; /* 0x250998DA: add esp, 0xc */ 12095 _flag_k = FK_ADD; 12096 PUSH32(esp, ebx); /* 0x250998DD: push ebx */ 12097 PUSH32(esp, edi); /* 0x250998DE: push edi */ 12098 ecx = ebp + (-0x20); /* 0x250998DF: lea ecx, [ebp - 0x20] */ 12099 PUSH32(esp, ecx); /* 0x250998E2: push ecx */ 12100 ecx = esi; /* 0x250998E3: mov ecx, esi */ 12101 RECOMP_ICALL(0x25006020u); /* 0x250998E5: call 0x25006020 */ /* not lifted */ 12102 RECOMP_FLAGS_IN(); 12103 edi = MEM32(0x251512FC); /* 0x250998EA: mov edi, dword ptr [0x251512fc] */ 12104 ebx = MEM32(ebp + (-0x8)); /* 0x250998F0: mov ebx, dword ptr [ebp - 8] */ 12105 esi = MEM32(ebp + (-0x10)); /* 0x250998F3: mov esi, dword ptr [ebp - 0x10] */ 12106 L_250998F6: 12107 PUSH32(esp, 0x251B4078u); /* 0x250998F6: push 0x251b4078 */ 12108 ecx = 0x251B4078u; /* 0x250998FB: mov ecx, 0x251b4078 */ 12109 RECOMP_ICALL(edi); /* 0x25099900: call edi */ 12110 RECOMP_FLAGS_IN(); 12111 /* test eax, eax */ /* 0x25099902: test eax, eax */ 12112 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12113 _cf = 0; 12114 _flag_k = FK_TEST; 12115 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099916; /* 0x25099904: jne 0x25099916 */ 12116 L_25099906: 12117 PUSH32(esp, 0x251B4078u); /* 0x25099906: push 0x251b4078 */ 12118 ecx = 0x251B4008u; /* 0x2509990B: mov ecx, 0x251b4008 */ 12119 RECOMP_ICALL(edi); /* 0x25099910: call edi */ 12120 RECOMP_FLAGS_IN(); 12121 /* test eax, eax */ /* 0x25099912: test eax, eax */ 12122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12123 _cf = 0; 12124 _flag_k = FK_TEST; 12125 if (TEST_Z(_flag_a, _flag_b)) goto L_25099977; /* 0x25099914: je 0x25099977 */ 12126 L_25099916: 12127 /* test ebx, ebx */ /* 0x25099916: test ebx, ebx */ 12128 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12129 _cf = 0; 12130 _flag_k = FK_TEST; 12131 if (TEST_Z(_flag_a, _flag_b)) goto L_25099977; /* 0x25099918: je 0x25099977 */ 12132 L_2509991A: 12133 eax = ebx + 0x8; /* 0x2509991A: lea eax, [ebx + 8] */ 12134 /* test eax, eax */ /* 0x2509991D: test eax, eax */ 12135 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12136 _cf = 0; 12137 _flag_k = FK_TEST; 12138 if (TEST_Z(_flag_a, _flag_b)) goto L_25099977; /* 0x2509991F: je 0x25099977 */ 12139 L_25099921: 12140 edx = ebp + (-0x4); /* 0x25099921: lea edx, [ebp - 4] */ 12141 MEM32(ebp + (-0x4)) = eax; /* 0x25099924: mov dword ptr [ebp - 4], eax */ 12142 PUSH32(esp, edx); /* 0x25099927: push edx */ 12143 eax = ebp + (-0x24); /* 0x25099928: lea eax, [ebp - 0x24] */ 12144 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x154u); 12145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12146 esi = esi + 0x154u; /* 0x2509992B: add esi, 0x154 */ 12147 _flag_k = FK_ADD; 12148 PUSH32(esp, eax); /* 0x25099931: push eax */ 12149 ecx = esi; /* 0x25099932: mov ecx, esi */ 12150 RECOMP_ICALL(0x2509DF10u); /* 0x25099934: call 0x2509df10 */ /* not lifted */ 12151 RECOMP_FLAGS_IN(); 12152 ecx = ebp + (-0x4); /* 0x25099939: lea ecx, [ebp - 4] */ 12153 PUSH32(esp, ecx); /* 0x2509993C: push ecx */ 12154 edx = ebp + (-0x28); /* 0x2509993D: lea edx, [ebp - 0x28] */ 12155 PUSH32(esp, edx); /* 0x25099940: push edx */ 12156 ecx = esi; /* 0x25099941: mov ecx, esi */ 12157 ebx = eax; /* 0x25099943: mov ebx, eax */ 12158 RECOMP_ICALL(0x2509DED0u); /* 0x25099945: call 0x2509ded0 */ /* not lifted */ 12159 RECOMP_FLAGS_IN(); 12160 edi = MEM32(eax); /* 0x2509994A: mov edi, dword ptr [eax] */ 12161 eax = MEM32(ebp + (-0x28)); /* 0x2509994C: mov eax, dword ptr [ebp - 0x28] */ 12162 ebx = MEM32(ebx); /* 0x2509994F: mov ebx, dword ptr [ebx] */ 12163 PUSH32(esp, eax); /* 0x25099951: push eax */ 12164 ecx = ebp + (-0x14); /* 0x25099952: lea ecx, [ebp - 0x14] */ 12165 PUSH32(esp, ecx); /* 0x25099955: push ecx */ 12166 PUSH32(esp, ebx); /* 0x25099956: push ebx */ 12167 PUSH32(esp, edi); /* 0x25099957: push edi */ 12168 MEM32(ebp + (-0x14)) = 0; /* 0x25099958: mov dword ptr [ebp - 0x14], 0 */ 12169 RECOMP_ICALL(0x2509E010u); /* 0x2509995F: call 0x2509e010 */ /* not lifted */ 12170 RECOMP_FLAGS_IN(); 12171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 12172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12173 esp = esp + 0x10u; /* 0x25099964: add esp, 0x10 */ 12174 _flag_k = FK_ADD; 12175 PUSH32(esp, ebx); /* 0x25099967: push ebx */ 12176 PUSH32(esp, edi); /* 0x25099968: push edi */ 12177 edx = ebp + (-0x2C); /* 0x25099969: lea edx, [ebp - 0x2c] */ 12178 PUSH32(esp, edx); /* 0x2509996C: push edx */ 12179 ecx = esi; /* 0x2509996D: mov ecx, esi */ 12180 RECOMP_ICALL(0x250061D0u); /* 0x2509996F: call 0x250061d0 */ /* not lifted */ 12181 RECOMP_FLAGS_IN(); 12182 ebx = MEM32(ebp + (-0x8)); /* 0x25099974: mov ebx, dword ptr [ebp - 8] */ 12183 L_25099977: 12184 eax = MEM32(ebp + (-0x38)); /* 0x25099977: mov eax, dword ptr [ebp - 0x38] */ 12185 /* test eax, eax */ /* 0x2509997A: test eax, eax */ 12186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12187 _cf = 0; 12188 _flag_k = FK_TEST; 12189 RECOMP_BACKEDGE(); 12190 if (TEST_Z(_flag_a, _flag_b)) goto L_25099822; /* 0x2509997C: je 0x25099822 */ 12191 L_25099982: 12192 eax = MEM32(ebp + (-0x34)); /* 0x25099982: mov eax, dword ptr [ebp - 0x34] */ 12193 PUSH32(esp, eax); /* 0x25099985: push eax */ 12194 ecx = ebp + (-0x38); /* 0x25099986: lea ecx, [ebp - 0x38] */ 12195 PUSH32(esp, ecx); /* 0x25099989: push ecx */ 12196 RECOMP_ICALL(0x250E3530u); /* 0x2509998A: call 0x250e3530 */ /* not lifted */ 12197 RECOMP_FLAGS_IN(); 12198 edx = MEM32(ebp + (-0x38)); /* 0x2509998F: mov edx, dword ptr [ebp - 0x38] */ 12199 PUSH32(esp, 0); /* 0x25099992: push 0 */ 12200 PUSH32(esp, 0x251B2970u); /* 0x25099994: push 0x251b2970 */ 12201 PUSH32(esp, 0x251B2970u); /* 0x25099999: push 0x251b2970 */ 12202 PUSH32(esp, 0); /* 0x2509999E: push 0 */ 12203 PUSH32(esp, edx); /* 0x250999A0: push edx */ 12204 RECOMP_ICALL(0x251381ACu); /* 0x250999A1: call 0x251381ac */ /* not lifted */ 12205 RECOMP_FLAGS_IN(); 12206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 12207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12208 esp = esp + 0x1Cu; /* 0x250999A6: add esp, 0x1c */ 12209 _flag_k = FK_ADD; 12210 /* test eax, eax */ /* 0x250999A9: test eax, eax */ 12211 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12212 _cf = 0; 12213 _flag_k = FK_TEST; 12214 RECOMP_BACKEDGE(); 12215 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099822; /* 0x250999AB: jne 0x25099822 */ 12216 L_250999B1: 12217 eax = MEM32(ebp + (-0x38)); /* 0x250999B1: mov eax, dword ptr [ebp - 0x38] */ 12218 /* test eax, eax */ /* 0x250999B4: test eax, eax */ 12219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12220 _cf = 0; 12221 _flag_k = FK_TEST; 12222 RECOMP_BACKEDGE(); 12223 if (TEST_NZ(_flag_a, _flag_b)) goto L_25099982; /* 0x250999B6: jne 0x25099982 */ 12224 L_250999B8: 12225 RECOMP_BACKEDGE(); 12226 goto L_25099822; /* 0x250999B8: jmp 0x25099822 */ 12227 L_250999BD: 12228 edi = POP32_VAL(esp); /* 0x250999BD: pop edi */ 12229 esi = POP32_VAL(esp); /* 0x250999BE: pop esi */ 12230 ebx = POP32_VAL(esp); /* 0x250999BF: pop ebx */ 12231 esp = ebp; /* 0x250999C0: mov esp, ebp */ 12232 ebp = POP32_VAL(esp); /* 0x250999C2: pop ebp */ 12233 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250999C3: ret */ 12234 RECOMP_REGS_OUT(); 12235 } 12236 12237 void sub_250999D0(void) { 12238 int _fpu_cmp = 0; 12239 uint32_t _cf = 0; 12240 int _df = 1; 12241 uint32_t _flag_k = FK_NONE; 12242 uint32_t _flag_a = 0, _flag_b = 0; 12243 uint32_t _itail_tgt = 0; 12244 RECOMP_REGS_LOCALS 12245 RECOMP_ENTER(0x250999D0u); 12246 12247 L_250999D0: 12248 PUSH32(esp, ebp); /* 0x250999D0: push ebp */ 12249 ebp = esp; /* 0x250999D1: mov ebp, esp */ 12250 PUSH32(esp, 0xFFFFFFFFu); /* 0x250999D3: push -1 */ 12251 PUSH32(esp, 0x25149899u); /* 0x250999D5: push 0x25149899 */ 12252 eax = MEM32(FS_BASE + (0)); /* 0x250999DA: mov eax, dword ptr fs:[0] */ 12253 PUSH32(esp, eax); /* 0x250999E0: push eax */ 12254 MEM32(FS_BASE + (0)) = esp; /* 0x250999E1: mov dword ptr fs:[0], esp */ 12255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12257 esp = esp - 0xCu; /* 0x250999E8: sub esp, 0xc */ 12258 _flag_k = FK_CMP; 12259 PUSH32(esp, ebx); /* 0x250999EB: push ebx */ 12260 PUSH32(esp, esi); /* 0x250999EC: push esi */ 12261 esi = ecx; /* 0x250999ED: mov esi, ecx */ 12262 PUSH32(esp, edi); /* 0x250999EF: push edi */ 12263 MEM32(ebp + (-0x10)) = esi; /* 0x250999F0: mov dword ptr [ebp - 0x10], esi */ 12264 MEM32(esi) = 0x251560F0u; /* 0x250999F3: mov dword ptr [esi], 0x251560f0 */ 12265 MEM32(esi + 0x8) = 0x251560DCu; /* 0x250999F9: mov dword ptr [esi + 8], 0x251560dc */ 12266 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12267 ebx = 0; /* 0x25099A00: xor ebx, ebx */ 12268 _cf = 0; 12269 _flag_k = FK_TEST; 12270 PUSH32(esp, ebx); /* 0x25099A02: push ebx */ 12271 MEM32(ebp + (-0x4)) = ebx; /* 0x25099A03: mov dword ptr [ebp - 4], ebx */ 12272 RECOMP_ICALL(0x2509D4E0u); /* 0x25099A06: call 0x2509d4e0 */ /* not lifted */ 12273 RECOMP_FLAGS_IN(); 12274 ecx = esi; /* 0x25099A0B: mov ecx, esi */ 12275 RECOMP_ICALL(0x2509A100u); /* 0x25099A0D: call 0x2509a100 */ /* not lifted */ 12276 RECOMP_FLAGS_IN(); 12277 eax = MEM32(esi + 0x44); /* 0x25099A12: mov eax, dword ptr [esi + 0x44] */ 12278 /* cmp eax, ebx */ /* 0x25099A15: cmp eax, ebx */ 12279 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12281 _flag_k = FK_CMP; 12282 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099A78; /* 0x25099A17: je 0x25099a78 */ 12283 L_25099A19: 12284 eax = MEM32(eax + 0x4); /* 0x25099A19: mov eax, dword ptr [eax + 4] */ 12285 edi = MEM32(eax); /* 0x25099A1C: mov edi, dword ptr [eax] */ 12286 /* cmp edi, eax */ /* 0x25099A1E: cmp edi, eax */ 12287 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12289 _flag_k = FK_CMP; 12290 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099A39; /* 0x25099A20: je 0x25099a39 */ 12291 L_25099A22: 12292 ecx = MEM32(edi + 0x8); /* 0x25099A22: mov ecx, dword ptr [edi + 8] */ 12293 /* cmp ecx, ebx */ /* 0x25099A25: cmp ecx, ebx */ 12294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12296 _flag_k = FK_CMP; 12297 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099A2F; /* 0x25099A27: je 0x25099a2f */ 12298 L_25099A29: 12299 eax = MEM32(ecx); /* 0x25099A29: mov eax, dword ptr [ecx] */ 12300 PUSH32(esp, 1); /* 0x25099A2B: push 1 */ 12301 RECOMP_ICALL(MEM32(eax)); /* 0x25099A2D: call dword ptr [eax] */ 12302 RECOMP_FLAGS_IN(); 12303 L_25099A2F: 12304 ecx = MEM32(esi + 0x44); /* 0x25099A2F: mov ecx, dword ptr [esi + 0x44] */ 12305 edi = MEM32(edi); /* 0x25099A32: mov edi, dword ptr [edi] */ 12306 /* cmp edi, MEM32(ecx + 0x4) */ /* 0x25099A34: cmp edi, dword ptr [ecx + 4] */ 12307 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12309 _flag_k = FK_CMP; 12310 RECOMP_BACKEDGE(); 12311 if (CMP_NE(_flag_a, _flag_b)) goto L_25099A22; /* 0x25099A37: jne 0x25099a22 */ 12312 L_25099A39: 12313 edi = MEM32(esi + 0x44); /* 0x25099A39: mov edi, dword ptr [esi + 0x44] */ 12314 /* cmp edi, ebx */ /* 0x25099A3C: cmp edi, ebx */ 12315 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12317 _flag_k = FK_CMP; 12318 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099A75; /* 0x25099A3E: je 0x25099a75 */ 12319 L_25099A40: 12320 eax = MEM32(edi + 0x4); /* 0x25099A40: mov eax, dword ptr [edi + 4] */ 12321 PUSH32(esp, eax); /* 0x25099A43: push eax */ 12322 edx = ebp + (-0x14); /* 0x25099A44: lea edx, [ebp - 0x14] */ 12323 PUSH32(esp, edx); /* 0x25099A47: push edx */ 12324 ecx = edi; /* 0x25099A48: mov ecx, edi */ 12325 RECOMP_ICALL(0x25085270u); /* 0x25099A4A: call 0x25085270 */ /* not lifted */ 12326 RECOMP_FLAGS_IN(); 12327 eax = MEM32(eax); /* 0x25099A4F: mov eax, dword ptr [eax] */ 12328 PUSH32(esp, eax); /* 0x25099A51: push eax */ 12329 ecx = ebp + (-0x18); /* 0x25099A52: lea ecx, [ebp - 0x18] */ 12330 PUSH32(esp, ecx); /* 0x25099A55: push ecx */ 12331 ecx = edi; /* 0x25099A56: mov ecx, edi */ 12332 RECOMP_ICALL(0x250852D0u); /* 0x25099A58: call 0x250852d0 */ /* not lifted */ 12333 RECOMP_FLAGS_IN(); 12334 edx = MEM32(edi + 0x4); /* 0x25099A5D: mov edx, dword ptr [edi + 4] */ 12335 PUSH32(esp, edx); /* 0x25099A60: push edx */ 12336 RECOMP_ICALL(0x25137EECu); /* 0x25099A61: call 0x25137eec */ /* not lifted */ 12337 RECOMP_FLAGS_IN(); 12338 PUSH32(esp, edi); /* 0x25099A66: push edi */ 12339 MEM32(edi + 0x4) = ebx; /* 0x25099A67: mov dword ptr [edi + 4], ebx */ 12340 MEM32(edi + 0x8) = ebx; /* 0x25099A6A: mov dword ptr [edi + 8], ebx */ 12341 RECOMP_ICALL(0x25137EECu); /* 0x25099A6D: call 0x25137eec */ /* not lifted */ 12342 RECOMP_FLAGS_IN(); 12343 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12345 esp = esp + 8; /* 0x25099A72: add esp, 8 */ 12346 _flag_k = FK_ADD; 12347 L_25099A75: 12348 MEM32(esi + 0x44) = ebx; /* 0x25099A75: mov dword ptr [esi + 0x44], ebx */ 12349 L_25099A78: 12350 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x25099A78: call dword ptr [0x251515d8] */ 12351 RECOMP_FLAGS_IN(); 12352 edx = MEM32(eax); /* 0x25099A7E: mov edx, dword ptr [eax] */ 12353 PUSH32(esp, esi); /* 0x25099A80: push esi */ 12354 ecx = eax; /* 0x25099A81: mov ecx, eax */ 12355 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x25099A83: call dword ptr [edx + 0x14] */ 12356 RECOMP_FLAGS_IN(); 12357 ecx = MEM32(esi + 0x3C); /* 0x25099A86: mov ecx, dword ptr [esi + 0x3c] */ 12358 /* cmp ecx, ebx */ /* 0x25099A89: cmp ecx, ebx */ 12359 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12361 _flag_k = FK_CMP; 12362 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099A93; /* 0x25099A8B: je 0x25099a93 */ 12363 L_25099A8D: 12364 eax = MEM32(ecx); /* 0x25099A8D: mov eax, dword ptr [ecx] */ 12365 PUSH32(esp, ebx); /* 0x25099A8F: push ebx */ 12366 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x25099A90: call dword ptr [eax + 0x28] */ 12367 RECOMP_FLAGS_IN(); 12368 L_25099A93: 12369 edi = MEM32(esi + 0x48); /* 0x25099A93: mov edi, dword ptr [esi + 0x48] */ 12370 /* cmp edi, ebx */ /* 0x25099A96: cmp edi, ebx */ 12371 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12373 _flag_k = FK_CMP; 12374 MEM32(esi + 0x3C) = ebx; /* 0x25099A98: mov dword ptr [esi + 0x3c], ebx */ 12375 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099AC7; /* 0x25099A9B: je 0x25099ac7 */ 12376 L_25099A9D: 12377 ecx = MEM32(edi + 0x8); /* 0x25099A9D: mov ecx, dword ptr [edi + 8] */ 12378 edx = MEM32(edi + 0x4); /* 0x25099AA0: mov edx, dword ptr [edi + 4] */ 12379 PUSH32(esp, ecx); /* 0x25099AA3: push ecx */ 12380 PUSH32(esp, edx); /* 0x25099AA4: push edx */ 12381 ecx = edi; /* 0x25099AA5: mov ecx, edi */ 12382 RECOMP_ICALL(0x25093260u); /* 0x25099AA7: call 0x25093260 */ /* not lifted */ 12383 RECOMP_FLAGS_IN(); 12384 eax = MEM32(edi + 0x4); /* 0x25099AAC: mov eax, dword ptr [edi + 4] */ 12385 PUSH32(esp, eax); /* 0x25099AAF: push eax */ 12386 RECOMP_ICALL(0x25137EECu); /* 0x25099AB0: call 0x25137eec */ /* not lifted */ 12387 RECOMP_FLAGS_IN(); 12388 PUSH32(esp, edi); /* 0x25099AB5: push edi */ 12389 MEM32(edi + 0x4) = ebx; /* 0x25099AB6: mov dword ptr [edi + 4], ebx */ 12390 MEM32(edi + 0x8) = ebx; /* 0x25099AB9: mov dword ptr [edi + 8], ebx */ 12391 MEM32(edi + 0xC) = ebx; /* 0x25099ABC: mov dword ptr [edi + 0xc], ebx */ 12392 RECOMP_ICALL(0x25137EECu); /* 0x25099ABF: call 0x25137eec */ /* not lifted */ 12393 RECOMP_FLAGS_IN(); 12394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12396 esp = esp + 8; /* 0x25099AC4: add esp, 8 */ 12397 _flag_k = FK_ADD; 12398 L_25099AC7: 12399 ecx = MEM32(esi + 0x10); /* 0x25099AC7: mov ecx, dword ptr [esi + 0x10] */ 12400 /* cmp ecx, ebx */ /* 0x25099ACA: cmp ecx, ebx */ 12401 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12403 _flag_k = FK_CMP; 12404 MEM32(esi + 0x48) = ebx; /* 0x25099ACC: mov dword ptr [esi + 0x48], ebx */ 12405 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099AD7; /* 0x25099ACF: je 0x25099ad7 */ 12406 L_25099AD1: 12407 edx = MEM32(ecx); /* 0x25099AD1: mov edx, dword ptr [ecx] */ 12408 PUSH32(esp, 1); /* 0x25099AD3: push 1 */ 12409 RECOMP_ICALL(MEM32(edx)); /* 0x25099AD5: call dword ptr [edx] */ 12410 RECOMP_FLAGS_IN(); 12411 L_25099AD7: 12412 /* cmp MEM32(esi + 0x4C), ebx */ /* 0x25099AD7: cmp dword ptr [esi + 0x4c], ebx */ 12413 _flag_a = (uint32_t)(MEM32(esi + 0x4C)); _flag_b = (uint32_t)(ebx); 12414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12415 _flag_k = FK_CMP; 12416 MEM32(esi + 0x10) = ebx; /* 0x25099ADA: mov dword ptr [esi + 0x10], ebx */ 12417 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099B42; /* 0x25099ADD: je 0x25099b42 */ 12418 L_25099ADF: 12419 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12420 edi = 0; /* 0x25099ADF: xor edi, edi */ 12421 _cf = 0; 12422 _flag_k = FK_TEST; 12423 L_25099AE1: 12424 eax = MEM32(esi + 0x4C); /* 0x25099AE1: mov eax, dword ptr [esi + 0x4c] */ 12425 ecx = MEM32(eax + 0x4); /* 0x25099AE4: mov ecx, dword ptr [eax + 4] */ 12426 /* cmp ecx, ebx */ /* 0x25099AE7: cmp ecx, ebx */ 12427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12429 _flag_k = FK_CMP; 12430 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099B1A; /* 0x25099AE9: je 0x25099b1a */ 12431 L_25099AEB: 12432 edx = MEM32(eax + 0x8); /* 0x25099AEB: mov edx, dword ptr [eax + 8] */ 12433 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12435 edx = edx - ecx; /* 0x25099AEE: sub edx, ecx */ 12436 _flag_k = FK_CMP; 12437 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x25099AF0: sar edx, 2 */ 12438 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12439 edx = (uint32_t)((int32_t)edx >> 2u); 12440 /* cmp edi, edx */ /* 0x25099AF3: cmp edi, edx */ 12441 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 12442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12443 _flag_k = FK_CMP; 12444 if (CMP_AE(_flag_a, _flag_b)) goto L_25099B1A; /* 0x25099AF5: jae 0x25099b1a */ 12445 L_25099AF7: 12446 eax = ecx; /* 0x25099AF7: mov eax, ecx */ 12447 ecx = MEM32(eax + edi * 4); /* 0x25099AF9: mov ecx, dword ptr [eax + edi*4] */ 12448 ecx = MEM32(ecx + 0x4); /* 0x25099AFC: mov ecx, dword ptr [ecx + 4] */ 12449 edx = MEM32(ecx); /* 0x25099AFF: mov edx, dword ptr [ecx] */ 12450 PUSH32(esp, ebx); /* 0x25099B01: push ebx */ 12451 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x25099B02: call dword ptr [edx + 0x28] */ 12452 RECOMP_FLAGS_IN(); 12453 eax = MEM32(esi + 0x4C); /* 0x25099B05: mov eax, dword ptr [esi + 0x4c] */ 12454 ecx = MEM32(eax + 0x4); /* 0x25099B08: mov ecx, dword ptr [eax + 4] */ 12455 edx = MEM32(ecx + edi * 4); /* 0x25099B0B: mov edx, dword ptr [ecx + edi*4] */ 12456 PUSH32(esp, edx); /* 0x25099B0E: push edx */ 12457 RECOMP_ICALL(0x25137EECu); /* 0x25099B0F: call 0x25137eec */ /* not lifted */ 12458 RECOMP_FLAGS_IN(); 12459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12461 esp = esp + 4; /* 0x25099B14: add esp, 4 */ 12462 _flag_k = FK_ADD; 12463 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 12464 edi = edi + 1; /* 0x25099B17: inc edi */ 12465 _flag_k = FK_INC; 12466 RECOMP_BACKEDGE(); 12467 goto L_25099AE1; /* 0x25099B18: jmp 0x25099ae1 */ 12468 L_25099B1A: 12469 edi = MEM32(esi + 0x4C); /* 0x25099B1A: mov edi, dword ptr [esi + 0x4c] */ 12470 /* cmp edi, ebx */ /* 0x25099B1D: cmp edi, ebx */ 12471 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12473 _flag_k = FK_CMP; 12474 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099B3F; /* 0x25099B1F: je 0x25099b3f */ 12475 L_25099B21: 12476 eax = MEM32(edi + 0x4); /* 0x25099B21: mov eax, dword ptr [edi + 4] */ 12477 PUSH32(esp, eax); /* 0x25099B24: push eax */ 12478 MEM32(ebp + (-0x18)) = eax; /* 0x25099B25: mov dword ptr [ebp - 0x18], eax */ 12479 RECOMP_ICALL(0x25137EECu); /* 0x25099B28: call 0x25137eec */ /* not lifted */ 12480 RECOMP_FLAGS_IN(); 12481 PUSH32(esp, edi); /* 0x25099B2D: push edi */ 12482 MEM32(edi + 0x4) = ebx; /* 0x25099B2E: mov dword ptr [edi + 4], ebx */ 12483 MEM32(edi + 0x8) = ebx; /* 0x25099B31: mov dword ptr [edi + 8], ebx */ 12484 MEM32(edi + 0xC) = ebx; /* 0x25099B34: mov dword ptr [edi + 0xc], ebx */ 12485 RECOMP_ICALL(0x25137EECu); /* 0x25099B37: call 0x25137eec */ /* not lifted */ 12486 RECOMP_FLAGS_IN(); 12487 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12489 esp = esp + 8; /* 0x25099B3C: add esp, 8 */ 12490 _flag_k = FK_ADD; 12491 L_25099B3F: 12492 MEM32(esi + 0x4C) = ebx; /* 0x25099B3F: mov dword ptr [esi + 0x4c], ebx */ 12493 L_25099B42: 12494 MEM32(esi + 0x40) = ebx; /* 0x25099B42: mov dword ptr [esi + 0x40], ebx */ 12495 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x25099B45: call dword ptr [0x251515d8] */ 12496 RECOMP_FLAGS_IN(); 12497 edx = MEM32(eax); /* 0x25099B4B: mov edx, dword ptr [eax] */ 12498 PUSH32(esp, esi); /* 0x25099B4D: push esi */ 12499 ecx = eax; /* 0x25099B4E: mov ecx, eax */ 12500 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x25099B50: call dword ptr [edx + 0x14] */ 12501 RECOMP_FLAGS_IN(); 12502 eax = MEM32(0x251515BC); /* 0x25099B53: mov eax, dword ptr [0x251515bc] */ 12503 ecx = MEM32(ebp + (-0xC)); /* 0x25099B58: mov ecx, dword ptr [ebp - 0xc] */ 12504 edi = POP32_VAL(esp); /* 0x25099B5B: pop edi */ 12505 MEM32(esi) = eax; /* 0x25099B5C: mov dword ptr [esi], eax */ 12506 esi = POP32_VAL(esp); /* 0x25099B5E: pop esi */ 12507 ebx = POP32_VAL(esp); /* 0x25099B5F: pop ebx */ 12508 MEM32(FS_BASE + (0)) = ecx; /* 0x25099B60: mov dword ptr fs:[0], ecx */ 12509 esp = ebp; /* 0x25099B67: mov esp, ebp */ 12510 ebp = POP32_VAL(esp); /* 0x25099B69: pop ebp */ 12511 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25099B6A: ret */ 12512 RECOMP_REGS_OUT(); 12513 } 12514 12515 void sub_25099B70(void) { 12516 int _fpu_cmp = 0; 12517 uint32_t _cf = 0; 12518 int _df = 1; 12519 uint32_t _flag_k = FK_NONE; 12520 uint32_t _flag_a = 0, _flag_b = 0; 12521 uint32_t _itail_tgt = 0; 12522 RECOMP_REGS_LOCALS 12523 RECOMP_ENTER(0x25099B70u); 12524 12525 L_25099B70: 12526 PUSH32(esp, ebp); /* 0x25099B70: push ebp */ 12527 ebp = esp; /* 0x25099B71: mov ebp, esp */ 12528 /* test MEM8(ecx + 0x2C), 2 */ /* 0x25099B73: test byte ptr [ecx + 0x2c], 2 */ 12529 _flag_a = (uint32_t)(MEM8(ecx + 0x2C)) << 24; _flag_b = (uint32_t)(2) << 24; 12530 _cf = 0; 12531 _flag_k = FK_NARROW(FK_TEST, 24); 12532 if (TEST_Z(_flag_a, _flag_b)) goto L_25099B8A; /* 0x25099B77: je 0x25099b8a */ 12533 L_25099B79: 12534 eax = MEM32(ebp + 0xC); /* 0x25099B79: mov eax, dword ptr [ebp + 0xc] */ 12535 ecx = MEM32(eax + 0x8); /* 0x25099B7C: mov ecx, dword ptr [eax + 8] */ 12536 PUSH32(esp, 0xAu); /* 0x25099B7F: push 0xa */ 12537 PUSH32(esp, 0); /* 0x25099B81: push 0 */ 12538 PUSH32(esp, 0x1Du); /* 0x25099B83: push 0x1d */ 12539 RECOMP_ICALL(0x250EFE90u); /* 0x25099B85: call 0x250efe90 */ /* not lifted */ 12540 RECOMP_FLAGS_IN(); 12541 L_25099B8A: 12542 ebp = POP32_VAL(esp); /* 0x25099B8A: pop ebp */ 12543 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25099B8B: ret 8 */ 12544 RECOMP_REGS_OUT(); 12545 } 12546 12547 void sub_25099B90(void) { 12548 int _fpu_cmp = 0; 12549 uint32_t _cf = 0; 12550 int _df = 1; 12551 uint32_t _flag_k = FK_NONE; 12552 uint32_t _flag_a = 0, _flag_b = 0; 12553 uint32_t _itail_tgt = 0; 12554 RECOMP_REGS_LOCALS 12555 RECOMP_ENTER(0x25099B90u); 12556 12557 L_25099B90: 12558 PUSH32(esp, ebp); /* 0x25099B90: push ebp */ 12559 ebp = esp; /* 0x25099B91: mov ebp, esp */ 12560 PUSH32(esp, 0xFFFFFFFFu); /* 0x25099B93: push -1 */ 12561 PUSH32(esp, 0x251498DDu); /* 0x25099B95: push 0x251498dd */ 12562 eax = MEM32(FS_BASE + (0)); /* 0x25099B9A: mov eax, dword ptr fs:[0] */ 12563 PUSH32(esp, eax); /* 0x25099BA0: push eax */ 12564 MEM32(FS_BASE + (0)) = esp; /* 0x25099BA1: mov dword ptr fs:[0], esp */ 12565 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x104u); 12566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12567 esp = esp - 0x104u; /* 0x25099BA8: sub esp, 0x104 */ 12568 _flag_k = FK_CMP; 12569 PUSH32(esp, ebx); /* 0x25099BAE: push ebx */ 12570 ebx = ecx; /* 0x25099BAF: mov ebx, ecx */ 12571 /* cmp MEM32(ebx + 0x48), 1 */ /* 0x25099BB1: cmp dword ptr [ebx + 0x48], 1 */ 12572 _flag_a = (uint32_t)(MEM32(ebx + 0x48)); _flag_b = (uint32_t)(1); 12573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12574 _flag_k = FK_CMP; 12575 PUSH32(esp, esi); /* 0x25099BB5: push esi */ 12576 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099BCC; /* 0x25099BB6: je 0x25099bcc */ 12577 L_25099BB8: 12578 esi = POP32_VAL(esp); /* 0x25099BB8: pop esi */ 12579 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 12580 SET_LO8(eax, 0); /* 0x25099BB9: xor al, al */ 12581 _cf = 0; 12582 _flag_k = FK_NARROW(FK_TEST, 24); 12583 ebx = POP32_VAL(esp); /* 0x25099BBB: pop ebx */ 12584 ecx = MEM32(ebp + (-0xC)); /* 0x25099BBC: mov ecx, dword ptr [ebp - 0xc] */ 12585 MEM32(FS_BASE + (0)) = ecx; /* 0x25099BBF: mov dword ptr fs:[0], ecx */ 12586 esp = ebp; /* 0x25099BC6: mov esp, ebp */ 12587 ebp = POP32_VAL(esp); /* 0x25099BC8: pop ebp */ 12588 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25099BC9: ret 8 */ 12589 L_25099BCC: 12590 eax = MEM32(ebp + 0x8); /* 0x25099BCC: mov eax, dword ptr [ebp + 8] */ 12591 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12592 esi = 0; /* 0x25099BCF: xor esi, esi */ 12593 _cf = 0; 12594 _flag_k = FK_TEST; 12595 PUSH32(esp, esi); /* 0x25099BD1: push esi */ 12596 PUSH32(esp, 0x251B2970u); /* 0x25099BD2: push 0x251b2970 */ 12597 PUSH32(esp, 0x251B25B8u); /* 0x25099BD7: push 0x251b25b8 */ 12598 PUSH32(esp, esi); /* 0x25099BDC: push esi */ 12599 PUSH32(esp, eax); /* 0x25099BDD: push eax */ 12600 RECOMP_ICALL(0x251381ACu); /* 0x25099BDE: call 0x251381ac */ /* not lifted */ 12601 RECOMP_FLAGS_IN(); 12602 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 12603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12604 esp = esp + 0x14u; /* 0x25099BE3: add esp, 0x14 */ 12605 _flag_k = FK_ADD; 12606 /* cmp eax, esi */ /* 0x25099BE6: cmp eax, esi */ 12607 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 12608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12609 _flag_k = FK_CMP; 12610 if (CMP_NE(_flag_a, _flag_b)) goto L_25099BFE; /* 0x25099BE8: jne 0x25099bfe */ 12611 L_25099BEA: 12612 esi = POP32_VAL(esp); /* 0x25099BEA: pop esi */ 12613 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 12614 SET_LO8(eax, 0); /* 0x25099BEB: xor al, al */ 12615 _cf = 0; 12616 _flag_k = FK_NARROW(FK_TEST, 24); 12617 ebx = POP32_VAL(esp); /* 0x25099BED: pop ebx */ 12618 ecx = MEM32(ebp + (-0xC)); /* 0x25099BEE: mov ecx, dword ptr [ebp - 0xc] */ 12619 MEM32(FS_BASE + (0)) = ecx; /* 0x25099BF1: mov dword ptr fs:[0], ecx */ 12620 esp = ebp; /* 0x25099BF8: mov esp, ebp */ 12621 ebp = POP32_VAL(esp); /* 0x25099BFA: pop ebp */ 12622 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25099BFB: ret 8 */ 12623 L_25099BFE: 12624 eax = MEM32(eax + 0x1F0); /* 0x25099BFE: mov eax, dword ptr [eax + 0x1f0] */ 12625 /* cmp eax, esi */ /* 0x25099C04: cmp eax, esi */ 12626 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 12627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12628 _flag_k = FK_CMP; 12629 MEM32(ebp + (-0x10)) = eax; /* 0x25099C06: mov dword ptr [ebp - 0x10], eax */ 12630 if (CMP_NE(_flag_a, _flag_b)) goto L_25099C1F; /* 0x25099C09: jne 0x25099c1f */ 12631 L_25099C0B: 12632 esi = POP32_VAL(esp); /* 0x25099C0B: pop esi */ 12633 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 12634 SET_LO8(eax, 0); /* 0x25099C0C: xor al, al */ 12635 _cf = 0; 12636 _flag_k = FK_NARROW(FK_TEST, 24); 12637 ebx = POP32_VAL(esp); /* 0x25099C0E: pop ebx */ 12638 ecx = MEM32(ebp + (-0xC)); /* 0x25099C0F: mov ecx, dword ptr [ebp - 0xc] */ 12639 MEM32(FS_BASE + (0)) = ecx; /* 0x25099C12: mov dword ptr fs:[0], ecx */ 12640 esp = ebp; /* 0x25099C19: mov esp, ebp */ 12641 ebp = POP32_VAL(esp); /* 0x25099C1B: pop ebp */ 12642 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25099C1C: ret 8 */ 12643 L_25099C1F: 12644 ecx = MEM32(ebx + 0x50); /* 0x25099C1F: mov ecx, dword ptr [ebx + 0x50] */ 12645 PUSH32(esp, edi); /* 0x25099C22: push edi */ 12646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 12647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12648 ecx = ecx + 0x18u; /* 0x25099C23: add ecx, 0x18 */ 12649 _flag_k = FK_ADD; 12650 RECOMP_ICALL(0x250E4570u); /* 0x25099C26: call 0x250e4570 */ /* not lifted */ 12651 RECOMP_FLAGS_IN(); 12652 ecx = MEM32(ebx + 0x50); /* 0x25099C2B: mov ecx, dword ptr [ebx + 0x50] */ 12653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 12654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12655 ecx = ecx + 0x18u; /* 0x25099C2E: add ecx, 0x18 */ 12656 _flag_k = FK_ADD; 12657 RECOMP_ICALL(0x250E45B0u); /* 0x25099C31: call 0x250e45b0 */ /* not lifted */ 12658 RECOMP_FLAGS_IN(); 12659 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x25099C36: fstp dword ptr [ebp + 8] */ 12660 eax = MEM32(ebx + 0x50); /* 0x25099C39: mov eax, dword ptr [ebx + 0x50] */ 12661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 12662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12663 eax = eax + 0x18u; /* 0x25099C3C: add eax, 0x18 */ 12664 _flag_k = FK_ADD; 12665 MEM32(eax + 0x8) = esi; /* 0x25099C3F: mov dword ptr [eax + 8], esi */ 12666 MEM32(eax + 0xC) = esi; /* 0x25099C42: mov dword ptr [eax + 0xc], esi */ 12667 MEM8(eax + 0x18) = (uint8_t)(0); /* 0x25099C45: mov byte ptr [eax + 0x18], 0 */ 12668 ecx = MEM32(ebx + 0x50); /* 0x25099C49: mov ecx, dword ptr [ebx + 0x50] */ 12669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 12670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12671 ecx = ecx + 0x18u; /* 0x25099C4C: add ecx, 0x18 */ 12672 _flag_k = FK_ADD; 12673 RECOMP_ICALL(0x250E4550u); /* 0x25099C4F: call 0x250e4550 */ /* not lifted */ 12674 RECOMP_FLAGS_IN(); 12675 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x25099C54: fld dword ptr [ebp + 8] */ 12676 esi = MEM32(ebx + 0x50); /* 0x25099C57: mov esi, dword ptr [ebx + 0x50] */ 12677 _st[0] *= (double)*(float*)ADDR(esi + 0x4); /* 0x25099C5A: fmul dword ptr [esi + 4] */ 12678 _st[0] += (double)*(float*)ADDR(esi + 0x8); /* 0x25099C5D: fadd dword ptr [esi + 8] */ 12679 fp_push(*(double*)ADDR(0x251535F0)); /* 0x25099C60: fld qword ptr [0x251535f0] */ 12680 RECOMP_ICALL(0x251381A0u); /* 0x25099C66: call 0x251381a0 */ /* not lifted */ 12681 RECOMP_FLAGS_IN(); 12682 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8) = _v; } /* 0x25099C6B: fstp dword ptr [esi + 8] */ 12683 esi = MEM32(ebx + 0x50); /* 0x25099C6E: mov esi, dword ptr [ebx + 0x50] */ 12684 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x25099C71: fld dword ptr [ebp + 8] */ 12685 _st[0] *= (double)*(float*)ADDR(esi + 0x10); /* 0x25099C74: fmul dword ptr [esi + 0x10] */ 12686 _st[0] += (double)*(float*)ADDR(esi + 0x14); /* 0x25099C77: fadd dword ptr [esi + 0x14] */ 12687 fp_push(*(double*)ADDR(0x251535F0)); /* 0x25099C7A: fld qword ptr [0x251535f0] */ 12688 RECOMP_ICALL(0x251381A0u); /* 0x25099C80: call 0x251381a0 */ /* not lifted */ 12689 RECOMP_FLAGS_IN(); 12690 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x14) = _v; } /* 0x25099C85: fstp dword ptr [esi + 0x14] */ 12691 esi = MEM32(ebp + 0xC); /* 0x25099C88: mov esi, dword ptr [ebp + 0xc] */ 12692 eax = MEM32(esi + 0x8); /* 0x25099C8B: mov eax, dword ptr [esi + 8] */ 12693 ecx = MEM32(ebx + 0x4C); /* 0x25099C8E: mov ecx, dword ptr [ebx + 0x4c] */ 12694 edx = MEM32(ecx); /* 0x25099C91: mov edx, dword ptr [ecx] */ 12695 PUSH32(esp, eax); /* 0x25099C93: push eax */ 12696 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x25099C94: call dword ptr [edx + 8] */ 12697 RECOMP_FLAGS_IN(); 12698 eax = MEM32(esi + 0x8); /* 0x25099C97: mov eax, dword ptr [esi + 8] */ 12699 ecx = MEM32(ebx + 0x4C); /* 0x25099C9A: mov ecx, dword ptr [ebx + 0x4c] */ 12700 edx = MEM32(ecx); /* 0x25099C9D: mov edx, dword ptr [ecx] */ 12701 PUSH32(esp, 0xAu); /* 0x25099C9F: push 0xa */ 12702 PUSH32(esp, eax); /* 0x25099CA1: push eax */ 12703 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x25099CA2: call dword ptr [edx + 0xc] */ 12704 RECOMP_FLAGS_IN(); 12705 ecx = esi; /* 0x25099CA5: mov ecx, esi */ 12706 RECOMP_ICALL(0x250E05D0u); /* 0x25099CA7: call 0x250e05d0 */ /* not lifted */ 12707 RECOMP_FLAGS_IN(); 12708 ecx = MEM32(esi + 0xC); /* 0x25099CAC: mov ecx, dword ptr [esi + 0xc] */ 12709 RECOMP_ICALL(0x250E2EC0u); /* 0x25099CAF: call 0x250e2ec0 */ /* not lifted */ 12710 RECOMP_FLAGS_IN(); 12711 ecx = 0x10u; /* 0x25099CB4: mov ecx, 0x10 */ 12712 esi = eax; /* 0x25099CB9: mov esi, eax */ 12713 edi = ebp + (-0xD0); /* 0x25099CBB: lea edi, [ebp - 0xd0] */ 12714 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25099CC1: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 12715 eax = MEM32(ebx + 0x50); /* 0x25099CC3: mov eax, dword ptr [ebx + 0x50] */ 12716 MEM32(ebp + (-0x4)) = 0; /* 0x25099CC6: mov dword ptr [ebp - 4], 0 */ 12717 fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x25099CCD: fld dword ptr [eax + 8] */ 12718 fp_push(*(float*)&MEM32(eax)); /* 0x25099CD0: fld dword ptr [eax] */ 12719 MEM32(ebp + (-0x90)) = 0; /* 0x25099CD2: mov dword ptr [ebp - 0x90], 0 */ 12720 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x25099CDC: fstp dword ptr [ebp - 0x7c] */ 12721 MEM32(ebp + (-0x8C)) = 0; /* 0x25099CDF: mov dword ptr [ebp - 0x8c], 0 */ 12722 MEM32(ebp + (-0x88)) = 0; /* 0x25099CE9: mov dword ptr [ebp - 0x88], 0 */ 12723 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x5C)) = _v; } /* 0x25099CF3: fstp dword ptr [ebp - 0x5c] */ 12724 MEM32(ebp + (-0x84)) = 0; /* 0x25099CF6: mov dword ptr [ebp - 0x84], 0 */ 12725 MEM32(ebp + (-0x80)) = 0; /* 0x25099D00: mov dword ptr [ebp - 0x80], 0 */ 12726 MEM32(ebp + (-0x78)) = 0; /* 0x25099D07: mov dword ptr [ebp - 0x78], 0 */ 12727 MEM32(ebp + (-0x74)) = 0; /* 0x25099D0E: mov dword ptr [ebp - 0x74], 0 */ 12728 MEM32(ebp + (-0x70)) = 0; /* 0x25099D15: mov dword ptr [ebp - 0x70], 0 */ 12729 MEM32(ebp + (-0x6C)) = 0; /* 0x25099D1C: mov dword ptr [ebp - 0x6c], 0 */ 12730 MEM32(ebp + (-0x68)) = 0x3F800000u; /* 0x25099D23: mov dword ptr [ebp - 0x68], 0x3f800000 */ 12731 MEM32(ebp + (-0x64)) = 0; /* 0x25099D2A: mov dword ptr [ebp - 0x64], 0 */ 12732 MEM32(ebp + (-0x60)) = 0; /* 0x25099D31: mov dword ptr [ebp - 0x60], 0 */ 12733 MEM32(ebp + (-0x58)) = 0; /* 0x25099D38: mov dword ptr [ebp - 0x58], 0 */ 12734 MEM32(ebp + (-0x54)) = 0x3F800000u; /* 0x25099D3F: mov dword ptr [ebp - 0x54], 0x3f800000 */ 12735 eax = ebp + (-0x90); /* 0x25099D46: lea eax, [ebp - 0x90] */ 12736 PUSH32(esp, eax); /* 0x25099D4C: push eax */ 12737 ecx = ebp + (-0x110); /* 0x25099D4D: lea ecx, [ebp - 0x110] */ 12738 PUSH32(esp, ecx); /* 0x25099D53: push ecx */ 12739 ecx = ebp + (-0xD0); /* 0x25099D54: lea ecx, [ebp - 0xd0] */ 12740 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x25099D5A: mov byte ptr [ebp - 4], 1 */ 12741 RECOMP_ICALL(MEM32(0x25151524)); /* 0x25099D5E: call dword ptr [0x25151524] */ 12742 RECOMP_FLAGS_IN(); 12743 ecx = MEM32(0x25238B58); /* 0x25099D64: mov ecx, dword ptr [0x25238b58] */ 12744 edx = ebp + (-0x110); /* 0x25099D6A: lea edx, [ebp - 0x110] */ 12745 PUSH32(esp, edx); /* 0x25099D70: push edx */ 12746 PUSH32(esp, 0x10u); /* 0x25099D71: push 0x10 */ 12747 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x25099D73: mov byte ptr [ebp - 4], 3 */ 12748 RECOMP_ICALL(0x250E8950u); /* 0x25099D77: call 0x250e8950 */ /* not lifted */ 12749 RECOMP_FLAGS_IN(); 12750 ecx = MEM32(0x25238B94); /* 0x25099D7C: mov ecx, dword ptr [0x25238b94] */ 12751 RECOMP_ICALL(0x250D5FA0u); /* 0x25099D82: call 0x250d5fa0 */ /* not lifted */ 12752 RECOMP_FLAGS_IN(); 12753 /* cmp LO16(eax), 1 */ /* 0x25099D87: cmp ax, 1 */ 12754 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(1) << 16; 12755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12756 _flag_k = FK_NARROW(FK_CMP, 16); 12757 if (CMP_BE(_flag_a, _flag_b)) goto L_25099E1C; /* 0x25099D8B: jbe 0x25099e1c */ 12758 L_25099D91: 12759 eax = MEM32(ebx + 0x50); /* 0x25099D91: mov eax, dword ptr [ebx + 0x50] */ 12760 fp_push(*(float*)&MEM32(eax + 0x14)); /* 0x25099D94: fld dword ptr [eax + 0x14] */ 12761 MEM32(ebp + (-0x50)) = 0x3F800000u; /* 0x25099D97: mov dword ptr [ebp - 0x50], 0x3f800000 */ 12762 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x25099D9E: fstp dword ptr [ebp - 0x30] */ 12763 MEM32(ebp + (-0x4C)) = 0; /* 0x25099DA1: mov dword ptr [ebp - 0x4c], 0 */ 12764 MEM32(ebp + (-0x48)) = 0; /* 0x25099DA8: mov dword ptr [ebp - 0x48], 0 */ 12765 MEM32(ebp + (-0x44)) = 0; /* 0x25099DAF: mov dword ptr [ebp - 0x44], 0 */ 12766 MEM32(ebp + (-0x40)) = 0; /* 0x25099DB6: mov dword ptr [ebp - 0x40], 0 */ 12767 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x25099DBD: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 12768 MEM32(ebp + (-0x38)) = 0; /* 0x25099DC4: mov dword ptr [ebp - 0x38], 0 */ 12769 MEM32(ebp + (-0x34)) = 0; /* 0x25099DCB: mov dword ptr [ebp - 0x34], 0 */ 12770 MEM32(ebp + (-0x2C)) = 0; /* 0x25099DD2: mov dword ptr [ebp - 0x2c], 0 */ 12771 MEM32(ebp + (-0x28)) = 0x3F800000u; /* 0x25099DD9: mov dword ptr [ebp - 0x28], 0x3f800000 */ 12772 MEM32(ebp + (-0x24)) = 0; /* 0x25099DE0: mov dword ptr [ebp - 0x24], 0 */ 12773 MEM32(ebp + (-0x20)) = 0; /* 0x25099DE7: mov dword ptr [ebp - 0x20], 0 */ 12774 MEM32(ebp + (-0x1C)) = 0; /* 0x25099DEE: mov dword ptr [ebp - 0x1c], 0 */ 12775 MEM32(ebp + (-0x18)) = 0; /* 0x25099DF5: mov dword ptr [ebp - 0x18], 0 */ 12776 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x25099DFC: mov dword ptr [ebp - 0x14], 0x3f800000 */ 12777 ecx = ebp + (-0x50); /* 0x25099E03: lea ecx, [ebp - 0x50] */ 12778 PUSH32(esp, ecx); /* 0x25099E06: push ecx */ 12779 ecx = MEM32(0x25238B58); /* 0x25099E07: mov ecx, dword ptr [0x25238b58] */ 12780 PUSH32(esp, 0x11u); /* 0x25099E0D: push 0x11 */ 12781 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x25099E0F: mov byte ptr [ebp - 4], 4 */ 12782 RECOMP_ICALL(0x250E8950u); /* 0x25099E13: call 0x250e8950 */ /* not lifted */ 12783 RECOMP_FLAGS_IN(); 12784 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x25099E18: mov byte ptr [ebp - 4], 3 */ 12785 L_25099E1C: 12786 eax = MEM32(ebp + (-0x10)); /* 0x25099E1C: mov eax, dword ptr [ebp - 0x10] */ 12787 esi = MEM32(eax + 0x48); /* 0x25099E1F: mov esi, dword ptr [eax + 0x48] */ 12788 /* cmp esi, MEM32(eax + 0x4C) */ /* 0x25099E22: cmp esi, dword ptr [eax + 0x4c] */ 12789 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4C)); 12790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12791 _flag_k = FK_CMP; 12792 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099E52; /* 0x25099E25: je 0x25099e52 */ 12793 L_25099E27: 12794 edi = MEM32(ebp + 0xC); /* 0x25099E27: mov edi, dword ptr [ebp + 0xc] */ 12795 ecx = edi; /* 0x25099E2A: mov ecx, edi */ 12796 RECOMP_ICALL(0x250E05D0u); /* 0x25099E2C: call 0x250e05d0 */ /* not lifted */ 12797 RECOMP_FLAGS_IN(); 12798 ecx = ebx + (-0x8); /* 0x25099E31: lea ecx, [ebx - 8] */ 12799 RECOMP_ICALL(0x2509B370u); /* 0x25099E34: call 0x2509b370 */ /* not lifted */ 12800 RECOMP_FLAGS_IN(); 12801 PUSH32(esp, ecx); /* 0x25099E39: push ecx */ 12802 ecx = MEM32(esi); /* 0x25099E3A: mov ecx, dword ptr [esi] */ 12803 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25099E3C: fstp dword ptr [esp] */ 12804 PUSH32(esp, edi); /* 0x25099E3F: push edi */ 12805 RECOMP_ICALL(0x25108C00u); /* 0x25099E40: call 0x25108c00 */ /* not lifted */ 12806 RECOMP_FLAGS_IN(); 12807 edx = MEM32(ebp + (-0x10)); /* 0x25099E45: mov edx, dword ptr [ebp - 0x10] */ 12808 eax = MEM32(edx + 0x4C); /* 0x25099E48: mov eax, dword ptr [edx + 0x4c] */ 12809 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 12810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12811 esi = esi + 4; /* 0x25099E4B: add esi, 4 */ 12812 _flag_k = FK_ADD; 12813 /* cmp esi, eax */ /* 0x25099E4E: cmp esi, eax */ 12814 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 12815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12816 _flag_k = FK_CMP; 12817 RECOMP_BACKEDGE(); 12818 if (CMP_NE(_flag_a, _flag_b)) goto L_25099E27; /* 0x25099E50: jne 0x25099e27 */ 12819 L_25099E52: 12820 edx = MEM32(ebp + 0xC); /* 0x25099E52: mov edx, dword ptr [ebp + 0xc] */ 12821 ecx = MEM32(ebx + 0x4C); /* 0x25099E55: mov ecx, dword ptr [ebx + 0x4c] */ 12822 edx = MEM32(edx + 0x8); /* 0x25099E58: mov edx, dword ptr [edx + 8] */ 12823 eax = MEM32(ecx); /* 0x25099E5B: mov eax, dword ptr [ecx] */ 12824 PUSH32(esp, edx); /* 0x25099E5D: push edx */ 12825 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x25099E5E: call dword ptr [eax + 0x10] */ 12826 RECOMP_FLAGS_IN(); 12827 ecx = MEM32(ebp + (-0xC)); /* 0x25099E61: mov ecx, dword ptr [ebp - 0xc] */ 12828 edi = POP32_VAL(esp); /* 0x25099E64: pop edi */ 12829 esi = POP32_VAL(esp); /* 0x25099E65: pop esi */ 12830 SET_LO8(eax, 1); /* 0x25099E66: mov al, 1 */ 12831 ebx = POP32_VAL(esp); /* 0x25099E68: pop ebx */ 12832 MEM32(FS_BASE + (0)) = ecx; /* 0x25099E69: mov dword ptr fs:[0], ecx */ 12833 esp = ebp; /* 0x25099E70: mov esp, ebp */ 12834 ebp = POP32_VAL(esp); /* 0x25099E72: pop ebp */ 12835 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25099E73: ret 8 */ 12836 RECOMP_REGS_OUT(); 12837 } 12838 12839 void sub_25099DFC(void) { 12840 int _fpu_cmp = 0; 12841 uint32_t _cf = 0; 12842 int _df = 1; 12843 uint32_t _flag_k = FK_NONE; 12844 uint32_t _flag_a = 0, _flag_b = 0; 12845 uint32_t _itail_tgt = 0; 12846 RECOMP_REGS_LOCALS 12847 RECOMP_ENTER(0x25099DFCu); 12848 12849 L_25099DFC: 12850 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x25099DFC: mov dword ptr [ebp - 0x14], 0x3f800000 */ 12851 ecx = ebp + (-0x50); /* 0x25099E03: lea ecx, [ebp - 0x50] */ 12852 PUSH32(esp, ecx); /* 0x25099E06: push ecx */ 12853 ecx = MEM32(0x25238B58); /* 0x25099E07: mov ecx, dword ptr [0x25238b58] */ 12854 PUSH32(esp, 0x11u); /* 0x25099E0D: push 0x11 */ 12855 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x25099E0F: mov byte ptr [ebp - 4], 4 */ 12856 RECOMP_ICALL(0x250E8950u); /* 0x25099E13: call 0x250e8950 */ /* not lifted */ 12857 RECOMP_FLAGS_IN(); 12858 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x25099E18: mov byte ptr [ebp - 4], 3 */ 12859 eax = MEM32(ebp + (-0x10)); /* 0x25099E1C: mov eax, dword ptr [ebp - 0x10] */ 12860 esi = MEM32(eax + 0x48); /* 0x25099E1F: mov esi, dword ptr [eax + 0x48] */ 12861 /* cmp esi, MEM32(eax + 0x4C) */ /* 0x25099E22: cmp esi, dword ptr [eax + 0x4c] */ 12862 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4C)); 12863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12864 _flag_k = FK_CMP; 12865 if (CMP_EQ(_flag_a, _flag_b)) goto L_25099E52; /* 0x25099E25: je 0x25099e52 */ 12866 L_25099E27: 12867 edi = MEM32(ebp + 0xC); /* 0x25099E27: mov edi, dword ptr [ebp + 0xc] */ 12868 ecx = edi; /* 0x25099E2A: mov ecx, edi */ 12869 RECOMP_ICALL(0x250E05D0u); /* 0x25099E2C: call 0x250e05d0 */ /* not lifted */ 12870 RECOMP_FLAGS_IN(); 12871 ecx = ebx + (-0x8); /* 0x25099E31: lea ecx, [ebx - 8] */ 12872 RECOMP_ICALL(0x2509B370u); /* 0x25099E34: call 0x2509b370 */ /* not lifted */ 12873 RECOMP_FLAGS_IN(); 12874 PUSH32(esp, ecx); /* 0x25099E39: push ecx */ 12875 ecx = MEM32(esi); /* 0x25099E3A: mov ecx, dword ptr [esi] */ 12876 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x25099E3C: fstp dword ptr [esp] */ 12877 PUSH32(esp, edi); /* 0x25099E3F: push edi */ 12878 RECOMP_ICALL(0x25108C00u); /* 0x25099E40: call 0x25108c00 */ /* not lifted */ 12879 RECOMP_FLAGS_IN(); 12880 edx = MEM32(ebp + (-0x10)); /* 0x25099E45: mov edx, dword ptr [ebp - 0x10] */ 12881 eax = MEM32(edx + 0x4C); /* 0x25099E48: mov eax, dword ptr [edx + 0x4c] */ 12882 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 12883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12884 esi = esi + 4; /* 0x25099E4B: add esi, 4 */ 12885 _flag_k = FK_ADD; 12886 /* cmp esi, eax */ /* 0x25099E4E: cmp esi, eax */ 12887 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 12888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12889 _flag_k = FK_CMP; 12890 RECOMP_BACKEDGE(); 12891 if (CMP_NE(_flag_a, _flag_b)) goto L_25099E27; /* 0x25099E50: jne 0x25099e27 */ 12892 L_25099E52: 12893 edx = MEM32(ebp + 0xC); /* 0x25099E52: mov edx, dword ptr [ebp + 0xc] */ 12894 ecx = MEM32(ebx + 0x4C); /* 0x25099E55: mov ecx, dword ptr [ebx + 0x4c] */ 12895 edx = MEM32(edx + 0x8); /* 0x25099E58: mov edx, dword ptr [edx + 8] */ 12896 eax = MEM32(ecx); /* 0x25099E5B: mov eax, dword ptr [ecx] */ 12897 PUSH32(esp, edx); /* 0x25099E5D: push edx */ 12898 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x25099E5E: call dword ptr [eax + 0x10] */ 12899 RECOMP_FLAGS_IN(); 12900 ecx = MEM32(ebp + (-0xC)); /* 0x25099E61: mov ecx, dword ptr [ebp - 0xc] */ 12901 edi = POP32_VAL(esp); /* 0x25099E64: pop edi */ 12902 esi = POP32_VAL(esp); /* 0x25099E65: pop esi */ 12903 SET_LO8(eax, 1); /* 0x25099E66: mov al, 1 */ 12904 ebx = POP32_VAL(esp); /* 0x25099E68: pop ebx */ 12905 MEM32(FS_BASE + (0)) = ecx; /* 0x25099E69: mov dword ptr fs:[0], ecx */ 12906 esp = ebp; /* 0x25099E70: mov esp, ebp */ 12907 ebp = POP32_VAL(esp); /* 0x25099E72: pop ebp */ 12908 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25099E73: ret 8 */ 12909 RECOMP_REGS_OUT(); 12910 } 12911 12912 void sub_25099E80(void) { 12913 int _fpu_cmp = 0; 12914 uint32_t _cf = 0; 12915 int _df = 1; 12916 uint32_t _flag_k = FK_NONE; 12917 uint32_t _flag_a = 0, _flag_b = 0; 12918 uint32_t _itail_tgt = 0; 12919 RECOMP_REGS_LOCALS 12920 RECOMP_ENTER(0x25099E80u); 12921 12922 L_25099E80: 12923 PUSH32(esp, ebp); /* 0x25099E80: push ebp */ 12924 ebp = esp; /* 0x25099E81: mov ebp, esp */ 12925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12927 esp = esp - 8; /* 0x25099E83: sub esp, 8 */ 12928 _flag_k = FK_CMP; 12929 PUSH32(esp, ebx); /* 0x25099E86: push ebx */ 12930 PUSH32(esp, esi); /* 0x25099E87: push esi */ 12931 esi = ecx; /* 0x25099E88: mov esi, ecx */ 12932 SET_LO8(eax, MEM8(esi + 0x2C)); /* 0x25099E8A: mov al, byte ptr [esi + 0x2c] */ 12933 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12934 ebx = 0; /* 0x25099E8D: xor ebx, ebx */ 12935 _cf = 0; 12936 _flag_k = FK_TEST; 12937 /* test LO8(eax), 2 */ /* 0x25099E8F: test al, 2 */ 12938 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24; 12939 _cf = 0; 12940 _flag_k = FK_NARROW(FK_TEST, 24); 12941 PUSH32(esp, edi); /* 0x25099E91: push edi */ 12942 edi = MEM32(ebp + 0x14); /* 0x25099E92: mov edi, dword ptr [ebp + 0x14] */ 12943 if (TEST_Z(_flag_a, _flag_b)) goto L_25099F2D; /* 0x25099E95: je 0x25099f2d */ 12944 L_25099E9B: 12945 eax = MEM32(ebp + 0x10); /* 0x25099E9B: mov eax, dword ptr [ebp + 0x10] */ 12946 ecx = MEM32(eax + 0x8); /* 0x25099E9E: mov ecx, dword ptr [eax + 8] */ 12947 PUSH32(esp, 0xAu); /* 0x25099EA1: push 0xa */ 12948 PUSH32(esp, 1); /* 0x25099EA3: push 1 */ 12949 PUSH32(esp, 0x1Du); /* 0x25099EA5: push 0x1d */ 12950 RECOMP_ICALL(0x250EFE90u); /* 0x25099EA7: call 0x250efe90 */ /* not lifted */ 12951 RECOMP_FLAGS_IN(); 12952 ecx = MEM32(ebp + 0x10); /* 0x25099EAC: mov ecx, dword ptr [ebp + 0x10] */ 12953 ecx = MEM32(ecx + 0x8); /* 0x25099EAF: mov ecx, dword ptr [ecx + 8] */ 12954 PUSH32(esp, 0xAu); /* 0x25099EB2: push 0xa */ 12955 PUSH32(esp, ebx); /* 0x25099EB4: push ebx */ 12956 PUSH32(esp, 0x92u); /* 0x25099EB5: push 0x92 */ 12957 RECOMP_ICALL(0x250EFE90u); /* 0x25099EBA: call 0x250efe90 */ /* not lifted */ 12958 RECOMP_FLAGS_IN(); 12959 edx = MEM32(esi + 0x24); /* 0x25099EBF: mov edx, dword ptr [esi + 0x24] */ 12960 if (16u) _cf = (((edx) >> 15) & 1u); /* 0x25099EC2: shr edx, 0x10 */ 12961 if (16u) { _flag_a = recomp_flags_pack((edx >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12962 edx = edx >> 16u; /* 0x25099EC2: shr edx, 0x10 */ 12963 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 12964 edx = edx & 0xFFu; /* 0x25099EC5: and edx, 0xff */ 12965 _cf = 0; 12966 _flag_k = FK_TEST; 12967 MEM32(ebp + (-0x8)) = edx; /* 0x25099ECB: mov dword ptr [ebp - 8], edx */ 12968 MEM32(ebp + (-0x4)) = ebx; /* 0x25099ECE: mov dword ptr [ebp - 4], ebx */ 12969 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099ED1: fild qword ptr [ebp - 8] */ 12970 MEM32(ebp + (-0x4)) = ebx; /* 0x25099ED4: mov dword ptr [ebp - 4], ebx */ 12971 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099ED7: fmul dword ptr [0x25151b68] */ 12972 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x20) = _v; } /* 0x25099EDD: fstp dword ptr [edi + 0x20] */ 12973 eax = MEM32(esi + 0x24); /* 0x25099EE0: mov eax, dword ptr [esi + 0x24] */ 12974 if (8u) _cf = (((eax) >> 7) & 1u); /* 0x25099EE3: shr eax, 8 */ 12975 if (8u) { _flag_a = recomp_flags_pack((eax >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12976 eax = eax >> 8u; /* 0x25099EE3: shr eax, 8 */ 12977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 12978 eax = eax & 0xFFu; /* 0x25099EE6: and eax, 0xff */ 12979 _cf = 0; 12980 _flag_k = FK_TEST; 12981 MEM32(ebp + (-0x8)) = eax; /* 0x25099EEB: mov dword ptr [ebp - 8], eax */ 12982 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099EEE: fild qword ptr [ebp - 8] */ 12983 MEM32(ebp + (-0x4)) = ebx; /* 0x25099EF1: mov dword ptr [ebp - 4], ebx */ 12984 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099EF4: fmul dword ptr [0x25151b68] */ 12985 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x24) = _v; } /* 0x25099EFA: fstp dword ptr [edi + 0x24] */ 12986 ecx = MEM32(esi + 0x24); /* 0x25099EFD: mov ecx, dword ptr [esi + 0x24] */ 12987 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 12988 ecx = ecx & 0xFFu; /* 0x25099F00: and ecx, 0xff */ 12989 _cf = 0; 12990 _flag_k = FK_TEST; 12991 MEM32(ebp + (-0x8)) = ecx; /* 0x25099F06: mov dword ptr [ebp - 8], ecx */ 12992 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099F09: fild qword ptr [ebp - 8] */ 12993 MEM32(ebp + (-0x4)) = ebx; /* 0x25099F0C: mov dword ptr [ebp - 4], ebx */ 12994 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099F0F: fmul dword ptr [0x25151b68] */ 12995 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x28) = _v; } /* 0x25099F15: fstp dword ptr [edi + 0x28] */ 12996 edx = MEM32(esi + 0x24); /* 0x25099F18: mov edx, dword ptr [esi + 0x24] */ 12997 if (24u) _cf = (((edx) >> 23) & 1u); /* 0x25099F1B: shr edx, 0x18 */ 12998 if (24u) { _flag_a = recomp_flags_pack((edx >> 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12999 edx = edx >> 24u; /* 0x25099F1B: shr edx, 0x18 */ 13000 MEM32(ebp + (-0x8)) = edx; /* 0x25099F1E: mov dword ptr [ebp - 8], edx */ 13001 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099F21: fild qword ptr [ebp - 8] */ 13002 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099F24: fmul dword ptr [0x25151b68] */ 13003 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x40) = _v; } /* 0x25099F2A: fstp dword ptr [edi + 0x40] */ 13004 L_25099F2D: 13005 /* test MEM8(esi + 0x2C), 4 */ /* 0x25099F2D: test byte ptr [esi + 0x2c], 4 */ 13006 _flag_a = (uint32_t)(MEM8(esi + 0x2C)) << 24; _flag_b = (uint32_t)(4) << 24; 13007 _cf = 0; 13008 _flag_k = FK_NARROW(FK_TEST, 24); 13009 if (TEST_Z(_flag_a, _flag_b)) goto L_25099FA0; /* 0x25099F31: je 0x25099fa0 */ 13010 L_25099F33: 13011 eax = MEM32(esi + 0x24); /* 0x25099F33: mov eax, dword ptr [esi + 0x24] */ 13012 if (24u) _cf = (((eax) >> 23) & 1u); /* 0x25099F36: shr eax, 0x18 */ 13013 if (24u) { _flag_a = recomp_flags_pack((eax >> 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13014 eax = eax >> 24u; /* 0x25099F36: shr eax, 0x18 */ 13015 MEM32(ebp + (-0x8)) = eax; /* 0x25099F39: mov dword ptr [ebp - 8], eax */ 13016 MEM32(ebp + (-0x4)) = ebx; /* 0x25099F3C: mov dword ptr [ebp - 4], ebx */ 13017 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099F3F: fild qword ptr [ebp - 8] */ 13018 MEM32(ebp + (-0x4)) = ebx; /* 0x25099F42: mov dword ptr [ebp - 4], ebx */ 13019 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099F45: fmul dword ptr [0x25151b68] */ 13020 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0xC) = _v; } /* 0x25099F4B: fstp dword ptr [edi + 0xc] */ 13021 ecx = MEM32(esi + 0x24); /* 0x25099F4E: mov ecx, dword ptr [esi + 0x24] */ 13022 if (16u) _cf = (((ecx) >> 15) & 1u); /* 0x25099F51: shr ecx, 0x10 */ 13023 if (16u) { _flag_a = recomp_flags_pack((ecx >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13024 ecx = ecx >> 16u; /* 0x25099F51: shr ecx, 0x10 */ 13025 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 13026 ecx = ecx & 0xFFu; /* 0x25099F54: and ecx, 0xff */ 13027 _cf = 0; 13028 _flag_k = FK_TEST; 13029 MEM32(ebp + (-0x8)) = ecx; /* 0x25099F5A: mov dword ptr [ebp - 8], ecx */ 13030 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099F5D: fild qword ptr [ebp - 8] */ 13031 MEM32(ebp + (-0x4)) = ebx; /* 0x25099F60: mov dword ptr [ebp - 4], ebx */ 13032 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099F63: fmul dword ptr [0x25151b68] */ 13033 { float _v = (float)fp_pop(); *(float*)ADDR(edi) = _v; } /* 0x25099F69: fstp dword ptr [edi] */ 13034 edx = MEM32(esi + 0x24); /* 0x25099F6B: mov edx, dword ptr [esi + 0x24] */ 13035 if (8u) _cf = (((edx) >> 7) & 1u); /* 0x25099F6E: shr edx, 8 */ 13036 if (8u) { _flag_a = recomp_flags_pack((edx >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13037 edx = edx >> 8u; /* 0x25099F6E: shr edx, 8 */ 13038 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13039 edx = edx & 0xFFu; /* 0x25099F71: and edx, 0xff */ 13040 _cf = 0; 13041 _flag_k = FK_TEST; 13042 MEM32(ebp + (-0x8)) = edx; /* 0x25099F77: mov dword ptr [ebp - 8], edx */ 13043 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099F7A: fild qword ptr [ebp - 8] */ 13044 MEM32(ebp + (-0x4)) = ebx; /* 0x25099F7D: mov dword ptr [ebp - 4], ebx */ 13045 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099F80: fmul dword ptr [0x25151b68] */ 13046 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x4) = _v; } /* 0x25099F86: fstp dword ptr [edi + 4] */ 13047 eax = MEM32(esi + 0x24); /* 0x25099F89: mov eax, dword ptr [esi + 0x24] */ 13048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 13049 eax = eax & 0xFFu; /* 0x25099F8C: and eax, 0xff */ 13050 _cf = 0; 13051 _flag_k = FK_TEST; 13052 MEM32(ebp + (-0x8)) = eax; /* 0x25099F91: mov dword ptr [ebp - 8], eax */ 13053 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099F94: fild qword ptr [ebp - 8] */ 13054 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099F97: fmul dword ptr [0x25151b68] */ 13055 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x8) = _v; } /* 0x25099F9D: fstp dword ptr [edi + 8] */ 13056 L_25099FA0: 13057 /* test MEM8(esi + 0x2C), 8 */ /* 0x25099FA0: test byte ptr [esi + 0x2c], 8 */ 13058 _flag_a = (uint32_t)(MEM8(esi + 0x2C)) << 24; _flag_b = (uint32_t)(8) << 24; 13059 _cf = 0; 13060 _flag_k = FK_NARROW(FK_TEST, 24); 13061 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A014; /* 0x25099FA4: je 0x2509a014 */ 13062 L_25099FA6: 13063 ecx = MEM32(esi + 0x28); /* 0x25099FA6: mov ecx, dword ptr [esi + 0x28] */ 13064 if (24u) _cf = (((ecx) >> 23) & 1u); /* 0x25099FA9: shr ecx, 0x18 */ 13065 if (24u) { _flag_a = recomp_flags_pack((ecx >> 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13066 ecx = ecx >> 24u; /* 0x25099FA9: shr ecx, 0x18 */ 13067 MEM32(ebp + (-0x8)) = ecx; /* 0x25099FAC: mov dword ptr [ebp - 8], ecx */ 13068 MEM32(ebp + (-0x4)) = ebx; /* 0x25099FAF: mov dword ptr [ebp - 4], ebx */ 13069 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099FB2: fild qword ptr [ebp - 8] */ 13070 MEM32(ebp + (-0x4)) = ebx; /* 0x25099FB5: mov dword ptr [ebp - 4], ebx */ 13071 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099FB8: fmul dword ptr [0x25151b68] */ 13072 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x3C) = _v; } /* 0x25099FBE: fstp dword ptr [edi + 0x3c] */ 13073 edx = MEM32(esi + 0x28); /* 0x25099FC1: mov edx, dword ptr [esi + 0x28] */ 13074 if (16u) _cf = (((edx) >> 15) & 1u); /* 0x25099FC4: shr edx, 0x10 */ 13075 if (16u) { _flag_a = recomp_flags_pack((edx >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13076 edx = edx >> 16u; /* 0x25099FC4: shr edx, 0x10 */ 13077 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13078 edx = edx & 0xFFu; /* 0x25099FC7: and edx, 0xff */ 13079 _cf = 0; 13080 _flag_k = FK_TEST; 13081 MEM32(ebp + (-0x8)) = edx; /* 0x25099FCD: mov dword ptr [ebp - 8], edx */ 13082 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099FD0: fild qword ptr [ebp - 8] */ 13083 MEM32(ebp + (-0x4)) = ebx; /* 0x25099FD3: mov dword ptr [ebp - 4], ebx */ 13084 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099FD6: fmul dword ptr [0x25151b68] */ 13085 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x30) = _v; } /* 0x25099FDC: fstp dword ptr [edi + 0x30] */ 13086 eax = MEM32(esi + 0x28); /* 0x25099FDF: mov eax, dword ptr [esi + 0x28] */ 13087 if (8u) _cf = (((eax) >> 7) & 1u); /* 0x25099FE2: shr eax, 8 */ 13088 if (8u) { _flag_a = recomp_flags_pack((eax >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13089 eax = eax >> 8u; /* 0x25099FE2: shr eax, 8 */ 13090 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 13091 eax = eax & 0xFFu; /* 0x25099FE5: and eax, 0xff */ 13092 _cf = 0; 13093 _flag_k = FK_TEST; 13094 MEM32(ebp + (-0x8)) = eax; /* 0x25099FEA: mov dword ptr [ebp - 8], eax */ 13095 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x25099FED: fild qword ptr [ebp - 8] */ 13096 MEM32(ebp + (-0x4)) = ebx; /* 0x25099FF0: mov dword ptr [ebp - 4], ebx */ 13097 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x25099FF3: fmul dword ptr [0x25151b68] */ 13098 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x34) = _v; } /* 0x25099FF9: fstp dword ptr [edi + 0x34] */ 13099 ecx = MEM32(esi + 0x28); /* 0x25099FFC: mov ecx, dword ptr [esi + 0x28] */ 13100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 13101 ecx = ecx & 0xFFu; /* 0x25099FFF: and ecx, 0xff */ 13102 _cf = 0; 13103 _flag_k = FK_TEST; 13104 MEM32(ebp + (-0x8)) = ecx; /* 0x2509A005: mov dword ptr [ebp - 8], ecx */ 13105 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x2509A008: fild qword ptr [ebp - 8] */ 13106 _st[0] *= (double)*(float*)ADDR(0x25151B68); /* 0x2509A00B: fmul dword ptr [0x25151b68] */ 13107 { float _v = (float)fp_pop(); *(float*)ADDR(edi + 0x38) = _v; } /* 0x2509A011: fstp dword ptr [edi + 0x38] */ 13108 L_2509A014: 13109 /* test MEM8(esi + 0x2C), 0x10u */ /* 0x2509A014: test byte ptr [esi + 0x2c], 0x10 */ 13110 _flag_a = (uint32_t)(MEM8(esi + 0x2C)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 13111 _cf = 0; 13112 _flag_k = FK_NARROW(FK_TEST, 24); 13113 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A06C; /* 0x2509A018: je 0x2509a06c */ 13114 L_2509A01A: 13115 eax = MEM32(esi + 0x44); /* 0x2509A01A: mov eax, dword ptr [esi + 0x44] */ 13116 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13117 ecx = 0; /* 0x2509A01D: xor ecx, ecx */ 13118 _cf = 0; 13119 _flag_k = FK_TEST; 13120 L_2509A01F: 13121 edx = MEM32(eax + 0x4); /* 0x2509A01F: mov edx, dword ptr [eax + 4] */ 13122 /* cmp edx, ebx */ /* 0x2509A022: cmp edx, ebx */ 13123 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 13124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13125 _flag_k = FK_CMP; 13126 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A06C; /* 0x2509A024: je 0x2509a06c */ 13127 L_2509A026: 13128 edi = MEM32(eax + 0x8); /* 0x2509A026: mov edi, dword ptr [eax + 8] */ 13129 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 13130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13131 edi = edi - edx; /* 0x2509A029: sub edi, edx */ 13132 _flag_k = FK_CMP; 13133 if (2u) _cf = (((edi) >> 1) & 1u); /* 0x2509A02B: sar edi, 2 */ 13134 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13135 edi = (uint32_t)((int32_t)edi >> 2u); 13136 /* cmp ecx, edi */ /* 0x2509A02E: cmp ecx, edi */ 13137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 13138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13139 _flag_k = FK_CMP; 13140 if (CMP_AE(_flag_a, _flag_b)) goto L_2509A06C; /* 0x2509A030: jae 0x2509a06c */ 13141 L_2509A032: 13142 edx = MEM32(edx + ecx * 4); /* 0x2509A032: mov edx, dword ptr [edx + ecx*4] */ 13143 edi = MEM32(ebp + 0xC); /* 0x2509A035: mov edi, dword ptr [ebp + 0xc] */ 13144 /* cmp MEM32(edx), edi */ /* 0x2509A038: cmp dword ptr [edx], edi */ 13145 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(edi); 13146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13147 _flag_k = FK_CMP; 13148 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A03F; /* 0x2509A03A: je 0x2509a03f */ 13149 L_2509A03C: 13150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13151 ecx = ecx + 1; /* 0x2509A03C: inc ecx */ 13152 _flag_k = FK_INC; 13153 RECOMP_BACKEDGE(); 13154 goto L_2509A01F; /* 0x2509A03D: jmp 0x2509a01f */ 13155 L_2509A03F: 13156 eax = MEM32(eax + 0x4); /* 0x2509A03F: mov eax, dword ptr [eax + 4] */ 13157 eax = MEM32(eax + ecx * 4); /* 0x2509A042: mov eax, dword ptr [eax + ecx*4] */ 13158 ecx = MEM32(eax + 0x4); /* 0x2509A045: mov ecx, dword ptr [eax + 4] */ 13159 RECOMP_ICALL(0x250A3B60u); /* 0x2509A048: call 0x250a3b60 */ /* not lifted */ 13160 RECOMP_FLAGS_IN(); 13161 edi = eax; /* 0x2509A04D: mov edi, eax */ 13162 /* cmp edi, ebx */ /* 0x2509A04F: cmp edi, ebx */ 13163 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 13164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13165 _flag_k = FK_CMP; 13166 PUSH32(esp, 0xAu); /* 0x2509A051: push 0xa */ 13167 PUSH32(esp, ebx); /* 0x2509A053: push ebx */ 13168 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A07F; /* 0x2509A054: je 0x2509a07f */ 13169 L_2509A056: 13170 ecx = MEM32(edi + 0x28); /* 0x2509A056: mov ecx, dword ptr [edi + 0x28] */ 13171 edx = MEM32(ebp + 0x10); /* 0x2509A059: mov edx, dword ptr [ebp + 0x10] */ 13172 PUSH32(esp, ecx); /* 0x2509A05C: push ecx */ 13173 ecx = MEM32(edx + 0x8); /* 0x2509A05D: mov ecx, dword ptr [edx + 8] */ 13174 RECOMP_ICALL(0x250EFF90u); /* 0x2509A060: call 0x250eff90 */ /* not lifted */ 13175 RECOMP_FLAGS_IN(); 13176 ecx = edi; /* 0x2509A065: mov ecx, edi */ 13177 RECOMP_ICALL(0x250EBDE0u); /* 0x2509A067: call 0x250ebde0 */ /* not lifted */ 13178 RECOMP_FLAGS_IN(); 13179 L_2509A06C: 13180 ecx = esi + (-0x8); /* 0x2509A06C: lea ecx, [esi - 8] */ 13181 RECOMP_ICALL(0x25096DC0u); /* 0x2509A06F: call 0x25096dc0 */ /* not lifted */ 13182 RECOMP_FLAGS_IN(); 13183 edi = POP32_VAL(esp); /* 0x2509A074: pop edi */ 13184 esi = POP32_VAL(esp); /* 0x2509A075: pop esi */ 13185 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 13186 SET_LO8(eax, 0); /* 0x2509A076: xor al, al */ 13187 _cf = 0; 13188 _flag_k = FK_NARROW(FK_TEST, 24); 13189 ebx = POP32_VAL(esp); /* 0x2509A078: pop ebx */ 13190 esp = ebp; /* 0x2509A079: mov esp, ebp */ 13191 ebp = POP32_VAL(esp); /* 0x2509A07B: pop ebp */ 13192 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2509A07C: ret 0x10 */ 13193 L_2509A07F: 13194 eax = MEM32(ebp + 0x10); /* 0x2509A07F: mov eax, dword ptr [ebp + 0x10] */ 13195 ecx = MEM32(eax + 0x8); /* 0x2509A082: mov ecx, dword ptr [eax + 8] */ 13196 PUSH32(esp, ebx); /* 0x2509A085: push ebx */ 13197 RECOMP_ICALL(0x250EFF90u); /* 0x2509A086: call 0x250eff90 */ /* not lifted */ 13198 RECOMP_FLAGS_IN(); 13199 ecx = esi + (-0x8); /* 0x2509A08B: lea ecx, [esi - 8] */ 13200 RECOMP_ICALL(0x25096DC0u); /* 0x2509A08E: call 0x25096dc0 */ /* not lifted */ 13201 RECOMP_FLAGS_IN(); 13202 edi = POP32_VAL(esp); /* 0x2509A093: pop edi */ 13203 esi = POP32_VAL(esp); /* 0x2509A094: pop esi */ 13204 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 13205 SET_LO8(eax, 0); /* 0x2509A095: xor al, al */ 13206 _cf = 0; 13207 _flag_k = FK_NARROW(FK_TEST, 24); 13208 ebx = POP32_VAL(esp); /* 0x2509A097: pop ebx */ 13209 esp = ebp; /* 0x2509A098: mov esp, ebp */ 13210 ebp = POP32_VAL(esp); /* 0x2509A09A: pop ebp */ 13211 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2509A09B: ret 0x10 */ 13212 RECOMP_REGS_OUT(); 13213 } 13214 13215 void sub_2509A0A0(void) { 13216 int _fpu_cmp = 0; 13217 uint32_t _cf = 0; 13218 int _df = 1; 13219 uint32_t _flag_k = FK_NONE; 13220 uint32_t _flag_a = 0, _flag_b = 0; 13221 uint32_t _itail_tgt = 0; 13222 RECOMP_REGS_LOCALS 13223 RECOMP_ENTER(0x2509A0A0u); 13224 13225 L_2509A0A0: 13226 PUSH32(esp, esi); /* 0x2509A0A0: push esi */ 13227 PUSH32(esp, edi); /* 0x2509A0A1: push edi */ 13228 edi = ecx; /* 0x2509A0A2: mov edi, ecx */ 13229 eax = MEM32(edi + 0x10); /* 0x2509A0A4: mov eax, dword ptr [edi + 0x10] */ 13230 /* test eax, eax */ /* 0x2509A0A7: test eax, eax */ 13231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13232 _cf = 0; 13233 _flag_k = FK_TEST; 13234 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A0EB; /* 0x2509A0A9: je 0x2509a0eb */ 13235 L_2509A0AB: 13236 SET_LO8(ecx, MEM8(edi + 0x1C)); /* 0x2509A0AB: mov cl, byte ptr [edi + 0x1c] */ 13237 /* test LO8(ecx), LO8(ecx) */ /* 0x2509A0AE: test cl, cl */ 13238 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 13239 _cf = 0; 13240 _flag_k = FK_NARROW(FK_TEST, 24); 13241 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A0B9; /* 0x2509A0B0: je 0x2509a0b9 */ 13242 L_2509A0B2: 13243 ecx = MEM32(eax + 0x6C); /* 0x2509A0B2: mov ecx, dword ptr [eax + 0x6c] */ 13244 /* test ecx, ecx */ /* 0x2509A0B5: test ecx, ecx */ 13245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13246 _cf = 0; 13247 _flag_k = FK_TEST; 13248 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A0EB; /* 0x2509A0B7: jne 0x2509a0eb */ 13249 L_2509A0B9: 13250 RECOMP_ICALL(0x25094150u); /* 0x2509A0B9: call 0x25094150 */ /* not lifted */ 13251 RECOMP_FLAGS_IN(); 13252 ecx = MEM32(edi + 0x10); /* 0x2509A0BE: mov ecx, dword ptr [edi + 0x10] */ 13253 PUSH32(esp, ecx); /* 0x2509A0C1: push ecx */ 13254 ecx = eax; /* 0x2509A0C2: mov ecx, eax */ 13255 RECOMP_ICALL(0x25094200u); /* 0x2509A0C4: call 0x25094200 */ /* not lifted */ 13256 RECOMP_FLAGS_IN(); 13257 eax = MEM32(edi + 0x44); /* 0x2509A0C9: mov eax, dword ptr [edi + 0x44] */ 13258 /* test eax, eax */ /* 0x2509A0CC: test eax, eax */ 13259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13260 _cf = 0; 13261 _flag_k = FK_TEST; 13262 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A0EB; /* 0x2509A0CE: je 0x2509a0eb */ 13263 L_2509A0D0: 13264 eax = MEM32(eax + 0x4); /* 0x2509A0D0: mov eax, dword ptr [eax + 4] */ 13265 esi = MEM32(eax); /* 0x2509A0D3: mov esi, dword ptr [eax] */ 13266 /* cmp esi, eax */ /* 0x2509A0D5: cmp esi, eax */ 13267 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13269 _flag_k = FK_CMP; 13270 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A0EB; /* 0x2509A0D7: je 0x2509a0eb */ 13271 L_2509A0D9: 13272 ecx = MEM32(esi + 0x8); /* 0x2509A0D9: mov ecx, dword ptr [esi + 8] */ 13273 edx = MEM32(ecx); /* 0x2509A0DC: mov edx, dword ptr [ecx] */ 13274 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x2509A0DE: call dword ptr [edx + 4] */ 13275 RECOMP_FLAGS_IN(); 13276 eax = MEM32(edi + 0x44); /* 0x2509A0E1: mov eax, dword ptr [edi + 0x44] */ 13277 esi = MEM32(esi); /* 0x2509A0E4: mov esi, dword ptr [esi] */ 13278 /* cmp esi, MEM32(eax + 0x4) */ /* 0x2509A0E6: cmp esi, dword ptr [eax + 4] */ 13279 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 13280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13281 _flag_k = FK_CMP; 13282 RECOMP_BACKEDGE(); 13283 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A0D9; /* 0x2509A0E9: jne 0x2509a0d9 */ 13284 L_2509A0EB: 13285 MEM8(edi + 0x1C) = (uint8_t)(1); /* 0x2509A0EB: mov byte ptr [edi + 0x1c], 1 */ 13286 edi = POP32_VAL(esp); /* 0x2509A0EF: pop edi */ 13287 esi = POP32_VAL(esp); /* 0x2509A0F0: pop esi */ 13288 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509A0F1: ret */ 13289 RECOMP_REGS_OUT(); 13290 } 13291 13292 void sub_2509A100(void) { 13293 int _fpu_cmp = 0; 13294 uint32_t _cf = 0; 13295 int _df = 1; 13296 uint32_t _flag_k = FK_NONE; 13297 uint32_t _flag_a = 0, _flag_b = 0; 13298 uint32_t _itail_tgt = 0; 13299 RECOMP_REGS_LOCALS 13300 RECOMP_ENTER(0x2509A100u); 13301 13302 L_2509A100: 13303 PUSH32(esp, edi); /* 0x2509A100: push edi */ 13304 edi = ecx; /* 0x2509A101: mov edi, ecx */ 13305 SET_LO8(eax, MEM8(edi + 0x1C)); /* 0x2509A103: mov al, byte ptr [edi + 0x1c] */ 13306 /* test LO8(eax), LO8(eax) */ /* 0x2509A106: test al, al */ 13307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13308 _cf = 0; 13309 _flag_k = FK_NARROW(FK_TEST, 24); 13310 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A146; /* 0x2509A108: je 0x2509a146 */ 13311 L_2509A10A: 13312 eax = MEM32(edi + 0x10); /* 0x2509A10A: mov eax, dword ptr [edi + 0x10] */ 13313 /* test eax, eax */ /* 0x2509A10D: test eax, eax */ 13314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13315 _cf = 0; 13316 _flag_k = FK_TEST; 13317 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A11E; /* 0x2509A10F: je 0x2509a11e */ 13318 L_2509A111: 13319 ecx = MEM32(eax + 0x6C); /* 0x2509A111: mov ecx, dword ptr [eax + 0x6c] */ 13320 /* test ecx, ecx */ /* 0x2509A114: test ecx, ecx */ 13321 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13322 _cf = 0; 13323 _flag_k = FK_TEST; 13324 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A11E; /* 0x2509A116: je 0x2509a11e */ 13325 L_2509A118: 13326 edx = MEM32(ecx); /* 0x2509A118: mov edx, dword ptr [ecx] */ 13327 PUSH32(esp, eax); /* 0x2509A11A: push eax */ 13328 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2509A11B: call dword ptr [edx + 0x10] */ 13329 RECOMP_FLAGS_IN(); 13330 L_2509A11E: 13331 eax = MEM32(edi + 0x44); /* 0x2509A11E: mov eax, dword ptr [edi + 0x44] */ 13332 /* test eax, eax */ /* 0x2509A121: test eax, eax */ 13333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13334 _cf = 0; 13335 _flag_k = FK_TEST; 13336 PUSH32(esp, esi); /* 0x2509A123: push esi */ 13337 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A141; /* 0x2509A124: je 0x2509a141 */ 13338 L_2509A126: 13339 eax = MEM32(eax + 0x4); /* 0x2509A126: mov eax, dword ptr [eax + 4] */ 13340 esi = MEM32(eax); /* 0x2509A129: mov esi, dword ptr [eax] */ 13341 /* cmp esi, eax */ /* 0x2509A12B: cmp esi, eax */ 13342 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13344 _flag_k = FK_CMP; 13345 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A141; /* 0x2509A12D: je 0x2509a141 */ 13346 L_2509A12F: 13347 ecx = MEM32(esi + 0x8); /* 0x2509A12F: mov ecx, dword ptr [esi + 8] */ 13348 eax = MEM32(ecx); /* 0x2509A132: mov eax, dword ptr [ecx] */ 13349 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2509A134: call dword ptr [eax + 8] */ 13350 RECOMP_FLAGS_IN(); 13351 ecx = MEM32(edi + 0x44); /* 0x2509A137: mov ecx, dword ptr [edi + 0x44] */ 13352 esi = MEM32(esi); /* 0x2509A13A: mov esi, dword ptr [esi] */ 13353 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2509A13C: cmp esi, dword ptr [ecx + 4] */ 13354 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13356 _flag_k = FK_CMP; 13357 RECOMP_BACKEDGE(); 13358 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A12F; /* 0x2509A13F: jne 0x2509a12f */ 13359 L_2509A141: 13360 MEM8(edi + 0x1C) = (uint8_t)(0); /* 0x2509A141: mov byte ptr [edi + 0x1c], 0 */ 13361 esi = POP32_VAL(esp); /* 0x2509A145: pop esi */ 13362 L_2509A146: 13363 edi = POP32_VAL(esp); /* 0x2509A146: pop edi */ 13364 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509A147: ret */ 13365 RECOMP_REGS_OUT(); 13366 } 13367 13368 void sub_2509A150(void) { 13369 int _fpu_cmp = 0; 13370 uint32_t _cf = 0; 13371 int _df = 1; 13372 uint32_t _flag_k = FK_NONE; 13373 uint32_t _flag_a = 0, _flag_b = 0; 13374 uint32_t _itail_tgt = 0; 13375 RECOMP_REGS_LOCALS 13376 RECOMP_ENTER(0x2509A150u); 13377 13378 L_2509A150: 13379 PUSH32(esp, ebp); /* 0x2509A150: push ebp */ 13380 ebp = esp; /* 0x2509A151: mov ebp, esp */ 13381 PUSH32(esp, ecx); /* 0x2509A153: push ecx */ 13382 ecx = MEM32(ebp + 0x8); /* 0x2509A154: mov ecx, dword ptr [ebp + 8] */ 13383 eax = MEM32(ebp + 0xC); /* 0x2509A157: mov eax, dword ptr [ebp + 0xc] */ 13384 fp_push(*(float*)&MEM32(ecx + 0x8)); /* 0x2509A15A: fld dword ptr [ecx + 8] */ 13385 fp_push(_st[0]); /* 0x2509A15D: fld st(0) */ 13386 edx = MEM32(eax); /* 0x2509A15F: mov edx, dword ptr [eax] */ 13387 { double _v = fp_pop(); _st[0] *= _v; } /* 0x2509A161: fmulp st(1) */ 13388 MEM32(ebp + 0x8) = edx; /* 0x2509A163: mov dword ptr [ebp + 8], edx */ 13389 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x2509A166: fld dword ptr [ecx + 4] */ 13390 fp_push(_st[0]); /* 0x2509A169: fld st(0) */ 13391 { double _v = fp_pop(); _st[0] *= _v; } /* 0x2509A16B: fmulp st(1) */ 13392 fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x2509A16D: fld dword ptr [eax + 8] */ 13393 fp_push(_st[0]); /* 0x2509A170: fld st(0) */ 13394 _st[0] *= _st[1]; /* 0x2509A172: fmul st(1) */ 13395 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2509A174: fstp dword ptr [ebp - 4] */ 13396 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2509A177: fstp st(0) */ 13397 fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x2509A179: fld dword ptr [eax + 4] */ 13398 fp_push(_st[0]); /* 0x2509A17C: fld st(0) */ 13399 _st[0] *= _st[1]; /* 0x2509A17E: fmul st(1) */ 13400 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x2509A180: fstp dword ptr [ebp + 0xc] */ 13401 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2509A183: fstp st(0) */ 13402 fp_push(_st[0]); /* 0x2509A185: fld st(0) */ 13403 _st[0] += _st[2]; /* 0x2509A187: fadd st(2) */ 13404 _st[0] *= (double)*(float*)ADDR(eax); /* 0x2509A189: fmul dword ptr [eax] */ 13405 _st[0] *= (double)*(float*)ADDR(eax); /* 0x2509A18B: fmul dword ptr [eax] */ 13406 fp_push(*(float*)&MEM32(ecx)); /* 0x2509A18D: fld dword ptr [ecx] */ 13407 _st[0] *= (double)*(float*)ADDR(eax); /* 0x2509A18F: fmul dword ptr [eax] */ 13408 _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x2509A191: fmul dword ptr [ecx + 8] */ 13409 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2509A194: fmul dword ptr [eax + 8] */ 13410 _st[0] += _st[0]; /* 0x2509A197: fadd st(0), st(0) */ 13411 { double _v = fp_pop(); _st[0] -= _v; } /* 0x2509A199: fsubp st(1) */ 13412 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x2509A19B: fld dword ptr [ecx + 4] */ 13413 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2509A19E: fmul dword ptr [eax + 4] */ 13414 _st[0] *= (double)*(float*)ADDR(ecx); /* 0x2509A1A1: fmul dword ptr [ecx] */ 13415 _st[0] *= (double)*(float*)ADDR(eax); /* 0x2509A1A3: fmul dword ptr [eax] */ 13416 _st[0] += _st[0]; /* 0x2509A1A5: fadd st(0), st(0) */ 13417 { double _v = fp_pop(); _st[0] -= _v; } /* 0x2509A1A7: fsubp st(1) */ 13418 fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x2509A1A9: fld dword ptr [eax + 4] */ 13419 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2509A1AC: fmul dword ptr [eax + 4] */ 13420 _st[0] *= _st[3]; /* 0x2509A1AF: fmul st(3) */ 13421 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A1B1: faddp st(1) */ 13422 fp_push(*(float*)&MEM32(ecx)); /* 0x2509A1B3: fld dword ptr [ecx] */ 13423 _st[0] *= (double)*(float*)ADDR(ecx); /* 0x2509A1B5: fmul dword ptr [ecx] */ 13424 _st[0] *= (double)*(float*)ADDR(ebp + 0xC); /* 0x2509A1B7: fmul dword ptr [ebp + 0xc] */ 13425 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A1BA: faddp st(1) */ 13426 fp_push(*(float*)&MEM32(ecx)); /* 0x2509A1BC: fld dword ptr [ecx] */ 13427 _st[0] *= (double)*(float*)ADDR(ecx); /* 0x2509A1BE: fmul dword ptr [ecx] */ 13428 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2509A1C0: fmul dword ptr [ebp - 4] */ 13429 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A1C3: faddp st(1) */ 13430 fp_xch(1); /* 0x2509A1C5: fxch st(1) */ 13431 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2509A1C7: fmul dword ptr [eax + 8] */ 13432 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2509A1CA: fmul dword ptr [eax + 8] */ 13433 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A1CD: faddp st(1) */ 13434 fp_push(*(float*)&MEM32(ecx + 0x4)); /* 0x2509A1CF: fld dword ptr [ecx + 4] */ 13435 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2509A1D2: fmul dword ptr [eax + 4] */ 13436 _st[0] *= (double)*(float*)ADDR(ecx + 0x8); /* 0x2509A1D5: fmul dword ptr [ecx + 8] */ 13437 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2509A1D8: fmul dword ptr [eax + 8] */ 13438 _st[0] += _st[0]; /* 0x2509A1DB: fadd st(0), st(0) */ 13439 { double _v = fp_pop(); _st[0] -= _v; } /* 0x2509A1DD: fsubp st(1) */ 13440 { _st[1] = _st[0]; g_st_i64[1] = g_st_i64[0]; fp_pop(); } /* 0x2509A1DF: fstp st(1) */ 13441 fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2509A1E1: fld dword ptr [ebp + 8] */ 13442 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x2509A1E4: fmul dword ptr [ebp + 8] */ 13443 _st[0] += (double)*(float*)ADDR(ebp + 0xC); /* 0x2509A1E7: fadd dword ptr [ebp + 0xc] */ 13444 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2509A1EA: fadd dword ptr [ebp - 4] */ 13445 { double _v = fp_pop(); _st[0] = _v == 0.0 ? _st[0] : _st[0] / _v; } /* 0x2509A1ED: fdivp st(1) */ 13446 fp_push(*(float*)&MEM32(ebp + 0x10)); /* 0x2509A1EF: fld dword ptr [ebp + 0x10] */ 13447 _st[0] *= (double)*(float*)ADDR(ebp + 0x10); /* 0x2509A1F2: fmul dword ptr [ebp + 0x10] */ 13448 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x2509A1F5: fcompp */ 13449 fp_pop(); fp_pop(); 13450 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509A1F7: fnstsw ax */ 13451 /* test HI8(eax), 1 */ /* 0x2509A1F9: test ah, 1 */ 13452 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13453 _cf = 0; 13454 _flag_k = FK_NARROW(FK_TEST, 24); 13455 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A204; /* 0x2509A1FC: je 0x2509a204 */ 13456 L_2509A1FE: 13457 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 13458 SET_LO8(eax, 0); /* 0x2509A1FE: xor al, al */ 13459 _cf = 0; 13460 _flag_k = FK_NARROW(FK_TEST, 24); 13461 esp = ebp; /* 0x2509A200: mov esp, ebp */ 13462 ebp = POP32_VAL(esp); /* 0x2509A202: pop ebp */ 13463 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509A203: ret */ 13464 L_2509A204: 13465 SET_LO8(eax, 1); /* 0x2509A204: mov al, 1 */ 13466 esp = ebp; /* 0x2509A206: mov esp, ebp */ 13467 ebp = POP32_VAL(esp); /* 0x2509A208: pop ebp */ 13468 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509A209: ret */ 13469 RECOMP_REGS_OUT(); 13470 } 13471 13472 void sub_2509A210(void) { 13473 int _fpu_cmp = 0; 13474 uint32_t _cf = 0; 13475 int _df = 1; 13476 uint32_t _flag_k = FK_NONE; 13477 uint32_t _flag_a = 0, _flag_b = 0; 13478 uint32_t _itail_tgt = 0; 13479 RECOMP_REGS_LOCALS 13480 RECOMP_ENTER(0x2509A210u); 13481 13482 L_2509A210: 13483 PUSH32(esp, ebp); /* 0x2509A210: push ebp */ 13484 ebp = esp; /* 0x2509A211: mov ebp, esp */ 13485 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x6Cu); 13486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13487 esp = esp - 0x6Cu; /* 0x2509A213: sub esp, 0x6c */ 13488 _flag_k = FK_CMP; 13489 PUSH32(esp, ebx); /* 0x2509A216: push ebx */ 13490 PUSH32(esp, esi); /* 0x2509A217: push esi */ 13491 PUSH32(esp, edi); /* 0x2509A218: push edi */ 13492 edi = ecx; /* 0x2509A219: mov edi, ecx */ 13493 eax = MEM32(edi + 0x10); /* 0x2509A21B: mov eax, dword ptr [edi + 0x10] */ 13494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13495 ebx = 0; /* 0x2509A21E: xor ebx, ebx */ 13496 _cf = 0; 13497 _flag_k = FK_TEST; 13498 /* cmp eax, ebx */ /* 0x2509A220: cmp eax, ebx */ 13499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 13500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13501 _flag_k = FK_CMP; 13502 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A4D6; /* 0x2509A222: je 0x2509a4d6 */ 13503 L_2509A228: 13504 eax = MEM32(ebp + 0xC); /* 0x2509A228: mov eax, dword ptr [ebp + 0xc] */ 13505 ecx = MEM32(eax); /* 0x2509A22B: mov ecx, dword ptr [eax] */ 13506 edx = MEM32(eax + 0x4); /* 0x2509A22D: mov edx, dword ptr [eax + 4] */ 13507 eax = MEM32(eax + 0x8); /* 0x2509A230: mov eax, dword ptr [eax + 8] */ 13508 esi = MEM32(ebp + 0x8); /* 0x2509A233: mov esi, dword ptr [ebp + 8] */ 13509 MEM32(ebp + (-0x54)) = ecx; /* 0x2509A236: mov dword ptr [ebp - 0x54], ecx */ 13510 PUSH32(esp, esi); /* 0x2509A239: push esi */ 13511 ecx = ebp + (-0x54); /* 0x2509A23A: lea ecx, [ebp - 0x54] */ 13512 MEM32(ebp + (-0x50)) = edx; /* 0x2509A23D: mov dword ptr [ebp - 0x50], edx */ 13513 MEM32(ebp + (-0x4C)) = eax; /* 0x2509A240: mov dword ptr [ebp - 0x4c], eax */ 13514 RECOMP_ICALL(MEM32(0x25151540)); /* 0x2509A243: call dword ptr [0x25151540] */ 13515 RECOMP_FLAGS_IN(); 13516 ecx = MEM32(eax); /* 0x2509A249: mov ecx, dword ptr [eax] */ 13517 MEM32(ebp + (-0x24)) = ecx; /* 0x2509A24B: mov dword ptr [ebp - 0x24], ecx */ 13518 edx = MEM32(eax + 0x4); /* 0x2509A24E: mov edx, dword ptr [eax + 4] */ 13519 MEM32(ebp + (-0x20)) = edx; /* 0x2509A251: mov dword ptr [ebp - 0x20], edx */ 13520 eax = MEM32(eax + 0x8); /* 0x2509A254: mov eax, dword ptr [eax + 8] */ 13521 ecx = ebp + (-0x18); /* 0x2509A257: lea ecx, [ebp - 0x18] */ 13522 MEM32(ebp + (-0x1C)) = eax; /* 0x2509A25A: mov dword ptr [ebp - 0x1c], eax */ 13523 eax = MEM32(edi + 0x10); /* 0x2509A25D: mov eax, dword ptr [edi + 0x10] */ 13524 PUSH32(esp, ecx); /* 0x2509A260: push ecx */ 13525 ecx = ebp + (-0x10); /* 0x2509A261: lea ecx, [ebp - 0x10] */ 13526 MEM32(ebp + (-0x18)) = eax; /* 0x2509A264: mov dword ptr [ebp - 0x18], eax */ 13527 MEM32(ebp + (-0x14)) = eax; /* 0x2509A267: mov dword ptr [ebp - 0x14], eax */ 13528 RECOMP_ICALL(0x25098250u); /* 0x2509A26A: call 0x25098250 */ /* not lifted */ 13529 RECOMP_FLAGS_IN(); 13530 eax = MEM32(ebp + (-0x10)); /* 0x2509A26F: mov eax, dword ptr [ebp - 0x10] */ 13531 edx = MEM32(ebp + (-0xC)); /* 0x2509A272: mov edx, dword ptr [ebp - 0xc] */ 13532 PUSH32(esp, ebx); /* 0x2509A275: push ebx */ 13533 PUSH32(esp, 0x251B2970u); /* 0x2509A276: push 0x251b2970 */ 13534 PUSH32(esp, 0x251B2970u); /* 0x2509A27B: push 0x251b2970 */ 13535 PUSH32(esp, ebx); /* 0x2509A280: push ebx */ 13536 PUSH32(esp, eax); /* 0x2509A281: push eax */ 13537 MEM32(ebp + (-0x8)) = eax; /* 0x2509A282: mov dword ptr [ebp - 8], eax */ 13538 MEM32(ebp + (-0x4)) = edx; /* 0x2509A285: mov dword ptr [ebp - 4], edx */ 13539 RECOMP_ICALL(0x251381ACu); /* 0x2509A288: call 0x251381ac */ /* not lifted */ 13540 RECOMP_FLAGS_IN(); 13541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 13542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13543 esp = esp + 0x14u; /* 0x2509A28D: add esp, 0x14 */ 13544 _flag_k = FK_ADD; 13545 /* test eax, eax */ /* 0x2509A290: test eax, eax */ 13546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13547 _cf = 0; 13548 _flag_k = FK_TEST; 13549 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A29C; /* 0x2509A292: jne 0x2509a29c */ 13550 L_2509A294: 13551 ecx = ebp + (-0x8); /* 0x2509A294: lea ecx, [ebp - 8] */ 13552 RECOMP_ICALL(0x250982C0u); /* 0x2509A297: call 0x250982c0 */ /* not lifted */ 13553 RECOMP_FLAGS_IN(); 13554 L_2509A29C: 13555 eax = ebp + (-0x10); /* 0x2509A29C: lea eax, [ebp - 0x10] */ 13556 PUSH32(esp, eax); /* 0x2509A29F: push eax */ 13557 ecx = ebp + (-0x18); /* 0x2509A2A0: lea ecx, [ebp - 0x18] */ 13558 MEM32(ebp + (-0x10)) = ebx; /* 0x2509A2A3: mov dword ptr [ebp - 0x10], ebx */ 13559 MEM32(ebp + (-0xC)) = ebx; /* 0x2509A2A6: mov dword ptr [ebp - 0xc], ebx */ 13560 RECOMP_ICALL(0x25098250u); /* 0x2509A2A9: call 0x25098250 */ /* not lifted */ 13561 RECOMP_FLAGS_IN(); 13562 ecx = MEM32(ebp + (-0x8)); /* 0x2509A2AE: mov ecx, dword ptr [ebp - 8] */ 13563 /* cmp ecx, MEM32(ebp + (-0x18)) */ /* 0x2509A2B1: cmp ecx, dword ptr [ebp - 0x18] */ 13564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 13565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13566 _flag_k = FK_CMP; 13567 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A4D6; /* 0x2509A2B4: je 0x2509a4d6 */ 13568 L_2509A2BA: 13569 edx = MEM32(ecx + 0x1F0); /* 0x2509A2BA: mov edx, dword ptr [ecx + 0x1f0] */ 13570 eax = MEM32(edx + 0x5C); /* 0x2509A2C0: mov eax, dword ptr [edx + 0x5c] */ 13571 edx = MEM32(eax + 0x14); /* 0x2509A2C3: mov edx, dword ptr [eax + 0x14] */ 13572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 13573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13574 eax = eax + 8; /* 0x2509A2C6: add eax, 8 */ 13575 _flag_k = FK_ADD; 13576 MEM32(ebp + 0xC) = edx; /* 0x2509A2C9: mov dword ptr [ebp + 0xc], edx */ 13577 edx = MEM32(eax); /* 0x2509A2CC: mov edx, dword ptr [eax] */ 13578 MEM32(ebp + (-0x30)) = edx; /* 0x2509A2CE: mov dword ptr [ebp - 0x30], edx */ 13579 edx = MEM32(eax + 0x4); /* 0x2509A2D1: mov edx, dword ptr [eax + 4] */ 13580 MEM32(ebp + (-0x2C)) = edx; /* 0x2509A2D4: mov dword ptr [ebp - 0x2c], edx */ 13581 eax = MEM32(eax + 0x8); /* 0x2509A2D7: mov eax, dword ptr [eax + 8] */ 13582 MEM32(ebp + (-0x28)) = eax; /* 0x2509A2DA: mov dword ptr [ebp - 0x28], eax */ 13583 RECOMP_ICALL(0x250E2EC0u); /* 0x2509A2DD: call 0x250e2ec0 */ /* not lifted */ 13584 RECOMP_FLAGS_IN(); 13585 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x2509A2E2: fld dword ptr [ebp - 0x2c] */ 13586 _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x2509A2E5: fmul dword ptr [eax + 0x14] */ 13587 edx = esi; /* 0x2509A2E8: mov edx, esi */ 13588 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2509A2EA: fld dword ptr [ebp - 0x28] */ 13589 _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x2509A2ED: fmul dword ptr [eax + 0x24] */ 13590 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A2F0: faddp st(1) */ 13591 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x2509A2F2: fld dword ptr [ebp - 0x30] */ 13592 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x2509A2F5: fmul dword ptr [eax + 4] */ 13593 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A2F8: faddp st(1) */ 13594 _st[0] += (double)*(float*)ADDR(eax + 0x34); /* 0x2509A2FA: fadd dword ptr [eax + 0x34] */ 13595 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x2509A2FD: fld dword ptr [ebp - 0x2c] */ 13596 _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x2509A300: fmul dword ptr [eax + 0x18] */ 13597 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2509A303: fld dword ptr [ebp - 0x28] */ 13598 _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x2509A306: fmul dword ptr [eax + 0x28] */ 13599 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A309: faddp st(1) */ 13600 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x2509A30B: fld dword ptr [ebp - 0x30] */ 13601 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x2509A30E: fmul dword ptr [eax + 8] */ 13602 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A311: faddp st(1) */ 13603 _st[0] += (double)*(float*)ADDR(eax + 0x38); /* 0x2509A313: fadd dword ptr [eax + 0x38] */ 13604 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2509A316: fstp dword ptr [ebp + 8] */ 13605 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x2509A319: fld dword ptr [ebp - 0x2c] */ 13606 ecx = MEM32(ebp + 0x8); /* 0x2509A31C: mov ecx, dword ptr [ebp + 8] */ 13607 _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x2509A31F: fmul dword ptr [eax + 0x10] */ 13608 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x2509A322: fld dword ptr [ebp - 0x28] */ 13609 _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x2509A325: fmul dword ptr [eax + 0x20] */ 13610 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A328: faddp st(1) */ 13611 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x2509A32A: fld dword ptr [ebp - 0x30] */ 13612 _st[0] *= (double)*(float*)ADDR(eax); /* 0x2509A32D: fmul dword ptr [eax] */ 13613 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A32F: faddp st(1) */ 13614 _st[0] += (double)*(float*)ADDR(eax + 0x30); /* 0x2509A331: fadd dword ptr [eax + 0x30] */ 13615 eax = MEM32(edx); /* 0x2509A334: mov eax, dword ptr [edx] */ 13616 MEM32(ebp + (-0x28)) = ecx; /* 0x2509A336: mov dword ptr [ebp - 0x28], ecx */ 13617 ecx = MEM32(edx + 0x4); /* 0x2509A339: mov ecx, dword ptr [edx + 4] */ 13618 edx = MEM32(edx + 0x8); /* 0x2509A33C: mov edx, dword ptr [edx + 8] */ 13619 MEM32(ebp + (-0x60)) = eax; /* 0x2509A33F: mov dword ptr [ebp - 0x60], eax */ 13620 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x2509A342: fstp dword ptr [ebp - 0x30] */ 13621 eax = ebp + (-0x30); /* 0x2509A345: lea eax, [ebp - 0x30] */ 13622 MEM32(ebp + (-0x5C)) = ecx; /* 0x2509A348: mov dword ptr [ebp - 0x5c], ecx */ 13623 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x2509A34B: fstp dword ptr [ebp - 0x2c] */ 13624 PUSH32(esp, eax); /* 0x2509A34E: push eax */ 13625 ecx = ebp + (-0x60); /* 0x2509A34F: lea ecx, [ebp - 0x60] */ 13626 MEM32(ebp + (-0x58)) = edx; /* 0x2509A352: mov dword ptr [ebp - 0x58], edx */ 13627 RECOMP_ICALL(MEM32(0x25151540)); /* 0x2509A355: call dword ptr [0x25151540] */ 13628 RECOMP_FLAGS_IN(); 13629 ecx = MEM32(eax); /* 0x2509A35B: mov ecx, dword ptr [eax] */ 13630 MEM32(ebp + (-0x54)) = ecx; /* 0x2509A35D: mov dword ptr [ebp - 0x54], ecx */ 13631 edx = MEM32(eax + 0x4); /* 0x2509A360: mov edx, dword ptr [eax + 4] */ 13632 ecx = MEM32(ebp + 0xC); /* 0x2509A363: mov ecx, dword ptr [ebp + 0xc] */ 13633 MEM32(ebp + (-0x50)) = edx; /* 0x2509A366: mov dword ptr [ebp - 0x50], edx */ 13634 eax = MEM32(eax + 0x8); /* 0x2509A369: mov eax, dword ptr [eax + 8] */ 13635 PUSH32(esp, ecx); /* 0x2509A36C: push ecx */ 13636 edx = ebp + (-0x24); /* 0x2509A36D: lea edx, [ebp - 0x24] */ 13637 MEM32(ebp + (-0x4C)) = eax; /* 0x2509A370: mov dword ptr [ebp - 0x4c], eax */ 13638 PUSH32(esp, edx); /* 0x2509A373: push edx */ 13639 eax = ebp + (-0x54); /* 0x2509A374: lea eax, [ebp - 0x54] */ 13640 PUSH32(esp, eax); /* 0x2509A377: push eax */ 13641 RECOMP_ICALL(0x2509A150u); /* 0x2509A378: call 0x2509a150 */ /* not lifted */ 13642 RECOMP_FLAGS_IN(); 13643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13645 esp = esp + 0xCu; /* 0x2509A37D: add esp, 0xc */ 13646 _flag_k = FK_ADD; 13647 /* test LO8(eax), LO8(eax) */ /* 0x2509A380: test al, al */ 13648 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13649 _cf = 0; 13650 _flag_k = FK_NARROW(FK_TEST, 24); 13651 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A485; /* 0x2509A382: je 0x2509a485 */ 13652 L_2509A388: 13653 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x2509A388: fld dword ptr [ebp - 0x4c] */ 13654 ecx = MEM32(ebp + (-0x24)); /* 0x2509A38B: mov ecx, dword ptr [ebp - 0x24] */ 13655 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2509A38E: fmul dword ptr [ebp - 0x1c] */ 13656 edx = MEM32(ebp + (-0x20)); /* 0x2509A391: mov edx, dword ptr [ebp - 0x20] */ 13657 fp_push(*(float*)&MEM32(ebp + (-0x50))); /* 0x2509A394: fld dword ptr [ebp - 0x50] */ 13658 eax = MEM32(ebp + (-0x1C)); /* 0x2509A397: mov eax, dword ptr [ebp - 0x1c] */ 13659 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x2509A39A: fmul dword ptr [ebp - 0x20] */ 13660 MEM32(ebp + (-0x48)) = ecx; /* 0x2509A39D: mov dword ptr [ebp - 0x48], ecx */ 13661 MEM32(ebp + (-0x44)) = edx; /* 0x2509A3A0: mov dword ptr [ebp - 0x44], edx */ 13662 MEM32(ebp + (-0x40)) = eax; /* 0x2509A3A3: mov dword ptr [ebp - 0x40], eax */ 13663 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A3A6: faddp st(1) */ 13664 fp_push(*(float*)&MEM32(ebp + (-0x54))); /* 0x2509A3A8: fld dword ptr [ebp - 0x54] */ 13665 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2509A3AB: fmul dword ptr [ebp - 0x24] */ 13666 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A3AE: faddp st(1) */ 13667 fp_push(_st[0]); /* 0x2509A3B0: fld st(0) */ 13668 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2509A3B2: fmul dword ptr [ebp - 0x24] */ 13669 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x48)) = _v; } /* 0x2509A3B5: fstp dword ptr [ebp - 0x48] */ 13670 ecx = MEM32(ebp + (-0x48)); /* 0x2509A3B8: mov ecx, dword ptr [ebp - 0x48] */ 13671 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x2509A3BB: fld dword ptr [ebp - 0x44] */ 13672 MEM32(ebp + (-0x6C)) = ecx; /* 0x2509A3BE: mov dword ptr [ebp - 0x6c], ecx */ 13673 _st[0] *= _st[1]; /* 0x2509A3C1: fmul st(1) */ 13674 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x2509A3C3: fstp dword ptr [ebp - 0x44] */ 13675 edx = MEM32(ebp + (-0x44)); /* 0x2509A3C6: mov edx, dword ptr [ebp - 0x44] */ 13676 fp_push(*(float*)&MEM32(ebp + (-0x40))); /* 0x2509A3C9: fld dword ptr [ebp - 0x40] */ 13677 MEM32(ebp + (-0x68)) = edx; /* 0x2509A3CC: mov dword ptr [ebp - 0x68], edx */ 13678 _st[0] *= _st[1]; /* 0x2509A3CF: fmul st(1) */ 13679 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x2509A3D1: fstp dword ptr [ebp - 0x40] */ 13680 eax = MEM32(ebp + (-0x40)); /* 0x2509A3D4: mov eax, dword ptr [ebp - 0x40] */ 13681 MEM32(ebp + (-0x64)) = eax; /* 0x2509A3D7: mov dword ptr [ebp - 0x64], eax */ 13682 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2509A3DA: fstp st(0) */ 13683 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2509A3DC: fld dword ptr [ebp - 0x1c] */ 13684 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2509A3DF: fmul dword ptr [ebp - 0x1c] */ 13685 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2509A3E2: fld dword ptr [ebp - 0x20] */ 13686 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x2509A3E5: fmul dword ptr [ebp - 0x20] */ 13687 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A3E8: faddp st(1) */ 13688 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2509A3EA: fld dword ptr [ebp - 0x24] */ 13689 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2509A3ED: fmul dword ptr [ebp - 0x24] */ 13690 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A3F0: faddp st(1) */ 13691 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2509A3F2: fstp dword ptr [ebp + 8] */ 13692 ecx = MEM32(ebp + 0x8); /* 0x2509A3F5: mov ecx, dword ptr [ebp + 8] */ 13693 PUSH32(esp, ecx); /* 0x2509A3F8: push ecx */ 13694 ecx = ebp + (-0x6C); /* 0x2509A3F9: lea ecx, [ebp - 0x6c] */ 13695 RECOMP_ICALL(MEM32(0x2515155C)); /* 0x2509A3FC: call dword ptr [0x2515155c] */ 13696 RECOMP_FLAGS_IN(); 13697 edx = MEM32(eax); /* 0x2509A402: mov edx, dword ptr [eax] */ 13698 ecx = MEM32(eax + 0x4); /* 0x2509A404: mov ecx, dword ptr [eax + 4] */ 13699 MEM32(ebp + (-0x3C)) = edx; /* 0x2509A407: mov dword ptr [ebp - 0x3c], edx */ 13700 edx = MEM32(eax + 0x8); /* 0x2509A40A: mov edx, dword ptr [eax + 8] */ 13701 MEM32(ebp + (-0x34)) = edx; /* 0x2509A40D: mov dword ptr [ebp - 0x34], edx */ 13702 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x2509A410: fld dword ptr [ebp - 0x34] */ 13703 _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x2509A413: fmul dword ptr [ebp - 0x34] */ 13704 MEM32(ebp + (-0x38)) = ecx; /* 0x2509A416: mov dword ptr [ebp - 0x38], ecx */ 13705 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2509A419: fld dword ptr [ebp - 0x38] */ 13706 _st[0] *= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x2509A41C: fmul dword ptr [ebp - 0x38] */ 13707 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A41F: faddp st(1) */ 13708 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x2509A421: fld dword ptr [ebp - 0x3c] */ 13709 _st[0] *= (double)*(float*)ADDR(ebp + (-0x3C)); /* 0x2509A424: fmul dword ptr [ebp - 0x3c] */ 13710 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A427: faddp st(1) */ 13711 _st[0] = sqrt(_st[0]); /* 0x2509A429: fsqrt */ 13712 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x2509A42B: fld dword ptr [ebp - 0x1c] */ 13713 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2509A42E: fmul dword ptr [ebp - 0x1c] */ 13714 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2509A431: fld dword ptr [ebp - 0x20] */ 13715 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x2509A434: fmul dword ptr [ebp - 0x20] */ 13716 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A437: faddp st(1) */ 13717 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2509A439: fld dword ptr [ebp - 0x24] */ 13718 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2509A43C: fmul dword ptr [ebp - 0x24] */ 13719 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A43F: faddp st(1) */ 13720 _st[0] = sqrt(_st[0]); /* 0x2509A441: fsqrt */ 13721 _st[0] += (double)*(float*)ADDR(ebp + 0xC); /* 0x2509A443: fadd dword ptr [ebp + 0xc] */ 13722 _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x2509A446: fcompp */ 13723 fp_pop(); fp_pop(); 13724 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509A448: fnstsw ax */ 13725 /* test HI8(eax), 0x41u */ /* 0x2509A44A: test ah, 0x41 */ 13726 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13727 _cf = 0; 13728 _flag_k = FK_NARROW(FK_TEST, 24); 13729 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A485; /* 0x2509A44D: jne 0x2509a485 */ 13730 L_2509A44F: 13731 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x2509A44F: fld dword ptr [ebp - 0x34] */ 13732 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2509A452: fmul dword ptr [ebp - 0x1c] */ 13733 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x2509A455: fld dword ptr [ebp - 0x38] */ 13734 _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x2509A458: fmul dword ptr [ebp - 0x20] */ 13735 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A45B: faddp st(1) */ 13736 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x2509A45D: fld dword ptr [ebp - 0x3c] */ 13737 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2509A460: fmul dword ptr [ebp - 0x24] */ 13738 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509A463: faddp st(1) */ 13739 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2509A465: fcomp dword ptr [0x2515177c] */ 13740 fp_pop(); 13741 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509A46B: fnstsw ax */ 13742 /* test HI8(eax), 1 */ /* 0x2509A46D: test ah, 1 */ 13743 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13744 _cf = 0; 13745 _flag_k = FK_NARROW(FK_TEST, 24); 13746 if (TEST_Z(_flag_a, _flag_b)) goto L_2509A485; /* 0x2509A470: je 0x2509a485 */ 13747 L_2509A472: 13748 ecx = MEM32(ebp + (-0x8)); /* 0x2509A472: mov ecx, dword ptr [ebp - 8] */ 13749 eax = MEM32(ecx); /* 0x2509A475: mov eax, dword ptr [ecx] */ 13750 PUSH32(esp, ebx); /* 0x2509A477: push ebx */ 13751 PUSH32(esp, ebx); /* 0x2509A478: push ebx */ 13752 edx = ebp + (-0x24); /* 0x2509A479: lea edx, [ebp - 0x24] */ 13753 PUSH32(esp, edx); /* 0x2509A47C: push edx */ 13754 PUSH32(esp, esi); /* 0x2509A47D: push esi */ 13755 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x2509A47E: call dword ptr [eax + 0x30] */ 13756 RECOMP_FLAGS_IN(); 13757 /* cmp LO8(eax), 1 */ /* 0x2509A481: cmp al, 1 */ 13758 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13760 _flag_k = FK_NARROW(FK_CMP, 24); 13761 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A4E1; /* 0x2509A483: je 0x2509a4e1 */ 13762 L_2509A485: 13763 /* cmp MEM32(ebp + (-0x8)), ebx */ /* 0x2509A485: cmp dword ptr [ebp - 8], ebx */ 13764 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(ebx); 13765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13766 _flag_k = FK_CMP; 13767 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A4B8; /* 0x2509A488: je 0x2509a4b8 */ 13768 L_2509A48A: 13769 eax = MEM32(ebp + (-0x4)); /* 0x2509A48A: mov eax, dword ptr [ebp - 4] */ 13770 PUSH32(esp, eax); /* 0x2509A48D: push eax */ 13771 ecx = ebp + (-0x8); /* 0x2509A48E: lea ecx, [ebp - 8] */ 13772 PUSH32(esp, ecx); /* 0x2509A491: push ecx */ 13773 RECOMP_ICALL(0x250E3530u); /* 0x2509A492: call 0x250e3530 */ /* not lifted */ 13774 RECOMP_FLAGS_IN(); 13775 edx = MEM32(ebp + (-0x8)); /* 0x2509A497: mov edx, dword ptr [ebp - 8] */ 13776 PUSH32(esp, ebx); /* 0x2509A49A: push ebx */ 13777 PUSH32(esp, 0x251B2970u); /* 0x2509A49B: push 0x251b2970 */ 13778 PUSH32(esp, 0x251B2970u); /* 0x2509A4A0: push 0x251b2970 */ 13779 PUSH32(esp, ebx); /* 0x2509A4A5: push ebx */ 13780 PUSH32(esp, edx); /* 0x2509A4A6: push edx */ 13781 RECOMP_ICALL(0x251381ACu); /* 0x2509A4A7: call 0x251381ac */ /* not lifted */ 13782 RECOMP_FLAGS_IN(); 13783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 13784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13785 esp = esp + 0x1Cu; /* 0x2509A4AC: add esp, 0x1c */ 13786 _flag_k = FK_ADD; 13787 /* test eax, eax */ /* 0x2509A4AF: test eax, eax */ 13788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13789 _cf = 0; 13790 _flag_k = FK_TEST; 13791 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A4B8; /* 0x2509A4B1: jne 0x2509a4b8 */ 13792 L_2509A4B3: 13793 /* cmp MEM32(ebp + (-0x8)), ebx */ /* 0x2509A4B3: cmp dword ptr [ebp - 8], ebx */ 13794 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(ebx); 13795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13796 _flag_k = FK_CMP; 13797 RECOMP_BACKEDGE(); 13798 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A48A; /* 0x2509A4B6: jne 0x2509a48a */ 13799 L_2509A4B8: 13800 eax = ebp + (-0x10); /* 0x2509A4B8: lea eax, [ebp - 0x10] */ 13801 PUSH32(esp, eax); /* 0x2509A4BB: push eax */ 13802 ecx = ebp + (-0x18); /* 0x2509A4BC: lea ecx, [ebp - 0x18] */ 13803 MEM32(ebp + (-0x10)) = ebx; /* 0x2509A4BF: mov dword ptr [ebp - 0x10], ebx */ 13804 MEM32(ebp + (-0xC)) = ebx; /* 0x2509A4C2: mov dword ptr [ebp - 0xc], ebx */ 13805 RECOMP_ICALL(0x25098250u); /* 0x2509A4C5: call 0x25098250 */ /* not lifted */ 13806 RECOMP_FLAGS_IN(); 13807 ecx = MEM32(ebp + (-0x8)); /* 0x2509A4CA: mov ecx, dword ptr [ebp - 8] */ 13808 /* cmp ecx, MEM32(ebp + (-0x18)) */ /* 0x2509A4CD: cmp ecx, dword ptr [ebp - 0x18] */ 13809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 13810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13811 _flag_k = FK_CMP; 13812 RECOMP_BACKEDGE(); 13813 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A2BA; /* 0x2509A4D0: jne 0x2509a2ba */ 13814 L_2509A4D6: 13815 edi = POP32_VAL(esp); /* 0x2509A4D6: pop edi */ 13816 esi = POP32_VAL(esp); /* 0x2509A4D7: pop esi */ 13817 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 13818 SET_LO8(eax, 0); /* 0x2509A4D8: xor al, al */ 13819 _cf = 0; 13820 _flag_k = FK_NARROW(FK_TEST, 24); 13821 ebx = POP32_VAL(esp); /* 0x2509A4DA: pop ebx */ 13822 esp = ebp; /* 0x2509A4DB: mov esp, ebp */ 13823 ebp = POP32_VAL(esp); /* 0x2509A4DD: pop ebp */ 13824 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509A4DE: ret 8 */ 13825 L_2509A4E1: 13826 edi = POP32_VAL(esp); /* 0x2509A4E1: pop edi */ 13827 esi = POP32_VAL(esp); /* 0x2509A4E2: pop esi */ 13828 SET_LO8(eax, 1); /* 0x2509A4E3: mov al, 1 */ 13829 ebx = POP32_VAL(esp); /* 0x2509A4E5: pop ebx */ 13830 esp = ebp; /* 0x2509A4E6: mov esp, ebp */ 13831 ebp = POP32_VAL(esp); /* 0x2509A4E8: pop ebp */ 13832 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509A4E9: ret 8 */ 13833 RECOMP_REGS_OUT(); 13834 } 13835 13836 void sub_2509A4F0(void) { 13837 int _fpu_cmp = 0; 13838 uint32_t _cf = 0; 13839 int _df = 1; 13840 uint32_t _flag_k = FK_NONE; 13841 uint32_t _flag_a = 0, _flag_b = 0; 13842 uint32_t _itail_tgt = 0; 13843 RECOMP_REGS_LOCALS 13844 RECOMP_ENTER(0x2509A4F0u); 13845 13846 L_2509A4F0: 13847 PUSH32(esp, ebp); /* 0x2509A4F0: push ebp */ 13848 ebp = esp; /* 0x2509A4F1: mov ebp, esp */ 13849 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 13850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13851 esp = esp - 0x14u; /* 0x2509A4F3: sub esp, 0x14 */ 13852 _flag_k = FK_CMP; 13853 eax = MEM32(ecx + 0x10); /* 0x2509A4F6: mov eax, dword ptr [ecx + 0x10] */ 13854 PUSH32(esp, esi); /* 0x2509A4F9: push esi */ 13855 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13856 esi = 0; /* 0x2509A4FA: xor esi, esi */ 13857 _cf = 0; 13858 _flag_k = FK_TEST; 13859 /* cmp eax, esi */ /* 0x2509A4FC: cmp eax, esi */ 13860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 13861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13862 _flag_k = FK_CMP; 13863 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A50B; /* 0x2509A4FE: jne 0x2509a50b */ 13864 L_2509A500: 13865 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x2509A500: fld dword ptr [0x2515177c] */ 13866 esi = POP32_VAL(esp); /* 0x2509A506: pop esi */ 13867 esp = ebp; /* 0x2509A507: mov esp, ebp */ 13868 ebp = POP32_VAL(esp); /* 0x2509A509: pop ebp */ 13869 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509A50A: ret */ 13870 L_2509A50B: 13871 PUSH32(esp, esi); /* 0x2509A50B: push esi */ 13872 PUSH32(esp, 0x251B2598u); /* 0x2509A50C: push 0x251b2598 */ 13873 PUSH32(esp, 0x251B2598u); /* 0x2509A511: push 0x251b2598 */ 13874 PUSH32(esp, esi); /* 0x2509A516: push esi */ 13875 PUSH32(esp, eax); /* 0x2509A517: push eax */ 13876 MEM32(ebp + (-0x4)) = 0; /* 0x2509A518: mov dword ptr [ebp - 4], 0 */ 13877 MEM32(ebp + (-0x14)) = eax; /* 0x2509A51F: mov dword ptr [ebp - 0x14], eax */ 13878 MEM32(ebp + (-0x10)) = eax; /* 0x2509A522: mov dword ptr [ebp - 0x10], eax */ 13879 RECOMP_ICALL(0x251381ACu); /* 0x2509A525: call 0x251381ac */ /* not lifted */ 13880 RECOMP_FLAGS_IN(); 13881 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 13882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13883 esp = esp + 0x14u; /* 0x2509A52A: add esp, 0x14 */ 13884 _flag_k = FK_ADD; 13885 /* test eax, eax */ /* 0x2509A52D: test eax, eax */ 13886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13887 _cf = 0; 13888 _flag_k = FK_TEST; 13889 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A539; /* 0x2509A52F: jne 0x2509a539 */ 13890 L_2509A531: 13891 ecx = ebp + (-0x14); /* 0x2509A531: lea ecx, [ebp - 0x14] */ 13892 RECOMP_ICALL(0x2509DA50u); /* 0x2509A534: call 0x2509da50 */ /* not lifted */ 13893 RECOMP_FLAGS_IN(); 13894 L_2509A539: 13895 eax = MEM32(ebp + (-0x14)); /* 0x2509A539: mov eax, dword ptr [ebp - 0x14] */ 13896 ecx = MEM32(ebp + (-0x10)); /* 0x2509A53C: mov ecx, dword ptr [ebp - 0x10] */ 13897 PUSH32(esp, esi); /* 0x2509A53F: push esi */ 13898 PUSH32(esp, 0x251B2970u); /* 0x2509A540: push 0x251b2970 */ 13899 PUSH32(esp, 0x251B2970u); /* 0x2509A545: push 0x251b2970 */ 13900 PUSH32(esp, esi); /* 0x2509A54A: push esi */ 13901 PUSH32(esp, eax); /* 0x2509A54B: push eax */ 13902 MEM32(ebp + (-0xC)) = eax; /* 0x2509A54C: mov dword ptr [ebp - 0xc], eax */ 13903 MEM32(ebp + (-0x8)) = ecx; /* 0x2509A54F: mov dword ptr [ebp - 8], ecx */ 13904 RECOMP_ICALL(0x251381ACu); /* 0x2509A552: call 0x251381ac */ /* not lifted */ 13905 RECOMP_FLAGS_IN(); 13906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 13907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13908 esp = esp + 0x14u; /* 0x2509A557: add esp, 0x14 */ 13909 _flag_k = FK_ADD; 13910 /* test eax, eax */ /* 0x2509A55A: test eax, eax */ 13911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13912 _cf = 0; 13913 _flag_k = FK_TEST; 13914 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A591; /* 0x2509A55C: jne 0x2509a591 */ 13915 L_2509A55E: 13916 /* cmp MEM32(ebp + (-0xC)), esi */ /* 0x2509A55E: cmp dword ptr [ebp - 0xc], esi */ 13917 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(esi); 13918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13919 _flag_k = FK_CMP; 13920 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A591; /* 0x2509A561: je 0x2509a591 */ 13921 L_2509A563: 13922 edx = MEM32(ebp + (-0x8)); /* 0x2509A563: mov edx, dword ptr [ebp - 8] */ 13923 PUSH32(esp, edx); /* 0x2509A566: push edx */ 13924 eax = ebp + (-0xC); /* 0x2509A567: lea eax, [ebp - 0xc] */ 13925 PUSH32(esp, eax); /* 0x2509A56A: push eax */ 13926 RECOMP_ICALL(0x250E3530u); /* 0x2509A56B: call 0x250e3530 */ /* not lifted */ 13927 RECOMP_FLAGS_IN(); 13928 ecx = MEM32(ebp + (-0xC)); /* 0x2509A570: mov ecx, dword ptr [ebp - 0xc] */ 13929 PUSH32(esp, esi); /* 0x2509A573: push esi */ 13930 PUSH32(esp, 0x251B2970u); /* 0x2509A574: push 0x251b2970 */ 13931 PUSH32(esp, 0x251B2970u); /* 0x2509A579: push 0x251b2970 */ 13932 PUSH32(esp, esi); /* 0x2509A57E: push esi */ 13933 PUSH32(esp, ecx); /* 0x2509A57F: push ecx */ 13934 RECOMP_ICALL(0x251381ACu); /* 0x2509A580: call 0x251381ac */ /* not lifted */ 13935 RECOMP_FLAGS_IN(); 13936 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 13937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13938 esp = esp + 0x1Cu; /* 0x2509A585: add esp, 0x1c */ 13939 _flag_k = FK_ADD; 13940 /* test eax, eax */ /* 0x2509A588: test eax, eax */ 13941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13942 _cf = 0; 13943 _flag_k = FK_TEST; 13944 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A591; /* 0x2509A58A: jne 0x2509a591 */ 13945 L_2509A58C: 13946 /* cmp MEM32(ebp + (-0xC)), esi */ /* 0x2509A58C: cmp dword ptr [ebp - 0xc], esi */ 13947 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(esi); 13948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13949 _flag_k = FK_CMP; 13950 RECOMP_BACKEDGE(); 13951 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A563; /* 0x2509A58F: jne 0x2509a563 */ 13952 L_2509A591: 13953 PUSH32(esp, esi); /* 0x2509A591: push esi */ 13954 PUSH32(esp, 0x251B2598u); /* 0x2509A592: push 0x251b2598 */ 13955 PUSH32(esp, 0x251B2598u); /* 0x2509A597: push 0x251b2598 */ 13956 PUSH32(esp, esi); /* 0x2509A59C: push esi */ 13957 PUSH32(esp, esi); /* 0x2509A59D: push esi */ 13958 MEM32(ebp + (-0x14)) = esi; /* 0x2509A59E: mov dword ptr [ebp - 0x14], esi */ 13959 MEM32(ebp + (-0x10)) = esi; /* 0x2509A5A1: mov dword ptr [ebp - 0x10], esi */ 13960 RECOMP_ICALL(0x251381ACu); /* 0x2509A5A4: call 0x251381ac */ /* not lifted */ 13961 RECOMP_FLAGS_IN(); 13962 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 13963 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13964 esp = esp + 0x14u; /* 0x2509A5A9: add esp, 0x14 */ 13965 _flag_k = FK_ADD; 13966 /* test eax, eax */ /* 0x2509A5AC: test eax, eax */ 13967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13968 _cf = 0; 13969 _flag_k = FK_TEST; 13970 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A5B8; /* 0x2509A5AE: jne 0x2509a5b8 */ 13971 L_2509A5B0: 13972 ecx = ebp + (-0x14); /* 0x2509A5B0: lea ecx, [ebp - 0x14] */ 13973 RECOMP_ICALL(0x2509DA50u); /* 0x2509A5B3: call 0x2509da50 */ /* not lifted */ 13974 RECOMP_FLAGS_IN(); 13975 L_2509A5B8: 13976 ecx = MEM32(ebp + (-0xC)); /* 0x2509A5B8: mov ecx, dword ptr [ebp - 0xc] */ 13977 /* cmp ecx, MEM32(ebp + (-0x14)) */ /* 0x2509A5BB: cmp ecx, dword ptr [ebp - 0x14] */ 13978 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x14))); 13979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13980 _flag_k = FK_CMP; 13981 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A611; /* 0x2509A5BE: je 0x2509a611 */ 13982 L_2509A5C0: 13983 edx = MEM32(ecx + 0x1F0); /* 0x2509A5C0: mov edx, dword ptr [ecx + 0x1f0] */ 13984 eax = MEM32(edx + 0x5C); /* 0x2509A5C6: mov eax, dword ptr [edx + 0x5c] */ 13985 fp_push(*(float*)&MEM32(eax + 0x14)); /* 0x2509A5C9: fld dword ptr [eax + 0x14] */ 13986 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0x4))); /* 0x2509A5CC: fcom dword ptr [ebp - 4] */ 13987 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509A5CF: fnstsw ax */ 13988 /* test HI8(eax), 0x41u */ /* 0x2509A5D1: test ah, 0x41 */ 13989 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13990 _cf = 0; 13991 _flag_k = FK_NARROW(FK_TEST, 24); 13992 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A5DB; /* 0x2509A5D4: jne 0x2509a5db */ 13993 L_2509A5D6: 13994 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2509A5D6: fstp dword ptr [ebp - 4] */ 13995 goto L_2509A5DD; /* 0x2509A5D9: jmp 0x2509a5dd */ 13996 L_2509A5DB: 13997 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2509A5DB: fstp st(0) */ 13998 L_2509A5DD: 13999 /* cmp ecx, esi */ /* 0x2509A5DD: cmp ecx, esi */ 14000 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 14001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14002 _flag_k = FK_CMP; 14003 RECOMP_BACKEDGE(); 14004 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A591; /* 0x2509A5DF: je 0x2509a591 */ 14005 L_2509A5E1: 14006 ecx = MEM32(ebp + (-0x8)); /* 0x2509A5E1: mov ecx, dword ptr [ebp - 8] */ 14007 PUSH32(esp, ecx); /* 0x2509A5E4: push ecx */ 14008 edx = ebp + (-0xC); /* 0x2509A5E5: lea edx, [ebp - 0xc] */ 14009 PUSH32(esp, edx); /* 0x2509A5E8: push edx */ 14010 RECOMP_ICALL(0x250E3530u); /* 0x2509A5E9: call 0x250e3530 */ /* not lifted */ 14011 RECOMP_FLAGS_IN(); 14012 eax = MEM32(ebp + (-0xC)); /* 0x2509A5EE: mov eax, dword ptr [ebp - 0xc] */ 14013 PUSH32(esp, esi); /* 0x2509A5F1: push esi */ 14014 PUSH32(esp, 0x251B2970u); /* 0x2509A5F2: push 0x251b2970 */ 14015 PUSH32(esp, 0x251B2970u); /* 0x2509A5F7: push 0x251b2970 */ 14016 PUSH32(esp, esi); /* 0x2509A5FC: push esi */ 14017 PUSH32(esp, eax); /* 0x2509A5FD: push eax */ 14018 RECOMP_ICALL(0x251381ACu); /* 0x2509A5FE: call 0x251381ac */ /* not lifted */ 14019 RECOMP_FLAGS_IN(); 14020 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 14021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14022 esp = esp + 0x1Cu; /* 0x2509A603: add esp, 0x1c */ 14023 _flag_k = FK_ADD; 14024 /* test eax, eax */ /* 0x2509A606: test eax, eax */ 14025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14026 _cf = 0; 14027 _flag_k = FK_TEST; 14028 RECOMP_BACKEDGE(); 14029 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A591; /* 0x2509A608: jne 0x2509a591 */ 14030 L_2509A60A: 14031 /* cmp MEM32(ebp + (-0xC)), esi */ /* 0x2509A60A: cmp dword ptr [ebp - 0xc], esi */ 14032 _flag_a = (uint32_t)(MEM32(ebp + (-0xC))); _flag_b = (uint32_t)(esi); 14033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14034 _flag_k = FK_CMP; 14035 RECOMP_BACKEDGE(); 14036 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A5E1; /* 0x2509A60D: jne 0x2509a5e1 */ 14037 L_2509A60F: 14038 RECOMP_BACKEDGE(); 14039 goto L_2509A591; /* 0x2509A60F: jmp 0x2509a591 */ 14040 L_2509A611: 14041 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x2509A611: fld dword ptr [ebp - 4] */ 14042 esi = POP32_VAL(esp); /* 0x2509A614: pop esi */ 14043 _st[0] += _st[0]; /* 0x2509A615: fadd st(0), st(0) */ 14044 esp = ebp; /* 0x2509A617: mov esp, ebp */ 14045 ebp = POP32_VAL(esp); /* 0x2509A619: pop ebp */ 14046 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509A61A: ret */ 14047 RECOMP_REGS_OUT(); 14048 } 14049 14050 void sub_2509A620(void) { 14051 int _fpu_cmp = 0; 14052 uint32_t _cf = 0; 14053 int _df = 1; 14054 uint32_t _flag_k = FK_NONE; 14055 uint32_t _flag_a = 0, _flag_b = 0; 14056 uint32_t _itail_tgt = 0; 14057 RECOMP_REGS_LOCALS 14058 RECOMP_ENTER(0x2509A620u); 14059 14060 L_2509A620: 14061 PUSH32(esp, ebp); /* 0x2509A620: push ebp */ 14062 ebp = esp; /* 0x2509A621: mov ebp, esp */ 14063 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 14064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14065 esp = esp - 0x20u; /* 0x2509A623: sub esp, 0x20 */ 14066 _flag_k = FK_CMP; 14067 eax = MEM32(ecx + 0x10); /* 0x2509A626: mov eax, dword ptr [ecx + 0x10] */ 14068 PUSH32(esp, ebx); /* 0x2509A629: push ebx */ 14069 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14070 ebx = 0; /* 0x2509A62A: xor ebx, ebx */ 14071 _cf = 0; 14072 _flag_k = FK_TEST; 14073 /* cmp eax, ebx */ /* 0x2509A62C: cmp eax, ebx */ 14074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14076 _flag_k = FK_CMP; 14077 PUSH32(esp, esi); /* 0x2509A62E: push esi */ 14078 PUSH32(esp, edi); /* 0x2509A62F: push edi */ 14079 MEM32(ebp + (-0x4)) = ecx; /* 0x2509A630: mov dword ptr [ebp - 4], ecx */ 14080 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A991; /* 0x2509A633: je 0x2509a991 */ 14081 L_2509A639: 14082 MEM32(ebp + (-0x20)) = eax; /* 0x2509A639: mov dword ptr [ebp - 0x20], eax */ 14083 MEM32(ebp + (-0x1C)) = eax; /* 0x2509A63C: mov dword ptr [ebp - 0x1c], eax */ 14084 eax = ebp + (-0x20); /* 0x2509A63F: lea eax, [ebp - 0x20] */ 14085 PUSH32(esp, eax); /* 0x2509A642: push eax */ 14086 ecx = ebp + (-0x18); /* 0x2509A643: lea ecx, [ebp - 0x18] */ 14087 MEM32(ebp + (-0x8)) = ebx; /* 0x2509A646: mov dword ptr [ebp - 8], ebx */ 14088 RECOMP_ICALL(0x25098250u); /* 0x2509A649: call 0x25098250 */ /* not lifted */ 14089 RECOMP_FLAGS_IN(); 14090 eax = MEM32(ebp + (-0x18)); /* 0x2509A64E: mov eax, dword ptr [ebp - 0x18] */ 14091 ecx = MEM32(ebp + (-0x14)); /* 0x2509A651: mov ecx, dword ptr [ebp - 0x14] */ 14092 PUSH32(esp, ebx); /* 0x2509A654: push ebx */ 14093 PUSH32(esp, 0x251B2970u); /* 0x2509A655: push 0x251b2970 */ 14094 PUSH32(esp, 0x251B2970u); /* 0x2509A65A: push 0x251b2970 */ 14095 PUSH32(esp, ebx); /* 0x2509A65F: push ebx */ 14096 PUSH32(esp, eax); /* 0x2509A660: push eax */ 14097 MEM32(ebp + (-0x10)) = eax; /* 0x2509A661: mov dword ptr [ebp - 0x10], eax */ 14098 MEM32(ebp + (-0xC)) = ecx; /* 0x2509A664: mov dword ptr [ebp - 0xc], ecx */ 14099 RECOMP_ICALL(0x251381ACu); /* 0x2509A667: call 0x251381ac */ /* not lifted */ 14100 RECOMP_FLAGS_IN(); 14101 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 14102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14103 esp = esp + 0x14u; /* 0x2509A66C: add esp, 0x14 */ 14104 _flag_k = FK_ADD; 14105 /* test eax, eax */ /* 0x2509A66F: test eax, eax */ 14106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14107 _cf = 0; 14108 _flag_k = FK_TEST; 14109 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A67B; /* 0x2509A671: jne 0x2509a67b */ 14110 L_2509A673: 14111 ecx = ebp + (-0x10); /* 0x2509A673: lea ecx, [ebp - 0x10] */ 14112 RECOMP_ICALL(0x250982C0u); /* 0x2509A676: call 0x250982c0 */ /* not lifted */ 14113 RECOMP_FLAGS_IN(); 14114 L_2509A67B: 14115 edx = ebp + (-0x18); /* 0x2509A67B: lea edx, [ebp - 0x18] */ 14116 PUSH32(esp, edx); /* 0x2509A67E: push edx */ 14117 ecx = ebp + (-0x20); /* 0x2509A67F: lea ecx, [ebp - 0x20] */ 14118 MEM32(ebp + (-0x18)) = ebx; /* 0x2509A682: mov dword ptr [ebp - 0x18], ebx */ 14119 MEM32(ebp + (-0x14)) = ebx; /* 0x2509A685: mov dword ptr [ebp - 0x14], ebx */ 14120 RECOMP_ICALL(0x25098250u); /* 0x2509A688: call 0x25098250 */ /* not lifted */ 14121 RECOMP_FLAGS_IN(); 14122 edx = MEM32(ebp + (-0x10)); /* 0x2509A68D: mov edx, dword ptr [ebp - 0x10] */ 14123 /* cmp edx, MEM32(ebp + (-0x20)) */ /* 0x2509A690: cmp edx, dword ptr [ebp - 0x20] */ 14124 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 14125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14126 _flag_k = FK_CMP; 14127 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A991; /* 0x2509A693: je 0x2509a991 */ 14128 L_2509A699: 14129 esi = MEM32(edx + 0x1F0); /* 0x2509A699: mov esi, dword ptr [edx + 0x1f0] */ 14130 eax = MEM32(esi + 0x48); /* 0x2509A69F: mov eax, dword ptr [esi + 0x48] */ 14131 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 14132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14133 esi = esi + 0x44u; /* 0x2509A6A2: add esi, 0x44 */ 14134 _flag_k = FK_ADD; 14135 /* cmp eax, ebx */ /* 0x2509A6A5: cmp eax, ebx */ 14136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14138 _flag_k = FK_CMP; 14139 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A6AD; /* 0x2509A6A7: jne 0x2509a6ad */ 14140 L_2509A6A9: 14141 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14142 ecx = 0; /* 0x2509A6A9: xor ecx, ecx */ 14143 _cf = 0; 14144 _flag_k = FK_TEST; 14145 goto L_2509A6B5; /* 0x2509A6AB: jmp 0x2509a6b5 */ 14146 L_2509A6AD: 14147 ecx = MEM32(esi + 0x8); /* 0x2509A6AD: mov ecx, dword ptr [esi + 8] */ 14148 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 14149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14150 ecx = ecx - eax; /* 0x2509A6B0: sub ecx, eax */ 14151 _flag_k = FK_CMP; 14152 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509A6B2: sar ecx, 2 */ 14153 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14154 ecx = (uint32_t)((int32_t)ecx >> 2u); 14155 L_2509A6B5: 14156 /* cmp ecx, MEM32(ebp + 0xC) */ /* 0x2509A6B5: cmp ecx, dword ptr [ebp + 0xc] */ 14157 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 14158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14159 _flag_k = FK_CMP; 14160 if (CMP_AE(_flag_a, _flag_b)) goto L_2509A747; /* 0x2509A6B8: jae 0x2509a747 */ 14161 L_2509A6BE: 14162 /* cmp eax, ebx */ /* 0x2509A6BE: cmp eax, ebx */ 14163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14165 _flag_k = FK_CMP; 14166 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A6C6; /* 0x2509A6C0: jne 0x2509a6c6 */ 14167 L_2509A6C2: 14168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14169 ecx = 0; /* 0x2509A6C2: xor ecx, ecx */ 14170 _cf = 0; 14171 _flag_k = FK_TEST; 14172 goto L_2509A6CE; /* 0x2509A6C4: jmp 0x2509a6ce */ 14173 L_2509A6C6: 14174 ecx = MEM32(esi + 0x8); /* 0x2509A6C6: mov ecx, dword ptr [esi + 8] */ 14175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 14176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14177 ecx = ecx - eax; /* 0x2509A6C9: sub ecx, eax */ 14178 _flag_k = FK_CMP; 14179 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509A6CB: sar ecx, 2 */ 14180 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14181 ecx = (uint32_t)((int32_t)ecx >> 2u); 14182 L_2509A6CE: 14183 edi = MEM32(ebp + 0xC); /* 0x2509A6CE: mov edi, dword ptr [ebp + 0xc] */ 14184 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 14185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14186 edi = edi - ecx; /* 0x2509A6D1: sub edi, ecx */ 14187 _flag_k = FK_CMP; 14188 /* cmp eax, ebx */ /* 0x2509A6D3: cmp eax, ebx */ 14189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14191 _flag_k = FK_CMP; 14192 MEM32(ebp + 0xC) = edi; /* 0x2509A6D5: mov dword ptr [ebp + 0xc], edi */ 14193 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A6DE; /* 0x2509A6D8: jne 0x2509a6de */ 14194 L_2509A6DA: 14195 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14196 esi = 0; /* 0x2509A6DA: xor esi, esi */ 14197 _cf = 0; 14198 _flag_k = FK_TEST; 14199 goto L_2509A6E6; /* 0x2509A6DC: jmp 0x2509a6e6 */ 14200 L_2509A6DE: 14201 esi = MEM32(esi + 0x8); /* 0x2509A6DE: mov esi, dword ptr [esi + 8] */ 14202 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 14203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14204 esi = esi - eax; /* 0x2509A6E1: sub esi, eax */ 14205 _flag_k = FK_CMP; 14206 if (2u) _cf = (((esi) >> 1) & 1u); /* 0x2509A6E3: sar esi, 2 */ 14207 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14208 esi = (uint32_t)((int32_t)esi >> 2u); 14209 L_2509A6E6: 14210 ecx = MEM32(ebp + (-0x8)); /* 0x2509A6E6: mov ecx, dword ptr [ebp - 8] */ 14211 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 14212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14213 ecx = ecx + esi; /* 0x2509A6E9: add ecx, esi */ 14214 _flag_k = FK_ADD; 14215 /* cmp edx, ebx */ /* 0x2509A6EB: cmp edx, ebx */ 14216 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 14217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14218 _flag_k = FK_CMP; 14219 MEM32(ebp + (-0x8)) = ecx; /* 0x2509A6ED: mov dword ptr [ebp - 8], ecx */ 14220 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A720; /* 0x2509A6F0: je 0x2509a720 */ 14221 L_2509A6F2: 14222 eax = MEM32(ebp + (-0xC)); /* 0x2509A6F2: mov eax, dword ptr [ebp - 0xc] */ 14223 PUSH32(esp, eax); /* 0x2509A6F5: push eax */ 14224 ecx = ebp + (-0x10); /* 0x2509A6F6: lea ecx, [ebp - 0x10] */ 14225 PUSH32(esp, ecx); /* 0x2509A6F9: push ecx */ 14226 RECOMP_ICALL(0x250E3530u); /* 0x2509A6FA: call 0x250e3530 */ /* not lifted */ 14227 RECOMP_FLAGS_IN(); 14228 edx = MEM32(ebp + (-0x10)); /* 0x2509A6FF: mov edx, dword ptr [ebp - 0x10] */ 14229 PUSH32(esp, ebx); /* 0x2509A702: push ebx */ 14230 PUSH32(esp, 0x251B2970u); /* 0x2509A703: push 0x251b2970 */ 14231 PUSH32(esp, 0x251B2970u); /* 0x2509A708: push 0x251b2970 */ 14232 PUSH32(esp, ebx); /* 0x2509A70D: push ebx */ 14233 PUSH32(esp, edx); /* 0x2509A70E: push edx */ 14234 RECOMP_ICALL(0x251381ACu); /* 0x2509A70F: call 0x251381ac */ /* not lifted */ 14235 RECOMP_FLAGS_IN(); 14236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 14237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14238 esp = esp + 0x1Cu; /* 0x2509A714: add esp, 0x1c */ 14239 _flag_k = FK_ADD; 14240 /* test eax, eax */ /* 0x2509A717: test eax, eax */ 14241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14242 _cf = 0; 14243 _flag_k = FK_TEST; 14244 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A720; /* 0x2509A719: jne 0x2509a720 */ 14245 L_2509A71B: 14246 /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x2509A71B: cmp dword ptr [ebp - 0x10], ebx */ 14247 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx); 14248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14249 _flag_k = FK_CMP; 14250 RECOMP_BACKEDGE(); 14251 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A6F2; /* 0x2509A71E: jne 0x2509a6f2 */ 14252 L_2509A720: 14253 eax = ebp + (-0x18); /* 0x2509A720: lea eax, [ebp - 0x18] */ 14254 PUSH32(esp, eax); /* 0x2509A723: push eax */ 14255 ecx = ebp + (-0x20); /* 0x2509A724: lea ecx, [ebp - 0x20] */ 14256 MEM32(ebp + (-0x18)) = ebx; /* 0x2509A727: mov dword ptr [ebp - 0x18], ebx */ 14257 MEM32(ebp + (-0x14)) = ebx; /* 0x2509A72A: mov dword ptr [ebp - 0x14], ebx */ 14258 RECOMP_ICALL(0x25098250u); /* 0x2509A72D: call 0x25098250 */ /* not lifted */ 14259 RECOMP_FLAGS_IN(); 14260 edx = MEM32(ebp + (-0x10)); /* 0x2509A732: mov edx, dword ptr [ebp - 0x10] */ 14261 /* cmp edx, MEM32(ebp + (-0x20)) */ /* 0x2509A735: cmp edx, dword ptr [ebp - 0x20] */ 14262 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 14263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14264 _flag_k = FK_CMP; 14265 RECOMP_BACKEDGE(); 14266 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A699; /* 0x2509A738: jne 0x2509a699 */ 14267 L_2509A73E: 14268 edi = POP32_VAL(esp); /* 0x2509A73E: pop edi */ 14269 esi = POP32_VAL(esp); /* 0x2509A73F: pop esi */ 14270 ebx = POP32_VAL(esp); /* 0x2509A740: pop ebx */ 14271 esp = ebp; /* 0x2509A741: mov esp, ebp */ 14272 ebp = POP32_VAL(esp); /* 0x2509A743: pop ebp */ 14273 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509A744: ret 8 */ 14274 L_2509A747: 14275 ecx = MEM32(ebp + 0x8); /* 0x2509A747: mov ecx, dword ptr [ebp + 8] */ 14276 MEM32(ebp + (-0x20)) = 0x000F6954u; /* 0x2509A74A: mov dword ptr [ebp - 0x20], 0xf6954 */ 14277 MEM32(ebp + (-0x1C)) = ecx; /* 0x2509A751: mov dword ptr [ebp - 0x1c], ecx */ 14278 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509A754: call dword ptr [0x251515d8] */ 14279 RECOMP_FLAGS_IN(); 14280 edx = MEM32(eax); /* 0x2509A75A: mov edx, dword ptr [eax] */ 14281 PUSH32(esp, 3); /* 0x2509A75C: push 3 */ 14282 PUSH32(esp, 1); /* 0x2509A75E: push 1 */ 14283 ecx = ebp + (-0x20); /* 0x2509A760: lea ecx, [ebp - 0x20] */ 14284 PUSH32(esp, ecx); /* 0x2509A763: push ecx */ 14285 ecx = eax; /* 0x2509A764: mov ecx, eax */ 14286 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509A766: call dword ptr [edx + 0x24] */ 14287 RECOMP_FLAGS_IN(); 14288 edi = eax; /* 0x2509A769: mov edi, eax */ 14289 /* cmp edi, ebx */ /* 0x2509A76B: cmp edi, ebx */ 14290 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 14291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14292 _flag_k = FK_CMP; 14293 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A991; /* 0x2509A76D: je 0x2509a991 */ 14294 L_2509A773: 14295 ecx = MEM32(ebp + 0xC); /* 0x2509A773: mov ecx, dword ptr [ebp + 0xc] */ 14296 eax = MEM32(esi + 0x4); /* 0x2509A776: mov eax, dword ptr [esi + 4] */ 14297 eax = MEM32(eax + ecx * 4); /* 0x2509A779: mov eax, dword ptr [eax + ecx*4] */ 14298 ecx = MEM32(eax + 0x160); /* 0x2509A77C: mov ecx, dword ptr [eax + 0x160] */ 14299 eax = MEM32(ebp + (-0x4)); /* 0x2509A782: mov eax, dword ptr [ebp - 4] */ 14300 MEM32(ebp + 0x8) = ecx; /* 0x2509A785: mov dword ptr [ebp + 8], ecx */ 14301 ecx = MEM32(eax + 0x4C); /* 0x2509A788: mov ecx, dword ptr [eax + 0x4c] */ 14302 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 14303 SET_LO8(edx, 0); /* 0x2509A78B: xor dl, dl */ 14304 _cf = 0; 14305 _flag_k = FK_NARROW(FK_TEST, 24); 14306 /* cmp ecx, ebx */ /* 0x2509A78D: cmp ecx, ebx */ 14307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 14308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14309 _flag_k = FK_CMP; 14310 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A7DC; /* 0x2509A78F: je 0x2509a7dc */ 14311 L_2509A791: 14312 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14313 esi = 0; /* 0x2509A791: xor esi, esi */ 14314 _cf = 0; 14315 _flag_k = FK_TEST; 14316 L_2509A793: 14317 ecx = MEM32(ebp + (-0x4)); /* 0x2509A793: mov ecx, dword ptr [ebp - 4] */ 14318 eax = MEM32(ecx + 0x4C); /* 0x2509A796: mov eax, dword ptr [ecx + 0x4c] */ 14319 ecx = MEM32(eax + 0x4); /* 0x2509A799: mov ecx, dword ptr [eax + 4] */ 14320 /* cmp ecx, ebx */ /* 0x2509A79C: cmp ecx, ebx */ 14321 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 14322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14323 _flag_k = FK_CMP; 14324 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A80C; /* 0x2509A79E: je 0x2509a80c */ 14325 L_2509A7A0: 14326 ebx = MEM32(eax + 0x8); /* 0x2509A7A0: mov ebx, dword ptr [eax + 8] */ 14327 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 14328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14329 ebx = ebx - ecx; /* 0x2509A7A3: sub ebx, ecx */ 14330 _flag_k = FK_CMP; 14331 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2509A7A5: sar ebx, 2 */ 14332 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14333 ebx = (uint32_t)((int32_t)ebx >> 2u); 14334 /* cmp esi, ebx */ /* 0x2509A7A8: cmp esi, ebx */ 14335 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14337 _flag_k = FK_CMP; 14338 if (CMP_AE(_flag_a, _flag_b)) goto L_2509A80A; /* 0x2509A7AA: jae 0x2509a80a */ 14339 L_2509A7AC: 14340 eax = ecx; /* 0x2509A7AC: mov eax, ecx */ 14341 eax = MEM32(eax + esi * 4); /* 0x2509A7AE: mov eax, dword ptr [eax + esi*4] */ 14342 ecx = MEM32(ebp + 0x8); /* 0x2509A7B1: mov ecx, dword ptr [ebp + 8] */ 14343 /* cmp MEM32(eax), ecx */ /* 0x2509A7B4: cmp dword ptr [eax], ecx */ 14344 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx); 14345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14346 _flag_k = FK_CMP; 14347 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A7D7; /* 0x2509A7B6: jne 0x2509a7d7 */ 14348 L_2509A7B8: 14349 ecx = MEM32(eax + 0x4); /* 0x2509A7B8: mov ecx, dword ptr [eax + 4] */ 14350 edx = MEM32(ecx); /* 0x2509A7BB: mov edx, dword ptr [ecx] */ 14351 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14352 ebx = 0; /* 0x2509A7BD: xor ebx, ebx */ 14353 _cf = 0; 14354 _flag_k = FK_TEST; 14355 PUSH32(esp, ebx); /* 0x2509A7BF: push ebx */ 14356 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x2509A7C0: call dword ptr [edx + 0x28] */ 14357 RECOMP_FLAGS_IN(); 14358 eax = MEM32(ebp + (-0x4)); /* 0x2509A7C3: mov eax, dword ptr [ebp - 4] */ 14359 ecx = MEM32(eax + 0x4C); /* 0x2509A7C6: mov ecx, dword ptr [eax + 0x4c] */ 14360 edx = MEM32(ecx + 0x4); /* 0x2509A7C9: mov edx, dword ptr [ecx + 4] */ 14361 eax = MEM32(edx + esi * 4); /* 0x2509A7CC: mov eax, dword ptr [edx + esi*4] */ 14362 MEM32(eax + 0x4) = edi; /* 0x2509A7CF: mov dword ptr [eax + 4], edi */ 14363 SET_LO8(edx, 1); /* 0x2509A7D2: mov dl, 1 */ 14364 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 14365 esi = esi + 1; /* 0x2509A7D4: inc esi */ 14366 _flag_k = FK_INC; 14367 RECOMP_BACKEDGE(); 14368 goto L_2509A793; /* 0x2509A7D5: jmp 0x2509a793 */ 14369 L_2509A7D7: 14370 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14371 ebx = 0; /* 0x2509A7D7: xor ebx, ebx */ 14372 _cf = 0; 14373 _flag_k = FK_TEST; 14374 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 14375 esi = esi + 1; /* 0x2509A7D9: inc esi */ 14376 _flag_k = FK_INC; 14377 RECOMP_BACKEDGE(); 14378 goto L_2509A793; /* 0x2509A7DA: jmp 0x2509a793 */ 14379 L_2509A7DC: 14380 PUSH32(esp, 0x10u); /* 0x2509A7DC: push 0x10 */ 14381 RECOMP_ICALL(0x251380D0u); /* 0x2509A7DE: call 0x251380d0 */ /* not lifted */ 14382 RECOMP_FLAGS_IN(); 14383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14385 esp = esp + 4; /* 0x2509A7E3: add esp, 4 */ 14386 _flag_k = FK_ADD; 14387 /* cmp eax, ebx */ /* 0x2509A7E6: cmp eax, ebx */ 14388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14390 _flag_k = FK_CMP; 14391 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A800; /* 0x2509A7E8: je 0x2509a800 */ 14392 L_2509A7EA: 14393 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x2509A7EA: mov cl, byte ptr [ebp + 0xf] */ 14394 edx = MEM32(ebp + (-0x4)); /* 0x2509A7ED: mov edx, dword ptr [ebp - 4] */ 14395 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2509A7F0: mov byte ptr [eax], cl */ 14396 MEM32(eax + 0x4) = ebx; /* 0x2509A7F2: mov dword ptr [eax + 4], ebx */ 14397 MEM32(eax + 0x8) = ebx; /* 0x2509A7F5: mov dword ptr [eax + 8], ebx */ 14398 MEM32(eax + 0xC) = ebx; /* 0x2509A7F8: mov dword ptr [eax + 0xc], ebx */ 14399 MEM32(edx + 0x4C) = eax; /* 0x2509A7FB: mov dword ptr [edx + 0x4c], eax */ 14400 goto L_2509A814; /* 0x2509A7FE: jmp 0x2509a814 */ 14401 L_2509A800: 14402 edx = MEM32(ebp + (-0x4)); /* 0x2509A800: mov edx, dword ptr [ebp - 4] */ 14403 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14404 eax = 0; /* 0x2509A803: xor eax, eax */ 14405 _cf = 0; 14406 _flag_k = FK_TEST; 14407 MEM32(edx + 0x4C) = eax; /* 0x2509A805: mov dword ptr [edx + 0x4c], eax */ 14408 goto L_2509A814; /* 0x2509A808: jmp 0x2509a814 */ 14409 L_2509A80A: 14410 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14411 ebx = 0; /* 0x2509A80A: xor ebx, ebx */ 14412 _cf = 0; 14413 _flag_k = FK_TEST; 14414 L_2509A80C: 14415 /* test LO8(edx), LO8(edx) */ /* 0x2509A80C: test dl, dl */ 14416 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 14417 _cf = 0; 14418 _flag_k = FK_NARROW(FK_TEST, 24); 14419 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A985; /* 0x2509A80E: jne 0x2509a985 */ 14420 L_2509A814: 14421 PUSH32(esp, 8); /* 0x2509A814: push 8 */ 14422 RECOMP_ICALL(0x251380D0u); /* 0x2509A816: call 0x251380d0 */ /* not lifted */ 14423 RECOMP_FLAGS_IN(); 14424 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14426 esp = esp + 4; /* 0x2509A81B: add esp, 4 */ 14427 _flag_k = FK_ADD; 14428 /* cmp eax, ebx */ /* 0x2509A81E: cmp eax, ebx */ 14429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14431 _flag_k = FK_CMP; 14432 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A829; /* 0x2509A820: je 0x2509a829 */ 14433 L_2509A822: 14434 MEM32(eax) = ebx; /* 0x2509A822: mov dword ptr [eax], ebx */ 14435 MEM32(eax + 0x4) = ebx; /* 0x2509A824: mov dword ptr [eax + 4], ebx */ 14436 goto L_2509A82B; /* 0x2509A827: jmp 0x2509a82b */ 14437 L_2509A829: 14438 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14439 eax = 0; /* 0x2509A829: xor eax, eax */ 14440 _cf = 0; 14441 _flag_k = FK_TEST; 14442 L_2509A82B: 14443 ecx = MEM32(ebp + 0x8); /* 0x2509A82B: mov ecx, dword ptr [ebp + 8] */ 14444 MEM32(ebp + 0xC) = eax; /* 0x2509A82E: mov dword ptr [ebp + 0xc], eax */ 14445 MEM32(eax) = ecx; /* 0x2509A831: mov dword ptr [eax], ecx */ 14446 edx = MEM32(ebp + 0xC); /* 0x2509A833: mov edx, dword ptr [ebp + 0xc] */ 14447 eax = MEM32(ebp + (-0x4)); /* 0x2509A836: mov eax, dword ptr [ebp - 4] */ 14448 MEM32(edx + 0x4) = edi; /* 0x2509A839: mov dword ptr [edx + 4], edi */ 14449 esi = MEM32(eax + 0x4C); /* 0x2509A83C: mov esi, dword ptr [eax + 0x4c] */ 14450 edi = MEM32(esi + 0x8); /* 0x2509A83F: mov edi, dword ptr [esi + 8] */ 14451 ecx = MEM32(esi + 0xC); /* 0x2509A842: mov ecx, dword ptr [esi + 0xc] */ 14452 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 14453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14454 ecx = ecx - edi; /* 0x2509A845: sub ecx, edi */ 14455 _flag_k = FK_CMP; 14456 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509A847: sar ecx, 2 */ 14457 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14458 ecx = (uint32_t)((int32_t)ecx >> 2u); 14459 /* cmp ecx, 1 */ /* 0x2509A84A: cmp ecx, 1 */ 14460 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14462 _flag_k = FK_CMP; 14463 if (CMP_AE(_flag_a, _flag_b)) goto L_2509A8FC; /* 0x2509A84D: jae 0x2509a8fc */ 14464 L_2509A853: 14465 ecx = esi; /* 0x2509A853: mov ecx, esi */ 14466 RECOMP_ICALL(0x251262D0u); /* 0x2509A855: call 0x251262d0 */ /* not lifted */ 14467 RECOMP_FLAGS_IN(); 14468 /* cmp eax, 1 */ /* 0x2509A85A: cmp eax, 1 */ 14469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 14470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14471 _flag_k = FK_CMP; 14472 if (CMP_BE(_flag_a, _flag_b)) goto L_2509A86A; /* 0x2509A85D: jbe 0x2509a86a */ 14473 L_2509A85F: 14474 ecx = esi; /* 0x2509A85F: mov ecx, esi */ 14475 RECOMP_ICALL(0x251262D0u); /* 0x2509A861: call 0x251262d0 */ /* not lifted */ 14476 RECOMP_FLAGS_IN(); 14477 ebx = eax; /* 0x2509A866: mov ebx, eax */ 14478 goto L_2509A86F; /* 0x2509A868: jmp 0x2509a86f */ 14479 L_2509A86A: 14480 ebx = 1; /* 0x2509A86A: mov ebx, 1 */ 14481 L_2509A86F: 14482 ecx = esi; /* 0x2509A86F: mov ecx, esi */ 14483 RECOMP_ICALL(0x251262D0u); /* 0x2509A871: call 0x251262d0 */ /* not lifted */ 14484 RECOMP_FLAGS_IN(); 14485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 14486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14487 eax = eax + ebx; /* 0x2509A876: add eax, ebx */ 14488 _flag_k = FK_ADD; 14489 MEM32(ebp + (-0x8)) = eax; /* 0x2509A878: mov dword ptr [ebp - 8], eax */ 14490 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509A87F; /* 0x2509A87B: jns 0x2509a87f */ 14491 L_2509A87D: 14492 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14493 eax = 0; /* 0x2509A87D: xor eax, eax */ 14494 _cf = 0; 14495 _flag_k = FK_TEST; 14496 L_2509A87F: 14497 edx = eax * 4; /* 0x2509A87F: lea edx, [eax*4] */ 14498 PUSH32(esp, edx); /* 0x2509A886: push edx */ 14499 RECOMP_ICALL(0x251380D0u); /* 0x2509A887: call 0x251380d0 */ /* not lifted */ 14500 RECOMP_FLAGS_IN(); 14501 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14503 esp = esp + 4; /* 0x2509A88C: add esp, 4 */ 14504 _flag_k = FK_ADD; 14505 ebx = eax; /* 0x2509A88F: mov ebx, eax */ 14506 eax = MEM32(esi + 0x4); /* 0x2509A891: mov eax, dword ptr [esi + 4] */ 14507 PUSH32(esp, ebx); /* 0x2509A894: push ebx */ 14508 PUSH32(esp, edi); /* 0x2509A895: push edi */ 14509 PUSH32(esp, eax); /* 0x2509A896: push eax */ 14510 ecx = esi; /* 0x2509A897: mov ecx, esi */ 14511 RECOMP_ICALL(0x250E3D40u); /* 0x2509A899: call 0x250e3d40 */ /* not lifted */ 14512 RECOMP_FLAGS_IN(); 14513 ecx = ebp + 0xC; /* 0x2509A89E: lea ecx, [ebp + 0xc] */ 14514 PUSH32(esp, ecx); /* 0x2509A8A1: push ecx */ 14515 PUSH32(esp, 1); /* 0x2509A8A2: push 1 */ 14516 PUSH32(esp, eax); /* 0x2509A8A4: push eax */ 14517 ecx = esi; /* 0x2509A8A5: mov ecx, esi */ 14518 MEM32(ebp + 0x8) = eax; /* 0x2509A8A7: mov dword ptr [ebp + 8], eax */ 14519 RECOMP_ICALL(0x250E3D70u); /* 0x2509A8AA: call 0x250e3d70 */ /* not lifted */ 14520 RECOMP_FLAGS_IN(); 14521 edx = MEM32(ebp + 0x8); /* 0x2509A8AF: mov edx, dword ptr [ebp + 8] */ 14522 eax = MEM32(esi + 0x8); /* 0x2509A8B2: mov eax, dword ptr [esi + 8] */ 14523 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 14524 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14525 edx = edx + 4; /* 0x2509A8B5: add edx, 4 */ 14526 _flag_k = FK_ADD; 14527 PUSH32(esp, edx); /* 0x2509A8B8: push edx */ 14528 PUSH32(esp, eax); /* 0x2509A8B9: push eax */ 14529 PUSH32(esp, edi); /* 0x2509A8BA: push edi */ 14530 ecx = esi; /* 0x2509A8BB: mov ecx, esi */ 14531 RECOMP_ICALL(0x250E3D40u); /* 0x2509A8BD: call 0x250e3d40 */ /* not lifted */ 14532 RECOMP_FLAGS_IN(); 14533 ecx = MEM32(esi + 0x8); /* 0x2509A8C2: mov ecx, dword ptr [esi + 8] */ 14534 edx = MEM32(esi + 0x4); /* 0x2509A8C5: mov edx, dword ptr [esi + 4] */ 14535 PUSH32(esp, ecx); /* 0x2509A8C8: push ecx */ 14536 PUSH32(esp, edx); /* 0x2509A8C9: push edx */ 14537 ecx = esi; /* 0x2509A8CA: mov ecx, esi */ 14538 RECOMP_ICALL(0x25093260u); /* 0x2509A8CC: call 0x25093260 */ /* not lifted */ 14539 RECOMP_FLAGS_IN(); 14540 eax = MEM32(esi + 0x4); /* 0x2509A8D1: mov eax, dword ptr [esi + 4] */ 14541 PUSH32(esp, eax); /* 0x2509A8D4: push eax */ 14542 RECOMP_ICALL(0x25137EECu); /* 0x2509A8D5: call 0x25137eec */ /* not lifted */ 14543 RECOMP_FLAGS_IN(); 14544 ecx = MEM32(ebp + (-0x8)); /* 0x2509A8DA: mov ecx, dword ptr [ebp - 8] */ 14545 edx = ebx + ecx * 4; /* 0x2509A8DD: lea edx, [ebx + ecx*4] */ 14546 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14548 esp = esp + 4; /* 0x2509A8E0: add esp, 4 */ 14549 _flag_k = FK_ADD; 14550 ecx = esi; /* 0x2509A8E3: mov ecx, esi */ 14551 MEM32(esi + 0xC) = edx; /* 0x2509A8E5: mov dword ptr [esi + 0xc], edx */ 14552 RECOMP_ICALL(0x251262D0u); /* 0x2509A8E8: call 0x251262d0 */ /* not lifted */ 14553 RECOMP_FLAGS_IN(); 14554 eax = ebx + eax * 4 + 0x4; /* 0x2509A8ED: lea eax, [ebx + eax*4 + 4] */ 14555 MEM32(esi + 0x8) = eax; /* 0x2509A8F1: mov dword ptr [esi + 8], eax */ 14556 MEM32(esi + 0x4) = ebx; /* 0x2509A8F4: mov dword ptr [esi + 4], ebx */ 14557 goto L_2509A985; /* 0x2509A8F7: jmp 0x2509a985 */ 14558 L_2509A8FC: 14559 ecx = edi; /* 0x2509A8FC: mov ecx, edi */ 14560 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 14561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14562 ecx = ecx - edi; /* 0x2509A8FE: sub ecx, edi */ 14563 _flag_k = FK_CMP; 14564 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509A900: sar ecx, 2 */ 14565 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14566 ecx = (uint32_t)((int32_t)ecx >> 2u); 14567 /* cmp ecx, 1 */ /* 0x2509A903: cmp ecx, 1 */ 14568 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 14569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14570 _flag_k = FK_CMP; 14571 if (CMP_AE(_flag_a, _flag_b)) goto L_2509A948; /* 0x2509A906: jae 0x2509a948 */ 14572 L_2509A908: 14573 edx = edi + 0x4; /* 0x2509A908: lea edx, [edi + 4] */ 14574 PUSH32(esp, edx); /* 0x2509A90B: push edx */ 14575 PUSH32(esp, edi); /* 0x2509A90C: push edi */ 14576 PUSH32(esp, edi); /* 0x2509A90D: push edi */ 14577 ecx = esi; /* 0x2509A90E: mov ecx, esi */ 14578 RECOMP_ICALL(0x250E3D40u); /* 0x2509A910: call 0x250e3d40 */ /* not lifted */ 14579 RECOMP_FLAGS_IN(); 14580 eax = MEM32(esi + 0x8); /* 0x2509A915: mov eax, dword ptr [esi + 8] */ 14581 edx = eax; /* 0x2509A918: mov edx, eax */ 14582 ecx = ebp + 0xC; /* 0x2509A91A: lea ecx, [ebp + 0xc] */ 14583 PUSH32(esp, ecx); /* 0x2509A91D: push ecx */ 14584 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 14585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14586 edx = edx - edi; /* 0x2509A91E: sub edx, edi */ 14587 _flag_k = FK_CMP; 14588 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509A920: sar edx, 2 */ 14589 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14590 edx = (uint32_t)((int32_t)edx >> 2u); 14591 ecx = 1; /* 0x2509A923: mov ecx, 1 */ 14592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 14593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14594 ecx = ecx - edx; /* 0x2509A928: sub ecx, edx */ 14595 _flag_k = FK_CMP; 14596 PUSH32(esp, ecx); /* 0x2509A92A: push ecx */ 14597 PUSH32(esp, eax); /* 0x2509A92B: push eax */ 14598 ecx = esi; /* 0x2509A92C: mov ecx, esi */ 14599 RECOMP_ICALL(0x250E3D70u); /* 0x2509A92E: call 0x250e3d70 */ /* not lifted */ 14600 RECOMP_FLAGS_IN(); 14601 eax = MEM32(esi + 0x8); /* 0x2509A933: mov eax, dword ptr [esi + 8] */ 14602 /* cmp edi, eax */ /* 0x2509A936: cmp edi, eax */ 14603 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14605 _flag_k = FK_CMP; 14606 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A981; /* 0x2509A938: je 0x2509a981 */ 14607 L_2509A93A: 14608 edx = MEM32(ebp + 0xC); /* 0x2509A93A: mov edx, dword ptr [ebp + 0xc] */ 14609 MEM32(edi) = edx; /* 0x2509A93D: mov dword ptr [edi], edx */ 14610 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 14611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14612 edi = edi + 4; /* 0x2509A93F: add edi, 4 */ 14613 _flag_k = FK_ADD; 14614 /* cmp edi, eax */ /* 0x2509A942: cmp edi, eax */ 14615 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14617 _flag_k = FK_CMP; 14618 RECOMP_BACKEDGE(); 14619 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A93A; /* 0x2509A944: jne 0x2509a93a */ 14620 L_2509A946: 14621 goto L_2509A981; /* 0x2509A946: jmp 0x2509a981 */ 14622 L_2509A948: 14623 PUSH32(esp, edi); /* 0x2509A948: push edi */ 14624 PUSH32(esp, edi); /* 0x2509A949: push edi */ 14625 eax = edi + (-0x4); /* 0x2509A94A: lea eax, [edi - 4] */ 14626 PUSH32(esp, eax); /* 0x2509A94D: push eax */ 14627 ecx = esi; /* 0x2509A94E: mov ecx, esi */ 14628 RECOMP_ICALL(0x250E3D40u); /* 0x2509A950: call 0x250e3d40 */ /* not lifted */ 14629 RECOMP_FLAGS_IN(); 14630 ecx = MEM32(esi + 0x8); /* 0x2509A955: mov ecx, dword ptr [esi + 8] */ 14631 eax = ecx + (-0x4); /* 0x2509A958: lea eax, [ecx - 4] */ 14632 /* cmp edi, eax */ /* 0x2509A95B: cmp edi, eax */ 14633 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14635 _flag_k = FK_CMP; 14636 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A96E; /* 0x2509A95D: je 0x2509a96e */ 14637 L_2509A95F: 14638 edx = MEM32(eax + (-0x4)); /* 0x2509A95F: mov edx, dword ptr [eax - 4] */ 14639 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 14640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14641 eax = eax - 4; /* 0x2509A962: sub eax, 4 */ 14642 _flag_k = FK_CMP; 14643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 14644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14645 ecx = ecx - 4; /* 0x2509A965: sub ecx, 4 */ 14646 _flag_k = FK_CMP; 14647 /* cmp eax, edi */ /* 0x2509A968: cmp eax, edi */ 14648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 14649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14650 _flag_k = FK_CMP; 14651 MEM32(ecx) = edx; /* 0x2509A96A: mov dword ptr [ecx], edx */ 14652 RECOMP_BACKEDGE(); 14653 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A95F; /* 0x2509A96C: jne 0x2509a95f */ 14654 L_2509A96E: 14655 eax = edi + 0x4; /* 0x2509A96E: lea eax, [edi + 4] */ 14656 /* cmp edi, eax */ /* 0x2509A971: cmp edi, eax */ 14657 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14659 _flag_k = FK_CMP; 14660 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509A981; /* 0x2509A973: je 0x2509a981 */ 14661 L_2509A975: 14662 ecx = MEM32(ebp + 0xC); /* 0x2509A975: mov ecx, dword ptr [ebp + 0xc] */ 14663 MEM32(edi) = ecx; /* 0x2509A978: mov dword ptr [edi], ecx */ 14664 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 14665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14666 edi = edi + 4; /* 0x2509A97A: add edi, 4 */ 14667 _flag_k = FK_ADD; 14668 /* cmp edi, eax */ /* 0x2509A97D: cmp edi, eax */ 14669 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 14670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14671 _flag_k = FK_CMP; 14672 RECOMP_BACKEDGE(); 14673 if (CMP_NE(_flag_a, _flag_b)) goto L_2509A975; /* 0x2509A97F: jne 0x2509a975 */ 14674 L_2509A981: 14675 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 14676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14677 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509A981: add dword ptr [esi + 8], 4 */ 14678 _flag_k = FK_ADD; 14679 L_2509A985: 14680 ecx = MEM32(ebp + (-0x4)); /* 0x2509A985: mov ecx, dword ptr [ebp - 4] */ 14681 _flag_a = (uint32_t)((MEM32(ecx + 0x34) | 0x10u)); _flag_b = (uint32_t)((MEM32(ecx + 0x34) | 0x10u)); 14682 MEM32(ecx + 0x34) = MEM32(ecx + 0x34) | 0x10u; /* 0x2509A988: or dword ptr [ecx + 0x34], 0x10 */ 14683 _cf = 0; 14684 _flag_k = FK_TEST; 14685 RECOMP_ICALL(0x250995C0u); /* 0x2509A98C: call 0x250995c0 */ /* not lifted */ 14686 RECOMP_FLAGS_IN(); 14687 L_2509A991: 14688 edi = POP32_VAL(esp); /* 0x2509A991: pop edi */ 14689 esi = POP32_VAL(esp); /* 0x2509A992: pop esi */ 14690 ebx = POP32_VAL(esp); /* 0x2509A993: pop ebx */ 14691 esp = ebp; /* 0x2509A994: mov esp, ebp */ 14692 ebp = POP32_VAL(esp); /* 0x2509A996: pop ebp */ 14693 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509A997: ret 8 */ 14694 RECOMP_REGS_OUT(); 14695 } 14696 14697 void sub_2509A985(void) { 14698 int _fpu_cmp = 0; 14699 uint32_t _cf = 0; 14700 int _df = 1; 14701 uint32_t _flag_k = FK_NONE; 14702 uint32_t _flag_a = 0, _flag_b = 0; 14703 uint32_t _itail_tgt = 0; 14704 RECOMP_REGS_LOCALS 14705 RECOMP_ENTER(0x2509A985u); 14706 14707 L_2509A985: 14708 ecx = MEM32(ebp + (-0x4)); /* 0x2509A985: mov ecx, dword ptr [ebp - 4] */ 14709 _flag_a = (uint32_t)((MEM32(ecx + 0x34) | 0x10u)); _flag_b = (uint32_t)((MEM32(ecx + 0x34) | 0x10u)); 14710 MEM32(ecx + 0x34) = MEM32(ecx + 0x34) | 0x10u; /* 0x2509A988: or dword ptr [ecx + 0x34], 0x10 */ 14711 _cf = 0; 14712 _flag_k = FK_TEST; 14713 RECOMP_ICALL(0x250995C0u); /* 0x2509A98C: call 0x250995c0 */ /* not lifted */ 14714 RECOMP_FLAGS_IN(); 14715 edi = POP32_VAL(esp); /* 0x2509A991: pop edi */ 14716 esi = POP32_VAL(esp); /* 0x2509A992: pop esi */ 14717 ebx = POP32_VAL(esp); /* 0x2509A993: pop ebx */ 14718 esp = ebp; /* 0x2509A994: mov esp, ebp */ 14719 ebp = POP32_VAL(esp); /* 0x2509A996: pop ebp */ 14720 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509A997: ret 8 */ 14721 RECOMP_REGS_OUT(); 14722 } 14723 14724 void sub_2509A9A0(void) { 14725 int _fpu_cmp = 0; 14726 uint32_t _cf = 0; 14727 int _df = 1; 14728 uint32_t _flag_k = FK_NONE; 14729 uint32_t _flag_a = 0, _flag_b = 0; 14730 uint32_t _itail_tgt = 0; 14731 RECOMP_REGS_LOCALS 14732 RECOMP_ENTER(0x2509A9A0u); 14733 14734 L_2509A9A0: 14735 PUSH32(esp, ebp); /* 0x2509A9A0: push ebp */ 14736 ebp = esp; /* 0x2509A9A1: mov ebp, esp */ 14737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 14738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14739 esp = esp - 0x1Cu; /* 0x2509A9A3: sub esp, 0x1c */ 14740 _flag_k = FK_CMP; 14741 eax = MEM32(ecx + 0x10); /* 0x2509A9A6: mov eax, dword ptr [ecx + 0x10] */ 14742 PUSH32(esp, ebx); /* 0x2509A9A9: push ebx */ 14743 PUSH32(esp, esi); /* 0x2509A9AA: push esi */ 14744 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14745 esi = 0; /* 0x2509A9AB: xor esi, esi */ 14746 _cf = 0; 14747 _flag_k = FK_TEST; 14748 /* cmp eax, esi */ /* 0x2509A9AD: cmp eax, esi */ 14749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 14750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14751 _flag_k = FK_CMP; 14752 PUSH32(esp, edi); /* 0x2509A9AF: push edi */ 14753 MEM32(ebp + (-0x4)) = ecx; /* 0x2509A9B0: mov dword ptr [ebp - 4], ecx */ 14754 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509ACDA; /* 0x2509A9B3: je 0x2509acda */ 14755 L_2509A9B9: 14756 MEM32(ebp + (-0x1C)) = eax; /* 0x2509A9B9: mov dword ptr [ebp - 0x1c], eax */ 14757 MEM32(ebp + (-0x18)) = eax; /* 0x2509A9BC: mov dword ptr [ebp - 0x18], eax */ 14758 eax = ebp + (-0x1C); /* 0x2509A9BF: lea eax, [ebp - 0x1c] */ 14759 PUSH32(esp, eax); /* 0x2509A9C2: push eax */ 14760 ecx = ebp + (-0xC); /* 0x2509A9C3: lea ecx, [ebp - 0xc] */ 14761 RECOMP_ICALL(0x25098250u); /* 0x2509A9C6: call 0x25098250 */ /* not lifted */ 14762 RECOMP_FLAGS_IN(); 14763 eax = MEM32(ebp + (-0xC)); /* 0x2509A9CB: mov eax, dword ptr [ebp - 0xc] */ 14764 ecx = MEM32(ebp + (-0x8)); /* 0x2509A9CE: mov ecx, dword ptr [ebp - 8] */ 14765 PUSH32(esp, esi); /* 0x2509A9D1: push esi */ 14766 PUSH32(esp, 0x251B2970u); /* 0x2509A9D2: push 0x251b2970 */ 14767 PUSH32(esp, 0x251B2970u); /* 0x2509A9D7: push 0x251b2970 */ 14768 PUSH32(esp, esi); /* 0x2509A9DC: push esi */ 14769 PUSH32(esp, eax); /* 0x2509A9DD: push eax */ 14770 MEM32(ebp + (-0x14)) = eax; /* 0x2509A9DE: mov dword ptr [ebp - 0x14], eax */ 14771 MEM32(ebp + (-0x10)) = ecx; /* 0x2509A9E1: mov dword ptr [ebp - 0x10], ecx */ 14772 RECOMP_ICALL(0x251381ACu); /* 0x2509A9E4: call 0x251381ac */ /* not lifted */ 14773 RECOMP_FLAGS_IN(); 14774 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 14775 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14776 esp = esp + 0x14u; /* 0x2509A9E9: add esp, 0x14 */ 14777 _flag_k = FK_ADD; 14778 /* test eax, eax */ /* 0x2509A9EC: test eax, eax */ 14779 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14780 _cf = 0; 14781 _flag_k = FK_TEST; 14782 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509A9F8; /* 0x2509A9EE: jne 0x2509a9f8 */ 14783 L_2509A9F0: 14784 ecx = ebp + (-0x14); /* 0x2509A9F0: lea ecx, [ebp - 0x14] */ 14785 RECOMP_ICALL(0x250982C0u); /* 0x2509A9F3: call 0x250982c0 */ /* not lifted */ 14786 RECOMP_FLAGS_IN(); 14787 L_2509A9F8: 14788 edx = ebp + (-0xC); /* 0x2509A9F8: lea edx, [ebp - 0xc] */ 14789 PUSH32(esp, edx); /* 0x2509A9FB: push edx */ 14790 ecx = ebp + (-0x1C); /* 0x2509A9FC: lea ecx, [ebp - 0x1c] */ 14791 MEM32(ebp + (-0xC)) = esi; /* 0x2509A9FF: mov dword ptr [ebp - 0xc], esi */ 14792 MEM32(ebp + (-0x8)) = esi; /* 0x2509AA02: mov dword ptr [ebp - 8], esi */ 14793 RECOMP_ICALL(0x25098250u); /* 0x2509AA05: call 0x25098250 */ /* not lifted */ 14794 RECOMP_FLAGS_IN(); 14795 ecx = MEM32(ebp + (-0x14)); /* 0x2509AA0A: mov ecx, dword ptr [ebp - 0x14] */ 14796 /* cmp ecx, MEM32(ebp + (-0x1C)) */ /* 0x2509AA0D: cmp ecx, dword ptr [ebp - 0x1c] */ 14797 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x1C))); 14798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14799 _flag_k = FK_CMP; 14800 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509ACDA; /* 0x2509AA10: je 0x2509acda */ 14801 L_2509AA16: 14802 edi = MEM32(ebp + 0xC); /* 0x2509AA16: mov edi, dword ptr [ebp + 0xc] */ 14803 ebx = MEM32(0x25151318); /* 0x2509AA19: mov ebx, dword ptr [0x25151318] */ 14804 L_2509AA1F: 14805 esi = MEM32(ecx + 0x1F0); /* 0x2509AA1F: mov esi, dword ptr [ecx + 0x1f0] */ 14806 eax = MEM32(ecx); /* 0x2509AA25: mov eax, dword ptr [ecx] */ 14807 PUSH32(esp, edi); /* 0x2509AA27: push edi */ 14808 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 14809 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14810 esi = esi + 0x44u; /* 0x2509AA28: add esi, 0x44 */ 14811 _flag_k = FK_ADD; 14812 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x2509AA2B: call dword ptr [eax + 0x28] */ 14813 RECOMP_FLAGS_IN(); 14814 PUSH32(esp, eax); /* 0x2509AA2E: push eax */ 14815 RECOMP_ICALL(ebx); /* 0x2509AA2F: call ebx */ 14816 RECOMP_FLAGS_IN(); 14817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 14818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14819 esp = esp + 8; /* 0x2509AA31: add esp, 8 */ 14820 _flag_k = FK_ADD; 14821 /* test eax, eax */ /* 0x2509AA34: test eax, eax */ 14822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14823 _cf = 0; 14824 _flag_k = FK_TEST; 14825 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509AA92; /* 0x2509AA36: jne 0x2509aa92 */ 14826 L_2509AA38: 14827 eax = MEM32(ebp + (-0x14)); /* 0x2509AA38: mov eax, dword ptr [ebp - 0x14] */ 14828 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14829 esi = 0; /* 0x2509AA3B: xor esi, esi */ 14830 _cf = 0; 14831 _flag_k = FK_TEST; 14832 /* cmp eax, esi */ /* 0x2509AA3D: cmp eax, esi */ 14833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 14834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14835 _flag_k = FK_CMP; 14836 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509AA6F; /* 0x2509AA3F: je 0x2509aa6f */ 14837 L_2509AA41: 14838 ecx = MEM32(ebp + (-0x10)); /* 0x2509AA41: mov ecx, dword ptr [ebp - 0x10] */ 14839 PUSH32(esp, ecx); /* 0x2509AA44: push ecx */ 14840 edx = ebp + (-0x14); /* 0x2509AA45: lea edx, [ebp - 0x14] */ 14841 PUSH32(esp, edx); /* 0x2509AA48: push edx */ 14842 RECOMP_ICALL(0x250E3530u); /* 0x2509AA49: call 0x250e3530 */ /* not lifted */ 14843 RECOMP_FLAGS_IN(); 14844 eax = MEM32(ebp + (-0x14)); /* 0x2509AA4E: mov eax, dword ptr [ebp - 0x14] */ 14845 PUSH32(esp, esi); /* 0x2509AA51: push esi */ 14846 PUSH32(esp, 0x251B2970u); /* 0x2509AA52: push 0x251b2970 */ 14847 PUSH32(esp, 0x251B2970u); /* 0x2509AA57: push 0x251b2970 */ 14848 PUSH32(esp, esi); /* 0x2509AA5C: push esi */ 14849 PUSH32(esp, eax); /* 0x2509AA5D: push eax */ 14850 RECOMP_ICALL(0x251381ACu); /* 0x2509AA5E: call 0x251381ac */ /* not lifted */ 14851 RECOMP_FLAGS_IN(); 14852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 14853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14854 esp = esp + 0x1Cu; /* 0x2509AA63: add esp, 0x1c */ 14855 _flag_k = FK_ADD; 14856 /* test eax, eax */ /* 0x2509AA66: test eax, eax */ 14857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14858 _cf = 0; 14859 _flag_k = FK_TEST; 14860 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509AA6F; /* 0x2509AA68: jne 0x2509aa6f */ 14861 L_2509AA6A: 14862 /* cmp MEM32(ebp + (-0x14)), esi */ /* 0x2509AA6A: cmp dword ptr [ebp - 0x14], esi */ 14863 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(esi); 14864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14865 _flag_k = FK_CMP; 14866 RECOMP_BACKEDGE(); 14867 if (CMP_NE(_flag_a, _flag_b)) goto L_2509AA41; /* 0x2509AA6D: jne 0x2509aa41 */ 14868 L_2509AA6F: 14869 ecx = ebp + (-0xC); /* 0x2509AA6F: lea ecx, [ebp - 0xc] */ 14870 PUSH32(esp, ecx); /* 0x2509AA72: push ecx */ 14871 ecx = ebp + (-0x1C); /* 0x2509AA73: lea ecx, [ebp - 0x1c] */ 14872 MEM32(ebp + (-0xC)) = esi; /* 0x2509AA76: mov dword ptr [ebp - 0xc], esi */ 14873 MEM32(ebp + (-0x8)) = esi; /* 0x2509AA79: mov dword ptr [ebp - 8], esi */ 14874 RECOMP_ICALL(0x25098250u); /* 0x2509AA7C: call 0x25098250 */ /* not lifted */ 14875 RECOMP_FLAGS_IN(); 14876 ecx = MEM32(ebp + (-0x14)); /* 0x2509AA81: mov ecx, dword ptr [ebp - 0x14] */ 14877 /* cmp ecx, MEM32(ebp + (-0x1C)) */ /* 0x2509AA84: cmp ecx, dword ptr [ebp - 0x1c] */ 14878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x1C))); 14879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14880 _flag_k = FK_CMP; 14881 RECOMP_BACKEDGE(); 14882 if (CMP_NE(_flag_a, _flag_b)) goto L_2509AA1F; /* 0x2509AA87: jne 0x2509aa1f */ 14883 L_2509AA89: 14884 edi = POP32_VAL(esp); /* 0x2509AA89: pop edi */ 14885 esi = POP32_VAL(esp); /* 0x2509AA8A: pop esi */ 14886 ebx = POP32_VAL(esp); /* 0x2509AA8B: pop ebx */ 14887 esp = ebp; /* 0x2509AA8C: mov esp, ebp */ 14888 ebp = POP32_VAL(esp); /* 0x2509AA8E: pop ebp */ 14889 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509AA8F: ret 8 */ 14890 L_2509AA92: 14891 edx = MEM32(ebp + 0x8); /* 0x2509AA92: mov edx, dword ptr [ebp + 8] */ 14892 MEM32(ebp + (-0x1C)) = 0x000F6954u; /* 0x2509AA95: mov dword ptr [ebp - 0x1c], 0xf6954 */ 14893 MEM32(ebp + (-0x18)) = edx; /* 0x2509AA9C: mov dword ptr [ebp - 0x18], edx */ 14894 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509AA9F: call dword ptr [0x251515d8] */ 14895 RECOMP_FLAGS_IN(); 14896 edx = MEM32(eax); /* 0x2509AAA5: mov edx, dword ptr [eax] */ 14897 PUSH32(esp, 3); /* 0x2509AAA7: push 3 */ 14898 PUSH32(esp, 1); /* 0x2509AAA9: push 1 */ 14899 ecx = ebp + (-0x1C); /* 0x2509AAAB: lea ecx, [ebp - 0x1c] */ 14900 PUSH32(esp, ecx); /* 0x2509AAAE: push ecx */ 14901 ecx = eax; /* 0x2509AAAF: mov ecx, eax */ 14902 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509AAB1: call dword ptr [edx + 0x24] */ 14903 RECOMP_FLAGS_IN(); 14904 edi = eax; /* 0x2509AAB4: mov edi, eax */ 14905 /* test edi, edi */ /* 0x2509AAB6: test edi, edi */ 14906 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 14907 _cf = 0; 14908 _flag_k = FK_TEST; 14909 if (TEST_Z(_flag_a, _flag_b)) goto L_2509ACDA; /* 0x2509AAB8: je 0x2509acda */ 14910 L_2509AABE: 14911 eax = MEM32(esi + 0x4); /* 0x2509AABE: mov eax, dword ptr [esi + 4] */ 14912 ecx = MEM32(eax); /* 0x2509AAC1: mov ecx, dword ptr [eax] */ 14913 eax = MEM32(ecx + 0x160); /* 0x2509AAC3: mov eax, dword ptr [ecx + 0x160] */ 14914 ebx = MEM32(ebp + (-0x4)); /* 0x2509AAC9: mov ebx, dword ptr [ebp - 4] */ 14915 MEM32(ebp + 0x8) = eax; /* 0x2509AACC: mov dword ptr [ebp + 8], eax */ 14916 eax = MEM32(ebx + 0x4C); /* 0x2509AACF: mov eax, dword ptr [ebx + 0x4c] */ 14917 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 14918 SET_LO8(edx, 0); /* 0x2509AAD2: xor dl, dl */ 14919 _cf = 0; 14920 _flag_k = FK_NARROW(FK_TEST, 24); 14921 /* test eax, eax */ /* 0x2509AAD4: test eax, eax */ 14922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 14923 _cf = 0; 14924 _flag_k = FK_TEST; 14925 if (TEST_Z(_flag_a, _flag_b)) goto L_2509AB1B; /* 0x2509AAD6: je 0x2509ab1b */ 14926 L_2509AAD8: 14927 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14928 esi = 0; /* 0x2509AAD8: xor esi, esi */ 14929 _cf = 0; 14930 _flag_k = FK_TEST; 14931 L_2509AADA: 14932 eax = MEM32(ebx + 0x4C); /* 0x2509AADA: mov eax, dword ptr [ebx + 0x4c] */ 14933 ecx = MEM32(eax + 0x4); /* 0x2509AADD: mov ecx, dword ptr [eax + 4] */ 14934 /* test ecx, ecx */ /* 0x2509AAE0: test ecx, ecx */ 14935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 14936 _cf = 0; 14937 _flag_k = FK_TEST; 14938 if (TEST_Z(_flag_a, _flag_b)) goto L_2509AB48; /* 0x2509AAE2: je 0x2509ab48 */ 14939 L_2509AAE4: 14940 ebx = MEM32(eax + 0x8); /* 0x2509AAE4: mov ebx, dword ptr [eax + 8] */ 14941 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 14942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14943 ebx = ebx - ecx; /* 0x2509AAE7: sub ebx, ecx */ 14944 _flag_k = FK_CMP; 14945 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x2509AAE9: sar ebx, 2 */ 14946 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 14947 ebx = (uint32_t)((int32_t)ebx >> 2u); 14948 /* cmp esi, ebx */ /* 0x2509AAEC: cmp esi, ebx */ 14949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 14950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14951 _flag_k = FK_CMP; 14952 if (CMP_AE(_flag_a, _flag_b)) goto L_2509AB45; /* 0x2509AAEE: jae 0x2509ab45 */ 14953 L_2509AAF0: 14954 eax = MEM32(ecx + esi * 4); /* 0x2509AAF0: mov eax, dword ptr [ecx + esi*4] */ 14955 ecx = MEM32(ebp + 0x8); /* 0x2509AAF3: mov ecx, dword ptr [ebp + 8] */ 14956 /* cmp MEM32(eax), ecx */ /* 0x2509AAF6: cmp dword ptr [eax], ecx */ 14957 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx); 14958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14959 _flag_k = FK_CMP; 14960 if (CMP_NE(_flag_a, _flag_b)) goto L_2509AB15; /* 0x2509AAF8: jne 0x2509ab15 */ 14961 L_2509AAFA: 14962 ecx = MEM32(eax + 0x4); /* 0x2509AAFA: mov ecx, dword ptr [eax + 4] */ 14963 edx = MEM32(ecx); /* 0x2509AAFD: mov edx, dword ptr [ecx] */ 14964 PUSH32(esp, 0); /* 0x2509AAFF: push 0 */ 14965 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x2509AB01: call dword ptr [edx + 0x28] */ 14966 RECOMP_FLAGS_IN(); 14967 eax = MEM32(ebp + (-0x4)); /* 0x2509AB04: mov eax, dword ptr [ebp - 4] */ 14968 ecx = MEM32(eax + 0x4C); /* 0x2509AB07: mov ecx, dword ptr [eax + 0x4c] */ 14969 edx = MEM32(ecx + 0x4); /* 0x2509AB0A: mov edx, dword ptr [ecx + 4] */ 14970 eax = MEM32(edx + esi * 4); /* 0x2509AB0D: mov eax, dword ptr [edx + esi*4] */ 14971 MEM32(eax + 0x4) = edi; /* 0x2509AB10: mov dword ptr [eax + 4], edi */ 14972 SET_LO8(edx, 1); /* 0x2509AB13: mov dl, 1 */ 14973 L_2509AB15: 14974 ebx = MEM32(ebp + (-0x4)); /* 0x2509AB15: mov ebx, dword ptr [ebp - 4] */ 14975 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 14976 esi = esi + 1; /* 0x2509AB18: inc esi */ 14977 _flag_k = FK_INC; 14978 RECOMP_BACKEDGE(); 14979 goto L_2509AADA; /* 0x2509AB19: jmp 0x2509aada */ 14980 L_2509AB1B: 14981 PUSH32(esp, 0x10u); /* 0x2509AB1B: push 0x10 */ 14982 RECOMP_ICALL(0x251380D0u); /* 0x2509AB1D: call 0x251380d0 */ /* not lifted */ 14983 RECOMP_FLAGS_IN(); 14984 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 14985 esi = 0; /* 0x2509AB22: xor esi, esi */ 14986 _cf = 0; 14987 _flag_k = FK_TEST; 14988 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14990 esp = esp + 4; /* 0x2509AB24: add esp, 4 */ 14991 _flag_k = FK_ADD; 14992 /* cmp eax, esi */ /* 0x2509AB27: cmp eax, esi */ 14993 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 14994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14995 _flag_k = FK_CMP; 14996 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509AB3E; /* 0x2509AB29: je 0x2509ab3e */ 14997 L_2509AB2B: 14998 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x2509AB2B: mov cl, byte ptr [ebp + 0xf] */ 14999 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2509AB2E: mov byte ptr [eax], cl */ 15000 MEM32(eax + 0x4) = esi; /* 0x2509AB30: mov dword ptr [eax + 4], esi */ 15001 MEM32(eax + 0x8) = esi; /* 0x2509AB33: mov dword ptr [eax + 8], esi */ 15002 MEM32(eax + 0xC) = esi; /* 0x2509AB36: mov dword ptr [eax + 0xc], esi */ 15003 MEM32(ebx + 0x4C) = eax; /* 0x2509AB39: mov dword ptr [ebx + 0x4c], eax */ 15004 goto L_2509AB52; /* 0x2509AB3C: jmp 0x2509ab52 */ 15005 L_2509AB3E: 15006 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15007 eax = 0; /* 0x2509AB3E: xor eax, eax */ 15008 _cf = 0; 15009 _flag_k = FK_TEST; 15010 MEM32(ebx + 0x4C) = eax; /* 0x2509AB40: mov dword ptr [ebx + 0x4c], eax */ 15011 goto L_2509AB52; /* 0x2509AB43: jmp 0x2509ab52 */ 15012 L_2509AB45: 15013 ebx = MEM32(ebp + (-0x4)); /* 0x2509AB45: mov ebx, dword ptr [ebp - 4] */ 15014 L_2509AB48: 15015 /* test LO8(edx), LO8(edx) */ /* 0x2509AB48: test dl, dl */ 15016 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15017 _cf = 0; 15018 _flag_k = FK_NARROW(FK_TEST, 24); 15019 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509ACCA; /* 0x2509AB4A: jne 0x2509acca */ 15020 L_2509AB50: 15021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15022 esi = 0; /* 0x2509AB50: xor esi, esi */ 15023 _cf = 0; 15024 _flag_k = FK_TEST; 15025 L_2509AB52: 15026 PUSH32(esp, 8); /* 0x2509AB52: push 8 */ 15027 RECOMP_ICALL(0x251380D0u); /* 0x2509AB54: call 0x251380d0 */ /* not lifted */ 15028 RECOMP_FLAGS_IN(); 15029 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15031 esp = esp + 4; /* 0x2509AB59: add esp, 4 */ 15032 _flag_k = FK_ADD; 15033 /* cmp eax, esi */ /* 0x2509AB5C: cmp eax, esi */ 15034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 15035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15036 _flag_k = FK_CMP; 15037 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509AB67; /* 0x2509AB5E: je 0x2509ab67 */ 15038 L_2509AB60: 15039 MEM32(eax) = esi; /* 0x2509AB60: mov dword ptr [eax], esi */ 15040 MEM32(eax + 0x4) = esi; /* 0x2509AB62: mov dword ptr [eax + 4], esi */ 15041 goto L_2509AB69; /* 0x2509AB65: jmp 0x2509ab69 */ 15042 L_2509AB67: 15043 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15044 eax = 0; /* 0x2509AB67: xor eax, eax */ 15045 _cf = 0; 15046 _flag_k = FK_TEST; 15047 L_2509AB69: 15048 edx = MEM32(ebp + 0x8); /* 0x2509AB69: mov edx, dword ptr [ebp + 8] */ 15049 MEM32(ebp + 0xC) = eax; /* 0x2509AB6C: mov dword ptr [ebp + 0xc], eax */ 15050 MEM32(eax) = edx; /* 0x2509AB6F: mov dword ptr [eax], edx */ 15051 eax = MEM32(ebp + 0xC); /* 0x2509AB71: mov eax, dword ptr [ebp + 0xc] */ 15052 MEM32(eax + 0x4) = edi; /* 0x2509AB74: mov dword ptr [eax + 4], edi */ 15053 esi = MEM32(ebx + 0x4C); /* 0x2509AB77: mov esi, dword ptr [ebx + 0x4c] */ 15054 eax = MEM32(esi + 0x8); /* 0x2509AB7A: mov eax, dword ptr [esi + 8] */ 15055 ecx = MEM32(esi + 0xC); /* 0x2509AB7D: mov ecx, dword ptr [esi + 0xc] */ 15056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15058 ecx = ecx - eax; /* 0x2509AB80: sub ecx, eax */ 15059 _flag_k = FK_CMP; 15060 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509AB82: sar ecx, 2 */ 15061 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15062 ecx = (uint32_t)((int32_t)ecx >> 2u); 15063 /* cmp ecx, 1 */ /* 0x2509AB85: cmp ecx, 1 */ 15064 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15066 _flag_k = FK_CMP; 15067 edi = eax; /* 0x2509AB88: mov edi, eax */ 15068 if (CMP_AE(_flag_a, _flag_b)) goto L_2509AC41; /* 0x2509AB8A: jae 0x2509ac41 */ 15069 L_2509AB90: 15070 ecx = MEM32(esi + 0x4); /* 0x2509AB90: mov ecx, dword ptr [esi + 4] */ 15071 /* test ecx, ecx */ /* 0x2509AB93: test ecx, ecx */ 15072 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 15073 _cf = 0; 15074 _flag_k = FK_TEST; 15075 if (TEST_Z(_flag_a, _flag_b)) goto L_2509ABAC; /* 0x2509AB95: je 0x2509abac */ 15076 L_2509AB97: 15077 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15079 eax = eax - ecx; /* 0x2509AB97: sub eax, ecx */ 15080 _flag_k = FK_CMP; 15081 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509AB99: sar eax, 2 */ 15082 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15083 eax = (uint32_t)((int32_t)eax >> 2u); 15084 /* cmp eax, 1 */ /* 0x2509AB9C: cmp eax, 1 */ 15085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15087 _flag_k = FK_CMP; 15088 if (CMP_BE(_flag_a, _flag_b)) goto L_2509ABAC; /* 0x2509AB9F: jbe 0x2509abac */ 15089 L_2509ABA1: 15090 ecx = esi; /* 0x2509ABA1: mov ecx, esi */ 15091 RECOMP_ICALL(0x251262D0u); /* 0x2509ABA3: call 0x251262d0 */ /* not lifted */ 15092 RECOMP_FLAGS_IN(); 15093 ebx = eax; /* 0x2509ABA8: mov ebx, eax */ 15094 goto L_2509ABB1; /* 0x2509ABAA: jmp 0x2509abb1 */ 15095 L_2509ABAC: 15096 ebx = 1; /* 0x2509ABAC: mov ebx, 1 */ 15097 L_2509ABB1: 15098 ecx = esi; /* 0x2509ABB1: mov ecx, esi */ 15099 RECOMP_ICALL(0x251262D0u); /* 0x2509ABB3: call 0x251262d0 */ /* not lifted */ 15100 RECOMP_FLAGS_IN(); 15101 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15103 eax = eax + ebx; /* 0x2509ABB8: add eax, ebx */ 15104 _flag_k = FK_ADD; 15105 MEM32(ebp + (-0x8)) = eax; /* 0x2509ABBA: mov dword ptr [ebp - 8], eax */ 15106 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509ABC1; /* 0x2509ABBD: jns 0x2509abc1 */ 15107 L_2509ABBF: 15108 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15109 eax = 0; /* 0x2509ABBF: xor eax, eax */ 15110 _cf = 0; 15111 _flag_k = FK_TEST; 15112 L_2509ABC1: 15113 edx = eax * 4; /* 0x2509ABC1: lea edx, [eax*4] */ 15114 PUSH32(esp, edx); /* 0x2509ABC8: push edx */ 15115 RECOMP_ICALL(0x251380D0u); /* 0x2509ABC9: call 0x251380d0 */ /* not lifted */ 15116 RECOMP_FLAGS_IN(); 15117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15119 esp = esp + 4; /* 0x2509ABCE: add esp, 4 */ 15120 _flag_k = FK_ADD; 15121 ebx = eax; /* 0x2509ABD1: mov ebx, eax */ 15122 eax = MEM32(esi + 0x4); /* 0x2509ABD3: mov eax, dword ptr [esi + 4] */ 15123 PUSH32(esp, ebx); /* 0x2509ABD6: push ebx */ 15124 PUSH32(esp, edi); /* 0x2509ABD7: push edi */ 15125 PUSH32(esp, eax); /* 0x2509ABD8: push eax */ 15126 ecx = esi; /* 0x2509ABD9: mov ecx, esi */ 15127 RECOMP_ICALL(0x250E3D40u); /* 0x2509ABDB: call 0x250e3d40 */ /* not lifted */ 15128 RECOMP_FLAGS_IN(); 15129 ecx = ebp + 0xC; /* 0x2509ABE0: lea ecx, [ebp + 0xc] */ 15130 PUSH32(esp, ecx); /* 0x2509ABE3: push ecx */ 15131 PUSH32(esp, 1); /* 0x2509ABE4: push 1 */ 15132 PUSH32(esp, eax); /* 0x2509ABE6: push eax */ 15133 ecx = esi; /* 0x2509ABE7: mov ecx, esi */ 15134 MEM32(ebp + 0x8) = eax; /* 0x2509ABE9: mov dword ptr [ebp + 8], eax */ 15135 RECOMP_ICALL(0x250E3D70u); /* 0x2509ABEC: call 0x250e3d70 */ /* not lifted */ 15136 RECOMP_FLAGS_IN(); 15137 edx = MEM32(ebp + 0x8); /* 0x2509ABF1: mov edx, dword ptr [ebp + 8] */ 15138 eax = MEM32(esi + 0x8); /* 0x2509ABF4: mov eax, dword ptr [esi + 8] */ 15139 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 15140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15141 edx = edx + 4; /* 0x2509ABF7: add edx, 4 */ 15142 _flag_k = FK_ADD; 15143 PUSH32(esp, edx); /* 0x2509ABFA: push edx */ 15144 PUSH32(esp, eax); /* 0x2509ABFB: push eax */ 15145 PUSH32(esp, edi); /* 0x2509ABFC: push edi */ 15146 ecx = esi; /* 0x2509ABFD: mov ecx, esi */ 15147 RECOMP_ICALL(0x250E3D40u); /* 0x2509ABFF: call 0x250e3d40 */ /* not lifted */ 15148 RECOMP_FLAGS_IN(); 15149 ecx = MEM32(esi + 0x8); /* 0x2509AC04: mov ecx, dword ptr [esi + 8] */ 15150 edx = MEM32(esi + 0x4); /* 0x2509AC07: mov edx, dword ptr [esi + 4] */ 15151 PUSH32(esp, ecx); /* 0x2509AC0A: push ecx */ 15152 PUSH32(esp, edx); /* 0x2509AC0B: push edx */ 15153 ecx = esi; /* 0x2509AC0C: mov ecx, esi */ 15154 RECOMP_ICALL(0x25093260u); /* 0x2509AC0E: call 0x25093260 */ /* not lifted */ 15155 RECOMP_FLAGS_IN(); 15156 eax = MEM32(esi + 0x4); /* 0x2509AC13: mov eax, dword ptr [esi + 4] */ 15157 PUSH32(esp, eax); /* 0x2509AC16: push eax */ 15158 RECOMP_ICALL(0x25137EECu); /* 0x2509AC17: call 0x25137eec */ /* not lifted */ 15159 RECOMP_FLAGS_IN(); 15160 ecx = MEM32(ebp + (-0x8)); /* 0x2509AC1C: mov ecx, dword ptr [ebp - 8] */ 15161 edx = ebx + ecx * 4; /* 0x2509AC1F: lea edx, [ebx + ecx*4] */ 15162 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15164 esp = esp + 4; /* 0x2509AC22: add esp, 4 */ 15165 _flag_k = FK_ADD; 15166 ecx = esi; /* 0x2509AC25: mov ecx, esi */ 15167 MEM32(esi + 0xC) = edx; /* 0x2509AC27: mov dword ptr [esi + 0xc], edx */ 15168 RECOMP_ICALL(0x251262D0u); /* 0x2509AC2A: call 0x251262d0 */ /* not lifted */ 15169 RECOMP_FLAGS_IN(); 15170 eax = ebx + eax * 4 + 0x4; /* 0x2509AC2F: lea eax, [ebx + eax*4 + 4] */ 15171 MEM32(esi + 0x4) = ebx; /* 0x2509AC33: mov dword ptr [esi + 4], ebx */ 15172 ebx = MEM32(ebp + (-0x4)); /* 0x2509AC36: mov ebx, dword ptr [ebp - 4] */ 15173 MEM32(esi + 0x8) = eax; /* 0x2509AC39: mov dword ptr [esi + 8], eax */ 15174 goto L_2509ACCA; /* 0x2509AC3C: jmp 0x2509acca */ 15175 L_2509AC41: 15176 ecx = eax; /* 0x2509AC41: mov ecx, eax */ 15177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 15178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15179 ecx = ecx - edi; /* 0x2509AC43: sub ecx, edi */ 15180 _flag_k = FK_CMP; 15181 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509AC45: sar ecx, 2 */ 15182 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15183 ecx = (uint32_t)((int32_t)ecx >> 2u); 15184 /* cmp ecx, 1 */ /* 0x2509AC48: cmp ecx, 1 */ 15185 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15187 _flag_k = FK_CMP; 15188 if (CMP_AE(_flag_a, _flag_b)) goto L_2509AC8D; /* 0x2509AC4B: jae 0x2509ac8d */ 15189 L_2509AC4D: 15190 edx = edi + 0x4; /* 0x2509AC4D: lea edx, [edi + 4] */ 15191 PUSH32(esp, edx); /* 0x2509AC50: push edx */ 15192 PUSH32(esp, eax); /* 0x2509AC51: push eax */ 15193 PUSH32(esp, edi); /* 0x2509AC52: push edi */ 15194 ecx = esi; /* 0x2509AC53: mov ecx, esi */ 15195 RECOMP_ICALL(0x250E3D40u); /* 0x2509AC55: call 0x250e3d40 */ /* not lifted */ 15196 RECOMP_FLAGS_IN(); 15197 eax = MEM32(esi + 0x8); /* 0x2509AC5A: mov eax, dword ptr [esi + 8] */ 15198 edx = eax; /* 0x2509AC5D: mov edx, eax */ 15199 ecx = ebp + 0xC; /* 0x2509AC5F: lea ecx, [ebp + 0xc] */ 15200 PUSH32(esp, ecx); /* 0x2509AC62: push ecx */ 15201 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15203 edx = edx - edi; /* 0x2509AC63: sub edx, edi */ 15204 _flag_k = FK_CMP; 15205 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509AC65: sar edx, 2 */ 15206 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15207 edx = (uint32_t)((int32_t)edx >> 2u); 15208 ecx = 1; /* 0x2509AC68: mov ecx, 1 */ 15209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 15210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15211 ecx = ecx - edx; /* 0x2509AC6D: sub ecx, edx */ 15212 _flag_k = FK_CMP; 15213 PUSH32(esp, ecx); /* 0x2509AC6F: push ecx */ 15214 PUSH32(esp, eax); /* 0x2509AC70: push eax */ 15215 ecx = esi; /* 0x2509AC71: mov ecx, esi */ 15216 RECOMP_ICALL(0x250E3D70u); /* 0x2509AC73: call 0x250e3d70 */ /* not lifted */ 15217 RECOMP_FLAGS_IN(); 15218 eax = MEM32(esi + 0x8); /* 0x2509AC78: mov eax, dword ptr [esi + 8] */ 15219 /* cmp edi, eax */ /* 0x2509AC7B: cmp edi, eax */ 15220 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15222 _flag_k = FK_CMP; 15223 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509ACC6; /* 0x2509AC7D: je 0x2509acc6 */ 15224 L_2509AC7F: 15225 edx = MEM32(ebp + 0xC); /* 0x2509AC7F: mov edx, dword ptr [ebp + 0xc] */ 15226 MEM32(edi) = edx; /* 0x2509AC82: mov dword ptr [edi], edx */ 15227 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 15228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15229 edi = edi + 4; /* 0x2509AC84: add edi, 4 */ 15230 _flag_k = FK_ADD; 15231 /* cmp edi, eax */ /* 0x2509AC87: cmp edi, eax */ 15232 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15234 _flag_k = FK_CMP; 15235 RECOMP_BACKEDGE(); 15236 if (CMP_NE(_flag_a, _flag_b)) goto L_2509AC7F; /* 0x2509AC89: jne 0x2509ac7f */ 15237 L_2509AC8B: 15238 goto L_2509ACC6; /* 0x2509AC8B: jmp 0x2509acc6 */ 15239 L_2509AC8D: 15240 PUSH32(esp, eax); /* 0x2509AC8D: push eax */ 15241 PUSH32(esp, eax); /* 0x2509AC8E: push eax */ 15242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 15243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15244 eax = eax + 0xFFFFFFFCu; /* 0x2509AC8F: add eax, -4 */ 15245 _flag_k = FK_ADD; 15246 PUSH32(esp, eax); /* 0x2509AC92: push eax */ 15247 ecx = esi; /* 0x2509AC93: mov ecx, esi */ 15248 RECOMP_ICALL(0x250E3D40u); /* 0x2509AC95: call 0x250e3d40 */ /* not lifted */ 15249 RECOMP_FLAGS_IN(); 15250 ecx = MEM32(esi + 0x8); /* 0x2509AC9A: mov ecx, dword ptr [esi + 8] */ 15251 eax = ecx + (-0x4); /* 0x2509AC9D: lea eax, [ecx - 4] */ 15252 /* cmp edi, eax */ /* 0x2509ACA0: cmp edi, eax */ 15253 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15255 _flag_k = FK_CMP; 15256 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509ACB3; /* 0x2509ACA2: je 0x2509acb3 */ 15257 L_2509ACA4: 15258 edx = MEM32(eax + (-0x4)); /* 0x2509ACA4: mov edx, dword ptr [eax - 4] */ 15259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 15260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15261 eax = eax - 4; /* 0x2509ACA7: sub eax, 4 */ 15262 _flag_k = FK_CMP; 15263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 15264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15265 ecx = ecx - 4; /* 0x2509ACAA: sub ecx, 4 */ 15266 _flag_k = FK_CMP; 15267 /* cmp eax, edi */ /* 0x2509ACAD: cmp eax, edi */ 15268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 15269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15270 _flag_k = FK_CMP; 15271 MEM32(ecx) = edx; /* 0x2509ACAF: mov dword ptr [ecx], edx */ 15272 RECOMP_BACKEDGE(); 15273 if (CMP_NE(_flag_a, _flag_b)) goto L_2509ACA4; /* 0x2509ACB1: jne 0x2509aca4 */ 15274 L_2509ACB3: 15275 eax = edi + 0x4; /* 0x2509ACB3: lea eax, [edi + 4] */ 15276 /* cmp edi, eax */ /* 0x2509ACB6: cmp edi, eax */ 15277 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15279 _flag_k = FK_CMP; 15280 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509ACC6; /* 0x2509ACB8: je 0x2509acc6 */ 15281 L_2509ACBA: 15282 ecx = MEM32(ebp + 0xC); /* 0x2509ACBA: mov ecx, dword ptr [ebp + 0xc] */ 15283 MEM32(edi) = ecx; /* 0x2509ACBD: mov dword ptr [edi], ecx */ 15284 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 15285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15286 edi = edi + 4; /* 0x2509ACBF: add edi, 4 */ 15287 _flag_k = FK_ADD; 15288 /* cmp edi, eax */ /* 0x2509ACC2: cmp edi, eax */ 15289 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15291 _flag_k = FK_CMP; 15292 RECOMP_BACKEDGE(); 15293 if (CMP_NE(_flag_a, _flag_b)) goto L_2509ACBA; /* 0x2509ACC4: jne 0x2509acba */ 15294 L_2509ACC6: 15295 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 15296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15297 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509ACC6: add dword ptr [esi + 8], 4 */ 15298 _flag_k = FK_ADD; 15299 L_2509ACCA: 15300 eax = MEM32(ebx + 0x34); /* 0x2509ACCA: mov eax, dword ptr [ebx + 0x34] */ 15301 _flag_a = (uint32_t)((eax | 0x10u)); _flag_b = (uint32_t)((eax | 0x10u)); 15302 eax = eax | 0x10u; /* 0x2509ACCD: or eax, 0x10 */ 15303 _cf = 0; 15304 _flag_k = FK_TEST; 15305 ecx = ebx; /* 0x2509ACD0: mov ecx, ebx */ 15306 MEM32(ebx + 0x34) = eax; /* 0x2509ACD2: mov dword ptr [ebx + 0x34], eax */ 15307 RECOMP_ICALL(0x250995C0u); /* 0x2509ACD5: call 0x250995c0 */ /* not lifted */ 15308 RECOMP_FLAGS_IN(); 15309 L_2509ACDA: 15310 edi = POP32_VAL(esp); /* 0x2509ACDA: pop edi */ 15311 esi = POP32_VAL(esp); /* 0x2509ACDB: pop esi */ 15312 ebx = POP32_VAL(esp); /* 0x2509ACDC: pop ebx */ 15313 esp = ebp; /* 0x2509ACDD: mov esp, ebp */ 15314 ebp = POP32_VAL(esp); /* 0x2509ACDF: pop ebp */ 15315 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509ACE0: ret 8 */ 15316 RECOMP_REGS_OUT(); 15317 } 15318 15319 void sub_2509ACCA(void) { 15320 int _fpu_cmp = 0; 15321 uint32_t _cf = 0; 15322 int _df = 1; 15323 uint32_t _flag_k = FK_NONE; 15324 uint32_t _flag_a = 0, _flag_b = 0; 15325 uint32_t _itail_tgt = 0; 15326 RECOMP_REGS_LOCALS 15327 RECOMP_ENTER(0x2509ACCAu); 15328 15329 L_2509ACCA: 15330 eax = MEM32(ebx + 0x34); /* 0x2509ACCA: mov eax, dword ptr [ebx + 0x34] */ 15331 _flag_a = (uint32_t)((eax | 0x10u)); _flag_b = (uint32_t)((eax | 0x10u)); 15332 eax = eax | 0x10u; /* 0x2509ACCD: or eax, 0x10 */ 15333 _cf = 0; 15334 _flag_k = FK_TEST; 15335 ecx = ebx; /* 0x2509ACD0: mov ecx, ebx */ 15336 MEM32(ebx + 0x34) = eax; /* 0x2509ACD2: mov dword ptr [ebx + 0x34], eax */ 15337 RECOMP_ICALL(0x250995C0u); /* 0x2509ACD5: call 0x250995c0 */ /* not lifted */ 15338 RECOMP_FLAGS_IN(); 15339 edi = POP32_VAL(esp); /* 0x2509ACDA: pop edi */ 15340 esi = POP32_VAL(esp); /* 0x2509ACDB: pop esi */ 15341 ebx = POP32_VAL(esp); /* 0x2509ACDC: pop ebx */ 15342 esp = ebp; /* 0x2509ACDD: mov esp, ebp */ 15343 ebp = POP32_VAL(esp); /* 0x2509ACDF: pop ebp */ 15344 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509ACE0: ret 8 */ 15345 RECOMP_REGS_OUT(); 15346 } 15347 15348 void sub_2509ACF0(void) { 15349 int _fpu_cmp = 0; 15350 uint32_t _cf = 0; 15351 int _df = 1; 15352 uint32_t _flag_k = FK_NONE; 15353 uint32_t _flag_a = 0, _flag_b = 0; 15354 uint32_t _itail_tgt = 0; 15355 RECOMP_REGS_LOCALS 15356 RECOMP_ENTER(0x2509ACF0u); 15357 15358 L_2509ACF0: 15359 PUSH32(esp, ebp); /* 0x2509ACF0: push ebp */ 15360 ebp = esp; /* 0x2509ACF1: mov ebp, esp */ 15361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 15362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15363 esp = esp - 0x24u; /* 0x2509ACF3: sub esp, 0x24 */ 15364 _flag_k = FK_CMP; 15365 eax = MEM32(ecx + 0x10); /* 0x2509ACF6: mov eax, dword ptr [ecx + 0x10] */ 15366 PUSH32(esp, ebx); /* 0x2509ACF9: push ebx */ 15367 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15368 ebx = 0; /* 0x2509ACFA: xor ebx, ebx */ 15369 _cf = 0; 15370 _flag_k = FK_TEST; 15371 /* cmp eax, ebx */ /* 0x2509ACFC: cmp eax, ebx */ 15372 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15374 _flag_k = FK_CMP; 15375 PUSH32(esp, esi); /* 0x2509ACFE: push esi */ 15376 PUSH32(esp, edi); /* 0x2509ACFF: push edi */ 15377 MEM32(ebp + (-0x4)) = ecx; /* 0x2509AD00: mov dword ptr [ebp - 4], ecx */ 15378 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B080; /* 0x2509AD03: je 0x2509b080 */ 15379 L_2509AD09: 15380 MEM32(ebp + (-0x14)) = eax; /* 0x2509AD09: mov dword ptr [ebp - 0x14], eax */ 15381 MEM32(ebp + (-0x10)) = eax; /* 0x2509AD0C: mov dword ptr [ebp - 0x10], eax */ 15382 eax = ebp + (-0x14); /* 0x2509AD0F: lea eax, [ebp - 0x14] */ 15383 PUSH32(esp, eax); /* 0x2509AD12: push eax */ 15384 ecx = ebp + (-0xC); /* 0x2509AD13: lea ecx, [ebp - 0xc] */ 15385 RECOMP_ICALL(0x25098250u); /* 0x2509AD16: call 0x25098250 */ /* not lifted */ 15386 RECOMP_FLAGS_IN(); 15387 eax = MEM32(ebp + (-0xC)); /* 0x2509AD1B: mov eax, dword ptr [ebp - 0xc] */ 15388 ecx = MEM32(ebp + (-0x8)); /* 0x2509AD1E: mov ecx, dword ptr [ebp - 8] */ 15389 PUSH32(esp, ebx); /* 0x2509AD21: push ebx */ 15390 PUSH32(esp, 0x251B2970u); /* 0x2509AD22: push 0x251b2970 */ 15391 PUSH32(esp, 0x251B2970u); /* 0x2509AD27: push 0x251b2970 */ 15392 PUSH32(esp, ebx); /* 0x2509AD2C: push ebx */ 15393 PUSH32(esp, eax); /* 0x2509AD2D: push eax */ 15394 MEM32(ebp + (-0x1C)) = eax; /* 0x2509AD2E: mov dword ptr [ebp - 0x1c], eax */ 15395 MEM32(ebp + (-0x18)) = ecx; /* 0x2509AD31: mov dword ptr [ebp - 0x18], ecx */ 15396 RECOMP_ICALL(0x251381ACu); /* 0x2509AD34: call 0x251381ac */ /* not lifted */ 15397 RECOMP_FLAGS_IN(); 15398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 15399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15400 esp = esp + 0x14u; /* 0x2509AD39: add esp, 0x14 */ 15401 _flag_k = FK_ADD; 15402 /* test eax, eax */ /* 0x2509AD3C: test eax, eax */ 15403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15404 _cf = 0; 15405 _flag_k = FK_TEST; 15406 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509AD48; /* 0x2509AD3E: jne 0x2509ad48 */ 15407 L_2509AD40: 15408 ecx = ebp + (-0x1C); /* 0x2509AD40: lea ecx, [ebp - 0x1c] */ 15409 RECOMP_ICALL(0x250982C0u); /* 0x2509AD43: call 0x250982c0 */ /* not lifted */ 15410 RECOMP_FLAGS_IN(); 15411 L_2509AD48: 15412 edx = ebp + (-0x14); /* 0x2509AD48: lea edx, [ebp - 0x14] */ 15413 PUSH32(esp, edx); /* 0x2509AD4B: push edx */ 15414 ecx = ebp + (-0xC); /* 0x2509AD4C: lea ecx, [ebp - 0xc] */ 15415 MEM32(ebp + (-0x14)) = ebx; /* 0x2509AD4F: mov dword ptr [ebp - 0x14], ebx */ 15416 MEM32(ebp + (-0x10)) = ebx; /* 0x2509AD52: mov dword ptr [ebp - 0x10], ebx */ 15417 RECOMP_ICALL(0x25098250u); /* 0x2509AD55: call 0x25098250 */ /* not lifted */ 15418 RECOMP_FLAGS_IN(); 15419 eax = MEM32(ebp + (-0x1C)); /* 0x2509AD5A: mov eax, dword ptr [ebp - 0x1c] */ 15420 /* cmp eax, MEM32(ebp + (-0xC)) */ /* 0x2509AD5D: cmp eax, dword ptr [ebp - 0xc] */ 15421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0xC))); 15422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15423 _flag_k = FK_CMP; 15424 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B080; /* 0x2509AD60: je 0x2509b080 */ 15425 L_2509AD66: 15426 edi = MEM32(eax + 0x1F0); /* 0x2509AD66: mov edi, dword ptr [eax + 0x1f0] */ 15427 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x44u); 15428 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15429 edi = edi + 0x44u; /* 0x2509AD6C: add edi, 0x44 */ 15430 _flag_k = FK_ADD; 15431 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15432 esi = 0; /* 0x2509AD6F: xor esi, esi */ 15433 _cf = 0; 15434 _flag_k = FK_TEST; 15435 L_2509AD71: 15436 eax = MEM32(edi + 0x4); /* 0x2509AD71: mov eax, dword ptr [edi + 4] */ 15437 /* cmp eax, ebx */ /* 0x2509AD74: cmp eax, ebx */ 15438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15440 _flag_k = FK_CMP; 15441 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509ADE0; /* 0x2509AD76: je 0x2509ade0 */ 15442 L_2509AD78: 15443 ecx = MEM32(edi + 0x8); /* 0x2509AD78: mov ecx, dword ptr [edi + 8] */ 15444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15446 ecx = ecx - eax; /* 0x2509AD7B: sub ecx, eax */ 15447 _flag_k = FK_CMP; 15448 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509AD7D: sar ecx, 2 */ 15449 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15450 ecx = (uint32_t)((int32_t)ecx >> 2u); 15451 /* cmp esi, ecx */ /* 0x2509AD80: cmp esi, ecx */ 15452 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 15453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15454 _flag_k = FK_CMP; 15455 if (CMP_AE(_flag_a, _flag_b)) goto L_2509ADE0; /* 0x2509AD82: jae 0x2509ade0 */ 15456 L_2509AD84: 15457 edx = MEM32(eax + esi * 4); /* 0x2509AD84: mov edx, dword ptr [eax + esi*4] */ 15458 eax = MEM32(edx + 0x160); /* 0x2509AD87: mov eax, dword ptr [edx + 0x160] */ 15459 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 15460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15461 eax = eax + 8; /* 0x2509AD8D: add eax, 8 */ 15462 _flag_k = FK_ADD; 15463 eax = MEM32(eax + 0x4); /* 0x2509AD90: mov eax, dword ptr [eax + 4] */ 15464 /* cmp eax, ebx */ /* 0x2509AD93: cmp eax, ebx */ 15465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15467 _flag_k = FK_CMP; 15468 if (CMP_NE(_flag_a, _flag_b)) goto L_2509AD9C; /* 0x2509AD95: jne 0x2509ad9c */ 15469 L_2509AD97: 15470 eax = MEM32(0x251511E4); /* 0x2509AD97: mov eax, dword ptr [0x251511e4] */ 15471 L_2509AD9C: 15472 PUSH32(esp, 0x251B4C54u); /* 0x2509AD9C: push 0x251b4c54 */ 15473 PUSH32(esp, eax); /* 0x2509ADA1: push eax */ 15474 RECOMP_ICALL(MEM32(0x25151318)); /* 0x2509ADA2: call dword ptr [0x25151318] */ 15475 RECOMP_FLAGS_IN(); 15476 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15477 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15478 esp = esp + 8; /* 0x2509ADA8: add esp, 8 */ 15479 _flag_k = FK_ADD; 15480 /* test eax, eax */ /* 0x2509ADAB: test eax, eax */ 15481 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15482 _cf = 0; 15483 _flag_k = FK_TEST; 15484 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509ADDD; /* 0x2509ADAD: jne 0x2509addd */ 15485 L_2509ADAF: 15486 eax = MEM32(edi + 0x4); /* 0x2509ADAF: mov eax, dword ptr [edi + 4] */ 15487 ecx = MEM32(eax + esi * 4); /* 0x2509ADB2: mov ecx, dword ptr [eax + esi*4] */ 15488 eax = MEM32(ecx + 0x160); /* 0x2509ADB5: mov eax, dword ptr [ecx + 0x160] */ 15489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 15490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15491 eax = eax + 8; /* 0x2509ADBB: add eax, 8 */ 15492 _flag_k = FK_ADD; 15493 eax = MEM32(eax + 0x4); /* 0x2509ADBE: mov eax, dword ptr [eax + 4] */ 15494 /* cmp eax, ebx */ /* 0x2509ADC1: cmp eax, ebx */ 15495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15497 _flag_k = FK_CMP; 15498 if (CMP_NE(_flag_a, _flag_b)) goto L_2509ADCA; /* 0x2509ADC3: jne 0x2509adca */ 15499 L_2509ADC5: 15500 eax = MEM32(0x251511E4); /* 0x2509ADC5: mov eax, dword ptr [0x251511e4] */ 15501 L_2509ADCA: 15502 PUSH32(esp, 0x251B4C4Cu); /* 0x2509ADCA: push 0x251b4c4c */ 15503 PUSH32(esp, eax); /* 0x2509ADCF: push eax */ 15504 RECOMP_ICALL(MEM32(0x25151318)); /* 0x2509ADD0: call dword ptr [0x25151318] */ 15505 RECOMP_FLAGS_IN(); 15506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 15507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15508 esp = esp + 8; /* 0x2509ADD6: add esp, 8 */ 15509 _flag_k = FK_ADD; 15510 /* test eax, eax */ /* 0x2509ADD9: test eax, eax */ 15511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15512 _cf = 0; 15513 _flag_k = FK_TEST; 15514 if (TEST_Z(_flag_a, _flag_b)) goto L_2509AE3A; /* 0x2509ADDB: je 0x2509ae3a */ 15515 L_2509ADDD: 15516 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 15517 esi = esi + 1; /* 0x2509ADDD: inc esi */ 15518 _flag_k = FK_INC; 15519 RECOMP_BACKEDGE(); 15520 goto L_2509AD71; /* 0x2509ADDE: jmp 0x2509ad71 */ 15521 L_2509ADE0: 15522 /* cmp MEM32(ebp + (-0x1C)), ebx */ /* 0x2509ADE0: cmp dword ptr [ebp - 0x1c], ebx */ 15523 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(ebx); 15524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15525 _flag_k = FK_CMP; 15526 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509AE13; /* 0x2509ADE3: je 0x2509ae13 */ 15527 L_2509ADE5: 15528 edx = MEM32(ebp + (-0x18)); /* 0x2509ADE5: mov edx, dword ptr [ebp - 0x18] */ 15529 PUSH32(esp, edx); /* 0x2509ADE8: push edx */ 15530 eax = ebp + (-0x1C); /* 0x2509ADE9: lea eax, [ebp - 0x1c] */ 15531 PUSH32(esp, eax); /* 0x2509ADEC: push eax */ 15532 RECOMP_ICALL(0x250E3530u); /* 0x2509ADED: call 0x250e3530 */ /* not lifted */ 15533 RECOMP_FLAGS_IN(); 15534 ecx = MEM32(ebp + (-0x1C)); /* 0x2509ADF2: mov ecx, dword ptr [ebp - 0x1c] */ 15535 PUSH32(esp, ebx); /* 0x2509ADF5: push ebx */ 15536 PUSH32(esp, 0x251B2970u); /* 0x2509ADF6: push 0x251b2970 */ 15537 PUSH32(esp, 0x251B2970u); /* 0x2509ADFB: push 0x251b2970 */ 15538 PUSH32(esp, ebx); /* 0x2509AE00: push ebx */ 15539 PUSH32(esp, ecx); /* 0x2509AE01: push ecx */ 15540 RECOMP_ICALL(0x251381ACu); /* 0x2509AE02: call 0x251381ac */ /* not lifted */ 15541 RECOMP_FLAGS_IN(); 15542 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 15543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15544 esp = esp + 0x1Cu; /* 0x2509AE07: add esp, 0x1c */ 15545 _flag_k = FK_ADD; 15546 /* test eax, eax */ /* 0x2509AE0A: test eax, eax */ 15547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15548 _cf = 0; 15549 _flag_k = FK_TEST; 15550 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509AE13; /* 0x2509AE0C: jne 0x2509ae13 */ 15551 L_2509AE0E: 15552 /* cmp MEM32(ebp + (-0x1C)), ebx */ /* 0x2509AE0E: cmp dword ptr [ebp - 0x1c], ebx */ 15553 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(ebx); 15554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15555 _flag_k = FK_CMP; 15556 RECOMP_BACKEDGE(); 15557 if (CMP_NE(_flag_a, _flag_b)) goto L_2509ADE5; /* 0x2509AE11: jne 0x2509ade5 */ 15558 L_2509AE13: 15559 edx = ebp + (-0x14); /* 0x2509AE13: lea edx, [ebp - 0x14] */ 15560 PUSH32(esp, edx); /* 0x2509AE16: push edx */ 15561 ecx = ebp + (-0xC); /* 0x2509AE17: lea ecx, [ebp - 0xc] */ 15562 MEM32(ebp + (-0x14)) = ebx; /* 0x2509AE1A: mov dword ptr [ebp - 0x14], ebx */ 15563 MEM32(ebp + (-0x10)) = ebx; /* 0x2509AE1D: mov dword ptr [ebp - 0x10], ebx */ 15564 RECOMP_ICALL(0x25098250u); /* 0x2509AE20: call 0x25098250 */ /* not lifted */ 15565 RECOMP_FLAGS_IN(); 15566 eax = MEM32(ebp + (-0x1C)); /* 0x2509AE25: mov eax, dword ptr [ebp - 0x1c] */ 15567 /* cmp eax, MEM32(ebp + (-0xC)) */ /* 0x2509AE28: cmp eax, dword ptr [ebp - 0xc] */ 15568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0xC))); 15569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15570 _flag_k = FK_CMP; 15571 RECOMP_BACKEDGE(); 15572 if (CMP_NE(_flag_a, _flag_b)) goto L_2509AD66; /* 0x2509AE2B: jne 0x2509ad66 */ 15573 L_2509AE31: 15574 edi = POP32_VAL(esp); /* 0x2509AE31: pop edi */ 15575 esi = POP32_VAL(esp); /* 0x2509AE32: pop esi */ 15576 ebx = POP32_VAL(esp); /* 0x2509AE33: pop ebx */ 15577 esp = ebp; /* 0x2509AE34: mov esp, ebp */ 15578 ebp = POP32_VAL(esp); /* 0x2509AE36: pop ebp */ 15579 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509AE37: ret 4 */ 15580 L_2509AE3A: 15581 eax = MEM32(ebp + 0x8); /* 0x2509AE3A: mov eax, dword ptr [ebp + 8] */ 15582 MEM32(ebp + (-0x24)) = 0x000F6954u; /* 0x2509AE3D: mov dword ptr [ebp - 0x24], 0xf6954 */ 15583 MEM32(ebp + (-0x20)) = eax; /* 0x2509AE44: mov dword ptr [ebp - 0x20], eax */ 15584 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509AE47: call dword ptr [0x251515d8] */ 15585 RECOMP_FLAGS_IN(); 15586 edx = MEM32(eax); /* 0x2509AE4D: mov edx, dword ptr [eax] */ 15587 PUSH32(esp, 3); /* 0x2509AE4F: push 3 */ 15588 PUSH32(esp, 1); /* 0x2509AE51: push 1 */ 15589 ecx = ebp + (-0x24); /* 0x2509AE53: lea ecx, [ebp - 0x24] */ 15590 PUSH32(esp, ecx); /* 0x2509AE56: push ecx */ 15591 ecx = eax; /* 0x2509AE57: mov ecx, eax */ 15592 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509AE59: call dword ptr [edx + 0x24] */ 15593 RECOMP_FLAGS_IN(); 15594 ebx = eax; /* 0x2509AE5C: mov ebx, eax */ 15595 /* test ebx, ebx */ /* 0x2509AE5E: test ebx, ebx */ 15596 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 15597 _cf = 0; 15598 _flag_k = FK_TEST; 15599 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B080; /* 0x2509AE60: je 0x2509b080 */ 15600 L_2509AE66: 15601 eax = MEM32(edi + 0x4); /* 0x2509AE66: mov eax, dword ptr [edi + 4] */ 15602 ecx = MEM32(eax + esi * 4); /* 0x2509AE69: mov ecx, dword ptr [eax + esi*4] */ 15603 eax = MEM32(ecx + 0x160); /* 0x2509AE6C: mov eax, dword ptr [ecx + 0x160] */ 15604 edi = MEM32(ebp + (-0x4)); /* 0x2509AE72: mov edi, dword ptr [ebp - 4] */ 15605 MEM32(ebp + (-0x8)) = eax; /* 0x2509AE75: mov dword ptr [ebp - 8], eax */ 15606 eax = MEM32(edi + 0x4C); /* 0x2509AE78: mov eax, dword ptr [edi + 0x4c] */ 15607 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 15608 SET_LO8(edx, 0); /* 0x2509AE7B: xor dl, dl */ 15609 _cf = 0; 15610 _flag_k = FK_NARROW(FK_TEST, 24); 15611 /* test eax, eax */ /* 0x2509AE7D: test eax, eax */ 15612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15613 _cf = 0; 15614 _flag_k = FK_TEST; 15615 if (TEST_Z(_flag_a, _flag_b)) goto L_2509AEC4; /* 0x2509AE7F: je 0x2509aec4 */ 15616 L_2509AE81: 15617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15618 esi = 0; /* 0x2509AE81: xor esi, esi */ 15619 _cf = 0; 15620 _flag_k = FK_TEST; 15621 L_2509AE83: 15622 eax = MEM32(edi + 0x4C); /* 0x2509AE83: mov eax, dword ptr [edi + 0x4c] */ 15623 ecx = MEM32(eax + 0x4); /* 0x2509AE86: mov ecx, dword ptr [eax + 4] */ 15624 /* test ecx, ecx */ /* 0x2509AE89: test ecx, ecx */ 15625 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 15626 _cf = 0; 15627 _flag_k = FK_TEST; 15628 if (TEST_Z(_flag_a, _flag_b)) goto L_2509AEF1; /* 0x2509AE8B: je 0x2509aef1 */ 15629 L_2509AE8D: 15630 edi = MEM32(eax + 0x8); /* 0x2509AE8D: mov edi, dword ptr [eax + 8] */ 15631 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 15632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15633 edi = edi - ecx; /* 0x2509AE90: sub edi, ecx */ 15634 _flag_k = FK_CMP; 15635 if (2u) _cf = (((edi) >> 1) & 1u); /* 0x2509AE92: sar edi, 2 */ 15636 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15637 edi = (uint32_t)((int32_t)edi >> 2u); 15638 /* cmp esi, edi */ /* 0x2509AE95: cmp esi, edi */ 15639 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 15640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15641 _flag_k = FK_CMP; 15642 if (CMP_AE(_flag_a, _flag_b)) goto L_2509AEEE; /* 0x2509AE97: jae 0x2509aeee */ 15643 L_2509AE99: 15644 eax = MEM32(ecx + esi * 4); /* 0x2509AE99: mov eax, dword ptr [ecx + esi*4] */ 15645 ecx = MEM32(ebp + (-0x8)); /* 0x2509AE9C: mov ecx, dword ptr [ebp - 8] */ 15646 /* cmp MEM32(eax), ecx */ /* 0x2509AE9F: cmp dword ptr [eax], ecx */ 15647 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx); 15648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15649 _flag_k = FK_CMP; 15650 if (CMP_NE(_flag_a, _flag_b)) goto L_2509AEBE; /* 0x2509AEA1: jne 0x2509aebe */ 15651 L_2509AEA3: 15652 ecx = MEM32(eax + 0x4); /* 0x2509AEA3: mov ecx, dword ptr [eax + 4] */ 15653 edx = MEM32(ecx); /* 0x2509AEA6: mov edx, dword ptr [ecx] */ 15654 PUSH32(esp, 0); /* 0x2509AEA8: push 0 */ 15655 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x2509AEAA: call dword ptr [edx + 0x28] */ 15656 RECOMP_FLAGS_IN(); 15657 eax = MEM32(ebp + (-0x4)); /* 0x2509AEAD: mov eax, dword ptr [ebp - 4] */ 15658 ecx = MEM32(eax + 0x4C); /* 0x2509AEB0: mov ecx, dword ptr [eax + 0x4c] */ 15659 edx = MEM32(ecx + 0x4); /* 0x2509AEB3: mov edx, dword ptr [ecx + 4] */ 15660 eax = MEM32(edx + esi * 4); /* 0x2509AEB6: mov eax, dword ptr [edx + esi*4] */ 15661 MEM32(eax + 0x4) = ebx; /* 0x2509AEB9: mov dword ptr [eax + 4], ebx */ 15662 SET_LO8(edx, 1); /* 0x2509AEBC: mov dl, 1 */ 15663 L_2509AEBE: 15664 edi = MEM32(ebp + (-0x4)); /* 0x2509AEBE: mov edi, dword ptr [ebp - 4] */ 15665 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 15666 esi = esi + 1; /* 0x2509AEC1: inc esi */ 15667 _flag_k = FK_INC; 15668 RECOMP_BACKEDGE(); 15669 goto L_2509AE83; /* 0x2509AEC2: jmp 0x2509ae83 */ 15670 L_2509AEC4: 15671 PUSH32(esp, 0x10u); /* 0x2509AEC4: push 0x10 */ 15672 RECOMP_ICALL(0x251380D0u); /* 0x2509AEC6: call 0x251380d0 */ /* not lifted */ 15673 RECOMP_FLAGS_IN(); 15674 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15675 esi = 0; /* 0x2509AECB: xor esi, esi */ 15676 _cf = 0; 15677 _flag_k = FK_TEST; 15678 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15680 esp = esp + 4; /* 0x2509AECD: add esp, 4 */ 15681 _flag_k = FK_ADD; 15682 /* cmp eax, esi */ /* 0x2509AED0: cmp eax, esi */ 15683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 15684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15685 _flag_k = FK_CMP; 15686 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509AEE7; /* 0x2509AED2: je 0x2509aee7 */ 15687 L_2509AED4: 15688 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2509AED4: mov cl, byte ptr [ebp + 0xb] */ 15689 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2509AED7: mov byte ptr [eax], cl */ 15690 MEM32(eax + 0x4) = esi; /* 0x2509AED9: mov dword ptr [eax + 4], esi */ 15691 MEM32(eax + 0x8) = esi; /* 0x2509AEDC: mov dword ptr [eax + 8], esi */ 15692 MEM32(eax + 0xC) = esi; /* 0x2509AEDF: mov dword ptr [eax + 0xc], esi */ 15693 MEM32(edi + 0x4C) = eax; /* 0x2509AEE2: mov dword ptr [edi + 0x4c], eax */ 15694 goto L_2509AEF9; /* 0x2509AEE5: jmp 0x2509aef9 */ 15695 L_2509AEE7: 15696 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15697 eax = 0; /* 0x2509AEE7: xor eax, eax */ 15698 _cf = 0; 15699 _flag_k = FK_TEST; 15700 MEM32(edi + 0x4C) = eax; /* 0x2509AEE9: mov dword ptr [edi + 0x4c], eax */ 15701 goto L_2509AEF9; /* 0x2509AEEC: jmp 0x2509aef9 */ 15702 L_2509AEEE: 15703 edi = MEM32(ebp + (-0x4)); /* 0x2509AEEE: mov edi, dword ptr [ebp - 4] */ 15704 L_2509AEF1: 15705 /* test LO8(edx), LO8(edx) */ /* 0x2509AEF1: test dl, dl */ 15706 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 15707 _cf = 0; 15708 _flag_k = FK_NARROW(FK_TEST, 24); 15709 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B070; /* 0x2509AEF3: jne 0x2509b070 */ 15710 L_2509AEF9: 15711 PUSH32(esp, 8); /* 0x2509AEF9: push 8 */ 15712 RECOMP_ICALL(0x251380D0u); /* 0x2509AEFB: call 0x251380d0 */ /* not lifted */ 15713 RECOMP_FLAGS_IN(); 15714 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15715 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15716 esp = esp + 4; /* 0x2509AF00: add esp, 4 */ 15717 _flag_k = FK_ADD; 15718 /* test eax, eax */ /* 0x2509AF03: test eax, eax */ 15719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 15720 _cf = 0; 15721 _flag_k = FK_TEST; 15722 if (TEST_Z(_flag_a, _flag_b)) goto L_2509AF16; /* 0x2509AF05: je 0x2509af16 */ 15723 L_2509AF07: 15724 MEM32(eax) = 0; /* 0x2509AF07: mov dword ptr [eax], 0 */ 15725 MEM32(eax + 0x4) = 0; /* 0x2509AF0D: mov dword ptr [eax + 4], 0 */ 15726 goto L_2509AF18; /* 0x2509AF14: jmp 0x2509af18 */ 15727 L_2509AF16: 15728 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15729 eax = 0; /* 0x2509AF16: xor eax, eax */ 15730 _cf = 0; 15731 _flag_k = FK_TEST; 15732 L_2509AF18: 15733 edx = MEM32(ebp + (-0x8)); /* 0x2509AF18: mov edx, dword ptr [ebp - 8] */ 15734 MEM32(ebp + 0x8) = eax; /* 0x2509AF1B: mov dword ptr [ebp + 8], eax */ 15735 MEM32(eax) = edx; /* 0x2509AF1E: mov dword ptr [eax], edx */ 15736 eax = MEM32(ebp + 0x8); /* 0x2509AF20: mov eax, dword ptr [ebp + 8] */ 15737 MEM32(eax + 0x4) = ebx; /* 0x2509AF23: mov dword ptr [eax + 4], ebx */ 15738 esi = MEM32(edi + 0x4C); /* 0x2509AF26: mov esi, dword ptr [edi + 0x4c] */ 15739 eax = MEM32(esi + 0x8); /* 0x2509AF29: mov eax, dword ptr [esi + 8] */ 15740 ecx = MEM32(esi + 0xC); /* 0x2509AF2C: mov ecx, dword ptr [esi + 0xc] */ 15741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 15742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15743 ecx = ecx - eax; /* 0x2509AF2F: sub ecx, eax */ 15744 _flag_k = FK_CMP; 15745 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509AF31: sar ecx, 2 */ 15746 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15747 ecx = (uint32_t)((int32_t)ecx >> 2u); 15748 /* cmp ecx, 1 */ /* 0x2509AF34: cmp ecx, 1 */ 15749 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15751 _flag_k = FK_CMP; 15752 edi = eax; /* 0x2509AF37: mov edi, eax */ 15753 if (CMP_AE(_flag_a, _flag_b)) goto L_2509AFE4; /* 0x2509AF39: jae 0x2509afe4 */ 15754 L_2509AF3F: 15755 ecx = MEM32(esi + 0x4); /* 0x2509AF3F: mov ecx, dword ptr [esi + 4] */ 15756 /* test ecx, ecx */ /* 0x2509AF42: test ecx, ecx */ 15757 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 15758 _cf = 0; 15759 _flag_k = FK_TEST; 15760 if (TEST_Z(_flag_a, _flag_b)) goto L_2509AF52; /* 0x2509AF44: je 0x2509af52 */ 15761 L_2509AF46: 15762 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 15763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15764 eax = eax - ecx; /* 0x2509AF46: sub eax, ecx */ 15765 _flag_k = FK_CMP; 15766 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509AF48: sar eax, 2 */ 15767 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15768 eax = (uint32_t)((int32_t)eax >> 2u); 15769 /* cmp eax, 1 */ /* 0x2509AF4B: cmp eax, 1 */ 15770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 15771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15772 _flag_k = FK_CMP; 15773 ebx = eax; /* 0x2509AF4E: mov ebx, eax */ 15774 if (CMP_A(_flag_a, _flag_b)) goto L_2509AF57; /* 0x2509AF50: ja 0x2509af57 */ 15775 L_2509AF52: 15776 ebx = 1; /* 0x2509AF52: mov ebx, 1 */ 15777 L_2509AF57: 15778 ecx = esi; /* 0x2509AF57: mov ecx, esi */ 15779 RECOMP_ICALL(0x251262D0u); /* 0x2509AF59: call 0x251262d0 */ /* not lifted */ 15780 RECOMP_FLAGS_IN(); 15781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 15782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15783 eax = eax + ebx; /* 0x2509AF5E: add eax, ebx */ 15784 _flag_k = FK_ADD; 15785 MEM32(ebp + (-0x10)) = eax; /* 0x2509AF60: mov dword ptr [ebp - 0x10], eax */ 15786 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509AF67; /* 0x2509AF63: jns 0x2509af67 */ 15787 L_2509AF65: 15788 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 15789 eax = 0; /* 0x2509AF65: xor eax, eax */ 15790 _cf = 0; 15791 _flag_k = FK_TEST; 15792 L_2509AF67: 15793 edx = eax * 4; /* 0x2509AF67: lea edx, [eax*4] */ 15794 PUSH32(esp, edx); /* 0x2509AF6E: push edx */ 15795 RECOMP_ICALL(0x251380D0u); /* 0x2509AF6F: call 0x251380d0 */ /* not lifted */ 15796 RECOMP_FLAGS_IN(); 15797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15799 esp = esp + 4; /* 0x2509AF74: add esp, 4 */ 15800 _flag_k = FK_ADD; 15801 ebx = eax; /* 0x2509AF77: mov ebx, eax */ 15802 eax = MEM32(esi + 0x4); /* 0x2509AF79: mov eax, dword ptr [esi + 4] */ 15803 PUSH32(esp, ebx); /* 0x2509AF7C: push ebx */ 15804 PUSH32(esp, edi); /* 0x2509AF7D: push edi */ 15805 PUSH32(esp, eax); /* 0x2509AF7E: push eax */ 15806 ecx = esi; /* 0x2509AF7F: mov ecx, esi */ 15807 RECOMP_ICALL(0x250E3D40u); /* 0x2509AF81: call 0x250e3d40 */ /* not lifted */ 15808 RECOMP_FLAGS_IN(); 15809 ecx = ebp + 0x8; /* 0x2509AF86: lea ecx, [ebp + 8] */ 15810 PUSH32(esp, ecx); /* 0x2509AF89: push ecx */ 15811 PUSH32(esp, 1); /* 0x2509AF8A: push 1 */ 15812 PUSH32(esp, eax); /* 0x2509AF8C: push eax */ 15813 ecx = esi; /* 0x2509AF8D: mov ecx, esi */ 15814 MEM32(ebp + (-0x8)) = eax; /* 0x2509AF8F: mov dword ptr [ebp - 8], eax */ 15815 RECOMP_ICALL(0x250E3D70u); /* 0x2509AF92: call 0x250e3d70 */ /* not lifted */ 15816 RECOMP_FLAGS_IN(); 15817 edx = MEM32(ebp + (-0x8)); /* 0x2509AF97: mov edx, dword ptr [ebp - 8] */ 15818 eax = MEM32(esi + 0x8); /* 0x2509AF9A: mov eax, dword ptr [esi + 8] */ 15819 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 15820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15821 edx = edx + 4; /* 0x2509AF9D: add edx, 4 */ 15822 _flag_k = FK_ADD; 15823 PUSH32(esp, edx); /* 0x2509AFA0: push edx */ 15824 PUSH32(esp, eax); /* 0x2509AFA1: push eax */ 15825 PUSH32(esp, edi); /* 0x2509AFA2: push edi */ 15826 ecx = esi; /* 0x2509AFA3: mov ecx, esi */ 15827 RECOMP_ICALL(0x250E3D40u); /* 0x2509AFA5: call 0x250e3d40 */ /* not lifted */ 15828 RECOMP_FLAGS_IN(); 15829 ecx = MEM32(esi + 0x8); /* 0x2509AFAA: mov ecx, dword ptr [esi + 8] */ 15830 edx = MEM32(esi + 0x4); /* 0x2509AFAD: mov edx, dword ptr [esi + 4] */ 15831 PUSH32(esp, ecx); /* 0x2509AFB0: push ecx */ 15832 PUSH32(esp, edx); /* 0x2509AFB1: push edx */ 15833 ecx = esi; /* 0x2509AFB2: mov ecx, esi */ 15834 RECOMP_ICALL(0x25093260u); /* 0x2509AFB4: call 0x25093260 */ /* not lifted */ 15835 RECOMP_FLAGS_IN(); 15836 eax = MEM32(esi + 0x4); /* 0x2509AFB9: mov eax, dword ptr [esi + 4] */ 15837 PUSH32(esp, eax); /* 0x2509AFBC: push eax */ 15838 RECOMP_ICALL(0x25137EECu); /* 0x2509AFBD: call 0x25137eec */ /* not lifted */ 15839 RECOMP_FLAGS_IN(); 15840 ecx = MEM32(ebp + (-0x10)); /* 0x2509AFC2: mov ecx, dword ptr [ebp - 0x10] */ 15841 edx = ebx + ecx * 4; /* 0x2509AFC5: lea edx, [ebx + ecx*4] */ 15842 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 15843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15844 esp = esp + 4; /* 0x2509AFC8: add esp, 4 */ 15845 _flag_k = FK_ADD; 15846 ecx = esi; /* 0x2509AFCB: mov ecx, esi */ 15847 MEM32(esi + 0xC) = edx; /* 0x2509AFCD: mov dword ptr [esi + 0xc], edx */ 15848 RECOMP_ICALL(0x251262D0u); /* 0x2509AFD0: call 0x251262d0 */ /* not lifted */ 15849 RECOMP_FLAGS_IN(); 15850 eax = ebx + eax * 4 + 0x4; /* 0x2509AFD5: lea eax, [ebx + eax*4 + 4] */ 15851 MEM32(esi + 0x8) = eax; /* 0x2509AFD9: mov dword ptr [esi + 8], eax */ 15852 MEM32(esi + 0x4) = ebx; /* 0x2509AFDC: mov dword ptr [esi + 4], ebx */ 15853 goto L_2509B06D; /* 0x2509AFDF: jmp 0x2509b06d */ 15854 L_2509AFE4: 15855 ecx = eax; /* 0x2509AFE4: mov ecx, eax */ 15856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 15857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15858 ecx = ecx - edi; /* 0x2509AFE6: sub ecx, edi */ 15859 _flag_k = FK_CMP; 15860 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509AFE8: sar ecx, 2 */ 15861 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15862 ecx = (uint32_t)((int32_t)ecx >> 2u); 15863 /* cmp ecx, 1 */ /* 0x2509AFEB: cmp ecx, 1 */ 15864 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 15865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15866 _flag_k = FK_CMP; 15867 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B030; /* 0x2509AFEE: jae 0x2509b030 */ 15868 L_2509AFF0: 15869 edx = edi + 0x4; /* 0x2509AFF0: lea edx, [edi + 4] */ 15870 PUSH32(esp, edx); /* 0x2509AFF3: push edx */ 15871 PUSH32(esp, eax); /* 0x2509AFF4: push eax */ 15872 PUSH32(esp, edi); /* 0x2509AFF5: push edi */ 15873 ecx = esi; /* 0x2509AFF6: mov ecx, esi */ 15874 RECOMP_ICALL(0x250E3D40u); /* 0x2509AFF8: call 0x250e3d40 */ /* not lifted */ 15875 RECOMP_FLAGS_IN(); 15876 eax = MEM32(esi + 0x8); /* 0x2509AFFD: mov eax, dword ptr [esi + 8] */ 15877 edx = eax; /* 0x2509B000: mov edx, eax */ 15878 ecx = ebp + 0x8; /* 0x2509B002: lea ecx, [ebp + 8] */ 15879 PUSH32(esp, ecx); /* 0x2509B005: push ecx */ 15880 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 15881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15882 edx = edx - edi; /* 0x2509B006: sub edx, edi */ 15883 _flag_k = FK_CMP; 15884 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B008: sar edx, 2 */ 15885 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 15886 edx = (uint32_t)((int32_t)edx >> 2u); 15887 ecx = 1; /* 0x2509B00B: mov ecx, 1 */ 15888 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 15889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15890 ecx = ecx - edx; /* 0x2509B010: sub ecx, edx */ 15891 _flag_k = FK_CMP; 15892 PUSH32(esp, ecx); /* 0x2509B012: push ecx */ 15893 PUSH32(esp, eax); /* 0x2509B013: push eax */ 15894 ecx = esi; /* 0x2509B014: mov ecx, esi */ 15895 RECOMP_ICALL(0x250E3D70u); /* 0x2509B016: call 0x250e3d70 */ /* not lifted */ 15896 RECOMP_FLAGS_IN(); 15897 eax = MEM32(esi + 0x8); /* 0x2509B01B: mov eax, dword ptr [esi + 8] */ 15898 /* cmp edi, eax */ /* 0x2509B01E: cmp edi, eax */ 15899 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15901 _flag_k = FK_CMP; 15902 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B069; /* 0x2509B020: je 0x2509b069 */ 15903 L_2509B022: 15904 edx = MEM32(ebp + 0x8); /* 0x2509B022: mov edx, dword ptr [ebp + 8] */ 15905 MEM32(edi) = edx; /* 0x2509B025: mov dword ptr [edi], edx */ 15906 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 15907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15908 edi = edi + 4; /* 0x2509B027: add edi, 4 */ 15909 _flag_k = FK_ADD; 15910 /* cmp edi, eax */ /* 0x2509B02A: cmp edi, eax */ 15911 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15913 _flag_k = FK_CMP; 15914 RECOMP_BACKEDGE(); 15915 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B022; /* 0x2509B02C: jne 0x2509b022 */ 15916 L_2509B02E: 15917 goto L_2509B069; /* 0x2509B02E: jmp 0x2509b069 */ 15918 L_2509B030: 15919 PUSH32(esp, eax); /* 0x2509B030: push eax */ 15920 PUSH32(esp, eax); /* 0x2509B031: push eax */ 15921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 15922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15923 eax = eax + 0xFFFFFFFCu; /* 0x2509B032: add eax, -4 */ 15924 _flag_k = FK_ADD; 15925 PUSH32(esp, eax); /* 0x2509B035: push eax */ 15926 ecx = esi; /* 0x2509B036: mov ecx, esi */ 15927 RECOMP_ICALL(0x250E3D40u); /* 0x2509B038: call 0x250e3d40 */ /* not lifted */ 15928 RECOMP_FLAGS_IN(); 15929 ecx = MEM32(esi + 0x8); /* 0x2509B03D: mov ecx, dword ptr [esi + 8] */ 15930 eax = ecx + (-0x4); /* 0x2509B040: lea eax, [ecx - 4] */ 15931 /* cmp edi, eax */ /* 0x2509B043: cmp edi, eax */ 15932 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15934 _flag_k = FK_CMP; 15935 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B056; /* 0x2509B045: je 0x2509b056 */ 15936 L_2509B047: 15937 edx = MEM32(eax + (-0x4)); /* 0x2509B047: mov edx, dword ptr [eax - 4] */ 15938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 15939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15940 eax = eax - 4; /* 0x2509B04A: sub eax, 4 */ 15941 _flag_k = FK_CMP; 15942 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 15943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15944 ecx = ecx - 4; /* 0x2509B04D: sub ecx, 4 */ 15945 _flag_k = FK_CMP; 15946 /* cmp eax, edi */ /* 0x2509B050: cmp eax, edi */ 15947 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 15948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15949 _flag_k = FK_CMP; 15950 MEM32(ecx) = edx; /* 0x2509B052: mov dword ptr [ecx], edx */ 15951 RECOMP_BACKEDGE(); 15952 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B047; /* 0x2509B054: jne 0x2509b047 */ 15953 L_2509B056: 15954 eax = edi + 0x4; /* 0x2509B056: lea eax, [edi + 4] */ 15955 /* cmp edi, eax */ /* 0x2509B059: cmp edi, eax */ 15956 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15958 _flag_k = FK_CMP; 15959 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B069; /* 0x2509B05B: je 0x2509b069 */ 15960 L_2509B05D: 15961 ecx = MEM32(ebp + 0x8); /* 0x2509B05D: mov ecx, dword ptr [ebp + 8] */ 15962 MEM32(edi) = ecx; /* 0x2509B060: mov dword ptr [edi], ecx */ 15963 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 15964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15965 edi = edi + 4; /* 0x2509B062: add edi, 4 */ 15966 _flag_k = FK_ADD; 15967 /* cmp edi, eax */ /* 0x2509B065: cmp edi, eax */ 15968 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 15969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 15970 _flag_k = FK_CMP; 15971 RECOMP_BACKEDGE(); 15972 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B05D; /* 0x2509B067: jne 0x2509b05d */ 15973 L_2509B069: 15974 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 15975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 15976 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B069: add dword ptr [esi + 8], 4 */ 15977 _flag_k = FK_ADD; 15978 L_2509B06D: 15979 edi = MEM32(ebp + (-0x4)); /* 0x2509B06D: mov edi, dword ptr [ebp - 4] */ 15980 L_2509B070: 15981 eax = MEM32(edi + 0x34); /* 0x2509B070: mov eax, dword ptr [edi + 0x34] */ 15982 _flag_a = (uint32_t)((eax | 0x10u)); _flag_b = (uint32_t)((eax | 0x10u)); 15983 eax = eax | 0x10u; /* 0x2509B073: or eax, 0x10 */ 15984 _cf = 0; 15985 _flag_k = FK_TEST; 15986 ecx = edi; /* 0x2509B076: mov ecx, edi */ 15987 MEM32(edi + 0x34) = eax; /* 0x2509B078: mov dword ptr [edi + 0x34], eax */ 15988 RECOMP_ICALL(0x250995C0u); /* 0x2509B07B: call 0x250995c0 */ /* not lifted */ 15989 RECOMP_FLAGS_IN(); 15990 L_2509B080: 15991 edi = POP32_VAL(esp); /* 0x2509B080: pop edi */ 15992 esi = POP32_VAL(esp); /* 0x2509B081: pop esi */ 15993 ebx = POP32_VAL(esp); /* 0x2509B082: pop ebx */ 15994 esp = ebp; /* 0x2509B083: mov esp, ebp */ 15995 ebp = POP32_VAL(esp); /* 0x2509B085: pop ebp */ 15996 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B086: ret 4 */ 15997 RECOMP_REGS_OUT(); 15998 } 15999 16000 void sub_2509B06D(void) { 16001 int _fpu_cmp = 0; 16002 uint32_t _cf = 0; 16003 int _df = 1; 16004 uint32_t _flag_k = FK_NONE; 16005 uint32_t _flag_a = 0, _flag_b = 0; 16006 uint32_t _itail_tgt = 0; 16007 RECOMP_REGS_LOCALS 16008 RECOMP_ENTER(0x2509B06Du); 16009 16010 L_2509B06D: 16011 edi = MEM32(ebp + (-0x4)); /* 0x2509B06D: mov edi, dword ptr [ebp - 4] */ 16012 eax = MEM32(edi + 0x34); /* 0x2509B070: mov eax, dword ptr [edi + 0x34] */ 16013 _flag_a = (uint32_t)((eax | 0x10u)); _flag_b = (uint32_t)((eax | 0x10u)); 16014 eax = eax | 0x10u; /* 0x2509B073: or eax, 0x10 */ 16015 _cf = 0; 16016 _flag_k = FK_TEST; 16017 ecx = edi; /* 0x2509B076: mov ecx, edi */ 16018 MEM32(edi + 0x34) = eax; /* 0x2509B078: mov dword ptr [edi + 0x34], eax */ 16019 RECOMP_ICALL(0x250995C0u); /* 0x2509B07B: call 0x250995c0 */ /* not lifted */ 16020 RECOMP_FLAGS_IN(); 16021 edi = POP32_VAL(esp); /* 0x2509B080: pop edi */ 16022 esi = POP32_VAL(esp); /* 0x2509B081: pop esi */ 16023 ebx = POP32_VAL(esp); /* 0x2509B082: pop ebx */ 16024 esp = ebp; /* 0x2509B083: mov esp, ebp */ 16025 ebp = POP32_VAL(esp); /* 0x2509B085: pop ebp */ 16026 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B086: ret 4 */ 16027 RECOMP_REGS_OUT(); 16028 } 16029 16030 void sub_2509B090(void) { 16031 int _fpu_cmp = 0; 16032 uint32_t _cf = 0; 16033 int _df = 1; 16034 uint32_t _flag_k = FK_NONE; 16035 uint32_t _flag_a = 0, _flag_b = 0; 16036 uint32_t _itail_tgt = 0; 16037 RECOMP_REGS_LOCALS 16038 RECOMP_ENTER(0x2509B090u); 16039 16040 L_2509B090: 16041 PUSH32(esp, ebp); /* 0x2509B090: push ebp */ 16042 ebp = esp; /* 0x2509B091: mov ebp, esp */ 16043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 16044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16045 esp = esp - 0x18u; /* 0x2509B093: sub esp, 0x18 */ 16046 _flag_k = FK_CMP; 16047 eax = MEM32(ecx + 0x10); /* 0x2509B096: mov eax, dword ptr [ecx + 0x10] */ 16048 PUSH32(esp, ebx); /* 0x2509B099: push ebx */ 16049 PUSH32(esp, esi); /* 0x2509B09A: push esi */ 16050 PUSH32(esp, edi); /* 0x2509B09B: push edi */ 16051 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16052 edi = 0; /* 0x2509B09C: xor edi, edi */ 16053 _cf = 0; 16054 _flag_k = FK_TEST; 16055 /* cmp eax, edi */ /* 0x2509B09E: cmp eax, edi */ 16056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16058 _flag_k = FK_CMP; 16059 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B184; /* 0x2509B0A0: je 0x2509b184 */ 16060 L_2509B0A6: 16061 MEM32(ebp + (-0x18)) = eax; /* 0x2509B0A6: mov dword ptr [ebp - 0x18], eax */ 16062 MEM32(ebp + (-0x14)) = eax; /* 0x2509B0A9: mov dword ptr [ebp - 0x14], eax */ 16063 eax = ebp + (-0x18); /* 0x2509B0AC: lea eax, [ebp - 0x18] */ 16064 PUSH32(esp, eax); /* 0x2509B0AF: push eax */ 16065 ecx = ebp + (-0x10); /* 0x2509B0B0: lea ecx, [ebp - 0x10] */ 16066 RECOMP_ICALL(0x25098250u); /* 0x2509B0B3: call 0x25098250 */ /* not lifted */ 16067 RECOMP_FLAGS_IN(); 16068 eax = MEM32(ebp + (-0x10)); /* 0x2509B0B8: mov eax, dword ptr [ebp - 0x10] */ 16069 ecx = MEM32(ebp + (-0xC)); /* 0x2509B0BB: mov ecx, dword ptr [ebp - 0xc] */ 16070 PUSH32(esp, edi); /* 0x2509B0BE: push edi */ 16071 PUSH32(esp, 0x251B2970u); /* 0x2509B0BF: push 0x251b2970 */ 16072 PUSH32(esp, 0x251B2970u); /* 0x2509B0C4: push 0x251b2970 */ 16073 PUSH32(esp, edi); /* 0x2509B0C9: push edi */ 16074 PUSH32(esp, eax); /* 0x2509B0CA: push eax */ 16075 MEM32(ebp + (-0x8)) = eax; /* 0x2509B0CB: mov dword ptr [ebp - 8], eax */ 16076 MEM32(ebp + (-0x4)) = ecx; /* 0x2509B0CE: mov dword ptr [ebp - 4], ecx */ 16077 RECOMP_ICALL(0x251381ACu); /* 0x2509B0D1: call 0x251381ac */ /* not lifted */ 16078 RECOMP_FLAGS_IN(); 16079 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 16080 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16081 esp = esp + 0x14u; /* 0x2509B0D6: add esp, 0x14 */ 16082 _flag_k = FK_ADD; 16083 /* test eax, eax */ /* 0x2509B0D9: test eax, eax */ 16084 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16085 _cf = 0; 16086 _flag_k = FK_TEST; 16087 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B0E5; /* 0x2509B0DB: jne 0x2509b0e5 */ 16088 L_2509B0DD: 16089 ecx = ebp + (-0x8); /* 0x2509B0DD: lea ecx, [ebp - 8] */ 16090 RECOMP_ICALL(0x250982C0u); /* 0x2509B0E0: call 0x250982c0 */ /* not lifted */ 16091 RECOMP_FLAGS_IN(); 16092 L_2509B0E5: 16093 edx = ebp + (-0x10); /* 0x2509B0E5: lea edx, [ebp - 0x10] */ 16094 PUSH32(esp, edx); /* 0x2509B0E8: push edx */ 16095 ecx = ebp + (-0x18); /* 0x2509B0E9: lea ecx, [ebp - 0x18] */ 16096 MEM32(ebp + (-0x10)) = edi; /* 0x2509B0EC: mov dword ptr [ebp - 0x10], edi */ 16097 MEM32(ebp + (-0xC)) = edi; /* 0x2509B0EF: mov dword ptr [ebp - 0xc], edi */ 16098 RECOMP_ICALL(0x25098250u); /* 0x2509B0F2: call 0x25098250 */ /* not lifted */ 16099 RECOMP_FLAGS_IN(); 16100 esi = MEM32(ebp + (-0x8)); /* 0x2509B0F7: mov esi, dword ptr [ebp - 8] */ 16101 /* cmp esi, MEM32(ebp + (-0x18)) */ /* 0x2509B0FA: cmp esi, dword ptr [ebp - 0x18] */ 16102 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 16103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16104 _flag_k = FK_CMP; 16105 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B184; /* 0x2509B0FD: je 0x2509b184 */ 16106 L_2509B103: 16107 ebx = MEM32(ebp + 0x8); /* 0x2509B103: mov ebx, dword ptr [ebp + 8] */ 16108 L_2509B106: 16109 eax = MEM32(esi + 0x1F0); /* 0x2509B106: mov eax, dword ptr [esi + 0x1f0] */ 16110 edx = MEM32(eax + 0x48); /* 0x2509B10C: mov edx, dword ptr [eax + 0x48] */ 16111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x44u); 16112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16113 eax = eax + 0x44u; /* 0x2509B10F: add eax, 0x44 */ 16114 _flag_k = FK_ADD; 16115 /* cmp edx, edi */ /* 0x2509B112: cmp edx, edi */ 16116 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16118 _flag_k = FK_CMP; 16119 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B11A; /* 0x2509B114: jne 0x2509b11a */ 16120 L_2509B116: 16121 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16122 ecx = 0; /* 0x2509B116: xor ecx, ecx */ 16123 _cf = 0; 16124 _flag_k = FK_TEST; 16125 goto L_2509B122; /* 0x2509B118: jmp 0x2509b122 */ 16126 L_2509B11A: 16127 ecx = MEM32(eax + 0x8); /* 0x2509B11A: mov ecx, dword ptr [eax + 8] */ 16128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 16129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16130 ecx = ecx - edx; /* 0x2509B11D: sub ecx, edx */ 16131 _flag_k = FK_CMP; 16132 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B11F: sar ecx, 2 */ 16133 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16134 ecx = (uint32_t)((int32_t)ecx >> 2u); 16135 L_2509B122: 16136 /* cmp ecx, ebx */ /* 0x2509B122: cmp ecx, ebx */ 16137 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 16138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16139 _flag_k = FK_CMP; 16140 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B18F; /* 0x2509B124: jae 0x2509b18f */ 16141 L_2509B126: 16142 /* cmp edx, edi */ /* 0x2509B126: cmp edx, edi */ 16143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 16144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16145 _flag_k = FK_CMP; 16146 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B12E; /* 0x2509B128: jne 0x2509b12e */ 16147 L_2509B12A: 16148 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16149 eax = 0; /* 0x2509B12A: xor eax, eax */ 16150 _cf = 0; 16151 _flag_k = FK_TEST; 16152 goto L_2509B136; /* 0x2509B12C: jmp 0x2509b136 */ 16153 L_2509B12E: 16154 eax = MEM32(eax + 0x8); /* 0x2509B12E: mov eax, dword ptr [eax + 8] */ 16155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 16156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16157 eax = eax - edx; /* 0x2509B131: sub eax, edx */ 16158 _flag_k = FK_CMP; 16159 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B133: sar eax, 2 */ 16160 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16161 eax = (uint32_t)((int32_t)eax >> 2u); 16162 L_2509B136: 16163 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 16164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16165 ebx = ebx - eax; /* 0x2509B136: sub ebx, eax */ 16166 _flag_k = FK_CMP; 16167 /* cmp esi, edi */ /* 0x2509B138: cmp esi, edi */ 16168 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 16169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16170 _flag_k = FK_CMP; 16171 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B16A; /* 0x2509B13A: je 0x2509b16a */ 16172 L_2509B13C: 16173 eax = MEM32(ebp + (-0x4)); /* 0x2509B13C: mov eax, dword ptr [ebp - 4] */ 16174 PUSH32(esp, eax); /* 0x2509B13F: push eax */ 16175 ecx = ebp + (-0x8); /* 0x2509B140: lea ecx, [ebp - 8] */ 16176 PUSH32(esp, ecx); /* 0x2509B143: push ecx */ 16177 RECOMP_ICALL(0x250E3530u); /* 0x2509B144: call 0x250e3530 */ /* not lifted */ 16178 RECOMP_FLAGS_IN(); 16179 edx = MEM32(ebp + (-0x8)); /* 0x2509B149: mov edx, dword ptr [ebp - 8] */ 16180 PUSH32(esp, edi); /* 0x2509B14C: push edi */ 16181 PUSH32(esp, 0x251B2970u); /* 0x2509B14D: push 0x251b2970 */ 16182 PUSH32(esp, 0x251B2970u); /* 0x2509B152: push 0x251b2970 */ 16183 PUSH32(esp, edi); /* 0x2509B157: push edi */ 16184 PUSH32(esp, edx); /* 0x2509B158: push edx */ 16185 RECOMP_ICALL(0x251381ACu); /* 0x2509B159: call 0x251381ac */ /* not lifted */ 16186 RECOMP_FLAGS_IN(); 16187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 16188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16189 esp = esp + 0x1Cu; /* 0x2509B15E: add esp, 0x1c */ 16190 _flag_k = FK_ADD; 16191 /* test eax, eax */ /* 0x2509B161: test eax, eax */ 16192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16193 _cf = 0; 16194 _flag_k = FK_TEST; 16195 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B16A; /* 0x2509B163: jne 0x2509b16a */ 16196 L_2509B165: 16197 /* cmp MEM32(ebp + (-0x8)), edi */ /* 0x2509B165: cmp dword ptr [ebp - 8], edi */ 16198 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edi); 16199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16200 _flag_k = FK_CMP; 16201 RECOMP_BACKEDGE(); 16202 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B13C; /* 0x2509B168: jne 0x2509b13c */ 16203 L_2509B16A: 16204 eax = ebp + (-0x10); /* 0x2509B16A: lea eax, [ebp - 0x10] */ 16205 PUSH32(esp, eax); /* 0x2509B16D: push eax */ 16206 ecx = ebp + (-0x18); /* 0x2509B16E: lea ecx, [ebp - 0x18] */ 16207 MEM32(ebp + (-0x10)) = edi; /* 0x2509B171: mov dword ptr [ebp - 0x10], edi */ 16208 MEM32(ebp + (-0xC)) = edi; /* 0x2509B174: mov dword ptr [ebp - 0xc], edi */ 16209 RECOMP_ICALL(0x25098250u); /* 0x2509B177: call 0x25098250 */ /* not lifted */ 16210 RECOMP_FLAGS_IN(); 16211 esi = MEM32(ebp + (-0x8)); /* 0x2509B17C: mov esi, dword ptr [ebp - 8] */ 16212 /* cmp esi, MEM32(ebp + (-0x18)) */ /* 0x2509B17F: cmp esi, dword ptr [ebp - 0x18] */ 16213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 16214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16215 _flag_k = FK_CMP; 16216 RECOMP_BACKEDGE(); 16217 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B106; /* 0x2509B182: jne 0x2509b106 */ 16218 L_2509B184: 16219 edi = POP32_VAL(esp); /* 0x2509B184: pop edi */ 16220 esi = POP32_VAL(esp); /* 0x2509B185: pop esi */ 16221 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16222 eax = 0; /* 0x2509B186: xor eax, eax */ 16223 _cf = 0; 16224 _flag_k = FK_TEST; 16225 ebx = POP32_VAL(esp); /* 0x2509B188: pop ebx */ 16226 esp = ebp; /* 0x2509B189: mov esp, ebp */ 16227 ebp = POP32_VAL(esp); /* 0x2509B18B: pop ebp */ 16228 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B18C: ret 4 */ 16229 L_2509B18F: 16230 ecx = MEM32(eax + 0x4); /* 0x2509B18F: mov ecx, dword ptr [eax + 4] */ 16231 edx = MEM32(ecx + ebx * 4); /* 0x2509B192: mov edx, dword ptr [ecx + ebx*4] */ 16232 ecx = MEM32(edx + 0x160); /* 0x2509B195: mov ecx, dword ptr [edx + 0x160] */ 16233 PUSH32(esp, edi); /* 0x2509B19B: push edi */ 16234 RECOMP_ICALL(0x250E5130u); /* 0x2509B19C: call 0x250e5130 */ /* not lifted */ 16235 RECOMP_FLAGS_IN(); 16236 eax = MEM32(eax + 0x24); /* 0x2509B1A1: mov eax, dword ptr [eax + 0x24] */ 16237 PUSH32(esp, edi); /* 0x2509B1A4: push edi */ 16238 PUSH32(esp, 0x251B4138u); /* 0x2509B1A5: push 0x251b4138 */ 16239 PUSH32(esp, 0x251B2F60u); /* 0x2509B1AA: push 0x251b2f60 */ 16240 PUSH32(esp, edi); /* 0x2509B1AF: push edi */ 16241 PUSH32(esp, eax); /* 0x2509B1B0: push eax */ 16242 RECOMP_ICALL(0x251381ACu); /* 0x2509B1B1: call 0x251381ac */ /* not lifted */ 16243 RECOMP_FLAGS_IN(); 16244 eax = MEM32(eax + 0x34); /* 0x2509B1B6: mov eax, dword ptr [eax + 0x34] */ 16245 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 16246 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16247 esp = esp + 0x14u; /* 0x2509B1B9: add esp, 0x14 */ 16248 _flag_k = FK_ADD; 16249 edi = POP32_VAL(esp); /* 0x2509B1BC: pop edi */ 16250 esi = POP32_VAL(esp); /* 0x2509B1BD: pop esi */ 16251 ebx = POP32_VAL(esp); /* 0x2509B1BE: pop ebx */ 16252 esp = ebp; /* 0x2509B1BF: mov esp, ebp */ 16253 ebp = POP32_VAL(esp); /* 0x2509B1C1: pop ebp */ 16254 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B1C2: ret 4 */ 16255 RECOMP_REGS_OUT(); 16256 } 16257 16258 void sub_2509B1D0(void) { 16259 int _fpu_cmp = 0; 16260 uint32_t _cf = 0; 16261 int _df = 1; 16262 uint32_t _flag_k = FK_NONE; 16263 uint32_t _flag_a = 0, _flag_b = 0; 16264 uint32_t _itail_tgt = 0; 16265 RECOMP_REGS_LOCALS 16266 RECOMP_ENTER(0x2509B1D0u); 16267 16268 L_2509B1D0: 16269 PUSH32(esp, ebp); /* 0x2509B1D0: push ebp */ 16270 ebp = esp; /* 0x2509B1D1: mov ebp, esp */ 16271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 16272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16273 esp = esp - 0x18u; /* 0x2509B1D3: sub esp, 0x18 */ 16274 _flag_k = FK_CMP; 16275 eax = MEM32(ecx + 0x10); /* 0x2509B1D6: mov eax, dword ptr [ecx + 0x10] */ 16276 PUSH32(esp, ebx); /* 0x2509B1D9: push ebx */ 16277 PUSH32(esp, esi); /* 0x2509B1DA: push esi */ 16278 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16279 esi = 0; /* 0x2509B1DB: xor esi, esi */ 16280 _cf = 0; 16281 _flag_k = FK_TEST; 16282 /* cmp eax, esi */ /* 0x2509B1DD: cmp eax, esi */ 16283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16285 _flag_k = FK_CMP; 16286 PUSH32(esp, edi); /* 0x2509B1DF: push edi */ 16287 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B2B2; /* 0x2509B1E0: je 0x2509b2b2 */ 16288 L_2509B1E6: 16289 MEM32(ebp + (-0x18)) = eax; /* 0x2509B1E6: mov dword ptr [ebp - 0x18], eax */ 16290 MEM32(ebp + (-0x14)) = eax; /* 0x2509B1E9: mov dword ptr [ebp - 0x14], eax */ 16291 eax = ebp + (-0x18); /* 0x2509B1EC: lea eax, [ebp - 0x18] */ 16292 PUSH32(esp, eax); /* 0x2509B1EF: push eax */ 16293 ecx = ebp + (-0x10); /* 0x2509B1F0: lea ecx, [ebp - 0x10] */ 16294 RECOMP_ICALL(0x25098250u); /* 0x2509B1F3: call 0x25098250 */ /* not lifted */ 16295 RECOMP_FLAGS_IN(); 16296 eax = MEM32(ebp + (-0x10)); /* 0x2509B1F8: mov eax, dword ptr [ebp - 0x10] */ 16297 ecx = MEM32(ebp + (-0xC)); /* 0x2509B1FB: mov ecx, dword ptr [ebp - 0xc] */ 16298 PUSH32(esp, esi); /* 0x2509B1FE: push esi */ 16299 PUSH32(esp, 0x251B2970u); /* 0x2509B1FF: push 0x251b2970 */ 16300 PUSH32(esp, 0x251B2970u); /* 0x2509B204: push 0x251b2970 */ 16301 PUSH32(esp, esi); /* 0x2509B209: push esi */ 16302 PUSH32(esp, eax); /* 0x2509B20A: push eax */ 16303 MEM32(ebp + (-0x8)) = eax; /* 0x2509B20B: mov dword ptr [ebp - 8], eax */ 16304 MEM32(ebp + (-0x4)) = ecx; /* 0x2509B20E: mov dword ptr [ebp - 4], ecx */ 16305 RECOMP_ICALL(0x251381ACu); /* 0x2509B211: call 0x251381ac */ /* not lifted */ 16306 RECOMP_FLAGS_IN(); 16307 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 16308 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16309 esp = esp + 0x14u; /* 0x2509B216: add esp, 0x14 */ 16310 _flag_k = FK_ADD; 16311 /* test eax, eax */ /* 0x2509B219: test eax, eax */ 16312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16313 _cf = 0; 16314 _flag_k = FK_TEST; 16315 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B225; /* 0x2509B21B: jne 0x2509b225 */ 16316 L_2509B21D: 16317 ecx = ebp + (-0x8); /* 0x2509B21D: lea ecx, [ebp - 8] */ 16318 RECOMP_ICALL(0x250982C0u); /* 0x2509B220: call 0x250982c0 */ /* not lifted */ 16319 RECOMP_FLAGS_IN(); 16320 L_2509B225: 16321 edx = ebp + (-0x10); /* 0x2509B225: lea edx, [ebp - 0x10] */ 16322 PUSH32(esp, edx); /* 0x2509B228: push edx */ 16323 ecx = ebp + (-0x18); /* 0x2509B229: lea ecx, [ebp - 0x18] */ 16324 MEM32(ebp + (-0x10)) = esi; /* 0x2509B22C: mov dword ptr [ebp - 0x10], esi */ 16325 MEM32(ebp + (-0xC)) = esi; /* 0x2509B22F: mov dword ptr [ebp - 0xc], esi */ 16326 RECOMP_ICALL(0x25098250u); /* 0x2509B232: call 0x25098250 */ /* not lifted */ 16327 RECOMP_FLAGS_IN(); 16328 ecx = MEM32(ebp + (-0x8)); /* 0x2509B237: mov ecx, dword ptr [ebp - 8] */ 16329 /* cmp ecx, MEM32(ebp + (-0x18)) */ /* 0x2509B23A: cmp ecx, dword ptr [ebp - 0x18] */ 16330 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 16331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16332 _flag_k = FK_CMP; 16333 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B2B2; /* 0x2509B23D: je 0x2509b2b2 */ 16334 L_2509B23F: 16335 edi = MEM32(ebp + 0x8); /* 0x2509B23F: mov edi, dword ptr [ebp + 8] */ 16336 ebx = MEM32(0x25151318); /* 0x2509B242: mov ebx, dword ptr [0x25151318] */ 16337 L_2509B248: 16338 esi = MEM32(ecx + 0x1F0); /* 0x2509B248: mov esi, dword ptr [ecx + 0x1f0] */ 16339 eax = MEM32(ecx); /* 0x2509B24E: mov eax, dword ptr [ecx] */ 16340 PUSH32(esp, edi); /* 0x2509B250: push edi */ 16341 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 16342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16343 esi = esi + 0x44u; /* 0x2509B251: add esi, 0x44 */ 16344 _flag_k = FK_ADD; 16345 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x2509B254: call dword ptr [eax + 0x28] */ 16346 RECOMP_FLAGS_IN(); 16347 PUSH32(esp, eax); /* 0x2509B257: push eax */ 16348 RECOMP_ICALL(ebx); /* 0x2509B258: call ebx */ 16349 RECOMP_FLAGS_IN(); 16350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 16351 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16352 esp = esp + 8; /* 0x2509B25A: add esp, 8 */ 16353 _flag_k = FK_ADD; 16354 /* test eax, eax */ /* 0x2509B25D: test eax, eax */ 16355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16356 _cf = 0; 16357 _flag_k = FK_TEST; 16358 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B2BD; /* 0x2509B25F: jne 0x2509b2bd */ 16359 L_2509B261: 16360 eax = MEM32(ebp + (-0x8)); /* 0x2509B261: mov eax, dword ptr [ebp - 8] */ 16361 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16362 esi = 0; /* 0x2509B264: xor esi, esi */ 16363 _cf = 0; 16364 _flag_k = FK_TEST; 16365 /* cmp eax, esi */ /* 0x2509B266: cmp eax, esi */ 16366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16368 _flag_k = FK_CMP; 16369 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B298; /* 0x2509B268: je 0x2509b298 */ 16370 L_2509B26A: 16371 ecx = MEM32(ebp + (-0x4)); /* 0x2509B26A: mov ecx, dword ptr [ebp - 4] */ 16372 PUSH32(esp, ecx); /* 0x2509B26D: push ecx */ 16373 edx = ebp + (-0x8); /* 0x2509B26E: lea edx, [ebp - 8] */ 16374 PUSH32(esp, edx); /* 0x2509B271: push edx */ 16375 RECOMP_ICALL(0x250E3530u); /* 0x2509B272: call 0x250e3530 */ /* not lifted */ 16376 RECOMP_FLAGS_IN(); 16377 eax = MEM32(ebp + (-0x8)); /* 0x2509B277: mov eax, dword ptr [ebp - 8] */ 16378 PUSH32(esp, esi); /* 0x2509B27A: push esi */ 16379 PUSH32(esp, 0x251B2970u); /* 0x2509B27B: push 0x251b2970 */ 16380 PUSH32(esp, 0x251B2970u); /* 0x2509B280: push 0x251b2970 */ 16381 PUSH32(esp, esi); /* 0x2509B285: push esi */ 16382 PUSH32(esp, eax); /* 0x2509B286: push eax */ 16383 RECOMP_ICALL(0x251381ACu); /* 0x2509B287: call 0x251381ac */ /* not lifted */ 16384 RECOMP_FLAGS_IN(); 16385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 16386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16387 esp = esp + 0x1Cu; /* 0x2509B28C: add esp, 0x1c */ 16388 _flag_k = FK_ADD; 16389 /* test eax, eax */ /* 0x2509B28F: test eax, eax */ 16390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16391 _cf = 0; 16392 _flag_k = FK_TEST; 16393 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B298; /* 0x2509B291: jne 0x2509b298 */ 16394 L_2509B293: 16395 /* cmp MEM32(ebp + (-0x8)), esi */ /* 0x2509B293: cmp dword ptr [ebp - 8], esi */ 16396 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(esi); 16397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16398 _flag_k = FK_CMP; 16399 RECOMP_BACKEDGE(); 16400 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B26A; /* 0x2509B296: jne 0x2509b26a */ 16401 L_2509B298: 16402 ecx = ebp + (-0x10); /* 0x2509B298: lea ecx, [ebp - 0x10] */ 16403 PUSH32(esp, ecx); /* 0x2509B29B: push ecx */ 16404 ecx = ebp + (-0x18); /* 0x2509B29C: lea ecx, [ebp - 0x18] */ 16405 MEM32(ebp + (-0x10)) = esi; /* 0x2509B29F: mov dword ptr [ebp - 0x10], esi */ 16406 MEM32(ebp + (-0xC)) = esi; /* 0x2509B2A2: mov dword ptr [ebp - 0xc], esi */ 16407 RECOMP_ICALL(0x25098250u); /* 0x2509B2A5: call 0x25098250 */ /* not lifted */ 16408 RECOMP_FLAGS_IN(); 16409 ecx = MEM32(ebp + (-0x8)); /* 0x2509B2AA: mov ecx, dword ptr [ebp - 8] */ 16410 /* cmp ecx, MEM32(ebp + (-0x18)) */ /* 0x2509B2AD: cmp ecx, dword ptr [ebp - 0x18] */ 16411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 16412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16413 _flag_k = FK_CMP; 16414 RECOMP_BACKEDGE(); 16415 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B248; /* 0x2509B2B0: jne 0x2509b248 */ 16416 L_2509B2B2: 16417 edi = POP32_VAL(esp); /* 0x2509B2B2: pop edi */ 16418 esi = POP32_VAL(esp); /* 0x2509B2B3: pop esi */ 16419 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16420 eax = 0; /* 0x2509B2B4: xor eax, eax */ 16421 _cf = 0; 16422 _flag_k = FK_TEST; 16423 ebx = POP32_VAL(esp); /* 0x2509B2B6: pop ebx */ 16424 esp = ebp; /* 0x2509B2B7: mov esp, ebp */ 16425 ebp = POP32_VAL(esp); /* 0x2509B2B9: pop ebp */ 16426 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B2BA: ret 4 */ 16427 L_2509B2BD: 16428 edx = MEM32(esi + 0x4); /* 0x2509B2BD: mov edx, dword ptr [esi + 4] */ 16429 eax = MEM32(edx); /* 0x2509B2C0: mov eax, dword ptr [edx] */ 16430 ecx = MEM32(eax + 0x160); /* 0x2509B2C2: mov ecx, dword ptr [eax + 0x160] */ 16431 PUSH32(esp, 0); /* 0x2509B2C8: push 0 */ 16432 RECOMP_ICALL(0x250E5130u); /* 0x2509B2CA: call 0x250e5130 */ /* not lifted */ 16433 RECOMP_FLAGS_IN(); 16434 eax = MEM32(eax + 0x24); /* 0x2509B2CF: mov eax, dword ptr [eax + 0x24] */ 16435 eax = MEM32(eax + 0x34); /* 0x2509B2D2: mov eax, dword ptr [eax + 0x34] */ 16436 edi = POP32_VAL(esp); /* 0x2509B2D5: pop edi */ 16437 esi = POP32_VAL(esp); /* 0x2509B2D6: pop esi */ 16438 ebx = POP32_VAL(esp); /* 0x2509B2D7: pop ebx */ 16439 esp = ebp; /* 0x2509B2D8: mov esp, ebp */ 16440 ebp = POP32_VAL(esp); /* 0x2509B2DA: pop ebp */ 16441 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B2DB: ret 4 */ 16442 RECOMP_REGS_OUT(); 16443 } 16444 16445 void sub_2509B2E0(void) { 16446 int _fpu_cmp = 0; 16447 uint32_t _cf = 0; 16448 int _df = 1; 16449 uint32_t _flag_k = FK_NONE; 16450 uint32_t _flag_a = 0, _flag_b = 0; 16451 uint32_t _itail_tgt = 0; 16452 RECOMP_REGS_LOCALS 16453 RECOMP_ENTER(0x2509B2E0u); 16454 16455 L_2509B2E0: 16456 PUSH32(esp, ebp); /* 0x2509B2E0: push ebp */ 16457 ebp = esp; /* 0x2509B2E1: mov ebp, esp */ 16458 PUSH32(esp, esi); /* 0x2509B2E3: push esi */ 16459 esi = ecx; /* 0x2509B2E4: mov esi, ecx */ 16460 eax = MEM32(esi + 0x10); /* 0x2509B2E6: mov eax, dword ptr [esi + 0x10] */ 16461 /* test eax, eax */ /* 0x2509B2E9: test eax, eax */ 16462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16463 _cf = 0; 16464 _flag_k = FK_TEST; 16465 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B2F6; /* 0x2509B2EB: jne 0x2509b2f6 */ 16466 L_2509B2ED: 16467 RECOMP_ICALL(0x25099550u); /* 0x2509B2ED: call 0x25099550 */ /* not lifted */ 16468 RECOMP_FLAGS_IN(); 16469 /* test LO8(eax), LO8(eax) */ /* 0x2509B2F2: test al, al */ 16470 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16471 _cf = 0; 16472 _flag_k = FK_NARROW(FK_TEST, 24); 16473 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B304; /* 0x2509B2F4: je 0x2509b304 */ 16474 L_2509B2F6: 16475 eax = MEM32(ebp + 0x8); /* 0x2509B2F6: mov eax, dword ptr [ebp + 8] */ 16476 ecx = MEM32(esi + 0x10); /* 0x2509B2F9: mov ecx, dword ptr [esi + 0x10] */ 16477 PUSH32(esp, 1); /* 0x2509B2FC: push 1 */ 16478 PUSH32(esp, eax); /* 0x2509B2FE: push eax */ 16479 RECOMP_ICALL(0x250E3010u); /* 0x2509B2FF: call 0x250e3010 */ /* not lifted */ 16480 RECOMP_FLAGS_IN(); 16481 L_2509B304: 16482 esi = POP32_VAL(esp); /* 0x2509B304: pop esi */ 16483 ebp = POP32_VAL(esp); /* 0x2509B305: pop ebp */ 16484 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B306: ret 4 */ 16485 RECOMP_REGS_OUT(); 16486 } 16487 16488 void sub_2509B310(void) { 16489 int _fpu_cmp = 0; 16490 uint32_t _cf = 0; 16491 int _df = 1; 16492 uint32_t _flag_k = FK_NONE; 16493 uint32_t _flag_a = 0, _flag_b = 0; 16494 uint32_t _itail_tgt = 0; 16495 RECOMP_REGS_LOCALS 16496 RECOMP_ENTER(0x2509B310u); 16497 16498 L_2509B310: 16499 PUSH32(esp, ebp); /* 0x2509B310: push ebp */ 16500 ebp = esp; /* 0x2509B311: mov ebp, esp */ 16501 PUSH32(esp, esi); /* 0x2509B313: push esi */ 16502 esi = ecx; /* 0x2509B314: mov esi, ecx */ 16503 eax = MEM32(esi + 0x10); /* 0x2509B316: mov eax, dword ptr [esi + 0x10] */ 16504 /* test eax, eax */ /* 0x2509B319: test eax, eax */ 16505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16506 _cf = 0; 16507 _flag_k = FK_TEST; 16508 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B326; /* 0x2509B31B: jne 0x2509b326 */ 16509 L_2509B31D: 16510 RECOMP_ICALL(0x25099550u); /* 0x2509B31D: call 0x25099550 */ /* not lifted */ 16511 RECOMP_FLAGS_IN(); 16512 /* test LO8(eax), LO8(eax) */ /* 0x2509B322: test al, al */ 16513 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16514 _cf = 0; 16515 _flag_k = FK_NARROW(FK_TEST, 24); 16516 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B332; /* 0x2509B324: je 0x2509b332 */ 16517 L_2509B326: 16518 eax = MEM32(ebp + 0x8); /* 0x2509B326: mov eax, dword ptr [ebp + 8] */ 16519 ecx = MEM32(esi + 0x10); /* 0x2509B329: mov ecx, dword ptr [esi + 0x10] */ 16520 PUSH32(esp, eax); /* 0x2509B32C: push eax */ 16521 RECOMP_ICALL(0x250E30C0u); /* 0x2509B32D: call 0x250e30c0 */ /* not lifted */ 16522 RECOMP_FLAGS_IN(); 16523 L_2509B332: 16524 esi = POP32_VAL(esp); /* 0x2509B332: pop esi */ 16525 ebp = POP32_VAL(esp); /* 0x2509B333: pop ebp */ 16526 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B334: ret 4 */ 16527 RECOMP_REGS_OUT(); 16528 } 16529 16530 void sub_2509B340(void) { 16531 int _fpu_cmp = 0; 16532 uint32_t _cf = 0; 16533 int _df = 1; 16534 uint32_t _flag_k = FK_NONE; 16535 uint32_t _flag_a = 0, _flag_b = 0; 16536 uint32_t _itail_tgt = 0; 16537 RECOMP_REGS_LOCALS 16538 RECOMP_ENTER(0x2509B340u); 16539 16540 L_2509B340: 16541 PUSH32(esp, ebp); /* 0x2509B340: push ebp */ 16542 ebp = esp; /* 0x2509B341: mov ebp, esp */ 16543 PUSH32(esp, esi); /* 0x2509B343: push esi */ 16544 esi = ecx; /* 0x2509B344: mov esi, ecx */ 16545 eax = MEM32(esi + 0x10); /* 0x2509B346: mov eax, dword ptr [esi + 0x10] */ 16546 /* test eax, eax */ /* 0x2509B349: test eax, eax */ 16547 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16548 _cf = 0; 16549 _flag_k = FK_TEST; 16550 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B356; /* 0x2509B34B: jne 0x2509b356 */ 16551 L_2509B34D: 16552 RECOMP_ICALL(0x25099550u); /* 0x2509B34D: call 0x25099550 */ /* not lifted */ 16553 RECOMP_FLAGS_IN(); 16554 /* test LO8(eax), LO8(eax) */ /* 0x2509B352: test al, al */ 16555 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16556 _cf = 0; 16557 _flag_k = FK_NARROW(FK_TEST, 24); 16558 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B362; /* 0x2509B354: je 0x2509b362 */ 16559 L_2509B356: 16560 eax = MEM32(ebp + 0x8); /* 0x2509B356: mov eax, dword ptr [ebp + 8] */ 16561 ecx = MEM32(esi + 0x10); /* 0x2509B359: mov ecx, dword ptr [esi + 0x10] */ 16562 PUSH32(esp, eax); /* 0x2509B35C: push eax */ 16563 RECOMP_ICALL(0x250E3090u); /* 0x2509B35D: call 0x250e3090 */ /* not lifted */ 16564 RECOMP_FLAGS_IN(); 16565 L_2509B362: 16566 esi = POP32_VAL(esp); /* 0x2509B362: pop esi */ 16567 ebp = POP32_VAL(esp); /* 0x2509B363: pop ebp */ 16568 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B364: ret 4 */ 16569 RECOMP_REGS_OUT(); 16570 } 16571 16572 void sub_2509B370(void) { 16573 int _fpu_cmp = 0; 16574 uint32_t _cf = 0; 16575 int _df = 1; 16576 uint32_t _flag_k = FK_NONE; 16577 uint32_t _flag_a = 0, _flag_b = 0; 16578 uint32_t _itail_tgt = 0; 16579 RECOMP_REGS_LOCALS 16580 RECOMP_ENTER(0x2509B370u); 16581 16582 L_2509B370: 16583 PUSH32(esp, esi); /* 0x2509B370: push esi */ 16584 esi = ecx; /* 0x2509B371: mov esi, ecx */ 16585 eax = MEM32(esi + 0x10); /* 0x2509B373: mov eax, dword ptr [esi + 0x10] */ 16586 /* test eax, eax */ /* 0x2509B376: test eax, eax */ 16587 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16588 _cf = 0; 16589 _flag_k = FK_TEST; 16590 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B38B; /* 0x2509B378: jne 0x2509b38b */ 16591 L_2509B37A: 16592 RECOMP_ICALL(0x25099550u); /* 0x2509B37A: call 0x25099550 */ /* not lifted */ 16593 RECOMP_FLAGS_IN(); 16594 /* test LO8(eax), LO8(eax) */ /* 0x2509B37F: test al, al */ 16595 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 16596 _cf = 0; 16597 _flag_k = FK_NARROW(FK_TEST, 24); 16598 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B38B; /* 0x2509B381: jne 0x2509b38b */ 16599 L_2509B383: 16600 fp_push(*(float*)&MEM32(0x2515177C)); /* 0x2509B383: fld dword ptr [0x2515177c] */ 16601 esi = POP32_VAL(esp); /* 0x2509B389: pop esi */ 16602 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509B38A: ret */ 16603 L_2509B38B: 16604 eax = MEM32(esi + 0x10); /* 0x2509B38B: mov eax, dword ptr [esi + 0x10] */ 16605 fp_push(*(float*)&MEM32(eax + 0x12C)); /* 0x2509B38E: fld dword ptr [eax + 0x12c] */ 16606 esi = POP32_VAL(esp); /* 0x2509B394: pop esi */ 16607 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509B395: ret */ 16608 RECOMP_REGS_OUT(); 16609 } 16610 16611 void sub_2509B3A0(void) { 16612 int _fpu_cmp = 0; 16613 uint32_t _cf = 0; 16614 int _df = 1; 16615 uint32_t _flag_k = FK_NONE; 16616 uint32_t _flag_a = 0, _flag_b = 0; 16617 uint32_t _itail_tgt = 0; 16618 RECOMP_REGS_LOCALS 16619 RECOMP_ENTER(0x2509B3A0u); 16620 16621 L_2509B3A0: 16622 fp_push(*(float*)&MEM32(ecx + 0x24)); /* 0x2509B3A0: fld dword ptr [ecx + 0x24] */ 16623 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509B3A3: ret */ 16624 RECOMP_REGS_OUT(); 16625 } 16626 16627 void sub_2509B3B0(void) { 16628 int _fpu_cmp = 0; 16629 uint32_t _cf = 0; 16630 int _df = 1; 16631 uint32_t _flag_k = FK_NONE; 16632 uint32_t _flag_a = 0, _flag_b = 0; 16633 uint32_t _itail_tgt = 0; 16634 RECOMP_REGS_LOCALS 16635 RECOMP_ENTER(0x2509B3B0u); 16636 16637 L_2509B3B0: 16638 PUSH32(esp, ebp); /* 0x2509B3B0: push ebp */ 16639 ebp = esp; /* 0x2509B3B1: mov ebp, esp */ 16640 PUSH32(esp, 0xFFFFFFFFu); /* 0x2509B3B3: push -1 */ 16641 PUSH32(esp, 0x251498F8u); /* 0x2509B3B5: push 0x251498f8 */ 16642 eax = MEM32(FS_BASE + (0)); /* 0x2509B3BA: mov eax, dword ptr fs:[0] */ 16643 PUSH32(esp, eax); /* 0x2509B3C0: push eax */ 16644 MEM32(FS_BASE + (0)) = esp; /* 0x2509B3C1: mov dword ptr fs:[0], esp */ 16645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 16646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16647 esp = esp - 0x10u; /* 0x2509B3C8: sub esp, 0x10 */ 16648 _flag_k = FK_CMP; 16649 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2509B3CB: mov al, byte ptr [ebp + 0xb] */ 16650 PUSH32(esp, esi); /* 0x2509B3CE: push esi */ 16651 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x2509B3CF: mov byte ptr [ebp - 0x1c], al */ 16652 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16653 esi = 0; /* 0x2509B3D2: xor esi, esi */ 16654 _cf = 0; 16655 _flag_k = FK_TEST; 16656 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16657 eax = 0; /* 0x2509B3D4: xor eax, eax */ 16658 _cf = 0; 16659 _flag_k = FK_TEST; 16660 MEM32(ebp + (-0x18)) = eax; /* 0x2509B3D6: mov dword ptr [ebp - 0x18], eax */ 16661 MEM32(ebp + (-0x14)) = esi; /* 0x2509B3D9: mov dword ptr [ebp - 0x14], esi */ 16662 MEM32(ebp + (-0x10)) = esi; /* 0x2509B3DC: mov dword ptr [ebp - 0x10], esi */ 16663 ecx = MEM32(ecx + 0x10); /* 0x2509B3DF: mov ecx, dword ptr [ecx + 0x10] */ 16664 /* cmp ecx, esi */ /* 0x2509B3E2: cmp ecx, esi */ 16665 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 16666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16667 _flag_k = FK_CMP; 16668 MEM32(ebp + (-0x4)) = esi; /* 0x2509B3E4: mov dword ptr [ebp - 4], esi */ 16669 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B411; /* 0x2509B3E7: je 0x2509b411 */ 16670 L_2509B3E9: 16671 edx = MEM32(ebp + 0x8); /* 0x2509B3E9: mov edx, dword ptr [ebp + 8] */ 16672 eax = MEM32(edx * 4 + 0x251B49E4); /* 0x2509B3EC: mov eax, dword ptr [edx*4 + 0x251b49e4] */ 16673 PUSH32(esp, eax); /* 0x2509B3F3: push eax */ 16674 edx = ebp + (-0x1C); /* 0x2509B3F4: lea edx, [ebp - 0x1c] */ 16675 PUSH32(esp, edx); /* 0x2509B3F7: push edx */ 16676 RECOMP_ICALL(0x250E3190u); /* 0x2509B3F8: call 0x250e3190 */ /* not lifted */ 16677 RECOMP_FLAGS_IN(); 16678 eax = MEM32(ebp + (-0x18)); /* 0x2509B3FD: mov eax, dword ptr [ebp - 0x18] */ 16679 /* cmp eax, esi */ /* 0x2509B400: cmp eax, esi */ 16680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16682 _flag_k = FK_CMP; 16683 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B411; /* 0x2509B402: je 0x2509b411 */ 16684 L_2509B404: 16685 ecx = MEM32(ebp + (-0x14)); /* 0x2509B404: mov ecx, dword ptr [ebp - 0x14] */ 16686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16688 ecx = ecx - eax; /* 0x2509B407: sub ecx, eax */ 16689 _flag_k = FK_CMP; 16690 /* test ecx, 0xFFFFFFFCu */ /* 0x2509B409: test ecx, 0xfffffffc */ 16691 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 16692 _cf = 0; 16693 _flag_k = FK_TEST; 16694 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B489; /* 0x2509B40F: jne 0x2509b489 */ 16695 L_2509B411: 16696 SET_LO8(edx, MEM8(0x252383A4)); /* 0x2509B411: mov dl, byte ptr [0x252383a4] */ 16697 SET_LO8(ecx, 1); /* 0x2509B417: mov cl, 1 */ 16698 /* test LO8(ecx), LO8(edx) */ /* 0x2509B419: test cl, dl */ 16699 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 16700 _cf = 0; 16701 _flag_k = FK_NARROW(FK_TEST, 24); 16702 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B481; /* 0x2509B41B: jne 0x2509b481 */ 16703 L_2509B41D: 16704 _flag_a = (uint32_t)((LO8(edx) | LO8(ecx))) << 24; _flag_b = (uint32_t)((LO8(edx) | LO8(ecx))) << 24; 16705 SET_LO8(edx, LO8(edx) | LO8(ecx)); /* 0x2509B41D: or dl, cl */ 16706 _cf = 0; 16707 _flag_k = FK_NARROW(FK_TEST, 24); 16708 PUSH32(esp, 0x40u); /* 0x2509B41F: push 0x40 */ 16709 MEM8(0x252383A4) = (uint8_t)(LO8(edx)); /* 0x2509B421: mov byte ptr [0x252383a4], dl */ 16710 RECOMP_ICALL(0x251380D0u); /* 0x2509B427: call 0x251380d0 */ /* not lifted */ 16711 RECOMP_FLAGS_IN(); 16712 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16713 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16714 esp = esp + 4; /* 0x2509B42C: add esp, 4 */ 16715 _flag_k = FK_ADD; 16716 /* cmp eax, esi */ /* 0x2509B42F: cmp eax, esi */ 16717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 16718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16719 _flag_k = FK_CMP; 16720 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B477; /* 0x2509B431: je 0x2509b477 */ 16721 L_2509B433: 16722 ecx = 0x3F800000u; /* 0x2509B433: mov ecx, 0x3f800000 */ 16723 MEM32(eax + 0x4) = esi; /* 0x2509B438: mov dword ptr [eax + 4], esi */ 16724 MEM32(eax + 0x8) = esi; /* 0x2509B43B: mov dword ptr [eax + 8], esi */ 16725 MEM32(eax + 0xC) = esi; /* 0x2509B43E: mov dword ptr [eax + 0xc], esi */ 16726 MEM32(eax + 0x10) = esi; /* 0x2509B441: mov dword ptr [eax + 0x10], esi */ 16727 MEM32(eax + 0x18) = esi; /* 0x2509B444: mov dword ptr [eax + 0x18], esi */ 16728 MEM32(eax + 0x1C) = esi; /* 0x2509B447: mov dword ptr [eax + 0x1c], esi */ 16729 MEM32(eax + 0x20) = esi; /* 0x2509B44A: mov dword ptr [eax + 0x20], esi */ 16730 MEM32(eax + 0x24) = esi; /* 0x2509B44D: mov dword ptr [eax + 0x24], esi */ 16731 MEM32(eax + 0x2C) = esi; /* 0x2509B450: mov dword ptr [eax + 0x2c], esi */ 16732 MEM32(eax + 0x30) = esi; /* 0x2509B453: mov dword ptr [eax + 0x30], esi */ 16733 MEM32(eax + 0x34) = esi; /* 0x2509B456: mov dword ptr [eax + 0x34], esi */ 16734 MEM32(eax + 0x38) = esi; /* 0x2509B459: mov dword ptr [eax + 0x38], esi */ 16735 MEM32(eax) = ecx; /* 0x2509B45C: mov dword ptr [eax], ecx */ 16736 MEM32(eax + 0x14) = ecx; /* 0x2509B45E: mov dword ptr [eax + 0x14], ecx */ 16737 MEM32(eax + 0x28) = ecx; /* 0x2509B461: mov dword ptr [eax + 0x28], ecx */ 16738 MEM32(eax + 0x3C) = ecx; /* 0x2509B464: mov dword ptr [eax + 0x3c], ecx */ 16739 MEM32(0x252383A0) = eax; /* 0x2509B467: mov dword ptr [0x252383a0], eax */ 16740 eax = MEM32(ebp + (-0x18)); /* 0x2509B46C: mov eax, dword ptr [ebp - 0x18] */ 16741 esi = MEM32(0x252383A0); /* 0x2509B46F: mov esi, dword ptr [0x252383a0] */ 16742 goto L_2509B497; /* 0x2509B475: jmp 0x2509b497 */ 16743 L_2509B477: 16744 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16745 eax = 0; /* 0x2509B477: xor eax, eax */ 16746 _cf = 0; 16747 _flag_k = FK_TEST; 16748 MEM32(0x252383A0) = eax; /* 0x2509B479: mov dword ptr [0x252383a0], eax */ 16749 eax = MEM32(ebp + (-0x18)); /* 0x2509B47E: mov eax, dword ptr [ebp - 0x18] */ 16750 L_2509B481: 16751 esi = MEM32(0x252383A0); /* 0x2509B481: mov esi, dword ptr [0x252383a0] */ 16752 goto L_2509B497; /* 0x2509B487: jmp 0x2509b497 */ 16753 L_2509B489: 16754 eax = MEM32(eax); /* 0x2509B489: mov eax, dword ptr [eax] */ 16755 edx = MEM32(eax); /* 0x2509B48B: mov edx, dword ptr [eax] */ 16756 ecx = eax; /* 0x2509B48D: mov ecx, eax */ 16757 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2509B48F: call dword ptr [edx + 8] */ 16758 RECOMP_FLAGS_IN(); 16759 esi = eax; /* 0x2509B492: mov esi, eax */ 16760 eax = MEM32(ebp + (-0x18)); /* 0x2509B494: mov eax, dword ptr [ebp - 0x18] */ 16761 L_2509B497: 16762 PUSH32(esp, eax); /* 0x2509B497: push eax */ 16763 RECOMP_ICALL(0x25137EECu); /* 0x2509B498: call 0x25137eec */ /* not lifted */ 16764 RECOMP_FLAGS_IN(); 16765 ecx = MEM32(ebp + (-0xC)); /* 0x2509B49D: mov ecx, dword ptr [ebp - 0xc] */ 16766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16768 esp = esp + 4; /* 0x2509B4A0: add esp, 4 */ 16769 _flag_k = FK_ADD; 16770 eax = esi; /* 0x2509B4A3: mov eax, esi */ 16771 esi = POP32_VAL(esp); /* 0x2509B4A5: pop esi */ 16772 MEM32(FS_BASE + (0)) = ecx; /* 0x2509B4A6: mov dword ptr fs:[0], ecx */ 16773 esp = ebp; /* 0x2509B4AD: mov esp, ebp */ 16774 ebp = POP32_VAL(esp); /* 0x2509B4AF: pop ebp */ 16775 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B4B0: ret 4 */ 16776 RECOMP_REGS_OUT(); 16777 } 16778 16779 void sub_2509B4C0(void) { 16780 int _fpu_cmp = 0; 16781 uint32_t _cf = 0; 16782 int _df = 1; 16783 uint32_t _flag_k = FK_NONE; 16784 uint32_t _flag_a = 0, _flag_b = 0; 16785 uint32_t _itail_tgt = 0; 16786 RECOMP_REGS_LOCALS 16787 RECOMP_ENTER(0x2509B4C0u); 16788 16789 L_2509B4C0: 16790 PUSH32(esp, ebp); /* 0x2509B4C0: push ebp */ 16791 ebp = esp; /* 0x2509B4C1: mov ebp, esp */ 16792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u); 16793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16794 esp = esp - 0x58u; /* 0x2509B4C3: sub esp, 0x58 */ 16795 _flag_k = FK_CMP; 16796 eax = MEM32(ebp + 0x8); /* 0x2509B4C6: mov eax, dword ptr [ebp + 8] */ 16797 PUSH32(esp, ebx); /* 0x2509B4C9: push ebx */ 16798 PUSH32(esp, esi); /* 0x2509B4CA: push esi */ 16799 PUSH32(esp, edi); /* 0x2509B4CB: push edi */ 16800 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16801 edi = 0; /* 0x2509B4CC: xor edi, edi */ 16802 _cf = 0; 16803 _flag_k = FK_TEST; 16804 /* cmp eax, edi */ /* 0x2509B4CE: cmp eax, edi */ 16805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16807 _flag_k = FK_CMP; 16808 esi = ecx; /* 0x2509B4D0: mov esi, ecx */ 16809 MEM32(ebp + (-0x10)) = esi; /* 0x2509B4D2: mov dword ptr [ebp - 0x10], esi */ 16810 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B4D5: je 0x2509b822 */ 16811 L_2509B4DB: 16812 /* cmp MEM32(esi + 0x10), edi */ /* 0x2509B4DB: cmp dword ptr [esi + 0x10], edi */ 16813 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(edi); 16814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16815 _flag_k = FK_CMP; 16816 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B4DE: je 0x2509b822 */ 16817 L_2509B4E4: 16818 eax = MEM32(esi + 0x34); /* 0x2509B4E4: mov eax, dword ptr [esi + 0x34] */ 16819 /* test LO8(eax), 0x10u */ /* 0x2509B4E7: test al, 0x10 */ 16820 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 16821 _cf = 0; 16822 _flag_k = FK_NARROW(FK_TEST, 24); 16823 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B4E9: jne 0x2509b822 */ 16824 L_2509B4EF: 16825 _flag_a = (uint32_t)((eax | 0x10u)); _flag_b = (uint32_t)((eax | 0x10u)); 16826 eax = eax | 0x10u; /* 0x2509B4EF: or eax, 0x10 */ 16827 _cf = 0; 16828 _flag_k = FK_TEST; 16829 MEM32(esi + 0x34) = eax; /* 0x2509B4F2: mov dword ptr [esi + 0x34], eax */ 16830 RECOMP_ICALL(0x250995C0u); /* 0x2509B4F5: call 0x250995c0 */ /* not lifted */ 16831 RECOMP_FLAGS_IN(); 16832 PUSH32(esp, 0x10u); /* 0x2509B4FA: push 0x10 */ 16833 RECOMP_ICALL(0x251380D0u); /* 0x2509B4FC: call 0x251380d0 */ /* not lifted */ 16834 RECOMP_FLAGS_IN(); 16835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 16836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16837 esp = esp + 4; /* 0x2509B501: add esp, 4 */ 16838 _flag_k = FK_ADD; 16839 /* cmp eax, edi */ /* 0x2509B504: cmp eax, edi */ 16840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16842 _flag_k = FK_CMP; 16843 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B518; /* 0x2509B506: je 0x2509b518 */ 16844 L_2509B508: 16845 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2509B508: mov cl, byte ptr [ebp + 0xb] */ 16846 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2509B50B: mov byte ptr [eax], cl */ 16847 MEM32(eax + 0x4) = edi; /* 0x2509B50D: mov dword ptr [eax + 4], edi */ 16848 MEM32(eax + 0x8) = edi; /* 0x2509B510: mov dword ptr [eax + 8], edi */ 16849 MEM32(eax + 0xC) = edi; /* 0x2509B513: mov dword ptr [eax + 0xc], edi */ 16850 goto L_2509B51A; /* 0x2509B516: jmp 0x2509b51a */ 16851 L_2509B518: 16852 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16853 eax = 0; /* 0x2509B518: xor eax, eax */ 16854 _cf = 0; 16855 _flag_k = FK_TEST; 16856 L_2509B51A: 16857 MEM32(esi + 0x4C) = eax; /* 0x2509B51A: mov dword ptr [esi + 0x4c], eax */ 16858 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16859 ebx = 0; /* 0x2509B51D: xor ebx, ebx */ 16860 _cf = 0; 16861 _flag_k = FK_TEST; 16862 L_2509B51F: 16863 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 16864 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 16865 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 16866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 16867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16868 _flag_k = FK_CMP; 16869 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 16870 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 16871 L_2509B530: 16872 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 16873 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 16874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16875 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 16876 _flag_k = FK_CMP; 16877 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 16878 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16879 edx = (uint32_t)((int32_t)edx >> 2u); 16880 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 16881 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 16882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16883 _flag_k = FK_CMP; 16884 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 16885 L_2509B540: 16886 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 16887 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 16888 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 16889 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 16890 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 16891 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 16892 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 16893 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 16894 PUSH32(esp, eax); /* 0x2509B557: push eax */ 16895 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 16896 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 16897 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 16898 RECOMP_FLAGS_IN(); 16899 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 16900 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 16901 PUSH32(esp, edi); /* 0x2509B569: push edi */ 16902 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 16903 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 16904 PUSH32(esp, edi); /* 0x2509B574: push edi */ 16905 PUSH32(esp, eax); /* 0x2509B575: push eax */ 16906 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 16907 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 16908 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 16909 RECOMP_FLAGS_IN(); 16910 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 16911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16912 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 16913 _flag_k = FK_ADD; 16914 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 16915 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16916 _cf = 0; 16917 _flag_k = FK_TEST; 16918 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 16919 L_2509B588: 16920 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 16921 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 16922 RECOMP_FLAGS_IN(); 16923 L_2509B590: 16924 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 16925 PUSH32(esp, edx); /* 0x2509B593: push edx */ 16926 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 16927 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 16928 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 16929 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 16930 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 16931 RECOMP_FLAGS_IN(); 16932 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 16933 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 16934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 16935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16936 _flag_k = FK_CMP; 16937 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 16938 L_2509B5B1: 16939 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 16940 L_2509B5B3: 16941 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 16942 edi = 0; /* 0x2509B5B3: xor edi, edi */ 16943 _cf = 0; 16944 _flag_k = FK_TEST; 16945 L_2509B5B5: 16946 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 16947 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 16948 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 16949 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 16950 _flag_k = FK_ADD; 16951 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 16952 L_2509B5C1: 16953 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 16954 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 16955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 16956 _cf = 0; 16957 _flag_k = FK_TEST; 16958 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 16959 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 16960 L_2509B5CF: 16961 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 16962 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 16963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16964 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 16965 _flag_k = FK_CMP; 16966 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 16967 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 16968 ecx = (uint32_t)((int32_t)ecx >> 2u); 16969 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 16970 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 16971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16972 _flag_k = FK_CMP; 16973 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 16974 L_2509B5DF: 16975 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 16976 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 16977 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 16978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 16979 _flag_k = FK_CMP; 16980 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 16981 L_2509B5EB: 16982 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 16983 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 16984 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 16985 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 16986 RECOMP_FLAGS_IN(); 16987 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 16988 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 16989 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 16990 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 16991 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 16992 ecx = eax; /* 0x2509B608: mov ecx, eax */ 16993 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 16994 RECOMP_FLAGS_IN(); 16995 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 16996 esi = eax; /* 0x2509B60F: mov esi, eax */ 16997 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 16998 RECOMP_FLAGS_IN(); 16999 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17000 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17001 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 17002 _flag_k = FK_ADD; 17003 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 17004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17005 _cf = 0; 17006 _flag_k = FK_TEST; 17007 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 17008 L_2509B61D: 17009 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 17010 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 17011 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 17012 L_2509B62C: 17013 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17014 eax = 0; /* 0x2509B62C: xor eax, eax */ 17015 _cf = 0; 17016 _flag_k = FK_TEST; 17017 L_2509B62E: 17018 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 17019 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 17020 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 17021 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 17022 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 17023 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 17024 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 17025 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 17026 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 17027 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 17028 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 17029 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17031 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 17032 _flag_k = FK_CMP; 17033 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 17034 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17035 edx = (uint32_t)((int32_t)edx >> 2u); 17036 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 17037 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17039 _flag_k = FK_CMP; 17040 edi = eax; /* 0x2509B659: mov edi, eax */ 17041 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 17042 L_2509B661: 17043 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 17044 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 17045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 17046 _cf = 0; 17047 _flag_k = FK_TEST; 17048 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 17049 L_2509B668: 17050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 17051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17052 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 17053 _flag_k = FK_CMP; 17054 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 17055 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17056 eax = (uint32_t)((int32_t)eax >> 2u); 17057 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 17058 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17060 _flag_k = FK_CMP; 17061 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 17062 L_2509B672: 17063 ecx = esi; /* 0x2509B672: mov ecx, esi */ 17064 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 17065 RECOMP_FLAGS_IN(); 17066 ebx = eax; /* 0x2509B679: mov ebx, eax */ 17067 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 17068 L_2509B67D: 17069 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 17070 L_2509B682: 17071 ecx = esi; /* 0x2509B682: mov ecx, esi */ 17072 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 17073 RECOMP_FLAGS_IN(); 17074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17075 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17076 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 17077 _flag_k = FK_ADD; 17078 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 17079 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 17080 L_2509B690: 17081 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17082 eax = 0; /* 0x2509B690: xor eax, eax */ 17083 _cf = 0; 17084 _flag_k = FK_TEST; 17085 L_2509B692: 17086 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 17087 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17088 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 17089 PUSH32(esp, eax); /* 0x2509B695: push eax */ 17090 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 17091 RECOMP_FLAGS_IN(); 17092 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 17093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17095 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 17096 _flag_k = FK_ADD; 17097 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 17098 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 17099 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 17100 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 17101 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 17102 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 17103 RECOMP_FLAGS_IN(); 17104 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 17105 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 17106 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 17107 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 17108 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 17109 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 17110 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 17111 RECOMP_FLAGS_IN(); 17112 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 17113 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 17114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 17115 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17116 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 17117 _flag_k = FK_ADD; 17118 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 17119 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 17120 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 17121 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 17122 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 17123 RECOMP_FLAGS_IN(); 17124 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 17125 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 17126 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 17127 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 17128 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 17129 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 17130 RECOMP_FLAGS_IN(); 17131 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 17132 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 17133 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 17134 RECOMP_FLAGS_IN(); 17135 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 17136 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 17137 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17139 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 17140 _flag_k = FK_ADD; 17141 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 17142 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 17143 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 17144 RECOMP_FLAGS_IN(); 17145 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 17146 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 17147 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 17148 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 17149 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17150 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 17151 _flag_k = FK_INC; 17152 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 17153 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 17154 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 17155 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17156 edi = edi + 1; /* 0x2509B713: inc edi */ 17157 _flag_k = FK_INC; 17158 RECOMP_BACKEDGE(); 17159 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 17160 L_2509B719: 17161 ecx = eax; /* 0x2509B719: mov ecx, eax */ 17162 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 17163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17164 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 17165 _flag_k = FK_CMP; 17166 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 17167 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17168 ecx = (uint32_t)((int32_t)ecx >> 2u); 17169 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 17170 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17172 _flag_k = FK_CMP; 17173 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 17174 L_2509B725: 17175 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 17176 PUSH32(esp, edx); /* 0x2509B728: push edx */ 17177 PUSH32(esp, eax); /* 0x2509B729: push eax */ 17178 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 17179 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 17180 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 17181 RECOMP_FLAGS_IN(); 17182 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 17183 edx = eax; /* 0x2509B735: mov edx, eax */ 17184 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 17185 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 17186 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 17187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17188 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 17189 _flag_k = FK_CMP; 17190 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 17191 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17192 edx = (uint32_t)((int32_t)edx >> 2u); 17193 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 17194 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 17195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17196 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 17197 _flag_k = FK_CMP; 17198 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 17199 PUSH32(esp, eax); /* 0x2509B748: push eax */ 17200 ecx = esi; /* 0x2509B749: mov ecx, esi */ 17201 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 17202 RECOMP_FLAGS_IN(); 17203 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 17204 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 17205 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17207 _flag_k = FK_CMP; 17208 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 17209 L_2509B757: 17210 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 17211 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 17212 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 17213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17214 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 17215 _flag_k = FK_ADD; 17216 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 17217 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17219 _flag_k = FK_CMP; 17220 RECOMP_BACKEDGE(); 17221 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 17222 L_2509B763: 17223 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 17224 L_2509B765: 17225 PUSH32(esp, eax); /* 0x2509B765: push eax */ 17226 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 17227 PUSH32(esp, eax); /* 0x2509B769: push eax */ 17228 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 17229 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 17230 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 17231 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 17232 RECOMP_FLAGS_IN(); 17233 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 17234 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 17235 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 17236 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17237 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17238 _flag_k = FK_CMP; 17239 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 17240 L_2509B77F: 17241 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 17242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 17243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17244 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 17245 _flag_k = FK_CMP; 17246 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 17247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17248 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 17249 _flag_k = FK_CMP; 17250 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 17251 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17253 _flag_k = FK_CMP; 17254 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 17255 RECOMP_BACKEDGE(); 17256 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 17257 L_2509B78E: 17258 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 17259 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 17260 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17262 _flag_k = FK_CMP; 17263 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 17264 L_2509B795: 17265 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 17266 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 17267 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 17268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17269 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 17270 _flag_k = FK_ADD; 17271 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 17272 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17274 _flag_k = FK_CMP; 17275 RECOMP_BACKEDGE(); 17276 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 17277 L_2509B7A1: 17278 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 17279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17280 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 17281 _flag_k = FK_ADD; 17282 L_2509B7A5: 17283 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 17284 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 17285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17286 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 17287 _flag_k = FK_INC; 17288 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 17289 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17290 edi = edi + 1; /* 0x2509B7AF: inc edi */ 17291 _flag_k = FK_INC; 17292 RECOMP_BACKEDGE(); 17293 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 17294 L_2509B7B5: 17295 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 17296 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 17297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17298 _cf = 0; 17299 _flag_k = FK_TEST; 17300 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 17301 L_2509B7BC: 17302 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 17303 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 17304 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 17305 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 17306 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 17307 RECOMP_FLAGS_IN(); 17308 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 17309 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 17310 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 17311 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 17312 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 17313 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 17314 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 17315 RECOMP_FLAGS_IN(); 17316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 17317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17318 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 17319 _flag_k = FK_ADD; 17320 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 17321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17322 _cf = 0; 17323 _flag_k = FK_TEST; 17324 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 17325 L_2509B7E7: 17326 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 17327 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 17328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17329 _cf = 0; 17330 _flag_k = FK_TEST; 17331 RECOMP_BACKEDGE(); 17332 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 17333 L_2509B7EE: 17334 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 17335 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 17336 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 17337 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 17338 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 17339 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 17340 RECOMP_FLAGS_IN(); 17341 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 17342 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 17343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 17344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17345 _flag_k = FK_CMP; 17346 RECOMP_BACKEDGE(); 17347 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 17348 L_2509B814: 17349 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 17350 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 17351 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17352 edi = 0; /* 0x2509B81A: xor edi, edi */ 17353 _cf = 0; 17354 _flag_k = FK_TEST; 17355 L_2509B81C: 17356 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 17357 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 17358 _flag_k = FK_INC; 17359 RECOMP_BACKEDGE(); 17360 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 17361 L_2509B822: 17362 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 17363 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 17364 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 17365 esp = ebp; /* 0x2509B825: mov esp, ebp */ 17366 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 17367 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 17368 RECOMP_REGS_OUT(); 17369 } 17370 17371 void sub_2509B51F(void) { 17372 int _fpu_cmp = 0; 17373 uint32_t _cf = 0; 17374 int _df = 1; 17375 uint32_t _flag_k = FK_NONE; 17376 uint32_t _flag_a = 0, _flag_b = 0; 17377 uint32_t _itail_tgt = 0; 17378 RECOMP_REGS_LOCALS 17379 RECOMP_ENTER(0x2509B51Fu); 17380 17381 L_2509B51F: 17382 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 17383 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 17384 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 17385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17387 _flag_k = FK_CMP; 17388 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 17389 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 17390 L_2509B530: 17391 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 17392 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17394 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 17395 _flag_k = FK_CMP; 17396 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 17397 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17398 edx = (uint32_t)((int32_t)edx >> 2u); 17399 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 17400 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 17401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17402 _flag_k = FK_CMP; 17403 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 17404 L_2509B540: 17405 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 17406 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 17407 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 17408 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 17409 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 17410 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 17411 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 17412 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 17413 PUSH32(esp, eax); /* 0x2509B557: push eax */ 17414 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 17415 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 17416 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 17417 RECOMP_FLAGS_IN(); 17418 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 17419 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 17420 PUSH32(esp, edi); /* 0x2509B569: push edi */ 17421 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 17422 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 17423 PUSH32(esp, edi); /* 0x2509B574: push edi */ 17424 PUSH32(esp, eax); /* 0x2509B575: push eax */ 17425 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 17426 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 17427 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 17428 RECOMP_FLAGS_IN(); 17429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 17430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17431 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 17432 _flag_k = FK_ADD; 17433 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 17434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17435 _cf = 0; 17436 _flag_k = FK_TEST; 17437 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 17438 L_2509B588: 17439 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 17440 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 17441 RECOMP_FLAGS_IN(); 17442 L_2509B590: 17443 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 17444 PUSH32(esp, edx); /* 0x2509B593: push edx */ 17445 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 17446 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 17447 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 17448 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 17449 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 17450 RECOMP_FLAGS_IN(); 17451 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 17452 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 17453 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 17454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17455 _flag_k = FK_CMP; 17456 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 17457 L_2509B5B1: 17458 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 17459 L_2509B5B3: 17460 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17461 edi = 0; /* 0x2509B5B3: xor edi, edi */ 17462 _cf = 0; 17463 _flag_k = FK_TEST; 17464 L_2509B5B5: 17465 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 17466 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 17467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17468 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 17469 _flag_k = FK_ADD; 17470 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 17471 L_2509B5C1: 17472 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 17473 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 17474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17475 _cf = 0; 17476 _flag_k = FK_TEST; 17477 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 17478 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 17479 L_2509B5CF: 17480 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 17481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 17482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17483 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 17484 _flag_k = FK_CMP; 17485 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 17486 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17487 ecx = (uint32_t)((int32_t)ecx >> 2u); 17488 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 17489 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 17490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17491 _flag_k = FK_CMP; 17492 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 17493 L_2509B5DF: 17494 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 17495 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 17496 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 17497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17498 _flag_k = FK_CMP; 17499 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 17500 L_2509B5EB: 17501 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 17502 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 17503 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 17504 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 17505 RECOMP_FLAGS_IN(); 17506 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 17507 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 17508 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 17509 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 17510 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 17511 ecx = eax; /* 0x2509B608: mov ecx, eax */ 17512 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 17513 RECOMP_FLAGS_IN(); 17514 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 17515 esi = eax; /* 0x2509B60F: mov esi, eax */ 17516 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 17517 RECOMP_FLAGS_IN(); 17518 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17519 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17520 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 17521 _flag_k = FK_ADD; 17522 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 17523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17524 _cf = 0; 17525 _flag_k = FK_TEST; 17526 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 17527 L_2509B61D: 17528 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 17529 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 17530 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 17531 L_2509B62C: 17532 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17533 eax = 0; /* 0x2509B62C: xor eax, eax */ 17534 _cf = 0; 17535 _flag_k = FK_TEST; 17536 L_2509B62E: 17537 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 17538 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 17539 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 17540 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 17541 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 17542 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 17543 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 17544 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 17545 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 17546 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 17547 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 17548 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17550 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 17551 _flag_k = FK_CMP; 17552 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 17553 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17554 edx = (uint32_t)((int32_t)edx >> 2u); 17555 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 17556 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 17557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17558 _flag_k = FK_CMP; 17559 edi = eax; /* 0x2509B659: mov edi, eax */ 17560 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 17561 L_2509B661: 17562 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 17563 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 17564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 17565 _cf = 0; 17566 _flag_k = FK_TEST; 17567 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 17568 L_2509B668: 17569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 17570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17571 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 17572 _flag_k = FK_CMP; 17573 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 17574 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17575 eax = (uint32_t)((int32_t)eax >> 2u); 17576 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 17577 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 17578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17579 _flag_k = FK_CMP; 17580 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 17581 L_2509B672: 17582 ecx = esi; /* 0x2509B672: mov ecx, esi */ 17583 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 17584 RECOMP_FLAGS_IN(); 17585 ebx = eax; /* 0x2509B679: mov ebx, eax */ 17586 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 17587 L_2509B67D: 17588 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 17589 L_2509B682: 17590 ecx = esi; /* 0x2509B682: mov ecx, esi */ 17591 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 17592 RECOMP_FLAGS_IN(); 17593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 17594 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17595 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 17596 _flag_k = FK_ADD; 17597 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 17598 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 17599 L_2509B690: 17600 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17601 eax = 0; /* 0x2509B690: xor eax, eax */ 17602 _cf = 0; 17603 _flag_k = FK_TEST; 17604 L_2509B692: 17605 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 17606 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17607 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 17608 PUSH32(esp, eax); /* 0x2509B695: push eax */ 17609 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 17610 RECOMP_FLAGS_IN(); 17611 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 17612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17614 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 17615 _flag_k = FK_ADD; 17616 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 17617 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 17618 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 17619 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 17620 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 17621 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 17622 RECOMP_FLAGS_IN(); 17623 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 17624 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 17625 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 17626 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 17627 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 17628 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 17629 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 17630 RECOMP_FLAGS_IN(); 17631 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 17632 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 17633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 17634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17635 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 17636 _flag_k = FK_ADD; 17637 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 17638 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 17639 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 17640 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 17641 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 17642 RECOMP_FLAGS_IN(); 17643 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 17644 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 17645 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 17646 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 17647 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 17648 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 17649 RECOMP_FLAGS_IN(); 17650 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 17651 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 17652 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 17653 RECOMP_FLAGS_IN(); 17654 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 17655 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 17656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 17657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17658 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 17659 _flag_k = FK_ADD; 17660 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 17661 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 17662 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 17663 RECOMP_FLAGS_IN(); 17664 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 17665 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 17666 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 17667 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 17668 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17669 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 17670 _flag_k = FK_INC; 17671 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 17672 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 17673 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 17674 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17675 edi = edi + 1; /* 0x2509B713: inc edi */ 17676 _flag_k = FK_INC; 17677 RECOMP_BACKEDGE(); 17678 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 17679 L_2509B719: 17680 ecx = eax; /* 0x2509B719: mov ecx, eax */ 17681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 17682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17683 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 17684 _flag_k = FK_CMP; 17685 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 17686 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17687 ecx = (uint32_t)((int32_t)ecx >> 2u); 17688 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 17689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17691 _flag_k = FK_CMP; 17692 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 17693 L_2509B725: 17694 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 17695 PUSH32(esp, edx); /* 0x2509B728: push edx */ 17696 PUSH32(esp, eax); /* 0x2509B729: push eax */ 17697 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 17698 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 17699 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 17700 RECOMP_FLAGS_IN(); 17701 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 17702 edx = eax; /* 0x2509B735: mov edx, eax */ 17703 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 17704 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 17705 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 17706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17707 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 17708 _flag_k = FK_CMP; 17709 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 17710 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17711 edx = (uint32_t)((int32_t)edx >> 2u); 17712 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 17713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 17714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17715 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 17716 _flag_k = FK_CMP; 17717 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 17718 PUSH32(esp, eax); /* 0x2509B748: push eax */ 17719 ecx = esi; /* 0x2509B749: mov ecx, esi */ 17720 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 17721 RECOMP_FLAGS_IN(); 17722 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 17723 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 17724 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17726 _flag_k = FK_CMP; 17727 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 17728 L_2509B757: 17729 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 17730 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 17731 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 17732 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17733 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 17734 _flag_k = FK_ADD; 17735 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 17736 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17738 _flag_k = FK_CMP; 17739 RECOMP_BACKEDGE(); 17740 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 17741 L_2509B763: 17742 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 17743 L_2509B765: 17744 PUSH32(esp, eax); /* 0x2509B765: push eax */ 17745 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 17746 PUSH32(esp, eax); /* 0x2509B769: push eax */ 17747 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 17748 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 17749 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 17750 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 17751 RECOMP_FLAGS_IN(); 17752 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 17753 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 17754 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 17755 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17757 _flag_k = FK_CMP; 17758 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 17759 L_2509B77F: 17760 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 17761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 17762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17763 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 17764 _flag_k = FK_CMP; 17765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 17766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17767 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 17768 _flag_k = FK_CMP; 17769 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 17770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17772 _flag_k = FK_CMP; 17773 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 17774 RECOMP_BACKEDGE(); 17775 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 17776 L_2509B78E: 17777 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 17778 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 17779 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17781 _flag_k = FK_CMP; 17782 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 17783 L_2509B795: 17784 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 17785 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 17786 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 17787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17788 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 17789 _flag_k = FK_ADD; 17790 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 17791 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 17792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17793 _flag_k = FK_CMP; 17794 RECOMP_BACKEDGE(); 17795 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 17796 L_2509B7A1: 17797 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 17798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17799 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 17800 _flag_k = FK_ADD; 17801 L_2509B7A5: 17802 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 17803 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 17804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 17805 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 17806 _flag_k = FK_INC; 17807 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 17808 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 17809 edi = edi + 1; /* 0x2509B7AF: inc edi */ 17810 _flag_k = FK_INC; 17811 RECOMP_BACKEDGE(); 17812 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 17813 L_2509B7B5: 17814 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 17815 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 17816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17817 _cf = 0; 17818 _flag_k = FK_TEST; 17819 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 17820 L_2509B7BC: 17821 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 17822 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 17823 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 17824 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 17825 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 17826 RECOMP_FLAGS_IN(); 17827 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 17828 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 17829 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 17830 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 17831 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 17832 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 17833 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 17834 RECOMP_FLAGS_IN(); 17835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 17836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17837 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 17838 _flag_k = FK_ADD; 17839 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 17840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17841 _cf = 0; 17842 _flag_k = FK_TEST; 17843 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 17844 L_2509B7E7: 17845 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 17846 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 17847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17848 _cf = 0; 17849 _flag_k = FK_TEST; 17850 RECOMP_BACKEDGE(); 17851 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 17852 L_2509B7EE: 17853 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 17854 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 17855 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 17856 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 17857 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 17858 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 17859 RECOMP_FLAGS_IN(); 17860 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 17861 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 17862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 17863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17864 _flag_k = FK_CMP; 17865 RECOMP_BACKEDGE(); 17866 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 17867 L_2509B814: 17868 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 17869 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 17870 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17871 edi = 0; /* 0x2509B81A: xor edi, edi */ 17872 _cf = 0; 17873 _flag_k = FK_TEST; 17874 L_2509B81C: 17875 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 17876 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 17877 _flag_k = FK_INC; 17878 RECOMP_BACKEDGE(); 17879 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 17880 L_2509B822: 17881 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 17882 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 17883 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 17884 esp = ebp; /* 0x2509B825: mov esp, ebp */ 17885 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 17886 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 17887 RECOMP_REGS_OUT(); 17888 } 17889 17890 void sub_2509B5B3(void) { 17891 int _fpu_cmp = 0; 17892 uint32_t _cf = 0; 17893 int _df = 1; 17894 uint32_t _flag_k = FK_NONE; 17895 uint32_t _flag_a = 0, _flag_b = 0; 17896 uint32_t _itail_tgt = 0; 17897 RECOMP_REGS_LOCALS 17898 RECOMP_ENTER(0x2509B5B3u); 17899 17900 goto L_2509B5B3; 17901 L_2509B51F: 17902 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 17903 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 17904 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 17905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 17906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17907 _flag_k = FK_CMP; 17908 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 17909 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 17910 L_2509B530: 17911 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 17912 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 17913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17914 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 17915 _flag_k = FK_CMP; 17916 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 17917 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 17918 edx = (uint32_t)((int32_t)edx >> 2u); 17919 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 17920 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 17921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17922 _flag_k = FK_CMP; 17923 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 17924 L_2509B540: 17925 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 17926 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 17927 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 17928 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 17929 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 17930 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 17931 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 17932 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 17933 PUSH32(esp, eax); /* 0x2509B557: push eax */ 17934 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 17935 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 17936 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 17937 RECOMP_FLAGS_IN(); 17938 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 17939 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 17940 PUSH32(esp, edi); /* 0x2509B569: push edi */ 17941 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 17942 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 17943 PUSH32(esp, edi); /* 0x2509B574: push edi */ 17944 PUSH32(esp, eax); /* 0x2509B575: push eax */ 17945 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 17946 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 17947 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 17948 RECOMP_FLAGS_IN(); 17949 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 17950 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17951 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 17952 _flag_k = FK_ADD; 17953 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 17954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17955 _cf = 0; 17956 _flag_k = FK_TEST; 17957 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 17958 L_2509B588: 17959 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 17960 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 17961 RECOMP_FLAGS_IN(); 17962 L_2509B590: 17963 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 17964 PUSH32(esp, edx); /* 0x2509B593: push edx */ 17965 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 17966 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 17967 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 17968 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 17969 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 17970 RECOMP_FLAGS_IN(); 17971 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 17972 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 17973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 17974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 17975 _flag_k = FK_CMP; 17976 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 17977 L_2509B5B1: 17978 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 17979 L_2509B5B3: 17980 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 17981 edi = 0; /* 0x2509B5B3: xor edi, edi */ 17982 _cf = 0; 17983 _flag_k = FK_TEST; 17984 L_2509B5B5: 17985 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 17986 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 17987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 17988 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 17989 _flag_k = FK_ADD; 17990 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 17991 L_2509B5C1: 17992 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 17993 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 17994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 17995 _cf = 0; 17996 _flag_k = FK_TEST; 17997 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 17998 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 17999 L_2509B5CF: 18000 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 18001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 18002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18003 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 18004 _flag_k = FK_CMP; 18005 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 18006 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18007 ecx = (uint32_t)((int32_t)ecx >> 2u); 18008 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 18009 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 18010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18011 _flag_k = FK_CMP; 18012 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 18013 L_2509B5DF: 18014 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 18015 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 18016 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 18017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18018 _flag_k = FK_CMP; 18019 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 18020 L_2509B5EB: 18021 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 18022 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 18023 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 18024 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 18025 RECOMP_FLAGS_IN(); 18026 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 18027 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 18028 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 18029 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 18030 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 18031 ecx = eax; /* 0x2509B608: mov ecx, eax */ 18032 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 18033 RECOMP_FLAGS_IN(); 18034 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 18035 esi = eax; /* 0x2509B60F: mov esi, eax */ 18036 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 18037 RECOMP_FLAGS_IN(); 18038 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18040 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 18041 _flag_k = FK_ADD; 18042 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 18043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18044 _cf = 0; 18045 _flag_k = FK_TEST; 18046 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 18047 L_2509B61D: 18048 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 18049 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 18050 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 18051 L_2509B62C: 18052 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18053 eax = 0; /* 0x2509B62C: xor eax, eax */ 18054 _cf = 0; 18055 _flag_k = FK_TEST; 18056 L_2509B62E: 18057 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 18058 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 18059 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 18060 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 18061 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 18062 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 18063 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 18064 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 18065 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 18066 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 18067 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 18068 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 18069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18070 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 18071 _flag_k = FK_CMP; 18072 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 18073 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18074 edx = (uint32_t)((int32_t)edx >> 2u); 18075 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 18076 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 18077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18078 _flag_k = FK_CMP; 18079 edi = eax; /* 0x2509B659: mov edi, eax */ 18080 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 18081 L_2509B661: 18082 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 18083 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 18084 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 18085 _cf = 0; 18086 _flag_k = FK_TEST; 18087 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 18088 L_2509B668: 18089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18091 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 18092 _flag_k = FK_CMP; 18093 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 18094 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18095 eax = (uint32_t)((int32_t)eax >> 2u); 18096 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 18097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18099 _flag_k = FK_CMP; 18100 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 18101 L_2509B672: 18102 ecx = esi; /* 0x2509B672: mov ecx, esi */ 18103 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 18104 RECOMP_FLAGS_IN(); 18105 ebx = eax; /* 0x2509B679: mov ebx, eax */ 18106 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 18107 L_2509B67D: 18108 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 18109 L_2509B682: 18110 ecx = esi; /* 0x2509B682: mov ecx, esi */ 18111 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 18112 RECOMP_FLAGS_IN(); 18113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 18114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18115 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 18116 _flag_k = FK_ADD; 18117 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 18118 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 18119 L_2509B690: 18120 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18121 eax = 0; /* 0x2509B690: xor eax, eax */ 18122 _cf = 0; 18123 _flag_k = FK_TEST; 18124 L_2509B692: 18125 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 18126 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18127 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 18128 PUSH32(esp, eax); /* 0x2509B695: push eax */ 18129 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 18130 RECOMP_FLAGS_IN(); 18131 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 18132 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18134 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 18135 _flag_k = FK_ADD; 18136 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 18137 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 18138 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 18139 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 18140 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 18141 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 18142 RECOMP_FLAGS_IN(); 18143 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 18144 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 18145 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 18146 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 18147 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 18148 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 18149 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 18150 RECOMP_FLAGS_IN(); 18151 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 18152 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 18153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 18154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18155 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 18156 _flag_k = FK_ADD; 18157 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 18158 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 18159 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 18160 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 18161 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 18162 RECOMP_FLAGS_IN(); 18163 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 18164 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 18165 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 18166 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 18167 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 18168 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 18169 RECOMP_FLAGS_IN(); 18170 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 18171 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 18172 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 18173 RECOMP_FLAGS_IN(); 18174 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 18175 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 18176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18178 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 18179 _flag_k = FK_ADD; 18180 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 18181 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 18182 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 18183 RECOMP_FLAGS_IN(); 18184 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 18185 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 18186 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 18187 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 18188 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18189 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 18190 _flag_k = FK_INC; 18191 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 18192 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 18193 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 18194 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 18195 edi = edi + 1; /* 0x2509B713: inc edi */ 18196 _flag_k = FK_INC; 18197 RECOMP_BACKEDGE(); 18198 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 18199 L_2509B719: 18200 ecx = eax; /* 0x2509B719: mov ecx, eax */ 18201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 18202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18203 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 18204 _flag_k = FK_CMP; 18205 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 18206 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18207 ecx = (uint32_t)((int32_t)ecx >> 2u); 18208 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 18209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18211 _flag_k = FK_CMP; 18212 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 18213 L_2509B725: 18214 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 18215 PUSH32(esp, edx); /* 0x2509B728: push edx */ 18216 PUSH32(esp, eax); /* 0x2509B729: push eax */ 18217 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 18218 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 18219 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 18220 RECOMP_FLAGS_IN(); 18221 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 18222 edx = eax; /* 0x2509B735: mov edx, eax */ 18223 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 18224 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 18225 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 18226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18227 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 18228 _flag_k = FK_CMP; 18229 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 18230 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18231 edx = (uint32_t)((int32_t)edx >> 2u); 18232 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 18233 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18235 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 18236 _flag_k = FK_CMP; 18237 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 18238 PUSH32(esp, eax); /* 0x2509B748: push eax */ 18239 ecx = esi; /* 0x2509B749: mov ecx, esi */ 18240 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 18241 RECOMP_FLAGS_IN(); 18242 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 18243 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 18244 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18246 _flag_k = FK_CMP; 18247 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 18248 L_2509B757: 18249 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 18250 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 18251 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 18252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18253 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 18254 _flag_k = FK_ADD; 18255 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 18256 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18258 _flag_k = FK_CMP; 18259 RECOMP_BACKEDGE(); 18260 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 18261 L_2509B763: 18262 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 18263 L_2509B765: 18264 PUSH32(esp, eax); /* 0x2509B765: push eax */ 18265 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 18266 PUSH32(esp, eax); /* 0x2509B769: push eax */ 18267 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 18268 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 18269 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 18270 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 18271 RECOMP_FLAGS_IN(); 18272 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 18273 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 18274 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 18275 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18277 _flag_k = FK_CMP; 18278 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 18279 L_2509B77F: 18280 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 18281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 18282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18283 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 18284 _flag_k = FK_CMP; 18285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 18286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18287 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 18288 _flag_k = FK_CMP; 18289 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 18290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18292 _flag_k = FK_CMP; 18293 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 18294 RECOMP_BACKEDGE(); 18295 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 18296 L_2509B78E: 18297 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 18298 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 18299 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18301 _flag_k = FK_CMP; 18302 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 18303 L_2509B795: 18304 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 18305 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 18306 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 18307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18308 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 18309 _flag_k = FK_ADD; 18310 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 18311 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18313 _flag_k = FK_CMP; 18314 RECOMP_BACKEDGE(); 18315 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 18316 L_2509B7A1: 18317 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 18318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18319 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 18320 _flag_k = FK_ADD; 18321 L_2509B7A5: 18322 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 18323 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 18324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18325 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 18326 _flag_k = FK_INC; 18327 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 18328 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 18329 edi = edi + 1; /* 0x2509B7AF: inc edi */ 18330 _flag_k = FK_INC; 18331 RECOMP_BACKEDGE(); 18332 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 18333 L_2509B7B5: 18334 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 18335 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 18336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18337 _cf = 0; 18338 _flag_k = FK_TEST; 18339 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 18340 L_2509B7BC: 18341 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 18342 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 18343 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 18344 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 18345 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 18346 RECOMP_FLAGS_IN(); 18347 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 18348 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 18349 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 18350 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 18351 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 18352 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 18353 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 18354 RECOMP_FLAGS_IN(); 18355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 18356 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18357 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 18358 _flag_k = FK_ADD; 18359 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 18360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18361 _cf = 0; 18362 _flag_k = FK_TEST; 18363 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 18364 L_2509B7E7: 18365 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 18366 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 18367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18368 _cf = 0; 18369 _flag_k = FK_TEST; 18370 RECOMP_BACKEDGE(); 18371 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 18372 L_2509B7EE: 18373 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 18374 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 18375 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 18376 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 18377 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 18378 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 18379 RECOMP_FLAGS_IN(); 18380 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 18381 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 18382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 18383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18384 _flag_k = FK_CMP; 18385 RECOMP_BACKEDGE(); 18386 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 18387 L_2509B814: 18388 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 18389 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 18390 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18391 edi = 0; /* 0x2509B81A: xor edi, edi */ 18392 _cf = 0; 18393 _flag_k = FK_TEST; 18394 L_2509B81C: 18395 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18396 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 18397 _flag_k = FK_INC; 18398 RECOMP_BACKEDGE(); 18399 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 18400 L_2509B822: 18401 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 18402 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 18403 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 18404 esp = ebp; /* 0x2509B825: mov esp, ebp */ 18405 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 18406 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 18407 RECOMP_REGS_OUT(); 18408 } 18409 18410 void sub_2509B5B5(void) { 18411 int _fpu_cmp = 0; 18412 uint32_t _cf = 0; 18413 int _df = 1; 18414 uint32_t _flag_k = FK_NONE; 18415 uint32_t _flag_a = 0, _flag_b = 0; 18416 uint32_t _itail_tgt = 0; 18417 RECOMP_REGS_LOCALS 18418 RECOMP_ENTER(0x2509B5B5u); 18419 18420 goto L_2509B5B5; 18421 L_2509B51F: 18422 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 18423 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 18424 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 18425 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18427 _flag_k = FK_CMP; 18428 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 18429 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 18430 L_2509B530: 18431 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 18432 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 18433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18434 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 18435 _flag_k = FK_CMP; 18436 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 18437 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18438 edx = (uint32_t)((int32_t)edx >> 2u); 18439 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 18440 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 18441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18442 _flag_k = FK_CMP; 18443 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 18444 L_2509B540: 18445 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 18446 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 18447 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 18448 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 18449 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 18450 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 18451 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 18452 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 18453 PUSH32(esp, eax); /* 0x2509B557: push eax */ 18454 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 18455 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 18456 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 18457 RECOMP_FLAGS_IN(); 18458 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 18459 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 18460 PUSH32(esp, edi); /* 0x2509B569: push edi */ 18461 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 18462 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 18463 PUSH32(esp, edi); /* 0x2509B574: push edi */ 18464 PUSH32(esp, eax); /* 0x2509B575: push eax */ 18465 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 18466 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 18467 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 18468 RECOMP_FLAGS_IN(); 18469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 18470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18471 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 18472 _flag_k = FK_ADD; 18473 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 18474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18475 _cf = 0; 18476 _flag_k = FK_TEST; 18477 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 18478 L_2509B588: 18479 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 18480 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 18481 RECOMP_FLAGS_IN(); 18482 L_2509B590: 18483 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 18484 PUSH32(esp, edx); /* 0x2509B593: push edx */ 18485 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 18486 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 18487 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 18488 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 18489 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 18490 RECOMP_FLAGS_IN(); 18491 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 18492 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 18493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 18494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18495 _flag_k = FK_CMP; 18496 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 18497 L_2509B5B1: 18498 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 18499 L_2509B5B3: 18500 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18501 edi = 0; /* 0x2509B5B3: xor edi, edi */ 18502 _cf = 0; 18503 _flag_k = FK_TEST; 18504 L_2509B5B5: 18505 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 18506 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 18507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18508 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 18509 _flag_k = FK_ADD; 18510 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 18511 L_2509B5C1: 18512 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 18513 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 18514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18515 _cf = 0; 18516 _flag_k = FK_TEST; 18517 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 18518 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 18519 L_2509B5CF: 18520 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 18521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 18522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18523 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 18524 _flag_k = FK_CMP; 18525 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 18526 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18527 ecx = (uint32_t)((int32_t)ecx >> 2u); 18528 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 18529 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 18530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18531 _flag_k = FK_CMP; 18532 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 18533 L_2509B5DF: 18534 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 18535 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 18536 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 18537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18538 _flag_k = FK_CMP; 18539 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 18540 L_2509B5EB: 18541 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 18542 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 18543 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 18544 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 18545 RECOMP_FLAGS_IN(); 18546 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 18547 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 18548 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 18549 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 18550 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 18551 ecx = eax; /* 0x2509B608: mov ecx, eax */ 18552 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 18553 RECOMP_FLAGS_IN(); 18554 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 18555 esi = eax; /* 0x2509B60F: mov esi, eax */ 18556 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 18557 RECOMP_FLAGS_IN(); 18558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18560 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 18561 _flag_k = FK_ADD; 18562 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 18563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18564 _cf = 0; 18565 _flag_k = FK_TEST; 18566 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 18567 L_2509B61D: 18568 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 18569 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 18570 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 18571 L_2509B62C: 18572 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18573 eax = 0; /* 0x2509B62C: xor eax, eax */ 18574 _cf = 0; 18575 _flag_k = FK_TEST; 18576 L_2509B62E: 18577 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 18578 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 18579 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 18580 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 18581 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 18582 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 18583 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 18584 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 18585 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 18586 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 18587 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 18588 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 18589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18590 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 18591 _flag_k = FK_CMP; 18592 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 18593 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18594 edx = (uint32_t)((int32_t)edx >> 2u); 18595 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 18596 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 18597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18598 _flag_k = FK_CMP; 18599 edi = eax; /* 0x2509B659: mov edi, eax */ 18600 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 18601 L_2509B661: 18602 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 18603 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 18604 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 18605 _cf = 0; 18606 _flag_k = FK_TEST; 18607 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 18608 L_2509B668: 18609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 18610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18611 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 18612 _flag_k = FK_CMP; 18613 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 18614 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18615 eax = (uint32_t)((int32_t)eax >> 2u); 18616 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 18617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 18618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18619 _flag_k = FK_CMP; 18620 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 18621 L_2509B672: 18622 ecx = esi; /* 0x2509B672: mov ecx, esi */ 18623 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 18624 RECOMP_FLAGS_IN(); 18625 ebx = eax; /* 0x2509B679: mov ebx, eax */ 18626 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 18627 L_2509B67D: 18628 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 18629 L_2509B682: 18630 ecx = esi; /* 0x2509B682: mov ecx, esi */ 18631 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 18632 RECOMP_FLAGS_IN(); 18633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 18634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18635 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 18636 _flag_k = FK_ADD; 18637 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 18638 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 18639 L_2509B690: 18640 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18641 eax = 0; /* 0x2509B690: xor eax, eax */ 18642 _cf = 0; 18643 _flag_k = FK_TEST; 18644 L_2509B692: 18645 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 18646 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18647 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 18648 PUSH32(esp, eax); /* 0x2509B695: push eax */ 18649 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 18650 RECOMP_FLAGS_IN(); 18651 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 18652 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18654 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 18655 _flag_k = FK_ADD; 18656 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 18657 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 18658 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 18659 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 18660 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 18661 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 18662 RECOMP_FLAGS_IN(); 18663 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 18664 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 18665 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 18666 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 18667 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 18668 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 18669 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 18670 RECOMP_FLAGS_IN(); 18671 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 18672 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 18673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 18674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18675 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 18676 _flag_k = FK_ADD; 18677 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 18678 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 18679 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 18680 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 18681 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 18682 RECOMP_FLAGS_IN(); 18683 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 18684 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 18685 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 18686 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 18687 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 18688 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 18689 RECOMP_FLAGS_IN(); 18690 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 18691 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 18692 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 18693 RECOMP_FLAGS_IN(); 18694 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 18695 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 18696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 18697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18698 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 18699 _flag_k = FK_ADD; 18700 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 18701 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 18702 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 18703 RECOMP_FLAGS_IN(); 18704 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 18705 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 18706 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 18707 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 18708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18709 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 18710 _flag_k = FK_INC; 18711 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 18712 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 18713 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 18714 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 18715 edi = edi + 1; /* 0x2509B713: inc edi */ 18716 _flag_k = FK_INC; 18717 RECOMP_BACKEDGE(); 18718 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 18719 L_2509B719: 18720 ecx = eax; /* 0x2509B719: mov ecx, eax */ 18721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 18722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18723 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 18724 _flag_k = FK_CMP; 18725 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 18726 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18727 ecx = (uint32_t)((int32_t)ecx >> 2u); 18728 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 18729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18731 _flag_k = FK_CMP; 18732 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 18733 L_2509B725: 18734 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 18735 PUSH32(esp, edx); /* 0x2509B728: push edx */ 18736 PUSH32(esp, eax); /* 0x2509B729: push eax */ 18737 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 18738 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 18739 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 18740 RECOMP_FLAGS_IN(); 18741 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 18742 edx = eax; /* 0x2509B735: mov edx, eax */ 18743 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 18744 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 18745 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 18746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18747 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 18748 _flag_k = FK_CMP; 18749 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 18750 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18751 edx = (uint32_t)((int32_t)edx >> 2u); 18752 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 18753 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 18754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18755 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 18756 _flag_k = FK_CMP; 18757 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 18758 PUSH32(esp, eax); /* 0x2509B748: push eax */ 18759 ecx = esi; /* 0x2509B749: mov ecx, esi */ 18760 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 18761 RECOMP_FLAGS_IN(); 18762 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 18763 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 18764 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18766 _flag_k = FK_CMP; 18767 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 18768 L_2509B757: 18769 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 18770 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 18771 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 18772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18773 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 18774 _flag_k = FK_ADD; 18775 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 18776 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18778 _flag_k = FK_CMP; 18779 RECOMP_BACKEDGE(); 18780 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 18781 L_2509B763: 18782 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 18783 L_2509B765: 18784 PUSH32(esp, eax); /* 0x2509B765: push eax */ 18785 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 18786 PUSH32(esp, eax); /* 0x2509B769: push eax */ 18787 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 18788 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 18789 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 18790 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 18791 RECOMP_FLAGS_IN(); 18792 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 18793 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 18794 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 18795 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18797 _flag_k = FK_CMP; 18798 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 18799 L_2509B77F: 18800 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 18801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 18802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18803 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 18804 _flag_k = FK_CMP; 18805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 18806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18807 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 18808 _flag_k = FK_CMP; 18809 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 18810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18812 _flag_k = FK_CMP; 18813 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 18814 RECOMP_BACKEDGE(); 18815 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 18816 L_2509B78E: 18817 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 18818 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 18819 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18821 _flag_k = FK_CMP; 18822 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 18823 L_2509B795: 18824 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 18825 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 18826 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 18827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18828 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 18829 _flag_k = FK_ADD; 18830 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 18831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 18832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18833 _flag_k = FK_CMP; 18834 RECOMP_BACKEDGE(); 18835 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 18836 L_2509B7A1: 18837 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 18838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18839 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 18840 _flag_k = FK_ADD; 18841 L_2509B7A5: 18842 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 18843 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 18844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 18845 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 18846 _flag_k = FK_INC; 18847 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 18848 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 18849 edi = edi + 1; /* 0x2509B7AF: inc edi */ 18850 _flag_k = FK_INC; 18851 RECOMP_BACKEDGE(); 18852 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 18853 L_2509B7B5: 18854 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 18855 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 18856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18857 _cf = 0; 18858 _flag_k = FK_TEST; 18859 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 18860 L_2509B7BC: 18861 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 18862 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 18863 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 18864 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 18865 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 18866 RECOMP_FLAGS_IN(); 18867 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 18868 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 18869 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 18870 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 18871 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 18872 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 18873 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 18874 RECOMP_FLAGS_IN(); 18875 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 18876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18877 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 18878 _flag_k = FK_ADD; 18879 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 18880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18881 _cf = 0; 18882 _flag_k = FK_TEST; 18883 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 18884 L_2509B7E7: 18885 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 18886 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 18887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18888 _cf = 0; 18889 _flag_k = FK_TEST; 18890 RECOMP_BACKEDGE(); 18891 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 18892 L_2509B7EE: 18893 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 18894 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 18895 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 18896 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 18897 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 18898 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 18899 RECOMP_FLAGS_IN(); 18900 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 18901 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 18902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 18903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18904 _flag_k = FK_CMP; 18905 RECOMP_BACKEDGE(); 18906 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 18907 L_2509B814: 18908 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 18909 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 18910 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 18911 edi = 0; /* 0x2509B81A: xor edi, edi */ 18912 _cf = 0; 18913 _flag_k = FK_TEST; 18914 L_2509B81C: 18915 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 18916 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 18917 _flag_k = FK_INC; 18918 RECOMP_BACKEDGE(); 18919 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 18920 L_2509B822: 18921 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 18922 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 18923 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 18924 esp = ebp; /* 0x2509B825: mov esp, ebp */ 18925 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 18926 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 18927 RECOMP_REGS_OUT(); 18928 } 18929 18930 void sub_2509B5C1(void) { 18931 int _fpu_cmp = 0; 18932 uint32_t _cf = 0; 18933 int _df = 1; 18934 uint32_t _flag_k = FK_NONE; 18935 uint32_t _flag_a = 0, _flag_b = 0; 18936 uint32_t _itail_tgt = 0; 18937 RECOMP_REGS_LOCALS 18938 RECOMP_ENTER(0x2509B5C1u); 18939 18940 goto L_2509B5C1; 18941 L_2509B51F: 18942 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 18943 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 18944 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 18945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 18946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18947 _flag_k = FK_CMP; 18948 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 18949 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 18950 L_2509B530: 18951 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 18952 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 18953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18954 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 18955 _flag_k = FK_CMP; 18956 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 18957 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 18958 edx = (uint32_t)((int32_t)edx >> 2u); 18959 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 18960 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 18961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 18962 _flag_k = FK_CMP; 18963 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 18964 L_2509B540: 18965 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 18966 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 18967 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 18968 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 18969 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 18970 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 18971 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 18972 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 18973 PUSH32(esp, eax); /* 0x2509B557: push eax */ 18974 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 18975 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 18976 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 18977 RECOMP_FLAGS_IN(); 18978 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 18979 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 18980 PUSH32(esp, edi); /* 0x2509B569: push edi */ 18981 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 18982 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 18983 PUSH32(esp, edi); /* 0x2509B574: push edi */ 18984 PUSH32(esp, eax); /* 0x2509B575: push eax */ 18985 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 18986 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 18987 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 18988 RECOMP_FLAGS_IN(); 18989 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 18990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 18991 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 18992 _flag_k = FK_ADD; 18993 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 18994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 18995 _cf = 0; 18996 _flag_k = FK_TEST; 18997 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 18998 L_2509B588: 18999 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 19000 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 19001 RECOMP_FLAGS_IN(); 19002 L_2509B590: 19003 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 19004 PUSH32(esp, edx); /* 0x2509B593: push edx */ 19005 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 19006 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 19007 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 19008 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 19009 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 19010 RECOMP_FLAGS_IN(); 19011 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 19012 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 19013 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 19014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19015 _flag_k = FK_CMP; 19016 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 19017 L_2509B5B1: 19018 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 19019 L_2509B5B3: 19020 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19021 edi = 0; /* 0x2509B5B3: xor edi, edi */ 19022 _cf = 0; 19023 _flag_k = FK_TEST; 19024 L_2509B5B5: 19025 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 19026 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 19027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19028 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 19029 _flag_k = FK_ADD; 19030 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 19031 L_2509B5C1: 19032 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 19033 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 19034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19035 _cf = 0; 19036 _flag_k = FK_TEST; 19037 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 19038 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 19039 L_2509B5CF: 19040 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 19041 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 19042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19043 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 19044 _flag_k = FK_CMP; 19045 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 19046 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19047 ecx = (uint32_t)((int32_t)ecx >> 2u); 19048 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 19049 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 19050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19051 _flag_k = FK_CMP; 19052 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 19053 L_2509B5DF: 19054 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 19055 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 19056 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 19057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19058 _flag_k = FK_CMP; 19059 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 19060 L_2509B5EB: 19061 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 19062 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 19063 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 19064 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 19065 RECOMP_FLAGS_IN(); 19066 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 19067 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 19068 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 19069 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 19070 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 19071 ecx = eax; /* 0x2509B608: mov ecx, eax */ 19072 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 19073 RECOMP_FLAGS_IN(); 19074 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 19075 esi = eax; /* 0x2509B60F: mov esi, eax */ 19076 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 19077 RECOMP_FLAGS_IN(); 19078 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19080 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 19081 _flag_k = FK_ADD; 19082 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 19083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19084 _cf = 0; 19085 _flag_k = FK_TEST; 19086 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 19087 L_2509B61D: 19088 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 19089 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 19090 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 19091 L_2509B62C: 19092 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19093 eax = 0; /* 0x2509B62C: xor eax, eax */ 19094 _cf = 0; 19095 _flag_k = FK_TEST; 19096 L_2509B62E: 19097 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 19098 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 19099 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 19100 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 19101 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 19102 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 19103 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 19104 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 19105 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 19106 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 19107 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 19108 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 19109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19110 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 19111 _flag_k = FK_CMP; 19112 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 19113 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19114 edx = (uint32_t)((int32_t)edx >> 2u); 19115 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 19116 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 19117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19118 _flag_k = FK_CMP; 19119 edi = eax; /* 0x2509B659: mov edi, eax */ 19120 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 19121 L_2509B661: 19122 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 19123 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 19124 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19125 _cf = 0; 19126 _flag_k = FK_TEST; 19127 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 19128 L_2509B668: 19129 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19131 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 19132 _flag_k = FK_CMP; 19133 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 19134 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19135 eax = (uint32_t)((int32_t)eax >> 2u); 19136 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 19137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19139 _flag_k = FK_CMP; 19140 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 19141 L_2509B672: 19142 ecx = esi; /* 0x2509B672: mov ecx, esi */ 19143 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 19144 RECOMP_FLAGS_IN(); 19145 ebx = eax; /* 0x2509B679: mov ebx, eax */ 19146 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 19147 L_2509B67D: 19148 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 19149 L_2509B682: 19150 ecx = esi; /* 0x2509B682: mov ecx, esi */ 19151 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 19152 RECOMP_FLAGS_IN(); 19153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 19154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19155 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 19156 _flag_k = FK_ADD; 19157 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 19158 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 19159 L_2509B690: 19160 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19161 eax = 0; /* 0x2509B690: xor eax, eax */ 19162 _cf = 0; 19163 _flag_k = FK_TEST; 19164 L_2509B692: 19165 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 19166 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19167 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 19168 PUSH32(esp, eax); /* 0x2509B695: push eax */ 19169 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 19170 RECOMP_FLAGS_IN(); 19171 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 19172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19174 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 19175 _flag_k = FK_ADD; 19176 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 19177 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 19178 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 19179 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 19180 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 19181 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 19182 RECOMP_FLAGS_IN(); 19183 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 19184 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 19185 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 19186 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 19187 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 19188 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 19189 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 19190 RECOMP_FLAGS_IN(); 19191 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 19192 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 19193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 19194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19195 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 19196 _flag_k = FK_ADD; 19197 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 19198 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 19199 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 19200 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 19201 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 19202 RECOMP_FLAGS_IN(); 19203 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 19204 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 19205 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 19206 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 19207 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 19208 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 19209 RECOMP_FLAGS_IN(); 19210 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 19211 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 19212 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 19213 RECOMP_FLAGS_IN(); 19214 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 19215 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 19216 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19217 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19218 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 19219 _flag_k = FK_ADD; 19220 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 19221 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 19222 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 19223 RECOMP_FLAGS_IN(); 19224 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 19225 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 19226 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 19227 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 19228 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19229 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 19230 _flag_k = FK_INC; 19231 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 19232 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 19233 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 19234 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19235 edi = edi + 1; /* 0x2509B713: inc edi */ 19236 _flag_k = FK_INC; 19237 RECOMP_BACKEDGE(); 19238 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 19239 L_2509B719: 19240 ecx = eax; /* 0x2509B719: mov ecx, eax */ 19241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 19242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19243 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 19244 _flag_k = FK_CMP; 19245 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 19246 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19247 ecx = (uint32_t)((int32_t)ecx >> 2u); 19248 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 19249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19251 _flag_k = FK_CMP; 19252 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 19253 L_2509B725: 19254 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 19255 PUSH32(esp, edx); /* 0x2509B728: push edx */ 19256 PUSH32(esp, eax); /* 0x2509B729: push eax */ 19257 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 19258 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 19259 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 19260 RECOMP_FLAGS_IN(); 19261 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 19262 edx = eax; /* 0x2509B735: mov edx, eax */ 19263 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 19264 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 19265 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 19266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19267 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 19268 _flag_k = FK_CMP; 19269 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 19270 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19271 edx = (uint32_t)((int32_t)edx >> 2u); 19272 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 19273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19275 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 19276 _flag_k = FK_CMP; 19277 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 19278 PUSH32(esp, eax); /* 0x2509B748: push eax */ 19279 ecx = esi; /* 0x2509B749: mov ecx, esi */ 19280 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 19281 RECOMP_FLAGS_IN(); 19282 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 19283 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 19284 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19286 _flag_k = FK_CMP; 19287 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 19288 L_2509B757: 19289 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 19290 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 19291 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 19292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19293 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 19294 _flag_k = FK_ADD; 19295 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 19296 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19298 _flag_k = FK_CMP; 19299 RECOMP_BACKEDGE(); 19300 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 19301 L_2509B763: 19302 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 19303 L_2509B765: 19304 PUSH32(esp, eax); /* 0x2509B765: push eax */ 19305 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 19306 PUSH32(esp, eax); /* 0x2509B769: push eax */ 19307 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 19308 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 19309 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 19310 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 19311 RECOMP_FLAGS_IN(); 19312 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 19313 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 19314 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 19315 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19317 _flag_k = FK_CMP; 19318 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 19319 L_2509B77F: 19320 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 19321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 19322 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19323 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 19324 _flag_k = FK_CMP; 19325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 19326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19327 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 19328 _flag_k = FK_CMP; 19329 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 19330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19332 _flag_k = FK_CMP; 19333 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 19334 RECOMP_BACKEDGE(); 19335 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 19336 L_2509B78E: 19337 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 19338 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 19339 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19341 _flag_k = FK_CMP; 19342 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 19343 L_2509B795: 19344 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 19345 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 19346 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 19347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19348 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 19349 _flag_k = FK_ADD; 19350 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 19351 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19353 _flag_k = FK_CMP; 19354 RECOMP_BACKEDGE(); 19355 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 19356 L_2509B7A1: 19357 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 19358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19359 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 19360 _flag_k = FK_ADD; 19361 L_2509B7A5: 19362 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 19363 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 19364 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19365 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 19366 _flag_k = FK_INC; 19367 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 19368 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19369 edi = edi + 1; /* 0x2509B7AF: inc edi */ 19370 _flag_k = FK_INC; 19371 RECOMP_BACKEDGE(); 19372 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 19373 L_2509B7B5: 19374 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 19375 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 19376 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19377 _cf = 0; 19378 _flag_k = FK_TEST; 19379 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 19380 L_2509B7BC: 19381 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 19382 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 19383 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 19384 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 19385 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 19386 RECOMP_FLAGS_IN(); 19387 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 19388 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 19389 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 19390 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 19391 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 19392 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 19393 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 19394 RECOMP_FLAGS_IN(); 19395 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 19396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19397 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 19398 _flag_k = FK_ADD; 19399 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 19400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19401 _cf = 0; 19402 _flag_k = FK_TEST; 19403 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 19404 L_2509B7E7: 19405 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 19406 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 19407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19408 _cf = 0; 19409 _flag_k = FK_TEST; 19410 RECOMP_BACKEDGE(); 19411 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 19412 L_2509B7EE: 19413 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 19414 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 19415 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 19416 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 19417 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 19418 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 19419 RECOMP_FLAGS_IN(); 19420 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 19421 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 19422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 19423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19424 _flag_k = FK_CMP; 19425 RECOMP_BACKEDGE(); 19426 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 19427 L_2509B814: 19428 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 19429 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 19430 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19431 edi = 0; /* 0x2509B81A: xor edi, edi */ 19432 _cf = 0; 19433 _flag_k = FK_TEST; 19434 L_2509B81C: 19435 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 19436 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 19437 _flag_k = FK_INC; 19438 RECOMP_BACKEDGE(); 19439 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 19440 L_2509B822: 19441 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 19442 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 19443 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 19444 esp = ebp; /* 0x2509B825: mov esp, ebp */ 19445 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 19446 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 19447 RECOMP_REGS_OUT(); 19448 } 19449 19450 void sub_2509B62E(void) { 19451 int _fpu_cmp = 0; 19452 uint32_t _cf = 0; 19453 int _df = 1; 19454 uint32_t _flag_k = FK_NONE; 19455 uint32_t _flag_a = 0, _flag_b = 0; 19456 uint32_t _itail_tgt = 0; 19457 RECOMP_REGS_LOCALS 19458 RECOMP_ENTER(0x2509B62Eu); 19459 19460 goto L_2509B62E; 19461 L_2509B51F: 19462 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 19463 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 19464 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 19465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19467 _flag_k = FK_CMP; 19468 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 19469 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 19470 L_2509B530: 19471 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 19472 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 19473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19474 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 19475 _flag_k = FK_CMP; 19476 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 19477 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19478 edx = (uint32_t)((int32_t)edx >> 2u); 19479 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 19480 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 19481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19482 _flag_k = FK_CMP; 19483 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 19484 L_2509B540: 19485 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 19486 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 19487 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 19488 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 19489 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 19490 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 19491 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 19492 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 19493 PUSH32(esp, eax); /* 0x2509B557: push eax */ 19494 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 19495 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 19496 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 19497 RECOMP_FLAGS_IN(); 19498 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 19499 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 19500 PUSH32(esp, edi); /* 0x2509B569: push edi */ 19501 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 19502 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 19503 PUSH32(esp, edi); /* 0x2509B574: push edi */ 19504 PUSH32(esp, eax); /* 0x2509B575: push eax */ 19505 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 19506 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 19507 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 19508 RECOMP_FLAGS_IN(); 19509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 19510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19511 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 19512 _flag_k = FK_ADD; 19513 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 19514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19515 _cf = 0; 19516 _flag_k = FK_TEST; 19517 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 19518 L_2509B588: 19519 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 19520 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 19521 RECOMP_FLAGS_IN(); 19522 L_2509B590: 19523 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 19524 PUSH32(esp, edx); /* 0x2509B593: push edx */ 19525 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 19526 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 19527 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 19528 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 19529 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 19530 RECOMP_FLAGS_IN(); 19531 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 19532 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 19533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 19534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19535 _flag_k = FK_CMP; 19536 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 19537 L_2509B5B1: 19538 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 19539 L_2509B5B3: 19540 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19541 edi = 0; /* 0x2509B5B3: xor edi, edi */ 19542 _cf = 0; 19543 _flag_k = FK_TEST; 19544 L_2509B5B5: 19545 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 19546 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 19547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19548 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 19549 _flag_k = FK_ADD; 19550 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 19551 L_2509B5C1: 19552 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 19553 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 19554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19555 _cf = 0; 19556 _flag_k = FK_TEST; 19557 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 19558 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 19559 L_2509B5CF: 19560 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 19561 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 19562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19563 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 19564 _flag_k = FK_CMP; 19565 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 19566 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19567 ecx = (uint32_t)((int32_t)ecx >> 2u); 19568 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 19569 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 19570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19571 _flag_k = FK_CMP; 19572 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 19573 L_2509B5DF: 19574 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 19575 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 19576 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 19577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19578 _flag_k = FK_CMP; 19579 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 19580 L_2509B5EB: 19581 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 19582 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 19583 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 19584 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 19585 RECOMP_FLAGS_IN(); 19586 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 19587 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 19588 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 19589 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 19590 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 19591 ecx = eax; /* 0x2509B608: mov ecx, eax */ 19592 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 19593 RECOMP_FLAGS_IN(); 19594 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 19595 esi = eax; /* 0x2509B60F: mov esi, eax */ 19596 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 19597 RECOMP_FLAGS_IN(); 19598 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19600 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 19601 _flag_k = FK_ADD; 19602 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 19603 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19604 _cf = 0; 19605 _flag_k = FK_TEST; 19606 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 19607 L_2509B61D: 19608 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 19609 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 19610 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 19611 L_2509B62C: 19612 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19613 eax = 0; /* 0x2509B62C: xor eax, eax */ 19614 _cf = 0; 19615 _flag_k = FK_TEST; 19616 L_2509B62E: 19617 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 19618 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 19619 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 19620 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 19621 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 19622 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 19623 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 19624 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 19625 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 19626 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 19627 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 19628 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 19629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19630 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 19631 _flag_k = FK_CMP; 19632 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 19633 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19634 edx = (uint32_t)((int32_t)edx >> 2u); 19635 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 19636 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 19637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19638 _flag_k = FK_CMP; 19639 edi = eax; /* 0x2509B659: mov edi, eax */ 19640 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 19641 L_2509B661: 19642 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 19643 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 19644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 19645 _cf = 0; 19646 _flag_k = FK_TEST; 19647 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 19648 L_2509B668: 19649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 19650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19651 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 19652 _flag_k = FK_CMP; 19653 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 19654 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19655 eax = (uint32_t)((int32_t)eax >> 2u); 19656 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 19657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 19658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19659 _flag_k = FK_CMP; 19660 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 19661 L_2509B672: 19662 ecx = esi; /* 0x2509B672: mov ecx, esi */ 19663 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 19664 RECOMP_FLAGS_IN(); 19665 ebx = eax; /* 0x2509B679: mov ebx, eax */ 19666 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 19667 L_2509B67D: 19668 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 19669 L_2509B682: 19670 ecx = esi; /* 0x2509B682: mov ecx, esi */ 19671 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 19672 RECOMP_FLAGS_IN(); 19673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 19674 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19675 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 19676 _flag_k = FK_ADD; 19677 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 19678 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 19679 L_2509B690: 19680 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19681 eax = 0; /* 0x2509B690: xor eax, eax */ 19682 _cf = 0; 19683 _flag_k = FK_TEST; 19684 L_2509B692: 19685 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 19686 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19687 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 19688 PUSH32(esp, eax); /* 0x2509B695: push eax */ 19689 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 19690 RECOMP_FLAGS_IN(); 19691 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 19692 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19694 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 19695 _flag_k = FK_ADD; 19696 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 19697 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 19698 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 19699 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 19700 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 19701 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 19702 RECOMP_FLAGS_IN(); 19703 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 19704 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 19705 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 19706 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 19707 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 19708 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 19709 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 19710 RECOMP_FLAGS_IN(); 19711 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 19712 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 19713 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 19714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19715 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 19716 _flag_k = FK_ADD; 19717 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 19718 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 19719 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 19720 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 19721 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 19722 RECOMP_FLAGS_IN(); 19723 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 19724 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 19725 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 19726 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 19727 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 19728 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 19729 RECOMP_FLAGS_IN(); 19730 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 19731 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 19732 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 19733 RECOMP_FLAGS_IN(); 19734 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 19735 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 19736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 19737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19738 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 19739 _flag_k = FK_ADD; 19740 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 19741 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 19742 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 19743 RECOMP_FLAGS_IN(); 19744 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 19745 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 19746 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 19747 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 19748 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19749 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 19750 _flag_k = FK_INC; 19751 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 19752 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 19753 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 19754 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19755 edi = edi + 1; /* 0x2509B713: inc edi */ 19756 _flag_k = FK_INC; 19757 RECOMP_BACKEDGE(); 19758 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 19759 L_2509B719: 19760 ecx = eax; /* 0x2509B719: mov ecx, eax */ 19761 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 19762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19763 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 19764 _flag_k = FK_CMP; 19765 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 19766 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19767 ecx = (uint32_t)((int32_t)ecx >> 2u); 19768 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 19769 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19771 _flag_k = FK_CMP; 19772 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 19773 L_2509B725: 19774 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 19775 PUSH32(esp, edx); /* 0x2509B728: push edx */ 19776 PUSH32(esp, eax); /* 0x2509B729: push eax */ 19777 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 19778 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 19779 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 19780 RECOMP_FLAGS_IN(); 19781 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 19782 edx = eax; /* 0x2509B735: mov edx, eax */ 19783 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 19784 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 19785 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 19786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19787 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 19788 _flag_k = FK_CMP; 19789 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 19790 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19791 edx = (uint32_t)((int32_t)edx >> 2u); 19792 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 19793 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 19794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19795 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 19796 _flag_k = FK_CMP; 19797 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 19798 PUSH32(esp, eax); /* 0x2509B748: push eax */ 19799 ecx = esi; /* 0x2509B749: mov ecx, esi */ 19800 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 19801 RECOMP_FLAGS_IN(); 19802 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 19803 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 19804 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19806 _flag_k = FK_CMP; 19807 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 19808 L_2509B757: 19809 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 19810 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 19811 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 19812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19813 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 19814 _flag_k = FK_ADD; 19815 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 19816 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19818 _flag_k = FK_CMP; 19819 RECOMP_BACKEDGE(); 19820 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 19821 L_2509B763: 19822 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 19823 L_2509B765: 19824 PUSH32(esp, eax); /* 0x2509B765: push eax */ 19825 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 19826 PUSH32(esp, eax); /* 0x2509B769: push eax */ 19827 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 19828 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 19829 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 19830 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 19831 RECOMP_FLAGS_IN(); 19832 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 19833 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 19834 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 19835 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19837 _flag_k = FK_CMP; 19838 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 19839 L_2509B77F: 19840 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 19841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 19842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19843 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 19844 _flag_k = FK_CMP; 19845 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 19846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19847 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 19848 _flag_k = FK_CMP; 19849 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 19850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19852 _flag_k = FK_CMP; 19853 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 19854 RECOMP_BACKEDGE(); 19855 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 19856 L_2509B78E: 19857 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 19858 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 19859 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19861 _flag_k = FK_CMP; 19862 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 19863 L_2509B795: 19864 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 19865 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 19866 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 19867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19868 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 19869 _flag_k = FK_ADD; 19870 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 19871 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 19872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19873 _flag_k = FK_CMP; 19874 RECOMP_BACKEDGE(); 19875 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 19876 L_2509B7A1: 19877 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 19878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19879 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 19880 _flag_k = FK_ADD; 19881 L_2509B7A5: 19882 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 19883 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 19884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 19885 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 19886 _flag_k = FK_INC; 19887 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 19888 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 19889 edi = edi + 1; /* 0x2509B7AF: inc edi */ 19890 _flag_k = FK_INC; 19891 RECOMP_BACKEDGE(); 19892 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 19893 L_2509B7B5: 19894 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 19895 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 19896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19897 _cf = 0; 19898 _flag_k = FK_TEST; 19899 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 19900 L_2509B7BC: 19901 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 19902 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 19903 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 19904 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 19905 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 19906 RECOMP_FLAGS_IN(); 19907 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 19908 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 19909 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 19910 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 19911 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 19912 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 19913 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 19914 RECOMP_FLAGS_IN(); 19915 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 19916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 19917 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 19918 _flag_k = FK_ADD; 19919 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 19920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19921 _cf = 0; 19922 _flag_k = FK_TEST; 19923 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 19924 L_2509B7E7: 19925 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 19926 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 19927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 19928 _cf = 0; 19929 _flag_k = FK_TEST; 19930 RECOMP_BACKEDGE(); 19931 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 19932 L_2509B7EE: 19933 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 19934 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 19935 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 19936 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 19937 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 19938 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 19939 RECOMP_FLAGS_IN(); 19940 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 19941 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 19942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 19943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19944 _flag_k = FK_CMP; 19945 RECOMP_BACKEDGE(); 19946 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 19947 L_2509B814: 19948 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 19949 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 19950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 19951 edi = 0; /* 0x2509B81A: xor edi, edi */ 19952 _cf = 0; 19953 _flag_k = FK_TEST; 19954 L_2509B81C: 19955 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 19956 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 19957 _flag_k = FK_INC; 19958 RECOMP_BACKEDGE(); 19959 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 19960 L_2509B822: 19961 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 19962 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 19963 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 19964 esp = ebp; /* 0x2509B825: mov esp, ebp */ 19965 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 19966 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 19967 RECOMP_REGS_OUT(); 19968 } 19969 19970 void sub_2509B682(void) { 19971 int _fpu_cmp = 0; 19972 uint32_t _cf = 0; 19973 int _df = 1; 19974 uint32_t _flag_k = FK_NONE; 19975 uint32_t _flag_a = 0, _flag_b = 0; 19976 uint32_t _itail_tgt = 0; 19977 RECOMP_REGS_LOCALS 19978 RECOMP_ENTER(0x2509B682u); 19979 19980 goto L_2509B682; 19981 L_2509B51F: 19982 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 19983 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 19984 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 19985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 19986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19987 _flag_k = FK_CMP; 19988 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 19989 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 19990 L_2509B530: 19991 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 19992 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 19993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 19994 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 19995 _flag_k = FK_CMP; 19996 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 19997 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 19998 edx = (uint32_t)((int32_t)edx >> 2u); 19999 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 20000 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 20001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20002 _flag_k = FK_CMP; 20003 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 20004 L_2509B540: 20005 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 20006 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 20007 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 20008 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 20009 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 20010 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 20011 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 20012 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 20013 PUSH32(esp, eax); /* 0x2509B557: push eax */ 20014 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 20015 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 20016 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 20017 RECOMP_FLAGS_IN(); 20018 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 20019 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 20020 PUSH32(esp, edi); /* 0x2509B569: push edi */ 20021 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 20022 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 20023 PUSH32(esp, edi); /* 0x2509B574: push edi */ 20024 PUSH32(esp, eax); /* 0x2509B575: push eax */ 20025 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 20026 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 20027 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 20028 RECOMP_FLAGS_IN(); 20029 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 20030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20031 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 20032 _flag_k = FK_ADD; 20033 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 20034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20035 _cf = 0; 20036 _flag_k = FK_TEST; 20037 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 20038 L_2509B588: 20039 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 20040 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 20041 RECOMP_FLAGS_IN(); 20042 L_2509B590: 20043 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 20044 PUSH32(esp, edx); /* 0x2509B593: push edx */ 20045 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 20046 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 20047 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 20048 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 20049 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 20050 RECOMP_FLAGS_IN(); 20051 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 20052 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 20053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 20054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20055 _flag_k = FK_CMP; 20056 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 20057 L_2509B5B1: 20058 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 20059 L_2509B5B3: 20060 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20061 edi = 0; /* 0x2509B5B3: xor edi, edi */ 20062 _cf = 0; 20063 _flag_k = FK_TEST; 20064 L_2509B5B5: 20065 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 20066 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 20067 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20068 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 20069 _flag_k = FK_ADD; 20070 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 20071 L_2509B5C1: 20072 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 20073 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 20074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20075 _cf = 0; 20076 _flag_k = FK_TEST; 20077 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 20078 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 20079 L_2509B5CF: 20080 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 20081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 20082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20083 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 20084 _flag_k = FK_CMP; 20085 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 20086 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20087 ecx = (uint32_t)((int32_t)ecx >> 2u); 20088 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 20089 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 20090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20091 _flag_k = FK_CMP; 20092 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 20093 L_2509B5DF: 20094 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 20095 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 20096 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 20097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20098 _flag_k = FK_CMP; 20099 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 20100 L_2509B5EB: 20101 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 20102 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 20103 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 20104 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 20105 RECOMP_FLAGS_IN(); 20106 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 20107 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 20108 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 20109 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 20110 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 20111 ecx = eax; /* 0x2509B608: mov ecx, eax */ 20112 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 20113 RECOMP_FLAGS_IN(); 20114 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 20115 esi = eax; /* 0x2509B60F: mov esi, eax */ 20116 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 20117 RECOMP_FLAGS_IN(); 20118 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20120 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 20121 _flag_k = FK_ADD; 20122 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 20123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20124 _cf = 0; 20125 _flag_k = FK_TEST; 20126 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 20127 L_2509B61D: 20128 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 20129 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 20130 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 20131 L_2509B62C: 20132 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20133 eax = 0; /* 0x2509B62C: xor eax, eax */ 20134 _cf = 0; 20135 _flag_k = FK_TEST; 20136 L_2509B62E: 20137 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 20138 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 20139 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 20140 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 20141 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 20142 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 20143 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 20144 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 20145 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 20146 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 20147 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 20148 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20150 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 20151 _flag_k = FK_CMP; 20152 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 20153 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20154 edx = (uint32_t)((int32_t)edx >> 2u); 20155 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 20156 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 20157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20158 _flag_k = FK_CMP; 20159 edi = eax; /* 0x2509B659: mov edi, eax */ 20160 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 20161 L_2509B661: 20162 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 20163 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 20164 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 20165 _cf = 0; 20166 _flag_k = FK_TEST; 20167 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 20168 L_2509B668: 20169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20171 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 20172 _flag_k = FK_CMP; 20173 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 20174 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20175 eax = (uint32_t)((int32_t)eax >> 2u); 20176 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 20177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20179 _flag_k = FK_CMP; 20180 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 20181 L_2509B672: 20182 ecx = esi; /* 0x2509B672: mov ecx, esi */ 20183 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 20184 RECOMP_FLAGS_IN(); 20185 ebx = eax; /* 0x2509B679: mov ebx, eax */ 20186 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 20187 L_2509B67D: 20188 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 20189 L_2509B682: 20190 ecx = esi; /* 0x2509B682: mov ecx, esi */ 20191 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 20192 RECOMP_FLAGS_IN(); 20193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 20194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20195 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 20196 _flag_k = FK_ADD; 20197 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 20198 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 20199 L_2509B690: 20200 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20201 eax = 0; /* 0x2509B690: xor eax, eax */ 20202 _cf = 0; 20203 _flag_k = FK_TEST; 20204 L_2509B692: 20205 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 20206 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20207 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 20208 PUSH32(esp, eax); /* 0x2509B695: push eax */ 20209 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 20210 RECOMP_FLAGS_IN(); 20211 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 20212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20214 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 20215 _flag_k = FK_ADD; 20216 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 20217 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 20218 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 20219 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 20220 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 20221 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 20222 RECOMP_FLAGS_IN(); 20223 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 20224 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 20225 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 20226 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 20227 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 20228 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 20229 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 20230 RECOMP_FLAGS_IN(); 20231 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 20232 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 20233 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 20234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20235 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 20236 _flag_k = FK_ADD; 20237 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 20238 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 20239 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 20240 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 20241 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 20242 RECOMP_FLAGS_IN(); 20243 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 20244 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 20245 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 20246 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 20247 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 20248 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 20249 RECOMP_FLAGS_IN(); 20250 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 20251 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 20252 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 20253 RECOMP_FLAGS_IN(); 20254 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 20255 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 20256 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20258 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 20259 _flag_k = FK_ADD; 20260 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 20261 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 20262 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 20263 RECOMP_FLAGS_IN(); 20264 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 20265 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 20266 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 20267 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 20268 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20269 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 20270 _flag_k = FK_INC; 20271 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 20272 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 20273 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 20274 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20275 edi = edi + 1; /* 0x2509B713: inc edi */ 20276 _flag_k = FK_INC; 20277 RECOMP_BACKEDGE(); 20278 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 20279 L_2509B719: 20280 ecx = eax; /* 0x2509B719: mov ecx, eax */ 20281 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 20282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20283 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 20284 _flag_k = FK_CMP; 20285 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 20286 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20287 ecx = (uint32_t)((int32_t)ecx >> 2u); 20288 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 20289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20291 _flag_k = FK_CMP; 20292 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 20293 L_2509B725: 20294 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 20295 PUSH32(esp, edx); /* 0x2509B728: push edx */ 20296 PUSH32(esp, eax); /* 0x2509B729: push eax */ 20297 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 20298 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 20299 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 20300 RECOMP_FLAGS_IN(); 20301 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 20302 edx = eax; /* 0x2509B735: mov edx, eax */ 20303 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 20304 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 20305 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 20306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20307 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 20308 _flag_k = FK_CMP; 20309 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 20310 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20311 edx = (uint32_t)((int32_t)edx >> 2u); 20312 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 20313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20315 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 20316 _flag_k = FK_CMP; 20317 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 20318 PUSH32(esp, eax); /* 0x2509B748: push eax */ 20319 ecx = esi; /* 0x2509B749: mov ecx, esi */ 20320 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 20321 RECOMP_FLAGS_IN(); 20322 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 20323 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 20324 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20326 _flag_k = FK_CMP; 20327 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 20328 L_2509B757: 20329 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 20330 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 20331 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 20332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20333 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 20334 _flag_k = FK_ADD; 20335 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 20336 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20338 _flag_k = FK_CMP; 20339 RECOMP_BACKEDGE(); 20340 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 20341 L_2509B763: 20342 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 20343 L_2509B765: 20344 PUSH32(esp, eax); /* 0x2509B765: push eax */ 20345 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 20346 PUSH32(esp, eax); /* 0x2509B769: push eax */ 20347 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 20348 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 20349 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 20350 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 20351 RECOMP_FLAGS_IN(); 20352 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 20353 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 20354 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 20355 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20357 _flag_k = FK_CMP; 20358 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 20359 L_2509B77F: 20360 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 20361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 20362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20363 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 20364 _flag_k = FK_CMP; 20365 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 20366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20367 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 20368 _flag_k = FK_CMP; 20369 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 20370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20372 _flag_k = FK_CMP; 20373 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 20374 RECOMP_BACKEDGE(); 20375 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 20376 L_2509B78E: 20377 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 20378 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 20379 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20381 _flag_k = FK_CMP; 20382 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 20383 L_2509B795: 20384 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 20385 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 20386 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 20387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20388 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 20389 _flag_k = FK_ADD; 20390 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 20391 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20393 _flag_k = FK_CMP; 20394 RECOMP_BACKEDGE(); 20395 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 20396 L_2509B7A1: 20397 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 20398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20399 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 20400 _flag_k = FK_ADD; 20401 L_2509B7A5: 20402 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 20403 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 20404 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20405 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 20406 _flag_k = FK_INC; 20407 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 20408 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20409 edi = edi + 1; /* 0x2509B7AF: inc edi */ 20410 _flag_k = FK_INC; 20411 RECOMP_BACKEDGE(); 20412 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 20413 L_2509B7B5: 20414 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 20415 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 20416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20417 _cf = 0; 20418 _flag_k = FK_TEST; 20419 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 20420 L_2509B7BC: 20421 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 20422 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 20423 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 20424 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 20425 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 20426 RECOMP_FLAGS_IN(); 20427 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 20428 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 20429 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 20430 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 20431 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 20432 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 20433 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 20434 RECOMP_FLAGS_IN(); 20435 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 20436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20437 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 20438 _flag_k = FK_ADD; 20439 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 20440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20441 _cf = 0; 20442 _flag_k = FK_TEST; 20443 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 20444 L_2509B7E7: 20445 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 20446 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 20447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20448 _cf = 0; 20449 _flag_k = FK_TEST; 20450 RECOMP_BACKEDGE(); 20451 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 20452 L_2509B7EE: 20453 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 20454 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 20455 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 20456 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 20457 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 20458 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 20459 RECOMP_FLAGS_IN(); 20460 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 20461 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 20462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 20463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20464 _flag_k = FK_CMP; 20465 RECOMP_BACKEDGE(); 20466 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 20467 L_2509B814: 20468 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 20469 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 20470 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20471 edi = 0; /* 0x2509B81A: xor edi, edi */ 20472 _cf = 0; 20473 _flag_k = FK_TEST; 20474 L_2509B81C: 20475 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 20476 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 20477 _flag_k = FK_INC; 20478 RECOMP_BACKEDGE(); 20479 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 20480 L_2509B822: 20481 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 20482 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 20483 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 20484 esp = ebp; /* 0x2509B825: mov esp, ebp */ 20485 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 20486 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 20487 RECOMP_REGS_OUT(); 20488 } 20489 20490 void sub_2509B7A1(void) { 20491 int _fpu_cmp = 0; 20492 uint32_t _cf = 0; 20493 int _df = 1; 20494 uint32_t _flag_k = FK_NONE; 20495 uint32_t _flag_a = 0, _flag_b = 0; 20496 uint32_t _itail_tgt = 0; 20497 RECOMP_REGS_LOCALS 20498 RECOMP_ENTER(0x2509B7A1u); 20499 20500 goto L_2509B7A1; 20501 L_2509B51F: 20502 ecx = MEM32(ebp + 0x8); /* 0x2509B51F: mov ecx, dword ptr [ebp + 8] */ 20503 eax = MEM32(ecx + 0x4); /* 0x2509B522: mov eax, dword ptr [ecx + 4] */ 20504 /* cmp eax, edi */ /* 0x2509B525: cmp eax, edi */ 20505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20507 _flag_k = FK_CMP; 20508 MEM32(ebp + (-0x14)) = ebx; /* 0x2509B527: mov dword ptr [ebp - 0x14], ebx */ 20509 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B52A: je 0x2509b822 */ 20510 L_2509B530: 20511 edx = MEM32(ecx + 0x8); /* 0x2509B530: mov edx, dword ptr [ecx + 8] */ 20512 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20514 edx = edx - eax; /* 0x2509B533: sub edx, eax */ 20515 _flag_k = FK_CMP; 20516 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B535: sar edx, 2 */ 20517 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20518 edx = (uint32_t)((int32_t)edx >> 2u); 20519 /* cmp ebx, edx */ /* 0x2509B538: cmp ebx, edx */ 20520 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 20521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20522 _flag_k = FK_CMP; 20523 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B822; /* 0x2509B53A: jae 0x2509b822 */ 20524 L_2509B540: 20525 eax = MEM32(eax + ebx * 4); /* 0x2509B540: mov eax, dword ptr [eax + ebx*4] */ 20526 ecx = MEM32(eax); /* 0x2509B543: mov ecx, dword ptr [eax] */ 20527 edx = MEM32(eax + 0x4); /* 0x2509B545: mov edx, dword ptr [eax + 4] */ 20528 eax = MEM32(esi + 0x10); /* 0x2509B548: mov eax, dword ptr [esi + 0x10] */ 20529 MEM32(ebp + (-0x48)) = eax; /* 0x2509B54B: mov dword ptr [ebp - 0x48], eax */ 20530 MEM32(ebp + (-0x44)) = eax; /* 0x2509B54E: mov dword ptr [ebp - 0x44], eax */ 20531 eax = ebp + (-0x48); /* 0x2509B551: lea eax, [ebp - 0x48] */ 20532 MEM32(ebp + (-0x18)) = ecx; /* 0x2509B554: mov dword ptr [ebp - 0x18], ecx */ 20533 PUSH32(esp, eax); /* 0x2509B557: push eax */ 20534 ecx = ebp + (-0x50); /* 0x2509B558: lea ecx, [ebp - 0x50] */ 20535 MEM32(ebp + (-0x1C)) = edx; /* 0x2509B55B: mov dword ptr [ebp - 0x1c], edx */ 20536 RECOMP_ICALL(0x25098250u); /* 0x2509B55E: call 0x25098250 */ /* not lifted */ 20537 RECOMP_FLAGS_IN(); 20538 eax = MEM32(ebp + (-0x50)); /* 0x2509B563: mov eax, dword ptr [ebp - 0x50] */ 20539 ecx = MEM32(ebp + (-0x4C)); /* 0x2509B566: mov ecx, dword ptr [ebp - 0x4c] */ 20540 PUSH32(esp, edi); /* 0x2509B569: push edi */ 20541 PUSH32(esp, 0x251B2970u); /* 0x2509B56A: push 0x251b2970 */ 20542 PUSH32(esp, 0x251B2970u); /* 0x2509B56F: push 0x251b2970 */ 20543 PUSH32(esp, edi); /* 0x2509B574: push edi */ 20544 PUSH32(esp, eax); /* 0x2509B575: push eax */ 20545 MEM32(ebp + (-0x30)) = eax; /* 0x2509B576: mov dword ptr [ebp - 0x30], eax */ 20546 MEM32(ebp + (-0x2C)) = ecx; /* 0x2509B579: mov dword ptr [ebp - 0x2c], ecx */ 20547 RECOMP_ICALL(0x251381ACu); /* 0x2509B57C: call 0x251381ac */ /* not lifted */ 20548 RECOMP_FLAGS_IN(); 20549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 20550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20551 esp = esp + 0x14u; /* 0x2509B581: add esp, 0x14 */ 20552 _flag_k = FK_ADD; 20553 /* test eax, eax */ /* 0x2509B584: test eax, eax */ 20554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20555 _cf = 0; 20556 _flag_k = FK_TEST; 20557 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B590; /* 0x2509B586: jne 0x2509b590 */ 20558 L_2509B588: 20559 ecx = ebp + (-0x30); /* 0x2509B588: lea ecx, [ebp - 0x30] */ 20560 RECOMP_ICALL(0x250982C0u); /* 0x2509B58B: call 0x250982c0 */ /* not lifted */ 20561 RECOMP_FLAGS_IN(); 20562 L_2509B590: 20563 edx = ebp + (-0x38); /* 0x2509B590: lea edx, [ebp - 0x38] */ 20564 PUSH32(esp, edx); /* 0x2509B593: push edx */ 20565 ecx = ebp + (-0x40); /* 0x2509B594: lea ecx, [ebp - 0x40] */ 20566 MEM32(ebp + (-0x8)) = edi; /* 0x2509B597: mov dword ptr [ebp - 8], edi */ 20567 MEM32(ebp + (-0x38)) = edi; /* 0x2509B59A: mov dword ptr [ebp - 0x38], edi */ 20568 MEM32(ebp + (-0x34)) = edi; /* 0x2509B59D: mov dword ptr [ebp - 0x34], edi */ 20569 RECOMP_ICALL(0x25098250u); /* 0x2509B5A0: call 0x25098250 */ /* not lifted */ 20570 RECOMP_FLAGS_IN(); 20571 eax = MEM32(ebp + (-0x30)); /* 0x2509B5A5: mov eax, dword ptr [ebp - 0x30] */ 20572 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B5A8: cmp eax, dword ptr [ebp - 0x40] */ 20573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 20574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20575 _flag_k = FK_CMP; 20576 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B81C; /* 0x2509B5AB: je 0x2509b81c */ 20577 L_2509B5B1: 20578 goto L_2509B5B5; /* 0x2509B5B1: jmp 0x2509b5b5 */ 20579 L_2509B5B3: 20580 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20581 edi = 0; /* 0x2509B5B3: xor edi, edi */ 20582 _cf = 0; 20583 _flag_k = FK_TEST; 20584 L_2509B5B5: 20585 ebx = MEM32(eax + 0x1F0); /* 0x2509B5B5: mov ebx, dword ptr [eax + 0x1f0] */ 20586 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x44u); 20587 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20588 ebx = ebx + 0x44u; /* 0x2509B5BB: add ebx, 0x44 */ 20589 _flag_k = FK_ADD; 20590 MEM32(ebp + (-0x28)) = ebx; /* 0x2509B5BE: mov dword ptr [ebp - 0x28], ebx */ 20591 L_2509B5C1: 20592 eax = MEM32(ebx + 0x4); /* 0x2509B5C1: mov eax, dword ptr [ebx + 4] */ 20593 /* test eax, eax */ /* 0x2509B5C4: test eax, eax */ 20594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20595 _cf = 0; 20596 _flag_k = FK_TEST; 20597 MEM32(ebp + (-0xC)) = edi; /* 0x2509B5C6: mov dword ptr [ebp - 0xc], edi */ 20598 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5C9: je 0x2509b7b5 */ 20599 L_2509B5CF: 20600 ecx = MEM32(ebx + 0x8); /* 0x2509B5CF: mov ecx, dword ptr [ebx + 8] */ 20601 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 20602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20603 ecx = ecx - eax; /* 0x2509B5D2: sub ecx, eax */ 20604 _flag_k = FK_CMP; 20605 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B5D4: sar ecx, 2 */ 20606 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20607 ecx = (uint32_t)((int32_t)ecx >> 2u); 20608 /* cmp edi, ecx */ /* 0x2509B5D7: cmp edi, ecx */ 20609 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 20610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20611 _flag_k = FK_CMP; 20612 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B7B5; /* 0x2509B5D9: jae 0x2509b7b5 */ 20613 L_2509B5DF: 20614 edx = MEM32(ebp + (-0x18)); /* 0x2509B5DF: mov edx, dword ptr [ebp - 0x18] */ 20615 /* cmp MEM32(ebp + (-0x8)), edx */ /* 0x2509B5E2: cmp dword ptr [ebp - 8], edx */ 20616 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(edx); 20617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20618 _flag_k = FK_CMP; 20619 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B7A5; /* 0x2509B5E5: jne 0x2509b7a5 */ 20620 L_2509B5EB: 20621 eax = MEM32(ebp + (-0x1C)); /* 0x2509B5EB: mov eax, dword ptr [ebp - 0x1c] */ 20622 MEM32(ebp + (-0x58)) = 0x000F6954u; /* 0x2509B5EE: mov dword ptr [ebp - 0x58], 0xf6954 */ 20623 MEM32(ebp + (-0x54)) = eax; /* 0x2509B5F5: mov dword ptr [ebp - 0x54], eax */ 20624 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x2509B5F8: call dword ptr [0x251515d8] */ 20625 RECOMP_FLAGS_IN(); 20626 edx = MEM32(eax); /* 0x2509B5FE: mov edx, dword ptr [eax] */ 20627 PUSH32(esp, 3); /* 0x2509B600: push 3 */ 20628 PUSH32(esp, 1); /* 0x2509B602: push 1 */ 20629 ecx = ebp + (-0x58); /* 0x2509B604: lea ecx, [ebp - 0x58] */ 20630 PUSH32(esp, ecx); /* 0x2509B607: push ecx */ 20631 ecx = eax; /* 0x2509B608: mov ecx, eax */ 20632 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x2509B60A: call dword ptr [edx + 0x24] */ 20633 RECOMP_FLAGS_IN(); 20634 PUSH32(esp, 8); /* 0x2509B60D: push 8 */ 20635 esi = eax; /* 0x2509B60F: mov esi, eax */ 20636 RECOMP_ICALL(0x251380D0u); /* 0x2509B611: call 0x251380d0 */ /* not lifted */ 20637 RECOMP_FLAGS_IN(); 20638 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20640 esp = esp + 4; /* 0x2509B616: add esp, 4 */ 20641 _flag_k = FK_ADD; 20642 /* test eax, eax */ /* 0x2509B619: test eax, eax */ 20643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20644 _cf = 0; 20645 _flag_k = FK_TEST; 20646 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B62C; /* 0x2509B61B: je 0x2509b62c */ 20647 L_2509B61D: 20648 MEM32(eax) = 0; /* 0x2509B61D: mov dword ptr [eax], 0 */ 20649 MEM32(eax + 0x4) = 0; /* 0x2509B623: mov dword ptr [eax + 4], 0 */ 20650 goto L_2509B62E; /* 0x2509B62A: jmp 0x2509b62e */ 20651 L_2509B62C: 20652 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20653 eax = 0; /* 0x2509B62C: xor eax, eax */ 20654 _cf = 0; 20655 _flag_k = FK_TEST; 20656 L_2509B62E: 20657 edx = MEM32(ebx + 0x4); /* 0x2509B62E: mov edx, dword ptr [ebx + 4] */ 20658 MEM32(ebp + (-0x4)) = eax; /* 0x2509B631: mov dword ptr [ebp - 4], eax */ 20659 ecx = MEM32(edx + edi * 4); /* 0x2509B634: mov ecx, dword ptr [edx + edi*4] */ 20660 edx = MEM32(ecx + 0x160); /* 0x2509B637: mov edx, dword ptr [ecx + 0x160] */ 20661 ecx = MEM32(ebp + (-0x10)); /* 0x2509B63D: mov ecx, dword ptr [ebp - 0x10] */ 20662 MEM32(eax) = edx; /* 0x2509B640: mov dword ptr [eax], edx */ 20663 eax = MEM32(ebp + (-0x4)); /* 0x2509B642: mov eax, dword ptr [ebp - 4] */ 20664 MEM32(eax + 0x4) = esi; /* 0x2509B645: mov dword ptr [eax + 4], esi */ 20665 esi = MEM32(ecx + 0x4C); /* 0x2509B648: mov esi, dword ptr [ecx + 0x4c] */ 20666 eax = MEM32(esi + 0x8); /* 0x2509B64B: mov eax, dword ptr [esi + 8] */ 20667 edx = MEM32(esi + 0xC); /* 0x2509B64E: mov edx, dword ptr [esi + 0xc] */ 20668 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 20669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20670 edx = edx - eax; /* 0x2509B651: sub edx, eax */ 20671 _flag_k = FK_CMP; 20672 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B653: sar edx, 2 */ 20673 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20674 edx = (uint32_t)((int32_t)edx >> 2u); 20675 /* cmp edx, 1 */ /* 0x2509B656: cmp edx, 1 */ 20676 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 20677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20678 _flag_k = FK_CMP; 20679 edi = eax; /* 0x2509B659: mov edi, eax */ 20680 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B719; /* 0x2509B65B: jae 0x2509b719 */ 20681 L_2509B661: 20682 ecx = MEM32(esi + 0x4); /* 0x2509B661: mov ecx, dword ptr [esi + 4] */ 20683 /* test ecx, ecx */ /* 0x2509B664: test ecx, ecx */ 20684 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 20685 _cf = 0; 20686 _flag_k = FK_TEST; 20687 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B666: je 0x2509b67d */ 20688 L_2509B668: 20689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 20690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20691 eax = eax - ecx; /* 0x2509B668: sub eax, ecx */ 20692 _flag_k = FK_CMP; 20693 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2509B66A: sar eax, 2 */ 20694 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20695 eax = (uint32_t)((int32_t)eax >> 2u); 20696 /* cmp eax, 1 */ /* 0x2509B66D: cmp eax, 1 */ 20697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 20698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20699 _flag_k = FK_CMP; 20700 if (CMP_BE(_flag_a, _flag_b)) goto L_2509B67D; /* 0x2509B670: jbe 0x2509b67d */ 20701 L_2509B672: 20702 ecx = esi; /* 0x2509B672: mov ecx, esi */ 20703 RECOMP_ICALL(0x251262D0u); /* 0x2509B674: call 0x251262d0 */ /* not lifted */ 20704 RECOMP_FLAGS_IN(); 20705 ebx = eax; /* 0x2509B679: mov ebx, eax */ 20706 goto L_2509B682; /* 0x2509B67B: jmp 0x2509b682 */ 20707 L_2509B67D: 20708 ebx = 1; /* 0x2509B67D: mov ebx, 1 */ 20709 L_2509B682: 20710 ecx = esi; /* 0x2509B682: mov ecx, esi */ 20711 RECOMP_ICALL(0x251262D0u); /* 0x2509B684: call 0x251262d0 */ /* not lifted */ 20712 RECOMP_FLAGS_IN(); 20713 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 20714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20715 eax = eax + ebx; /* 0x2509B689: add eax, ebx */ 20716 _flag_k = FK_ADD; 20717 MEM32(ebp + (-0x24)) = eax; /* 0x2509B68B: mov dword ptr [ebp - 0x24], eax */ 20718 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_NS)) goto L_2509B692; /* 0x2509B68E: jns 0x2509b692 */ 20719 L_2509B690: 20720 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20721 eax = 0; /* 0x2509B690: xor eax, eax */ 20722 _cf = 0; 20723 _flag_k = FK_TEST; 20724 L_2509B692: 20725 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x2509B692: shl eax, 2 */ 20726 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20727 eax = eax << 2u; /* 0x2509B692: shl eax, 2 */ 20728 PUSH32(esp, eax); /* 0x2509B695: push eax */ 20729 RECOMP_ICALL(0x251380D0u); /* 0x2509B696: call 0x251380d0 */ /* not lifted */ 20730 RECOMP_FLAGS_IN(); 20731 ecx = MEM32(esi + 0x4); /* 0x2509B69B: mov ecx, dword ptr [esi + 4] */ 20732 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20734 esp = esp + 4; /* 0x2509B69E: add esp, 4 */ 20735 _flag_k = FK_ADD; 20736 ebx = eax; /* 0x2509B6A1: mov ebx, eax */ 20737 PUSH32(esp, ebx); /* 0x2509B6A3: push ebx */ 20738 PUSH32(esp, edi); /* 0x2509B6A4: push edi */ 20739 PUSH32(esp, ecx); /* 0x2509B6A5: push ecx */ 20740 ecx = esi; /* 0x2509B6A6: mov ecx, esi */ 20741 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6A8: call 0x250e3d40 */ /* not lifted */ 20742 RECOMP_FLAGS_IN(); 20743 edx = ebp + (-0x4); /* 0x2509B6AD: lea edx, [ebp - 4] */ 20744 PUSH32(esp, edx); /* 0x2509B6B0: push edx */ 20745 PUSH32(esp, 1); /* 0x2509B6B1: push 1 */ 20746 PUSH32(esp, eax); /* 0x2509B6B3: push eax */ 20747 ecx = esi; /* 0x2509B6B4: mov ecx, esi */ 20748 MEM32(ebp + (-0x20)) = eax; /* 0x2509B6B6: mov dword ptr [ebp - 0x20], eax */ 20749 RECOMP_ICALL(0x250E3D70u); /* 0x2509B6B9: call 0x250e3d70 */ /* not lifted */ 20750 RECOMP_FLAGS_IN(); 20751 eax = MEM32(ebp + (-0x20)); /* 0x2509B6BE: mov eax, dword ptr [ebp - 0x20] */ 20752 ecx = MEM32(esi + 0x8); /* 0x2509B6C1: mov ecx, dword ptr [esi + 8] */ 20753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 20754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20755 eax = eax + 4; /* 0x2509B6C4: add eax, 4 */ 20756 _flag_k = FK_ADD; 20757 PUSH32(esp, eax); /* 0x2509B6C7: push eax */ 20758 PUSH32(esp, ecx); /* 0x2509B6C8: push ecx */ 20759 PUSH32(esp, edi); /* 0x2509B6C9: push edi */ 20760 ecx = esi; /* 0x2509B6CA: mov ecx, esi */ 20761 RECOMP_ICALL(0x250E3D40u); /* 0x2509B6CC: call 0x250e3d40 */ /* not lifted */ 20762 RECOMP_FLAGS_IN(); 20763 edx = MEM32(esi + 0x8); /* 0x2509B6D1: mov edx, dword ptr [esi + 8] */ 20764 eax = MEM32(esi + 0x4); /* 0x2509B6D4: mov eax, dword ptr [esi + 4] */ 20765 PUSH32(esp, edx); /* 0x2509B6D7: push edx */ 20766 PUSH32(esp, eax); /* 0x2509B6D8: push eax */ 20767 ecx = esi; /* 0x2509B6D9: mov ecx, esi */ 20768 RECOMP_ICALL(0x25093260u); /* 0x2509B6DB: call 0x25093260 */ /* not lifted */ 20769 RECOMP_FLAGS_IN(); 20770 ecx = MEM32(esi + 0x4); /* 0x2509B6E0: mov ecx, dword ptr [esi + 4] */ 20771 PUSH32(esp, ecx); /* 0x2509B6E3: push ecx */ 20772 RECOMP_ICALL(0x25137EECu); /* 0x2509B6E4: call 0x25137eec */ /* not lifted */ 20773 RECOMP_FLAGS_IN(); 20774 edx = MEM32(ebp + (-0x24)); /* 0x2509B6E9: mov edx, dword ptr [ebp - 0x24] */ 20775 eax = ebx + edx * 4; /* 0x2509B6EC: lea eax, [ebx + edx*4] */ 20776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 20777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20778 esp = esp + 4; /* 0x2509B6EF: add esp, 4 */ 20779 _flag_k = FK_ADD; 20780 ecx = esi; /* 0x2509B6F2: mov ecx, esi */ 20781 MEM32(esi + 0xC) = eax; /* 0x2509B6F4: mov dword ptr [esi + 0xc], eax */ 20782 RECOMP_ICALL(0x251262D0u); /* 0x2509B6F7: call 0x251262d0 */ /* not lifted */ 20783 RECOMP_FLAGS_IN(); 20784 edi = MEM32(ebp + (-0xC)); /* 0x2509B6FC: mov edi, dword ptr [ebp - 0xc] */ 20785 ecx = ebx + eax * 4 + 0x4; /* 0x2509B6FF: lea ecx, [ebx + eax*4 + 4] */ 20786 MEM32(esi + 0x8) = ecx; /* 0x2509B703: mov dword ptr [esi + 8], ecx */ 20787 ecx = MEM32(ebp + (-0x8)); /* 0x2509B706: mov ecx, dword ptr [ebp - 8] */ 20788 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20789 ecx = ecx + 1; /* 0x2509B709: inc ecx */ 20790 _flag_k = FK_INC; 20791 MEM32(esi + 0x4) = ebx; /* 0x2509B70A: mov dword ptr [esi + 4], ebx */ 20792 ebx = MEM32(ebp + (-0x28)); /* 0x2509B70D: mov ebx, dword ptr [ebp - 0x28] */ 20793 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B710: mov dword ptr [ebp - 8], ecx */ 20794 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20795 edi = edi + 1; /* 0x2509B713: inc edi */ 20796 _flag_k = FK_INC; 20797 RECOMP_BACKEDGE(); 20798 goto L_2509B5C1; /* 0x2509B714: jmp 0x2509b5c1 */ 20799 L_2509B719: 20800 ecx = eax; /* 0x2509B719: mov ecx, eax */ 20801 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 20802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20803 ecx = ecx - edi; /* 0x2509B71B: sub ecx, edi */ 20804 _flag_k = FK_CMP; 20805 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2509B71D: sar ecx, 2 */ 20806 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20807 ecx = (uint32_t)((int32_t)ecx >> 2u); 20808 /* cmp ecx, 1 */ /* 0x2509B720: cmp ecx, 1 */ 20809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20811 _flag_k = FK_CMP; 20812 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B765; /* 0x2509B723: jae 0x2509b765 */ 20813 L_2509B725: 20814 edx = edi + 0x4; /* 0x2509B725: lea edx, [edi + 4] */ 20815 PUSH32(esp, edx); /* 0x2509B728: push edx */ 20816 PUSH32(esp, eax); /* 0x2509B729: push eax */ 20817 PUSH32(esp, edi); /* 0x2509B72A: push edi */ 20818 ecx = esi; /* 0x2509B72B: mov ecx, esi */ 20819 RECOMP_ICALL(0x250E3D40u); /* 0x2509B72D: call 0x250e3d40 */ /* not lifted */ 20820 RECOMP_FLAGS_IN(); 20821 eax = MEM32(esi + 0x8); /* 0x2509B732: mov eax, dword ptr [esi + 8] */ 20822 edx = eax; /* 0x2509B735: mov edx, eax */ 20823 ecx = ebp + (-0x4); /* 0x2509B737: lea ecx, [ebp - 4] */ 20824 PUSH32(esp, ecx); /* 0x2509B73A: push ecx */ 20825 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 20826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20827 edx = edx - edi; /* 0x2509B73B: sub edx, edi */ 20828 _flag_k = FK_CMP; 20829 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B73D: sar edx, 2 */ 20830 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 20831 edx = (uint32_t)((int32_t)edx >> 2u); 20832 ecx = 1; /* 0x2509B740: mov ecx, 1 */ 20833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 20834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20835 ecx = ecx - edx; /* 0x2509B745: sub ecx, edx */ 20836 _flag_k = FK_CMP; 20837 PUSH32(esp, ecx); /* 0x2509B747: push ecx */ 20838 PUSH32(esp, eax); /* 0x2509B748: push eax */ 20839 ecx = esi; /* 0x2509B749: mov ecx, esi */ 20840 RECOMP_ICALL(0x250E3D70u); /* 0x2509B74B: call 0x250e3d70 */ /* not lifted */ 20841 RECOMP_FLAGS_IN(); 20842 eax = MEM32(esi + 0x8); /* 0x2509B750: mov eax, dword ptr [esi + 8] */ 20843 /* cmp edi, eax */ /* 0x2509B753: cmp edi, eax */ 20844 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20846 _flag_k = FK_CMP; 20847 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B755: je 0x2509b7a1 */ 20848 L_2509B757: 20849 edx = MEM32(ebp + (-0x4)); /* 0x2509B757: mov edx, dword ptr [ebp - 4] */ 20850 MEM32(edi) = edx; /* 0x2509B75A: mov dword ptr [edi], edx */ 20851 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 20852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20853 edi = edi + 4; /* 0x2509B75C: add edi, 4 */ 20854 _flag_k = FK_ADD; 20855 /* cmp edi, eax */ /* 0x2509B75F: cmp edi, eax */ 20856 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20858 _flag_k = FK_CMP; 20859 RECOMP_BACKEDGE(); 20860 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B757; /* 0x2509B761: jne 0x2509b757 */ 20861 L_2509B763: 20862 goto L_2509B7A1; /* 0x2509B763: jmp 0x2509b7a1 */ 20863 L_2509B765: 20864 PUSH32(esp, eax); /* 0x2509B765: push eax */ 20865 ecx = eax + (-0x4); /* 0x2509B766: lea ecx, [eax - 4] */ 20866 PUSH32(esp, eax); /* 0x2509B769: push eax */ 20867 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B76A: mov dword ptr [ebp - 0x24], ecx */ 20868 PUSH32(esp, ecx); /* 0x2509B76D: push ecx */ 20869 ecx = esi; /* 0x2509B76E: mov ecx, esi */ 20870 RECOMP_ICALL(0x250E3D40u); /* 0x2509B770: call 0x250e3d40 */ /* not lifted */ 20871 RECOMP_FLAGS_IN(); 20872 ecx = MEM32(esi + 0x8); /* 0x2509B775: mov ecx, dword ptr [esi + 8] */ 20873 eax = ecx + (-0x4); /* 0x2509B778: lea eax, [ecx - 4] */ 20874 /* cmp edi, eax */ /* 0x2509B77B: cmp edi, eax */ 20875 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20877 _flag_k = FK_CMP; 20878 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B78E; /* 0x2509B77D: je 0x2509b78e */ 20879 L_2509B77F: 20880 edx = MEM32(eax + (-0x4)); /* 0x2509B77F: mov edx, dword ptr [eax - 4] */ 20881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 20882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20883 eax = eax - 4; /* 0x2509B782: sub eax, 4 */ 20884 _flag_k = FK_CMP; 20885 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 20886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20887 ecx = ecx - 4; /* 0x2509B785: sub ecx, 4 */ 20888 _flag_k = FK_CMP; 20889 /* cmp eax, edi */ /* 0x2509B788: cmp eax, edi */ 20890 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 20891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20892 _flag_k = FK_CMP; 20893 MEM32(ecx) = edx; /* 0x2509B78A: mov dword ptr [ecx], edx */ 20894 RECOMP_BACKEDGE(); 20895 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B77F; /* 0x2509B78C: jne 0x2509b77f */ 20896 L_2509B78E: 20897 eax = edi + 0x4; /* 0x2509B78E: lea eax, [edi + 4] */ 20898 /* cmp edi, eax */ /* 0x2509B791: cmp edi, eax */ 20899 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20901 _flag_k = FK_CMP; 20902 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B7A1; /* 0x2509B793: je 0x2509b7a1 */ 20903 L_2509B795: 20904 ecx = MEM32(ebp + (-0x4)); /* 0x2509B795: mov ecx, dword ptr [ebp - 4] */ 20905 MEM32(edi) = ecx; /* 0x2509B798: mov dword ptr [edi], ecx */ 20906 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 20907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20908 edi = edi + 4; /* 0x2509B79A: add edi, 4 */ 20909 _flag_k = FK_ADD; 20910 /* cmp edi, eax */ /* 0x2509B79D: cmp edi, eax */ 20911 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 20912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20913 _flag_k = FK_CMP; 20914 RECOMP_BACKEDGE(); 20915 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B795; /* 0x2509B79F: jne 0x2509b795 */ 20916 L_2509B7A1: 20917 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 20918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20919 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x2509B7A1: add dword ptr [esi + 8], 4 */ 20920 _flag_k = FK_ADD; 20921 L_2509B7A5: 20922 ecx = MEM32(ebp + (-0x8)); /* 0x2509B7A5: mov ecx, dword ptr [ebp - 8] */ 20923 edi = MEM32(ebp + (-0xC)); /* 0x2509B7A8: mov edi, dword ptr [ebp - 0xc] */ 20924 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 20925 ecx = ecx + 1; /* 0x2509B7AB: inc ecx */ 20926 _flag_k = FK_INC; 20927 MEM32(ebp + (-0x8)) = ecx; /* 0x2509B7AC: mov dword ptr [ebp - 8], ecx */ 20928 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 20929 edi = edi + 1; /* 0x2509B7AF: inc edi */ 20930 _flag_k = FK_INC; 20931 RECOMP_BACKEDGE(); 20932 goto L_2509B5C1; /* 0x2509B7B0: jmp 0x2509b5c1 */ 20933 L_2509B7B5: 20934 eax = MEM32(ebp + (-0x30)); /* 0x2509B7B5: mov eax, dword ptr [ebp - 0x30] */ 20935 /* test eax, eax */ /* 0x2509B7B8: test eax, eax */ 20936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20937 _cf = 0; 20938 _flag_k = FK_TEST; 20939 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7BA: je 0x2509b7ee */ 20940 L_2509B7BC: 20941 edx = MEM32(ebp + (-0x2C)); /* 0x2509B7BC: mov edx, dword ptr [ebp - 0x2c] */ 20942 PUSH32(esp, edx); /* 0x2509B7BF: push edx */ 20943 eax = ebp + (-0x30); /* 0x2509B7C0: lea eax, [ebp - 0x30] */ 20944 PUSH32(esp, eax); /* 0x2509B7C3: push eax */ 20945 RECOMP_ICALL(0x250E3530u); /* 0x2509B7C4: call 0x250e3530 */ /* not lifted */ 20946 RECOMP_FLAGS_IN(); 20947 ecx = MEM32(ebp + (-0x30)); /* 0x2509B7C9: mov ecx, dword ptr [ebp - 0x30] */ 20948 PUSH32(esp, 0); /* 0x2509B7CC: push 0 */ 20949 PUSH32(esp, 0x251B2970u); /* 0x2509B7CE: push 0x251b2970 */ 20950 PUSH32(esp, 0x251B2970u); /* 0x2509B7D3: push 0x251b2970 */ 20951 PUSH32(esp, 0); /* 0x2509B7D8: push 0 */ 20952 PUSH32(esp, ecx); /* 0x2509B7DA: push ecx */ 20953 RECOMP_ICALL(0x251381ACu); /* 0x2509B7DB: call 0x251381ac */ /* not lifted */ 20954 RECOMP_FLAGS_IN(); 20955 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 20956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 20957 esp = esp + 0x1Cu; /* 0x2509B7E0: add esp, 0x1c */ 20958 _flag_k = FK_ADD; 20959 /* test eax, eax */ /* 0x2509B7E3: test eax, eax */ 20960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20961 _cf = 0; 20962 _flag_k = FK_TEST; 20963 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7EE; /* 0x2509B7E5: jne 0x2509b7ee */ 20964 L_2509B7E7: 20965 eax = MEM32(ebp + (-0x30)); /* 0x2509B7E7: mov eax, dword ptr [ebp - 0x30] */ 20966 /* test eax, eax */ /* 0x2509B7EA: test eax, eax */ 20967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 20968 _cf = 0; 20969 _flag_k = FK_TEST; 20970 RECOMP_BACKEDGE(); 20971 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B7BC; /* 0x2509B7EC: jne 0x2509b7bc */ 20972 L_2509B7EE: 20973 edx = ebp + (-0x38); /* 0x2509B7EE: lea edx, [ebp - 0x38] */ 20974 PUSH32(esp, edx); /* 0x2509B7F1: push edx */ 20975 ecx = ebp + (-0x40); /* 0x2509B7F2: lea ecx, [ebp - 0x40] */ 20976 MEM32(ebp + (-0x38)) = 0; /* 0x2509B7F5: mov dword ptr [ebp - 0x38], 0 */ 20977 MEM32(ebp + (-0x34)) = 0; /* 0x2509B7FC: mov dword ptr [ebp - 0x34], 0 */ 20978 RECOMP_ICALL(0x25098250u); /* 0x2509B803: call 0x25098250 */ /* not lifted */ 20979 RECOMP_FLAGS_IN(); 20980 eax = MEM32(ebp + (-0x30)); /* 0x2509B808: mov eax, dword ptr [ebp - 0x30] */ 20981 /* cmp eax, MEM32(ebp + (-0x40)) */ /* 0x2509B80B: cmp eax, dword ptr [ebp - 0x40] */ 20982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x40))); 20983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 20984 _flag_k = FK_CMP; 20985 RECOMP_BACKEDGE(); 20986 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B5B3; /* 0x2509B80E: jne 0x2509b5b3 */ 20987 L_2509B814: 20988 ebx = MEM32(ebp + (-0x14)); /* 0x2509B814: mov ebx, dword ptr [ebp - 0x14] */ 20989 esi = MEM32(ebp + (-0x10)); /* 0x2509B817: mov esi, dword ptr [ebp - 0x10] */ 20990 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 20991 edi = 0; /* 0x2509B81A: xor edi, edi */ 20992 _cf = 0; 20993 _flag_k = FK_TEST; 20994 L_2509B81C: 20995 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 20996 ebx = ebx + 1; /* 0x2509B81C: inc ebx */ 20997 _flag_k = FK_INC; 20998 RECOMP_BACKEDGE(); 20999 goto L_2509B51F; /* 0x2509B81D: jmp 0x2509b51f */ 21000 L_2509B822: 21001 edi = POP32_VAL(esp); /* 0x2509B822: pop edi */ 21002 esi = POP32_VAL(esp); /* 0x2509B823: pop esi */ 21003 ebx = POP32_VAL(esp); /* 0x2509B824: pop ebx */ 21004 esp = ebp; /* 0x2509B825: mov esp, ebp */ 21005 ebp = POP32_VAL(esp); /* 0x2509B827: pop ebp */ 21006 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509B828: ret 4 */ 21007 RECOMP_REGS_OUT(); 21008 } 21009 21010 void sub_2509B830(void) { 21011 int _fpu_cmp = 0; 21012 uint32_t _cf = 0; 21013 int _df = 1; 21014 uint32_t _flag_k = FK_NONE; 21015 uint32_t _flag_a = 0, _flag_b = 0; 21016 uint32_t _itail_tgt = 0; 21017 RECOMP_REGS_LOCALS 21018 RECOMP_ENTER(0x2509B830u); 21019 21020 L_2509B830: 21021 PUSH32(esp, ebp); /* 0x2509B830: push ebp */ 21022 ebp = esp; /* 0x2509B831: mov ebp, esp */ 21023 PUSH32(esp, ecx); /* 0x2509B833: push ecx */ 21024 PUSH32(esp, ebx); /* 0x2509B834: push ebx */ 21025 PUSH32(esp, edi); /* 0x2509B835: push edi */ 21026 edi = ecx; /* 0x2509B836: mov edi, ecx */ 21027 eax = MEM32(edi + 0x34); /* 0x2509B838: mov eax, dword ptr [edi + 0x34] */ 21028 /* test LO8(eax), 0x10u */ /* 0x2509B83B: test al, 0x10 */ 21029 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 21030 _cf = 0; 21031 _flag_k = FK_NARROW(FK_TEST, 24); 21032 if (TEST_Z(_flag_a, _flag_b)) goto L_2509B8B3; /* 0x2509B83D: je 0x2509b8b3 */ 21033 L_2509B83F: 21034 _flag_a = (uint32_t)((eax ^ 0x10u)); _flag_b = (uint32_t)((eax ^ 0x10u)); 21035 eax = eax ^ 0x10u; /* 0x2509B83F: xor eax, 0x10 */ 21036 _cf = 0; 21037 _flag_k = FK_TEST; 21038 MEM32(edi + 0x34) = eax; /* 0x2509B842: mov dword ptr [edi + 0x34], eax */ 21039 eax = MEM32(edi + 0x4C); /* 0x2509B845: mov eax, dword ptr [edi + 0x4c] */ 21040 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21041 ebx = 0; /* 0x2509B848: xor ebx, ebx */ 21042 _cf = 0; 21043 _flag_k = FK_TEST; 21044 /* cmp eax, ebx */ /* 0x2509B84A: cmp eax, ebx */ 21045 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 21046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21047 _flag_k = FK_CMP; 21048 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B8B3; /* 0x2509B84C: je 0x2509b8b3 */ 21049 L_2509B84E: 21050 PUSH32(esp, esi); /* 0x2509B84E: push esi */ 21051 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21052 esi = 0; /* 0x2509B84F: xor esi, esi */ 21053 _cf = 0; 21054 _flag_k = FK_TEST; 21055 L_2509B851: 21056 eax = MEM32(edi + 0x4C); /* 0x2509B851: mov eax, dword ptr [edi + 0x4c] */ 21057 ecx = MEM32(eax + 0x4); /* 0x2509B854: mov ecx, dword ptr [eax + 4] */ 21058 /* cmp ecx, ebx */ /* 0x2509B857: cmp ecx, ebx */ 21059 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 21060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21061 _flag_k = FK_CMP; 21062 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B88A; /* 0x2509B859: je 0x2509b88a */ 21063 L_2509B85B: 21064 edx = MEM32(eax + 0x8); /* 0x2509B85B: mov edx, dword ptr [eax + 8] */ 21065 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 21066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21067 edx = edx - ecx; /* 0x2509B85E: sub edx, ecx */ 21068 _flag_k = FK_CMP; 21069 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B860: sar edx, 2 */ 21070 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21071 edx = (uint32_t)((int32_t)edx >> 2u); 21072 /* cmp esi, edx */ /* 0x2509B863: cmp esi, edx */ 21073 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 21074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21075 _flag_k = FK_CMP; 21076 if (CMP_AE(_flag_a, _flag_b)) goto L_2509B88A; /* 0x2509B865: jae 0x2509b88a */ 21077 L_2509B867: 21078 eax = ecx; /* 0x2509B867: mov eax, ecx */ 21079 ecx = MEM32(eax + esi * 4); /* 0x2509B869: mov ecx, dword ptr [eax + esi*4] */ 21080 ecx = MEM32(ecx + 0x4); /* 0x2509B86C: mov ecx, dword ptr [ecx + 4] */ 21081 edx = MEM32(ecx); /* 0x2509B86F: mov edx, dword ptr [ecx] */ 21082 PUSH32(esp, ebx); /* 0x2509B871: push ebx */ 21083 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x2509B872: call dword ptr [edx + 0x28] */ 21084 RECOMP_FLAGS_IN(); 21085 eax = MEM32(edi + 0x4C); /* 0x2509B875: mov eax, dword ptr [edi + 0x4c] */ 21086 ecx = MEM32(eax + 0x4); /* 0x2509B878: mov ecx, dword ptr [eax + 4] */ 21087 edx = MEM32(ecx + esi * 4); /* 0x2509B87B: mov edx, dword ptr [ecx + esi*4] */ 21088 PUSH32(esp, edx); /* 0x2509B87E: push edx */ 21089 RECOMP_ICALL(0x25137EECu); /* 0x2509B87F: call 0x25137eec */ /* not lifted */ 21090 RECOMP_FLAGS_IN(); 21091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21093 esp = esp + 4; /* 0x2509B884: add esp, 4 */ 21094 _flag_k = FK_ADD; 21095 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 21096 esi = esi + 1; /* 0x2509B887: inc esi */ 21097 _flag_k = FK_INC; 21098 RECOMP_BACKEDGE(); 21099 goto L_2509B851; /* 0x2509B888: jmp 0x2509b851 */ 21100 L_2509B88A: 21101 esi = MEM32(edi + 0x4C); /* 0x2509B88A: mov esi, dword ptr [edi + 0x4c] */ 21102 /* cmp esi, ebx */ /* 0x2509B88D: cmp esi, ebx */ 21103 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 21104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21105 _flag_k = FK_CMP; 21106 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B8AF; /* 0x2509B88F: je 0x2509b8af */ 21107 L_2509B891: 21108 eax = MEM32(esi + 0x4); /* 0x2509B891: mov eax, dword ptr [esi + 4] */ 21109 PUSH32(esp, eax); /* 0x2509B894: push eax */ 21110 MEM32(ebp + (-0x4)) = eax; /* 0x2509B895: mov dword ptr [ebp - 4], eax */ 21111 RECOMP_ICALL(0x25137EECu); /* 0x2509B898: call 0x25137eec */ /* not lifted */ 21112 RECOMP_FLAGS_IN(); 21113 PUSH32(esp, esi); /* 0x2509B89D: push esi */ 21114 MEM32(esi + 0x4) = ebx; /* 0x2509B89E: mov dword ptr [esi + 4], ebx */ 21115 MEM32(esi + 0x8) = ebx; /* 0x2509B8A1: mov dword ptr [esi + 8], ebx */ 21116 MEM32(esi + 0xC) = ebx; /* 0x2509B8A4: mov dword ptr [esi + 0xc], ebx */ 21117 RECOMP_ICALL(0x25137EECu); /* 0x2509B8A7: call 0x25137eec */ /* not lifted */ 21118 RECOMP_FLAGS_IN(); 21119 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 21120 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21121 esp = esp + 8; /* 0x2509B8AC: add esp, 8 */ 21122 _flag_k = FK_ADD; 21123 L_2509B8AF: 21124 MEM32(edi + 0x4C) = ebx; /* 0x2509B8AF: mov dword ptr [edi + 0x4c], ebx */ 21125 esi = POP32_VAL(esp); /* 0x2509B8B2: pop esi */ 21126 L_2509B8B3: 21127 edi = POP32_VAL(esp); /* 0x2509B8B3: pop edi */ 21128 ebx = POP32_VAL(esp); /* 0x2509B8B4: pop ebx */ 21129 esp = ebp; /* 0x2509B8B5: mov esp, ebp */ 21130 ebp = POP32_VAL(esp); /* 0x2509B8B7: pop ebp */ 21131 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509B8B8: ret */ 21132 RECOMP_REGS_OUT(); 21133 } 21134 21135 void sub_2509B8C0(void) { 21136 int _fpu_cmp = 0; 21137 uint32_t _cf = 0; 21138 int _df = 1; 21139 uint32_t _flag_k = FK_NONE; 21140 uint32_t _flag_a = 0, _flag_b = 0; 21141 uint32_t _itail_tgt = 0; 21142 RECOMP_REGS_LOCALS 21143 RECOMP_ENTER(0x2509B8C0u); 21144 21145 L_2509B8C0: 21146 PUSH32(esp, ebp); /* 0x2509B8C0: push ebp */ 21147 ebp = esp; /* 0x2509B8C1: mov ebp, esp */ 21148 PUSH32(esp, 0xFFFFFFFFu); /* 0x2509B8C3: push -1 */ 21149 PUSH32(esp, 0x25149923u); /* 0x2509B8C5: push 0x25149923 */ 21150 eax = MEM32(FS_BASE + (0)); /* 0x2509B8CA: mov eax, dword ptr fs:[0] */ 21151 PUSH32(esp, eax); /* 0x2509B8D0: push eax */ 21152 MEM32(FS_BASE + (0)) = esp; /* 0x2509B8D1: mov dword ptr fs:[0], esp */ 21153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 21154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21155 esp = esp - 0x50u; /* 0x2509B8D8: sub esp, 0x50 */ 21156 _flag_k = FK_CMP; 21157 eax = MEM32(ebp + 0x8); /* 0x2509B8DB: mov eax, dword ptr [ebp + 8] */ 21158 PUSH32(esp, ebx); /* 0x2509B8DE: push ebx */ 21159 PUSH32(esp, edi); /* 0x2509B8DF: push edi */ 21160 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21161 edi = 0; /* 0x2509B8E0: xor edi, edi */ 21162 _cf = 0; 21163 _flag_k = FK_TEST; 21164 /* cmp eax, edi */ /* 0x2509B8E2: cmp eax, edi */ 21165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 21166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21167 _flag_k = FK_CMP; 21168 ebx = ecx; /* 0x2509B8E4: mov ebx, ecx */ 21169 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B8FC; /* 0x2509B8E6: jne 0x2509b8fc */ 21170 L_2509B8E8: 21171 edi = POP32_VAL(esp); /* 0x2509B8E8: pop edi */ 21172 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 21173 SET_LO8(eax, 0); /* 0x2509B8E9: xor al, al */ 21174 _cf = 0; 21175 _flag_k = FK_NARROW(FK_TEST, 24); 21176 ebx = POP32_VAL(esp); /* 0x2509B8EB: pop ebx */ 21177 ecx = MEM32(ebp + (-0xC)); /* 0x2509B8EC: mov ecx, dword ptr [ebp - 0xc] */ 21178 MEM32(FS_BASE + (0)) = ecx; /* 0x2509B8EF: mov dword ptr fs:[0], ecx */ 21179 esp = ebp; /* 0x2509B8F6: mov esp, ebp */ 21180 ebp = POP32_VAL(esp); /* 0x2509B8F8: pop ebp */ 21181 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509B8F9: ret 8 */ 21182 L_2509B8FC: 21183 /* cmp MEM32(ebx + 0x10), edi */ /* 0x2509B8FC: cmp dword ptr [ebx + 0x10], edi */ 21184 _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(edi); 21185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21186 _flag_k = FK_CMP; 21187 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B91E; /* 0x2509B8FF: jne 0x2509b91e */ 21188 L_2509B901: 21189 ecx = ebx; /* 0x2509B901: mov ecx, ebx */ 21190 RECOMP_ICALL(0x25099550u); /* 0x2509B903: call 0x25099550 */ /* not lifted */ 21191 RECOMP_FLAGS_IN(); 21192 /* test LO8(eax), LO8(eax) */ /* 0x2509B908: test al, al */ 21193 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 21194 _cf = 0; 21195 _flag_k = FK_NARROW(FK_TEST, 24); 21196 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B91E; /* 0x2509B90A: jne 0x2509b91e */ 21197 L_2509B90C: 21198 edi = POP32_VAL(esp); /* 0x2509B90C: pop edi */ 21199 ebx = POP32_VAL(esp); /* 0x2509B90D: pop ebx */ 21200 ecx = MEM32(ebp + (-0xC)); /* 0x2509B90E: mov ecx, dword ptr [ebp - 0xc] */ 21201 MEM32(FS_BASE + (0)) = ecx; /* 0x2509B911: mov dword ptr fs:[0], ecx */ 21202 esp = ebp; /* 0x2509B918: mov esp, ebp */ 21203 ebp = POP32_VAL(esp); /* 0x2509B91A: pop ebp */ 21204 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509B91B: ret 8 */ 21205 L_2509B91E: 21206 eax = MEM32(ebx + 0x10); /* 0x2509B91E: mov eax, dword ptr [ebx + 0x10] */ 21207 PUSH32(esp, esi); /* 0x2509B921: push esi */ 21208 MEM32(ebp + (-0x38)) = eax; /* 0x2509B922: mov dword ptr [ebp - 0x38], eax */ 21209 MEM32(ebp + (-0x34)) = eax; /* 0x2509B925: mov dword ptr [ebp - 0x34], eax */ 21210 eax = ebp + (-0x38); /* 0x2509B928: lea eax, [ebp - 0x38] */ 21211 PUSH32(esp, eax); /* 0x2509B92B: push eax */ 21212 ecx = ebp + (-0x30); /* 0x2509B92C: lea ecx, [ebp - 0x30] */ 21213 MEM8(ebp + (-0xD)) = (uint8_t)(1); /* 0x2509B92F: mov byte ptr [ebp - 0xd], 1 */ 21214 MEM32(ebp + (-0x18)) = edi; /* 0x2509B933: mov dword ptr [ebp - 0x18], edi */ 21215 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21216 esi = 0; /* 0x2509B936: xor esi, esi */ 21217 _cf = 0; 21218 _flag_k = FK_TEST; 21219 RECOMP_ICALL(0x25098250u); /* 0x2509B938: call 0x25098250 */ /* not lifted */ 21220 RECOMP_FLAGS_IN(); 21221 eax = MEM32(ebp + (-0x30)); /* 0x2509B93D: mov eax, dword ptr [ebp - 0x30] */ 21222 ecx = MEM32(ebp + (-0x2C)); /* 0x2509B940: mov ecx, dword ptr [ebp - 0x2c] */ 21223 PUSH32(esp, edi); /* 0x2509B943: push edi */ 21224 PUSH32(esp, 0x251B2970u); /* 0x2509B944: push 0x251b2970 */ 21225 PUSH32(esp, 0x251B2970u); /* 0x2509B949: push 0x251b2970 */ 21226 PUSH32(esp, edi); /* 0x2509B94E: push edi */ 21227 PUSH32(esp, eax); /* 0x2509B94F: push eax */ 21228 MEM32(ebp + (-0x28)) = eax; /* 0x2509B950: mov dword ptr [ebp - 0x28], eax */ 21229 MEM32(ebp + (-0x24)) = ecx; /* 0x2509B953: mov dword ptr [ebp - 0x24], ecx */ 21230 RECOMP_ICALL(0x251381ACu); /* 0x2509B956: call 0x251381ac */ /* not lifted */ 21231 RECOMP_FLAGS_IN(); 21232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 21233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21234 esp = esp + 0x14u; /* 0x2509B95B: add esp, 0x14 */ 21235 _flag_k = FK_ADD; 21236 /* test eax, eax */ /* 0x2509B95E: test eax, eax */ 21237 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21238 _cf = 0; 21239 _flag_k = FK_TEST; 21240 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509B96A; /* 0x2509B960: jne 0x2509b96a */ 21241 L_2509B962: 21242 ecx = ebp + (-0x28); /* 0x2509B962: lea ecx, [ebp - 0x28] */ 21243 RECOMP_ICALL(0x250982C0u); /* 0x2509B965: call 0x250982c0 */ /* not lifted */ 21244 RECOMP_FLAGS_IN(); 21245 L_2509B96A: 21246 edx = ebp + (-0x30); /* 0x2509B96A: lea edx, [ebp - 0x30] */ 21247 PUSH32(esp, edx); /* 0x2509B96D: push edx */ 21248 ecx = ebp + (-0x38); /* 0x2509B96E: lea ecx, [ebp - 0x38] */ 21249 MEM32(ebp + (-0x30)) = edi; /* 0x2509B971: mov dword ptr [ebp - 0x30], edi */ 21250 MEM32(ebp + (-0x2C)) = edi; /* 0x2509B974: mov dword ptr [ebp - 0x2c], edi */ 21251 RECOMP_ICALL(0x25098250u); /* 0x2509B977: call 0x25098250 */ /* not lifted */ 21252 RECOMP_FLAGS_IN(); 21253 eax = MEM32(ebp + (-0x28)); /* 0x2509B97C: mov eax, dword ptr [ebp - 0x28] */ 21254 /* cmp eax, MEM32(ebp + (-0x38)) */ /* 0x2509B97F: cmp eax, dword ptr [ebp - 0x38] */ 21255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x38))); 21256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21257 _flag_k = FK_CMP; 21258 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509BBDA; /* 0x2509B982: je 0x2509bbda */ 21259 L_2509B988: 21260 ecx = MEM32(eax + 0x1F0); /* 0x2509B988: mov ecx, dword ptr [eax + 0x1f0] */ 21261 eax = MEM32(ecx); /* 0x2509B98E: mov eax, dword ptr [ecx] */ 21262 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x2509B990: call dword ptr [eax + 8] */ 21263 RECOMP_FLAGS_IN(); 21264 ebx = eax; /* 0x2509B993: mov ebx, eax */ 21265 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21266 ecx = 0; /* 0x2509B995: xor ecx, ecx */ 21267 _cf = 0; 21268 _flag_k = FK_TEST; 21269 MEM32(ebp + (-0x20)) = ebx; /* 0x2509B997: mov dword ptr [ebp - 0x20], ebx */ 21270 MEM32(ebp + (-0x14)) = ecx; /* 0x2509B99A: mov dword ptr [ebp - 0x14], ecx */ 21271 L_2509B99D: 21272 eax = MEM32(ebx + 0x48); /* 0x2509B99D: mov eax, dword ptr [ebx + 0x48] */ 21273 /* cmp eax, edi */ /* 0x2509B9A0: cmp eax, edi */ 21274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 21275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21276 _flag_k = FK_CMP; 21277 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509BB79; /* 0x2509B9A2: je 0x2509bb79 */ 21278 L_2509B9A8: 21279 edx = MEM32(ebx + 0x4C); /* 0x2509B9A8: mov edx, dword ptr [ebx + 0x4c] */ 21280 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 21281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21282 edx = edx - eax; /* 0x2509B9AB: sub edx, eax */ 21283 _flag_k = FK_CMP; 21284 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2509B9AD: sar edx, 2 */ 21285 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21286 edx = (uint32_t)((int32_t)edx >> 2u); 21287 /* cmp ecx, edx */ /* 0x2509B9B0: cmp ecx, edx */ 21288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 21289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21290 _flag_k = FK_CMP; 21291 if (CMP_AE(_flag_a, _flag_b)) goto L_2509BB79; /* 0x2509B9B2: jae 0x2509bb79 */ 21292 L_2509B9B8: 21293 eax = MEM32(eax + ecx * 4); /* 0x2509B9B8: mov eax, dword ptr [eax + ecx*4] */ 21294 edi = MEM32(eax + 0x160); /* 0x2509B9BB: mov edi, dword ptr [eax + 0x160] */ 21295 eax = MEM32(edi + 0x68); /* 0x2509B9C1: mov eax, dword ptr [edi + 0x68] */ 21296 /* test eax, eax */ /* 0x2509B9C4: test eax, eax */ 21297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21298 _cf = 0; 21299 _flag_k = FK_TEST; 21300 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509BA0F; /* 0x2509B9C6: jne 0x2509ba0f */ 21301 L_2509B9C8: 21302 PUSH32(esp, 0xDCu); /* 0x2509B9C8: push 0xdc */ 21303 RECOMP_ICALL(0x251380D0u); /* 0x2509B9CD: call 0x251380d0 */ /* not lifted */ 21304 RECOMP_FLAGS_IN(); 21305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 21306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21307 esp = esp + 4; /* 0x2509B9D2: add esp, 4 */ 21308 _flag_k = FK_ADD; 21309 MEM32(ebp + (-0x1C)) = eax; /* 0x2509B9D5: mov dword ptr [ebp - 0x1c], eax */ 21310 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21311 ecx = 0; /* 0x2509B9D8: xor ecx, ecx */ 21312 _cf = 0; 21313 _flag_k = FK_TEST; 21314 /* cmp eax, ecx */ /* 0x2509B9DA: cmp eax, ecx */ 21315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 21316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21317 _flag_k = FK_CMP; 21318 MEM32(ebp + (-0x4)) = ecx; /* 0x2509B9DC: mov dword ptr [ebp - 4], ecx */ 21319 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509B9F2; /* 0x2509B9DF: je 0x2509b9f2 */ 21320 L_2509B9E1: 21321 PUSH32(esp, 0x251C764Cu); /* 0x2509B9E1: push 0x251c764c */ 21322 ecx = eax; /* 0x2509B9E6: mov ecx, eax */ 21323 RECOMP_ICALL(0x250E96B0u); /* 0x2509B9E8: call 0x250e96b0 */ /* not lifted */ 21324 RECOMP_FLAGS_IN(); 21325 MEM32(ebp + (-0x1C)) = eax; /* 0x2509B9ED: mov dword ptr [ebp - 0x1c], eax */ 21326 goto L_2509B9F5; /* 0x2509B9F0: jmp 0x2509b9f5 */ 21327 L_2509B9F2: 21328 MEM32(ebp + (-0x1C)) = ecx; /* 0x2509B9F2: mov dword ptr [ebp - 0x1c], ecx */ 21329 L_2509B9F5: 21330 ecx = MEM32(ebp + (-0x1C)); /* 0x2509B9F5: mov ecx, dword ptr [ebp - 0x1c] */ 21331 PUSH32(esp, ecx); /* 0x2509B9F8: push ecx */ 21332 ecx = edi; /* 0x2509B9F9: mov ecx, edi */ 21333 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2509B9FB: mov dword ptr [ebp - 4], 0xffffffff */ 21334 RECOMP_ICALL(0x250E5090u); /* 0x2509BA02: call 0x250e5090 */ /* not lifted */ 21335 RECOMP_FLAGS_IN(); 21336 ecx = MEM32(ebp + (-0x1C)); /* 0x2509BA07: mov ecx, dword ptr [ebp - 0x1c] */ 21337 RECOMP_ICALL(0x250E6370u); /* 0x2509BA0A: call 0x250e6370 */ /* not lifted */ 21338 RECOMP_FLAGS_IN(); 21339 L_2509BA0F: 21340 ecx = MEM32(edi + 0x68); /* 0x2509BA0F: mov ecx, dword ptr [edi + 0x68] */ 21341 PUSH32(esp, 0); /* 0x2509BA12: push 0 */ 21342 PUSH32(esp, 0x91u); /* 0x2509BA14: push 0x91 */ 21343 RECOMP_ICALL(0x250E9FA0u); /* 0x2509BA19: call 0x250e9fa0 */ /* not lifted */ 21344 RECOMP_FLAGS_IN(); 21345 ecx = MEM32(edi + 0x68); /* 0x2509BA1E: mov ecx, dword ptr [edi + 0x68] */ 21346 PUSH32(esp, 0); /* 0x2509BA21: push 0 */ 21347 PUSH32(esp, 0x92u); /* 0x2509BA23: push 0x92 */ 21348 RECOMP_ICALL(0x250E9FA0u); /* 0x2509BA28: call 0x250e9fa0 */ /* not lifted */ 21349 RECOMP_FLAGS_IN(); 21350 ecx = MEM32(edi + 0x68); /* 0x2509BA2D: mov ecx, dword ptr [edi + 0x68] */ 21351 PUSH32(esp, 0); /* 0x2509BA30: push 0 */ 21352 PUSH32(esp, 0x93u); /* 0x2509BA32: push 0x93 */ 21353 RECOMP_ICALL(0x250E9FA0u); /* 0x2509BA37: call 0x250e9fa0 */ /* not lifted */ 21354 RECOMP_FLAGS_IN(); 21355 fp_push(*(float*)&MEM32(edi + 0x50)); /* 0x2509BA3C: fld dword ptr [edi + 0x50] */ 21356 _st[0] *= (double)*(float*)ADDR(0x25153D74); /* 0x2509BA3F: fmul dword ptr [0x25153d74] */ 21357 fp_push(*(float*)&MEM32(edi + 0x4C)); /* 0x2509BA45: fld dword ptr [edi + 0x4c] */ 21358 _st[0] *= (double)*(float*)ADDR(0x25153D70); /* 0x2509BA48: fmul dword ptr [0x25153d70] */ 21359 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509BA4E: faddp st(1) */ 21360 fp_push(*(float*)&MEM32(edi + 0x48)); /* 0x2509BA50: fld dword ptr [edi + 0x48] */ 21361 edi = MEM32(edi + 0x68); /* 0x2509BA53: mov edi, dword ptr [edi + 0x68] */ 21362 _st[0] *= (double)*(float*)ADDR(0x25153D78); /* 0x2509BA56: fmul dword ptr [0x25153d78] */ 21363 { double _v = fp_pop(); _st[0] += _v; } /* 0x2509BA5C: faddp st(1) */ 21364 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x2515177C)); /* 0x2509BA5E: fcomp dword ptr [0x2515177c] */ 21365 fp_pop(); 21366 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509BA64: fnstsw ax */ 21367 /* test HI8(eax), 0x41u */ /* 0x2509BA66: test ah, 0x41 */ 21368 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 21369 _cf = 0; 21370 _flag_k = FK_NARROW(FK_TEST, 24); 21371 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509BA6F; /* 0x2509BA69: jne 0x2509ba6f */ 21372 L_2509BA6B: 21373 PUSH32(esp, 0); /* 0x2509BA6B: push 0 */ 21374 goto L_2509BA71; /* 0x2509BA6D: jmp 0x2509ba71 */ 21375 L_2509BA6F: 21376 PUSH32(esp, 1); /* 0x2509BA6F: push 1 */ 21377 L_2509BA71: 21378 PUSH32(esp, 0x94u); /* 0x2509BA71: push 0x94 */ 21379 ecx = edi; /* 0x2509BA76: mov ecx, edi */ 21380 RECOMP_ICALL(0x250E9FA0u); /* 0x2509BA78: call 0x250e9fa0 */ /* not lifted */ 21381 RECOMP_FLAGS_IN(); 21382 eax = MEM32(ebx + 0x48); /* 0x2509BA7D: mov eax, dword ptr [ebx + 0x48] */ 21383 edi = MEM32(ebp + (-0x14)); /* 0x2509BA80: mov edi, dword ptr [ebp - 0x14] */ 21384 ecx = MEM32(eax + edi * 4); /* 0x2509BA83: mov ecx, dword ptr [eax + edi*4] */ 21385 PUSH32(esp, 0); /* 0x2509BA86: push 0 */ 21386 PUSH32(esp, 1); /* 0x2509BA88: push 1 */ 21387 RECOMP_ICALL(0x25108520u); /* 0x2509BA8A: call 0x25108520 */ /* not lifted */ 21388 RECOMP_FLAGS_IN(); 21389 eax = MEM32(ebx + 0x48); /* 0x2509BA8F: mov eax, dword ptr [ebx + 0x48] */ 21390 edx = MEM32(eax + edi * 4); /* 0x2509BA92: mov edx, dword ptr [eax + edi*4] */ 21391 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21392 ebx = 0; /* 0x2509BA95: xor ebx, ebx */ 21393 _cf = 0; 21394 _flag_k = FK_TEST; 21395 SET_LO16(ebx, MEM16(edx + 0x150)); /* 0x2509BA97: mov bx, word ptr [edx + 0x150] */ 21396 /* test ebx, ebx */ /* 0x2509BA9E: test ebx, ebx */ 21397 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 21398 _cf = 0; 21399 _flag_k = FK_TEST; 21400 if (TEST_Z(_flag_a, _flag_b)) goto L_2509BB66; /* 0x2509BAA0: je 0x2509bb66 */ 21401 L_2509BAA6: 21402 ecx = edi; /* 0x2509BAA6: mov ecx, edi */ 21403 edx = MEM32(eax + ecx * 4); /* 0x2509BAA8: mov edx, dword ptr [eax + ecx*4] */ 21404 eax = MEM32(edx + 0x28); /* 0x2509BAAB: mov eax, dword ptr [edx + 0x28] */ 21405 PUSH32(esp, eax); /* 0x2509BAAE: push eax */ 21406 ecx = ebp + (-0x5C); /* 0x2509BAAF: lea ecx, [ebp - 0x5c] */ 21407 RECOMP_ICALL(0x25118F00u); /* 0x2509BAB2: call 0x25118f00 */ /* not lifted */ 21408 RECOMP_FLAGS_IN(); 21409 PUSH32(esp, 0); /* 0x2509BAB7: push 0 */ 21410 ecx = ebp + (-0x5C); /* 0x2509BAB9: lea ecx, [ebp - 0x5c] */ 21411 MEM32(ebp + (-0x4)) = 1; /* 0x2509BABC: mov dword ptr [ebp - 4], 1 */ 21412 RECOMP_ICALL(0x25118F80u); /* 0x2509BAC3: call 0x25118f80 */ /* not lifted */ 21413 RECOMP_FLAGS_IN(); 21414 eax = MEM32(ebp + (-0x44)); /* 0x2509BAC8: mov eax, dword ptr [ebp - 0x44] */ 21415 ecx = MEM32(ebp + (-0x58)); /* 0x2509BACB: mov ecx, dword ptr [ebp - 0x58] */ 21416 edx = MEM32(ebp + (-0x18)); /* 0x2509BACE: mov edx, dword ptr [ebp - 0x18] */ 21417 edi = ecx + eax; /* 0x2509BAD1: lea edi, [ecx + eax] */ 21418 ecx = MEM32(ebp + 0xC); /* 0x2509BAD4: mov ecx, dword ptr [ebp + 0xc] */ 21419 eax = ebx + edx; /* 0x2509BAD7: lea eax, [ebx + edx] */ 21420 /* cmp eax, ecx */ /* 0x2509BADA: cmp eax, ecx */ 21421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 21422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21423 _flag_k = FK_CMP; 21424 MEM32(ebp + (-0x18)) = eax; /* 0x2509BADC: mov dword ptr [ebp - 0x18], eax */ 21425 if (CMP_LE(_flag_a, _flag_b)) goto L_2509BAEF; /* 0x2509BADF: jle 0x2509baef */ 21426 L_2509BAE1: 21427 PUSH32(esp, esi); /* 0x2509BAE1: push esi */ 21428 ecx = edi; /* 0x2509BAE2: mov ecx, edi */ 21429 RECOMP_ICALL(0x2510C550u); /* 0x2509BAE4: call 0x2510c550 */ /* not lifted */ 21430 RECOMP_FLAGS_IN(); 21431 MEM8(ebp + (-0xD)) = (uint8_t)(0); /* 0x2509BAE9: mov byte ptr [ebp - 0xd], 0 */ 21432 goto L_2509BB37; /* 0x2509BAED: jmp 0x2509bb37 */ 21433 L_2509BAEF: 21434 /* test ebx, ebx */ /* 0x2509BAEF: test ebx, ebx */ 21435 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 21436 _cf = 0; 21437 _flag_k = FK_TEST; 21438 if (TEST_LE(_flag_a, _flag_b)) goto L_2509BB37; /* 0x2509BAF1: jle 0x2509bb37 */ 21439 L_2509BAF3: 21440 ecx = MEM32(ebp + 0x8); /* 0x2509BAF3: mov ecx, dword ptr [ebp + 8] */ 21441 SET_LO16(eax, MEM16(ecx)); /* 0x2509BAF6: mov ax, word ptr [ecx] */ 21442 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 21443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21444 ecx = ecx + 2; /* 0x2509BAF9: add ecx, 2 */ 21445 _flag_k = FK_ADD; 21446 MEM32(ebp + 0x8) = ecx; /* 0x2509BAFC: mov dword ptr [ebp + 8], ecx */ 21447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 21448 eax = eax & 0xFFFFu; /* 0x2509BAFF: and eax, 0xffff */ 21449 _cf = 0; 21450 _flag_k = FK_TEST; 21451 esi = eax; /* 0x2509BB04: mov esi, eax */ 21452 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Fu); 21453 esi = esi & 0x1Fu; /* 0x2509BB06: and esi, 0x1f */ 21454 _cf = 0; 21455 _flag_k = FK_TEST; 21456 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1FE0u); 21457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21458 esi = esi + 0x1FE0u; /* 0x2509BB09: add esi, 0x1fe0 */ 21459 _flag_k = FK_ADD; 21460 ecx = eax; /* 0x2509BB0F: mov ecx, eax */ 21461 if (14u) _cf = (((esi) >> 18) & 1u); /* 0x2509BB11: shl esi, 0xe */ 21462 if (14u) { _flag_a = recomp_flags_pack((esi << 14u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21463 esi = esi << 14u; /* 0x2509BB11: shl esi, 0xe */ 21464 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x7E0u); 21465 ecx = ecx & 0x7E0u; /* 0x2509BB14: and ecx, 0x7e0 */ 21466 _cf = 0; 21467 _flag_k = FK_TEST; 21468 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 21469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21470 esi = esi + ecx; /* 0x2509BB1A: add esi, ecx */ 21471 _flag_k = FK_ADD; 21472 if (8u) _cf = (((eax) >> 7) & 1u); /* 0x2509BB1C: shr eax, 8 */ 21473 if (8u) { _flag_a = recomp_flags_pack((eax >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21474 eax = eax >> 8u; /* 0x2509BB1C: shr eax, 8 */ 21475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xF8u); 21476 eax = eax & 0xF8u; /* 0x2509BB1F: and eax, 0xf8 */ 21477 _cf = 0; 21478 _flag_k = FK_TEST; 21479 if (5u) _cf = (((esi) >> 27) & 1u); /* 0x2509BB24: shl esi, 5 */ 21480 if (5u) { _flag_a = recomp_flags_pack((esi << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 21481 esi = esi << 5u; /* 0x2509BB24: shl esi, 5 */ 21482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 21483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21484 esi = esi + eax; /* 0x2509BB27: add esi, eax */ 21485 _flag_k = FK_ADD; 21486 PUSH32(esp, esi); /* 0x2509BB29: push esi */ 21487 ecx = edi; /* 0x2509BB2A: mov ecx, edi */ 21488 RECOMP_ICALL(0x2510C550u); /* 0x2509BB2C: call 0x2510c550 */ /* not lifted */ 21489 RECOMP_FLAGS_IN(); 21490 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x50))); 21491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21492 edi = edi + MEM32(ebp + (-0x50)); /* 0x2509BB31: add edi, dword ptr [ebp - 0x50] */ 21493 _flag_k = FK_ADD; 21494 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 21495 ebx = ebx - 1; /* 0x2509BB34: dec ebx */ 21496 _flag_k = FK_DEC; 21497 RECOMP_BACKEDGE(); 21498 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2509BAF3; /* 0x2509BB35: jne 0x2509baf3 */ 21499 L_2509BB37: 21500 ecx = ebp + (-0x5C); /* 0x2509BB37: lea ecx, [ebp - 0x5c] */ 21501 RECOMP_ICALL(0x25118FA0u); /* 0x2509BB3A: call 0x25118fa0 */ /* not lifted */ 21502 RECOMP_FLAGS_IN(); 21503 edx = MEM32(ebp + (-0x20)); /* 0x2509BB3F: mov edx, dword ptr [ebp - 0x20] */ 21504 eax = MEM32(edx + 0x48); /* 0x2509BB42: mov eax, dword ptr [edx + 0x48] */ 21505 ecx = MEM32(ebp + (-0x14)); /* 0x2509BB45: mov ecx, dword ptr [ebp - 0x14] */ 21506 ecx = MEM32(eax + ecx * 4); /* 0x2509BB48: mov ecx, dword ptr [eax + ecx*4] */ 21507 RECOMP_ICALL(0x251074C0u); /* 0x2509BB4B: call 0x251074c0 */ /* not lifted */ 21508 RECOMP_FLAGS_IN(); 21509 eax = MEM32(ebp + (-0x58)); /* 0x2509BB50: mov eax, dword ptr [ebp - 0x58] */ 21510 /* test eax, eax */ /* 0x2509BB53: test eax, eax */ 21511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21512 _cf = 0; 21513 _flag_k = FK_TEST; 21514 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x2509BB55: mov dword ptr [ebp - 4], 0xffffffff */ 21515 if (TEST_Z(_flag_a, _flag_b)) goto L_2509BB66; /* 0x2509BB5C: je 0x2509bb66 */ 21516 L_2509BB5E: 21517 ecx = ebp + (-0x5C); /* 0x2509BB5E: lea ecx, [ebp - 0x5c] */ 21518 RECOMP_ICALL(0x25118FA0u); /* 0x2509BB61: call 0x25118fa0 */ /* not lifted */ 21519 RECOMP_FLAGS_IN(); 21520 L_2509BB66: 21521 eax = MEM32(ebp + (-0x14)); /* 0x2509BB66: mov eax, dword ptr [ebp - 0x14] */ 21522 ebx = MEM32(ebp + (-0x20)); /* 0x2509BB69: mov ebx, dword ptr [ebp - 0x20] */ 21523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 21524 eax = eax + 1; /* 0x2509BB6C: inc eax */ 21525 _flag_k = FK_INC; 21526 MEM32(ebp + (-0x14)) = eax; /* 0x2509BB6D: mov dword ptr [ebp - 0x14], eax */ 21527 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 21528 edi = 0; /* 0x2509BB70: xor edi, edi */ 21529 _cf = 0; 21530 _flag_k = FK_TEST; 21531 ecx = eax; /* 0x2509BB72: mov ecx, eax */ 21532 RECOMP_BACKEDGE(); 21533 goto L_2509B99D; /* 0x2509BB74: jmp 0x2509b99d */ 21534 L_2509BB79: 21535 ecx = MEM32(ebp + (-0x28)); /* 0x2509BB79: mov ecx, dword ptr [ebp - 0x28] */ 21536 PUSH32(esp, ebx); /* 0x2509BB7C: push ebx */ 21537 RECOMP_ICALL(0x250F3BB0u); /* 0x2509BB7D: call 0x250f3bb0 */ /* not lifted */ 21538 RECOMP_FLAGS_IN(); 21539 ecx = ebx; /* 0x2509BB82: mov ecx, ebx */ 21540 RECOMP_ICALL(0x250E6370u); /* 0x2509BB84: call 0x250e6370 */ /* not lifted */ 21541 RECOMP_FLAGS_IN(); 21542 /* cmp MEM32(ebp + (-0x28)), edi */ /* 0x2509BB89: cmp dword ptr [ebp - 0x28], edi */ 21543 _flag_a = (uint32_t)(MEM32(ebp + (-0x28))); _flag_b = (uint32_t)(edi); 21544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21545 _flag_k = FK_CMP; 21546 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509BBBC; /* 0x2509BB8C: je 0x2509bbbc */ 21547 L_2509BB8E: 21548 edx = MEM32(ebp + (-0x24)); /* 0x2509BB8E: mov edx, dword ptr [ebp - 0x24] */ 21549 PUSH32(esp, edx); /* 0x2509BB91: push edx */ 21550 eax = ebp + (-0x28); /* 0x2509BB92: lea eax, [ebp - 0x28] */ 21551 PUSH32(esp, eax); /* 0x2509BB95: push eax */ 21552 RECOMP_ICALL(0x250E3530u); /* 0x2509BB96: call 0x250e3530 */ /* not lifted */ 21553 RECOMP_FLAGS_IN(); 21554 ecx = MEM32(ebp + (-0x28)); /* 0x2509BB9B: mov ecx, dword ptr [ebp - 0x28] */ 21555 PUSH32(esp, edi); /* 0x2509BB9E: push edi */ 21556 PUSH32(esp, 0x251B2970u); /* 0x2509BB9F: push 0x251b2970 */ 21557 PUSH32(esp, 0x251B2970u); /* 0x2509BBA4: push 0x251b2970 */ 21558 PUSH32(esp, edi); /* 0x2509BBA9: push edi */ 21559 PUSH32(esp, ecx); /* 0x2509BBAA: push ecx */ 21560 RECOMP_ICALL(0x251381ACu); /* 0x2509BBAB: call 0x251381ac */ /* not lifted */ 21561 RECOMP_FLAGS_IN(); 21562 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 21563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 21564 esp = esp + 0x1Cu; /* 0x2509BBB0: add esp, 0x1c */ 21565 _flag_k = FK_ADD; 21566 /* test eax, eax */ /* 0x2509BBB3: test eax, eax */ 21567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 21568 _cf = 0; 21569 _flag_k = FK_TEST; 21570 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509BBBC; /* 0x2509BBB5: jne 0x2509bbbc */ 21571 L_2509BBB7: 21572 /* cmp MEM32(ebp + (-0x28)), edi */ /* 0x2509BBB7: cmp dword ptr [ebp - 0x28], edi */ 21573 _flag_a = (uint32_t)(MEM32(ebp + (-0x28))); _flag_b = (uint32_t)(edi); 21574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21575 _flag_k = FK_CMP; 21576 RECOMP_BACKEDGE(); 21577 if (CMP_NE(_flag_a, _flag_b)) goto L_2509BB8E; /* 0x2509BBBA: jne 0x2509bb8e */ 21578 L_2509BBBC: 21579 edx = ebp + (-0x30); /* 0x2509BBBC: lea edx, [ebp - 0x30] */ 21580 PUSH32(esp, edx); /* 0x2509BBBF: push edx */ 21581 ecx = ebp + (-0x38); /* 0x2509BBC0: lea ecx, [ebp - 0x38] */ 21582 MEM32(ebp + (-0x30)) = edi; /* 0x2509BBC3: mov dword ptr [ebp - 0x30], edi */ 21583 MEM32(ebp + (-0x2C)) = edi; /* 0x2509BBC6: mov dword ptr [ebp - 0x2c], edi */ 21584 RECOMP_ICALL(0x25098250u); /* 0x2509BBC9: call 0x25098250 */ /* not lifted */ 21585 RECOMP_FLAGS_IN(); 21586 eax = MEM32(ebp + (-0x28)); /* 0x2509BBCE: mov eax, dword ptr [ebp - 0x28] */ 21587 /* cmp eax, MEM32(ebp + (-0x38)) */ /* 0x2509BBD1: cmp eax, dword ptr [ebp - 0x38] */ 21588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x38))); 21589 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21590 _flag_k = FK_CMP; 21591 RECOMP_BACKEDGE(); 21592 if (CMP_NE(_flag_a, _flag_b)) goto L_2509B988; /* 0x2509BBD4: jne 0x2509b988 */ 21593 L_2509BBDA: 21594 eax = MEM32(ebp + (-0x18)); /* 0x2509BBDA: mov eax, dword ptr [ebp - 0x18] */ 21595 /* cmp eax, MEM32(ebp + 0xC) */ /* 0x2509BBDD: cmp eax, dword ptr [ebp + 0xc] */ 21596 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 21597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21598 _flag_k = FK_CMP; 21599 esi = POP32_VAL(esp); /* 0x2509BBE0: pop esi */ 21600 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509BBE7; /* 0x2509BBE1: je 0x2509bbe7 */ 21601 L_2509BBE3: 21602 MEM8(ebp + (-0xD)) = (uint8_t)(0); /* 0x2509BBE3: mov byte ptr [ebp - 0xd], 0 */ 21603 L_2509BBE7: 21604 ecx = MEM32(ebp + (-0xC)); /* 0x2509BBE7: mov ecx, dword ptr [ebp - 0xc] */ 21605 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x2509BBEA: mov al, byte ptr [ebp - 0xd] */ 21606 edi = POP32_VAL(esp); /* 0x2509BBED: pop edi */ 21607 ebx = POP32_VAL(esp); /* 0x2509BBEE: pop ebx */ 21608 MEM32(FS_BASE + (0)) = ecx; /* 0x2509BBEF: mov dword ptr fs:[0], ecx */ 21609 esp = ebp; /* 0x2509BBF6: mov esp, ebp */ 21610 ebp = POP32_VAL(esp); /* 0x2509BBF8: pop ebp */ 21611 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2509BBF9: ret 8 */ 21612 RECOMP_REGS_OUT(); 21613 }