client/game/bbr.dll/lifted-0030.c (237273B)
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_25090410(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(0x25090410u); 17 18 L_25090410: 19 PUSH32(esp, ebp); /* 0x25090410: push ebp */ 20 ebp = esp; /* 0x25090411: mov ebp, esp */ 21 eax = ecx; /* 0x25090413: mov eax, ecx */ 22 ecx = MEM32(ebp + 0x8); /* 0x25090415: mov ecx, dword ptr [ebp + 8] */ 23 PUSH32(esp, esi); /* 0x25090418: push esi */ 24 esi = MEM32(ecx); /* 0x25090419: mov esi, dword ptr [ecx] */ 25 edx = eax; /* 0x2509041B: mov edx, eax */ 26 MEM32(edx) = esi; /* 0x2509041D: mov dword ptr [edx], esi */ 27 esi = MEM32(ecx + 0x4); /* 0x2509041F: mov esi, dword ptr [ecx + 4] */ 28 MEM32(edx + 0x4) = esi; /* 0x25090422: mov dword ptr [edx + 4], esi */ 29 esi = MEM32(ecx + 0x8); /* 0x25090425: mov esi, dword ptr [ecx + 8] */ 30 MEM32(edx + 0x8) = esi; /* 0x25090428: mov dword ptr [edx + 8], esi */ 31 ecx = MEM32(ecx + 0xC); /* 0x2509042B: mov ecx, dword ptr [ecx + 0xc] */ 32 MEM32(edx + 0xC) = ecx; /* 0x2509042E: mov dword ptr [edx + 0xc], ecx */ 33 esi = POP32_VAL(esp); /* 0x25090431: pop esi */ 34 ebp = POP32_VAL(esp); /* 0x25090432: pop ebp */ 35 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090433: ret 4 */ 36 RECOMP_REGS_OUT(); 37 } 38 39 void sub_25090440(void) { 40 int _fpu_cmp = 0; 41 uint32_t _cf = 0; 42 int _df = 1; 43 uint32_t _flag_k = FK_NONE; 44 uint32_t _flag_a = 0, _flag_b = 0; 45 uint32_t _itail_tgt = 0; 46 RECOMP_REGS_LOCALS 47 RECOMP_ENTER(0x25090440u); 48 49 L_25090440: 50 PUSH32(esp, ebp); /* 0x25090440: push ebp */ 51 ebp = esp; /* 0x25090441: mov ebp, esp */ 52 PUSH32(esp, 0xFFFFFFFFu); /* 0x25090443: push -1 */ 53 PUSH32(esp, 0x251492D8u); /* 0x25090445: push 0x251492d8 */ 54 eax = MEM32(FS_BASE + (0)); /* 0x2509044A: mov eax, dword ptr fs:[0] */ 55 PUSH32(esp, eax); /* 0x25090450: push eax */ 56 MEM32(FS_BASE + (0)) = esp; /* 0x25090451: mov dword ptr fs:[0], esp */ 57 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 58 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 59 esp = esp - 0x14u; /* 0x25090458: sub esp, 0x14 */ 60 _flag_k = FK_CMP; 61 eax = MEM32(ebp + 0x14); /* 0x2509045B: mov eax, dword ptr [ebp + 0x14] */ 62 edx = MEM32(ebp + 0x8); /* 0x2509045E: mov edx, dword ptr [ebp + 8] */ 63 PUSH32(esp, ebx); /* 0x25090461: push ebx */ 64 PUSH32(esp, esi); /* 0x25090462: push esi */ 65 PUSH32(esp, edi); /* 0x25090463: push edi */ 66 edi = ecx; /* 0x25090464: mov edi, ecx */ 67 ecx = MEM32(ebp + 0x10); /* 0x25090466: mov ecx, dword ptr [ebp + 0x10] */ 68 PUSH32(esp, eax); /* 0x25090469: push eax */ 69 PUSH32(esp, ecx); /* 0x2509046A: push ecx */ 70 PUSH32(esp, edx); /* 0x2509046B: push edx */ 71 ecx = edi; /* 0x2509046C: mov ecx, edi */ 72 MEM32(ebp + (-0x14)) = edi; /* 0x2509046E: mov dword ptr [ebp - 0x14], edi */ 73 RECOMP_ICALL(0x250F1E20u); /* 0x25090471: call 0x250f1e20 */ /* not lifted */ 74 RECOMP_FLAGS_IN(); 75 eax = MEM32(ebp + 0xC); /* 0x25090476: mov eax, dword ptr [ebp + 0xc] */ 76 PUSH32(esp, 0); /* 0x25090479: push 0 */ 77 ecx = edi; /* 0x2509047B: mov ecx, edi */ 78 MEM32(ebp + (-0x4)) = 0; /* 0x2509047D: mov dword ptr [ebp - 4], 0 */ 79 MEM32(edi + 0x240) = 0x3F800000u; /* 0x25090484: mov dword ptr [edi + 0x240], 0x3f800000 */ 80 MEM32(edi) = 0x25155A38u; /* 0x2509048E: mov dword ptr [edi], 0x25155a38 */ 81 MEM32(edi + 0x8) = 0x25155A28u; /* 0x25090494: mov dword ptr [edi + 8], 0x25155a28 */ 82 MEM32(edi + 0x20) = 0x25155A18u; /* 0x2509049B: mov dword ptr [edi + 0x20], 0x25155a18 */ 83 MEM32(edi + 0x38) = 0x25155A08u; /* 0x250904A2: mov dword ptr [edi + 0x38], 0x25155a08 */ 84 MEM32(edi + 0x50) = 0x251559F8u; /* 0x250904A9: mov dword ptr [edi + 0x50], 0x251559f8 */ 85 MEM32(edi + 0x138) = 0x251559E8u; /* 0x250904B0: mov dword ptr [edi + 0x138], 0x251559e8 */ 86 MEM32(edi + 0x150) = 0x251559D8u; /* 0x250904BA: mov dword ptr [edi + 0x150], 0x251559d8 */ 87 MEM32(edi + 0x248) = eax; /* 0x250904C4: mov dword ptr [edi + 0x248], eax */ 88 RECOMP_ICALL(0x250DDB50u); /* 0x250904CA: call 0x250ddb50 */ /* not lifted */ 89 RECOMP_FLAGS_IN(); 90 RECOMP_ICALL(0x2507F900u); /* 0x250904CF: call 0x2507f900 */ /* not lifted */ 91 RECOMP_FLAGS_IN(); 92 ebx = eax; /* 0x250904D4: mov ebx, eax */ 93 PUSH32(esp, edi); /* 0x250904D6: push edi */ 94 ecx = ebx; /* 0x250904D7: mov ecx, ebx */ 95 RECOMP_ICALL(0x250843A0u); /* 0x250904D9: call 0x250843a0 */ /* not lifted */ 96 RECOMP_FLAGS_IN(); 97 ecx = ebp + (-0x10); /* 0x250904DE: lea ecx, [ebp - 0x10] */ 98 PUSH32(esp, ecx); /* 0x250904E1: push ecx */ 99 ecx = ebx; /* 0x250904E2: mov ecx, ebx */ 100 MEM32(ebp + (-0x10)) = 0x51u; /* 0x250904E4: mov dword ptr [ebp - 0x10], 0x51 */ 101 RECOMP_ICALL(0x25084580u); /* 0x250904EB: call 0x25084580 */ /* not lifted */ 102 RECOMP_FLAGS_IN(); 103 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 104 ecx = 0; /* 0x250904F0: xor ecx, ecx */ 105 _cf = 0; 106 _flag_k = FK_TEST; 107 MEM32(ebp + 0x10) = ecx; /* 0x250904F2: mov dword ptr [ebp + 0x10], ecx */ 108 L_250904F5: 109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 110 eax = 0; /* 0x250904F5: xor eax, eax */ 111 _cf = 0; 112 _flag_k = FK_TEST; 113 MEM32(ebp + 0x14) = eax; /* 0x250904F7: mov dword ptr [ebp + 0x14], eax */ 114 L_250904FA: 115 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 116 esi = 0; /* 0x250904FA: xor esi, esi */ 117 _cf = 0; 118 _flag_k = FK_TEST; 119 MEM32(ebp + 0x8) = esi; /* 0x250904FC: mov dword ptr [ebp + 8], esi */ 120 L_250904FF: 121 /* test ecx, ecx */ /* 0x250904FF: test ecx, ecx */ 122 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 123 _cf = 0; 124 _flag_k = FK_TEST; 125 if (TEST_Z(_flag_a, _flag_b)) goto L_2509051A; /* 0x25090501: je 0x2509051a */ 126 L_25090503: 127 /* cmp ecx, 4 */ /* 0x25090503: cmp ecx, 4 */ 128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 130 _flag_k = FK_CMP; 131 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509051A; /* 0x25090506: je 0x2509051a */ 132 L_25090508: 133 /* test eax, eax */ /* 0x25090508: test eax, eax */ 134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 135 _cf = 0; 136 _flag_k = FK_TEST; 137 if (TEST_Z(_flag_a, _flag_b)) goto L_2509051A; /* 0x2509050A: je 0x2509051a */ 138 L_2509050C: 139 /* cmp eax, 4 */ /* 0x2509050C: cmp eax, 4 */ 140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 142 _flag_k = FK_CMP; 143 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509051A; /* 0x2509050F: je 0x2509051a */ 144 L_25090511: 145 /* test esi, esi */ /* 0x25090511: test esi, esi */ 146 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 147 _cf = 0; 148 _flag_k = FK_TEST; 149 if (TEST_Z(_flag_a, _flag_b)) goto L_2509051A; /* 0x25090513: je 0x2509051a */ 150 L_25090515: 151 /* cmp esi, 4 */ /* 0x25090515: cmp esi, 4 */ 152 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 154 _flag_k = FK_CMP; 155 if (CMP_NE(_flag_a, _flag_b)) goto L_2509057B; /* 0x25090518: jne 0x2509057b */ 156 L_2509051A: 157 fp_push((double)(int32_t)MEM32(ebp + 0x10)); /* 0x2509051A: fild dword ptr [ebp + 0x10] */ 158 edx = ebp + (-0x20); /* 0x2509051D: lea edx, [ebp - 0x20] */ 159 PUSH32(esp, edx); /* 0x25090520: push edx */ 160 ecx = ebx; /* 0x25090521: mov ecx, ebx */ 161 _st[0] -= (double)*(float*)ADDR(0x2515351C); /* 0x25090523: fsub dword ptr [0x2515351c] */ 162 _st[0] *= (double)*(float*)ADDR(0x25151F1C); /* 0x25090529: fmul dword ptr [0x25151f1c] */ 163 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2509052F: fstp dword ptr [ebp - 0x20] */ 164 fp_push((double)(int32_t)MEM32(ebp + 0x14)); /* 0x25090532: fild dword ptr [ebp + 0x14] */ 165 _st[0] -= (double)*(float*)ADDR(0x2515351C); /* 0x25090535: fsub dword ptr [0x2515351c] */ 166 _st[0] *= (double)*(float*)ADDR(0x25151F1C); /* 0x2509053B: fmul dword ptr [0x25151f1c] */ 167 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x25090541: fstp dword ptr [ebp - 0x1c] */ 168 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x25090544: fild dword ptr [ebp + 8] */ 169 _st[0] -= (double)*(float*)ADDR(0x2515351C); /* 0x25090547: fsub dword ptr [0x2515351c] */ 170 _st[0] *= (double)*(float*)ADDR(0x25151F1C); /* 0x2509054D: fmul dword ptr [0x25151f1c] */ 171 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x25090553: fstp dword ptr [ebp - 0x18] */ 172 RECOMP_ICALL(0x25084270u); /* 0x25090556: call 0x25084270 */ /* not lifted */ 173 RECOMP_FLAGS_IN(); 174 PUSH32(esp, edi); /* 0x2509055B: push edi */ 175 ecx = ebx; /* 0x2509055C: mov ecx, ebx */ 176 RECOMP_ICALL(0x250843A0u); /* 0x2509055E: call 0x250843a0 */ /* not lifted */ 177 RECOMP_FLAGS_IN(); 178 eax = ebp + 0xC; /* 0x25090563: lea eax, [ebp + 0xc] */ 179 PUSH32(esp, eax); /* 0x25090566: push eax */ 180 ecx = ebx; /* 0x25090567: mov ecx, ebx */ 181 MEM32(ebp + 0xC) = 0x53u; /* 0x25090569: mov dword ptr [ebp + 0xc], 0x53 */ 182 RECOMP_ICALL(0x25084580u); /* 0x25090570: call 0x25084580 */ /* not lifted */ 183 RECOMP_FLAGS_IN(); 184 ecx = MEM32(ebp + 0x10); /* 0x25090575: mov ecx, dword ptr [ebp + 0x10] */ 185 eax = MEM32(ebp + 0x14); /* 0x25090578: mov eax, dword ptr [ebp + 0x14] */ 186 L_2509057B: 187 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 188 esi = esi + 1; /* 0x2509057B: inc esi */ 189 _flag_k = FK_INC; 190 /* cmp esi, 5 */ /* 0x2509057C: cmp esi, 5 */ 191 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(5); 192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 193 _flag_k = FK_CMP; 194 MEM32(ebp + 0x8) = esi; /* 0x2509057F: mov dword ptr [ebp + 8], esi */ 195 RECOMP_BACKEDGE(); 196 if (CMP_L(_flag_a, _flag_b)) goto L_250904FF; /* 0x25090582: jl 0x250904ff */ 197 L_25090588: 198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 199 eax = eax + 1; /* 0x25090588: inc eax */ 200 _flag_k = FK_INC; 201 /* cmp eax, 5 */ /* 0x25090589: cmp eax, 5 */ 202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5); 203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 204 _flag_k = FK_CMP; 205 MEM32(ebp + 0x14) = eax; /* 0x2509058C: mov dword ptr [ebp + 0x14], eax */ 206 RECOMP_BACKEDGE(); 207 if (CMP_L(_flag_a, _flag_b)) goto L_250904FA; /* 0x2509058F: jl 0x250904fa */ 208 L_25090595: 209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 210 ecx = ecx + 1; /* 0x25090595: inc ecx */ 211 _flag_k = FK_INC; 212 /* cmp ecx, 5 */ /* 0x25090596: cmp ecx, 5 */ 213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(5); 214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 215 _flag_k = FK_CMP; 216 MEM32(ebp + 0x10) = ecx; /* 0x25090599: mov dword ptr [ebp + 0x10], ecx */ 217 RECOMP_BACKEDGE(); 218 if (CMP_L(_flag_a, _flag_b)) goto L_250904F5; /* 0x2509059C: jl 0x250904f5 */ 219 L_250905A2: 220 MEM32(ebp + (-0x20)) = 0; /* 0x250905A2: mov dword ptr [ebp - 0x20], 0 */ 221 edx = MEM32(ebp + (-0x20)); /* 0x250905A9: mov edx, dword ptr [ebp - 0x20] */ 222 ecx = edi + 0x78; /* 0x250905AC: lea ecx, [edi + 0x78] */ 223 MEM32(ecx) = edx; /* 0x250905AF: mov dword ptr [ecx], edx */ 224 MEM32(ebp + (-0x1C)) = 0; /* 0x250905B1: mov dword ptr [ebp - 0x1c], 0 */ 225 eax = MEM32(ebp + (-0x1C)); /* 0x250905B8: mov eax, dword ptr [ebp - 0x1c] */ 226 MEM32(ecx + 0x4) = eax; /* 0x250905BB: mov dword ptr [ecx + 4], eax */ 227 eax = MEM32(edi); /* 0x250905BE: mov eax, dword ptr [edi] */ 228 MEM32(ebp + (-0x18)) = 0; /* 0x250905C0: mov dword ptr [ebp - 0x18], 0 */ 229 edx = MEM32(ebp + (-0x18)); /* 0x250905C7: mov edx, dword ptr [ebp - 0x18] */ 230 PUSH32(esp, 1); /* 0x250905CA: push 1 */ 231 MEM32(ecx + 0x8) = edx; /* 0x250905CC: mov dword ptr [ecx + 8], edx */ 232 PUSH32(esp, 1); /* 0x250905CF: push 1 */ 233 ecx = edi; /* 0x250905D1: mov ecx, edi */ 234 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x250905D3: call dword ptr [eax + 0x2c] */ 235 RECOMP_FLAGS_IN(); 236 ecx = MEM32(ebp + (-0xC)); /* 0x250905D6: mov ecx, dword ptr [ebp - 0xc] */ 237 MEM8(edi + 0x23D) = (uint8_t)(0); /* 0x250905D9: mov byte ptr [edi + 0x23d], 0 */ 238 eax = edi; /* 0x250905E0: mov eax, edi */ 239 edi = POP32_VAL(esp); /* 0x250905E2: pop edi */ 240 esi = POP32_VAL(esp); /* 0x250905E3: pop esi */ 241 ebx = POP32_VAL(esp); /* 0x250905E4: pop ebx */ 242 MEM32(FS_BASE + (0)) = ecx; /* 0x250905E5: mov dword ptr fs:[0], ecx */ 243 esp = ebp; /* 0x250905EC: mov esp, ebp */ 244 ebp = POP32_VAL(esp); /* 0x250905EE: pop ebp */ 245 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x250905EF: ret 0x10 */ 246 RECOMP_REGS_OUT(); 247 } 248 249 void sub_250905C7(void) { 250 int _fpu_cmp = 0; 251 uint32_t _cf = 0; 252 int _df = 1; 253 uint32_t _flag_k = FK_NONE; 254 uint32_t _flag_a = 0, _flag_b = 0; 255 uint32_t _itail_tgt = 0; 256 RECOMP_REGS_LOCALS 257 RECOMP_ENTER(0x250905C7u); 258 259 L_250905C7: 260 edx = MEM32(ebp + (-0x18)); /* 0x250905C7: mov edx, dword ptr [ebp - 0x18] */ 261 PUSH32(esp, 1); /* 0x250905CA: push 1 */ 262 MEM32(ecx + 0x8) = edx; /* 0x250905CC: mov dword ptr [ecx + 8], edx */ 263 PUSH32(esp, 1); /* 0x250905CF: push 1 */ 264 ecx = edi; /* 0x250905D1: mov ecx, edi */ 265 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x250905D3: call dword ptr [eax + 0x2c] */ 266 RECOMP_FLAGS_IN(); 267 ecx = MEM32(ebp + (-0xC)); /* 0x250905D6: mov ecx, dword ptr [ebp - 0xc] */ 268 MEM8(edi + 0x23D) = (uint8_t)(0); /* 0x250905D9: mov byte ptr [edi + 0x23d], 0 */ 269 eax = edi; /* 0x250905E0: mov eax, edi */ 270 edi = POP32_VAL(esp); /* 0x250905E2: pop edi */ 271 esi = POP32_VAL(esp); /* 0x250905E3: pop esi */ 272 ebx = POP32_VAL(esp); /* 0x250905E4: pop ebx */ 273 MEM32(FS_BASE + (0)) = ecx; /* 0x250905E5: mov dword ptr fs:[0], ecx */ 274 esp = ebp; /* 0x250905EC: mov esp, ebp */ 275 ebp = POP32_VAL(esp); /* 0x250905EE: pop ebp */ 276 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x250905EF: ret 0x10 */ 277 RECOMP_REGS_OUT(); 278 } 279 280 void sub_25090600(void) { 281 int _fpu_cmp = 0; 282 uint32_t _cf = 0; 283 int _df = 1; 284 uint32_t _flag_k = FK_NONE; 285 uint32_t _flag_a = 0, _flag_b = 0; 286 uint32_t _itail_tgt = 0; 287 RECOMP_REGS_LOCALS 288 RECOMP_ENTER(0x25090600u); 289 290 L_25090600: 291 PUSH32(esp, ebp); /* 0x25090600: push ebp */ 292 ebp = esp; /* 0x25090601: mov ebp, esp */ 293 PUSH32(esp, 0xFFFFFFFFu); /* 0x25090603: push -1 */ 294 PUSH32(esp, 0x251492F8u); /* 0x25090605: push 0x251492f8 */ 295 eax = MEM32(FS_BASE + (0)); /* 0x2509060A: mov eax, dword ptr fs:[0] */ 296 PUSH32(esp, eax); /* 0x25090610: push eax */ 297 MEM32(FS_BASE + (0)) = esp; /* 0x25090611: mov dword ptr fs:[0], esp */ 298 PUSH32(esp, ecx); /* 0x25090618: push ecx */ 299 PUSH32(esp, esi); /* 0x25090619: push esi */ 300 esi = ecx; /* 0x2509061A: mov esi, ecx */ 301 MEM32(ebp + (-0x10)) = esi; /* 0x2509061C: mov dword ptr [ebp - 0x10], esi */ 302 MEM32(esi) = 0x25155A38u; /* 0x2509061F: mov dword ptr [esi], 0x25155a38 */ 303 MEM32(esi + 0x8) = 0x25155A28u; /* 0x25090625: mov dword ptr [esi + 8], 0x25155a28 */ 304 MEM32(esi + 0x20) = 0x25155A18u; /* 0x2509062C: mov dword ptr [esi + 0x20], 0x25155a18 */ 305 MEM32(esi + 0x38) = 0x25155A08u; /* 0x25090633: mov dword ptr [esi + 0x38], 0x25155a08 */ 306 MEM32(esi + 0x50) = 0x251559F8u; /* 0x2509063A: mov dword ptr [esi + 0x50], 0x251559f8 */ 307 MEM32(esi + 0x138) = 0x251559E8u; /* 0x25090641: mov dword ptr [esi + 0x138], 0x251559e8 */ 308 MEM32(esi + 0x150) = 0x251559D8u; /* 0x2509064B: mov dword ptr [esi + 0x150], 0x251559d8 */ 309 MEM32(ebp + (-0x4)) = 0; /* 0x25090655: mov dword ptr [ebp - 4], 0 */ 310 RECOMP_ICALL(0x25094150u); /* 0x2509065C: call 0x25094150 */ /* not lifted */ 311 RECOMP_FLAGS_IN(); 312 ecx = eax; /* 0x25090661: mov ecx, eax */ 313 RECOMP_ICALL(0x25094220u); /* 0x25090663: call 0x25094220 */ /* not lifted */ 314 RECOMP_FLAGS_IN(); 315 edx = MEM32(eax); /* 0x25090668: mov edx, dword ptr [eax] */ 316 PUSH32(esp, esi); /* 0x2509066A: push esi */ 317 ecx = eax; /* 0x2509066B: mov ecx, eax */ 318 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x2509066D: call dword ptr [edx + 0x10] */ 319 RECOMP_FLAGS_IN(); 320 ecx = esi; /* 0x25090670: mov ecx, esi */ 321 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25090672: mov dword ptr [ebp - 4], 0xffffffff */ 322 RECOMP_ICALL(0x250F2480u); /* 0x25090679: call 0x250f2480 */ /* not lifted */ 323 RECOMP_FLAGS_IN(); 324 ecx = MEM32(ebp + (-0xC)); /* 0x2509067E: mov ecx, dword ptr [ebp - 0xc] */ 325 esi = POP32_VAL(esp); /* 0x25090681: pop esi */ 326 MEM32(FS_BASE + (0)) = ecx; /* 0x25090682: mov dword ptr fs:[0], ecx */ 327 esp = ebp; /* 0x25090689: mov esp, ebp */ 328 ebp = POP32_VAL(esp); /* 0x2509068B: pop ebp */ 329 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509068C: ret */ 330 RECOMP_REGS_OUT(); 331 } 332 333 void sub_25090690(void) { 334 int _fpu_cmp = 0; 335 uint32_t _cf = 0; 336 int _df = 1; 337 uint32_t _flag_k = FK_NONE; 338 uint32_t _flag_a = 0, _flag_b = 0; 339 uint32_t _itail_tgt = 0; 340 RECOMP_REGS_LOCALS 341 RECOMP_ENTER(0x25090690u); 342 343 L_25090690: 344 MEM32(ecx + 0x240) = 0x3F800000u; /* 0x25090690: mov dword ptr [ecx + 0x240], 0x3f800000 */ 345 RECOMP_ICALL(0x2507F900u); /* 0x2509069A: call 0x2507f900 */ /* not lifted */ 346 RECOMP_FLAGS_IN(); 347 eax = MEM32(eax + 0x718); /* 0x2509069F: mov eax, dword ptr [eax + 0x718] */ 348 MEM8(eax + 0xC1) = (uint8_t)(1); /* 0x250906A5: mov byte ptr [eax + 0xc1], 1 */ 349 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250906AC: ret */ 350 RECOMP_REGS_OUT(); 351 } 352 353 void sub_250906B0(void) { 354 int _fpu_cmp = 0; 355 uint32_t _cf = 0; 356 int _df = 1; 357 uint32_t _flag_k = FK_NONE; 358 uint32_t _flag_a = 0, _flag_b = 0; 359 uint32_t _itail_tgt = 0; 360 RECOMP_REGS_LOCALS 361 RECOMP_ENTER(0x250906B0u); 362 363 L_250906B0: 364 MEM32(ecx + 0x240) = 0; /* 0x250906B0: mov dword ptr [ecx + 0x240], 0 */ 365 RECOMP_ICALL(0x2507F900u); /* 0x250906BA: call 0x2507f900 */ /* not lifted */ 366 RECOMP_FLAGS_IN(); 367 eax = MEM32(eax + 0x718); /* 0x250906BF: mov eax, dword ptr [eax + 0x718] */ 368 MEM8(eax + 0xC1) = (uint8_t)(0); /* 0x250906C5: mov byte ptr [eax + 0xc1], 0 */ 369 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250906CC: ret */ 370 RECOMP_REGS_OUT(); 371 } 372 373 void sub_250906D0(void) { 374 int _fpu_cmp = 0; 375 uint32_t _cf = 0; 376 int _df = 1; 377 uint32_t _flag_k = FK_NONE; 378 uint32_t _flag_a = 0, _flag_b = 0; 379 uint32_t _itail_tgt = 0; 380 RECOMP_REGS_LOCALS 381 RECOMP_ENTER(0x250906D0u); 382 383 L_250906D0: 384 PUSH32(esp, ebp); /* 0x250906D0: push ebp */ 385 ebp = esp; /* 0x250906D1: mov ebp, esp */ 386 PUSH32(esp, 0xFFFFFFFFu); /* 0x250906D3: push -1 */ 387 PUSH32(esp, 0x2514934Cu); /* 0x250906D5: push 0x2514934c */ 388 eax = MEM32(FS_BASE + (0)); /* 0x250906DA: mov eax, dword ptr fs:[0] */ 389 PUSH32(esp, eax); /* 0x250906E0: push eax */ 390 MEM32(FS_BASE + (0)) = esp; /* 0x250906E1: mov dword ptr fs:[0], esp */ 391 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x98u); 392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 393 esp = esp - 0x98u; /* 0x250906E8: sub esp, 0x98 */ 394 _flag_k = FK_CMP; 395 PUSH32(esp, ebx); /* 0x250906EE: push ebx */ 396 ebx = ecx; /* 0x250906EF: mov ebx, ecx */ 397 RECOMP_ICALL(0x2507F900u); /* 0x250906F1: call 0x2507f900 */ /* not lifted */ 398 RECOMP_FLAGS_IN(); 399 eax = MEM32(eax + 0x718); /* 0x250906F6: mov eax, dword ptr [eax + 0x718] */ 400 /* cmp MEM8(eax), 0 */ /* 0x250906FC: cmp byte ptr [eax], 0 */ 401 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 403 _flag_k = FK_NARROW(FK_CMP, 24); 404 if (CMP_NE(_flag_a, _flag_b)) goto L_25090A0A; /* 0x250906FF: jne 0x25090a0a */ 405 L_25090705: 406 eax = MEM32(ebp + 0x8); /* 0x25090705: mov eax, dword ptr [ebp + 8] */ 407 ecx = MEM32(eax + 0xC); /* 0x25090708: mov ecx, dword ptr [eax + 0xc] */ 408 /* test ecx, ecx */ /* 0x2509070B: test ecx, ecx */ 409 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 410 _cf = 0; 411 _flag_k = FK_TEST; 412 if (TEST_Z(_flag_a, _flag_b)) goto L_25090A0A; /* 0x2509070D: je 0x25090a0a */ 413 L_25090713: 414 fp_push(*(float*)&MEM32(ebx + 0x240)); /* 0x25090713: fld dword ptr [ebx + 0x240] */ 415 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25153518)); /* 0x25090719: fcomp dword ptr [0x25153518] */ 416 fp_pop(); 417 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509071F: fnstsw ax */ 418 /* test HI8(eax), 0x41u */ /* 0x25090721: test ah, 0x41 */ 419 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 420 _cf = 0; 421 _flag_k = FK_NARROW(FK_TEST, 24); 422 if (TEST_NZ(_flag_a, _flag_b)) goto L_25090A0A; /* 0x25090724: jne 0x25090a0a */ 423 L_2509072A: 424 fp_push(*(float*)&MEM32(ebx + 0x94)); /* 0x2509072A: fld dword ptr [ebx + 0x94] */ 425 fp_push(*(float*)&MEM32(ecx + 0x14C)); /* 0x25090730: fld dword ptr [ecx + 0x14c] */ 426 _st[0] /= (double)*(float*)ADDR(0x251B40C8); /* 0x25090736: fdiv dword ptr [0x251b40c8] */ 427 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2509073C: fstp dword ptr [ebp - 0x10] */ 428 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2509073F: fsub dword ptr [ebp - 0x10] */ 429 _st[0] = fabs(_st[0]); /* 0x25090742: fabs */ 430 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x25153518)); /* 0x25090744: fcomp dword ptr [0x25153518] */ 431 fp_pop(); 432 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x2509074A: fnstsw ax */ 433 /* test HI8(eax), 0x41u */ /* 0x2509074C: test ah, 0x41 */ 434 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 435 _cf = 0; 436 _flag_k = FK_NARROW(FK_TEST, 24); 437 if (TEST_NZ(_flag_a, _flag_b)) goto L_25090765; /* 0x2509074F: jne 0x25090765 */ 438 L_25090751: 439 ecx = MEM32(ebp + (-0x10)); /* 0x25090751: mov ecx, dword ptr [ebp - 0x10] */ 440 edx = MEM32(ebx); /* 0x25090754: mov edx, dword ptr [ebx] */ 441 PUSH32(esp, 1); /* 0x25090756: push 1 */ 442 MEM32(ebx + 0x94) = ecx; /* 0x25090758: mov dword ptr [ebx + 0x94], ecx */ 443 PUSH32(esp, 4); /* 0x2509075E: push 4 */ 444 ecx = ebx; /* 0x25090760: mov ecx, ebx */ 445 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x25090762: call dword ptr [edx + 0x2c] */ 446 RECOMP_FLAGS_IN(); 447 L_25090765: 448 PUSH32(esp, esi); /* 0x25090765: push esi */ 449 PUSH32(esp, edi); /* 0x25090766: push edi */ 450 ecx = ebx; /* 0x25090767: mov ecx, ebx */ 451 RECOMP_ICALL(0x250E2EC0u); /* 0x25090769: call 0x250e2ec0 */ /* not lifted */ 452 RECOMP_FLAGS_IN(); 453 ecx = 0x10u; /* 0x2509076E: mov ecx, 0x10 */ 454 esi = eax; /* 0x25090773: mov esi, eax */ 455 edi = ebp + (-0xA4); /* 0x25090775: lea edi, [ebp - 0xa4] */ 456 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2509077B: 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; } 457 edi = MEM32(ebp + 0x8); /* 0x2509077D: mov edi, dword ptr [ebp + 8] */ 458 ecx = MEM32(edi + 0xC); /* 0x25090780: mov ecx, dword ptr [edi + 0xc] */ 459 MEM32(ebp + (-0x4)) = 0; /* 0x25090783: mov dword ptr [ebp - 4], 0 */ 460 RECOMP_ICALL(0x250E2EC0u); /* 0x2509078A: call 0x250e2ec0 */ /* not lifted */ 461 RECOMP_FLAGS_IN(); 462 ecx = MEM32(eax + 0x38); /* 0x2509078F: mov ecx, dword ptr [eax + 0x38] */ 463 edx = MEM32(eax + 0x34); /* 0x25090792: mov edx, dword ptr [eax + 0x34] */ 464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 466 eax = eax + 0x30u; /* 0x25090795: add eax, 0x30 */ 467 _flag_k = FK_ADD; 468 eax = MEM32(eax); /* 0x25090798: mov eax, dword ptr [eax] */ 469 PUSH32(esp, ecx); /* 0x2509079A: push ecx */ 470 PUSH32(esp, edx); /* 0x2509079B: push edx */ 471 PUSH32(esp, eax); /* 0x2509079C: push eax */ 472 ecx = ebp + (-0xA4); /* 0x2509079D: lea ecx, [ebp - 0xa4] */ 473 RECOMP_ICALL(MEM32(0x25151500)); /* 0x250907A3: call dword ptr [0x25151500] */ 474 RECOMP_FLAGS_IN(); 475 ecx = ebp + (-0xA4); /* 0x250907A9: lea ecx, [ebp - 0xa4] */ 476 PUSH32(esp, ecx); /* 0x250907AF: push ecx */ 477 ecx = MEM32(0x25238B58); /* 0x250907B0: mov ecx, dword ptr [0x25238b58] */ 478 PUSH32(esp, 1); /* 0x250907B6: push 1 */ 479 RECOMP_ICALL(0x250E8950u); /* 0x250907B8: call 0x250e8950 */ /* not lifted */ 480 RECOMP_FLAGS_IN(); 481 eax = MEM32(0x25238B94); /* 0x250907BD: mov eax, dword ptr [0x25238b94] */ 482 SET_LO8(ecx, MEM8(eax + 0x1D)); /* 0x250907C2: mov cl, byte ptr [eax + 0x1d] */ 483 esi = MEM32(eax + 0x894); /* 0x250907C5: mov esi, dword ptr [eax + 0x894] */ 484 eax = MEM32(esi + 0x4E8); /* 0x250907CB: mov eax, dword ptr [esi + 0x4e8] */ 485 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 486 edx = 0; /* 0x250907D1: xor edx, edx */ 487 _cf = 0; 488 _flag_k = FK_TEST; 489 /* test LO8(ecx), LO8(ecx) */ /* 0x250907D3: test cl, cl */ 490 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 491 _cf = 0; 492 _flag_k = FK_NARROW(FK_TEST, 24); 493 SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x250907D5: setne dl */ 494 PUSH32(esp, 0xAu); /* 0x250907D8: push 0xa */ 495 ecx = esi; /* 0x250907DA: mov ecx, esi */ 496 MEM32(ebp + (-0x58)) = 7; /* 0x250907DC: mov dword ptr [ebp - 0x58], 7 */ 497 MEM32(ebp + (-0x1C)) = eax; /* 0x250907E3: mov dword ptr [ebp - 0x1c], eax */ 498 MEM32(ebp + (-0x54)) = eax; /* 0x250907E6: mov dword ptr [ebp - 0x54], eax */ 499 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 500 edx = edx + 1; /* 0x250907E9: inc edx */ 501 _flag_k = FK_INC; 502 PUSH32(esp, edx); /* 0x250907EA: push edx */ 503 PUSH32(esp, 7); /* 0x250907EB: push 7 */ 504 RECOMP_ICALL(0x250EFE90u); /* 0x250907ED: call 0x250efe90 */ /* not lifted */ 505 RECOMP_FLAGS_IN(); 506 MEM8(ebp + (-0x50)) = (uint8_t)(LO8(eax)); /* 0x250907F2: mov byte ptr [ebp - 0x50], al */ 507 eax = MEM32(0x25238B94); /* 0x250907F5: mov eax, dword ptr [0x25238b94] */ 508 ecx = MEM32(eax + 0x894); /* 0x250907FA: mov ecx, dword ptr [eax + 0x894] */ 509 eax = MEM32(ecx + 0x504); /* 0x25090800: mov eax, dword ptr [ecx + 0x504] */ 510 PUSH32(esp, 0xAu); /* 0x25090806: push 0xa */ 511 PUSH32(esp, 0); /* 0x25090808: push 0 */ 512 PUSH32(esp, 0xEu); /* 0x2509080A: push 0xe */ 513 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2509080C: mov byte ptr [ebp - 4], 1 */ 514 MEM32(ebp + (-0x40)) = 0xEu; /* 0x25090810: mov dword ptr [ebp - 0x40], 0xe */ 515 MEM32(ebp + (-0x18)) = eax; /* 0x25090817: mov dword ptr [ebp - 0x18], eax */ 516 MEM32(ebp + (-0x3C)) = eax; /* 0x2509081A: mov dword ptr [ebp - 0x3c], eax */ 517 RECOMP_ICALL(0x250EFE90u); /* 0x2509081D: call 0x250efe90 */ /* not lifted */ 518 RECOMP_FLAGS_IN(); 519 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x25090822: mov byte ptr [ebp - 0x38], al */ 520 ecx = MEM32(0x25238B94); /* 0x25090825: mov ecx, dword ptr [0x25238b94] */ 521 ecx = MEM32(ecx + 0x894); /* 0x2509082B: mov ecx, dword ptr [ecx + 0x894] */ 522 eax = MEM32(ecx + 0x538); /* 0x25090831: mov eax, dword ptr [ecx + 0x538] */ 523 PUSH32(esp, 0xAu); /* 0x25090837: push 0xa */ 524 PUSH32(esp, 0); /* 0x25090839: push 0 */ 525 PUSH32(esp, 0x1Bu); /* 0x2509083B: push 0x1b */ 526 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x2509083D: mov byte ptr [ebp - 4], 2 */ 527 MEM32(ebp + (-0x34)) = 0x1Bu; /* 0x25090841: mov dword ptr [ebp - 0x34], 0x1b */ 528 MEM32(ebp + (-0x14)) = eax; /* 0x25090848: mov dword ptr [ebp - 0x14], eax */ 529 MEM32(ebp + (-0x30)) = eax; /* 0x2509084B: mov dword ptr [ebp - 0x30], eax */ 530 RECOMP_ICALL(0x250EFE90u); /* 0x2509084E: call 0x250efe90 */ /* not lifted */ 531 RECOMP_FLAGS_IN(); 532 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x25090853: mov byte ptr [ebp - 0x2c], al */ 533 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x25090856: mov byte ptr [ebp - 4], 3 */ 534 RECOMP_ICALL(0x25087680u); /* 0x2509085A: call 0x25087680 */ /* not lifted */ 535 RECOMP_FLAGS_IN(); 536 ecx = eax; /* 0x2509085F: mov ecx, eax */ 537 RECOMP_ICALL(0x25087800u); /* 0x25090861: call 0x25087800 */ /* not lifted */ 538 RECOMP_FLAGS_IN(); 539 edx = MEM32(0x25238B94); /* 0x25090866: mov edx, dword ptr [0x25238b94] */ 540 ecx = MEM32(edx + 0x894); /* 0x2509086C: mov ecx, dword ptr [edx + 0x894] */ 541 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 542 _cf = (LO8(eax)) != 0; 543 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x25090872: neg al */ 544 _flag_k = FK_NARROW(FK_CMP, 24); 545 MEM32(ebp + (-0x4C)) = 0x1Cu; /* 0x25090874: mov dword ptr [ebp - 0x4c], 0x1c */ 546 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2509087B: sbb eax, eax */ 547 eax = _sc ? 0xFFFFFFFFu : 0; 548 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 549 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 551 _cf = (eax) != 0; 552 eax = (uint32_t)(-(int32_t)eax); /* 0x2509087D: neg eax */ 553 _flag_k = FK_CMP; 554 edx = MEM32(ecx + 0x53C); /* 0x2509087F: mov edx, dword ptr [ecx + 0x53c] */ 555 PUSH32(esp, 0xAu); /* 0x25090885: push 0xa */ 556 PUSH32(esp, eax); /* 0x25090887: push eax */ 557 PUSH32(esp, 0x1Cu); /* 0x25090888: push 0x1c */ 558 MEM32(ebp + (-0x10)) = edx; /* 0x2509088A: mov dword ptr [ebp - 0x10], edx */ 559 MEM32(ebp + (-0x48)) = edx; /* 0x2509088D: mov dword ptr [ebp - 0x48], edx */ 560 RECOMP_ICALL(0x250EFE90u); /* 0x25090890: call 0x250efe90 */ /* not lifted */ 561 RECOMP_FLAGS_IN(); 562 MEM8(ebp + (-0x44)) = (uint8_t)(LO8(eax)); /* 0x25090895: mov byte ptr [ebp - 0x44], al */ 563 eax = MEM32(0x25238B94); /* 0x25090898: mov eax, dword ptr [0x25238b94] */ 564 ecx = MEM32(eax + 0x894); /* 0x2509089D: mov ecx, dword ptr [eax + 0x894] */ 565 eax = MEM32(ecx + 0x6F0); /* 0x250908A3: mov eax, dword ptr [ecx + 0x6f0] */ 566 PUSH32(esp, 0xAu); /* 0x250908A9: push 0xa */ 567 PUSH32(esp, 0); /* 0x250908AB: push 0 */ 568 PUSH32(esp, 0x89u); /* 0x250908AD: push 0x89 */ 569 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x250908B2: mov byte ptr [ebp - 4], 4 */ 570 MEM32(ebp + (-0x28)) = 0x89u; /* 0x250908B6: mov dword ptr [ebp - 0x28], 0x89 */ 571 MEM32(ebp + 0x8) = eax; /* 0x250908BD: mov dword ptr [ebp + 8], eax */ 572 MEM32(ebp + (-0x24)) = eax; /* 0x250908C0: mov dword ptr [ebp - 0x24], eax */ 573 RECOMP_ICALL(0x250EFE90u); /* 0x250908C3: call 0x250efe90 */ /* not lifted */ 574 RECOMP_FLAGS_IN(); 575 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x250908C8: mov byte ptr [ebp - 0x20], al */ 576 ecx = MEM32(0x25238B94); /* 0x250908CB: mov ecx, dword ptr [0x25238b94] */ 577 ecx = MEM32(ecx + 0x894); /* 0x250908D1: mov ecx, dword ptr [ecx + 0x894] */ 578 esi = MEM32(ecx + 0x708); /* 0x250908D7: mov esi, dword ptr [ecx + 0x708] */ 579 PUSH32(esp, 0xAu); /* 0x250908DD: push 0xa */ 580 PUSH32(esp, 1); /* 0x250908DF: push 1 */ 581 PUSH32(esp, 0x8Fu); /* 0x250908E1: push 0x8f */ 582 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x250908E6: mov byte ptr [ebp - 4], 5 */ 583 MEM32(ebp + (-0x64)) = 0x8Fu; /* 0x250908EA: mov dword ptr [ebp - 0x64], 0x8f */ 584 MEM32(ebp + (-0x60)) = esi; /* 0x250908F1: mov dword ptr [ebp - 0x60], esi */ 585 RECOMP_ICALL(0x250EFE90u); /* 0x250908F4: call 0x250efe90 */ /* not lifted */ 586 RECOMP_FLAGS_IN(); 587 MEM8(ebp + (-0x5C)) = (uint8_t)(LO8(eax)); /* 0x250908F9: mov byte ptr [ebp - 0x5c], al */ 588 ecx = edi; /* 0x250908FC: mov ecx, edi */ 589 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x250908FE: mov byte ptr [ebp - 4], 6 */ 590 RECOMP_ICALL(0x250E05D0u); /* 0x25090902: call 0x250e05d0 */ /* not lifted */ 591 RECOMP_FLAGS_IN(); 592 edx = MEM32(ebx + 0x1F0); /* 0x25090907: mov edx, dword ptr [ebx + 0x1f0] */ 593 PUSH32(esp, 0); /* 0x2509090D: push 0 */ 594 PUSH32(esp, 1); /* 0x2509090F: push 1 */ 595 PUSH32(esp, edx); /* 0x25090911: push edx */ 596 PUSH32(esp, edi); /* 0x25090912: push edi */ 597 ecx = ebx; /* 0x25090913: mov ecx, ebx */ 598 RECOMP_ICALL(0x250DCD50u); /* 0x25090915: call 0x250dcd50 */ /* not lifted */ 599 RECOMP_FLAGS_IN(); 600 eax = MEM32(ebx); /* 0x2509091A: mov eax, dword ptr [ebx] */ 601 PUSH32(esp, 1); /* 0x2509091C: push 1 */ 602 PUSH32(esp, 4); /* 0x2509091E: push 4 */ 603 ecx = ebx; /* 0x25090920: mov ecx, ebx */ 604 MEM32(ebx + 0x94) = 0x3F800000u; /* 0x25090922: mov dword ptr [ebx + 0x94], 0x3f800000 */ 605 RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x2509092C: call dword ptr [eax + 0x2c] */ 606 RECOMP_FLAGS_IN(); 607 SET_LO8(eax, MEM8(ebp + (-0x5C))); /* 0x2509092F: mov al, byte ptr [ebp - 0x5c] */ 608 /* test LO8(eax), LO8(eax) */ /* 0x25090932: test al, al */ 609 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 610 _cf = 0; 611 _flag_k = FK_NARROW(FK_TEST, 24); 612 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x25090934: mov byte ptr [ebp - 4], 5 */ 613 if (TEST_Z(_flag_a, _flag_b)) goto L_25090953; /* 0x25090938: je 0x25090953 */ 614 L_2509093A: 615 ecx = MEM32(0x25238B94); /* 0x2509093A: mov ecx, dword ptr [0x25238b94] */ 616 ecx = MEM32(ecx + 0x894); /* 0x25090940: mov ecx, dword ptr [ecx + 0x894] */ 617 PUSH32(esp, 2); /* 0x25090946: push 2 */ 618 PUSH32(esp, esi); /* 0x25090948: push esi */ 619 PUSH32(esp, 0x8Fu); /* 0x25090949: push 0x8f */ 620 RECOMP_ICALL(0x250EFE90u); /* 0x2509094E: call 0x250efe90 */ /* not lifted */ 621 RECOMP_FLAGS_IN(); 622 L_25090953: 623 SET_LO8(eax, MEM8(ebp + (-0x20))); /* 0x25090953: mov al, byte ptr [ebp - 0x20] */ 624 /* test LO8(eax), LO8(eax) */ /* 0x25090956: test al, al */ 625 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 626 _cf = 0; 627 _flag_k = FK_NARROW(FK_TEST, 24); 628 edi = POP32_VAL(esp); /* 0x25090958: pop edi */ 629 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x25090959: mov byte ptr [ebp - 4], 4 */ 630 esi = POP32_VAL(esp); /* 0x2509095D: pop esi */ 631 if (TEST_Z(_flag_a, _flag_b)) goto L_2509097C; /* 0x2509095E: je 0x2509097c */ 632 L_25090960: 633 eax = MEM32(ebp + 0x8); /* 0x25090960: mov eax, dword ptr [ebp + 8] */ 634 edx = MEM32(0x25238B94); /* 0x25090963: mov edx, dword ptr [0x25238b94] */ 635 ecx = MEM32(edx + 0x894); /* 0x25090969: mov ecx, dword ptr [edx + 0x894] */ 636 PUSH32(esp, 2); /* 0x2509096F: push 2 */ 637 PUSH32(esp, eax); /* 0x25090971: push eax */ 638 PUSH32(esp, 0x89u); /* 0x25090972: push 0x89 */ 639 RECOMP_ICALL(0x250EFE90u); /* 0x25090977: call 0x250efe90 */ /* not lifted */ 640 RECOMP_FLAGS_IN(); 641 L_2509097C: 642 SET_LO8(eax, MEM8(ebp + (-0x44))); /* 0x2509097C: mov al, byte ptr [ebp - 0x44] */ 643 /* test LO8(eax), LO8(eax) */ /* 0x2509097F: test al, al */ 644 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 645 _cf = 0; 646 _flag_k = FK_NARROW(FK_TEST, 24); 647 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x25090981: mov byte ptr [ebp - 4], 3 */ 648 if (TEST_Z(_flag_a, _flag_b)) goto L_250909A0; /* 0x25090985: je 0x250909a0 */ 649 L_25090987: 650 edx = MEM32(ebp + (-0x10)); /* 0x25090987: mov edx, dword ptr [ebp - 0x10] */ 651 ecx = MEM32(0x25238B94); /* 0x2509098A: mov ecx, dword ptr [0x25238b94] */ 652 ecx = MEM32(ecx + 0x894); /* 0x25090990: mov ecx, dword ptr [ecx + 0x894] */ 653 PUSH32(esp, 2); /* 0x25090996: push 2 */ 654 PUSH32(esp, edx); /* 0x25090998: push edx */ 655 PUSH32(esp, 0x1Cu); /* 0x25090999: push 0x1c */ 656 RECOMP_ICALL(0x250EFE90u); /* 0x2509099B: call 0x250efe90 */ /* not lifted */ 657 RECOMP_FLAGS_IN(); 658 L_250909A0: 659 SET_LO8(eax, MEM8(ebp + (-0x2C))); /* 0x250909A0: mov al, byte ptr [ebp - 0x2c] */ 660 /* test LO8(eax), LO8(eax) */ /* 0x250909A3: test al, al */ 661 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 662 _cf = 0; 663 _flag_k = FK_NARROW(FK_TEST, 24); 664 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x250909A5: mov byte ptr [ebp - 4], 2 */ 665 if (TEST_Z(_flag_a, _flag_b)) goto L_250909C3; /* 0x250909A9: je 0x250909c3 */ 666 L_250909AB: 667 edx = MEM32(ebp + (-0x14)); /* 0x250909AB: mov edx, dword ptr [ebp - 0x14] */ 668 eax = MEM32(0x25238B94); /* 0x250909AE: mov eax, dword ptr [0x25238b94] */ 669 ecx = MEM32(eax + 0x894); /* 0x250909B3: mov ecx, dword ptr [eax + 0x894] */ 670 PUSH32(esp, 2); /* 0x250909B9: push 2 */ 671 PUSH32(esp, edx); /* 0x250909BB: push edx */ 672 PUSH32(esp, 0x1Bu); /* 0x250909BC: push 0x1b */ 673 RECOMP_ICALL(0x250EFE90u); /* 0x250909BE: call 0x250efe90 */ /* not lifted */ 674 RECOMP_FLAGS_IN(); 675 L_250909C3: 676 SET_LO8(eax, MEM8(ebp + (-0x38))); /* 0x250909C3: mov al, byte ptr [ebp - 0x38] */ 677 /* test LO8(eax), LO8(eax) */ /* 0x250909C6: test al, al */ 678 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 679 _cf = 0; 680 _flag_k = FK_NARROW(FK_TEST, 24); 681 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250909C8: mov byte ptr [ebp - 4], 1 */ 682 if (TEST_Z(_flag_a, _flag_b)) goto L_250909E6; /* 0x250909CC: je 0x250909e6 */ 683 L_250909CE: 684 edx = MEM32(ebp + (-0x18)); /* 0x250909CE: mov edx, dword ptr [ebp - 0x18] */ 685 eax = MEM32(0x25238B94); /* 0x250909D1: mov eax, dword ptr [0x25238b94] */ 686 ecx = MEM32(eax + 0x894); /* 0x250909D6: mov ecx, dword ptr [eax + 0x894] */ 687 PUSH32(esp, 2); /* 0x250909DC: push 2 */ 688 PUSH32(esp, edx); /* 0x250909DE: push edx */ 689 PUSH32(esp, 0xEu); /* 0x250909DF: push 0xe */ 690 RECOMP_ICALL(0x250EFE90u); /* 0x250909E1: call 0x250efe90 */ /* not lifted */ 691 RECOMP_FLAGS_IN(); 692 L_250909E6: 693 SET_LO8(eax, MEM8(ebp + (-0x50))); /* 0x250909E6: mov al, byte ptr [ebp - 0x50] */ 694 /* test LO8(eax), LO8(eax) */ /* 0x250909E9: test al, al */ 695 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 696 _cf = 0; 697 _flag_k = FK_NARROW(FK_TEST, 24); 698 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x250909EB: mov byte ptr [ebp - 4], 0 */ 699 if (TEST_Z(_flag_a, _flag_b)) goto L_25090A0A; /* 0x250909EF: je 0x25090a0a */ 700 L_250909F1: 701 eax = MEM32(ebp + (-0x1C)); /* 0x250909F1: mov eax, dword ptr [ebp - 0x1c] */ 702 ecx = MEM32(0x25238B94); /* 0x250909F4: mov ecx, dword ptr [0x25238b94] */ 703 ecx = MEM32(ecx + 0x894); /* 0x250909FA: mov ecx, dword ptr [ecx + 0x894] */ 704 PUSH32(esp, 2); /* 0x25090A00: push 2 */ 705 PUSH32(esp, eax); /* 0x25090A02: push eax */ 706 PUSH32(esp, 7); /* 0x25090A03: push 7 */ 707 RECOMP_ICALL(0x250EFE90u); /* 0x25090A05: call 0x250efe90 */ /* not lifted */ 708 RECOMP_FLAGS_IN(); 709 L_25090A0A: 710 ecx = MEM32(ebp + (-0xC)); /* 0x25090A0A: mov ecx, dword ptr [ebp - 0xc] */ 711 ebx = POP32_VAL(esp); /* 0x25090A0D: pop ebx */ 712 MEM32(FS_BASE + (0)) = ecx; /* 0x25090A0E: mov dword ptr fs:[0], ecx */ 713 esp = ebp; /* 0x25090A15: mov esp, ebp */ 714 ebp = POP32_VAL(esp); /* 0x25090A17: pop ebp */ 715 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090A18: ret 4 */ 716 RECOMP_REGS_OUT(); 717 } 718 719 void sub_25090A20(void) { 720 int _fpu_cmp = 0; 721 uint32_t _cf = 0; 722 int _df = 1; 723 uint32_t _flag_k = FK_NONE; 724 uint32_t _flag_a = 0, _flag_b = 0; 725 uint32_t _itail_tgt = 0; 726 RECOMP_REGS_LOCALS 727 RECOMP_ENTER(0x25090A20u); 728 729 L_25090A20: 730 PUSH32(esp, ebp); /* 0x25090A20: push ebp */ 731 ebp = esp; /* 0x25090A21: mov ebp, esp */ 732 PUSH32(esp, 0xFFFFFFFFu); /* 0x25090A23: push -1 */ 733 PUSH32(esp, 0x25149373u); /* 0x25090A25: push 0x25149373 */ 734 eax = MEM32(FS_BASE + (0)); /* 0x25090A2A: mov eax, dword ptr fs:[0] */ 735 PUSH32(esp, eax); /* 0x25090A30: push eax */ 736 MEM32(FS_BASE + (0)) = esp; /* 0x25090A31: mov dword ptr fs:[0], esp */ 737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 739 esp = esp - 0x28u; /* 0x25090A38: sub esp, 0x28 */ 740 _flag_k = FK_CMP; 741 eax = MEM32(ebp + 0x8); /* 0x25090A3B: mov eax, dword ptr [ebp + 8] */ 742 PUSH32(esp, ebx); /* 0x25090A3E: push ebx */ 743 PUSH32(esp, esi); /* 0x25090A3F: push esi */ 744 esi = ecx; /* 0x25090A40: mov esi, ecx */ 745 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 746 ebx = 0; /* 0x25090A42: xor ebx, ebx */ 747 _cf = 0; 748 _flag_k = FK_TEST; 749 MEM32(esi) = ebx; /* 0x25090A44: mov dword ptr [esi], ebx */ 750 MEM32(esi + 0x4) = eax; /* 0x25090A46: mov dword ptr [esi + 4], eax */ 751 MEM32(esi + 0x8) = ebx; /* 0x25090A49: mov dword ptr [esi + 8], ebx */ 752 MEM32(esi + 0xC) = ebx; /* 0x25090A4C: mov dword ptr [esi + 0xc], ebx */ 753 MEM32(ebp + (-0x28)) = 0x000F6951u; /* 0x25090A4F: mov dword ptr [ebp - 0x28], 0xf6951 */ 754 MEM32(ebp + (-0x24)) = eax; /* 0x25090A56: mov dword ptr [ebp - 0x24], eax */ 755 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x25090A59: call dword ptr [0x251515d8] */ 756 RECOMP_FLAGS_IN(); 757 edx = MEM32(eax); /* 0x25090A5F: mov edx, dword ptr [eax] */ 758 PUSH32(esp, 3); /* 0x25090A61: push 3 */ 759 PUSH32(esp, 1); /* 0x25090A63: push 1 */ 760 ecx = ebp + (-0x28); /* 0x25090A65: lea ecx, [ebp - 0x28] */ 761 PUSH32(esp, ecx); /* 0x25090A68: push ecx */ 762 ecx = eax; /* 0x25090A69: mov ecx, eax */ 763 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x25090A6B: call dword ptr [edx + 0x24] */ 764 RECOMP_FLAGS_IN(); 765 /* cmp eax, ebx */ /* 0x25090A6E: cmp eax, ebx */ 766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 768 _flag_k = FK_CMP; 769 MEM32(ebp + 0x8) = eax; /* 0x25090A70: mov dword ptr [ebp + 8], eax */ 770 if (CMP_EQ(_flag_a, _flag_b)) goto L_25090BCD; /* 0x25090A73: je 0x25090bcd */ 771 L_25090A79: 772 MEM32(ebp + (-0x10)) = eax; /* 0x25090A79: mov dword ptr [ebp - 0x10], eax */ 773 eax = MEM32(eax + 0x28); /* 0x25090A7C: mov eax, dword ptr [eax + 0x28] */ 774 edx = ebp + (-0x18); /* 0x25090A7F: lea edx, [ebp - 0x18] */ 775 PUSH32(esp, edx); /* 0x25090A82: push edx */ 776 ecx = ebp + (-0x30); /* 0x25090A83: lea ecx, [ebp - 0x30] */ 777 MEM32(ebp + (-0x4)) = ebx; /* 0x25090A86: mov dword ptr [ebp - 4], ebx */ 778 MEM32(ebp + (-0x18)) = eax; /* 0x25090A89: mov dword ptr [ebp - 0x18], eax */ 779 MEM32(ebp + (-0x14)) = eax; /* 0x25090A8C: mov dword ptr [ebp - 0x14], eax */ 780 RECOMP_ICALL(0x25098250u); /* 0x25090A8F: call 0x25098250 */ /* not lifted */ 781 RECOMP_FLAGS_IN(); 782 eax = MEM32(ebp + (-0x30)); /* 0x25090A94: mov eax, dword ptr [ebp - 0x30] */ 783 ecx = MEM32(ebp + (-0x2C)); /* 0x25090A97: mov ecx, dword ptr [ebp - 0x2c] */ 784 PUSH32(esp, ebx); /* 0x25090A9A: push ebx */ 785 PUSH32(esp, 0x251B2970u); /* 0x25090A9B: push 0x251b2970 */ 786 PUSH32(esp, 0x251B2970u); /* 0x25090AA0: push 0x251b2970 */ 787 PUSH32(esp, ebx); /* 0x25090AA5: push ebx */ 788 PUSH32(esp, eax); /* 0x25090AA6: push eax */ 789 MEM32(ebp + (-0x20)) = eax; /* 0x25090AA7: mov dword ptr [ebp - 0x20], eax */ 790 MEM32(ebp + (-0x1C)) = ecx; /* 0x25090AAA: mov dword ptr [ebp - 0x1c], ecx */ 791 RECOMP_ICALL(0x251381ACu); /* 0x25090AAD: call 0x251381ac */ /* not lifted */ 792 RECOMP_FLAGS_IN(); 793 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 795 esp = esp + 0x14u; /* 0x25090AB2: add esp, 0x14 */ 796 _flag_k = FK_ADD; 797 /* test eax, eax */ /* 0x25090AB5: test eax, eax */ 798 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 799 _cf = 0; 800 _flag_k = FK_TEST; 801 if (TEST_NZ(_flag_a, _flag_b)) goto L_25090AC1; /* 0x25090AB7: jne 0x25090ac1 */ 802 L_25090AB9: 803 ecx = ebp + (-0x20); /* 0x25090AB9: lea ecx, [ebp - 0x20] */ 804 RECOMP_ICALL(0x250982C0u); /* 0x25090ABC: call 0x250982c0 */ /* not lifted */ 805 RECOMP_FLAGS_IN(); 806 L_25090AC1: 807 edx = MEM32(ebp + (-0x20)); /* 0x25090AC1: mov edx, dword ptr [ebp - 0x20] */ 808 eax = MEM32(edx + 0x1F0); /* 0x25090AC4: mov eax, dword ptr [edx + 0x1f0] */ 809 eax = MEM32(eax + 0x48); /* 0x25090ACA: mov eax, dword ptr [eax + 0x48] */ 810 eax = MEM32(eax); /* 0x25090ACD: mov eax, dword ptr [eax] */ 811 eax = MEM32(eax + 0x160); /* 0x25090ACF: mov eax, dword ptr [eax + 0x160] */ 812 ecx = MEM32(ebp + 0xC); /* 0x25090AD5: mov ecx, dword ptr [ebp + 0xc] */ 813 MEM32(esi + 0xC) = eax; /* 0x25090AD8: mov dword ptr [esi + 0xc], eax */ 814 edx = ecx; /* 0x25090ADB: mov edx, ecx */ 815 MEM32(ebp + (-0x30)) = edx; /* 0x25090ADD: mov dword ptr [ebp - 0x30], edx */ 816 edx = eax + 0x3C; /* 0x25090AE0: lea edx, [eax + 0x3c] */ 817 MEM32(edx) = ecx; /* 0x25090AE3: mov dword ptr [edx], ecx */ 818 MEM32(edx + 0x4) = ecx; /* 0x25090AE5: mov dword ptr [edx + 4], ecx */ 819 MEM32(edx + 0x8) = ecx; /* 0x25090AE8: mov dword ptr [edx + 8], ecx */ 820 MEM8(eax + 0x64) = (uint8_t)(LO8(ebx)); /* 0x25090AEB: mov byte ptr [eax + 0x64], bl */ 821 eax = MEM32(esi + 0xC); /* 0x25090AEE: mov eax, dword ptr [esi + 0xc] */ 822 MEM32(ebp + (-0x34)) = ecx; /* 0x25090AF1: mov dword ptr [ebp - 0x34], ecx */ 823 MEM32(ebp + (-0x2C)) = ecx; /* 0x25090AF4: mov dword ptr [ebp - 0x2c], ecx */ 824 edx = eax + 0x24; /* 0x25090AF7: lea edx, [eax + 0x24] */ 825 MEM32(ebp + (-0x34)) = 0; /* 0x25090AFA: mov dword ptr [ebp - 0x34], 0 */ 826 ecx = MEM32(ebp + (-0x34)); /* 0x25090B01: mov ecx, dword ptr [ebp - 0x34] */ 827 MEM32(edx) = ecx; /* 0x25090B04: mov dword ptr [edx], ecx */ 828 MEM32(ebp + (-0x30)) = 0; /* 0x25090B06: mov dword ptr [ebp - 0x30], 0 */ 829 ecx = MEM32(ebp + (-0x30)); /* 0x25090B0D: mov ecx, dword ptr [ebp - 0x30] */ 830 MEM32(edx + 0x4) = ecx; /* 0x25090B10: mov dword ptr [edx + 4], ecx */ 831 MEM8(eax + 0x64) = (uint8_t)(LO8(ebx)); /* 0x25090B13: mov byte ptr [eax + 0x64], bl */ 832 MEM32(ebp + (-0x2C)) = 0; /* 0x25090B16: mov dword ptr [ebp - 0x2c], 0 */ 833 ecx = MEM32(ebp + (-0x2C)); /* 0x25090B1D: mov ecx, dword ptr [ebp - 0x2c] */ 834 MEM32(edx + 0x8) = ecx; /* 0x25090B20: mov dword ptr [edx + 8], ecx */ 835 eax = MEM32(esi + 0xC); /* 0x25090B23: mov eax, dword ptr [esi + 0xc] */ 836 edx = eax + 0x48; /* 0x25090B26: lea edx, [eax + 0x48] */ 837 MEM32(ebp + (-0x34)) = 0x3F333333u; /* 0x25090B29: mov dword ptr [ebp - 0x34], 0x3f333333 */ 838 ecx = MEM32(ebp + (-0x34)); /* 0x25090B30: mov ecx, dword ptr [ebp - 0x34] */ 839 MEM32(edx) = ecx; /* 0x25090B33: mov dword ptr [edx], ecx */ 840 MEM32(ebp + (-0x30)) = 0x3F800000u; /* 0x25090B35: mov dword ptr [ebp - 0x30], 0x3f800000 */ 841 ecx = MEM32(ebp + (-0x30)); /* 0x25090B3C: mov ecx, dword ptr [ebp - 0x30] */ 842 MEM32(edx + 0x4) = ecx; /* 0x25090B3F: mov dword ptr [edx + 4], ecx */ 843 PUSH32(esp, edi); /* 0x25090B42: push edi */ 844 MEM32(ebp + (-0x2C)) = 0x3F4CCCCDu; /* 0x25090B43: mov dword ptr [ebp - 0x2c], 0x3f4ccccd */ 845 ecx = MEM32(ebp + (-0x2C)); /* 0x25090B4A: mov ecx, dword ptr [ebp - 0x2c] */ 846 PUSH32(esp, 0x250u); /* 0x25090B4D: push 0x250 */ 847 MEM32(edx + 0x8) = ecx; /* 0x25090B52: mov dword ptr [edx + 8], ecx */ 848 MEM8(eax + 0x64) = (uint8_t)(LO8(ebx)); /* 0x25090B55: mov byte ptr [eax + 0x64], bl */ 849 RECOMP_ICALL(0x251380D0u); /* 0x25090B58: call 0x251380d0 */ /* not lifted */ 850 RECOMP_FLAGS_IN(); 851 edi = eax; /* 0x25090B5D: mov edi, eax */ 852 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 853 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 854 esp = esp + 4; /* 0x25090B5F: add esp, 4 */ 855 _flag_k = FK_ADD; 856 MEM32(ebp + (-0x14)) = edi; /* 0x25090B62: mov dword ptr [ebp - 0x14], edi */ 857 /* cmp edi, ebx */ /* 0x25090B65: cmp edi, ebx */ 858 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 860 _flag_k = FK_CMP; 861 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x25090B67: mov byte ptr [ebp - 4], 1 */ 862 if (CMP_EQ(_flag_a, _flag_b)) goto L_25090B98; /* 0x25090B6B: je 0x25090b98 */ 863 L_25090B6D: 864 edx = MEM32(ebp + (-0x20)); /* 0x25090B6D: mov edx, dword ptr [ebp - 0x20] */ 865 eax = MEM32(edx + 0x1F0); /* 0x25090B70: mov eax, dword ptr [edx + 0x1f0] */ 866 PUSH32(esp, ebx); /* 0x25090B76: push ebx */ 867 MEM32(ebp + 0xC) = eax; /* 0x25090B77: mov dword ptr [ebp + 0xc], eax */ 868 RECOMP_ICALL(0x25094150u); /* 0x25090B7A: call 0x25094150 */ /* not lifted */ 869 RECOMP_FLAGS_IN(); 870 ecx = eax; /* 0x25090B7F: mov ecx, eax */ 871 RECOMP_ICALL(0x25094220u); /* 0x25090B81: call 0x25094220 */ /* not lifted */ 872 RECOMP_FLAGS_IN(); 873 ecx = MEM32(esi + 0xC); /* 0x25090B86: mov ecx, dword ptr [esi + 0xc] */ 874 edx = MEM32(ebp + 0xC); /* 0x25090B89: mov edx, dword ptr [ebp + 0xc] */ 875 PUSH32(esp, eax); /* 0x25090B8C: push eax */ 876 PUSH32(esp, ecx); /* 0x25090B8D: push ecx */ 877 PUSH32(esp, edx); /* 0x25090B8E: push edx */ 878 ecx = edi; /* 0x25090B8F: mov ecx, edi */ 879 RECOMP_ICALL(0x25090440u); /* 0x25090B91: call 0x25090440 */ /* not lifted */ 880 RECOMP_FLAGS_IN(); 881 goto L_25090B9A; /* 0x25090B96: jmp 0x25090b9a */ 882 L_25090B98: 883 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 884 eax = 0; /* 0x25090B98: xor eax, eax */ 885 _cf = 0; 886 _flag_k = FK_TEST; 887 L_25090B9A: 888 ecx = MEM32(esi + 0xC); /* 0x25090B9A: mov ecx, dword ptr [esi + 0xc] */ 889 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x25090B9D: mov byte ptr [ebp - 4], bl */ 890 MEM32(esi + 0x8) = eax; /* 0x25090BA0: mov dword ptr [esi + 8], eax */ 891 RECOMP_ICALL(0x250E6360u); /* 0x25090BA3: call 0x250e6360 */ /* not lifted */ 892 RECOMP_FLAGS_IN(); 893 ecx = MEM32(ebp + 0x8); /* 0x25090BA8: mov ecx, dword ptr [ebp + 8] */ 894 eax = MEM32(ecx); /* 0x25090BAB: mov eax, dword ptr [ecx] */ 895 PUSH32(esp, ebx); /* 0x25090BAD: push ebx */ 896 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x25090BAE: mov dword ptr [ebp - 4], 0xffffffff */ 897 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x25090BB5: call dword ptr [eax + 0x28] */ 898 RECOMP_FLAGS_IN(); 899 edi = POP32_VAL(esp); /* 0x25090BB8: pop edi */ 900 eax = esi; /* 0x25090BB9: mov eax, esi */ 901 esi = POP32_VAL(esp); /* 0x25090BBB: pop esi */ 902 ebx = POP32_VAL(esp); /* 0x25090BBC: pop ebx */ 903 ecx = MEM32(ebp + (-0xC)); /* 0x25090BBD: mov ecx, dword ptr [ebp - 0xc] */ 904 MEM32(FS_BASE + (0)) = ecx; /* 0x25090BC0: mov dword ptr fs:[0], ecx */ 905 esp = ebp; /* 0x25090BC7: mov esp, ebp */ 906 ebp = POP32_VAL(esp); /* 0x25090BC9: pop ebp */ 907 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25090BCA: ret 8 */ 908 L_25090BCD: 909 ecx = MEM32(ebp + (-0xC)); /* 0x25090BCD: mov ecx, dword ptr [ebp - 0xc] */ 910 eax = esi; /* 0x25090BD0: mov eax, esi */ 911 esi = POP32_VAL(esp); /* 0x25090BD2: pop esi */ 912 ebx = POP32_VAL(esp); /* 0x25090BD3: pop ebx */ 913 MEM32(FS_BASE + (0)) = ecx; /* 0x25090BD4: mov dword ptr fs:[0], ecx */ 914 esp = ebp; /* 0x25090BDB: mov esp, ebp */ 915 ebp = POP32_VAL(esp); /* 0x25090BDD: pop ebp */ 916 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x25090BDE: ret 8 */ 917 RECOMP_REGS_OUT(); 918 } 919 920 void sub_25090BF0(void) { 921 int _fpu_cmp = 0; 922 uint32_t _cf = 0; 923 int _df = 1; 924 uint32_t _flag_k = FK_NONE; 925 uint32_t _flag_a = 0, _flag_b = 0; 926 uint32_t _itail_tgt = 0; 927 RECOMP_REGS_LOCALS 928 RECOMP_ENTER(0x25090BF0u); 929 930 goto L_25090BF0; 931 L_25090690: 932 MEM32(ecx + 0x240) = 0x3F800000u; /* 0x25090690: mov dword ptr [ecx + 0x240], 0x3f800000 */ 933 RECOMP_ICALL(0x2507F900u); /* 0x2509069A: call 0x2507f900 */ /* not lifted */ 934 RECOMP_FLAGS_IN(); 935 eax = MEM32(eax + 0x718); /* 0x2509069F: mov eax, dword ptr [eax + 0x718] */ 936 MEM8(eax + 0xC1) = (uint8_t)(1); /* 0x250906A5: mov byte ptr [eax + 0xc1], 1 */ 937 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250906AC: ret */ 938 L_25090BF0: 939 ecx = MEM32(ecx + 0x8); /* 0x25090BF0: mov ecx, dword ptr [ecx + 8] */ 940 /* test ecx, ecx */ /* 0x25090BF3: test ecx, ecx */ 941 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 942 _cf = 0; 943 _flag_k = FK_TEST; 944 if (TEST_Z(_flag_a, _flag_b)) goto L_25090BFC; /* 0x25090BF5: je 0x25090bfc */ 945 L_25090BF7: 946 RECOMP_BACKEDGE(); 947 goto L_25090690; /* 0x25090BF7: jmp 0x25090690 */ 948 L_25090BFC: 949 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090BFC: ret */ 950 RECOMP_REGS_OUT(); 951 } 952 953 void sub_25090C00(void) { 954 int _fpu_cmp = 0; 955 uint32_t _cf = 0; 956 int _df = 1; 957 uint32_t _flag_k = FK_NONE; 958 uint32_t _flag_a = 0, _flag_b = 0; 959 uint32_t _itail_tgt = 0; 960 RECOMP_REGS_LOCALS 961 RECOMP_ENTER(0x25090C00u); 962 963 goto L_25090C00; 964 L_250906B0: 965 MEM32(ecx + 0x240) = 0; /* 0x250906B0: mov dword ptr [ecx + 0x240], 0 */ 966 RECOMP_ICALL(0x2507F900u); /* 0x250906BA: call 0x2507f900 */ /* not lifted */ 967 RECOMP_FLAGS_IN(); 968 eax = MEM32(eax + 0x718); /* 0x250906BF: mov eax, dword ptr [eax + 0x718] */ 969 MEM8(eax + 0xC1) = (uint8_t)(0); /* 0x250906C5: mov byte ptr [eax + 0xc1], 0 */ 970 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250906CC: ret */ 971 L_25090C00: 972 ecx = MEM32(ecx + 0x8); /* 0x25090C00: mov ecx, dword ptr [ecx + 8] */ 973 /* test ecx, ecx */ /* 0x25090C03: test ecx, ecx */ 974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 975 _cf = 0; 976 _flag_k = FK_TEST; 977 if (TEST_Z(_flag_a, _flag_b)) goto L_25090C0C; /* 0x25090C05: je 0x25090c0c */ 978 L_25090C07: 979 RECOMP_BACKEDGE(); 980 goto L_250906B0; /* 0x25090C07: jmp 0x250906b0 */ 981 L_25090C0C: 982 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090C0C: ret */ 983 RECOMP_REGS_OUT(); 984 } 985 986 void sub_25090C10(void) { 987 int _fpu_cmp = 0; 988 uint32_t _cf = 0; 989 int _df = 1; 990 uint32_t _flag_k = FK_NONE; 991 uint32_t _flag_a = 0, _flag_b = 0; 992 uint32_t _itail_tgt = 0; 993 RECOMP_REGS_LOCALS 994 RECOMP_ENTER(0x25090C10u); 995 996 goto L_25090C10; 997 L_25090350: 998 PUSH32(esp, ebp); /* 0x25090350: push ebp */ 999 ebp = esp; /* 0x25090351: mov ebp, esp */ 1000 PUSH32(esp, ebx); /* 0x25090353: push ebx */ 1001 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25090354: mov bl, byte ptr [ebp + 8] */ 1002 /* test LO8(ebx), 2 */ /* 0x25090357: test bl, 2 */ 1003 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1004 _cf = 0; 1005 _flag_k = FK_NARROW(FK_TEST, 24); 1006 PUSH32(esp, esi); /* 0x2509035A: push esi */ 1007 esi = ecx; /* 0x2509035B: mov esi, ecx */ 1008 if (TEST_Z(_flag_a, _flag_b)) goto L_2509038E; /* 0x2509035D: je 0x2509038e */ 1009 L_2509035F: 1010 eax = MEM32(esi + (-0x4)); /* 0x2509035F: mov eax, dword ptr [esi - 4] */ 1011 PUSH32(esp, edi); /* 0x25090362: push edi */ 1012 PUSH32(esp, 0x25090600u); /* 0x25090363: push 0x25090600 */ 1013 edi = esi + (-0x4); /* 0x25090368: lea edi, [esi - 4] */ 1014 PUSH32(esp, eax); /* 0x2509036B: push eax */ 1015 PUSH32(esp, 0x250u); /* 0x2509036C: push 0x250 */ 1016 PUSH32(esp, esi); /* 0x25090371: push esi */ 1017 RECOMP_ICALL(0x25137F92u); /* 0x25090372: call 0x25137f92 */ /* not lifted */ 1018 RECOMP_FLAGS_IN(); 1019 /* test LO8(ebx), 1 */ /* 0x25090377: test bl, 1 */ 1020 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1021 _cf = 0; 1022 _flag_k = FK_NARROW(FK_TEST, 24); 1023 if (TEST_Z(_flag_a, _flag_b)) goto L_25090385; /* 0x2509037A: je 0x25090385 */ 1024 L_2509037C: 1025 PUSH32(esp, edi); /* 0x2509037C: push edi */ 1026 RECOMP_ICALL(0x25137EECu); /* 0x2509037D: call 0x25137eec */ /* not lifted */ 1027 RECOMP_FLAGS_IN(); 1028 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1030 esp = esp + 4; /* 0x25090382: add esp, 4 */ 1031 _flag_k = FK_ADD; 1032 L_25090385: 1033 eax = edi; /* 0x25090385: mov eax, edi */ 1034 edi = POP32_VAL(esp); /* 0x25090387: pop edi */ 1035 esi = POP32_VAL(esp); /* 0x25090388: pop esi */ 1036 ebx = POP32_VAL(esp); /* 0x25090389: pop ebx */ 1037 ebp = POP32_VAL(esp); /* 0x2509038A: pop ebp */ 1038 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509038B: ret 4 */ 1039 L_2509038E: 1040 ecx = esi; /* 0x2509038E: mov ecx, esi */ 1041 RECOMP_ICALL(0x25090600u); /* 0x25090390: call 0x25090600 */ /* not lifted */ 1042 RECOMP_FLAGS_IN(); 1043 /* test LO8(ebx), 1 */ /* 0x25090395: test bl, 1 */ 1044 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1045 _cf = 0; 1046 _flag_k = FK_NARROW(FK_TEST, 24); 1047 if (TEST_Z(_flag_a, _flag_b)) goto L_250903A3; /* 0x25090398: je 0x250903a3 */ 1048 L_2509039A: 1049 PUSH32(esp, esi); /* 0x2509039A: push esi */ 1050 RECOMP_ICALL(0x25137EECu); /* 0x2509039B: call 0x25137eec */ /* not lifted */ 1051 RECOMP_FLAGS_IN(); 1052 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1054 esp = esp + 4; /* 0x250903A0: add esp, 4 */ 1055 _flag_k = FK_ADD; 1056 L_250903A3: 1057 eax = esi; /* 0x250903A3: mov eax, esi */ 1058 esi = POP32_VAL(esp); /* 0x250903A5: pop esi */ 1059 ebx = POP32_VAL(esp); /* 0x250903A6: pop ebx */ 1060 ebp = POP32_VAL(esp); /* 0x250903A7: pop ebp */ 1061 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250903A8: ret 4 */ 1062 L_25090C10: 1063 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 1064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1065 ecx = ecx - 8; /* 0x25090C10: sub ecx, 8 */ 1066 _flag_k = FK_CMP; 1067 RECOMP_BACKEDGE(); 1068 goto L_25090350; /* 0x25090C13: jmp 0x25090350 */ 1069 { RECOMP_REGS_OUT(); return; } /* end of function */ 1070 RECOMP_REGS_OUT(); 1071 } 1072 1073 void sub_25090C20(void) { 1074 int _fpu_cmp = 0; 1075 uint32_t _cf = 0; 1076 int _df = 1; 1077 uint32_t _flag_k = FK_NONE; 1078 uint32_t _flag_a = 0, _flag_b = 0; 1079 uint32_t _itail_tgt = 0; 1080 RECOMP_REGS_LOCALS 1081 RECOMP_ENTER(0x25090C20u); 1082 1083 goto L_25090C20; 1084 L_25090350: 1085 PUSH32(esp, ebp); /* 0x25090350: push ebp */ 1086 ebp = esp; /* 0x25090351: mov ebp, esp */ 1087 PUSH32(esp, ebx); /* 0x25090353: push ebx */ 1088 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25090354: mov bl, byte ptr [ebp + 8] */ 1089 /* test LO8(ebx), 2 */ /* 0x25090357: test bl, 2 */ 1090 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1091 _cf = 0; 1092 _flag_k = FK_NARROW(FK_TEST, 24); 1093 PUSH32(esp, esi); /* 0x2509035A: push esi */ 1094 esi = ecx; /* 0x2509035B: mov esi, ecx */ 1095 if (TEST_Z(_flag_a, _flag_b)) goto L_2509038E; /* 0x2509035D: je 0x2509038e */ 1096 L_2509035F: 1097 eax = MEM32(esi + (-0x4)); /* 0x2509035F: mov eax, dword ptr [esi - 4] */ 1098 PUSH32(esp, edi); /* 0x25090362: push edi */ 1099 PUSH32(esp, 0x25090600u); /* 0x25090363: push 0x25090600 */ 1100 edi = esi + (-0x4); /* 0x25090368: lea edi, [esi - 4] */ 1101 PUSH32(esp, eax); /* 0x2509036B: push eax */ 1102 PUSH32(esp, 0x250u); /* 0x2509036C: push 0x250 */ 1103 PUSH32(esp, esi); /* 0x25090371: push esi */ 1104 RECOMP_ICALL(0x25137F92u); /* 0x25090372: call 0x25137f92 */ /* not lifted */ 1105 RECOMP_FLAGS_IN(); 1106 /* test LO8(ebx), 1 */ /* 0x25090377: test bl, 1 */ 1107 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1108 _cf = 0; 1109 _flag_k = FK_NARROW(FK_TEST, 24); 1110 if (TEST_Z(_flag_a, _flag_b)) goto L_25090385; /* 0x2509037A: je 0x25090385 */ 1111 L_2509037C: 1112 PUSH32(esp, edi); /* 0x2509037C: push edi */ 1113 RECOMP_ICALL(0x25137EECu); /* 0x2509037D: call 0x25137eec */ /* not lifted */ 1114 RECOMP_FLAGS_IN(); 1115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1117 esp = esp + 4; /* 0x25090382: add esp, 4 */ 1118 _flag_k = FK_ADD; 1119 L_25090385: 1120 eax = edi; /* 0x25090385: mov eax, edi */ 1121 edi = POP32_VAL(esp); /* 0x25090387: pop edi */ 1122 esi = POP32_VAL(esp); /* 0x25090388: pop esi */ 1123 ebx = POP32_VAL(esp); /* 0x25090389: pop ebx */ 1124 ebp = POP32_VAL(esp); /* 0x2509038A: pop ebp */ 1125 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509038B: ret 4 */ 1126 L_2509038E: 1127 ecx = esi; /* 0x2509038E: mov ecx, esi */ 1128 RECOMP_ICALL(0x25090600u); /* 0x25090390: call 0x25090600 */ /* not lifted */ 1129 RECOMP_FLAGS_IN(); 1130 /* test LO8(ebx), 1 */ /* 0x25090395: test bl, 1 */ 1131 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1132 _cf = 0; 1133 _flag_k = FK_NARROW(FK_TEST, 24); 1134 if (TEST_Z(_flag_a, _flag_b)) goto L_250903A3; /* 0x25090398: je 0x250903a3 */ 1135 L_2509039A: 1136 PUSH32(esp, esi); /* 0x2509039A: push esi */ 1137 RECOMP_ICALL(0x25137EECu); /* 0x2509039B: call 0x25137eec */ /* not lifted */ 1138 RECOMP_FLAGS_IN(); 1139 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1141 esp = esp + 4; /* 0x250903A0: add esp, 4 */ 1142 _flag_k = FK_ADD; 1143 L_250903A3: 1144 eax = esi; /* 0x250903A3: mov eax, esi */ 1145 esi = POP32_VAL(esp); /* 0x250903A5: pop esi */ 1146 ebx = POP32_VAL(esp); /* 0x250903A6: pop ebx */ 1147 ebp = POP32_VAL(esp); /* 0x250903A7: pop ebp */ 1148 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250903A8: ret 4 */ 1149 L_25090C20: 1150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 1151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1152 ecx = ecx - 0x20u; /* 0x25090C20: sub ecx, 0x20 */ 1153 _flag_k = FK_CMP; 1154 RECOMP_BACKEDGE(); 1155 goto L_25090350; /* 0x25090C23: jmp 0x25090350 */ 1156 { RECOMP_REGS_OUT(); return; } /* end of function */ 1157 RECOMP_REGS_OUT(); 1158 } 1159 1160 void sub_25090C30(void) { 1161 int _fpu_cmp = 0; 1162 uint32_t _cf = 0; 1163 int _df = 1; 1164 uint32_t _flag_k = FK_NONE; 1165 uint32_t _flag_a = 0, _flag_b = 0; 1166 uint32_t _itail_tgt = 0; 1167 RECOMP_REGS_LOCALS 1168 RECOMP_ENTER(0x25090C30u); 1169 1170 goto L_25090C30; 1171 L_25090350: 1172 PUSH32(esp, ebp); /* 0x25090350: push ebp */ 1173 ebp = esp; /* 0x25090351: mov ebp, esp */ 1174 PUSH32(esp, ebx); /* 0x25090353: push ebx */ 1175 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25090354: mov bl, byte ptr [ebp + 8] */ 1176 /* test LO8(ebx), 2 */ /* 0x25090357: test bl, 2 */ 1177 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1178 _cf = 0; 1179 _flag_k = FK_NARROW(FK_TEST, 24); 1180 PUSH32(esp, esi); /* 0x2509035A: push esi */ 1181 esi = ecx; /* 0x2509035B: mov esi, ecx */ 1182 if (TEST_Z(_flag_a, _flag_b)) goto L_2509038E; /* 0x2509035D: je 0x2509038e */ 1183 L_2509035F: 1184 eax = MEM32(esi + (-0x4)); /* 0x2509035F: mov eax, dword ptr [esi - 4] */ 1185 PUSH32(esp, edi); /* 0x25090362: push edi */ 1186 PUSH32(esp, 0x25090600u); /* 0x25090363: push 0x25090600 */ 1187 edi = esi + (-0x4); /* 0x25090368: lea edi, [esi - 4] */ 1188 PUSH32(esp, eax); /* 0x2509036B: push eax */ 1189 PUSH32(esp, 0x250u); /* 0x2509036C: push 0x250 */ 1190 PUSH32(esp, esi); /* 0x25090371: push esi */ 1191 RECOMP_ICALL(0x25137F92u); /* 0x25090372: call 0x25137f92 */ /* not lifted */ 1192 RECOMP_FLAGS_IN(); 1193 /* test LO8(ebx), 1 */ /* 0x25090377: test bl, 1 */ 1194 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1195 _cf = 0; 1196 _flag_k = FK_NARROW(FK_TEST, 24); 1197 if (TEST_Z(_flag_a, _flag_b)) goto L_25090385; /* 0x2509037A: je 0x25090385 */ 1198 L_2509037C: 1199 PUSH32(esp, edi); /* 0x2509037C: push edi */ 1200 RECOMP_ICALL(0x25137EECu); /* 0x2509037D: call 0x25137eec */ /* not lifted */ 1201 RECOMP_FLAGS_IN(); 1202 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1204 esp = esp + 4; /* 0x25090382: add esp, 4 */ 1205 _flag_k = FK_ADD; 1206 L_25090385: 1207 eax = edi; /* 0x25090385: mov eax, edi */ 1208 edi = POP32_VAL(esp); /* 0x25090387: pop edi */ 1209 esi = POP32_VAL(esp); /* 0x25090388: pop esi */ 1210 ebx = POP32_VAL(esp); /* 0x25090389: pop ebx */ 1211 ebp = POP32_VAL(esp); /* 0x2509038A: pop ebp */ 1212 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509038B: ret 4 */ 1213 L_2509038E: 1214 ecx = esi; /* 0x2509038E: mov ecx, esi */ 1215 RECOMP_ICALL(0x25090600u); /* 0x25090390: call 0x25090600 */ /* not lifted */ 1216 RECOMP_FLAGS_IN(); 1217 /* test LO8(ebx), 1 */ /* 0x25090395: test bl, 1 */ 1218 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1219 _cf = 0; 1220 _flag_k = FK_NARROW(FK_TEST, 24); 1221 if (TEST_Z(_flag_a, _flag_b)) goto L_250903A3; /* 0x25090398: je 0x250903a3 */ 1222 L_2509039A: 1223 PUSH32(esp, esi); /* 0x2509039A: push esi */ 1224 RECOMP_ICALL(0x25137EECu); /* 0x2509039B: call 0x25137eec */ /* not lifted */ 1225 RECOMP_FLAGS_IN(); 1226 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1228 esp = esp + 4; /* 0x250903A0: add esp, 4 */ 1229 _flag_k = FK_ADD; 1230 L_250903A3: 1231 eax = esi; /* 0x250903A3: mov eax, esi */ 1232 esi = POP32_VAL(esp); /* 0x250903A5: pop esi */ 1233 ebx = POP32_VAL(esp); /* 0x250903A6: pop ebx */ 1234 ebp = POP32_VAL(esp); /* 0x250903A7: pop ebp */ 1235 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250903A8: ret 4 */ 1236 L_25090C30: 1237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 1238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1239 ecx = ecx - 0x38u; /* 0x25090C30: sub ecx, 0x38 */ 1240 _flag_k = FK_CMP; 1241 RECOMP_BACKEDGE(); 1242 goto L_25090350; /* 0x25090C33: jmp 0x25090350 */ 1243 { RECOMP_REGS_OUT(); return; } /* end of function */ 1244 RECOMP_REGS_OUT(); 1245 } 1246 1247 void sub_25090C40(void) { 1248 int _fpu_cmp = 0; 1249 uint32_t _cf = 0; 1250 int _df = 1; 1251 uint32_t _flag_k = FK_NONE; 1252 uint32_t _flag_a = 0, _flag_b = 0; 1253 uint32_t _itail_tgt = 0; 1254 RECOMP_REGS_LOCALS 1255 RECOMP_ENTER(0x25090C40u); 1256 1257 goto L_25090C40; 1258 L_25090350: 1259 PUSH32(esp, ebp); /* 0x25090350: push ebp */ 1260 ebp = esp; /* 0x25090351: mov ebp, esp */ 1261 PUSH32(esp, ebx); /* 0x25090353: push ebx */ 1262 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25090354: mov bl, byte ptr [ebp + 8] */ 1263 /* test LO8(ebx), 2 */ /* 0x25090357: test bl, 2 */ 1264 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1265 _cf = 0; 1266 _flag_k = FK_NARROW(FK_TEST, 24); 1267 PUSH32(esp, esi); /* 0x2509035A: push esi */ 1268 esi = ecx; /* 0x2509035B: mov esi, ecx */ 1269 if (TEST_Z(_flag_a, _flag_b)) goto L_2509038E; /* 0x2509035D: je 0x2509038e */ 1270 L_2509035F: 1271 eax = MEM32(esi + (-0x4)); /* 0x2509035F: mov eax, dword ptr [esi - 4] */ 1272 PUSH32(esp, edi); /* 0x25090362: push edi */ 1273 PUSH32(esp, 0x25090600u); /* 0x25090363: push 0x25090600 */ 1274 edi = esi + (-0x4); /* 0x25090368: lea edi, [esi - 4] */ 1275 PUSH32(esp, eax); /* 0x2509036B: push eax */ 1276 PUSH32(esp, 0x250u); /* 0x2509036C: push 0x250 */ 1277 PUSH32(esp, esi); /* 0x25090371: push esi */ 1278 RECOMP_ICALL(0x25137F92u); /* 0x25090372: call 0x25137f92 */ /* not lifted */ 1279 RECOMP_FLAGS_IN(); 1280 /* test LO8(ebx), 1 */ /* 0x25090377: test bl, 1 */ 1281 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1282 _cf = 0; 1283 _flag_k = FK_NARROW(FK_TEST, 24); 1284 if (TEST_Z(_flag_a, _flag_b)) goto L_25090385; /* 0x2509037A: je 0x25090385 */ 1285 L_2509037C: 1286 PUSH32(esp, edi); /* 0x2509037C: push edi */ 1287 RECOMP_ICALL(0x25137EECu); /* 0x2509037D: call 0x25137eec */ /* not lifted */ 1288 RECOMP_FLAGS_IN(); 1289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1291 esp = esp + 4; /* 0x25090382: add esp, 4 */ 1292 _flag_k = FK_ADD; 1293 L_25090385: 1294 eax = edi; /* 0x25090385: mov eax, edi */ 1295 edi = POP32_VAL(esp); /* 0x25090387: pop edi */ 1296 esi = POP32_VAL(esp); /* 0x25090388: pop esi */ 1297 ebx = POP32_VAL(esp); /* 0x25090389: pop ebx */ 1298 ebp = POP32_VAL(esp); /* 0x2509038A: pop ebp */ 1299 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509038B: ret 4 */ 1300 L_2509038E: 1301 ecx = esi; /* 0x2509038E: mov ecx, esi */ 1302 RECOMP_ICALL(0x25090600u); /* 0x25090390: call 0x25090600 */ /* not lifted */ 1303 RECOMP_FLAGS_IN(); 1304 /* test LO8(ebx), 1 */ /* 0x25090395: test bl, 1 */ 1305 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1306 _cf = 0; 1307 _flag_k = FK_NARROW(FK_TEST, 24); 1308 if (TEST_Z(_flag_a, _flag_b)) goto L_250903A3; /* 0x25090398: je 0x250903a3 */ 1309 L_2509039A: 1310 PUSH32(esp, esi); /* 0x2509039A: push esi */ 1311 RECOMP_ICALL(0x25137EECu); /* 0x2509039B: call 0x25137eec */ /* not lifted */ 1312 RECOMP_FLAGS_IN(); 1313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1315 esp = esp + 4; /* 0x250903A0: add esp, 4 */ 1316 _flag_k = FK_ADD; 1317 L_250903A3: 1318 eax = esi; /* 0x250903A3: mov eax, esi */ 1319 esi = POP32_VAL(esp); /* 0x250903A5: pop esi */ 1320 ebx = POP32_VAL(esp); /* 0x250903A6: pop ebx */ 1321 ebp = POP32_VAL(esp); /* 0x250903A7: pop ebp */ 1322 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250903A8: ret 4 */ 1323 L_25090C40: 1324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 1325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1326 ecx = ecx - 0x50u; /* 0x25090C40: sub ecx, 0x50 */ 1327 _flag_k = FK_CMP; 1328 RECOMP_BACKEDGE(); 1329 goto L_25090350; /* 0x25090C43: jmp 0x25090350 */ 1330 { RECOMP_REGS_OUT(); return; } /* end of function */ 1331 RECOMP_REGS_OUT(); 1332 } 1333 1334 void sub_25090C50(void) { 1335 int _fpu_cmp = 0; 1336 uint32_t _cf = 0; 1337 int _df = 1; 1338 uint32_t _flag_k = FK_NONE; 1339 uint32_t _flag_a = 0, _flag_b = 0; 1340 uint32_t _itail_tgt = 0; 1341 RECOMP_REGS_LOCALS 1342 RECOMP_ENTER(0x25090C50u); 1343 1344 goto L_25090C50; 1345 L_25090350: 1346 PUSH32(esp, ebp); /* 0x25090350: push ebp */ 1347 ebp = esp; /* 0x25090351: mov ebp, esp */ 1348 PUSH32(esp, ebx); /* 0x25090353: push ebx */ 1349 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25090354: mov bl, byte ptr [ebp + 8] */ 1350 /* test LO8(ebx), 2 */ /* 0x25090357: test bl, 2 */ 1351 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1352 _cf = 0; 1353 _flag_k = FK_NARROW(FK_TEST, 24); 1354 PUSH32(esp, esi); /* 0x2509035A: push esi */ 1355 esi = ecx; /* 0x2509035B: mov esi, ecx */ 1356 if (TEST_Z(_flag_a, _flag_b)) goto L_2509038E; /* 0x2509035D: je 0x2509038e */ 1357 L_2509035F: 1358 eax = MEM32(esi + (-0x4)); /* 0x2509035F: mov eax, dword ptr [esi - 4] */ 1359 PUSH32(esp, edi); /* 0x25090362: push edi */ 1360 PUSH32(esp, 0x25090600u); /* 0x25090363: push 0x25090600 */ 1361 edi = esi + (-0x4); /* 0x25090368: lea edi, [esi - 4] */ 1362 PUSH32(esp, eax); /* 0x2509036B: push eax */ 1363 PUSH32(esp, 0x250u); /* 0x2509036C: push 0x250 */ 1364 PUSH32(esp, esi); /* 0x25090371: push esi */ 1365 RECOMP_ICALL(0x25137F92u); /* 0x25090372: call 0x25137f92 */ /* not lifted */ 1366 RECOMP_FLAGS_IN(); 1367 /* test LO8(ebx), 1 */ /* 0x25090377: test bl, 1 */ 1368 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1369 _cf = 0; 1370 _flag_k = FK_NARROW(FK_TEST, 24); 1371 if (TEST_Z(_flag_a, _flag_b)) goto L_25090385; /* 0x2509037A: je 0x25090385 */ 1372 L_2509037C: 1373 PUSH32(esp, edi); /* 0x2509037C: push edi */ 1374 RECOMP_ICALL(0x25137EECu); /* 0x2509037D: call 0x25137eec */ /* not lifted */ 1375 RECOMP_FLAGS_IN(); 1376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1378 esp = esp + 4; /* 0x25090382: add esp, 4 */ 1379 _flag_k = FK_ADD; 1380 L_25090385: 1381 eax = edi; /* 0x25090385: mov eax, edi */ 1382 edi = POP32_VAL(esp); /* 0x25090387: pop edi */ 1383 esi = POP32_VAL(esp); /* 0x25090388: pop esi */ 1384 ebx = POP32_VAL(esp); /* 0x25090389: pop ebx */ 1385 ebp = POP32_VAL(esp); /* 0x2509038A: pop ebp */ 1386 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509038B: ret 4 */ 1387 L_2509038E: 1388 ecx = esi; /* 0x2509038E: mov ecx, esi */ 1389 RECOMP_ICALL(0x25090600u); /* 0x25090390: call 0x25090600 */ /* not lifted */ 1390 RECOMP_FLAGS_IN(); 1391 /* test LO8(ebx), 1 */ /* 0x25090395: test bl, 1 */ 1392 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1393 _cf = 0; 1394 _flag_k = FK_NARROW(FK_TEST, 24); 1395 if (TEST_Z(_flag_a, _flag_b)) goto L_250903A3; /* 0x25090398: je 0x250903a3 */ 1396 L_2509039A: 1397 PUSH32(esp, esi); /* 0x2509039A: push esi */ 1398 RECOMP_ICALL(0x25137EECu); /* 0x2509039B: call 0x25137eec */ /* not lifted */ 1399 RECOMP_FLAGS_IN(); 1400 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1402 esp = esp + 4; /* 0x250903A0: add esp, 4 */ 1403 _flag_k = FK_ADD; 1404 L_250903A3: 1405 eax = esi; /* 0x250903A3: mov eax, esi */ 1406 esi = POP32_VAL(esp); /* 0x250903A5: pop esi */ 1407 ebx = POP32_VAL(esp); /* 0x250903A6: pop ebx */ 1408 ebp = POP32_VAL(esp); /* 0x250903A7: pop ebp */ 1409 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250903A8: ret 4 */ 1410 L_25090C50: 1411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 1412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1413 ecx = ecx - 0x138u; /* 0x25090C50: sub ecx, 0x138 */ 1414 _flag_k = FK_CMP; 1415 RECOMP_BACKEDGE(); 1416 goto L_25090350; /* 0x25090C56: jmp 0x25090350 */ 1417 { RECOMP_REGS_OUT(); return; } /* end of function */ 1418 RECOMP_REGS_OUT(); 1419 } 1420 1421 void sub_25090C60(void) { 1422 int _fpu_cmp = 0; 1423 uint32_t _cf = 0; 1424 int _df = 1; 1425 uint32_t _flag_k = FK_NONE; 1426 uint32_t _flag_a = 0, _flag_b = 0; 1427 uint32_t _itail_tgt = 0; 1428 RECOMP_REGS_LOCALS 1429 RECOMP_ENTER(0x25090C60u); 1430 1431 goto L_25090C60; 1432 L_25090350: 1433 PUSH32(esp, ebp); /* 0x25090350: push ebp */ 1434 ebp = esp; /* 0x25090351: mov ebp, esp */ 1435 PUSH32(esp, ebx); /* 0x25090353: push ebx */ 1436 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25090354: mov bl, byte ptr [ebp + 8] */ 1437 /* test LO8(ebx), 2 */ /* 0x25090357: test bl, 2 */ 1438 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1439 _cf = 0; 1440 _flag_k = FK_NARROW(FK_TEST, 24); 1441 PUSH32(esp, esi); /* 0x2509035A: push esi */ 1442 esi = ecx; /* 0x2509035B: mov esi, ecx */ 1443 if (TEST_Z(_flag_a, _flag_b)) goto L_2509038E; /* 0x2509035D: je 0x2509038e */ 1444 L_2509035F: 1445 eax = MEM32(esi + (-0x4)); /* 0x2509035F: mov eax, dword ptr [esi - 4] */ 1446 PUSH32(esp, edi); /* 0x25090362: push edi */ 1447 PUSH32(esp, 0x25090600u); /* 0x25090363: push 0x25090600 */ 1448 edi = esi + (-0x4); /* 0x25090368: lea edi, [esi - 4] */ 1449 PUSH32(esp, eax); /* 0x2509036B: push eax */ 1450 PUSH32(esp, 0x250u); /* 0x2509036C: push 0x250 */ 1451 PUSH32(esp, esi); /* 0x25090371: push esi */ 1452 RECOMP_ICALL(0x25137F92u); /* 0x25090372: call 0x25137f92 */ /* not lifted */ 1453 RECOMP_FLAGS_IN(); 1454 /* test LO8(ebx), 1 */ /* 0x25090377: test bl, 1 */ 1455 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1456 _cf = 0; 1457 _flag_k = FK_NARROW(FK_TEST, 24); 1458 if (TEST_Z(_flag_a, _flag_b)) goto L_25090385; /* 0x2509037A: je 0x25090385 */ 1459 L_2509037C: 1460 PUSH32(esp, edi); /* 0x2509037C: push edi */ 1461 RECOMP_ICALL(0x25137EECu); /* 0x2509037D: call 0x25137eec */ /* not lifted */ 1462 RECOMP_FLAGS_IN(); 1463 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1465 esp = esp + 4; /* 0x25090382: add esp, 4 */ 1466 _flag_k = FK_ADD; 1467 L_25090385: 1468 eax = edi; /* 0x25090385: mov eax, edi */ 1469 edi = POP32_VAL(esp); /* 0x25090387: pop edi */ 1470 esi = POP32_VAL(esp); /* 0x25090388: pop esi */ 1471 ebx = POP32_VAL(esp); /* 0x25090389: pop ebx */ 1472 ebp = POP32_VAL(esp); /* 0x2509038A: pop ebp */ 1473 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509038B: ret 4 */ 1474 L_2509038E: 1475 ecx = esi; /* 0x2509038E: mov ecx, esi */ 1476 RECOMP_ICALL(0x25090600u); /* 0x25090390: call 0x25090600 */ /* not lifted */ 1477 RECOMP_FLAGS_IN(); 1478 /* test LO8(ebx), 1 */ /* 0x25090395: test bl, 1 */ 1479 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1480 _cf = 0; 1481 _flag_k = FK_NARROW(FK_TEST, 24); 1482 if (TEST_Z(_flag_a, _flag_b)) goto L_250903A3; /* 0x25090398: je 0x250903a3 */ 1483 L_2509039A: 1484 PUSH32(esp, esi); /* 0x2509039A: push esi */ 1485 RECOMP_ICALL(0x25137EECu); /* 0x2509039B: call 0x25137eec */ /* not lifted */ 1486 RECOMP_FLAGS_IN(); 1487 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1489 esp = esp + 4; /* 0x250903A0: add esp, 4 */ 1490 _flag_k = FK_ADD; 1491 L_250903A3: 1492 eax = esi; /* 0x250903A3: mov eax, esi */ 1493 esi = POP32_VAL(esp); /* 0x250903A5: pop esi */ 1494 ebx = POP32_VAL(esp); /* 0x250903A6: pop ebx */ 1495 ebp = POP32_VAL(esp); /* 0x250903A7: pop ebp */ 1496 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250903A8: ret 4 */ 1497 L_25090C60: 1498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 1499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1500 ecx = ecx - 0x150u; /* 0x25090C60: sub ecx, 0x150 */ 1501 _flag_k = FK_CMP; 1502 RECOMP_BACKEDGE(); 1503 goto L_25090350; /* 0x25090C66: jmp 0x25090350 */ 1504 { RECOMP_REGS_OUT(); return; } /* end of function */ 1505 RECOMP_REGS_OUT(); 1506 } 1507 1508 void sub_25090C70(void) { 1509 int _fpu_cmp = 0; 1510 uint32_t _cf = 0; 1511 int _df = 1; 1512 uint32_t _flag_k = FK_NONE; 1513 uint32_t _flag_a = 0, _flag_b = 0; 1514 uint32_t _itail_tgt = 0; 1515 RECOMP_REGS_LOCALS 1516 RECOMP_ENTER(0x25090C70u); 1517 1518 L_25090C70: 1519 eax = MEM32(0x25238398); /* 0x25090C70: mov eax, dword ptr [0x25238398] */ 1520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090C75: ret */ 1521 RECOMP_REGS_OUT(); 1522 } 1523 1524 void sub_25090C80(void) { 1525 int _fpu_cmp = 0; 1526 uint32_t _cf = 0; 1527 int _df = 1; 1528 uint32_t _flag_k = FK_NONE; 1529 uint32_t _flag_a = 0, _flag_b = 0; 1530 uint32_t _itail_tgt = 0; 1531 RECOMP_REGS_LOCALS 1532 RECOMP_ENTER(0x25090C80u); 1533 1534 L_25090C80: 1535 SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x25090C80: mov al, byte ptr [ecx + 0x14] */ 1536 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090C83: ret */ 1537 RECOMP_REGS_OUT(); 1538 } 1539 1540 void sub_25090C90(void) { 1541 int _fpu_cmp = 0; 1542 uint32_t _cf = 0; 1543 int _df = 1; 1544 uint32_t _flag_k = FK_NONE; 1545 uint32_t _flag_a = 0, _flag_b = 0; 1546 uint32_t _itail_tgt = 0; 1547 RECOMP_REGS_LOCALS 1548 RECOMP_ENTER(0x25090C90u); 1549 1550 L_25090C90: 1551 eax = ecx + 0x18; /* 0x25090C90: lea eax, [ecx + 0x18] */ 1552 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090C93: ret */ 1553 RECOMP_REGS_OUT(); 1554 } 1555 1556 void sub_25090CA0(void) { 1557 int _fpu_cmp = 0; 1558 uint32_t _cf = 0; 1559 int _df = 1; 1560 uint32_t _flag_k = FK_NONE; 1561 uint32_t _flag_a = 0, _flag_b = 0; 1562 uint32_t _itail_tgt = 0; 1563 RECOMP_REGS_LOCALS 1564 RECOMP_ENTER(0x25090CA0u); 1565 1566 L_25090CA0: 1567 PUSH32(esp, ebp); /* 0x25090CA0: push ebp */ 1568 ebp = esp; /* 0x25090CA1: mov ebp, esp */ 1569 eax = MEM32(ebp + 0x8); /* 0x25090CA3: mov eax, dword ptr [ebp + 8] */ 1570 eax = MEM32(ecx + eax * 4 + 0x64); /* 0x25090CA6: mov eax, dword ptr [ecx + eax*4 + 0x64] */ 1571 ebp = POP32_VAL(esp); /* 0x25090CAA: pop ebp */ 1572 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090CAB: ret 4 */ 1573 RECOMP_REGS_OUT(); 1574 } 1575 1576 void sub_25090CB0(void) { 1577 int _fpu_cmp = 0; 1578 uint32_t _cf = 0; 1579 int _df = 1; 1580 uint32_t _flag_k = FK_NONE; 1581 uint32_t _flag_a = 0, _flag_b = 0; 1582 uint32_t _itail_tgt = 0; 1583 RECOMP_REGS_LOCALS 1584 RECOMP_ENTER(0x25090CB0u); 1585 1586 L_25090CB0: 1587 PUSH32(esp, ebp); /* 0x25090CB0: push ebp */ 1588 ebp = esp; /* 0x25090CB1: mov ebp, esp */ 1589 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x25090CB3: mov al, byte ptr [ebp + 8] */ 1590 MEM8(ecx + 0x83) = (uint8_t)(LO8(eax)); /* 0x25090CB6: mov byte ptr [ecx + 0x83], al */ 1591 ebp = POP32_VAL(esp); /* 0x25090CBC: pop ebp */ 1592 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090CBD: ret 4 */ 1593 RECOMP_REGS_OUT(); 1594 } 1595 1596 void sub_25090CC0(void) { 1597 int _fpu_cmp = 0; 1598 uint32_t _cf = 0; 1599 int _df = 1; 1600 uint32_t _flag_k = FK_NONE; 1601 uint32_t _flag_a = 0, _flag_b = 0; 1602 uint32_t _itail_tgt = 0; 1603 RECOMP_REGS_LOCALS 1604 RECOMP_ENTER(0x25090CC0u); 1605 1606 L_25090CC0: 1607 PUSH32(esp, ebp); /* 0x25090CC0: push ebp */ 1608 ebp = esp; /* 0x25090CC1: mov ebp, esp */ 1609 edx = MEM32(ebp + 0x8); /* 0x25090CC3: mov edx, dword ptr [ebp + 8] */ 1610 eax = ecx; /* 0x25090CC6: mov eax, ecx */ 1611 MEM32(eax) = 0x25155AA4u; /* 0x25090CC8: mov dword ptr [eax], 0x25155aa4 */ 1612 ecx = MEM32(edx + 0x4); /* 0x25090CCE: mov ecx, dword ptr [edx + 4] */ 1613 MEM32(eax + 0x4) = ecx; /* 0x25090CD1: mov dword ptr [eax + 4], ecx */ 1614 ecx = MEM32(edx + 0x8); /* 0x25090CD4: mov ecx, dword ptr [edx + 8] */ 1615 MEM32(eax + 0x8) = ecx; /* 0x25090CD7: mov dword ptr [eax + 8], ecx */ 1616 ecx = MEM32(edx + 0xC); /* 0x25090CDA: mov ecx, dword ptr [edx + 0xc] */ 1617 MEM32(eax + 0xC) = ecx; /* 0x25090CDD: mov dword ptr [eax + 0xc], ecx */ 1618 ecx = MEM32(edx + 0x10); /* 0x25090CE0: mov ecx, dword ptr [edx + 0x10] */ 1619 MEM32(eax + 0x10) = ecx; /* 0x25090CE3: mov dword ptr [eax + 0x10], ecx */ 1620 SET_LO8(ecx, MEM8(edx + 0x14)); /* 0x25090CE6: mov cl, byte ptr [edx + 0x14] */ 1621 PUSH32(esp, esi); /* 0x25090CE9: push esi */ 1622 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x25090CEA: mov byte ptr [eax + 0x14], cl */ 1623 ecx = edx + 0x18; /* 0x25090CED: lea ecx, [edx + 0x18] */ 1624 esi = eax + 0x18; /* 0x25090CF0: lea esi, [eax + 0x18] */ 1625 /* cmp esi, ecx */ /* 0x25090CF3: cmp esi, ecx */ 1626 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1628 _flag_k = FK_CMP; 1629 PUSH32(esp, edi); /* 0x25090CF5: push edi */ 1630 if (CMP_EQ(_flag_a, _flag_b)) goto L_25090D02; /* 0x25090CF6: je 0x25090d02 */ 1631 L_25090CF8: 1632 edi = MEM32(ecx); /* 0x25090CF8: mov edi, dword ptr [ecx] */ 1633 MEM32(esi) = edi; /* 0x25090CFA: mov dword ptr [esi], edi */ 1634 ecx = MEM32(ecx + 0x4); /* 0x25090CFC: mov ecx, dword ptr [ecx + 4] */ 1635 MEM32(esi + 0x4) = ecx; /* 0x25090CFF: mov dword ptr [esi + 4], ecx */ 1636 L_25090D02: 1637 ecx = MEM32(edx + 0x20); /* 0x25090D02: mov ecx, dword ptr [edx + 0x20] */ 1638 MEM32(eax + 0x20) = ecx; /* 0x25090D05: mov dword ptr [eax + 0x20], ecx */ 1639 ecx = MEM32(edx + 0x24); /* 0x25090D08: mov ecx, dword ptr [edx + 0x24] */ 1640 MEM32(eax + 0x24) = ecx; /* 0x25090D0B: mov dword ptr [eax + 0x24], ecx */ 1641 ecx = MEM32(edx + 0x28); /* 0x25090D0E: mov ecx, dword ptr [edx + 0x28] */ 1642 MEM32(eax + 0x28) = ecx; /* 0x25090D11: mov dword ptr [eax + 0x28], ecx */ 1643 ecx = MEM32(edx + 0x2C); /* 0x25090D14: mov ecx, dword ptr [edx + 0x2c] */ 1644 MEM32(eax + 0x2C) = ecx; /* 0x25090D17: mov dword ptr [eax + 0x2c], ecx */ 1645 SET_LO8(ecx, MEM8(edx + 0x30)); /* 0x25090D1A: mov cl, byte ptr [edx + 0x30] */ 1646 MEM8(eax + 0x30) = (uint8_t)(LO8(ecx)); /* 0x25090D1D: mov byte ptr [eax + 0x30], cl */ 1647 ecx = MEM32(edx + 0x34); /* 0x25090D20: mov ecx, dword ptr [edx + 0x34] */ 1648 MEM32(eax + 0x34) = ecx; /* 0x25090D23: mov dword ptr [eax + 0x34], ecx */ 1649 ecx = MEM32(edx + 0x38); /* 0x25090D26: mov ecx, dword ptr [edx + 0x38] */ 1650 MEM32(eax + 0x38) = ecx; /* 0x25090D29: mov dword ptr [eax + 0x38], ecx */ 1651 esi = edx + 0x3C; /* 0x25090D2C: lea esi, [edx + 0x3c] */ 1652 edi = eax + 0x3C; /* 0x25090D2F: lea edi, [eax + 0x3c] */ 1653 ecx = 5; /* 0x25090D32: mov ecx, 5 */ 1654 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25090D37: 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; } 1655 esi = edx + 0x50; /* 0x25090D39: lea esi, [edx + 0x50] */ 1656 edi = eax + 0x50; /* 0x25090D3C: lea edi, [eax + 0x50] */ 1657 ecx = 5; /* 0x25090D3F: mov ecx, 5 */ 1658 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25090D44: 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; } 1659 esi = edx + 0x64; /* 0x25090D46: lea esi, [edx + 0x64] */ 1660 edi = eax + 0x64; /* 0x25090D49: lea edi, [eax + 0x64] */ 1661 ecx = 5; /* 0x25090D4C: mov ecx, 5 */ 1662 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25090D51: 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; } 1663 ecx = MEM32(edx + 0x78); /* 0x25090D53: mov ecx, dword ptr [edx + 0x78] */ 1664 MEM32(eax + 0x78) = ecx; /* 0x25090D56: mov dword ptr [eax + 0x78], ecx */ 1665 ecx = MEM32(edx + 0x7C); /* 0x25090D59: mov ecx, dword ptr [edx + 0x7c] */ 1666 MEM32(eax + 0x7C) = ecx; /* 0x25090D5C: mov dword ptr [eax + 0x7c], ecx */ 1667 SET_LO8(ecx, MEM8(edx + 0x80)); /* 0x25090D5F: mov cl, byte ptr [edx + 0x80] */ 1668 MEM8(eax + 0x80) = (uint8_t)(LO8(ecx)); /* 0x25090D65: mov byte ptr [eax + 0x80], cl */ 1669 SET_LO8(ecx, MEM8(edx + 0x81)); /* 0x25090D6B: mov cl, byte ptr [edx + 0x81] */ 1670 MEM8(eax + 0x81) = (uint8_t)(LO8(ecx)); /* 0x25090D71: mov byte ptr [eax + 0x81], cl */ 1671 SET_LO8(ecx, MEM8(edx + 0x82)); /* 0x25090D77: mov cl, byte ptr [edx + 0x82] */ 1672 MEM8(eax + 0x82) = (uint8_t)(LO8(ecx)); /* 0x25090D7D: mov byte ptr [eax + 0x82], cl */ 1673 SET_LO8(ecx, MEM8(edx + 0x83)); /* 0x25090D83: mov cl, byte ptr [edx + 0x83] */ 1674 MEM8(eax + 0x83) = (uint8_t)(LO8(ecx)); /* 0x25090D89: mov byte ptr [eax + 0x83], cl */ 1675 edx = MEM32(edx + 0x84); /* 0x25090D8F: mov edx, dword ptr [edx + 0x84] */ 1676 edi = POP32_VAL(esp); /* 0x25090D95: pop edi */ 1677 MEM32(eax + 0x84) = edx; /* 0x25090D96: mov dword ptr [eax + 0x84], edx */ 1678 MEM32(eax) = 0x25155A8Cu; /* 0x25090D9C: mov dword ptr [eax], 0x25155a8c */ 1679 esi = POP32_VAL(esp); /* 0x25090DA2: pop esi */ 1680 ebp = POP32_VAL(esp); /* 0x25090DA3: pop ebp */ 1681 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090DA4: ret 4 */ 1682 RECOMP_REGS_OUT(); 1683 } 1684 1685 void sub_25090DB0(void) { 1686 int _fpu_cmp = 0; 1687 uint32_t _cf = 0; 1688 int _df = 1; 1689 uint32_t _flag_k = FK_NONE; 1690 uint32_t _flag_a = 0, _flag_b = 0; 1691 uint32_t _itail_tgt = 0; 1692 RECOMP_REGS_LOCALS 1693 RECOMP_ENTER(0x25090DB0u); 1694 1695 L_25090DB0: 1696 PUSH32(esp, ebp); /* 0x25090DB0: push ebp */ 1697 ebp = esp; /* 0x25090DB1: mov ebp, esp */ 1698 eax = ecx; /* 0x25090DB3: mov eax, ecx */ 1699 ecx = MEM32(ebp + 0x8); /* 0x25090DB5: mov ecx, dword ptr [ebp + 8] */ 1700 edx = MEM32(ecx + 0x4); /* 0x25090DB8: mov edx, dword ptr [ecx + 4] */ 1701 MEM32(eax + 0x4) = edx; /* 0x25090DBB: mov dword ptr [eax + 4], edx */ 1702 edx = MEM32(ecx + 0x8); /* 0x25090DBE: mov edx, dword ptr [ecx + 8] */ 1703 MEM32(eax + 0x8) = edx; /* 0x25090DC1: mov dword ptr [eax + 8], edx */ 1704 edx = MEM32(ecx + 0xC); /* 0x25090DC4: mov edx, dword ptr [ecx + 0xc] */ 1705 MEM32(eax + 0xC) = edx; /* 0x25090DC7: mov dword ptr [eax + 0xc], edx */ 1706 edx = MEM32(ecx + 0x10); /* 0x25090DCA: mov edx, dword ptr [ecx + 0x10] */ 1707 MEM32(eax + 0x10) = edx; /* 0x25090DCD: mov dword ptr [eax + 0x10], edx */ 1708 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x25090DD0: mov dl, byte ptr [ecx + 0x14] */ 1709 MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x25090DD3: mov byte ptr [eax + 0x14], dl */ 1710 edx = MEM32(ecx + 0x18); /* 0x25090DD6: mov edx, dword ptr [ecx + 0x18] */ 1711 MEM32(eax + 0x18) = edx; /* 0x25090DD9: mov dword ptr [eax + 0x18], edx */ 1712 edx = MEM32(ecx + 0x1C); /* 0x25090DDC: mov edx, dword ptr [ecx + 0x1c] */ 1713 MEM32(eax + 0x1C) = edx; /* 0x25090DDF: mov dword ptr [eax + 0x1c], edx */ 1714 edx = MEM32(ecx + 0x20); /* 0x25090DE2: mov edx, dword ptr [ecx + 0x20] */ 1715 MEM32(eax + 0x20) = edx; /* 0x25090DE5: mov dword ptr [eax + 0x20], edx */ 1716 edx = MEM32(ecx + 0x24); /* 0x25090DE8: mov edx, dword ptr [ecx + 0x24] */ 1717 MEM32(eax + 0x24) = edx; /* 0x25090DEB: mov dword ptr [eax + 0x24], edx */ 1718 edx = MEM32(ecx + 0x28); /* 0x25090DEE: mov edx, dword ptr [ecx + 0x28] */ 1719 MEM32(eax + 0x28) = edx; /* 0x25090DF1: mov dword ptr [eax + 0x28], edx */ 1720 edx = MEM32(ecx + 0x2C); /* 0x25090DF4: mov edx, dword ptr [ecx + 0x2c] */ 1721 MEM32(eax + 0x2C) = edx; /* 0x25090DF7: mov dword ptr [eax + 0x2c], edx */ 1722 SET_LO8(edx, MEM8(ecx + 0x30)); /* 0x25090DFA: mov dl, byte ptr [ecx + 0x30] */ 1723 MEM8(eax + 0x30) = (uint8_t)(LO8(edx)); /* 0x25090DFD: mov byte ptr [eax + 0x30], dl */ 1724 edx = MEM32(ecx + 0x34); /* 0x25090E00: mov edx, dword ptr [ecx + 0x34] */ 1725 MEM32(eax + 0x34) = edx; /* 0x25090E03: mov dword ptr [eax + 0x34], edx */ 1726 edx = MEM32(ecx + 0x38); /* 0x25090E06: mov edx, dword ptr [ecx + 0x38] */ 1727 PUSH32(esp, ebx); /* 0x25090E09: push ebx */ 1728 PUSH32(esp, esi); /* 0x25090E0A: push esi */ 1729 MEM32(eax + 0x38) = edx; /* 0x25090E0B: mov dword ptr [eax + 0x38], edx */ 1730 edx = ecx; /* 0x25090E0E: mov edx, ecx */ 1731 PUSH32(esp, edi); /* 0x25090E10: push edi */ 1732 esi = eax + 0x3C; /* 0x25090E11: lea esi, [eax + 0x3c] */ 1733 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1735 edx = edx - eax; /* 0x25090E14: sub edx, eax */ 1736 _flag_k = FK_CMP; 1737 edi = 5; /* 0x25090E16: mov edi, 5 */ 1738 L_25090E1B: 1739 ebx = MEM32(edx + esi); /* 0x25090E1B: mov ebx, dword ptr [edx + esi] */ 1740 MEM32(esi) = ebx; /* 0x25090E1E: mov dword ptr [esi], ebx */ 1741 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1743 esi = esi + 4; /* 0x25090E20: add esi, 4 */ 1744 _flag_k = FK_ADD; 1745 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1746 edi = edi - 1; /* 0x25090E23: dec edi */ 1747 _flag_k = FK_DEC; 1748 RECOMP_BACKEDGE(); 1749 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25090E1B; /* 0x25090E24: jne 0x25090e1b */ 1750 L_25090E26: 1751 esi = eax + 0x50; /* 0x25090E26: lea esi, [eax + 0x50] */ 1752 edi = 5; /* 0x25090E29: mov edi, 5 */ 1753 L_25090E2E: 1754 ebx = MEM32(esi + edx); /* 0x25090E2E: mov ebx, dword ptr [esi + edx] */ 1755 MEM32(esi) = ebx; /* 0x25090E31: mov dword ptr [esi], ebx */ 1756 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1757 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1758 esi = esi + 4; /* 0x25090E33: add esi, 4 */ 1759 _flag_k = FK_ADD; 1760 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1761 edi = edi - 1; /* 0x25090E36: dec edi */ 1762 _flag_k = FK_DEC; 1763 RECOMP_BACKEDGE(); 1764 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25090E2E; /* 0x25090E37: jne 0x25090e2e */ 1765 L_25090E39: 1766 esi = eax + 0x64; /* 0x25090E39: lea esi, [eax + 0x64] */ 1767 edi = 5; /* 0x25090E3C: mov edi, 5 */ 1768 L_25090E41: 1769 ebx = MEM32(esi + edx); /* 0x25090E41: mov ebx, dword ptr [esi + edx] */ 1770 MEM32(esi) = ebx; /* 0x25090E44: mov dword ptr [esi], ebx */ 1771 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1773 esi = esi + 4; /* 0x25090E46: add esi, 4 */ 1774 _flag_k = FK_ADD; 1775 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1776 edi = edi - 1; /* 0x25090E49: dec edi */ 1777 _flag_k = FK_DEC; 1778 RECOMP_BACKEDGE(); 1779 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_25090E41; /* 0x25090E4A: jne 0x25090e41 */ 1780 L_25090E4C: 1781 edx = MEM32(ecx + 0x78); /* 0x25090E4C: mov edx, dword ptr [ecx + 0x78] */ 1782 MEM32(eax + 0x78) = edx; /* 0x25090E4F: mov dword ptr [eax + 0x78], edx */ 1783 edx = MEM32(ecx + 0x7C); /* 0x25090E52: mov edx, dword ptr [ecx + 0x7c] */ 1784 MEM32(eax + 0x7C) = edx; /* 0x25090E55: mov dword ptr [eax + 0x7c], edx */ 1785 SET_LO8(edx, MEM8(ecx + 0x80)); /* 0x25090E58: mov dl, byte ptr [ecx + 0x80] */ 1786 MEM8(eax + 0x80) = (uint8_t)(LO8(edx)); /* 0x25090E5E: mov byte ptr [eax + 0x80], dl */ 1787 SET_LO8(edx, MEM8(ecx + 0x81)); /* 0x25090E64: mov dl, byte ptr [ecx + 0x81] */ 1788 MEM8(eax + 0x81) = (uint8_t)(LO8(edx)); /* 0x25090E6A: mov byte ptr [eax + 0x81], dl */ 1789 SET_LO8(edx, MEM8(ecx + 0x82)); /* 0x25090E70: mov dl, byte ptr [ecx + 0x82] */ 1790 MEM8(eax + 0x82) = (uint8_t)(LO8(edx)); /* 0x25090E76: mov byte ptr [eax + 0x82], dl */ 1791 SET_LO8(edx, MEM8(ecx + 0x83)); /* 0x25090E7C: mov dl, byte ptr [ecx + 0x83] */ 1792 edi = POP32_VAL(esp); /* 0x25090E82: pop edi */ 1793 MEM8(eax + 0x83) = (uint8_t)(LO8(edx)); /* 0x25090E83: mov byte ptr [eax + 0x83], dl */ 1794 ecx = MEM32(ecx + 0x84); /* 0x25090E89: mov ecx, dword ptr [ecx + 0x84] */ 1795 esi = POP32_VAL(esp); /* 0x25090E8F: pop esi */ 1796 MEM32(eax + 0x84) = ecx; /* 0x25090E90: mov dword ptr [eax + 0x84], ecx */ 1797 ebx = POP32_VAL(esp); /* 0x25090E96: pop ebx */ 1798 ebp = POP32_VAL(esp); /* 0x25090E97: pop ebp */ 1799 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090E98: ret 4 */ 1800 RECOMP_REGS_OUT(); 1801 } 1802 1803 void sub_25090EA0(void) { 1804 int _fpu_cmp = 0; 1805 uint32_t _cf = 0; 1806 int _df = 1; 1807 uint32_t _flag_k = FK_NONE; 1808 uint32_t _flag_a = 0, _flag_b = 0; 1809 uint32_t _itail_tgt = 0; 1810 RECOMP_REGS_LOCALS 1811 RECOMP_ENTER(0x25090EA0u); 1812 1813 L_25090EA0: 1814 PUSH32(esp, ebp); /* 0x25090EA0: push ebp */ 1815 ebp = esp; /* 0x25090EA1: mov ebp, esp */ 1816 PUSH32(esp, ebx); /* 0x25090EA3: push ebx */ 1817 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25090EA4: mov bl, byte ptr [ebp + 8] */ 1818 /* test LO8(ebx), 2 */ /* 0x25090EA7: test bl, 2 */ 1819 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1820 _cf = 0; 1821 _flag_k = FK_NARROW(FK_TEST, 24); 1822 PUSH32(esp, esi); /* 0x25090EAA: push esi */ 1823 esi = ecx; /* 0x25090EAB: mov esi, ecx */ 1824 if (TEST_Z(_flag_a, _flag_b)) goto L_25090EDE; /* 0x25090EAD: je 0x25090ede */ 1825 L_25090EAF: 1826 eax = MEM32(esi + (-0x4)); /* 0x25090EAF: mov eax, dword ptr [esi - 4] */ 1827 PUSH32(esp, edi); /* 0x25090EB2: push edi */ 1828 PUSH32(esp, 0x250950F0u); /* 0x25090EB3: push 0x250950f0 */ 1829 edi = esi + (-0x4); /* 0x25090EB8: lea edi, [esi - 4] */ 1830 PUSH32(esp, eax); /* 0x25090EBB: push eax */ 1831 PUSH32(esp, 0x88u); /* 0x25090EBC: push 0x88 */ 1832 PUSH32(esp, esi); /* 0x25090EC1: push esi */ 1833 RECOMP_ICALL(0x25137F92u); /* 0x25090EC2: call 0x25137f92 */ /* not lifted */ 1834 RECOMP_FLAGS_IN(); 1835 /* test LO8(ebx), 1 */ /* 0x25090EC7: test bl, 1 */ 1836 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1837 _cf = 0; 1838 _flag_k = FK_NARROW(FK_TEST, 24); 1839 if (TEST_Z(_flag_a, _flag_b)) goto L_25090ED5; /* 0x25090ECA: je 0x25090ed5 */ 1840 L_25090ECC: 1841 PUSH32(esp, edi); /* 0x25090ECC: push edi */ 1842 RECOMP_ICALL(0x25137EECu); /* 0x25090ECD: call 0x25137eec */ /* not lifted */ 1843 RECOMP_FLAGS_IN(); 1844 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1846 esp = esp + 4; /* 0x25090ED2: add esp, 4 */ 1847 _flag_k = FK_ADD; 1848 L_25090ED5: 1849 eax = edi; /* 0x25090ED5: mov eax, edi */ 1850 edi = POP32_VAL(esp); /* 0x25090ED7: pop edi */ 1851 esi = POP32_VAL(esp); /* 0x25090ED8: pop esi */ 1852 ebx = POP32_VAL(esp); /* 0x25090ED9: pop ebx */ 1853 ebp = POP32_VAL(esp); /* 0x25090EDA: pop ebp */ 1854 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090EDB: ret 4 */ 1855 L_25090EDE: 1856 ecx = esi; /* 0x25090EDE: mov ecx, esi */ 1857 RECOMP_ICALL(0x250950F0u); /* 0x25090EE0: call 0x250950f0 */ /* not lifted */ 1858 RECOMP_FLAGS_IN(); 1859 /* test LO8(ebx), 1 */ /* 0x25090EE5: test bl, 1 */ 1860 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1861 _cf = 0; 1862 _flag_k = FK_NARROW(FK_TEST, 24); 1863 if (TEST_Z(_flag_a, _flag_b)) goto L_25090EF3; /* 0x25090EE8: je 0x25090ef3 */ 1864 L_25090EEA: 1865 PUSH32(esp, esi); /* 0x25090EEA: push esi */ 1866 RECOMP_ICALL(0x25137EECu); /* 0x25090EEB: call 0x25137eec */ /* not lifted */ 1867 RECOMP_FLAGS_IN(); 1868 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1869 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1870 esp = esp + 4; /* 0x25090EF0: add esp, 4 */ 1871 _flag_k = FK_ADD; 1872 L_25090EF3: 1873 eax = esi; /* 0x25090EF3: mov eax, esi */ 1874 esi = POP32_VAL(esp); /* 0x25090EF5: pop esi */ 1875 ebx = POP32_VAL(esp); /* 0x25090EF6: pop ebx */ 1876 ebp = POP32_VAL(esp); /* 0x25090EF7: pop ebp */ 1877 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25090EF8: ret 4 */ 1878 RECOMP_REGS_OUT(); 1879 } 1880 1881 void sub_25090F00(void) { 1882 int _fpu_cmp = 0; 1883 uint32_t _cf = 0; 1884 int _df = 1; 1885 uint32_t _flag_k = FK_NONE; 1886 uint32_t _flag_a = 0, _flag_b = 0; 1887 uint32_t _itail_tgt = 0; 1888 RECOMP_REGS_LOCALS 1889 RECOMP_ENTER(0x25090F00u); 1890 1891 L_25090F00: 1892 PUSH32(esp, ebp); /* 0x25090F00: push ebp */ 1893 ebp = esp; /* 0x25090F01: mov ebp, esp */ 1894 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1896 esp = esp - 8; /* 0x25090F03: sub esp, 8 */ 1897 _flag_k = FK_CMP; 1898 PUSH32(esp, ebx); /* 0x25090F06: push ebx */ 1899 PUSH32(esp, esi); /* 0x25090F07: push esi */ 1900 esi = ecx; /* 0x25090F08: mov esi, ecx */ 1901 SET_LO8(eax, MEM8(esi + 0x38)); /* 0x25090F0A: mov al, byte ptr [esi + 0x38] */ 1902 /* test LO8(eax), LO8(eax) */ /* 0x25090F0D: test al, al */ 1903 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1904 _cf = 0; 1905 _flag_k = FK_NARROW(FK_TEST, 24); 1906 if (TEST_Z(_flag_a, _flag_b)) goto L_25090F8D; /* 0x25090F0F: je 0x25090f8d */ 1907 L_25090F11: 1908 eax = MEM32(esi + 0x34); /* 0x25090F11: mov eax, dword ptr [esi + 0x34] */ 1909 SET_LO8(ebx, MEM8(0x251BBDFC)); /* 0x25090F14: mov bl, byte ptr [0x251bbdfc] */ 1910 PUSH32(esp, eax); /* 0x25090F1A: push eax */ 1911 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x25090F1B: mov byte ptr [ebp - 4], bl */ 1912 RECOMP_ICALL(0x25094C00u); /* 0x25090F1E: call 0x25094c00 */ /* not lifted */ 1913 RECOMP_FLAGS_IN(); 1914 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1916 esp = esp + 4; /* 0x25090F23: add esp, 4 */ 1917 _flag_k = FK_ADD; 1918 /* test LO8(ebx), LO8(ebx) */ /* 0x25090F26: test bl, bl */ 1919 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1920 _cf = 0; 1921 _flag_k = FK_NARROW(FK_TEST, 24); 1922 if (TEST_Z(_flag_a, _flag_b)) goto L_25090F35; /* 0x25090F28: je 0x25090f35 */ 1923 L_25090F2A: 1924 /* test LO8(eax), LO8(eax) */ /* 0x25090F2A: test al, al */ 1925 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1926 _cf = 0; 1927 _flag_k = FK_NARROW(FK_TEST, 24); 1928 if (TEST_NZ(_flag_a, _flag_b)) goto L_25090F35; /* 0x25090F2C: jne 0x25090f35 */ 1929 L_25090F2E: 1930 eax = 1; /* 0x25090F2E: mov eax, 1 */ 1931 goto L_25090F37; /* 0x25090F33: jmp 0x25090f37 */ 1932 L_25090F35: 1933 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1934 eax = 0; /* 0x25090F35: xor eax, eax */ 1935 _cf = 0; 1936 _flag_k = FK_TEST; 1937 L_25090F37: 1938 PUSH32(esp, eax); /* 0x25090F37: push eax */ 1939 RECOMP_ICALL(0x25102F50u); /* 0x25090F38: call 0x25102f50 */ /* not lifted */ 1940 RECOMP_FLAGS_IN(); 1941 eax = MEM32(esi + 0x20); /* 0x25090F3D: mov eax, dword ptr [esi + 0x20] */ 1942 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1944 esp = esp + 4; /* 0x25090F40: add esp, 4 */ 1945 _flag_k = FK_ADD; 1946 /* test eax, eax */ /* 0x25090F43: test eax, eax */ 1947 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1948 _cf = 0; 1949 _flag_k = FK_TEST; 1950 if (TEST_Z(_flag_a, _flag_b)) goto L_25090F5F; /* 0x25090F45: je 0x25090f5f */ 1951 L_25090F47: 1952 ecx = MEM32(esi + 0xC); /* 0x25090F47: mov ecx, dword ptr [esi + 0xc] */ 1953 /* test ecx, ecx */ /* 0x25090F4A: test ecx, ecx */ 1954 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1955 _cf = 0; 1956 _flag_k = FK_TEST; 1957 if (TEST_NZ(_flag_a, _flag_b)) goto L_25090F54; /* 0x25090F4C: jne 0x25090f54 */ 1958 L_25090F4E: 1959 ecx = MEM32(0x251511E4); /* 0x25090F4E: mov ecx, dword ptr [0x251511e4] */ 1960 L_25090F54: 1961 PUSH32(esp, ecx); /* 0x25090F54: push ecx */ 1962 PUSH32(esp, eax); /* 0x25090F55: push eax */ 1963 ecx = esi; /* 0x25090F56: mov ecx, esi */ 1964 RECOMP_ICALL(0x25103000u); /* 0x25090F58: call 0x25103000 */ /* not lifted */ 1965 RECOMP_FLAGS_IN(); 1966 goto L_25090F77; /* 0x25090F5D: jmp 0x25090f77 */ 1967 L_25090F5F: 1968 eax = MEM32(esi + 0xC); /* 0x25090F5F: mov eax, dword ptr [esi + 0xc] */ 1969 /* test eax, eax */ /* 0x25090F62: test eax, eax */ 1970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1971 _cf = 0; 1972 _flag_k = FK_TEST; 1973 if (TEST_NZ(_flag_a, _flag_b)) goto L_25090F6B; /* 0x25090F64: jne 0x25090f6b */ 1974 L_25090F66: 1975 eax = MEM32(0x251511E4); /* 0x25090F66: mov eax, dword ptr [0x251511e4] */ 1976 L_25090F6B: 1977 ecx = MEM32(esi + 0x18); /* 0x25090F6B: mov ecx, dword ptr [esi + 0x18] */ 1978 PUSH32(esp, eax); /* 0x25090F6E: push eax */ 1979 PUSH32(esp, ecx); /* 0x25090F6F: push ecx */ 1980 ecx = esi; /* 0x25090F70: mov ecx, esi */ 1981 RECOMP_ICALL(0x25102FC0u); /* 0x25090F72: call 0x25102fc0 */ /* not lifted */ 1982 RECOMP_FLAGS_IN(); 1983 L_25090F77: 1984 edx = MEM32(ebp + (-0x4)); /* 0x25090F77: mov edx, dword ptr [ebp - 4] */ 1985 PUSH32(esp, edx); /* 0x25090F7A: push edx */ 1986 esi = eax; /* 0x25090F7B: mov esi, eax */ 1987 RECOMP_ICALL(0x25102F50u); /* 0x25090F7D: call 0x25102f50 */ /* not lifted */ 1988 RECOMP_FLAGS_IN(); 1989 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1991 esp = esp + 4; /* 0x25090F82: add esp, 4 */ 1992 _flag_k = FK_ADD; 1993 eax = esi; /* 0x25090F85: mov eax, esi */ 1994 esi = POP32_VAL(esp); /* 0x25090F87: pop esi */ 1995 ebx = POP32_VAL(esp); /* 0x25090F88: pop ebx */ 1996 esp = ebp; /* 0x25090F89: mov esp, ebp */ 1997 ebp = POP32_VAL(esp); /* 0x25090F8B: pop ebp */ 1998 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090F8C: ret */ 1999 L_25090F8D: 2000 SET_LO8(eax, MEM8(0x252382BC)); /* 0x25090F8D: mov al, byte ptr [0x252382bc] */ 2001 /* test LO8(eax), LO8(eax) */ /* 0x25090F92: test al, al */ 2002 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2003 _cf = 0; 2004 _flag_k = FK_NARROW(FK_TEST, 24); 2005 if (TEST_NZ(_flag_a, _flag_b)) goto L_25090FEA; /* 0x25090F94: jne 0x25090fea */ 2006 L_25090F96: 2007 eax = MEM32(esi + 0x30); /* 0x25090F96: mov eax, dword ptr [esi + 0x30] */ 2008 esi = MEM32(esi + 0x34); /* 0x25090F99: mov esi, dword ptr [esi + 0x34] */ 2009 MEM32(ebp + (-0x8)) = eax; /* 0x25090F9C: mov dword ptr [ebp - 8], eax */ 2010 MEM32(ebp + (-0x4)) = esi; /* 0x25090F9F: mov dword ptr [ebp - 4], esi */ 2011 RECOMP_ICALL(MEM32(0x251515D8)); /* 0x25090FA2: call dword ptr [0x251515d8] */ 2012 RECOMP_FLAGS_IN(); 2013 edx = MEM32(eax); /* 0x25090FA8: mov edx, dword ptr [eax] */ 2014 PUSH32(esp, 3); /* 0x25090FAA: push 3 */ 2015 PUSH32(esp, 1); /* 0x25090FAC: push 1 */ 2016 ecx = ebp + (-0x8); /* 0x25090FAE: lea ecx, [ebp - 8] */ 2017 PUSH32(esp, ecx); /* 0x25090FB1: push ecx */ 2018 ecx = eax; /* 0x25090FB2: mov ecx, eax */ 2019 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x25090FB4: call dword ptr [edx + 0x24] */ 2020 RECOMP_FLAGS_IN(); 2021 esi = eax; /* 0x25090FB7: mov esi, eax */ 2022 /* test esi, esi */ /* 0x25090FB9: test esi, esi */ 2023 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2024 _cf = 0; 2025 _flag_k = FK_TEST; 2026 if (TEST_Z(_flag_a, _flag_b)) goto L_25090FEA; /* 0x25090FBB: je 0x25090fea */ 2027 L_25090FBD: 2028 PUSH32(esp, edi); /* 0x25090FBD: push edi */ 2029 ecx = esi; /* 0x25090FBE: mov ecx, esi */ 2030 RECOMP_ICALL(0x250A3B60u); /* 0x25090FC0: call 0x250a3b60 */ /* not lifted */ 2031 RECOMP_FLAGS_IN(); 2032 edi = eax; /* 0x25090FC5: mov edi, eax */ 2033 ebx = MEM32(edi + 0x28); /* 0x25090FC7: mov ebx, dword ptr [edi + 0x28] */ 2034 ecx = ebx; /* 0x25090FCA: mov ecx, ebx */ 2035 RECOMP_ICALL(0x250D2C50u); /* 0x25090FCC: call 0x250d2c50 */ /* not lifted */ 2036 RECOMP_FLAGS_IN(); 2037 ecx = edi; /* 0x25090FD1: mov ecx, edi */ 2038 RECOMP_ICALL(0x250EBDE0u); /* 0x25090FD3: call 0x250ebde0 */ /* not lifted */ 2039 RECOMP_FLAGS_IN(); 2040 edx = MEM32(esi); /* 0x25090FD8: mov edx, dword ptr [esi] */ 2041 PUSH32(esp, 0); /* 0x25090FDA: push 0 */ 2042 ecx = esi; /* 0x25090FDC: mov ecx, esi */ 2043 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x25090FDE: call dword ptr [edx + 0x28] */ 2044 RECOMP_FLAGS_IN(); 2045 edi = POP32_VAL(esp); /* 0x25090FE1: pop edi */ 2046 esi = POP32_VAL(esp); /* 0x25090FE2: pop esi */ 2047 eax = ebx; /* 0x25090FE3: mov eax, ebx */ 2048 ebx = POP32_VAL(esp); /* 0x25090FE5: pop ebx */ 2049 esp = ebp; /* 0x25090FE6: mov esp, ebp */ 2050 ebp = POP32_VAL(esp); /* 0x25090FE8: pop ebp */ 2051 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090FE9: ret */ 2052 L_25090FEA: 2053 esi = POP32_VAL(esp); /* 0x25090FEA: pop esi */ 2054 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2055 eax = 0; /* 0x25090FEB: xor eax, eax */ 2056 _cf = 0; 2057 _flag_k = FK_TEST; 2058 ebx = POP32_VAL(esp); /* 0x25090FED: pop ebx */ 2059 esp = ebp; /* 0x25090FEE: mov esp, ebp */ 2060 ebp = POP32_VAL(esp); /* 0x25090FF0: pop ebp */ 2061 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25090FF1: ret */ 2062 RECOMP_REGS_OUT(); 2063 } 2064 2065 void sub_25091000(void) { 2066 int _fpu_cmp = 0; 2067 uint32_t _cf = 0; 2068 int _df = 1; 2069 uint32_t _flag_k = FK_NONE; 2070 uint32_t _flag_a = 0, _flag_b = 0; 2071 uint32_t _itail_tgt = 0; 2072 RECOMP_REGS_LOCALS 2073 RECOMP_ENTER(0x25091000u); 2074 2075 L_25091000: 2076 PUSH32(esp, ebp); /* 0x25091000: push ebp */ 2077 ebp = esp; /* 0x25091001: mov ebp, esp */ 2078 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091003: push -1 */ 2079 PUSH32(esp, 0x25149388u); /* 0x25091005: push 0x25149388 */ 2080 eax = MEM32(FS_BASE + (0)); /* 0x2509100A: mov eax, dword ptr fs:[0] */ 2081 PUSH32(esp, eax); /* 0x25091010: push eax */ 2082 MEM32(FS_BASE + (0)) = esp; /* 0x25091011: mov dword ptr fs:[0], esp */ 2083 PUSH32(esp, ecx); /* 0x25091018: push ecx */ 2084 PUSH32(esp, ebx); /* 0x25091019: push ebx */ 2085 PUSH32(esp, esi); /* 0x2509101A: push esi */ 2086 PUSH32(esp, edi); /* 0x2509101B: push edi */ 2087 edi = MEM32(ebp + 0x8); /* 0x2509101C: mov edi, dword ptr [ebp + 8] */ 2088 esi = ecx; /* 0x2509101F: mov esi, ecx */ 2089 PUSH32(esp, edi); /* 0x25091021: push edi */ 2090 MEM32(ebp + (-0x10)) = esi; /* 0x25091022: mov dword ptr [ebp - 0x10], esi */ 2091 RECOMP_ICALL(0x25102EA0u); /* 0x25091025: call 0x25102ea0 */ /* not lifted */ 2092 RECOMP_FLAGS_IN(); 2093 ecx = edi; /* 0x2509102A: mov ecx, edi */ 2094 MEM32(ebp + (-0x4)) = 0; /* 0x2509102C: mov dword ptr [ebp - 4], 0 */ 2095 MEM8(esi + 0x38) = (uint8_t)(0); /* 0x25091033: mov byte ptr [esi + 0x38], 0 */ 2096 MEM32(esi) = 0x25155AB8u; /* 0x25091037: mov dword ptr [esi], 0x25155ab8 */ 2097 RECOMP_ICALL(MEM32(0x251513EC)); /* 0x2509103D: call dword ptr [0x251513ec] */ 2098 RECOMP_FLAGS_IN(); 2099 ebx = MEM32(0x251513E8); /* 0x25091043: mov ebx, dword ptr [0x251513e8] */ 2100 edi = eax; /* 0x25091049: mov edi, eax */ 2101 PUSH32(esp, 0); /* 0x2509104B: push 0 */ 2102 eax = ebp + 0x8; /* 0x2509104D: lea eax, [ebp + 8] */ 2103 PUSH32(esp, eax); /* 0x25091050: push eax */ 2104 PUSH32(esp, 0x251B4164u); /* 0x25091051: push 0x251b4164 */ 2105 ecx = edi; /* 0x25091056: mov ecx, edi */ 2106 RECOMP_ICALL(ebx); /* 0x25091058: call ebx */ 2107 RECOMP_FLAGS_IN(); 2108 /* test eax, eax */ /* 0x2509105A: test eax, eax */ 2109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2110 _cf = 0; 2111 _flag_k = FK_TEST; 2112 if (TEST_NZ(_flag_a, _flag_b)) goto L_25091064; /* 0x2509105C: jne 0x25091064 */ 2113 L_2509105E: 2114 ecx = MEM32(ebp + 0x8); /* 0x2509105E: mov ecx, dword ptr [ebp + 8] */ 2115 MEM32(esi + 0x30) = ecx; /* 0x25091061: mov dword ptr [esi + 0x30], ecx */ 2116 L_25091064: 2117 PUSH32(esp, 0); /* 0x25091064: push 0 */ 2118 edx = ebp + 0x8; /* 0x25091066: lea edx, [ebp + 8] */ 2119 PUSH32(esp, edx); /* 0x25091069: push edx */ 2120 PUSH32(esp, 0x251B415Cu); /* 0x2509106A: push 0x251b415c */ 2121 ecx = edi; /* 0x2509106F: mov ecx, edi */ 2122 RECOMP_ICALL(ebx); /* 0x25091071: call ebx */ 2123 RECOMP_FLAGS_IN(); 2124 /* test eax, eax */ /* 0x25091073: test eax, eax */ 2125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2126 _cf = 0; 2127 _flag_k = FK_TEST; 2128 if (TEST_NZ(_flag_a, _flag_b)) goto L_2509107D; /* 0x25091075: jne 0x2509107d */ 2129 L_25091077: 2130 eax = MEM32(ebp + 0x8); /* 0x25091077: mov eax, dword ptr [ebp + 8] */ 2131 MEM32(esi + 0x34) = eax; /* 0x2509107A: mov dword ptr [esi + 0x34], eax */ 2132 L_2509107D: 2133 ecx = MEM32(ebp + (-0xC)); /* 0x2509107D: mov ecx, dword ptr [ebp - 0xc] */ 2134 edi = POP32_VAL(esp); /* 0x25091080: pop edi */ 2135 eax = esi; /* 0x25091081: mov eax, esi */ 2136 esi = POP32_VAL(esp); /* 0x25091083: pop esi */ 2137 ebx = POP32_VAL(esp); /* 0x25091084: pop ebx */ 2138 MEM32(FS_BASE + (0)) = ecx; /* 0x25091085: mov dword ptr fs:[0], ecx */ 2139 esp = ebp; /* 0x2509108C: mov esp, ebp */ 2140 ebp = POP32_VAL(esp); /* 0x2509108E: pop ebp */ 2141 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509108F: ret 4 */ 2142 RECOMP_REGS_OUT(); 2143 } 2144 2145 void sub_250910A0(void) { 2146 int _fpu_cmp = 0; 2147 uint32_t _cf = 0; 2148 int _df = 1; 2149 uint32_t _flag_k = FK_NONE; 2150 uint32_t _flag_a = 0, _flag_b = 0; 2151 uint32_t _itail_tgt = 0; 2152 RECOMP_REGS_LOCALS 2153 RECOMP_ENTER(0x250910A0u); 2154 2155 L_250910A0: 2156 PUSH32(esp, ebp); /* 0x250910A0: push ebp */ 2157 ebp = esp; /* 0x250910A1: mov ebp, esp */ 2158 PUSH32(esp, ebx); /* 0x250910A3: push ebx */ 2159 PUSH32(esp, esi); /* 0x250910A4: push esi */ 2160 PUSH32(esp, edi); /* 0x250910A5: push edi */ 2161 edi = MEM32(ebp + 0x8); /* 0x250910A6: mov edi, dword ptr [ebp + 8] */ 2162 esi = ecx; /* 0x250910A9: mov esi, ecx */ 2163 PUSH32(esp, edi); /* 0x250910AB: push edi */ 2164 RECOMP_ICALL(0x25102F30u); /* 0x250910AC: call 0x25102f30 */ /* not lifted */ 2165 RECOMP_FLAGS_IN(); 2166 ecx = edi; /* 0x250910B1: mov ecx, edi */ 2167 RECOMP_ICALL(MEM32(0x251513EC)); /* 0x250910B3: call dword ptr [0x251513ec] */ 2168 RECOMP_FLAGS_IN(); 2169 ebx = MEM32(0x251513F8); /* 0x250910B9: mov ebx, dword ptr [0x251513f8] */ 2170 edi = eax; /* 0x250910BF: mov edi, eax */ 2171 eax = MEM32(esi + 0x30); /* 0x250910C1: mov eax, dword ptr [esi + 0x30] */ 2172 PUSH32(esp, eax); /* 0x250910C4: push eax */ 2173 PUSH32(esp, 0x251B4164u); /* 0x250910C5: push 0x251b4164 */ 2174 ecx = edi; /* 0x250910CA: mov ecx, edi */ 2175 RECOMP_ICALL(ebx); /* 0x250910CC: call ebx */ 2176 RECOMP_FLAGS_IN(); 2177 ecx = MEM32(esi + 0x34); /* 0x250910CE: mov ecx, dword ptr [esi + 0x34] */ 2178 PUSH32(esp, ecx); /* 0x250910D1: push ecx */ 2179 PUSH32(esp, 0x251B415Cu); /* 0x250910D2: push 0x251b415c */ 2180 ecx = edi; /* 0x250910D7: mov ecx, edi */ 2181 RECOMP_ICALL(ebx); /* 0x250910D9: call ebx */ 2182 RECOMP_FLAGS_IN(); 2183 edi = POP32_VAL(esp); /* 0x250910DB: pop edi */ 2184 esi = POP32_VAL(esp); /* 0x250910DC: pop esi */ 2185 ebx = POP32_VAL(esp); /* 0x250910DD: pop ebx */ 2186 ebp = POP32_VAL(esp); /* 0x250910DE: pop ebp */ 2187 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250910DF: ret 4 */ 2188 RECOMP_REGS_OUT(); 2189 } 2190 2191 void sub_250910F0(void) { 2192 int _fpu_cmp = 0; 2193 uint32_t _cf = 0; 2194 int _df = 1; 2195 uint32_t _flag_k = FK_NONE; 2196 uint32_t _flag_a = 0, _flag_b = 0; 2197 uint32_t _itail_tgt = 0; 2198 RECOMP_REGS_LOCALS 2199 RECOMP_ENTER(0x250910F0u); 2200 2201 L_250910F0: 2202 SET_LO8(eax, 1); /* 0x250910F0: mov al, 1 */ 2203 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x250910F2: ret 0x10 */ 2204 RECOMP_REGS_OUT(); 2205 } 2206 2207 void sub_25091100(void) { 2208 int _fpu_cmp = 0; 2209 uint32_t _cf = 0; 2210 int _df = 1; 2211 uint32_t _flag_k = FK_NONE; 2212 uint32_t _flag_a = 0, _flag_b = 0; 2213 uint32_t _itail_tgt = 0; 2214 RECOMP_REGS_LOCALS 2215 RECOMP_ENTER(0x25091100u); 2216 2217 L_25091100: 2218 eax = ecx + 0x8; /* 0x25091100: lea eax, [ecx + 8] */ 2219 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091103: ret */ 2220 RECOMP_REGS_OUT(); 2221 } 2222 2223 void sub_25091110(void) { 2224 int _fpu_cmp = 0; 2225 uint32_t _cf = 0; 2226 int _df = 1; 2227 uint32_t _flag_k = FK_NONE; 2228 uint32_t _flag_a = 0, _flag_b = 0; 2229 uint32_t _itail_tgt = 0; 2230 RECOMP_REGS_LOCALS 2231 RECOMP_ENTER(0x25091110u); 2232 2233 L_25091110: 2234 edx = MEM32(ecx + 0x20); /* 0x25091110: mov edx, dword ptr [ecx + 0x20] */ 2235 /* test edx, edx */ /* 0x25091113: test edx, edx */ 2236 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2237 _cf = 0; 2238 _flag_k = FK_TEST; 2239 eax = MEM32(ecx + 0xC); /* 0x25091115: mov eax, dword ptr [ecx + 0xc] */ 2240 if (TEST_Z(_flag_a, _flag_b)) goto L_2509112B; /* 0x25091118: je 0x2509112b */ 2241 L_2509111A: 2242 /* test eax, eax */ /* 0x2509111A: test eax, eax */ 2243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2244 _cf = 0; 2245 _flag_k = FK_TEST; 2246 if (TEST_NZ(_flag_a, _flag_b)) goto L_25091123; /* 0x2509111C: jne 0x25091123 */ 2247 L_2509111E: 2248 eax = MEM32(0x251511E4); /* 0x2509111E: mov eax, dword ptr [0x251511e4] */ 2249 L_25091123: 2250 PUSH32(esp, eax); /* 0x25091123: push eax */ 2251 PUSH32(esp, edx); /* 0x25091124: push edx */ 2252 RECOMP_ICALL(0x25103000u); /* 0x25091125: call 0x25103000 */ /* not lifted */ 2253 RECOMP_FLAGS_IN(); 2254 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509112A: ret */ 2255 L_2509112B: 2256 /* test eax, eax */ /* 0x2509112B: test eax, eax */ 2257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2258 _cf = 0; 2259 _flag_k = FK_TEST; 2260 if (TEST_NZ(_flag_a, _flag_b)) goto L_25091134; /* 0x2509112D: jne 0x25091134 */ 2261 L_2509112F: 2262 eax = MEM32(0x251511E4); /* 0x2509112F: mov eax, dword ptr [0x251511e4] */ 2263 L_25091134: 2264 PUSH32(esp, eax); /* 0x25091134: push eax */ 2265 eax = MEM32(ecx + 0x18); /* 0x25091135: mov eax, dword ptr [ecx + 0x18] */ 2266 PUSH32(esp, eax); /* 0x25091138: push eax */ 2267 RECOMP_ICALL(0x25102FC0u); /* 0x25091139: call 0x25102fc0 */ /* not lifted */ 2268 RECOMP_FLAGS_IN(); 2269 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509113E: ret */ 2270 RECOMP_REGS_OUT(); 2271 } 2272 2273 void sub_25091140(void) { 2274 int _fpu_cmp = 0; 2275 uint32_t _cf = 0; 2276 int _df = 1; 2277 uint32_t _flag_k = FK_NONE; 2278 uint32_t _flag_a = 0, _flag_b = 0; 2279 uint32_t _itail_tgt = 0; 2280 RECOMP_REGS_LOCALS 2281 RECOMP_ENTER(0x25091140u); 2282 2283 L_25091140: 2284 SET_LO8(eax, MEM8(ecx + 0x2C)); /* 0x25091140: mov al, byte ptr [ecx + 0x2c] */ 2285 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091143: ret */ 2286 RECOMP_REGS_OUT(); 2287 } 2288 2289 void sub_25091150(void) { 2290 int _fpu_cmp = 0; 2291 uint32_t _cf = 0; 2292 int _df = 1; 2293 uint32_t _flag_k = FK_NONE; 2294 uint32_t _flag_a = 0, _flag_b = 0; 2295 uint32_t _itail_tgt = 0; 2296 RECOMP_REGS_LOCALS 2297 RECOMP_ENTER(0x25091150u); 2298 2299 L_25091150: 2300 PUSH32(esp, ebp); /* 0x25091150: push ebp */ 2301 ebp = esp; /* 0x25091151: mov ebp, esp */ 2302 PUSH32(esp, esi); /* 0x25091153: push esi */ 2303 esi = ecx; /* 0x25091154: mov esi, ecx */ 2304 RECOMP_ICALL(0x25091180u); /* 0x25091156: call 0x25091180 */ /* not lifted */ 2305 RECOMP_FLAGS_IN(); 2306 /* test MEM8(ebp + 0x8), 1 */ /* 0x2509115B: test byte ptr [ebp + 8], 1 */ 2307 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2308 _cf = 0; 2309 _flag_k = FK_NARROW(FK_TEST, 24); 2310 if (TEST_Z(_flag_a, _flag_b)) goto L_2509116A; /* 0x2509115F: je 0x2509116a */ 2311 L_25091161: 2312 PUSH32(esp, esi); /* 0x25091161: push esi */ 2313 RECOMP_ICALL(0x25137EECu); /* 0x25091162: call 0x25137eec */ /* not lifted */ 2314 RECOMP_FLAGS_IN(); 2315 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2317 esp = esp + 4; /* 0x25091167: add esp, 4 */ 2318 _flag_k = FK_ADD; 2319 L_2509116A: 2320 eax = esi; /* 0x2509116A: mov eax, esi */ 2321 esi = POP32_VAL(esp); /* 0x2509116C: pop esi */ 2322 ebp = POP32_VAL(esp); /* 0x2509116D: pop ebp */ 2323 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2509116E: ret 4 */ 2324 RECOMP_REGS_OUT(); 2325 } 2326 2327 void sub_25091180(void) { 2328 int _fpu_cmp = 0; 2329 uint32_t _cf = 0; 2330 int _df = 1; 2331 uint32_t _flag_k = FK_NONE; 2332 uint32_t _flag_a = 0, _flag_b = 0; 2333 uint32_t _itail_tgt = 0; 2334 RECOMP_REGS_LOCALS 2335 RECOMP_ENTER(0x25091180u); 2336 2337 L_25091180: 2338 PUSH32(esp, esi); /* 0x25091180: push esi */ 2339 esi = ecx; /* 0x25091181: mov esi, ecx */ 2340 MEM32(esi) = 0x25155AD0u; /* 0x25091183: mov dword ptr [esi], 0x25155ad0 */ 2341 eax = MEM32(esi + 0xC); /* 0x25091189: mov eax, dword ptr [esi + 0xc] */ 2342 /* test eax, eax */ /* 0x2509118C: test eax, eax */ 2343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2344 _cf = 0; 2345 _flag_k = FK_TEST; 2346 if (TEST_Z(_flag_a, _flag_b)) goto L_250911AC; /* 0x2509118E: je 0x250911ac */ 2347 L_25091190: 2348 ecx = eax + (-0x1); /* 0x25091190: lea ecx, [eax - 1] */ 2349 SET_LO8(eax, MEM8(ecx)); /* 0x25091193: mov al, byte ptr [ecx] */ 2350 /* test LO8(eax), LO8(eax) */ /* 0x25091195: test al, al */ 2351 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2352 _cf = 0; 2353 _flag_k = FK_NARROW(FK_TEST, 24); 2354 if (TEST_Z(_flag_a, _flag_b)) goto L_250911A3; /* 0x25091197: je 0x250911a3 */ 2355 L_25091199: 2356 /* cmp LO8(eax), 0xFFu */ /* 0x25091199: cmp al, 0xff */ 2357 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2359 _flag_k = FK_NARROW(FK_CMP, 24); 2360 if (CMP_EQ(_flag_a, _flag_b)) goto L_250911A3; /* 0x2509119B: je 0x250911a3 */ 2361 L_2509119D: 2362 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2363 SET_LO8(eax, LO8(eax) - 1); /* 0x2509119D: dec al */ 2364 _flag_k = FK_NARROW(FK_DEC, 24); 2365 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2509119F: mov byte ptr [ecx], al */ 2366 goto L_250911AC; /* 0x250911A1: jmp 0x250911ac */ 2367 L_250911A3: 2368 PUSH32(esp, ecx); /* 0x250911A3: push ecx */ 2369 RECOMP_ICALL(0x25137EECu); /* 0x250911A4: call 0x25137eec */ /* not lifted */ 2370 RECOMP_FLAGS_IN(); 2371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2373 esp = esp + 4; /* 0x250911A9: add esp, 4 */ 2374 _flag_k = FK_ADD; 2375 L_250911AC: 2376 ecx = esi; /* 0x250911AC: mov ecx, esi */ 2377 MEM32(esi + 0xC) = 0; /* 0x250911AE: mov dword ptr [esi + 0xc], 0 */ 2378 MEM32(esi + 0x10) = 0; /* 0x250911B5: mov dword ptr [esi + 0x10], 0 */ 2379 MEM32(esi + 0x14) = 0; /* 0x250911BC: mov dword ptr [esi + 0x14], 0 */ 2380 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250911C3: call dword ptr [0x251513fc] */ 2381 RECOMP_FLAGS_IN(); 2382 esi = POP32_VAL(esp); /* 0x250911C9: pop esi */ 2383 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250911CA: ret */ 2384 RECOMP_REGS_OUT(); 2385 } 2386 2387 void sub_250911AC(void) { 2388 int _fpu_cmp = 0; 2389 uint32_t _cf = 0; 2390 int _df = 1; 2391 uint32_t _flag_k = FK_NONE; 2392 uint32_t _flag_a = 0, _flag_b = 0; 2393 uint32_t _itail_tgt = 0; 2394 RECOMP_REGS_LOCALS 2395 RECOMP_ENTER(0x250911ACu); 2396 2397 L_250911AC: 2398 ecx = esi; /* 0x250911AC: mov ecx, esi */ 2399 MEM32(esi + 0xC) = 0; /* 0x250911AE: mov dword ptr [esi + 0xc], 0 */ 2400 MEM32(esi + 0x10) = 0; /* 0x250911B5: mov dword ptr [esi + 0x10], 0 */ 2401 MEM32(esi + 0x14) = 0; /* 0x250911BC: mov dword ptr [esi + 0x14], 0 */ 2402 RECOMP_ICALL(MEM32(0x251513FC)); /* 0x250911C3: call dword ptr [0x251513fc] */ 2403 RECOMP_FLAGS_IN(); 2404 esi = POP32_VAL(esp); /* 0x250911C9: pop esi */ 2405 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250911CA: ret */ 2406 RECOMP_REGS_OUT(); 2407 } 2408 2409 void sub_250911D0(void) { 2410 int _fpu_cmp = 0; 2411 uint32_t _cf = 0; 2412 int _df = 1; 2413 uint32_t _flag_k = FK_NONE; 2414 uint32_t _flag_a = 0, _flag_b = 0; 2415 uint32_t _itail_tgt = 0; 2416 RECOMP_REGS_LOCALS 2417 RECOMP_ENTER(0x250911D0u); 2418 2419 L_250911D0: 2420 PUSH32(esp, ebp); /* 0x250911D0: push ebp */ 2421 ebp = esp; /* 0x250911D1: mov ebp, esp */ 2422 PUSH32(esp, 0xFFFFFFFFu); /* 0x250911D3: push -1 */ 2423 PUSH32(esp, 0x251493D6u); /* 0x250911D5: push 0x251493d6 */ 2424 eax = MEM32(FS_BASE + (0)); /* 0x250911DA: mov eax, dword ptr fs:[0] */ 2425 PUSH32(esp, eax); /* 0x250911E0: push eax */ 2426 MEM32(FS_BASE + (0)) = esp; /* 0x250911E1: mov dword ptr fs:[0], esp */ 2427 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x78u); 2428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2429 esp = esp - 0x78u; /* 0x250911E8: sub esp, 0x78 */ 2430 _flag_k = FK_CMP; 2431 PUSH32(esp, ebx); /* 0x250911EB: push ebx */ 2432 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2433 ebx = 0; /* 0x250911EC: xor ebx, ebx */ 2434 _cf = 0; 2435 _flag_k = FK_TEST; 2436 PUSH32(esp, esi); /* 0x250911EE: push esi */ 2437 esi = ecx; /* 0x250911EF: mov esi, ecx */ 2438 MEM32(esi + 0x30) = ebx; /* 0x250911F1: mov dword ptr [esi + 0x30], ebx */ 2439 MEM32(esi + 0x34) = ebx; /* 0x250911F4: mov dword ptr [esi + 0x34], ebx */ 2440 MEM32(esi + 0x38) = ebx; /* 0x250911F7: mov dword ptr [esi + 0x38], ebx */ 2441 PUSH32(esp, edi); /* 0x250911FA: push edi */ 2442 MEM32(ebp + (-0x14)) = ebx; /* 0x250911FB: mov dword ptr [ebp - 0x14], ebx */ 2443 MEM32(esi + 0x40) = ebx; /* 0x250911FE: mov dword ptr [esi + 0x40], ebx */ 2444 MEM32(esi + 0x44) = ebx; /* 0x25091201: mov dword ptr [esi + 0x44], ebx */ 2445 MEM32(esi + 0x48) = ebx; /* 0x25091204: mov dword ptr [esi + 0x48], ebx */ 2446 RECOMP_ICALL(0x25091580u); /* 0x25091207: call 0x25091580 */ /* not lifted */ 2447 RECOMP_FLAGS_IN(); 2448 eax = MEM32(ebp + 0xC); /* 0x2509120C: mov eax, dword ptr [ebp + 0xc] */ 2449 ecx = MEM32(ebp + 0x8); /* 0x2509120F: mov ecx, dword ptr [ebp + 8] */ 2450 PUSH32(esp, eax); /* 0x25091212: push eax */ 2451 PUSH32(esp, ecx); /* 0x25091213: push ecx */ 2452 ecx = ebp + (-0x84); /* 0x25091214: lea ecx, [ebp - 0x84] */ 2453 RECOMP_ICALL(MEM32(0x2515148C)); /* 0x2509121A: call dword ptr [0x2515148c] */ 2454 RECOMP_FLAGS_IN(); 2455 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2456 eax = 0; /* 0x25091220: xor eax, eax */ 2457 _cf = 0; 2458 _flag_k = FK_TEST; 2459 ecx = 8; /* 0x25091222: mov ecx, 8 */ 2460 edi = esi; /* 0x25091227: mov edi, esi */ 2461 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x25091229: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2462 PUSH32(esp, 0x20u); /* 0x2509122B: push 0x20 */ 2463 PUSH32(esp, esi); /* 0x2509122D: push esi */ 2464 ecx = ebp + (-0x84); /* 0x2509122E: lea ecx, [ebp - 0x84] */ 2465 MEM32(ebp + (-0x4)) = ebx; /* 0x25091234: mov dword ptr [ebp - 4], ebx */ 2466 MEM32(ebp + (-0x44)) = ebx; /* 0x25091237: mov dword ptr [ebp - 0x44], ebx */ 2467 MEM8(edi) = LO8(eax); edi += _df; /* 0x2509123A: stosb byte ptr es:[edi], al */ 2468 RECOMP_ICALL(MEM32(0x25151490)); /* 0x2509123B: call dword ptr [0x25151490] */ 2469 RECOMP_FLAGS_IN(); 2470 edi = MEM32(0x25151478); /* 0x25091241: mov edi, dword ptr [0x25151478] */ 2471 edx = ebp + (-0x10); /* 0x25091247: lea edx, [ebp - 0x10] */ 2472 PUSH32(esp, edx); /* 0x2509124A: push edx */ 2473 ecx = ebp + (-0x84); /* 0x2509124B: lea ecx, [ebp - 0x84] */ 2474 RECOMP_ICALL(edi); /* 0x25091251: call edi */ 2475 RECOMP_FLAGS_IN(); 2476 ecx = MEM32(ebp + (-0x10)); /* 0x25091253: mov ecx, dword ptr [ebp - 0x10] */ 2477 eax = 0x03CE4585u; /* 0x25091256: mov eax, 0x3ce4585 */ 2478 { uint64_t _r = (uint64_t)eax * (uint32_t)(ecx); /* 0x2509125B: mul ecx */ 2479 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 2480 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2483 ecx = ecx - edx; /* 0x2509125D: sub ecx, edx */ 2484 _flag_k = FK_CMP; 2485 if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x2509125F: shr ecx, 1 */ 2486 if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2487 ecx = ecx >> 1u; /* 0x2509125F: shr ecx, 1 */ 2488 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2490 ecx = ecx + edx; /* 0x25091261: add ecx, edx */ 2491 _flag_k = FK_ADD; 2492 if (9u) _cf = (((ecx) >> 8) & 1u); /* 0x25091263: shr ecx, 9 */ 2493 if (9u) { _flag_a = recomp_flags_pack((ecx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2494 ecx = ecx >> 9u; /* 0x25091263: shr ecx, 9 */ 2495 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2496 ecx = ecx - 1; /* 0x25091266: dec ecx */ 2497 _flag_k = FK_DEC; 2498 PUSH32(esp, 0x10u); /* 0x25091267: push 0x10 */ 2499 MEM32(ebp + (-0x10)) = ecx; /* 0x25091269: mov dword ptr [ebp - 0x10], ecx */ 2500 RECOMP_ICALL(0x251380D0u); /* 0x2509126C: call 0x251380d0 */ /* not lifted */ 2501 RECOMP_FLAGS_IN(); 2502 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2503 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2504 esp = esp + 4; /* 0x25091271: add esp, 4 */ 2505 _flag_k = FK_ADD; 2506 /* cmp eax, ebx */ /* 0x25091274: cmp eax, ebx */ 2507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2509 _flag_k = FK_CMP; 2510 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091288; /* 0x25091276: je 0x25091288 */ 2511 L_25091278: 2512 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x25091278: mov cl, byte ptr [ebp + 0xf] */ 2513 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2509127B: mov byte ptr [eax], cl */ 2514 MEM32(eax + 0x4) = ebx; /* 0x2509127D: mov dword ptr [eax + 4], ebx */ 2515 MEM32(eax + 0x8) = ebx; /* 0x25091280: mov dword ptr [eax + 8], ebx */ 2516 MEM32(eax + 0xC) = ebx; /* 0x25091283: mov dword ptr [eax + 0xc], ebx */ 2517 goto L_2509128A; /* 0x25091286: jmp 0x2509128a */ 2518 L_25091288: 2519 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2520 eax = 0; /* 0x25091288: xor eax, eax */ 2521 _cf = 0; 2522 _flag_k = FK_TEST; 2523 L_2509128A: 2524 MEM32(esi + 0x28) = eax; /* 0x2509128A: mov dword ptr [esi + 0x28], eax */ 2525 eax = MEM32(ebp + (-0x10)); /* 0x2509128D: mov eax, dword ptr [ebp - 0x10] */ 2526 /* test eax, eax */ /* 0x25091290: test eax, eax */ 2527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2528 _cf = 0; 2529 _flag_k = FK_TEST; 2530 if (TEST_Z(_flag_a, _flag_b)) goto L_250912F7; /* 0x25091292: jbe 0x250912f7 */ 2531 L_25091294: 2532 PUSH32(esp, 0x2Cu); /* 0x25091294: push 0x2c */ 2533 RECOMP_ICALL(0x251380D0u); /* 0x25091296: call 0x251380d0 */ /* not lifted */ 2534 RECOMP_FLAGS_IN(); 2535 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2537 esp = esp + 4; /* 0x2509129B: add esp, 4 */ 2538 _flag_k = FK_ADD; 2539 PUSH32(esp, 0x20u); /* 0x2509129E: push 0x20 */ 2540 PUSH32(esp, eax); /* 0x250912A0: push eax */ 2541 ecx = ebp + (-0x84); /* 0x250912A1: lea ecx, [ebp - 0x84] */ 2542 MEM32(ebp + 0xC) = eax; /* 0x250912A7: mov dword ptr [ebp + 0xc], eax */ 2543 RECOMP_ICALL(MEM32(0x25151490)); /* 0x250912AA: call dword ptr [0x25151490] */ 2544 RECOMP_FLAGS_IN(); 2545 edx = MEM32(ebp + 0xC); /* 0x250912B0: mov edx, dword ptr [ebp + 0xc] */ 2546 eax = edx + 0x20; /* 0x250912B3: lea eax, [edx + 0x20] */ 2547 PUSH32(esp, eax); /* 0x250912B6: push eax */ 2548 ecx = ebp + (-0x84); /* 0x250912B7: lea ecx, [ebp - 0x84] */ 2549 RECOMP_ICALL(edi); /* 0x250912BD: call edi */ 2550 RECOMP_FLAGS_IN(); 2551 eax = MEM32(ebp + 0xC); /* 0x250912BF: mov eax, dword ptr [ebp + 0xc] */ 2552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 2553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2554 eax = eax + 0x24u; /* 0x250912C2: add eax, 0x24 */ 2555 _flag_k = FK_ADD; 2556 PUSH32(esp, eax); /* 0x250912C5: push eax */ 2557 ecx = ebp + (-0x84); /* 0x250912C6: lea ecx, [ebp - 0x84] */ 2558 RECOMP_ICALL(edi); /* 0x250912CC: call edi */ 2559 RECOMP_FLAGS_IN(); 2560 ecx = MEM32(ebp + 0xC); /* 0x250912CE: mov ecx, dword ptr [ebp + 0xc] */ 2561 eax = ecx + 0x28; /* 0x250912D1: lea eax, [ecx + 0x28] */ 2562 PUSH32(esp, eax); /* 0x250912D4: push eax */ 2563 ecx = ebp + (-0x84); /* 0x250912D5: lea ecx, [ebp - 0x84] */ 2564 RECOMP_ICALL(edi); /* 0x250912DB: call edi */ 2565 RECOMP_FLAGS_IN(); 2566 ecx = MEM32(esi + 0x28); /* 0x250912DD: mov ecx, dword ptr [esi + 0x28] */ 2567 eax = MEM32(ecx + 0x8); /* 0x250912E0: mov eax, dword ptr [ecx + 8] */ 2568 edx = ebp + 0xC; /* 0x250912E3: lea edx, [ebp + 0xc] */ 2569 PUSH32(esp, edx); /* 0x250912E6: push edx */ 2570 PUSH32(esp, 1); /* 0x250912E7: push 1 */ 2571 PUSH32(esp, eax); /* 0x250912E9: push eax */ 2572 RECOMP_ICALL(0x2504A9D0u); /* 0x250912EA: call 0x2504a9d0 */ /* not lifted */ 2573 RECOMP_FLAGS_IN(); 2574 eax = MEM32(ebp + (-0x10)); /* 0x250912EF: mov eax, dword ptr [ebp - 0x10] */ 2575 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 2576 ebx = ebx + 1; /* 0x250912F2: inc ebx */ 2577 _flag_k = FK_INC; 2578 /* cmp ebx, eax */ /* 0x250912F3: cmp ebx, eax */ 2579 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2581 _flag_k = FK_CMP; 2582 RECOMP_BACKEDGE(); 2583 if (CMP_B(_flag_a, _flag_b)) goto L_25091294; /* 0x250912F5: jb 0x25091294 */ 2584 L_250912F7: 2585 eax = ebp + (-0x18); /* 0x250912F7: lea eax, [ebp - 0x18] */ 2586 PUSH32(esp, eax); /* 0x250912FA: push eax */ 2587 ecx = ebp + (-0x84); /* 0x250912FB: lea ecx, [ebp - 0x84] */ 2588 RECOMP_ICALL(edi); /* 0x25091301: call edi */ 2589 RECOMP_FLAGS_IN(); 2590 eax = MEM32(ebp + (-0x18)); /* 0x25091303: mov eax, dword ptr [ebp - 0x18] */ 2591 ecx = eax; /* 0x25091306: mov ecx, eax */ 2592 if (24u) _cf = (((ecx) >> 23) & 1u); /* 0x25091308: shr ecx, 0x18 */ 2593 if (24u) { _flag_a = recomp_flags_pack((ecx >> 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2594 ecx = ecx >> 24u; /* 0x25091308: shr ecx, 0x18 */ 2595 ecx = (int32_t)(int8_t)LO8(ecx); /* 0x2509130B: movsx ecx, cl */ 2596 MEM32(ebp + 0xC) = ecx; /* 0x2509130E: mov dword ptr [ebp + 0xc], ecx */ 2597 ecx = eax; /* 0x25091311: mov ecx, eax */ 2598 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x25091313: fild dword ptr [ebp + 0xc] */ 2599 if (16u) _cf = (((ecx) >> 15) & 1u); /* 0x25091316: sar ecx, 0x10 */ 2600 if (16u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 16u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2601 ecx = (uint32_t)((int32_t)ecx >> 16u); 2602 edx = (int32_t)(int8_t)LO8(ecx); /* 0x25091319: movsx edx, cl */ 2603 fp_push(_st[0]); /* 0x2509131C: fld st(0) */ 2604 _st[0] *= _st[1]; /* 0x2509131E: fmul st(1) */ 2605 MEM32(ebp + 0xC) = edx; /* 0x25091320: mov dword ptr [ebp + 0xc], edx */ 2606 ecx = eax; /* 0x25091323: mov ecx, eax */ 2607 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x25091325: sar ecx, 8 */ 2608 if (8u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 8u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2609 ecx = (uint32_t)((int32_t)ecx >> 8u); 2610 _st[0] *= (double)*(float*)ADDR(0x25155AE4); /* 0x25091328: fmul dword ptr [0x25155ae4] */ 2611 ecx = (int32_t)(int8_t)LO8(ecx); /* 0x2509132E: movsx ecx, cl */ 2612 _st[0] += (double)*(float*)ADDR(0x2515276C); /* 0x25091331: fadd dword ptr [0x2515276c] */ 2613 edx = (int32_t)(int8_t)LO8(eax); /* 0x25091337: movsx edx, al */ 2614 { double _v = fp_pop(); _st[0] *= _v; } /* 0x2509133A: fmulp st(1) */ 2615 ebx = MEM32(ebp + (-0x74)); /* 0x2509133C: mov ebx, dword ptr [ebp - 0x74] */ 2616 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x2509133F: fild dword ptr [ebp + 0xc] */ 2617 MEM32(ebp + 0xC) = ecx; /* 0x25091342: mov dword ptr [ebp + 0xc], ecx */ 2618 fp_push(_st[0]); /* 0x25091345: fld st(0) */ 2619 _st[0] *= _st[1]; /* 0x25091347: fmul st(1) */ 2620 _st[0] *= (double)*(float*)ADDR(0x25155AE4); /* 0x25091349: fmul dword ptr [0x25155ae4] */ 2621 _st[0] += (double)*(float*)ADDR(0x2515276C); /* 0x2509134F: fadd dword ptr [0x2515276c] */ 2622 _st[0] *= _st[1]; /* 0x25091355: fmul st(1) */ 2623 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x25091357: fstp dword ptr [ebp - 0x1c] */ 2624 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2509135A: fstp st(0) */ 2625 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x2509135C: fild dword ptr [ebp + 0xc] */ 2626 MEM32(ebp + 0xC) = edx; /* 0x2509135F: mov dword ptr [ebp + 0xc], edx */ 2627 edx = MEM32(ebp + (-0x1C)); /* 0x25091362: mov edx, dword ptr [ebp - 0x1c] */ 2628 MEM32(ebp + (-0x20)) = edx; /* 0x25091365: mov dword ptr [ebp - 0x20], edx */ 2629 fp_push(_st[0]); /* 0x25091368: fld st(0) */ 2630 _st[0] *= _st[1]; /* 0x2509136A: fmul st(1) */ 2631 _st[0] *= (double)*(float*)ADDR(0x25155AE4); /* 0x2509136C: fmul dword ptr [0x25155ae4] */ 2632 _st[0] += (double)*(float*)ADDR(0x2515276C); /* 0x25091372: fadd dword ptr [0x2515276c] */ 2633 _st[0] *= _st[1]; /* 0x25091378: fmul st(1) */ 2634 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x2509137A: fstp dword ptr [ebp + 8] */ 2635 ecx = MEM32(ebp + 0x8); /* 0x2509137D: mov ecx, dword ptr [ebp + 8] */ 2636 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x25091380: fstp st(0) */ 2637 MEM32(ebp + (-0x24)) = ecx; /* 0x25091382: mov dword ptr [ebp - 0x24], ecx */ 2638 fp_push((double)(int32_t)MEM32(ebp + 0xC)); /* 0x25091385: fild dword ptr [ebp + 0xc] */ 2639 fp_push(_st[0]); /* 0x25091388: fld st(0) */ 2640 _st[0] *= _st[1]; /* 0x2509138A: fmul st(1) */ 2641 _st[0] *= (double)*(float*)ADDR(0x25155AE4); /* 0x2509138C: fmul dword ptr [0x25155ae4] */ 2642 _st[0] += (double)*(float*)ADDR(0x2515276C); /* 0x25091392: fadd dword ptr [0x2515276c] */ 2643 _st[0] *= _st[1]; /* 0x25091398: fmul st(1) */ 2644 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0xC) = _v; } /* 0x2509139A: fstp dword ptr [ebp + 0xc] */ 2645 eax = MEM32(ebp + 0xC); /* 0x2509139D: mov eax, dword ptr [ebp + 0xc] */ 2646 MEM32(esi + 0x40) = eax; /* 0x250913A0: mov dword ptr [esi + 0x40], eax */ 2647 MEM32(esi + 0x44) = ecx; /* 0x250913A3: mov dword ptr [esi + 0x44], ecx */ 2648 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x250913A6: fstp st(0) */ 2649 ecx = ebp + (-0x84); /* 0x250913A8: lea ecx, [ebp - 0x84] */ 2650 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4C) = _v; } /* 0x250913AE: fstp dword ptr [esi + 0x4c] */ 2651 MEM32(ebp + (-0x28)) = eax; /* 0x250913B1: mov dword ptr [ebp - 0x28], eax */ 2652 MEM32(esi + 0x48) = edx; /* 0x250913B4: mov dword ptr [esi + 0x48], edx */ 2653 RECOMP_ICALL(MEM32(0x25151498)); /* 0x250913B7: call dword ptr [0x25151498] */ 2654 RECOMP_FLAGS_IN(); 2655 ecx = ebp + (-0x84); /* 0x250913BD: lea ecx, [ebp - 0x84] */ 2656 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 2657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2658 ebx = ebx + eax; /* 0x250913C3: add ebx, eax */ 2659 _flag_k = FK_ADD; 2660 RECOMP_ICALL(MEM32(0x2515149C)); /* 0x250913C5: call dword ptr [0x2515149c] */ 2661 RECOMP_FLAGS_IN(); 2662 ecx = ebp + (-0x84); /* 0x250913CB: lea ecx, [ebp - 0x84] */ 2663 edi = eax; /* 0x250913D1: mov edi, eax */ 2664 RECOMP_ICALL(MEM32(0x25151498)); /* 0x250913D3: call dword ptr [0x25151498] */ 2665 RECOMP_FLAGS_IN(); 2666 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2668 edi = edi - eax; /* 0x250913D9: sub edi, eax */ 2669 _flag_k = FK_CMP; 2670 PUSH32(esp, edi); /* 0x250913DB: push edi */ 2671 PUSH32(esp, ebx); /* 0x250913DC: push ebx */ 2672 ecx = ebp + (-0x40); /* 0x250913DD: lea ecx, [ebp - 0x40] */ 2673 RECOMP_ICALL(0x2510CEA0u); /* 0x250913E0: call 0x2510cea0 */ /* not lifted */ 2674 RECOMP_FLAGS_IN(); 2675 PUSH32(esp, 0x5Cu); /* 0x250913E5: push 0x5c */ 2676 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x250913E7: mov byte ptr [ebp - 4], 1 */ 2677 RECOMP_ICALL(0x251380D0u); /* 0x250913EB: call 0x251380d0 */ /* not lifted */ 2678 RECOMP_FLAGS_IN(); 2679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2681 esp = esp + 4; /* 0x250913F0: add esp, 4 */ 2682 _flag_k = FK_ADD; 2683 MEM32(ebp + 0xC) = eax; /* 0x250913F3: mov dword ptr [ebp + 0xc], eax */ 2684 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2685 ebx = 0; /* 0x250913F6: xor ebx, ebx */ 2686 _cf = 0; 2687 _flag_k = FK_TEST; 2688 /* cmp eax, ebx */ /* 0x250913F8: cmp eax, ebx */ 2689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2691 _flag_k = FK_CMP; 2692 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091427; /* 0x250913FA: je 0x25091427 */ 2693 L_250913FC: 2694 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x250913FC: mov cl, byte ptr [ebp + 0xf] */ 2695 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x250913FF: mov byte ptr [ebp - 0x2c], cl */ 2696 MEM32(ebp + (-0x28)) = ebx; /* 0x25091402: mov dword ptr [ebp - 0x28], ebx */ 2697 MEM32(ebp + (-0x24)) = ebx; /* 0x25091405: mov dword ptr [ebp - 0x24], ebx */ 2698 MEM32(ebp + (-0x20)) = ebx; /* 0x25091408: mov dword ptr [ebp - 0x20], ebx */ 2699 MEM32(ebp + (-0x14)) = 1; /* 0x2509140B: mov dword ptr [ebp - 0x14], 1 */ 2700 edx = ebp + (-0x2C); /* 0x25091412: lea edx, [ebp - 0x2c] */ 2701 PUSH32(esp, edx); /* 0x25091415: push edx */ 2702 ecx = ebp + (-0x40); /* 0x25091416: lea ecx, [ebp - 0x40] */ 2703 PUSH32(esp, ecx); /* 0x25091419: push ecx */ 2704 ecx = eax; /* 0x2509141A: mov ecx, eax */ 2705 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2509141C: mov byte ptr [ebp - 4], 3 */ 2706 RECOMP_ICALL(0x2510D3F0u); /* 0x25091420: call 0x2510d3f0 */ /* not lifted */ 2707 RECOMP_FLAGS_IN(); 2708 goto L_25091429; /* 0x25091425: jmp 0x25091429 */ 2709 L_25091427: 2710 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2711 eax = 0; /* 0x25091427: xor eax, eax */ 2712 _cf = 0; 2713 _flag_k = FK_TEST; 2714 L_25091429: 2715 MEM32(esi + 0x2C) = eax; /* 0x25091429: mov dword ptr [esi + 0x2c], eax */ 2716 /* test MEM8(ebp + (-0x14)), 1 */ /* 0x2509142C: test byte ptr [ebp - 0x14], 1 */ 2717 _flag_a = (uint32_t)(MEM8(ebp + (-0x14))) << 24; _flag_b = (uint32_t)(1) << 24; 2718 _cf = 0; 2719 _flag_k = FK_NARROW(FK_TEST, 24); 2720 MEM32(ebp + (-0x4)) = 1; /* 0x25091430: mov dword ptr [ebp - 4], 1 */ 2721 if (TEST_Z(_flag_a, _flag_b)) goto L_25091495; /* 0x25091437: je 0x25091495 */ 2722 L_25091439: 2723 ecx = MEM32(ebp + (-0x24)); /* 0x25091439: mov ecx, dword ptr [ebp - 0x24] */ 2724 eax = MEM32(ebp + (-0x28)); /* 0x2509143C: mov eax, dword ptr [ebp - 0x28] */ 2725 /* cmp eax, ecx */ /* 0x2509143F: cmp eax, ecx */ 2726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2728 _flag_k = FK_CMP; 2729 MEM32(ebp + 0xC) = ecx; /* 0x25091441: mov dword ptr [ebp + 0xc], ecx */ 2730 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091483; /* 0x25091444: je 0x25091483 */ 2731 L_25091446: 2732 edi = eax + 0x4; /* 0x25091446: lea edi, [eax + 4] */ 2733 L_25091449: 2734 eax = MEM32(edi); /* 0x25091449: mov eax, dword ptr [edi] */ 2735 /* cmp eax, ebx */ /* 0x2509144B: cmp eax, ebx */ 2736 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2738 _flag_k = FK_CMP; 2739 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509146B; /* 0x2509144D: je 0x2509146b */ 2740 L_2509144F: 2741 ecx = eax + (-0x1); /* 0x2509144F: lea ecx, [eax - 1] */ 2742 SET_LO8(eax, MEM8(ecx)); /* 0x25091452: mov al, byte ptr [ecx] */ 2743 /* test LO8(eax), LO8(eax) */ /* 0x25091454: test al, al */ 2744 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2745 _cf = 0; 2746 _flag_k = FK_NARROW(FK_TEST, 24); 2747 if (TEST_Z(_flag_a, _flag_b)) goto L_25091462; /* 0x25091456: je 0x25091462 */ 2748 L_25091458: 2749 /* cmp LO8(eax), 0xFFu */ /* 0x25091458: cmp al, 0xff */ 2750 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2752 _flag_k = FK_NARROW(FK_CMP, 24); 2753 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091462; /* 0x2509145A: je 0x25091462 */ 2754 L_2509145C: 2755 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2756 SET_LO8(eax, LO8(eax) - 1); /* 0x2509145C: dec al */ 2757 _flag_k = FK_NARROW(FK_DEC, 24); 2758 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2509145E: mov byte ptr [ecx], al */ 2759 goto L_2509146B; /* 0x25091460: jmp 0x2509146b */ 2760 L_25091462: 2761 PUSH32(esp, ecx); /* 0x25091462: push ecx */ 2762 RECOMP_ICALL(0x25137EECu); /* 0x25091463: call 0x25137eec */ /* not lifted */ 2763 RECOMP_FLAGS_IN(); 2764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2766 esp = esp + 4; /* 0x25091468: add esp, 4 */ 2767 _flag_k = FK_ADD; 2768 L_2509146B: 2769 eax = MEM32(ebp + 0xC); /* 0x2509146B: mov eax, dword ptr [ebp + 0xc] */ 2770 MEM32(edi) = ebx; /* 0x2509146E: mov dword ptr [edi], ebx */ 2771 MEM32(edi + 0x4) = ebx; /* 0x25091470: mov dword ptr [edi + 4], ebx */ 2772 MEM32(edi + 0x8) = ebx; /* 0x25091473: mov dword ptr [edi + 8], ebx */ 2773 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 2774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2775 edi = edi + 0x10u; /* 0x25091476: add edi, 0x10 */ 2776 _flag_k = FK_ADD; 2777 edx = edi + (-0x4); /* 0x25091479: lea edx, [edi - 4] */ 2778 /* cmp edx, eax */ /* 0x2509147C: cmp edx, eax */ 2779 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2781 _flag_k = FK_CMP; 2782 RECOMP_BACKEDGE(); 2783 if (CMP_NE(_flag_a, _flag_b)) goto L_25091449; /* 0x2509147E: jne 0x25091449 */ 2784 L_25091480: 2785 eax = MEM32(ebp + (-0x28)); /* 0x25091480: mov eax, dword ptr [ebp - 0x28] */ 2786 L_25091483: 2787 PUSH32(esp, eax); /* 0x25091483: push eax */ 2788 RECOMP_ICALL(0x25137EECu); /* 0x25091484: call 0x25137eec */ /* not lifted */ 2789 RECOMP_FLAGS_IN(); 2790 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2791 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2792 esp = esp + 4; /* 0x25091489: add esp, 4 */ 2793 _flag_k = FK_ADD; 2794 MEM32(ebp + (-0x28)) = ebx; /* 0x2509148C: mov dword ptr [ebp - 0x28], ebx */ 2795 MEM32(ebp + (-0x24)) = ebx; /* 0x2509148F: mov dword ptr [ebp - 0x24], ebx */ 2796 MEM32(ebp + (-0x20)) = ebx; /* 0x25091492: mov dword ptr [ebp - 0x20], ebx */ 2797 L_25091495: 2798 ecx = ebp + (-0x40); /* 0x25091495: lea ecx, [ebp - 0x40] */ 2799 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x25091498: mov byte ptr [ebp - 4], 0 */ 2800 RECOMP_ICALL(0x2510CF40u); /* 0x2509149C: call 0x2510cf40 */ /* not lifted */ 2801 RECOMP_FLAGS_IN(); 2802 ecx = ebp + (-0x84); /* 0x250914A1: lea ecx, [ebp - 0x84] */ 2803 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x250914A7: mov dword ptr [ebp - 4], 0xffffffff */ 2804 RECOMP_ICALL(MEM32(0x251514A0)); /* 0x250914AE: call dword ptr [0x251514a0] */ 2805 RECOMP_FLAGS_IN(); 2806 ecx = MEM32(ebp + (-0xC)); /* 0x250914B4: mov ecx, dword ptr [ebp - 0xc] */ 2807 edi = POP32_VAL(esp); /* 0x250914B7: pop edi */ 2808 eax = esi; /* 0x250914B8: mov eax, esi */ 2809 esi = POP32_VAL(esp); /* 0x250914BA: pop esi */ 2810 ebx = POP32_VAL(esp); /* 0x250914BB: pop ebx */ 2811 MEM32(FS_BASE + (0)) = ecx; /* 0x250914BC: mov dword ptr fs:[0], ecx */ 2812 esp = ebp; /* 0x250914C3: mov esp, ebp */ 2813 ebp = POP32_VAL(esp); /* 0x250914C5: pop ebp */ 2814 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x250914C6: ret 0x10 */ 2815 RECOMP_REGS_OUT(); 2816 } 2817 2818 void sub_250914D0(void) { 2819 int _fpu_cmp = 0; 2820 uint32_t _cf = 0; 2821 int _df = 1; 2822 uint32_t _flag_k = FK_NONE; 2823 uint32_t _flag_a = 0, _flag_b = 0; 2824 uint32_t _itail_tgt = 0; 2825 RECOMP_REGS_LOCALS 2826 RECOMP_ENTER(0x250914D0u); 2827 2828 L_250914D0: 2829 PUSH32(esp, esi); /* 0x250914D0: push esi */ 2830 esi = ecx; /* 0x250914D1: mov esi, ecx */ 2831 PUSH32(esp, edi); /* 0x250914D3: push edi */ 2832 edi = MEM32(esi + 0x24); /* 0x250914D4: mov edi, dword ptr [esi + 0x24] */ 2833 /* test edi, edi */ /* 0x250914D7: test edi, edi */ 2834 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2835 _cf = 0; 2836 _flag_k = FK_TEST; 2837 if (TEST_Z(_flag_a, _flag_b)) goto L_250914EB; /* 0x250914D9: je 0x250914eb */ 2838 L_250914DB: 2839 ecx = edi; /* 0x250914DB: mov ecx, edi */ 2840 RECOMP_ICALL(0x25085240u); /* 0x250914DD: call 0x25085240 */ /* not lifted */ 2841 RECOMP_FLAGS_IN(); 2842 PUSH32(esp, edi); /* 0x250914E2: push edi */ 2843 RECOMP_ICALL(0x25137EECu); /* 0x250914E3: call 0x25137eec */ /* not lifted */ 2844 RECOMP_FLAGS_IN(); 2845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2847 esp = esp + 4; /* 0x250914E8: add esp, 4 */ 2848 _flag_k = FK_ADD; 2849 L_250914EB: 2850 edi = MEM32(esi + 0x28); /* 0x250914EB: mov edi, dword ptr [esi + 0x28] */ 2851 /* test edi, edi */ /* 0x250914EE: test edi, edi */ 2852 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2853 _cf = 0; 2854 _flag_k = FK_TEST; 2855 MEM32(esi + 0x24) = 0; /* 0x250914F0: mov dword ptr [esi + 0x24], 0 */ 2856 if (TEST_Z(_flag_a, _flag_b)) goto L_25091509; /* 0x250914F7: je 0x25091509 */ 2857 L_250914F9: 2858 ecx = edi; /* 0x250914F9: mov ecx, edi */ 2859 RECOMP_ICALL(0x25091520u); /* 0x250914FB: call 0x25091520 */ /* not lifted */ 2860 RECOMP_FLAGS_IN(); 2861 PUSH32(esp, edi); /* 0x25091500: push edi */ 2862 RECOMP_ICALL(0x25137EECu); /* 0x25091501: call 0x25137eec */ /* not lifted */ 2863 RECOMP_FLAGS_IN(); 2864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2865 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2866 esp = esp + 4; /* 0x25091506: add esp, 4 */ 2867 _flag_k = FK_ADD; 2868 L_25091509: 2869 ecx = MEM32(esi + 0x2C); /* 0x25091509: mov ecx, dword ptr [esi + 0x2c] */ 2870 RECOMP_ICALL(0x250E6370u); /* 0x2509150C: call 0x250e6370 */ /* not lifted */ 2871 RECOMP_FLAGS_IN(); 2872 edi = POP32_VAL(esp); /* 0x25091511: pop edi */ 2873 MEM32(esi + 0x2C) = 0; /* 0x25091512: mov dword ptr [esi + 0x2c], 0 */ 2874 esi = POP32_VAL(esp); /* 0x25091519: pop esi */ 2875 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509151A: ret */ 2876 RECOMP_REGS_OUT(); 2877 } 2878 2879 void sub_25091520(void) { 2880 int _fpu_cmp = 0; 2881 uint32_t _cf = 0; 2882 int _df = 1; 2883 uint32_t _flag_k = FK_NONE; 2884 uint32_t _flag_a = 0, _flag_b = 0; 2885 uint32_t _itail_tgt = 0; 2886 RECOMP_REGS_LOCALS 2887 RECOMP_ENTER(0x25091520u); 2888 2889 L_25091520: 2890 PUSH32(esp, ebp); /* 0x25091520: push ebp */ 2891 ebp = esp; /* 0x25091521: mov ebp, esp */ 2892 PUSH32(esp, ecx); /* 0x25091523: push ecx */ 2893 PUSH32(esp, esi); /* 0x25091524: push esi */ 2894 PUSH32(esp, edi); /* 0x25091525: push edi */ 2895 esi = ecx; /* 0x25091526: mov esi, ecx */ 2896 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2897 edi = 0; /* 0x25091528: xor edi, edi */ 2898 _cf = 0; 2899 _flag_k = FK_TEST; 2900 L_2509152A: 2901 eax = MEM32(esi + 0x4); /* 0x2509152A: mov eax, dword ptr [esi + 4] */ 2902 /* test eax, eax */ /* 0x2509152D: test eax, eax */ 2903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2904 _cf = 0; 2905 _flag_k = FK_TEST; 2906 if (TEST_Z(_flag_a, _flag_b)) goto L_2509154C; /* 0x2509152F: je 0x2509154c */ 2907 L_25091531: 2908 ecx = MEM32(esi + 0x8); /* 0x25091531: mov ecx, dword ptr [esi + 8] */ 2909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2911 ecx = ecx - eax; /* 0x25091534: sub ecx, eax */ 2912 _flag_k = FK_CMP; 2913 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x25091536: sar ecx, 2 */ 2914 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2915 ecx = (uint32_t)((int32_t)ecx >> 2u); 2916 /* cmp edi, ecx */ /* 0x25091539: cmp edi, ecx */ 2917 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2918 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2919 _flag_k = FK_CMP; 2920 if (CMP_AE(_flag_a, _flag_b)) goto L_2509154C; /* 0x2509153B: jae 0x2509154c */ 2921 L_2509153D: 2922 edx = MEM32(eax + edi * 4); /* 0x2509153D: mov edx, dword ptr [eax + edi*4] */ 2923 PUSH32(esp, edx); /* 0x25091540: push edx */ 2924 RECOMP_ICALL(0x25137EECu); /* 0x25091541: call 0x25137eec */ /* not lifted */ 2925 RECOMP_FLAGS_IN(); 2926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2928 esp = esp + 4; /* 0x25091546: add esp, 4 */ 2929 _flag_k = FK_ADD; 2930 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2931 edi = edi + 1; /* 0x25091549: inc edi */ 2932 _flag_k = FK_INC; 2933 RECOMP_BACKEDGE(); 2934 goto L_2509152A; /* 0x2509154A: jmp 0x2509152a */ 2935 L_2509154C: 2936 eax = MEM32(esi + 0x4); /* 0x2509154C: mov eax, dword ptr [esi + 4] */ 2937 PUSH32(esp, eax); /* 0x2509154F: push eax */ 2938 MEM32(ebp + (-0x4)) = eax; /* 0x25091550: mov dword ptr [ebp - 4], eax */ 2939 RECOMP_ICALL(0x25137EECu); /* 0x25091553: call 0x25137eec */ /* not lifted */ 2940 RECOMP_FLAGS_IN(); 2941 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2943 esp = esp + 4; /* 0x25091558: add esp, 4 */ 2944 _flag_k = FK_ADD; 2945 edi = POP32_VAL(esp); /* 0x2509155B: pop edi */ 2946 MEM32(esi + 0x4) = 0; /* 0x2509155C: mov dword ptr [esi + 4], 0 */ 2947 MEM32(esi + 0x8) = 0; /* 0x25091563: mov dword ptr [esi + 8], 0 */ 2948 MEM32(esi + 0xC) = 0; /* 0x2509156A: mov dword ptr [esi + 0xc], 0 */ 2949 esi = POP32_VAL(esp); /* 0x25091571: pop esi */ 2950 esp = ebp; /* 0x25091572: mov esp, ebp */ 2951 ebp = POP32_VAL(esp); /* 0x25091574: pop ebp */ 2952 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091575: ret */ 2953 RECOMP_REGS_OUT(); 2954 } 2955 2956 void sub_25091580(void) { 2957 int _fpu_cmp = 0; 2958 uint32_t _cf = 0; 2959 int _df = 1; 2960 uint32_t _flag_k = FK_NONE; 2961 uint32_t _flag_a = 0, _flag_b = 0; 2962 uint32_t _itail_tgt = 0; 2963 RECOMP_REGS_LOCALS 2964 RECOMP_ENTER(0x25091580u); 2965 2966 L_25091580: 2967 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2968 eax = 0; /* 0x25091580: xor eax, eax */ 2969 _cf = 0; 2970 _flag_k = FK_TEST; 2971 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x25091582: mov byte ptr [ecx], al */ 2972 MEM32(ecx + 0x24) = eax; /* 0x25091584: mov dword ptr [ecx + 0x24], eax */ 2973 MEM32(ecx + 0x28) = eax; /* 0x25091587: mov dword ptr [ecx + 0x28], eax */ 2974 MEM32(ecx + 0x2C) = eax; /* 0x2509158A: mov dword ptr [ecx + 0x2c], eax */ 2975 MEM32(ecx + 0x3C) = eax; /* 0x2509158D: mov dword ptr [ecx + 0x3c], eax */ 2976 MEM32(ecx + 0x4C) = eax; /* 0x25091590: mov dword ptr [ecx + 0x4c], eax */ 2977 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091593: ret */ 2978 RECOMP_REGS_OUT(); 2979 } 2980 2981 void sub_250915A0(void) { 2982 int _fpu_cmp = 0; 2983 uint32_t _cf = 0; 2984 int _df = 1; 2985 uint32_t _flag_k = FK_NONE; 2986 uint32_t _flag_a = 0, _flag_b = 0; 2987 uint32_t _itail_tgt = 0; 2988 RECOMP_REGS_LOCALS 2989 RECOMP_ENTER(0x250915A0u); 2990 2991 L_250915A0: 2992 eax = ecx + 0x30; /* 0x250915A0: lea eax, [ecx + 0x30] */ 2993 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250915A3: ret */ 2994 RECOMP_REGS_OUT(); 2995 } 2996 2997 void sub_250915B0(void) { 2998 int _fpu_cmp = 0; 2999 uint32_t _cf = 0; 3000 int _df = 1; 3001 uint32_t _flag_k = FK_NONE; 3002 uint32_t _flag_a = 0, _flag_b = 0; 3003 uint32_t _itail_tgt = 0; 3004 RECOMP_REGS_LOCALS 3005 RECOMP_ENTER(0x250915B0u); 3006 3007 L_250915B0: 3008 fp_push(*(float*)&MEM32(ecx + 0x3C)); /* 0x250915B0: fld dword ptr [ecx + 0x3c] */ 3009 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250915B3: ret */ 3010 RECOMP_REGS_OUT(); 3011 } 3012 3013 void sub_250915C0(void) { 3014 int _fpu_cmp = 0; 3015 uint32_t _cf = 0; 3016 int _df = 1; 3017 uint32_t _flag_k = FK_NONE; 3018 uint32_t _flag_a = 0, _flag_b = 0; 3019 uint32_t _itail_tgt = 0; 3020 RECOMP_REGS_LOCALS 3021 RECOMP_ENTER(0x250915C0u); 3022 3023 L_250915C0: 3024 eax = ecx + 0x40; /* 0x250915C0: lea eax, [ecx + 0x40] */ 3025 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250915C3: ret */ 3026 RECOMP_REGS_OUT(); 3027 } 3028 3029 void sub_250915D0(void) { 3030 int _fpu_cmp = 0; 3031 uint32_t _cf = 0; 3032 int _df = 1; 3033 uint32_t _flag_k = FK_NONE; 3034 uint32_t _flag_a = 0, _flag_b = 0; 3035 uint32_t _itail_tgt = 0; 3036 RECOMP_REGS_LOCALS 3037 RECOMP_ENTER(0x250915D0u); 3038 3039 L_250915D0: 3040 fp_push(*(float*)&MEM32(ecx + 0x4C)); /* 0x250915D0: fld dword ptr [ecx + 0x4c] */ 3041 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250915D3: ret */ 3042 RECOMP_REGS_OUT(); 3043 } 3044 3045 void sub_250915E0(void) { 3046 int _fpu_cmp = 0; 3047 uint32_t _cf = 0; 3048 int _df = 1; 3049 uint32_t _flag_k = FK_NONE; 3050 uint32_t _flag_a = 0, _flag_b = 0; 3051 uint32_t _itail_tgt = 0; 3052 RECOMP_REGS_LOCALS 3053 RECOMP_ENTER(0x250915E0u); 3054 3055 L_250915E0: 3056 PUSH32(esp, ebp); /* 0x250915E0: push ebp */ 3057 ebp = esp; /* 0x250915E1: mov ebp, esp */ 3058 PUSH32(esp, ecx); /* 0x250915E3: push ecx */ 3059 PUSH32(esp, ebx); /* 0x250915E4: push ebx */ 3060 PUSH32(esp, esi); /* 0x250915E5: push esi */ 3061 PUSH32(esp, edi); /* 0x250915E6: push edi */ 3062 edi = ecx; /* 0x250915E7: mov edi, ecx */ 3063 edx = MEM32(edi + 0x8); /* 0x250915E9: mov edx, dword ptr [edi + 8] */ 3064 esi = MEM32(edi + 0x4); /* 0x250915EC: mov esi, dword ptr [edi + 4] */ 3065 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3066 ebx = 0; /* 0x250915EF: xor ebx, ebx */ 3067 _cf = 0; 3068 _flag_k = FK_TEST; 3069 /* cmp esi, edx */ /* 0x250915F1: cmp esi, edx */ 3070 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3072 _flag_k = FK_CMP; 3073 MEM32(ebp + (-0x4)) = edx; /* 0x250915F3: mov dword ptr [ebp - 4], edx */ 3074 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509162E; /* 0x250915F6: je 0x2509162e */ 3075 L_250915F8: 3076 eax = MEM32(esi + 0x4); /* 0x250915F8: mov eax, dword ptr [esi + 4] */ 3077 /* cmp eax, ebx */ /* 0x250915FB: cmp eax, ebx */ 3078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3080 _flag_k = FK_CMP; 3081 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509161E; /* 0x250915FD: je 0x2509161e */ 3082 L_250915FF: 3083 ecx = eax + (-0x1); /* 0x250915FF: lea ecx, [eax - 1] */ 3084 SET_LO8(eax, MEM8(ecx)); /* 0x25091602: mov al, byte ptr [ecx] */ 3085 /* cmp LO8(eax), LO8(ebx) */ /* 0x25091604: cmp al, bl */ 3086 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3088 _flag_k = FK_NARROW(FK_CMP, 24); 3089 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091612; /* 0x25091606: je 0x25091612 */ 3090 L_25091608: 3091 /* cmp LO8(eax), 0xFFu */ /* 0x25091608: cmp al, 0xff */ 3092 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3094 _flag_k = FK_NARROW(FK_CMP, 24); 3095 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091612; /* 0x2509160A: je 0x25091612 */ 3096 L_2509160C: 3097 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3098 SET_LO8(eax, LO8(eax) - 1); /* 0x2509160C: dec al */ 3099 _flag_k = FK_NARROW(FK_DEC, 24); 3100 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2509160E: mov byte ptr [ecx], al */ 3101 goto L_2509161E; /* 0x25091610: jmp 0x2509161e */ 3102 L_25091612: 3103 PUSH32(esp, ecx); /* 0x25091612: push ecx */ 3104 RECOMP_ICALL(0x25137EECu); /* 0x25091613: call 0x25137eec */ /* not lifted */ 3105 RECOMP_FLAGS_IN(); 3106 edx = MEM32(ebp + (-0x4)); /* 0x25091618: mov edx, dword ptr [ebp - 4] */ 3107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3109 esp = esp + 4; /* 0x2509161B: add esp, 4 */ 3110 _flag_k = FK_ADD; 3111 L_2509161E: 3112 MEM32(esi + 0x4) = ebx; /* 0x2509161E: mov dword ptr [esi + 4], ebx */ 3113 MEM32(esi + 0x8) = ebx; /* 0x25091621: mov dword ptr [esi + 8], ebx */ 3114 MEM32(esi + 0xC) = ebx; /* 0x25091624: mov dword ptr [esi + 0xc], ebx */ 3115 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3117 esi = esi + 0x10u; /* 0x25091627: add esi, 0x10 */ 3118 _flag_k = FK_ADD; 3119 /* cmp esi, edx */ /* 0x2509162A: cmp esi, edx */ 3120 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3122 _flag_k = FK_CMP; 3123 RECOMP_BACKEDGE(); 3124 if (CMP_NE(_flag_a, _flag_b)) goto L_250915F8; /* 0x2509162C: jne 0x250915f8 */ 3125 L_2509162E: 3126 eax = MEM32(edi + 0x4); /* 0x2509162E: mov eax, dword ptr [edi + 4] */ 3127 PUSH32(esp, eax); /* 0x25091631: push eax */ 3128 RECOMP_ICALL(0x25137EECu); /* 0x25091632: call 0x25137eec */ /* not lifted */ 3129 RECOMP_FLAGS_IN(); 3130 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3132 esp = esp + 4; /* 0x25091637: add esp, 4 */ 3133 _flag_k = FK_ADD; 3134 MEM32(edi + 0x4) = ebx; /* 0x2509163A: mov dword ptr [edi + 4], ebx */ 3135 MEM32(edi + 0x8) = ebx; /* 0x2509163D: mov dword ptr [edi + 8], ebx */ 3136 MEM32(edi + 0xC) = ebx; /* 0x25091640: mov dword ptr [edi + 0xc], ebx */ 3137 edi = POP32_VAL(esp); /* 0x25091643: pop edi */ 3138 esi = POP32_VAL(esp); /* 0x25091644: pop esi */ 3139 ebx = POP32_VAL(esp); /* 0x25091645: pop ebx */ 3140 esp = ebp; /* 0x25091646: mov esp, ebp */ 3141 ebp = POP32_VAL(esp); /* 0x25091648: pop ebp */ 3142 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091649: ret */ 3143 RECOMP_REGS_OUT(); 3144 } 3145 3146 void sub_250915F8(void) { 3147 int _fpu_cmp = 0; 3148 uint32_t _cf = 0; 3149 int _df = 1; 3150 uint32_t _flag_k = FK_NONE; 3151 uint32_t _flag_a = 0, _flag_b = 0; 3152 uint32_t _itail_tgt = 0; 3153 RECOMP_REGS_LOCALS 3154 RECOMP_ENTER(0x250915F8u); 3155 3156 L_250915F8: 3157 eax = MEM32(esi + 0x4); /* 0x250915F8: mov eax, dword ptr [esi + 4] */ 3158 /* cmp eax, ebx */ /* 0x250915FB: cmp eax, ebx */ 3159 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3161 _flag_k = FK_CMP; 3162 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509161E; /* 0x250915FD: je 0x2509161e */ 3163 L_250915FF: 3164 ecx = eax + (-0x1); /* 0x250915FF: lea ecx, [eax - 1] */ 3165 SET_LO8(eax, MEM8(ecx)); /* 0x25091602: mov al, byte ptr [ecx] */ 3166 /* cmp LO8(eax), LO8(ebx) */ /* 0x25091604: cmp al, bl */ 3167 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3169 _flag_k = FK_NARROW(FK_CMP, 24); 3170 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091612; /* 0x25091606: je 0x25091612 */ 3171 L_25091608: 3172 /* cmp LO8(eax), 0xFFu */ /* 0x25091608: cmp al, 0xff */ 3173 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3175 _flag_k = FK_NARROW(FK_CMP, 24); 3176 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091612; /* 0x2509160A: je 0x25091612 */ 3177 L_2509160C: 3178 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3179 SET_LO8(eax, LO8(eax) - 1); /* 0x2509160C: dec al */ 3180 _flag_k = FK_NARROW(FK_DEC, 24); 3181 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2509160E: mov byte ptr [ecx], al */ 3182 goto L_2509161E; /* 0x25091610: jmp 0x2509161e */ 3183 L_25091612: 3184 PUSH32(esp, ecx); /* 0x25091612: push ecx */ 3185 RECOMP_ICALL(0x25137EECu); /* 0x25091613: call 0x25137eec */ /* not lifted */ 3186 RECOMP_FLAGS_IN(); 3187 edx = MEM32(ebp + (-0x4)); /* 0x25091618: mov edx, dword ptr [ebp - 4] */ 3188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3190 esp = esp + 4; /* 0x2509161B: add esp, 4 */ 3191 _flag_k = FK_ADD; 3192 L_2509161E: 3193 MEM32(esi + 0x4) = ebx; /* 0x2509161E: mov dword ptr [esi + 4], ebx */ 3194 MEM32(esi + 0x8) = ebx; /* 0x25091621: mov dword ptr [esi + 8], ebx */ 3195 MEM32(esi + 0xC) = ebx; /* 0x25091624: mov dword ptr [esi + 0xc], ebx */ 3196 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3197 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3198 esi = esi + 0x10u; /* 0x25091627: add esi, 0x10 */ 3199 _flag_k = FK_ADD; 3200 /* cmp esi, edx */ /* 0x2509162A: cmp esi, edx */ 3201 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3203 _flag_k = FK_CMP; 3204 RECOMP_BACKEDGE(); 3205 if (CMP_NE(_flag_a, _flag_b)) goto L_250915F8; /* 0x2509162C: jne 0x250915f8 */ 3206 L_2509162E: 3207 eax = MEM32(edi + 0x4); /* 0x2509162E: mov eax, dword ptr [edi + 4] */ 3208 PUSH32(esp, eax); /* 0x25091631: push eax */ 3209 RECOMP_ICALL(0x25137EECu); /* 0x25091632: call 0x25137eec */ /* not lifted */ 3210 RECOMP_FLAGS_IN(); 3211 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3213 esp = esp + 4; /* 0x25091637: add esp, 4 */ 3214 _flag_k = FK_ADD; 3215 MEM32(edi + 0x4) = ebx; /* 0x2509163A: mov dword ptr [edi + 4], ebx */ 3216 MEM32(edi + 0x8) = ebx; /* 0x2509163D: mov dword ptr [edi + 8], ebx */ 3217 MEM32(edi + 0xC) = ebx; /* 0x25091640: mov dword ptr [edi + 0xc], ebx */ 3218 edi = POP32_VAL(esp); /* 0x25091643: pop edi */ 3219 esi = POP32_VAL(esp); /* 0x25091644: pop esi */ 3220 ebx = POP32_VAL(esp); /* 0x25091645: pop ebx */ 3221 esp = ebp; /* 0x25091646: mov esp, ebp */ 3222 ebp = POP32_VAL(esp); /* 0x25091648: pop ebp */ 3223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091649: ret */ 3224 RECOMP_REGS_OUT(); 3225 } 3226 3227 void sub_2509161E(void) { 3228 int _fpu_cmp = 0; 3229 uint32_t _cf = 0; 3230 int _df = 1; 3231 uint32_t _flag_k = FK_NONE; 3232 uint32_t _flag_a = 0, _flag_b = 0; 3233 uint32_t _itail_tgt = 0; 3234 RECOMP_REGS_LOCALS 3235 RECOMP_ENTER(0x2509161Eu); 3236 3237 goto L_2509161E; 3238 L_250915F8: 3239 eax = MEM32(esi + 0x4); /* 0x250915F8: mov eax, dword ptr [esi + 4] */ 3240 /* cmp eax, ebx */ /* 0x250915FB: cmp eax, ebx */ 3241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3243 _flag_k = FK_CMP; 3244 if (CMP_EQ(_flag_a, _flag_b)) goto L_2509161E; /* 0x250915FD: je 0x2509161e */ 3245 L_250915FF: 3246 ecx = eax + (-0x1); /* 0x250915FF: lea ecx, [eax - 1] */ 3247 SET_LO8(eax, MEM8(ecx)); /* 0x25091602: mov al, byte ptr [ecx] */ 3248 /* cmp LO8(eax), LO8(ebx) */ /* 0x25091604: cmp al, bl */ 3249 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3251 _flag_k = FK_NARROW(FK_CMP, 24); 3252 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091612; /* 0x25091606: je 0x25091612 */ 3253 L_25091608: 3254 /* cmp LO8(eax), 0xFFu */ /* 0x25091608: cmp al, 0xff */ 3255 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3257 _flag_k = FK_NARROW(FK_CMP, 24); 3258 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091612; /* 0x2509160A: je 0x25091612 */ 3259 L_2509160C: 3260 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3261 SET_LO8(eax, LO8(eax) - 1); /* 0x2509160C: dec al */ 3262 _flag_k = FK_NARROW(FK_DEC, 24); 3263 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x2509160E: mov byte ptr [ecx], al */ 3264 goto L_2509161E; /* 0x25091610: jmp 0x2509161e */ 3265 L_25091612: 3266 PUSH32(esp, ecx); /* 0x25091612: push ecx */ 3267 RECOMP_ICALL(0x25137EECu); /* 0x25091613: call 0x25137eec */ /* not lifted */ 3268 RECOMP_FLAGS_IN(); 3269 edx = MEM32(ebp + (-0x4)); /* 0x25091618: mov edx, dword ptr [ebp - 4] */ 3270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3272 esp = esp + 4; /* 0x2509161B: add esp, 4 */ 3273 _flag_k = FK_ADD; 3274 L_2509161E: 3275 MEM32(esi + 0x4) = ebx; /* 0x2509161E: mov dword ptr [esi + 4], ebx */ 3276 MEM32(esi + 0x8) = ebx; /* 0x25091621: mov dword ptr [esi + 8], ebx */ 3277 MEM32(esi + 0xC) = ebx; /* 0x25091624: mov dword ptr [esi + 0xc], ebx */ 3278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3280 esi = esi + 0x10u; /* 0x25091627: add esi, 0x10 */ 3281 _flag_k = FK_ADD; 3282 /* cmp esi, edx */ /* 0x2509162A: cmp esi, edx */ 3283 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 3284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3285 _flag_k = FK_CMP; 3286 RECOMP_BACKEDGE(); 3287 if (CMP_NE(_flag_a, _flag_b)) goto L_250915F8; /* 0x2509162C: jne 0x250915f8 */ 3288 L_2509162E: 3289 eax = MEM32(edi + 0x4); /* 0x2509162E: mov eax, dword ptr [edi + 4] */ 3290 PUSH32(esp, eax); /* 0x25091631: push eax */ 3291 RECOMP_ICALL(0x25137EECu); /* 0x25091632: call 0x25137eec */ /* not lifted */ 3292 RECOMP_FLAGS_IN(); 3293 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3295 esp = esp + 4; /* 0x25091637: add esp, 4 */ 3296 _flag_k = FK_ADD; 3297 MEM32(edi + 0x4) = ebx; /* 0x2509163A: mov dword ptr [edi + 4], ebx */ 3298 MEM32(edi + 0x8) = ebx; /* 0x2509163D: mov dword ptr [edi + 8], ebx */ 3299 MEM32(edi + 0xC) = ebx; /* 0x25091640: mov dword ptr [edi + 0xc], ebx */ 3300 edi = POP32_VAL(esp); /* 0x25091643: pop edi */ 3301 esi = POP32_VAL(esp); /* 0x25091644: pop esi */ 3302 ebx = POP32_VAL(esp); /* 0x25091645: pop ebx */ 3303 esp = ebp; /* 0x25091646: mov esp, ebp */ 3304 ebp = POP32_VAL(esp); /* 0x25091648: pop ebp */ 3305 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091649: ret */ 3306 RECOMP_REGS_OUT(); 3307 } 3308 3309 void sub_25091650(void) { 3310 int _fpu_cmp = 0; 3311 uint32_t _cf = 0; 3312 int _df = 1; 3313 uint32_t _flag_k = FK_NONE; 3314 uint32_t _flag_a = 0, _flag_b = 0; 3315 uint32_t _itail_tgt = 0; 3316 RECOMP_REGS_LOCALS 3317 RECOMP_ENTER(0x25091650u); 3318 3319 L_25091650: 3320 MEM32(ecx) = 0x25155B00u; /* 0x25091650: mov dword ptr [ecx], 0x25155b00 */ 3321 MEM32(ecx + 0x18) = 0x25155AECu; /* 0x25091656: mov dword ptr [ecx + 0x18], 0x25155aec */ 3322 goto L_2509F2E0; /* 0x2509165D: jmp 0x2509f2e0 */ 3323 L_2509F2E0: 3324 PUSH32(esp, ebx); /* 0x2509F2E0: push ebx */ 3325 PUSH32(esp, esi); /* 0x2509F2E1: push esi */ 3326 esi = ecx; /* 0x2509F2E2: mov esi, ecx */ 3327 eax = MEM32(esi + 0x24); /* 0x2509F2E4: mov eax, dword ptr [esi + 0x24] */ 3328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3329 ebx = 0; /* 0x2509F2E7: xor ebx, ebx */ 3330 _cf = 0; 3331 _flag_k = FK_TEST; 3332 /* test eax, eax */ /* 0x2509F2E9: test eax, eax */ 3333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3334 _cf = 0; 3335 _flag_k = FK_TEST; 3336 MEM32(esi) = 0x251561CCu; /* 0x2509F2EB: mov dword ptr [esi], 0x251561cc */ 3337 MEM32(esi + 0x18) = 0x251561B8u; /* 0x2509F2F1: mov dword ptr [esi + 0x18], 0x251561b8 */ 3338 if (TEST_LE(_flag_a, _flag_b)) goto L_2509F326; /* 0x2509F2F8: jle 0x2509f326 */ 3339 L_2509F2FA: 3340 PUSH32(esp, edi); /* 0x2509F2FA: push edi */ 3341 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3342 edi = 0; /* 0x2509F2FB: xor edi, edi */ 3343 _cf = 0; 3344 _flag_k = FK_TEST; 3345 L_2509F2FD: 3346 eax = MEM32(esi + 0x28); /* 0x2509F2FD: mov eax, dword ptr [esi + 0x28] */ 3347 ecx = MEM32(eax + edi + 0x4); /* 0x2509F300: mov ecx, dword ptr [eax + edi + 4] */ 3348 PUSH32(esp, ecx); /* 0x2509F304: push ecx */ 3349 RECOMP_ICALL(0x25137EECu); /* 0x2509F305: call 0x25137eec */ /* not lifted */ 3350 RECOMP_FLAGS_IN(); 3351 edx = MEM32(esi + 0x28); /* 0x2509F30A: mov edx, dword ptr [esi + 0x28] */ 3352 eax = MEM32(edx + edi + 0xC); /* 0x2509F30D: mov eax, dword ptr [edx + edi + 0xc] */ 3353 PUSH32(esp, eax); /* 0x2509F311: push eax */ 3354 RECOMP_ICALL(0x25137EECu); /* 0x2509F312: call 0x25137eec */ /* not lifted */ 3355 RECOMP_FLAGS_IN(); 3356 eax = MEM32(esi + 0x24); /* 0x2509F317: mov eax, dword ptr [esi + 0x24] */ 3357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3359 esp = esp + 8; /* 0x2509F31A: add esp, 8 */ 3360 _flag_k = FK_ADD; 3361 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3362 ebx = ebx + 1; /* 0x2509F31D: inc ebx */ 3363 _flag_k = FK_INC; 3364 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 3365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3366 edi = edi + 0x10u; /* 0x2509F31E: add edi, 0x10 */ 3367 _flag_k = FK_ADD; 3368 /* cmp ebx, eax */ /* 0x2509F321: cmp ebx, eax */ 3369 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3371 _flag_k = FK_CMP; 3372 RECOMP_BACKEDGE(); 3373 if (CMP_L(_flag_a, _flag_b)) goto L_2509F2FD; /* 0x2509F323: jl 0x2509f2fd */ 3374 L_2509F325: 3375 edi = POP32_VAL(esp); /* 0x2509F325: pop edi */ 3376 L_2509F326: 3377 ecx = MEM32(esi + 0x28); /* 0x2509F326: mov ecx, dword ptr [esi + 0x28] */ 3378 PUSH32(esp, ecx); /* 0x2509F329: push ecx */ 3379 RECOMP_ICALL(0x25137EECu); /* 0x2509F32A: call 0x25137eec */ /* not lifted */ 3380 RECOMP_FLAGS_IN(); 3381 edx = MEM32(0x251515B4); /* 0x2509F32F: mov edx, dword ptr [0x251515b4] */ 3382 MEM32(esi) = edx; /* 0x2509F335: mov dword ptr [esi], edx */ 3383 eax = MEM32(0x251515B8); /* 0x2509F337: mov eax, dword ptr [0x251515b8] */ 3384 MEM32(esi + 0x18) = eax; /* 0x2509F33C: mov dword ptr [esi + 0x18], eax */ 3385 ecx = esi + 0x18; /* 0x2509F33F: lea ecx, [esi + 0x18] */ 3386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3388 esp = esp + 4; /* 0x2509F342: add esp, 4 */ 3389 _flag_k = FK_ADD; 3390 eax = esi; /* 0x2509F345: mov eax, esi */ 3391 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3392 _cf = (eax) != 0; 3393 eax = (uint32_t)(-(int32_t)eax); /* 0x2509F347: neg eax */ 3394 _flag_k = FK_CMP; 3395 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2509F349: sbb eax, eax */ 3396 eax = _sc ? 0xFFFFFFFFu : 0; 3397 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3398 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3400 eax = eax & ecx; /* 0x2509F34B: and eax, ecx */ 3401 _cf = 0; 3402 _flag_k = FK_TEST; 3403 ecx = MEM32(0x251515BC); /* 0x2509F34D: mov ecx, dword ptr [0x251515bc] */ 3404 MEM32(eax) = ecx; /* 0x2509F353: mov dword ptr [eax], ecx */ 3405 ecx = esi; /* 0x2509F355: mov ecx, esi */ 3406 RECOMP_ICALL(MEM32(0x251514B4)); /* 0x2509F357: call dword ptr [0x251514b4] */ 3407 RECOMP_FLAGS_IN(); 3408 esi = POP32_VAL(esp); /* 0x2509F35D: pop esi */ 3409 ebx = POP32_VAL(esp); /* 0x2509F35E: pop ebx */ 3410 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509F35F: ret */ 3411 RECOMP_REGS_OUT(); 3412 } 3413 3414 void sub_25091670(void) { 3415 int _fpu_cmp = 0; 3416 uint32_t _cf = 0; 3417 int _df = 1; 3418 uint32_t _flag_k = FK_NONE; 3419 uint32_t _flag_a = 0, _flag_b = 0; 3420 uint32_t _itail_tgt = 0; 3421 RECOMP_REGS_LOCALS 3422 RECOMP_ENTER(0x25091670u); 3423 3424 L_25091670: 3425 PUSH32(esp, ebp); /* 0x25091670: push ebp */ 3426 ebp = esp; /* 0x25091671: mov ebp, esp */ 3427 PUSH32(esp, ebx); /* 0x25091673: push ebx */ 3428 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x25091674: mov bl, byte ptr [ebp + 8] */ 3429 /* test LO8(ebx), 2 */ /* 0x25091677: test bl, 2 */ 3430 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3431 _cf = 0; 3432 _flag_k = FK_NARROW(FK_TEST, 24); 3433 PUSH32(esp, esi); /* 0x2509167A: push esi */ 3434 esi = ecx; /* 0x2509167B: mov esi, ecx */ 3435 if (TEST_Z(_flag_a, _flag_b)) goto L_250916AB; /* 0x2509167D: je 0x250916ab */ 3436 L_2509167F: 3437 eax = MEM32(esi + (-0x4)); /* 0x2509167F: mov eax, dword ptr [esi - 4] */ 3438 PUSH32(esp, edi); /* 0x25091682: push edi */ 3439 PUSH32(esp, 0x25091650u); /* 0x25091683: push 0x25091650 */ 3440 edi = esi + (-0x4); /* 0x25091688: lea edi, [esi - 4] */ 3441 PUSH32(esp, eax); /* 0x2509168B: push eax */ 3442 PUSH32(esp, 0x2Cu); /* 0x2509168C: push 0x2c */ 3443 PUSH32(esp, esi); /* 0x2509168E: push esi */ 3444 RECOMP_ICALL(0x25137F92u); /* 0x2509168F: call 0x25137f92 */ /* not lifted */ 3445 RECOMP_FLAGS_IN(); 3446 /* test LO8(ebx), 1 */ /* 0x25091694: test bl, 1 */ 3447 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3448 _cf = 0; 3449 _flag_k = FK_NARROW(FK_TEST, 24); 3450 if (TEST_Z(_flag_a, _flag_b)) goto L_250916A2; /* 0x25091697: je 0x250916a2 */ 3451 L_25091699: 3452 PUSH32(esp, edi); /* 0x25091699: push edi */ 3453 RECOMP_ICALL(0x25137EECu); /* 0x2509169A: call 0x25137eec */ /* not lifted */ 3454 RECOMP_FLAGS_IN(); 3455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3457 esp = esp + 4; /* 0x2509169F: add esp, 4 */ 3458 _flag_k = FK_ADD; 3459 L_250916A2: 3460 eax = edi; /* 0x250916A2: mov eax, edi */ 3461 edi = POP32_VAL(esp); /* 0x250916A4: pop edi */ 3462 esi = POP32_VAL(esp); /* 0x250916A5: pop esi */ 3463 ebx = POP32_VAL(esp); /* 0x250916A6: pop ebx */ 3464 ebp = POP32_VAL(esp); /* 0x250916A7: pop ebp */ 3465 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250916A8: ret 4 */ 3466 L_250916AB: 3467 ecx = esi; /* 0x250916AB: mov ecx, esi */ 3468 RECOMP_ICALL(0x25091650u); /* 0x250916AD: call 0x25091650 */ /* not lifted */ 3469 RECOMP_FLAGS_IN(); 3470 /* test LO8(ebx), 1 */ /* 0x250916B2: test bl, 1 */ 3471 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3472 _cf = 0; 3473 _flag_k = FK_NARROW(FK_TEST, 24); 3474 if (TEST_Z(_flag_a, _flag_b)) goto L_250916C0; /* 0x250916B5: je 0x250916c0 */ 3475 L_250916B7: 3476 PUSH32(esp, esi); /* 0x250916B7: push esi */ 3477 RECOMP_ICALL(0x25137EECu); /* 0x250916B8: call 0x25137eec */ /* not lifted */ 3478 RECOMP_FLAGS_IN(); 3479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3481 esp = esp + 4; /* 0x250916BD: add esp, 4 */ 3482 _flag_k = FK_ADD; 3483 L_250916C0: 3484 eax = esi; /* 0x250916C0: mov eax, esi */ 3485 esi = POP32_VAL(esp); /* 0x250916C2: pop esi */ 3486 ebx = POP32_VAL(esp); /* 0x250916C3: pop ebx */ 3487 ebp = POP32_VAL(esp); /* 0x250916C4: pop ebp */ 3488 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x250916C5: ret 4 */ 3489 RECOMP_REGS_OUT(); 3490 } 3491 3492 void sub_250916D0(void) { 3493 int _fpu_cmp = 0; 3494 uint32_t _cf = 0; 3495 int _df = 1; 3496 uint32_t _flag_k = FK_NONE; 3497 uint32_t _flag_a = 0, _flag_b = 0; 3498 uint32_t _itail_tgt = 0; 3499 RECOMP_REGS_LOCALS 3500 RECOMP_ENTER(0x250916D0u); 3501 3502 L_250916D0: 3503 MEM32(ecx) = 0x25155B44u; /* 0x250916D0: mov dword ptr [ecx], 0x25155b44 */ 3504 MEM32(ecx + 0x18) = 0x25155B30u; /* 0x250916D6: mov dword ptr [ecx + 0x18], 0x25155b30 */ 3505 goto L_2509F2E0; /* 0x250916DD: jmp 0x2509f2e0 */ 3506 L_2509F2E0: 3507 PUSH32(esp, ebx); /* 0x2509F2E0: push ebx */ 3508 PUSH32(esp, esi); /* 0x2509F2E1: push esi */ 3509 esi = ecx; /* 0x2509F2E2: mov esi, ecx */ 3510 eax = MEM32(esi + 0x24); /* 0x2509F2E4: mov eax, dword ptr [esi + 0x24] */ 3511 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3512 ebx = 0; /* 0x2509F2E7: xor ebx, ebx */ 3513 _cf = 0; 3514 _flag_k = FK_TEST; 3515 /* test eax, eax */ /* 0x2509F2E9: test eax, eax */ 3516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3517 _cf = 0; 3518 _flag_k = FK_TEST; 3519 MEM32(esi) = 0x251561CCu; /* 0x2509F2EB: mov dword ptr [esi], 0x251561cc */ 3520 MEM32(esi + 0x18) = 0x251561B8u; /* 0x2509F2F1: mov dword ptr [esi + 0x18], 0x251561b8 */ 3521 if (TEST_LE(_flag_a, _flag_b)) goto L_2509F326; /* 0x2509F2F8: jle 0x2509f326 */ 3522 L_2509F2FA: 3523 PUSH32(esp, edi); /* 0x2509F2FA: push edi */ 3524 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3525 edi = 0; /* 0x2509F2FB: xor edi, edi */ 3526 _cf = 0; 3527 _flag_k = FK_TEST; 3528 L_2509F2FD: 3529 eax = MEM32(esi + 0x28); /* 0x2509F2FD: mov eax, dword ptr [esi + 0x28] */ 3530 ecx = MEM32(eax + edi + 0x4); /* 0x2509F300: mov ecx, dword ptr [eax + edi + 4] */ 3531 PUSH32(esp, ecx); /* 0x2509F304: push ecx */ 3532 RECOMP_ICALL(0x25137EECu); /* 0x2509F305: call 0x25137eec */ /* not lifted */ 3533 RECOMP_FLAGS_IN(); 3534 edx = MEM32(esi + 0x28); /* 0x2509F30A: mov edx, dword ptr [esi + 0x28] */ 3535 eax = MEM32(edx + edi + 0xC); /* 0x2509F30D: mov eax, dword ptr [edx + edi + 0xc] */ 3536 PUSH32(esp, eax); /* 0x2509F311: push eax */ 3537 RECOMP_ICALL(0x25137EECu); /* 0x2509F312: call 0x25137eec */ /* not lifted */ 3538 RECOMP_FLAGS_IN(); 3539 eax = MEM32(esi + 0x24); /* 0x2509F317: mov eax, dword ptr [esi + 0x24] */ 3540 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3541 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3542 esp = esp + 8; /* 0x2509F31A: add esp, 8 */ 3543 _flag_k = FK_ADD; 3544 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3545 ebx = ebx + 1; /* 0x2509F31D: inc ebx */ 3546 _flag_k = FK_INC; 3547 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 3548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3549 edi = edi + 0x10u; /* 0x2509F31E: add edi, 0x10 */ 3550 _flag_k = FK_ADD; 3551 /* cmp ebx, eax */ /* 0x2509F321: cmp ebx, eax */ 3552 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3554 _flag_k = FK_CMP; 3555 RECOMP_BACKEDGE(); 3556 if (CMP_L(_flag_a, _flag_b)) goto L_2509F2FD; /* 0x2509F323: jl 0x2509f2fd */ 3557 L_2509F325: 3558 edi = POP32_VAL(esp); /* 0x2509F325: pop edi */ 3559 L_2509F326: 3560 ecx = MEM32(esi + 0x28); /* 0x2509F326: mov ecx, dword ptr [esi + 0x28] */ 3561 PUSH32(esp, ecx); /* 0x2509F329: push ecx */ 3562 RECOMP_ICALL(0x25137EECu); /* 0x2509F32A: call 0x25137eec */ /* not lifted */ 3563 RECOMP_FLAGS_IN(); 3564 edx = MEM32(0x251515B4); /* 0x2509F32F: mov edx, dword ptr [0x251515b4] */ 3565 MEM32(esi) = edx; /* 0x2509F335: mov dword ptr [esi], edx */ 3566 eax = MEM32(0x251515B8); /* 0x2509F337: mov eax, dword ptr [0x251515b8] */ 3567 MEM32(esi + 0x18) = eax; /* 0x2509F33C: mov dword ptr [esi + 0x18], eax */ 3568 ecx = esi + 0x18; /* 0x2509F33F: lea ecx, [esi + 0x18] */ 3569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3571 esp = esp + 4; /* 0x2509F342: add esp, 4 */ 3572 _flag_k = FK_ADD; 3573 eax = esi; /* 0x2509F345: mov eax, esi */ 3574 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3575 _cf = (eax) != 0; 3576 eax = (uint32_t)(-(int32_t)eax); /* 0x2509F347: neg eax */ 3577 _flag_k = FK_CMP; 3578 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x2509F349: sbb eax, eax */ 3579 eax = _sc ? 0xFFFFFFFFu : 0; 3580 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3581 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3583 eax = eax & ecx; /* 0x2509F34B: and eax, ecx */ 3584 _cf = 0; 3585 _flag_k = FK_TEST; 3586 ecx = MEM32(0x251515BC); /* 0x2509F34D: mov ecx, dword ptr [0x251515bc] */ 3587 MEM32(eax) = ecx; /* 0x2509F353: mov dword ptr [eax], ecx */ 3588 ecx = esi; /* 0x2509F355: mov ecx, esi */ 3589 RECOMP_ICALL(MEM32(0x251514B4)); /* 0x2509F357: call dword ptr [0x251514b4] */ 3590 RECOMP_FLAGS_IN(); 3591 esi = POP32_VAL(esp); /* 0x2509F35D: pop esi */ 3592 ebx = POP32_VAL(esp); /* 0x2509F35E: pop ebx */ 3593 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2509F35F: ret */ 3594 RECOMP_REGS_OUT(); 3595 } 3596 3597 void sub_250916F0(void) { 3598 int _fpu_cmp = 0; 3599 uint32_t _cf = 0; 3600 int _df = 1; 3601 uint32_t _flag_k = FK_NONE; 3602 uint32_t _flag_a = 0, _flag_b = 0; 3603 uint32_t _itail_tgt = 0; 3604 RECOMP_REGS_LOCALS 3605 RECOMP_ENTER(0x250916F0u); 3606 3607 L_250916F0: 3608 PUSH32(esp, ebp); /* 0x250916F0: push ebp */ 3609 ebp = esp; /* 0x250916F1: mov ebp, esp */ 3610 PUSH32(esp, ebx); /* 0x250916F3: push ebx */ 3611 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x250916F4: mov bl, byte ptr [ebp + 8] */ 3612 /* test LO8(ebx), 2 */ /* 0x250916F7: test bl, 2 */ 3613 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3614 _cf = 0; 3615 _flag_k = FK_NARROW(FK_TEST, 24); 3616 PUSH32(esp, esi); /* 0x250916FA: push esi */ 3617 esi = ecx; /* 0x250916FB: mov esi, ecx */ 3618 if (TEST_Z(_flag_a, _flag_b)) goto L_2509172B; /* 0x250916FD: je 0x2509172b */ 3619 L_250916FF: 3620 eax = MEM32(esi + (-0x4)); /* 0x250916FF: mov eax, dword ptr [esi - 4] */ 3621 PUSH32(esp, edi); /* 0x25091702: push edi */ 3622 PUSH32(esp, 0x250916D0u); /* 0x25091703: push 0x250916d0 */ 3623 edi = esi + (-0x4); /* 0x25091708: lea edi, [esi - 4] */ 3624 PUSH32(esp, eax); /* 0x2509170B: push eax */ 3625 PUSH32(esp, 0x2Cu); /* 0x2509170C: push 0x2c */ 3626 PUSH32(esp, esi); /* 0x2509170E: push esi */ 3627 RECOMP_ICALL(0x25137F92u); /* 0x2509170F: call 0x25137f92 */ /* not lifted */ 3628 RECOMP_FLAGS_IN(); 3629 /* test LO8(ebx), 1 */ /* 0x25091714: test bl, 1 */ 3630 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3631 _cf = 0; 3632 _flag_k = FK_NARROW(FK_TEST, 24); 3633 if (TEST_Z(_flag_a, _flag_b)) goto L_25091722; /* 0x25091717: je 0x25091722 */ 3634 L_25091719: 3635 PUSH32(esp, edi); /* 0x25091719: push edi */ 3636 RECOMP_ICALL(0x25137EECu); /* 0x2509171A: call 0x25137eec */ /* not lifted */ 3637 RECOMP_FLAGS_IN(); 3638 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3640 esp = esp + 4; /* 0x2509171F: add esp, 4 */ 3641 _flag_k = FK_ADD; 3642 L_25091722: 3643 eax = edi; /* 0x25091722: mov eax, edi */ 3644 edi = POP32_VAL(esp); /* 0x25091724: pop edi */ 3645 esi = POP32_VAL(esp); /* 0x25091725: pop esi */ 3646 ebx = POP32_VAL(esp); /* 0x25091726: pop ebx */ 3647 ebp = POP32_VAL(esp); /* 0x25091727: pop ebp */ 3648 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25091728: ret 4 */ 3649 L_2509172B: 3650 ecx = esi; /* 0x2509172B: mov ecx, esi */ 3651 RECOMP_ICALL(0x250916D0u); /* 0x2509172D: call 0x250916d0 */ /* not lifted */ 3652 RECOMP_FLAGS_IN(); 3653 /* test LO8(ebx), 1 */ /* 0x25091732: test bl, 1 */ 3654 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3655 _cf = 0; 3656 _flag_k = FK_NARROW(FK_TEST, 24); 3657 if (TEST_Z(_flag_a, _flag_b)) goto L_25091740; /* 0x25091735: je 0x25091740 */ 3658 L_25091737: 3659 PUSH32(esp, esi); /* 0x25091737: push esi */ 3660 RECOMP_ICALL(0x25137EECu); /* 0x25091738: call 0x25137eec */ /* not lifted */ 3661 RECOMP_FLAGS_IN(); 3662 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3663 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3664 esp = esp + 4; /* 0x2509173D: add esp, 4 */ 3665 _flag_k = FK_ADD; 3666 L_25091740: 3667 eax = esi; /* 0x25091740: mov eax, esi */ 3668 esi = POP32_VAL(esp); /* 0x25091742: pop esi */ 3669 ebx = POP32_VAL(esp); /* 0x25091743: pop ebx */ 3670 ebp = POP32_VAL(esp); /* 0x25091744: pop ebp */ 3671 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25091745: ret 4 */ 3672 RECOMP_REGS_OUT(); 3673 } 3674 3675 void sub_25091750(void) { 3676 int _fpu_cmp = 0; 3677 uint32_t _cf = 0; 3678 int _df = 1; 3679 uint32_t _flag_k = FK_NONE; 3680 uint32_t _flag_a = 0, _flag_b = 0; 3681 uint32_t _itail_tgt = 0; 3682 RECOMP_REGS_LOCALS 3683 RECOMP_ENTER(0x25091750u); 3684 3685 L_25091750: 3686 PUSH32(esp, ebp); /* 0x25091750: push ebp */ 3687 ebp = esp; /* 0x25091751: mov ebp, esp */ 3688 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091753: push -1 */ 3689 PUSH32(esp, 0x251493EBu); /* 0x25091755: push 0x251493eb */ 3690 eax = MEM32(FS_BASE + (0)); /* 0x2509175A: mov eax, dword ptr fs:[0] */ 3691 PUSH32(esp, eax); /* 0x25091760: push eax */ 3692 MEM32(FS_BASE + (0)) = esp; /* 0x25091761: mov dword ptr fs:[0], esp */ 3693 PUSH32(esp, ecx); /* 0x25091768: push ecx */ 3694 PUSH32(esp, 0x5Cu); /* 0x25091769: push 0x5c */ 3695 RECOMP_ICALL(0x251380D0u); /* 0x2509176B: call 0x251380d0 */ /* not lifted */ 3696 RECOMP_FLAGS_IN(); 3697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3699 esp = esp + 4; /* 0x25091770: add esp, 4 */ 3700 _flag_k = FK_ADD; 3701 MEM32(ebp + (-0x10)) = eax; /* 0x25091773: mov dword ptr [ebp - 0x10], eax */ 3702 /* test eax, eax */ /* 0x25091776: test eax, eax */ 3703 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3704 _cf = 0; 3705 _flag_k = FK_TEST; 3706 MEM32(ebp + (-0x4)) = 0; /* 0x25091778: mov dword ptr [ebp - 4], 0 */ 3707 if (TEST_Z(_flag_a, _flag_b)) goto L_2509179A; /* 0x2509177F: je 0x2509179a */ 3708 L_25091781: 3709 ecx = MEM32(ebp + 0x8); /* 0x25091781: mov ecx, dword ptr [ebp + 8] */ 3710 PUSH32(esp, ecx); /* 0x25091784: push ecx */ 3711 ecx = eax; /* 0x25091785: mov ecx, eax */ 3712 RECOMP_ICALL(0x250A1AC0u); /* 0x25091787: call 0x250a1ac0 */ /* not lifted */ 3713 RECOMP_FLAGS_IN(); 3714 ecx = MEM32(ebp + (-0xC)); /* 0x2509178C: mov ecx, dword ptr [ebp - 0xc] */ 3715 MEM32(FS_BASE + (0)) = ecx; /* 0x2509178F: mov dword ptr fs:[0], ecx */ 3716 esp = ebp; /* 0x25091796: mov esp, ebp */ 3717 ebp = POP32_VAL(esp); /* 0x25091798: pop ebp */ 3718 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091799: ret */ 3719 L_2509179A: 3720 ecx = MEM32(ebp + (-0xC)); /* 0x2509179A: mov ecx, dword ptr [ebp - 0xc] */ 3721 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3722 eax = 0; /* 0x2509179D: xor eax, eax */ 3723 _cf = 0; 3724 _flag_k = FK_TEST; 3725 MEM32(FS_BASE + (0)) = ecx; /* 0x2509179F: mov dword ptr fs:[0], ecx */ 3726 esp = ebp; /* 0x250917A6: mov esp, ebp */ 3727 ebp = POP32_VAL(esp); /* 0x250917A8: pop ebp */ 3728 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250917A9: ret */ 3729 RECOMP_REGS_OUT(); 3730 } 3731 3732 void sub_250917B0(void) { 3733 int _fpu_cmp = 0; 3734 uint32_t _cf = 0; 3735 int _df = 1; 3736 uint32_t _flag_k = FK_NONE; 3737 uint32_t _flag_a = 0, _flag_b = 0; 3738 uint32_t _itail_tgt = 0; 3739 RECOMP_REGS_LOCALS 3740 RECOMP_ENTER(0x250917B0u); 3741 3742 L_250917B0: 3743 goto L_250917C0; /* 0x250917B0: jmp 0x250917c0 */ 3744 L_250917C0: 3745 PUSH32(esp, 0x25091750u); /* 0x250917C0: push 0x25091750 */ 3746 PUSH32(esp, 0x000F695Fu); /* 0x250917C5: push 0xf695f */ 3747 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x250917CA: call dword ptr [0x251515cc] */ 3748 RECOMP_FLAGS_IN(); 3749 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3750 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3751 esp = esp + 8; /* 0x250917D0: add esp, 8 */ 3752 _flag_k = FK_ADD; 3753 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250917D3: ret */ 3754 RECOMP_REGS_OUT(); 3755 } 3756 3757 void sub_250917C0(void) { 3758 int _fpu_cmp = 0; 3759 uint32_t _cf = 0; 3760 int _df = 1; 3761 uint32_t _flag_k = FK_NONE; 3762 uint32_t _flag_a = 0, _flag_b = 0; 3763 uint32_t _itail_tgt = 0; 3764 RECOMP_REGS_LOCALS 3765 RECOMP_ENTER(0x250917C0u); 3766 3767 L_250917C0: 3768 PUSH32(esp, 0x25091750u); /* 0x250917C0: push 0x25091750 */ 3769 PUSH32(esp, 0x000F695Fu); /* 0x250917C5: push 0xf695f */ 3770 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x250917CA: call dword ptr [0x251515cc] */ 3771 RECOMP_FLAGS_IN(); 3772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3773 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3774 esp = esp + 8; /* 0x250917D0: add esp, 8 */ 3775 _flag_k = FK_ADD; 3776 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250917D3: ret */ 3777 RECOMP_REGS_OUT(); 3778 } 3779 3780 void sub_250917E0(void) { 3781 int _fpu_cmp = 0; 3782 uint32_t _cf = 0; 3783 int _df = 1; 3784 uint32_t _flag_k = FK_NONE; 3785 uint32_t _flag_a = 0, _flag_b = 0; 3786 uint32_t _itail_tgt = 0; 3787 RECOMP_REGS_LOCALS 3788 RECOMP_ENTER(0x250917E0u); 3789 3790 L_250917E0: 3791 PUSH32(esp, ebp); /* 0x250917E0: push ebp */ 3792 ebp = esp; /* 0x250917E1: mov ebp, esp */ 3793 PUSH32(esp, 0xFFFFFFFFu); /* 0x250917E3: push -1 */ 3794 PUSH32(esp, 0x2514940Bu); /* 0x250917E5: push 0x2514940b */ 3795 eax = MEM32(FS_BASE + (0)); /* 0x250917EA: mov eax, dword ptr fs:[0] */ 3796 PUSH32(esp, eax); /* 0x250917F0: push eax */ 3797 MEM32(FS_BASE + (0)) = esp; /* 0x250917F1: mov dword ptr fs:[0], esp */ 3798 PUSH32(esp, ecx); /* 0x250917F8: push ecx */ 3799 PUSH32(esp, 0x34u); /* 0x250917F9: push 0x34 */ 3800 RECOMP_ICALL(0x251380D0u); /* 0x250917FB: call 0x251380d0 */ /* not lifted */ 3801 RECOMP_FLAGS_IN(); 3802 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3803 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3804 esp = esp + 4; /* 0x25091800: add esp, 4 */ 3805 _flag_k = FK_ADD; 3806 MEM32(ebp + (-0x10)) = eax; /* 0x25091803: mov dword ptr [ebp - 0x10], eax */ 3807 /* test eax, eax */ /* 0x25091806: test eax, eax */ 3808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3809 _cf = 0; 3810 _flag_k = FK_TEST; 3811 MEM32(ebp + (-0x4)) = 0; /* 0x25091808: mov dword ptr [ebp - 4], 0 */ 3812 if (TEST_Z(_flag_a, _flag_b)) goto L_2509182A; /* 0x2509180F: je 0x2509182a */ 3813 L_25091811: 3814 ecx = MEM32(ebp + 0x8); /* 0x25091811: mov ecx, dword ptr [ebp + 8] */ 3815 PUSH32(esp, ecx); /* 0x25091814: push ecx */ 3816 ecx = eax; /* 0x25091815: mov ecx, eax */ 3817 RECOMP_ICALL(0x250A0DA0u); /* 0x25091817: call 0x250a0da0 */ /* not lifted */ 3818 RECOMP_FLAGS_IN(); 3819 ecx = MEM32(ebp + (-0xC)); /* 0x2509181C: mov ecx, dword ptr [ebp - 0xc] */ 3820 MEM32(FS_BASE + (0)) = ecx; /* 0x2509181F: mov dword ptr fs:[0], ecx */ 3821 esp = ebp; /* 0x25091826: mov esp, ebp */ 3822 ebp = POP32_VAL(esp); /* 0x25091828: pop ebp */ 3823 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091829: ret */ 3824 L_2509182A: 3825 ecx = MEM32(ebp + (-0xC)); /* 0x2509182A: mov ecx, dword ptr [ebp - 0xc] */ 3826 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3827 eax = 0; /* 0x2509182D: xor eax, eax */ 3828 _cf = 0; 3829 _flag_k = FK_TEST; 3830 MEM32(FS_BASE + (0)) = ecx; /* 0x2509182F: mov dword ptr fs:[0], ecx */ 3831 esp = ebp; /* 0x25091836: mov esp, ebp */ 3832 ebp = POP32_VAL(esp); /* 0x25091838: pop ebp */ 3833 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091839: ret */ 3834 RECOMP_REGS_OUT(); 3835 } 3836 3837 void sub_25091840(void) { 3838 int _fpu_cmp = 0; 3839 uint32_t _cf = 0; 3840 int _df = 1; 3841 uint32_t _flag_k = FK_NONE; 3842 uint32_t _flag_a = 0, _flag_b = 0; 3843 uint32_t _itail_tgt = 0; 3844 RECOMP_REGS_LOCALS 3845 RECOMP_ENTER(0x25091840u); 3846 3847 L_25091840: 3848 goto L_25091850; /* 0x25091840: jmp 0x25091850 */ 3849 L_25091850: 3850 PUSH32(esp, 0x250917E0u); /* 0x25091850: push 0x250917e0 */ 3851 PUSH32(esp, 0x000F6952u); /* 0x25091855: push 0xf6952 */ 3852 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x2509185A: call dword ptr [0x251515cc] */ 3853 RECOMP_FLAGS_IN(); 3854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3856 esp = esp + 8; /* 0x25091860: add esp, 8 */ 3857 _flag_k = FK_ADD; 3858 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091863: ret */ 3859 RECOMP_REGS_OUT(); 3860 } 3861 3862 void sub_25091850(void) { 3863 int _fpu_cmp = 0; 3864 uint32_t _cf = 0; 3865 int _df = 1; 3866 uint32_t _flag_k = FK_NONE; 3867 uint32_t _flag_a = 0, _flag_b = 0; 3868 uint32_t _itail_tgt = 0; 3869 RECOMP_REGS_LOCALS 3870 RECOMP_ENTER(0x25091850u); 3871 3872 L_25091850: 3873 PUSH32(esp, 0x250917E0u); /* 0x25091850: push 0x250917e0 */ 3874 PUSH32(esp, 0x000F6952u); /* 0x25091855: push 0xf6952 */ 3875 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x2509185A: call dword ptr [0x251515cc] */ 3876 RECOMP_FLAGS_IN(); 3877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3879 esp = esp + 8; /* 0x25091860: add esp, 8 */ 3880 _flag_k = FK_ADD; 3881 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091863: ret */ 3882 RECOMP_REGS_OUT(); 3883 } 3884 3885 void sub_25091870(void) { 3886 int _fpu_cmp = 0; 3887 uint32_t _cf = 0; 3888 int _df = 1; 3889 uint32_t _flag_k = FK_NONE; 3890 uint32_t _flag_a = 0, _flag_b = 0; 3891 uint32_t _itail_tgt = 0; 3892 RECOMP_REGS_LOCALS 3893 RECOMP_ENTER(0x25091870u); 3894 3895 L_25091870: 3896 PUSH32(esp, ebp); /* 0x25091870: push ebp */ 3897 ebp = esp; /* 0x25091871: mov ebp, esp */ 3898 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091873: push -1 */ 3899 PUSH32(esp, 0x2514942Bu); /* 0x25091875: push 0x2514942b */ 3900 eax = MEM32(FS_BASE + (0)); /* 0x2509187A: mov eax, dword ptr fs:[0] */ 3901 PUSH32(esp, eax); /* 0x25091880: push eax */ 3902 MEM32(FS_BASE + (0)) = esp; /* 0x25091881: mov dword ptr fs:[0], esp */ 3903 PUSH32(esp, ecx); /* 0x25091888: push ecx */ 3904 PUSH32(esp, 0x38u); /* 0x25091889: push 0x38 */ 3905 RECOMP_ICALL(0x251380D0u); /* 0x2509188B: call 0x251380d0 */ /* not lifted */ 3906 RECOMP_FLAGS_IN(); 3907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3909 esp = esp + 4; /* 0x25091890: add esp, 4 */ 3910 _flag_k = FK_ADD; 3911 MEM32(ebp + (-0x10)) = eax; /* 0x25091893: mov dword ptr [ebp - 0x10], eax */ 3912 /* test eax, eax */ /* 0x25091896: test eax, eax */ 3913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3914 _cf = 0; 3915 _flag_k = FK_TEST; 3916 MEM32(ebp + (-0x4)) = 0; /* 0x25091898: mov dword ptr [ebp - 4], 0 */ 3917 if (TEST_Z(_flag_a, _flag_b)) goto L_250918BA; /* 0x2509189F: je 0x250918ba */ 3918 L_250918A1: 3919 ecx = MEM32(ebp + 0x8); /* 0x250918A1: mov ecx, dword ptr [ebp + 8] */ 3920 PUSH32(esp, ecx); /* 0x250918A4: push ecx */ 3921 ecx = eax; /* 0x250918A5: mov ecx, eax */ 3922 RECOMP_ICALL(0x2509F5F0u); /* 0x250918A7: call 0x2509f5f0 */ /* not lifted */ 3923 RECOMP_FLAGS_IN(); 3924 ecx = MEM32(ebp + (-0xC)); /* 0x250918AC: mov ecx, dword ptr [ebp - 0xc] */ 3925 MEM32(FS_BASE + (0)) = ecx; /* 0x250918AF: mov dword ptr fs:[0], ecx */ 3926 esp = ebp; /* 0x250918B6: mov esp, ebp */ 3927 ebp = POP32_VAL(esp); /* 0x250918B8: pop ebp */ 3928 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250918B9: ret */ 3929 L_250918BA: 3930 ecx = MEM32(ebp + (-0xC)); /* 0x250918BA: mov ecx, dword ptr [ebp - 0xc] */ 3931 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3932 eax = 0; /* 0x250918BD: xor eax, eax */ 3933 _cf = 0; 3934 _flag_k = FK_TEST; 3935 MEM32(FS_BASE + (0)) = ecx; /* 0x250918BF: mov dword ptr fs:[0], ecx */ 3936 esp = ebp; /* 0x250918C6: mov esp, ebp */ 3937 ebp = POP32_VAL(esp); /* 0x250918C8: pop ebp */ 3938 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250918C9: ret */ 3939 RECOMP_REGS_OUT(); 3940 } 3941 3942 void sub_250918D0(void) { 3943 int _fpu_cmp = 0; 3944 uint32_t _cf = 0; 3945 int _df = 1; 3946 uint32_t _flag_k = FK_NONE; 3947 uint32_t _flag_a = 0, _flag_b = 0; 3948 uint32_t _itail_tgt = 0; 3949 RECOMP_REGS_LOCALS 3950 RECOMP_ENTER(0x250918D0u); 3951 3952 L_250918D0: 3953 goto L_250918E0; /* 0x250918D0: jmp 0x250918e0 */ 3954 L_250918E0: 3955 PUSH32(esp, 0x25091870u); /* 0x250918E0: push 0x25091870 */ 3956 PUSH32(esp, 0x000F6953u); /* 0x250918E5: push 0xf6953 */ 3957 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x250918EA: call dword ptr [0x251515cc] */ 3958 RECOMP_FLAGS_IN(); 3959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3961 esp = esp + 8; /* 0x250918F0: add esp, 8 */ 3962 _flag_k = FK_ADD; 3963 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250918F3: ret */ 3964 RECOMP_REGS_OUT(); 3965 } 3966 3967 void sub_250918E0(void) { 3968 int _fpu_cmp = 0; 3969 uint32_t _cf = 0; 3970 int _df = 1; 3971 uint32_t _flag_k = FK_NONE; 3972 uint32_t _flag_a = 0, _flag_b = 0; 3973 uint32_t _itail_tgt = 0; 3974 RECOMP_REGS_LOCALS 3975 RECOMP_ENTER(0x250918E0u); 3976 3977 L_250918E0: 3978 PUSH32(esp, 0x25091870u); /* 0x250918E0: push 0x25091870 */ 3979 PUSH32(esp, 0x000F6953u); /* 0x250918E5: push 0xf6953 */ 3980 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x250918EA: call dword ptr [0x251515cc] */ 3981 RECOMP_FLAGS_IN(); 3982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3984 esp = esp + 8; /* 0x250918F0: add esp, 8 */ 3985 _flag_k = FK_ADD; 3986 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250918F3: ret */ 3987 RECOMP_REGS_OUT(); 3988 } 3989 3990 void sub_25091900(void) { 3991 int _fpu_cmp = 0; 3992 uint32_t _cf = 0; 3993 int _df = 1; 3994 uint32_t _flag_k = FK_NONE; 3995 uint32_t _flag_a = 0, _flag_b = 0; 3996 uint32_t _itail_tgt = 0; 3997 RECOMP_REGS_LOCALS 3998 RECOMP_ENTER(0x25091900u); 3999 4000 L_25091900: 4001 PUSH32(esp, ebp); /* 0x25091900: push ebp */ 4002 ebp = esp; /* 0x25091901: mov ebp, esp */ 4003 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091903: push -1 */ 4004 PUSH32(esp, 0x2514944Bu); /* 0x25091905: push 0x2514944b */ 4005 eax = MEM32(FS_BASE + (0)); /* 0x2509190A: mov eax, dword ptr fs:[0] */ 4006 PUSH32(esp, eax); /* 0x25091910: push eax */ 4007 MEM32(FS_BASE + (0)) = esp; /* 0x25091911: mov dword ptr fs:[0], esp */ 4008 PUSH32(esp, ecx); /* 0x25091918: push ecx */ 4009 PUSH32(esp, 0x2Cu); /* 0x25091919: push 0x2c */ 4010 RECOMP_ICALL(0x251380D0u); /* 0x2509191B: call 0x251380d0 */ /* not lifted */ 4011 RECOMP_FLAGS_IN(); 4012 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4013 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4014 esp = esp + 4; /* 0x25091920: add esp, 4 */ 4015 _flag_k = FK_ADD; 4016 MEM32(ebp + (-0x10)) = eax; /* 0x25091923: mov dword ptr [ebp - 0x10], eax */ 4017 /* test eax, eax */ /* 0x25091926: test eax, eax */ 4018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4019 _cf = 0; 4020 _flag_k = FK_TEST; 4021 MEM32(ebp + (-0x4)) = 0; /* 0x25091928: mov dword ptr [ebp - 4], 0 */ 4022 if (TEST_Z(_flag_a, _flag_b)) goto L_2509194A; /* 0x2509192F: je 0x2509194a */ 4023 L_25091931: 4024 ecx = MEM32(ebp + 0x8); /* 0x25091931: mov ecx, dword ptr [ebp + 8] */ 4025 PUSH32(esp, ecx); /* 0x25091934: push ecx */ 4026 ecx = eax; /* 0x25091935: mov ecx, eax */ 4027 RECOMP_ICALL(0x2509F220u); /* 0x25091937: call 0x2509f220 */ /* not lifted */ 4028 RECOMP_FLAGS_IN(); 4029 ecx = MEM32(ebp + (-0xC)); /* 0x2509193C: mov ecx, dword ptr [ebp - 0xc] */ 4030 MEM32(FS_BASE + (0)) = ecx; /* 0x2509193F: mov dword ptr fs:[0], ecx */ 4031 esp = ebp; /* 0x25091946: mov esp, ebp */ 4032 ebp = POP32_VAL(esp); /* 0x25091948: pop ebp */ 4033 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091949: ret */ 4034 L_2509194A: 4035 ecx = MEM32(ebp + (-0xC)); /* 0x2509194A: mov ecx, dword ptr [ebp - 0xc] */ 4036 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4037 eax = 0; /* 0x2509194D: xor eax, eax */ 4038 _cf = 0; 4039 _flag_k = FK_TEST; 4040 MEM32(FS_BASE + (0)) = ecx; /* 0x2509194F: mov dword ptr fs:[0], ecx */ 4041 esp = ebp; /* 0x25091956: mov esp, ebp */ 4042 ebp = POP32_VAL(esp); /* 0x25091958: pop ebp */ 4043 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091959: ret */ 4044 RECOMP_REGS_OUT(); 4045 } 4046 4047 void sub_25091960(void) { 4048 int _fpu_cmp = 0; 4049 uint32_t _cf = 0; 4050 int _df = 1; 4051 uint32_t _flag_k = FK_NONE; 4052 uint32_t _flag_a = 0, _flag_b = 0; 4053 uint32_t _itail_tgt = 0; 4054 RECOMP_REGS_LOCALS 4055 RECOMP_ENTER(0x25091960u); 4056 4057 L_25091960: 4058 goto L_25091970; /* 0x25091960: jmp 0x25091970 */ 4059 L_25091970: 4060 PUSH32(esp, 0x25091900u); /* 0x25091970: push 0x25091900 */ 4061 PUSH32(esp, 0x000F695Du); /* 0x25091975: push 0xf695d */ 4062 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x2509197A: call dword ptr [0x251515cc] */ 4063 RECOMP_FLAGS_IN(); 4064 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4066 esp = esp + 8; /* 0x25091980: add esp, 8 */ 4067 _flag_k = FK_ADD; 4068 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091983: ret */ 4069 RECOMP_REGS_OUT(); 4070 } 4071 4072 void sub_25091970(void) { 4073 int _fpu_cmp = 0; 4074 uint32_t _cf = 0; 4075 int _df = 1; 4076 uint32_t _flag_k = FK_NONE; 4077 uint32_t _flag_a = 0, _flag_b = 0; 4078 uint32_t _itail_tgt = 0; 4079 RECOMP_REGS_LOCALS 4080 RECOMP_ENTER(0x25091970u); 4081 4082 L_25091970: 4083 PUSH32(esp, 0x25091900u); /* 0x25091970: push 0x25091900 */ 4084 PUSH32(esp, 0x000F695Du); /* 0x25091975: push 0xf695d */ 4085 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x2509197A: call dword ptr [0x251515cc] */ 4086 RECOMP_FLAGS_IN(); 4087 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4089 esp = esp + 8; /* 0x25091980: add esp, 8 */ 4090 _flag_k = FK_ADD; 4091 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091983: ret */ 4092 RECOMP_REGS_OUT(); 4093 } 4094 4095 void sub_25091990(void) { 4096 int _fpu_cmp = 0; 4097 uint32_t _cf = 0; 4098 int _df = 1; 4099 uint32_t _flag_k = FK_NONE; 4100 uint32_t _flag_a = 0, _flag_b = 0; 4101 uint32_t _itail_tgt = 0; 4102 RECOMP_REGS_LOCALS 4103 RECOMP_ENTER(0x25091990u); 4104 4105 L_25091990: 4106 PUSH32(esp, ebp); /* 0x25091990: push ebp */ 4107 ebp = esp; /* 0x25091991: mov ebp, esp */ 4108 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091993: push -1 */ 4109 PUSH32(esp, 0x2514946Bu); /* 0x25091995: push 0x2514946b */ 4110 eax = MEM32(FS_BASE + (0)); /* 0x2509199A: mov eax, dword ptr fs:[0] */ 4111 PUSH32(esp, eax); /* 0x250919A0: push eax */ 4112 MEM32(FS_BASE + (0)) = esp; /* 0x250919A1: mov dword ptr fs:[0], esp */ 4113 PUSH32(esp, ecx); /* 0x250919A8: push ecx */ 4114 PUSH32(esp, 0x8270u); /* 0x250919A9: push 0x8270 */ 4115 RECOMP_ICALL(0x251380D0u); /* 0x250919AE: call 0x251380d0 */ /* not lifted */ 4116 RECOMP_FLAGS_IN(); 4117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4119 esp = esp + 4; /* 0x250919B3: add esp, 4 */ 4120 _flag_k = FK_ADD; 4121 MEM32(ebp + (-0x10)) = eax; /* 0x250919B6: mov dword ptr [ebp - 0x10], eax */ 4122 /* test eax, eax */ /* 0x250919B9: test eax, eax */ 4123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4124 _cf = 0; 4125 _flag_k = FK_TEST; 4126 MEM32(ebp + (-0x4)) = 0; /* 0x250919BB: mov dword ptr [ebp - 4], 0 */ 4127 if (TEST_Z(_flag_a, _flag_b)) goto L_250919E1; /* 0x250919C2: je 0x250919e1 */ 4128 L_250919C4: 4129 ecx = MEM32(ebp + 0xC); /* 0x250919C4: mov ecx, dword ptr [ebp + 0xc] */ 4130 edx = MEM32(ebp + 0x8); /* 0x250919C7: mov edx, dword ptr [ebp + 8] */ 4131 PUSH32(esp, ecx); /* 0x250919CA: push ecx */ 4132 PUSH32(esp, edx); /* 0x250919CB: push edx */ 4133 ecx = eax; /* 0x250919CC: mov ecx, eax */ 4134 RECOMP_ICALL(0x250A3B80u); /* 0x250919CE: call 0x250a3b80 */ /* not lifted */ 4135 RECOMP_FLAGS_IN(); 4136 ecx = MEM32(ebp + (-0xC)); /* 0x250919D3: mov ecx, dword ptr [ebp - 0xc] */ 4137 MEM32(FS_BASE + (0)) = ecx; /* 0x250919D6: mov dword ptr fs:[0], ecx */ 4138 esp = ebp; /* 0x250919DD: mov esp, ebp */ 4139 ebp = POP32_VAL(esp); /* 0x250919DF: pop ebp */ 4140 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250919E0: ret */ 4141 L_250919E1: 4142 ecx = MEM32(ebp + (-0xC)); /* 0x250919E1: mov ecx, dword ptr [ebp - 0xc] */ 4143 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4144 eax = 0; /* 0x250919E4: xor eax, eax */ 4145 _cf = 0; 4146 _flag_k = FK_TEST; 4147 MEM32(FS_BASE + (0)) = ecx; /* 0x250919E6: mov dword ptr fs:[0], ecx */ 4148 esp = ebp; /* 0x250919ED: mov esp, ebp */ 4149 ebp = POP32_VAL(esp); /* 0x250919EF: pop ebp */ 4150 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x250919F0: ret */ 4151 RECOMP_REGS_OUT(); 4152 } 4153 4154 void sub_25091A00(void) { 4155 int _fpu_cmp = 0; 4156 uint32_t _cf = 0; 4157 int _df = 1; 4158 uint32_t _flag_k = FK_NONE; 4159 uint32_t _flag_a = 0, _flag_b = 0; 4160 uint32_t _itail_tgt = 0; 4161 RECOMP_REGS_LOCALS 4162 RECOMP_ENTER(0x25091A00u); 4163 4164 L_25091A00: 4165 RECOMP_ICALL(0x25091A10u); /* 0x25091A00: call 0x25091a10 */ /* not lifted */ 4166 RECOMP_FLAGS_IN(); 4167 goto L_25091A30; /* 0x25091A05: jmp 0x25091a30 */ 4168 L_25091A30: 4169 PUSH32(esp, 0x25091A40u); /* 0x25091A30: push 0x25091a40 */ 4170 RECOMP_ICALL(0x251380B2u); /* 0x25091A35: call 0x251380b2 */ /* not lifted */ 4171 RECOMP_FLAGS_IN(); 4172 ecx = POP32_VAL(esp); /* 0x25091A3A: pop ecx */ 4173 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091A3B: ret */ 4174 RECOMP_REGS_OUT(); 4175 } 4176 4177 void sub_25091A10(void) { 4178 int _fpu_cmp = 0; 4179 uint32_t _cf = 0; 4180 int _df = 1; 4181 uint32_t _flag_k = FK_NONE; 4182 uint32_t _flag_a = 0, _flag_b = 0; 4183 uint32_t _itail_tgt = 0; 4184 RECOMP_REGS_LOCALS 4185 RECOMP_ENTER(0x25091A10u); 4186 4187 L_25091A10: 4188 PUSH32(esp, 0x25091990u); /* 0x25091A10: push 0x25091990 */ 4189 PUSH32(esp, 0x000F4249u); /* 0x25091A15: push 0xf4249 */ 4190 RECOMP_ICALL(MEM32(0x251514B0)); /* 0x25091A1A: call dword ptr [0x251514b0] */ 4191 RECOMP_FLAGS_IN(); 4192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4194 esp = esp + 8; /* 0x25091A20: add esp, 8 */ 4195 _flag_k = FK_ADD; 4196 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091A23: ret */ 4197 RECOMP_REGS_OUT(); 4198 } 4199 4200 void sub_25091A30(void) { 4201 int _fpu_cmp = 0; 4202 uint32_t _cf = 0; 4203 int _df = 1; 4204 uint32_t _flag_k = FK_NONE; 4205 uint32_t _flag_a = 0, _flag_b = 0; 4206 uint32_t _itail_tgt = 0; 4207 RECOMP_REGS_LOCALS 4208 RECOMP_ENTER(0x25091A30u); 4209 4210 L_25091A30: 4211 PUSH32(esp, 0x25091A40u); /* 0x25091A30: push 0x25091a40 */ 4212 RECOMP_ICALL(0x251380B2u); /* 0x25091A35: call 0x251380b2 */ /* not lifted */ 4213 RECOMP_FLAGS_IN(); 4214 ecx = POP32_VAL(esp); /* 0x25091A3A: pop ecx */ 4215 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091A3B: ret */ 4216 RECOMP_REGS_OUT(); 4217 } 4218 4219 void sub_25091A40(void) { 4220 int _fpu_cmp = 0; 4221 uint32_t _cf = 0; 4222 int _df = 1; 4223 uint32_t _flag_k = FK_NONE; 4224 uint32_t _flag_a = 0, _flag_b = 0; 4225 uint32_t _itail_tgt = 0; 4226 RECOMP_REGS_LOCALS 4227 RECOMP_ENTER(0x25091A40u); 4228 4229 L_25091A40: 4230 PUSH32(esp, 0x000F4249u); /* 0x25091A40: push 0xf4249 */ 4231 RECOMP_ICALL(MEM32(0x251514B8)); /* 0x25091A45: call dword ptr [0x251514b8] */ 4232 RECOMP_FLAGS_IN(); 4233 ecx = POP32_VAL(esp); /* 0x25091A4B: pop ecx */ 4234 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091A4C: ret */ 4235 RECOMP_REGS_OUT(); 4236 } 4237 4238 void sub_25091A50(void) { 4239 int _fpu_cmp = 0; 4240 uint32_t _cf = 0; 4241 int _df = 1; 4242 uint32_t _flag_k = FK_NONE; 4243 uint32_t _flag_a = 0, _flag_b = 0; 4244 uint32_t _itail_tgt = 0; 4245 RECOMP_REGS_LOCALS 4246 RECOMP_ENTER(0x25091A50u); 4247 4248 L_25091A50: 4249 PUSH32(esp, ebp); /* 0x25091A50: push ebp */ 4250 ebp = esp; /* 0x25091A51: mov ebp, esp */ 4251 PUSH32(esp, 0x20u); /* 0x25091A53: push 0x20 */ 4252 RECOMP_ICALL(0x251380D0u); /* 0x25091A55: call 0x251380d0 */ /* not lifted */ 4253 RECOMP_FLAGS_IN(); 4254 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4255 edx = 0; /* 0x25091A5A: xor edx, edx */ 4256 _cf = 0; 4257 _flag_k = FK_TEST; 4258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4260 esp = esp + 4; /* 0x25091A5C: add esp, 4 */ 4261 _flag_k = FK_ADD; 4262 /* cmp eax, edx */ /* 0x25091A5F: cmp eax, edx */ 4263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4265 _flag_k = FK_CMP; 4266 if (CMP_EQ(_flag_a, _flag_b)) goto L_25091A8E; /* 0x25091A61: je 0x25091a8e */ 4267 L_25091A63: 4268 ecx = MEM32(ebp + 0x8); /* 0x25091A63: mov ecx, dword ptr [ebp + 8] */ 4269 MEM32(eax + 0x4) = ecx; /* 0x25091A66: mov dword ptr [eax + 4], ecx */ 4270 ecx = MEM32(ebp + 0xC); /* 0x25091A69: mov ecx, dword ptr [ebp + 0xc] */ 4271 MEM32(eax + 0x8) = ecx; /* 0x25091A6C: mov dword ptr [eax + 8], ecx */ 4272 ecx = 1; /* 0x25091A6F: mov ecx, 1 */ 4273 MEM32(eax + 0xC) = ecx; /* 0x25091A74: mov dword ptr [eax + 0xc], ecx */ 4274 MEM32(eax + 0x10) = ecx; /* 0x25091A77: mov dword ptr [eax + 0x10], ecx */ 4275 MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x25091A7A: mov byte ptr [eax + 0x14], dl */ 4276 MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x25091A7D: mov byte ptr [eax + 0x15], cl */ 4277 MEM32(eax) = 0x25155B74u; /* 0x25091A80: mov dword ptr [eax], 0x25155b74 */ 4278 MEM32(eax + 0x18) = edx; /* 0x25091A86: mov dword ptr [eax + 0x18], edx */ 4279 MEM32(eax + 0x1C) = edx; /* 0x25091A89: mov dword ptr [eax + 0x1c], edx */ 4280 ebp = POP32_VAL(esp); /* 0x25091A8C: pop ebp */ 4281 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091A8D: ret */ 4282 L_25091A8E: 4283 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4284 eax = 0; /* 0x25091A8E: xor eax, eax */ 4285 _cf = 0; 4286 _flag_k = FK_TEST; 4287 ebp = POP32_VAL(esp); /* 0x25091A90: pop ebp */ 4288 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091A91: ret */ 4289 RECOMP_REGS_OUT(); 4290 } 4291 4292 void sub_25091AA0(void) { 4293 int _fpu_cmp = 0; 4294 uint32_t _cf = 0; 4295 int _df = 1; 4296 uint32_t _flag_k = FK_NONE; 4297 uint32_t _flag_a = 0, _flag_b = 0; 4298 uint32_t _itail_tgt = 0; 4299 RECOMP_REGS_LOCALS 4300 RECOMP_ENTER(0x25091AA0u); 4301 4302 L_25091AA0: 4303 PUSH32(esp, ebp); /* 0x25091AA0: push ebp */ 4304 ebp = esp; /* 0x25091AA1: mov ebp, esp */ 4305 PUSH32(esp, esi); /* 0x25091AA3: push esi */ 4306 esi = ecx; /* 0x25091AA4: mov esi, ecx */ 4307 RECOMP_ICALL(0x25091AD0u); /* 0x25091AA6: call 0x25091ad0 */ /* not lifted */ 4308 RECOMP_FLAGS_IN(); 4309 /* test MEM8(ebp + 0x8), 1 */ /* 0x25091AAB: test byte ptr [ebp + 8], 1 */ 4310 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 4311 _cf = 0; 4312 _flag_k = FK_NARROW(FK_TEST, 24); 4313 if (TEST_Z(_flag_a, _flag_b)) goto L_25091ABA; /* 0x25091AAF: je 0x25091aba */ 4314 L_25091AB1: 4315 PUSH32(esp, esi); /* 0x25091AB1: push esi */ 4316 RECOMP_ICALL(0x25137EECu); /* 0x25091AB2: call 0x25137eec */ /* not lifted */ 4317 RECOMP_FLAGS_IN(); 4318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4320 esp = esp + 4; /* 0x25091AB7: add esp, 4 */ 4321 _flag_k = FK_ADD; 4322 L_25091ABA: 4323 eax = esi; /* 0x25091ABA: mov eax, esi */ 4324 esi = POP32_VAL(esp); /* 0x25091ABC: pop esi */ 4325 ebp = POP32_VAL(esp); /* 0x25091ABD: pop ebp */ 4326 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x25091ABE: ret 4 */ 4327 RECOMP_REGS_OUT(); 4328 } 4329 4330 void sub_25091AD0(void) { 4331 int _fpu_cmp = 0; 4332 uint32_t _cf = 0; 4333 int _df = 1; 4334 uint32_t _flag_k = FK_NONE; 4335 uint32_t _flag_a = 0, _flag_b = 0; 4336 uint32_t _itail_tgt = 0; 4337 RECOMP_REGS_LOCALS 4338 RECOMP_ENTER(0x25091AD0u); 4339 4340 L_25091AD0: 4341 PUSH32(esp, esi); /* 0x25091AD0: push esi */ 4342 esi = ecx; /* 0x25091AD1: mov esi, ecx */ 4343 eax = MEM32(esi + 0x18); /* 0x25091AD3: mov eax, dword ptr [esi + 0x18] */ 4344 PUSH32(esp, eax); /* 0x25091AD6: push eax */ 4345 MEM32(esi) = 0x25155B74u; /* 0x25091AD7: mov dword ptr [esi], 0x25155b74 */ 4346 RECOMP_ICALL(0x25137EECu); /* 0x25091ADD: call 0x25137eec */ /* not lifted */ 4347 RECOMP_FLAGS_IN(); 4348 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4350 esp = esp + 4; /* 0x25091AE2: add esp, 4 */ 4351 _flag_k = FK_ADD; 4352 ecx = esi; /* 0x25091AE5: mov ecx, esi */ 4353 RECOMP_ICALL(MEM32(0x251514B4)); /* 0x25091AE7: call dword ptr [0x251514b4] */ 4354 RECOMP_FLAGS_IN(); 4355 esi = POP32_VAL(esp); /* 0x25091AED: pop esi */ 4356 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091AEE: ret */ 4357 RECOMP_REGS_OUT(); 4358 } 4359 4360 void sub_25091AF0(void) { 4361 int _fpu_cmp = 0; 4362 uint32_t _cf = 0; 4363 int _df = 1; 4364 uint32_t _flag_k = FK_NONE; 4365 uint32_t _flag_a = 0, _flag_b = 0; 4366 uint32_t _itail_tgt = 0; 4367 RECOMP_REGS_LOCALS 4368 RECOMP_ENTER(0x25091AF0u); 4369 4370 L_25091AF0: 4371 RECOMP_ICALL(0x25091B00u); /* 0x25091AF0: call 0x25091b00 */ /* not lifted */ 4372 RECOMP_FLAGS_IN(); 4373 goto L_25091B20; /* 0x25091AF5: jmp 0x25091b20 */ 4374 L_25091B20: 4375 PUSH32(esp, 0x25091B30u); /* 0x25091B20: push 0x25091b30 */ 4376 RECOMP_ICALL(0x251380B2u); /* 0x25091B25: call 0x251380b2 */ /* not lifted */ 4377 RECOMP_FLAGS_IN(); 4378 ecx = POP32_VAL(esp); /* 0x25091B2A: pop ecx */ 4379 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091B2B: ret */ 4380 RECOMP_REGS_OUT(); 4381 } 4382 4383 void sub_25091B00(void) { 4384 int _fpu_cmp = 0; 4385 uint32_t _cf = 0; 4386 int _df = 1; 4387 uint32_t _flag_k = FK_NONE; 4388 uint32_t _flag_a = 0, _flag_b = 0; 4389 uint32_t _itail_tgt = 0; 4390 RECOMP_REGS_LOCALS 4391 RECOMP_ENTER(0x25091B00u); 4392 4393 L_25091B00: 4394 PUSH32(esp, 0x25091A50u); /* 0x25091B00: push 0x25091a50 */ 4395 PUSH32(esp, 0x000F6962u); /* 0x25091B05: push 0xf6962 */ 4396 RECOMP_ICALL(MEM32(0x251514B0)); /* 0x25091B0A: call dword ptr [0x251514b0] */ 4397 RECOMP_FLAGS_IN(); 4398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4400 esp = esp + 8; /* 0x25091B10: add esp, 8 */ 4401 _flag_k = FK_ADD; 4402 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091B13: ret */ 4403 RECOMP_REGS_OUT(); 4404 } 4405 4406 void sub_25091B20(void) { 4407 int _fpu_cmp = 0; 4408 uint32_t _cf = 0; 4409 int _df = 1; 4410 uint32_t _flag_k = FK_NONE; 4411 uint32_t _flag_a = 0, _flag_b = 0; 4412 uint32_t _itail_tgt = 0; 4413 RECOMP_REGS_LOCALS 4414 RECOMP_ENTER(0x25091B20u); 4415 4416 L_25091B20: 4417 PUSH32(esp, 0x25091B30u); /* 0x25091B20: push 0x25091b30 */ 4418 RECOMP_ICALL(0x251380B2u); /* 0x25091B25: call 0x251380b2 */ /* not lifted */ 4419 RECOMP_FLAGS_IN(); 4420 ecx = POP32_VAL(esp); /* 0x25091B2A: pop ecx */ 4421 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091B2B: ret */ 4422 RECOMP_REGS_OUT(); 4423 } 4424 4425 void sub_25091B30(void) { 4426 int _fpu_cmp = 0; 4427 uint32_t _cf = 0; 4428 int _df = 1; 4429 uint32_t _flag_k = FK_NONE; 4430 uint32_t _flag_a = 0, _flag_b = 0; 4431 uint32_t _itail_tgt = 0; 4432 RECOMP_REGS_LOCALS 4433 RECOMP_ENTER(0x25091B30u); 4434 4435 L_25091B30: 4436 PUSH32(esp, 0x000F6962u); /* 0x25091B30: push 0xf6962 */ 4437 RECOMP_ICALL(MEM32(0x251514B8)); /* 0x25091B35: call dword ptr [0x251514b8] */ 4438 RECOMP_FLAGS_IN(); 4439 ecx = POP32_VAL(esp); /* 0x25091B3B: pop ecx */ 4440 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091B3C: ret */ 4441 RECOMP_REGS_OUT(); 4442 } 4443 4444 void sub_25091B40(void) { 4445 int _fpu_cmp = 0; 4446 uint32_t _cf = 0; 4447 int _df = 1; 4448 uint32_t _flag_k = FK_NONE; 4449 uint32_t _flag_a = 0, _flag_b = 0; 4450 uint32_t _itail_tgt = 0; 4451 RECOMP_REGS_LOCALS 4452 RECOMP_ENTER(0x25091B40u); 4453 4454 L_25091B40: 4455 PUSH32(esp, ebp); /* 0x25091B40: push ebp */ 4456 ebp = esp; /* 0x25091B41: mov ebp, esp */ 4457 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091B43: push -1 */ 4458 PUSH32(esp, 0x2514948Bu); /* 0x25091B45: push 0x2514948b */ 4459 eax = MEM32(FS_BASE + (0)); /* 0x25091B4A: mov eax, dword ptr fs:[0] */ 4460 PUSH32(esp, eax); /* 0x25091B50: push eax */ 4461 MEM32(FS_BASE + (0)) = esp; /* 0x25091B51: mov dword ptr fs:[0], esp */ 4462 PUSH32(esp, ecx); /* 0x25091B58: push ecx */ 4463 PUSH32(esp, 0x5Cu); /* 0x25091B59: push 0x5c */ 4464 RECOMP_ICALL(0x251380D0u); /* 0x25091B5B: call 0x251380d0 */ /* not lifted */ 4465 RECOMP_FLAGS_IN(); 4466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4468 esp = esp + 4; /* 0x25091B60: add esp, 4 */ 4469 _flag_k = FK_ADD; 4470 MEM32(ebp + (-0x10)) = eax; /* 0x25091B63: mov dword ptr [ebp - 0x10], eax */ 4471 /* test eax, eax */ /* 0x25091B66: test eax, eax */ 4472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4473 _cf = 0; 4474 _flag_k = FK_TEST; 4475 MEM32(ebp + (-0x4)) = 0; /* 0x25091B68: mov dword ptr [ebp - 4], 0 */ 4476 if (TEST_Z(_flag_a, _flag_b)) goto L_25091B8A; /* 0x25091B6F: je 0x25091b8a */ 4477 L_25091B71: 4478 ecx = MEM32(ebp + 0x8); /* 0x25091B71: mov ecx, dword ptr [ebp + 8] */ 4479 PUSH32(esp, ecx); /* 0x25091B74: push ecx */ 4480 ecx = eax; /* 0x25091B75: mov ecx, eax */ 4481 RECOMP_ICALL(0x250A1F20u); /* 0x25091B77: call 0x250a1f20 */ /* not lifted */ 4482 RECOMP_FLAGS_IN(); 4483 ecx = MEM32(ebp + (-0xC)); /* 0x25091B7C: mov ecx, dword ptr [ebp - 0xc] */ 4484 MEM32(FS_BASE + (0)) = ecx; /* 0x25091B7F: mov dword ptr fs:[0], ecx */ 4485 esp = ebp; /* 0x25091B86: mov esp, ebp */ 4486 ebp = POP32_VAL(esp); /* 0x25091B88: pop ebp */ 4487 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091B89: ret */ 4488 L_25091B8A: 4489 ecx = MEM32(ebp + (-0xC)); /* 0x25091B8A: mov ecx, dword ptr [ebp - 0xc] */ 4490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4491 eax = 0; /* 0x25091B8D: xor eax, eax */ 4492 _cf = 0; 4493 _flag_k = FK_TEST; 4494 MEM32(FS_BASE + (0)) = ecx; /* 0x25091B8F: mov dword ptr fs:[0], ecx */ 4495 esp = ebp; /* 0x25091B96: mov esp, ebp */ 4496 ebp = POP32_VAL(esp); /* 0x25091B98: pop ebp */ 4497 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091B99: ret */ 4498 RECOMP_REGS_OUT(); 4499 } 4500 4501 void sub_25091BA0(void) { 4502 int _fpu_cmp = 0; 4503 uint32_t _cf = 0; 4504 int _df = 1; 4505 uint32_t _flag_k = FK_NONE; 4506 uint32_t _flag_a = 0, _flag_b = 0; 4507 uint32_t _itail_tgt = 0; 4508 RECOMP_REGS_LOCALS 4509 RECOMP_ENTER(0x25091BA0u); 4510 4511 L_25091BA0: 4512 goto L_25091BB0; /* 0x25091BA0: jmp 0x25091bb0 */ 4513 L_25091BB0: 4514 PUSH32(esp, 0x25091B40u); /* 0x25091BB0: push 0x25091b40 */ 4515 PUSH32(esp, 0x000F6951u); /* 0x25091BB5: push 0xf6951 */ 4516 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091BBA: call dword ptr [0x251515cc] */ 4517 RECOMP_FLAGS_IN(); 4518 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4519 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4520 esp = esp + 8; /* 0x25091BC0: add esp, 8 */ 4521 _flag_k = FK_ADD; 4522 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091BC3: ret */ 4523 RECOMP_REGS_OUT(); 4524 } 4525 4526 void sub_25091BB0(void) { 4527 int _fpu_cmp = 0; 4528 uint32_t _cf = 0; 4529 int _df = 1; 4530 uint32_t _flag_k = FK_NONE; 4531 uint32_t _flag_a = 0, _flag_b = 0; 4532 uint32_t _itail_tgt = 0; 4533 RECOMP_REGS_LOCALS 4534 RECOMP_ENTER(0x25091BB0u); 4535 4536 L_25091BB0: 4537 PUSH32(esp, 0x25091B40u); /* 0x25091BB0: push 0x25091b40 */ 4538 PUSH32(esp, 0x000F6951u); /* 0x25091BB5: push 0xf6951 */ 4539 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091BBA: call dword ptr [0x251515cc] */ 4540 RECOMP_FLAGS_IN(); 4541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4543 esp = esp + 8; /* 0x25091BC0: add esp, 8 */ 4544 _flag_k = FK_ADD; 4545 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091BC3: ret */ 4546 RECOMP_REGS_OUT(); 4547 } 4548 4549 void sub_25091BD0(void) { 4550 int _fpu_cmp = 0; 4551 uint32_t _cf = 0; 4552 int _df = 1; 4553 uint32_t _flag_k = FK_NONE; 4554 uint32_t _flag_a = 0, _flag_b = 0; 4555 uint32_t _itail_tgt = 0; 4556 RECOMP_REGS_LOCALS 4557 RECOMP_ENTER(0x25091BD0u); 4558 4559 L_25091BD0: 4560 goto L_25091BE0; /* 0x25091BD0: jmp 0x25091be0 */ 4561 L_25091BE0: 4562 PUSH32(esp, 0x25091B40u); /* 0x25091BE0: push 0x25091b40 */ 4563 PUSH32(esp, 0x000F696Au); /* 0x25091BE5: push 0xf696a */ 4564 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091BEA: call dword ptr [0x251515cc] */ 4565 RECOMP_FLAGS_IN(); 4566 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4567 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4568 esp = esp + 8; /* 0x25091BF0: add esp, 8 */ 4569 _flag_k = FK_ADD; 4570 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091BF3: ret */ 4571 RECOMP_REGS_OUT(); 4572 } 4573 4574 void sub_25091BE0(void) { 4575 int _fpu_cmp = 0; 4576 uint32_t _cf = 0; 4577 int _df = 1; 4578 uint32_t _flag_k = FK_NONE; 4579 uint32_t _flag_a = 0, _flag_b = 0; 4580 uint32_t _itail_tgt = 0; 4581 RECOMP_REGS_LOCALS 4582 RECOMP_ENTER(0x25091BE0u); 4583 4584 L_25091BE0: 4585 PUSH32(esp, 0x25091B40u); /* 0x25091BE0: push 0x25091b40 */ 4586 PUSH32(esp, 0x000F696Au); /* 0x25091BE5: push 0xf696a */ 4587 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091BEA: call dword ptr [0x251515cc] */ 4588 RECOMP_FLAGS_IN(); 4589 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4591 esp = esp + 8; /* 0x25091BF0: add esp, 8 */ 4592 _flag_k = FK_ADD; 4593 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091BF3: ret */ 4594 RECOMP_REGS_OUT(); 4595 } 4596 4597 void sub_25091C00(void) { 4598 int _fpu_cmp = 0; 4599 uint32_t _cf = 0; 4600 int _df = 1; 4601 uint32_t _flag_k = FK_NONE; 4602 uint32_t _flag_a = 0, _flag_b = 0; 4603 uint32_t _itail_tgt = 0; 4604 RECOMP_REGS_LOCALS 4605 RECOMP_ENTER(0x25091C00u); 4606 4607 L_25091C00: 4608 PUSH32(esp, ebp); /* 0x25091C00: push ebp */ 4609 ebp = esp; /* 0x25091C01: mov ebp, esp */ 4610 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091C03: push -1 */ 4611 PUSH32(esp, 0x251494ABu); /* 0x25091C05: push 0x251494ab */ 4612 eax = MEM32(FS_BASE + (0)); /* 0x25091C0A: mov eax, dword ptr fs:[0] */ 4613 PUSH32(esp, eax); /* 0x25091C10: push eax */ 4614 MEM32(FS_BASE + (0)) = esp; /* 0x25091C11: mov dword ptr fs:[0], esp */ 4615 PUSH32(esp, ecx); /* 0x25091C18: push ecx */ 4616 PUSH32(esp, 0x34u); /* 0x25091C19: push 0x34 */ 4617 RECOMP_ICALL(0x251380D0u); /* 0x25091C1B: call 0x251380d0 */ /* not lifted */ 4618 RECOMP_FLAGS_IN(); 4619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4621 esp = esp + 4; /* 0x25091C20: add esp, 4 */ 4622 _flag_k = FK_ADD; 4623 MEM32(ebp + (-0x10)) = eax; /* 0x25091C23: mov dword ptr [ebp - 0x10], eax */ 4624 /* test eax, eax */ /* 0x25091C26: test eax, eax */ 4625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4626 _cf = 0; 4627 _flag_k = FK_TEST; 4628 MEM32(ebp + (-0x4)) = 0; /* 0x25091C28: mov dword ptr [ebp - 4], 0 */ 4629 if (TEST_Z(_flag_a, _flag_b)) goto L_25091C4A; /* 0x25091C2F: je 0x25091c4a */ 4630 L_25091C31: 4631 ecx = MEM32(ebp + 0x8); /* 0x25091C31: mov ecx, dword ptr [ebp + 8] */ 4632 PUSH32(esp, ecx); /* 0x25091C34: push ecx */ 4633 ecx = eax; /* 0x25091C35: mov ecx, eax */ 4634 RECOMP_ICALL(0x250A3730u); /* 0x25091C37: call 0x250a3730 */ /* not lifted */ 4635 RECOMP_FLAGS_IN(); 4636 ecx = MEM32(ebp + (-0xC)); /* 0x25091C3C: mov ecx, dword ptr [ebp - 0xc] */ 4637 MEM32(FS_BASE + (0)) = ecx; /* 0x25091C3F: mov dword ptr fs:[0], ecx */ 4638 esp = ebp; /* 0x25091C46: mov esp, ebp */ 4639 ebp = POP32_VAL(esp); /* 0x25091C48: pop ebp */ 4640 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091C49: ret */ 4641 L_25091C4A: 4642 ecx = MEM32(ebp + (-0xC)); /* 0x25091C4A: mov ecx, dword ptr [ebp - 0xc] */ 4643 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4644 eax = 0; /* 0x25091C4D: xor eax, eax */ 4645 _cf = 0; 4646 _flag_k = FK_TEST; 4647 MEM32(FS_BASE + (0)) = ecx; /* 0x25091C4F: mov dword ptr fs:[0], ecx */ 4648 esp = ebp; /* 0x25091C56: mov esp, ebp */ 4649 ebp = POP32_VAL(esp); /* 0x25091C58: pop ebp */ 4650 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091C59: ret */ 4651 RECOMP_REGS_OUT(); 4652 } 4653 4654 void sub_25091C60(void) { 4655 int _fpu_cmp = 0; 4656 uint32_t _cf = 0; 4657 int _df = 1; 4658 uint32_t _flag_k = FK_NONE; 4659 uint32_t _flag_a = 0, _flag_b = 0; 4660 uint32_t _itail_tgt = 0; 4661 RECOMP_REGS_LOCALS 4662 RECOMP_ENTER(0x25091C60u); 4663 4664 L_25091C60: 4665 goto L_25091C70; /* 0x25091C60: jmp 0x25091c70 */ 4666 L_25091C70: 4667 PUSH32(esp, 0x25091C00u); /* 0x25091C70: push 0x25091c00 */ 4668 PUSH32(esp, 0x000F6954u); /* 0x25091C75: push 0xf6954 */ 4669 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091C7A: call dword ptr [0x251515cc] */ 4670 RECOMP_FLAGS_IN(); 4671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4673 esp = esp + 8; /* 0x25091C80: add esp, 8 */ 4674 _flag_k = FK_ADD; 4675 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091C83: ret */ 4676 RECOMP_REGS_OUT(); 4677 } 4678 4679 void sub_25091C70(void) { 4680 int _fpu_cmp = 0; 4681 uint32_t _cf = 0; 4682 int _df = 1; 4683 uint32_t _flag_k = FK_NONE; 4684 uint32_t _flag_a = 0, _flag_b = 0; 4685 uint32_t _itail_tgt = 0; 4686 RECOMP_REGS_LOCALS 4687 RECOMP_ENTER(0x25091C70u); 4688 4689 L_25091C70: 4690 PUSH32(esp, 0x25091C00u); /* 0x25091C70: push 0x25091c00 */ 4691 PUSH32(esp, 0x000F6954u); /* 0x25091C75: push 0xf6954 */ 4692 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091C7A: call dword ptr [0x251515cc] */ 4693 RECOMP_FLAGS_IN(); 4694 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4696 esp = esp + 8; /* 0x25091C80: add esp, 8 */ 4697 _flag_k = FK_ADD; 4698 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091C83: ret */ 4699 RECOMP_REGS_OUT(); 4700 } 4701 4702 void sub_25091C90(void) { 4703 int _fpu_cmp = 0; 4704 uint32_t _cf = 0; 4705 int _df = 1; 4706 uint32_t _flag_k = FK_NONE; 4707 uint32_t _flag_a = 0, _flag_b = 0; 4708 uint32_t _itail_tgt = 0; 4709 RECOMP_REGS_LOCALS 4710 RECOMP_ENTER(0x25091C90u); 4711 4712 L_25091C90: 4713 goto L_25091CA0; /* 0x25091C90: jmp 0x25091ca0 */ 4714 L_25091CA0: 4715 PUSH32(esp, 0x25091C00u); /* 0x25091CA0: push 0x25091c00 */ 4716 PUSH32(esp, 0x000F6960u); /* 0x25091CA5: push 0xf6960 */ 4717 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091CAA: call dword ptr [0x251515cc] */ 4718 RECOMP_FLAGS_IN(); 4719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4721 esp = esp + 8; /* 0x25091CB0: add esp, 8 */ 4722 _flag_k = FK_ADD; 4723 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091CB3: ret */ 4724 RECOMP_REGS_OUT(); 4725 } 4726 4727 void sub_25091CA0(void) { 4728 int _fpu_cmp = 0; 4729 uint32_t _cf = 0; 4730 int _df = 1; 4731 uint32_t _flag_k = FK_NONE; 4732 uint32_t _flag_a = 0, _flag_b = 0; 4733 uint32_t _itail_tgt = 0; 4734 RECOMP_REGS_LOCALS 4735 RECOMP_ENTER(0x25091CA0u); 4736 4737 L_25091CA0: 4738 PUSH32(esp, 0x25091C00u); /* 0x25091CA0: push 0x25091c00 */ 4739 PUSH32(esp, 0x000F6960u); /* 0x25091CA5: push 0xf6960 */ 4740 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091CAA: call dword ptr [0x251515cc] */ 4741 RECOMP_FLAGS_IN(); 4742 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4743 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4744 esp = esp + 8; /* 0x25091CB0: add esp, 8 */ 4745 _flag_k = FK_ADD; 4746 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091CB3: ret */ 4747 RECOMP_REGS_OUT(); 4748 } 4749 4750 void sub_25091CC0(void) { 4751 int _fpu_cmp = 0; 4752 uint32_t _cf = 0; 4753 int _df = 1; 4754 uint32_t _flag_k = FK_NONE; 4755 uint32_t _flag_a = 0, _flag_b = 0; 4756 uint32_t _itail_tgt = 0; 4757 RECOMP_REGS_LOCALS 4758 RECOMP_ENTER(0x25091CC0u); 4759 4760 L_25091CC0: 4761 goto L_25091CD0; /* 0x25091CC0: jmp 0x25091cd0 */ 4762 L_25091CD0: 4763 PUSH32(esp, 0x25091C00u); /* 0x25091CD0: push 0x25091c00 */ 4764 PUSH32(esp, 0x000F6961u); /* 0x25091CD5: push 0xf6961 */ 4765 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091CDA: call dword ptr [0x251515cc] */ 4766 RECOMP_FLAGS_IN(); 4767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4768 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4769 esp = esp + 8; /* 0x25091CE0: add esp, 8 */ 4770 _flag_k = FK_ADD; 4771 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091CE3: ret */ 4772 RECOMP_REGS_OUT(); 4773 } 4774 4775 void sub_25091CD0(void) { 4776 int _fpu_cmp = 0; 4777 uint32_t _cf = 0; 4778 int _df = 1; 4779 uint32_t _flag_k = FK_NONE; 4780 uint32_t _flag_a = 0, _flag_b = 0; 4781 uint32_t _itail_tgt = 0; 4782 RECOMP_REGS_LOCALS 4783 RECOMP_ENTER(0x25091CD0u); 4784 4785 L_25091CD0: 4786 PUSH32(esp, 0x25091C00u); /* 0x25091CD0: push 0x25091c00 */ 4787 PUSH32(esp, 0x000F6961u); /* 0x25091CD5: push 0xf6961 */ 4788 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091CDA: call dword ptr [0x251515cc] */ 4789 RECOMP_FLAGS_IN(); 4790 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4791 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4792 esp = esp + 8; /* 0x25091CE0: add esp, 8 */ 4793 _flag_k = FK_ADD; 4794 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091CE3: ret */ 4795 RECOMP_REGS_OUT(); 4796 } 4797 4798 void sub_25091CF0(void) { 4799 int _fpu_cmp = 0; 4800 uint32_t _cf = 0; 4801 int _df = 1; 4802 uint32_t _flag_k = FK_NONE; 4803 uint32_t _flag_a = 0, _flag_b = 0; 4804 uint32_t _itail_tgt = 0; 4805 RECOMP_REGS_LOCALS 4806 RECOMP_ENTER(0x25091CF0u); 4807 4808 L_25091CF0: 4809 goto L_25091D00; /* 0x25091CF0: jmp 0x25091d00 */ 4810 L_25091D00: 4811 PUSH32(esp, 0x25091C00u); /* 0x25091D00: push 0x25091c00 */ 4812 PUSH32(esp, 0x000F695Bu); /* 0x25091D05: push 0xf695b */ 4813 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D0A: call dword ptr [0x251515cc] */ 4814 RECOMP_FLAGS_IN(); 4815 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4817 esp = esp + 8; /* 0x25091D10: add esp, 8 */ 4818 _flag_k = FK_ADD; 4819 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091D13: ret */ 4820 RECOMP_REGS_OUT(); 4821 } 4822 4823 void sub_25091D00(void) { 4824 int _fpu_cmp = 0; 4825 uint32_t _cf = 0; 4826 int _df = 1; 4827 uint32_t _flag_k = FK_NONE; 4828 uint32_t _flag_a = 0, _flag_b = 0; 4829 uint32_t _itail_tgt = 0; 4830 RECOMP_REGS_LOCALS 4831 RECOMP_ENTER(0x25091D00u); 4832 4833 L_25091D00: 4834 PUSH32(esp, 0x25091C00u); /* 0x25091D00: push 0x25091c00 */ 4835 PUSH32(esp, 0x000F695Bu); /* 0x25091D05: push 0xf695b */ 4836 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D0A: call dword ptr [0x251515cc] */ 4837 RECOMP_FLAGS_IN(); 4838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4840 esp = esp + 8; /* 0x25091D10: add esp, 8 */ 4841 _flag_k = FK_ADD; 4842 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091D13: ret */ 4843 RECOMP_REGS_OUT(); 4844 } 4845 4846 void sub_25091D20(void) { 4847 int _fpu_cmp = 0; 4848 uint32_t _cf = 0; 4849 int _df = 1; 4850 uint32_t _flag_k = FK_NONE; 4851 uint32_t _flag_a = 0, _flag_b = 0; 4852 uint32_t _itail_tgt = 0; 4853 RECOMP_REGS_LOCALS 4854 RECOMP_ENTER(0x25091D20u); 4855 4856 L_25091D20: 4857 goto L_25091D30; /* 0x25091D20: jmp 0x25091d30 */ 4858 L_25091D30: 4859 PUSH32(esp, 0x25091C00u); /* 0x25091D30: push 0x25091c00 */ 4860 PUSH32(esp, 0x000F6963u); /* 0x25091D35: push 0xf6963 */ 4861 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D3A: call dword ptr [0x251515cc] */ 4862 RECOMP_FLAGS_IN(); 4863 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4864 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4865 esp = esp + 8; /* 0x25091D40: add esp, 8 */ 4866 _flag_k = FK_ADD; 4867 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091D43: ret */ 4868 RECOMP_REGS_OUT(); 4869 } 4870 4871 void sub_25091D30(void) { 4872 int _fpu_cmp = 0; 4873 uint32_t _cf = 0; 4874 int _df = 1; 4875 uint32_t _flag_k = FK_NONE; 4876 uint32_t _flag_a = 0, _flag_b = 0; 4877 uint32_t _itail_tgt = 0; 4878 RECOMP_REGS_LOCALS 4879 RECOMP_ENTER(0x25091D30u); 4880 4881 L_25091D30: 4882 PUSH32(esp, 0x25091C00u); /* 0x25091D30: push 0x25091c00 */ 4883 PUSH32(esp, 0x000F6963u); /* 0x25091D35: push 0xf6963 */ 4884 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D3A: call dword ptr [0x251515cc] */ 4885 RECOMP_FLAGS_IN(); 4886 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4888 esp = esp + 8; /* 0x25091D40: add esp, 8 */ 4889 _flag_k = FK_ADD; 4890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091D43: ret */ 4891 RECOMP_REGS_OUT(); 4892 } 4893 4894 void sub_25091D50(void) { 4895 int _fpu_cmp = 0; 4896 uint32_t _cf = 0; 4897 int _df = 1; 4898 uint32_t _flag_k = FK_NONE; 4899 uint32_t _flag_a = 0, _flag_b = 0; 4900 uint32_t _itail_tgt = 0; 4901 RECOMP_REGS_LOCALS 4902 RECOMP_ENTER(0x25091D50u); 4903 4904 L_25091D50: 4905 goto L_25091D60; /* 0x25091D50: jmp 0x25091d60 */ 4906 L_25091D60: 4907 PUSH32(esp, 0x25091C00u); /* 0x25091D60: push 0x25091c00 */ 4908 PUSH32(esp, 0x000F6964u); /* 0x25091D65: push 0xf6964 */ 4909 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D6A: call dword ptr [0x251515cc] */ 4910 RECOMP_FLAGS_IN(); 4911 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4913 esp = esp + 8; /* 0x25091D70: add esp, 8 */ 4914 _flag_k = FK_ADD; 4915 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091D73: ret */ 4916 RECOMP_REGS_OUT(); 4917 } 4918 4919 void sub_25091D60(void) { 4920 int _fpu_cmp = 0; 4921 uint32_t _cf = 0; 4922 int _df = 1; 4923 uint32_t _flag_k = FK_NONE; 4924 uint32_t _flag_a = 0, _flag_b = 0; 4925 uint32_t _itail_tgt = 0; 4926 RECOMP_REGS_LOCALS 4927 RECOMP_ENTER(0x25091D60u); 4928 4929 L_25091D60: 4930 PUSH32(esp, 0x25091C00u); /* 0x25091D60: push 0x25091c00 */ 4931 PUSH32(esp, 0x000F6964u); /* 0x25091D65: push 0xf6964 */ 4932 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D6A: call dword ptr [0x251515cc] */ 4933 RECOMP_FLAGS_IN(); 4934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4936 esp = esp + 8; /* 0x25091D70: add esp, 8 */ 4937 _flag_k = FK_ADD; 4938 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091D73: ret */ 4939 RECOMP_REGS_OUT(); 4940 } 4941 4942 void sub_25091D80(void) { 4943 int _fpu_cmp = 0; 4944 uint32_t _cf = 0; 4945 int _df = 1; 4946 uint32_t _flag_k = FK_NONE; 4947 uint32_t _flag_a = 0, _flag_b = 0; 4948 uint32_t _itail_tgt = 0; 4949 RECOMP_REGS_LOCALS 4950 RECOMP_ENTER(0x25091D80u); 4951 4952 L_25091D80: 4953 goto L_25091D90; /* 0x25091D80: jmp 0x25091d90 */ 4954 L_25091D90: 4955 PUSH32(esp, 0x25091C00u); /* 0x25091D90: push 0x25091c00 */ 4956 PUSH32(esp, 0x000F6959u); /* 0x25091D95: push 0xf6959 */ 4957 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D9A: call dword ptr [0x251515cc] */ 4958 RECOMP_FLAGS_IN(); 4959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4961 esp = esp + 8; /* 0x25091DA0: add esp, 8 */ 4962 _flag_k = FK_ADD; 4963 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091DA3: ret */ 4964 RECOMP_REGS_OUT(); 4965 } 4966 4967 void sub_25091D90(void) { 4968 int _fpu_cmp = 0; 4969 uint32_t _cf = 0; 4970 int _df = 1; 4971 uint32_t _flag_k = FK_NONE; 4972 uint32_t _flag_a = 0, _flag_b = 0; 4973 uint32_t _itail_tgt = 0; 4974 RECOMP_REGS_LOCALS 4975 RECOMP_ENTER(0x25091D90u); 4976 4977 L_25091D90: 4978 PUSH32(esp, 0x25091C00u); /* 0x25091D90: push 0x25091c00 */ 4979 PUSH32(esp, 0x000F6959u); /* 0x25091D95: push 0xf6959 */ 4980 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091D9A: call dword ptr [0x251515cc] */ 4981 RECOMP_FLAGS_IN(); 4982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4984 esp = esp + 8; /* 0x25091DA0: add esp, 8 */ 4985 _flag_k = FK_ADD; 4986 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091DA3: ret */ 4987 RECOMP_REGS_OUT(); 4988 } 4989 4990 void sub_25091DB0(void) { 4991 int _fpu_cmp = 0; 4992 uint32_t _cf = 0; 4993 int _df = 1; 4994 uint32_t _flag_k = FK_NONE; 4995 uint32_t _flag_a = 0, _flag_b = 0; 4996 uint32_t _itail_tgt = 0; 4997 RECOMP_REGS_LOCALS 4998 RECOMP_ENTER(0x25091DB0u); 4999 5000 L_25091DB0: 5001 goto L_25091DC0; /* 0x25091DB0: jmp 0x25091dc0 */ 5002 L_25091DC0: 5003 PUSH32(esp, 0x25091C00u); /* 0x25091DC0: push 0x25091c00 */ 5004 PUSH32(esp, 0x000F6967u); /* 0x25091DC5: push 0xf6967 */ 5005 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091DCA: call dword ptr [0x251515cc] */ 5006 RECOMP_FLAGS_IN(); 5007 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5009 esp = esp + 8; /* 0x25091DD0: add esp, 8 */ 5010 _flag_k = FK_ADD; 5011 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091DD3: ret */ 5012 RECOMP_REGS_OUT(); 5013 } 5014 5015 void sub_25091DC0(void) { 5016 int _fpu_cmp = 0; 5017 uint32_t _cf = 0; 5018 int _df = 1; 5019 uint32_t _flag_k = FK_NONE; 5020 uint32_t _flag_a = 0, _flag_b = 0; 5021 uint32_t _itail_tgt = 0; 5022 RECOMP_REGS_LOCALS 5023 RECOMP_ENTER(0x25091DC0u); 5024 5025 L_25091DC0: 5026 PUSH32(esp, 0x25091C00u); /* 0x25091DC0: push 0x25091c00 */ 5027 PUSH32(esp, 0x000F6967u); /* 0x25091DC5: push 0xf6967 */ 5028 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091DCA: call dword ptr [0x251515cc] */ 5029 RECOMP_FLAGS_IN(); 5030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5032 esp = esp + 8; /* 0x25091DD0: add esp, 8 */ 5033 _flag_k = FK_ADD; 5034 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091DD3: ret */ 5035 RECOMP_REGS_OUT(); 5036 } 5037 5038 void sub_25091DE0(void) { 5039 int _fpu_cmp = 0; 5040 uint32_t _cf = 0; 5041 int _df = 1; 5042 uint32_t _flag_k = FK_NONE; 5043 uint32_t _flag_a = 0, _flag_b = 0; 5044 uint32_t _itail_tgt = 0; 5045 RECOMP_REGS_LOCALS 5046 RECOMP_ENTER(0x25091DE0u); 5047 5048 L_25091DE0: 5049 goto L_25091DF0; /* 0x25091DE0: jmp 0x25091df0 */ 5050 L_25091DF0: 5051 PUSH32(esp, 0x25091C00u); /* 0x25091DF0: push 0x25091c00 */ 5052 PUSH32(esp, 0x000F6968u); /* 0x25091DF5: push 0xf6968 */ 5053 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091DFA: call dword ptr [0x251515cc] */ 5054 RECOMP_FLAGS_IN(); 5055 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5057 esp = esp + 8; /* 0x25091E00: add esp, 8 */ 5058 _flag_k = FK_ADD; 5059 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091E03: ret */ 5060 RECOMP_REGS_OUT(); 5061 } 5062 5063 void sub_25091DF0(void) { 5064 int _fpu_cmp = 0; 5065 uint32_t _cf = 0; 5066 int _df = 1; 5067 uint32_t _flag_k = FK_NONE; 5068 uint32_t _flag_a = 0, _flag_b = 0; 5069 uint32_t _itail_tgt = 0; 5070 RECOMP_REGS_LOCALS 5071 RECOMP_ENTER(0x25091DF0u); 5072 5073 L_25091DF0: 5074 PUSH32(esp, 0x25091C00u); /* 0x25091DF0: push 0x25091c00 */ 5075 PUSH32(esp, 0x000F6968u); /* 0x25091DF5: push 0xf6968 */ 5076 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091DFA: call dword ptr [0x251515cc] */ 5077 RECOMP_FLAGS_IN(); 5078 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5079 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5080 esp = esp + 8; /* 0x25091E00: add esp, 8 */ 5081 _flag_k = FK_ADD; 5082 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091E03: ret */ 5083 RECOMP_REGS_OUT(); 5084 } 5085 5086 void sub_25091E10(void) { 5087 int _fpu_cmp = 0; 5088 uint32_t _cf = 0; 5089 int _df = 1; 5090 uint32_t _flag_k = FK_NONE; 5091 uint32_t _flag_a = 0, _flag_b = 0; 5092 uint32_t _itail_tgt = 0; 5093 RECOMP_REGS_LOCALS 5094 RECOMP_ENTER(0x25091E10u); 5095 5096 L_25091E10: 5097 goto L_25091E20; /* 0x25091E10: jmp 0x25091e20 */ 5098 L_25091E20: 5099 PUSH32(esp, 0x250917E0u); /* 0x25091E20: push 0x250917e0 */ 5100 PUSH32(esp, 0x000F696Bu); /* 0x25091E25: push 0xf696b */ 5101 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091E2A: call dword ptr [0x251515cc] */ 5102 RECOMP_FLAGS_IN(); 5103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5105 esp = esp + 8; /* 0x25091E30: add esp, 8 */ 5106 _flag_k = FK_ADD; 5107 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091E33: ret */ 5108 RECOMP_REGS_OUT(); 5109 } 5110 5111 void sub_25091E20(void) { 5112 int _fpu_cmp = 0; 5113 uint32_t _cf = 0; 5114 int _df = 1; 5115 uint32_t _flag_k = FK_NONE; 5116 uint32_t _flag_a = 0, _flag_b = 0; 5117 uint32_t _itail_tgt = 0; 5118 RECOMP_REGS_LOCALS 5119 RECOMP_ENTER(0x25091E20u); 5120 5121 L_25091E20: 5122 PUSH32(esp, 0x250917E0u); /* 0x25091E20: push 0x250917e0 */ 5123 PUSH32(esp, 0x000F696Bu); /* 0x25091E25: push 0xf696b */ 5124 RECOMP_ICALL(MEM32(0x251515CC)); /* 0x25091E2A: call dword ptr [0x251515cc] */ 5125 RECOMP_FLAGS_IN(); 5126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5128 esp = esp + 8; /* 0x25091E30: add esp, 8 */ 5129 _flag_k = FK_ADD; 5130 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091E33: ret */ 5131 RECOMP_REGS_OUT(); 5132 } 5133 5134 void sub_25091E40(void) { 5135 int _fpu_cmp = 0; 5136 uint32_t _cf = 0; 5137 int _df = 1; 5138 uint32_t _flag_k = FK_NONE; 5139 uint32_t _flag_a = 0, _flag_b = 0; 5140 uint32_t _itail_tgt = 0; 5141 RECOMP_REGS_LOCALS 5142 RECOMP_ENTER(0x25091E40u); 5143 5144 L_25091E40: 5145 PUSH32(esp, ebp); /* 0x25091E40: push ebp */ 5146 ebp = esp; /* 0x25091E41: mov ebp, esp */ 5147 PUSH32(esp, 0xFFFFFFFFu); /* 0x25091E43: push -1 */ 5148 PUSH32(esp, 0x251494CBu); /* 0x25091E45: push 0x251494cb */ 5149 eax = MEM32(FS_BASE + (0)); /* 0x25091E4A: mov eax, dword ptr fs:[0] */ 5150 PUSH32(esp, eax); /* 0x25091E50: push eax */ 5151 MEM32(FS_BASE + (0)) = esp; /* 0x25091E51: mov dword ptr fs:[0], esp */ 5152 PUSH32(esp, ecx); /* 0x25091E58: push ecx */ 5153 PUSH32(esp, 0x5Cu); /* 0x25091E59: push 0x5c */ 5154 RECOMP_ICALL(0x251380D0u); /* 0x25091E5B: call 0x251380d0 */ /* not lifted */ 5155 RECOMP_FLAGS_IN(); 5156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5158 esp = esp + 4; /* 0x25091E60: add esp, 4 */ 5159 _flag_k = FK_ADD; 5160 MEM32(ebp + (-0x10)) = eax; /* 0x25091E63: mov dword ptr [ebp - 0x10], eax */ 5161 /* test eax, eax */ /* 0x25091E66: test eax, eax */ 5162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5163 _cf = 0; 5164 _flag_k = FK_TEST; 5165 MEM32(ebp + (-0x4)) = 0; /* 0x25091E68: mov dword ptr [ebp - 4], 0 */ 5166 if (TEST_Z(_flag_a, _flag_b)) goto L_25091E8A; /* 0x25091E6F: je 0x25091e8a */ 5167 L_25091E71: 5168 ecx = MEM32(ebp + 0x8); /* 0x25091E71: mov ecx, dword ptr [ebp + 8] */ 5169 PUSH32(esp, ecx); /* 0x25091E74: push ecx */ 5170 ecx = eax; /* 0x25091E75: mov ecx, eax */ 5171 RECOMP_ICALL(0x250A1B50u); /* 0x25091E77: call 0x250a1b50 */ /* not lifted */ 5172 RECOMP_FLAGS_IN(); 5173 ecx = MEM32(ebp + (-0xC)); /* 0x25091E7C: mov ecx, dword ptr [ebp - 0xc] */ 5174 MEM32(FS_BASE + (0)) = ecx; /* 0x25091E7F: mov dword ptr fs:[0], ecx */ 5175 esp = ebp; /* 0x25091E86: mov esp, ebp */ 5176 ebp = POP32_VAL(esp); /* 0x25091E88: pop ebp */ 5177 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091E89: ret */ 5178 L_25091E8A: 5179 ecx = MEM32(ebp + (-0xC)); /* 0x25091E8A: mov ecx, dword ptr [ebp - 0xc] */ 5180 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5181 eax = 0; /* 0x25091E8D: xor eax, eax */ 5182 _cf = 0; 5183 _flag_k = FK_TEST; 5184 MEM32(FS_BASE + (0)) = ecx; /* 0x25091E8F: mov dword ptr fs:[0], ecx */ 5185 esp = ebp; /* 0x25091E96: mov esp, ebp */ 5186 ebp = POP32_VAL(esp); /* 0x25091E98: pop ebp */ 5187 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x25091E99: ret */ 5188 RECOMP_REGS_OUT(); 5189 }