client/game/ar.dll/lifted-0001.c (691093B)
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_24003170(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(0x24003170u); 17 18 L_24003170: 19 PUSH32(esp, ebp); /* 0x24003170: push ebp */ 20 ebp = esp; /* 0x24003171: mov ebp, esp */ 21 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x24003173: mov al, byte ptr [ebp + 0xb] */ 22 PUSH32(esp, ebx); /* 0x24003176: push ebx */ 23 PUSH32(esp, esi); /* 0x24003177: push esi */ 24 esi = ecx; /* 0x24003178: mov esi, ecx */ 25 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x2400317A: mov cl, byte ptr [ebp + 0xb] */ 26 PUSH32(esp, edi); /* 0x2400317D: push edi */ 27 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 28 ebx = 0; /* 0x2400317E: xor ebx, ebx */ 29 _cf = 0; 30 _flag_k = FK_TEST; 31 PUSH32(esp, 0x40u); /* 0x24003180: push 0x40 */ 32 MEM8(esi + 0x4) = (uint8_t)(LO8(eax)); /* 0x24003182: mov byte ptr [esi + 4], al */ 33 MEM8(esi + 0x5) = (uint8_t)(LO8(ecx)); /* 0x24003185: mov byte ptr [esi + 5], cl */ 34 MEM8(esi + 0x10) = (uint8_t)(LO8(ebx)); /* 0x24003188: mov byte ptr [esi + 0x10], bl */ 35 RECOMP_ICALL(0x24009838u); /* 0x2400318B: call 0x24009838 */ /* not lifted */ 36 RECOMP_FLAGS_IN(); 37 MEM32(eax + 0x4) = ebx; /* 0x24003190: mov dword ptr [eax + 4], ebx */ 38 MEM8(eax + 0x3D) = (uint8_t)(LO8(ebx)); /* 0x24003193: mov byte ptr [eax + 0x3d], bl */ 39 SET_LO8(ecx, 1); /* 0x24003196: mov cl, 1 */ 40 MEM8(eax + 0x3C) = (uint8_t)(LO8(ecx)); /* 0x24003198: mov byte ptr [eax + 0x3c], cl */ 41 MEM32(esi + 0xC) = eax; /* 0x2400319B: mov dword ptr [esi + 0xc], eax */ 42 MEM8(eax + 0x3D) = (uint8_t)(LO8(ecx)); /* 0x2400319E: mov byte ptr [eax + 0x3d], cl */ 43 edx = MEM32(esi + 0xC); /* 0x240031A1: mov edx, dword ptr [esi + 0xc] */ 44 MEM32(edx) = ebx; /* 0x240031A4: mov dword ptr [edx], ebx */ 45 eax = MEM32(esi + 0xC); /* 0x240031A6: mov eax, dword ptr [esi + 0xc] */ 46 MEM32(eax + 0x8) = ebx; /* 0x240031A9: mov dword ptr [eax + 8], ebx */ 47 edi = MEM32(esi + 0xC); /* 0x240031AC: mov edi, dword ptr [esi + 0xc] */ 48 PUSH32(esp, 0x40u); /* 0x240031AF: push 0x40 */ 49 RECOMP_ICALL(0x24009838u); /* 0x240031B1: call 0x24009838 */ /* not lifted */ 50 RECOMP_FLAGS_IN(); 51 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x240031B6: mov cl, byte ptr [ebp + 0xb] */ 52 edx = MEM32(ebp + 0x8); /* 0x240031B9: mov edx, dword ptr [ebp + 8] */ 53 MEM32(eax + 0x4) = edi; /* 0x240031BC: mov dword ptr [eax + 4], edi */ 54 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x240031BF: mov byte ptr [eax + 0x3c], bl */ 55 MEM8(eax + 0x3D) = (uint8_t)(LO8(ebx)); /* 0x240031C2: mov byte ptr [eax + 0x3d], bl */ 56 MEM32(esi + 0x8) = eax; /* 0x240031C5: mov dword ptr [esi + 8], eax */ 57 MEM32(eax) = eax; /* 0x240031C8: mov dword ptr [eax], eax */ 58 eax = MEM32(esi + 0x8); /* 0x240031CA: mov eax, dword ptr [esi + 8] */ 59 MEM32(eax + 0x8) = eax; /* 0x240031CD: mov dword ptr [eax + 8], eax */ 60 MEM32(esi + 0x14) = ebx; /* 0x240031D0: mov dword ptr [esi + 0x14], ebx */ 61 MEM32(esi + 0x34) = ebx; /* 0x240031D3: mov dword ptr [esi + 0x34], ebx */ 62 MEM32(esi + 0x38) = ebx; /* 0x240031D6: mov dword ptr [esi + 0x38], ebx */ 63 MEM32(esi + 0x3C) = ebx; /* 0x240031D9: mov dword ptr [esi + 0x3c], ebx */ 64 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 65 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 66 esp = esp + 8; /* 0x240031DC: add esp, 8 */ 67 _flag_k = FK_ADD; 68 MEM8(esi + 0x30) = (uint8_t)(LO8(ecx)); /* 0x240031DF: mov byte ptr [esi + 0x30], cl */ 69 edi = POP32_VAL(esp); /* 0x240031E2: pop edi */ 70 MEM32(esi + 0x18) = ebx; /* 0x240031E3: mov dword ptr [esi + 0x18], ebx */ 71 MEM8(esi + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x240031E6: mov byte ptr [esi + 0x1c], bl */ 72 MEM32(esi) = 0x2400B11Cu; /* 0x240031E9: mov dword ptr [esi], 0x2400b11c */ 73 MEM32(esi + 0x2C) = edx; /* 0x240031EF: mov dword ptr [esi + 0x2c], edx */ 74 eax = esi; /* 0x240031F2: mov eax, esi */ 75 esi = POP32_VAL(esp); /* 0x240031F4: pop esi */ 76 ebx = POP32_VAL(esp); /* 0x240031F5: pop ebx */ 77 ebp = POP32_VAL(esp); /* 0x240031F6: pop ebp */ 78 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x240031F7: ret 4 */ 79 RECOMP_REGS_OUT(); 80 } 81 82 void sub_24003200(void) { 83 int _fpu_cmp = 0; 84 uint32_t _cf = 0; 85 int _df = 1; 86 uint32_t _flag_k = FK_NONE; 87 uint32_t _flag_a = 0, _flag_b = 0; 88 uint32_t _itail_tgt = 0; 89 RECOMP_REGS_LOCALS 90 RECOMP_ENTER(0x24003200u); 91 92 L_24003200: 93 PUSH32(esp, ebp); /* 0x24003200: push ebp */ 94 ebp = esp; /* 0x24003201: mov ebp, esp */ 95 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 96 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 97 esp = esp - 0xCu; /* 0x24003203: sub esp, 0xc */ 98 _flag_k = FK_CMP; 99 PUSH32(esp, esi); /* 0x24003206: push esi */ 100 PUSH32(esp, edi); /* 0x24003207: push edi */ 101 edi = ecx; /* 0x24003208: mov edi, ecx */ 102 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 103 esi = 0; /* 0x2400320A: xor esi, esi */ 104 _cf = 0; 105 _flag_k = FK_TEST; 106 L_2400320C: 107 eax = MEM32(edi + 0x34); /* 0x2400320C: mov eax, dword ptr [edi + 0x34] */ 108 /* test eax, eax */ /* 0x2400320F: test eax, eax */ 109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 110 _cf = 0; 111 _flag_k = FK_TEST; 112 if (TEST_Z(_flag_a, _flag_b)) goto L_24003230; /* 0x24003211: je 0x24003230 */ 113 L_24003213: 114 ecx = MEM32(edi + 0x38); /* 0x24003213: mov ecx, dword ptr [edi + 0x38] */ 115 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 117 ecx = ecx - eax; /* 0x24003216: sub ecx, eax */ 118 _flag_k = FK_CMP; 119 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24003218: sar ecx, 2 */ 120 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 121 ecx = (uint32_t)((int32_t)ecx >> 2u); 122 /* cmp esi, ecx */ /* 0x2400321B: cmp esi, ecx */ 123 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 125 _flag_k = FK_CMP; 126 if (CMP_AE(_flag_a, _flag_b)) goto L_24003230; /* 0x2400321D: jae 0x24003230 */ 127 L_2400321F: 128 edx = eax; /* 0x2400321F: mov edx, eax */ 129 eax = MEM32(edx + esi * 4); /* 0x24003221: mov eax, dword ptr [edx + esi*4] */ 130 PUSH32(esp, eax); /* 0x24003224: push eax */ 131 RECOMP_ICALL(0x240097F2u); /* 0x24003225: call 0x240097f2 */ /* not lifted */ 132 RECOMP_FLAGS_IN(); 133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 135 esp = esp + 4; /* 0x2400322A: add esp, 4 */ 136 _flag_k = FK_ADD; 137 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 138 esi = esi + 1; /* 0x2400322D: inc esi */ 139 _flag_k = FK_INC; 140 RECOMP_BACKEDGE(); 141 goto L_2400320C; /* 0x2400322E: jmp 0x2400320c */ 142 L_24003230: 143 ecx = MEM32(edi + 0x14); /* 0x24003230: mov ecx, dword ptr [edi + 0x14] */ 144 /* test ecx, ecx */ /* 0x24003233: test ecx, ecx */ 145 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 146 _cf = 0; 147 _flag_k = FK_TEST; 148 esi = edi + 0x4; /* 0x24003235: lea esi, [edi + 4] */ 149 PUSH32(esp, ebx); /* 0x24003238: push ebx */ 150 ebx = MEM32(esi + 0x4); /* 0x24003239: mov ebx, dword ptr [esi + 4] */ 151 eax = MEM32(ebx); /* 0x2400323C: mov eax, dword ptr [ebx] */ 152 MEM32(ebp + (-0x4)) = eax; /* 0x2400323E: mov dword ptr [ebp - 4], eax */ 153 if (TEST_Z(_flag_a, _flag_b)) goto L_24003275; /* 0x24003241: je 0x24003275 */ 154 L_24003243: 155 ecx = eax; /* 0x24003243: mov ecx, eax */ 156 /* cmp eax, ecx */ /* 0x24003245: cmp eax, ecx */ 157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 159 _flag_k = FK_CMP; 160 if (CMP_NE(_flag_a, _flag_b)) goto L_24003275; /* 0x24003247: jne 0x24003275 */ 161 L_24003249: 162 /* cmp ebx, ebx */ /* 0x24003249: cmp ebx, ebx */ 163 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 165 _flag_k = FK_CMP; 166 if (CMP_NE(_flag_a, _flag_b)) goto L_24003275; /* 0x2400324B: jne 0x24003275 */ 167 L_2400324D: 168 ecx = MEM32(ebx + 0x4); /* 0x2400324D: mov ecx, dword ptr [ebx + 4] */ 169 PUSH32(esp, ecx); /* 0x24003250: push ecx */ 170 ecx = esi; /* 0x24003251: mov ecx, esi */ 171 RECOMP_ICALL(0x24002790u); /* 0x24003253: call 0x24002790 */ /* not lifted */ 172 RECOMP_FLAGS_IN(); 173 eax = MEM32(esi + 0x8); /* 0x24003258: mov eax, dword ptr [esi + 8] */ 174 edx = MEM32(esi + 0x4); /* 0x2400325B: mov edx, dword ptr [esi + 4] */ 175 MEM32(edx + 0x4) = eax; /* 0x2400325E: mov dword ptr [edx + 4], eax */ 176 eax = MEM32(esi + 0x4); /* 0x24003261: mov eax, dword ptr [esi + 4] */ 177 MEM32(esi + 0x10) = 0; /* 0x24003264: mov dword ptr [esi + 0x10], 0 */ 178 MEM32(eax) = eax; /* 0x2400326B: mov dword ptr [eax], eax */ 179 esi = MEM32(esi + 0x4); /* 0x2400326D: mov esi, dword ptr [esi + 4] */ 180 MEM32(esi + 0x8) = esi; /* 0x24003270: mov dword ptr [esi + 8], esi */ 181 goto L_2400329A; /* 0x24003273: jmp 0x2400329a */ 182 L_24003275: 183 /* cmp eax, ebx */ /* 0x24003275: cmp eax, ebx */ 184 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 186 _flag_k = FK_CMP; 187 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400329A; /* 0x24003277: je 0x2400329a */ 188 L_24003279: 189 ecx = ebp + (-0x4); /* 0x24003279: lea ecx, [ebp - 4] */ 190 MEM32(ebp + (-0x8)) = eax; /* 0x2400327C: mov dword ptr [ebp - 8], eax */ 191 RECOMP_ICALL(0x24002D30u); /* 0x2400327F: call 0x24002d30 */ /* not lifted */ 192 RECOMP_FLAGS_IN(); 193 ecx = MEM32(ebp + (-0x8)); /* 0x24003284: mov ecx, dword ptr [ebp - 8] */ 194 PUSH32(esp, ecx); /* 0x24003287: push ecx */ 195 edx = ebp + (-0xC); /* 0x24003288: lea edx, [ebp - 0xc] */ 196 PUSH32(esp, edx); /* 0x2400328B: push edx */ 197 ecx = esi; /* 0x2400328C: mov ecx, esi */ 198 RECOMP_ICALL(0x24002330u); /* 0x2400328E: call 0x24002330 */ /* not lifted */ 199 RECOMP_FLAGS_IN(); 200 eax = MEM32(ebp + (-0x4)); /* 0x24003293: mov eax, dword ptr [ebp - 4] */ 201 /* cmp eax, ebx */ /* 0x24003296: cmp eax, ebx */ 202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 204 _flag_k = FK_CMP; 205 RECOMP_BACKEDGE(); 206 if (CMP_NE(_flag_a, _flag_b)) goto L_24003279; /* 0x24003298: jne 0x24003279 */ 207 L_2400329A: 208 MEM8(edi + 0x1C) = (uint8_t)(0); /* 0x2400329A: mov byte ptr [edi + 0x1c], 0 */ 209 edx = MEM32(edi + 0x38); /* 0x2400329E: mov edx, dword ptr [edi + 0x38] */ 210 ecx = MEM32(edi + 0x34); /* 0x240032A1: mov ecx, dword ptr [edi + 0x34] */ 211 eax = edx; /* 0x240032A4: mov eax, edx */ 212 /* cmp eax, edx */ /* 0x240032A6: cmp eax, edx */ 213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 215 _flag_k = FK_CMP; 216 ebx = POP32_VAL(esp); /* 0x240032A8: pop ebx */ 217 if (CMP_EQ(_flag_a, _flag_b)) goto L_240032B9; /* 0x240032A9: je 0x240032b9 */ 218 L_240032AB: 219 esi = MEM32(eax); /* 0x240032AB: mov esi, dword ptr [eax] */ 220 MEM32(ecx) = esi; /* 0x240032AD: mov dword ptr [ecx], esi */ 221 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 223 eax = eax + 4; /* 0x240032AF: add eax, 4 */ 224 _flag_k = FK_ADD; 225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 227 ecx = ecx + 4; /* 0x240032B2: add ecx, 4 */ 228 _flag_k = FK_ADD; 229 /* cmp eax, edx */ /* 0x240032B5: cmp eax, edx */ 230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 232 _flag_k = FK_CMP; 233 RECOMP_BACKEDGE(); 234 if (CMP_NE(_flag_a, _flag_b)) goto L_240032AB; /* 0x240032B7: jne 0x240032ab */ 235 L_240032B9: 236 eax = MEM32(edi + 0x38); /* 0x240032B9: mov eax, dword ptr [edi + 0x38] */ 237 MEM32(edi + 0x38) = ecx; /* 0x240032BC: mov dword ptr [edi + 0x38], ecx */ 238 MEM32(edi + 0x18) = 0; /* 0x240032BF: mov dword ptr [edi + 0x18], 0 */ 239 edi = POP32_VAL(esp); /* 0x240032C6: pop edi */ 240 MEM32(ebp + (-0xC)) = eax; /* 0x240032C7: mov dword ptr [ebp - 0xc], eax */ 241 esi = POP32_VAL(esp); /* 0x240032CA: pop esi */ 242 esp = ebp; /* 0x240032CB: mov esp, ebp */ 243 ebp = POP32_VAL(esp); /* 0x240032CD: pop ebp */ 244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x240032CE: ret */ 245 RECOMP_REGS_OUT(); 246 } 247 248 void sub_240032D0(void) { 249 int _fpu_cmp = 0; 250 uint32_t _cf = 0; 251 int _df = 1; 252 uint32_t _flag_k = FK_NONE; 253 uint32_t _flag_a = 0, _flag_b = 0; 254 uint32_t _itail_tgt = 0; 255 RECOMP_REGS_LOCALS 256 RECOMP_ENTER(0x240032D0u); 257 258 L_240032D0: 259 PUSH32(esp, ebp); /* 0x240032D0: push ebp */ 260 ebp = esp; /* 0x240032D1: mov ebp, esp */ 261 eax = MEM32(ebp + 0x18); /* 0x240032D3: mov eax, dword ptr [ebp + 0x18] */ 262 edx = MEM32(ebp + 0x14); /* 0x240032D6: mov edx, dword ptr [ebp + 0x14] */ 263 PUSH32(esp, eax); /* 0x240032D9: push eax */ 264 eax = MEM32(ebp + 0x10); /* 0x240032DA: mov eax, dword ptr [ebp + 0x10] */ 265 PUSH32(esp, edx); /* 0x240032DD: push edx */ 266 edx = MEM32(ebp + 0xC); /* 0x240032DE: mov edx, dword ptr [ebp + 0xc] */ 267 PUSH32(esp, eax); /* 0x240032E1: push eax */ 268 eax = MEM32(ebp + 0x8); /* 0x240032E2: mov eax, dword ptr [ebp + 8] */ 269 PUSH32(esp, edx); /* 0x240032E5: push edx */ 270 PUSH32(esp, 9); /* 0x240032E6: push 9 */ 271 PUSH32(esp, eax); /* 0x240032E8: push eax */ 272 RECOMP_ICALL(0x24003FA0u); /* 0x240032E9: call 0x24003fa0 */ /* not lifted */ 273 RECOMP_FLAGS_IN(); 274 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 275 eax = 0; /* 0x240032EE: xor eax, eax */ 276 _cf = 0; 277 _flag_k = FK_TEST; 278 ebp = POP32_VAL(esp); /* 0x240032F0: pop ebp */ 279 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x240032F1: ret 0x14 */ 280 RECOMP_REGS_OUT(); 281 } 282 283 void sub_24003300(void) { 284 int _fpu_cmp = 0; 285 uint32_t _cf = 0; 286 int _df = 1; 287 uint32_t _flag_k = FK_NONE; 288 uint32_t _flag_a = 0, _flag_b = 0; 289 uint32_t _itail_tgt = 0; 290 RECOMP_REGS_LOCALS 291 RECOMP_ENTER(0x24003300u); 292 293 L_24003300: 294 PUSH32(esp, ebp); /* 0x24003300: push ebp */ 295 ebp = esp; /* 0x24003301: mov ebp, esp */ 296 edx = MEM32(ebp + 0x8); /* 0x24003303: mov edx, dword ptr [ebp + 8] */ 297 PUSH32(esp, 1); /* 0x24003306: push 1 */ 298 PUSH32(esp, 1); /* 0x24003308: push 1 */ 299 PUSH32(esp, 1); /* 0x2400330A: push 1 */ 300 eax = ebp + 0xC; /* 0x2400330C: lea eax, [ebp + 0xc] */ 301 PUSH32(esp, eax); /* 0x2400330F: push eax */ 302 PUSH32(esp, 0); /* 0x24003310: push 0 */ 303 PUSH32(esp, edx); /* 0x24003312: push edx */ 304 RECOMP_ICALL(0x24003FA0u); /* 0x24003313: call 0x24003fa0 */ /* not lifted */ 305 RECOMP_FLAGS_IN(); 306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 307 eax = 0; /* 0x24003318: xor eax, eax */ 308 _cf = 0; 309 _flag_k = FK_TEST; 310 ebp = POP32_VAL(esp); /* 0x2400331A: pop ebp */ 311 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400331B: ret 8 */ 312 RECOMP_REGS_OUT(); 313 } 314 315 void sub_24003320(void) { 316 int _fpu_cmp = 0; 317 uint32_t _cf = 0; 318 int _df = 1; 319 uint32_t _flag_k = FK_NONE; 320 uint32_t _flag_a = 0, _flag_b = 0; 321 uint32_t _itail_tgt = 0; 322 RECOMP_REGS_LOCALS 323 RECOMP_ENTER(0x24003320u); 324 325 L_24003320: 326 PUSH32(esp, ebp); /* 0x24003320: push ebp */ 327 ebp = esp; /* 0x24003321: mov ebp, esp */ 328 edx = MEM32(ebp + 0x8); /* 0x24003323: mov edx, dword ptr [ebp + 8] */ 329 PUSH32(esp, 1); /* 0x24003326: push 1 */ 330 PUSH32(esp, 1); /* 0x24003328: push 1 */ 331 PUSH32(esp, 1); /* 0x2400332A: push 1 */ 332 eax = ebp + 0xC; /* 0x2400332C: lea eax, [ebp + 0xc] */ 333 PUSH32(esp, eax); /* 0x2400332F: push eax */ 334 PUSH32(esp, 1); /* 0x24003330: push 1 */ 335 PUSH32(esp, edx); /* 0x24003332: push edx */ 336 RECOMP_ICALL(0x24003FA0u); /* 0x24003333: call 0x24003fa0 */ /* not lifted */ 337 RECOMP_FLAGS_IN(); 338 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 339 eax = 0; /* 0x24003338: xor eax, eax */ 340 _cf = 0; 341 _flag_k = FK_TEST; 342 ebp = POP32_VAL(esp); /* 0x2400333A: pop ebp */ 343 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400333B: ret 8 */ 344 RECOMP_REGS_OUT(); 345 } 346 347 void sub_24003340(void) { 348 int _fpu_cmp = 0; 349 uint32_t _cf = 0; 350 int _df = 1; 351 uint32_t _flag_k = FK_NONE; 352 uint32_t _flag_a = 0, _flag_b = 0; 353 uint32_t _itail_tgt = 0; 354 RECOMP_REGS_LOCALS 355 RECOMP_ENTER(0x24003340u); 356 357 L_24003340: 358 PUSH32(esp, ebp); /* 0x24003340: push ebp */ 359 ebp = esp; /* 0x24003341: mov ebp, esp */ 360 edx = MEM32(ebp + 0x8); /* 0x24003343: mov edx, dword ptr [ebp + 8] */ 361 PUSH32(esp, 1); /* 0x24003346: push 1 */ 362 PUSH32(esp, 1); /* 0x24003348: push 1 */ 363 PUSH32(esp, 2); /* 0x2400334A: push 2 */ 364 eax = ebp + 0xC; /* 0x2400334C: lea eax, [ebp + 0xc] */ 365 PUSH32(esp, eax); /* 0x2400334F: push eax */ 366 PUSH32(esp, 2); /* 0x24003350: push 2 */ 367 PUSH32(esp, edx); /* 0x24003352: push edx */ 368 RECOMP_ICALL(0x24003FA0u); /* 0x24003353: call 0x24003fa0 */ /* not lifted */ 369 RECOMP_FLAGS_IN(); 370 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 371 eax = 0; /* 0x24003358: xor eax, eax */ 372 _cf = 0; 373 _flag_k = FK_TEST; 374 ebp = POP32_VAL(esp); /* 0x2400335A: pop ebp */ 375 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400335B: ret 8 */ 376 RECOMP_REGS_OUT(); 377 } 378 379 void sub_24003360(void) { 380 int _fpu_cmp = 0; 381 uint32_t _cf = 0; 382 int _df = 1; 383 uint32_t _flag_k = FK_NONE; 384 uint32_t _flag_a = 0, _flag_b = 0; 385 uint32_t _itail_tgt = 0; 386 RECOMP_REGS_LOCALS 387 RECOMP_ENTER(0x24003360u); 388 389 L_24003360: 390 PUSH32(esp, ebp); /* 0x24003360: push ebp */ 391 ebp = esp; /* 0x24003361: mov ebp, esp */ 392 edx = MEM32(ebp + 0x8); /* 0x24003363: mov edx, dword ptr [ebp + 8] */ 393 PUSH32(esp, 1); /* 0x24003366: push 1 */ 394 PUSH32(esp, 1); /* 0x24003368: push 1 */ 395 PUSH32(esp, 4); /* 0x2400336A: push 4 */ 396 eax = ebp + 0xC; /* 0x2400336C: lea eax, [ebp + 0xc] */ 397 PUSH32(esp, eax); /* 0x2400336F: push eax */ 398 PUSH32(esp, 3); /* 0x24003370: push 3 */ 399 PUSH32(esp, edx); /* 0x24003372: push edx */ 400 RECOMP_ICALL(0x24003FA0u); /* 0x24003373: call 0x24003fa0 */ /* not lifted */ 401 RECOMP_FLAGS_IN(); 402 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 403 eax = 0; /* 0x24003378: xor eax, eax */ 404 _cf = 0; 405 _flag_k = FK_TEST; 406 ebp = POP32_VAL(esp); /* 0x2400337A: pop ebp */ 407 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400337B: ret 8 */ 408 RECOMP_REGS_OUT(); 409 } 410 411 void sub_24003380(void) { 412 int _fpu_cmp = 0; 413 uint32_t _cf = 0; 414 int _df = 1; 415 uint32_t _flag_k = FK_NONE; 416 uint32_t _flag_a = 0, _flag_b = 0; 417 uint32_t _itail_tgt = 0; 418 RECOMP_REGS_LOCALS 419 RECOMP_ENTER(0x24003380u); 420 421 L_24003380: 422 PUSH32(esp, ebp); /* 0x24003380: push ebp */ 423 ebp = esp; /* 0x24003381: mov ebp, esp */ 424 edx = MEM32(ebp + 0x8); /* 0x24003383: mov edx, dword ptr [ebp + 8] */ 425 PUSH32(esp, 1); /* 0x24003386: push 1 */ 426 PUSH32(esp, 1); /* 0x24003388: push 1 */ 427 PUSH32(esp, 4); /* 0x2400338A: push 4 */ 428 eax = ebp + 0xC; /* 0x2400338C: lea eax, [ebp + 0xc] */ 429 PUSH32(esp, eax); /* 0x2400338F: push eax */ 430 PUSH32(esp, 0x11u); /* 0x24003390: push 0x11 */ 431 PUSH32(esp, edx); /* 0x24003392: push edx */ 432 RECOMP_ICALL(0x24003FA0u); /* 0x24003393: call 0x24003fa0 */ /* not lifted */ 433 RECOMP_FLAGS_IN(); 434 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 435 eax = 0; /* 0x24003398: xor eax, eax */ 436 _cf = 0; 437 _flag_k = FK_TEST; 438 ebp = POP32_VAL(esp); /* 0x2400339A: pop ebp */ 439 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400339B: ret 8 */ 440 RECOMP_REGS_OUT(); 441 } 442 443 void sub_240033A0(void) { 444 int _fpu_cmp = 0; 445 uint32_t _cf = 0; 446 int _df = 1; 447 uint32_t _flag_k = FK_NONE; 448 uint32_t _flag_a = 0, _flag_b = 0; 449 uint32_t _itail_tgt = 0; 450 RECOMP_REGS_LOCALS 451 RECOMP_ENTER(0x240033A0u); 452 453 L_240033A0: 454 PUSH32(esp, ebp); /* 0x240033A0: push ebp */ 455 ebp = esp; /* 0x240033A1: mov ebp, esp */ 456 edx = MEM32(ebp + 0x8); /* 0x240033A3: mov edx, dword ptr [ebp + 8] */ 457 PUSH32(esp, 1); /* 0x240033A6: push 1 */ 458 PUSH32(esp, 1); /* 0x240033A8: push 1 */ 459 PUSH32(esp, 4); /* 0x240033AA: push 4 */ 460 eax = ebp + 0xC; /* 0x240033AC: lea eax, [ebp + 0xc] */ 461 PUSH32(esp, eax); /* 0x240033AF: push eax */ 462 PUSH32(esp, 0xAu); /* 0x240033B0: push 0xa */ 463 PUSH32(esp, edx); /* 0x240033B2: push edx */ 464 RECOMP_ICALL(0x24003FA0u); /* 0x240033B3: call 0x24003fa0 */ /* not lifted */ 465 RECOMP_FLAGS_IN(); 466 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 467 eax = 0; /* 0x240033B8: xor eax, eax */ 468 _cf = 0; 469 _flag_k = FK_TEST; 470 ebp = POP32_VAL(esp); /* 0x240033BA: pop ebp */ 471 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240033BB: ret 8 */ 472 RECOMP_REGS_OUT(); 473 } 474 475 void sub_240033C0(void) { 476 int _fpu_cmp = 0; 477 uint32_t _cf = 0; 478 int _df = 1; 479 uint32_t _flag_k = FK_NONE; 480 uint32_t _flag_a = 0, _flag_b = 0; 481 uint32_t _itail_tgt = 0; 482 RECOMP_REGS_LOCALS 483 RECOMP_ENTER(0x240033C0u); 484 485 L_240033C0: 486 PUSH32(esp, ebp); /* 0x240033C0: push ebp */ 487 ebp = esp; /* 0x240033C1: mov ebp, esp */ 488 edx = MEM32(ebp + 0x8); /* 0x240033C3: mov edx, dword ptr [ebp + 8] */ 489 PUSH32(esp, 1); /* 0x240033C6: push 1 */ 490 PUSH32(esp, 1); /* 0x240033C8: push 1 */ 491 PUSH32(esp, 8); /* 0x240033CA: push 8 */ 492 eax = ebp + 0xC; /* 0x240033CC: lea eax, [ebp + 0xc] */ 493 PUSH32(esp, eax); /* 0x240033CF: push eax */ 494 PUSH32(esp, 0xBu); /* 0x240033D0: push 0xb */ 495 PUSH32(esp, edx); /* 0x240033D2: push edx */ 496 RECOMP_ICALL(0x24003FA0u); /* 0x240033D3: call 0x24003fa0 */ /* not lifted */ 497 RECOMP_FLAGS_IN(); 498 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 499 eax = 0; /* 0x240033D8: xor eax, eax */ 500 _cf = 0; 501 _flag_k = FK_TEST; 502 ebp = POP32_VAL(esp); /* 0x240033DA: pop ebp */ 503 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x240033DB: ret 0xc */ 504 RECOMP_REGS_OUT(); 505 } 506 507 void sub_240033E0(void) { 508 int _fpu_cmp = 0; 509 uint32_t _cf = 0; 510 int _df = 1; 511 uint32_t _flag_k = FK_NONE; 512 uint32_t _flag_a = 0, _flag_b = 0; 513 uint32_t _itail_tgt = 0; 514 RECOMP_REGS_LOCALS 515 RECOMP_ENTER(0x240033E0u); 516 517 L_240033E0: 518 PUSH32(esp, ebp); /* 0x240033E0: push ebp */ 519 ebp = esp; /* 0x240033E1: mov ebp, esp */ 520 PUSH32(esp, esi); /* 0x240033E3: push esi */ 521 esi = MEM32(ebp + 0xC); /* 0x240033E4: mov esi, dword ptr [ebp + 0xc] */ 522 eax = MEM32(esi); /* 0x240033E7: mov eax, dword ptr [esi] */ 523 PUSH32(esp, edi); /* 0x240033E9: push edi */ 524 edi = ecx; /* 0x240033EA: mov edi, ecx */ 525 ecx = esi; /* 0x240033EC: mov ecx, esi */ 526 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x240033EE: call dword ptr [eax + 4] */ 527 RECOMP_FLAGS_IN(); 528 ecx = MEM32(ebp + 0x8); /* 0x240033F1: mov ecx, dword ptr [ebp + 8] */ 529 PUSH32(esp, 1); /* 0x240033F4: push 1 */ 530 PUSH32(esp, 0); /* 0x240033F6: push 0 */ 531 PUSH32(esp, eax); /* 0x240033F8: push eax */ 532 PUSH32(esp, 0); /* 0x240033F9: push 0 */ 533 PUSH32(esp, 5); /* 0x240033FB: push 5 */ 534 PUSH32(esp, ecx); /* 0x240033FD: push ecx */ 535 ecx = edi; /* 0x240033FE: mov ecx, edi */ 536 RECOMP_ICALL(0x24003FA0u); /* 0x24003400: call 0x24003fa0 */ /* not lifted */ 537 RECOMP_FLAGS_IN(); 538 /* test eax, eax */ /* 0x24003405: test eax, eax */ 539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 540 _cf = 0; 541 _flag_k = FK_TEST; 542 if (TEST_Z(_flag_a, _flag_b)) goto L_24003419; /* 0x24003407: je 0x24003419 */ 543 L_24003409: 544 edx = MEM32(esi); /* 0x24003409: mov edx, dword ptr [esi] */ 545 PUSH32(esp, eax); /* 0x2400340B: push eax */ 546 ecx = esi; /* 0x2400340C: mov ecx, esi */ 547 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x2400340E: call dword ptr [edx + 8] */ 548 RECOMP_FLAGS_IN(); 549 edi = POP32_VAL(esp); /* 0x24003411: pop edi */ 550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 551 eax = 0; /* 0x24003412: xor eax, eax */ 552 _cf = 0; 553 _flag_k = FK_TEST; 554 esi = POP32_VAL(esp); /* 0x24003414: pop esi */ 555 ebp = POP32_VAL(esp); /* 0x24003415: pop ebp */ 556 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24003416: ret 8 */ 557 L_24003419: 558 edi = POP32_VAL(esp); /* 0x24003419: pop edi */ 559 eax = 4; /* 0x2400341A: mov eax, 4 */ 560 esi = POP32_VAL(esp); /* 0x2400341F: pop esi */ 561 ebp = POP32_VAL(esp); /* 0x24003420: pop ebp */ 562 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24003421: ret 8 */ 563 RECOMP_REGS_OUT(); 564 } 565 566 void sub_24003430(void) { 567 int _fpu_cmp = 0; 568 uint32_t _cf = 0; 569 int _df = 1; 570 uint32_t _flag_k = FK_NONE; 571 uint32_t _flag_a = 0, _flag_b = 0; 572 uint32_t _itail_tgt = 0; 573 RECOMP_REGS_LOCALS 574 RECOMP_ENTER(0x24003430u); 575 576 L_24003430: 577 PUSH32(esp, ebp); /* 0x24003430: push ebp */ 578 ebp = esp; /* 0x24003431: mov ebp, esp */ 579 eax = MEM32(ebp + 0xC); /* 0x24003433: mov eax, dword ptr [ebp + 0xc] */ 580 edx = MEM32(eax + 0x8); /* 0x24003436: mov edx, dword ptr [eax + 8] */ 581 eax = MEM32(eax + 0x4); /* 0x24003439: mov eax, dword ptr [eax + 4] */ 582 /* test eax, eax */ /* 0x2400343C: test eax, eax */ 583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 584 _cf = 0; 585 _flag_k = FK_TEST; 586 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003445; /* 0x2400343E: jne 0x24003445 */ 587 L_24003440: 588 eax = MEM32(0x2400B01C); /* 0x24003440: mov eax, dword ptr [0x2400b01c] */ 589 L_24003445: 590 PUSH32(esp, 1); /* 0x24003445: push 1 */ 591 PUSH32(esp, 0); /* 0x24003447: push 0 */ 592 PUSH32(esp, edx); /* 0x24003449: push edx */ 593 PUSH32(esp, eax); /* 0x2400344A: push eax */ 594 eax = MEM32(ebp + 0x8); /* 0x2400344B: mov eax, dword ptr [ebp + 8] */ 595 PUSH32(esp, 6); /* 0x2400344E: push 6 */ 596 PUSH32(esp, eax); /* 0x24003450: push eax */ 597 RECOMP_ICALL(0x24003FA0u); /* 0x24003451: call 0x24003fa0 */ /* not lifted */ 598 RECOMP_FLAGS_IN(); 599 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 600 eax = 0; /* 0x24003456: xor eax, eax */ 601 _cf = 0; 602 _flag_k = FK_TEST; 603 ebp = POP32_VAL(esp); /* 0x24003458: pop ebp */ 604 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24003459: ret 8 */ 605 RECOMP_REGS_OUT(); 606 } 607 608 void sub_24003460(void) { 609 int _fpu_cmp = 0; 610 uint32_t _cf = 0; 611 int _df = 1; 612 uint32_t _flag_k = FK_NONE; 613 uint32_t _flag_a = 0, _flag_b = 0; 614 uint32_t _itail_tgt = 0; 615 RECOMP_REGS_LOCALS 616 RECOMP_ENTER(0x24003460u); 617 618 L_24003460: 619 PUSH32(esp, ebp); /* 0x24003460: push ebp */ 620 ebp = esp; /* 0x24003461: mov ebp, esp */ 621 eax = MEM32(ebp + 0xC); /* 0x24003463: mov eax, dword ptr [ebp + 0xc] */ 622 edx = MEM32(ebp + 0x8); /* 0x24003466: mov edx, dword ptr [ebp + 8] */ 623 PUSH32(esp, 1); /* 0x24003469: push 1 */ 624 PUSH32(esp, 1); /* 0x2400346B: push 1 */ 625 PUSH32(esp, 0xCu); /* 0x2400346D: push 0xc */ 626 PUSH32(esp, eax); /* 0x2400346F: push eax */ 627 PUSH32(esp, 0xCu); /* 0x24003470: push 0xc */ 628 PUSH32(esp, edx); /* 0x24003472: push edx */ 629 RECOMP_ICALL(0x24003FA0u); /* 0x24003473: call 0x24003fa0 */ /* not lifted */ 630 RECOMP_FLAGS_IN(); 631 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 632 eax = 0; /* 0x24003478: xor eax, eax */ 633 _cf = 0; 634 _flag_k = FK_TEST; 635 ebp = POP32_VAL(esp); /* 0x2400347A: pop ebp */ 636 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400347B: ret 8 */ 637 RECOMP_REGS_OUT(); 638 } 639 640 void sub_24003480(void) { 641 int _fpu_cmp = 0; 642 uint32_t _cf = 0; 643 int _df = 1; 644 uint32_t _flag_k = FK_NONE; 645 uint32_t _flag_a = 0, _flag_b = 0; 646 uint32_t _itail_tgt = 0; 647 RECOMP_REGS_LOCALS 648 RECOMP_ENTER(0x24003480u); 649 650 L_24003480: 651 PUSH32(esp, ebp); /* 0x24003480: push ebp */ 652 ebp = esp; /* 0x24003481: mov ebp, esp */ 653 eax = MEM32(ebp + 0xC); /* 0x24003483: mov eax, dword ptr [ebp + 0xc] */ 654 edx = MEM32(ebp + 0x8); /* 0x24003486: mov edx, dword ptr [ebp + 8] */ 655 PUSH32(esp, 1); /* 0x24003489: push 1 */ 656 PUSH32(esp, 1); /* 0x2400348B: push 1 */ 657 PUSH32(esp, 0x10u); /* 0x2400348D: push 0x10 */ 658 PUSH32(esp, eax); /* 0x2400348F: push eax */ 659 PUSH32(esp, 0xDu); /* 0x24003490: push 0xd */ 660 PUSH32(esp, edx); /* 0x24003492: push edx */ 661 RECOMP_ICALL(0x24003FA0u); /* 0x24003493: call 0x24003fa0 */ /* not lifted */ 662 RECOMP_FLAGS_IN(); 663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 664 eax = 0; /* 0x24003498: xor eax, eax */ 665 _cf = 0; 666 _flag_k = FK_TEST; 667 ebp = POP32_VAL(esp); /* 0x2400349A: pop ebp */ 668 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400349B: ret 8 */ 669 RECOMP_REGS_OUT(); 670 } 671 672 void sub_240034A0(void) { 673 int _fpu_cmp = 0; 674 uint32_t _cf = 0; 675 int _df = 1; 676 uint32_t _flag_k = FK_NONE; 677 uint32_t _flag_a = 0, _flag_b = 0; 678 uint32_t _itail_tgt = 0; 679 RECOMP_REGS_LOCALS 680 RECOMP_ENTER(0x240034A0u); 681 682 L_240034A0: 683 PUSH32(esp, ebp); /* 0x240034A0: push ebp */ 684 ebp = esp; /* 0x240034A1: mov ebp, esp */ 685 eax = MEM32(ebp + 0xC); /* 0x240034A3: mov eax, dword ptr [ebp + 0xc] */ 686 edx = MEM32(ebp + 0x8); /* 0x240034A6: mov edx, dword ptr [ebp + 8] */ 687 PUSH32(esp, 1); /* 0x240034A9: push 1 */ 688 PUSH32(esp, 1); /* 0x240034AB: push 1 */ 689 PUSH32(esp, 0x40u); /* 0x240034AD: push 0x40 */ 690 PUSH32(esp, eax); /* 0x240034AF: push eax */ 691 PUSH32(esp, 0xFu); /* 0x240034B0: push 0xf */ 692 PUSH32(esp, edx); /* 0x240034B2: push edx */ 693 RECOMP_ICALL(0x24003FA0u); /* 0x240034B3: call 0x24003fa0 */ /* not lifted */ 694 RECOMP_FLAGS_IN(); 695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 696 eax = 0; /* 0x240034B8: xor eax, eax */ 697 _cf = 0; 698 _flag_k = FK_TEST; 699 ebp = POP32_VAL(esp); /* 0x240034BA: pop ebp */ 700 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240034BB: ret 8 */ 701 RECOMP_REGS_OUT(); 702 } 703 704 void sub_240034C0(void) { 705 int _fpu_cmp = 0; 706 uint32_t _cf = 0; 707 int _df = 1; 708 uint32_t _flag_k = FK_NONE; 709 uint32_t _flag_a = 0, _flag_b = 0; 710 uint32_t _itail_tgt = 0; 711 RECOMP_REGS_LOCALS 712 RECOMP_ENTER(0x240034C0u); 713 714 L_240034C0: 715 PUSH32(esp, ebp); /* 0x240034C0: push ebp */ 716 ebp = esp; /* 0x240034C1: mov ebp, esp */ 717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 719 esp = esp - 0xCu; /* 0x240034C3: sub esp, 0xc */ 720 _flag_k = FK_CMP; 721 eax = MEM32(ebp + 0xC); /* 0x240034C6: mov eax, dword ptr [ebp + 0xc] */ 722 fp_push(*(float*)&MEM32(eax)); /* 0x240034C9: fld dword ptr [eax] */ 723 edx = MEM32(ebp + 0x8); /* 0x240034CB: mov edx, dword ptr [ebp + 8] */ 724 PUSH32(esp, 1); /* 0x240034CE: push 1 */ 725 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x240034D0: fstp dword ptr [ebp - 0xc] */ 726 fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x240034D3: fld dword ptr [eax + 8] */ 727 PUSH32(esp, 1); /* 0x240034D6: push 1 */ 728 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x240034D8: fstp dword ptr [ebp - 8] */ 729 fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x240034DB: fld dword ptr [eax + 4] */ 730 PUSH32(esp, 0xCu); /* 0x240034DE: push 0xc */ 731 eax = ebp + (-0xC); /* 0x240034E0: lea eax, [ebp - 0xc] */ 732 PUSH32(esp, eax); /* 0x240034E3: push eax */ 733 PUSH32(esp, 0x10u); /* 0x240034E4: push 0x10 */ 734 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x240034E6: fstp dword ptr [ebp - 4] */ 735 PUSH32(esp, edx); /* 0x240034E9: push edx */ 736 RECOMP_ICALL(0x24003FA0u); /* 0x240034EA: call 0x24003fa0 */ /* not lifted */ 737 RECOMP_FLAGS_IN(); 738 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 739 eax = 0; /* 0x240034EF: xor eax, eax */ 740 _cf = 0; 741 _flag_k = FK_TEST; 742 esp = ebp; /* 0x240034F1: mov esp, ebp */ 743 ebp = POP32_VAL(esp); /* 0x240034F3: pop ebp */ 744 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240034F4: ret 8 */ 745 RECOMP_REGS_OUT(); 746 } 747 748 void sub_24003500(void) { 749 int _fpu_cmp = 0; 750 uint32_t _cf = 0; 751 int _df = 1; 752 uint32_t _flag_k = FK_NONE; 753 uint32_t _flag_a = 0, _flag_b = 0; 754 uint32_t _itail_tgt = 0; 755 RECOMP_REGS_LOCALS 756 RECOMP_ENTER(0x24003500u); 757 758 L_24003500: 759 PUSH32(esp, ebp); /* 0x24003500: push ebp */ 760 ebp = esp; /* 0x24003501: mov ebp, esp */ 761 PUSH32(esp, esi); /* 0x24003503: push esi */ 762 PUSH32(esp, edi); /* 0x24003504: push edi */ 763 edi = MEM32(ebp + 0x8); /* 0x24003505: mov edi, dword ptr [ebp + 8] */ 764 esi = ecx; /* 0x24003508: mov esi, ecx */ 765 PUSH32(esp, edi); /* 0x2400350A: push edi */ 766 RECOMP_ICALL(0x24004380u); /* 0x2400350B: call 0x24004380 */ /* not lifted */ 767 RECOMP_FLAGS_IN(); 768 eax = MEM32(ebp + 0x18); /* 0x24003510: mov eax, dword ptr [ebp + 0x18] */ 769 ecx = MEM32(ebp + 0x14); /* 0x24003513: mov ecx, dword ptr [ebp + 0x14] */ 770 edx = MEM32(ebp + 0x10); /* 0x24003516: mov edx, dword ptr [ebp + 0x10] */ 771 PUSH32(esp, eax); /* 0x24003519: push eax */ 772 eax = MEM32(ebp + 0xC); /* 0x2400351A: mov eax, dword ptr [ebp + 0xc] */ 773 PUSH32(esp, ecx); /* 0x2400351D: push ecx */ 774 PUSH32(esp, edx); /* 0x2400351E: push edx */ 775 PUSH32(esp, eax); /* 0x2400351F: push eax */ 776 PUSH32(esp, edi); /* 0x24003520: push edi */ 777 ecx = esi; /* 0x24003521: mov ecx, esi */ 778 RECOMP_ICALL(0x240032D0u); /* 0x24003523: call 0x240032d0 */ /* not lifted */ 779 RECOMP_FLAGS_IN(); 780 edi = POP32_VAL(esp); /* 0x24003528: pop edi */ 781 esi = POP32_VAL(esp); /* 0x24003529: pop esi */ 782 ebp = POP32_VAL(esp); /* 0x2400352A: pop ebp */ 783 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x2400352B: ret 0x14 */ 784 RECOMP_REGS_OUT(); 785 } 786 787 void sub_24003530(void) { 788 int _fpu_cmp = 0; 789 uint32_t _cf = 0; 790 int _df = 1; 791 uint32_t _flag_k = FK_NONE; 792 uint32_t _flag_a = 0, _flag_b = 0; 793 uint32_t _itail_tgt = 0; 794 RECOMP_REGS_LOCALS 795 RECOMP_ENTER(0x24003530u); 796 797 L_24003530: 798 PUSH32(esp, ebp); /* 0x24003530: push ebp */ 799 ebp = esp; /* 0x24003531: mov ebp, esp */ 800 PUSH32(esp, esi); /* 0x24003533: push esi */ 801 PUSH32(esp, edi); /* 0x24003534: push edi */ 802 edi = MEM32(ebp + 0x8); /* 0x24003535: mov edi, dword ptr [ebp + 8] */ 803 esi = ecx; /* 0x24003538: mov esi, ecx */ 804 PUSH32(esp, edi); /* 0x2400353A: push edi */ 805 RECOMP_ICALL(0x24004380u); /* 0x2400353B: call 0x24004380 */ /* not lifted */ 806 RECOMP_FLAGS_IN(); 807 eax = MEM32(ebp + 0xC); /* 0x24003540: mov eax, dword ptr [ebp + 0xc] */ 808 PUSH32(esp, eax); /* 0x24003543: push eax */ 809 PUSH32(esp, edi); /* 0x24003544: push edi */ 810 ecx = esi; /* 0x24003545: mov ecx, esi */ 811 RECOMP_ICALL(0x24003300u); /* 0x24003547: call 0x24003300 */ /* not lifted */ 812 RECOMP_FLAGS_IN(); 813 edi = POP32_VAL(esp); /* 0x2400354C: pop edi */ 814 esi = POP32_VAL(esp); /* 0x2400354D: pop esi */ 815 ebp = POP32_VAL(esp); /* 0x2400354E: pop ebp */ 816 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400354F: ret 8 */ 817 RECOMP_REGS_OUT(); 818 } 819 820 void sub_24003560(void) { 821 int _fpu_cmp = 0; 822 uint32_t _cf = 0; 823 int _df = 1; 824 uint32_t _flag_k = FK_NONE; 825 uint32_t _flag_a = 0, _flag_b = 0; 826 uint32_t _itail_tgt = 0; 827 RECOMP_REGS_LOCALS 828 RECOMP_ENTER(0x24003560u); 829 830 L_24003560: 831 PUSH32(esp, ebp); /* 0x24003560: push ebp */ 832 ebp = esp; /* 0x24003561: mov ebp, esp */ 833 PUSH32(esp, esi); /* 0x24003563: push esi */ 834 PUSH32(esp, edi); /* 0x24003564: push edi */ 835 edi = MEM32(ebp + 0x8); /* 0x24003565: mov edi, dword ptr [ebp + 8] */ 836 esi = ecx; /* 0x24003568: mov esi, ecx */ 837 PUSH32(esp, edi); /* 0x2400356A: push edi */ 838 RECOMP_ICALL(0x24004380u); /* 0x2400356B: call 0x24004380 */ /* not lifted */ 839 RECOMP_FLAGS_IN(); 840 eax = MEM32(ebp + 0xC); /* 0x24003570: mov eax, dword ptr [ebp + 0xc] */ 841 PUSH32(esp, eax); /* 0x24003573: push eax */ 842 PUSH32(esp, edi); /* 0x24003574: push edi */ 843 ecx = esi; /* 0x24003575: mov ecx, esi */ 844 RECOMP_ICALL(0x24003320u); /* 0x24003577: call 0x24003320 */ /* not lifted */ 845 RECOMP_FLAGS_IN(); 846 edi = POP32_VAL(esp); /* 0x2400357C: pop edi */ 847 esi = POP32_VAL(esp); /* 0x2400357D: pop esi */ 848 ebp = POP32_VAL(esp); /* 0x2400357E: pop ebp */ 849 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400357F: ret 8 */ 850 RECOMP_REGS_OUT(); 851 } 852 853 void sub_24003590(void) { 854 int _fpu_cmp = 0; 855 uint32_t _cf = 0; 856 int _df = 1; 857 uint32_t _flag_k = FK_NONE; 858 uint32_t _flag_a = 0, _flag_b = 0; 859 uint32_t _itail_tgt = 0; 860 RECOMP_REGS_LOCALS 861 RECOMP_ENTER(0x24003590u); 862 863 L_24003590: 864 PUSH32(esp, ebp); /* 0x24003590: push ebp */ 865 ebp = esp; /* 0x24003591: mov ebp, esp */ 866 PUSH32(esp, esi); /* 0x24003593: push esi */ 867 PUSH32(esp, edi); /* 0x24003594: push edi */ 868 edi = MEM32(ebp + 0x8); /* 0x24003595: mov edi, dword ptr [ebp + 8] */ 869 esi = ecx; /* 0x24003598: mov esi, ecx */ 870 PUSH32(esp, edi); /* 0x2400359A: push edi */ 871 RECOMP_ICALL(0x24004380u); /* 0x2400359B: call 0x24004380 */ /* not lifted */ 872 RECOMP_FLAGS_IN(); 873 eax = MEM32(ebp + 0xC); /* 0x240035A0: mov eax, dword ptr [ebp + 0xc] */ 874 PUSH32(esp, eax); /* 0x240035A3: push eax */ 875 PUSH32(esp, edi); /* 0x240035A4: push edi */ 876 ecx = esi; /* 0x240035A5: mov ecx, esi */ 877 RECOMP_ICALL(0x24003340u); /* 0x240035A7: call 0x24003340 */ /* not lifted */ 878 RECOMP_FLAGS_IN(); 879 edi = POP32_VAL(esp); /* 0x240035AC: pop edi */ 880 esi = POP32_VAL(esp); /* 0x240035AD: pop esi */ 881 ebp = POP32_VAL(esp); /* 0x240035AE: pop ebp */ 882 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240035AF: ret 8 */ 883 RECOMP_REGS_OUT(); 884 } 885 886 void sub_240035C0(void) { 887 int _fpu_cmp = 0; 888 uint32_t _cf = 0; 889 int _df = 1; 890 uint32_t _flag_k = FK_NONE; 891 uint32_t _flag_a = 0, _flag_b = 0; 892 uint32_t _itail_tgt = 0; 893 RECOMP_REGS_LOCALS 894 RECOMP_ENTER(0x240035C0u); 895 896 L_240035C0: 897 PUSH32(esp, ebp); /* 0x240035C0: push ebp */ 898 ebp = esp; /* 0x240035C1: mov ebp, esp */ 899 PUSH32(esp, esi); /* 0x240035C3: push esi */ 900 PUSH32(esp, edi); /* 0x240035C4: push edi */ 901 edi = MEM32(ebp + 0x8); /* 0x240035C5: mov edi, dword ptr [ebp + 8] */ 902 esi = ecx; /* 0x240035C8: mov esi, ecx */ 903 PUSH32(esp, edi); /* 0x240035CA: push edi */ 904 RECOMP_ICALL(0x24004380u); /* 0x240035CB: call 0x24004380 */ /* not lifted */ 905 RECOMP_FLAGS_IN(); 906 eax = MEM32(ebp + 0xC); /* 0x240035D0: mov eax, dword ptr [ebp + 0xc] */ 907 PUSH32(esp, eax); /* 0x240035D3: push eax */ 908 PUSH32(esp, edi); /* 0x240035D4: push edi */ 909 ecx = esi; /* 0x240035D5: mov ecx, esi */ 910 RECOMP_ICALL(0x24003360u); /* 0x240035D7: call 0x24003360 */ /* not lifted */ 911 RECOMP_FLAGS_IN(); 912 edi = POP32_VAL(esp); /* 0x240035DC: pop edi */ 913 esi = POP32_VAL(esp); /* 0x240035DD: pop esi */ 914 ebp = POP32_VAL(esp); /* 0x240035DE: pop ebp */ 915 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240035DF: ret 8 */ 916 RECOMP_REGS_OUT(); 917 } 918 919 void sub_240035F0(void) { 920 int _fpu_cmp = 0; 921 uint32_t _cf = 0; 922 int _df = 1; 923 uint32_t _flag_k = FK_NONE; 924 uint32_t _flag_a = 0, _flag_b = 0; 925 uint32_t _itail_tgt = 0; 926 RECOMP_REGS_LOCALS 927 RECOMP_ENTER(0x240035F0u); 928 929 L_240035F0: 930 PUSH32(esp, ebp); /* 0x240035F0: push ebp */ 931 ebp = esp; /* 0x240035F1: mov ebp, esp */ 932 PUSH32(esp, esi); /* 0x240035F3: push esi */ 933 PUSH32(esp, edi); /* 0x240035F4: push edi */ 934 edi = MEM32(ebp + 0x8); /* 0x240035F5: mov edi, dword ptr [ebp + 8] */ 935 esi = ecx; /* 0x240035F8: mov esi, ecx */ 936 PUSH32(esp, edi); /* 0x240035FA: push edi */ 937 RECOMP_ICALL(0x24004380u); /* 0x240035FB: call 0x24004380 */ /* not lifted */ 938 RECOMP_FLAGS_IN(); 939 eax = MEM32(ebp + 0xC); /* 0x24003600: mov eax, dword ptr [ebp + 0xc] */ 940 PUSH32(esp, eax); /* 0x24003603: push eax */ 941 PUSH32(esp, edi); /* 0x24003604: push edi */ 942 ecx = esi; /* 0x24003605: mov ecx, esi */ 943 RECOMP_ICALL(0x240033A0u); /* 0x24003607: call 0x240033a0 */ /* not lifted */ 944 RECOMP_FLAGS_IN(); 945 edi = POP32_VAL(esp); /* 0x2400360C: pop edi */ 946 esi = POP32_VAL(esp); /* 0x2400360D: pop esi */ 947 ebp = POP32_VAL(esp); /* 0x2400360E: pop ebp */ 948 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400360F: ret 8 */ 949 RECOMP_REGS_OUT(); 950 } 951 952 void sub_24003620(void) { 953 int _fpu_cmp = 0; 954 uint32_t _cf = 0; 955 int _df = 1; 956 uint32_t _flag_k = FK_NONE; 957 uint32_t _flag_a = 0, _flag_b = 0; 958 uint32_t _itail_tgt = 0; 959 RECOMP_REGS_LOCALS 960 RECOMP_ENTER(0x24003620u); 961 962 L_24003620: 963 PUSH32(esp, ebp); /* 0x24003620: push ebp */ 964 ebp = esp; /* 0x24003621: mov ebp, esp */ 965 PUSH32(esp, esi); /* 0x24003623: push esi */ 966 PUSH32(esp, edi); /* 0x24003624: push edi */ 967 edi = MEM32(ebp + 0x8); /* 0x24003625: mov edi, dword ptr [ebp + 8] */ 968 esi = ecx; /* 0x24003628: mov esi, ecx */ 969 PUSH32(esp, edi); /* 0x2400362A: push edi */ 970 RECOMP_ICALL(0x24004380u); /* 0x2400362B: call 0x24004380 */ /* not lifted */ 971 RECOMP_FLAGS_IN(); 972 eax = MEM32(ebp + 0x10); /* 0x24003630: mov eax, dword ptr [ebp + 0x10] */ 973 ecx = MEM32(ebp + 0xC); /* 0x24003633: mov ecx, dword ptr [ebp + 0xc] */ 974 PUSH32(esp, eax); /* 0x24003636: push eax */ 975 PUSH32(esp, ecx); /* 0x24003637: push ecx */ 976 PUSH32(esp, edi); /* 0x24003638: push edi */ 977 ecx = esi; /* 0x24003639: mov ecx, esi */ 978 RECOMP_ICALL(0x240033C0u); /* 0x2400363B: call 0x240033c0 */ /* not lifted */ 979 RECOMP_FLAGS_IN(); 980 edi = POP32_VAL(esp); /* 0x24003640: pop edi */ 981 esi = POP32_VAL(esp); /* 0x24003641: pop esi */ 982 ebp = POP32_VAL(esp); /* 0x24003642: pop ebp */ 983 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003643: ret 0xc */ 984 RECOMP_REGS_OUT(); 985 } 986 987 void sub_24003650(void) { 988 int _fpu_cmp = 0; 989 uint32_t _cf = 0; 990 int _df = 1; 991 uint32_t _flag_k = FK_NONE; 992 uint32_t _flag_a = 0, _flag_b = 0; 993 uint32_t _itail_tgt = 0; 994 RECOMP_REGS_LOCALS 995 RECOMP_ENTER(0x24003650u); 996 997 L_24003650: 998 PUSH32(esp, ebp); /* 0x24003650: push ebp */ 999 ebp = esp; /* 0x24003651: mov ebp, esp */ 1000 PUSH32(esp, esi); /* 0x24003653: push esi */ 1001 PUSH32(esp, edi); /* 0x24003654: push edi */ 1002 edi = MEM32(ebp + 0x8); /* 0x24003655: mov edi, dword ptr [ebp + 8] */ 1003 esi = ecx; /* 0x24003658: mov esi, ecx */ 1004 PUSH32(esp, edi); /* 0x2400365A: push edi */ 1005 RECOMP_ICALL(0x24004380u); /* 0x2400365B: call 0x24004380 */ /* not lifted */ 1006 RECOMP_FLAGS_IN(); 1007 eax = MEM32(ebp + 0xC); /* 0x24003660: mov eax, dword ptr [ebp + 0xc] */ 1008 PUSH32(esp, eax); /* 0x24003663: push eax */ 1009 PUSH32(esp, edi); /* 0x24003664: push edi */ 1010 ecx = esi; /* 0x24003665: mov ecx, esi */ 1011 RECOMP_ICALL(0x240033E0u); /* 0x24003667: call 0x240033e0 */ /* not lifted */ 1012 RECOMP_FLAGS_IN(); 1013 edi = POP32_VAL(esp); /* 0x2400366C: pop edi */ 1014 esi = POP32_VAL(esp); /* 0x2400366D: pop esi */ 1015 ebp = POP32_VAL(esp); /* 0x2400366E: pop ebp */ 1016 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400366F: ret 8 */ 1017 RECOMP_REGS_OUT(); 1018 } 1019 1020 void sub_24003680(void) { 1021 int _fpu_cmp = 0; 1022 uint32_t _cf = 0; 1023 int _df = 1; 1024 uint32_t _flag_k = FK_NONE; 1025 uint32_t _flag_a = 0, _flag_b = 0; 1026 uint32_t _itail_tgt = 0; 1027 RECOMP_REGS_LOCALS 1028 RECOMP_ENTER(0x24003680u); 1029 1030 L_24003680: 1031 PUSH32(esp, ebp); /* 0x24003680: push ebp */ 1032 ebp = esp; /* 0x24003681: mov ebp, esp */ 1033 PUSH32(esp, esi); /* 0x24003683: push esi */ 1034 PUSH32(esp, edi); /* 0x24003684: push edi */ 1035 edi = MEM32(ebp + 0x8); /* 0x24003685: mov edi, dword ptr [ebp + 8] */ 1036 esi = ecx; /* 0x24003688: mov esi, ecx */ 1037 PUSH32(esp, edi); /* 0x2400368A: push edi */ 1038 RECOMP_ICALL(0x24004380u); /* 0x2400368B: call 0x24004380 */ /* not lifted */ 1039 RECOMP_FLAGS_IN(); 1040 eax = MEM32(ebp + 0xC); /* 0x24003690: mov eax, dword ptr [ebp + 0xc] */ 1041 PUSH32(esp, eax); /* 0x24003693: push eax */ 1042 PUSH32(esp, edi); /* 0x24003694: push edi */ 1043 ecx = esi; /* 0x24003695: mov ecx, esi */ 1044 RECOMP_ICALL(0x24003430u); /* 0x24003697: call 0x24003430 */ /* not lifted */ 1045 RECOMP_FLAGS_IN(); 1046 edi = POP32_VAL(esp); /* 0x2400369C: pop edi */ 1047 esi = POP32_VAL(esp); /* 0x2400369D: pop esi */ 1048 ebp = POP32_VAL(esp); /* 0x2400369E: pop ebp */ 1049 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400369F: ret 8 */ 1050 RECOMP_REGS_OUT(); 1051 } 1052 1053 void sub_240036B0(void) { 1054 int _fpu_cmp = 0; 1055 uint32_t _cf = 0; 1056 int _df = 1; 1057 uint32_t _flag_k = FK_NONE; 1058 uint32_t _flag_a = 0, _flag_b = 0; 1059 uint32_t _itail_tgt = 0; 1060 RECOMP_REGS_LOCALS 1061 RECOMP_ENTER(0x240036B0u); 1062 1063 L_240036B0: 1064 PUSH32(esp, ebp); /* 0x240036B0: push ebp */ 1065 ebp = esp; /* 0x240036B1: mov ebp, esp */ 1066 PUSH32(esp, esi); /* 0x240036B3: push esi */ 1067 PUSH32(esp, edi); /* 0x240036B4: push edi */ 1068 edi = MEM32(ebp + 0x8); /* 0x240036B5: mov edi, dword ptr [ebp + 8] */ 1069 esi = ecx; /* 0x240036B8: mov esi, ecx */ 1070 PUSH32(esp, edi); /* 0x240036BA: push edi */ 1071 RECOMP_ICALL(0x24004380u); /* 0x240036BB: call 0x24004380 */ /* not lifted */ 1072 RECOMP_FLAGS_IN(); 1073 eax = MEM32(ebp + 0xC); /* 0x240036C0: mov eax, dword ptr [ebp + 0xc] */ 1074 PUSH32(esp, eax); /* 0x240036C3: push eax */ 1075 PUSH32(esp, edi); /* 0x240036C4: push edi */ 1076 ecx = esi; /* 0x240036C5: mov ecx, esi */ 1077 RECOMP_ICALL(0x24003460u); /* 0x240036C7: call 0x24003460 */ /* not lifted */ 1078 RECOMP_FLAGS_IN(); 1079 edi = POP32_VAL(esp); /* 0x240036CC: pop edi */ 1080 esi = POP32_VAL(esp); /* 0x240036CD: pop esi */ 1081 ebp = POP32_VAL(esp); /* 0x240036CE: pop ebp */ 1082 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240036CF: ret 8 */ 1083 RECOMP_REGS_OUT(); 1084 } 1085 1086 void sub_240036E0(void) { 1087 int _fpu_cmp = 0; 1088 uint32_t _cf = 0; 1089 int _df = 1; 1090 uint32_t _flag_k = FK_NONE; 1091 uint32_t _flag_a = 0, _flag_b = 0; 1092 uint32_t _itail_tgt = 0; 1093 RECOMP_REGS_LOCALS 1094 RECOMP_ENTER(0x240036E0u); 1095 1096 L_240036E0: 1097 PUSH32(esp, ebp); /* 0x240036E0: push ebp */ 1098 ebp = esp; /* 0x240036E1: mov ebp, esp */ 1099 PUSH32(esp, esi); /* 0x240036E3: push esi */ 1100 PUSH32(esp, edi); /* 0x240036E4: push edi */ 1101 edi = MEM32(ebp + 0x8); /* 0x240036E5: mov edi, dword ptr [ebp + 8] */ 1102 esi = ecx; /* 0x240036E8: mov esi, ecx */ 1103 PUSH32(esp, edi); /* 0x240036EA: push edi */ 1104 RECOMP_ICALL(0x24004380u); /* 0x240036EB: call 0x24004380 */ /* not lifted */ 1105 RECOMP_FLAGS_IN(); 1106 eax = MEM32(ebp + 0xC); /* 0x240036F0: mov eax, dword ptr [ebp + 0xc] */ 1107 PUSH32(esp, eax); /* 0x240036F3: push eax */ 1108 PUSH32(esp, edi); /* 0x240036F4: push edi */ 1109 ecx = esi; /* 0x240036F5: mov ecx, esi */ 1110 RECOMP_ICALL(0x24003480u); /* 0x240036F7: call 0x24003480 */ /* not lifted */ 1111 RECOMP_FLAGS_IN(); 1112 edi = POP32_VAL(esp); /* 0x240036FC: pop edi */ 1113 esi = POP32_VAL(esp); /* 0x240036FD: pop esi */ 1114 ebp = POP32_VAL(esp); /* 0x240036FE: pop ebp */ 1115 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240036FF: ret 8 */ 1116 RECOMP_REGS_OUT(); 1117 } 1118 1119 void sub_24003710(void) { 1120 int _fpu_cmp = 0; 1121 uint32_t _cf = 0; 1122 int _df = 1; 1123 uint32_t _flag_k = FK_NONE; 1124 uint32_t _flag_a = 0, _flag_b = 0; 1125 uint32_t _itail_tgt = 0; 1126 RECOMP_REGS_LOCALS 1127 RECOMP_ENTER(0x24003710u); 1128 1129 L_24003710: 1130 PUSH32(esp, ebp); /* 0x24003710: push ebp */ 1131 ebp = esp; /* 0x24003711: mov ebp, esp */ 1132 PUSH32(esp, esi); /* 0x24003713: push esi */ 1133 PUSH32(esp, edi); /* 0x24003714: push edi */ 1134 edi = MEM32(ebp + 0x8); /* 0x24003715: mov edi, dword ptr [ebp + 8] */ 1135 esi = ecx; /* 0x24003718: mov esi, ecx */ 1136 PUSH32(esp, edi); /* 0x2400371A: push edi */ 1137 RECOMP_ICALL(0x24004380u); /* 0x2400371B: call 0x24004380 */ /* not lifted */ 1138 RECOMP_FLAGS_IN(); 1139 eax = MEM32(ebp + 0xC); /* 0x24003720: mov eax, dword ptr [ebp + 0xc] */ 1140 PUSH32(esp, eax); /* 0x24003723: push eax */ 1141 PUSH32(esp, edi); /* 0x24003724: push edi */ 1142 ecx = esi; /* 0x24003725: mov ecx, esi */ 1143 RECOMP_ICALL(0x240034A0u); /* 0x24003727: call 0x240034a0 */ /* not lifted */ 1144 RECOMP_FLAGS_IN(); 1145 edi = POP32_VAL(esp); /* 0x2400372C: pop edi */ 1146 esi = POP32_VAL(esp); /* 0x2400372D: pop esi */ 1147 ebp = POP32_VAL(esp); /* 0x2400372E: pop ebp */ 1148 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400372F: ret 8 */ 1149 RECOMP_REGS_OUT(); 1150 } 1151 1152 void sub_24003740(void) { 1153 int _fpu_cmp = 0; 1154 uint32_t _cf = 0; 1155 int _df = 1; 1156 uint32_t _flag_k = FK_NONE; 1157 uint32_t _flag_a = 0, _flag_b = 0; 1158 uint32_t _itail_tgt = 0; 1159 RECOMP_REGS_LOCALS 1160 RECOMP_ENTER(0x24003740u); 1161 1162 L_24003740: 1163 PUSH32(esp, ebp); /* 0x24003740: push ebp */ 1164 ebp = esp; /* 0x24003741: mov ebp, esp */ 1165 PUSH32(esp, esi); /* 0x24003743: push esi */ 1166 PUSH32(esp, edi); /* 0x24003744: push edi */ 1167 edi = MEM32(ebp + 0x8); /* 0x24003745: mov edi, dword ptr [ebp + 8] */ 1168 esi = ecx; /* 0x24003748: mov esi, ecx */ 1169 PUSH32(esp, edi); /* 0x2400374A: push edi */ 1170 RECOMP_ICALL(0x24004380u); /* 0x2400374B: call 0x24004380 */ /* not lifted */ 1171 RECOMP_FLAGS_IN(); 1172 eax = MEM32(ebp + 0xC); /* 0x24003750: mov eax, dword ptr [ebp + 0xc] */ 1173 PUSH32(esp, eax); /* 0x24003753: push eax */ 1174 PUSH32(esp, edi); /* 0x24003754: push edi */ 1175 ecx = esi; /* 0x24003755: mov ecx, esi */ 1176 RECOMP_ICALL(0x240034C0u); /* 0x24003757: call 0x240034c0 */ /* not lifted */ 1177 RECOMP_FLAGS_IN(); 1178 edi = POP32_VAL(esp); /* 0x2400375C: pop edi */ 1179 esi = POP32_VAL(esp); /* 0x2400375D: pop esi */ 1180 ebp = POP32_VAL(esp); /* 0x2400375E: pop ebp */ 1181 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400375F: ret 8 */ 1182 RECOMP_REGS_OUT(); 1183 } 1184 1185 void sub_24003770(void) { 1186 int _fpu_cmp = 0; 1187 uint32_t _cf = 0; 1188 int _df = 1; 1189 uint32_t _flag_k = FK_NONE; 1190 uint32_t _flag_a = 0, _flag_b = 0; 1191 uint32_t _itail_tgt = 0; 1192 RECOMP_REGS_LOCALS 1193 RECOMP_ENTER(0x24003770u); 1194 1195 L_24003770: 1196 PUSH32(esp, ebp); /* 0x24003770: push ebp */ 1197 ebp = esp; /* 0x24003771: mov ebp, esp */ 1198 eax = MEM32(ebp + 0x14); /* 0x24003773: mov eax, dword ptr [ebp + 0x14] */ 1199 edx = MEM32(ebp + 0x10); /* 0x24003776: mov edx, dword ptr [ebp + 0x10] */ 1200 PUSH32(esp, eax); /* 0x24003779: push eax */ 1201 eax = MEM32(ebp + 0xC); /* 0x2400377A: mov eax, dword ptr [ebp + 0xc] */ 1202 PUSH32(esp, edx); /* 0x2400377D: push edx */ 1203 edx = MEM32(ebp + 0x8); /* 0x2400377E: mov edx, dword ptr [ebp + 8] */ 1204 PUSH32(esp, eax); /* 0x24003781: push eax */ 1205 PUSH32(esp, 9); /* 0x24003782: push 9 */ 1206 PUSH32(esp, edx); /* 0x24003784: push edx */ 1207 RECOMP_ICALL(0x24004200u); /* 0x24003785: call 0x24004200 */ /* not lifted */ 1208 RECOMP_FLAGS_IN(); 1209 ebp = POP32_VAL(esp); /* 0x2400378A: pop ebp */ 1210 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400378B: ret 0x10 */ 1211 RECOMP_REGS_OUT(); 1212 } 1213 1214 void sub_24003790(void) { 1215 int _fpu_cmp = 0; 1216 uint32_t _cf = 0; 1217 int _df = 1; 1218 uint32_t _flag_k = FK_NONE; 1219 uint32_t _flag_a = 0, _flag_b = 0; 1220 uint32_t _itail_tgt = 0; 1221 RECOMP_REGS_LOCALS 1222 RECOMP_ENTER(0x24003790u); 1223 1224 L_24003790: 1225 PUSH32(esp, ebp); /* 0x24003790: push ebp */ 1226 ebp = esp; /* 0x24003791: mov ebp, esp */ 1227 eax = MEM32(ebp + 0x10); /* 0x24003793: mov eax, dword ptr [ebp + 0x10] */ 1228 PUSH32(esp, eax); /* 0x24003796: push eax */ 1229 edx = ebp + 0x8; /* 0x24003797: lea edx, [ebp + 8] */ 1230 PUSH32(esp, edx); /* 0x2400379A: push edx */ 1231 edx = MEM32(ebp + 0x8); /* 0x2400379B: mov edx, dword ptr [ebp + 8] */ 1232 eax = ebp + 0x10; /* 0x2400379E: lea eax, [ebp + 0x10] */ 1233 PUSH32(esp, eax); /* 0x240037A1: push eax */ 1234 PUSH32(esp, 0); /* 0x240037A2: push 0 */ 1235 PUSH32(esp, edx); /* 0x240037A4: push edx */ 1236 RECOMP_ICALL(0x24004200u); /* 0x240037A5: call 0x24004200 */ /* not lifted */ 1237 RECOMP_FLAGS_IN(); 1238 /* test eax, eax */ /* 0x240037AA: test eax, eax */ 1239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1240 _cf = 0; 1241 _flag_k = FK_TEST; 1242 if (TEST_NZ(_flag_a, _flag_b)) goto L_240037BA; /* 0x240037AC: jne 0x240037ba */ 1243 L_240037AE: 1244 eax = MEM32(ebp + 0x10); /* 0x240037AE: mov eax, dword ptr [ebp + 0x10] */ 1245 SET_LO8(ecx, MEM8(eax)); /* 0x240037B1: mov cl, byte ptr [eax] */ 1246 edx = MEM32(ebp + 0xC); /* 0x240037B3: mov edx, dword ptr [ebp + 0xc] */ 1247 MEM8(edx) = (uint8_t)(LO8(ecx)); /* 0x240037B6: mov byte ptr [edx], cl */ 1248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1249 eax = 0; /* 0x240037B8: xor eax, eax */ 1250 _cf = 0; 1251 _flag_k = FK_TEST; 1252 L_240037BA: 1253 ebp = POP32_VAL(esp); /* 0x240037BA: pop ebp */ 1254 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x240037BB: ret 0xc */ 1255 RECOMP_REGS_OUT(); 1256 } 1257 1258 void sub_240037C0(void) { 1259 int _fpu_cmp = 0; 1260 uint32_t _cf = 0; 1261 int _df = 1; 1262 uint32_t _flag_k = FK_NONE; 1263 uint32_t _flag_a = 0, _flag_b = 0; 1264 uint32_t _itail_tgt = 0; 1265 RECOMP_REGS_LOCALS 1266 RECOMP_ENTER(0x240037C0u); 1267 1268 L_240037C0: 1269 PUSH32(esp, ebp); /* 0x240037C0: push ebp */ 1270 ebp = esp; /* 0x240037C1: mov ebp, esp */ 1271 eax = MEM32(ebp + 0x10); /* 0x240037C3: mov eax, dword ptr [ebp + 0x10] */ 1272 PUSH32(esp, eax); /* 0x240037C6: push eax */ 1273 edx = ebp + 0x8; /* 0x240037C7: lea edx, [ebp + 8] */ 1274 PUSH32(esp, edx); /* 0x240037CA: push edx */ 1275 edx = MEM32(ebp + 0x8); /* 0x240037CB: mov edx, dword ptr [ebp + 8] */ 1276 eax = ebp + 0x10; /* 0x240037CE: lea eax, [ebp + 0x10] */ 1277 PUSH32(esp, eax); /* 0x240037D1: push eax */ 1278 PUSH32(esp, 1); /* 0x240037D2: push 1 */ 1279 PUSH32(esp, edx); /* 0x240037D4: push edx */ 1280 RECOMP_ICALL(0x24004200u); /* 0x240037D5: call 0x24004200 */ /* not lifted */ 1281 RECOMP_FLAGS_IN(); 1282 /* test eax, eax */ /* 0x240037DA: test eax, eax */ 1283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1284 _cf = 0; 1285 _flag_k = FK_TEST; 1286 if (TEST_NZ(_flag_a, _flag_b)) goto L_240037EA; /* 0x240037DC: jne 0x240037ea */ 1287 L_240037DE: 1288 eax = MEM32(ebp + 0x10); /* 0x240037DE: mov eax, dword ptr [ebp + 0x10] */ 1289 SET_LO8(ecx, MEM8(eax)); /* 0x240037E1: mov cl, byte ptr [eax] */ 1290 edx = MEM32(ebp + 0xC); /* 0x240037E3: mov edx, dword ptr [ebp + 0xc] */ 1291 MEM8(edx) = (uint8_t)(LO8(ecx)); /* 0x240037E6: mov byte ptr [edx], cl */ 1292 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1293 eax = 0; /* 0x240037E8: xor eax, eax */ 1294 _cf = 0; 1295 _flag_k = FK_TEST; 1296 L_240037EA: 1297 ebp = POP32_VAL(esp); /* 0x240037EA: pop ebp */ 1298 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x240037EB: ret 0xc */ 1299 RECOMP_REGS_OUT(); 1300 } 1301 1302 void sub_240037F0(void) { 1303 int _fpu_cmp = 0; 1304 uint32_t _cf = 0; 1305 int _df = 1; 1306 uint32_t _flag_k = FK_NONE; 1307 uint32_t _flag_a = 0, _flag_b = 0; 1308 uint32_t _itail_tgt = 0; 1309 RECOMP_REGS_LOCALS 1310 RECOMP_ENTER(0x240037F0u); 1311 1312 L_240037F0: 1313 PUSH32(esp, ebp); /* 0x240037F0: push ebp */ 1314 ebp = esp; /* 0x240037F1: mov ebp, esp */ 1315 eax = MEM32(ebp + 0x10); /* 0x240037F3: mov eax, dword ptr [ebp + 0x10] */ 1316 PUSH32(esp, eax); /* 0x240037F6: push eax */ 1317 edx = ebp + 0x8; /* 0x240037F7: lea edx, [ebp + 8] */ 1318 PUSH32(esp, edx); /* 0x240037FA: push edx */ 1319 edx = MEM32(ebp + 0x8); /* 0x240037FB: mov edx, dword ptr [ebp + 8] */ 1320 eax = ebp + 0x10; /* 0x240037FE: lea eax, [ebp + 0x10] */ 1321 PUSH32(esp, eax); /* 0x24003801: push eax */ 1322 PUSH32(esp, 2); /* 0x24003802: push 2 */ 1323 PUSH32(esp, edx); /* 0x24003804: push edx */ 1324 RECOMP_ICALL(0x24004200u); /* 0x24003805: call 0x24004200 */ /* not lifted */ 1325 RECOMP_FLAGS_IN(); 1326 /* test eax, eax */ /* 0x2400380A: test eax, eax */ 1327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1328 _cf = 0; 1329 _flag_k = FK_TEST; 1330 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400381C; /* 0x2400380C: jne 0x2400381c */ 1331 L_2400380E: 1332 eax = MEM32(ebp + 0x10); /* 0x2400380E: mov eax, dword ptr [ebp + 0x10] */ 1333 SET_LO16(ecx, MEM16(eax)); /* 0x24003811: mov cx, word ptr [eax] */ 1334 edx = MEM32(ebp + 0xC); /* 0x24003814: mov edx, dword ptr [ebp + 0xc] */ 1335 MEM16(edx) = (uint16_t)(LO16(ecx)); /* 0x24003817: mov word ptr [edx], cx */ 1336 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1337 eax = 0; /* 0x2400381A: xor eax, eax */ 1338 _cf = 0; 1339 _flag_k = FK_TEST; 1340 L_2400381C: 1341 ebp = POP32_VAL(esp); /* 0x2400381C: pop ebp */ 1342 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2400381D: ret 0xc */ 1343 RECOMP_REGS_OUT(); 1344 } 1345 1346 void sub_24003820(void) { 1347 int _fpu_cmp = 0; 1348 uint32_t _cf = 0; 1349 int _df = 1; 1350 uint32_t _flag_k = FK_NONE; 1351 uint32_t _flag_a = 0, _flag_b = 0; 1352 uint32_t _itail_tgt = 0; 1353 RECOMP_REGS_LOCALS 1354 RECOMP_ENTER(0x24003820u); 1355 1356 L_24003820: 1357 PUSH32(esp, ebp); /* 0x24003820: push ebp */ 1358 ebp = esp; /* 0x24003821: mov ebp, esp */ 1359 eax = MEM32(ebp + 0x10); /* 0x24003823: mov eax, dword ptr [ebp + 0x10] */ 1360 PUSH32(esp, eax); /* 0x24003826: push eax */ 1361 edx = ebp + 0x8; /* 0x24003827: lea edx, [ebp + 8] */ 1362 PUSH32(esp, edx); /* 0x2400382A: push edx */ 1363 edx = MEM32(ebp + 0x8); /* 0x2400382B: mov edx, dword ptr [ebp + 8] */ 1364 eax = ebp + 0x10; /* 0x2400382E: lea eax, [ebp + 0x10] */ 1365 PUSH32(esp, eax); /* 0x24003831: push eax */ 1366 PUSH32(esp, 3); /* 0x24003832: push 3 */ 1367 PUSH32(esp, edx); /* 0x24003834: push edx */ 1368 RECOMP_ICALL(0x24004200u); /* 0x24003835: call 0x24004200 */ /* not lifted */ 1369 RECOMP_FLAGS_IN(); 1370 /* test eax, eax */ /* 0x2400383A: test eax, eax */ 1371 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1372 _cf = 0; 1373 _flag_k = FK_TEST; 1374 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400384A; /* 0x2400383C: jne 0x2400384a */ 1375 L_2400383E: 1376 eax = MEM32(ebp + 0x10); /* 0x2400383E: mov eax, dword ptr [ebp + 0x10] */ 1377 ecx = MEM32(eax); /* 0x24003841: mov ecx, dword ptr [eax] */ 1378 edx = MEM32(ebp + 0xC); /* 0x24003843: mov edx, dword ptr [ebp + 0xc] */ 1379 MEM32(edx) = ecx; /* 0x24003846: mov dword ptr [edx], ecx */ 1380 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1381 eax = 0; /* 0x24003848: xor eax, eax */ 1382 _cf = 0; 1383 _flag_k = FK_TEST; 1384 L_2400384A: 1385 ebp = POP32_VAL(esp); /* 0x2400384A: pop ebp */ 1386 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2400384B: ret 0xc */ 1387 RECOMP_REGS_OUT(); 1388 } 1389 1390 void sub_24003850(void) { 1391 int _fpu_cmp = 0; 1392 uint32_t _cf = 0; 1393 int _df = 1; 1394 uint32_t _flag_k = FK_NONE; 1395 uint32_t _flag_a = 0, _flag_b = 0; 1396 uint32_t _itail_tgt = 0; 1397 RECOMP_REGS_LOCALS 1398 RECOMP_ENTER(0x24003850u); 1399 1400 L_24003850: 1401 PUSH32(esp, ebp); /* 0x24003850: push ebp */ 1402 ebp = esp; /* 0x24003851: mov ebp, esp */ 1403 eax = MEM32(ebp + 0x10); /* 0x24003853: mov eax, dword ptr [ebp + 0x10] */ 1404 PUSH32(esp, eax); /* 0x24003856: push eax */ 1405 edx = ebp + 0x8; /* 0x24003857: lea edx, [ebp + 8] */ 1406 PUSH32(esp, edx); /* 0x2400385A: push edx */ 1407 edx = MEM32(ebp + 0x8); /* 0x2400385B: mov edx, dword ptr [ebp + 8] */ 1408 eax = ebp + 0x10; /* 0x2400385E: lea eax, [ebp + 0x10] */ 1409 PUSH32(esp, eax); /* 0x24003861: push eax */ 1410 PUSH32(esp, 0x11u); /* 0x24003862: push 0x11 */ 1411 PUSH32(esp, edx); /* 0x24003864: push edx */ 1412 RECOMP_ICALL(0x24004200u); /* 0x24003865: call 0x24004200 */ /* not lifted */ 1413 RECOMP_FLAGS_IN(); 1414 /* test eax, eax */ /* 0x2400386A: test eax, eax */ 1415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1416 _cf = 0; 1417 _flag_k = FK_TEST; 1418 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400387A; /* 0x2400386C: jne 0x2400387a */ 1419 L_2400386E: 1420 eax = MEM32(ebp + 0x10); /* 0x2400386E: mov eax, dword ptr [ebp + 0x10] */ 1421 ecx = MEM32(eax); /* 0x24003871: mov ecx, dword ptr [eax] */ 1422 edx = MEM32(ebp + 0xC); /* 0x24003873: mov edx, dword ptr [ebp + 0xc] */ 1423 MEM32(edx) = ecx; /* 0x24003876: mov dword ptr [edx], ecx */ 1424 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1425 eax = 0; /* 0x24003878: xor eax, eax */ 1426 _cf = 0; 1427 _flag_k = FK_TEST; 1428 L_2400387A: 1429 ebp = POP32_VAL(esp); /* 0x2400387A: pop ebp */ 1430 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2400387B: ret 0xc */ 1431 RECOMP_REGS_OUT(); 1432 } 1433 1434 void sub_24003880(void) { 1435 int _fpu_cmp = 0; 1436 uint32_t _cf = 0; 1437 int _df = 1; 1438 uint32_t _flag_k = FK_NONE; 1439 uint32_t _flag_a = 0, _flag_b = 0; 1440 uint32_t _itail_tgt = 0; 1441 RECOMP_REGS_LOCALS 1442 RECOMP_ENTER(0x24003880u); 1443 1444 L_24003880: 1445 PUSH32(esp, ebp); /* 0x24003880: push ebp */ 1446 ebp = esp; /* 0x24003881: mov ebp, esp */ 1447 eax = MEM32(ebp + 0x10); /* 0x24003883: mov eax, dword ptr [ebp + 0x10] */ 1448 PUSH32(esp, eax); /* 0x24003886: push eax */ 1449 edx = ebp + 0x8; /* 0x24003887: lea edx, [ebp + 8] */ 1450 PUSH32(esp, edx); /* 0x2400388A: push edx */ 1451 edx = MEM32(ebp + 0x8); /* 0x2400388B: mov edx, dword ptr [ebp + 8] */ 1452 eax = ebp + 0x10; /* 0x2400388E: lea eax, [ebp + 0x10] */ 1453 PUSH32(esp, eax); /* 0x24003891: push eax */ 1454 PUSH32(esp, 0xAu); /* 0x24003892: push 0xa */ 1455 PUSH32(esp, edx); /* 0x24003894: push edx */ 1456 RECOMP_ICALL(0x24004200u); /* 0x24003895: call 0x24004200 */ /* not lifted */ 1457 RECOMP_FLAGS_IN(); 1458 /* test eax, eax */ /* 0x2400389A: test eax, eax */ 1459 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1460 _cf = 0; 1461 _flag_k = FK_TEST; 1462 if (TEST_NZ(_flag_a, _flag_b)) goto L_240038AA; /* 0x2400389C: jne 0x240038aa */ 1463 L_2400389E: 1464 eax = MEM32(ebp + 0x10); /* 0x2400389E: mov eax, dword ptr [ebp + 0x10] */ 1465 ecx = MEM32(eax); /* 0x240038A1: mov ecx, dword ptr [eax] */ 1466 edx = MEM32(ebp + 0xC); /* 0x240038A3: mov edx, dword ptr [ebp + 0xc] */ 1467 MEM32(edx) = ecx; /* 0x240038A6: mov dword ptr [edx], ecx */ 1468 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1469 eax = 0; /* 0x240038A8: xor eax, eax */ 1470 _cf = 0; 1471 _flag_k = FK_TEST; 1472 L_240038AA: 1473 ebp = POP32_VAL(esp); /* 0x240038AA: pop ebp */ 1474 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x240038AB: ret 0xc */ 1475 RECOMP_REGS_OUT(); 1476 } 1477 1478 void sub_240038B0(void) { 1479 int _fpu_cmp = 0; 1480 uint32_t _cf = 0; 1481 int _df = 1; 1482 uint32_t _flag_k = FK_NONE; 1483 uint32_t _flag_a = 0, _flag_b = 0; 1484 uint32_t _itail_tgt = 0; 1485 RECOMP_REGS_LOCALS 1486 RECOMP_ENTER(0x240038B0u); 1487 1488 L_240038B0: 1489 PUSH32(esp, ebp); /* 0x240038B0: push ebp */ 1490 ebp = esp; /* 0x240038B1: mov ebp, esp */ 1491 eax = MEM32(ebp + 0x10); /* 0x240038B3: mov eax, dword ptr [ebp + 0x10] */ 1492 PUSH32(esp, eax); /* 0x240038B6: push eax */ 1493 edx = ebp + 0x8; /* 0x240038B7: lea edx, [ebp + 8] */ 1494 PUSH32(esp, edx); /* 0x240038BA: push edx */ 1495 edx = MEM32(ebp + 0x8); /* 0x240038BB: mov edx, dword ptr [ebp + 8] */ 1496 eax = ebp + 0x10; /* 0x240038BE: lea eax, [ebp + 0x10] */ 1497 PUSH32(esp, eax); /* 0x240038C1: push eax */ 1498 PUSH32(esp, 0xBu); /* 0x240038C2: push 0xb */ 1499 PUSH32(esp, edx); /* 0x240038C4: push edx */ 1500 RECOMP_ICALL(0x24004200u); /* 0x240038C5: call 0x24004200 */ /* not lifted */ 1501 RECOMP_FLAGS_IN(); 1502 /* test eax, eax */ /* 0x240038CA: test eax, eax */ 1503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1504 _cf = 0; 1505 _flag_k = FK_TEST; 1506 if (TEST_NZ(_flag_a, _flag_b)) goto L_240038E0; /* 0x240038CC: jne 0x240038e0 */ 1507 L_240038CE: 1508 eax = MEM32(ebp + 0x10); /* 0x240038CE: mov eax, dword ptr [ebp + 0x10] */ 1509 edx = MEM32(eax); /* 0x240038D1: mov edx, dword ptr [eax] */ 1510 ecx = MEM32(ebp + 0xC); /* 0x240038D3: mov ecx, dword ptr [ebp + 0xc] */ 1511 MEM32(ecx) = edx; /* 0x240038D6: mov dword ptr [ecx], edx */ 1512 eax = MEM32(eax + 0x4); /* 0x240038D8: mov eax, dword ptr [eax + 4] */ 1513 MEM32(ecx + 0x4) = eax; /* 0x240038DB: mov dword ptr [ecx + 4], eax */ 1514 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1515 eax = 0; /* 0x240038DE: xor eax, eax */ 1516 _cf = 0; 1517 _flag_k = FK_TEST; 1518 L_240038E0: 1519 ebp = POP32_VAL(esp); /* 0x240038E0: pop ebp */ 1520 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x240038E1: ret 0xc */ 1521 RECOMP_REGS_OUT(); 1522 } 1523 1524 void sub_240038F0(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(0x240038F0u); 1533 1534 L_240038F0: 1535 PUSH32(esp, ebp); /* 0x240038F0: push ebp */ 1536 ebp = esp; /* 0x240038F1: mov ebp, esp */ 1537 eax = MEM32(ebp + 0x10); /* 0x240038F3: mov eax, dword ptr [ebp + 0x10] */ 1538 PUSH32(esp, eax); /* 0x240038F6: push eax */ 1539 edx = ebp + 0x10; /* 0x240038F7: lea edx, [ebp + 0x10] */ 1540 PUSH32(esp, edx); /* 0x240038FA: push edx */ 1541 edx = MEM32(ebp + 0x8); /* 0x240038FB: mov edx, dword ptr [ebp + 8] */ 1542 eax = ebp + 0x8; /* 0x240038FE: lea eax, [ebp + 8] */ 1543 PUSH32(esp, eax); /* 0x24003901: push eax */ 1544 PUSH32(esp, 5); /* 0x24003902: push 5 */ 1545 PUSH32(esp, edx); /* 0x24003904: push edx */ 1546 RECOMP_ICALL(0x24004200u); /* 0x24003905: call 0x24004200 */ /* not lifted */ 1547 RECOMP_FLAGS_IN(); 1548 /* test eax, eax */ /* 0x2400390A: test eax, eax */ 1549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1550 _cf = 0; 1551 _flag_k = FK_TEST; 1552 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003920; /* 0x2400390C: jne 0x24003920 */ 1553 L_2400390E: 1554 edx = MEM32(ebp + 0x10); /* 0x2400390E: mov edx, dword ptr [ebp + 0x10] */ 1555 ecx = MEM32(ebp + 0xC); /* 0x24003911: mov ecx, dword ptr [ebp + 0xc] */ 1556 eax = MEM32(ecx); /* 0x24003914: mov eax, dword ptr [ecx] */ 1557 PUSH32(esp, edx); /* 0x24003916: push edx */ 1558 edx = MEM32(ebp + 0x8); /* 0x24003917: mov edx, dword ptr [ebp + 8] */ 1559 PUSH32(esp, edx); /* 0x2400391A: push edx */ 1560 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x2400391B: call dword ptr [eax + 0xc] */ 1561 RECOMP_FLAGS_IN(); 1562 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1563 eax = 0; /* 0x2400391E: xor eax, eax */ 1564 _cf = 0; 1565 _flag_k = FK_TEST; 1566 L_24003920: 1567 ebp = POP32_VAL(esp); /* 0x24003920: pop ebp */ 1568 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003921: ret 0xc */ 1569 RECOMP_REGS_OUT(); 1570 } 1571 1572 void sub_24003930(void) { 1573 int _fpu_cmp = 0; 1574 uint32_t _cf = 0; 1575 int _df = 1; 1576 uint32_t _flag_k = FK_NONE; 1577 uint32_t _flag_a = 0, _flag_b = 0; 1578 uint32_t _itail_tgt = 0; 1579 RECOMP_REGS_LOCALS 1580 RECOMP_ENTER(0x24003930u); 1581 1582 L_24003930: 1583 PUSH32(esp, ebp); /* 0x24003930: push ebp */ 1584 ebp = esp; /* 0x24003931: mov ebp, esp */ 1585 PUSH32(esp, 0xFFFFFFFFu); /* 0x24003933: push -1 */ 1586 PUSH32(esp, 0x24009C19u); /* 0x24003935: push 0x24009c19 */ 1587 eax = MEM32(FS_BASE + (0)); /* 0x2400393A: mov eax, dword ptr fs:[0] */ 1588 PUSH32(esp, eax); /* 0x24003940: push eax */ 1589 MEM32(FS_BASE + (0)) = esp; /* 0x24003941: mov dword ptr fs:[0], esp */ 1590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1592 esp = esp - 0x10u; /* 0x24003948: sub esp, 0x10 */ 1593 _flag_k = FK_CMP; 1594 eax = MEM32(ebp + 0x10); /* 0x2400394B: mov eax, dword ptr [ebp + 0x10] */ 1595 PUSH32(esp, edi); /* 0x2400394E: push edi */ 1596 PUSH32(esp, eax); /* 0x2400394F: push eax */ 1597 edx = ebp + 0x10; /* 0x24003950: lea edx, [ebp + 0x10] */ 1598 PUSH32(esp, edx); /* 0x24003953: push edx */ 1599 edx = MEM32(ebp + 0x8); /* 0x24003954: mov edx, dword ptr [ebp + 8] */ 1600 eax = ebp + 0x8; /* 0x24003957: lea eax, [ebp + 8] */ 1601 PUSH32(esp, eax); /* 0x2400395A: push eax */ 1602 PUSH32(esp, 6); /* 0x2400395B: push 6 */ 1603 PUSH32(esp, edx); /* 0x2400395D: push edx */ 1604 RECOMP_ICALL(0x24004200u); /* 0x2400395E: call 0x24004200 */ /* not lifted */ 1605 RECOMP_FLAGS_IN(); 1606 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1607 edi = 0; /* 0x24003963: xor edi, edi */ 1608 _cf = 0; 1609 _flag_k = FK_TEST; 1610 /* cmp eax, edi */ /* 0x24003965: cmp eax, edi */ 1611 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1613 _flag_k = FK_CMP; 1614 if (CMP_NE(_flag_a, _flag_b)) goto L_24003AA0; /* 0x24003967: jne 0x24003aa0 */ 1615 L_2400396D: 1616 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x2400396D: mov al, byte ptr [ebp + 0xf] */ 1617 PUSH32(esp, ebx); /* 0x24003970: push ebx */ 1618 ebx = MEM32(ebp + 0x10); /* 0x24003971: mov ebx, dword ptr [ebp + 0x10] */ 1619 PUSH32(esp, esi); /* 0x24003974: push esi */ 1620 esi = MEM32(ebp + 0x8); /* 0x24003975: mov esi, dword ptr [ebp + 8] */ 1621 PUSH32(esp, 1); /* 0x24003978: push 1 */ 1622 PUSH32(esp, ebx); /* 0x2400397A: push ebx */ 1623 ecx = ebp + (-0x1C); /* 0x2400397B: lea ecx, [ebp - 0x1c] */ 1624 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x2400397E: mov byte ptr [ebp - 0x1c], al */ 1625 MEM32(ebp + (-0x18)) = edi; /* 0x24003981: mov dword ptr [ebp - 0x18], edi */ 1626 MEM32(ebp + (-0x14)) = edi; /* 0x24003984: mov dword ptr [ebp - 0x14], edi */ 1627 MEM32(ebp + (-0x10)) = edi; /* 0x24003987: mov dword ptr [ebp - 0x10], edi */ 1628 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x2400398A: call dword ptr [0x2400b048] */ 1629 RECOMP_FLAGS_IN(); 1630 /* test LO8(eax), LO8(eax) */ /* 0x24003990: test al, al */ 1631 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1632 _cf = 0; 1633 _flag_k = FK_NARROW(FK_TEST, 24); 1634 if (TEST_Z(_flag_a, _flag_b)) goto L_240039B3; /* 0x24003992: je 0x240039b3 */ 1635 L_24003994: 1636 edi = MEM32(ebp + (-0x18)); /* 0x24003994: mov edi, dword ptr [ebp - 0x18] */ 1637 ecx = ebx; /* 0x24003997: mov ecx, ebx */ 1638 edx = ecx; /* 0x24003999: mov edx, ecx */ 1639 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2400399B: shr ecx, 2 */ 1640 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1641 ecx = ecx >> 2u; /* 0x2400399B: shr ecx, 2 */ 1642 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2400399E: 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; } 1643 ecx = edx; /* 0x240039A0: mov ecx, edx */ 1644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1645 ecx = ecx & 3; /* 0x240039A2: and ecx, 3 */ 1646 _cf = 0; 1647 _flag_k = FK_TEST; 1648 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240039A5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1649 eax = MEM32(ebp + (-0x18)); /* 0x240039A7: mov eax, dword ptr [ebp - 0x18] */ 1650 MEM32(ebp + (-0x14)) = ebx; /* 0x240039AA: mov dword ptr [ebp - 0x14], ebx */ 1651 MEM8(eax + ebx) = (uint8_t)(0); /* 0x240039AD: mov byte ptr [eax + ebx], 0 */ 1652 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1653 edi = 0; /* 0x240039B1: xor edi, edi */ 1654 _cf = 0; 1655 _flag_k = FK_TEST; 1656 L_240039B3: 1657 ecx = MEM32(0x2400B044); /* 0x240039B3: mov ecx, dword ptr [0x2400b044] */ 1658 eax = MEM32(ecx); /* 0x240039B9: mov eax, dword ptr [ecx] */ 1659 ecx = MEM32(ebp + (-0x14)); /* 0x240039BB: mov ecx, dword ptr [ebp - 0x14] */ 1660 ebx = ecx; /* 0x240039BE: mov ebx, ecx */ 1661 /* cmp eax, ebx */ /* 0x240039C0: cmp eax, ebx */ 1662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1664 _flag_k = FK_CMP; 1665 MEM32(ebp + (-0x4)) = edi; /* 0x240039C2: mov dword ptr [ebp - 4], edi */ 1666 if (CMP_AE(_flag_a, _flag_b)) goto L_240039C9; /* 0x240039C5: jae 0x240039c9 */ 1667 L_240039C7: 1668 ebx = eax; /* 0x240039C7: mov ebx, eax */ 1669 L_240039C9: 1670 edi = MEM32(ebp + 0xC); /* 0x240039C9: mov edi, dword ptr [ebp + 0xc] */ 1671 edx = ebp + (-0x1C); /* 0x240039CC: lea edx, [ebp - 0x1c] */ 1672 /* cmp edi, edx */ /* 0x240039CF: cmp edi, edx */ 1673 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1675 _flag_k = FK_CMP; 1676 if (CMP_NE(_flag_a, _flag_b)) goto L_240039EB; /* 0x240039D1: jne 0x240039eb */ 1677 L_240039D3: 1678 PUSH32(esp, eax); /* 0x240039D3: push eax */ 1679 PUSH32(esp, ebx); /* 0x240039D4: push ebx */ 1680 ecx = edi; /* 0x240039D5: mov ecx, edi */ 1681 RECOMP_ICALL(MEM32(0x2400B040)); /* 0x240039D7: call dword ptr [0x2400b040] */ 1682 RECOMP_FLAGS_IN(); 1683 PUSH32(esp, 0); /* 0x240039DD: push 0 */ 1684 PUSH32(esp, 0); /* 0x240039DF: push 0 */ 1685 ecx = edi; /* 0x240039E1: mov ecx, edi */ 1686 RECOMP_ICALL(MEM32(0x2400B040)); /* 0x240039E3: call dword ptr [0x2400b040] */ 1687 RECOMP_FLAGS_IN(); 1688 goto L_24003A68; /* 0x240039E9: jmp 0x24003a68 */ 1689 L_240039EB: 1690 /* test ebx, ebx */ /* 0x240039EB: test ebx, ebx */ 1691 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1692 _cf = 0; 1693 _flag_k = FK_TEST; 1694 if (TEST_Z(_flag_a, _flag_b)) goto L_24003A2F; /* 0x240039ED: jbe 0x24003a2f */ 1695 L_240039EF: 1696 /* cmp ebx, ecx */ /* 0x240039EF: cmp ebx, ecx */ 1697 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 1698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1699 _flag_k = FK_CMP; 1700 if (CMP_NE(_flag_a, _flag_b)) goto L_24003A2F; /* 0x240039F1: jne 0x24003a2f */ 1701 L_240039F3: 1702 eax = MEM32(ebp + (-0x18)); /* 0x240039F3: mov eax, dword ptr [ebp - 0x18] */ 1703 /* test eax, eax */ /* 0x240039F6: test eax, eax */ 1704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1705 _cf = 0; 1706 _flag_k = FK_TEST; 1707 if (TEST_NZ(_flag_a, _flag_b)) goto L_240039FF; /* 0x240039F8: jne 0x240039ff */ 1708 L_240039FA: 1709 eax = MEM32(0x2400B01C); /* 0x240039FA: mov eax, dword ptr [0x2400b01c] */ 1710 L_240039FF: 1711 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x240039FF: cmp byte ptr [eax - 1], 0xfe */ 1712 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 1713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1714 _flag_k = FK_NARROW(FK_CMP, 24); 1715 if (CMP_AE(_flag_a, _flag_b)) goto L_24003A2F; /* 0x24003A03: jae 0x24003a2f */ 1716 L_24003A05: 1717 PUSH32(esp, 1); /* 0x24003A05: push 1 */ 1718 ecx = edi; /* 0x24003A07: mov ecx, edi */ 1719 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24003A09: call dword ptr [0x2400b020] */ 1720 RECOMP_FLAGS_IN(); 1721 eax = MEM32(ebp + (-0x18)); /* 0x24003A0F: mov eax, dword ptr [ebp - 0x18] */ 1722 /* test eax, eax */ /* 0x24003A12: test eax, eax */ 1723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1724 _cf = 0; 1725 _flag_k = FK_TEST; 1726 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003A1B; /* 0x24003A14: jne 0x24003a1b */ 1727 L_24003A16: 1728 eax = MEM32(0x2400B01C); /* 0x24003A16: mov eax, dword ptr [0x2400b01c] */ 1729 L_24003A1B: 1730 ecx = MEM32(ebp + (-0x14)); /* 0x24003A1B: mov ecx, dword ptr [ebp - 0x14] */ 1731 edx = MEM32(ebp + (-0x10)); /* 0x24003A1E: mov edx, dword ptr [ebp - 0x10] */ 1732 MEM32(edi + 0x8) = ecx; /* 0x24003A21: mov dword ptr [edi + 8], ecx */ 1733 MEM32(edi + 0x4) = eax; /* 0x24003A24: mov dword ptr [edi + 4], eax */ 1734 MEM32(edi + 0xC) = edx; /* 0x24003A27: mov dword ptr [edi + 0xc], edx */ 1735 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 1736 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x24003A2A: inc byte ptr [eax - 1] */ 1737 _flag_k = FK_NARROW(FK_INC, 24); 1738 goto L_24003A68; /* 0x24003A2D: jmp 0x24003a68 */ 1739 L_24003A2F: 1740 PUSH32(esp, 1); /* 0x24003A2F: push 1 */ 1741 PUSH32(esp, ebx); /* 0x24003A31: push ebx */ 1742 ecx = edi; /* 0x24003A32: mov ecx, edi */ 1743 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x24003A34: call dword ptr [0x2400b048] */ 1744 RECOMP_FLAGS_IN(); 1745 /* test LO8(eax), LO8(eax) */ /* 0x24003A3A: test al, al */ 1746 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1747 _cf = 0; 1748 _flag_k = FK_NARROW(FK_TEST, 24); 1749 if (TEST_Z(_flag_a, _flag_b)) goto L_24003A68; /* 0x24003A3C: je 0x24003a68 */ 1750 L_24003A3E: 1751 esi = MEM32(ebp + (-0x18)); /* 0x24003A3E: mov esi, dword ptr [ebp - 0x18] */ 1752 /* test esi, esi */ /* 0x24003A41: test esi, esi */ 1753 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1754 _cf = 0; 1755 _flag_k = FK_TEST; 1756 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003A4B; /* 0x24003A43: jne 0x24003a4b */ 1757 L_24003A45: 1758 esi = MEM32(0x2400B01C); /* 0x24003A45: mov esi, dword ptr [0x2400b01c] */ 1759 L_24003A4B: 1760 edi = MEM32(edi + 0x4); /* 0x24003A4B: mov edi, dword ptr [edi + 4] */ 1761 ecx = ebx; /* 0x24003A4E: mov ecx, ebx */ 1762 eax = ecx; /* 0x24003A50: mov eax, ecx */ 1763 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24003A52: shr ecx, 2 */ 1764 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1765 ecx = ecx >> 2u; /* 0x24003A52: shr ecx, 2 */ 1766 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24003A55: 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; } 1767 ecx = eax; /* 0x24003A57: mov ecx, eax */ 1768 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1769 ecx = ecx & 3; /* 0x24003A59: and ecx, 3 */ 1770 _cf = 0; 1771 _flag_k = FK_TEST; 1772 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24003A5C: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1773 ecx = MEM32(ebp + 0xC); /* 0x24003A5E: mov ecx, dword ptr [ebp + 0xc] */ 1774 PUSH32(esp, ebx); /* 0x24003A61: push ebx */ 1775 RECOMP_ICALL(MEM32(0x2400B03C)); /* 0x24003A62: call dword ptr [0x2400b03c] */ 1776 RECOMP_FLAGS_IN(); 1777 L_24003A68: 1778 eax = MEM32(ebp + (-0x18)); /* 0x24003A68: mov eax, dword ptr [ebp - 0x18] */ 1779 /* test eax, eax */ /* 0x24003A6B: test eax, eax */ 1780 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1781 _cf = 0; 1782 _flag_k = FK_TEST; 1783 esi = POP32_VAL(esp); /* 0x24003A6D: pop esi */ 1784 ebx = POP32_VAL(esp); /* 0x24003A6E: pop ebx */ 1785 if (TEST_Z(_flag_a, _flag_b)) goto L_24003A9E; /* 0x24003A6F: je 0x24003a9e */ 1786 L_24003A71: 1787 ecx = eax + (-0x1); /* 0x24003A71: lea ecx, [eax - 1] */ 1788 SET_LO8(eax, MEM8(ecx)); /* 0x24003A74: mov al, byte ptr [ecx] */ 1789 /* test LO8(eax), LO8(eax) */ /* 0x24003A76: test al, al */ 1790 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1791 _cf = 0; 1792 _flag_k = FK_NARROW(FK_TEST, 24); 1793 if (TEST_Z(_flag_a, _flag_b)) goto L_24003A95; /* 0x24003A78: je 0x24003a95 */ 1794 L_24003A7A: 1795 /* cmp LO8(eax), 0xFFu */ /* 0x24003A7A: cmp al, 0xff */ 1796 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1798 _flag_k = FK_NARROW(FK_CMP, 24); 1799 if (CMP_EQ(_flag_a, _flag_b)) goto L_24003A95; /* 0x24003A7C: je 0x24003a95 */ 1800 L_24003A7E: 1801 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1802 SET_LO8(eax, LO8(eax) - 1); /* 0x24003A7E: dec al */ 1803 _flag_k = FK_NARROW(FK_DEC, 24); 1804 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x24003A80: mov byte ptr [ecx], al */ 1805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1806 eax = 0; /* 0x24003A82: xor eax, eax */ 1807 _cf = 0; 1808 _flag_k = FK_TEST; 1809 edi = POP32_VAL(esp); /* 0x24003A84: pop edi */ 1810 ecx = MEM32(ebp + (-0xC)); /* 0x24003A85: mov ecx, dword ptr [ebp - 0xc] */ 1811 MEM32(FS_BASE + (0)) = ecx; /* 0x24003A88: mov dword ptr fs:[0], ecx */ 1812 esp = ebp; /* 0x24003A8F: mov esp, ebp */ 1813 ebp = POP32_VAL(esp); /* 0x24003A91: pop ebp */ 1814 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003A92: ret 0xc */ 1815 L_24003A95: 1816 PUSH32(esp, ecx); /* 0x24003A95: push ecx */ 1817 RECOMP_ICALL(0x240097F2u); /* 0x24003A96: call 0x240097f2 */ /* not lifted */ 1818 RECOMP_FLAGS_IN(); 1819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1821 esp = esp + 4; /* 0x24003A9B: add esp, 4 */ 1822 _flag_k = FK_ADD; 1823 L_24003A9E: 1824 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1825 eax = 0; /* 0x24003A9E: xor eax, eax */ 1826 _cf = 0; 1827 _flag_k = FK_TEST; 1828 L_24003AA0: 1829 ecx = MEM32(ebp + (-0xC)); /* 0x24003AA0: mov ecx, dword ptr [ebp - 0xc] */ 1830 edi = POP32_VAL(esp); /* 0x24003AA3: pop edi */ 1831 MEM32(FS_BASE + (0)) = ecx; /* 0x24003AA4: mov dword ptr fs:[0], ecx */ 1832 esp = ebp; /* 0x24003AAB: mov esp, ebp */ 1833 ebp = POP32_VAL(esp); /* 0x24003AAD: pop ebp */ 1834 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003AAE: ret 0xc */ 1835 RECOMP_REGS_OUT(); 1836 } 1837 1838 void sub_24003AC0(void) { 1839 int _fpu_cmp = 0; 1840 uint32_t _cf = 0; 1841 int _df = 1; 1842 uint32_t _flag_k = FK_NONE; 1843 uint32_t _flag_a = 0, _flag_b = 0; 1844 uint32_t _itail_tgt = 0; 1845 RECOMP_REGS_LOCALS 1846 RECOMP_ENTER(0x24003AC0u); 1847 1848 L_24003AC0: 1849 PUSH32(esp, ebp); /* 0x24003AC0: push ebp */ 1850 ebp = esp; /* 0x24003AC1: mov ebp, esp */ 1851 eax = MEM32(ebp + 0x10); /* 0x24003AC3: mov eax, dword ptr [ebp + 0x10] */ 1852 PUSH32(esp, eax); /* 0x24003AC6: push eax */ 1853 edx = ebp + 0x8; /* 0x24003AC7: lea edx, [ebp + 8] */ 1854 PUSH32(esp, edx); /* 0x24003ACA: push edx */ 1855 edx = MEM32(ebp + 0x8); /* 0x24003ACB: mov edx, dword ptr [ebp + 8] */ 1856 eax = ebp + 0x10; /* 0x24003ACE: lea eax, [ebp + 0x10] */ 1857 PUSH32(esp, eax); /* 0x24003AD1: push eax */ 1858 PUSH32(esp, 0xCu); /* 0x24003AD2: push 0xc */ 1859 PUSH32(esp, edx); /* 0x24003AD4: push edx */ 1860 RECOMP_ICALL(0x24004200u); /* 0x24003AD5: call 0x24004200 */ /* not lifted */ 1861 RECOMP_FLAGS_IN(); 1862 /* test eax, eax */ /* 0x24003ADA: test eax, eax */ 1863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1864 _cf = 0; 1865 _flag_k = FK_TEST; 1866 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003AF6; /* 0x24003ADC: jne 0x24003af6 */ 1867 L_24003ADE: 1868 eax = MEM32(ebp + 0x10); /* 0x24003ADE: mov eax, dword ptr [ebp + 0x10] */ 1869 edx = MEM32(eax); /* 0x24003AE1: mov edx, dword ptr [eax] */ 1870 ecx = MEM32(ebp + 0xC); /* 0x24003AE3: mov ecx, dword ptr [ebp + 0xc] */ 1871 MEM32(ecx) = edx; /* 0x24003AE6: mov dword ptr [ecx], edx */ 1872 edx = MEM32(eax + 0x4); /* 0x24003AE8: mov edx, dword ptr [eax + 4] */ 1873 MEM32(ecx + 0x4) = edx; /* 0x24003AEB: mov dword ptr [ecx + 4], edx */ 1874 eax = MEM32(eax + 0x8); /* 0x24003AEE: mov eax, dword ptr [eax + 8] */ 1875 MEM32(ecx + 0x8) = eax; /* 0x24003AF1: mov dword ptr [ecx + 8], eax */ 1876 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1877 eax = 0; /* 0x24003AF4: xor eax, eax */ 1878 _cf = 0; 1879 _flag_k = FK_TEST; 1880 L_24003AF6: 1881 ebp = POP32_VAL(esp); /* 0x24003AF6: pop ebp */ 1882 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003AF7: ret 0xc */ 1883 RECOMP_REGS_OUT(); 1884 } 1885 1886 void sub_24003B00(void) { 1887 int _fpu_cmp = 0; 1888 uint32_t _cf = 0; 1889 int _df = 1; 1890 uint32_t _flag_k = FK_NONE; 1891 uint32_t _flag_a = 0, _flag_b = 0; 1892 uint32_t _itail_tgt = 0; 1893 RECOMP_REGS_LOCALS 1894 RECOMP_ENTER(0x24003B00u); 1895 1896 L_24003B00: 1897 PUSH32(esp, ebp); /* 0x24003B00: push ebp */ 1898 ebp = esp; /* 0x24003B01: mov ebp, esp */ 1899 eax = MEM32(ebp + 0x10); /* 0x24003B03: mov eax, dword ptr [ebp + 0x10] */ 1900 PUSH32(esp, eax); /* 0x24003B06: push eax */ 1901 edx = ebp + 0x8; /* 0x24003B07: lea edx, [ebp + 8] */ 1902 PUSH32(esp, edx); /* 0x24003B0A: push edx */ 1903 edx = MEM32(ebp + 0x8); /* 0x24003B0B: mov edx, dword ptr [ebp + 8] */ 1904 eax = ebp + 0x10; /* 0x24003B0E: lea eax, [ebp + 0x10] */ 1905 PUSH32(esp, eax); /* 0x24003B11: push eax */ 1906 PUSH32(esp, 0xDu); /* 0x24003B12: push 0xd */ 1907 PUSH32(esp, edx); /* 0x24003B14: push edx */ 1908 RECOMP_ICALL(0x24004200u); /* 0x24003B15: call 0x24004200 */ /* not lifted */ 1909 RECOMP_FLAGS_IN(); 1910 /* test eax, eax */ /* 0x24003B1A: test eax, eax */ 1911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1912 _cf = 0; 1913 _flag_k = FK_TEST; 1914 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003B3C; /* 0x24003B1C: jne 0x24003b3c */ 1915 L_24003B1E: 1916 eax = MEM32(ebp + 0x10); /* 0x24003B1E: mov eax, dword ptr [ebp + 0x10] */ 1917 edx = MEM32(eax); /* 0x24003B21: mov edx, dword ptr [eax] */ 1918 ecx = MEM32(ebp + 0xC); /* 0x24003B23: mov ecx, dword ptr [ebp + 0xc] */ 1919 MEM32(ecx) = edx; /* 0x24003B26: mov dword ptr [ecx], edx */ 1920 edx = MEM32(eax + 0x4); /* 0x24003B28: mov edx, dword ptr [eax + 4] */ 1921 MEM32(ecx + 0x4) = edx; /* 0x24003B2B: mov dword ptr [ecx + 4], edx */ 1922 edx = MEM32(eax + 0x8); /* 0x24003B2E: mov edx, dword ptr [eax + 8] */ 1923 MEM32(ecx + 0x8) = edx; /* 0x24003B31: mov dword ptr [ecx + 8], edx */ 1924 eax = MEM32(eax + 0xC); /* 0x24003B34: mov eax, dword ptr [eax + 0xc] */ 1925 MEM32(ecx + 0xC) = eax; /* 0x24003B37: mov dword ptr [ecx + 0xc], eax */ 1926 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1927 eax = 0; /* 0x24003B3A: xor eax, eax */ 1928 _cf = 0; 1929 _flag_k = FK_TEST; 1930 L_24003B3C: 1931 ebp = POP32_VAL(esp); /* 0x24003B3C: pop ebp */ 1932 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003B3D: ret 0xc */ 1933 RECOMP_REGS_OUT(); 1934 } 1935 1936 void sub_24003B40(void) { 1937 int _fpu_cmp = 0; 1938 uint32_t _cf = 0; 1939 int _df = 1; 1940 uint32_t _flag_k = FK_NONE; 1941 uint32_t _flag_a = 0, _flag_b = 0; 1942 uint32_t _itail_tgt = 0; 1943 RECOMP_REGS_LOCALS 1944 RECOMP_ENTER(0x24003B40u); 1945 1946 L_24003B40: 1947 PUSH32(esp, ebp); /* 0x24003B40: push ebp */ 1948 ebp = esp; /* 0x24003B41: mov ebp, esp */ 1949 eax = MEM32(ebp + 0x10); /* 0x24003B43: mov eax, dword ptr [ebp + 0x10] */ 1950 PUSH32(esp, eax); /* 0x24003B46: push eax */ 1951 edx = ebp + 0x8; /* 0x24003B47: lea edx, [ebp + 8] */ 1952 PUSH32(esp, edx); /* 0x24003B4A: push edx */ 1953 edx = MEM32(ebp + 0x8); /* 0x24003B4B: mov edx, dword ptr [ebp + 8] */ 1954 eax = ebp + 0x10; /* 0x24003B4E: lea eax, [ebp + 0x10] */ 1955 PUSH32(esp, eax); /* 0x24003B51: push eax */ 1956 PUSH32(esp, 0xFu); /* 0x24003B52: push 0xf */ 1957 PUSH32(esp, edx); /* 0x24003B54: push edx */ 1958 RECOMP_ICALL(0x24004200u); /* 0x24003B55: call 0x24004200 */ /* not lifted */ 1959 RECOMP_FLAGS_IN(); 1960 /* test eax, eax */ /* 0x24003B5A: test eax, eax */ 1961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1962 _cf = 0; 1963 _flag_k = FK_TEST; 1964 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003B6F; /* 0x24003B5C: jne 0x24003b6f */ 1965 L_24003B5E: 1966 PUSH32(esp, esi); /* 0x24003B5E: push esi */ 1967 esi = MEM32(ebp + 0x10); /* 0x24003B5F: mov esi, dword ptr [ebp + 0x10] */ 1968 PUSH32(esp, edi); /* 0x24003B62: push edi */ 1969 edi = MEM32(ebp + 0xC); /* 0x24003B63: mov edi, dword ptr [ebp + 0xc] */ 1970 ecx = 0x10u; /* 0x24003B66: mov ecx, 0x10 */ 1971 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24003B6B: 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; } 1972 edi = POP32_VAL(esp); /* 0x24003B6D: pop edi */ 1973 esi = POP32_VAL(esp); /* 0x24003B6E: pop esi */ 1974 L_24003B6F: 1975 ebp = POP32_VAL(esp); /* 0x24003B6F: pop ebp */ 1976 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003B70: ret 0xc */ 1977 RECOMP_REGS_OUT(); 1978 } 1979 1980 void sub_24003B80(void) { 1981 int _fpu_cmp = 0; 1982 uint32_t _cf = 0; 1983 int _df = 1; 1984 uint32_t _flag_k = FK_NONE; 1985 uint32_t _flag_a = 0, _flag_b = 0; 1986 uint32_t _itail_tgt = 0; 1987 RECOMP_REGS_LOCALS 1988 RECOMP_ENTER(0x24003B80u); 1989 1990 L_24003B80: 1991 PUSH32(esp, ebp); /* 0x24003B80: push ebp */ 1992 ebp = esp; /* 0x24003B81: mov ebp, esp */ 1993 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1995 esp = esp - 0xCu; /* 0x24003B83: sub esp, 0xc */ 1996 _flag_k = FK_CMP; 1997 eax = MEM32(ebp + 0x10); /* 0x24003B86: mov eax, dword ptr [ebp + 0x10] */ 1998 PUSH32(esp, eax); /* 0x24003B89: push eax */ 1999 edx = ebp + 0x8; /* 0x24003B8A: lea edx, [ebp + 8] */ 2000 PUSH32(esp, edx); /* 0x24003B8D: push edx */ 2001 edx = MEM32(ebp + 0x8); /* 0x24003B8E: mov edx, dword ptr [ebp + 8] */ 2002 eax = ebp + 0x10; /* 0x24003B91: lea eax, [ebp + 0x10] */ 2003 PUSH32(esp, eax); /* 0x24003B94: push eax */ 2004 PUSH32(esp, 0x10u); /* 0x24003B95: push 0x10 */ 2005 PUSH32(esp, edx); /* 0x24003B97: push edx */ 2006 RECOMP_ICALL(0x24004200u); /* 0x24003B98: call 0x24004200 */ /* not lifted */ 2007 RECOMP_FLAGS_IN(); 2008 /* test eax, eax */ /* 0x24003B9D: test eax, eax */ 2009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2010 _cf = 0; 2011 _flag_k = FK_TEST; 2012 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003BCB; /* 0x24003B9F: jne 0x24003bcb */ 2013 L_24003BA1: 2014 eax = MEM32(ebp + 0x10); /* 0x24003BA1: mov eax, dword ptr [ebp + 0x10] */ 2015 fp_push(*(float*)&MEM32(eax)); /* 0x24003BA4: fld dword ptr [eax] */ 2016 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x24003BA6: fstp dword ptr [ebp - 0xc] */ 2017 fp_push(*(float*)&MEM32(eax + 0x8)); /* 0x24003BA9: fld dword ptr [eax + 8] */ 2018 ecx = MEM32(ebp + (-0xC)); /* 0x24003BAC: mov ecx, dword ptr [ebp - 0xc] */ 2019 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x24003BAF: fstp dword ptr [ebp - 8] */ 2020 fp_push(*(float*)&MEM32(eax + 0x4)); /* 0x24003BB2: fld dword ptr [eax + 4] */ 2021 eax = MEM32(ebp + 0xC); /* 0x24003BB5: mov eax, dword ptr [ebp + 0xc] */ 2022 edx = MEM32(ebp + (-0x8)); /* 0x24003BB8: mov edx, dword ptr [ebp - 8] */ 2023 MEM32(eax) = ecx; /* 0x24003BBB: mov dword ptr [eax], ecx */ 2024 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x24003BBD: fstp dword ptr [ebp - 4] */ 2025 ecx = MEM32(ebp + (-0x4)); /* 0x24003BC0: mov ecx, dword ptr [ebp - 4] */ 2026 MEM32(eax + 0x4) = edx; /* 0x24003BC3: mov dword ptr [eax + 4], edx */ 2027 MEM32(eax + 0x8) = ecx; /* 0x24003BC6: mov dword ptr [eax + 8], ecx */ 2028 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2029 eax = 0; /* 0x24003BC9: xor eax, eax */ 2030 _cf = 0; 2031 _flag_k = FK_TEST; 2032 L_24003BCB: 2033 esp = ebp; /* 0x24003BCB: mov esp, ebp */ 2034 ebp = POP32_VAL(esp); /* 0x24003BCD: pop ebp */ 2035 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24003BCE: ret 0xc */ 2036 RECOMP_REGS_OUT(); 2037 } 2038 2039 void sub_24003BE0(void) { 2040 int _fpu_cmp = 0; 2041 uint32_t _cf = 0; 2042 int _df = 1; 2043 uint32_t _flag_k = FK_NONE; 2044 uint32_t _flag_a = 0, _flag_b = 0; 2045 uint32_t _itail_tgt = 0; 2046 RECOMP_REGS_LOCALS 2047 RECOMP_ENTER(0x24003BE0u); 2048 2049 L_24003BE0: 2050 PUSH32(esp, ebp); /* 0x24003BE0: push ebp */ 2051 ebp = esp; /* 0x24003BE1: mov ebp, esp */ 2052 PUSH32(esp, 0xFFFFFFFFu); /* 0x24003BE3: push -1 */ 2053 PUSH32(esp, 0x24009C4Bu); /* 0x24003BE5: push 0x24009c4b */ 2054 eax = MEM32(FS_BASE + (0)); /* 0x24003BEA: mov eax, dword ptr fs:[0] */ 2055 PUSH32(esp, eax); /* 0x24003BF0: push eax */ 2056 MEM32(FS_BASE + (0)) = esp; /* 0x24003BF1: mov dword ptr fs:[0], esp */ 2057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xB0u); 2058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2059 esp = esp - 0xB0u; /* 0x24003BF8: sub esp, 0xb0 */ 2060 _flag_k = FK_CMP; 2061 PUSH32(esp, ebx); /* 0x24003BFE: push ebx */ 2062 PUSH32(esp, esi); /* 0x24003BFF: push esi */ 2063 esi = ecx; /* 0x24003C00: mov esi, ecx */ 2064 eax = MEM32(esi); /* 0x24003C02: mov eax, dword ptr [esi] */ 2065 PUSH32(esp, edi); /* 0x24003C04: push edi */ 2066 MEM32(ebp + (-0x10)) = esi; /* 0x24003C05: mov dword ptr [ebp - 0x10], esi */ 2067 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x24003C08: call dword ptr [eax + 0x20] */ 2068 RECOMP_FLAGS_IN(); 2069 ebx = eax; /* 0x24003C0B: mov ebx, eax */ 2070 eax = esi + 0x1C; /* 0x24003C0D: lea eax, [esi + 0x1c] */ 2071 PUSH32(esp, 7); /* 0x24003C10: push 7 */ 2072 PUSH32(esp, eax); /* 0x24003C12: push eax */ 2073 ecx = ebp + (-0x50); /* 0x24003C13: lea ecx, [ebp - 0x50] */ 2074 PUSH32(esp, ecx); /* 0x24003C16: push ecx */ 2075 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x24003C17: call dword ptr [0x2400b0b4] */ 2076 RECOMP_FLAGS_IN(); 2077 esi = MEM32(ebp + 0x8); /* 0x24003C1D: mov esi, dword ptr [ebp + 8] */ 2078 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2079 ecx = ecx | 0xFFFFFFFFu; /* 0x24003C20: or ecx, 0xffffffff */ 2080 _cf = 0; 2081 _flag_k = FK_TEST; 2082 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2083 eax = 0; /* 0x24003C23: xor eax, eax */ 2084 _cf = 0; 2085 _flag_k = FK_TEST; 2086 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2087 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2088 esp = esp + 0xCu; /* 0x24003C25: add esp, 0xc */ 2089 _flag_k = FK_ADD; 2090 edi = esi; /* 0x24003C28: mov edi, esi */ 2091 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003C2A: repne scasb al, byte ptr es:[edi] */ 2092 ecx = ~ecx; /* 0x24003C2C: not ecx */ 2093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2094 ecx = ecx - 1; /* 0x24003C2E: dec ecx */ 2095 _flag_k = FK_DEC; 2096 /* cmp ecx, 0x20u */ /* 0x24003C2F: cmp ecx, 0x20 */ 2097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 2098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2099 _flag_k = FK_CMP; 2100 edx = ebp + (-0x70); /* 0x24003C32: lea edx, [ebp - 0x70] */ 2101 MEM32(ebp + (-0x74)) = edx; /* 0x24003C35: mov dword ptr [ebp - 0x74], edx */ 2102 if (CMP_B(_flag_a, _flag_b)) goto L_24003C49; /* 0x24003C38: jb 0x24003c49 */ 2103 L_24003C3A: 2104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2105 ecx = ecx + 1; /* 0x24003C3A: inc ecx */ 2106 _flag_k = FK_INC; 2107 PUSH32(esp, ecx); /* 0x24003C3B: push ecx */ 2108 RECOMP_ICALL(0x24009838u); /* 0x24003C3C: call 0x24009838 */ /* not lifted */ 2109 RECOMP_FLAGS_IN(); 2110 edx = eax; /* 0x24003C41: mov edx, eax */ 2111 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2113 esp = esp + 4; /* 0x24003C43: add esp, 4 */ 2114 _flag_k = FK_ADD; 2115 MEM32(ebp + (-0x74)) = edx; /* 0x24003C46: mov dword ptr [ebp - 0x74], edx */ 2116 L_24003C49: 2117 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2118 ecx = ecx | 0xFFFFFFFFu; /* 0x24003C49: or ecx, 0xffffffff */ 2119 _cf = 0; 2120 _flag_k = FK_TEST; 2121 edi = esi; /* 0x24003C4C: mov edi, esi */ 2122 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2123 eax = 0; /* 0x24003C4E: xor eax, eax */ 2124 _cf = 0; 2125 _flag_k = FK_TEST; 2126 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003C50: repne scasb al, byte ptr es:[edi] */ 2127 ecx = ~ecx; /* 0x24003C52: not ecx */ 2128 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2130 edi = edi - ecx; /* 0x24003C54: sub edi, ecx */ 2131 _flag_k = FK_CMP; 2132 eax = ecx; /* 0x24003C56: mov eax, ecx */ 2133 esi = edi; /* 0x24003C58: mov esi, edi */ 2134 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24003C5A: shr ecx, 2 */ 2135 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2136 ecx = ecx >> 2u; /* 0x24003C5A: shr ecx, 2 */ 2137 edi = edx; /* 0x24003C5D: mov edi, edx */ 2138 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24003C5F: 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; } 2139 ecx = eax; /* 0x24003C61: mov ecx, eax */ 2140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2141 ecx = ecx & 3; /* 0x24003C63: and ecx, 3 */ 2142 _cf = 0; 2143 _flag_k = FK_TEST; 2144 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24003C66: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2145 MEM8(ebp + (-0x49)) = (uint8_t)(0); /* 0x24003C68: mov byte ptr [ebp - 0x49], 0 */ 2146 ecx = ebp + (-0x74); /* 0x24003C6C: lea ecx, [ebp - 0x74] */ 2147 PUSH32(esp, ecx); /* 0x24003C6F: push ecx */ 2148 edx = ebp + (-0x14); /* 0x24003C70: lea edx, [ebp - 0x14] */ 2149 PUSH32(esp, edx); /* 0x24003C73: push edx */ 2150 ecx = ebx; /* 0x24003C74: mov ecx, ebx */ 2151 MEM32(ebp + (-0x4)) = 0; /* 0x24003C76: mov dword ptr [ebp - 4], 0 */ 2152 RECOMP_ICALL(0x24005180u); /* 0x24003C7D: call 0x24005180 */ /* not lifted */ 2153 RECOMP_FLAGS_IN(); 2154 esi = MEM32(eax); /* 0x24003C82: mov esi, dword ptr [eax] */ 2155 eax = MEM32(ebp + (-0x74)); /* 0x24003C84: mov eax, dword ptr [ebp - 0x74] */ 2156 ecx = ebp + (-0x70); /* 0x24003C87: lea ecx, [ebp - 0x70] */ 2157 /* cmp eax, ecx */ /* 0x24003C8A: cmp eax, ecx */ 2158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2160 _flag_k = FK_CMP; 2161 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x24003C8C: mov dword ptr [ebp - 4], 0xffffffff */ 2162 if (CMP_EQ(_flag_a, _flag_b)) goto L_24003C9E; /* 0x24003C93: je 0x24003c9e */ 2163 L_24003C95: 2164 PUSH32(esp, eax); /* 0x24003C95: push eax */ 2165 RECOMP_ICALL(0x240097F2u); /* 0x24003C96: call 0x240097f2 */ /* not lifted */ 2166 RECOMP_FLAGS_IN(); 2167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2169 esp = esp + 4; /* 0x24003C9B: add esp, 4 */ 2170 _flag_k = FK_ADD; 2171 L_24003C9E: 2172 /* cmp esi, MEM32(ebx + 0x4) */ /* 0x24003C9E: cmp esi, dword ptr [ebx + 4] */ 2173 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 2174 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2175 _flag_k = FK_CMP; 2176 if (CMP_NE(_flag_a, _flag_b)) goto L_24003DD4; /* 0x24003CA1: jne 0x24003dd4 */ 2177 L_24003CA7: 2178 eax = MEM32(ebp + (-0x10)); /* 0x24003CA7: mov eax, dword ptr [ebp - 0x10] */ 2179 edx = MEM32(ebx + 0x10); /* 0x24003CAA: mov edx, dword ptr [ebx + 0x10] */ 2180 PUSH32(esp, 7); /* 0x24003CAD: push 7 */ 2181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Cu); 2182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2183 eax = eax + 0x1Cu; /* 0x24003CAF: add eax, 0x1c */ 2184 _flag_k = FK_ADD; 2185 PUSH32(esp, eax); /* 0x24003CB2: push eax */ 2186 ecx = ebp + (-0x24); /* 0x24003CB3: lea ecx, [ebp - 0x24] */ 2187 PUSH32(esp, ecx); /* 0x24003CB6: push ecx */ 2188 MEM32(ebp + (-0x14)) = edx; /* 0x24003CB7: mov dword ptr [ebp - 0x14], edx */ 2189 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x24003CBA: call dword ptr [0x2400b0b4] */ 2190 RECOMP_FLAGS_IN(); 2191 esi = MEM32(ebp + 0x8); /* 0x24003CC0: mov esi, dword ptr [ebp + 8] */ 2192 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2193 ecx = ecx | 0xFFFFFFFFu; /* 0x24003CC3: or ecx, 0xffffffff */ 2194 _cf = 0; 2195 _flag_k = FK_TEST; 2196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2197 eax = 0; /* 0x24003CC6: xor eax, eax */ 2198 _cf = 0; 2199 _flag_k = FK_TEST; 2200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2202 esp = esp + 0xCu; /* 0x24003CC8: add esp, 0xc */ 2203 _flag_k = FK_ADD; 2204 edi = esi; /* 0x24003CCB: mov edi, esi */ 2205 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003CCD: repne scasb al, byte ptr es:[edi] */ 2206 ecx = ~ecx; /* 0x24003CCF: not ecx */ 2207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2208 ecx = ecx - 1; /* 0x24003CD1: dec ecx */ 2209 _flag_k = FK_DEC; 2210 /* cmp ecx, 0x20u */ /* 0x24003CD2: cmp ecx, 0x20 */ 2211 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 2212 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2213 _flag_k = FK_CMP; 2214 edx = ebp + (-0x44); /* 0x24003CD5: lea edx, [ebp - 0x44] */ 2215 MEM32(ebp + (-0x48)) = edx; /* 0x24003CD8: mov dword ptr [ebp - 0x48], edx */ 2216 if (CMP_B(_flag_a, _flag_b)) goto L_24003CEC; /* 0x24003CDB: jb 0x24003cec */ 2217 L_24003CDD: 2218 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2219 ecx = ecx + 1; /* 0x24003CDD: inc ecx */ 2220 _flag_k = FK_INC; 2221 PUSH32(esp, ecx); /* 0x24003CDE: push ecx */ 2222 RECOMP_ICALL(0x24009838u); /* 0x24003CDF: call 0x24009838 */ /* not lifted */ 2223 RECOMP_FLAGS_IN(); 2224 edx = eax; /* 0x24003CE4: mov edx, eax */ 2225 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2227 esp = esp + 4; /* 0x24003CE6: add esp, 4 */ 2228 _flag_k = FK_ADD; 2229 MEM32(ebp + (-0x48)) = edx; /* 0x24003CE9: mov dword ptr [ebp - 0x48], edx */ 2230 L_24003CEC: 2231 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2232 ecx = ecx | 0xFFFFFFFFu; /* 0x24003CEC: or ecx, 0xffffffff */ 2233 _cf = 0; 2234 _flag_k = FK_TEST; 2235 edi = esi; /* 0x24003CEF: mov edi, esi */ 2236 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2237 eax = 0; /* 0x24003CF1: xor eax, eax */ 2238 _cf = 0; 2239 _flag_k = FK_TEST; 2240 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003CF3: repne scasb al, byte ptr es:[edi] */ 2241 ecx = ~ecx; /* 0x24003CF5: not ecx */ 2242 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2244 edi = edi - ecx; /* 0x24003CF7: sub edi, ecx */ 2245 _flag_k = FK_CMP; 2246 eax = ecx; /* 0x24003CF9: mov eax, ecx */ 2247 esi = edi; /* 0x24003CFB: mov esi, edi */ 2248 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24003CFD: shr ecx, 2 */ 2249 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2250 ecx = ecx >> 2u; /* 0x24003CFD: shr ecx, 2 */ 2251 edi = edx; /* 0x24003D00: mov edi, edx */ 2252 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24003D02: 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; } 2253 ecx = eax; /* 0x24003D04: mov ecx, eax */ 2254 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2255 ecx = ecx & 3; /* 0x24003D06: and ecx, 3 */ 2256 _cf = 0; 2257 _flag_k = FK_TEST; 2258 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24003D09: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2259 MEM8(ebp + (-0x1D)) = (uint8_t)(0); /* 0x24003D0B: mov byte ptr [ebp - 0x1d], 0 */ 2260 ecx = ebp + (-0x48); /* 0x24003D0F: lea ecx, [ebp - 0x48] */ 2261 PUSH32(esp, ecx); /* 0x24003D12: push ecx */ 2262 ecx = ebp + (-0xBC); /* 0x24003D13: lea ecx, [ebp - 0xbc] */ 2263 MEM32(ebp + (-0x4)) = 1; /* 0x24003D19: mov dword ptr [ebp - 4], 1 */ 2264 RECOMP_ICALL(0x24001280u); /* 0x24003D20: call 0x24001280 */ /* not lifted */ 2265 RECOMP_FLAGS_IN(); 2266 MEM32(ebp + (-0x90)) = 0; /* 0x24003D25: mov dword ptr [ebp - 0x90], 0 */ 2267 edx = ebp + (-0xBC); /* 0x24003D2F: lea edx, [ebp - 0xbc] */ 2268 PUSH32(esp, edx); /* 0x24003D35: push edx */ 2269 eax = ebp + (-0x8C); /* 0x24003D36: lea eax, [ebp - 0x8c] */ 2270 PUSH32(esp, eax); /* 0x24003D3C: push eax */ 2271 ecx = ebx; /* 0x24003D3D: mov ecx, ebx */ 2272 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x24003D3F: mov byte ptr [ebp - 4], 2 */ 2273 RECOMP_ICALL(0x240054D0u); /* 0x24003D43: call 0x240054d0 */ /* not lifted */ 2274 RECOMP_FLAGS_IN(); 2275 ecx = MEM32(eax); /* 0x24003D48: mov ecx, dword ptr [eax] */ 2276 MEM32(ebp + (-0x1C)) = ecx; /* 0x24003D4A: mov dword ptr [ebp - 0x1c], ecx */ 2277 edx = MEM32(eax + 0x4); /* 0x24003D4D: mov edx, dword ptr [eax + 4] */ 2278 eax = ebp + (-0x18); /* 0x24003D50: lea eax, [ebp - 0x18] */ 2279 PUSH32(esp, eax); /* 0x24003D53: push eax */ 2280 ecx = ebp + (-0x1C); /* 0x24003D54: lea ecx, [ebp - 0x1c] */ 2281 PUSH32(esp, ecx); /* 0x24003D57: push ecx */ 2282 ecx = ebp + (-0x7C); /* 0x24003D58: lea ecx, [ebp - 0x7c] */ 2283 MEM32(ebp + (-0x18)) = edx; /* 0x24003D5B: mov dword ptr [ebp - 0x18], edx */ 2284 RECOMP_ICALL(0x24005730u); /* 0x24003D5E: call 0x24005730 */ /* not lifted */ 2285 RECOMP_FLAGS_IN(); 2286 esi = MEM32(eax); /* 0x24003D63: mov esi, dword ptr [eax] */ 2287 edx = MEM32(eax + 0x4); /* 0x24003D65: mov edx, dword ptr [eax + 4] */ 2288 ecx = ebp + (-0xBC); /* 0x24003D68: lea ecx, [ebp - 0xbc] */ 2289 MEM32(ebp + (-0x80)) = edx; /* 0x24003D6E: mov dword ptr [ebp - 0x80], edx */ 2290 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x24003D71: mov byte ptr [ebp - 4], 1 */ 2291 RECOMP_ICALL(0x240030D0u); /* 0x24003D75: call 0x240030d0 */ /* not lifted */ 2292 RECOMP_FLAGS_IN(); 2293 ebx = MEM32(ebp + (-0x14)); /* 0x24003D7A: mov ebx, dword ptr [ebp - 0x14] */ 2294 MEM32(esi + 0x38) = ebx; /* 0x24003D7D: mov dword ptr [esi + 0x38], ebx */ 2295 eax = MEM32(ebp + (-0x48)); /* 0x24003D80: mov eax, dword ptr [ebp - 0x48] */ 2296 ecx = ebp + (-0x44); /* 0x24003D83: lea ecx, [ebp - 0x44] */ 2297 /* cmp eax, ecx */ /* 0x24003D86: cmp eax, ecx */ 2298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2300 _flag_k = FK_CMP; 2301 if (CMP_EQ(_flag_a, _flag_b)) goto L_24003D93; /* 0x24003D88: je 0x24003d93 */ 2302 L_24003D8A: 2303 PUSH32(esp, eax); /* 0x24003D8A: push eax */ 2304 RECOMP_ICALL(0x240097F2u); /* 0x24003D8B: call 0x240097f2 */ /* not lifted */ 2305 RECOMP_FLAGS_IN(); 2306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2308 esp = esp + 4; /* 0x24003D90: add esp, 4 */ 2309 _flag_k = FK_ADD; 2310 L_24003D93: 2311 edx = MEM32(ebp + (-0x10)); /* 0x24003D93: mov edx, dword ptr [ebp - 0x10] */ 2312 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2313 ecx = ecx | 0xFFFFFFFFu; /* 0x24003D96: or ecx, 0xffffffff */ 2314 _cf = 0; 2315 _flag_k = FK_TEST; 2316 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2317 eax = 0; /* 0x24003D99: xor eax, eax */ 2318 _cf = 0; 2319 _flag_k = FK_TEST; 2320 edi = edx + 0x1C; /* 0x24003D9B: lea edi, [edx + 0x1c] */ 2321 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003D9E: repne scasb al, byte ptr es:[edi] */ 2322 edi = MEM32(ebp + 0x8); /* 0x24003DA0: mov edi, dword ptr [ebp + 8] */ 2323 ecx = ~ecx; /* 0x24003DA3: not ecx */ 2324 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2325 ecx = ecx - 1; /* 0x24003DA5: dec ecx */ 2326 _flag_k = FK_DEC; 2327 edx = ecx; /* 0x24003DA6: mov edx, ecx */ 2328 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2329 ecx = ecx | 0xFFFFFFFFu; /* 0x24003DA8: or ecx, 0xffffffff */ 2330 _cf = 0; 2331 _flag_k = FK_TEST; 2332 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003DAB: repne scasb al, byte ptr es:[edi] */ 2333 eax = MEM32(ebp + (-0x10)); /* 0x24003DAD: mov eax, dword ptr [ebp - 0x10] */ 2334 ecx = ~ecx; /* 0x24003DB0: not ecx */ 2335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2336 ecx = ecx - 1; /* 0x24003DB2: dec ecx */ 2337 _flag_k = FK_DEC; 2338 ecx = edx + ecx + 0x2; /* 0x24003DB3: lea ecx, [edx + ecx + 2] */ 2339 edx = MEM32(eax + 0x18); /* 0x24003DB7: mov edx, dword ptr [eax + 0x18] */ 2340 edi = POP32_VAL(esp); /* 0x24003DBA: pop edi */ 2341 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2342 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2343 edx = edx + ecx; /* 0x24003DBB: add edx, ecx */ 2344 _flag_k = FK_ADD; 2345 MEM32(eax + 0x18) = edx; /* 0x24003DBD: mov dword ptr [eax + 0x18], edx */ 2346 esi = POP32_VAL(esp); /* 0x24003DC0: pop esi */ 2347 eax = ebx; /* 0x24003DC1: mov eax, ebx */ 2348 ebx = POP32_VAL(esp); /* 0x24003DC3: pop ebx */ 2349 ecx = MEM32(ebp + (-0xC)); /* 0x24003DC4: mov ecx, dword ptr [ebp - 0xc] */ 2350 MEM32(FS_BASE + (0)) = ecx; /* 0x24003DC7: mov dword ptr fs:[0], ecx */ 2351 esp = ebp; /* 0x24003DCE: mov esp, ebp */ 2352 ebp = POP32_VAL(esp); /* 0x24003DD0: pop ebp */ 2353 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24003DD1: ret 4 */ 2354 L_24003DD4: 2355 eax = MEM32(esi + 0x38); /* 0x24003DD4: mov eax, dword ptr [esi + 0x38] */ 2356 ecx = MEM32(ebp + (-0xC)); /* 0x24003DD7: mov ecx, dword ptr [ebp - 0xc] */ 2357 edi = POP32_VAL(esp); /* 0x24003DDA: pop edi */ 2358 esi = POP32_VAL(esp); /* 0x24003DDB: pop esi */ 2359 ebx = POP32_VAL(esp); /* 0x24003DDC: pop ebx */ 2360 MEM32(FS_BASE + (0)) = ecx; /* 0x24003DDD: mov dword ptr fs:[0], ecx */ 2361 esp = ebp; /* 0x24003DE4: mov esp, ebp */ 2362 ebp = POP32_VAL(esp); /* 0x24003DE6: pop ebp */ 2363 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24003DE7: ret 4 */ 2364 RECOMP_REGS_OUT(); 2365 } 2366 2367 void sub_24003DF0(void) { 2368 int _fpu_cmp = 0; 2369 uint32_t _cf = 0; 2370 int _df = 1; 2371 uint32_t _flag_k = FK_NONE; 2372 uint32_t _flag_a = 0, _flag_b = 0; 2373 uint32_t _itail_tgt = 0; 2374 RECOMP_REGS_LOCALS 2375 RECOMP_ENTER(0x24003DF0u); 2376 2377 L_24003DF0: 2378 PUSH32(esp, ebp); /* 0x24003DF0: push ebp */ 2379 ebp = esp; /* 0x24003DF1: mov ebp, esp */ 2380 PUSH32(esp, 0xFFFFFFFFu); /* 0x24003DF3: push -1 */ 2381 PUSH32(esp, 0x24009C68u); /* 0x24003DF5: push 0x24009c68 */ 2382 eax = MEM32(FS_BASE + (0)); /* 0x24003DFA: mov eax, dword ptr fs:[0] */ 2383 PUSH32(esp, eax); /* 0x24003E00: push eax */ 2384 MEM32(FS_BASE + (0)) = esp; /* 0x24003E01: mov dword ptr fs:[0], esp */ 2385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 2386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2387 esp = esp - 0x34u; /* 0x24003E08: sub esp, 0x34 */ 2388 _flag_k = FK_CMP; 2389 PUSH32(esp, ebx); /* 0x24003E0B: push ebx */ 2390 PUSH32(esp, esi); /* 0x24003E0C: push esi */ 2391 esi = ecx; /* 0x24003E0D: mov esi, ecx */ 2392 eax = MEM32(esi); /* 0x24003E0F: mov eax, dword ptr [esi] */ 2393 PUSH32(esp, edi); /* 0x24003E11: push edi */ 2394 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x24003E12: call dword ptr [eax + 0x1c] */ 2395 RECOMP_FLAGS_IN(); 2396 PUSH32(esp, 7); /* 0x24003E15: push 7 */ 2397 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Cu); 2398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2399 esi = esi + 0x1Cu; /* 0x24003E17: add esi, 0x1c */ 2400 _flag_k = FK_ADD; 2401 ecx = ebp + (-0x1C); /* 0x24003E1A: lea ecx, [ebp - 0x1c] */ 2402 PUSH32(esp, esi); /* 0x24003E1D: push esi */ 2403 PUSH32(esp, ecx); /* 0x24003E1E: push ecx */ 2404 ebx = eax; /* 0x24003E1F: mov ebx, eax */ 2405 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x24003E21: call dword ptr [0x2400b0b4] */ 2406 RECOMP_FLAGS_IN(); 2407 esi = MEM32(ebp + 0x8); /* 0x24003E27: mov esi, dword ptr [ebp + 8] */ 2408 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2409 ecx = ecx | 0xFFFFFFFFu; /* 0x24003E2A: or ecx, 0xffffffff */ 2410 _cf = 0; 2411 _flag_k = FK_TEST; 2412 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2413 eax = 0; /* 0x24003E2D: xor eax, eax */ 2414 _cf = 0; 2415 _flag_k = FK_TEST; 2416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2418 esp = esp + 0xCu; /* 0x24003E2F: add esp, 0xc */ 2419 _flag_k = FK_ADD; 2420 edi = esi; /* 0x24003E32: mov edi, esi */ 2421 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003E34: repne scasb al, byte ptr es:[edi] */ 2422 ecx = ~ecx; /* 0x24003E36: not ecx */ 2423 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2424 ecx = ecx - 1; /* 0x24003E38: dec ecx */ 2425 _flag_k = FK_DEC; 2426 /* cmp ecx, 0x20u */ /* 0x24003E39: cmp ecx, 0x20 */ 2427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 2428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2429 _flag_k = FK_CMP; 2430 edx = ebp + (-0x3C); /* 0x24003E3C: lea edx, [ebp - 0x3c] */ 2431 MEM32(ebp + (-0x40)) = edx; /* 0x24003E3F: mov dword ptr [ebp - 0x40], edx */ 2432 if (CMP_B(_flag_a, _flag_b)) goto L_24003E53; /* 0x24003E42: jb 0x24003e53 */ 2433 L_24003E44: 2434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2435 ecx = ecx + 1; /* 0x24003E44: inc ecx */ 2436 _flag_k = FK_INC; 2437 PUSH32(esp, ecx); /* 0x24003E45: push ecx */ 2438 RECOMP_ICALL(0x24009838u); /* 0x24003E46: call 0x24009838 */ /* not lifted */ 2439 RECOMP_FLAGS_IN(); 2440 edx = eax; /* 0x24003E4B: mov edx, eax */ 2441 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2443 esp = esp + 4; /* 0x24003E4D: add esp, 4 */ 2444 _flag_k = FK_ADD; 2445 MEM32(ebp + (-0x40)) = edx; /* 0x24003E50: mov dword ptr [ebp - 0x40], edx */ 2446 L_24003E53: 2447 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2448 ecx = ecx | 0xFFFFFFFFu; /* 0x24003E53: or ecx, 0xffffffff */ 2449 _cf = 0; 2450 _flag_k = FK_TEST; 2451 edi = esi; /* 0x24003E56: mov edi, esi */ 2452 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2453 eax = 0; /* 0x24003E58: xor eax, eax */ 2454 _cf = 0; 2455 _flag_k = FK_TEST; 2456 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24003E5A: repne scasb al, byte ptr es:[edi] */ 2457 ecx = ~ecx; /* 0x24003E5C: not ecx */ 2458 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2460 edi = edi - ecx; /* 0x24003E5E: sub edi, ecx */ 2461 _flag_k = FK_CMP; 2462 eax = ecx; /* 0x24003E60: mov eax, ecx */ 2463 esi = edi; /* 0x24003E62: mov esi, edi */ 2464 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24003E64: shr ecx, 2 */ 2465 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2466 ecx = ecx >> 2u; /* 0x24003E64: shr ecx, 2 */ 2467 edi = edx; /* 0x24003E67: mov edi, edx */ 2468 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24003E69: 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; } 2469 ecx = eax; /* 0x24003E6B: mov ecx, eax */ 2470 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2471 ecx = ecx & 3; /* 0x24003E6D: and ecx, 3 */ 2472 _cf = 0; 2473 _flag_k = FK_TEST; 2474 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2475 eax = 0; /* 0x24003E70: xor eax, eax */ 2476 _cf = 0; 2477 _flag_k = FK_TEST; 2478 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24003E72: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2479 MEM8(ebp + (-0x15)) = (uint8_t)(LO8(eax)); /* 0x24003E74: mov byte ptr [ebp - 0x15], al */ 2480 ecx = ebp + (-0x40); /* 0x24003E77: lea ecx, [ebp - 0x40] */ 2481 PUSH32(esp, ecx); /* 0x24003E7A: push ecx */ 2482 ecx = ebx; /* 0x24003E7B: mov ecx, ebx */ 2483 MEM32(ebp + (-0x4)) = eax; /* 0x24003E7D: mov dword ptr [ebp - 4], eax */ 2484 RECOMP_ICALL(0x24005990u); /* 0x24003E80: call 0x24005990 */ /* not lifted */ 2485 RECOMP_FLAGS_IN(); 2486 edx = ebp + (-0x10); /* 0x24003E85: lea edx, [ebp - 0x10] */ 2487 esi = eax; /* 0x24003E88: mov esi, eax */ 2488 PUSH32(esp, edx); /* 0x24003E8A: push edx */ 2489 ecx = ebx; /* 0x24003E8B: mov ecx, ebx */ 2490 MEM32(ebp + 0x8) = esi; /* 0x24003E8D: mov dword ptr [ebp + 8], esi */ 2491 RECOMP_ICALL(0x24005170u); /* 0x24003E90: call 0x24005170 */ /* not lifted */ 2492 RECOMP_FLAGS_IN(); 2493 /* cmp esi, MEM32(eax) */ /* 0x24003E95: cmp esi, dword ptr [eax] */ 2494 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 2495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2496 _flag_k = FK_CMP; 2497 if (CMP_EQ(_flag_a, _flag_b)) goto L_24003EAE; /* 0x24003E97: je 0x24003eae */ 2498 L_24003E99: 2499 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 2500 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2501 esi = esi + 0xCu; /* 0x24003E99: add esi, 0xc */ 2502 _flag_k = FK_ADD; 2503 PUSH32(esp, esi); /* 0x24003E9C: push esi */ 2504 ecx = ebp + (-0x40); /* 0x24003E9D: lea ecx, [ebp - 0x40] */ 2505 RECOMP_ICALL(0x24003F00u); /* 0x24003EA0: call 0x24003f00 */ /* not lifted */ 2506 RECOMP_FLAGS_IN(); 2507 /* test LO8(eax), LO8(eax) */ /* 0x24003EA5: test al, al */ 2508 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2509 _cf = 0; 2510 _flag_k = FK_NARROW(FK_TEST, 24); 2511 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003EAE; /* 0x24003EA7: jne 0x24003eae */ 2512 L_24003EA9: 2513 eax = ebp + 0x8; /* 0x24003EA9: lea eax, [ebp + 8] */ 2514 goto L_24003EB9; /* 0x24003EAC: jmp 0x24003eb9 */ 2515 L_24003EAE: 2516 eax = ebp + (-0x14); /* 0x24003EAE: lea eax, [ebp - 0x14] */ 2517 PUSH32(esp, eax); /* 0x24003EB1: push eax */ 2518 ecx = ebx; /* 0x24003EB2: mov ecx, ebx */ 2519 RECOMP_ICALL(0x24005170u); /* 0x24003EB4: call 0x24005170 */ /* not lifted */ 2520 RECOMP_FLAGS_IN(); 2521 L_24003EB9: 2522 esi = MEM32(eax); /* 0x24003EB9: mov esi, dword ptr [eax] */ 2523 eax = MEM32(ebp + (-0x40)); /* 0x24003EBB: mov eax, dword ptr [ebp - 0x40] */ 2524 ecx = ebp + (-0x3C); /* 0x24003EBE: lea ecx, [ebp - 0x3c] */ 2525 /* cmp eax, ecx */ /* 0x24003EC1: cmp eax, ecx */ 2526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2528 _flag_k = FK_CMP; 2529 if (CMP_EQ(_flag_a, _flag_b)) goto L_24003ECE; /* 0x24003EC3: je 0x24003ece */ 2530 L_24003EC5: 2531 PUSH32(esp, eax); /* 0x24003EC5: push eax */ 2532 RECOMP_ICALL(0x240097F2u); /* 0x24003EC6: call 0x240097f2 */ /* not lifted */ 2533 RECOMP_FLAGS_IN(); 2534 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2536 esp = esp + 4; /* 0x24003ECB: add esp, 4 */ 2537 _flag_k = FK_ADD; 2538 L_24003ECE: 2539 /* cmp esi, MEM32(ebx + 0x4) */ /* 0x24003ECE: cmp esi, dword ptr [ebx + 4] */ 2540 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 2541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2542 _flag_k = FK_CMP; 2543 if (CMP_EQ(_flag_a, _flag_b)) goto L_24003EE9; /* 0x24003ED1: je 0x24003ee9 */ 2544 L_24003ED3: 2545 eax = MEM32(esi + 0x38); /* 0x24003ED3: mov eax, dword ptr [esi + 0x38] */ 2546 edi = POP32_VAL(esp); /* 0x24003ED6: pop edi */ 2547 esi = POP32_VAL(esp); /* 0x24003ED7: pop esi */ 2548 ebx = POP32_VAL(esp); /* 0x24003ED8: pop ebx */ 2549 ecx = MEM32(ebp + (-0xC)); /* 0x24003ED9: mov ecx, dword ptr [ebp - 0xc] */ 2550 MEM32(FS_BASE + (0)) = ecx; /* 0x24003EDC: mov dword ptr fs:[0], ecx */ 2551 esp = ebp; /* 0x24003EE3: mov esp, ebp */ 2552 ebp = POP32_VAL(esp); /* 0x24003EE5: pop ebp */ 2553 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24003EE6: ret 4 */ 2554 L_24003EE9: 2555 ecx = MEM32(ebp + (-0xC)); /* 0x24003EE9: mov ecx, dword ptr [ebp - 0xc] */ 2556 edi = POP32_VAL(esp); /* 0x24003EEC: pop edi */ 2557 esi = POP32_VAL(esp); /* 0x24003EED: pop esi */ 2558 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2559 eax = eax | 0xFFFFFFFFu; /* 0x24003EEE: or eax, 0xffffffff */ 2560 _cf = 0; 2561 _flag_k = FK_TEST; 2562 ebx = POP32_VAL(esp); /* 0x24003EF1: pop ebx */ 2563 MEM32(FS_BASE + (0)) = ecx; /* 0x24003EF2: mov dword ptr fs:[0], ecx */ 2564 esp = ebp; /* 0x24003EF9: mov esp, ebp */ 2565 ebp = POP32_VAL(esp); /* 0x24003EFB: pop ebp */ 2566 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24003EFC: ret 4 */ 2567 RECOMP_REGS_OUT(); 2568 } 2569 2570 void sub_24003F00(void) { 2571 int _fpu_cmp = 0; 2572 uint32_t _cf = 0; 2573 int _df = 1; 2574 uint32_t _flag_k = FK_NONE; 2575 uint32_t _flag_a = 0, _flag_b = 0; 2576 uint32_t _itail_tgt = 0; 2577 RECOMP_REGS_LOCALS 2578 RECOMP_ENTER(0x24003F00u); 2579 2580 L_24003F00: 2581 PUSH32(esp, ebp); /* 0x24003F00: push ebp */ 2582 ebp = esp; /* 0x24003F01: mov ebp, esp */ 2583 PUSH32(esp, ebx); /* 0x24003F03: push ebx */ 2584 PUSH32(esp, esi); /* 0x24003F04: push esi */ 2585 PUSH32(esp, edi); /* 0x24003F05: push edi */ 2586 edi = ecx; /* 0x24003F06: mov edi, ecx */ 2587 ecx = MEM32(ebp + 0x8); /* 0x24003F08: mov ecx, dword ptr [ebp + 8] */ 2588 esi = ecx + 0x24; /* 0x24003F0B: lea esi, [ecx + 0x24] */ 2589 eax = edi + 0x24; /* 0x24003F0E: lea eax, [edi + 0x24] */ 2590 L_24003F11: 2591 SET_LO8(ebx, MEM8(eax)); /* 0x24003F11: mov bl, byte ptr [eax] */ 2592 SET_LO8(edx, LO8(ebx)); /* 0x24003F13: mov dl, bl */ 2593 /* cmp LO8(ebx), MEM8(esi) */ /* 0x24003F15: cmp bl, byte ptr [esi] */ 2594 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 2595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2596 _flag_k = FK_NARROW(FK_CMP, 24); 2597 if (CMP_NE(_flag_a, _flag_b)) goto L_24003F35; /* 0x24003F17: jne 0x24003f35 */ 2598 L_24003F19: 2599 /* test LO8(edx), LO8(edx) */ /* 0x24003F19: test dl, dl */ 2600 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2601 _cf = 0; 2602 _flag_k = FK_NARROW(FK_TEST, 24); 2603 if (TEST_Z(_flag_a, _flag_b)) goto L_24003F31; /* 0x24003F1B: je 0x24003f31 */ 2604 L_24003F1D: 2605 SET_LO8(ebx, MEM8(eax + 0x1)); /* 0x24003F1D: mov bl, byte ptr [eax + 1] */ 2606 SET_LO8(edx, LO8(ebx)); /* 0x24003F20: mov dl, bl */ 2607 /* cmp LO8(ebx), MEM8(esi + 0x1) */ /* 0x24003F22: cmp bl, byte ptr [esi + 1] */ 2608 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 2609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2610 _flag_k = FK_NARROW(FK_CMP, 24); 2611 if (CMP_NE(_flag_a, _flag_b)) goto L_24003F35; /* 0x24003F25: jne 0x24003f35 */ 2612 L_24003F27: 2613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2615 eax = eax + 2; /* 0x24003F27: add eax, 2 */ 2616 _flag_k = FK_ADD; 2617 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2619 esi = esi + 2; /* 0x24003F2A: add esi, 2 */ 2620 _flag_k = FK_ADD; 2621 /* test LO8(edx), LO8(edx) */ /* 0x24003F2D: test dl, dl */ 2622 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2623 _cf = 0; 2624 _flag_k = FK_NARROW(FK_TEST, 24); 2625 RECOMP_BACKEDGE(); 2626 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003F11; /* 0x24003F2F: jne 0x24003f11 */ 2627 L_24003F31: 2628 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2629 eax = 0; /* 0x24003F31: xor eax, eax */ 2630 _cf = 0; 2631 _flag_k = FK_TEST; 2632 goto L_24003F3A; /* 0x24003F33: jmp 0x24003f3a */ 2633 L_24003F35: 2634 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x24003F35: sbb eax, eax */ 2635 eax = _sc ? 0xFFFFFFFFu : 0; 2636 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2637 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2638 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x24003F37: sbb eax, -1 */ 2639 eax = _sa - _sb - _sc; 2640 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2641 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2642 L_24003F3A: 2643 /* test eax, eax */ /* 0x24003F3A: test eax, eax */ 2644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2645 _cf = 0; 2646 _flag_k = FK_TEST; 2647 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003F8D; /* 0x24003F3C: jne 0x24003f8d */ 2648 L_24003F3E: 2649 esi = MEM32(ecx); /* 0x24003F3E: mov esi, dword ptr [ecx] */ 2650 eax = MEM32(edi); /* 0x24003F40: mov eax, dword ptr [edi] */ 2651 L_24003F42: 2652 SET_LO8(edx, MEM8(eax)); /* 0x24003F42: mov dl, byte ptr [eax] */ 2653 SET_LO8(ebx, MEM8(esi)); /* 0x24003F44: mov bl, byte ptr [esi] */ 2654 SET_LO8(ecx, LO8(edx)); /* 0x24003F46: mov cl, dl */ 2655 /* cmp LO8(edx), LO8(ebx) */ /* 0x24003F48: cmp dl, bl */ 2656 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2658 _flag_k = FK_NARROW(FK_CMP, 24); 2659 if (CMP_NE(_flag_a, _flag_b)) goto L_24003F78; /* 0x24003F4A: jne 0x24003f78 */ 2660 L_24003F4C: 2661 /* test LO8(ecx), LO8(ecx) */ /* 0x24003F4C: test cl, cl */ 2662 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2663 _cf = 0; 2664 _flag_k = FK_NARROW(FK_TEST, 24); 2665 if (TEST_Z(_flag_a, _flag_b)) goto L_24003F66; /* 0x24003F4E: je 0x24003f66 */ 2666 L_24003F50: 2667 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x24003F50: mov dl, byte ptr [eax + 1] */ 2668 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x24003F53: mov bl, byte ptr [esi + 1] */ 2669 SET_LO8(ecx, LO8(edx)); /* 0x24003F56: mov cl, dl */ 2670 /* cmp LO8(edx), LO8(ebx) */ /* 0x24003F58: cmp dl, bl */ 2671 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2673 _flag_k = FK_NARROW(FK_CMP, 24); 2674 if (CMP_NE(_flag_a, _flag_b)) goto L_24003F78; /* 0x24003F5A: jne 0x24003f78 */ 2675 L_24003F5C: 2676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2678 eax = eax + 2; /* 0x24003F5C: add eax, 2 */ 2679 _flag_k = FK_ADD; 2680 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2682 esi = esi + 2; /* 0x24003F5F: add esi, 2 */ 2683 _flag_k = FK_ADD; 2684 /* test LO8(ecx), LO8(ecx) */ /* 0x24003F62: test cl, cl */ 2685 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2686 _cf = 0; 2687 _flag_k = FK_NARROW(FK_TEST, 24); 2688 RECOMP_BACKEDGE(); 2689 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003F42; /* 0x24003F64: jne 0x24003f42 */ 2690 L_24003F66: 2691 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2692 eax = 0; /* 0x24003F66: xor eax, eax */ 2693 _cf = 0; 2694 _flag_k = FK_TEST; 2695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2696 ecx = 0; /* 0x24003F68: xor ecx, ecx */ 2697 _cf = 0; 2698 _flag_k = FK_TEST; 2699 /* test eax, eax */ /* 0x24003F6A: test eax, eax */ 2700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2701 _cf = 0; 2702 _flag_k = FK_TEST; 2703 edi = POP32_VAL(esp); /* 0x24003F6C: pop edi */ 2704 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x24003F6D: setl cl */ 2705 esi = POP32_VAL(esp); /* 0x24003F70: pop esi */ 2706 SET_LO8(eax, LO8(ecx)); /* 0x24003F71: mov al, cl */ 2707 ebx = POP32_VAL(esp); /* 0x24003F73: pop ebx */ 2708 ebp = POP32_VAL(esp); /* 0x24003F74: pop ebp */ 2709 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24003F75: ret 4 */ 2710 L_24003F78: 2711 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x24003F78: sbb eax, eax */ 2712 eax = _sc ? 0xFFFFFFFFu : 0; 2713 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2714 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2715 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x24003F7A: sbb eax, -1 */ 2716 eax = _sa - _sb - _sc; 2717 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2718 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2719 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2720 ecx = 0; /* 0x24003F7D: xor ecx, ecx */ 2721 _cf = 0; 2722 _flag_k = FK_TEST; 2723 /* test eax, eax */ /* 0x24003F7F: test eax, eax */ 2724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2725 _cf = 0; 2726 _flag_k = FK_TEST; 2727 edi = POP32_VAL(esp); /* 0x24003F81: pop edi */ 2728 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x24003F82: setl cl */ 2729 esi = POP32_VAL(esp); /* 0x24003F85: pop esi */ 2730 SET_LO8(eax, LO8(ecx)); /* 0x24003F86: mov al, cl */ 2731 ebx = POP32_VAL(esp); /* 0x24003F88: pop ebx */ 2732 ebp = POP32_VAL(esp); /* 0x24003F89: pop ebp */ 2733 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24003F8A: ret 4 */ 2734 L_24003F8D: 2735 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2736 edx = 0; /* 0x24003F8D: xor edx, edx */ 2737 _cf = 0; 2738 _flag_k = FK_TEST; 2739 /* test eax, eax */ /* 0x24003F8F: test eax, eax */ 2740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2741 _cf = 0; 2742 _flag_k = FK_TEST; 2743 edi = POP32_VAL(esp); /* 0x24003F91: pop edi */ 2744 SET_LO8(edx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x24003F92: setl dl */ 2745 esi = POP32_VAL(esp); /* 0x24003F95: pop esi */ 2746 SET_LO8(eax, LO8(edx)); /* 0x24003F96: mov al, dl */ 2747 ebx = POP32_VAL(esp); /* 0x24003F98: pop ebx */ 2748 ebp = POP32_VAL(esp); /* 0x24003F99: pop ebp */ 2749 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24003F9A: ret 4 */ 2750 RECOMP_REGS_OUT(); 2751 } 2752 2753 void sub_24003FA0(void) { 2754 int _fpu_cmp = 0; 2755 uint32_t _cf = 0; 2756 int _df = 1; 2757 uint32_t _flag_k = FK_NONE; 2758 uint32_t _flag_a = 0, _flag_b = 0; 2759 uint32_t _itail_tgt = 0; 2760 RECOMP_REGS_LOCALS 2761 RECOMP_ENTER(0x24003FA0u); 2762 2763 L_24003FA0: 2764 PUSH32(esp, ebp); /* 0x24003FA0: push ebp */ 2765 ebp = esp; /* 0x24003FA1: mov ebp, esp */ 2766 PUSH32(esp, ecx); /* 0x24003FA3: push ecx */ 2767 eax = MEM32(ebp + 0x8); /* 0x24003FA4: mov eax, dword ptr [ebp + 8] */ 2768 PUSH32(esp, ebx); /* 0x24003FA7: push ebx */ 2769 PUSH32(esp, esi); /* 0x24003FA8: push esi */ 2770 PUSH32(esp, edi); /* 0x24003FA9: push edi */ 2771 edi = ecx; /* 0x24003FAA: mov edi, ecx */ 2772 PUSH32(esp, eax); /* 0x24003FAC: push eax */ 2773 MEM32(ebp + (-0x4)) = edi; /* 0x24003FAD: mov dword ptr [ebp - 4], edi */ 2774 RECOMP_ICALL(0x24003BE0u); /* 0x24003FB0: call 0x24003be0 */ /* not lifted */ 2775 RECOMP_FLAGS_IN(); 2776 SET_LO8(edx, MEM8(ebp + 0x18)); /* 0x24003FB5: mov dl, byte ptr [ebp + 0x18] */ 2777 /* test LO8(edx), LO8(edx) */ /* 0x24003FB8: test dl, dl */ 2778 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2779 _cf = 0; 2780 _flag_k = FK_NARROW(FK_TEST, 24); 2781 ecx = MEM32(ebp + 0x14); /* 0x24003FBA: mov ecx, dword ptr [ebp + 0x14] */ 2782 MEM32(ebp + 0x8) = eax; /* 0x24003FBD: mov dword ptr [ebp + 8], eax */ 2783 eax = ecx; /* 0x24003FC0: mov eax, ecx */ 2784 if (TEST_NZ(_flag_a, _flag_b)) goto L_24003FC7; /* 0x24003FC2: jne 0x24003fc7 */ 2785 L_24003FC4: 2786 eax = ecx + 0x4; /* 0x24003FC4: lea eax, [ecx + 4] */ 2787 L_24003FC7: 2788 edx = MEM32(edi + 0x34); /* 0x24003FC7: mov edx, dword ptr [edi + 0x34] */ 2789 /* test edx, edx */ /* 0x24003FCA: test edx, edx */ 2790 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2791 _cf = 0; 2792 _flag_k = FK_TEST; 2793 esi = edi + 0x30; /* 0x24003FCC: lea esi, [edi + 0x30] */ 2794 if (TEST_Z(_flag_a, _flag_b)) goto L_24004042; /* 0x24003FCF: je 0x24004042 */ 2795 L_24003FD1: 2796 ebx = MEM32(esi + 0x8); /* 0x24003FD1: mov ebx, dword ptr [esi + 8] */ 2797 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 2798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2799 ebx = ebx - edx; /* 0x24003FD4: sub ebx, edx */ 2800 _flag_k = FK_CMP; 2801 edx = MEM32(ebp + 0x8); /* 0x24003FD6: mov edx, dword ptr [ebp + 8] */ 2802 if (2u) _cf = (((ebx) >> 1) & 1u); /* 0x24003FD9: sar ebx, 2 */ 2803 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2804 ebx = (uint32_t)((int32_t)ebx >> 2u); 2805 /* cmp edx, ebx */ /* 0x24003FDC: cmp edx, ebx */ 2806 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 2807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2808 _flag_k = FK_CMP; 2809 if (CMP_AE(_flag_a, _flag_b)) goto L_24004042; /* 0x24003FDE: jae 0x24004042 */ 2810 L_24003FE0: 2811 edi = MEM32(edi + 0x34); /* 0x24003FE0: mov edi, dword ptr [edi + 0x34] */ 2812 ebx = MEM32(edi + edx * 4); /* 0x24003FE3: mov ebx, dword ptr [edi + edx*4] */ 2813 /* test ebx, ebx */ /* 0x24003FE6: test ebx, ebx */ 2814 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2815 _cf = 0; 2816 _flag_k = FK_TEST; 2817 if (TEST_Z(_flag_a, _flag_b)) goto L_24004042; /* 0x24003FE8: je 0x24004042 */ 2818 L_24003FEA: 2819 edx = MEM32(ebx + 0x8); /* 0x24003FEA: mov edx, dword ptr [ebx + 8] */ 2820 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2822 eax = eax + edx; /* 0x24003FED: add eax, edx */ 2823 _flag_k = FK_ADD; 2824 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x24003FEF: cmp eax, dword ptr [ebx + 4] */ 2825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 2826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2827 _flag_k = FK_CMP; 2828 MEM32(ebp + 0xC) = eax; /* 0x24003FF2: mov dword ptr [ebp + 0xc], eax */ 2829 if (CMP_LE(_flag_a, _flag_b)) goto L_2400417F; /* 0x24003FF5: jle 0x2400417f */ 2830 L_24003FFB: 2831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 2832 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2833 eax = eax + 0x14u; /* 0x24003FFB: add eax, 0x14 */ 2834 _flag_k = FK_ADD; 2835 PUSH32(esp, eax); /* 0x24003FFE: push eax */ 2836 RECOMP_ICALL(0x24009838u); /* 0x24003FFF: call 0x24009838 */ /* not lifted */ 2837 RECOMP_FLAGS_IN(); 2838 ecx = MEM32(ebx + 0x8); /* 0x24004004: mov ecx, dword ptr [ebx + 8] */ 2839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 2840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2841 ecx = ecx + 0x14u; /* 0x24004007: add ecx, 0x14 */ 2842 _flag_k = FK_ADD; 2843 edi = eax; /* 0x2400400A: mov edi, eax */ 2844 MEM32(ebp + 0x1C) = eax; /* 0x2400400C: mov dword ptr [ebp + 0x1c], eax */ 2845 eax = ecx; /* 0x2400400F: mov eax, ecx */ 2846 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004011: shr ecx, 2 */ 2847 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2848 ecx = ecx >> 2u; /* 0x24004011: shr ecx, 2 */ 2849 esi = ebx; /* 0x24004014: mov esi, ebx */ 2850 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004016: 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; } 2851 ecx = eax; /* 0x24004018: mov ecx, eax */ 2852 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2853 ecx = ecx & 3; /* 0x2400401A: and ecx, 3 */ 2854 _cf = 0; 2855 _flag_k = FK_TEST; 2856 PUSH32(esp, ebx); /* 0x2400401D: push ebx */ 2857 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2400401E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2858 RECOMP_ICALL(0x240097F2u); /* 0x24004020: call 0x240097f2 */ /* not lifted */ 2859 RECOMP_FLAGS_IN(); 2860 ebx = MEM32(ebp + 0x1C); /* 0x24004025: mov ebx, dword ptr [ebp + 0x1c] */ 2861 ecx = MEM32(ebp + 0xC); /* 0x24004028: mov ecx, dword ptr [ebp + 0xc] */ 2862 edx = MEM32(ebp + (-0x4)); /* 0x2400402B: mov edx, dword ptr [ebp - 4] */ 2863 MEM32(ebx + 0x4) = ecx; /* 0x2400402E: mov dword ptr [ebx + 4], ecx */ 2864 eax = MEM32(edx + 0x34); /* 0x24004031: mov eax, dword ptr [edx + 0x34] */ 2865 ecx = MEM32(ebp + 0x8); /* 0x24004034: mov ecx, dword ptr [ebp + 8] */ 2866 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2867 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2868 esp = esp + 8; /* 0x24004037: add esp, 8 */ 2869 _flag_k = FK_ADD; 2870 MEM32(eax + ecx * 4) = ebx; /* 0x2400403A: mov dword ptr [eax + ecx*4], ebx */ 2871 goto L_2400417C; /* 0x2400403D: jmp 0x2400417c */ 2872 L_24004042: 2873 eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ebp + 0x1C)); /* 0x24004042: imul eax, dword ptr [ebp + 0x1c] */ 2874 edi = eax; /* 0x24004046: mov edi, eax */ 2875 edx = edi + 0x14; /* 0x24004048: lea edx, [edi + 0x14] */ 2876 PUSH32(esp, edx); /* 0x2400404B: push edx */ 2877 RECOMP_ICALL(0x24009838u); /* 0x2400404C: call 0x24009838 */ /* not lifted */ 2878 RECOMP_FLAGS_IN(); 2879 SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x24004051: mov cl, byte ptr [ebp + 0x18] */ 2880 edx = MEM32(ebp + 0x14); /* 0x24004054: mov edx, dword ptr [ebp + 0x14] */ 2881 ebx = eax; /* 0x24004057: mov ebx, eax */ 2882 eax = MEM32(ebp + 0xC); /* 0x24004059: mov eax, dword ptr [ebp + 0xc] */ 2883 MEM32(ebx + 0x4) = edi; /* 0x2400405C: mov dword ptr [ebx + 4], edi */ 2884 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2885 edi = 0; /* 0x2400405F: xor edi, edi */ 2886 _cf = 0; 2887 _flag_k = FK_TEST; 2888 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2890 esp = esp + 4; /* 0x24004061: add esp, 4 */ 2891 _flag_k = FK_ADD; 2892 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2893 _cf = (LO8(ecx)) != 0; 2894 SET_LO8(ecx, (uint32_t)(-(int32_t)LO8(ecx))); /* 0x24004064: neg cl */ 2895 _flag_k = FK_NARROW(FK_CMP, 24); 2896 MEM32(ebx) = eax; /* 0x24004066: mov dword ptr [ebx], eax */ 2897 MEM32(ebx + 0x8) = edi; /* 0x24004068: mov dword ptr [ebx + 8], edi */ 2898 MEM32(ebx + 0x10) = edi; /* 0x2400406B: mov dword ptr [ebx + 0x10], edi */ 2899 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x2400406E: sbb ecx, ecx */ 2900 ecx = _sc ? 0xFFFFFFFFu : 0; 2901 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2902 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2903 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2904 ecx = ecx & edx; /* 0x24004070: and ecx, edx */ 2905 _cf = 0; 2906 _flag_k = FK_TEST; 2907 MEM32(ebx + 0xC) = ecx; /* 0x24004072: mov dword ptr [ebx + 0xc], ecx */ 2908 eax = MEM32(esi + 0x4); /* 0x24004075: mov eax, dword ptr [esi + 4] */ 2909 /* cmp eax, edi */ /* 0x24004078: cmp eax, edi */ 2910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2912 _flag_k = FK_CMP; 2913 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400408F; /* 0x2400407A: je 0x2400408f */ 2914 L_2400407C: 2915 edx = MEM32(esi + 0x8); /* 0x2400407C: mov edx, dword ptr [esi + 8] */ 2916 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2918 edx = edx - eax; /* 0x2400407F: sub edx, eax */ 2919 _flag_k = FK_CMP; 2920 eax = MEM32(ebp + 0x8); /* 0x24004081: mov eax, dword ptr [ebp + 8] */ 2921 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x24004084: sar edx, 2 */ 2922 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2923 edx = (uint32_t)((int32_t)edx >> 2u); 2924 /* cmp eax, edx */ /* 0x24004087: cmp eax, edx */ 2925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2927 _flag_k = FK_CMP; 2928 if (CMP_B(_flag_a, _flag_b)) goto L_24004170; /* 0x24004089: jb 0x24004170 */ 2929 L_2400408F: 2930 ecx = MEM32(esi + 0x4); /* 0x2400408F: mov ecx, dword ptr [esi + 4] */ 2931 /* cmp ecx, edi */ /* 0x24004092: cmp ecx, edi */ 2932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2934 _flag_k = FK_CMP; 2935 if (CMP_NE(_flag_a, _flag_b)) goto L_2400409A; /* 0x24004094: jne 0x2400409a */ 2936 L_24004096: 2937 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2938 eax = 0; /* 0x24004096: xor eax, eax */ 2939 _cf = 0; 2940 _flag_k = FK_TEST; 2941 goto L_240040A2; /* 0x24004098: jmp 0x240040a2 */ 2942 L_2400409A: 2943 eax = MEM32(esi + 0x8); /* 0x2400409A: mov eax, dword ptr [esi + 8] */ 2944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2946 eax = eax - ecx; /* 0x2400409D: sub eax, ecx */ 2947 _flag_k = FK_CMP; 2948 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2400409F: sar eax, 2 */ 2949 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2950 eax = (uint32_t)((int32_t)eax >> 2u); 2951 L_240040A2: 2952 edx = MEM32(ebp + 0x8); /* 0x240040A2: mov edx, dword ptr [ebp + 8] */ 2953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2955 eax = eax + eax; /* 0x240040A5: add eax, eax */ 2956 _flag_k = FK_ADD; 2957 /* cmp eax, edx */ /* 0x240040A7: cmp eax, edx */ 2958 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2960 _flag_k = FK_CMP; 2961 if (CMP_BE(_flag_a, _flag_b)) goto L_24004113; /* 0x240040A9: jbe 0x24004113 */ 2962 L_240040AB: 2963 ecx = MEM32(esi + 0x4); /* 0x240040AB: mov ecx, dword ptr [esi + 4] */ 2964 /* cmp ecx, edi */ /* 0x240040AE: cmp ecx, edi */ 2965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2967 _flag_k = FK_CMP; 2968 MEM32(ebp + 0x1C) = edi; /* 0x240040B0: mov dword ptr [ebp + 0x1c], edi */ 2969 if (CMP_NE(_flag_a, _flag_b)) goto L_240040B9; /* 0x240040B3: jne 0x240040b9 */ 2970 L_240040B5: 2971 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2972 eax = 0; /* 0x240040B5: xor eax, eax */ 2973 _cf = 0; 2974 _flag_k = FK_TEST; 2975 goto L_240040C1; /* 0x240040B7: jmp 0x240040c1 */ 2976 L_240040B9: 2977 eax = MEM32(esi + 0x8); /* 0x240040B9: mov eax, dword ptr [esi + 8] */ 2978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2980 eax = eax - ecx; /* 0x240040BC: sub eax, ecx */ 2981 _flag_k = FK_CMP; 2982 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x240040BE: sar eax, 2 */ 2983 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2984 eax = (uint32_t)((int32_t)eax >> 2u); 2985 L_240040C1: 2986 edx = eax + eax; /* 0x240040C1: lea edx, [eax + eax] */ 2987 eax = MEM32(esi + 0x4); /* 0x240040C4: mov eax, dword ptr [esi + 4] */ 2988 /* cmp eax, edi */ /* 0x240040C7: cmp eax, edi */ 2989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2991 _flag_k = FK_CMP; 2992 if (CMP_NE(_flag_a, _flag_b)) goto L_240040CF; /* 0x240040C9: jne 0x240040cf */ 2993 L_240040CB: 2994 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2995 ecx = 0; /* 0x240040CB: xor ecx, ecx */ 2996 _cf = 0; 2997 _flag_k = FK_TEST; 2998 goto L_240040D7; /* 0x240040CD: jmp 0x240040d7 */ 2999 L_240040CF: 3000 ecx = MEM32(esi + 0x8); /* 0x240040CF: mov ecx, dword ptr [esi + 8] */ 3001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3003 ecx = ecx - eax; /* 0x240040D2: sub ecx, eax */ 3004 _flag_k = FK_CMP; 3005 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240040D4: sar ecx, 2 */ 3006 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3007 ecx = (uint32_t)((int32_t)ecx >> 2u); 3008 L_240040D7: 3009 /* cmp ecx, edx */ /* 0x240040D7: cmp ecx, edx */ 3010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3012 _flag_k = FK_CMP; 3013 if (CMP_AE(_flag_a, _flag_b)) goto L_240040FF; /* 0x240040D9: jae 0x240040ff */ 3014 L_240040DB: 3015 /* cmp eax, edi */ /* 0x240040DB: cmp eax, edi */ 3016 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3018 _flag_k = FK_CMP; 3019 if (CMP_NE(_flag_a, _flag_b)) goto L_240040E3; /* 0x240040DD: jne 0x240040e3 */ 3020 L_240040DF: 3021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3022 ecx = 0; /* 0x240040DF: xor ecx, ecx */ 3023 _cf = 0; 3024 _flag_k = FK_TEST; 3025 goto L_240040EB; /* 0x240040E1: jmp 0x240040eb */ 3026 L_240040E3: 3027 ecx = MEM32(esi + 0x8); /* 0x240040E3: mov ecx, dword ptr [esi + 8] */ 3028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3030 ecx = ecx - eax; /* 0x240040E6: sub ecx, eax */ 3031 _flag_k = FK_CMP; 3032 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240040E8: sar ecx, 2 */ 3033 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3034 ecx = (uint32_t)((int32_t)ecx >> 2u); 3035 L_240040EB: 3036 eax = ebp + 0x1C; /* 0x240040EB: lea eax, [ebp + 0x1c] */ 3037 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3039 edx = edx - ecx; /* 0x240040EE: sub edx, ecx */ 3040 _flag_k = FK_CMP; 3041 ecx = MEM32(esi + 0x8); /* 0x240040F0: mov ecx, dword ptr [esi + 8] */ 3042 PUSH32(esp, eax); /* 0x240040F3: push eax */ 3043 PUSH32(esp, edx); /* 0x240040F4: push edx */ 3044 PUSH32(esp, ecx); /* 0x240040F5: push ecx */ 3045 ecx = esi; /* 0x240040F6: mov ecx, esi */ 3046 RECOMP_ICALL(0x24005260u); /* 0x240040F8: call 0x24005260 */ /* not lifted */ 3047 RECOMP_FLAGS_IN(); 3048 goto L_24004170; /* 0x240040FD: jmp 0x24004170 */ 3049 L_240040FF: 3050 /* cmp eax, edi */ /* 0x240040FF: cmp eax, edi */ 3051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3053 _flag_k = FK_CMP; 3054 if (CMP_EQ(_flag_a, _flag_b)) goto L_24004170; /* 0x24004101: je 0x24004170 */ 3055 L_24004103: 3056 ecx = MEM32(esi + 0x8); /* 0x24004103: mov ecx, dword ptr [esi + 8] */ 3057 edi = ecx; /* 0x24004106: mov edi, ecx */ 3058 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3060 edi = edi - eax; /* 0x24004108: sub edi, eax */ 3061 _flag_k = FK_CMP; 3062 if (2u) _cf = (((edi) >> 1) & 1u); /* 0x2400410A: sar edi, 2 */ 3063 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3064 edi = (uint32_t)((int32_t)edi >> 2u); 3065 /* cmp edx, edi */ /* 0x2400410D: cmp edx, edi */ 3066 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3068 _flag_k = FK_CMP; 3069 if (CMP_AE(_flag_a, _flag_b)) goto L_24004170; /* 0x2400410F: jae 0x24004170 */ 3070 L_24004111: 3071 goto L_24004164; /* 0x24004111: jmp 0x24004164 */ 3072 L_24004113: 3073 eax = MEM32(esi + 0x4); /* 0x24004113: mov eax, dword ptr [esi + 4] */ 3074 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3075 edx = edx + 1; /* 0x24004116: inc edx */ 3076 _flag_k = FK_INC; 3077 /* cmp eax, edi */ /* 0x24004117: cmp eax, edi */ 3078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3080 _flag_k = FK_CMP; 3081 MEM32(ebp + 0x1C) = edi; /* 0x24004119: mov dword ptr [ebp + 0x1c], edi */ 3082 if (CMP_NE(_flag_a, _flag_b)) goto L_24004122; /* 0x2400411C: jne 0x24004122 */ 3083 L_2400411E: 3084 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3085 ecx = 0; /* 0x2400411E: xor ecx, ecx */ 3086 _cf = 0; 3087 _flag_k = FK_TEST; 3088 goto L_2400412A; /* 0x24004120: jmp 0x2400412a */ 3089 L_24004122: 3090 ecx = MEM32(esi + 0x8); /* 0x24004122: mov ecx, dword ptr [esi + 8] */ 3091 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3093 ecx = ecx - eax; /* 0x24004125: sub ecx, eax */ 3094 _flag_k = FK_CMP; 3095 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004127: sar ecx, 2 */ 3096 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3097 ecx = (uint32_t)((int32_t)ecx >> 2u); 3098 L_2400412A: 3099 /* cmp ecx, edx */ /* 0x2400412A: cmp ecx, edx */ 3100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3102 _flag_k = FK_CMP; 3103 if (CMP_AE(_flag_a, _flag_b)) goto L_24004152; /* 0x2400412C: jae 0x24004152 */ 3104 L_2400412E: 3105 /* cmp eax, edi */ /* 0x2400412E: cmp eax, edi */ 3106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3108 _flag_k = FK_CMP; 3109 if (CMP_NE(_flag_a, _flag_b)) goto L_24004136; /* 0x24004130: jne 0x24004136 */ 3110 L_24004132: 3111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3112 ecx = 0; /* 0x24004132: xor ecx, ecx */ 3113 _cf = 0; 3114 _flag_k = FK_TEST; 3115 goto L_2400413E; /* 0x24004134: jmp 0x2400413e */ 3116 L_24004136: 3117 ecx = MEM32(esi + 0x8); /* 0x24004136: mov ecx, dword ptr [esi + 8] */ 3118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3120 ecx = ecx - eax; /* 0x24004139: sub ecx, eax */ 3121 _flag_k = FK_CMP; 3122 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2400413B: sar ecx, 2 */ 3123 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3124 ecx = (uint32_t)((int32_t)ecx >> 2u); 3125 L_2400413E: 3126 eax = ebp + 0x1C; /* 0x2400413E: lea eax, [ebp + 0x1c] */ 3127 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3129 edx = edx - ecx; /* 0x24004141: sub edx, ecx */ 3130 _flag_k = FK_CMP; 3131 ecx = MEM32(esi + 0x8); /* 0x24004143: mov ecx, dword ptr [esi + 8] */ 3132 PUSH32(esp, eax); /* 0x24004146: push eax */ 3133 PUSH32(esp, edx); /* 0x24004147: push edx */ 3134 PUSH32(esp, ecx); /* 0x24004148: push ecx */ 3135 ecx = esi; /* 0x24004149: mov ecx, esi */ 3136 RECOMP_ICALL(0x24005260u); /* 0x2400414B: call 0x24005260 */ /* not lifted */ 3137 RECOMP_FLAGS_IN(); 3138 goto L_24004170; /* 0x24004150: jmp 0x24004170 */ 3139 L_24004152: 3140 /* cmp eax, edi */ /* 0x24004152: cmp eax, edi */ 3141 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3143 _flag_k = FK_CMP; 3144 if (CMP_EQ(_flag_a, _flag_b)) goto L_24004170; /* 0x24004154: je 0x24004170 */ 3145 L_24004156: 3146 ecx = MEM32(esi + 0x8); /* 0x24004156: mov ecx, dword ptr [esi + 8] */ 3147 edi = ecx; /* 0x24004159: mov edi, ecx */ 3148 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3150 edi = edi - eax; /* 0x2400415B: sub edi, eax */ 3151 _flag_k = FK_CMP; 3152 if (2u) _cf = (((edi) >> 1) & 1u); /* 0x2400415D: sar edi, 2 */ 3153 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3154 edi = (uint32_t)((int32_t)edi >> 2u); 3155 /* cmp edx, edi */ /* 0x24004160: cmp edx, edi */ 3156 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3158 _flag_k = FK_CMP; 3159 if (CMP_AE(_flag_a, _flag_b)) goto L_24004170; /* 0x24004162: jae 0x24004170 */ 3160 L_24004164: 3161 PUSH32(esp, ecx); /* 0x24004164: push ecx */ 3162 edx = eax + edx * 4; /* 0x24004165: lea edx, [eax + edx*4] */ 3163 PUSH32(esp, edx); /* 0x24004168: push edx */ 3164 ecx = esi; /* 0x24004169: mov ecx, esi */ 3165 RECOMP_ICALL(0x24005490u); /* 0x2400416B: call 0x24005490 */ /* not lifted */ 3166 RECOMP_FLAGS_IN(); 3167 L_24004170: 3168 eax = MEM32(ebp + (-0x4)); /* 0x24004170: mov eax, dword ptr [ebp - 4] */ 3169 ecx = MEM32(eax + 0x34); /* 0x24004173: mov ecx, dword ptr [eax + 0x34] */ 3170 edx = MEM32(ebp + 0x8); /* 0x24004176: mov edx, dword ptr [ebp + 8] */ 3171 MEM32(ecx + edx * 4) = ebx; /* 0x24004179: mov dword ptr [ecx + edx*4], ebx */ 3172 L_2400417C: 3173 ecx = MEM32(ebp + 0x14); /* 0x2400417C: mov ecx, dword ptr [ebp + 0x14] */ 3174 L_2400417F: 3175 SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x2400417F: mov al, byte ptr [ebp + 0x18] */ 3176 /* test LO8(eax), LO8(eax) */ /* 0x24004182: test al, al */ 3177 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3178 _cf = 0; 3179 _flag_k = FK_NARROW(FK_TEST, 24); 3180 eax = MEM32(ebx + 0x8); /* 0x24004184: mov eax, dword ptr [ebx + 8] */ 3181 eax = eax + ebx + 0x14; /* 0x24004187: lea eax, [eax + ebx + 0x14] */ 3182 if (TEST_Z(_flag_a, _flag_b)) goto L_240041BB; /* 0x2400418B: je 0x240041bb */ 3183 L_2400418D: 3184 esi = MEM32(ebp + 0x10); /* 0x2400418D: mov esi, dword ptr [ebp + 0x10] */ 3185 /* test esi, esi */ /* 0x24004190: test esi, esi */ 3186 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3187 _cf = 0; 3188 _flag_k = FK_TEST; 3189 if (TEST_Z(_flag_a, _flag_b)) goto L_240041A7; /* 0x24004192: je 0x240041a7 */ 3190 L_24004194: 3191 edx = ecx; /* 0x24004194: mov edx, ecx */ 3192 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004196: shr ecx, 2 */ 3193 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3194 ecx = ecx >> 2u; /* 0x24004196: shr ecx, 2 */ 3195 edi = eax; /* 0x24004199: mov edi, eax */ 3196 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2400419B: 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; } 3197 ecx = edx; /* 0x2400419D: mov ecx, edx */ 3198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3199 ecx = ecx & 3; /* 0x2400419F: and ecx, 3 */ 3200 _cf = 0; 3201 _flag_k = FK_TEST; 3202 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240041A2: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3203 ecx = MEM32(ebp + 0x14); /* 0x240041A4: mov ecx, dword ptr [ebp + 0x14] */ 3204 L_240041A7: 3205 _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(1); 3206 MEM32(ebx + 0x10) = MEM32(ebx + 0x10) + 1; /* 0x240041A7: inc dword ptr [ebx + 0x10] */ 3207 _flag_k = FK_INC; 3208 edx = MEM32(ebx + 0x8); /* 0x240041AA: mov edx, dword ptr [ebx + 8] */ 3209 edi = POP32_VAL(esp); /* 0x240041AD: pop edi */ 3210 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3212 edx = edx + ecx; /* 0x240041AE: add edx, ecx */ 3213 _flag_k = FK_ADD; 3214 esi = POP32_VAL(esp); /* 0x240041B0: pop esi */ 3215 MEM32(ebx + 0x8) = edx; /* 0x240041B1: mov dword ptr [ebx + 8], edx */ 3216 ebx = POP32_VAL(esp); /* 0x240041B4: pop ebx */ 3217 esp = ebp; /* 0x240041B5: mov esp, ebp */ 3218 ebp = POP32_VAL(esp); /* 0x240041B7: pop ebp */ 3219 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x240041B8: ret 0x18 */ 3220 L_240041BB: 3221 esi = MEM32(ebp + 0x10); /* 0x240041BB: mov esi, dword ptr [ebp + 0x10] */ 3222 MEM32(eax) = ecx; /* 0x240041BE: mov dword ptr [eax], ecx */ 3223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3225 eax = eax + 4; /* 0x240041C0: add eax, 4 */ 3226 _flag_k = FK_ADD; 3227 /* test esi, esi */ /* 0x240041C3: test esi, esi */ 3228 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3229 _cf = 0; 3230 _flag_k = FK_TEST; 3231 if (TEST_Z(_flag_a, _flag_b)) goto L_240041DA; /* 0x240041C5: je 0x240041da */ 3232 L_240041C7: 3233 edx = ecx; /* 0x240041C7: mov edx, ecx */ 3234 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240041C9: shr ecx, 2 */ 3235 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3236 ecx = ecx >> 2u; /* 0x240041C9: shr ecx, 2 */ 3237 edi = eax; /* 0x240041CC: mov edi, eax */ 3238 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x240041CE: 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; } 3239 ecx = edx; /* 0x240041D0: mov ecx, edx */ 3240 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3241 ecx = ecx & 3; /* 0x240041D2: and ecx, 3 */ 3242 _cf = 0; 3243 _flag_k = FK_TEST; 3244 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240041D5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3245 ecx = MEM32(ebp + 0x14); /* 0x240041D7: mov ecx, dword ptr [ebp + 0x14] */ 3246 L_240041DA: 3247 _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(1); 3248 MEM32(ebx + 0x10) = MEM32(ebx + 0x10) + 1; /* 0x240041DA: inc dword ptr [ebx + 0x10] */ 3249 _flag_k = FK_INC; 3250 edx = MEM32(ebx + 0x8); /* 0x240041DD: mov edx, dword ptr [ebx + 8] */ 3251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3253 ecx = ecx + 4; /* 0x240041E0: add ecx, 4 */ 3254 _flag_k = FK_ADD; 3255 edi = POP32_VAL(esp); /* 0x240041E3: pop edi */ 3256 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3258 edx = edx + ecx; /* 0x240041E4: add edx, ecx */ 3259 _flag_k = FK_ADD; 3260 esi = POP32_VAL(esp); /* 0x240041E6: pop esi */ 3261 MEM32(ebx + 0x8) = edx; /* 0x240041E7: mov dword ptr [ebx + 8], edx */ 3262 ebx = POP32_VAL(esp); /* 0x240041EA: pop ebx */ 3263 esp = ebp; /* 0x240041EB: mov esp, ebp */ 3264 ebp = POP32_VAL(esp); /* 0x240041ED: pop ebp */ 3265 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x240041EE: ret 0x18 */ 3266 RECOMP_REGS_OUT(); 3267 } 3268 3269 void sub_2400417C(void) { 3270 int _fpu_cmp = 0; 3271 uint32_t _cf = 0; 3272 int _df = 1; 3273 uint32_t _flag_k = FK_NONE; 3274 uint32_t _flag_a = 0, _flag_b = 0; 3275 uint32_t _itail_tgt = 0; 3276 RECOMP_REGS_LOCALS 3277 RECOMP_ENTER(0x2400417Cu); 3278 3279 L_2400417C: 3280 ecx = MEM32(ebp + 0x14); /* 0x2400417C: mov ecx, dword ptr [ebp + 0x14] */ 3281 SET_LO8(eax, MEM8(ebp + 0x18)); /* 0x2400417F: mov al, byte ptr [ebp + 0x18] */ 3282 /* test LO8(eax), LO8(eax) */ /* 0x24004182: test al, al */ 3283 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3284 _cf = 0; 3285 _flag_k = FK_NARROW(FK_TEST, 24); 3286 eax = MEM32(ebx + 0x8); /* 0x24004184: mov eax, dword ptr [ebx + 8] */ 3287 eax = eax + ebx + 0x14; /* 0x24004187: lea eax, [eax + ebx + 0x14] */ 3288 if (TEST_Z(_flag_a, _flag_b)) goto L_240041BB; /* 0x2400418B: je 0x240041bb */ 3289 L_2400418D: 3290 esi = MEM32(ebp + 0x10); /* 0x2400418D: mov esi, dword ptr [ebp + 0x10] */ 3291 /* test esi, esi */ /* 0x24004190: test esi, esi */ 3292 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3293 _cf = 0; 3294 _flag_k = FK_TEST; 3295 if (TEST_Z(_flag_a, _flag_b)) goto L_240041A7; /* 0x24004192: je 0x240041a7 */ 3296 L_24004194: 3297 edx = ecx; /* 0x24004194: mov edx, ecx */ 3298 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004196: shr ecx, 2 */ 3299 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3300 ecx = ecx >> 2u; /* 0x24004196: shr ecx, 2 */ 3301 edi = eax; /* 0x24004199: mov edi, eax */ 3302 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2400419B: 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; } 3303 ecx = edx; /* 0x2400419D: mov ecx, edx */ 3304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3305 ecx = ecx & 3; /* 0x2400419F: and ecx, 3 */ 3306 _cf = 0; 3307 _flag_k = FK_TEST; 3308 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240041A2: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3309 ecx = MEM32(ebp + 0x14); /* 0x240041A4: mov ecx, dword ptr [ebp + 0x14] */ 3310 L_240041A7: 3311 _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(1); 3312 MEM32(ebx + 0x10) = MEM32(ebx + 0x10) + 1; /* 0x240041A7: inc dword ptr [ebx + 0x10] */ 3313 _flag_k = FK_INC; 3314 edx = MEM32(ebx + 0x8); /* 0x240041AA: mov edx, dword ptr [ebx + 8] */ 3315 edi = POP32_VAL(esp); /* 0x240041AD: pop edi */ 3316 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3318 edx = edx + ecx; /* 0x240041AE: add edx, ecx */ 3319 _flag_k = FK_ADD; 3320 esi = POP32_VAL(esp); /* 0x240041B0: pop esi */ 3321 MEM32(ebx + 0x8) = edx; /* 0x240041B1: mov dword ptr [ebx + 8], edx */ 3322 ebx = POP32_VAL(esp); /* 0x240041B4: pop ebx */ 3323 esp = ebp; /* 0x240041B5: mov esp, ebp */ 3324 ebp = POP32_VAL(esp); /* 0x240041B7: pop ebp */ 3325 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x240041B8: ret 0x18 */ 3326 L_240041BB: 3327 esi = MEM32(ebp + 0x10); /* 0x240041BB: mov esi, dword ptr [ebp + 0x10] */ 3328 MEM32(eax) = ecx; /* 0x240041BE: mov dword ptr [eax], ecx */ 3329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3331 eax = eax + 4; /* 0x240041C0: add eax, 4 */ 3332 _flag_k = FK_ADD; 3333 /* test esi, esi */ /* 0x240041C3: test esi, esi */ 3334 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3335 _cf = 0; 3336 _flag_k = FK_TEST; 3337 if (TEST_Z(_flag_a, _flag_b)) goto L_240041DA; /* 0x240041C5: je 0x240041da */ 3338 L_240041C7: 3339 edx = ecx; /* 0x240041C7: mov edx, ecx */ 3340 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240041C9: shr ecx, 2 */ 3341 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3342 ecx = ecx >> 2u; /* 0x240041C9: shr ecx, 2 */ 3343 edi = eax; /* 0x240041CC: mov edi, eax */ 3344 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x240041CE: 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; } 3345 ecx = edx; /* 0x240041D0: mov ecx, edx */ 3346 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3347 ecx = ecx & 3; /* 0x240041D2: and ecx, 3 */ 3348 _cf = 0; 3349 _flag_k = FK_TEST; 3350 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240041D5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3351 ecx = MEM32(ebp + 0x14); /* 0x240041D7: mov ecx, dword ptr [ebp + 0x14] */ 3352 L_240041DA: 3353 _flag_a = (uint32_t)(MEM32(ebx + 0x10)); _flag_b = (uint32_t)(1); 3354 MEM32(ebx + 0x10) = MEM32(ebx + 0x10) + 1; /* 0x240041DA: inc dword ptr [ebx + 0x10] */ 3355 _flag_k = FK_INC; 3356 edx = MEM32(ebx + 0x8); /* 0x240041DD: mov edx, dword ptr [ebx + 8] */ 3357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3359 ecx = ecx + 4; /* 0x240041E0: add ecx, 4 */ 3360 _flag_k = FK_ADD; 3361 edi = POP32_VAL(esp); /* 0x240041E3: pop edi */ 3362 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3364 edx = edx + ecx; /* 0x240041E4: add edx, ecx */ 3365 _flag_k = FK_ADD; 3366 esi = POP32_VAL(esp); /* 0x240041E6: pop esi */ 3367 MEM32(ebx + 0x8) = edx; /* 0x240041E7: mov dword ptr [ebx + 8], edx */ 3368 ebx = POP32_VAL(esp); /* 0x240041EA: pop ebx */ 3369 esp = ebp; /* 0x240041EB: mov esp, ebp */ 3370 ebp = POP32_VAL(esp); /* 0x240041ED: pop ebp */ 3371 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x240041EE: ret 0x18 */ 3372 RECOMP_REGS_OUT(); 3373 } 3374 3375 void sub_24004200(void) { 3376 int _fpu_cmp = 0; 3377 uint32_t _cf = 0; 3378 int _df = 1; 3379 uint32_t _flag_k = FK_NONE; 3380 uint32_t _flag_a = 0, _flag_b = 0; 3381 uint32_t _itail_tgt = 0; 3382 RECOMP_REGS_LOCALS 3383 RECOMP_ENTER(0x24004200u); 3384 3385 L_24004200: 3386 PUSH32(esp, ebp); /* 0x24004200: push ebp */ 3387 ebp = esp; /* 0x24004201: mov ebp, esp */ 3388 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3390 esp = esp - 0x1Cu; /* 0x24004203: sub esp, 0x1c */ 3391 _flag_k = FK_CMP; 3392 PUSH32(esp, ebx); /* 0x24004206: push ebx */ 3393 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3394 eax = 0; /* 0x24004207: xor eax, eax */ 3395 _cf = 0; 3396 _flag_k = FK_TEST; 3397 PUSH32(esp, esi); /* 0x24004209: push esi */ 3398 PUSH32(esp, edi); /* 0x2400420A: push edi */ 3399 ebx = ecx; /* 0x2400420B: mov ebx, ecx */ 3400 MEM32(ebp + (-0x8)) = eax; /* 0x2400420D: mov dword ptr [ebp - 8], eax */ 3401 MEM32(ebp + (-0x4)) = eax; /* 0x24004210: mov dword ptr [ebp - 4], eax */ 3402 L_24004213: 3403 /* cmp MEM32(ebp + (-0x4)), 1 */ /* 0x24004213: cmp dword ptr [ebp - 4], 1 */ 3404 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 3405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3406 _flag_k = FK_CMP; 3407 if (CMP_NE(_flag_a, _flag_b)) goto L_24004264; /* 0x24004217: jne 0x24004264 */ 3408 L_24004219: 3409 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3410 ecx = ecx | 0xFFFFFFFFu; /* 0x24004219: or ecx, 0xffffffff */ 3411 _cf = 0; 3412 _flag_k = FK_TEST; 3413 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3414 eax = 0; /* 0x2400421C: xor eax, eax */ 3415 _cf = 0; 3416 _flag_k = FK_TEST; 3417 edx = ebx + 0x1C; /* 0x2400421E: lea edx, [ebx + 0x1c] */ 3418 edi = edx; /* 0x24004221: mov edi, edx */ 3419 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004223: repne scasb al, byte ptr es:[edi] */ 3420 ecx = ~ecx; /* 0x24004225: not ecx */ 3421 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3423 edi = edi - ecx; /* 0x24004227: sub edi, ecx */ 3424 _flag_k = FK_CMP; 3425 eax = ecx; /* 0x24004229: mov eax, ecx */ 3426 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2400422B: shr ecx, 2 */ 3427 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3428 ecx = ecx >> 2u; /* 0x2400422B: shr ecx, 2 */ 3429 esi = ebp + (-0x1C); /* 0x2400422E: lea esi, [ebp - 0x1c] */ 3430 MEM32(ebp + (-0xC)) = esi; /* 0x24004231: mov dword ptr [ebp - 0xc], esi */ 3431 esi = edi; /* 0x24004234: mov esi, edi */ 3432 edi = MEM32(ebp + (-0xC)); /* 0x24004236: mov edi, dword ptr [ebp - 0xc] */ 3433 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004239: 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; } 3434 ecx = eax; /* 0x2400423B: mov ecx, eax */ 3435 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3436 ecx = ecx & 3; /* 0x2400423D: and ecx, 3 */ 3437 _cf = 0; 3438 _flag_k = FK_TEST; 3439 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004240: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3440 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3441 ecx = ecx | 0xFFFFFFFFu; /* 0x24004242: or ecx, 0xffffffff */ 3442 _cf = 0; 3443 _flag_k = FK_TEST; 3444 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3445 eax = 0; /* 0x24004245: xor eax, eax */ 3446 _cf = 0; 3447 _flag_k = FK_TEST; 3448 edi = 0x2400E0B0u; /* 0x24004247: mov edi, 0x2400e0b0 */ 3449 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2400424C: repne scasb al, byte ptr es:[edi] */ 3450 ecx = ~ecx; /* 0x2400424E: not ecx */ 3451 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3453 edi = edi - ecx; /* 0x24004250: sub edi, ecx */ 3454 _flag_k = FK_CMP; 3455 eax = ecx; /* 0x24004252: mov eax, ecx */ 3456 esi = edi; /* 0x24004254: mov esi, edi */ 3457 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004256: shr ecx, 2 */ 3458 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3459 ecx = ecx >> 2u; /* 0x24004256: shr ecx, 2 */ 3460 edi = edx; /* 0x24004259: mov edi, edx */ 3461 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2400425B: 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; } 3462 ecx = eax; /* 0x2400425D: mov ecx, eax */ 3463 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3464 ecx = ecx & 3; /* 0x2400425F: and ecx, 3 */ 3465 _cf = 0; 3466 _flag_k = FK_TEST; 3467 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004262: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3468 L_24004264: 3469 ecx = MEM32(ebp + 0x8); /* 0x24004264: mov ecx, dword ptr [ebp + 8] */ 3470 PUSH32(esp, ecx); /* 0x24004267: push ecx */ 3471 ecx = ebx; /* 0x24004268: mov ecx, ebx */ 3472 RECOMP_ICALL(0x24003DF0u); /* 0x2400426A: call 0x24003df0 */ /* not lifted */ 3473 RECOMP_FLAGS_IN(); 3474 ecx = MEM32(ebp + (-0x4)); /* 0x2400426F: mov ecx, dword ptr [ebp - 4] */ 3475 /* cmp ecx, 1 */ /* 0x24004272: cmp ecx, 1 */ 3476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3478 _flag_k = FK_CMP; 3479 edx = eax; /* 0x24004275: mov edx, eax */ 3480 if (CMP_NE(_flag_a, _flag_b)) goto L_240042A3; /* 0x24004277: jne 0x240042a3 */ 3481 L_24004279: 3482 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3483 ecx = ecx | 0xFFFFFFFFu; /* 0x24004279: or ecx, 0xffffffff */ 3484 _cf = 0; 3485 _flag_k = FK_TEST; 3486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3487 eax = 0; /* 0x2400427C: xor eax, eax */ 3488 _cf = 0; 3489 _flag_k = FK_TEST; 3490 edi = ebp + (-0x1C); /* 0x2400427E: lea edi, [ebp - 0x1c] */ 3491 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004281: repne scasb al, byte ptr es:[edi] */ 3492 ecx = ~ecx; /* 0x24004283: not ecx */ 3493 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3495 edi = edi - ecx; /* 0x24004285: sub edi, ecx */ 3496 _flag_k = FK_CMP; 3497 eax = ecx; /* 0x24004287: mov eax, ecx */ 3498 esi = ebx + 0x1C; /* 0x24004289: lea esi, [ebx + 0x1c] */ 3499 MEM32(ebp + (-0xC)) = esi; /* 0x2400428C: mov dword ptr [ebp - 0xc], esi */ 3500 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2400428F: shr ecx, 2 */ 3501 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3502 ecx = ecx >> 2u; /* 0x2400428F: shr ecx, 2 */ 3503 esi = edi; /* 0x24004292: mov esi, edi */ 3504 edi = MEM32(ebp + (-0xC)); /* 0x24004294: mov edi, dword ptr [ebp - 0xc] */ 3505 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004297: 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; } 3506 ecx = eax; /* 0x24004299: mov ecx, eax */ 3507 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3508 ecx = ecx & 3; /* 0x2400429B: and ecx, 3 */ 3509 _cf = 0; 3510 _flag_k = FK_TEST; 3511 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2400429E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3512 ecx = MEM32(ebp + (-0x4)); /* 0x240042A0: mov ecx, dword ptr [ebp - 4] */ 3513 L_240042A3: 3514 eax = MEM32(ebx + 0x34); /* 0x240042A3: mov eax, dword ptr [ebx + 0x34] */ 3515 /* test eax, eax */ /* 0x240042A6: test eax, eax */ 3516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3517 _cf = 0; 3518 _flag_k = FK_TEST; 3519 if (TEST_Z(_flag_a, _flag_b)) goto L_240042B6; /* 0x240042A8: je 0x240042b6 */ 3520 L_240042AA: 3521 esi = MEM32(ebx + 0x38); /* 0x240042AA: mov esi, dword ptr [ebx + 0x38] */ 3522 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3524 esi = esi - eax; /* 0x240042AD: sub esi, eax */ 3525 _flag_k = FK_CMP; 3526 if (2u) _cf = (((esi) >> 1) & 1u); /* 0x240042AF: sar esi, 2 */ 3527 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3528 esi = (uint32_t)((int32_t)esi >> 2u); 3529 /* cmp edx, esi */ /* 0x240042B2: cmp edx, esi */ 3530 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 3531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3532 _flag_k = FK_CMP; 3533 if (CMP_B(_flag_a, _flag_b)) goto L_240042BC; /* 0x240042B4: jb 0x240042bc */ 3534 L_240042B6: 3535 /* test ecx, ecx */ /* 0x240042B6: test ecx, ecx */ 3536 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3537 _cf = 0; 3538 _flag_k = FK_TEST; 3539 if (TEST_NZ(_flag_a, _flag_b)) goto L_240042F2; /* 0x240042B8: jne 0x240042f2 */ 3540 L_240042BA: 3541 goto L_240042CD; /* 0x240042BA: jmp 0x240042cd */ 3542 L_240042BC: 3543 eax = MEM32(ebx + 0x34); /* 0x240042BC: mov eax, dword ptr [ebx + 0x34] */ 3544 eax = MEM32(eax + edx * 4); /* 0x240042BF: mov eax, dword ptr [eax + edx*4] */ 3545 /* test eax, eax */ /* 0x240042C2: test eax, eax */ 3546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3547 _cf = 0; 3548 _flag_k = FK_TEST; 3549 MEM32(ebp + (-0x8)) = eax; /* 0x240042C4: mov dword ptr [ebp - 8], eax */ 3550 if (TEST_NZ(_flag_a, _flag_b)) goto L_240042DD; /* 0x240042C7: jne 0x240042dd */ 3551 L_240042C9: 3552 /* test ecx, ecx */ /* 0x240042C9: test ecx, ecx */ 3553 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3554 _cf = 0; 3555 _flag_k = FK_TEST; 3556 if (TEST_NZ(_flag_a, _flag_b)) goto L_240042F2; /* 0x240042CB: jne 0x240042f2 */ 3557 L_240042CD: 3558 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3559 ecx = ecx + 1; /* 0x240042CD: inc ecx */ 3560 _flag_k = FK_INC; 3561 /* cmp ecx, 2 */ /* 0x240042CE: cmp ecx, 2 */ 3562 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 3563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3564 _flag_k = FK_CMP; 3565 MEM32(ebp + (-0x4)) = ecx; /* 0x240042D1: mov dword ptr [ebp - 4], ecx */ 3566 RECOMP_BACKEDGE(); 3567 if (CMP_L(_flag_a, _flag_b)) goto L_24004213; /* 0x240042D4: jl 0x24004213 */ 3568 L_240042DA: 3569 eax = MEM32(ebp + (-0x8)); /* 0x240042DA: mov eax, dword ptr [ebp - 8] */ 3570 L_240042DD: 3571 ecx = MEM32(ebp + 0xC); /* 0x240042DD: mov ecx, dword ptr [ebp + 0xc] */ 3572 /* cmp ecx, MEM32(eax) */ /* 0x240042E0: cmp ecx, dword ptr [eax] */ 3573 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 3574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3575 _flag_k = FK_CMP; 3576 if (CMP_EQ(_flag_a, _flag_b)) goto L_24004300; /* 0x240042E2: je 0x24004300 */ 3577 L_240042E4: 3578 edi = POP32_VAL(esp); /* 0x240042E4: pop edi */ 3579 esi = POP32_VAL(esp); /* 0x240042E5: pop esi */ 3580 eax = 1; /* 0x240042E6: mov eax, 1 */ 3581 ebx = POP32_VAL(esp); /* 0x240042EB: pop ebx */ 3582 esp = ebp; /* 0x240042EC: mov esp, ebp */ 3583 ebp = POP32_VAL(esp); /* 0x240042EE: pop ebp */ 3584 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x240042EF: ret 0x14 */ 3585 L_240042F2: 3586 edi = POP32_VAL(esp); /* 0x240042F2: pop edi */ 3587 esi = POP32_VAL(esp); /* 0x240042F3: pop esi */ 3588 eax = 2; /* 0x240042F4: mov eax, 2 */ 3589 ebx = POP32_VAL(esp); /* 0x240042F9: pop ebx */ 3590 esp = ebp; /* 0x240042FA: mov esp, ebp */ 3591 ebp = POP32_VAL(esp); /* 0x240042FC: pop ebp */ 3592 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x240042FD: ret 0x14 */ 3593 L_24004300: 3594 edx = MEM32(ebp + 0x18); /* 0x24004300: mov edx, dword ptr [ebp + 0x18] */ 3595 /* cmp edx, MEM32(eax + 0x10) */ /* 0x24004303: cmp edx, dword ptr [eax + 0x10] */ 3596 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x10)); 3597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3598 _flag_k = FK_CMP; 3599 if (CMP_L(_flag_a, _flag_b)) goto L_24004316; /* 0x24004306: jl 0x24004316 */ 3600 L_24004308: 3601 edi = POP32_VAL(esp); /* 0x24004308: pop edi */ 3602 esi = POP32_VAL(esp); /* 0x24004309: pop esi */ 3603 eax = 3; /* 0x2400430A: mov eax, 3 */ 3604 ebx = POP32_VAL(esp); /* 0x2400430F: pop ebx */ 3605 esp = ebp; /* 0x24004310: mov esp, ebp */ 3606 ebp = POP32_VAL(esp); /* 0x24004312: pop ebp */ 3607 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x24004313: ret 0x14 */ 3608 L_24004316: 3609 ecx = MEM32(eax + 0xC); /* 0x24004316: mov ecx, dword ptr [eax + 0xc] */ 3610 /* test ecx, ecx */ /* 0x24004319: test ecx, ecx */ 3611 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3612 _cf = 0; 3613 _flag_k = FK_TEST; 3614 if (TEST_LE(_flag_a, _flag_b)) goto L_24004344; /* 0x2400431B: jle 0x24004344 */ 3615 L_2400431D: 3616 esi = MEM32(ebp + 0x10); /* 0x2400431D: mov esi, dword ptr [ebp + 0x10] */ 3617 /* test esi, esi */ /* 0x24004320: test esi, esi */ 3618 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3619 _cf = 0; 3620 _flag_k = FK_TEST; 3621 if (TEST_Z(_flag_a, _flag_b)) goto L_2400432D; /* 0x24004322: je 0x2400432d */ 3622 L_24004324: 3623 ecx = (uint32_t)((int32_t)ecx * (int32_t)edx); /* 0x24004324: imul ecx, edx */ 3624 edx = ecx + eax + 0x14; /* 0x24004327: lea edx, [ecx + eax + 0x14] */ 3625 MEM32(esi) = edx; /* 0x2400432B: mov dword ptr [esi], edx */ 3626 L_2400432D: 3627 ecx = MEM32(ebp + 0x14); /* 0x2400432D: mov ecx, dword ptr [ebp + 0x14] */ 3628 /* test ecx, ecx */ /* 0x24004330: test ecx, ecx */ 3629 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3630 _cf = 0; 3631 _flag_k = FK_TEST; 3632 if (TEST_Z(_flag_a, _flag_b)) goto L_2400436B; /* 0x24004332: je 0x2400436b */ 3633 L_24004334: 3634 eax = MEM32(eax + 0xC); /* 0x24004334: mov eax, dword ptr [eax + 0xc] */ 3635 edi = POP32_VAL(esp); /* 0x24004337: pop edi */ 3636 esi = POP32_VAL(esp); /* 0x24004338: pop esi */ 3637 MEM32(ecx) = eax; /* 0x24004339: mov dword ptr [ecx], eax */ 3638 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3639 eax = 0; /* 0x2400433B: xor eax, eax */ 3640 _cf = 0; 3641 _flag_k = FK_TEST; 3642 ebx = POP32_VAL(esp); /* 0x2400433D: pop ebx */ 3643 esp = ebp; /* 0x2400433E: mov esp, ebp */ 3644 ebp = POP32_VAL(esp); /* 0x24004340: pop ebp */ 3645 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x24004341: ret 0x14 */ 3646 L_24004344: 3647 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 3648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3649 eax = eax + 0x14u; /* 0x24004344: add eax, 0x14 */ 3650 _flag_k = FK_ADD; 3651 /* test edx, edx */ /* 0x24004347: test edx, edx */ 3652 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3653 _cf = 0; 3654 _flag_k = FK_TEST; 3655 if (TEST_LE(_flag_a, _flag_b)) goto L_24004354; /* 0x24004349: jle 0x24004354 */ 3656 L_2400434B: 3657 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3658 edx = edx - 1; /* 0x2400434B: dec edx */ 3659 _flag_k = FK_DEC; 3660 ecx = MEM32(eax); /* 0x2400434C: mov ecx, dword ptr [eax] */ 3661 eax = eax + ecx + 0x4; /* 0x2400434E: lea eax, [eax + ecx + 4] */ 3662 RECOMP_BACKEDGE(); 3663 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_2400434B; /* 0x24004352: jne 0x2400434b */ 3664 L_24004354: 3665 ecx = MEM32(ebp + 0x10); /* 0x24004354: mov ecx, dword ptr [ebp + 0x10] */ 3666 /* test ecx, ecx */ /* 0x24004357: test ecx, ecx */ 3667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3668 _cf = 0; 3669 _flag_k = FK_TEST; 3670 if (TEST_Z(_flag_a, _flag_b)) goto L_24004360; /* 0x24004359: je 0x24004360 */ 3671 L_2400435B: 3672 edx = eax + 0x4; /* 0x2400435B: lea edx, [eax + 4] */ 3673 MEM32(ecx) = edx; /* 0x2400435E: mov dword ptr [ecx], edx */ 3674 L_24004360: 3675 ecx = MEM32(ebp + 0x14); /* 0x24004360: mov ecx, dword ptr [ebp + 0x14] */ 3676 /* test ecx, ecx */ /* 0x24004363: test ecx, ecx */ 3677 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3678 _cf = 0; 3679 _flag_k = FK_TEST; 3680 if (TEST_Z(_flag_a, _flag_b)) goto L_2400436B; /* 0x24004365: je 0x2400436b */ 3681 L_24004367: 3682 eax = MEM32(eax); /* 0x24004367: mov eax, dword ptr [eax] */ 3683 MEM32(ecx) = eax; /* 0x24004369: mov dword ptr [ecx], eax */ 3684 L_2400436B: 3685 edi = POP32_VAL(esp); /* 0x2400436B: pop edi */ 3686 esi = POP32_VAL(esp); /* 0x2400436C: pop esi */ 3687 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3688 eax = 0; /* 0x2400436D: xor eax, eax */ 3689 _cf = 0; 3690 _flag_k = FK_TEST; 3691 ebx = POP32_VAL(esp); /* 0x2400436F: pop ebx */ 3692 esp = ebp; /* 0x24004370: mov esp, ebp */ 3693 ebp = POP32_VAL(esp); /* 0x24004372: pop ebp */ 3694 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x24004373: ret 0x14 */ 3695 RECOMP_REGS_OUT(); 3696 } 3697 3698 void sub_24004380(void) { 3699 int _fpu_cmp = 0; 3700 uint32_t _cf = 0; 3701 int _df = 1; 3702 uint32_t _flag_k = FK_NONE; 3703 uint32_t _flag_a = 0, _flag_b = 0; 3704 uint32_t _itail_tgt = 0; 3705 RECOMP_REGS_LOCALS 3706 RECOMP_ENTER(0x24004380u); 3707 3708 L_24004380: 3709 PUSH32(esp, ebp); /* 0x24004380: push ebp */ 3710 ebp = esp; /* 0x24004381: mov ebp, esp */ 3711 eax = MEM32(ebp + 0x8); /* 0x24004383: mov eax, dword ptr [ebp + 8] */ 3712 PUSH32(esp, esi); /* 0x24004386: push esi */ 3713 esi = ecx; /* 0x24004387: mov esi, ecx */ 3714 PUSH32(esp, eax); /* 0x24004389: push eax */ 3715 RECOMP_ICALL(0x24003BE0u); /* 0x2400438A: call 0x24003be0 */ /* not lifted */ 3716 RECOMP_FLAGS_IN(); 3717 ecx = MEM32(esi + 0x34); /* 0x2400438F: mov ecx, dword ptr [esi + 0x34] */ 3718 /* test ecx, ecx */ /* 0x24004392: test ecx, ecx */ 3719 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3720 _cf = 0; 3721 _flag_k = FK_TEST; 3722 if (TEST_Z(_flag_a, _flag_b)) goto L_240043A2; /* 0x24004394: je 0x240043a2 */ 3723 L_24004396: 3724 edx = MEM32(esi + 0x38); /* 0x24004396: mov edx, dword ptr [esi + 0x38] */ 3725 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3727 edx = edx - ecx; /* 0x24004399: sub edx, ecx */ 3728 _flag_k = FK_CMP; 3729 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x2400439B: sar edx, 2 */ 3730 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3731 edx = (uint32_t)((int32_t)edx >> 2u); 3732 /* cmp eax, edx */ /* 0x2400439E: cmp eax, edx */ 3733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3735 _flag_k = FK_CMP; 3736 if (CMP_B(_flag_a, _flag_b)) goto L_240043AC; /* 0x240043A0: jb 0x240043ac */ 3737 L_240043A2: 3738 eax = 2; /* 0x240043A2: mov eax, 2 */ 3739 esi = POP32_VAL(esp); /* 0x240043A7: pop esi */ 3740 ebp = POP32_VAL(esp); /* 0x240043A8: pop ebp */ 3741 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x240043A9: ret 4 */ 3742 L_240043AC: 3743 ecx = MEM32(esi + 0x34); /* 0x240043AC: mov ecx, dword ptr [esi + 0x34] */ 3744 eax = ecx + eax * 4; /* 0x240043AF: lea eax, [ecx + eax*4] */ 3745 ecx = MEM32(eax); /* 0x240043B2: mov ecx, dword ptr [eax] */ 3746 /* test ecx, ecx */ /* 0x240043B4: test ecx, ecx */ 3747 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3748 _cf = 0; 3749 _flag_k = FK_TEST; 3750 if (TEST_NZ(_flag_a, _flag_b)) goto L_240043C2; /* 0x240043B6: jne 0x240043c2 */ 3751 L_240043B8: 3752 eax = 2; /* 0x240043B8: mov eax, 2 */ 3753 esi = POP32_VAL(esp); /* 0x240043BD: pop esi */ 3754 ebp = POP32_VAL(esp); /* 0x240043BE: pop ebp */ 3755 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x240043BF: ret 4 */ 3756 L_240043C2: 3757 PUSH32(esp, ecx); /* 0x240043C2: push ecx */ 3758 MEM32(eax) = 0; /* 0x240043C3: mov dword ptr [eax], 0 */ 3759 RECOMP_ICALL(0x240097F2u); /* 0x240043C9: call 0x240097f2 */ /* not lifted */ 3760 RECOMP_FLAGS_IN(); 3761 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3762 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3763 esp = esp + 4; /* 0x240043CE: add esp, 4 */ 3764 _flag_k = FK_ADD; 3765 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3766 eax = 0; /* 0x240043D1: xor eax, eax */ 3767 _cf = 0; 3768 _flag_k = FK_TEST; 3769 esi = POP32_VAL(esp); /* 0x240043D3: pop esi */ 3770 ebp = POP32_VAL(esp); /* 0x240043D4: pop ebp */ 3771 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x240043D5: ret 4 */ 3772 RECOMP_REGS_OUT(); 3773 } 3774 3775 void sub_240043E0(void) { 3776 int _fpu_cmp = 0; 3777 uint32_t _cf = 0; 3778 int _df = 1; 3779 uint32_t _flag_k = FK_NONE; 3780 uint32_t _flag_a = 0, _flag_b = 0; 3781 uint32_t _itail_tgt = 0; 3782 RECOMP_REGS_LOCALS 3783 RECOMP_ENTER(0x240043E0u); 3784 3785 L_240043E0: 3786 PUSH32(esp, ebp); /* 0x240043E0: push ebp */ 3787 ebp = esp; /* 0x240043E1: mov ebp, esp */ 3788 eax = MEM32(ebp + 0x8); /* 0x240043E3: mov eax, dword ptr [ebp + 8] */ 3789 PUSH32(esp, esi); /* 0x240043E6: push esi */ 3790 esi = ecx; /* 0x240043E7: mov esi, ecx */ 3791 PUSH32(esp, eax); /* 0x240043E9: push eax */ 3792 RECOMP_ICALL(0x24003DF0u); /* 0x240043EA: call 0x24003df0 */ /* not lifted */ 3793 RECOMP_FLAGS_IN(); 3794 ecx = MEM32(esi + 0x34); /* 0x240043EF: mov ecx, dword ptr [esi + 0x34] */ 3795 /* test ecx, ecx */ /* 0x240043F2: test ecx, ecx */ 3796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3797 _cf = 0; 3798 _flag_k = FK_TEST; 3799 if (TEST_Z(_flag_a, _flag_b)) goto L_24004402; /* 0x240043F4: je 0x24004402 */ 3800 L_240043F6: 3801 edx = MEM32(esi + 0x38); /* 0x240043F6: mov edx, dword ptr [esi + 0x38] */ 3802 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3804 edx = edx - ecx; /* 0x240043F9: sub edx, ecx */ 3805 _flag_k = FK_CMP; 3806 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x240043FB: sar edx, 2 */ 3807 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3808 edx = (uint32_t)((int32_t)edx >> 2u); 3809 /* cmp eax, edx */ /* 0x240043FE: cmp eax, edx */ 3810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3812 _flag_k = FK_CMP; 3813 if (CMP_B(_flag_a, _flag_b)) goto L_24004409; /* 0x24004400: jb 0x24004409 */ 3814 L_24004402: 3815 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3816 eax = 0; /* 0x24004402: xor eax, eax */ 3817 _cf = 0; 3818 _flag_k = FK_TEST; 3819 esi = POP32_VAL(esp); /* 0x24004404: pop esi */ 3820 ebp = POP32_VAL(esp); /* 0x24004405: pop ebp */ 3821 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24004406: ret 4 */ 3822 L_24004409: 3823 ecx = MEM32(esi + 0x34); /* 0x24004409: mov ecx, dword ptr [esi + 0x34] */ 3824 eax = MEM32(ecx + eax * 4); /* 0x2400440C: mov eax, dword ptr [ecx + eax*4] */ 3825 /* test eax, eax */ /* 0x2400440F: test eax, eax */ 3826 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3827 _cf = 0; 3828 _flag_k = FK_TEST; 3829 if (TEST_NZ(_flag_a, _flag_b)) goto L_24004418; /* 0x24004411: jne 0x24004418 */ 3830 L_24004413: 3831 esi = POP32_VAL(esp); /* 0x24004413: pop esi */ 3832 ebp = POP32_VAL(esp); /* 0x24004414: pop ebp */ 3833 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24004415: ret 4 */ 3834 L_24004418: 3835 eax = MEM32(eax + 0x10); /* 0x24004418: mov eax, dword ptr [eax + 0x10] */ 3836 esi = POP32_VAL(esp); /* 0x2400441B: pop esi */ 3837 ebp = POP32_VAL(esp); /* 0x2400441C: pop ebp */ 3838 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2400441D: ret 4 */ 3839 RECOMP_REGS_OUT(); 3840 } 3841 3842 void sub_24004420(void) { 3843 int _fpu_cmp = 0; 3844 uint32_t _cf = 0; 3845 int _df = 1; 3846 uint32_t _flag_k = FK_NONE; 3847 uint32_t _flag_a = 0, _flag_b = 0; 3848 uint32_t _itail_tgt = 0; 3849 RECOMP_REGS_LOCALS 3850 RECOMP_ENTER(0x24004420u); 3851 3852 L_24004420: 3853 PUSH32(esp, esi); /* 0x24004420: push esi */ 3854 PUSH32(esp, edi); /* 0x24004421: push edi */ 3855 edi = MEM32(ecx + 0x34); /* 0x24004422: mov edi, dword ptr [ecx + 0x34] */ 3856 esi = 8; /* 0x24004425: mov esi, 8 */ 3857 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3858 eax = 0; /* 0x2400442A: xor eax, eax */ 3859 _cf = 0; 3860 _flag_k = FK_TEST; 3861 L_2400442C: 3862 /* test edi, edi */ /* 0x2400442C: test edi, edi */ 3863 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3864 _cf = 0; 3865 _flag_k = FK_TEST; 3866 if (TEST_Z(_flag_a, _flag_b)) goto L_24004479; /* 0x2400442E: je 0x24004479 */ 3867 L_24004430: 3868 edx = MEM32(ecx + 0x38); /* 0x24004430: mov edx, dword ptr [ecx + 0x38] */ 3869 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3871 edx = edx - edi; /* 0x24004433: sub edx, edi */ 3872 _flag_k = FK_CMP; 3873 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x24004435: sar edx, 2 */ 3874 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3875 edx = (uint32_t)((int32_t)edx >> 2u); 3876 /* cmp eax, edx */ /* 0x24004438: cmp eax, edx */ 3877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3879 _flag_k = FK_CMP; 3880 if (CMP_AE(_flag_a, _flag_b)) goto L_24004479; /* 0x2400443A: jae 0x24004479 */ 3881 L_2400443C: 3882 edx = MEM32(ecx + 0x34); /* 0x2400443C: mov edx, dword ptr [ecx + 0x34] */ 3883 edx = MEM32(edx + eax * 4); /* 0x2400443F: mov edx, dword ptr [edx + eax*4] */ 3884 /* test edx, edx */ /* 0x24004442: test edx, edx */ 3885 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3886 _cf = 0; 3887 _flag_k = FK_TEST; 3888 if (TEST_Z(_flag_a, _flag_b)) goto L_24004476; /* 0x24004444: je 0x24004476 */ 3889 L_24004446: 3890 /* cmp eax, 0x80u */ /* 0x24004446: cmp eax, 0x80 */ 3891 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u); 3892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3893 _flag_k = FK_CMP; 3894 if (CMP_GE(_flag_a, _flag_b)) goto L_24004458; /* 0x2400444B: jge 0x24004458 */ 3895 L_2400444D: 3896 edx = MEM32(edx + 0x8); /* 0x2400444D: mov edx, dword ptr [edx + 8] */ 3897 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3898 esi = esi + 1; /* 0x24004450: inc esi */ 3899 _flag_k = FK_INC; 3900 esi = esi + edx + 0xC; /* 0x24004451: lea esi, [esi + edx + 0xc] */ 3901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3902 eax = eax + 1; /* 0x24004455: inc eax */ 3903 _flag_k = FK_INC; 3904 RECOMP_BACKEDGE(); 3905 goto L_2400442C; /* 0x24004456: jmp 0x2400442c */ 3906 L_24004458: 3907 /* cmp eax, 0x4000u */ /* 0x24004458: cmp eax, 0x4000 */ 3908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4000u); 3909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3910 _flag_k = FK_CMP; 3911 if (CMP_GE(_flag_a, _flag_b)) goto L_2400446C; /* 0x2400445D: jge 0x2400446c */ 3912 L_2400445F: 3913 edx = MEM32(edx + 0x8); /* 0x2400445F: mov edx, dword ptr [edx + 8] */ 3914 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 3915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3916 esi = esi + 2; /* 0x24004462: add esi, 2 */ 3917 _flag_k = FK_ADD; 3918 esi = esi + edx + 0xC; /* 0x24004465: lea esi, [esi + edx + 0xc] */ 3919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3920 eax = eax + 1; /* 0x24004469: inc eax */ 3921 _flag_k = FK_INC; 3922 RECOMP_BACKEDGE(); 3923 goto L_2400442C; /* 0x2400446A: jmp 0x2400442c */ 3924 L_2400446C: 3925 edx = MEM32(edx + 0x8); /* 0x2400446C: mov edx, dword ptr [edx + 8] */ 3926 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3928 esi = esi + 4; /* 0x2400446F: add esi, 4 */ 3929 _flag_k = FK_ADD; 3930 esi = esi + edx + 0xC; /* 0x24004472: lea esi, [esi + edx + 0xc] */ 3931 L_24004476: 3932 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3933 eax = eax + 1; /* 0x24004476: inc eax */ 3934 _flag_k = FK_INC; 3935 RECOMP_BACKEDGE(); 3936 goto L_2400442C; /* 0x24004477: jmp 0x2400442c */ 3937 L_24004479: 3938 eax = MEM32(ecx); /* 0x24004479: mov eax, dword ptr [ecx] */ 3939 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x2400447B: call dword ptr [eax + 0x10] */ 3940 RECOMP_FLAGS_IN(); 3941 edi = POP32_VAL(esp); /* 0x2400447E: pop edi */ 3942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 3943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3944 eax = eax + esi; /* 0x2400447F: add eax, esi */ 3945 _flag_k = FK_ADD; 3946 esi = POP32_VAL(esp); /* 0x24004481: pop esi */ 3947 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24004482: ret */ 3948 RECOMP_REGS_OUT(); 3949 } 3950 3951 void sub_2400442C(void) { 3952 int _fpu_cmp = 0; 3953 uint32_t _cf = 0; 3954 int _df = 1; 3955 uint32_t _flag_k = FK_NONE; 3956 uint32_t _flag_a = 0, _flag_b = 0; 3957 uint32_t _itail_tgt = 0; 3958 RECOMP_REGS_LOCALS 3959 RECOMP_ENTER(0x2400442Cu); 3960 3961 L_2400442C: 3962 /* test edi, edi */ /* 0x2400442C: test edi, edi */ 3963 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3964 _cf = 0; 3965 _flag_k = FK_TEST; 3966 if (TEST_Z(_flag_a, _flag_b)) goto L_24004479; /* 0x2400442E: je 0x24004479 */ 3967 L_24004430: 3968 edx = MEM32(ecx + 0x38); /* 0x24004430: mov edx, dword ptr [ecx + 0x38] */ 3969 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 3970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3971 edx = edx - edi; /* 0x24004433: sub edx, edi */ 3972 _flag_k = FK_CMP; 3973 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x24004435: sar edx, 2 */ 3974 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3975 edx = (uint32_t)((int32_t)edx >> 2u); 3976 /* cmp eax, edx */ /* 0x24004438: cmp eax, edx */ 3977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3979 _flag_k = FK_CMP; 3980 if (CMP_AE(_flag_a, _flag_b)) goto L_24004479; /* 0x2400443A: jae 0x24004479 */ 3981 L_2400443C: 3982 edx = MEM32(ecx + 0x34); /* 0x2400443C: mov edx, dword ptr [ecx + 0x34] */ 3983 edx = MEM32(edx + eax * 4); /* 0x2400443F: mov edx, dword ptr [edx + eax*4] */ 3984 /* test edx, edx */ /* 0x24004442: test edx, edx */ 3985 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3986 _cf = 0; 3987 _flag_k = FK_TEST; 3988 if (TEST_Z(_flag_a, _flag_b)) goto L_24004476; /* 0x24004444: je 0x24004476 */ 3989 L_24004446: 3990 /* cmp eax, 0x80u */ /* 0x24004446: cmp eax, 0x80 */ 3991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u); 3992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3993 _flag_k = FK_CMP; 3994 if (CMP_GE(_flag_a, _flag_b)) goto L_24004458; /* 0x2400444B: jge 0x24004458 */ 3995 L_2400444D: 3996 edx = MEM32(edx + 0x8); /* 0x2400444D: mov edx, dword ptr [edx + 8] */ 3997 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3998 esi = esi + 1; /* 0x24004450: inc esi */ 3999 _flag_k = FK_INC; 4000 esi = esi + edx + 0xC; /* 0x24004451: lea esi, [esi + edx + 0xc] */ 4001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4002 eax = eax + 1; /* 0x24004455: inc eax */ 4003 _flag_k = FK_INC; 4004 RECOMP_BACKEDGE(); 4005 goto L_2400442C; /* 0x24004456: jmp 0x2400442c */ 4006 L_24004458: 4007 /* cmp eax, 0x4000u */ /* 0x24004458: cmp eax, 0x4000 */ 4008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4000u); 4009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4010 _flag_k = FK_CMP; 4011 if (CMP_GE(_flag_a, _flag_b)) goto L_2400446C; /* 0x2400445D: jge 0x2400446c */ 4012 L_2400445F: 4013 edx = MEM32(edx + 0x8); /* 0x2400445F: mov edx, dword ptr [edx + 8] */ 4014 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 4015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4016 esi = esi + 2; /* 0x24004462: add esi, 2 */ 4017 _flag_k = FK_ADD; 4018 esi = esi + edx + 0xC; /* 0x24004465: lea esi, [esi + edx + 0xc] */ 4019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4020 eax = eax + 1; /* 0x24004469: inc eax */ 4021 _flag_k = FK_INC; 4022 RECOMP_BACKEDGE(); 4023 goto L_2400442C; /* 0x2400446A: jmp 0x2400442c */ 4024 L_2400446C: 4025 edx = MEM32(edx + 0x8); /* 0x2400446C: mov edx, dword ptr [edx + 8] */ 4026 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4028 esi = esi + 4; /* 0x2400446F: add esi, 4 */ 4029 _flag_k = FK_ADD; 4030 esi = esi + edx + 0xC; /* 0x24004472: lea esi, [esi + edx + 0xc] */ 4031 L_24004476: 4032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4033 eax = eax + 1; /* 0x24004476: inc eax */ 4034 _flag_k = FK_INC; 4035 RECOMP_BACKEDGE(); 4036 goto L_2400442C; /* 0x24004477: jmp 0x2400442c */ 4037 L_24004479: 4038 eax = MEM32(ecx); /* 0x24004479: mov eax, dword ptr [ecx] */ 4039 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x2400447B: call dword ptr [eax + 0x10] */ 4040 RECOMP_FLAGS_IN(); 4041 edi = POP32_VAL(esp); /* 0x2400447E: pop edi */ 4042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4044 eax = eax + esi; /* 0x2400447F: add eax, esi */ 4045 _flag_k = FK_ADD; 4046 esi = POP32_VAL(esp); /* 0x24004481: pop esi */ 4047 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24004482: ret */ 4048 RECOMP_REGS_OUT(); 4049 } 4050 4051 void sub_24004490(void) { 4052 int _fpu_cmp = 0; 4053 uint32_t _cf = 0; 4054 int _df = 1; 4055 uint32_t _flag_k = FK_NONE; 4056 uint32_t _flag_a = 0, _flag_b = 0; 4057 uint32_t _itail_tgt = 0; 4058 RECOMP_REGS_LOCALS 4059 RECOMP_ENTER(0x24004490u); 4060 4061 L_24004490: 4062 PUSH32(esp, ebp); /* 0x24004490: push ebp */ 4063 ebp = esp; /* 0x24004491: mov ebp, esp */ 4064 PUSH32(esp, 0xFFFFFFFFu); /* 0x24004493: push -1 */ 4065 PUSH32(esp, 0x24009C93u); /* 0x24004495: push 0x24009c93 */ 4066 eax = MEM32(FS_BASE + (0)); /* 0x2400449A: mov eax, dword ptr fs:[0] */ 4067 PUSH32(esp, eax); /* 0x240044A0: push eax */ 4068 MEM32(FS_BASE + (0)) = esp; /* 0x240044A1: mov dword ptr fs:[0], esp */ 4069 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x7Cu); 4070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4071 esp = esp - 0x7Cu; /* 0x240044A8: sub esp, 0x7c */ 4072 _flag_k = FK_CMP; 4073 PUSH32(esp, ebx); /* 0x240044AB: push ebx */ 4074 PUSH32(esp, esi); /* 0x240044AC: push esi */ 4075 esi = MEM32(ebp + 0xC); /* 0x240044AD: mov esi, dword ptr [ebp + 0xc] */ 4076 /* cmp esi, 8 */ /* 0x240044B0: cmp esi, 8 */ 4077 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4079 _flag_k = FK_CMP; 4080 PUSH32(esp, edi); /* 0x240044B3: push edi */ 4081 MEM32(ebp + (-0x18)) = ecx; /* 0x240044B4: mov dword ptr [ebp - 0x18], ecx */ 4082 if (CMP_AE(_flag_a, _flag_b)) goto L_240044CF; /* 0x240044B7: jae 0x240044cf */ 4083 L_240044B9: 4084 edi = POP32_VAL(esp); /* 0x240044B9: pop edi */ 4085 esi = POP32_VAL(esp); /* 0x240044BA: pop esi */ 4086 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4087 eax = eax | 0xFFFFFFFFu; /* 0x240044BB: or eax, 0xffffffff */ 4088 _cf = 0; 4089 _flag_k = FK_TEST; 4090 ebx = POP32_VAL(esp); /* 0x240044BE: pop ebx */ 4091 ecx = MEM32(ebp + (-0xC)); /* 0x240044BF: mov ecx, dword ptr [ebp - 0xc] */ 4092 MEM32(FS_BASE + (0)) = ecx; /* 0x240044C2: mov dword ptr fs:[0], ecx */ 4093 esp = ebp; /* 0x240044C9: mov esp, ebp */ 4094 ebp = POP32_VAL(esp); /* 0x240044CB: pop ebp */ 4095 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240044CC: ret 8 */ 4096 L_240044CF: 4097 ecx = MEM32(ebp + 0x8); /* 0x240044CF: mov ecx, dword ptr [ebp + 8] */ 4098 edx = MEM32(ecx + 0x4); /* 0x240044D2: mov edx, dword ptr [ecx + 4] */ 4099 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4101 esi = esi - 8; /* 0x240044D5: sub esi, 8 */ 4102 _flag_k = FK_CMP; 4103 /* test edx, edx */ /* 0x240044D8: test edx, edx */ 4104 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4105 _cf = 0; 4106 _flag_k = FK_TEST; 4107 MEM32(ebp + (-0x1C)) = edx; /* 0x240044DA: mov dword ptr [ebp - 0x1c], edx */ 4108 eax = ecx + 0x8; /* 0x240044DD: lea eax, [ecx + 8] */ 4109 MEM32(ebp + (-0x14)) = 0; /* 0x240044E0: mov dword ptr [ebp - 0x14], 0 */ 4110 if (TEST_LE(_flag_a, _flag_b)) goto L_2400463B; /* 0x240044E7: jle 0x2400463b */ 4111 L_240044ED: 4112 goto L_240044F2; /* 0x240044ED: jmp 0x240044f2 */ 4113 L_240044EF: 4114 esi = MEM32(ebp + 0xC); /* 0x240044EF: mov esi, dword ptr [ebp + 0xc] */ 4115 L_240044F2: 4116 SET_LO8(ebx, MEM8(eax)); /* 0x240044F2: mov bl, byte ptr [eax] */ 4117 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4118 ecx = 0; /* 0x240044F4: xor ecx, ecx */ 4119 _cf = 0; 4120 _flag_k = FK_TEST; 4121 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4122 edx = 0; /* 0x240044F6: xor edx, edx */ 4123 _cf = 0; 4124 _flag_k = FK_TEST; 4125 /* test LO8(ebx), LO8(ebx) */ /* 0x240044F8: test bl, bl */ 4126 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4127 _cf = 0; 4128 _flag_k = FK_NARROW(FK_TEST, 24); 4129 edi = eax; /* 0x240044FA: mov edi, eax */ 4130 if (TEST_Z(_flag_a, _flag_b)) goto L_2400450C; /* 0x240044FC: je 0x2400450c */ 4131 L_240044FE: 4132 /* cmp edx, esi */ /* 0x240044FE: cmp edx, esi */ 4133 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4135 _flag_k = FK_CMP; 4136 if (CMP_GE(_flag_a, _flag_b)) goto L_2400450C; /* 0x24004500: jge 0x2400450c */ 4137 L_24004502: 4138 SET_LO8(ebx, MEM8(edx + eax + 0x1)); /* 0x24004502: mov bl, byte ptr [edx + eax + 1] */ 4139 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4140 ecx = ecx + 1; /* 0x24004506: inc ecx */ 4141 _flag_k = FK_INC; 4142 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4143 edx = edx + 1; /* 0x24004507: inc edx */ 4144 _flag_k = FK_INC; 4145 /* test LO8(ebx), LO8(ebx) */ /* 0x24004508: test bl, bl */ 4146 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4147 _cf = 0; 4148 _flag_k = FK_NARROW(FK_TEST, 24); 4149 RECOMP_BACKEDGE(); 4150 if (TEST_NZ(_flag_a, _flag_b)) goto L_240044FE; /* 0x2400450A: jne 0x240044fe */ 4151 L_2400450C: 4152 /* cmp MEM8(ecx + eax), 0 */ /* 0x2400450C: cmp byte ptr [ecx + eax], 0 */ 4153 _flag_a = (uint32_t)(MEM8(ecx + eax)) << 24; _flag_b = (uint32_t)(0) << 24; 4154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4155 _flag_k = FK_NARROW(FK_CMP, 24); 4156 RECOMP_BACKEDGE(); 4157 if (CMP_NE(_flag_a, _flag_b)) goto L_240044B9; /* 0x24004510: jne 0x240044b9 */ 4158 L_24004512: 4159 SET_LO8(edx, MEM8(ecx + eax + 0x1)); /* 0x24004512: mov dl, byte ptr [ecx + eax + 1] */ 4160 ebx = ecx + eax + 0x1; /* 0x24004516: lea ebx, [ecx + eax + 1] */ 4161 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4162 eax = eax | 0xFFFFFFFFu; /* 0x2400451A: or eax, 0xffffffff */ 4163 _cf = 0; 4164 _flag_k = FK_TEST; 4165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4167 eax = eax - ecx; /* 0x2400451D: sub eax, ecx */ 4168 _flag_k = FK_CMP; 4169 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4171 esi = esi + eax; /* 0x2400451F: add esi, eax */ 4172 _flag_k = FK_ADD; 4173 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4174 ecx = 0; /* 0x24004521: xor ecx, ecx */ 4175 _cf = 0; 4176 _flag_k = FK_TEST; 4177 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4178 eax = 0; /* 0x24004523: xor eax, eax */ 4179 _cf = 0; 4180 _flag_k = FK_TEST; 4181 /* test LO8(edx), LO8(edx) */ /* 0x24004525: test dl, dl */ 4182 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4183 _cf = 0; 4184 _flag_k = FK_NARROW(FK_TEST, 24); 4185 MEM32(ebp + 0xC) = esi; /* 0x24004527: mov dword ptr [ebp + 0xc], esi */ 4186 MEM32(ebp + (-0x10)) = ecx; /* 0x2400452A: mov dword ptr [ebp - 0x10], ecx */ 4187 if (TEST_Z(_flag_a, _flag_b)) goto L_24004540; /* 0x2400452D: je 0x24004540 */ 4188 L_2400452F: 4189 /* cmp eax, esi */ /* 0x2400452F: cmp eax, esi */ 4190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4192 _flag_k = FK_CMP; 4193 if (CMP_GE(_flag_a, _flag_b)) goto L_2400453D; /* 0x24004531: jge 0x2400453d */ 4194 L_24004533: 4195 SET_LO8(edx, MEM8(eax + ebx + 0x1)); /* 0x24004533: mov dl, byte ptr [eax + ebx + 1] */ 4196 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4197 ecx = ecx + 1; /* 0x24004537: inc ecx */ 4198 _flag_k = FK_INC; 4199 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4200 eax = eax + 1; /* 0x24004538: inc eax */ 4201 _flag_k = FK_INC; 4202 /* test LO8(edx), LO8(edx) */ /* 0x24004539: test dl, dl */ 4203 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4204 _cf = 0; 4205 _flag_k = FK_NARROW(FK_TEST, 24); 4206 RECOMP_BACKEDGE(); 4207 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400452F; /* 0x2400453B: jne 0x2400452f */ 4208 L_2400453D: 4209 MEM32(ebp + (-0x10)) = ecx; /* 0x2400453D: mov dword ptr [ebp - 0x10], ecx */ 4210 L_24004540: 4211 /* cmp MEM8(ecx + ebx), 0 */ /* 0x24004540: cmp byte ptr [ecx + ebx], 0 */ 4212 _flag_a = (uint32_t)(MEM8(ecx + ebx)) << 24; _flag_b = (uint32_t)(0) << 24; 4213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4214 _flag_k = FK_NARROW(FK_CMP, 24); 4215 RECOMP_BACKEDGE(); 4216 if (CMP_NE(_flag_a, _flag_b)) goto L_240044B9; /* 0x24004544: jne 0x240044b9 */ 4217 L_2400454A: 4218 PUSH32(esp, 7); /* 0x2400454A: push 7 */ 4219 ecx = ebp + (-0x34); /* 0x2400454C: lea ecx, [ebp - 0x34] */ 4220 PUSH32(esp, edi); /* 0x2400454F: push edi */ 4221 PUSH32(esp, ecx); /* 0x24004550: push ecx */ 4222 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x24004551: call dword ptr [0x2400b0b4] */ 4223 RECOMP_FLAGS_IN(); 4224 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4225 ecx = ecx | 0xFFFFFFFFu; /* 0x24004557: or ecx, 0xffffffff */ 4226 _cf = 0; 4227 _flag_k = FK_TEST; 4228 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4229 eax = 0; /* 0x2400455A: xor eax, eax */ 4230 _cf = 0; 4231 _flag_k = FK_TEST; 4232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4234 esp = esp + 0xCu; /* 0x2400455C: add esp, 0xc */ 4235 _flag_k = FK_ADD; 4236 edi = ebx; /* 0x2400455F: mov edi, ebx */ 4237 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004561: repne scasb al, byte ptr es:[edi] */ 4238 ecx = ~ecx; /* 0x24004563: not ecx */ 4239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4240 ecx = ecx - 1; /* 0x24004565: dec ecx */ 4241 _flag_k = FK_DEC; 4242 /* cmp ecx, 0x20u */ /* 0x24004566: cmp ecx, 0x20 */ 4243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 4244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4245 _flag_k = FK_CMP; 4246 edx = ebp + (-0x54); /* 0x24004569: lea edx, [ebp - 0x54] */ 4247 MEM32(ebp + (-0x58)) = edx; /* 0x2400456C: mov dword ptr [ebp - 0x58], edx */ 4248 if (CMP_B(_flag_a, _flag_b)) goto L_24004580; /* 0x2400456F: jb 0x24004580 */ 4249 L_24004571: 4250 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4251 ecx = ecx + 1; /* 0x24004571: inc ecx */ 4252 _flag_k = FK_INC; 4253 PUSH32(esp, ecx); /* 0x24004572: push ecx */ 4254 RECOMP_ICALL(0x24009838u); /* 0x24004573: call 0x24009838 */ /* not lifted */ 4255 RECOMP_FLAGS_IN(); 4256 edx = eax; /* 0x24004578: mov edx, eax */ 4257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4259 esp = esp + 4; /* 0x2400457A: add esp, 4 */ 4260 _flag_k = FK_ADD; 4261 MEM32(ebp + (-0x58)) = edx; /* 0x2400457D: mov dword ptr [ebp - 0x58], edx */ 4262 L_24004580: 4263 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4264 ecx = ecx | 0xFFFFFFFFu; /* 0x24004580: or ecx, 0xffffffff */ 4265 _cf = 0; 4266 _flag_k = FK_TEST; 4267 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4268 eax = 0; /* 0x24004583: xor eax, eax */ 4269 _cf = 0; 4270 _flag_k = FK_TEST; 4271 edi = ebx; /* 0x24004585: mov edi, ebx */ 4272 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004587: repne scasb al, byte ptr es:[edi] */ 4273 ecx = ~ecx; /* 0x24004589: not ecx */ 4274 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4276 edi = edi - ecx; /* 0x2400458B: sub edi, ecx */ 4277 _flag_k = FK_CMP; 4278 eax = ecx; /* 0x2400458D: mov eax, ecx */ 4279 esi = edi; /* 0x2400458F: mov esi, edi */ 4280 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004591: shr ecx, 2 */ 4281 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4282 ecx = ecx >> 2u; /* 0x24004591: shr ecx, 2 */ 4283 edi = edx; /* 0x24004594: mov edi, edx */ 4284 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004596: 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; } 4285 ecx = eax; /* 0x24004598: mov ecx, eax */ 4286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4287 ecx = ecx & 3; /* 0x2400459A: and ecx, 3 */ 4288 _cf = 0; 4289 _flag_k = FK_TEST; 4290 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2400459D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4291 MEM8(ebp + (-0x2D)) = (uint8_t)(0); /* 0x2400459F: mov byte ptr [ebp - 0x2d], 0 */ 4292 ecx = ebp + (-0x58); /* 0x240045A3: lea ecx, [ebp - 0x58] */ 4293 PUSH32(esp, ecx); /* 0x240045A6: push ecx */ 4294 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4295 esi = 0; /* 0x240045A7: xor esi, esi */ 4296 _cf = 0; 4297 _flag_k = FK_TEST; 4298 ecx = ebp + (-0x88); /* 0x240045A9: lea ecx, [ebp - 0x88] */ 4299 MEM32(ebp + (-0x4)) = esi; /* 0x240045AF: mov dword ptr [ebp - 4], esi */ 4300 RECOMP_ICALL(0x24001280u); /* 0x240045B2: call 0x24001280 */ /* not lifted */ 4301 RECOMP_FLAGS_IN(); 4302 MEM32(ebp + (-0x5C)) = esi; /* 0x240045B7: mov dword ptr [ebp - 0x5c], esi */ 4303 ecx = MEM32(ebp + (-0x18)); /* 0x240045BA: mov ecx, dword ptr [ebp - 0x18] */ 4304 edx = ebp + (-0x88); /* 0x240045BD: lea edx, [ebp - 0x88] */ 4305 PUSH32(esp, edx); /* 0x240045C3: push edx */ 4306 eax = ebp + (-0x24); /* 0x240045C4: lea eax, [ebp - 0x24] */ 4307 PUSH32(esp, eax); /* 0x240045C7: push eax */ 4308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4309 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4310 ecx = ecx + 4; /* 0x240045C8: add ecx, 4 */ 4311 _flag_k = FK_ADD; 4312 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x240045CB: mov byte ptr [ebp - 4], 1 */ 4313 RECOMP_ICALL(0x240054D0u); /* 0x240045CF: call 0x240054d0 */ /* not lifted */ 4314 RECOMP_FLAGS_IN(); 4315 edi = MEM32(eax); /* 0x240045D4: mov edi, dword ptr [eax] */ 4316 edx = MEM32(eax + 0x4); /* 0x240045D6: mov edx, dword ptr [eax + 4] */ 4317 eax = MEM32(ebp + (-0x88)); /* 0x240045D9: mov eax, dword ptr [ebp - 0x88] */ 4318 ecx = ebp + (-0x84); /* 0x240045DF: lea ecx, [ebp - 0x84] */ 4319 /* cmp eax, ecx */ /* 0x240045E5: cmp eax, ecx */ 4320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4322 _flag_k = FK_CMP; 4323 MEM32(ebp + (-0x28)) = edx; /* 0x240045E7: mov dword ptr [ebp - 0x28], edx */ 4324 if (CMP_EQ(_flag_a, _flag_b)) goto L_240045F5; /* 0x240045EA: je 0x240045f5 */ 4325 L_240045EC: 4326 PUSH32(esp, eax); /* 0x240045EC: push eax */ 4327 RECOMP_ICALL(0x240097F2u); /* 0x240045ED: call 0x240097f2 */ /* not lifted */ 4328 RECOMP_FLAGS_IN(); 4329 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4331 esp = esp + 4; /* 0x240045F2: add esp, 4 */ 4332 _flag_k = FK_ADD; 4333 L_240045F5: 4334 esi = MEM32(ebp + (-0x14)); /* 0x240045F5: mov esi, dword ptr [ebp - 0x14] */ 4335 MEM32(edi + 0x38) = esi; /* 0x240045F8: mov dword ptr [edi + 0x38], esi */ 4336 eax = MEM32(ebp + (-0x58)); /* 0x240045FB: mov eax, dword ptr [ebp - 0x58] */ 4337 edx = ebp + (-0x54); /* 0x240045FE: lea edx, [ebp - 0x54] */ 4338 /* cmp eax, edx */ /* 0x24004601: cmp eax, edx */ 4339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4341 _flag_k = FK_CMP; 4342 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x24004603: mov dword ptr [ebp - 4], 0xffffffff */ 4343 if (CMP_EQ(_flag_a, _flag_b)) goto L_24004615; /* 0x2400460A: je 0x24004615 */ 4344 L_2400460C: 4345 PUSH32(esp, eax); /* 0x2400460C: push eax */ 4346 RECOMP_ICALL(0x240097F2u); /* 0x2400460D: call 0x240097f2 */ /* 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; /* 0x24004612: add esp, 4 */ 4351 _flag_k = FK_ADD; 4352 L_24004615: 4353 ecx = MEM32(ebp + (-0x10)); /* 0x24004615: mov ecx, dword ptr [ebp - 0x10] */ 4354 edi = MEM32(ebp + 0xC); /* 0x24004618: mov edi, dword ptr [ebp + 0xc] */ 4355 _flag_a = (uint32_t)((edx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edx | 0xFFFFFFFFu)); 4356 edx = edx | 0xFFFFFFFFu; /* 0x2400461B: or edx, 0xffffffff */ 4357 _cf = 0; 4358 _flag_k = FK_TEST; 4359 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4361 edx = edx - ecx; /* 0x2400461E: sub edx, ecx */ 4362 _flag_k = FK_CMP; 4363 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 4364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4365 edi = edi + edx; /* 0x24004620: add edi, edx */ 4366 _flag_k = FK_ADD; 4367 eax = ecx + ebx + 0x1; /* 0x24004622: lea eax, [ecx + ebx + 1] */ 4368 ecx = MEM32(ebp + (-0x1C)); /* 0x24004626: mov ecx, dword ptr [ebp - 0x1c] */ 4369 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4370 esi = esi + 1; /* 0x24004629: inc esi */ 4371 _flag_k = FK_INC; 4372 /* cmp esi, ecx */ /* 0x2400462A: cmp esi, ecx */ 4373 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 4374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4375 _flag_k = FK_CMP; 4376 MEM32(ebp + 0xC) = edi; /* 0x2400462C: mov dword ptr [ebp + 0xc], edi */ 4377 MEM32(ebp + (-0x14)) = esi; /* 0x2400462F: mov dword ptr [ebp - 0x14], esi */ 4378 RECOMP_BACKEDGE(); 4379 if (CMP_L(_flag_a, _flag_b)) goto L_240044EF; /* 0x24004632: jl 0x240044ef */ 4380 L_24004638: 4381 ecx = MEM32(ebp + 0x8); /* 0x24004638: mov ecx, dword ptr [ebp + 8] */ 4382 L_2400463B: 4383 edi = POP32_VAL(esp); /* 0x2400463B: pop edi */ 4384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4386 eax = eax - ecx; /* 0x2400463C: sub eax, ecx */ 4387 _flag_k = FK_CMP; 4388 ecx = MEM32(ebp + (-0xC)); /* 0x2400463E: mov ecx, dword ptr [ebp - 0xc] */ 4389 esi = POP32_VAL(esp); /* 0x24004641: pop esi */ 4390 ebx = POP32_VAL(esp); /* 0x24004642: pop ebx */ 4391 MEM32(FS_BASE + (0)) = ecx; /* 0x24004643: mov dword ptr fs:[0], ecx */ 4392 esp = ebp; /* 0x2400464A: mov esp, ebp */ 4393 ebp = POP32_VAL(esp); /* 0x2400464C: pop ebp */ 4394 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400464D: ret 8 */ 4395 RECOMP_REGS_OUT(); 4396 } 4397 4398 void sub_24004650(void) { 4399 int _fpu_cmp = 0; 4400 uint32_t _cf = 0; 4401 int _df = 1; 4402 uint32_t _flag_k = FK_NONE; 4403 uint32_t _flag_a = 0, _flag_b = 0; 4404 uint32_t _itail_tgt = 0; 4405 RECOMP_REGS_LOCALS 4406 RECOMP_ENTER(0x24004650u); 4407 4408 L_24004650: 4409 PUSH32(esp, ebp); /* 0x24004650: push ebp */ 4410 ebp = esp; /* 0x24004651: mov ebp, esp */ 4411 PUSH32(esp, 0xFFFFFFFFu); /* 0x24004653: push -1 */ 4412 PUSH32(esp, 0x24009CA8u); /* 0x24004655: push 0x24009ca8 */ 4413 eax = MEM32(FS_BASE + (0)); /* 0x2400465A: mov eax, dword ptr fs:[0] */ 4414 PUSH32(esp, eax); /* 0x24004660: push eax */ 4415 MEM32(FS_BASE + (0)) = esp; /* 0x24004661: mov dword ptr fs:[0], esp */ 4416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4418 esp = esp - 0x10u; /* 0x24004668: sub esp, 0x10 */ 4419 _flag_k = FK_CMP; 4420 PUSH32(esp, ebx); /* 0x2400466B: push ebx */ 4421 ebx = MEM32(ebp + 0x8); /* 0x2400466C: mov ebx, dword ptr [ebp + 8] */ 4422 PUSH32(esp, esi); /* 0x2400466F: push esi */ 4423 esi = ecx; /* 0x24004670: mov esi, ecx */ 4424 MEM32(ebx) = 1; /* 0x24004672: mov dword ptr [ebx], 1 */ 4425 eax = MEM32(esi + 0x14); /* 0x24004678: mov eax, dword ptr [esi + 0x14] */ 4426 MEM32(ebx + 0x4) = eax; /* 0x2400467B: mov dword ptr [ebx + 4], eax */ 4427 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x2400467E: mov al, byte ptr [ebp + 0xb] */ 4428 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x24004681: mov byte ptr [ebp - 0x1c], al */ 4429 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4430 eax = 0; /* 0x24004684: xor eax, eax */ 4431 _cf = 0; 4432 _flag_k = FK_TEST; 4433 PUSH32(esp, edi); /* 0x24004686: push edi */ 4434 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 4435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4436 ebx = ebx + 8; /* 0x24004687: add ebx, 8 */ 4437 _flag_k = FK_ADD; 4438 MEM32(ebp + (-0x18)) = eax; /* 0x2400468A: mov dword ptr [ebp - 0x18], eax */ 4439 MEM32(ebp + (-0x14)) = eax; /* 0x2400468D: mov dword ptr [ebp - 0x14], eax */ 4440 MEM32(ebp + (-0x10)) = eax; /* 0x24004690: mov dword ptr [ebp - 0x10], eax */ 4441 edi = MEM32(esi + 0x14); /* 0x24004693: mov edi, dword ptr [esi + 0x14] */ 4442 /* cmp edi, eax */ /* 0x24004696: cmp edi, eax */ 4443 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4445 _flag_k = FK_CMP; 4446 MEM32(ebp + (-0x4)) = eax; /* 0x24004698: mov dword ptr [ebp - 4], eax */ 4447 MEM32(ebp + 0x8) = eax; /* 0x2400469B: mov dword ptr [ebp + 8], eax */ 4448 if (CMP_BE(_flag_a, _flag_b)) goto L_240046BB; /* 0x2400469E: jbe 0x240046bb */ 4449 L_240046A0: 4450 ecx = ebp + 0x8; /* 0x240046A0: lea ecx, [ebp + 8] */ 4451 PUSH32(esp, ecx); /* 0x240046A3: push ecx */ 4452 ecx = ebp + (-0x1C); /* 0x240046A4: lea ecx, [ebp - 0x1c] */ 4453 RECOMP_ICALL(0x24005150u); /* 0x240046A7: call 0x24005150 */ /* not lifted */ 4454 RECOMP_FLAGS_IN(); 4455 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4457 edi = edi - eax; /* 0x240046AC: sub edi, eax */ 4458 _flag_k = FK_CMP; 4459 PUSH32(esp, edi); /* 0x240046AE: push edi */ 4460 PUSH32(esp, 0); /* 0x240046AF: push 0 */ 4461 ecx = ebp + (-0x1C); /* 0x240046B1: lea ecx, [ebp - 0x1c] */ 4462 RECOMP_ICALL(0x24005260u); /* 0x240046B4: call 0x24005260 */ /* not lifted */ 4463 RECOMP_FLAGS_IN(); 4464 goto L_240046DA; /* 0x240046B9: jmp 0x240046da */ 4465 L_240046BB: 4466 ecx = ebp + (-0x1C); /* 0x240046BB: lea ecx, [ebp - 0x1c] */ 4467 RECOMP_ICALL(0x24005150u); /* 0x240046BE: call 0x24005150 */ /* not lifted */ 4468 RECOMP_FLAGS_IN(); 4469 /* cmp edi, eax */ /* 0x240046C3: cmp edi, eax */ 4470 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4471 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4472 _flag_k = FK_CMP; 4473 if (CMP_AE(_flag_a, _flag_b)) goto L_240046DA; /* 0x240046C5: jae 0x240046da */ 4474 L_240046C7: 4475 edx = MEM32(ebp + (-0x14)); /* 0x240046C7: mov edx, dword ptr [ebp - 0x14] */ 4476 eax = MEM32(ebp + (-0x18)); /* 0x240046CA: mov eax, dword ptr [ebp - 0x18] */ 4477 ecx = eax + edi * 4; /* 0x240046CD: lea ecx, [eax + edi*4] */ 4478 PUSH32(esp, edx); /* 0x240046D0: push edx */ 4479 PUSH32(esp, ecx); /* 0x240046D1: push ecx */ 4480 ecx = ebp + (-0x1C); /* 0x240046D2: lea ecx, [ebp - 0x1c] */ 4481 RECOMP_ICALL(0x24005490u); /* 0x240046D5: call 0x24005490 */ /* not lifted */ 4482 RECOMP_FLAGS_IN(); 4483 L_240046DA: 4484 ecx = MEM32(esi + 0x8); /* 0x240046DA: mov ecx, dword ptr [esi + 8] */ 4485 eax = MEM32(ecx); /* 0x240046DD: mov eax, dword ptr [ecx] */ 4486 /* cmp eax, ecx */ /* 0x240046DF: cmp eax, ecx */ 4487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4489 _flag_k = FK_CMP; 4490 MEM32(ebp + 0x8) = eax; /* 0x240046E1: mov dword ptr [ebp + 8], eax */ 4491 if (CMP_EQ(_flag_a, _flag_b)) goto L_24004704; /* 0x240046E4: je 0x24004704 */ 4492 L_240046E6: 4493 ecx = MEM32(ebp + (-0x18)); /* 0x240046E6: mov ecx, dword ptr [ebp - 0x18] */ 4494 edx = eax + 0xC; /* 0x240046E9: lea edx, [eax + 0xc] */ 4495 eax = MEM32(eax + 0x38); /* 0x240046EC: mov eax, dword ptr [eax + 0x38] */ 4496 MEM32(ecx + eax * 4) = edx; /* 0x240046EF: mov dword ptr [ecx + eax*4], edx */ 4497 ecx = ebp + 0x8; /* 0x240046F2: lea ecx, [ebp + 8] */ 4498 RECOMP_ICALL(0x24002D30u); /* 0x240046F5: call 0x24002d30 */ /* not lifted */ 4499 RECOMP_FLAGS_IN(); 4500 ecx = MEM32(esi + 0x8); /* 0x240046FA: mov ecx, dword ptr [esi + 8] */ 4501 eax = MEM32(ebp + 0x8); /* 0x240046FD: mov eax, dword ptr [ebp + 8] */ 4502 /* cmp eax, ecx */ /* 0x24004700: cmp eax, ecx */ 4503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4505 _flag_k = FK_CMP; 4506 RECOMP_BACKEDGE(); 4507 if (CMP_NE(_flag_a, _flag_b)) goto L_240046E6; /* 0x24004702: jne 0x240046e6 */ 4508 L_24004704: 4509 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4510 eax = 0; /* 0x24004704: xor eax, eax */ 4511 _cf = 0; 4512 _flag_k = FK_TEST; 4513 L_24004706: 4514 ecx = MEM32(ebp + (-0x18)); /* 0x24004706: mov ecx, dword ptr [ebp - 0x18] */ 4515 /* test ecx, ecx */ /* 0x24004709: test ecx, ecx */ 4516 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4517 _cf = 0; 4518 _flag_k = FK_TEST; 4519 MEM32(ebp + 0x8) = eax; /* 0x2400470B: mov dword ptr [ebp + 8], eax */ 4520 if (TEST_Z(_flag_a, _flag_b)) goto L_24004779; /* 0x2400470E: je 0x24004779 */ 4521 L_24004710: 4522 edx = MEM32(ebp + (-0x14)); /* 0x24004710: mov edx, dword ptr [ebp - 0x14] */ 4523 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4525 edx = edx - ecx; /* 0x24004713: sub edx, ecx */ 4526 _flag_k = FK_CMP; 4527 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x24004715: sar edx, 2 */ 4528 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4529 edx = (uint32_t)((int32_t)edx >> 2u); 4530 /* cmp eax, edx */ /* 0x24004718: cmp eax, edx */ 4531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4533 _flag_k = FK_CMP; 4534 if (CMP_AE(_flag_a, _flag_b)) goto L_24004779; /* 0x2400471A: jae 0x24004779 */ 4535 L_2400471C: 4536 eax = MEM32(ecx + eax * 4); /* 0x2400471C: mov eax, dword ptr [ecx + eax*4] */ 4537 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4538 ecx = ecx | 0xFFFFFFFFu; /* 0x2400471F: or ecx, 0xffffffff */ 4539 _cf = 0; 4540 _flag_k = FK_TEST; 4541 esi = eax + 0x24; /* 0x24004722: lea esi, [eax + 0x24] */ 4542 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4543 eax = 0; /* 0x24004725: xor eax, eax */ 4544 _cf = 0; 4545 _flag_k = FK_TEST; 4546 edi = esi; /* 0x24004727: mov edi, esi */ 4547 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004729: repne scasb al, byte ptr es:[edi] */ 4548 ecx = ~ecx; /* 0x2400472B: not ecx */ 4549 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4550 ecx = ecx - 1; /* 0x2400472D: dec ecx */ 4551 _flag_k = FK_DEC; 4552 eax = ecx; /* 0x2400472E: mov eax, ecx */ 4553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4554 eax = eax + 1; /* 0x24004730: inc eax */ 4555 _flag_k = FK_INC; 4556 ecx = eax; /* 0x24004731: mov ecx, eax */ 4557 edx = ecx; /* 0x24004733: mov edx, ecx */ 4558 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004735: shr ecx, 2 */ 4559 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4560 ecx = ecx >> 2u; /* 0x24004735: shr ecx, 2 */ 4561 edi = ebx; /* 0x24004738: mov edi, ebx */ 4562 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2400473A: 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; } 4563 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4565 ebx = ebx + eax; /* 0x2400473C: add ebx, eax */ 4566 _flag_k = FK_ADD; 4567 ecx = edx; /* 0x2400473E: mov ecx, edx */ 4568 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4569 ecx = ecx & 3; /* 0x24004740: and ecx, 3 */ 4570 _cf = 0; 4571 _flag_k = FK_TEST; 4572 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004743: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4573 eax = MEM32(ebp + (-0x18)); /* 0x24004745: mov eax, dword ptr [ebp - 0x18] */ 4574 ecx = MEM32(ebp + 0x8); /* 0x24004748: mov ecx, dword ptr [ebp + 8] */ 4575 edx = MEM32(eax + ecx * 4); /* 0x2400474B: mov edx, dword ptr [eax + ecx*4] */ 4576 esi = MEM32(edx); /* 0x2400474E: mov esi, dword ptr [edx] */ 4577 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4578 ecx = ecx | 0xFFFFFFFFu; /* 0x24004750: or ecx, 0xffffffff */ 4579 _cf = 0; 4580 _flag_k = FK_TEST; 4581 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4582 eax = 0; /* 0x24004753: xor eax, eax */ 4583 _cf = 0; 4584 _flag_k = FK_TEST; 4585 edi = esi; /* 0x24004755: mov edi, esi */ 4586 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004757: repne scasb al, byte ptr es:[edi] */ 4587 ecx = ~ecx; /* 0x24004759: not ecx */ 4588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4589 ecx = ecx - 1; /* 0x2400475B: dec ecx */ 4590 _flag_k = FK_DEC; 4591 eax = ecx; /* 0x2400475C: mov eax, ecx */ 4592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4593 eax = eax + 1; /* 0x2400475E: inc eax */ 4594 _flag_k = FK_INC; 4595 ecx = eax; /* 0x2400475F: mov ecx, eax */ 4596 edx = ecx; /* 0x24004761: mov edx, ecx */ 4597 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004763: shr ecx, 2 */ 4598 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4599 ecx = ecx >> 2u; /* 0x24004763: shr ecx, 2 */ 4600 edi = ebx; /* 0x24004766: mov edi, ebx */ 4601 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004768: 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; } 4602 ecx = edx; /* 0x2400476A: mov ecx, edx */ 4603 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4605 ebx = ebx + eax; /* 0x2400476C: add ebx, eax */ 4606 _flag_k = FK_ADD; 4607 eax = MEM32(ebp + 0x8); /* 0x2400476E: mov eax, dword ptr [ebp + 8] */ 4608 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4609 ecx = ecx & 3; /* 0x24004771: and ecx, 3 */ 4610 _cf = 0; 4611 _flag_k = FK_TEST; 4612 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004774: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4614 eax = eax + 1; /* 0x24004776: inc eax */ 4615 _flag_k = FK_INC; 4616 RECOMP_BACKEDGE(); 4617 goto L_24004706; /* 0x24004777: jmp 0x24004706 */ 4618 L_24004779: 4619 PUSH32(esp, ecx); /* 0x24004779: push ecx */ 4620 RECOMP_ICALL(0x240097F2u); /* 0x2400477A: call 0x240097f2 */ /* not lifted */ 4621 RECOMP_FLAGS_IN(); 4622 ecx = MEM32(ebp + (-0xC)); /* 0x2400477F: mov ecx, dword ptr [ebp - 0xc] */ 4623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4625 esp = esp + 4; /* 0x24004782: add esp, 4 */ 4626 _flag_k = FK_ADD; 4627 edi = POP32_VAL(esp); /* 0x24004785: pop edi */ 4628 esi = POP32_VAL(esp); /* 0x24004786: pop esi */ 4629 eax = ebx; /* 0x24004787: mov eax, ebx */ 4630 ebx = POP32_VAL(esp); /* 0x24004789: pop ebx */ 4631 MEM32(FS_BASE + (0)) = ecx; /* 0x2400478A: mov dword ptr fs:[0], ecx */ 4632 esp = ebp; /* 0x24004791: mov esp, ebp */ 4633 ebp = POP32_VAL(esp); /* 0x24004793: pop ebp */ 4634 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24004794: ret 4 */ 4635 RECOMP_REGS_OUT(); 4636 } 4637 4638 void sub_240047A0(void) { 4639 int _fpu_cmp = 0; 4640 uint32_t _cf = 0; 4641 int _df = 1; 4642 uint32_t _flag_k = FK_NONE; 4643 uint32_t _flag_a = 0, _flag_b = 0; 4644 uint32_t _itail_tgt = 0; 4645 RECOMP_REGS_LOCALS 4646 RECOMP_ENTER(0x240047A0u); 4647 4648 L_240047A0: 4649 PUSH32(esp, ebp); /* 0x240047A0: push ebp */ 4650 ebp = esp; /* 0x240047A1: mov ebp, esp */ 4651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4653 esp = esp - 0xCu; /* 0x240047A3: sub esp, 0xc */ 4654 _flag_k = FK_CMP; 4655 PUSH32(esp, ebx); /* 0x240047A6: push ebx */ 4656 PUSH32(esp, esi); /* 0x240047A7: push esi */ 4657 PUSH32(esp, edi); /* 0x240047A8: push edi */ 4658 edi = ecx; /* 0x240047A9: mov edi, ecx */ 4659 ecx = MEM32(ebp + 0x8); /* 0x240047AB: mov ecx, dword ptr [ebp + 8] */ 4660 eax = MEM32(edi); /* 0x240047AE: mov eax, dword ptr [edi] */ 4661 PUSH32(esp, ecx); /* 0x240047B0: push ecx */ 4662 ecx = edi; /* 0x240047B1: mov ecx, edi */ 4663 MEM32(ebp + (-0xC)) = edi; /* 0x240047B3: mov dword ptr [ebp - 0xc], edi */ 4664 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x240047B6: call dword ptr [eax + 0x18] */ 4665 RECOMP_FLAGS_IN(); 4666 MEM32(eax) = 1; /* 0x240047B9: mov dword ptr [eax], 1 */ 4667 edx = MEM32(edi + 0x34); /* 0x240047BF: mov edx, dword ptr [edi + 0x34] */ 4668 /* test edx, edx */ /* 0x240047C2: test edx, edx */ 4669 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4670 _cf = 0; 4671 _flag_k = FK_TEST; 4672 if (TEST_NZ(_flag_a, _flag_b)) goto L_240047CA; /* 0x240047C4: jne 0x240047ca */ 4673 L_240047C6: 4674 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4675 ecx = 0; /* 0x240047C6: xor ecx, ecx */ 4676 _cf = 0; 4677 _flag_k = FK_TEST; 4678 goto L_240047D2; /* 0x240047C8: jmp 0x240047d2 */ 4679 L_240047CA: 4680 ecx = MEM32(edi + 0x38); /* 0x240047CA: mov ecx, dword ptr [edi + 0x38] */ 4681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4683 ecx = ecx - edx; /* 0x240047CD: sub ecx, edx */ 4684 _flag_k = FK_CMP; 4685 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240047CF: sar ecx, 2 */ 4686 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4687 ecx = (uint32_t)((int32_t)ecx >> 2u); 4688 L_240047D2: 4689 edx = eax + 0x4; /* 0x240047D2: lea edx, [eax + 4] */ 4690 MEM32(ebp + 0x8) = edx; /* 0x240047D5: mov dword ptr [ebp + 8], edx */ 4691 MEM32(edx) = ecx; /* 0x240047D8: mov dword ptr [edx], ecx */ 4692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4693 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4694 eax = eax + 8; /* 0x240047DA: add eax, 8 */ 4695 _flag_k = FK_ADD; 4696 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4697 ebx = 0; /* 0x240047DD: xor ebx, ebx */ 4698 _cf = 0; 4699 _flag_k = FK_TEST; 4700 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4701 edx = 0; /* 0x240047DF: xor edx, edx */ 4702 _cf = 0; 4703 _flag_k = FK_TEST; 4704 L_240047E1: 4705 ecx = MEM32(edi + 0x34); /* 0x240047E1: mov ecx, dword ptr [edi + 0x34] */ 4706 /* test ecx, ecx */ /* 0x240047E4: test ecx, ecx */ 4707 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4708 _cf = 0; 4709 _flag_k = FK_TEST; 4710 if (TEST_Z(_flag_a, _flag_b)) goto L_2400489E; /* 0x240047E6: je 0x2400489e */ 4711 L_240047EC: 4712 esi = MEM32(edi + 0x38); /* 0x240047EC: mov esi, dword ptr [edi + 0x38] */ 4713 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 4714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4715 esi = esi - ecx; /* 0x240047EF: sub esi, ecx */ 4716 _flag_k = FK_CMP; 4717 if (2u) _cf = (((esi) >> 1) & 1u); /* 0x240047F1: sar esi, 2 */ 4718 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4719 esi = (uint32_t)((int32_t)esi >> 2u); 4720 /* cmp edx, esi */ /* 0x240047F4: cmp edx, esi */ 4721 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4723 _flag_k = FK_CMP; 4724 if (CMP_AE(_flag_a, _flag_b)) goto L_24004890; /* 0x240047F6: jae 0x24004890 */ 4725 L_240047FC: 4726 esi = MEM32(ecx + edx * 4); /* 0x240047FC: mov esi, dword ptr [ecx + edx*4] */ 4727 /* test esi, esi */ /* 0x240047FF: test esi, esi */ 4728 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4729 _cf = 0; 4730 _flag_k = FK_TEST; 4731 MEM32(ebp + (-0x4)) = esi; /* 0x24004801: mov dword ptr [ebp - 4], esi */ 4732 if (TEST_Z(_flag_a, _flag_b)) goto L_2400488A; /* 0x24004804: je 0x2400488a */ 4733 L_2400480A: 4734 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4735 ebx = ebx + 1; /* 0x2400480A: inc ebx */ 4736 _flag_k = FK_INC; 4737 /* cmp edx, 0x80u */ /* 0x2400480B: cmp edx, 0x80 */ 4738 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x80u); 4739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4740 _flag_k = FK_CMP; 4741 MEM32(ebp + (-0x8)) = ebx; /* 0x24004811: mov dword ptr [ebp - 8], ebx */ 4742 if (CMP_GE(_flag_a, _flag_b)) goto L_2400481B; /* 0x24004814: jge 0x2400481b */ 4743 L_24004816: 4744 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x24004816: mov byte ptr [eax], dl */ 4745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4746 eax = eax + 1; /* 0x24004818: inc eax */ 4747 _flag_k = FK_INC; 4748 goto L_24004853; /* 0x24004819: jmp 0x24004853 */ 4749 L_2400481B: 4750 /* cmp edx, 0x4000u */ /* 0x2400481B: cmp edx, 0x4000 */ 4751 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x4000u); 4752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4753 _flag_k = FK_CMP; 4754 ecx = edx; /* 0x24004821: mov ecx, edx */ 4755 if (CMP_GE(_flag_a, _flag_b)) goto L_24004835; /* 0x24004823: jge 0x24004835 */ 4756 L_24004825: 4757 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x24004825: sar ecx, 8 */ 4758 if (8u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 8u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4759 ecx = (uint32_t)((int32_t)ecx >> 8u); 4760 _flag_a = (uint32_t)((LO8(ecx) | 0x80u)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 0x80u)) << 24; 4761 SET_LO8(ecx, LO8(ecx) | 0x80u); /* 0x24004828: or cl, 0x80 */ 4762 _cf = 0; 4763 _flag_k = FK_NARROW(FK_TEST, 24); 4764 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2400482B: mov byte ptr [eax], cl */ 4765 MEM8(eax + 0x1) = (uint8_t)(LO8(edx)); /* 0x2400482D: mov byte ptr [eax + 1], dl */ 4766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4768 eax = eax + 2; /* 0x24004830: add eax, 2 */ 4769 _flag_k = FK_ADD; 4770 goto L_24004853; /* 0x24004833: jmp 0x24004853 */ 4771 L_24004835: 4772 if (24u) _cf = (((ecx) >> 23) & 1u); /* 0x24004835: sar ecx, 0x18 */ 4773 if (24u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 24u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4774 ecx = (uint32_t)((int32_t)ecx >> 24u); 4775 _flag_a = (uint32_t)((LO8(ecx) | 0xC0u)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 0xC0u)) << 24; 4776 SET_LO8(ecx, LO8(ecx) | 0xC0u); /* 0x24004838: or cl, 0xc0 */ 4777 _cf = 0; 4778 _flag_k = FK_NARROW(FK_TEST, 24); 4779 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2400483B: mov byte ptr [eax], cl */ 4780 ecx = edx; /* 0x2400483D: mov ecx, edx */ 4781 if (16u) _cf = (((ecx) >> 15) & 1u); /* 0x2400483F: sar ecx, 0x10 */ 4782 if (16u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 16u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4783 ecx = (uint32_t)((int32_t)ecx >> 16u); 4784 MEM8(eax + 0x1) = (uint8_t)(LO8(ecx)); /* 0x24004842: mov byte ptr [eax + 1], cl */ 4785 ecx = edx; /* 0x24004845: mov ecx, edx */ 4786 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x24004847: sar ecx, 8 */ 4787 if (8u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 8u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4788 ecx = (uint32_t)((int32_t)ecx >> 8u); 4789 MEM8(eax + 0x2) = (uint8_t)(LO8(ecx)); /* 0x2400484A: mov byte ptr [eax + 2], cl */ 4790 MEM8(eax + 0x3) = (uint8_t)(LO8(edx)); /* 0x2400484D: mov byte ptr [eax + 3], dl */ 4791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4792 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4793 eax = eax + 4; /* 0x24004850: add eax, 4 */ 4794 _flag_k = FK_ADD; 4795 L_24004853: 4796 ecx = MEM32(esi); /* 0x24004853: mov ecx, dword ptr [esi] */ 4797 MEM32(eax) = ecx; /* 0x24004855: mov dword ptr [eax], ecx */ 4798 ecx = MEM32(esi + 0xC); /* 0x24004857: mov ecx, dword ptr [esi + 0xc] */ 4799 MEM32(eax + 0x4) = ecx; /* 0x2400485A: mov dword ptr [eax + 4], ecx */ 4800 ecx = MEM32(esi + 0x8); /* 0x2400485D: mov ecx, dword ptr [esi + 8] */ 4801 MEM32(eax + 0x8) = ecx; /* 0x24004860: mov dword ptr [eax + 8], ecx */ 4802 ecx = MEM32(esi + 0x8); /* 0x24004863: mov ecx, dword ptr [esi + 8] */ 4803 ebx = ecx; /* 0x24004866: mov ebx, ecx */ 4804 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004868: shr ecx, 2 */ 4805 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4806 ecx = ecx >> 2u; /* 0x24004868: shr ecx, 2 */ 4807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 4808 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4809 eax = eax + 0xCu; /* 0x2400486B: add eax, 0xc */ 4810 _flag_k = FK_ADD; 4811 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 4812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4813 esi = esi + 0x14u; /* 0x2400486E: add esi, 0x14 */ 4814 _flag_k = FK_ADD; 4815 edi = eax; /* 0x24004871: mov edi, eax */ 4816 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004873: 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; } 4817 ecx = ebx; /* 0x24004875: mov ecx, ebx */ 4818 ebx = MEM32(ebp + (-0x8)); /* 0x24004877: mov ebx, dword ptr [ebp - 8] */ 4819 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4820 ecx = ecx & 3; /* 0x2400487A: and ecx, 3 */ 4821 _cf = 0; 4822 _flag_k = FK_TEST; 4823 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2400487D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4824 ecx = MEM32(ebp + (-0x4)); /* 0x2400487F: mov ecx, dword ptr [ebp - 4] */ 4825 esi = MEM32(ecx + 0x8); /* 0x24004882: mov esi, dword ptr [ecx + 8] */ 4826 edi = MEM32(ebp + (-0xC)); /* 0x24004885: mov edi, dword ptr [ebp - 0xc] */ 4827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4829 eax = eax + esi; /* 0x24004888: add eax, esi */ 4830 _flag_k = FK_ADD; 4831 L_2400488A: 4832 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4833 edx = edx + 1; /* 0x2400488A: inc edx */ 4834 _flag_k = FK_INC; 4835 RECOMP_BACKEDGE(); 4836 goto L_240047E1; /* 0x2400488B: jmp 0x240047e1 */ 4837 L_24004890: 4838 edx = MEM32(ebp + 0x8); /* 0x24004890: mov edx, dword ptr [ebp + 8] */ 4839 edi = POP32_VAL(esp); /* 0x24004893: pop edi */ 4840 esi = POP32_VAL(esp); /* 0x24004894: pop esi */ 4841 MEM32(edx) = ebx; /* 0x24004895: mov dword ptr [edx], ebx */ 4842 ebx = POP32_VAL(esp); /* 0x24004897: pop ebx */ 4843 esp = ebp; /* 0x24004898: mov esp, ebp */ 4844 ebp = POP32_VAL(esp); /* 0x2400489A: pop ebp */ 4845 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2400489B: ret 4 */ 4846 L_2400489E: 4847 eax = MEM32(ebp + 0x8); /* 0x2400489E: mov eax, dword ptr [ebp + 8] */ 4848 edi = POP32_VAL(esp); /* 0x240048A1: pop edi */ 4849 esi = POP32_VAL(esp); /* 0x240048A2: pop esi */ 4850 MEM32(eax) = ebx; /* 0x240048A3: mov dword ptr [eax], ebx */ 4851 ebx = POP32_VAL(esp); /* 0x240048A5: pop ebx */ 4852 esp = ebp; /* 0x240048A6: mov esp, ebp */ 4853 ebp = POP32_VAL(esp); /* 0x240048A8: pop ebp */ 4854 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x240048A9: ret 4 */ 4855 RECOMP_REGS_OUT(); 4856 } 4857 4858 void sub_240047E1(void) { 4859 int _fpu_cmp = 0; 4860 uint32_t _cf = 0; 4861 int _df = 1; 4862 uint32_t _flag_k = FK_NONE; 4863 uint32_t _flag_a = 0, _flag_b = 0; 4864 uint32_t _itail_tgt = 0; 4865 RECOMP_REGS_LOCALS 4866 RECOMP_ENTER(0x240047E1u); 4867 4868 L_240047E1: 4869 ecx = MEM32(edi + 0x34); /* 0x240047E1: mov ecx, dword ptr [edi + 0x34] */ 4870 /* test ecx, ecx */ /* 0x240047E4: test ecx, ecx */ 4871 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4872 _cf = 0; 4873 _flag_k = FK_TEST; 4874 if (TEST_Z(_flag_a, _flag_b)) goto L_2400489E; /* 0x240047E6: je 0x2400489e */ 4875 L_240047EC: 4876 esi = MEM32(edi + 0x38); /* 0x240047EC: mov esi, dword ptr [edi + 0x38] */ 4877 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 4878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4879 esi = esi - ecx; /* 0x240047EF: sub esi, ecx */ 4880 _flag_k = FK_CMP; 4881 if (2u) _cf = (((esi) >> 1) & 1u); /* 0x240047F1: sar esi, 2 */ 4882 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4883 esi = (uint32_t)((int32_t)esi >> 2u); 4884 /* cmp edx, esi */ /* 0x240047F4: cmp edx, esi */ 4885 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4887 _flag_k = FK_CMP; 4888 if (CMP_AE(_flag_a, _flag_b)) goto L_24004890; /* 0x240047F6: jae 0x24004890 */ 4889 L_240047FC: 4890 esi = MEM32(ecx + edx * 4); /* 0x240047FC: mov esi, dword ptr [ecx + edx*4] */ 4891 /* test esi, esi */ /* 0x240047FF: test esi, esi */ 4892 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4893 _cf = 0; 4894 _flag_k = FK_TEST; 4895 MEM32(ebp + (-0x4)) = esi; /* 0x24004801: mov dword ptr [ebp - 4], esi */ 4896 if (TEST_Z(_flag_a, _flag_b)) goto L_2400488A; /* 0x24004804: je 0x2400488a */ 4897 L_2400480A: 4898 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 4899 ebx = ebx + 1; /* 0x2400480A: inc ebx */ 4900 _flag_k = FK_INC; 4901 /* cmp edx, 0x80u */ /* 0x2400480B: cmp edx, 0x80 */ 4902 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x80u); 4903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4904 _flag_k = FK_CMP; 4905 MEM32(ebp + (-0x8)) = ebx; /* 0x24004811: mov dword ptr [ebp - 8], ebx */ 4906 if (CMP_GE(_flag_a, _flag_b)) goto L_2400481B; /* 0x24004814: jge 0x2400481b */ 4907 L_24004816: 4908 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x24004816: mov byte ptr [eax], dl */ 4909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4910 eax = eax + 1; /* 0x24004818: inc eax */ 4911 _flag_k = FK_INC; 4912 goto L_24004853; /* 0x24004819: jmp 0x24004853 */ 4913 L_2400481B: 4914 /* cmp edx, 0x4000u */ /* 0x2400481B: cmp edx, 0x4000 */ 4915 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x4000u); 4916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4917 _flag_k = FK_CMP; 4918 ecx = edx; /* 0x24004821: mov ecx, edx */ 4919 if (CMP_GE(_flag_a, _flag_b)) goto L_24004835; /* 0x24004823: jge 0x24004835 */ 4920 L_24004825: 4921 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x24004825: sar ecx, 8 */ 4922 if (8u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 8u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4923 ecx = (uint32_t)((int32_t)ecx >> 8u); 4924 _flag_a = (uint32_t)((LO8(ecx) | 0x80u)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 0x80u)) << 24; 4925 SET_LO8(ecx, LO8(ecx) | 0x80u); /* 0x24004828: or cl, 0x80 */ 4926 _cf = 0; 4927 _flag_k = FK_NARROW(FK_TEST, 24); 4928 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2400482B: mov byte ptr [eax], cl */ 4929 MEM8(eax + 0x1) = (uint8_t)(LO8(edx)); /* 0x2400482D: mov byte ptr [eax + 1], dl */ 4930 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4932 eax = eax + 2; /* 0x24004830: add eax, 2 */ 4933 _flag_k = FK_ADD; 4934 goto L_24004853; /* 0x24004833: jmp 0x24004853 */ 4935 L_24004835: 4936 if (24u) _cf = (((ecx) >> 23) & 1u); /* 0x24004835: sar ecx, 0x18 */ 4937 if (24u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 24u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4938 ecx = (uint32_t)((int32_t)ecx >> 24u); 4939 _flag_a = (uint32_t)((LO8(ecx) | 0xC0u)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 0xC0u)) << 24; 4940 SET_LO8(ecx, LO8(ecx) | 0xC0u); /* 0x24004838: or cl, 0xc0 */ 4941 _cf = 0; 4942 _flag_k = FK_NARROW(FK_TEST, 24); 4943 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2400483B: mov byte ptr [eax], cl */ 4944 ecx = edx; /* 0x2400483D: mov ecx, edx */ 4945 if (16u) _cf = (((ecx) >> 15) & 1u); /* 0x2400483F: sar ecx, 0x10 */ 4946 if (16u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 16u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4947 ecx = (uint32_t)((int32_t)ecx >> 16u); 4948 MEM8(eax + 0x1) = (uint8_t)(LO8(ecx)); /* 0x24004842: mov byte ptr [eax + 1], cl */ 4949 ecx = edx; /* 0x24004845: mov ecx, edx */ 4950 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x24004847: sar ecx, 8 */ 4951 if (8u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 8u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4952 ecx = (uint32_t)((int32_t)ecx >> 8u); 4953 MEM8(eax + 0x2) = (uint8_t)(LO8(ecx)); /* 0x2400484A: mov byte ptr [eax + 2], cl */ 4954 MEM8(eax + 0x3) = (uint8_t)(LO8(edx)); /* 0x2400484D: mov byte ptr [eax + 3], dl */ 4955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4957 eax = eax + 4; /* 0x24004850: add eax, 4 */ 4958 _flag_k = FK_ADD; 4959 L_24004853: 4960 ecx = MEM32(esi); /* 0x24004853: mov ecx, dword ptr [esi] */ 4961 MEM32(eax) = ecx; /* 0x24004855: mov dword ptr [eax], ecx */ 4962 ecx = MEM32(esi + 0xC); /* 0x24004857: mov ecx, dword ptr [esi + 0xc] */ 4963 MEM32(eax + 0x4) = ecx; /* 0x2400485A: mov dword ptr [eax + 4], ecx */ 4964 ecx = MEM32(esi + 0x8); /* 0x2400485D: mov ecx, dword ptr [esi + 8] */ 4965 MEM32(eax + 0x8) = ecx; /* 0x24004860: mov dword ptr [eax + 8], ecx */ 4966 ecx = MEM32(esi + 0x8); /* 0x24004863: mov ecx, dword ptr [esi + 8] */ 4967 ebx = ecx; /* 0x24004866: mov ebx, ecx */ 4968 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004868: shr ecx, 2 */ 4969 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4970 ecx = ecx >> 2u; /* 0x24004868: shr ecx, 2 */ 4971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 4972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4973 eax = eax + 0xCu; /* 0x2400486B: add eax, 0xc */ 4974 _flag_k = FK_ADD; 4975 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 4976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4977 esi = esi + 0x14u; /* 0x2400486E: add esi, 0x14 */ 4978 _flag_k = FK_ADD; 4979 edi = eax; /* 0x24004871: mov edi, eax */ 4980 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004873: 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; } 4981 ecx = ebx; /* 0x24004875: mov ecx, ebx */ 4982 ebx = MEM32(ebp + (-0x8)); /* 0x24004877: mov ebx, dword ptr [ebp - 8] */ 4983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4984 ecx = ecx & 3; /* 0x2400487A: and ecx, 3 */ 4985 _cf = 0; 4986 _flag_k = FK_TEST; 4987 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2400487D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 4988 ecx = MEM32(ebp + (-0x4)); /* 0x2400487F: mov ecx, dword ptr [ebp - 4] */ 4989 esi = MEM32(ecx + 0x8); /* 0x24004882: mov esi, dword ptr [ecx + 8] */ 4990 edi = MEM32(ebp + (-0xC)); /* 0x24004885: mov edi, dword ptr [ebp - 0xc] */ 4991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4993 eax = eax + esi; /* 0x24004888: add eax, esi */ 4994 _flag_k = FK_ADD; 4995 L_2400488A: 4996 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4997 edx = edx + 1; /* 0x2400488A: inc edx */ 4998 _flag_k = FK_INC; 4999 RECOMP_BACKEDGE(); 5000 goto L_240047E1; /* 0x2400488B: jmp 0x240047e1 */ 5001 L_24004890: 5002 edx = MEM32(ebp + 0x8); /* 0x24004890: mov edx, dword ptr [ebp + 8] */ 5003 edi = POP32_VAL(esp); /* 0x24004893: pop edi */ 5004 esi = POP32_VAL(esp); /* 0x24004894: pop esi */ 5005 MEM32(edx) = ebx; /* 0x24004895: mov dword ptr [edx], ebx */ 5006 ebx = POP32_VAL(esp); /* 0x24004897: pop ebx */ 5007 esp = ebp; /* 0x24004898: mov esp, ebp */ 5008 ebp = POP32_VAL(esp); /* 0x2400489A: pop ebp */ 5009 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2400489B: ret 4 */ 5010 L_2400489E: 5011 eax = MEM32(ebp + 0x8); /* 0x2400489E: mov eax, dword ptr [ebp + 8] */ 5012 edi = POP32_VAL(esp); /* 0x240048A1: pop edi */ 5013 esi = POP32_VAL(esp); /* 0x240048A2: pop esi */ 5014 MEM32(eax) = ebx; /* 0x240048A3: mov dword ptr [eax], ebx */ 5015 ebx = POP32_VAL(esp); /* 0x240048A5: pop ebx */ 5016 esp = ebp; /* 0x240048A6: mov esp, ebp */ 5017 ebp = POP32_VAL(esp); /* 0x240048A8: pop ebp */ 5018 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x240048A9: ret 4 */ 5019 RECOMP_REGS_OUT(); 5020 } 5021 5022 void sub_24004853(void) { 5023 int _fpu_cmp = 0; 5024 uint32_t _cf = 0; 5025 int _df = 1; 5026 uint32_t _flag_k = FK_NONE; 5027 uint32_t _flag_a = 0, _flag_b = 0; 5028 uint32_t _itail_tgt = 0; 5029 RECOMP_REGS_LOCALS 5030 RECOMP_ENTER(0x24004853u); 5031 5032 goto L_24004853; 5033 L_240047E1: 5034 ecx = MEM32(edi + 0x34); /* 0x240047E1: mov ecx, dword ptr [edi + 0x34] */ 5035 /* test ecx, ecx */ /* 0x240047E4: test ecx, ecx */ 5036 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5037 _cf = 0; 5038 _flag_k = FK_TEST; 5039 if (TEST_Z(_flag_a, _flag_b)) goto L_2400489E; /* 0x240047E6: je 0x2400489e */ 5040 L_240047EC: 5041 esi = MEM32(edi + 0x38); /* 0x240047EC: mov esi, dword ptr [edi + 0x38] */ 5042 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 5043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5044 esi = esi - ecx; /* 0x240047EF: sub esi, ecx */ 5045 _flag_k = FK_CMP; 5046 if (2u) _cf = (((esi) >> 1) & 1u); /* 0x240047F1: sar esi, 2 */ 5047 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5048 esi = (uint32_t)((int32_t)esi >> 2u); 5049 /* cmp edx, esi */ /* 0x240047F4: cmp edx, esi */ 5050 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 5051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5052 _flag_k = FK_CMP; 5053 if (CMP_AE(_flag_a, _flag_b)) goto L_24004890; /* 0x240047F6: jae 0x24004890 */ 5054 L_240047FC: 5055 esi = MEM32(ecx + edx * 4); /* 0x240047FC: mov esi, dword ptr [ecx + edx*4] */ 5056 /* test esi, esi */ /* 0x240047FF: test esi, esi */ 5057 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5058 _cf = 0; 5059 _flag_k = FK_TEST; 5060 MEM32(ebp + (-0x4)) = esi; /* 0x24004801: mov dword ptr [ebp - 4], esi */ 5061 if (TEST_Z(_flag_a, _flag_b)) goto L_2400488A; /* 0x24004804: je 0x2400488a */ 5062 L_2400480A: 5063 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 5064 ebx = ebx + 1; /* 0x2400480A: inc ebx */ 5065 _flag_k = FK_INC; 5066 /* cmp edx, 0x80u */ /* 0x2400480B: cmp edx, 0x80 */ 5067 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x80u); 5068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5069 _flag_k = FK_CMP; 5070 MEM32(ebp + (-0x8)) = ebx; /* 0x24004811: mov dword ptr [ebp - 8], ebx */ 5071 if (CMP_GE(_flag_a, _flag_b)) goto L_2400481B; /* 0x24004814: jge 0x2400481b */ 5072 L_24004816: 5073 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x24004816: mov byte ptr [eax], dl */ 5074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5075 eax = eax + 1; /* 0x24004818: inc eax */ 5076 _flag_k = FK_INC; 5077 goto L_24004853; /* 0x24004819: jmp 0x24004853 */ 5078 L_2400481B: 5079 /* cmp edx, 0x4000u */ /* 0x2400481B: cmp edx, 0x4000 */ 5080 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x4000u); 5081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5082 _flag_k = FK_CMP; 5083 ecx = edx; /* 0x24004821: mov ecx, edx */ 5084 if (CMP_GE(_flag_a, _flag_b)) goto L_24004835; /* 0x24004823: jge 0x24004835 */ 5085 L_24004825: 5086 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x24004825: sar ecx, 8 */ 5087 if (8u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 8u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5088 ecx = (uint32_t)((int32_t)ecx >> 8u); 5089 _flag_a = (uint32_t)((LO8(ecx) | 0x80u)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 0x80u)) << 24; 5090 SET_LO8(ecx, LO8(ecx) | 0x80u); /* 0x24004828: or cl, 0x80 */ 5091 _cf = 0; 5092 _flag_k = FK_NARROW(FK_TEST, 24); 5093 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2400482B: mov byte ptr [eax], cl */ 5094 MEM8(eax + 0x1) = (uint8_t)(LO8(edx)); /* 0x2400482D: mov byte ptr [eax + 1], dl */ 5095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 5096 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5097 eax = eax + 2; /* 0x24004830: add eax, 2 */ 5098 _flag_k = FK_ADD; 5099 goto L_24004853; /* 0x24004833: jmp 0x24004853 */ 5100 L_24004835: 5101 if (24u) _cf = (((ecx) >> 23) & 1u); /* 0x24004835: sar ecx, 0x18 */ 5102 if (24u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 24u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5103 ecx = (uint32_t)((int32_t)ecx >> 24u); 5104 _flag_a = (uint32_t)((LO8(ecx) | 0xC0u)) << 24; _flag_b = (uint32_t)((LO8(ecx) | 0xC0u)) << 24; 5105 SET_LO8(ecx, LO8(ecx) | 0xC0u); /* 0x24004838: or cl, 0xc0 */ 5106 _cf = 0; 5107 _flag_k = FK_NARROW(FK_TEST, 24); 5108 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x2400483B: mov byte ptr [eax], cl */ 5109 ecx = edx; /* 0x2400483D: mov ecx, edx */ 5110 if (16u) _cf = (((ecx) >> 15) & 1u); /* 0x2400483F: sar ecx, 0x10 */ 5111 if (16u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 16u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5112 ecx = (uint32_t)((int32_t)ecx >> 16u); 5113 MEM8(eax + 0x1) = (uint8_t)(LO8(ecx)); /* 0x24004842: mov byte ptr [eax + 1], cl */ 5114 ecx = edx; /* 0x24004845: mov ecx, edx */ 5115 if (8u) _cf = (((ecx) >> 7) & 1u); /* 0x24004847: sar ecx, 8 */ 5116 if (8u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 8u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5117 ecx = (uint32_t)((int32_t)ecx >> 8u); 5118 MEM8(eax + 0x2) = (uint8_t)(LO8(ecx)); /* 0x2400484A: mov byte ptr [eax + 2], cl */ 5119 MEM8(eax + 0x3) = (uint8_t)(LO8(edx)); /* 0x2400484D: mov byte ptr [eax + 3], dl */ 5120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5122 eax = eax + 4; /* 0x24004850: add eax, 4 */ 5123 _flag_k = FK_ADD; 5124 L_24004853: 5125 ecx = MEM32(esi); /* 0x24004853: mov ecx, dword ptr [esi] */ 5126 MEM32(eax) = ecx; /* 0x24004855: mov dword ptr [eax], ecx */ 5127 ecx = MEM32(esi + 0xC); /* 0x24004857: mov ecx, dword ptr [esi + 0xc] */ 5128 MEM32(eax + 0x4) = ecx; /* 0x2400485A: mov dword ptr [eax + 4], ecx */ 5129 ecx = MEM32(esi + 0x8); /* 0x2400485D: mov ecx, dword ptr [esi + 8] */ 5130 MEM32(eax + 0x8) = ecx; /* 0x24004860: mov dword ptr [eax + 8], ecx */ 5131 ecx = MEM32(esi + 0x8); /* 0x24004863: mov ecx, dword ptr [esi + 8] */ 5132 ebx = ecx; /* 0x24004866: mov ebx, ecx */ 5133 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004868: shr ecx, 2 */ 5134 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5135 ecx = ecx >> 2u; /* 0x24004868: shr ecx, 2 */ 5136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 5137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5138 eax = eax + 0xCu; /* 0x2400486B: add eax, 0xc */ 5139 _flag_k = FK_ADD; 5140 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x14u); 5141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5142 esi = esi + 0x14u; /* 0x2400486E: add esi, 0x14 */ 5143 _flag_k = FK_ADD; 5144 edi = eax; /* 0x24004871: mov edi, eax */ 5145 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004873: 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; } 5146 ecx = ebx; /* 0x24004875: mov ecx, ebx */ 5147 ebx = MEM32(ebp + (-0x8)); /* 0x24004877: mov ebx, dword ptr [ebp - 8] */ 5148 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5149 ecx = ecx & 3; /* 0x2400487A: and ecx, 3 */ 5150 _cf = 0; 5151 _flag_k = FK_TEST; 5152 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x2400487D: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5153 ecx = MEM32(ebp + (-0x4)); /* 0x2400487F: mov ecx, dword ptr [ebp - 4] */ 5154 esi = MEM32(ecx + 0x8); /* 0x24004882: mov esi, dword ptr [ecx + 8] */ 5155 edi = MEM32(ebp + (-0xC)); /* 0x24004885: mov edi, dword ptr [ebp - 0xc] */ 5156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5158 eax = eax + esi; /* 0x24004888: add eax, esi */ 5159 _flag_k = FK_ADD; 5160 L_2400488A: 5161 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5162 edx = edx + 1; /* 0x2400488A: inc edx */ 5163 _flag_k = FK_INC; 5164 RECOMP_BACKEDGE(); 5165 goto L_240047E1; /* 0x2400488B: jmp 0x240047e1 */ 5166 L_24004890: 5167 edx = MEM32(ebp + 0x8); /* 0x24004890: mov edx, dword ptr [ebp + 8] */ 5168 edi = POP32_VAL(esp); /* 0x24004893: pop edi */ 5169 esi = POP32_VAL(esp); /* 0x24004894: pop esi */ 5170 MEM32(edx) = ebx; /* 0x24004895: mov dword ptr [edx], ebx */ 5171 ebx = POP32_VAL(esp); /* 0x24004897: pop ebx */ 5172 esp = ebp; /* 0x24004898: mov esp, ebp */ 5173 ebp = POP32_VAL(esp); /* 0x2400489A: pop ebp */ 5174 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2400489B: ret 4 */ 5175 L_2400489E: 5176 eax = MEM32(ebp + 0x8); /* 0x2400489E: mov eax, dword ptr [ebp + 8] */ 5177 edi = POP32_VAL(esp); /* 0x240048A1: pop edi */ 5178 esi = POP32_VAL(esp); /* 0x240048A2: pop esi */ 5179 MEM32(eax) = ebx; /* 0x240048A3: mov dword ptr [eax], ebx */ 5180 ebx = POP32_VAL(esp); /* 0x240048A5: pop ebx */ 5181 esp = ebp; /* 0x240048A6: mov esp, ebp */ 5182 ebp = POP32_VAL(esp); /* 0x240048A8: pop ebp */ 5183 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x240048A9: ret 4 */ 5184 RECOMP_REGS_OUT(); 5185 } 5186 5187 /* Empty REP copies must not translate the one-past-end guest pointers. */ 5188 void sub_240048B0(void) { 5189 int _fpu_cmp = 0; 5190 uint32_t _cf = 0; 5191 int _df = 1; 5192 uint32_t _flag_k = FK_NONE; 5193 uint32_t _flag_a = 0, _flag_b = 0; 5194 uint32_t _itail_tgt = 0; 5195 RECOMP_REGS_LOCALS 5196 RECOMP_ENTER(0x240048B0u); 5197 5198 L_240048B0: 5199 PUSH32(esp, ebp); /* 0x240048B0: push ebp */ 5200 ebp = esp; /* 0x240048B1: mov ebp, esp */ 5201 PUSH32(esp, 0xFFFFFFFFu); /* 0x240048B3: push -1 */ 5202 PUSH32(esp, 0x24009D74u); /* 0x240048B5: push 0x24009d74 */ 5203 eax = MEM32(FS_BASE + (0)); /* 0x240048BA: mov eax, dword ptr fs:[0] */ 5204 PUSH32(esp, eax); /* 0x240048C0: push eax */ 5205 MEM32(FS_BASE + (0)) = esp; /* 0x240048C1: mov dword ptr fs:[0], esp */ 5206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 5207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5208 esp = esp - 0x4Cu; /* 0x240048C8: sub esp, 0x4c */ 5209 _flag_k = FK_CMP; 5210 PUSH32(esp, ebx); /* 0x240048CB: push ebx */ 5211 PUSH32(esp, esi); /* 0x240048CC: push esi */ 5212 ebx = ecx; /* 0x240048CD: mov ebx, ecx */ 5213 PUSH32(esp, edi); /* 0x240048CF: push edi */ 5214 MEM32(ebp + (-0x18)) = ebx; /* 0x240048D0: mov dword ptr [ebp - 0x18], ebx */ 5215 RECOMP_ICALL(0x24003200u); /* 0x240048D3: call 0x24003200 */ /* not lifted */ 5216 RECOMP_FLAGS_IN(); 5217 esi = MEM32(ebp + 0xC); /* 0x240048D8: mov esi, dword ptr [ebp + 0xc] */ 5218 edi = MEM32(ebp + 0x8); /* 0x240048DB: mov edi, dword ptr [ebp + 8] */ 5219 eax = MEM32(ebx); /* 0x240048DE: mov eax, dword ptr [ebx] */ 5220 PUSH32(esp, esi); /* 0x240048E0: push esi */ 5221 PUSH32(esp, edi); /* 0x240048E1: push edi */ 5222 ecx = ebx; /* 0x240048E2: mov ecx, ebx */ 5223 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x240048E4: call dword ptr [eax + 0x14] */ 5224 RECOMP_FLAGS_IN(); 5225 /* test eax, eax */ /* 0x240048E7: test eax, eax */ 5226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5227 _cf = 0; 5228 _flag_k = FK_TEST; 5229 if (TEST_NS(_flag_a, _flag_b)) goto L_24004961; /* 0x240048E9: jge 0x24004961 */ 5230 L_240048EB: 5231 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x240048EB: mov cl, byte ptr [ebp + 0xf] */ 5232 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(ecx)); /* 0x240048EE: mov byte ptr [ebp - 0x3c], cl */ 5233 PUSH32(esp, 0); /* 0x240048F1: push 0 */ 5234 ecx = ebp + (-0x3C); /* 0x240048F3: lea ecx, [ebp - 0x3c] */ 5235 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x240048F6: call dword ptr [0x2400b020] */ 5236 RECOMP_FLAGS_IN(); 5237 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5238 ecx = ecx | 0xFFFFFFFFu; /* 0x240048FC: or ecx, 0xffffffff */ 5239 _cf = 0; 5240 _flag_k = FK_TEST; 5241 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5242 eax = 0; /* 0x240048FF: xor eax, eax */ 5243 _cf = 0; 5244 _flag_k = FK_TEST; 5245 edi = 0x2400E0F8u; /* 0x24004901: mov edi, 0x2400e0f8 */ 5246 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004906: repne scasb al, byte ptr es:[edi] */ 5247 ecx = ~ecx; /* 0x24004908: not ecx */ 5248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5249 ecx = ecx - 1; /* 0x2400490A: dec ecx */ 5250 _flag_k = FK_DEC; 5251 PUSH32(esp, ecx); /* 0x2400490B: push ecx */ 5252 PUSH32(esp, 0x2400E0F8u); /* 0x2400490C: push 0x2400e0f8 */ 5253 ecx = ebp + (-0x3C); /* 0x24004911: lea ecx, [ebp - 0x3c] */ 5254 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x24004914: call dword ptr [0x2400b05c] */ 5255 RECOMP_FLAGS_IN(); 5256 edx = ebp + 0xC; /* 0x2400491A: lea edx, [ebp + 0xc] */ 5257 PUSH32(esp, edx); /* 0x2400491D: push edx */ 5258 ecx = ebp + (-0x58); /* 0x2400491E: lea ecx, [ebp - 0x58] */ 5259 MEM32(ebp + (-0x4)) = 0; /* 0x24004921: mov dword ptr [ebp - 4], 0 */ 5260 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004928: mov dword ptr [ebp + 0xc], 0x2400e294 */ 5261 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x2400492F: call dword ptr [0x2400b098] */ 5262 RECOMP_FLAGS_IN(); 5263 eax = ebp + (-0x3C); /* 0x24004935: lea eax, [ebp - 0x3c] */ 5264 PUSH32(esp, eax); /* 0x24004938: push eax */ 5265 ecx = ebp + (-0x4C); /* 0x24004939: lea ecx, [ebp - 0x4c] */ 5266 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2400493C: mov byte ptr [ebp - 4], 1 */ 5267 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004940: call dword ptr [0x2400b058] */ 5268 RECOMP_FLAGS_IN(); 5269 ecx = MEM32(0x2400B054); /* 0x24004946: mov ecx, dword ptr [0x2400b054] */ 5270 PUSH32(esp, 0x2400B560u); /* 0x2400494C: push 0x2400b560 */ 5271 edx = ebp + (-0x58); /* 0x24004951: lea edx, [ebp - 0x58] */ 5272 PUSH32(esp, edx); /* 0x24004954: push edx */ 5273 MEM32(ebp + (-0x58)) = ecx; /* 0x24004955: mov dword ptr [ebp - 0x58], ecx */ 5274 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x24004958: mov byte ptr [ebp - 4], 0 */ 5275 RECOMP_ICALL(0x24009988u); /* 0x2400495C: call 0x24009988 */ /* not lifted */ 5276 RECOMP_FLAGS_IN(); 5277 L_24004961: 5278 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5280 edi = edi + eax; /* 0x24004961: add edi, eax */ 5281 _flag_k = FK_ADD; 5282 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5284 esi = esi - eax; /* 0x24004963: sub esi, eax */ 5285 _flag_k = FK_CMP; 5286 eax = MEM32(ebx); /* 0x24004965: mov eax, dword ptr [ebx] */ 5287 ecx = ebx; /* 0x24004967: mov ecx, ebx */ 5288 MEM32(ebp + 0x8) = 0; /* 0x24004969: mov dword ptr [ebp + 8], 0 */ 5289 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x24004970: call dword ptr [eax + 0x20] */ 5290 RECOMP_FLAGS_IN(); 5291 edx = MEM32(eax + 0x10); /* 0x24004973: mov edx, dword ptr [eax + 0x10] */ 5292 eax = MEM32(ebx + 0x34); /* 0x24004976: mov eax, dword ptr [ebx + 0x34] */ 5293 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x30u); 5294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5295 ebx = ebx + 0x30u; /* 0x24004979: add ebx, 0x30 */ 5296 _flag_k = FK_ADD; 5297 /* test eax, eax */ /* 0x2400497C: test eax, eax */ 5298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5299 _cf = 0; 5300 _flag_k = FK_TEST; 5301 MEM32(ebp + 0xC) = edx; /* 0x2400497E: mov dword ptr [ebp + 0xc], edx */ 5302 if (TEST_NZ(_flag_a, _flag_b)) goto L_24004987; /* 0x24004981: jne 0x24004987 */ 5303 L_24004983: 5304 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5305 ecx = 0; /* 0x24004983: xor ecx, ecx */ 5306 _cf = 0; 5307 _flag_k = FK_TEST; 5308 goto L_2400498F; /* 0x24004985: jmp 0x2400498f */ 5309 L_24004987: 5310 ecx = MEM32(ebx + 0x8); /* 0x24004987: mov ecx, dword ptr [ebx + 8] */ 5311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5313 ecx = ecx - eax; /* 0x2400498A: sub ecx, eax */ 5314 _flag_k = FK_CMP; 5315 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2400498C: sar ecx, 2 */ 5316 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5317 ecx = (uint32_t)((int32_t)ecx >> 2u); 5318 L_2400498F: 5319 /* cmp ecx, edx */ /* 0x2400498F: cmp ecx, edx */ 5320 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5322 _flag_k = FK_CMP; 5323 if (CMP_AE(_flag_a, _flag_b)) goto L_240049B7; /* 0x24004991: jae 0x240049b7 */ 5324 L_24004993: 5325 ecx = MEM32(ebx + 0x8); /* 0x24004993: mov ecx, dword ptr [ebx + 8] */ 5326 edx = ebp + 0x8; /* 0x24004996: lea edx, [ebp + 8] */ 5327 MEM32(ebp + (-0x1C)) = ecx; /* 0x24004999: mov dword ptr [ebp - 0x1c], ecx */ 5328 PUSH32(esp, edx); /* 0x2400499C: push edx */ 5329 ecx = ebx; /* 0x2400499D: mov ecx, ebx */ 5330 RECOMP_ICALL(0x24005150u); /* 0x2400499F: call 0x24005150 */ /* not lifted */ 5331 RECOMP_FLAGS_IN(); 5332 ecx = MEM32(ebp + 0xC); /* 0x240049A4: mov ecx, dword ptr [ebp + 0xc] */ 5333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5335 ecx = ecx - eax; /* 0x240049A7: sub ecx, eax */ 5336 _flag_k = FK_CMP; 5337 eax = MEM32(ebp + (-0x1C)); /* 0x240049A9: mov eax, dword ptr [ebp - 0x1c] */ 5338 PUSH32(esp, ecx); /* 0x240049AC: push ecx */ 5339 PUSH32(esp, eax); /* 0x240049AD: push eax */ 5340 ecx = ebx; /* 0x240049AE: mov ecx, ebx */ 5341 RECOMP_ICALL(0x24005260u); /* 0x240049B0: call 0x24005260 */ /* not lifted */ 5342 RECOMP_FLAGS_IN(); 5343 goto L_240049D7; /* 0x240049B5: jmp 0x240049d7 */ 5344 L_240049B7: 5345 ecx = ebx; /* 0x240049B7: mov ecx, ebx */ 5346 RECOMP_ICALL(0x24005150u); /* 0x240049B9: call 0x24005150 */ /* not lifted */ 5347 RECOMP_FLAGS_IN(); 5348 edx = MEM32(ebp + 0xC); /* 0x240049BE: mov edx, dword ptr [ebp + 0xc] */ 5349 /* cmp edx, eax */ /* 0x240049C1: cmp edx, eax */ 5350 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5352 _flag_k = FK_CMP; 5353 if (CMP_AE(_flag_a, _flag_b)) goto L_240049D7; /* 0x240049C3: jae 0x240049d7 */ 5354 L_240049C5: 5355 eax = MEM32(ebx + 0x8); /* 0x240049C5: mov eax, dword ptr [ebx + 8] */ 5356 ecx = MEM32(ebx + 0x4); /* 0x240049C8: mov ecx, dword ptr [ebx + 4] */ 5357 ecx = ecx + edx * 4; /* 0x240049CB: lea ecx, [ecx + edx*4] */ 5358 PUSH32(esp, eax); /* 0x240049CE: push eax */ 5359 PUSH32(esp, ecx); /* 0x240049CF: push ecx */ 5360 ecx = ebx; /* 0x240049D0: mov ecx, ebx */ 5361 RECOMP_ICALL(0x24005490u); /* 0x240049D2: call 0x24005490 */ /* not lifted */ 5362 RECOMP_FLAGS_IN(); 5363 L_240049D7: 5364 /* cmp esi, 8 */ /* 0x240049D7: cmp esi, 8 */ 5365 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 5366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5367 _flag_k = FK_CMP; 5368 if (CMP_AE(_flag_a, _flag_b)) goto L_24004A52; /* 0x240049DA: jae 0x24004a52 */ 5369 L_240049DC: 5370 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x240049DC: mov dl, byte ptr [ebp + 0xf] */ 5371 PUSH32(esp, 0); /* 0x240049DF: push 0 */ 5372 ecx = ebp + (-0x3C); /* 0x240049E1: lea ecx, [ebp - 0x3c] */ 5373 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(edx)); /* 0x240049E4: mov byte ptr [ebp - 0x3c], dl */ 5374 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x240049E7: call dword ptr [0x2400b020] */ 5375 RECOMP_FLAGS_IN(); 5376 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5377 ecx = ecx | 0xFFFFFFFFu; /* 0x240049ED: or ecx, 0xffffffff */ 5378 _cf = 0; 5379 _flag_k = FK_TEST; 5380 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5381 eax = 0; /* 0x240049F0: xor eax, eax */ 5382 _cf = 0; 5383 _flag_k = FK_TEST; 5384 edi = 0x2400E0E8u; /* 0x240049F2: mov edi, 0x2400e0e8 */ 5385 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x240049F7: repne scasb al, byte ptr es:[edi] */ 5386 ecx = ~ecx; /* 0x240049F9: not ecx */ 5387 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5388 ecx = ecx - 1; /* 0x240049FB: dec ecx */ 5389 _flag_k = FK_DEC; 5390 PUSH32(esp, ecx); /* 0x240049FC: push ecx */ 5391 PUSH32(esp, 0x2400E0E8u); /* 0x240049FD: push 0x2400e0e8 */ 5392 ecx = ebp + (-0x3C); /* 0x24004A02: lea ecx, [ebp - 0x3c] */ 5393 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x24004A05: call dword ptr [0x2400b05c] */ 5394 RECOMP_FLAGS_IN(); 5395 eax = ebp + 0xC; /* 0x24004A0B: lea eax, [ebp + 0xc] */ 5396 PUSH32(esp, eax); /* 0x24004A0E: push eax */ 5397 ecx = ebp + (-0x58); /* 0x24004A0F: lea ecx, [ebp - 0x58] */ 5398 MEM32(ebp + (-0x4)) = 2; /* 0x24004A12: mov dword ptr [ebp - 4], 2 */ 5399 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004A19: mov dword ptr [ebp + 0xc], 0x2400e294 */ 5400 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24004A20: call dword ptr [0x2400b098] */ 5401 RECOMP_FLAGS_IN(); 5402 ecx = ebp + (-0x3C); /* 0x24004A26: lea ecx, [ebp - 0x3c] */ 5403 PUSH32(esp, ecx); /* 0x24004A29: push ecx */ 5404 ecx = ebp + (-0x4C); /* 0x24004A2A: lea ecx, [ebp - 0x4c] */ 5405 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x24004A2D: mov byte ptr [ebp - 4], 3 */ 5406 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004A31: call dword ptr [0x2400b058] */ 5407 RECOMP_FLAGS_IN(); 5408 edx = MEM32(0x2400B054); /* 0x24004A37: mov edx, dword ptr [0x2400b054] */ 5409 PUSH32(esp, 0x2400B560u); /* 0x24004A3D: push 0x2400b560 */ 5410 eax = ebp + (-0x58); /* 0x24004A42: lea eax, [ebp - 0x58] */ 5411 PUSH32(esp, eax); /* 0x24004A45: push eax */ 5412 MEM32(ebp + (-0x58)) = edx; /* 0x24004A46: mov dword ptr [ebp - 0x58], edx */ 5413 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x24004A49: mov byte ptr [ebp - 4], 2 */ 5414 RECOMP_ICALL(0x24009988u); /* 0x24004A4D: call 0x24009988 */ /* not lifted */ 5415 RECOMP_FLAGS_IN(); 5416 L_24004A52: 5417 eax = MEM32(edi + 0x4); /* 0x24004A52: mov eax, dword ptr [edi + 4] */ 5418 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 5419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5420 edi = edi + 8; /* 0x24004A55: add edi, 8 */ 5421 _flag_k = FK_ADD; 5422 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 5423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5424 esi = esi - 8; /* 0x24004A58: sub esi, 8 */ 5425 _flag_k = FK_CMP; 5426 /* test eax, eax */ /* 0x24004A5B: test eax, eax */ 5427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5428 _cf = 0; 5429 _flag_k = FK_TEST; 5430 MEM32(ebp + (-0x2C)) = eax; /* 0x24004A5D: mov dword ptr [ebp - 0x2c], eax */ 5431 MEM32(ebp + (-0x1C)) = 0; /* 0x24004A60: mov dword ptr [ebp - 0x1c], 0 */ 5432 if (TEST_Z(_flag_a, _flag_b)) goto L_24004CA4; /* 0x24004A67: jbe 0x24004ca4 */ 5433 L_24004A6D: 5434 goto L_24004A75; /* 0x24004A6D: jmp 0x24004a75 */ 5435 L_24004A6F: 5436 edi = MEM32(ebp + (-0x10)); /* 0x24004A6F: mov edi, dword ptr [ebp - 0x10] */ 5437 esi = MEM32(ebp + 0xC); /* 0x24004A72: mov esi, dword ptr [ebp + 0xc] */ 5438 L_24004A75: 5439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5440 eax = 0; /* 0x24004A75: xor eax, eax */ 5441 _cf = 0; 5442 _flag_k = FK_TEST; 5443 SET_LO8(eax, MEM8(edi)); /* 0x24004A77: mov al, byte ptr [edi] */ 5444 /* test LO8(eax), 0x80u */ /* 0x24004A79: test al, 0x80 */ 5445 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x80u) << 24; 5446 _cf = 0; 5447 _flag_k = FK_NARROW(FK_TEST, 24); 5448 if (TEST_NZ(_flag_a, _flag_b)) goto L_24004A92; /* 0x24004A7B: jne 0x24004a92 */ 5449 L_24004A7D: 5450 /* cmp esi, 1 */ /* 0x24004A7D: cmp esi, 1 */ 5451 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 5452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5453 _flag_k = FK_CMP; 5454 if (CMP_B(_flag_a, _flag_b)) goto L_24004CB7; /* 0x24004A80: jb 0x24004cb7 */ 5455 L_24004A86: 5456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 5457 eax = eax & 0xFFu; /* 0x24004A86: and eax, 0xff */ 5458 _cf = 0; 5459 _flag_k = FK_TEST; 5460 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 5461 edi = edi + 1; /* 0x24004A8B: inc edi */ 5462 _flag_k = FK_INC; 5463 MEM32(ebp + (-0x14)) = eax; /* 0x24004A8C: mov dword ptr [ebp - 0x14], eax */ 5464 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 5465 esi = esi - 1; /* 0x24004A8F: dec esi */ 5466 _flag_k = FK_DEC; 5467 goto L_24004AF9; /* 0x24004A90: jmp 0x24004af9 */ 5468 L_24004A92: 5469 SET_LO8(ecx, LO8(eax)); /* 0x24004A92: mov cl, al */ 5470 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xC0u) << 24; 5471 SET_LO8(ecx, LO8(ecx) & 0xC0u); /* 0x24004A94: and cl, 0xc0 */ 5472 _cf = 0; 5473 _flag_k = FK_NARROW(FK_TEST, 24); 5474 /* cmp LO8(ecx), 0x80u */ /* 0x24004A97: cmp cl, 0x80 */ 5475 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0x80u) << 24; 5476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5477 _flag_k = FK_NARROW(FK_CMP, 24); 5478 if (CMP_NE(_flag_a, _flag_b)) goto L_24004ABD; /* 0x24004A9A: jne 0x24004abd */ 5479 L_24004A9C: 5480 /* cmp esi, 2 */ /* 0x24004A9C: cmp esi, 2 */ 5481 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 5482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5483 _flag_k = FK_CMP; 5484 if (CMP_B(_flag_a, _flag_b)) goto L_24004D2D; /* 0x24004A9F: jb 0x24004d2d */ 5485 L_24004AA5: 5486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5487 ecx = 0; /* 0x24004AA5: xor ecx, ecx */ 5488 _cf = 0; 5489 _flag_k = FK_TEST; 5490 SET_LO8(ecx, MEM8(edi + 0x1)); /* 0x24004AA7: mov cl, byte ptr [edi + 1] */ 5491 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Fu); 5492 eax = eax & 0x3Fu; /* 0x24004AAA: and eax, 0x3f */ 5493 _cf = 0; 5494 _flag_k = FK_TEST; 5495 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x24004AAD: shl eax, 8 */ 5496 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5497 eax = eax << 8u; /* 0x24004AAD: shl eax, 8 */ 5498 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 5499 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5500 edi = edi + 2; /* 0x24004AB0: add edi, 2 */ 5501 _flag_k = FK_ADD; 5502 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 5503 eax = eax | ecx; /* 0x24004AB3: or eax, ecx */ 5504 _cf = 0; 5505 _flag_k = FK_TEST; 5506 MEM32(ebp + (-0x14)) = eax; /* 0x24004AB5: mov dword ptr [ebp - 0x14], eax */ 5507 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 5508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5509 esi = esi - 2; /* 0x24004AB8: sub esi, 2 */ 5510 _flag_k = FK_CMP; 5511 goto L_24004AF9; /* 0x24004ABB: jmp 0x24004af9 */ 5512 L_24004ABD: 5513 /* cmp LO8(ecx), 0xC0u */ /* 0x24004ABD: cmp cl, 0xc0 */ 5514 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xC0u) << 24; 5515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5516 _flag_k = FK_NARROW(FK_CMP, 24); 5517 if (CMP_NE(_flag_a, _flag_b)) goto L_24005083; /* 0x24004AC0: jne 0x24005083 */ 5518 L_24004AC6: 5519 /* cmp esi, 4 */ /* 0x24004AC6: cmp esi, 4 */ 5520 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 5521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5522 _flag_k = FK_CMP; 5523 if (CMP_B(_flag_a, _flag_b)) goto L_24004DA3; /* 0x24004AC9: jb 0x24004da3 */ 5524 L_24004ACF: 5525 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5526 edx = 0; /* 0x24004ACF: xor edx, edx */ 5527 _cf = 0; 5528 _flag_k = FK_TEST; 5529 SET_LO8(edx, MEM8(edi + 0x1)); /* 0x24004AD1: mov dl, byte ptr [edi + 1] */ 5530 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Fu); 5531 eax = eax & 0x3Fu; /* 0x24004AD4: and eax, 0x3f */ 5532 _cf = 0; 5533 _flag_k = FK_TEST; 5534 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x24004AD7: shl eax, 8 */ 5535 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5536 eax = eax << 8u; /* 0x24004AD7: shl eax, 8 */ 5537 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5538 ecx = 0; /* 0x24004ADA: xor ecx, ecx */ 5539 _cf = 0; 5540 _flag_k = FK_TEST; 5541 SET_LO8(ecx, MEM8(edi + 0x2)); /* 0x24004ADC: mov cl, byte ptr [edi + 2] */ 5542 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 5543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5544 edi = edi + 4; /* 0x24004ADF: add edi, 4 */ 5545 _flag_k = FK_ADD; 5546 _flag_a = (uint32_t)((eax | edx)); _flag_b = (uint32_t)((eax | edx)); 5547 eax = eax | edx; /* 0x24004AE2: or eax, edx */ 5548 _cf = 0; 5549 _flag_k = FK_TEST; 5550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5551 edx = 0; /* 0x24004AE4: xor edx, edx */ 5552 _cf = 0; 5553 _flag_k = FK_TEST; 5554 SET_LO8(edx, MEM8(edi + (-0x1))); /* 0x24004AE6: mov dl, byte ptr [edi - 1] */ 5555 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x24004AE9: shl eax, 8 */ 5556 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5557 eax = eax << 8u; /* 0x24004AE9: shl eax, 8 */ 5558 _flag_a = (uint32_t)((eax | ecx)); _flag_b = (uint32_t)((eax | ecx)); 5559 eax = eax | ecx; /* 0x24004AEC: or eax, ecx */ 5560 _cf = 0; 5561 _flag_k = FK_TEST; 5562 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x24004AEE: shl eax, 8 */ 5563 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5564 eax = eax << 8u; /* 0x24004AEE: shl eax, 8 */ 5565 _flag_a = (uint32_t)((eax | edx)); _flag_b = (uint32_t)((eax | edx)); 5566 eax = eax | edx; /* 0x24004AF1: or eax, edx */ 5567 _cf = 0; 5568 _flag_k = FK_TEST; 5569 MEM32(ebp + (-0x14)) = eax; /* 0x24004AF3: mov dword ptr [ebp - 0x14], eax */ 5570 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 5571 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5572 esi = esi - 4; /* 0x24004AF6: sub esi, 4 */ 5573 _flag_k = FK_CMP; 5574 L_24004AF9: 5575 /* cmp esi, 0xCu */ /* 0x24004AF9: cmp esi, 0xc */ 5576 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 5577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5578 _flag_k = FK_CMP; 5579 if (CMP_B(_flag_a, _flag_b)) goto L_24004E3E; /* 0x24004AFC: jb 0x24004e3e */ 5580 L_24004B02: 5581 ebx = MEM32(edi + 0x8); /* 0x24004B02: mov ebx, dword ptr [edi + 8] */ 5582 eax = MEM32(edi); /* 0x24004B05: mov eax, dword ptr [edi] */ 5583 ecx = MEM32(edi + 0x4); /* 0x24004B07: mov ecx, dword ptr [edi + 4] */ 5584 edx = ebx + 0x14; /* 0x24004B0A: lea edx, [ebx + 0x14] */ 5585 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 5586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5587 edi = edi + 0xCu; /* 0x24004B0D: add edi, 0xc */ 5588 _flag_k = FK_ADD; 5589 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 5590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5591 esi = esi - 0xCu; /* 0x24004B10: sub esi, 0xc */ 5592 _flag_k = FK_CMP; 5593 PUSH32(esp, edx); /* 0x24004B13: push edx */ 5594 MEM32(ebp + (-0x20)) = eax; /* 0x24004B14: mov dword ptr [ebp - 0x20], eax */ 5595 MEM32(ebp + (-0x24)) = ecx; /* 0x24004B17: mov dword ptr [ebp - 0x24], ecx */ 5596 MEM32(ebp + (-0x10)) = edi; /* 0x24004B1A: mov dword ptr [ebp - 0x10], edi */ 5597 MEM32(ebp + 0xC) = esi; /* 0x24004B1D: mov dword ptr [ebp + 0xc], esi */ 5598 RECOMP_ICALL(0x24009838u); /* 0x24004B20: call 0x24009838 */ /* not lifted */ 5599 RECOMP_FLAGS_IN(); 5600 ecx = MEM32(ebp + (-0x20)); /* 0x24004B25: mov ecx, dword ptr [ebp - 0x20] */ 5601 edx = MEM32(ebp + (-0x24)); /* 0x24004B28: mov edx, dword ptr [ebp - 0x24] */ 5602 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5603 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5604 esp = esp + 4; /* 0x24004B2B: add esp, 4 */ 5605 _flag_k = FK_ADD; 5606 /* cmp esi, ebx */ /* 0x24004B2E: cmp esi, ebx */ 5607 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5609 _flag_k = FK_CMP; 5610 MEM32(ebp + 0x8) = eax; /* 0x24004B30: mov dword ptr [ebp + 8], eax */ 5611 MEM32(eax) = ecx; /* 0x24004B33: mov dword ptr [eax], ecx */ 5612 MEM32(eax + 0x4) = ebx; /* 0x24004B35: mov dword ptr [eax + 4], ebx */ 5613 MEM32(eax + 0x8) = ebx; /* 0x24004B38: mov dword ptr [eax + 8], ebx */ 5614 MEM32(eax + 0xC) = edx; /* 0x24004B3B: mov dword ptr [eax + 0xc], edx */ 5615 MEM32(eax + 0x10) = 0; /* 0x24004B3E: mov dword ptr [eax + 0x10], 0 */ 5616 if (CMP_B(_flag_a, _flag_b)) goto L_24004EB4; /* 0x24004B45: jb 0x24004eb4 */ 5617 L_24004B4B: 5618 ecx = ebx; /* 0x24004B4B: mov ecx, ebx */ 5619 edx = ecx; /* 0x24004B4D: mov edx, ecx */ 5620 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004B4F: shr ecx, 2 */ 5621 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5622 ecx = ecx >> 2u; /* 0x24004B4F: shr ecx, 2 */ 5623 esi = edi; /* 0x24004B52: mov esi, edi */ 5624 edi = eax + 0x14; /* 0x24004B54: lea edi, [eax + 0x14] */ 5625 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004B57: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5626 ecx = edx; /* 0x24004B59: mov ecx, edx */ 5627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5628 ecx = ecx & 3; /* 0x24004B5B: and ecx, 3 */ 5629 _cf = 0; 5630 _flag_k = FK_TEST; 5631 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004B5E: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5632 ecx = MEM32(eax + 0xC); /* 0x24004B60: mov ecx, dword ptr [eax + 0xc] */ 5633 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5634 edi = 0; /* 0x24004B63: xor edi, edi */ 5635 _cf = 0; 5636 _flag_k = FK_TEST; 5637 /* cmp ecx, edi */ /* 0x24004B65: cmp ecx, edi */ 5638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5640 _flag_k = FK_CMP; 5641 if (CMP_NE(_flag_a, _flag_b)) goto L_24004B9B; /* 0x24004B67: jne 0x24004b9b */ 5642 L_24004B69: 5643 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5644 edx = 0; /* 0x24004B69: xor edx, edx */ 5645 _cf = 0; 5646 _flag_k = FK_TEST; 5647 /* cmp ebx, edi */ /* 0x24004B6B: cmp ebx, edi */ 5648 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 5649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5650 _flag_k = FK_CMP; 5651 if (CMP_BE(_flag_a, _flag_b)) goto L_24004B91; /* 0x24004B6D: jbe 0x24004b91 */ 5652 L_24004B6F: 5653 esi = MEM32(ebp + (-0x10)); /* 0x24004B6F: mov esi, dword ptr [ebp - 0x10] */ 5654 ecx = MEM32(esi); /* 0x24004B72: mov ecx, dword ptr [esi] */ 5655 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 5656 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5657 ecx = ecx + 4; /* 0x24004B74: add ecx, 4 */ 5658 _flag_k = FK_ADD; 5659 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 5660 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5661 esi = esi + ecx; /* 0x24004B77: add esi, ecx */ 5662 _flag_k = FK_ADD; 5663 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5665 edx = edx + ecx; /* 0x24004B79: add edx, ecx */ 5666 _flag_k = FK_ADD; 5667 /* cmp edx, ebx */ /* 0x24004B7B: cmp edx, ebx */ 5668 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 5669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5670 _flag_k = FK_CMP; 5671 MEM32(ebp + (-0x10)) = esi; /* 0x24004B7D: mov dword ptr [ebp - 0x10], esi */ 5672 if (CMP_A(_flag_a, _flag_b)) goto L_24004F4F; /* 0x24004B80: ja 0x24004f4f */ 5673 L_24004B86: 5674 esi = MEM32(eax + 0x10); /* 0x24004B86: mov esi, dword ptr [eax + 0x10] */ 5675 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 5676 esi = esi + 1; /* 0x24004B89: inc esi */ 5677 _flag_k = FK_INC; 5678 /* cmp edx, ebx */ /* 0x24004B8A: cmp edx, ebx */ 5679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 5680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5681 _flag_k = FK_CMP; 5682 MEM32(eax + 0x10) = esi; /* 0x24004B8C: mov dword ptr [eax + 0x10], esi */ 5683 RECOMP_BACKEDGE(); 5684 if (CMP_B(_flag_a, _flag_b)) goto L_24004B6F; /* 0x24004B8F: jb 0x24004b6f */ 5685 L_24004B91: 5686 /* cmp edx, ebx */ /* 0x24004B91: cmp edx, ebx */ 5687 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 5688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5689 _flag_k = FK_CMP; 5690 if (CMP_NE(_flag_a, _flag_b)) goto L_24004FE9; /* 0x24004B93: jne 0x24004fe9 */ 5691 L_24004B99: 5692 goto L_24004BAC; /* 0x24004B99: jmp 0x24004bac */ 5693 L_24004B9B: 5694 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5695 edx = 0; /* 0x24004B9B: xor edx, edx */ 5696 _cf = 0; 5697 _flag_k = FK_TEST; 5698 eax = ebx; /* 0x24004B9D: mov eax, ebx */ 5699 { uint64_t _dividend = ((uint64_t)edx << 32) | eax; uint32_t _dv = (uint32_t)ecx; /* 0x24004B9F: div ecx */ 5700 if (_dv) { eax = (uint32_t)(_dividend / _dv); edx = (uint32_t)(_dividend % _dv); } 5701 else { eax = 0; edx = 0; } } 5702 ecx = MEM32(ebp + 0x8); /* 0x24004BA1: mov ecx, dword ptr [ebp + 8] */ 5703 MEM32(ecx + 0x10) = eax; /* 0x24004BA4: mov dword ptr [ecx + 0x10], eax */ 5704 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx); 5705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5706 MEM32(ebp + (-0x10)) = MEM32(ebp + (-0x10)) + ebx; /* 0x24004BA7: add dword ptr [ebp - 0x10], ebx */ 5707 _flag_k = FK_ADD; 5708 eax = ecx; /* 0x24004BAA: mov eax, ecx */ 5709 L_24004BAC: 5710 edx = MEM32(ebp + (-0x18)); /* 0x24004BAC: mov edx, dword ptr [ebp - 0x18] */ 5711 ecx = MEM32(edx + 0x34); /* 0x24004BAF: mov ecx, dword ptr [edx + 0x34] */ 5712 /* cmp ecx, edi */ /* 0x24004BB2: cmp ecx, edi */ 5713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5715 _flag_k = FK_CMP; 5716 esi = edx + 0x30; /* 0x24004BB4: lea esi, [edx + 0x30] */ 5717 if (CMP_EQ(_flag_a, _flag_b)) goto L_24004BCC; /* 0x24004BB7: je 0x24004bcc */ 5718 L_24004BB9: 5719 edx = MEM32(esi + 0x8); /* 0x24004BB9: mov edx, dword ptr [esi + 8] */ 5720 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5722 edx = edx - ecx; /* 0x24004BBC: sub edx, ecx */ 5723 _flag_k = FK_CMP; 5724 ecx = MEM32(ebp + (-0x14)); /* 0x24004BBE: mov ecx, dword ptr [ebp - 0x14] */ 5725 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x24004BC1: sar edx, 2 */ 5726 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5727 edx = (uint32_t)((int32_t)edx >> 2u); 5728 /* cmp ecx, edx */ /* 0x24004BC4: cmp ecx, edx */ 5729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5731 _flag_k = FK_CMP; 5732 if (CMP_B(_flag_a, _flag_b)) goto L_24004C86; /* 0x24004BC6: jb 0x24004c86 */ 5733 L_24004BCC: 5734 ecx = MEM32(esi + 0x4); /* 0x24004BCC: mov ecx, dword ptr [esi + 4] */ 5735 /* cmp ecx, edi */ /* 0x24004BCF: cmp ecx, edi */ 5736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5738 _flag_k = FK_CMP; 5739 if (CMP_NE(_flag_a, _flag_b)) goto L_24004BD7; /* 0x24004BD1: jne 0x24004bd7 */ 5740 L_24004BD3: 5741 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5742 eax = 0; /* 0x24004BD3: xor eax, eax */ 5743 _cf = 0; 5744 _flag_k = FK_TEST; 5745 goto L_24004BDF; /* 0x24004BD5: jmp 0x24004bdf */ 5746 L_24004BD7: 5747 eax = MEM32(esi + 0x8); /* 0x24004BD7: mov eax, dword ptr [esi + 8] */ 5748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5750 eax = eax - ecx; /* 0x24004BDA: sub eax, ecx */ 5751 _flag_k = FK_CMP; 5752 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x24004BDC: sar eax, 2 */ 5753 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5754 eax = (uint32_t)((int32_t)eax >> 2u); 5755 L_24004BDF: 5756 ecx = eax + eax; /* 0x24004BDF: lea ecx, [eax + eax] */ 5757 eax = MEM32(ebp + (-0x14)); /* 0x24004BE2: mov eax, dword ptr [ebp - 0x14] */ 5758 /* cmp ecx, eax */ /* 0x24004BE5: cmp ecx, eax */ 5759 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5761 _flag_k = FK_CMP; 5762 if (CMP_BE(_flag_a, _flag_b)) goto L_24004C3A; /* 0x24004BE7: jbe 0x24004c3a */ 5763 L_24004BE9: 5764 ecx = MEM32(esi + 0x4); /* 0x24004BE9: mov ecx, dword ptr [esi + 4] */ 5765 /* cmp ecx, edi */ /* 0x24004BEC: cmp ecx, edi */ 5766 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5768 _flag_k = FK_CMP; 5769 MEM32(ebp + (-0x24)) = edi; /* 0x24004BEE: mov dword ptr [ebp - 0x24], edi */ 5770 if (CMP_NE(_flag_a, _flag_b)) goto L_24004BF7; /* 0x24004BF1: jne 0x24004bf7 */ 5771 L_24004BF3: 5772 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5773 eax = 0; /* 0x24004BF3: xor eax, eax */ 5774 _cf = 0; 5775 _flag_k = FK_TEST; 5776 goto L_24004BFF; /* 0x24004BF5: jmp 0x24004bff */ 5777 L_24004BF7: 5778 eax = MEM32(esi + 0x8); /* 0x24004BF7: mov eax, dword ptr [esi + 8] */ 5779 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5781 eax = eax - ecx; /* 0x24004BFA: sub eax, ecx */ 5782 _flag_k = FK_CMP; 5783 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x24004BFC: sar eax, 2 */ 5784 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5785 eax = (uint32_t)((int32_t)eax >> 2u); 5786 L_24004BFF: 5787 ecx = MEM32(esi + 0x4); /* 0x24004BFF: mov ecx, dword ptr [esi + 4] */ 5788 /* test ecx, ecx */ /* 0x24004C02: test ecx, ecx */ 5789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5790 _cf = 0; 5791 _flag_k = FK_TEST; 5792 edi = eax + eax; /* 0x24004C04: lea edi, [eax + eax] */ 5793 if (TEST_NZ(_flag_a, _flag_b)) goto L_24004C0D; /* 0x24004C07: jne 0x24004c0d */ 5794 L_24004C09: 5795 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5796 eax = 0; /* 0x24004C09: xor eax, eax */ 5797 _cf = 0; 5798 _flag_k = FK_TEST; 5799 goto L_24004C15; /* 0x24004C0B: jmp 0x24004c15 */ 5800 L_24004C0D: 5801 eax = MEM32(esi + 0x8); /* 0x24004C0D: mov eax, dword ptr [esi + 8] */ 5802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5804 eax = eax - ecx; /* 0x24004C10: sub eax, ecx */ 5805 _flag_k = FK_CMP; 5806 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x24004C12: sar eax, 2 */ 5807 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5808 eax = (uint32_t)((int32_t)eax >> 2u); 5809 L_24004C15: 5810 /* cmp eax, edi */ /* 0x24004C15: cmp eax, edi */ 5811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5813 _flag_k = FK_CMP; 5814 if (CMP_AE(_flag_a, _flag_b)) goto L_24004C22; /* 0x24004C17: jae 0x24004c22 */ 5815 L_24004C19: 5816 ebx = MEM32(esi + 0x8); /* 0x24004C19: mov ebx, dword ptr [esi + 8] */ 5817 edx = ebp + (-0x24); /* 0x24004C1C: lea edx, [ebp - 0x24] */ 5818 PUSH32(esp, edx); /* 0x24004C1F: push edx */ 5819 goto L_24004C52; /* 0x24004C20: jmp 0x24004c52 */ 5820 L_24004C22: 5821 ecx = esi; /* 0x24004C22: mov ecx, esi */ 5822 RECOMP_ICALL(0x24005150u); /* 0x24004C24: call 0x24005150 */ /* not lifted */ 5823 RECOMP_FLAGS_IN(); 5824 /* cmp edi, eax */ /* 0x24004C29: cmp edi, eax */ 5825 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5827 _flag_k = FK_CMP; 5828 if (CMP_AE(_flag_a, _flag_b)) goto L_24004C83; /* 0x24004C2B: jae 0x24004c83 */ 5829 L_24004C2D: 5830 eax = MEM32(esi + 0x8); /* 0x24004C2D: mov eax, dword ptr [esi + 8] */ 5831 ecx = MEM32(esi + 0x4); /* 0x24004C30: mov ecx, dword ptr [esi + 4] */ 5832 PUSH32(esp, eax); /* 0x24004C33: push eax */ 5833 edx = ecx + edi * 4; /* 0x24004C34: lea edx, [ecx + edi*4] */ 5834 PUSH32(esp, edx); /* 0x24004C37: push edx */ 5835 goto L_24004C7C; /* 0x24004C38: jmp 0x24004c7c */ 5836 L_24004C3A: 5837 MEM32(ebp + (-0x28)) = edi; /* 0x24004C3A: mov dword ptr [ebp - 0x28], edi */ 5838 ecx = esi; /* 0x24004C3D: mov ecx, esi */ 5839 edi = eax + 0x1; /* 0x24004C3F: lea edi, [eax + 1] */ 5840 RECOMP_ICALL(0x24005150u); /* 0x24004C42: call 0x24005150 */ /* not lifted */ 5841 RECOMP_FLAGS_IN(); 5842 /* cmp eax, edi */ /* 0x24004C47: cmp eax, edi */ 5843 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5845 _flag_k = FK_CMP; 5846 if (CMP_AE(_flag_a, _flag_b)) goto L_24004C66; /* 0x24004C49: jae 0x24004c66 */ 5847 L_24004C4B: 5848 ebx = MEM32(esi + 0x8); /* 0x24004C4B: mov ebx, dword ptr [esi + 8] */ 5849 eax = ebp + (-0x28); /* 0x24004C4E: lea eax, [ebp - 0x28] */ 5850 PUSH32(esp, eax); /* 0x24004C51: push eax */ 5851 L_24004C52: 5852 ecx = esi; /* 0x24004C52: mov ecx, esi */ 5853 RECOMP_ICALL(0x24005150u); /* 0x24004C54: call 0x24005150 */ /* not lifted */ 5854 RECOMP_FLAGS_IN(); 5855 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5856 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5857 edi = edi - eax; /* 0x24004C59: sub edi, eax */ 5858 _flag_k = FK_CMP; 5859 PUSH32(esp, edi); /* 0x24004C5B: push edi */ 5860 PUSH32(esp, ebx); /* 0x24004C5C: push ebx */ 5861 ecx = esi; /* 0x24004C5D: mov ecx, esi */ 5862 RECOMP_ICALL(0x24005260u); /* 0x24004C5F: call 0x24005260 */ /* not lifted */ 5863 RECOMP_FLAGS_IN(); 5864 goto L_24004C83; /* 0x24004C64: jmp 0x24004c83 */ 5865 L_24004C66: 5866 ecx = esi; /* 0x24004C66: mov ecx, esi */ 5867 RECOMP_ICALL(0x24005150u); /* 0x24004C68: call 0x24005150 */ /* not lifted */ 5868 RECOMP_FLAGS_IN(); 5869 /* cmp edi, eax */ /* 0x24004C6D: cmp edi, eax */ 5870 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5872 _flag_k = FK_CMP; 5873 if (CMP_AE(_flag_a, _flag_b)) goto L_24004C83; /* 0x24004C6F: jae 0x24004c83 */ 5874 L_24004C71: 5875 ecx = MEM32(esi + 0x8); /* 0x24004C71: mov ecx, dword ptr [esi + 8] */ 5876 edx = MEM32(esi + 0x4); /* 0x24004C74: mov edx, dword ptr [esi + 4] */ 5877 PUSH32(esp, ecx); /* 0x24004C77: push ecx */ 5878 eax = edx + edi * 4; /* 0x24004C78: lea eax, [edx + edi*4] */ 5879 PUSH32(esp, eax); /* 0x24004C7B: push eax */ 5880 L_24004C7C: 5881 ecx = esi; /* 0x24004C7C: mov ecx, esi */ 5882 RECOMP_ICALL(0x24005490u); /* 0x24004C7E: call 0x24005490 */ /* not lifted */ 5883 RECOMP_FLAGS_IN(); 5884 L_24004C83: 5885 eax = MEM32(ebp + 0x8); /* 0x24004C83: mov eax, dword ptr [ebp + 8] */ 5886 L_24004C86: 5887 ecx = MEM32(ebp + (-0x18)); /* 0x24004C86: mov ecx, dword ptr [ebp - 0x18] */ 5888 edx = MEM32(ecx + 0x34); /* 0x24004C89: mov edx, dword ptr [ecx + 0x34] */ 5889 ecx = MEM32(ebp + (-0x14)); /* 0x24004C8C: mov ecx, dword ptr [ebp - 0x14] */ 5890 MEM32(edx + ecx * 4) = eax; /* 0x24004C8F: mov dword ptr [edx + ecx*4], eax */ 5891 eax = MEM32(ebp + (-0x1C)); /* 0x24004C92: mov eax, dword ptr [ebp - 0x1c] */ 5892 ecx = MEM32(ebp + (-0x2C)); /* 0x24004C95: mov ecx, dword ptr [ebp - 0x2c] */ 5893 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5894 eax = eax + 1; /* 0x24004C98: inc eax */ 5895 _flag_k = FK_INC; 5896 /* cmp eax, ecx */ /* 0x24004C99: cmp eax, ecx */ 5897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5899 _flag_k = FK_CMP; 5900 MEM32(ebp + (-0x1C)) = eax; /* 0x24004C9B: mov dword ptr [ebp - 0x1c], eax */ 5901 RECOMP_BACKEDGE(); 5902 if (CMP_B(_flag_a, _flag_b)) goto L_24004A6F; /* 0x24004C9E: jb 0x24004a6f */ 5903 L_24004CA4: 5904 ecx = MEM32(ebp + (-0xC)); /* 0x24004CA4: mov ecx, dword ptr [ebp - 0xc] */ 5905 edi = POP32_VAL(esp); /* 0x24004CA7: pop edi */ 5906 esi = POP32_VAL(esp); /* 0x24004CA8: pop esi */ 5907 ebx = POP32_VAL(esp); /* 0x24004CA9: pop ebx */ 5908 MEM32(FS_BASE + (0)) = ecx; /* 0x24004CAA: mov dword ptr fs:[0], ecx */ 5909 esp = ebp; /* 0x24004CB1: mov esp, ebp */ 5910 ebp = POP32_VAL(esp); /* 0x24004CB3: pop ebp */ 5911 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24004CB4: ret 8 */ 5912 L_24004CB7: 5913 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x24004CB7: mov dl, byte ptr [ebp + 0xf] */ 5914 PUSH32(esp, 0); /* 0x24004CBA: push 0 */ 5915 ecx = ebp + (-0x3C); /* 0x24004CBC: lea ecx, [ebp - 0x3c] */ 5916 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(edx)); /* 0x24004CBF: mov byte ptr [ebp - 0x3c], dl */ 5917 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24004CC2: call dword ptr [0x2400b020] */ 5918 RECOMP_FLAGS_IN(); 5919 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5920 ecx = ecx | 0xFFFFFFFFu; /* 0x24004CC8: or ecx, 0xffffffff */ 5921 _cf = 0; 5922 _flag_k = FK_TEST; 5923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5924 eax = 0; /* 0x24004CCB: xor eax, eax */ 5925 _cf = 0; 5926 _flag_k = FK_TEST; 5927 edi = 0x2400E0E8u; /* 0x24004CCD: mov edi, 0x2400e0e8 */ 5928 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004CD2: repne scasb al, byte ptr es:[edi] */ 5929 ecx = ~ecx; /* 0x24004CD4: not ecx */ 5930 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5931 ecx = ecx - 1; /* 0x24004CD6: dec ecx */ 5932 _flag_k = FK_DEC; 5933 PUSH32(esp, ecx); /* 0x24004CD7: push ecx */ 5934 PUSH32(esp, 0x2400E0E8u); /* 0x24004CD8: push 0x2400e0e8 */ 5935 ecx = ebp + (-0x3C); /* 0x24004CDD: lea ecx, [ebp - 0x3c] */ 5936 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x24004CE0: call dword ptr [0x2400b05c] */ 5937 RECOMP_FLAGS_IN(); 5938 eax = ebp + 0xC; /* 0x24004CE6: lea eax, [ebp + 0xc] */ 5939 PUSH32(esp, eax); /* 0x24004CE9: push eax */ 5940 ecx = ebp + (-0x58); /* 0x24004CEA: lea ecx, [ebp - 0x58] */ 5941 MEM32(ebp + (-0x4)) = 4; /* 0x24004CED: mov dword ptr [ebp - 4], 4 */ 5942 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004CF4: mov dword ptr [ebp + 0xc], 0x2400e294 */ 5943 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24004CFB: call dword ptr [0x2400b098] */ 5944 RECOMP_FLAGS_IN(); 5945 ecx = ebp + (-0x3C); /* 0x24004D01: lea ecx, [ebp - 0x3c] */ 5946 PUSH32(esp, ecx); /* 0x24004D04: push ecx */ 5947 ecx = ebp + (-0x4C); /* 0x24004D05: lea ecx, [ebp - 0x4c] */ 5948 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x24004D08: mov byte ptr [ebp - 4], 5 */ 5949 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004D0C: call dword ptr [0x2400b058] */ 5950 RECOMP_FLAGS_IN(); 5951 edx = MEM32(0x2400B054); /* 0x24004D12: mov edx, dword ptr [0x2400b054] */ 5952 PUSH32(esp, 0x2400B560u); /* 0x24004D18: push 0x2400b560 */ 5953 eax = ebp + (-0x58); /* 0x24004D1D: lea eax, [ebp - 0x58] */ 5954 PUSH32(esp, eax); /* 0x24004D20: push eax */ 5955 MEM32(ebp + (-0x58)) = edx; /* 0x24004D21: mov dword ptr [ebp - 0x58], edx */ 5956 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x24004D24: mov byte ptr [ebp - 4], 4 */ 5957 RECOMP_ICALL(0x24009988u); /* 0x24004D28: call 0x24009988 */ /* not lifted */ 5958 RECOMP_FLAGS_IN(); 5959 L_24004D2D: 5960 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24004D2D: mov cl, byte ptr [ebp + 0xf] */ 5961 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(ecx)); /* 0x24004D30: mov byte ptr [ebp - 0x3c], cl */ 5962 PUSH32(esp, 0); /* 0x24004D33: push 0 */ 5963 ecx = ebp + (-0x3C); /* 0x24004D35: lea ecx, [ebp - 0x3c] */ 5964 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24004D38: call dword ptr [0x2400b020] */ 5965 RECOMP_FLAGS_IN(); 5966 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5967 ecx = ecx | 0xFFFFFFFFu; /* 0x24004D3E: or ecx, 0xffffffff */ 5968 _cf = 0; 5969 _flag_k = FK_TEST; 5970 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5971 eax = 0; /* 0x24004D41: xor eax, eax */ 5972 _cf = 0; 5973 _flag_k = FK_TEST; 5974 edi = 0x2400E0E8u; /* 0x24004D43: mov edi, 0x2400e0e8 */ 5975 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004D48: repne scasb al, byte ptr es:[edi] */ 5976 ecx = ~ecx; /* 0x24004D4A: not ecx */ 5977 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5978 ecx = ecx - 1; /* 0x24004D4C: dec ecx */ 5979 _flag_k = FK_DEC; 5980 PUSH32(esp, ecx); /* 0x24004D4D: push ecx */ 5981 PUSH32(esp, 0x2400E0E8u); /* 0x24004D4E: push 0x2400e0e8 */ 5982 ecx = ebp + (-0x3C); /* 0x24004D53: lea ecx, [ebp - 0x3c] */ 5983 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x24004D56: call dword ptr [0x2400b05c] */ 5984 RECOMP_FLAGS_IN(); 5985 edx = ebp + 0xC; /* 0x24004D5C: lea edx, [ebp + 0xc] */ 5986 ebx = 6; /* 0x24004D5F: mov ebx, 6 */ 5987 PUSH32(esp, edx); /* 0x24004D64: push edx */ 5988 ecx = ebp + (-0x58); /* 0x24004D65: lea ecx, [ebp - 0x58] */ 5989 MEM32(ebp + (-0x4)) = ebx; /* 0x24004D68: mov dword ptr [ebp - 4], ebx */ 5990 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004D6B: mov dword ptr [ebp + 0xc], 0x2400e294 */ 5991 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24004D72: call dword ptr [0x2400b098] */ 5992 RECOMP_FLAGS_IN(); 5993 eax = ebp + (-0x3C); /* 0x24004D78: lea eax, [ebp - 0x3c] */ 5994 PUSH32(esp, eax); /* 0x24004D7B: push eax */ 5995 ecx = ebp + (-0x4C); /* 0x24004D7C: lea ecx, [ebp - 0x4c] */ 5996 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x24004D7F: mov byte ptr [ebp - 4], 7 */ 5997 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004D83: call dword ptr [0x2400b058] */ 5998 RECOMP_FLAGS_IN(); 5999 ecx = MEM32(0x2400B054); /* 0x24004D89: mov ecx, dword ptr [0x2400b054] */ 6000 PUSH32(esp, 0x2400B560u); /* 0x24004D8F: push 0x2400b560 */ 6001 edx = ebp + (-0x58); /* 0x24004D94: lea edx, [ebp - 0x58] */ 6002 PUSH32(esp, edx); /* 0x24004D97: push edx */ 6003 MEM32(ebp + (-0x58)) = ecx; /* 0x24004D98: mov dword ptr [ebp - 0x58], ecx */ 6004 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x24004D9B: mov byte ptr [ebp - 4], bl */ 6005 RECOMP_ICALL(0x24009988u); /* 0x24004D9E: call 0x24009988 */ /* not lifted */ 6006 RECOMP_FLAGS_IN(); 6007 L_24004DA3: 6008 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x24004DA3: mov al, byte ptr [ebp + 0xf] */ 6009 PUSH32(esp, 0); /* 0x24004DA6: push 0 */ 6010 ecx = ebp + (-0x3C); /* 0x24004DA8: lea ecx, [ebp - 0x3c] */ 6011 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x24004DAB: mov byte ptr [ebp - 0x3c], al */ 6012 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24004DAE: call dword ptr [0x2400b020] */ 6013 RECOMP_FLAGS_IN(); 6014 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6015 ecx = ecx | 0xFFFFFFFFu; /* 0x24004DB4: or ecx, 0xffffffff */ 6016 _cf = 0; 6017 _flag_k = FK_TEST; 6018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6019 eax = 0; /* 0x24004DB7: xor eax, eax */ 6020 _cf = 0; 6021 _flag_k = FK_TEST; 6022 edi = 0x2400E0E8u; /* 0x24004DB9: mov edi, 0x2400e0e8 */ 6023 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004DBE: repne scasb al, byte ptr es:[edi] */ 6024 ecx = ~ecx; /* 0x24004DC0: not ecx */ 6025 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6026 ecx = ecx - 1; /* 0x24004DC2: dec ecx */ 6027 _flag_k = FK_DEC; 6028 ebx = ecx; /* 0x24004DC3: mov ebx, ecx */ 6029 PUSH32(esp, 1); /* 0x24004DC5: push 1 */ 6030 PUSH32(esp, ebx); /* 0x24004DC7: push ebx */ 6031 ecx = ebp + (-0x3C); /* 0x24004DC8: lea ecx, [ebp - 0x3c] */ 6032 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x24004DCB: call dword ptr [0x2400b048] */ 6033 RECOMP_FLAGS_IN(); 6034 /* test LO8(eax), LO8(eax) */ /* 0x24004DD1: test al, al */ 6035 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6036 _cf = 0; 6037 _flag_k = FK_NARROW(FK_TEST, 24); 6038 if (TEST_Z(_flag_a, _flag_b)) goto L_24004DF7; /* 0x24004DD3: je 0x24004df7 */ 6039 L_24004DD5: 6040 edi = MEM32(ebp + (-0x38)); /* 0x24004DD5: mov edi, dword ptr [ebp - 0x38] */ 6041 ecx = ebx; /* 0x24004DD8: mov ecx, ebx */ 6042 edx = ecx; /* 0x24004DDA: mov edx, ecx */ 6043 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004DDC: shr ecx, 2 */ 6044 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6045 ecx = ecx >> 2u; /* 0x24004DDC: shr ecx, 2 */ 6046 esi = 0x2400E0E8u; /* 0x24004DDF: mov esi, 0x2400e0e8 */ 6047 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004DE4: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6048 ecx = edx; /* 0x24004DE6: mov ecx, edx */ 6049 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6050 ecx = ecx & 3; /* 0x24004DE8: and ecx, 3 */ 6051 _cf = 0; 6052 _flag_k = FK_TEST; 6053 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004DEB: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6054 PUSH32(esp, ebx); /* 0x24004DED: push ebx */ 6055 ecx = ebp + (-0x3C); /* 0x24004DEE: lea ecx, [ebp - 0x3c] */ 6056 RECOMP_ICALL(MEM32(0x2400B03C)); /* 0x24004DF1: call dword ptr [0x2400b03c] */ 6057 RECOMP_FLAGS_IN(); 6058 L_24004DF7: 6059 eax = ebp + 0xC; /* 0x24004DF7: lea eax, [ebp + 0xc] */ 6060 PUSH32(esp, eax); /* 0x24004DFA: push eax */ 6061 ecx = ebp + (-0x58); /* 0x24004DFB: lea ecx, [ebp - 0x58] */ 6062 MEM32(ebp + (-0x4)) = 8; /* 0x24004DFE: mov dword ptr [ebp - 4], 8 */ 6063 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004E05: mov dword ptr [ebp + 0xc], 0x2400e294 */ 6064 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24004E0C: call dword ptr [0x2400b098] */ 6065 RECOMP_FLAGS_IN(); 6066 ecx = ebp + (-0x3C); /* 0x24004E12: lea ecx, [ebp - 0x3c] */ 6067 PUSH32(esp, ecx); /* 0x24004E15: push ecx */ 6068 ecx = ebp + (-0x4C); /* 0x24004E16: lea ecx, [ebp - 0x4c] */ 6069 MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x24004E19: mov byte ptr [ebp - 4], 9 */ 6070 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004E1D: call dword ptr [0x2400b058] */ 6071 RECOMP_FLAGS_IN(); 6072 edx = MEM32(0x2400B054); /* 0x24004E23: mov edx, dword ptr [0x2400b054] */ 6073 PUSH32(esp, 0x2400B560u); /* 0x24004E29: push 0x2400b560 */ 6074 eax = ebp + (-0x58); /* 0x24004E2E: lea eax, [ebp - 0x58] */ 6075 PUSH32(esp, eax); /* 0x24004E31: push eax */ 6076 MEM32(ebp + (-0x58)) = edx; /* 0x24004E32: mov dword ptr [ebp - 0x58], edx */ 6077 MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x24004E35: mov byte ptr [ebp - 4], 8 */ 6078 RECOMP_ICALL(0x24009988u); /* 0x24004E39: call 0x24009988 */ /* not lifted */ 6079 RECOMP_FLAGS_IN(); 6080 L_24004E3E: 6081 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24004E3E: mov cl, byte ptr [ebp + 0xf] */ 6082 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(ecx)); /* 0x24004E41: mov byte ptr [ebp - 0x3c], cl */ 6083 PUSH32(esp, 0); /* 0x24004E44: push 0 */ 6084 ecx = ebp + (-0x3C); /* 0x24004E46: lea ecx, [ebp - 0x3c] */ 6085 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24004E49: call dword ptr [0x2400b020] */ 6086 RECOMP_FLAGS_IN(); 6087 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6088 ecx = ecx | 0xFFFFFFFFu; /* 0x24004E4F: or ecx, 0xffffffff */ 6089 _cf = 0; 6090 _flag_k = FK_TEST; 6091 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6092 eax = 0; /* 0x24004E52: xor eax, eax */ 6093 _cf = 0; 6094 _flag_k = FK_TEST; 6095 edi = 0x2400E0E8u; /* 0x24004E54: mov edi, 0x2400e0e8 */ 6096 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004E59: repne scasb al, byte ptr es:[edi] */ 6097 ecx = ~ecx; /* 0x24004E5B: not ecx */ 6098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6099 ecx = ecx - 1; /* 0x24004E5D: dec ecx */ 6100 _flag_k = FK_DEC; 6101 PUSH32(esp, ecx); /* 0x24004E5E: push ecx */ 6102 PUSH32(esp, 0x2400E0E8u); /* 0x24004E5F: push 0x2400e0e8 */ 6103 ecx = ebp + (-0x3C); /* 0x24004E64: lea ecx, [ebp - 0x3c] */ 6104 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x24004E67: call dword ptr [0x2400b05c] */ 6105 RECOMP_FLAGS_IN(); 6106 edx = ebp + 0xC; /* 0x24004E6D: lea edx, [ebp + 0xc] */ 6107 PUSH32(esp, edx); /* 0x24004E70: push edx */ 6108 ecx = ebp + (-0x58); /* 0x24004E71: lea ecx, [ebp - 0x58] */ 6109 MEM32(ebp + (-0x4)) = 0xCu; /* 0x24004E74: mov dword ptr [ebp - 4], 0xc */ 6110 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004E7B: mov dword ptr [ebp + 0xc], 0x2400e294 */ 6111 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24004E82: call dword ptr [0x2400b098] */ 6112 RECOMP_FLAGS_IN(); 6113 eax = ebp + (-0x3C); /* 0x24004E88: lea eax, [ebp - 0x3c] */ 6114 PUSH32(esp, eax); /* 0x24004E8B: push eax */ 6115 ecx = ebp + (-0x4C); /* 0x24004E8C: lea ecx, [ebp - 0x4c] */ 6116 MEM8(ebp + (-0x4)) = (uint8_t)(0xDu); /* 0x24004E8F: mov byte ptr [ebp - 4], 0xd */ 6117 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004E93: call dword ptr [0x2400b058] */ 6118 RECOMP_FLAGS_IN(); 6119 ecx = MEM32(0x2400B054); /* 0x24004E99: mov ecx, dword ptr [0x2400b054] */ 6120 PUSH32(esp, 0x2400B560u); /* 0x24004E9F: push 0x2400b560 */ 6121 edx = ebp + (-0x58); /* 0x24004EA4: lea edx, [ebp - 0x58] */ 6122 PUSH32(esp, edx); /* 0x24004EA7: push edx */ 6123 MEM32(ebp + (-0x58)) = ecx; /* 0x24004EA8: mov dword ptr [ebp - 0x58], ecx */ 6124 MEM8(ebp + (-0x4)) = (uint8_t)(0xCu); /* 0x24004EAB: mov byte ptr [ebp - 4], 0xc */ 6125 RECOMP_ICALL(0x24009988u); /* 0x24004EAF: call 0x24009988 */ /* not lifted */ 6126 RECOMP_FLAGS_IN(); 6127 L_24004EB4: 6128 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x24004EB4: mov al, byte ptr [ebp + 0xf] */ 6129 PUSH32(esp, 0); /* 0x24004EB7: push 0 */ 6130 ecx = ebp + (-0x3C); /* 0x24004EB9: lea ecx, [ebp - 0x3c] */ 6131 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(eax)); /* 0x24004EBC: mov byte ptr [ebp - 0x3c], al */ 6132 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24004EBF: call dword ptr [0x2400b020] */ 6133 RECOMP_FLAGS_IN(); 6134 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6135 ecx = ecx | 0xFFFFFFFFu; /* 0x24004EC5: or ecx, 0xffffffff */ 6136 _cf = 0; 6137 _flag_k = FK_TEST; 6138 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6139 eax = 0; /* 0x24004EC8: xor eax, eax */ 6140 _cf = 0; 6141 _flag_k = FK_TEST; 6142 edi = 0x2400E0E8u; /* 0x24004ECA: mov edi, 0x2400e0e8 */ 6143 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004ECF: repne scasb al, byte ptr es:[edi] */ 6144 ecx = ~ecx; /* 0x24004ED1: not ecx */ 6145 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6146 ecx = ecx - 1; /* 0x24004ED3: dec ecx */ 6147 _flag_k = FK_DEC; 6148 ebx = ecx; /* 0x24004ED4: mov ebx, ecx */ 6149 PUSH32(esp, 1); /* 0x24004ED6: push 1 */ 6150 PUSH32(esp, ebx); /* 0x24004ED8: push ebx */ 6151 ecx = ebp + (-0x3C); /* 0x24004ED9: lea ecx, [ebp - 0x3c] */ 6152 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x24004EDC: call dword ptr [0x2400b048] */ 6153 RECOMP_FLAGS_IN(); 6154 /* test LO8(eax), LO8(eax) */ /* 0x24004EE2: test al, al */ 6155 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6156 _cf = 0; 6157 _flag_k = FK_NARROW(FK_TEST, 24); 6158 if (TEST_Z(_flag_a, _flag_b)) goto L_24004F08; /* 0x24004EE4: je 0x24004f08 */ 6159 L_24004EE6: 6160 edi = MEM32(ebp + (-0x38)); /* 0x24004EE6: mov edi, dword ptr [ebp - 0x38] */ 6161 ecx = ebx; /* 0x24004EE9: mov ecx, ebx */ 6162 edx = ecx; /* 0x24004EEB: mov edx, ecx */ 6163 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004EED: shr ecx, 2 */ 6164 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6165 ecx = ecx >> 2u; /* 0x24004EED: shr ecx, 2 */ 6166 esi = 0x2400E0E8u; /* 0x24004EF0: mov esi, 0x2400e0e8 */ 6167 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004EF5: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6168 ecx = edx; /* 0x24004EF7: mov ecx, edx */ 6169 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6170 ecx = ecx & 3; /* 0x24004EF9: and ecx, 3 */ 6171 _cf = 0; 6172 _flag_k = FK_TEST; 6173 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004EFC: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6174 PUSH32(esp, ebx); /* 0x24004EFE: push ebx */ 6175 ecx = ebp + (-0x3C); /* 0x24004EFF: lea ecx, [ebp - 0x3c] */ 6176 RECOMP_ICALL(MEM32(0x2400B03C)); /* 0x24004F02: call dword ptr [0x2400b03c] */ 6177 RECOMP_FLAGS_IN(); 6178 L_24004F08: 6179 eax = ebp + 0xC; /* 0x24004F08: lea eax, [ebp + 0xc] */ 6180 ebx = 0xEu; /* 0x24004F0B: mov ebx, 0xe */ 6181 PUSH32(esp, eax); /* 0x24004F10: push eax */ 6182 ecx = ebp + (-0x58); /* 0x24004F11: lea ecx, [ebp - 0x58] */ 6183 MEM32(ebp + (-0x4)) = ebx; /* 0x24004F14: mov dword ptr [ebp - 4], ebx */ 6184 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004F17: mov dword ptr [ebp + 0xc], 0x2400e294 */ 6185 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24004F1E: call dword ptr [0x2400b098] */ 6186 RECOMP_FLAGS_IN(); 6187 ecx = ebp + (-0x3C); /* 0x24004F24: lea ecx, [ebp - 0x3c] */ 6188 PUSH32(esp, ecx); /* 0x24004F27: push ecx */ 6189 ecx = ebp + (-0x4C); /* 0x24004F28: lea ecx, [ebp - 0x4c] */ 6190 MEM8(ebp + (-0x4)) = (uint8_t)(0xFu); /* 0x24004F2B: mov byte ptr [ebp - 4], 0xf */ 6191 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004F2F: call dword ptr [0x2400b058] */ 6192 RECOMP_FLAGS_IN(); 6193 edx = MEM32(0x2400B054); /* 0x24004F35: mov edx, dword ptr [0x2400b054] */ 6194 PUSH32(esp, 0x2400B560u); /* 0x24004F3B: push 0x2400b560 */ 6195 eax = ebp + (-0x58); /* 0x24004F40: lea eax, [ebp - 0x58] */ 6196 PUSH32(esp, eax); /* 0x24004F43: push eax */ 6197 MEM32(ebp + (-0x58)) = edx; /* 0x24004F44: mov dword ptr [ebp - 0x58], edx */ 6198 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x24004F47: mov byte ptr [ebp - 4], bl */ 6199 RECOMP_ICALL(0x24009988u); /* 0x24004F4A: call 0x24009988 */ /* not lifted */ 6200 RECOMP_FLAGS_IN(); 6201 L_24004F4F: 6202 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24004F4F: mov cl, byte ptr [ebp + 0xf] */ 6203 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(ecx)); /* 0x24004F52: mov byte ptr [ebp - 0x3c], cl */ 6204 PUSH32(esp, edi); /* 0x24004F55: push edi */ 6205 ecx = ebp + (-0x3C); /* 0x24004F56: lea ecx, [ebp - 0x3c] */ 6206 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24004F59: call dword ptr [0x2400b020] */ 6207 RECOMP_FLAGS_IN(); 6208 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6209 ecx = ecx | 0xFFFFFFFFu; /* 0x24004F5F: or ecx, 0xffffffff */ 6210 _cf = 0; 6211 _flag_k = FK_TEST; 6212 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6213 eax = 0; /* 0x24004F62: xor eax, eax */ 6214 _cf = 0; 6215 _flag_k = FK_TEST; 6216 edi = 0x2400E0E8u; /* 0x24004F64: mov edi, 0x2400e0e8 */ 6217 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24004F69: repne scasb al, byte ptr es:[edi] */ 6218 ecx = ~ecx; /* 0x24004F6B: not ecx */ 6219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6220 ecx = ecx - 1; /* 0x24004F6D: dec ecx */ 6221 _flag_k = FK_DEC; 6222 ebx = ecx; /* 0x24004F6E: mov ebx, ecx */ 6223 PUSH32(esp, 1); /* 0x24004F70: push 1 */ 6224 PUSH32(esp, ebx); /* 0x24004F72: push ebx */ 6225 ecx = ebp + (-0x3C); /* 0x24004F73: lea ecx, [ebp - 0x3c] */ 6226 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x24004F76: call dword ptr [0x2400b048] */ 6227 RECOMP_FLAGS_IN(); 6228 /* test LO8(eax), LO8(eax) */ /* 0x24004F7C: test al, al */ 6229 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6230 _cf = 0; 6231 _flag_k = FK_NARROW(FK_TEST, 24); 6232 if (TEST_Z(_flag_a, _flag_b)) goto L_24004FA2; /* 0x24004F7E: je 0x24004fa2 */ 6233 L_24004F80: 6234 edi = MEM32(ebp + (-0x38)); /* 0x24004F80: mov edi, dword ptr [ebp - 0x38] */ 6235 ecx = ebx; /* 0x24004F83: mov ecx, ebx */ 6236 edx = ecx; /* 0x24004F85: mov edx, ecx */ 6237 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24004F87: shr ecx, 2 */ 6238 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6239 ecx = ecx >> 2u; /* 0x24004F87: shr ecx, 2 */ 6240 esi = 0x2400E0E8u; /* 0x24004F8A: mov esi, 0x2400e0e8 */ 6241 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24004F8F: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6242 ecx = edx; /* 0x24004F91: mov ecx, edx */ 6243 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6244 ecx = ecx & 3; /* 0x24004F93: and ecx, 3 */ 6245 _cf = 0; 6246 _flag_k = FK_TEST; 6247 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24004F96: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6248 PUSH32(esp, ebx); /* 0x24004F98: push ebx */ 6249 ecx = ebp + (-0x3C); /* 0x24004F99: lea ecx, [ebp - 0x3c] */ 6250 RECOMP_ICALL(MEM32(0x2400B03C)); /* 0x24004F9C: call dword ptr [0x2400b03c] */ 6251 RECOMP_FLAGS_IN(); 6252 L_24004FA2: 6253 eax = ebp + 0xC; /* 0x24004FA2: lea eax, [ebp + 0xc] */ 6254 ebx = 0x10u; /* 0x24004FA5: mov ebx, 0x10 */ 6255 PUSH32(esp, eax); /* 0x24004FAA: push eax */ 6256 ecx = ebp + (-0x58); /* 0x24004FAB: lea ecx, [ebp - 0x58] */ 6257 MEM32(ebp + (-0x4)) = ebx; /* 0x24004FAE: mov dword ptr [ebp - 4], ebx */ 6258 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x24004FB1: mov dword ptr [ebp + 0xc], 0x2400e294 */ 6259 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24004FB8: call dword ptr [0x2400b098] */ 6260 RECOMP_FLAGS_IN(); 6261 ecx = ebp + (-0x3C); /* 0x24004FBE: lea ecx, [ebp - 0x3c] */ 6262 PUSH32(esp, ecx); /* 0x24004FC1: push ecx */ 6263 ecx = ebp + (-0x4C); /* 0x24004FC2: lea ecx, [ebp - 0x4c] */ 6264 MEM8(ebp + (-0x4)) = (uint8_t)(0x11u); /* 0x24004FC5: mov byte ptr [ebp - 4], 0x11 */ 6265 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24004FC9: call dword ptr [0x2400b058] */ 6266 RECOMP_FLAGS_IN(); 6267 edx = MEM32(0x2400B054); /* 0x24004FCF: mov edx, dword ptr [0x2400b054] */ 6268 PUSH32(esp, 0x2400B560u); /* 0x24004FD5: push 0x2400b560 */ 6269 eax = ebp + (-0x58); /* 0x24004FDA: lea eax, [ebp - 0x58] */ 6270 PUSH32(esp, eax); /* 0x24004FDD: push eax */ 6271 MEM32(ebp + (-0x58)) = edx; /* 0x24004FDE: mov dword ptr [ebp - 0x58], edx */ 6272 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x24004FE1: mov byte ptr [ebp - 4], bl */ 6273 RECOMP_ICALL(0x24009988u); /* 0x24004FE4: call 0x24009988 */ /* not lifted */ 6274 RECOMP_FLAGS_IN(); 6275 L_24004FE9: 6276 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24004FE9: mov cl, byte ptr [ebp + 0xf] */ 6277 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(ecx)); /* 0x24004FEC: mov byte ptr [ebp - 0x3c], cl */ 6278 PUSH32(esp, edi); /* 0x24004FEF: push edi */ 6279 ecx = ebp + (-0x3C); /* 0x24004FF0: lea ecx, [ebp - 0x3c] */ 6280 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24004FF3: call dword ptr [0x2400b020] */ 6281 RECOMP_FLAGS_IN(); 6282 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6283 ecx = ecx | 0xFFFFFFFFu; /* 0x24004FF9: or ecx, 0xffffffff */ 6284 _cf = 0; 6285 _flag_k = FK_TEST; 6286 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6287 eax = 0; /* 0x24004FFC: xor eax, eax */ 6288 _cf = 0; 6289 _flag_k = FK_TEST; 6290 edi = 0x2400E0E8u; /* 0x24004FFE: mov edi, 0x2400e0e8 */ 6291 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24005003: repne scasb al, byte ptr es:[edi] */ 6292 ecx = ~ecx; /* 0x24005005: not ecx */ 6293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6294 ecx = ecx - 1; /* 0x24005007: dec ecx */ 6295 _flag_k = FK_DEC; 6296 ebx = ecx; /* 0x24005008: mov ebx, ecx */ 6297 PUSH32(esp, 1); /* 0x2400500A: push 1 */ 6298 PUSH32(esp, ebx); /* 0x2400500C: push ebx */ 6299 ecx = ebp + (-0x3C); /* 0x2400500D: lea ecx, [ebp - 0x3c] */ 6300 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x24005010: call dword ptr [0x2400b048] */ 6301 RECOMP_FLAGS_IN(); 6302 /* test LO8(eax), LO8(eax) */ /* 0x24005016: test al, al */ 6303 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6304 _cf = 0; 6305 _flag_k = FK_NARROW(FK_TEST, 24); 6306 if (TEST_Z(_flag_a, _flag_b)) goto L_2400503C; /* 0x24005018: je 0x2400503c */ 6307 L_2400501A: 6308 edi = MEM32(ebp + (-0x38)); /* 0x2400501A: mov edi, dword ptr [ebp - 0x38] */ 6309 ecx = ebx; /* 0x2400501D: mov ecx, ebx */ 6310 edx = ecx; /* 0x2400501F: mov edx, ecx */ 6311 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24005021: shr ecx, 2 */ 6312 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6313 ecx = ecx >> 2u; /* 0x24005021: shr ecx, 2 */ 6314 esi = 0x2400E0E8u; /* 0x24005024: mov esi, 0x2400e0e8 */ 6315 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x24005029: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6316 ecx = edx; /* 0x2400502B: mov ecx, edx */ 6317 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6318 ecx = ecx & 3; /* 0x2400502D: and ecx, 3 */ 6319 _cf = 0; 6320 _flag_k = FK_TEST; 6321 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24005030: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6322 PUSH32(esp, ebx); /* 0x24005032: push ebx */ 6323 ecx = ebp + (-0x3C); /* 0x24005033: lea ecx, [ebp - 0x3c] */ 6324 RECOMP_ICALL(MEM32(0x2400B03C)); /* 0x24005036: call dword ptr [0x2400b03c] */ 6325 RECOMP_FLAGS_IN(); 6326 L_2400503C: 6327 eax = ebp + 0xC; /* 0x2400503C: lea eax, [ebp + 0xc] */ 6328 ebx = 0x12u; /* 0x2400503F: mov ebx, 0x12 */ 6329 PUSH32(esp, eax); /* 0x24005044: push eax */ 6330 ecx = ebp + (-0x58); /* 0x24005045: lea ecx, [ebp - 0x58] */ 6331 MEM32(ebp + (-0x4)) = ebx; /* 0x24005048: mov dword ptr [ebp - 4], ebx */ 6332 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x2400504B: mov dword ptr [ebp + 0xc], 0x2400e294 */ 6333 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x24005052: call dword ptr [0x2400b098] */ 6334 RECOMP_FLAGS_IN(); 6335 ecx = ebp + (-0x3C); /* 0x24005058: lea ecx, [ebp - 0x3c] */ 6336 PUSH32(esp, ecx); /* 0x2400505B: push ecx */ 6337 ecx = ebp + (-0x4C); /* 0x2400505C: lea ecx, [ebp - 0x4c] */ 6338 MEM8(ebp + (-0x4)) = (uint8_t)(0x13u); /* 0x2400505F: mov byte ptr [ebp - 4], 0x13 */ 6339 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x24005063: call dword ptr [0x2400b058] */ 6340 RECOMP_FLAGS_IN(); 6341 edx = MEM32(0x2400B054); /* 0x24005069: mov edx, dword ptr [0x2400b054] */ 6342 PUSH32(esp, 0x2400B560u); /* 0x2400506F: push 0x2400b560 */ 6343 eax = ebp + (-0x58); /* 0x24005074: lea eax, [ebp - 0x58] */ 6344 PUSH32(esp, eax); /* 0x24005077: push eax */ 6345 MEM32(ebp + (-0x58)) = edx; /* 0x24005078: mov dword ptr [ebp - 0x58], edx */ 6346 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x2400507B: mov byte ptr [ebp - 4], bl */ 6347 RECOMP_ICALL(0x24009988u); /* 0x2400507E: call 0x24009988 */ /* not lifted */ 6348 RECOMP_FLAGS_IN(); 6349 L_24005083: 6350 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24005083: mov cl, byte ptr [ebp + 0xf] */ 6351 MEM8(ebp + (-0x3C)) = (uint8_t)(LO8(ecx)); /* 0x24005086: mov byte ptr [ebp - 0x3c], cl */ 6352 PUSH32(esp, 0); /* 0x24005089: push 0 */ 6353 ecx = ebp + (-0x3C); /* 0x2400508B: lea ecx, [ebp - 0x3c] */ 6354 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x2400508E: call dword ptr [0x2400b020] */ 6355 RECOMP_FLAGS_IN(); 6356 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6357 ecx = ecx | 0xFFFFFFFFu; /* 0x24005094: or ecx, 0xffffffff */ 6358 _cf = 0; 6359 _flag_k = FK_TEST; 6360 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6361 eax = 0; /* 0x24005097: xor eax, eax */ 6362 _cf = 0; 6363 _flag_k = FK_TEST; 6364 edi = 0x2400E0D0u; /* 0x24005099: mov edi, 0x2400e0d0 */ 6365 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2400509E: repne scasb al, byte ptr es:[edi] */ 6366 ecx = ~ecx; /* 0x240050A0: not ecx */ 6367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6368 ecx = ecx - 1; /* 0x240050A2: dec ecx */ 6369 _flag_k = FK_DEC; 6370 ebx = ecx; /* 0x240050A3: mov ebx, ecx */ 6371 PUSH32(esp, 1); /* 0x240050A5: push 1 */ 6372 PUSH32(esp, ebx); /* 0x240050A7: push ebx */ 6373 ecx = ebp + (-0x3C); /* 0x240050A8: lea ecx, [ebp - 0x3c] */ 6374 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x240050AB: call dword ptr [0x2400b048] */ 6375 RECOMP_FLAGS_IN(); 6376 /* test LO8(eax), LO8(eax) */ /* 0x240050B1: test al, al */ 6377 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6378 _cf = 0; 6379 _flag_k = FK_NARROW(FK_TEST, 24); 6380 if (TEST_Z(_flag_a, _flag_b)) goto L_240050D7; /* 0x240050B3: je 0x240050d7 */ 6381 L_240050B5: 6382 edi = MEM32(ebp + (-0x38)); /* 0x240050B5: mov edi, dword ptr [ebp - 0x38] */ 6383 ecx = ebx; /* 0x240050B8: mov ecx, ebx */ 6384 edx = ecx; /* 0x240050BA: mov edx, ecx */ 6385 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240050BC: shr ecx, 2 */ 6386 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6387 ecx = ecx >> 2u; /* 0x240050BC: shr ecx, 2 */ 6388 esi = 0x2400E0D0u; /* 0x240050BF: mov esi, 0x2400e0d0 */ 6389 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x240050C4: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6390 ecx = edx; /* 0x240050C6: mov ecx, edx */ 6391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6392 ecx = ecx & 3; /* 0x240050C8: and ecx, 3 */ 6393 _cf = 0; 6394 _flag_k = FK_TEST; 6395 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240050CB: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_n && _df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else if (_n) { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6396 PUSH32(esp, ebx); /* 0x240050CD: push ebx */ 6397 ecx = ebp + (-0x3C); /* 0x240050CE: lea ecx, [ebp - 0x3c] */ 6398 RECOMP_ICALL(MEM32(0x2400B03C)); /* 0x240050D1: call dword ptr [0x2400b03c] */ 6399 RECOMP_FLAGS_IN(); 6400 L_240050D7: 6401 eax = ebp + 0xC; /* 0x240050D7: lea eax, [ebp + 0xc] */ 6402 ebx = 0xAu; /* 0x240050DA: mov ebx, 0xa */ 6403 PUSH32(esp, eax); /* 0x240050DF: push eax */ 6404 ecx = ebp + (-0x58); /* 0x240050E0: lea ecx, [ebp - 0x58] */ 6405 MEM32(ebp + (-0x4)) = ebx; /* 0x240050E3: mov dword ptr [ebp - 4], ebx */ 6406 MEM32(ebp + 0xC) = 0x2400E294u; /* 0x240050E6: mov dword ptr [ebp + 0xc], 0x2400e294 */ 6407 RECOMP_ICALL(MEM32(0x2400B098)); /* 0x240050ED: call dword ptr [0x2400b098] */ 6408 RECOMP_FLAGS_IN(); 6409 ecx = ebp + (-0x3C); /* 0x240050F3: lea ecx, [ebp - 0x3c] */ 6410 PUSH32(esp, ecx); /* 0x240050F6: push ecx */ 6411 ecx = ebp + (-0x4C); /* 0x240050F7: lea ecx, [ebp - 0x4c] */ 6412 MEM8(ebp + (-0x4)) = (uint8_t)(0xBu); /* 0x240050FA: mov byte ptr [ebp - 4], 0xb */ 6413 RECOMP_ICALL(MEM32(0x2400B058)); /* 0x240050FE: call dword ptr [0x2400b058] */ 6414 RECOMP_FLAGS_IN(); 6415 edx = MEM32(0x2400B054); /* 0x24005104: mov edx, dword ptr [0x2400b054] */ 6416 PUSH32(esp, 0x2400B560u); /* 0x2400510A: push 0x2400b560 */ 6417 eax = ebp + (-0x58); /* 0x2400510F: lea eax, [ebp - 0x58] */ 6418 PUSH32(esp, eax); /* 0x24005112: push eax */ 6419 MEM32(ebp + (-0x58)) = edx; /* 0x24005113: mov dword ptr [ebp - 0x58], edx */ 6420 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x24005116: mov byte ptr [ebp - 4], bl */ 6421 RECOMP_ICALL(0x24009988u); /* 0x24005119: call 0x24009988 */ /* not lifted */ 6422 RECOMP_FLAGS_IN(); 6423 /* nop */ /* 0x2400511E: nop */ 6424 /* nop */ /* 0x2400511F: nop */ 6425 PUSH32(esp, ebp); /* 0x24005120: push ebp */ 6426 ebp = esp; /* 0x24005121: mov ebp, esp */ 6427 PUSH32(esp, ecx); /* 0x24005123: push ecx */ 6428 PUSH32(esp, esi); /* 0x24005124: push esi */ 6429 esi = ecx; /* 0x24005125: mov esi, ecx */ 6430 eax = MEM32(esi + 0x4); /* 0x24005127: mov eax, dword ptr [esi + 4] */ 6431 PUSH32(esp, eax); /* 0x2400512A: push eax */ 6432 MEM32(ebp + (-0x4)) = eax; /* 0x2400512B: mov dword ptr [ebp - 4], eax */ 6433 RECOMP_ICALL(0x240097F2u); /* 0x2400512E: call 0x240097f2 */ /* not lifted */ 6434 RECOMP_FLAGS_IN(); 6435 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6437 esp = esp + 4; /* 0x24005133: add esp, 4 */ 6438 _flag_k = FK_ADD; 6439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6440 eax = 0; /* 0x24005136: xor eax, eax */ 6441 _cf = 0; 6442 _flag_k = FK_TEST; 6443 MEM32(esi + 0x4) = eax; /* 0x24005138: mov dword ptr [esi + 4], eax */ 6444 MEM32(esi + 0x8) = eax; /* 0x2400513B: mov dword ptr [esi + 8], eax */ 6445 MEM32(esi + 0xC) = eax; /* 0x2400513E: mov dword ptr [esi + 0xc], eax */ 6446 esi = POP32_VAL(esp); /* 0x24005141: pop esi */ 6447 esp = ebp; /* 0x24005142: mov esp, ebp */ 6448 ebp = POP32_VAL(esp); /* 0x24005144: pop ebp */ 6449 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005145: ret */ 6450 RECOMP_REGS_OUT(); 6451 } 6452 6453 void sub_24005120(void) { 6454 int _fpu_cmp = 0; 6455 uint32_t _cf = 0; 6456 int _df = 1; 6457 uint32_t _flag_k = FK_NONE; 6458 uint32_t _flag_a = 0, _flag_b = 0; 6459 uint32_t _itail_tgt = 0; 6460 RECOMP_REGS_LOCALS 6461 RECOMP_ENTER(0x24005120u); 6462 6463 L_24005120: 6464 PUSH32(esp, ebp); /* 0x24005120: push ebp */ 6465 ebp = esp; /* 0x24005121: mov ebp, esp */ 6466 PUSH32(esp, ecx); /* 0x24005123: push ecx */ 6467 PUSH32(esp, esi); /* 0x24005124: push esi */ 6468 esi = ecx; /* 0x24005125: mov esi, ecx */ 6469 eax = MEM32(esi + 0x4); /* 0x24005127: mov eax, dword ptr [esi + 4] */ 6470 PUSH32(esp, eax); /* 0x2400512A: push eax */ 6471 MEM32(ebp + (-0x4)) = eax; /* 0x2400512B: mov dword ptr [ebp - 4], eax */ 6472 RECOMP_ICALL(0x240097F2u); /* 0x2400512E: call 0x240097f2 */ /* not lifted */ 6473 RECOMP_FLAGS_IN(); 6474 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6476 esp = esp + 4; /* 0x24005133: add esp, 4 */ 6477 _flag_k = FK_ADD; 6478 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6479 eax = 0; /* 0x24005136: xor eax, eax */ 6480 _cf = 0; 6481 _flag_k = FK_TEST; 6482 MEM32(esi + 0x4) = eax; /* 0x24005138: mov dword ptr [esi + 4], eax */ 6483 MEM32(esi + 0x8) = eax; /* 0x2400513B: mov dword ptr [esi + 8], eax */ 6484 MEM32(esi + 0xC) = eax; /* 0x2400513E: mov dword ptr [esi + 0xc], eax */ 6485 esi = POP32_VAL(esp); /* 0x24005141: pop esi */ 6486 esp = ebp; /* 0x24005142: mov esp, ebp */ 6487 ebp = POP32_VAL(esp); /* 0x24005144: pop ebp */ 6488 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005145: ret */ 6489 RECOMP_REGS_OUT(); 6490 } 6491 6492 void sub_24005150(void) { 6493 int _fpu_cmp = 0; 6494 uint32_t _cf = 0; 6495 int _df = 1; 6496 uint32_t _flag_k = FK_NONE; 6497 uint32_t _flag_a = 0, _flag_b = 0; 6498 uint32_t _itail_tgt = 0; 6499 RECOMP_REGS_LOCALS 6500 RECOMP_ENTER(0x24005150u); 6501 6502 L_24005150: 6503 edx = MEM32(ecx + 0x4); /* 0x24005150: mov edx, dword ptr [ecx + 4] */ 6504 /* test edx, edx */ /* 0x24005153: test edx, edx */ 6505 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6506 _cf = 0; 6507 _flag_k = FK_TEST; 6508 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400515A; /* 0x24005155: jne 0x2400515a */ 6509 L_24005157: 6510 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6511 eax = 0; /* 0x24005157: xor eax, eax */ 6512 _cf = 0; 6513 _flag_k = FK_TEST; 6514 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005159: ret */ 6515 L_2400515A: 6516 eax = MEM32(ecx + 0x8); /* 0x2400515A: mov eax, dword ptr [ecx + 8] */ 6517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6519 eax = eax - edx; /* 0x2400515D: sub eax, edx */ 6520 _flag_k = FK_CMP; 6521 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2400515F: sar eax, 2 */ 6522 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6523 eax = (uint32_t)((int32_t)eax >> 2u); 6524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005162: ret */ 6525 RECOMP_REGS_OUT(); 6526 } 6527 6528 void sub_24005170(void) { 6529 int _fpu_cmp = 0; 6530 uint32_t _cf = 0; 6531 int _df = 1; 6532 uint32_t _flag_k = FK_NONE; 6533 uint32_t _flag_a = 0, _flag_b = 0; 6534 uint32_t _itail_tgt = 0; 6535 RECOMP_REGS_LOCALS 6536 RECOMP_ENTER(0x24005170u); 6537 6538 L_24005170: 6539 PUSH32(esp, ebp); /* 0x24005170: push ebp */ 6540 ebp = esp; /* 0x24005171: mov ebp, esp */ 6541 ecx = MEM32(ecx + 0x4); /* 0x24005173: mov ecx, dword ptr [ecx + 4] */ 6542 eax = MEM32(ebp + 0x8); /* 0x24005176: mov eax, dword ptr [ebp + 8] */ 6543 MEM32(eax) = ecx; /* 0x24005179: mov dword ptr [eax], ecx */ 6544 ebp = POP32_VAL(esp); /* 0x2400517B: pop ebp */ 6545 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2400517C: ret 4 */ 6546 RECOMP_REGS_OUT(); 6547 } 6548 6549 void sub_24005180(void) { 6550 int _fpu_cmp = 0; 6551 uint32_t _cf = 0; 6552 int _df = 1; 6553 uint32_t _flag_k = FK_NONE; 6554 uint32_t _flag_a = 0, _flag_b = 0; 6555 uint32_t _itail_tgt = 0; 6556 RECOMP_REGS_LOCALS 6557 RECOMP_ENTER(0x24005180u); 6558 6559 L_24005180: 6560 PUSH32(esp, ebp); /* 0x24005180: push ebp */ 6561 ebp = esp; /* 0x24005181: mov ebp, esp */ 6562 PUSH32(esp, ecx); /* 0x24005183: push ecx */ 6563 PUSH32(esp, ebx); /* 0x24005184: push ebx */ 6564 PUSH32(esp, esi); /* 0x24005185: push esi */ 6565 PUSH32(esp, edi); /* 0x24005186: push edi */ 6566 edi = ecx; /* 0x24005187: mov edi, ecx */ 6567 eax = MEM32(edi + 0x4); /* 0x24005189: mov eax, dword ptr [edi + 4] */ 6568 esi = MEM32(eax + 0x4); /* 0x2400518C: mov esi, dword ptr [eax + 4] */ 6569 ebx = eax; /* 0x2400518F: mov ebx, eax */ 6570 /* cmp esi, MEM32(edi + 0x8) */ /* 0x24005191: cmp esi, dword ptr [edi + 8] */ 6571 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6573 _flag_k = FK_CMP; 6574 if (CMP_EQ(_flag_a, _flag_b)) goto L_240051B4; /* 0x24005194: je 0x240051b4 */ 6575 L_24005196: 6576 eax = MEM32(ebp + 0xC); /* 0x24005196: mov eax, dword ptr [ebp + 0xc] */ 6577 PUSH32(esp, eax); /* 0x24005199: push eax */ 6578 ecx = esi + 0xC; /* 0x2400519A: lea ecx, [esi + 0xc] */ 6579 RECOMP_ICALL(0x24003F00u); /* 0x2400519D: call 0x24003f00 */ /* not lifted */ 6580 RECOMP_FLAGS_IN(); 6581 /* test LO8(eax), LO8(eax) */ /* 0x240051A2: test al, al */ 6582 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6583 _cf = 0; 6584 _flag_k = FK_NARROW(FK_TEST, 24); 6585 if (TEST_Z(_flag_a, _flag_b)) goto L_240051AB; /* 0x240051A4: je 0x240051ab */ 6586 L_240051A6: 6587 esi = MEM32(esi + 0x8); /* 0x240051A6: mov esi, dword ptr [esi + 8] */ 6588 goto L_240051AF; /* 0x240051A9: jmp 0x240051af */ 6589 L_240051AB: 6590 ebx = esi; /* 0x240051AB: mov ebx, esi */ 6591 esi = MEM32(esi); /* 0x240051AD: mov esi, dword ptr [esi] */ 6592 L_240051AF: 6593 /* cmp esi, MEM32(edi + 0x8) */ /* 0x240051AF: cmp esi, dword ptr [edi + 8] */ 6594 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6596 _flag_k = FK_CMP; 6597 RECOMP_BACKEDGE(); 6598 if (CMP_NE(_flag_a, _flag_b)) goto L_24005196; /* 0x240051B2: jne 0x24005196 */ 6599 L_240051B4: 6600 edi = MEM32(edi + 0x4); /* 0x240051B4: mov edi, dword ptr [edi + 4] */ 6601 /* cmp ebx, edi */ /* 0x240051B7: cmp ebx, edi */ 6602 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 6603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6604 _flag_k = FK_CMP; 6605 MEM32(ebp + (-0x4)) = ebx; /* 0x240051B9: mov dword ptr [ebp - 4], ebx */ 6606 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005249; /* 0x240051BC: je 0x24005249 */ 6607 L_240051C2: 6608 ecx = MEM32(ebp + 0xC); /* 0x240051C2: mov ecx, dword ptr [ebp + 0xc] */ 6609 esi = ebx + 0x30; /* 0x240051C5: lea esi, [ebx + 0x30] */ 6610 eax = ecx + 0x24; /* 0x240051C8: lea eax, [ecx + 0x24] */ 6611 L_240051CB: 6612 SET_LO8(edx, MEM8(eax)); /* 0x240051CB: mov dl, byte ptr [eax] */ 6613 SET_LO8(ecx, LO8(edx)); /* 0x240051CD: mov cl, dl */ 6614 /* cmp LO8(edx), MEM8(esi) */ /* 0x240051CF: cmp dl, byte ptr [esi] */ 6615 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 6616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6617 _flag_k = FK_NARROW(FK_CMP, 24); 6618 if (CMP_NE(_flag_a, _flag_b)) goto L_240051EF; /* 0x240051D1: jne 0x240051ef */ 6619 L_240051D3: 6620 /* test LO8(ecx), LO8(ecx) */ /* 0x240051D3: test cl, cl */ 6621 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6622 _cf = 0; 6623 _flag_k = FK_NARROW(FK_TEST, 24); 6624 if (TEST_Z(_flag_a, _flag_b)) goto L_240051EB; /* 0x240051D5: je 0x240051eb */ 6625 L_240051D7: 6626 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x240051D7: mov dl, byte ptr [eax + 1] */ 6627 SET_LO8(ecx, LO8(edx)); /* 0x240051DA: mov cl, dl */ 6628 /* cmp LO8(edx), MEM8(esi + 0x1) */ /* 0x240051DC: cmp dl, byte ptr [esi + 1] */ 6629 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 6630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6631 _flag_k = FK_NARROW(FK_CMP, 24); 6632 if (CMP_NE(_flag_a, _flag_b)) goto L_240051EF; /* 0x240051DF: jne 0x240051ef */ 6633 L_240051E1: 6634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6636 eax = eax + 2; /* 0x240051E1: add eax, 2 */ 6637 _flag_k = FK_ADD; 6638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 6639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6640 esi = esi + 2; /* 0x240051E4: add esi, 2 */ 6641 _flag_k = FK_ADD; 6642 /* test LO8(ecx), LO8(ecx) */ /* 0x240051E7: test cl, cl */ 6643 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6644 _cf = 0; 6645 _flag_k = FK_NARROW(FK_TEST, 24); 6646 RECOMP_BACKEDGE(); 6647 if (TEST_NZ(_flag_a, _flag_b)) goto L_240051CB; /* 0x240051E9: jne 0x240051cb */ 6648 L_240051EB: 6649 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6650 eax = 0; /* 0x240051EB: xor eax, eax */ 6651 _cf = 0; 6652 _flag_k = FK_TEST; 6653 goto L_240051F4; /* 0x240051ED: jmp 0x240051f4 */ 6654 L_240051EF: 6655 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x240051EF: sbb eax, eax */ 6656 eax = _sc ? 0xFFFFFFFFu : 0; 6657 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6658 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6659 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x240051F1: sbb eax, -1 */ 6660 eax = _sa - _sb - _sc; 6661 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6662 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6663 L_240051F4: 6664 /* test eax, eax */ /* 0x240051F4: test eax, eax */ 6665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6666 _cf = 0; 6667 _flag_k = FK_TEST; 6668 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400522F; /* 0x240051F6: jne 0x2400522f */ 6669 L_240051F8: 6670 eax = MEM32(ebp + 0xC); /* 0x240051F8: mov eax, dword ptr [ebp + 0xc] */ 6671 esi = MEM32(ebx + 0xC); /* 0x240051FB: mov esi, dword ptr [ebx + 0xc] */ 6672 eax = MEM32(eax); /* 0x240051FE: mov eax, dword ptr [eax] */ 6673 L_24005200: 6674 SET_LO8(edx, MEM8(eax)); /* 0x24005200: mov dl, byte ptr [eax] */ 6675 SET_LO8(ebx, MEM8(esi)); /* 0x24005202: mov bl, byte ptr [esi] */ 6676 SET_LO8(ecx, LO8(edx)); /* 0x24005204: mov cl, dl */ 6677 /* cmp LO8(edx), LO8(ebx) */ /* 0x24005206: cmp dl, bl */ 6678 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6680 _flag_k = FK_NARROW(FK_CMP, 24); 6681 if (CMP_NE(_flag_a, _flag_b)) goto L_24005228; /* 0x24005208: jne 0x24005228 */ 6682 L_2400520A: 6683 /* test LO8(ecx), LO8(ecx) */ /* 0x2400520A: test cl, cl */ 6684 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6685 _cf = 0; 6686 _flag_k = FK_NARROW(FK_TEST, 24); 6687 if (TEST_Z(_flag_a, _flag_b)) goto L_24005224; /* 0x2400520C: je 0x24005224 */ 6688 L_2400520E: 6689 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x2400520E: mov dl, byte ptr [eax + 1] */ 6690 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x24005211: mov bl, byte ptr [esi + 1] */ 6691 SET_LO8(ecx, LO8(edx)); /* 0x24005214: mov cl, dl */ 6692 /* cmp LO8(edx), LO8(ebx) */ /* 0x24005216: cmp dl, bl */ 6693 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6695 _flag_k = FK_NARROW(FK_CMP, 24); 6696 if (CMP_NE(_flag_a, _flag_b)) goto L_24005228; /* 0x24005218: jne 0x24005228 */ 6697 L_2400521A: 6698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6700 eax = eax + 2; /* 0x2400521A: add eax, 2 */ 6701 _flag_k = FK_ADD; 6702 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 6703 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6704 esi = esi + 2; /* 0x2400521D: add esi, 2 */ 6705 _flag_k = FK_ADD; 6706 /* test LO8(ecx), LO8(ecx) */ /* 0x24005220: test cl, cl */ 6707 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6708 _cf = 0; 6709 _flag_k = FK_NARROW(FK_TEST, 24); 6710 RECOMP_BACKEDGE(); 6711 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005200; /* 0x24005222: jne 0x24005200 */ 6712 L_24005224: 6713 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6714 eax = 0; /* 0x24005224: xor eax, eax */ 6715 _cf = 0; 6716 _flag_k = FK_TEST; 6717 goto L_2400522D; /* 0x24005226: jmp 0x2400522d */ 6718 L_24005228: 6719 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x24005228: sbb eax, eax */ 6720 eax = _sc ? 0xFFFFFFFFu : 0; 6721 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6722 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6723 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x2400522A: sbb eax, -1 */ 6724 eax = _sa - _sb - _sc; 6725 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6726 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6727 L_2400522D: 6728 /* test eax, eax */ /* 0x2400522D: test eax, eax */ 6729 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6730 _cf = 0; 6731 _flag_k = FK_TEST; 6732 L_2400522F: 6733 SET_LO8(eax, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x2400522F: setl al */ 6734 /* test LO8(eax), LO8(eax) */ /* 0x24005232: test al, al */ 6735 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6736 _cf = 0; 6737 _flag_k = FK_NARROW(FK_TEST, 24); 6738 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005249; /* 0x24005234: jne 0x24005249 */ 6739 L_24005236: 6740 eax = ebp + (-0x4); /* 0x24005236: lea eax, [ebp - 4] */ 6741 ecx = MEM32(eax); /* 0x24005239: mov ecx, dword ptr [eax] */ 6742 eax = MEM32(ebp + 0x8); /* 0x2400523B: mov eax, dword ptr [ebp + 8] */ 6743 edi = POP32_VAL(esp); /* 0x2400523E: pop edi */ 6744 esi = POP32_VAL(esp); /* 0x2400523F: pop esi */ 6745 MEM32(eax) = ecx; /* 0x24005240: mov dword ptr [eax], ecx */ 6746 ebx = POP32_VAL(esp); /* 0x24005242: pop ebx */ 6747 esp = ebp; /* 0x24005243: mov esp, ebp */ 6748 ebp = POP32_VAL(esp); /* 0x24005245: pop ebp */ 6749 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24005246: ret 8 */ 6750 L_24005249: 6751 MEM32(ebp + 0xC) = edi; /* 0x24005249: mov dword ptr [ebp + 0xc], edi */ 6752 eax = ebp + 0xC; /* 0x2400524C: lea eax, [ebp + 0xc] */ 6753 ecx = MEM32(eax); /* 0x2400524F: mov ecx, dword ptr [eax] */ 6754 eax = MEM32(ebp + 0x8); /* 0x24005251: mov eax, dword ptr [ebp + 8] */ 6755 edi = POP32_VAL(esp); /* 0x24005254: pop edi */ 6756 esi = POP32_VAL(esp); /* 0x24005255: pop esi */ 6757 MEM32(eax) = ecx; /* 0x24005256: mov dword ptr [eax], ecx */ 6758 ebx = POP32_VAL(esp); /* 0x24005258: pop ebx */ 6759 esp = ebp; /* 0x24005259: mov esp, ebp */ 6760 ebp = POP32_VAL(esp); /* 0x2400525B: pop ebp */ 6761 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400525C: ret 8 */ 6762 RECOMP_REGS_OUT(); 6763 } 6764 6765 void sub_24005260(void) { 6766 int _fpu_cmp = 0; 6767 uint32_t _cf = 0; 6768 int _df = 1; 6769 uint32_t _flag_k = FK_NONE; 6770 uint32_t _flag_a = 0, _flag_b = 0; 6771 uint32_t _itail_tgt = 0; 6772 RECOMP_REGS_LOCALS 6773 RECOMP_ENTER(0x24005260u); 6774 6775 L_24005260: 6776 PUSH32(esp, ebp); /* 0x24005260: push ebp */ 6777 ebp = esp; /* 0x24005261: mov ebp, esp */ 6778 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6780 esp = esp - 0xCu; /* 0x24005263: sub esp, 0xc */ 6781 _flag_k = FK_CMP; 6782 eax = ecx; /* 0x24005266: mov eax, ecx */ 6783 ecx = MEM32(eax + 0xC); /* 0x24005268: mov ecx, dword ptr [eax + 0xc] */ 6784 PUSH32(esp, ebx); /* 0x2400526B: push ebx */ 6785 PUSH32(esp, esi); /* 0x2400526C: push esi */ 6786 esi = MEM32(eax + 0x8); /* 0x2400526D: mov esi, dword ptr [eax + 8] */ 6787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 6788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6789 ecx = ecx - esi; /* 0x24005270: sub ecx, esi */ 6790 _flag_k = FK_CMP; 6791 PUSH32(esp, edi); /* 0x24005272: push edi */ 6792 edi = MEM32(ebp + 0xC); /* 0x24005273: mov edi, dword ptr [ebp + 0xc] */ 6793 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24005276: sar ecx, 2 */ 6794 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6795 ecx = (uint32_t)((int32_t)ecx >> 2u); 6796 /* cmp ecx, edi */ /* 0x24005279: cmp ecx, edi */ 6797 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 6798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6799 _flag_k = FK_CMP; 6800 MEM32(ebp + (-0x4)) = eax; /* 0x2400527B: mov dword ptr [ebp - 4], eax */ 6801 if (CMP_AE(_flag_a, _flag_b)) goto L_24005387; /* 0x2400527E: jae 0x24005387 */ 6802 L_24005284: 6803 ecx = MEM32(eax + 0x4); /* 0x24005284: mov ecx, dword ptr [eax + 4] */ 6804 /* test ecx, ecx */ /* 0x24005287: test ecx, ecx */ 6805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6806 _cf = 0; 6807 _flag_k = FK_TEST; 6808 if (TEST_Z(_flag_a, _flag_b)) goto L_24005296; /* 0x24005289: je 0x24005296 */ 6809 L_2400528B: 6810 eax = esi; /* 0x2400528B: mov eax, esi */ 6811 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6813 eax = eax - ecx; /* 0x2400528D: sub eax, ecx */ 6814 _flag_k = FK_CMP; 6815 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x2400528F: sar eax, 2 */ 6816 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6817 eax = (uint32_t)((int32_t)eax >> 2u); 6818 /* cmp edi, eax */ /* 0x24005292: cmp edi, eax */ 6819 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6821 _flag_k = FK_CMP; 6822 if (CMP_B(_flag_a, _flag_b)) goto L_24005298; /* 0x24005294: jb 0x24005298 */ 6823 L_24005296: 6824 eax = edi; /* 0x24005296: mov eax, edi */ 6825 L_24005298: 6826 /* test ecx, ecx */ /* 0x24005298: test ecx, ecx */ 6827 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6828 _cf = 0; 6829 _flag_k = FK_TEST; 6830 if (TEST_NZ(_flag_a, _flag_b)) goto L_240052A0; /* 0x2400529A: jne 0x240052a0 */ 6831 L_2400529C: 6832 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6833 esi = 0; /* 0x2400529C: xor esi, esi */ 6834 _cf = 0; 6835 _flag_k = FK_TEST; 6836 goto L_240052A5; /* 0x2400529E: jmp 0x240052a5 */ 6837 L_240052A0: 6838 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6840 esi = esi - ecx; /* 0x240052A0: sub esi, ecx */ 6841 _flag_k = FK_CMP; 6842 if (2u) _cf = (((esi) >> 1) & 1u); /* 0x240052A2: sar esi, 2 */ 6843 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6844 esi = (uint32_t)((int32_t)esi >> 2u); 6845 L_240052A5: 6846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6848 eax = eax + esi; /* 0x240052A5: add eax, esi */ 6849 _flag_k = FK_ADD; 6850 /* test eax, eax */ /* 0x240052A7: test eax, eax */ 6851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6852 _cf = 0; 6853 _flag_k = FK_TEST; 6854 MEM32(ebp + (-0xC)) = eax; /* 0x240052A9: mov dword ptr [ebp - 0xc], eax */ 6855 if (TEST_NS(_flag_a, _flag_b)) goto L_240052B0; /* 0x240052AC: jge 0x240052b0 */ 6856 L_240052AE: 6857 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6858 eax = 0; /* 0x240052AE: xor eax, eax */ 6859 _cf = 0; 6860 _flag_k = FK_TEST; 6861 L_240052B0: 6862 edx = eax * 4; /* 0x240052B0: lea edx, [eax*4] */ 6863 PUSH32(esp, edx); /* 0x240052B7: push edx */ 6864 RECOMP_ICALL(0x24009838u); /* 0x240052B8: call 0x24009838 */ /* not lifted */ 6865 RECOMP_FLAGS_IN(); 6866 edi = MEM32(ebp + (-0x4)); /* 0x240052BD: mov edi, dword ptr [ebp - 4] */ 6867 edx = MEM32(ebp + 0x8); /* 0x240052C0: mov edx, dword ptr [ebp + 8] */ 6868 MEM32(ebp + (-0x8)) = eax; /* 0x240052C3: mov dword ptr [ebp - 8], eax */ 6869 ecx = eax; /* 0x240052C6: mov ecx, eax */ 6870 eax = MEM32(edi + 0x4); /* 0x240052C8: mov eax, dword ptr [edi + 4] */ 6871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6873 esp = esp + 4; /* 0x240052CB: add esp, 4 */ 6874 _flag_k = FK_ADD; 6875 /* cmp eax, edx */ /* 0x240052CE: cmp eax, edx */ 6876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6878 _flag_k = FK_CMP; 6879 if (CMP_EQ(_flag_a, _flag_b)) goto L_240052E4; /* 0x240052D0: je 0x240052e4 */ 6880 L_240052D2: 6881 /* test ecx, ecx */ /* 0x240052D2: test ecx, ecx */ 6882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6883 _cf = 0; 6884 _flag_k = FK_TEST; 6885 if (TEST_Z(_flag_a, _flag_b)) goto L_240052DA; /* 0x240052D4: je 0x240052da */ 6886 L_240052D6: 6887 esi = MEM32(eax); /* 0x240052D6: mov esi, dword ptr [eax] */ 6888 MEM32(ecx) = esi; /* 0x240052D8: mov dword ptr [ecx], esi */ 6889 L_240052DA: 6890 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6892 eax = eax + 4; /* 0x240052DA: add eax, 4 */ 6893 _flag_k = FK_ADD; 6894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 6895 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6896 ecx = ecx + 4; /* 0x240052DD: add ecx, 4 */ 6897 _flag_k = FK_ADD; 6898 /* cmp eax, edx */ /* 0x240052E0: cmp eax, edx */ 6899 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6901 _flag_k = FK_CMP; 6902 RECOMP_BACKEDGE(); 6903 if (CMP_NE(_flag_a, _flag_b)) goto L_240052D2; /* 0x240052E2: jne 0x240052d2 */ 6904 L_240052E4: 6905 edx = MEM32(ebp + 0xC); /* 0x240052E4: mov edx, dword ptr [ebp + 0xc] */ 6906 /* test edx, edx */ /* 0x240052E7: test edx, edx */ 6907 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6908 _cf = 0; 6909 _flag_k = FK_TEST; 6910 eax = ecx; /* 0x240052E9: mov eax, ecx */ 6911 if (TEST_Z(_flag_a, _flag_b)) goto L_24005300; /* 0x240052EB: jbe 0x24005300 */ 6912 L_240052ED: 6913 esi = edx; /* 0x240052ED: mov esi, edx */ 6914 L_240052EF: 6915 /* test eax, eax */ /* 0x240052EF: test eax, eax */ 6916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6917 _cf = 0; 6918 _flag_k = FK_TEST; 6919 if (TEST_Z(_flag_a, _flag_b)) goto L_240052FA; /* 0x240052F1: je 0x240052fa */ 6920 L_240052F3: 6921 ebx = MEM32(ebp + 0x10); /* 0x240052F3: mov ebx, dword ptr [ebp + 0x10] */ 6922 ebx = MEM32(ebx); /* 0x240052F6: mov ebx, dword ptr [ebx] */ 6923 MEM32(eax) = ebx; /* 0x240052F8: mov dword ptr [eax], ebx */ 6924 L_240052FA: 6925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6927 eax = eax + 4; /* 0x240052FA: add eax, 4 */ 6928 _flag_k = FK_ADD; 6929 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6930 esi = esi - 1; /* 0x240052FD: dec esi */ 6931 _flag_k = FK_DEC; 6932 RECOMP_BACKEDGE(); 6933 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_240052EF; /* 0x240052FE: jne 0x240052ef */ 6934 L_24005300: 6935 ebx = MEM32(edi + 0x8); /* 0x24005300: mov ebx, dword ptr [edi + 8] */ 6936 /* cmp MEM32(ebp + 0x8), ebx */ /* 0x24005303: cmp dword ptr [ebp + 8], ebx */ 6937 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(ebx); 6938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6939 _flag_k = FK_CMP; 6940 esi = edx * 4; /* 0x24005306: lea esi, [edx*4] */ 6941 edx = esi + ecx; /* 0x2400530D: lea edx, [esi + ecx] */ 6942 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400532D; /* 0x24005310: je 0x2400532d */ 6943 L_24005312: 6944 eax = edx; /* 0x24005312: mov eax, edx */ 6945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6947 eax = eax - esi; /* 0x24005314: sub eax, esi */ 6948 _flag_k = FK_CMP; 6949 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6951 eax = eax - ecx; /* 0x24005316: sub eax, ecx */ 6952 _flag_k = FK_CMP; 6953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x8)); 6954 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6955 eax = eax + MEM32(ebp + 0x8); /* 0x24005318: add eax, dword ptr [ebp + 8] */ 6956 _flag_k = FK_ADD; 6957 L_2400531B: 6958 /* test edx, edx */ /* 0x2400531B: test edx, edx */ 6959 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 6960 _cf = 0; 6961 _flag_k = FK_TEST; 6962 if (TEST_Z(_flag_a, _flag_b)) goto L_24005323; /* 0x2400531D: je 0x24005323 */ 6963 L_2400531F: 6964 ecx = MEM32(eax); /* 0x2400531F: mov ecx, dword ptr [eax] */ 6965 MEM32(edx) = ecx; /* 0x24005321: mov dword ptr [edx], ecx */ 6966 L_24005323: 6967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6969 eax = eax + 4; /* 0x24005323: add eax, 4 */ 6970 _flag_k = FK_ADD; 6971 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6973 edx = edx + 4; /* 0x24005326: add edx, 4 */ 6974 _flag_k = FK_ADD; 6975 /* cmp eax, ebx */ /* 0x24005329: cmp eax, ebx */ 6976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6978 _flag_k = FK_CMP; 6979 RECOMP_BACKEDGE(); 6980 if (CMP_NE(_flag_a, _flag_b)) goto L_2400531B; /* 0x2400532B: jne 0x2400531b */ 6981 L_2400532D: 6982 eax = MEM32(edi + 0x4); /* 0x2400532D: mov eax, dword ptr [edi + 4] */ 6983 PUSH32(esp, eax); /* 0x24005330: push eax */ 6984 MEM32(ebp + 0x8) = eax; /* 0x24005331: mov dword ptr [ebp + 8], eax */ 6985 RECOMP_ICALL(0x240097F2u); /* 0x24005334: call 0x240097f2 */ /* not lifted */ 6986 RECOMP_FLAGS_IN(); 6987 edx = MEM32(ebp + (-0x8)); /* 0x24005339: mov edx, dword ptr [ebp - 8] */ 6988 eax = MEM32(ebp + (-0xC)); /* 0x2400533C: mov eax, dword ptr [ebp - 0xc] */ 6989 ecx = edx + eax * 4; /* 0x2400533F: lea ecx, [edx + eax*4] */ 6990 MEM32(edi + 0xC) = ecx; /* 0x24005342: mov dword ptr [edi + 0xc], ecx */ 6991 ecx = MEM32(edi + 0x4); /* 0x24005345: mov ecx, dword ptr [edi + 4] */ 6992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6994 esp = esp + 4; /* 0x24005348: add esp, 4 */ 6995 _flag_k = FK_ADD; 6996 /* test ecx, ecx */ /* 0x2400534B: test ecx, ecx */ 6997 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6998 _cf = 0; 6999 _flag_k = FK_TEST; 7000 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005368; /* 0x2400534D: jne 0x24005368 */ 7001 L_2400534F: 7002 ecx = MEM32(ebp + 0xC); /* 0x2400534F: mov ecx, dword ptr [ebp + 0xc] */ 7003 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7004 eax = 0; /* 0x24005352: xor eax, eax */ 7005 _cf = 0; 7006 _flag_k = FK_TEST; 7007 eax = ecx; /* 0x24005354: mov eax, ecx */ 7008 eax = edx + eax * 4; /* 0x24005356: lea eax, [edx + eax*4] */ 7009 MEM32(edi + 0x8) = eax; /* 0x24005359: mov dword ptr [edi + 8], eax */ 7010 MEM32(edi + 0x4) = edx; /* 0x2400535C: mov dword ptr [edi + 4], edx */ 7011 edi = POP32_VAL(esp); /* 0x2400535F: pop edi */ 7012 esi = POP32_VAL(esp); /* 0x24005360: pop esi */ 7013 ebx = POP32_VAL(esp); /* 0x24005361: pop ebx */ 7014 esp = ebp; /* 0x24005362: mov esp, ebp */ 7015 ebp = POP32_VAL(esp); /* 0x24005364: pop ebp */ 7016 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24005365: ret 0xc */ 7017 L_24005368: 7018 eax = MEM32(edi + 0x8); /* 0x24005368: mov eax, dword ptr [edi + 8] */ 7019 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7020 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7021 eax = eax - ecx; /* 0x2400536B: sub eax, ecx */ 7022 _flag_k = FK_CMP; 7023 ecx = MEM32(ebp + 0xC); /* 0x2400536D: mov ecx, dword ptr [ebp + 0xc] */ 7024 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x24005370: sar eax, 2 */ 7025 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7026 eax = (uint32_t)((int32_t)eax >> 2u); 7027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7028 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7029 eax = eax + ecx; /* 0x24005373: add eax, ecx */ 7030 _flag_k = FK_ADD; 7031 eax = edx + eax * 4; /* 0x24005375: lea eax, [edx + eax*4] */ 7032 MEM32(edi + 0x8) = eax; /* 0x24005378: mov dword ptr [edi + 8], eax */ 7033 MEM32(edi + 0x4) = edx; /* 0x2400537B: mov dword ptr [edi + 4], edx */ 7034 edi = POP32_VAL(esp); /* 0x2400537E: pop edi */ 7035 esi = POP32_VAL(esp); /* 0x2400537F: pop esi */ 7036 ebx = POP32_VAL(esp); /* 0x24005380: pop ebx */ 7037 esp = ebp; /* 0x24005381: mov esp, ebp */ 7038 ebp = POP32_VAL(esp); /* 0x24005383: pop ebp */ 7039 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24005384: ret 0xc */ 7040 L_24005387: 7041 ebx = MEM32(ebp + 0x8); /* 0x24005387: mov ebx, dword ptr [ebp + 8] */ 7042 ecx = esi; /* 0x2400538A: mov ecx, esi */ 7043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 7044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7045 ecx = ecx - ebx; /* 0x2400538C: sub ecx, ebx */ 7046 _flag_k = FK_CMP; 7047 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2400538E: sar ecx, 2 */ 7048 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7049 ecx = (uint32_t)((int32_t)ecx >> 2u); 7050 /* cmp ecx, edi */ /* 0x24005391: cmp ecx, edi */ 7051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7053 _flag_k = FK_CMP; 7054 if (CMP_AE(_flag_a, _flag_b)) goto L_24005407; /* 0x24005393: jae 0x24005407 */ 7055 L_24005395: 7056 /* cmp ebx, esi */ /* 0x24005395: cmp ebx, esi */ 7057 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 7058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7059 _flag_k = FK_CMP; 7060 ecx = edi * 4; /* 0x24005397: lea ecx, [edi*4] */ 7061 MEM32(ebp + 0xC) = ecx; /* 0x2400539E: mov dword ptr [ebp + 0xc], ecx */ 7062 edx = ecx + ebx; /* 0x240053A1: lea edx, [ecx + ebx] */ 7063 if (CMP_EQ(_flag_a, _flag_b)) goto L_240053C2; /* 0x240053A4: je 0x240053c2 */ 7064 L_240053A6: 7065 eax = edx; /* 0x240053A6: mov eax, edx */ 7066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7068 eax = eax - ecx; /* 0x240053A8: sub eax, ecx */ 7069 _flag_k = FK_CMP; 7070 L_240053AA: 7071 /* test edx, edx */ /* 0x240053AA: test edx, edx */ 7072 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 7073 _cf = 0; 7074 _flag_k = FK_TEST; 7075 if (TEST_Z(_flag_a, _flag_b)) goto L_240053B5; /* 0x240053AC: je 0x240053b5 */ 7076 L_240053AE: 7077 ecx = MEM32(eax); /* 0x240053AE: mov ecx, dword ptr [eax] */ 7078 MEM32(edx) = ecx; /* 0x240053B0: mov dword ptr [edx], ecx */ 7079 ecx = MEM32(ebp + 0xC); /* 0x240053B2: mov ecx, dword ptr [ebp + 0xc] */ 7080 L_240053B5: 7081 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7082 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7083 eax = eax + 4; /* 0x240053B5: add eax, 4 */ 7084 _flag_k = FK_ADD; 7085 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7086 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7087 edx = edx + 4; /* 0x240053B8: add edx, 4 */ 7088 _flag_k = FK_ADD; 7089 /* cmp eax, esi */ /* 0x240053BB: cmp eax, esi */ 7090 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7092 _flag_k = FK_CMP; 7093 RECOMP_BACKEDGE(); 7094 if (CMP_NE(_flag_a, _flag_b)) goto L_240053AA; /* 0x240053BD: jne 0x240053aa */ 7095 L_240053BF: 7096 eax = MEM32(ebp + (-0x4)); /* 0x240053BF: mov eax, dword ptr [ebp - 4] */ 7097 L_240053C2: 7098 eax = MEM32(eax + 0x8); /* 0x240053C2: mov eax, dword ptr [eax + 8] */ 7099 esi = MEM32(ebp + 0x10); /* 0x240053C5: mov esi, dword ptr [ebp + 0x10] */ 7100 edx = eax; /* 0x240053C8: mov edx, eax */ 7101 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 7102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7103 edx = edx - ebx; /* 0x240053CA: sub edx, ebx */ 7104 _flag_k = FK_CMP; 7105 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x240053CC: sar edx, 2 */ 7106 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7107 edx = (uint32_t)((int32_t)edx >> 2u); 7108 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 7109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7110 edi = edi - edx; /* 0x240053CF: sub edi, edx */ 7111 _flag_k = FK_CMP; 7112 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_240053E1; /* 0x240053D1: je 0x240053e1 */ 7113 L_240053D3: 7114 /* test eax, eax */ /* 0x240053D3: test eax, eax */ 7115 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7116 _cf = 0; 7117 _flag_k = FK_TEST; 7118 if (TEST_Z(_flag_a, _flag_b)) goto L_240053DB; /* 0x240053D5: je 0x240053db */ 7119 L_240053D7: 7120 edx = MEM32(esi); /* 0x240053D7: mov edx, dword ptr [esi] */ 7121 MEM32(eax) = edx; /* 0x240053D9: mov dword ptr [eax], edx */ 7122 L_240053DB: 7123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7124 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7125 eax = eax + 4; /* 0x240053DB: add eax, 4 */ 7126 _flag_k = FK_ADD; 7127 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 7128 edi = edi - 1; /* 0x240053DE: dec edi */ 7129 _flag_k = FK_DEC; 7130 RECOMP_BACKEDGE(); 7131 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_240053D3; /* 0x240053DF: jne 0x240053d3 */ 7132 L_240053E1: 7133 edx = MEM32(ebp + (-0x4)); /* 0x240053E1: mov edx, dword ptr [ebp - 4] */ 7134 eax = MEM32(edx + 0x8); /* 0x240053E4: mov eax, dword ptr [edx + 8] */ 7135 /* cmp ebx, eax */ /* 0x240053E7: cmp ebx, eax */ 7136 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7138 _flag_k = FK_CMP; 7139 if (CMP_EQ(_flag_a, _flag_b)) goto L_240053F6; /* 0x240053E9: je 0x240053f6 */ 7140 L_240053EB: 7141 edi = MEM32(esi); /* 0x240053EB: mov edi, dword ptr [esi] */ 7142 MEM32(ebx) = edi; /* 0x240053ED: mov dword ptr [ebx], edi */ 7143 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 7144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7145 ebx = ebx + 4; /* 0x240053EF: add ebx, 4 */ 7146 _flag_k = FK_ADD; 7147 /* cmp ebx, eax */ /* 0x240053F2: cmp ebx, eax */ 7148 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7150 _flag_k = FK_CMP; 7151 RECOMP_BACKEDGE(); 7152 if (CMP_NE(_flag_a, _flag_b)) goto L_240053EB; /* 0x240053F4: jne 0x240053eb */ 7153 L_240053F6: 7154 eax = MEM32(edx + 0x8); /* 0x240053F6: mov eax, dword ptr [edx + 8] */ 7155 edi = POP32_VAL(esp); /* 0x240053F9: pop edi */ 7156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7158 eax = eax + ecx; /* 0x240053FA: add eax, ecx */ 7159 _flag_k = FK_ADD; 7160 esi = POP32_VAL(esp); /* 0x240053FC: pop esi */ 7161 MEM32(edx + 0x8) = eax; /* 0x240053FD: mov dword ptr [edx + 8], eax */ 7162 ebx = POP32_VAL(esp); /* 0x24005400: pop ebx */ 7163 esp = ebp; /* 0x24005401: mov esp, ebp */ 7164 ebp = POP32_VAL(esp); /* 0x24005403: pop ebp */ 7165 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x24005404: ret 0xc */ 7166 L_24005407: 7167 /* test edi, edi */ /* 0x24005407: test edi, edi */ 7168 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7169 _cf = 0; 7170 _flag_k = FK_TEST; 7171 if (TEST_Z(_flag_a, _flag_b)) goto L_24005478; /* 0x24005409: jbe 0x24005478 */ 7172 L_2400540B: 7173 ecx = edi * 4; /* 0x2400540B: lea ecx, [edi*4] */ 7174 edi = esi; /* 0x24005412: mov edi, esi */ 7175 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 7176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7177 edi = edi - ecx; /* 0x24005414: sub edi, ecx */ 7178 _flag_k = FK_CMP; 7179 /* cmp edi, esi */ /* 0x24005416: cmp edi, esi */ 7180 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7182 _flag_k = FK_CMP; 7183 MEM32(ebp + 0x8) = esi; /* 0x24005418: mov dword ptr [ebp + 8], esi */ 7184 MEM32(ebp + 0xC) = ecx; /* 0x2400541B: mov dword ptr [ebp + 0xc], ecx */ 7185 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005443; /* 0x2400541E: je 0x24005443 */ 7186 L_24005420: 7187 eax = MEM32(ebp + 0x8); /* 0x24005420: mov eax, dword ptr [ebp + 8] */ 7188 PUSH32(esp, edi); /* 0x24005423: push edi */ 7189 PUSH32(esp, eax); /* 0x24005424: push eax */ 7190 RECOMP_ICALL(0x24005AA0u); /* 0x24005425: call 0x24005aa0 */ /* not lifted */ 7191 RECOMP_FLAGS_IN(); 7192 edx = MEM32(ebp + 0x8); /* 0x2400542A: mov edx, dword ptr [ebp + 8] */ 7193 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7195 edx = edx + 4; /* 0x2400542D: add edx, 4 */ 7196 _flag_k = FK_ADD; 7197 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 7198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7199 edi = edi + 4; /* 0x24005430: add edi, 4 */ 7200 _flag_k = FK_ADD; 7201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7203 esp = esp + 8; /* 0x24005433: add esp, 8 */ 7204 _flag_k = FK_ADD; 7205 /* cmp edi, esi */ /* 0x24005436: cmp edi, esi */ 7206 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7208 _flag_k = FK_CMP; 7209 MEM32(ebp + 0x8) = edx; /* 0x24005438: mov dword ptr [ebp + 8], edx */ 7210 RECOMP_BACKEDGE(); 7211 if (CMP_NE(_flag_a, _flag_b)) goto L_24005420; /* 0x2400543B: jne 0x24005420 */ 7212 L_2400543D: 7213 ecx = MEM32(ebp + 0xC); /* 0x2400543D: mov ecx, dword ptr [ebp + 0xc] */ 7214 eax = MEM32(ebp + (-0x4)); /* 0x24005440: mov eax, dword ptr [ebp - 4] */ 7215 L_24005443: 7216 edx = MEM32(eax + 0x8); /* 0x24005443: mov edx, dword ptr [eax + 8] */ 7217 eax = edx; /* 0x24005446: mov eax, edx */ 7218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7220 eax = eax - ecx; /* 0x24005448: sub eax, ecx */ 7221 _flag_k = FK_CMP; 7222 /* cmp ebx, eax */ /* 0x2400544A: cmp ebx, eax */ 7223 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7225 _flag_k = FK_CMP; 7226 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400545D; /* 0x2400544C: je 0x2400545d */ 7227 L_2400544E: 7228 esi = MEM32(eax + (-0x4)); /* 0x2400544E: mov esi, dword ptr [eax - 4] */ 7229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7231 eax = eax - 4; /* 0x24005451: sub eax, 4 */ 7232 _flag_k = FK_CMP; 7233 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7235 edx = edx - 4; /* 0x24005454: sub edx, 4 */ 7236 _flag_k = FK_CMP; 7237 /* cmp eax, ebx */ /* 0x24005457: cmp eax, ebx */ 7238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7240 _flag_k = FK_CMP; 7241 MEM32(edx) = esi; /* 0x24005459: mov dword ptr [edx], esi */ 7242 RECOMP_BACKEDGE(); 7243 if (CMP_NE(_flag_a, _flag_b)) goto L_2400544E; /* 0x2400545B: jne 0x2400544e */ 7244 L_2400545D: 7245 eax = ecx + ebx; /* 0x2400545D: lea eax, [ecx + ebx] */ 7246 /* cmp ebx, eax */ /* 0x24005460: cmp ebx, eax */ 7247 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7249 _flag_k = FK_CMP; 7250 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005472; /* 0x24005462: je 0x24005472 */ 7251 L_24005464: 7252 edx = MEM32(ebp + 0x10); /* 0x24005464: mov edx, dword ptr [ebp + 0x10] */ 7253 L_24005467: 7254 esi = MEM32(edx); /* 0x24005467: mov esi, dword ptr [edx] */ 7255 MEM32(ebx) = esi; /* 0x24005469: mov dword ptr [ebx], esi */ 7256 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 7257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7258 ebx = ebx + 4; /* 0x2400546B: add ebx, 4 */ 7259 _flag_k = FK_ADD; 7260 /* cmp ebx, eax */ /* 0x2400546E: cmp ebx, eax */ 7261 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7263 _flag_k = FK_CMP; 7264 RECOMP_BACKEDGE(); 7265 if (CMP_NE(_flag_a, _flag_b)) goto L_24005467; /* 0x24005470: jne 0x24005467 */ 7266 L_24005472: 7267 eax = MEM32(ebp + (-0x4)); /* 0x24005472: mov eax, dword ptr [ebp - 4] */ 7268 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 7269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7270 MEM32(eax + 0x8) = MEM32(eax + 0x8) + ecx; /* 0x24005475: add dword ptr [eax + 8], ecx */ 7271 _flag_k = FK_ADD; 7272 L_24005478: 7273 edi = POP32_VAL(esp); /* 0x24005478: pop edi */ 7274 esi = POP32_VAL(esp); /* 0x24005479: pop esi */ 7275 ebx = POP32_VAL(esp); /* 0x2400547A: pop ebx */ 7276 esp = ebp; /* 0x2400547B: mov esp, ebp */ 7277 ebp = POP32_VAL(esp); /* 0x2400547D: pop ebp */ 7278 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2400547E: ret 0xc */ 7279 RECOMP_REGS_OUT(); 7280 } 7281 7282 void sub_24005490(void) { 7283 int _fpu_cmp = 0; 7284 uint32_t _cf = 0; 7285 int _df = 1; 7286 uint32_t _flag_k = FK_NONE; 7287 uint32_t _flag_a = 0, _flag_b = 0; 7288 uint32_t _itail_tgt = 0; 7289 RECOMP_REGS_LOCALS 7290 RECOMP_ENTER(0x24005490u); 7291 7292 L_24005490: 7293 PUSH32(esp, ebp); /* 0x24005490: push ebp */ 7294 ebp = esp; /* 0x24005491: mov ebp, esp */ 7295 edx = MEM32(ebp + 0xC); /* 0x24005493: mov edx, dword ptr [ebp + 0xc] */ 7296 eax = MEM32(ebp + 0x8); /* 0x24005496: mov eax, dword ptr [ebp + 8] */ 7297 PUSH32(esp, esi); /* 0x24005499: push esi */ 7298 PUSH32(esp, edi); /* 0x2400549A: push edi */ 7299 edi = MEM32(ecx + 0x8); /* 0x2400549B: mov edi, dword ptr [ecx + 8] */ 7300 /* cmp edx, edi */ /* 0x2400549E: cmp edx, edi */ 7301 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 7302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7303 _flag_k = FK_CMP; 7304 esi = eax; /* 0x240054A0: mov esi, eax */ 7305 if (CMP_EQ(_flag_a, _flag_b)) goto L_240054B4; /* 0x240054A2: je 0x240054b4 */ 7306 L_240054A4: 7307 PUSH32(esp, ebx); /* 0x240054A4: push ebx */ 7308 L_240054A5: 7309 ebx = MEM32(edx); /* 0x240054A5: mov ebx, dword ptr [edx] */ 7310 MEM32(esi) = ebx; /* 0x240054A7: mov dword ptr [esi], ebx */ 7311 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7313 edx = edx + 4; /* 0x240054A9: add edx, 4 */ 7314 _flag_k = FK_ADD; 7315 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 7316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7317 esi = esi + 4; /* 0x240054AC: add esi, 4 */ 7318 _flag_k = FK_ADD; 7319 /* cmp edx, edi */ /* 0x240054AF: cmp edx, edi */ 7320 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 7321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7322 _flag_k = FK_CMP; 7323 RECOMP_BACKEDGE(); 7324 if (CMP_NE(_flag_a, _flag_b)) goto L_240054A5; /* 0x240054B1: jne 0x240054a5 */ 7325 L_240054B3: 7326 ebx = POP32_VAL(esp); /* 0x240054B3: pop ebx */ 7327 L_240054B4: 7328 edx = MEM32(ecx + 0x8); /* 0x240054B4: mov edx, dword ptr [ecx + 8] */ 7329 edi = POP32_VAL(esp); /* 0x240054B7: pop edi */ 7330 MEM32(ecx + 0x8) = esi; /* 0x240054B8: mov dword ptr [ecx + 8], esi */ 7331 MEM32(ebp + 0x8) = edx; /* 0x240054BB: mov dword ptr [ebp + 8], edx */ 7332 esi = POP32_VAL(esp); /* 0x240054BE: pop esi */ 7333 ebp = POP32_VAL(esp); /* 0x240054BF: pop ebp */ 7334 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240054C0: ret 8 */ 7335 RECOMP_REGS_OUT(); 7336 } 7337 7338 void sub_240054D0(void) { 7339 int _fpu_cmp = 0; 7340 uint32_t _cf = 0; 7341 int _df = 1; 7342 uint32_t _flag_k = FK_NONE; 7343 uint32_t _flag_a = 0, _flag_b = 0; 7344 uint32_t _itail_tgt = 0; 7345 RECOMP_REGS_LOCALS 7346 RECOMP_ENTER(0x240054D0u); 7347 7348 L_240054D0: 7349 PUSH32(esp, ebp); /* 0x240054D0: push ebp */ 7350 ebp = esp; /* 0x240054D1: mov ebp, esp */ 7351 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7353 esp = esp - 0xCu; /* 0x240054D3: sub esp, 0xc */ 7354 _flag_k = FK_CMP; 7355 PUSH32(esp, ebx); /* 0x240054D6: push ebx */ 7356 PUSH32(esp, esi); /* 0x240054D7: push esi */ 7357 PUSH32(esp, edi); /* 0x240054D8: push edi */ 7358 edi = ecx; /* 0x240054D9: mov edi, ecx */ 7359 esi = MEM32(edi + 0x4); /* 0x240054DB: mov esi, dword ptr [edi + 4] */ 7360 ebx = MEM32(esi + 0x4); /* 0x240054DE: mov ebx, dword ptr [esi + 4] */ 7361 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x240054E1: cmp ebx, dword ptr [edi + 8] */ 7362 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7364 _flag_k = FK_CMP; 7365 SET_LO8(eax, 1); /* 0x240054E4: mov al, 1 */ 7366 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005506; /* 0x240054E6: je 0x24005506 */ 7367 L_240054E8: 7368 ecx = MEM32(ebp + 0xC); /* 0x240054E8: mov ecx, dword ptr [ebp + 0xc] */ 7369 eax = ebx + 0xC; /* 0x240054EB: lea eax, [ebx + 0xc] */ 7370 PUSH32(esp, eax); /* 0x240054EE: push eax */ 7371 esi = ebx; /* 0x240054EF: mov esi, ebx */ 7372 RECOMP_ICALL(0x24003F00u); /* 0x240054F1: call 0x24003f00 */ /* not lifted */ 7373 RECOMP_FLAGS_IN(); 7374 /* test LO8(eax), LO8(eax) */ /* 0x240054F6: test al, al */ 7375 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7376 _cf = 0; 7377 _flag_k = FK_NARROW(FK_TEST, 24); 7378 if (TEST_Z(_flag_a, _flag_b)) goto L_240054FE; /* 0x240054F8: je 0x240054fe */ 7379 L_240054FA: 7380 ebx = MEM32(ebx); /* 0x240054FA: mov ebx, dword ptr [ebx] */ 7381 goto L_24005501; /* 0x240054FC: jmp 0x24005501 */ 7382 L_240054FE: 7383 ebx = MEM32(ebx + 0x8); /* 0x240054FE: mov ebx, dword ptr [ebx + 8] */ 7384 L_24005501: 7385 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x24005501: cmp ebx, dword ptr [edi + 8] */ 7386 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7388 _flag_k = FK_CMP; 7389 RECOMP_BACKEDGE(); 7390 if (CMP_NE(_flag_a, _flag_b)) goto L_240054E8; /* 0x24005504: jne 0x240054e8 */ 7391 L_24005506: 7392 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x24005506: mov cl, byte ptr [edi + 0xc] */ 7393 /* test LO8(ecx), LO8(ecx) */ /* 0x24005509: test cl, cl */ 7394 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7395 _cf = 0; 7396 _flag_k = FK_NARROW(FK_TEST, 24); 7397 if (TEST_Z(_flag_a, _flag_b)) goto L_24005687; /* 0x2400550B: je 0x24005687 */ 7398 L_24005511: 7399 PUSH32(esp, 0); /* 0x24005511: push 0 */ 7400 PUSH32(esp, esi); /* 0x24005513: push esi */ 7401 ecx = edi; /* 0x24005514: mov ecx, edi */ 7402 RECOMP_ICALL(0x240027E0u); /* 0x24005516: call 0x240027e0 */ /* not lifted */ 7403 RECOMP_FLAGS_IN(); 7404 ecx = MEM32(edi + 0x8); /* 0x2400551B: mov ecx, dword ptr [edi + 8] */ 7405 MEM32(eax) = ecx; /* 0x2400551E: mov dword ptr [eax], ecx */ 7406 edx = MEM32(edi + 0x8); /* 0x24005520: mov edx, dword ptr [edi + 8] */ 7407 ecx = MEM32(ebp + 0xC); /* 0x24005523: mov ecx, dword ptr [ebp + 0xc] */ 7408 MEM32(ebp + (-0x4)) = eax; /* 0x24005526: mov dword ptr [ebp - 4], eax */ 7409 MEM32(eax + 0x8) = edx; /* 0x24005529: mov dword ptr [eax + 8], edx */ 7410 PUSH32(esp, ecx); /* 0x2400552C: push ecx */ 7411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 7412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7413 eax = eax + 0xCu; /* 0x2400552D: add eax, 0xc */ 7414 _flag_k = FK_ADD; 7415 PUSH32(esp, eax); /* 0x24005530: push eax */ 7416 RECOMP_ICALL(0x24002F70u); /* 0x24005531: call 0x24002f70 */ /* not lifted */ 7417 RECOMP_FLAGS_IN(); 7418 ecx = MEM32(edi + 0x10); /* 0x24005536: mov ecx, dword ptr [edi + 0x10] */ 7419 eax = MEM32(edi + 0x4); /* 0x24005539: mov eax, dword ptr [edi + 4] */ 7420 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7421 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7422 esp = esp + 8; /* 0x2400553C: add esp, 8 */ 7423 _flag_k = FK_ADD; 7424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7425 ecx = ecx + 1; /* 0x2400553F: inc ecx */ 7426 _flag_k = FK_INC; 7427 /* cmp esi, eax */ /* 0x24005540: cmp esi, eax */ 7428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7430 _flag_k = FK_CMP; 7431 MEM32(edi + 0x10) = ecx; /* 0x24005542: mov dword ptr [edi + 0x10], ecx */ 7432 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400556F; /* 0x24005545: je 0x2400556f */ 7433 L_24005547: 7434 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x24005547: cmp ebx, dword ptr [edi + 8] */ 7435 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7437 _flag_k = FK_CMP; 7438 if (CMP_NE(_flag_a, _flag_b)) goto L_2400556F; /* 0x2400554A: jne 0x2400556f */ 7439 L_2400554C: 7440 ecx = MEM32(ebp + 0xC); /* 0x2400554C: mov ecx, dword ptr [ebp + 0xc] */ 7441 edx = esi + 0xC; /* 0x2400554F: lea edx, [esi + 0xc] */ 7442 PUSH32(esp, edx); /* 0x24005552: push edx */ 7443 RECOMP_ICALL(0x24003F00u); /* 0x24005553: call 0x24003f00 */ /* not lifted */ 7444 RECOMP_FLAGS_IN(); 7445 /* test LO8(eax), LO8(eax) */ /* 0x24005558: test al, al */ 7446 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7447 _cf = 0; 7448 _flag_k = FK_NARROW(FK_TEST, 24); 7449 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400556F; /* 0x2400555A: jne 0x2400556f */ 7450 L_2400555C: 7451 ebx = MEM32(ebp + (-0x4)); /* 0x2400555C: mov ebx, dword ptr [ebp - 4] */ 7452 MEM32(esi + 0x8) = ebx; /* 0x2400555F: mov dword ptr [esi + 8], ebx */ 7453 eax = MEM32(edi + 0x4); /* 0x24005562: mov eax, dword ptr [edi + 4] */ 7454 /* cmp esi, MEM32(eax + 0x8) */ /* 0x24005565: cmp esi, dword ptr [eax + 8] */ 7455 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7457 _flag_k = FK_CMP; 7458 if (CMP_NE(_flag_a, _flag_b)) goto L_24005592; /* 0x24005568: jne 0x24005592 */ 7459 L_2400556A: 7460 MEM32(eax + 0x8) = ebx; /* 0x2400556A: mov dword ptr [eax + 8], ebx */ 7461 goto L_24005592; /* 0x2400556D: jmp 0x24005592 */ 7462 L_2400556F: 7463 ecx = MEM32(ebp + (-0x4)); /* 0x2400556F: mov ecx, dword ptr [ebp - 4] */ 7464 MEM32(esi) = ecx; /* 0x24005572: mov dword ptr [esi], ecx */ 7465 eax = MEM32(edi + 0x4); /* 0x24005574: mov eax, dword ptr [edi + 4] */ 7466 /* cmp esi, eax */ /* 0x24005577: cmp esi, eax */ 7467 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7469 _flag_k = FK_CMP; 7470 if (CMP_NE(_flag_a, _flag_b)) goto L_24005586; /* 0x24005579: jne 0x24005586 */ 7471 L_2400557B: 7472 MEM32(eax + 0x4) = ecx; /* 0x2400557B: mov dword ptr [eax + 4], ecx */ 7473 eax = MEM32(edi + 0x4); /* 0x2400557E: mov eax, dword ptr [edi + 4] */ 7474 MEM32(eax + 0x8) = ecx; /* 0x24005581: mov dword ptr [eax + 8], ecx */ 7475 goto L_2400558F; /* 0x24005584: jmp 0x2400558f */ 7476 L_24005586: 7477 /* cmp esi, MEM32(eax) */ /* 0x24005586: cmp esi, dword ptr [eax] */ 7478 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 7479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7480 _flag_k = FK_CMP; 7481 if (CMP_NE(_flag_a, _flag_b)) goto L_2400558F; /* 0x24005588: jne 0x2400558f */ 7482 L_2400558A: 7483 ecx = MEM32(ebp + (-0x4)); /* 0x2400558A: mov ecx, dword ptr [ebp - 4] */ 7484 MEM32(eax) = ecx; /* 0x2400558D: mov dword ptr [eax], ecx */ 7485 L_2400558F: 7486 ebx = MEM32(ebp + (-0x4)); /* 0x2400558F: mov ebx, dword ptr [ebp - 4] */ 7487 L_24005592: 7488 edx = MEM32(edi + 0x4); /* 0x24005592: mov edx, dword ptr [edi + 4] */ 7489 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x24005595: cmp ebx, dword ptr [edx + 4] */ 7490 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7492 _flag_k = FK_CMP; 7493 esi = ebx; /* 0x24005598: mov esi, ebx */ 7494 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005665; /* 0x2400559A: je 0x24005665 */ 7495 L_240055A0: 7496 eax = MEM32(esi + 0x4); /* 0x240055A0: mov eax, dword ptr [esi + 4] */ 7497 SET_LO8(ecx, MEM8(eax + 0x3C)); /* 0x240055A3: mov cl, byte ptr [eax + 0x3c] */ 7498 /* test LO8(ecx), LO8(ecx) */ /* 0x240055A6: test cl, cl */ 7499 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7500 _cf = 0; 7501 _flag_k = FK_NARROW(FK_TEST, 24); 7502 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005665; /* 0x240055A8: jne 0x24005665 */ 7503 L_240055AE: 7504 edx = MEM32(eax + 0x4); /* 0x240055AE: mov edx, dword ptr [eax + 4] */ 7505 ecx = MEM32(edx); /* 0x240055B1: mov ecx, dword ptr [edx] */ 7506 /* cmp eax, ecx */ /* 0x240055B3: cmp eax, ecx */ 7507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7509 _flag_k = FK_CMP; 7510 if (CMP_NE(_flag_a, _flag_b)) goto L_2400560B; /* 0x240055B5: jne 0x2400560b */ 7511 L_240055B7: 7512 ecx = MEM32(edx + 0x8); /* 0x240055B7: mov ecx, dword ptr [edx + 8] */ 7513 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240055BA: mov dl, byte ptr [ecx + 0x3c] */ 7514 /* test LO8(edx), LO8(edx) */ /* 0x240055BD: test dl, dl */ 7515 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7516 _cf = 0; 7517 _flag_k = FK_NARROW(FK_TEST, 24); 7518 if (TEST_NZ(_flag_a, _flag_b)) goto L_240055DB; /* 0x240055BF: jne 0x240055db */ 7519 L_240055C1: 7520 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x240055C1: mov byte ptr [eax + 0x3c], 1 */ 7521 MEM8(ecx + 0x3C) = (uint8_t)(1); /* 0x240055C5: mov byte ptr [ecx + 0x3c], 1 */ 7522 eax = MEM32(esi + 0x4); /* 0x240055C9: mov eax, dword ptr [esi + 4] */ 7523 ecx = MEM32(eax + 0x4); /* 0x240055CC: mov ecx, dword ptr [eax + 4] */ 7524 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x240055CF: mov byte ptr [ecx + 0x3c], 0 */ 7525 edx = MEM32(esi + 0x4); /* 0x240055D3: mov edx, dword ptr [esi + 4] */ 7526 esi = MEM32(edx + 0x4); /* 0x240055D6: mov esi, dword ptr [edx + 4] */ 7527 goto L_24005659; /* 0x240055D9: jmp 0x24005659 */ 7528 L_240055DB: 7529 /* cmp esi, MEM32(eax + 0x8) */ /* 0x240055DB: cmp esi, dword ptr [eax + 8] */ 7530 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7532 _flag_k = FK_CMP; 7533 if (CMP_NE(_flag_a, _flag_b)) goto L_240055EA; /* 0x240055DE: jne 0x240055ea */ 7534 L_240055E0: 7535 esi = eax; /* 0x240055E0: mov esi, eax */ 7536 PUSH32(esp, esi); /* 0x240055E2: push esi */ 7537 ecx = edi; /* 0x240055E3: mov ecx, edi */ 7538 RECOMP_ICALL(0x240090E0u); /* 0x240055E5: call 0x240090e0 */ /* not lifted */ 7539 RECOMP_FLAGS_IN(); 7540 L_240055EA: 7541 eax = MEM32(esi + 0x4); /* 0x240055EA: mov eax, dword ptr [esi + 4] */ 7542 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x240055ED: mov byte ptr [eax + 0x3c], 1 */ 7543 ecx = MEM32(esi + 0x4); /* 0x240055F1: mov ecx, dword ptr [esi + 4] */ 7544 edx = MEM32(ecx + 0x4); /* 0x240055F4: mov edx, dword ptr [ecx + 4] */ 7545 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x240055F7: mov byte ptr [edx + 0x3c], 0 */ 7546 eax = MEM32(esi + 0x4); /* 0x240055FB: mov eax, dword ptr [esi + 4] */ 7547 ecx = MEM32(eax + 0x4); /* 0x240055FE: mov ecx, dword ptr [eax + 4] */ 7548 PUSH32(esp, ecx); /* 0x24005601: push ecx */ 7549 ecx = edi; /* 0x24005602: mov ecx, edi */ 7550 RECOMP_ICALL(0x24009140u); /* 0x24005604: call 0x24009140 */ /* not lifted */ 7551 RECOMP_FLAGS_IN(); 7552 goto L_24005659; /* 0x24005609: jmp 0x24005659 */ 7553 L_2400560B: 7554 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x2400560B: mov dl, byte ptr [ecx + 0x3c] */ 7555 /* test LO8(edx), LO8(edx) */ /* 0x2400560E: test dl, dl */ 7556 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7557 _cf = 0; 7558 _flag_k = FK_NARROW(FK_TEST, 24); 7559 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400562C; /* 0x24005610: jne 0x2400562c */ 7560 L_24005612: 7561 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x24005612: mov byte ptr [eax + 0x3c], 1 */ 7562 MEM8(ecx + 0x3C) = (uint8_t)(1); /* 0x24005616: mov byte ptr [ecx + 0x3c], 1 */ 7563 edx = MEM32(esi + 0x4); /* 0x2400561A: mov edx, dword ptr [esi + 4] */ 7564 eax = MEM32(edx + 0x4); /* 0x2400561D: mov eax, dword ptr [edx + 4] */ 7565 MEM8(eax + 0x3C) = (uint8_t)(0); /* 0x24005620: mov byte ptr [eax + 0x3c], 0 */ 7566 ecx = MEM32(esi + 0x4); /* 0x24005624: mov ecx, dword ptr [esi + 4] */ 7567 esi = MEM32(ecx + 0x4); /* 0x24005627: mov esi, dword ptr [ecx + 4] */ 7568 goto L_24005659; /* 0x2400562A: jmp 0x24005659 */ 7569 L_2400562C: 7570 /* cmp esi, MEM32(eax) */ /* 0x2400562C: cmp esi, dword ptr [eax] */ 7571 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 7572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7573 _flag_k = FK_CMP; 7574 if (CMP_NE(_flag_a, _flag_b)) goto L_2400563A; /* 0x2400562E: jne 0x2400563a */ 7575 L_24005630: 7576 esi = eax; /* 0x24005630: mov esi, eax */ 7577 PUSH32(esp, esi); /* 0x24005632: push esi */ 7578 ecx = edi; /* 0x24005633: mov ecx, edi */ 7579 RECOMP_ICALL(0x24009140u); /* 0x24005635: call 0x24009140 */ /* not lifted */ 7580 RECOMP_FLAGS_IN(); 7581 L_2400563A: 7582 edx = MEM32(esi + 0x4); /* 0x2400563A: mov edx, dword ptr [esi + 4] */ 7583 MEM8(edx + 0x3C) = (uint8_t)(1); /* 0x2400563D: mov byte ptr [edx + 0x3c], 1 */ 7584 eax = MEM32(esi + 0x4); /* 0x24005641: mov eax, dword ptr [esi + 4] */ 7585 ecx = MEM32(eax + 0x4); /* 0x24005644: mov ecx, dword ptr [eax + 4] */ 7586 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005647: mov byte ptr [ecx + 0x3c], 0 */ 7587 edx = MEM32(esi + 0x4); /* 0x2400564B: mov edx, dword ptr [esi + 4] */ 7588 eax = MEM32(edx + 0x4); /* 0x2400564E: mov eax, dword ptr [edx + 4] */ 7589 PUSH32(esp, eax); /* 0x24005651: push eax */ 7590 ecx = edi; /* 0x24005652: mov ecx, edi */ 7591 RECOMP_ICALL(0x240090E0u); /* 0x24005654: call 0x240090e0 */ /* not lifted */ 7592 RECOMP_FLAGS_IN(); 7593 L_24005659: 7594 ecx = MEM32(edi + 0x4); /* 0x24005659: mov ecx, dword ptr [edi + 4] */ 7595 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x2400565C: cmp esi, dword ptr [ecx + 4] */ 7596 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 7597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7598 _flag_k = FK_CMP; 7599 RECOMP_BACKEDGE(); 7600 if (CMP_NE(_flag_a, _flag_b)) goto L_240055A0; /* 0x2400565F: jne 0x240055a0 */ 7601 L_24005665: 7602 edx = MEM32(edi + 0x4); /* 0x24005665: mov edx, dword ptr [edi + 4] */ 7603 eax = MEM32(edx + 0x4); /* 0x24005668: mov eax, dword ptr [edx + 4] */ 7604 MEM8(eax + 0x3C) = (uint8_t)(1); /* 0x2400566B: mov byte ptr [eax + 0x3c], 1 */ 7605 eax = MEM32(ebp + 0x8); /* 0x2400566F: mov eax, dword ptr [ebp + 8] */ 7606 edi = POP32_VAL(esp); /* 0x24005672: pop edi */ 7607 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x24005673: mov byte ptr [ebp - 8], 1 */ 7608 ecx = MEM32(ebp + (-0x8)); /* 0x24005677: mov ecx, dword ptr [ebp - 8] */ 7609 MEM32(eax) = ebx; /* 0x2400567A: mov dword ptr [eax], ebx */ 7610 esi = POP32_VAL(esp); /* 0x2400567C: pop esi */ 7611 MEM32(eax + 0x4) = ecx; /* 0x2400567D: mov dword ptr [eax + 4], ecx */ 7612 ebx = POP32_VAL(esp); /* 0x24005680: pop ebx */ 7613 esp = ebp; /* 0x24005681: mov esp, ebp */ 7614 ebp = POP32_VAL(esp); /* 0x24005683: pop ebp */ 7615 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24005684: ret 8 */ 7616 L_24005687: 7617 /* test LO8(eax), LO8(eax) */ /* 0x24005687: test al, al */ 7618 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7619 _cf = 0; 7620 _flag_k = FK_NARROW(FK_TEST, 24); 7621 MEM32(ebp + (-0x8)) = esi; /* 0x24005689: mov dword ptr [ebp - 8], esi */ 7622 if (TEST_Z(_flag_a, _flag_b)) goto L_240056C8; /* 0x2400568C: je 0x240056c8 */ 7623 L_2400568E: 7624 edx = MEM32(edi + 0x4); /* 0x2400568E: mov edx, dword ptr [edi + 4] */ 7625 /* cmp esi, MEM32(edx) */ /* 0x24005691: cmp esi, dword ptr [edx] */ 7626 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx)); 7627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7628 _flag_k = FK_CMP; 7629 if (CMP_NE(_flag_a, _flag_b)) goto L_240056C0; /* 0x24005693: jne 0x240056c0 */ 7630 L_24005695: 7631 eax = MEM32(ebp + 0xC); /* 0x24005695: mov eax, dword ptr [ebp + 0xc] */ 7632 PUSH32(esp, eax); /* 0x24005698: push eax */ 7633 PUSH32(esp, esi); /* 0x24005699: push esi */ 7634 PUSH32(esp, ebx); /* 0x2400569A: push ebx */ 7635 ecx = ebp + 0xC; /* 0x2400569B: lea ecx, [ebp + 0xc] */ 7636 PUSH32(esp, ecx); /* 0x2400569E: push ecx */ 7637 ecx = edi; /* 0x2400569F: mov ecx, edi */ 7638 RECOMP_ICALL(0x24005750u); /* 0x240056A1: call 0x24005750 */ /* not lifted */ 7639 RECOMP_FLAGS_IN(); 7640 ecx = MEM32(eax); /* 0x240056A6: mov ecx, dword ptr [eax] */ 7641 eax = MEM32(ebp + 0x8); /* 0x240056A8: mov eax, dword ptr [ebp + 8] */ 7642 edi = POP32_VAL(esp); /* 0x240056AB: pop edi */ 7643 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x240056AC: mov byte ptr [ebp - 8], 1 */ 7644 edx = MEM32(ebp + (-0x8)); /* 0x240056B0: mov edx, dword ptr [ebp - 8] */ 7645 esi = POP32_VAL(esp); /* 0x240056B3: pop esi */ 7646 MEM32(eax) = ecx; /* 0x240056B4: mov dword ptr [eax], ecx */ 7647 MEM32(eax + 0x4) = edx; /* 0x240056B6: mov dword ptr [eax + 4], edx */ 7648 ebx = POP32_VAL(esp); /* 0x240056B9: pop ebx */ 7649 esp = ebp; /* 0x240056BA: mov esp, ebp */ 7650 ebp = POP32_VAL(esp); /* 0x240056BC: pop ebp */ 7651 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x240056BD: ret 8 */ 7652 L_240056C0: 7653 ecx = ebp + (-0x8); /* 0x240056C0: lea ecx, [ebp - 8] */ 7654 RECOMP_ICALL(0x24005A40u); /* 0x240056C3: call 0x24005a40 */ /* not lifted */ 7655 RECOMP_FLAGS_IN(); 7656 L_240056C8: 7657 eax = MEM32(ebp + (-0x8)); /* 0x240056C8: mov eax, dword ptr [ebp - 8] */ 7658 edx = MEM32(ebp + 0xC); /* 0x240056CB: mov edx, dword ptr [ebp + 0xc] */ 7659 ecx = eax + 0xC; /* 0x240056CE: lea ecx, [eax + 0xc] */ 7660 PUSH32(esp, edx); /* 0x240056D1: push edx */ 7661 RECOMP_ICALL(0x24003F00u); /* 0x240056D2: call 0x24003f00 */ /* not lifted */ 7662 RECOMP_FLAGS_IN(); 7663 /* test LO8(eax), LO8(eax) */ /* 0x240056D7: test al, al */ 7664 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7665 _cf = 0; 7666 _flag_k = FK_NARROW(FK_TEST, 24); 7667 if (TEST_Z(_flag_a, _flag_b)) goto L_24005706; /* 0x240056D9: je 0x24005706 */ 7668 L_240056DB: 7669 eax = MEM32(ebp + 0xC); /* 0x240056DB: mov eax, dword ptr [ebp + 0xc] */ 7670 PUSH32(esp, eax); /* 0x240056DE: push eax */ 7671 PUSH32(esp, esi); /* 0x240056DF: push esi */ 7672 PUSH32(esp, ebx); /* 0x240056E0: push ebx */ 7673 ecx = ebp + 0xC; /* 0x240056E1: lea ecx, [ebp + 0xc] */ 7674 PUSH32(esp, ecx); /* 0x240056E4: push ecx */ 7675 ecx = edi; /* 0x240056E5: mov ecx, edi */ 7676 RECOMP_ICALL(0x24005750u); /* 0x240056E7: call 0x24005750 */ /* not lifted */ 7677 RECOMP_FLAGS_IN(); 7678 ecx = MEM32(eax); /* 0x240056EC: mov ecx, dword ptr [eax] */ 7679 eax = MEM32(ebp + 0x8); /* 0x240056EE: mov eax, dword ptr [ebp + 8] */ 7680 edi = POP32_VAL(esp); /* 0x240056F1: pop edi */ 7681 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x240056F2: mov byte ptr [ebp - 8], 1 */ 7682 edx = MEM32(ebp + (-0x8)); /* 0x240056F6: mov edx, dword ptr [ebp - 8] */ 7683 esi = POP32_VAL(esp); /* 0x240056F9: pop esi */ 7684 MEM32(eax) = ecx; /* 0x240056FA: mov dword ptr [eax], ecx */ 7685 MEM32(eax + 0x4) = edx; /* 0x240056FC: mov dword ptr [eax + 4], edx */ 7686 ebx = POP32_VAL(esp); /* 0x240056FF: pop ebx */ 7687 esp = ebp; /* 0x24005700: mov esp, ebp */ 7688 ebp = POP32_VAL(esp); /* 0x24005702: pop ebp */ 7689 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24005703: ret 8 */ 7690 L_24005706: 7691 ecx = MEM32(ebp + (-0x8)); /* 0x24005706: mov ecx, dword ptr [ebp - 8] */ 7692 eax = MEM32(ebp + 0x8); /* 0x24005709: mov eax, dword ptr [ebp + 8] */ 7693 edi = POP32_VAL(esp); /* 0x2400570C: pop edi */ 7694 MEM32(eax) = ecx; /* 0x2400570D: mov dword ptr [eax], ecx */ 7695 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x2400570F: mov byte ptr [ebp - 8], 0 */ 7696 ecx = MEM32(ebp + (-0x8)); /* 0x24005713: mov ecx, dword ptr [ebp - 8] */ 7697 esi = POP32_VAL(esp); /* 0x24005716: pop esi */ 7698 MEM32(eax + 0x4) = ecx; /* 0x24005717: mov dword ptr [eax + 4], ecx */ 7699 ebx = POP32_VAL(esp); /* 0x2400571A: pop ebx */ 7700 esp = ebp; /* 0x2400571B: mov esp, ebp */ 7701 ebp = POP32_VAL(esp); /* 0x2400571D: pop ebp */ 7702 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2400571E: ret 8 */ 7703 RECOMP_REGS_OUT(); 7704 } 7705 7706 void sub_24005730(void) { 7707 int _fpu_cmp = 0; 7708 uint32_t _cf = 0; 7709 int _df = 1; 7710 uint32_t _flag_k = FK_NONE; 7711 uint32_t _flag_a = 0, _flag_b = 0; 7712 uint32_t _itail_tgt = 0; 7713 RECOMP_REGS_LOCALS 7714 RECOMP_ENTER(0x24005730u); 7715 7716 L_24005730: 7717 PUSH32(esp, ebp); /* 0x24005730: push ebp */ 7718 ebp = esp; /* 0x24005731: mov ebp, esp */ 7719 eax = ecx; /* 0x24005733: mov eax, ecx */ 7720 ecx = MEM32(ebp + 0x8); /* 0x24005735: mov ecx, dword ptr [ebp + 8] */ 7721 edx = MEM32(ecx); /* 0x24005738: mov edx, dword ptr [ecx] */ 7722 ecx = MEM32(ebp + 0xC); /* 0x2400573A: mov ecx, dword ptr [ebp + 0xc] */ 7723 MEM32(eax) = edx; /* 0x2400573D: mov dword ptr [eax], edx */ 7724 SET_LO8(edx, MEM8(ecx)); /* 0x2400573F: mov dl, byte ptr [ecx] */ 7725 MEM8(eax + 0x4) = (uint8_t)(LO8(edx)); /* 0x24005741: mov byte ptr [eax + 4], dl */ 7726 ebp = POP32_VAL(esp); /* 0x24005744: pop ebp */ 7727 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24005745: ret 8 */ 7728 RECOMP_REGS_OUT(); 7729 } 7730 7731 void sub_24005750(void) { 7732 int _fpu_cmp = 0; 7733 uint32_t _cf = 0; 7734 int _df = 1; 7735 uint32_t _flag_k = FK_NONE; 7736 uint32_t _flag_a = 0, _flag_b = 0; 7737 uint32_t _itail_tgt = 0; 7738 RECOMP_REGS_LOCALS 7739 RECOMP_ENTER(0x24005750u); 7740 7741 L_24005750: 7742 PUSH32(esp, ebp); /* 0x24005750: push ebp */ 7743 ebp = esp; /* 0x24005751: mov ebp, esp */ 7744 PUSH32(esp, ecx); /* 0x24005753: push ecx */ 7745 PUSH32(esp, ebx); /* 0x24005754: push ebx */ 7746 PUSH32(esp, esi); /* 0x24005755: push esi */ 7747 PUSH32(esp, edi); /* 0x24005756: push edi */ 7748 PUSH32(esp, 0x40u); /* 0x24005757: push 0x40 */ 7749 esi = ecx; /* 0x24005759: mov esi, ecx */ 7750 RECOMP_ICALL(0x24009838u); /* 0x2400575B: call 0x24009838 */ /* not lifted */ 7751 RECOMP_FLAGS_IN(); 7752 edi = MEM32(ebp + 0x10); /* 0x24005760: mov edi, dword ptr [ebp + 0x10] */ 7753 ebx = MEM32(ebp + 0x14); /* 0x24005763: mov ebx, dword ptr [ebp + 0x14] */ 7754 MEM32(eax + 0x4) = edi; /* 0x24005766: mov dword ptr [eax + 4], edi */ 7755 MEM8(eax + 0x3C) = (uint8_t)(0); /* 0x24005769: mov byte ptr [eax + 0x3c], 0 */ 7756 MEM8(eax + 0x3D) = (uint8_t)(0); /* 0x2400576D: mov byte ptr [eax + 0x3d], 0 */ 7757 ecx = MEM32(esi + 0x8); /* 0x24005771: mov ecx, dword ptr [esi + 8] */ 7758 MEM32(eax) = ecx; /* 0x24005774: mov dword ptr [eax], ecx */ 7759 edx = MEM32(esi + 0x8); /* 0x24005776: mov edx, dword ptr [esi + 8] */ 7760 MEM32(ebp + (-0x4)) = eax; /* 0x24005779: mov dword ptr [ebp - 4], eax */ 7761 MEM32(eax + 0x8) = edx; /* 0x2400577C: mov dword ptr [eax + 8], edx */ 7762 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 7763 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7764 eax = eax + 0xCu; /* 0x2400577F: add eax, 0xc */ 7765 _flag_k = FK_ADD; 7766 PUSH32(esp, ebx); /* 0x24005782: push ebx */ 7767 PUSH32(esp, eax); /* 0x24005783: push eax */ 7768 RECOMP_ICALL(0x24002F70u); /* 0x24005784: call 0x24002f70 */ /* not lifted */ 7769 RECOMP_FLAGS_IN(); 7770 ecx = MEM32(esi + 0x10); /* 0x24005789: mov ecx, dword ptr [esi + 0x10] */ 7771 eax = MEM32(esi + 0x4); /* 0x2400578C: mov eax, dword ptr [esi + 4] */ 7772 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7773 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7774 esp = esp + 0xCu; /* 0x2400578F: add esp, 0xc */ 7775 _flag_k = FK_ADD; 7776 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7777 ecx = ecx + 1; /* 0x24005792: inc ecx */ 7778 _flag_k = FK_INC; 7779 /* cmp edi, eax */ /* 0x24005793: cmp edi, eax */ 7780 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7782 _flag_k = FK_CMP; 7783 MEM32(esi + 0x10) = ecx; /* 0x24005795: mov dword ptr [esi + 0x10], ecx */ 7784 if (CMP_EQ(_flag_a, _flag_b)) goto L_240057C4; /* 0x24005798: je 0x240057c4 */ 7785 L_2400579A: 7786 eax = MEM32(ebp + 0xC); /* 0x2400579A: mov eax, dword ptr [ebp + 0xc] */ 7787 /* cmp eax, MEM32(esi + 0x8) */ /* 0x2400579D: cmp eax, dword ptr [esi + 8] */ 7788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7790 _flag_k = FK_CMP; 7791 if (CMP_NE(_flag_a, _flag_b)) goto L_240057C4; /* 0x240057A0: jne 0x240057c4 */ 7792 L_240057A2: 7793 ecx = edi + 0xC; /* 0x240057A2: lea ecx, [edi + 0xc] */ 7794 PUSH32(esp, ecx); /* 0x240057A5: push ecx */ 7795 ecx = ebx; /* 0x240057A6: mov ecx, ebx */ 7796 RECOMP_ICALL(0x24003F00u); /* 0x240057A8: call 0x24003f00 */ /* not lifted */ 7797 RECOMP_FLAGS_IN(); 7798 /* test LO8(eax), LO8(eax) */ /* 0x240057AD: test al, al */ 7799 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7800 _cf = 0; 7801 _flag_k = FK_NARROW(FK_TEST, 24); 7802 if (TEST_NZ(_flag_a, _flag_b)) goto L_240057C4; /* 0x240057AF: jne 0x240057c4 */ 7803 L_240057B1: 7804 ecx = MEM32(ebp + (-0x4)); /* 0x240057B1: mov ecx, dword ptr [ebp - 4] */ 7805 MEM32(edi + 0x8) = ecx; /* 0x240057B4: mov dword ptr [edi + 8], ecx */ 7806 eax = MEM32(esi + 0x4); /* 0x240057B7: mov eax, dword ptr [esi + 4] */ 7807 /* cmp edi, MEM32(eax + 0x8) */ /* 0x240057BA: cmp edi, dword ptr [eax + 8] */ 7808 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7810 _flag_k = FK_CMP; 7811 if (CMP_NE(_flag_a, _flag_b)) goto L_240057E4; /* 0x240057BD: jne 0x240057e4 */ 7812 L_240057BF: 7813 MEM32(eax + 0x8) = ecx; /* 0x240057BF: mov dword ptr [eax + 8], ecx */ 7814 goto L_240057E4; /* 0x240057C2: jmp 0x240057e4 */ 7815 L_240057C4: 7816 ecx = MEM32(ebp + (-0x4)); /* 0x240057C4: mov ecx, dword ptr [ebp - 4] */ 7817 MEM32(edi) = ecx; /* 0x240057C7: mov dword ptr [edi], ecx */ 7818 eax = MEM32(esi + 0x4); /* 0x240057C9: mov eax, dword ptr [esi + 4] */ 7819 /* cmp edi, eax */ /* 0x240057CC: cmp edi, eax */ 7820 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7822 _flag_k = FK_CMP; 7823 if (CMP_NE(_flag_a, _flag_b)) goto L_240057DB; /* 0x240057CE: jne 0x240057db */ 7824 L_240057D0: 7825 MEM32(eax + 0x4) = ecx; /* 0x240057D0: mov dword ptr [eax + 4], ecx */ 7826 edx = MEM32(esi + 0x4); /* 0x240057D3: mov edx, dword ptr [esi + 4] */ 7827 MEM32(edx + 0x8) = ecx; /* 0x240057D6: mov dword ptr [edx + 8], ecx */ 7828 goto L_240057E4; /* 0x240057D9: jmp 0x240057e4 */ 7829 L_240057DB: 7830 /* cmp edi, MEM32(eax) */ /* 0x240057DB: cmp edi, dword ptr [eax] */ 7831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 7832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7833 _flag_k = FK_CMP; 7834 if (CMP_NE(_flag_a, _flag_b)) goto L_240057E4; /* 0x240057DD: jne 0x240057e4 */ 7835 L_240057DF: 7836 ecx = MEM32(ebp + (-0x4)); /* 0x240057DF: mov ecx, dword ptr [ebp - 4] */ 7837 MEM32(eax) = ecx; /* 0x240057E2: mov dword ptr [eax], ecx */ 7838 L_240057E4: 7839 edx = MEM32(esi + 0x4); /* 0x240057E4: mov edx, dword ptr [esi + 4] */ 7840 eax = MEM32(ebp + (-0x4)); /* 0x240057E7: mov eax, dword ptr [ebp - 4] */ 7841 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240057EA: cmp eax, dword ptr [edx + 4] */ 7842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7844 _flag_k = FK_CMP; 7845 SET_LO8(ebx, 1); /* 0x240057ED: mov bl, 1 */ 7846 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057EF: je 0x24005975 */ 7847 L_240057F5: 7848 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 7849 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 7850 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 7851 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7852 _cf = 0; 7853 _flag_k = FK_NARROW(FK_TEST, 24); 7854 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 7855 L_24005803: 7856 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 7857 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 7858 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 7859 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7861 _flag_k = FK_CMP; 7862 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 7863 L_24005810: 7864 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 7865 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 7866 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 7867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7868 _flag_k = FK_NARROW(FK_CMP, 24); 7869 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 7870 L_24005819: 7871 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 7872 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 7873 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 7874 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 7875 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 7876 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 7877 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 7878 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 7879 L_24005834: 7880 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 7881 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 7882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7883 _flag_k = FK_CMP; 7884 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 7885 L_24005839: 7886 eax = ecx; /* 0x24005839: mov eax, ecx */ 7887 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 7888 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 7889 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 7890 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 7891 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 7892 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7894 _flag_k = FK_CMP; 7895 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 7896 L_2400584A: 7897 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 7898 L_2400584D: 7899 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 7900 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 7901 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 7902 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 7903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 7904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7905 _flag_k = FK_CMP; 7906 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 7907 L_2400585B: 7908 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 7909 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 7910 L_24005860: 7911 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 7912 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 7913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 7914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7915 _flag_k = FK_CMP; 7916 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 7917 L_24005867: 7918 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 7919 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 7920 L_2400586B: 7921 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 7922 L_2400586E: 7923 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 7924 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 7925 L_24005873: 7926 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 7927 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 7928 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 7929 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 7930 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 7931 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 7932 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 7933 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 7934 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 7935 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 7936 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 7937 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 7938 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7940 _flag_k = FK_CMP; 7941 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 7942 L_24005898: 7943 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 7944 L_2400589B: 7945 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 7946 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 7947 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 7948 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 7949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 7950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7951 _flag_k = FK_CMP; 7952 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 7953 L_240058A9: 7954 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 7955 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 7956 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 7957 L_240058B4: 7958 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 7959 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 7960 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7962 _flag_k = FK_CMP; 7963 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 7964 L_240058BC: 7965 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 7966 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 7967 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 7968 L_240058C7: 7969 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 7970 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 7971 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 7972 L_240058D1: 7973 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 7974 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 7975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7976 _flag_k = FK_NARROW(FK_CMP, 24); 7977 RECOMP_BACKEDGE(); 7978 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 7979 L_240058DB: 7980 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 7981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 7982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7983 _flag_k = FK_CMP; 7984 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 7985 L_240058DF: 7986 eax = ecx; /* 0x240058DF: mov eax, ecx */ 7987 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 7988 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 7989 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 7990 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 7991 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 7992 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7994 _flag_k = FK_CMP; 7995 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 7996 L_240058F0: 7997 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 7998 L_240058F3: 7999 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 8000 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 8001 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 8002 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 8003 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8005 _flag_k = FK_CMP; 8006 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 8007 L_24005901: 8008 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 8009 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 8010 L_24005906: 8011 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 8012 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 8013 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8015 _flag_k = FK_CMP; 8016 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 8017 L_2400590E: 8018 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 8019 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 8020 L_24005913: 8021 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 8022 L_24005915: 8023 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 8024 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 8025 L_2400591B: 8026 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 8027 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 8028 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 8029 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 8030 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 8031 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 8032 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 8033 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 8034 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 8035 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 8036 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 8037 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 8038 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8040 _flag_k = FK_CMP; 8041 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 8042 L_24005940: 8043 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 8044 L_24005943: 8045 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 8046 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 8047 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 8048 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 8049 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8051 _flag_k = FK_CMP; 8052 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 8053 L_24005951: 8054 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 8055 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 8056 L_24005956: 8057 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 8058 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 8059 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8061 _flag_k = FK_CMP; 8062 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 8063 L_2400595D: 8064 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 8065 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 8066 L_24005961: 8067 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 8068 L_24005964: 8069 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 8070 L_24005966: 8071 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 8072 L_24005969: 8073 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 8074 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 8075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8077 _flag_k = FK_CMP; 8078 RECOMP_BACKEDGE(); 8079 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 8080 L_24005975: 8081 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 8082 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 8083 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 8084 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 8085 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 8086 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 8087 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 8088 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 8089 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 8090 esp = ebp; /* 0x24005989: mov esp, ebp */ 8091 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 8092 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 8093 RECOMP_REGS_OUT(); 8094 } 8095 8096 void sub_240057F5(void) { 8097 int _fpu_cmp = 0; 8098 uint32_t _cf = 0; 8099 int _df = 1; 8100 uint32_t _flag_k = FK_NONE; 8101 uint32_t _flag_a = 0, _flag_b = 0; 8102 uint32_t _itail_tgt = 0; 8103 RECOMP_REGS_LOCALS 8104 RECOMP_ENTER(0x240057F5u); 8105 8106 L_240057F5: 8107 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 8108 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 8109 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 8110 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8111 _cf = 0; 8112 _flag_k = FK_NARROW(FK_TEST, 24); 8113 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 8114 L_24005803: 8115 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 8116 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 8117 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 8118 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8119 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8120 _flag_k = FK_CMP; 8121 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 8122 L_24005810: 8123 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 8124 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 8125 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 8126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8127 _flag_k = FK_NARROW(FK_CMP, 24); 8128 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 8129 L_24005819: 8130 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 8131 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 8132 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 8133 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 8134 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 8135 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 8136 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 8137 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 8138 L_24005834: 8139 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 8140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8142 _flag_k = FK_CMP; 8143 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 8144 L_24005839: 8145 eax = ecx; /* 0x24005839: mov eax, ecx */ 8146 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 8147 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 8148 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 8149 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 8150 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 8151 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8153 _flag_k = FK_CMP; 8154 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 8155 L_2400584A: 8156 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 8157 L_2400584D: 8158 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 8159 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 8160 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 8161 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 8162 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8164 _flag_k = FK_CMP; 8165 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 8166 L_2400585B: 8167 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 8168 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 8169 L_24005860: 8170 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 8171 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 8172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8174 _flag_k = FK_CMP; 8175 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 8176 L_24005867: 8177 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 8178 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 8179 L_2400586B: 8180 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 8181 L_2400586E: 8182 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 8183 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 8184 L_24005873: 8185 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 8186 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 8187 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 8188 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 8189 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 8190 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 8191 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 8192 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 8193 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 8194 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 8195 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 8196 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 8197 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8199 _flag_k = FK_CMP; 8200 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 8201 L_24005898: 8202 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 8203 L_2400589B: 8204 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 8205 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 8206 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 8207 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 8208 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8210 _flag_k = FK_CMP; 8211 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 8212 L_240058A9: 8213 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 8214 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 8215 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 8216 L_240058B4: 8217 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 8218 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 8219 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8221 _flag_k = FK_CMP; 8222 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 8223 L_240058BC: 8224 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 8225 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 8226 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 8227 L_240058C7: 8228 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 8229 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 8230 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 8231 L_240058D1: 8232 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 8233 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 8234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8235 _flag_k = FK_NARROW(FK_CMP, 24); 8236 RECOMP_BACKEDGE(); 8237 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 8238 L_240058DB: 8239 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 8240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8242 _flag_k = FK_CMP; 8243 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 8244 L_240058DF: 8245 eax = ecx; /* 0x240058DF: mov eax, ecx */ 8246 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 8247 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 8248 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 8249 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 8250 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 8251 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8253 _flag_k = FK_CMP; 8254 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 8255 L_240058F0: 8256 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 8257 L_240058F3: 8258 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 8259 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 8260 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 8261 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 8262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8264 _flag_k = FK_CMP; 8265 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 8266 L_24005901: 8267 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 8268 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 8269 L_24005906: 8270 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 8271 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 8272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8274 _flag_k = FK_CMP; 8275 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 8276 L_2400590E: 8277 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 8278 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 8279 L_24005913: 8280 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 8281 L_24005915: 8282 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 8283 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 8284 L_2400591B: 8285 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 8286 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 8287 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 8288 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 8289 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 8290 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 8291 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 8292 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 8293 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 8294 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 8295 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 8296 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 8297 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8299 _flag_k = FK_CMP; 8300 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 8301 L_24005940: 8302 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 8303 L_24005943: 8304 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 8305 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 8306 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 8307 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 8308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8310 _flag_k = FK_CMP; 8311 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 8312 L_24005951: 8313 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 8314 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 8315 L_24005956: 8316 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 8317 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 8318 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8319 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8320 _flag_k = FK_CMP; 8321 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 8322 L_2400595D: 8323 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 8324 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 8325 L_24005961: 8326 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 8327 L_24005964: 8328 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 8329 L_24005966: 8330 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 8331 L_24005969: 8332 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 8333 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 8334 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8336 _flag_k = FK_CMP; 8337 RECOMP_BACKEDGE(); 8338 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 8339 L_24005975: 8340 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 8341 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 8342 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 8343 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 8344 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 8345 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 8346 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 8347 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 8348 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 8349 esp = ebp; /* 0x24005989: mov esp, ebp */ 8350 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 8351 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 8352 RECOMP_REGS_OUT(); 8353 } 8354 8355 void sub_24005819(void) { 8356 int _fpu_cmp = 0; 8357 uint32_t _cf = 0; 8358 int _df = 1; 8359 uint32_t _flag_k = FK_NONE; 8360 uint32_t _flag_a = 0, _flag_b = 0; 8361 uint32_t _itail_tgt = 0; 8362 RECOMP_REGS_LOCALS 8363 RECOMP_ENTER(0x24005819u); 8364 8365 goto L_24005819; 8366 L_240057F5: 8367 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 8368 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 8369 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 8370 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8371 _cf = 0; 8372 _flag_k = FK_NARROW(FK_TEST, 24); 8373 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 8374 L_24005803: 8375 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 8376 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 8377 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 8378 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8380 _flag_k = FK_CMP; 8381 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 8382 L_24005810: 8383 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 8384 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 8385 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 8386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8387 _flag_k = FK_NARROW(FK_CMP, 24); 8388 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 8389 L_24005819: 8390 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 8391 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 8392 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 8393 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 8394 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 8395 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 8396 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 8397 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 8398 L_24005834: 8399 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 8400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8402 _flag_k = FK_CMP; 8403 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 8404 L_24005839: 8405 eax = ecx; /* 0x24005839: mov eax, ecx */ 8406 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 8407 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 8408 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 8409 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 8410 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 8411 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8413 _flag_k = FK_CMP; 8414 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 8415 L_2400584A: 8416 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 8417 L_2400584D: 8418 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 8419 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 8420 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 8421 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 8422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8424 _flag_k = FK_CMP; 8425 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 8426 L_2400585B: 8427 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 8428 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 8429 L_24005860: 8430 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 8431 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 8432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8434 _flag_k = FK_CMP; 8435 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 8436 L_24005867: 8437 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 8438 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 8439 L_2400586B: 8440 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 8441 L_2400586E: 8442 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 8443 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 8444 L_24005873: 8445 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 8446 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 8447 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 8448 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 8449 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 8450 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 8451 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 8452 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 8453 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 8454 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 8455 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 8456 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 8457 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8459 _flag_k = FK_CMP; 8460 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 8461 L_24005898: 8462 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 8463 L_2400589B: 8464 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 8465 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 8466 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 8467 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 8468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8470 _flag_k = FK_CMP; 8471 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 8472 L_240058A9: 8473 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 8474 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 8475 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 8476 L_240058B4: 8477 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 8478 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 8479 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8481 _flag_k = FK_CMP; 8482 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 8483 L_240058BC: 8484 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 8485 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 8486 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 8487 L_240058C7: 8488 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 8489 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 8490 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 8491 L_240058D1: 8492 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 8493 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 8494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8495 _flag_k = FK_NARROW(FK_CMP, 24); 8496 RECOMP_BACKEDGE(); 8497 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 8498 L_240058DB: 8499 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 8500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8502 _flag_k = FK_CMP; 8503 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 8504 L_240058DF: 8505 eax = ecx; /* 0x240058DF: mov eax, ecx */ 8506 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 8507 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 8508 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 8509 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 8510 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 8511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8513 _flag_k = FK_CMP; 8514 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 8515 L_240058F0: 8516 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 8517 L_240058F3: 8518 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 8519 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 8520 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 8521 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 8522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8524 _flag_k = FK_CMP; 8525 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 8526 L_24005901: 8527 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 8528 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 8529 L_24005906: 8530 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 8531 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 8532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8534 _flag_k = FK_CMP; 8535 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 8536 L_2400590E: 8537 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 8538 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 8539 L_24005913: 8540 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 8541 L_24005915: 8542 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 8543 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 8544 L_2400591B: 8545 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 8546 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 8547 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 8548 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 8549 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 8550 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 8551 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 8552 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 8553 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 8554 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 8555 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 8556 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 8557 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8559 _flag_k = FK_CMP; 8560 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 8561 L_24005940: 8562 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 8563 L_24005943: 8564 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 8565 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 8566 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 8567 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 8568 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8570 _flag_k = FK_CMP; 8571 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 8572 L_24005951: 8573 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 8574 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 8575 L_24005956: 8576 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 8577 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 8578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8580 _flag_k = FK_CMP; 8581 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 8582 L_2400595D: 8583 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 8584 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 8585 L_24005961: 8586 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 8587 L_24005964: 8588 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 8589 L_24005966: 8590 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 8591 L_24005969: 8592 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 8593 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 8594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8596 _flag_k = FK_CMP; 8597 RECOMP_BACKEDGE(); 8598 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 8599 L_24005975: 8600 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 8601 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 8602 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 8603 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 8604 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 8605 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 8606 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 8607 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 8608 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 8609 esp = ebp; /* 0x24005989: mov esp, ebp */ 8610 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 8611 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 8612 RECOMP_REGS_OUT(); 8613 } 8614 8615 void sub_2400586E(void) { 8616 int _fpu_cmp = 0; 8617 uint32_t _cf = 0; 8618 int _df = 1; 8619 uint32_t _flag_k = FK_NONE; 8620 uint32_t _flag_a = 0, _flag_b = 0; 8621 uint32_t _itail_tgt = 0; 8622 RECOMP_REGS_LOCALS 8623 RECOMP_ENTER(0x2400586Eu); 8624 8625 goto L_2400586E; 8626 L_240057F5: 8627 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 8628 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 8629 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 8630 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8631 _cf = 0; 8632 _flag_k = FK_NARROW(FK_TEST, 24); 8633 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 8634 L_24005803: 8635 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 8636 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 8637 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 8638 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8640 _flag_k = FK_CMP; 8641 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 8642 L_24005810: 8643 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 8644 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 8645 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 8646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8647 _flag_k = FK_NARROW(FK_CMP, 24); 8648 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 8649 L_24005819: 8650 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 8651 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 8652 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 8653 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 8654 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 8655 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 8656 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 8657 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 8658 L_24005834: 8659 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 8660 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8662 _flag_k = FK_CMP; 8663 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 8664 L_24005839: 8665 eax = ecx; /* 0x24005839: mov eax, ecx */ 8666 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 8667 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 8668 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 8669 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 8670 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 8671 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8673 _flag_k = FK_CMP; 8674 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 8675 L_2400584A: 8676 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 8677 L_2400584D: 8678 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 8679 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 8680 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 8681 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 8682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8684 _flag_k = FK_CMP; 8685 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 8686 L_2400585B: 8687 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 8688 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 8689 L_24005860: 8690 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 8691 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 8692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8694 _flag_k = FK_CMP; 8695 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 8696 L_24005867: 8697 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 8698 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 8699 L_2400586B: 8700 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 8701 L_2400586E: 8702 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 8703 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 8704 L_24005873: 8705 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 8706 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 8707 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 8708 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 8709 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 8710 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 8711 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 8712 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 8713 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 8714 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 8715 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 8716 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 8717 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8719 _flag_k = FK_CMP; 8720 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 8721 L_24005898: 8722 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 8723 L_2400589B: 8724 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 8725 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 8726 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 8727 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 8728 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8730 _flag_k = FK_CMP; 8731 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 8732 L_240058A9: 8733 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 8734 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 8735 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 8736 L_240058B4: 8737 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 8738 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 8739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 8740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8741 _flag_k = FK_CMP; 8742 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 8743 L_240058BC: 8744 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 8745 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 8746 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 8747 L_240058C7: 8748 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 8749 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 8750 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 8751 L_240058D1: 8752 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 8753 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 8754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8755 _flag_k = FK_NARROW(FK_CMP, 24); 8756 RECOMP_BACKEDGE(); 8757 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 8758 L_240058DB: 8759 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 8760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 8761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8762 _flag_k = FK_CMP; 8763 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 8764 L_240058DF: 8765 eax = ecx; /* 0x240058DF: mov eax, ecx */ 8766 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 8767 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 8768 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 8769 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 8770 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 8771 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8773 _flag_k = FK_CMP; 8774 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 8775 L_240058F0: 8776 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 8777 L_240058F3: 8778 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 8779 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 8780 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 8781 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 8782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8784 _flag_k = FK_CMP; 8785 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 8786 L_24005901: 8787 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 8788 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 8789 L_24005906: 8790 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 8791 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 8792 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 8793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8794 _flag_k = FK_CMP; 8795 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 8796 L_2400590E: 8797 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 8798 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 8799 L_24005913: 8800 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 8801 L_24005915: 8802 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 8803 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 8804 L_2400591B: 8805 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 8806 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 8807 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 8808 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 8809 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 8810 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 8811 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 8812 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 8813 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 8814 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 8815 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 8816 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 8817 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8819 _flag_k = FK_CMP; 8820 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 8821 L_24005940: 8822 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 8823 L_24005943: 8824 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 8825 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 8826 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 8827 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 8828 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8830 _flag_k = FK_CMP; 8831 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 8832 L_24005951: 8833 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 8834 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 8835 L_24005956: 8836 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 8837 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 8838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 8839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8840 _flag_k = FK_CMP; 8841 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 8842 L_2400595D: 8843 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 8844 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 8845 L_24005961: 8846 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 8847 L_24005964: 8848 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 8849 L_24005966: 8850 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 8851 L_24005969: 8852 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 8853 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 8854 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 8855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8856 _flag_k = FK_CMP; 8857 RECOMP_BACKEDGE(); 8858 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 8859 L_24005975: 8860 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 8861 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 8862 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 8863 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 8864 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 8865 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 8866 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 8867 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 8868 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 8869 esp = ebp; /* 0x24005989: mov esp, ebp */ 8870 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 8871 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 8872 RECOMP_REGS_OUT(); 8873 } 8874 8875 void sub_24005873(void) { 8876 int _fpu_cmp = 0; 8877 uint32_t _cf = 0; 8878 int _df = 1; 8879 uint32_t _flag_k = FK_NONE; 8880 uint32_t _flag_a = 0, _flag_b = 0; 8881 uint32_t _itail_tgt = 0; 8882 RECOMP_REGS_LOCALS 8883 RECOMP_ENTER(0x24005873u); 8884 8885 goto L_24005873; 8886 L_240057F5: 8887 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 8888 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 8889 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 8890 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8891 _cf = 0; 8892 _flag_k = FK_NARROW(FK_TEST, 24); 8893 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 8894 L_24005803: 8895 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 8896 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 8897 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 8898 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8900 _flag_k = FK_CMP; 8901 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 8902 L_24005810: 8903 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 8904 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 8905 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 8906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8907 _flag_k = FK_NARROW(FK_CMP, 24); 8908 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 8909 L_24005819: 8910 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 8911 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 8912 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 8913 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 8914 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 8915 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 8916 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 8917 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 8918 L_24005834: 8919 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 8920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 8921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8922 _flag_k = FK_CMP; 8923 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 8924 L_24005839: 8925 eax = ecx; /* 0x24005839: mov eax, ecx */ 8926 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 8927 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 8928 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 8929 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 8930 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 8931 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8933 _flag_k = FK_CMP; 8934 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 8935 L_2400584A: 8936 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 8937 L_2400584D: 8938 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 8939 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 8940 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 8941 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 8942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 8943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8944 _flag_k = FK_CMP; 8945 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 8946 L_2400585B: 8947 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 8948 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 8949 L_24005860: 8950 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 8951 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 8952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 8953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8954 _flag_k = FK_CMP; 8955 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 8956 L_24005867: 8957 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 8958 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 8959 L_2400586B: 8960 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 8961 L_2400586E: 8962 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 8963 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 8964 L_24005873: 8965 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 8966 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 8967 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 8968 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 8969 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 8970 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 8971 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 8972 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 8973 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 8974 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 8975 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 8976 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 8977 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 8978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8979 _flag_k = FK_CMP; 8980 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 8981 L_24005898: 8982 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 8983 L_2400589B: 8984 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 8985 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 8986 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 8987 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 8988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 8989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8990 _flag_k = FK_CMP; 8991 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 8992 L_240058A9: 8993 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 8994 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 8995 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 8996 L_240058B4: 8997 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 8998 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 8999 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9001 _flag_k = FK_CMP; 9002 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 9003 L_240058BC: 9004 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 9005 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 9006 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 9007 L_240058C7: 9008 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 9009 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 9010 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 9011 L_240058D1: 9012 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 9013 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9015 _flag_k = FK_NARROW(FK_CMP, 24); 9016 RECOMP_BACKEDGE(); 9017 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 9018 L_240058DB: 9019 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 9020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 9021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9022 _flag_k = FK_CMP; 9023 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 9024 L_240058DF: 9025 eax = ecx; /* 0x240058DF: mov eax, ecx */ 9026 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 9027 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 9028 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 9029 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 9030 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 9031 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9033 _flag_k = FK_CMP; 9034 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 9035 L_240058F0: 9036 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 9037 L_240058F3: 9038 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 9039 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 9040 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 9041 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 9042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9044 _flag_k = FK_CMP; 9045 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 9046 L_24005901: 9047 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 9048 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 9049 L_24005906: 9050 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 9051 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 9052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9054 _flag_k = FK_CMP; 9055 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 9056 L_2400590E: 9057 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 9058 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 9059 L_24005913: 9060 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 9061 L_24005915: 9062 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 9063 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 9064 L_2400591B: 9065 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 9066 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 9067 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 9068 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 9069 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 9070 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 9071 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 9072 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 9073 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 9074 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 9075 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 9076 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 9077 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9079 _flag_k = FK_CMP; 9080 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 9081 L_24005940: 9082 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 9083 L_24005943: 9084 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 9085 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 9086 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 9087 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 9088 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9090 _flag_k = FK_CMP; 9091 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 9092 L_24005951: 9093 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 9094 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 9095 L_24005956: 9096 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 9097 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 9098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 9099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9100 _flag_k = FK_CMP; 9101 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 9102 L_2400595D: 9103 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 9104 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 9105 L_24005961: 9106 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 9107 L_24005964: 9108 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 9109 L_24005966: 9110 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 9111 L_24005969: 9112 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 9113 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 9114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9116 _flag_k = FK_CMP; 9117 RECOMP_BACKEDGE(); 9118 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 9119 L_24005975: 9120 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 9121 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 9122 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 9123 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 9124 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 9125 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 9126 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 9127 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 9128 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 9129 esp = ebp; /* 0x24005989: mov esp, ebp */ 9130 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 9131 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 9132 RECOMP_REGS_OUT(); 9133 } 9134 9135 void sub_240058D1(void) { 9136 int _fpu_cmp = 0; 9137 uint32_t _cf = 0; 9138 int _df = 1; 9139 uint32_t _flag_k = FK_NONE; 9140 uint32_t _flag_a = 0, _flag_b = 0; 9141 uint32_t _itail_tgt = 0; 9142 RECOMP_REGS_LOCALS 9143 RECOMP_ENTER(0x240058D1u); 9144 9145 goto L_240058D1; 9146 L_240057F5: 9147 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 9148 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 9149 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 9150 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9151 _cf = 0; 9152 _flag_k = FK_NARROW(FK_TEST, 24); 9153 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 9154 L_24005803: 9155 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 9156 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 9157 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 9158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9160 _flag_k = FK_CMP; 9161 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 9162 L_24005810: 9163 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 9164 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 9165 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9167 _flag_k = FK_NARROW(FK_CMP, 24); 9168 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 9169 L_24005819: 9170 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 9171 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 9172 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 9173 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 9174 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 9175 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 9176 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 9177 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 9178 L_24005834: 9179 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 9180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 9181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9182 _flag_k = FK_CMP; 9183 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 9184 L_24005839: 9185 eax = ecx; /* 0x24005839: mov eax, ecx */ 9186 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 9187 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 9188 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 9189 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 9190 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 9191 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9193 _flag_k = FK_CMP; 9194 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 9195 L_2400584A: 9196 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 9197 L_2400584D: 9198 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 9199 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 9200 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 9201 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 9202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9204 _flag_k = FK_CMP; 9205 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 9206 L_2400585B: 9207 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 9208 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 9209 L_24005860: 9210 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 9211 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 9212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 9213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9214 _flag_k = FK_CMP; 9215 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 9216 L_24005867: 9217 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 9218 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 9219 L_2400586B: 9220 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 9221 L_2400586E: 9222 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 9223 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 9224 L_24005873: 9225 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 9226 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 9227 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 9228 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 9229 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 9230 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 9231 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 9232 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 9233 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 9234 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 9235 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 9236 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 9237 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9239 _flag_k = FK_CMP; 9240 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 9241 L_24005898: 9242 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 9243 L_2400589B: 9244 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 9245 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 9246 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 9247 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 9248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9250 _flag_k = FK_CMP; 9251 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 9252 L_240058A9: 9253 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 9254 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 9255 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 9256 L_240058B4: 9257 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 9258 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 9259 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9260 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9261 _flag_k = FK_CMP; 9262 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 9263 L_240058BC: 9264 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 9265 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 9266 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 9267 L_240058C7: 9268 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 9269 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 9270 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 9271 L_240058D1: 9272 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 9273 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9275 _flag_k = FK_NARROW(FK_CMP, 24); 9276 RECOMP_BACKEDGE(); 9277 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 9278 L_240058DB: 9279 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 9280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 9281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9282 _flag_k = FK_CMP; 9283 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 9284 L_240058DF: 9285 eax = ecx; /* 0x240058DF: mov eax, ecx */ 9286 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 9287 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 9288 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 9289 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 9290 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 9291 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9293 _flag_k = FK_CMP; 9294 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 9295 L_240058F0: 9296 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 9297 L_240058F3: 9298 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 9299 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 9300 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 9301 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 9302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9304 _flag_k = FK_CMP; 9305 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 9306 L_24005901: 9307 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 9308 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 9309 L_24005906: 9310 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 9311 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 9312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9314 _flag_k = FK_CMP; 9315 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 9316 L_2400590E: 9317 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 9318 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 9319 L_24005913: 9320 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 9321 L_24005915: 9322 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 9323 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 9324 L_2400591B: 9325 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 9326 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 9327 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 9328 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 9329 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 9330 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 9331 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 9332 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 9333 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 9334 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 9335 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 9336 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 9337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9339 _flag_k = FK_CMP; 9340 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 9341 L_24005940: 9342 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 9343 L_24005943: 9344 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 9345 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 9346 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 9347 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 9348 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9349 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9350 _flag_k = FK_CMP; 9351 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 9352 L_24005951: 9353 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 9354 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 9355 L_24005956: 9356 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 9357 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 9358 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 9359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9360 _flag_k = FK_CMP; 9361 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 9362 L_2400595D: 9363 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 9364 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 9365 L_24005961: 9366 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 9367 L_24005964: 9368 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 9369 L_24005966: 9370 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 9371 L_24005969: 9372 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 9373 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 9374 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9376 _flag_k = FK_CMP; 9377 RECOMP_BACKEDGE(); 9378 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 9379 L_24005975: 9380 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 9381 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 9382 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 9383 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 9384 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 9385 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 9386 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 9387 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 9388 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 9389 esp = ebp; /* 0x24005989: mov esp, ebp */ 9390 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 9391 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 9392 RECOMP_REGS_OUT(); 9393 } 9394 9395 void sub_24005915(void) { 9396 int _fpu_cmp = 0; 9397 uint32_t _cf = 0; 9398 int _df = 1; 9399 uint32_t _flag_k = FK_NONE; 9400 uint32_t _flag_a = 0, _flag_b = 0; 9401 uint32_t _itail_tgt = 0; 9402 RECOMP_REGS_LOCALS 9403 RECOMP_ENTER(0x24005915u); 9404 9405 goto L_24005915; 9406 L_240057F5: 9407 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 9408 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 9409 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 9410 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9411 _cf = 0; 9412 _flag_k = FK_NARROW(FK_TEST, 24); 9413 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 9414 L_24005803: 9415 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 9416 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 9417 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 9418 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9420 _flag_k = FK_CMP; 9421 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 9422 L_24005810: 9423 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 9424 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 9425 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9426 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9427 _flag_k = FK_NARROW(FK_CMP, 24); 9428 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 9429 L_24005819: 9430 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 9431 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 9432 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 9433 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 9434 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 9435 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 9436 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 9437 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 9438 L_24005834: 9439 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 9440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 9441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9442 _flag_k = FK_CMP; 9443 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 9444 L_24005839: 9445 eax = ecx; /* 0x24005839: mov eax, ecx */ 9446 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 9447 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 9448 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 9449 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 9450 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 9451 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9453 _flag_k = FK_CMP; 9454 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 9455 L_2400584A: 9456 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 9457 L_2400584D: 9458 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 9459 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 9460 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 9461 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 9462 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9464 _flag_k = FK_CMP; 9465 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 9466 L_2400585B: 9467 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 9468 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 9469 L_24005860: 9470 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 9471 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 9472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 9473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9474 _flag_k = FK_CMP; 9475 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 9476 L_24005867: 9477 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 9478 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 9479 L_2400586B: 9480 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 9481 L_2400586E: 9482 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 9483 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 9484 L_24005873: 9485 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 9486 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 9487 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 9488 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 9489 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 9490 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 9491 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 9492 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 9493 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 9494 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 9495 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 9496 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 9497 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9499 _flag_k = FK_CMP; 9500 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 9501 L_24005898: 9502 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 9503 L_2400589B: 9504 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 9505 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 9506 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 9507 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 9508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9510 _flag_k = FK_CMP; 9511 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 9512 L_240058A9: 9513 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 9514 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 9515 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 9516 L_240058B4: 9517 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 9518 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 9519 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9521 _flag_k = FK_CMP; 9522 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 9523 L_240058BC: 9524 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 9525 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 9526 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 9527 L_240058C7: 9528 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 9529 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 9530 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 9531 L_240058D1: 9532 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 9533 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9535 _flag_k = FK_NARROW(FK_CMP, 24); 9536 RECOMP_BACKEDGE(); 9537 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 9538 L_240058DB: 9539 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 9540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 9541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9542 _flag_k = FK_CMP; 9543 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 9544 L_240058DF: 9545 eax = ecx; /* 0x240058DF: mov eax, ecx */ 9546 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 9547 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 9548 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 9549 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 9550 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 9551 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9553 _flag_k = FK_CMP; 9554 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 9555 L_240058F0: 9556 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 9557 L_240058F3: 9558 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 9559 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 9560 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 9561 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 9562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9564 _flag_k = FK_CMP; 9565 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 9566 L_24005901: 9567 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 9568 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 9569 L_24005906: 9570 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 9571 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 9572 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9574 _flag_k = FK_CMP; 9575 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 9576 L_2400590E: 9577 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 9578 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 9579 L_24005913: 9580 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 9581 L_24005915: 9582 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 9583 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 9584 L_2400591B: 9585 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 9586 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 9587 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 9588 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 9589 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 9590 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 9591 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 9592 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 9593 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 9594 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 9595 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 9596 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 9597 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9599 _flag_k = FK_CMP; 9600 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 9601 L_24005940: 9602 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 9603 L_24005943: 9604 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 9605 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 9606 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 9607 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 9608 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9610 _flag_k = FK_CMP; 9611 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 9612 L_24005951: 9613 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 9614 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 9615 L_24005956: 9616 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 9617 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 9618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 9619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9620 _flag_k = FK_CMP; 9621 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 9622 L_2400595D: 9623 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 9624 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 9625 L_24005961: 9626 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 9627 L_24005964: 9628 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 9629 L_24005966: 9630 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 9631 L_24005969: 9632 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 9633 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 9634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9636 _flag_k = FK_CMP; 9637 RECOMP_BACKEDGE(); 9638 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 9639 L_24005975: 9640 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 9641 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 9642 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 9643 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 9644 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 9645 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 9646 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 9647 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 9648 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 9649 esp = ebp; /* 0x24005989: mov esp, ebp */ 9650 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 9651 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 9652 RECOMP_REGS_OUT(); 9653 } 9654 9655 void sub_2400591B(void) { 9656 int _fpu_cmp = 0; 9657 uint32_t _cf = 0; 9658 int _df = 1; 9659 uint32_t _flag_k = FK_NONE; 9660 uint32_t _flag_a = 0, _flag_b = 0; 9661 uint32_t _itail_tgt = 0; 9662 RECOMP_REGS_LOCALS 9663 RECOMP_ENTER(0x2400591Bu); 9664 9665 goto L_2400591B; 9666 L_240057F5: 9667 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 9668 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 9669 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 9670 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9671 _cf = 0; 9672 _flag_k = FK_NARROW(FK_TEST, 24); 9673 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 9674 L_24005803: 9675 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 9676 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 9677 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 9678 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9679 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9680 _flag_k = FK_CMP; 9681 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 9682 L_24005810: 9683 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 9684 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 9685 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9687 _flag_k = FK_NARROW(FK_CMP, 24); 9688 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 9689 L_24005819: 9690 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 9691 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 9692 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 9693 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 9694 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 9695 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 9696 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 9697 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 9698 L_24005834: 9699 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 9700 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 9701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9702 _flag_k = FK_CMP; 9703 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 9704 L_24005839: 9705 eax = ecx; /* 0x24005839: mov eax, ecx */ 9706 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 9707 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 9708 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 9709 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 9710 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 9711 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9713 _flag_k = FK_CMP; 9714 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 9715 L_2400584A: 9716 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 9717 L_2400584D: 9718 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 9719 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 9720 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 9721 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 9722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9724 _flag_k = FK_CMP; 9725 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 9726 L_2400585B: 9727 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 9728 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 9729 L_24005860: 9730 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 9731 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 9732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 9733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9734 _flag_k = FK_CMP; 9735 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 9736 L_24005867: 9737 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 9738 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 9739 L_2400586B: 9740 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 9741 L_2400586E: 9742 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 9743 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 9744 L_24005873: 9745 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 9746 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 9747 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 9748 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 9749 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 9750 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 9751 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 9752 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 9753 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 9754 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 9755 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 9756 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 9757 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9759 _flag_k = FK_CMP; 9760 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 9761 L_24005898: 9762 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 9763 L_2400589B: 9764 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 9765 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 9766 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 9767 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 9768 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9770 _flag_k = FK_CMP; 9771 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 9772 L_240058A9: 9773 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 9774 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 9775 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 9776 L_240058B4: 9777 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 9778 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 9779 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 9780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9781 _flag_k = FK_CMP; 9782 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 9783 L_240058BC: 9784 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 9785 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 9786 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 9787 L_240058C7: 9788 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 9789 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 9790 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 9791 L_240058D1: 9792 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 9793 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9795 _flag_k = FK_NARROW(FK_CMP, 24); 9796 RECOMP_BACKEDGE(); 9797 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 9798 L_240058DB: 9799 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 9800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 9801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9802 _flag_k = FK_CMP; 9803 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 9804 L_240058DF: 9805 eax = ecx; /* 0x240058DF: mov eax, ecx */ 9806 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 9807 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 9808 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 9809 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 9810 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 9811 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9813 _flag_k = FK_CMP; 9814 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 9815 L_240058F0: 9816 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 9817 L_240058F3: 9818 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 9819 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 9820 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 9821 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 9822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9824 _flag_k = FK_CMP; 9825 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 9826 L_24005901: 9827 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 9828 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 9829 L_24005906: 9830 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 9831 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 9832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 9833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9834 _flag_k = FK_CMP; 9835 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 9836 L_2400590E: 9837 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 9838 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 9839 L_24005913: 9840 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 9841 L_24005915: 9842 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 9843 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 9844 L_2400591B: 9845 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 9846 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 9847 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 9848 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 9849 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 9850 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 9851 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 9852 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 9853 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 9854 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 9855 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 9856 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 9857 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9859 _flag_k = FK_CMP; 9860 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 9861 L_24005940: 9862 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 9863 L_24005943: 9864 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 9865 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 9866 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 9867 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 9868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 9869 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9870 _flag_k = FK_CMP; 9871 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 9872 L_24005951: 9873 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 9874 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 9875 L_24005956: 9876 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 9877 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 9878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 9879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9880 _flag_k = FK_CMP; 9881 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 9882 L_2400595D: 9883 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 9884 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 9885 L_24005961: 9886 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 9887 L_24005964: 9888 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 9889 L_24005966: 9890 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 9891 L_24005969: 9892 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 9893 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 9894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 9895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9896 _flag_k = FK_CMP; 9897 RECOMP_BACKEDGE(); 9898 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 9899 L_24005975: 9900 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 9901 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 9902 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 9903 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 9904 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 9905 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 9906 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 9907 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 9908 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 9909 esp = ebp; /* 0x24005989: mov esp, ebp */ 9910 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 9911 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 9912 RECOMP_REGS_OUT(); 9913 } 9914 9915 void sub_24005964(void) { 9916 int _fpu_cmp = 0; 9917 uint32_t _cf = 0; 9918 int _df = 1; 9919 uint32_t _flag_k = FK_NONE; 9920 uint32_t _flag_a = 0, _flag_b = 0; 9921 uint32_t _itail_tgt = 0; 9922 RECOMP_REGS_LOCALS 9923 RECOMP_ENTER(0x24005964u); 9924 9925 goto L_24005964; 9926 L_240057F5: 9927 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 9928 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 9929 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 9930 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 9931 _cf = 0; 9932 _flag_k = FK_NARROW(FK_TEST, 24); 9933 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 9934 L_24005803: 9935 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 9936 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 9937 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 9938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9940 _flag_k = FK_CMP; 9941 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 9942 L_24005810: 9943 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 9944 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 9945 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 9946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9947 _flag_k = FK_NARROW(FK_CMP, 24); 9948 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 9949 L_24005819: 9950 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 9951 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 9952 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 9953 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 9954 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 9955 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 9956 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 9957 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 9958 L_24005834: 9959 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 9960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 9961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9962 _flag_k = FK_CMP; 9963 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 9964 L_24005839: 9965 eax = ecx; /* 0x24005839: mov eax, ecx */ 9966 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 9967 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 9968 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 9969 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 9970 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 9971 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 9972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9973 _flag_k = FK_CMP; 9974 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 9975 L_2400584A: 9976 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 9977 L_2400584D: 9978 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 9979 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 9980 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 9981 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 9982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 9983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9984 _flag_k = FK_CMP; 9985 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 9986 L_2400585B: 9987 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 9988 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 9989 L_24005860: 9990 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 9991 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 9992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 9993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9994 _flag_k = FK_CMP; 9995 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 9996 L_24005867: 9997 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 9998 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 9999 L_2400586B: 10000 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 10001 L_2400586E: 10002 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 10003 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 10004 L_24005873: 10005 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 10006 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 10007 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 10008 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 10009 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 10010 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 10011 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 10012 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 10013 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 10014 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 10015 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 10016 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 10017 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10019 _flag_k = FK_CMP; 10020 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 10021 L_24005898: 10022 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 10023 L_2400589B: 10024 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 10025 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 10026 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 10027 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 10028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10030 _flag_k = FK_CMP; 10031 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 10032 L_240058A9: 10033 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 10034 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 10035 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 10036 L_240058B4: 10037 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 10038 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 10039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10041 _flag_k = FK_CMP; 10042 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 10043 L_240058BC: 10044 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 10045 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 10046 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 10047 L_240058C7: 10048 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 10049 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 10050 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 10051 L_240058D1: 10052 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 10053 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 10054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10055 _flag_k = FK_NARROW(FK_CMP, 24); 10056 RECOMP_BACKEDGE(); 10057 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 10058 L_240058DB: 10059 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 10060 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 10061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10062 _flag_k = FK_CMP; 10063 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 10064 L_240058DF: 10065 eax = ecx; /* 0x240058DF: mov eax, ecx */ 10066 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 10067 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 10068 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 10069 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 10070 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 10071 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10073 _flag_k = FK_CMP; 10074 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 10075 L_240058F0: 10076 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 10077 L_240058F3: 10078 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 10079 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 10080 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 10081 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 10082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10084 _flag_k = FK_CMP; 10085 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 10086 L_24005901: 10087 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 10088 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 10089 L_24005906: 10090 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 10091 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 10092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 10093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10094 _flag_k = FK_CMP; 10095 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 10096 L_2400590E: 10097 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 10098 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 10099 L_24005913: 10100 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 10101 L_24005915: 10102 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 10103 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 10104 L_2400591B: 10105 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 10106 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 10107 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 10108 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 10109 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 10110 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 10111 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 10112 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 10113 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 10114 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 10115 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 10116 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 10117 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10119 _flag_k = FK_CMP; 10120 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 10121 L_24005940: 10122 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 10123 L_24005943: 10124 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 10125 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 10126 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 10127 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 10128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10130 _flag_k = FK_CMP; 10131 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 10132 L_24005951: 10133 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 10134 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 10135 L_24005956: 10136 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 10137 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 10138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 10139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10140 _flag_k = FK_CMP; 10141 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 10142 L_2400595D: 10143 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 10144 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 10145 L_24005961: 10146 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 10147 L_24005964: 10148 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 10149 L_24005966: 10150 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 10151 L_24005969: 10152 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 10153 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 10154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10156 _flag_k = FK_CMP; 10157 RECOMP_BACKEDGE(); 10158 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 10159 L_24005975: 10160 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 10161 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 10162 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 10163 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 10164 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 10165 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 10166 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 10167 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 10168 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 10169 esp = ebp; /* 0x24005989: mov esp, ebp */ 10170 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 10171 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 10172 RECOMP_REGS_OUT(); 10173 } 10174 10175 void sub_24005966(void) { 10176 int _fpu_cmp = 0; 10177 uint32_t _cf = 0; 10178 int _df = 1; 10179 uint32_t _flag_k = FK_NONE; 10180 uint32_t _flag_a = 0, _flag_b = 0; 10181 uint32_t _itail_tgt = 0; 10182 RECOMP_REGS_LOCALS 10183 RECOMP_ENTER(0x24005966u); 10184 10185 goto L_24005966; 10186 L_240057F5: 10187 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 10188 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 10189 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 10190 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10191 _cf = 0; 10192 _flag_k = FK_NARROW(FK_TEST, 24); 10193 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 10194 L_24005803: 10195 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 10196 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 10197 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 10198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10200 _flag_k = FK_CMP; 10201 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 10202 L_24005810: 10203 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 10204 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 10205 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 10206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10207 _flag_k = FK_NARROW(FK_CMP, 24); 10208 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 10209 L_24005819: 10210 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 10211 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 10212 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 10213 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 10214 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 10215 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 10216 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 10217 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 10218 L_24005834: 10219 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 10220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 10221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10222 _flag_k = FK_CMP; 10223 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 10224 L_24005839: 10225 eax = ecx; /* 0x24005839: mov eax, ecx */ 10226 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 10227 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 10228 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 10229 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 10230 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 10231 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10233 _flag_k = FK_CMP; 10234 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 10235 L_2400584A: 10236 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 10237 L_2400584D: 10238 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 10239 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 10240 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 10241 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 10242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10244 _flag_k = FK_CMP; 10245 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 10246 L_2400585B: 10247 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 10248 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 10249 L_24005860: 10250 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 10251 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 10252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 10253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10254 _flag_k = FK_CMP; 10255 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 10256 L_24005867: 10257 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 10258 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 10259 L_2400586B: 10260 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 10261 L_2400586E: 10262 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 10263 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 10264 L_24005873: 10265 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 10266 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 10267 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 10268 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 10269 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 10270 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 10271 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 10272 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 10273 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 10274 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 10275 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 10276 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 10277 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10279 _flag_k = FK_CMP; 10280 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 10281 L_24005898: 10282 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 10283 L_2400589B: 10284 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 10285 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 10286 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 10287 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 10288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10290 _flag_k = FK_CMP; 10291 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 10292 L_240058A9: 10293 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 10294 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 10295 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 10296 L_240058B4: 10297 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 10298 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 10299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10301 _flag_k = FK_CMP; 10302 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 10303 L_240058BC: 10304 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 10305 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 10306 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 10307 L_240058C7: 10308 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 10309 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 10310 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 10311 L_240058D1: 10312 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 10313 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 10314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10315 _flag_k = FK_NARROW(FK_CMP, 24); 10316 RECOMP_BACKEDGE(); 10317 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 10318 L_240058DB: 10319 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 10320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 10321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10322 _flag_k = FK_CMP; 10323 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 10324 L_240058DF: 10325 eax = ecx; /* 0x240058DF: mov eax, ecx */ 10326 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 10327 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 10328 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 10329 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 10330 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 10331 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10333 _flag_k = FK_CMP; 10334 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 10335 L_240058F0: 10336 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 10337 L_240058F3: 10338 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 10339 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 10340 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 10341 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 10342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10344 _flag_k = FK_CMP; 10345 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 10346 L_24005901: 10347 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 10348 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 10349 L_24005906: 10350 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 10351 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 10352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 10353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10354 _flag_k = FK_CMP; 10355 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 10356 L_2400590E: 10357 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 10358 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 10359 L_24005913: 10360 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 10361 L_24005915: 10362 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 10363 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 10364 L_2400591B: 10365 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 10366 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 10367 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 10368 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 10369 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 10370 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 10371 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 10372 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 10373 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 10374 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 10375 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 10376 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 10377 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10379 _flag_k = FK_CMP; 10380 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 10381 L_24005940: 10382 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 10383 L_24005943: 10384 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 10385 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 10386 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 10387 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 10388 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10390 _flag_k = FK_CMP; 10391 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 10392 L_24005951: 10393 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 10394 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 10395 L_24005956: 10396 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 10397 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 10398 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 10399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10400 _flag_k = FK_CMP; 10401 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 10402 L_2400595D: 10403 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 10404 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 10405 L_24005961: 10406 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 10407 L_24005964: 10408 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 10409 L_24005966: 10410 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 10411 L_24005969: 10412 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 10413 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 10414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10416 _flag_k = FK_CMP; 10417 RECOMP_BACKEDGE(); 10418 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 10419 L_24005975: 10420 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 10421 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 10422 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 10423 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 10424 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 10425 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 10426 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 10427 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 10428 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 10429 esp = ebp; /* 0x24005989: mov esp, ebp */ 10430 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 10431 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 10432 RECOMP_REGS_OUT(); 10433 } 10434 10435 void sub_24005969(void) { 10436 int _fpu_cmp = 0; 10437 uint32_t _cf = 0; 10438 int _df = 1; 10439 uint32_t _flag_k = FK_NONE; 10440 uint32_t _flag_a = 0, _flag_b = 0; 10441 uint32_t _itail_tgt = 0; 10442 RECOMP_REGS_LOCALS 10443 RECOMP_ENTER(0x24005969u); 10444 10445 goto L_24005969; 10446 L_240057F5: 10447 ecx = MEM32(eax + 0x4); /* 0x240057F5: mov ecx, dword ptr [eax + 4] */ 10448 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x240057F8: mov dl, byte ptr [ecx + 0x3c] */ 10449 /* test LO8(edx), LO8(edx) */ /* 0x240057FB: test dl, dl */ 10450 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10451 _cf = 0; 10452 _flag_k = FK_NARROW(FK_TEST, 24); 10453 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005975; /* 0x240057FD: jne 0x24005975 */ 10454 L_24005803: 10455 edi = MEM32(ecx + 0x4); /* 0x24005803: mov edi, dword ptr [ecx + 4] */ 10456 edx = MEM32(edi); /* 0x24005806: mov edx, dword ptr [edi] */ 10457 /* cmp ecx, edx */ /* 0x24005808: cmp ecx, edx */ 10458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10460 _flag_k = FK_CMP; 10461 if (CMP_NE(_flag_a, _flag_b)) goto L_240058D1; /* 0x2400580A: jne 0x240058d1 */ 10462 L_24005810: 10463 edx = MEM32(edi + 0x8); /* 0x24005810: mov edx, dword ptr [edi + 8] */ 10464 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x24005813: cmp byte ptr [edx + 0x3c], 0 */ 10465 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 10466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10467 _flag_k = FK_NARROW(FK_CMP, 24); 10468 if (CMP_NE(_flag_a, _flag_b)) goto L_24005834; /* 0x24005817: jne 0x24005834 */ 10469 L_24005819: 10470 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005819: mov byte ptr [ecx + 0x3c], bl */ 10471 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400581C: mov byte ptr [edx + 0x3c], bl */ 10472 ecx = MEM32(eax + 0x4); /* 0x2400581F: mov ecx, dword ptr [eax + 4] */ 10473 edx = MEM32(ecx + 0x4); /* 0x24005822: mov edx, dword ptr [ecx + 4] */ 10474 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x24005825: mov byte ptr [edx + 0x3c], 0 */ 10475 eax = MEM32(eax + 0x4); /* 0x24005829: mov eax, dword ptr [eax + 4] */ 10476 eax = MEM32(eax + 0x4); /* 0x2400582C: mov eax, dword ptr [eax + 4] */ 10477 goto L_24005969; /* 0x2400582F: jmp 0x24005969 */ 10478 L_24005834: 10479 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x24005834: cmp eax, dword ptr [ecx + 8] */ 10480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 10481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10482 _flag_k = FK_CMP; 10483 if (CMP_NE(_flag_a, _flag_b)) goto L_24005873; /* 0x24005837: jne 0x24005873 */ 10484 L_24005839: 10485 eax = ecx; /* 0x24005839: mov eax, ecx */ 10486 ecx = MEM32(eax + 0x8); /* 0x2400583B: mov ecx, dword ptr [eax + 8] */ 10487 edx = MEM32(ecx); /* 0x2400583E: mov edx, dword ptr [ecx] */ 10488 MEM32(eax + 0x8) = edx; /* 0x24005840: mov dword ptr [eax + 8], edx */ 10489 edx = MEM32(ecx); /* 0x24005843: mov edx, dword ptr [ecx] */ 10490 /* cmp edx, MEM32(esi + 0x8) */ /* 0x24005845: cmp edx, dword ptr [esi + 8] */ 10491 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10493 _flag_k = FK_CMP; 10494 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400584D; /* 0x24005848: je 0x2400584d */ 10495 L_2400584A: 10496 MEM32(edx + 0x4) = eax; /* 0x2400584A: mov dword ptr [edx + 4], eax */ 10497 L_2400584D: 10498 edx = MEM32(eax + 0x4); /* 0x2400584D: mov edx, dword ptr [eax + 4] */ 10499 MEM32(ecx + 0x4) = edx; /* 0x24005850: mov dword ptr [ecx + 4], edx */ 10500 edx = MEM32(esi + 0x4); /* 0x24005853: mov edx, dword ptr [esi + 4] */ 10501 /* cmp eax, MEM32(edx + 0x4) */ /* 0x24005856: cmp eax, dword ptr [edx + 4] */ 10502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10504 _flag_k = FK_CMP; 10505 if (CMP_NE(_flag_a, _flag_b)) goto L_24005860; /* 0x24005859: jne 0x24005860 */ 10506 L_2400585B: 10507 MEM32(edx + 0x4) = ecx; /* 0x2400585B: mov dword ptr [edx + 4], ecx */ 10508 goto L_2400586E; /* 0x2400585E: jmp 0x2400586e */ 10509 L_24005860: 10510 edx = MEM32(eax + 0x4); /* 0x24005860: mov edx, dword ptr [eax + 4] */ 10511 /* cmp eax, MEM32(edx) */ /* 0x24005863: cmp eax, dword ptr [edx] */ 10512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 10513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10514 _flag_k = FK_CMP; 10515 if (CMP_NE(_flag_a, _flag_b)) goto L_2400586B; /* 0x24005865: jne 0x2400586b */ 10516 L_24005867: 10517 MEM32(edx) = ecx; /* 0x24005867: mov dword ptr [edx], ecx */ 10518 goto L_2400586E; /* 0x24005869: jmp 0x2400586e */ 10519 L_2400586B: 10520 MEM32(edx + 0x8) = ecx; /* 0x2400586B: mov dword ptr [edx + 8], ecx */ 10521 L_2400586E: 10522 MEM32(ecx) = eax; /* 0x2400586E: mov dword ptr [ecx], eax */ 10523 MEM32(eax + 0x4) = ecx; /* 0x24005870: mov dword ptr [eax + 4], ecx */ 10524 L_24005873: 10525 ecx = MEM32(eax + 0x4); /* 0x24005873: mov ecx, dword ptr [eax + 4] */ 10526 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005876: mov byte ptr [ecx + 0x3c], bl */ 10527 edx = MEM32(eax + 0x4); /* 0x24005879: mov edx, dword ptr [eax + 4] */ 10528 ecx = MEM32(edx + 0x4); /* 0x2400587C: mov ecx, dword ptr [edx + 4] */ 10529 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x2400587F: mov byte ptr [ecx + 0x3c], 0 */ 10530 edx = MEM32(eax + 0x4); /* 0x24005883: mov edx, dword ptr [eax + 4] */ 10531 ecx = MEM32(edx + 0x4); /* 0x24005886: mov ecx, dword ptr [edx + 4] */ 10532 edx = MEM32(ecx); /* 0x24005889: mov edx, dword ptr [ecx] */ 10533 edi = MEM32(edx + 0x8); /* 0x2400588B: mov edi, dword ptr [edx + 8] */ 10534 MEM32(ecx) = edi; /* 0x2400588E: mov dword ptr [ecx], edi */ 10535 edi = MEM32(edx + 0x8); /* 0x24005890: mov edi, dword ptr [edx + 8] */ 10536 /* cmp edi, MEM32(esi + 0x8) */ /* 0x24005893: cmp edi, dword ptr [esi + 8] */ 10537 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10539 _flag_k = FK_CMP; 10540 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400589B; /* 0x24005896: je 0x2400589b */ 10541 L_24005898: 10542 MEM32(edi + 0x4) = ecx; /* 0x24005898: mov dword ptr [edi + 4], ecx */ 10543 L_2400589B: 10544 edi = MEM32(ecx + 0x4); /* 0x2400589B: mov edi, dword ptr [ecx + 4] */ 10545 MEM32(edx + 0x4) = edi; /* 0x2400589E: mov dword ptr [edx + 4], edi */ 10546 edi = MEM32(esi + 0x4); /* 0x240058A1: mov edi, dword ptr [esi + 4] */ 10547 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x240058A4: cmp ecx, dword ptr [edi + 4] */ 10548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10550 _flag_k = FK_CMP; 10551 if (CMP_NE(_flag_a, _flag_b)) goto L_240058B4; /* 0x240058A7: jne 0x240058b4 */ 10552 L_240058A9: 10553 MEM32(edi + 0x4) = edx; /* 0x240058A9: mov dword ptr [edi + 4], edx */ 10554 MEM32(edx + 0x8) = ecx; /* 0x240058AC: mov dword ptr [edx + 8], ecx */ 10555 goto L_24005966; /* 0x240058AF: jmp 0x24005966 */ 10556 L_240058B4: 10557 edi = MEM32(ecx + 0x4); /* 0x240058B4: mov edi, dword ptr [ecx + 4] */ 10558 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x240058B7: cmp ecx, dword ptr [edi + 8] */ 10559 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 10560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10561 _flag_k = FK_CMP; 10562 if (CMP_NE(_flag_a, _flag_b)) goto L_240058C7; /* 0x240058BA: jne 0x240058c7 */ 10563 L_240058BC: 10564 MEM32(edi + 0x8) = edx; /* 0x240058BC: mov dword ptr [edi + 8], edx */ 10565 MEM32(edx + 0x8) = ecx; /* 0x240058BF: mov dword ptr [edx + 8], ecx */ 10566 goto L_24005966; /* 0x240058C2: jmp 0x24005966 */ 10567 L_240058C7: 10568 MEM32(edi) = edx; /* 0x240058C7: mov dword ptr [edi], edx */ 10569 MEM32(edx + 0x8) = ecx; /* 0x240058C9: mov dword ptr [edx + 8], ecx */ 10570 goto L_24005966; /* 0x240058CC: jmp 0x24005966 */ 10571 L_240058D1: 10572 /* cmp MEM8(edx + 0x3C), 0 */ /* 0x240058D1: cmp byte ptr [edx + 0x3c], 0 */ 10573 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(0) << 24; 10574 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10575 _flag_k = FK_NARROW(FK_CMP, 24); 10576 RECOMP_BACKEDGE(); 10577 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005819; /* 0x240058D5: je 0x24005819 */ 10578 L_240058DB: 10579 /* cmp eax, MEM32(ecx) */ /* 0x240058DB: cmp eax, dword ptr [ecx] */ 10580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 10581 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10582 _flag_k = FK_CMP; 10583 if (CMP_NE(_flag_a, _flag_b)) goto L_2400591B; /* 0x240058DD: jne 0x2400591b */ 10584 L_240058DF: 10585 eax = ecx; /* 0x240058DF: mov eax, ecx */ 10586 ecx = MEM32(eax); /* 0x240058E1: mov ecx, dword ptr [eax] */ 10587 edx = MEM32(ecx + 0x8); /* 0x240058E3: mov edx, dword ptr [ecx + 8] */ 10588 MEM32(eax) = edx; /* 0x240058E6: mov dword ptr [eax], edx */ 10589 edx = MEM32(ecx + 0x8); /* 0x240058E8: mov edx, dword ptr [ecx + 8] */ 10590 /* cmp edx, MEM32(esi + 0x8) */ /* 0x240058EB: cmp edx, dword ptr [esi + 8] */ 10591 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10593 _flag_k = FK_CMP; 10594 if (CMP_EQ(_flag_a, _flag_b)) goto L_240058F3; /* 0x240058EE: je 0x240058f3 */ 10595 L_240058F0: 10596 MEM32(edx + 0x4) = eax; /* 0x240058F0: mov dword ptr [edx + 4], eax */ 10597 L_240058F3: 10598 edx = MEM32(eax + 0x4); /* 0x240058F3: mov edx, dword ptr [eax + 4] */ 10599 MEM32(ecx + 0x4) = edx; /* 0x240058F6: mov dword ptr [ecx + 4], edx */ 10600 edx = MEM32(esi + 0x4); /* 0x240058F9: mov edx, dword ptr [esi + 4] */ 10601 /* cmp eax, MEM32(edx + 0x4) */ /* 0x240058FC: cmp eax, dword ptr [edx + 4] */ 10602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 10603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10604 _flag_k = FK_CMP; 10605 if (CMP_NE(_flag_a, _flag_b)) goto L_24005906; /* 0x240058FF: jne 0x24005906 */ 10606 L_24005901: 10607 MEM32(edx + 0x4) = ecx; /* 0x24005901: mov dword ptr [edx + 4], ecx */ 10608 goto L_24005915; /* 0x24005904: jmp 0x24005915 */ 10609 L_24005906: 10610 edx = MEM32(eax + 0x4); /* 0x24005906: mov edx, dword ptr [eax + 4] */ 10611 /* cmp eax, MEM32(edx + 0x8) */ /* 0x24005909: cmp eax, dword ptr [edx + 8] */ 10612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 10613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10614 _flag_k = FK_CMP; 10615 if (CMP_NE(_flag_a, _flag_b)) goto L_24005913; /* 0x2400590C: jne 0x24005913 */ 10616 L_2400590E: 10617 MEM32(edx + 0x8) = ecx; /* 0x2400590E: mov dword ptr [edx + 8], ecx */ 10618 goto L_24005915; /* 0x24005911: jmp 0x24005915 */ 10619 L_24005913: 10620 MEM32(edx) = ecx; /* 0x24005913: mov dword ptr [edx], ecx */ 10621 L_24005915: 10622 MEM32(ecx + 0x8) = eax; /* 0x24005915: mov dword ptr [ecx + 8], eax */ 10623 MEM32(eax + 0x4) = ecx; /* 0x24005918: mov dword ptr [eax + 4], ecx */ 10624 L_2400591B: 10625 ecx = MEM32(eax + 0x4); /* 0x2400591B: mov ecx, dword ptr [eax + 4] */ 10626 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400591E: mov byte ptr [ecx + 0x3c], bl */ 10627 edx = MEM32(eax + 0x4); /* 0x24005921: mov edx, dword ptr [eax + 4] */ 10628 ecx = MEM32(edx + 0x4); /* 0x24005924: mov ecx, dword ptr [edx + 4] */ 10629 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x24005927: mov byte ptr [ecx + 0x3c], 0 */ 10630 edx = MEM32(eax + 0x4); /* 0x2400592B: mov edx, dword ptr [eax + 4] */ 10631 ecx = MEM32(edx + 0x4); /* 0x2400592E: mov ecx, dword ptr [edx + 4] */ 10632 edx = MEM32(ecx + 0x8); /* 0x24005931: mov edx, dword ptr [ecx + 8] */ 10633 edi = MEM32(edx); /* 0x24005934: mov edi, dword ptr [edx] */ 10634 MEM32(ecx + 0x8) = edi; /* 0x24005936: mov dword ptr [ecx + 8], edi */ 10635 edi = MEM32(edx); /* 0x24005939: mov edi, dword ptr [edx] */ 10636 /* cmp edi, MEM32(esi + 0x8) */ /* 0x2400593B: cmp edi, dword ptr [esi + 8] */ 10637 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 10638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10639 _flag_k = FK_CMP; 10640 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005943; /* 0x2400593E: je 0x24005943 */ 10641 L_24005940: 10642 MEM32(edi + 0x4) = ecx; /* 0x24005940: mov dword ptr [edi + 4], ecx */ 10643 L_24005943: 10644 edi = MEM32(ecx + 0x4); /* 0x24005943: mov edi, dword ptr [ecx + 4] */ 10645 MEM32(edx + 0x4) = edi; /* 0x24005946: mov dword ptr [edx + 4], edi */ 10646 edi = MEM32(esi + 0x4); /* 0x24005949: mov edi, dword ptr [esi + 4] */ 10647 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x2400594C: cmp ecx, dword ptr [edi + 4] */ 10648 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 10649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10650 _flag_k = FK_CMP; 10651 if (CMP_NE(_flag_a, _flag_b)) goto L_24005956; /* 0x2400594F: jne 0x24005956 */ 10652 L_24005951: 10653 MEM32(edi + 0x4) = edx; /* 0x24005951: mov dword ptr [edi + 4], edx */ 10654 goto L_24005964; /* 0x24005954: jmp 0x24005964 */ 10655 L_24005956: 10656 edi = MEM32(ecx + 0x4); /* 0x24005956: mov edi, dword ptr [ecx + 4] */ 10657 /* cmp ecx, MEM32(edi) */ /* 0x24005959: cmp ecx, dword ptr [edi] */ 10658 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 10659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10660 _flag_k = FK_CMP; 10661 if (CMP_NE(_flag_a, _flag_b)) goto L_24005961; /* 0x2400595B: jne 0x24005961 */ 10662 L_2400595D: 10663 MEM32(edi) = edx; /* 0x2400595D: mov dword ptr [edi], edx */ 10664 goto L_24005964; /* 0x2400595F: jmp 0x24005964 */ 10665 L_24005961: 10666 MEM32(edi + 0x8) = edx; /* 0x24005961: mov dword ptr [edi + 8], edx */ 10667 L_24005964: 10668 MEM32(edx) = ecx; /* 0x24005964: mov dword ptr [edx], ecx */ 10669 L_24005966: 10670 MEM32(ecx + 0x4) = edx; /* 0x24005966: mov dword ptr [ecx + 4], edx */ 10671 L_24005969: 10672 ecx = MEM32(esi + 0x4); /* 0x24005969: mov ecx, dword ptr [esi + 4] */ 10673 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x2400596C: cmp eax, dword ptr [ecx + 4] */ 10674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 10675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10676 _flag_k = FK_CMP; 10677 RECOMP_BACKEDGE(); 10678 if (CMP_NE(_flag_a, _flag_b)) goto L_240057F5; /* 0x2400596F: jne 0x240057f5 */ 10679 L_24005975: 10680 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 10681 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 10682 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 10683 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 10684 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 10685 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 10686 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 10687 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 10688 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 10689 esp = ebp; /* 0x24005989: mov esp, ebp */ 10690 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 10691 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 10692 RECOMP_REGS_OUT(); 10693 } 10694 10695 void sub_24005975(void) { 10696 int _fpu_cmp = 0; 10697 uint32_t _cf = 0; 10698 int _df = 1; 10699 uint32_t _flag_k = FK_NONE; 10700 uint32_t _flag_a = 0, _flag_b = 0; 10701 uint32_t _itail_tgt = 0; 10702 RECOMP_REGS_LOCALS 10703 RECOMP_ENTER(0x24005975u); 10704 10705 L_24005975: 10706 edx = MEM32(esi + 0x4); /* 0x24005975: mov edx, dword ptr [esi + 4] */ 10707 eax = MEM32(edx + 0x4); /* 0x24005978: mov eax, dword ptr [edx + 4] */ 10708 ecx = MEM32(ebp + (-0x4)); /* 0x2400597B: mov ecx, dword ptr [ebp - 4] */ 10709 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x2400597E: mov byte ptr [eax + 0x3c], bl */ 10710 eax = MEM32(ebp + 0x8); /* 0x24005981: mov eax, dword ptr [ebp + 8] */ 10711 edi = POP32_VAL(esp); /* 0x24005984: pop edi */ 10712 esi = POP32_VAL(esp); /* 0x24005985: pop esi */ 10713 MEM32(eax) = ecx; /* 0x24005986: mov dword ptr [eax], ecx */ 10714 ebx = POP32_VAL(esp); /* 0x24005988: pop ebx */ 10715 esp = ebp; /* 0x24005989: mov esp, ebp */ 10716 ebp = POP32_VAL(esp); /* 0x2400598B: pop ebp */ 10717 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2400598C: ret 0x10 */ 10718 RECOMP_REGS_OUT(); 10719 } 10720 10721 void sub_24005990(void) { 10722 int _fpu_cmp = 0; 10723 uint32_t _cf = 0; 10724 int _df = 1; 10725 uint32_t _flag_k = FK_NONE; 10726 uint32_t _flag_a = 0, _flag_b = 0; 10727 uint32_t _itail_tgt = 0; 10728 RECOMP_REGS_LOCALS 10729 RECOMP_ENTER(0x24005990u); 10730 10731 L_24005990: 10732 PUSH32(esp, ebp); /* 0x24005990: push ebp */ 10733 ebp = esp; /* 0x24005991: mov ebp, esp */ 10734 PUSH32(esp, ecx); /* 0x24005993: push ecx */ 10735 eax = MEM32(ecx + 0x4); /* 0x24005994: mov eax, dword ptr [ecx + 4] */ 10736 PUSH32(esp, ebx); /* 0x24005997: push ebx */ 10737 ebx = MEM32(ecx + 0x8); /* 0x24005998: mov ebx, dword ptr [ecx + 8] */ 10738 PUSH32(esp, edi); /* 0x2400599B: push edi */ 10739 edi = MEM32(eax + 0x4); /* 0x2400599C: mov edi, dword ptr [eax + 4] */ 10740 /* cmp edi, ebx */ /* 0x2400599F: cmp edi, ebx */ 10741 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10743 _flag_k = FK_CMP; 10744 MEM32(ebp + (-0x4)) = eax; /* 0x240059A1: mov dword ptr [ebp - 4], eax */ 10745 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005A2D; /* 0x240059A4: je 0x24005a2d */ 10746 L_240059AA: 10747 PUSH32(esp, esi); /* 0x240059AA: push esi */ 10748 L_240059AB: 10749 eax = MEM32(ebp + 0x8); /* 0x240059AB: mov eax, dword ptr [ebp + 8] */ 10750 esi = eax + 0x24; /* 0x240059AE: lea esi, [eax + 0x24] */ 10751 ecx = edi + 0x30; /* 0x240059B1: lea ecx, [edi + 0x30] */ 10752 L_240059B4: 10753 SET_LO8(eax, MEM8(ecx)); /* 0x240059B4: mov al, byte ptr [ecx] */ 10754 SET_LO8(edx, LO8(eax)); /* 0x240059B6: mov dl, al */ 10755 /* cmp LO8(eax), MEM8(esi) */ /* 0x240059B8: cmp al, byte ptr [esi] */ 10756 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 10757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10758 _flag_k = FK_NARROW(FK_CMP, 24); 10759 if (CMP_NE(_flag_a, _flag_b)) goto L_240059D8; /* 0x240059BA: jne 0x240059d8 */ 10760 L_240059BC: 10761 /* test LO8(edx), LO8(edx) */ /* 0x240059BC: test dl, dl */ 10762 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10763 _cf = 0; 10764 _flag_k = FK_NARROW(FK_TEST, 24); 10765 if (TEST_Z(_flag_a, _flag_b)) goto L_240059D4; /* 0x240059BE: je 0x240059d4 */ 10766 L_240059C0: 10767 SET_LO8(eax, MEM8(ecx + 0x1)); /* 0x240059C0: mov al, byte ptr [ecx + 1] */ 10768 SET_LO8(edx, LO8(eax)); /* 0x240059C3: mov dl, al */ 10769 /* cmp LO8(eax), MEM8(esi + 0x1) */ /* 0x240059C5: cmp al, byte ptr [esi + 1] */ 10770 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 10771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10772 _flag_k = FK_NARROW(FK_CMP, 24); 10773 if (CMP_NE(_flag_a, _flag_b)) goto L_240059D8; /* 0x240059C8: jne 0x240059d8 */ 10774 L_240059CA: 10775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 10776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10777 ecx = ecx + 2; /* 0x240059CA: add ecx, 2 */ 10778 _flag_k = FK_ADD; 10779 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 10780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10781 esi = esi + 2; /* 0x240059CD: add esi, 2 */ 10782 _flag_k = FK_ADD; 10783 /* test LO8(edx), LO8(edx) */ /* 0x240059D0: test dl, dl */ 10784 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10785 _cf = 0; 10786 _flag_k = FK_NARROW(FK_TEST, 24); 10787 RECOMP_BACKEDGE(); 10788 if (TEST_NZ(_flag_a, _flag_b)) goto L_240059B4; /* 0x240059D2: jne 0x240059b4 */ 10789 L_240059D4: 10790 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10791 ecx = 0; /* 0x240059D4: xor ecx, ecx */ 10792 _cf = 0; 10793 _flag_k = FK_TEST; 10794 goto L_240059DD; /* 0x240059D6: jmp 0x240059dd */ 10795 L_240059D8: 10796 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x240059D8: sbb ecx, ecx */ 10797 ecx = _sc ? 0xFFFFFFFFu : 0; 10798 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10799 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10800 { uint32_t _sa = ecx, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x240059DA: sbb ecx, -1 */ 10801 ecx = _sa - _sb - _sc; 10802 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10803 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10804 L_240059DD: 10805 /* test ecx, ecx */ /* 0x240059DD: test ecx, ecx */ 10806 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10807 _cf = 0; 10808 _flag_k = FK_TEST; 10809 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005A14; /* 0x240059DF: jne 0x24005a14 */ 10810 L_240059E1: 10811 ecx = MEM32(ebp + 0x8); /* 0x240059E1: mov ecx, dword ptr [ebp + 8] */ 10812 esi = MEM32(ecx); /* 0x240059E4: mov esi, dword ptr [ecx] */ 10813 ecx = MEM32(edi + 0xC); /* 0x240059E6: mov ecx, dword ptr [edi + 0xc] */ 10814 L_240059E9: 10815 SET_LO8(eax, MEM8(ecx)); /* 0x240059E9: mov al, byte ptr [ecx] */ 10816 SET_LO8(edx, LO8(eax)); /* 0x240059EB: mov dl, al */ 10817 /* cmp LO8(eax), MEM8(esi) */ /* 0x240059ED: cmp al, byte ptr [esi] */ 10818 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(MEM8(esi)) << 24; 10819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10820 _flag_k = FK_NARROW(FK_CMP, 24); 10821 if (CMP_NE(_flag_a, _flag_b)) goto L_24005A0D; /* 0x240059EF: jne 0x24005a0d */ 10822 L_240059F1: 10823 /* test LO8(edx), LO8(edx) */ /* 0x240059F1: test dl, dl */ 10824 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10825 _cf = 0; 10826 _flag_k = FK_NARROW(FK_TEST, 24); 10827 if (TEST_Z(_flag_a, _flag_b)) goto L_24005A09; /* 0x240059F3: je 0x24005a09 */ 10828 L_240059F5: 10829 SET_LO8(eax, MEM8(ecx + 0x1)); /* 0x240059F5: mov al, byte ptr [ecx + 1] */ 10830 SET_LO8(edx, LO8(eax)); /* 0x240059F8: mov dl, al */ 10831 /* cmp LO8(eax), MEM8(esi + 0x1) */ /* 0x240059FA: cmp al, byte ptr [esi + 1] */ 10832 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(MEM8(esi + 0x1)) << 24; 10833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10834 _flag_k = FK_NARROW(FK_CMP, 24); 10835 if (CMP_NE(_flag_a, _flag_b)) goto L_24005A0D; /* 0x240059FD: jne 0x24005a0d */ 10836 L_240059FF: 10837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 10838 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10839 ecx = ecx + 2; /* 0x240059FF: add ecx, 2 */ 10840 _flag_k = FK_ADD; 10841 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 10842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10843 esi = esi + 2; /* 0x24005A02: add esi, 2 */ 10844 _flag_k = FK_ADD; 10845 /* test LO8(edx), LO8(edx) */ /* 0x24005A05: test dl, dl */ 10846 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10847 _cf = 0; 10848 _flag_k = FK_NARROW(FK_TEST, 24); 10849 RECOMP_BACKEDGE(); 10850 if (TEST_NZ(_flag_a, _flag_b)) goto L_240059E9; /* 0x24005A07: jne 0x240059e9 */ 10851 L_24005A09: 10852 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10853 ecx = 0; /* 0x24005A09: xor ecx, ecx */ 10854 _cf = 0; 10855 _flag_k = FK_TEST; 10856 goto L_24005A12; /* 0x24005A0B: jmp 0x24005a12 */ 10857 L_24005A0D: 10858 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x24005A0D: sbb ecx, ecx */ 10859 ecx = _sc ? 0xFFFFFFFFu : 0; 10860 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10861 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10862 { uint32_t _sa = ecx, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x24005A0F: sbb ecx, -1 */ 10863 ecx = _sa - _sb - _sc; 10864 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10865 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10866 L_24005A12: 10867 /* test ecx, ecx */ /* 0x24005A12: test ecx, ecx */ 10868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10869 _cf = 0; 10870 _flag_k = FK_TEST; 10871 L_24005A14: 10872 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) ? 1 : 0); /* 0x24005A14: setl cl */ 10873 /* test LO8(ecx), LO8(ecx) */ /* 0x24005A17: test cl, cl */ 10874 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 10875 _cf = 0; 10876 _flag_k = FK_NARROW(FK_TEST, 24); 10877 if (TEST_Z(_flag_a, _flag_b)) goto L_24005A20; /* 0x24005A19: je 0x24005a20 */ 10878 L_24005A1B: 10879 edi = MEM32(edi + 0x8); /* 0x24005A1B: mov edi, dword ptr [edi + 8] */ 10880 goto L_24005A25; /* 0x24005A1E: jmp 0x24005a25 */ 10881 L_24005A20: 10882 MEM32(ebp + (-0x4)) = edi; /* 0x24005A20: mov dword ptr [ebp - 4], edi */ 10883 edi = MEM32(edi); /* 0x24005A23: mov edi, dword ptr [edi] */ 10884 L_24005A25: 10885 /* cmp edi, ebx */ /* 0x24005A25: cmp edi, ebx */ 10886 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10888 _flag_k = FK_CMP; 10889 RECOMP_BACKEDGE(); 10890 if (CMP_NE(_flag_a, _flag_b)) goto L_240059AB; /* 0x24005A27: jne 0x240059ab */ 10891 L_24005A29: 10892 eax = MEM32(ebp + (-0x4)); /* 0x24005A29: mov eax, dword ptr [ebp - 4] */ 10893 esi = POP32_VAL(esp); /* 0x24005A2C: pop esi */ 10894 L_24005A2D: 10895 edi = POP32_VAL(esp); /* 0x24005A2D: pop edi */ 10896 ebx = POP32_VAL(esp); /* 0x24005A2E: pop ebx */ 10897 esp = ebp; /* 0x24005A2F: mov esp, ebp */ 10898 ebp = POP32_VAL(esp); /* 0x24005A31: pop ebp */ 10899 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24005A32: ret 4 */ 10900 RECOMP_REGS_OUT(); 10901 } 10902 10903 void sub_24005A40(void) { 10904 int _fpu_cmp = 0; 10905 uint32_t _cf = 0; 10906 int _df = 1; 10907 uint32_t _flag_k = FK_NONE; 10908 uint32_t _flag_a = 0, _flag_b = 0; 10909 uint32_t _itail_tgt = 0; 10910 RECOMP_REGS_LOCALS 10911 RECOMP_ENTER(0x24005A40u); 10912 10913 L_24005A40: 10914 eax = MEM32(ecx); /* 0x24005A40: mov eax, dword ptr [ecx] */ 10915 SET_LO8(edx, MEM8(eax + 0x3C)); /* 0x24005A42: mov dl, byte ptr [eax + 0x3c] */ 10916 /* test LO8(edx), LO8(edx) */ /* 0x24005A45: test dl, dl */ 10917 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10918 _cf = 0; 10919 _flag_k = FK_NARROW(FK_TEST, 24); 10920 PUSH32(esp, ebx); /* 0x24005A47: push ebx */ 10921 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005A59; /* 0x24005A48: jne 0x24005a59 */ 10922 L_24005A4A: 10923 edx = MEM32(eax + 0x4); /* 0x24005A4A: mov edx, dword ptr [eax + 4] */ 10924 /* cmp MEM32(edx + 0x4), eax */ /* 0x24005A4D: cmp dword ptr [edx + 4], eax */ 10925 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(eax); 10926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10927 _flag_k = FK_CMP; 10928 if (CMP_NE(_flag_a, _flag_b)) goto L_24005A59; /* 0x24005A50: jne 0x24005a59 */ 10929 L_24005A52: 10930 eax = MEM32(eax + 0x8); /* 0x24005A52: mov eax, dword ptr [eax + 8] */ 10931 MEM32(ecx) = eax; /* 0x24005A55: mov dword ptr [ecx], eax */ 10932 ebx = POP32_VAL(esp); /* 0x24005A57: pop ebx */ 10933 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005A58: ret */ 10934 L_24005A59: 10935 edx = MEM32(eax); /* 0x24005A59: mov edx, dword ptr [eax] */ 10936 SET_LO8(ebx, MEM8(edx + 0x3D)); /* 0x24005A5B: mov bl, byte ptr [edx + 0x3d] */ 10937 /* test LO8(ebx), LO8(ebx) */ /* 0x24005A5E: test bl, bl */ 10938 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10939 _cf = 0; 10940 _flag_k = FK_NARROW(FK_TEST, 24); 10941 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005A7C; /* 0x24005A60: jne 0x24005a7c */ 10942 L_24005A62: 10943 eax = MEM32(edx + 0x8); /* 0x24005A62: mov eax, dword ptr [edx + 8] */ 10944 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x24005A65: mov bl, byte ptr [eax + 0x3d] */ 10945 /* test LO8(ebx), LO8(ebx) */ /* 0x24005A68: test bl, bl */ 10946 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10947 _cf = 0; 10948 _flag_k = FK_NARROW(FK_TEST, 24); 10949 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005A78; /* 0x24005A6A: jne 0x24005a78 */ 10950 L_24005A6C: 10951 edx = eax; /* 0x24005A6C: mov edx, eax */ 10952 eax = MEM32(edx + 0x8); /* 0x24005A6E: mov eax, dword ptr [edx + 8] */ 10953 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x24005A71: mov bl, byte ptr [eax + 0x3d] */ 10954 /* test LO8(ebx), LO8(ebx) */ /* 0x24005A74: test bl, bl */ 10955 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10956 _cf = 0; 10957 _flag_k = FK_NARROW(FK_TEST, 24); 10958 RECOMP_BACKEDGE(); 10959 if (TEST_Z(_flag_a, _flag_b)) goto L_24005A6C; /* 0x24005A76: je 0x24005a6c */ 10960 L_24005A78: 10961 MEM32(ecx) = edx; /* 0x24005A78: mov dword ptr [ecx], edx */ 10962 ebx = POP32_VAL(esp); /* 0x24005A7A: pop ebx */ 10963 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005A7B: ret */ 10964 L_24005A7C: 10965 eax = MEM32(eax + 0x4); /* 0x24005A7C: mov eax, dword ptr [eax + 4] */ 10966 edx = MEM32(ecx); /* 0x24005A7F: mov edx, dword ptr [ecx] */ 10967 /* cmp edx, MEM32(eax) */ /* 0x24005A81: cmp edx, dword ptr [eax] */ 10968 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 10969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10970 _flag_k = FK_CMP; 10971 if (CMP_NE(_flag_a, _flag_b)) goto L_24005A90; /* 0x24005A83: jne 0x24005a90 */ 10972 L_24005A85: 10973 MEM32(ecx) = eax; /* 0x24005A85: mov dword ptr [ecx], eax */ 10974 eax = MEM32(eax + 0x4); /* 0x24005A87: mov eax, dword ptr [eax + 4] */ 10975 edx = MEM32(ecx); /* 0x24005A8A: mov edx, dword ptr [ecx] */ 10976 /* cmp edx, MEM32(eax) */ /* 0x24005A8C: cmp edx, dword ptr [eax] */ 10977 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax)); 10978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10979 _flag_k = FK_CMP; 10980 RECOMP_BACKEDGE(); 10981 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005A85; /* 0x24005A8E: je 0x24005a85 */ 10982 L_24005A90: 10983 MEM32(ecx) = eax; /* 0x24005A90: mov dword ptr [ecx], eax */ 10984 ebx = POP32_VAL(esp); /* 0x24005A92: pop ebx */ 10985 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005A93: ret */ 10986 RECOMP_REGS_OUT(); 10987 } 10988 10989 void sub_24005AA0(void) { 10990 int _fpu_cmp = 0; 10991 uint32_t _cf = 0; 10992 int _df = 1; 10993 uint32_t _flag_k = FK_NONE; 10994 uint32_t _flag_a = 0, _flag_b = 0; 10995 uint32_t _itail_tgt = 0; 10996 RECOMP_REGS_LOCALS 10997 RECOMP_ENTER(0x24005AA0u); 10998 10999 L_24005AA0: 11000 PUSH32(esp, ebp); /* 0x24005AA0: push ebp */ 11001 ebp = esp; /* 0x24005AA1: mov ebp, esp */ 11002 eax = MEM32(ebp + 0x8); /* 0x24005AA3: mov eax, dword ptr [ebp + 8] */ 11003 /* test eax, eax */ /* 0x24005AA6: test eax, eax */ 11004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11005 _cf = 0; 11006 _flag_k = FK_TEST; 11007 if (TEST_Z(_flag_a, _flag_b)) goto L_24005AB1; /* 0x24005AA8: je 0x24005ab1 */ 11008 L_24005AAA: 11009 ecx = MEM32(ebp + 0xC); /* 0x24005AAA: mov ecx, dword ptr [ebp + 0xc] */ 11010 edx = MEM32(ecx); /* 0x24005AAD: mov edx, dword ptr [ecx] */ 11011 MEM32(eax) = edx; /* 0x24005AAF: mov dword ptr [eax], edx */ 11012 L_24005AB1: 11013 ebp = POP32_VAL(esp); /* 0x24005AB1: pop ebp */ 11014 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005AB2: ret */ 11015 RECOMP_REGS_OUT(); 11016 } 11017 11018 void sub_24005AC0(void) { 11019 int _fpu_cmp = 0; 11020 uint32_t _cf = 0; 11021 int _df = 1; 11022 uint32_t _flag_k = FK_NONE; 11023 uint32_t _flag_a = 0, _flag_b = 0; 11024 uint32_t _itail_tgt = 0; 11025 RECOMP_REGS_LOCALS 11026 RECOMP_ENTER(0x24005AC0u); 11027 11028 L_24005AC0: 11029 eax = MEM32(ecx + 0x4); /* 0x24005AC0: mov eax, dword ptr [ecx + 4] */ 11030 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005AC3: ret */ 11031 RECOMP_REGS_OUT(); 11032 } 11033 11034 void sub_24005AD0(void) { 11035 int _fpu_cmp = 0; 11036 uint32_t _cf = 0; 11037 int _df = 1; 11038 uint32_t _flag_k = FK_NONE; 11039 uint32_t _flag_a = 0, _flag_b = 0; 11040 uint32_t _itail_tgt = 0; 11041 RECOMP_REGS_LOCALS 11042 RECOMP_ENTER(0x24005AD0u); 11043 11044 L_24005AD0: 11045 PUSH32(esp, ebp); /* 0x24005AD0: push ebp */ 11046 ebp = esp; /* 0x24005AD1: mov ebp, esp */ 11047 eax = ecx; /* 0x24005AD3: mov eax, ecx */ 11048 ecx = MEM32(ebp + 0x8); /* 0x24005AD5: mov ecx, dword ptr [ebp + 8] */ 11049 edx = MEM32(ecx + 0x4); /* 0x24005AD8: mov edx, dword ptr [ecx + 4] */ 11050 MEM32(eax + 0x4) = edx; /* 0x24005ADB: mov dword ptr [eax + 4], edx */ 11051 MEM32(eax) = 0x2400B144u; /* 0x24005ADE: mov dword ptr [eax], 0x2400b144 */ 11052 ebp = POP32_VAL(esp); /* 0x24005AE4: pop ebp */ 11053 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24005AE5: ret 4 */ 11054 RECOMP_REGS_OUT(); 11055 } 11056 11057 void sub_24005AF0(void) { 11058 int _fpu_cmp = 0; 11059 uint32_t _cf = 0; 11060 int _df = 1; 11061 uint32_t _flag_k = FK_NONE; 11062 uint32_t _flag_a = 0, _flag_b = 0; 11063 uint32_t _itail_tgt = 0; 11064 RECOMP_REGS_LOCALS 11065 RECOMP_ENTER(0x24005AF0u); 11066 11067 L_24005AF0: 11068 PUSH32(esp, ebp); /* 0x24005AF0: push ebp */ 11069 ebp = esp; /* 0x24005AF1: mov ebp, esp */ 11070 eax = ecx; /* 0x24005AF3: mov eax, ecx */ 11071 ecx = MEM32(ebp + 0x8); /* 0x24005AF5: mov ecx, dword ptr [ebp + 8] */ 11072 edx = MEM32(ecx + 0x4); /* 0x24005AF8: mov edx, dword ptr [ecx + 4] */ 11073 MEM32(eax + 0x4) = edx; /* 0x24005AFB: mov dword ptr [eax + 4], edx */ 11074 ebp = POP32_VAL(esp); /* 0x24005AFE: pop ebp */ 11075 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24005AFF: ret 4 */ 11076 RECOMP_REGS_OUT(); 11077 } 11078 11079 void sub_24005B10(void) { 11080 int _fpu_cmp = 0; 11081 uint32_t _cf = 0; 11082 int _df = 1; 11083 uint32_t _flag_k = FK_NONE; 11084 uint32_t _flag_a = 0, _flag_b = 0; 11085 uint32_t _itail_tgt = 0; 11086 RECOMP_REGS_LOCALS 11087 RECOMP_ENTER(0x24005B10u); 11088 11089 L_24005B10: 11090 PUSH32(esp, ebp); /* 0x24005B10: push ebp */ 11091 ebp = esp; /* 0x24005B11: mov ebp, esp */ 11092 PUSH32(esp, ebx); /* 0x24005B13: push ebx */ 11093 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x24005B14: mov bl, byte ptr [ebp + 8] */ 11094 /* test LO8(ebx), 2 */ /* 0x24005B17: test bl, 2 */ 11095 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 11096 _cf = 0; 11097 _flag_k = FK_NARROW(FK_TEST, 24); 11098 PUSH32(esp, esi); /* 0x24005B1A: push esi */ 11099 esi = ecx; /* 0x24005B1B: mov esi, ecx */ 11100 if (TEST_Z(_flag_a, _flag_b)) goto L_24005B4B; /* 0x24005B1D: je 0x24005b4b */ 11101 L_24005B1F: 11102 eax = MEM32(esi + (-0x4)); /* 0x24005B1F: mov eax, dword ptr [esi - 4] */ 11103 PUSH32(esp, edi); /* 0x24005B22: push edi */ 11104 PUSH32(esp, 0x240097B0u); /* 0x24005B23: push 0x240097b0 */ 11105 edi = esi + (-0x4); /* 0x24005B28: lea edi, [esi - 4] */ 11106 PUSH32(esp, eax); /* 0x24005B2B: push eax */ 11107 PUSH32(esp, 8); /* 0x24005B2C: push 8 */ 11108 PUSH32(esp, esi); /* 0x24005B2E: push esi */ 11109 RECOMP_ICALL(0x24009850u); /* 0x24005B2F: call 0x24009850 */ /* not lifted */ 11110 RECOMP_FLAGS_IN(); 11111 /* test LO8(ebx), 1 */ /* 0x24005B34: test bl, 1 */ 11112 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11113 _cf = 0; 11114 _flag_k = FK_NARROW(FK_TEST, 24); 11115 if (TEST_Z(_flag_a, _flag_b)) goto L_24005B42; /* 0x24005B37: je 0x24005b42 */ 11116 L_24005B39: 11117 PUSH32(esp, edi); /* 0x24005B39: push edi */ 11118 RECOMP_ICALL(0x240097F2u); /* 0x24005B3A: call 0x240097f2 */ /* not lifted */ 11119 RECOMP_FLAGS_IN(); 11120 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11122 esp = esp + 4; /* 0x24005B3F: add esp, 4 */ 11123 _flag_k = FK_ADD; 11124 L_24005B42: 11125 eax = edi; /* 0x24005B42: mov eax, edi */ 11126 edi = POP32_VAL(esp); /* 0x24005B44: pop edi */ 11127 esi = POP32_VAL(esp); /* 0x24005B45: pop esi */ 11128 ebx = POP32_VAL(esp); /* 0x24005B46: pop ebx */ 11129 ebp = POP32_VAL(esp); /* 0x24005B47: pop ebp */ 11130 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24005B48: ret 4 */ 11131 L_24005B4B: 11132 ecx = esi; /* 0x24005B4B: mov ecx, esi */ 11133 RECOMP_ICALL(0x240097B0u); /* 0x24005B4D: call 0x240097b0 */ /* not lifted */ 11134 RECOMP_FLAGS_IN(); 11135 /* test LO8(ebx), 1 */ /* 0x24005B52: test bl, 1 */ 11136 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 11137 _cf = 0; 11138 _flag_k = FK_NARROW(FK_TEST, 24); 11139 if (TEST_Z(_flag_a, _flag_b)) goto L_24005B60; /* 0x24005B55: je 0x24005b60 */ 11140 L_24005B57: 11141 PUSH32(esp, esi); /* 0x24005B57: push esi */ 11142 RECOMP_ICALL(0x240097F2u); /* 0x24005B58: call 0x240097f2 */ /* not lifted */ 11143 RECOMP_FLAGS_IN(); 11144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11146 esp = esp + 4; /* 0x24005B5D: add esp, 4 */ 11147 _flag_k = FK_ADD; 11148 L_24005B60: 11149 eax = esi; /* 0x24005B60: mov eax, esi */ 11150 esi = POP32_VAL(esp); /* 0x24005B62: pop esi */ 11151 ebx = POP32_VAL(esp); /* 0x24005B63: pop ebx */ 11152 ebp = POP32_VAL(esp); /* 0x24005B64: pop ebp */ 11153 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24005B65: ret 4 */ 11154 RECOMP_REGS_OUT(); 11155 } 11156 11157 void sub_24005B70(void) { 11158 int _fpu_cmp = 0; 11159 uint32_t _cf = 0; 11160 int _df = 1; 11161 uint32_t _flag_k = FK_NONE; 11162 uint32_t _flag_a = 0, _flag_b = 0; 11163 uint32_t _itail_tgt = 0; 11164 RECOMP_REGS_LOCALS 11165 RECOMP_ENTER(0x24005B70u); 11166 11167 L_24005B70: 11168 RECOMP_ICALL(0x24005B80u); /* 0x24005B70: call 0x24005b80 */ /* not lifted */ 11169 RECOMP_FLAGS_IN(); 11170 goto L_24005BA0; /* 0x24005B75: jmp 0x24005ba0 */ 11171 L_24005BA0: 11172 PUSH32(esp, 0x24005BB0u); /* 0x24005BA0: push 0x24005bb0 */ 11173 RECOMP_ICALL(0x24009970u); /* 0x24005BA5: call 0x24009970 */ /* not lifted */ 11174 RECOMP_FLAGS_IN(); 11175 ecx = POP32_VAL(esp); /* 0x24005BAA: pop ecx */ 11176 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005BAB: ret */ 11177 RECOMP_REGS_OUT(); 11178 } 11179 11180 void sub_24005B80(void) { 11181 int _fpu_cmp = 0; 11182 uint32_t _cf = 0; 11183 int _df = 1; 11184 uint32_t _flag_k = FK_NONE; 11185 uint32_t _flag_a = 0, _flag_b = 0; 11186 uint32_t _itail_tgt = 0; 11187 RECOMP_REGS_LOCALS 11188 RECOMP_ENTER(0x24005B80u); 11189 11190 L_24005B80: 11191 PUSH32(esp, ebp); /* 0x24005B80: push ebp */ 11192 ebp = esp; /* 0x24005B81: mov ebp, esp */ 11193 PUSH32(esp, ecx); /* 0x24005B83: push ecx */ 11194 eax = ebp + (-0x1); /* 0x24005B84: lea eax, [ebp - 1] */ 11195 PUSH32(esp, eax); /* 0x24005B87: push eax */ 11196 ecx = ebp + (-0x2); /* 0x24005B88: lea ecx, [ebp - 2] */ 11197 PUSH32(esp, ecx); /* 0x24005B8B: push ecx */ 11198 ecx = 0x2400E2A0u; /* 0x24005B8C: mov ecx, 0x2400e2a0 */ 11199 RECOMP_ICALL(0x24007B70u); /* 0x24005B91: call 0x24007b70 */ /* not lifted */ 11200 RECOMP_FLAGS_IN(); 11201 esp = ebp; /* 0x24005B96: mov esp, ebp */ 11202 ebp = POP32_VAL(esp); /* 0x24005B98: pop ebp */ 11203 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005B99: ret */ 11204 RECOMP_REGS_OUT(); 11205 } 11206 11207 void sub_24005BA0(void) { 11208 int _fpu_cmp = 0; 11209 uint32_t _cf = 0; 11210 int _df = 1; 11211 uint32_t _flag_k = FK_NONE; 11212 uint32_t _flag_a = 0, _flag_b = 0; 11213 uint32_t _itail_tgt = 0; 11214 RECOMP_REGS_LOCALS 11215 RECOMP_ENTER(0x24005BA0u); 11216 11217 L_24005BA0: 11218 PUSH32(esp, 0x24005BB0u); /* 0x24005BA0: push 0x24005bb0 */ 11219 RECOMP_ICALL(0x24009970u); /* 0x24005BA5: call 0x24009970 */ /* not lifted */ 11220 RECOMP_FLAGS_IN(); 11221 ecx = POP32_VAL(esp); /* 0x24005BAA: pop ecx */ 11222 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005BAB: ret */ 11223 RECOMP_REGS_OUT(); 11224 } 11225 11226 void sub_24005BB0(void) { 11227 int _fpu_cmp = 0; 11228 uint32_t _cf = 0; 11229 int _df = 1; 11230 uint32_t _flag_k = FK_NONE; 11231 uint32_t _flag_a = 0, _flag_b = 0; 11232 uint32_t _itail_tgt = 0; 11233 RECOMP_REGS_LOCALS 11234 RECOMP_ENTER(0x24005BB0u); 11235 11236 L_24005BB0: 11237 SET_LO8(ecx, MEM8(0x2400E298)); /* 0x24005BB0: mov cl, byte ptr [0x2400e298] */ 11238 SET_LO8(eax, 1); /* 0x24005BB6: mov al, 1 */ 11239 /* test LO8(eax), LO8(ecx) */ /* 0x24005BB8: test al, cl */ 11240 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11241 _cf = 0; 11242 _flag_k = FK_NARROW(FK_TEST, 24); 11243 if (TEST_NZ(_flag_a, _flag_b)) goto L_24005BCE; /* 0x24005BBA: jne 0x24005bce */ 11244 L_24005BBC: 11245 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 11246 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x24005BBC: or cl, al */ 11247 _cf = 0; 11248 _flag_k = FK_NARROW(FK_TEST, 24); 11249 MEM8(0x2400E298) = (uint8_t)(LO8(ecx)); /* 0x24005BBE: mov byte ptr [0x2400e298], cl */ 11250 ecx = 0x2400E2A0u; /* 0x24005BC4: mov ecx, 0x2400e2a0 */ 11251 goto L_24005BD0; /* 0x24005BC9: jmp 0x24005bd0 */ 11252 L_24005BCE: 11253 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005BCE: ret */ 11254 L_24005BD0: 11255 PUSH32(esp, ebp); /* 0x24005BD0: push ebp */ 11256 ebp = esp; /* 0x24005BD1: mov ebp, esp */ 11257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11259 esp = esp - 8; /* 0x24005BD3: sub esp, 8 */ 11260 _flag_k = FK_CMP; 11261 PUSH32(esp, ebx); /* 0x24005BD6: push ebx */ 11262 PUSH32(esp, esi); /* 0x24005BD7: push esi */ 11263 esi = ecx; /* 0x24005BD8: mov esi, ecx */ 11264 ecx = MEM32(esi + 0x10); /* 0x24005BDA: mov ecx, dword ptr [esi + 0x10] */ 11265 /* test ecx, ecx */ /* 0x24005BDD: test ecx, ecx */ 11266 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11267 _cf = 0; 11268 _flag_k = FK_TEST; 11269 PUSH32(esp, edi); /* 0x24005BDF: push edi */ 11270 edi = MEM32(esi + 0x4); /* 0x24005BE0: mov edi, dword ptr [esi + 4] */ 11271 eax = MEM32(edi); /* 0x24005BE3: mov eax, dword ptr [edi] */ 11272 MEM32(ebp + (-0x4)) = eax; /* 0x24005BE5: mov dword ptr [ebp - 4], eax */ 11273 if (TEST_Z(_flag_a, _flag_b)) goto L_24005C4F; /* 0x24005BE8: je 0x24005c4f */ 11274 L_24005BEA: 11275 ecx = eax; /* 0x24005BEA: mov ecx, eax */ 11276 /* cmp eax, ecx */ /* 0x24005BEC: cmp eax, ecx */ 11277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11279 _flag_k = FK_CMP; 11280 if (CMP_NE(_flag_a, _flag_b)) goto L_24005C4F; /* 0x24005BEE: jne 0x24005c4f */ 11281 L_24005BF0: 11282 /* cmp edi, edi */ /* 0x24005BF0: cmp edi, edi */ 11283 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11285 _flag_k = FK_CMP; 11286 if (CMP_NE(_flag_a, _flag_b)) goto L_24005C4F; /* 0x24005BF2: jne 0x24005c4f */ 11287 L_24005BF4: 11288 ebx = MEM32(edi + 0x4); /* 0x24005BF4: mov ebx, dword ptr [edi + 4] */ 11289 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x24005BF7: cmp ebx, dword ptr [esi + 8] */ 11290 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11292 _flag_k = FK_CMP; 11293 edi = ebx; /* 0x24005BFA: mov edi, ebx */ 11294 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005C27; /* 0x24005BFC: je 0x24005c27 */ 11295 L_24005BFE: 11296 eax = MEM32(edi + 0x8); /* 0x24005BFE: mov eax, dword ptr [edi + 8] */ 11297 PUSH32(esp, eax); /* 0x24005C01: push eax */ 11298 ecx = esi; /* 0x24005C02: mov ecx, esi */ 11299 RECOMP_ICALL(0x24008BC0u); /* 0x24005C04: call 0x24008bc0 */ /* not lifted */ 11300 RECOMP_FLAGS_IN(); 11301 edi = MEM32(edi); /* 0x24005C09: mov edi, dword ptr [edi] */ 11302 PUSH32(esp, 0); /* 0x24005C0B: push 0 */ 11303 ecx = ebx + 0xC; /* 0x24005C0D: lea ecx, [ebx + 0xc] */ 11304 RECOMP_ICALL(0x24009720u); /* 0x24005C10: call 0x24009720 */ /* not lifted */ 11305 RECOMP_FLAGS_IN(); 11306 PUSH32(esp, ebx); /* 0x24005C15: push ebx */ 11307 RECOMP_ICALL(0x240097F2u); /* 0x24005C16: call 0x240097f2 */ /* not lifted */ 11308 RECOMP_FLAGS_IN(); 11309 eax = MEM32(esi + 0x8); /* 0x24005C1B: mov eax, dword ptr [esi + 8] */ 11310 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11311 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11312 esp = esp + 4; /* 0x24005C1E: add esp, 4 */ 11313 _flag_k = FK_ADD; 11314 /* cmp edi, eax */ /* 0x24005C21: cmp edi, eax */ 11315 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11317 _flag_k = FK_CMP; 11318 ebx = edi; /* 0x24005C23: mov ebx, edi */ 11319 RECOMP_BACKEDGE(); 11320 if (CMP_NE(_flag_a, _flag_b)) goto L_24005BFE; /* 0x24005C25: jne 0x24005bfe */ 11321 L_24005C27: 11322 ecx = MEM32(esi + 0x4); /* 0x24005C27: mov ecx, dword ptr [esi + 4] */ 11323 edx = MEM32(esi + 0x8); /* 0x24005C2A: mov edx, dword ptr [esi + 8] */ 11324 MEM32(ecx + 0x4) = edx; /* 0x24005C2D: mov dword ptr [ecx + 4], edx */ 11325 eax = MEM32(esi + 0x4); /* 0x24005C30: mov eax, dword ptr [esi + 4] */ 11326 MEM32(esi + 0x10) = 0; /* 0x24005C33: mov dword ptr [esi + 0x10], 0 */ 11327 MEM32(eax) = eax; /* 0x24005C3A: mov dword ptr [eax], eax */ 11328 eax = MEM32(esi + 0x4); /* 0x24005C3C: mov eax, dword ptr [esi + 4] */ 11329 MEM32(eax + 0x8) = eax; /* 0x24005C3F: mov dword ptr [eax + 8], eax */ 11330 eax = ebp + (-0x8); /* 0x24005C42: lea eax, [ebp - 8] */ 11331 PUSH32(esp, eax); /* 0x24005C45: push eax */ 11332 ecx = esi; /* 0x24005C46: mov ecx, esi */ 11333 RECOMP_ICALL(0x24008140u); /* 0x24005C48: call 0x24008140 */ /* not lifted */ 11334 RECOMP_FLAGS_IN(); 11335 goto L_24005C70; /* 0x24005C4D: jmp 0x24005c70 */ 11336 L_24005C4F: 11337 /* cmp eax, edi */ /* 0x24005C4F: cmp eax, edi */ 11338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11340 _flag_k = FK_CMP; 11341 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005C70; /* 0x24005C51: je 0x24005c70 */ 11342 L_24005C53: 11343 ecx = ebp + (-0x4); /* 0x24005C53: lea ecx, [ebp - 4] */ 11344 ebx = eax; /* 0x24005C56: mov ebx, eax */ 11345 RECOMP_ICALL(0x240094A0u); /* 0x24005C58: call 0x240094a0 */ /* not lifted */ 11346 RECOMP_FLAGS_IN(); 11347 PUSH32(esp, ebx); /* 0x24005C5D: push ebx */ 11348 ecx = ebp + (-0x8); /* 0x24005C5E: lea ecx, [ebp - 8] */ 11349 PUSH32(esp, ecx); /* 0x24005C61: push ecx */ 11350 ecx = esi; /* 0x24005C62: mov ecx, esi */ 11351 RECOMP_ICALL(0x240087F0u); /* 0x24005C64: call 0x240087f0 */ /* not lifted */ 11352 RECOMP_FLAGS_IN(); 11353 eax = MEM32(ebp + (-0x4)); /* 0x24005C69: mov eax, dword ptr [ebp - 4] */ 11354 /* cmp eax, edi */ /* 0x24005C6C: cmp eax, edi */ 11355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11357 _flag_k = FK_CMP; 11358 RECOMP_BACKEDGE(); 11359 if (CMP_NE(_flag_a, _flag_b)) goto L_24005C53; /* 0x24005C6E: jne 0x24005c53 */ 11360 L_24005C70: 11361 edx = MEM32(esi + 0x4); /* 0x24005C70: mov edx, dword ptr [esi + 4] */ 11362 PUSH32(esp, edx); /* 0x24005C73: push edx */ 11363 RECOMP_ICALL(0x240097F2u); /* 0x24005C74: call 0x240097f2 */ /* not lifted */ 11364 RECOMP_FLAGS_IN(); 11365 eax = MEM32(esi + 0x8); /* 0x24005C79: mov eax, dword ptr [esi + 8] */ 11366 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11367 edi = 0; /* 0x24005C7C: xor edi, edi */ 11368 _cf = 0; 11369 _flag_k = FK_TEST; 11370 PUSH32(esp, eax); /* 0x24005C7E: push eax */ 11371 MEM32(esi + 0x4) = edi; /* 0x24005C7F: mov dword ptr [esi + 4], edi */ 11372 MEM32(esi + 0x10) = edi; /* 0x24005C82: mov dword ptr [esi + 0x10], edi */ 11373 RECOMP_ICALL(0x240097F2u); /* 0x24005C85: call 0x240097f2 */ /* not lifted */ 11374 RECOMP_FLAGS_IN(); 11375 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11377 esp = esp + 8; /* 0x24005C8A: add esp, 8 */ 11378 _flag_k = FK_ADD; 11379 MEM32(esi + 0x8) = edi; /* 0x24005C8D: mov dword ptr [esi + 8], edi */ 11380 edi = POP32_VAL(esp); /* 0x24005C90: pop edi */ 11381 esi = POP32_VAL(esp); /* 0x24005C91: pop esi */ 11382 ebx = POP32_VAL(esp); /* 0x24005C92: pop ebx */ 11383 esp = ebp; /* 0x24005C93: mov esp, ebp */ 11384 ebp = POP32_VAL(esp); /* 0x24005C95: pop ebp */ 11385 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005C96: ret */ 11386 RECOMP_REGS_OUT(); 11387 } 11388 11389 void sub_24005BD0(void) { 11390 int _fpu_cmp = 0; 11391 uint32_t _cf = 0; 11392 int _df = 1; 11393 uint32_t _flag_k = FK_NONE; 11394 uint32_t _flag_a = 0, _flag_b = 0; 11395 uint32_t _itail_tgt = 0; 11396 RECOMP_REGS_LOCALS 11397 RECOMP_ENTER(0x24005BD0u); 11398 11399 L_24005BD0: 11400 PUSH32(esp, ebp); /* 0x24005BD0: push ebp */ 11401 ebp = esp; /* 0x24005BD1: mov ebp, esp */ 11402 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11404 esp = esp - 8; /* 0x24005BD3: sub esp, 8 */ 11405 _flag_k = FK_CMP; 11406 PUSH32(esp, ebx); /* 0x24005BD6: push ebx */ 11407 PUSH32(esp, esi); /* 0x24005BD7: push esi */ 11408 esi = ecx; /* 0x24005BD8: mov esi, ecx */ 11409 ecx = MEM32(esi + 0x10); /* 0x24005BDA: mov ecx, dword ptr [esi + 0x10] */ 11410 /* test ecx, ecx */ /* 0x24005BDD: test ecx, ecx */ 11411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11412 _cf = 0; 11413 _flag_k = FK_TEST; 11414 PUSH32(esp, edi); /* 0x24005BDF: push edi */ 11415 edi = MEM32(esi + 0x4); /* 0x24005BE0: mov edi, dword ptr [esi + 4] */ 11416 eax = MEM32(edi); /* 0x24005BE3: mov eax, dword ptr [edi] */ 11417 MEM32(ebp + (-0x4)) = eax; /* 0x24005BE5: mov dword ptr [ebp - 4], eax */ 11418 if (TEST_Z(_flag_a, _flag_b)) goto L_24005C4F; /* 0x24005BE8: je 0x24005c4f */ 11419 L_24005BEA: 11420 ecx = eax; /* 0x24005BEA: mov ecx, eax */ 11421 /* cmp eax, ecx */ /* 0x24005BEC: cmp eax, ecx */ 11422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11424 _flag_k = FK_CMP; 11425 if (CMP_NE(_flag_a, _flag_b)) goto L_24005C4F; /* 0x24005BEE: jne 0x24005c4f */ 11426 L_24005BF0: 11427 /* cmp edi, edi */ /* 0x24005BF0: cmp edi, edi */ 11428 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11430 _flag_k = FK_CMP; 11431 if (CMP_NE(_flag_a, _flag_b)) goto L_24005C4F; /* 0x24005BF2: jne 0x24005c4f */ 11432 L_24005BF4: 11433 ebx = MEM32(edi + 0x4); /* 0x24005BF4: mov ebx, dword ptr [edi + 4] */ 11434 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x24005BF7: cmp ebx, dword ptr [esi + 8] */ 11435 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11437 _flag_k = FK_CMP; 11438 edi = ebx; /* 0x24005BFA: mov edi, ebx */ 11439 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005C27; /* 0x24005BFC: je 0x24005c27 */ 11440 L_24005BFE: 11441 eax = MEM32(edi + 0x8); /* 0x24005BFE: mov eax, dword ptr [edi + 8] */ 11442 PUSH32(esp, eax); /* 0x24005C01: push eax */ 11443 ecx = esi; /* 0x24005C02: mov ecx, esi */ 11444 RECOMP_ICALL(0x24008BC0u); /* 0x24005C04: call 0x24008bc0 */ /* not lifted */ 11445 RECOMP_FLAGS_IN(); 11446 edi = MEM32(edi); /* 0x24005C09: mov edi, dword ptr [edi] */ 11447 PUSH32(esp, 0); /* 0x24005C0B: push 0 */ 11448 ecx = ebx + 0xC; /* 0x24005C0D: lea ecx, [ebx + 0xc] */ 11449 RECOMP_ICALL(0x24009720u); /* 0x24005C10: call 0x24009720 */ /* not lifted */ 11450 RECOMP_FLAGS_IN(); 11451 PUSH32(esp, ebx); /* 0x24005C15: push ebx */ 11452 RECOMP_ICALL(0x240097F2u); /* 0x24005C16: call 0x240097f2 */ /* not lifted */ 11453 RECOMP_FLAGS_IN(); 11454 eax = MEM32(esi + 0x8); /* 0x24005C1B: mov eax, dword ptr [esi + 8] */ 11455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11457 esp = esp + 4; /* 0x24005C1E: add esp, 4 */ 11458 _flag_k = FK_ADD; 11459 /* cmp edi, eax */ /* 0x24005C21: cmp edi, eax */ 11460 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11462 _flag_k = FK_CMP; 11463 ebx = edi; /* 0x24005C23: mov ebx, edi */ 11464 RECOMP_BACKEDGE(); 11465 if (CMP_NE(_flag_a, _flag_b)) goto L_24005BFE; /* 0x24005C25: jne 0x24005bfe */ 11466 L_24005C27: 11467 ecx = MEM32(esi + 0x4); /* 0x24005C27: mov ecx, dword ptr [esi + 4] */ 11468 edx = MEM32(esi + 0x8); /* 0x24005C2A: mov edx, dword ptr [esi + 8] */ 11469 MEM32(ecx + 0x4) = edx; /* 0x24005C2D: mov dword ptr [ecx + 4], edx */ 11470 eax = MEM32(esi + 0x4); /* 0x24005C30: mov eax, dword ptr [esi + 4] */ 11471 MEM32(esi + 0x10) = 0; /* 0x24005C33: mov dword ptr [esi + 0x10], 0 */ 11472 MEM32(eax) = eax; /* 0x24005C3A: mov dword ptr [eax], eax */ 11473 eax = MEM32(esi + 0x4); /* 0x24005C3C: mov eax, dword ptr [esi + 4] */ 11474 MEM32(eax + 0x8) = eax; /* 0x24005C3F: mov dword ptr [eax + 8], eax */ 11475 eax = ebp + (-0x8); /* 0x24005C42: lea eax, [ebp - 8] */ 11476 PUSH32(esp, eax); /* 0x24005C45: push eax */ 11477 ecx = esi; /* 0x24005C46: mov ecx, esi */ 11478 RECOMP_ICALL(0x24008140u); /* 0x24005C48: call 0x24008140 */ /* not lifted */ 11479 RECOMP_FLAGS_IN(); 11480 goto L_24005C70; /* 0x24005C4D: jmp 0x24005c70 */ 11481 L_24005C4F: 11482 /* cmp eax, edi */ /* 0x24005C4F: cmp eax, edi */ 11483 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11485 _flag_k = FK_CMP; 11486 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005C70; /* 0x24005C51: je 0x24005c70 */ 11487 L_24005C53: 11488 ecx = ebp + (-0x4); /* 0x24005C53: lea ecx, [ebp - 4] */ 11489 ebx = eax; /* 0x24005C56: mov ebx, eax */ 11490 RECOMP_ICALL(0x240094A0u); /* 0x24005C58: call 0x240094a0 */ /* not lifted */ 11491 RECOMP_FLAGS_IN(); 11492 PUSH32(esp, ebx); /* 0x24005C5D: push ebx */ 11493 ecx = ebp + (-0x8); /* 0x24005C5E: lea ecx, [ebp - 8] */ 11494 PUSH32(esp, ecx); /* 0x24005C61: push ecx */ 11495 ecx = esi; /* 0x24005C62: mov ecx, esi */ 11496 RECOMP_ICALL(0x240087F0u); /* 0x24005C64: call 0x240087f0 */ /* not lifted */ 11497 RECOMP_FLAGS_IN(); 11498 eax = MEM32(ebp + (-0x4)); /* 0x24005C69: mov eax, dword ptr [ebp - 4] */ 11499 /* cmp eax, edi */ /* 0x24005C6C: cmp eax, edi */ 11500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11502 _flag_k = FK_CMP; 11503 RECOMP_BACKEDGE(); 11504 if (CMP_NE(_flag_a, _flag_b)) goto L_24005C53; /* 0x24005C6E: jne 0x24005c53 */ 11505 L_24005C70: 11506 edx = MEM32(esi + 0x4); /* 0x24005C70: mov edx, dword ptr [esi + 4] */ 11507 PUSH32(esp, edx); /* 0x24005C73: push edx */ 11508 RECOMP_ICALL(0x240097F2u); /* 0x24005C74: call 0x240097f2 */ /* not lifted */ 11509 RECOMP_FLAGS_IN(); 11510 eax = MEM32(esi + 0x8); /* 0x24005C79: mov eax, dword ptr [esi + 8] */ 11511 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11512 edi = 0; /* 0x24005C7C: xor edi, edi */ 11513 _cf = 0; 11514 _flag_k = FK_TEST; 11515 PUSH32(esp, eax); /* 0x24005C7E: push eax */ 11516 MEM32(esi + 0x4) = edi; /* 0x24005C7F: mov dword ptr [esi + 4], edi */ 11517 MEM32(esi + 0x10) = edi; /* 0x24005C82: mov dword ptr [esi + 0x10], edi */ 11518 RECOMP_ICALL(0x240097F2u); /* 0x24005C85: call 0x240097f2 */ /* not lifted */ 11519 RECOMP_FLAGS_IN(); 11520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11522 esp = esp + 8; /* 0x24005C8A: add esp, 8 */ 11523 _flag_k = FK_ADD; 11524 MEM32(esi + 0x8) = edi; /* 0x24005C8D: mov dword ptr [esi + 8], edi */ 11525 edi = POP32_VAL(esp); /* 0x24005C90: pop edi */ 11526 esi = POP32_VAL(esp); /* 0x24005C91: pop esi */ 11527 ebx = POP32_VAL(esp); /* 0x24005C92: pop ebx */ 11528 esp = ebp; /* 0x24005C93: mov esp, ebp */ 11529 ebp = POP32_VAL(esp); /* 0x24005C95: pop ebp */ 11530 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005C96: ret */ 11531 RECOMP_REGS_OUT(); 11532 } 11533 11534 void sub_24005C70(void) { 11535 int _fpu_cmp = 0; 11536 uint32_t _cf = 0; 11537 int _df = 1; 11538 uint32_t _flag_k = FK_NONE; 11539 uint32_t _flag_a = 0, _flag_b = 0; 11540 uint32_t _itail_tgt = 0; 11541 RECOMP_REGS_LOCALS 11542 RECOMP_ENTER(0x24005C70u); 11543 11544 L_24005C70: 11545 edx = MEM32(esi + 0x4); /* 0x24005C70: mov edx, dword ptr [esi + 4] */ 11546 PUSH32(esp, edx); /* 0x24005C73: push edx */ 11547 RECOMP_ICALL(0x240097F2u); /* 0x24005C74: call 0x240097f2 */ /* not lifted */ 11548 RECOMP_FLAGS_IN(); 11549 eax = MEM32(esi + 0x8); /* 0x24005C79: mov eax, dword ptr [esi + 8] */ 11550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11551 edi = 0; /* 0x24005C7C: xor edi, edi */ 11552 _cf = 0; 11553 _flag_k = FK_TEST; 11554 PUSH32(esp, eax); /* 0x24005C7E: push eax */ 11555 MEM32(esi + 0x4) = edi; /* 0x24005C7F: mov dword ptr [esi + 4], edi */ 11556 MEM32(esi + 0x10) = edi; /* 0x24005C82: mov dword ptr [esi + 0x10], edi */ 11557 RECOMP_ICALL(0x240097F2u); /* 0x24005C85: call 0x240097f2 */ /* not lifted */ 11558 RECOMP_FLAGS_IN(); 11559 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11561 esp = esp + 8; /* 0x24005C8A: add esp, 8 */ 11562 _flag_k = FK_ADD; 11563 MEM32(esi + 0x8) = edi; /* 0x24005C8D: mov dword ptr [esi + 8], edi */ 11564 edi = POP32_VAL(esp); /* 0x24005C90: pop edi */ 11565 esi = POP32_VAL(esp); /* 0x24005C91: pop esi */ 11566 ebx = POP32_VAL(esp); /* 0x24005C92: pop ebx */ 11567 esp = ebp; /* 0x24005C93: mov esp, ebp */ 11568 ebp = POP32_VAL(esp); /* 0x24005C95: pop ebp */ 11569 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005C96: ret */ 11570 RECOMP_REGS_OUT(); 11571 } 11572 11573 void sub_24005CA0(void) { 11574 int _fpu_cmp = 0; 11575 uint32_t _cf = 0; 11576 int _df = 1; 11577 uint32_t _flag_k = FK_NONE; 11578 uint32_t _flag_a = 0, _flag_b = 0; 11579 uint32_t _itail_tgt = 0; 11580 RECOMP_REGS_LOCALS 11581 RECOMP_ENTER(0x24005CA0u); 11582 11583 L_24005CA0: 11584 PUSH32(esp, ebp); /* 0x24005CA0: push ebp */ 11585 ebp = esp; /* 0x24005CA1: mov ebp, esp */ 11586 PUSH32(esp, 0xFFFFFFFFu); /* 0x24005CA3: push -1 */ 11587 PUSH32(esp, 0x24009DB7u); /* 0x24005CA5: push 0x24009db7 */ 11588 eax = MEM32(FS_BASE + (0)); /* 0x24005CAA: mov eax, dword ptr fs:[0] */ 11589 PUSH32(esp, eax); /* 0x24005CB0: push eax */ 11590 MEM32(FS_BASE + (0)) = esp; /* 0x24005CB1: mov dword ptr fs:[0], esp */ 11591 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11593 esp = esp - 0xCu; /* 0x24005CB8: sub esp, 0xc */ 11594 _flag_k = FK_CMP; 11595 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x24005CBB: mov al, byte ptr [ebp - 0xd] */ 11596 PUSH32(esp, ebx); /* 0x24005CBE: push ebx */ 11597 PUSH32(esp, esi); /* 0x24005CBF: push esi */ 11598 esi = ecx; /* 0x24005CC0: mov esi, ecx */ 11599 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x24005CC2: mov cl, byte ptr [ebp - 0xd] */ 11600 PUSH32(esp, edi); /* 0x24005CC5: push edi */ 11601 edi = esi + 0x4; /* 0x24005CC6: lea edi, [esi + 4] */ 11602 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11603 ebx = 0; /* 0x24005CC9: xor ebx, ebx */ 11604 _cf = 0; 11605 _flag_k = FK_TEST; 11606 PUSH32(esp, 1); /* 0x24005CCB: push 1 */ 11607 MEM8(edi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x24005CCD: mov byte ptr [edi + 1], cl */ 11608 PUSH32(esp, ebx); /* 0x24005CD0: push ebx */ 11609 ecx = edi; /* 0x24005CD1: mov ecx, edi */ 11610 MEM32(ebp + (-0x14)) = esi; /* 0x24005CD3: mov dword ptr [ebp - 0x14], esi */ 11611 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x24005CD6: mov byte ptr [edi], al */ 11612 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x24005CD8: mov byte ptr [edi + 0xc], bl */ 11613 RECOMP_ICALL(0x240027E0u); /* 0x24005CDB: call 0x240027e0 */ /* not lifted */ 11614 RECOMP_FLAGS_IN(); 11615 MEM32(edi + 0x8) = eax; /* 0x24005CE0: mov dword ptr [edi + 8], eax */ 11616 MEM8(eax + 0x3D) = (uint8_t)(1); /* 0x24005CE3: mov byte ptr [eax + 0x3d], 1 */ 11617 eax = MEM32(edi + 0x8); /* 0x24005CE7: mov eax, dword ptr [edi + 8] */ 11618 MEM32(eax) = ebx; /* 0x24005CEA: mov dword ptr [eax], ebx */ 11619 edx = MEM32(edi + 0x8); /* 0x24005CEC: mov edx, dword ptr [edi + 8] */ 11620 MEM32(edx + 0x8) = ebx; /* 0x24005CEF: mov dword ptr [edx + 8], ebx */ 11621 eax = MEM32(edi + 0x8); /* 0x24005CF2: mov eax, dword ptr [edi + 8] */ 11622 PUSH32(esp, ebx); /* 0x24005CF5: push ebx */ 11623 PUSH32(esp, eax); /* 0x24005CF6: push eax */ 11624 ecx = edi; /* 0x24005CF7: mov ecx, edi */ 11625 RECOMP_ICALL(0x240027E0u); /* 0x24005CF9: call 0x240027e0 */ /* not lifted */ 11626 RECOMP_FLAGS_IN(); 11627 MEM32(edi + 0x4) = eax; /* 0x24005CFE: mov dword ptr [edi + 4], eax */ 11628 MEM32(eax) = eax; /* 0x24005D01: mov dword ptr [eax], eax */ 11629 eax = MEM32(edi + 0x4); /* 0x24005D03: mov eax, dword ptr [edi + 4] */ 11630 MEM32(eax + 0x8) = eax; /* 0x24005D06: mov dword ptr [eax + 8], eax */ 11631 MEM32(edi + 0x10) = ebx; /* 0x24005D09: mov dword ptr [edi + 0x10], ebx */ 11632 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x24005D0C: mov cl, byte ptr [ebp - 0xd] */ 11633 MEM32(ebp + (-0x4)) = ebx; /* 0x24005D0F: mov dword ptr [ebp - 4], ebx */ 11634 MEM8(esi + 0x18) = (uint8_t)(LO8(ecx)); /* 0x24005D12: mov byte ptr [esi + 0x18], cl */ 11635 MEM32(esi + 0x1C) = ebx; /* 0x24005D15: mov dword ptr [esi + 0x1c], ebx */ 11636 MEM32(esi + 0x20) = ebx; /* 0x24005D18: mov dword ptr [esi + 0x20], ebx */ 11637 MEM32(esi + 0x24) = ebx; /* 0x24005D1B: mov dword ptr [esi + 0x24], ebx */ 11638 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x24005D1E: mov dl, byte ptr [ebp - 0xd] */ 11639 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x24005D21: mov al, byte ptr [ebp - 0xd] */ 11640 PUSH32(esp, 0x20u); /* 0x24005D24: push 0x20 */ 11641 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x24005D26: mov byte ptr [ebp - 4], 1 */ 11642 MEM8(esi + 0x30) = (uint8_t)(LO8(edx)); /* 0x24005D2A: mov byte ptr [esi + 0x30], dl */ 11643 MEM8(esi + 0x31) = (uint8_t)(LO8(eax)); /* 0x24005D2D: mov byte ptr [esi + 0x31], al */ 11644 MEM8(esi + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005D30: mov byte ptr [esi + 0x3c], bl */ 11645 RECOMP_ICALL(0x24009838u); /* 0x24005D33: call 0x24009838 */ /* not lifted */ 11646 RECOMP_FLAGS_IN(); 11647 MEM32(eax + 0x4) = ebx; /* 0x24005D38: mov dword ptr [eax + 4], ebx */ 11648 MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x24005D3B: mov byte ptr [eax + 0x1c], 1 */ 11649 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x24005D3F: mov byte ptr [eax + 0x1d], bl */ 11650 MEM32(esi + 0x38) = eax; /* 0x24005D42: mov dword ptr [esi + 0x38], eax */ 11651 MEM8(eax + 0x1D) = (uint8_t)(1); /* 0x24005D45: mov byte ptr [eax + 0x1d], 1 */ 11652 eax = MEM32(esi + 0x38); /* 0x24005D49: mov eax, dword ptr [esi + 0x38] */ 11653 MEM32(eax) = ebx; /* 0x24005D4C: mov dword ptr [eax], ebx */ 11654 ecx = MEM32(esi + 0x38); /* 0x24005D4E: mov ecx, dword ptr [esi + 0x38] */ 11655 MEM32(ecx + 0x8) = ebx; /* 0x24005D51: mov dword ptr [ecx + 8], ebx */ 11656 edi = MEM32(esi + 0x38); /* 0x24005D54: mov edi, dword ptr [esi + 0x38] */ 11657 PUSH32(esp, 0x20u); /* 0x24005D57: push 0x20 */ 11658 RECOMP_ICALL(0x24009838u); /* 0x24005D59: call 0x24009838 */ /* not lifted */ 11659 RECOMP_FLAGS_IN(); 11660 MEM32(eax + 0x4) = edi; /* 0x24005D5E: mov dword ptr [eax + 4], edi */ 11661 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x24005D61: mov byte ptr [eax + 0x1c], bl */ 11662 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x24005D64: mov byte ptr [eax + 0x1d], bl */ 11663 MEM32(esi + 0x34) = eax; /* 0x24005D67: mov dword ptr [esi + 0x34], eax */ 11664 MEM32(eax) = eax; /* 0x24005D6A: mov dword ptr [eax], eax */ 11665 eax = MEM32(esi + 0x34); /* 0x24005D6C: mov eax, dword ptr [esi + 0x34] */ 11666 MEM32(eax + 0x8) = eax; /* 0x24005D6F: mov dword ptr [eax + 8], eax */ 11667 MEM32(esi + 0x40) = ebx; /* 0x24005D72: mov dword ptr [esi + 0x40], ebx */ 11668 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x24005D75: mov dl, byte ptr [ebp - 0xd] */ 11669 MEM8(esi + 0x44) = (uint8_t)(LO8(edx)); /* 0x24005D78: mov byte ptr [esi + 0x44], dl */ 11670 MEM32(esi + 0x48) = ebx; /* 0x24005D7B: mov dword ptr [esi + 0x48], ebx */ 11671 MEM32(esi + 0x4C) = ebx; /* 0x24005D7E: mov dword ptr [esi + 0x4c], ebx */ 11672 MEM32(esi + 0x50) = ebx; /* 0x24005D81: mov dword ptr [esi + 0x50], ebx */ 11673 PUSH32(esp, 0x58u); /* 0x24005D84: push 0x58 */ 11674 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x24005D86: mov byte ptr [ebp - 4], 3 */ 11675 MEM32(esi) = 0x2400B0E4u; /* 0x24005D8A: mov dword ptr [esi], 0x2400b0e4 */ 11676 MEM32(esi + 0x60) = ebx; /* 0x24005D90: mov dword ptr [esi + 0x60], ebx */ 11677 RECOMP_ICALL(0x24009838u); /* 0x24005D93: call 0x24009838 */ /* not lifted */ 11678 RECOMP_FLAGS_IN(); 11679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11681 esp = esp + 0xCu; /* 0x24005D98: add esp, 0xc */ 11682 _flag_k = FK_ADD; 11683 MEM32(ebp + (-0x18)) = eax; /* 0x24005D9B: mov dword ptr [ebp - 0x18], eax */ 11684 /* cmp eax, ebx */ /* 0x24005D9E: cmp eax, ebx */ 11685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11687 _flag_k = FK_CMP; 11688 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x24005DA0: mov byte ptr [ebp - 4], 4 */ 11689 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005DB0; /* 0x24005DA4: je 0x24005db0 */ 11690 L_24005DA6: 11691 PUSH32(esp, esi); /* 0x24005DA6: push esi */ 11692 ecx = eax; /* 0x24005DA7: mov ecx, eax */ 11693 RECOMP_ICALL(0x240017B0u); /* 0x24005DA9: call 0x240017b0 */ /* not lifted */ 11694 RECOMP_FLAGS_IN(); 11695 goto L_24005DB2; /* 0x24005DAE: jmp 0x24005db2 */ 11696 L_24005DB0: 11697 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11698 eax = 0; /* 0x24005DB0: xor eax, eax */ 11699 _cf = 0; 11700 _flag_k = FK_TEST; 11701 L_24005DB2: 11702 ecx = MEM32(ebp + (-0xC)); /* 0x24005DB2: mov ecx, dword ptr [ebp - 0xc] */ 11703 MEM32(esi + 0x28) = eax; /* 0x24005DB5: mov dword ptr [esi + 0x28], eax */ 11704 MEM32(esi + 0x2C) = eax; /* 0x24005DB8: mov dword ptr [esi + 0x2c], eax */ 11705 MEM32(esi + 0x64) = ebx; /* 0x24005DBB: mov dword ptr [esi + 0x64], ebx */ 11706 MEM8(esi + 0x58) = (uint8_t)(LO8(ebx)); /* 0x24005DBE: mov byte ptr [esi + 0x58], bl */ 11707 MEM32(esi + 0x54) = ebx; /* 0x24005DC1: mov dword ptr [esi + 0x54], ebx */ 11708 edi = POP32_VAL(esp); /* 0x24005DC4: pop edi */ 11709 eax = esi; /* 0x24005DC5: mov eax, esi */ 11710 esi = POP32_VAL(esp); /* 0x24005DC7: pop esi */ 11711 ebx = POP32_VAL(esp); /* 0x24005DC8: pop ebx */ 11712 MEM32(FS_BASE + (0)) = ecx; /* 0x24005DC9: mov dword ptr fs:[0], ecx */ 11713 esp = ebp; /* 0x24005DD0: mov esp, ebp */ 11714 ebp = POP32_VAL(esp); /* 0x24005DD2: pop ebp */ 11715 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24005DD3: ret */ 11716 RECOMP_REGS_OUT(); 11717 } 11718 11719 void sub_24005DE0(void) { 11720 int _fpu_cmp = 0; 11721 uint32_t _cf = 0; 11722 int _df = 1; 11723 uint32_t _flag_k = FK_NONE; 11724 uint32_t _flag_a = 0, _flag_b = 0; 11725 uint32_t _itail_tgt = 0; 11726 RECOMP_REGS_LOCALS 11727 RECOMP_ENTER(0x24005DE0u); 11728 11729 L_24005DE0: 11730 PUSH32(esp, ebp); /* 0x24005DE0: push ebp */ 11731 ebp = esp; /* 0x24005DE1: mov ebp, esp */ 11732 PUSH32(esp, 0xFFFFFFFFu); /* 0x24005DE3: push -1 */ 11733 PUSH32(esp, 0x24009E07u); /* 0x24005DE5: push 0x24009e07 */ 11734 eax = MEM32(FS_BASE + (0)); /* 0x24005DEA: mov eax, dword ptr fs:[0] */ 11735 PUSH32(esp, eax); /* 0x24005DF0: push eax */ 11736 MEM32(FS_BASE + (0)) = esp; /* 0x24005DF1: mov dword ptr fs:[0], esp */ 11737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11739 esp = esp - 8; /* 0x24005DF8: sub esp, 8 */ 11740 _flag_k = FK_CMP; 11741 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x24005DFB: mov al, byte ptr [ebp + 0xf] */ 11742 PUSH32(esp, ebx); /* 0x24005DFE: push ebx */ 11743 PUSH32(esp, esi); /* 0x24005DFF: push esi */ 11744 esi = ecx; /* 0x24005E00: mov esi, ecx */ 11745 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24005E02: mov cl, byte ptr [ebp + 0xf] */ 11746 PUSH32(esp, edi); /* 0x24005E05: push edi */ 11747 edi = esi + 0x4; /* 0x24005E06: lea edi, [esi + 4] */ 11748 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11749 ebx = 0; /* 0x24005E09: xor ebx, ebx */ 11750 _cf = 0; 11751 _flag_k = FK_TEST; 11752 PUSH32(esp, 1); /* 0x24005E0B: push 1 */ 11753 MEM8(edi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x24005E0D: mov byte ptr [edi + 1], cl */ 11754 PUSH32(esp, ebx); /* 0x24005E10: push ebx */ 11755 ecx = edi; /* 0x24005E11: mov ecx, edi */ 11756 MEM32(ebp + (-0x10)) = esi; /* 0x24005E13: mov dword ptr [ebp - 0x10], esi */ 11757 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x24005E16: mov byte ptr [edi], al */ 11758 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x24005E18: mov byte ptr [edi + 0xc], bl */ 11759 RECOMP_ICALL(0x240027E0u); /* 0x24005E1B: call 0x240027e0 */ /* not lifted */ 11760 RECOMP_FLAGS_IN(); 11761 MEM32(edi + 0x8) = eax; /* 0x24005E20: mov dword ptr [edi + 8], eax */ 11762 MEM8(eax + 0x3D) = (uint8_t)(1); /* 0x24005E23: mov byte ptr [eax + 0x3d], 1 */ 11763 eax = MEM32(edi + 0x8); /* 0x24005E27: mov eax, dword ptr [edi + 8] */ 11764 MEM32(eax) = ebx; /* 0x24005E2A: mov dword ptr [eax], ebx */ 11765 edx = MEM32(edi + 0x8); /* 0x24005E2C: mov edx, dword ptr [edi + 8] */ 11766 MEM32(edx + 0x8) = ebx; /* 0x24005E2F: mov dword ptr [edx + 8], ebx */ 11767 eax = MEM32(edi + 0x8); /* 0x24005E32: mov eax, dword ptr [edi + 8] */ 11768 PUSH32(esp, ebx); /* 0x24005E35: push ebx */ 11769 PUSH32(esp, eax); /* 0x24005E36: push eax */ 11770 ecx = edi; /* 0x24005E37: mov ecx, edi */ 11771 RECOMP_ICALL(0x240027E0u); /* 0x24005E39: call 0x240027e0 */ /* not lifted */ 11772 RECOMP_FLAGS_IN(); 11773 MEM32(edi + 0x4) = eax; /* 0x24005E3E: mov dword ptr [edi + 4], eax */ 11774 MEM32(eax) = eax; /* 0x24005E41: mov dword ptr [eax], eax */ 11775 eax = MEM32(edi + 0x4); /* 0x24005E43: mov eax, dword ptr [edi + 4] */ 11776 MEM32(eax + 0x8) = eax; /* 0x24005E46: mov dword ptr [eax + 8], eax */ 11777 MEM32(edi + 0x10) = ebx; /* 0x24005E49: mov dword ptr [edi + 0x10], ebx */ 11778 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24005E4C: mov cl, byte ptr [ebp + 0xf] */ 11779 MEM32(ebp + (-0x4)) = ebx; /* 0x24005E4F: mov dword ptr [ebp - 4], ebx */ 11780 MEM8(esi + 0x18) = (uint8_t)(LO8(ecx)); /* 0x24005E52: mov byte ptr [esi + 0x18], cl */ 11781 MEM32(esi + 0x1C) = ebx; /* 0x24005E55: mov dword ptr [esi + 0x1c], ebx */ 11782 MEM32(esi + 0x20) = ebx; /* 0x24005E58: mov dword ptr [esi + 0x20], ebx */ 11783 MEM32(esi + 0x24) = ebx; /* 0x24005E5B: mov dword ptr [esi + 0x24], ebx */ 11784 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x24005E5E: mov dl, byte ptr [ebp + 0xf] */ 11785 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x24005E61: mov al, byte ptr [ebp + 0xf] */ 11786 PUSH32(esp, 0x20u); /* 0x24005E64: push 0x20 */ 11787 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x24005E66: mov byte ptr [ebp - 4], 1 */ 11788 MEM8(esi + 0x30) = (uint8_t)(LO8(edx)); /* 0x24005E6A: mov byte ptr [esi + 0x30], dl */ 11789 MEM8(esi + 0x31) = (uint8_t)(LO8(eax)); /* 0x24005E6D: mov byte ptr [esi + 0x31], al */ 11790 MEM8(esi + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x24005E70: mov byte ptr [esi + 0x3c], bl */ 11791 RECOMP_ICALL(0x24009838u); /* 0x24005E73: call 0x24009838 */ /* not lifted */ 11792 RECOMP_FLAGS_IN(); 11793 MEM32(eax + 0x4) = ebx; /* 0x24005E78: mov dword ptr [eax + 4], ebx */ 11794 MEM8(eax + 0x1C) = (uint8_t)(1); /* 0x24005E7B: mov byte ptr [eax + 0x1c], 1 */ 11795 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x24005E7F: mov byte ptr [eax + 0x1d], bl */ 11796 MEM32(esi + 0x38) = eax; /* 0x24005E82: mov dword ptr [esi + 0x38], eax */ 11797 MEM8(eax + 0x1D) = (uint8_t)(1); /* 0x24005E85: mov byte ptr [eax + 0x1d], 1 */ 11798 eax = MEM32(esi + 0x38); /* 0x24005E89: mov eax, dword ptr [esi + 0x38] */ 11799 MEM32(eax) = ebx; /* 0x24005E8C: mov dword ptr [eax], ebx */ 11800 ecx = MEM32(esi + 0x38); /* 0x24005E8E: mov ecx, dword ptr [esi + 0x38] */ 11801 MEM32(ecx + 0x8) = ebx; /* 0x24005E91: mov dword ptr [ecx + 8], ebx */ 11802 edi = MEM32(esi + 0x38); /* 0x24005E94: mov edi, dword ptr [esi + 0x38] */ 11803 PUSH32(esp, 0x20u); /* 0x24005E97: push 0x20 */ 11804 RECOMP_ICALL(0x24009838u); /* 0x24005E99: call 0x24009838 */ /* not lifted */ 11805 RECOMP_FLAGS_IN(); 11806 MEM32(eax + 0x4) = edi; /* 0x24005E9E: mov dword ptr [eax + 4], edi */ 11807 MEM8(eax + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x24005EA1: mov byte ptr [eax + 0x1c], bl */ 11808 MEM8(eax + 0x1D) = (uint8_t)(LO8(ebx)); /* 0x24005EA4: mov byte ptr [eax + 0x1d], bl */ 11809 MEM32(esi + 0x34) = eax; /* 0x24005EA7: mov dword ptr [esi + 0x34], eax */ 11810 MEM32(eax) = eax; /* 0x24005EAA: mov dword ptr [eax], eax */ 11811 eax = MEM32(esi + 0x34); /* 0x24005EAC: mov eax, dword ptr [esi + 0x34] */ 11812 MEM32(eax + 0x8) = eax; /* 0x24005EAF: mov dword ptr [eax + 8], eax */ 11813 MEM32(esi + 0x40) = ebx; /* 0x24005EB2: mov dword ptr [esi + 0x40], ebx */ 11814 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x24005EB5: mov dl, byte ptr [ebp + 0xf] */ 11815 MEM8(esi + 0x44) = (uint8_t)(LO8(edx)); /* 0x24005EB8: mov byte ptr [esi + 0x44], dl */ 11816 MEM32(esi + 0x48) = ebx; /* 0x24005EBB: mov dword ptr [esi + 0x48], ebx */ 11817 MEM32(esi + 0x4C) = ebx; /* 0x24005EBE: mov dword ptr [esi + 0x4c], ebx */ 11818 MEM32(esi + 0x50) = ebx; /* 0x24005EC1: mov dword ptr [esi + 0x50], ebx */ 11819 PUSH32(esp, 0x58u); /* 0x24005EC4: push 0x58 */ 11820 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x24005EC6: mov byte ptr [ebp - 4], 3 */ 11821 MEM32(esi) = 0x2400B0E4u; /* 0x24005ECA: mov dword ptr [esi], 0x2400b0e4 */ 11822 MEM32(esi + 0x60) = ebx; /* 0x24005ED0: mov dword ptr [esi + 0x60], ebx */ 11823 RECOMP_ICALL(0x24009838u); /* 0x24005ED3: call 0x24009838 */ /* not lifted */ 11824 RECOMP_FLAGS_IN(); 11825 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11827 esp = esp + 0xCu; /* 0x24005ED8: add esp, 0xc */ 11828 _flag_k = FK_ADD; 11829 MEM32(ebp + (-0x14)) = eax; /* 0x24005EDB: mov dword ptr [ebp - 0x14], eax */ 11830 /* cmp eax, ebx */ /* 0x24005EDE: cmp eax, ebx */ 11831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11833 _flag_k = FK_CMP; 11834 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x24005EE0: mov byte ptr [ebp - 4], 4 */ 11835 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005EF0; /* 0x24005EE4: je 0x24005ef0 */ 11836 L_24005EE6: 11837 PUSH32(esp, esi); /* 0x24005EE6: push esi */ 11838 ecx = eax; /* 0x24005EE7: mov ecx, eax */ 11839 RECOMP_ICALL(0x240017B0u); /* 0x24005EE9: call 0x240017b0 */ /* not lifted */ 11840 RECOMP_FLAGS_IN(); 11841 goto L_24005EF2; /* 0x24005EEE: jmp 0x24005ef2 */ 11842 L_24005EF0: 11843 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11844 eax = 0; /* 0x24005EF0: xor eax, eax */ 11845 _cf = 0; 11846 _flag_k = FK_TEST; 11847 L_24005EF2: 11848 ecx = MEM32(ebp + 0x8); /* 0x24005EF2: mov ecx, dword ptr [ebp + 8] */ 11849 MEM32(esi + 0x28) = eax; /* 0x24005EF5: mov dword ptr [esi + 0x28], eax */ 11850 MEM32(esi + 0x2C) = eax; /* 0x24005EF8: mov dword ptr [esi + 0x2c], eax */ 11851 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x24005EFB: mov al, byte ptr [ebp + 0xc] */ 11852 /* cmp LO8(eax), LO8(ebx) */ /* 0x24005EFE: cmp al, bl */ 11853 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11855 _flag_k = FK_NARROW(FK_CMP, 24); 11856 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x24005F00: mov byte ptr [ebp - 4], 3 */ 11857 MEM32(esi + 0x64) = ebx; /* 0x24005F04: mov dword ptr [esi + 0x64], ebx */ 11858 MEM8(esi + 0x58) = (uint8_t)(LO8(eax)); /* 0x24005F07: mov byte ptr [esi + 0x58], al */ 11859 MEM32(esi + 0x54) = ecx; /* 0x24005F0A: mov dword ptr [esi + 0x54], ecx */ 11860 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005F17; /* 0x24005F0D: je 0x24005f17 */ 11861 L_24005F0F: 11862 PUSH32(esp, ecx); /* 0x24005F0F: push ecx */ 11863 ecx = esi; /* 0x24005F10: mov ecx, esi */ 11864 RECOMP_ICALL(0x24007170u); /* 0x24005F12: call 0x24007170 */ /* not lifted */ 11865 RECOMP_FLAGS_IN(); 11866 L_24005F17: 11867 ecx = MEM32(ebp + (-0xC)); /* 0x24005F17: mov ecx, dword ptr [ebp - 0xc] */ 11868 edi = POP32_VAL(esp); /* 0x24005F1A: pop edi */ 11869 eax = esi; /* 0x24005F1B: mov eax, esi */ 11870 esi = POP32_VAL(esp); /* 0x24005F1D: pop esi */ 11871 ebx = POP32_VAL(esp); /* 0x24005F1E: pop ebx */ 11872 MEM32(FS_BASE + (0)) = ecx; /* 0x24005F1F: mov dword ptr fs:[0], ecx */ 11873 esp = ebp; /* 0x24005F26: mov esp, ebp */ 11874 ebp = POP32_VAL(esp); /* 0x24005F28: pop ebp */ 11875 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24005F29: ret 8 */ 11876 RECOMP_REGS_OUT(); 11877 } 11878 11879 void sub_24005F30(void) { 11880 int _fpu_cmp = 0; 11881 uint32_t _cf = 0; 11882 int _df = 1; 11883 uint32_t _flag_k = FK_NONE; 11884 uint32_t _flag_a = 0, _flag_b = 0; 11885 uint32_t _itail_tgt = 0; 11886 RECOMP_REGS_LOCALS 11887 RECOMP_ENTER(0x24005F30u); 11888 11889 L_24005F30: 11890 PUSH32(esp, ebp); /* 0x24005F30: push ebp */ 11891 ebp = esp; /* 0x24005F31: mov ebp, esp */ 11892 PUSH32(esp, 0xFFFFFFFFu); /* 0x24005F33: push -1 */ 11893 PUSH32(esp, 0x24009E4Cu); /* 0x24005F35: push 0x24009e4c */ 11894 eax = MEM32(FS_BASE + (0)); /* 0x24005F3A: mov eax, dword ptr fs:[0] */ 11895 PUSH32(esp, eax); /* 0x24005F40: push eax */ 11896 MEM32(FS_BASE + (0)) = esp; /* 0x24005F41: mov dword ptr fs:[0], esp */ 11897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11899 esp = esp - 0x10u; /* 0x24005F48: sub esp, 0x10 */ 11900 _flag_k = FK_CMP; 11901 PUSH32(esp, ebx); /* 0x24005F4B: push ebx */ 11902 PUSH32(esp, esi); /* 0x24005F4C: push esi */ 11903 esi = ecx; /* 0x24005F4D: mov esi, ecx */ 11904 PUSH32(esp, edi); /* 0x24005F4F: push edi */ 11905 MEM32(ebp + (-0x14)) = esi; /* 0x24005F50: mov dword ptr [ebp - 0x14], esi */ 11906 MEM32(esi) = 0x2400B0E4u; /* 0x24005F53: mov dword ptr [esi], 0x2400b0e4 */ 11907 SET_LO8(eax, MEM8(esi + 0x58)); /* 0x24005F59: mov al, byte ptr [esi + 0x58] */ 11908 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11909 ebx = 0; /* 0x24005F5C: xor ebx, ebx */ 11910 _cf = 0; 11911 _flag_k = FK_TEST; 11912 /* cmp LO8(eax), LO8(ebx) */ /* 0x24005F5E: cmp al, bl */ 11913 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 11914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11915 _flag_k = FK_NARROW(FK_CMP, 24); 11916 MEM32(ebp + (-0x4)) = 3; /* 0x24005F60: mov dword ptr [ebp - 4], 3 */ 11917 if (CMP_NE(_flag_a, _flag_b)) goto L_24005FA3; /* 0x24005F67: jne 0x24005fa3 */ 11918 L_24005F69: 11919 eax = MEM32(esi + 0x54); /* 0x24005F69: mov eax, dword ptr [esi + 0x54] */ 11920 /* cmp eax, ebx */ /* 0x24005F6C: cmp eax, ebx */ 11921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11923 _flag_k = FK_CMP; 11924 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005F76; /* 0x24005F6E: je 0x24005f76 */ 11925 L_24005F70: 11926 PUSH32(esp, eax); /* 0x24005F70: push eax */ 11927 RECOMP_ICALL(0x240077F0u); /* 0x24005F71: call 0x240077f0 */ /* not lifted */ 11928 RECOMP_FLAGS_IN(); 11929 L_24005F76: 11930 ecx = MEM32(esi + 0x34); /* 0x24005F76: mov ecx, dword ptr [esi + 0x34] */ 11931 eax = MEM32(ecx); /* 0x24005F79: mov eax, dword ptr [ecx] */ 11932 /* cmp eax, ecx */ /* 0x24005F7B: cmp eax, ecx */ 11933 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11935 _flag_k = FK_CMP; 11936 MEM32(ebp + (-0x10)) = eax; /* 0x24005F7D: mov dword ptr [ebp - 0x10], eax */ 11937 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005FCF; /* 0x24005F80: je 0x24005fcf */ 11938 L_24005F82: 11939 ecx = MEM32(eax + 0x14); /* 0x24005F82: mov ecx, dword ptr [eax + 0x14] */ 11940 /* cmp ecx, ebx */ /* 0x24005F85: cmp ecx, ebx */ 11941 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11943 _flag_k = FK_CMP; 11944 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005F8F; /* 0x24005F87: je 0x24005f8f */ 11945 L_24005F89: 11946 eax = MEM32(ecx); /* 0x24005F89: mov eax, dword ptr [ecx] */ 11947 PUSH32(esp, 1); /* 0x24005F8B: push 1 */ 11948 RECOMP_ICALL(MEM32(eax)); /* 0x24005F8D: call dword ptr [eax] */ 11949 RECOMP_FLAGS_IN(); 11950 L_24005F8F: 11951 ecx = ebp + (-0x10); /* 0x24005F8F: lea ecx, [ebp - 0x10] */ 11952 RECOMP_ICALL(0x24002D80u); /* 0x24005F92: call 0x24002d80 */ /* not lifted */ 11953 RECOMP_FLAGS_IN(); 11954 ecx = MEM32(esi + 0x34); /* 0x24005F97: mov ecx, dword ptr [esi + 0x34] */ 11955 eax = MEM32(ebp + (-0x10)); /* 0x24005F9A: mov eax, dword ptr [ebp - 0x10] */ 11956 /* cmp eax, ecx */ /* 0x24005F9D: cmp eax, ecx */ 11957 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11959 _flag_k = FK_CMP; 11960 RECOMP_BACKEDGE(); 11961 if (CMP_NE(_flag_a, _flag_b)) goto L_24005F82; /* 0x24005F9F: jne 0x24005f82 */ 11962 L_24005FA1: 11963 goto L_24005FCF; /* 0x24005FA1: jmp 0x24005fcf */ 11964 L_24005FA3: 11965 /* cmp MEM32(esi + 0x5C), ebx */ /* 0x24005FA3: cmp dword ptr [esi + 0x5c], ebx */ 11966 _flag_a = (uint32_t)(MEM32(esi + 0x5C)); _flag_b = (uint32_t)(ebx); 11967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11968 _flag_k = FK_CMP; 11969 MEM32(ebp + (-0x10)) = ebx; /* 0x24005FA6: mov dword ptr [ebp - 0x10], ebx */ 11970 if (CMP_LE(_flag_a, _flag_b)) goto L_24005FCF; /* 0x24005FA9: jle 0x24005fcf */ 11971 L_24005FAB: 11972 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11973 edi = 0; /* 0x24005FAB: xor edi, edi */ 11974 _cf = 0; 11975 _flag_k = FK_TEST; 11976 L_24005FAD: 11977 eax = MEM32(esi + 0x48); /* 0x24005FAD: mov eax, dword ptr [esi + 0x48] */ 11978 ecx = MEM32(edi + eax + 0x4); /* 0x24005FB0: mov ecx, dword ptr [edi + eax + 4] */ 11979 /* cmp ecx, ebx */ /* 0x24005FB4: cmp ecx, ebx */ 11980 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11982 _flag_k = FK_CMP; 11983 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005FBE; /* 0x24005FB6: je 0x24005fbe */ 11984 L_24005FB8: 11985 edx = MEM32(ecx); /* 0x24005FB8: mov edx, dword ptr [ecx] */ 11986 PUSH32(esp, 1); /* 0x24005FBA: push 1 */ 11987 RECOMP_ICALL(MEM32(edx)); /* 0x24005FBC: call dword ptr [edx] */ 11988 RECOMP_FLAGS_IN(); 11989 L_24005FBE: 11990 eax = MEM32(ebp + (-0x10)); /* 0x24005FBE: mov eax, dword ptr [ebp - 0x10] */ 11991 ecx = MEM32(esi + 0x5C); /* 0x24005FC1: mov ecx, dword ptr [esi + 0x5c] */ 11992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11993 eax = eax + 1; /* 0x24005FC4: inc eax */ 11994 _flag_k = FK_INC; 11995 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 11996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11997 edi = edi + 0xCu; /* 0x24005FC5: add edi, 0xc */ 11998 _flag_k = FK_ADD; 11999 /* cmp eax, ecx */ /* 0x24005FC8: cmp eax, ecx */ 12000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12002 _flag_k = FK_CMP; 12003 MEM32(ebp + (-0x10)) = eax; /* 0x24005FCA: mov dword ptr [ebp - 0x10], eax */ 12004 RECOMP_BACKEDGE(); 12005 if (CMP_L(_flag_a, _flag_b)) goto L_24005FAD; /* 0x24005FCD: jl 0x24005fad */ 12006 L_24005FCF: 12007 ecx = MEM32(esi + 0x28); /* 0x24005FCF: mov ecx, dword ptr [esi + 0x28] */ 12008 /* cmp ecx, ebx */ /* 0x24005FD2: cmp ecx, ebx */ 12009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12011 _flag_k = FK_CMP; 12012 if (CMP_EQ(_flag_a, _flag_b)) goto L_24005FDC; /* 0x24005FD4: je 0x24005fdc */ 12013 L_24005FD6: 12014 eax = MEM32(ecx); /* 0x24005FD6: mov eax, dword ptr [ecx] */ 12015 PUSH32(esp, 1); /* 0x24005FD8: push 1 */ 12016 RECOMP_ICALL(MEM32(eax)); /* 0x24005FDA: call dword ptr [eax] */ 12017 RECOMP_FLAGS_IN(); 12018 L_24005FDC: 12019 eax = MEM32(esi + 0x48); /* 0x24005FDC: mov eax, dword ptr [esi + 0x48] */ 12020 ecx = MEM32(esi + 0x4C); /* 0x24005FDF: mov ecx, dword ptr [esi + 0x4c] */ 12021 MEM32(ebp + (-0x10)) = ecx; /* 0x24005FE2: mov dword ptr [ebp - 0x10], ecx */ 12022 PUSH32(esp, eax); /* 0x24005FE5: push eax */ 12023 MEM32(ebp + (-0x10)) = eax; /* 0x24005FE6: mov dword ptr [ebp - 0x10], eax */ 12024 RECOMP_ICALL(0x240097F2u); /* 0x24005FE9: call 0x240097f2 */ /* not lifted */ 12025 RECOMP_FLAGS_IN(); 12026 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12028 esp = esp + 4; /* 0x24005FEE: add esp, 4 */ 12029 _flag_k = FK_ADD; 12030 MEM32(esi + 0x48) = ebx; /* 0x24005FF1: mov dword ptr [esi + 0x48], ebx */ 12031 MEM32(esi + 0x4C) = ebx; /* 0x24005FF4: mov dword ptr [esi + 0x4c], ebx */ 12032 MEM32(esi + 0x50) = ebx; /* 0x24005FF7: mov dword ptr [esi + 0x50], ebx */ 12033 eax = MEM32(esi + 0x34); /* 0x24005FFA: mov eax, dword ptr [esi + 0x34] */ 12034 ecx = MEM32(eax); /* 0x24005FFD: mov ecx, dword ptr [eax] */ 12035 edi = esi + 0x30; /* 0x24005FFF: lea edi, [esi + 0x30] */ 12036 PUSH32(esp, eax); /* 0x24006002: push eax */ 12037 PUSH32(esp, ecx); /* 0x24006003: push ecx */ 12038 edx = ebp + (-0x10); /* 0x24006004: lea edx, [ebp - 0x10] */ 12039 PUSH32(esp, edx); /* 0x24006007: push edx */ 12040 ecx = edi; /* 0x24006008: mov ecx, edi */ 12041 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x2400600A: mov byte ptr [ebp - 4], 1 */ 12042 RECOMP_ICALL(0x24002120u); /* 0x2400600E: call 0x24002120 */ /* not lifted */ 12043 RECOMP_FLAGS_IN(); 12044 eax = MEM32(edi + 0x4); /* 0x24006013: mov eax, dword ptr [edi + 4] */ 12045 PUSH32(esp, eax); /* 0x24006016: push eax */ 12046 RECOMP_ICALL(0x240097F2u); /* 0x24006017: call 0x240097f2 */ /* not lifted */ 12047 RECOMP_FLAGS_IN(); 12048 eax = MEM32(edi + 0x8); /* 0x2400601C: mov eax, dword ptr [edi + 8] */ 12049 PUSH32(esp, eax); /* 0x2400601F: push eax */ 12050 MEM32(edi + 0x4) = ebx; /* 0x24006020: mov dword ptr [edi + 4], ebx */ 12051 MEM32(edi + 0x10) = ebx; /* 0x24006023: mov dword ptr [edi + 0x10], ebx */ 12052 RECOMP_ICALL(0x240097F2u); /* 0x24006026: call 0x240097f2 */ /* not lifted */ 12053 RECOMP_FLAGS_IN(); 12054 MEM32(edi + 0x8) = ebx; /* 0x2400602B: mov dword ptr [edi + 8], ebx */ 12055 eax = MEM32(esi + 0x20); /* 0x2400602E: mov eax, dword ptr [esi + 0x20] */ 12056 edi = MEM32(esi + 0x1C); /* 0x24006031: mov edi, dword ptr [esi + 0x1c] */ 12057 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12059 esp = esp + 8; /* 0x24006034: add esp, 8 */ 12060 _flag_k = FK_ADD; 12061 /* cmp edi, eax */ /* 0x24006037: cmp edi, eax */ 12062 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12064 _flag_k = FK_CMP; 12065 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x24006039: mov byte ptr [ebp - 4], bl */ 12066 MEM32(ebp + (-0x10)) = eax; /* 0x2400603C: mov dword ptr [ebp - 0x10], eax */ 12067 if (CMP_EQ(_flag_a, _flag_b)) goto L_24006052; /* 0x2400603F: je 0x24006052 */ 12068 L_24006041: 12069 ecx = edi; /* 0x24006041: mov ecx, edi */ 12070 RECOMP_ICALL(0x240030D0u); /* 0x24006043: call 0x240030d0 */ /* not lifted */ 12071 RECOMP_FLAGS_IN(); 12072 eax = MEM32(ebp + (-0x10)); /* 0x24006048: mov eax, dword ptr [ebp - 0x10] */ 12073 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2Cu); 12074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12075 edi = edi + 0x2Cu; /* 0x2400604B: add edi, 0x2c */ 12076 _flag_k = FK_ADD; 12077 /* cmp edi, eax */ /* 0x2400604E: cmp edi, eax */ 12078 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12080 _flag_k = FK_CMP; 12081 RECOMP_BACKEDGE(); 12082 if (CMP_NE(_flag_a, _flag_b)) goto L_24006041; /* 0x24006050: jne 0x24006041 */ 12083 L_24006052: 12084 eax = MEM32(esi + 0x1C); /* 0x24006052: mov eax, dword ptr [esi + 0x1c] */ 12085 PUSH32(esp, eax); /* 0x24006055: push eax */ 12086 RECOMP_ICALL(0x240097F2u); /* 0x24006056: call 0x240097f2 */ /* not lifted */ 12087 RECOMP_FLAGS_IN(); 12088 MEM32(esi + 0x1C) = ebx; /* 0x2400605B: mov dword ptr [esi + 0x1c], ebx */ 12089 MEM32(esi + 0x20) = ebx; /* 0x2400605E: mov dword ptr [esi + 0x20], ebx */ 12090 MEM32(esi + 0x24) = ebx; /* 0x24006061: mov dword ptr [esi + 0x24], ebx */ 12091 eax = MEM32(esi + 0x8); /* 0x24006064: mov eax, dword ptr [esi + 8] */ 12092 ecx = MEM32(esi + 0x14); /* 0x24006067: mov ecx, dword ptr [esi + 0x14] */ 12093 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 12094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12095 esi = esi + 4; /* 0x2400606A: add esi, 4 */ 12096 _flag_k = FK_ADD; 12097 edi = eax; /* 0x2400606D: mov edi, eax */ 12098 eax = MEM32(eax); /* 0x2400606F: mov eax, dword ptr [eax] */ 12099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12101 esp = esp + 4; /* 0x24006071: add esp, 4 */ 12102 _flag_k = FK_ADD; 12103 /* cmp ecx, ebx */ /* 0x24006074: cmp ecx, ebx */ 12104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 12105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12106 _flag_k = FK_CMP; 12107 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x24006076: mov dword ptr [ebp - 4], 0xffffffff */ 12108 MEM32(ebp + (-0x10)) = eax; /* 0x2400607D: mov dword ptr [ebp - 0x10], eax */ 12109 if (CMP_EQ(_flag_a, _flag_b)) goto L_240060CC; /* 0x24006080: je 0x240060cc */ 12110 L_24006082: 12111 eax = ebp + (-0x14); /* 0x24006082: lea eax, [ebp - 0x14] */ 12112 PUSH32(esp, eax); /* 0x24006085: push eax */ 12113 ecx = esi; /* 0x24006086: mov ecx, esi */ 12114 RECOMP_ICALL(0x24002100u); /* 0x24006088: call 0x24002100 */ /* not lifted */ 12115 RECOMP_FLAGS_IN(); 12116 ecx = eax; /* 0x2400608D: mov ecx, eax */ 12117 eax = MEM32(ebp + (-0x10)); /* 0x2400608F: mov eax, dword ptr [ebp - 0x10] */ 12118 /* cmp eax, MEM32(ecx) */ /* 0x24006092: cmp eax, dword ptr [ecx] */ 12119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 12120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12121 _flag_k = FK_CMP; 12122 if (CMP_NE(_flag_a, _flag_b)) goto L_240060CC; /* 0x24006094: jne 0x240060cc */ 12123 L_24006096: 12124 ecx = MEM32(esi + 0x4); /* 0x24006096: mov ecx, dword ptr [esi + 4] */ 12125 /* cmp edi, ecx */ /* 0x24006099: cmp edi, ecx */ 12126 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 12127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12128 _flag_k = FK_CMP; 12129 if (CMP_NE(_flag_a, _flag_b)) goto L_240060CC; /* 0x2400609B: jne 0x240060cc */ 12130 L_2400609D: 12131 edx = MEM32(ecx + 0x4); /* 0x2400609D: mov edx, dword ptr [ecx + 4] */ 12132 PUSH32(esp, edx); /* 0x240060A0: push edx */ 12133 ecx = esi; /* 0x240060A1: mov ecx, esi */ 12134 RECOMP_ICALL(0x24002790u); /* 0x240060A3: call 0x24002790 */ /* not lifted */ 12135 RECOMP_FLAGS_IN(); 12136 eax = MEM32(esi + 0x4); /* 0x240060A8: mov eax, dword ptr [esi + 4] */ 12137 ecx = MEM32(esi + 0x8); /* 0x240060AB: mov ecx, dword ptr [esi + 8] */ 12138 MEM32(eax + 0x4) = ecx; /* 0x240060AE: mov dword ptr [eax + 4], ecx */ 12139 eax = MEM32(esi + 0x4); /* 0x240060B1: mov eax, dword ptr [esi + 4] */ 12140 MEM32(esi + 0x10) = ebx; /* 0x240060B4: mov dword ptr [esi + 0x10], ebx */ 12141 MEM32(eax) = eax; /* 0x240060B7: mov dword ptr [eax], eax */ 12142 eax = MEM32(esi + 0x4); /* 0x240060B9: mov eax, dword ptr [esi + 4] */ 12143 edx = ebp + (-0x18); /* 0x240060BC: lea edx, [ebp - 0x18] */ 12144 PUSH32(esp, edx); /* 0x240060BF: push edx */ 12145 ecx = esi; /* 0x240060C0: mov ecx, esi */ 12146 MEM32(eax + 0x8) = eax; /* 0x240060C2: mov dword ptr [eax + 8], eax */ 12147 RECOMP_ICALL(0x24002100u); /* 0x240060C5: call 0x24002100 */ /* not lifted */ 12148 RECOMP_FLAGS_IN(); 12149 goto L_240060F0; /* 0x240060CA: jmp 0x240060f0 */ 12150 L_240060CC: 12151 /* cmp eax, edi */ /* 0x240060CC: cmp eax, edi */ 12152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12154 _flag_k = FK_CMP; 12155 if (CMP_EQ(_flag_a, _flag_b)) goto L_240060F0; /* 0x240060CE: je 0x240060f0 */ 12156 L_240060D0: 12157 PUSH32(esp, ebx); /* 0x240060D0: push ebx */ 12158 eax = ebp + (-0x14); /* 0x240060D1: lea eax, [ebp - 0x14] */ 12159 PUSH32(esp, eax); /* 0x240060D4: push eax */ 12160 ecx = ebp + (-0x10); /* 0x240060D5: lea ecx, [ebp - 0x10] */ 12161 RECOMP_ICALL(0x24002810u); /* 0x240060D8: call 0x24002810 */ /* not lifted */ 12162 RECOMP_FLAGS_IN(); 12163 ecx = MEM32(eax); /* 0x240060DD: mov ecx, dword ptr [eax] */ 12164 PUSH32(esp, ecx); /* 0x240060DF: push ecx */ 12165 edx = ebp + (-0x1C); /* 0x240060E0: lea edx, [ebp - 0x1c] */ 12166 PUSH32(esp, edx); /* 0x240060E3: push edx */ 12167 ecx = esi; /* 0x240060E4: mov ecx, esi */ 12168 RECOMP_ICALL(0x24002330u); /* 0x240060E6: call 0x24002330 */ /* not lifted */ 12169 RECOMP_FLAGS_IN(); 12170 /* cmp MEM32(ebp + (-0x10)), edi */ /* 0x240060EB: cmp dword ptr [ebp - 0x10], edi */ 12171 _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(edi); 12172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12173 _flag_k = FK_CMP; 12174 RECOMP_BACKEDGE(); 12175 if (CMP_NE(_flag_a, _flag_b)) goto L_240060D0; /* 0x240060EE: jne 0x240060d0 */ 12176 L_240060F0: 12177 eax = MEM32(esi + 0x4); /* 0x240060F0: mov eax, dword ptr [esi + 4] */ 12178 PUSH32(esp, eax); /* 0x240060F3: push eax */ 12179 RECOMP_ICALL(0x240097F2u); /* 0x240060F4: call 0x240097f2 */ /* not lifted */ 12180 RECOMP_FLAGS_IN(); 12181 ecx = MEM32(esi + 0x8); /* 0x240060F9: mov ecx, dword ptr [esi + 8] */ 12182 PUSH32(esp, ecx); /* 0x240060FC: push ecx */ 12183 MEM32(esi + 0x4) = ebx; /* 0x240060FD: mov dword ptr [esi + 4], ebx */ 12184 MEM32(esi + 0x10) = ebx; /* 0x24006100: mov dword ptr [esi + 0x10], ebx */ 12185 RECOMP_ICALL(0x240097F2u); /* 0x24006103: call 0x240097f2 */ /* not lifted */ 12186 RECOMP_FLAGS_IN(); 12187 ecx = MEM32(ebp + (-0xC)); /* 0x24006108: mov ecx, dword ptr [ebp - 0xc] */ 12188 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12190 esp = esp + 8; /* 0x2400610B: add esp, 8 */ 12191 _flag_k = FK_ADD; 12192 MEM32(esi + 0x8) = ebx; /* 0x2400610E: mov dword ptr [esi + 8], ebx */ 12193 edi = POP32_VAL(esp); /* 0x24006111: pop edi */ 12194 esi = POP32_VAL(esp); /* 0x24006112: pop esi */ 12195 ebx = POP32_VAL(esp); /* 0x24006113: pop ebx */ 12196 MEM32(FS_BASE + (0)) = ecx; /* 0x24006114: mov dword ptr fs:[0], ecx */ 12197 esp = ebp; /* 0x2400611B: mov esp, ebp */ 12198 ebp = POP32_VAL(esp); /* 0x2400611D: pop ebp */ 12199 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2400611E: ret */ 12200 RECOMP_REGS_OUT(); 12201 } 12202 12203 void sub_24006120(void) { 12204 int _fpu_cmp = 0; 12205 uint32_t _cf = 0; 12206 int _df = 1; 12207 uint32_t _flag_k = FK_NONE; 12208 uint32_t _flag_a = 0, _flag_b = 0; 12209 uint32_t _itail_tgt = 0; 12210 RECOMP_REGS_LOCALS 12211 RECOMP_ENTER(0x24006120u); 12212 12213 L_24006120: 12214 PUSH32(esp, esi); /* 0x24006120: push esi */ 12215 esi = ecx; /* 0x24006121: mov esi, ecx */ 12216 eax = MEM32(esi + 0x54); /* 0x24006123: mov eax, dword ptr [esi + 0x54] */ 12217 /* test eax, eax */ /* 0x24006126: test eax, eax */ 12218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12219 _cf = 0; 12220 _flag_k = FK_TEST; 12221 if (TEST_Z(_flag_a, _flag_b)) goto L_24006137; /* 0x24006128: je 0x24006137 */ 12222 L_2400612A: 12223 PUSH32(esp, eax); /* 0x2400612A: push eax */ 12224 RECOMP_ICALL(0x240077F0u); /* 0x2400612B: call 0x240077f0 */ /* not lifted */ 12225 RECOMP_FLAGS_IN(); 12226 MEM32(esi + 0x54) = 0; /* 0x24006130: mov dword ptr [esi + 0x54], 0 */ 12227 L_24006137: 12228 esi = POP32_VAL(esp); /* 0x24006137: pop esi */ 12229 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x24006138: ret */ 12230 RECOMP_REGS_OUT(); 12231 } 12232 12233 void sub_24006140(void) { 12234 int _fpu_cmp = 0; 12235 uint32_t _cf = 0; 12236 int _df = 1; 12237 uint32_t _flag_k = FK_NONE; 12238 uint32_t _flag_a = 0, _flag_b = 0; 12239 uint32_t _itail_tgt = 0; 12240 RECOMP_REGS_LOCALS 12241 RECOMP_ENTER(0x24006140u); 12242 12243 L_24006140: 12244 PUSH32(esp, ebp); /* 0x24006140: push ebp */ 12245 ebp = esp; /* 0x24006141: mov ebp, esp */ 12246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 12247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12248 esp = esp - 0x20u; /* 0x24006143: sub esp, 0x20 */ 12249 _flag_k = FK_CMP; 12250 PUSH32(esp, esi); /* 0x24006146: push esi */ 12251 esi = ecx; /* 0x24006147: mov esi, ecx */ 12252 edx = MEM32(esi + 0x64); /* 0x24006149: mov edx, dword ptr [esi + 0x64] */ 12253 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12254 edx = edx + 1; /* 0x2400614C: inc edx */ 12255 _flag_k = FK_INC; 12256 eax = edx; /* 0x2400614D: mov eax, edx */ 12257 PUSH32(esp, eax); /* 0x2400614F: push eax */ 12258 eax = ebp + (-0x20); /* 0x24006150: lea eax, [ebp - 0x20] */ 12259 PUSH32(esp, 0x2400E134u); /* 0x24006153: push 0x2400e134 */ 12260 PUSH32(esp, eax); /* 0x24006158: push eax */ 12261 MEM32(esi + 0x64) = edx; /* 0x24006159: mov dword ptr [esi + 0x64], edx */ 12262 RECOMP_ICALL(MEM32(0x2400B0A0)); /* 0x2400615C: call dword ptr [0x2400b0a0] */ 12263 RECOMP_FLAGS_IN(); 12264 edx = MEM32(esi + 0x2C); /* 0x24006162: mov edx, dword ptr [esi + 0x2c] */ 12265 PUSH32(esp, 0xFu); /* 0x24006165: push 0xf */ 12266 ecx = ebp + (-0x20); /* 0x24006167: lea ecx, [ebp - 0x20] */ 12267 PUSH32(esp, ecx); /* 0x2400616A: push ecx */ 12268 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Cu); 12269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12270 edx = edx + 0x1Cu; /* 0x2400616B: add edx, 0x1c */ 12271 _flag_k = FK_ADD; 12272 PUSH32(esp, edx); /* 0x2400616E: push edx */ 12273 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x2400616F: call dword ptr [0x2400b0b4] */ 12274 RECOMP_FLAGS_IN(); 12275 eax = MEM32(esi + 0x2C); /* 0x24006175: mov eax, dword ptr [esi + 0x2c] */ 12276 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 12277 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12278 esp = esp + 0x18u; /* 0x24006178: add esp, 0x18 */ 12279 _flag_k = FK_ADD; 12280 esi = POP32_VAL(esp); /* 0x2400617B: pop esi */ 12281 esp = ebp; /* 0x2400617C: mov esp, ebp */ 12282 ebp = POP32_VAL(esp); /* 0x2400617E: pop ebp */ 12283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2400617F: ret */ 12284 RECOMP_REGS_OUT(); 12285 } 12286 12287 void sub_24006180(void) { 12288 int _fpu_cmp = 0; 12289 uint32_t _cf = 0; 12290 int _df = 1; 12291 uint32_t _flag_k = FK_NONE; 12292 uint32_t _flag_a = 0, _flag_b = 0; 12293 uint32_t _itail_tgt = 0; 12294 RECOMP_REGS_LOCALS 12295 RECOMP_ENTER(0x24006180u); 12296 12297 L_24006180: 12298 PUSH32(esp, ebp); /* 0x24006180: push ebp */ 12299 ebp = esp; /* 0x24006181: mov ebp, esp */ 12300 PUSH32(esp, 0xFFFFFFFFu); /* 0x24006183: push -1 */ 12301 PUSH32(esp, 0x24009E7Bu); /* 0x24006185: push 0x24009e7b */ 12302 eax = MEM32(FS_BASE + (0)); /* 0x2400618A: mov eax, dword ptr fs:[0] */ 12303 PUSH32(esp, eax); /* 0x24006190: push eax */ 12304 MEM32(FS_BASE + (0)) = esp; /* 0x24006191: mov dword ptr fs:[0], esp */ 12305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xACu); 12306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12307 esp = esp - 0xACu; /* 0x24006198: sub esp, 0xac */ 12308 _flag_k = FK_CMP; 12309 eax = MEM32(ecx); /* 0x2400619E: mov eax, dword ptr [ecx] */ 12310 PUSH32(esp, ebx); /* 0x240061A0: push ebx */ 12311 PUSH32(esp, esi); /* 0x240061A1: push esi */ 12312 PUSH32(esp, edi); /* 0x240061A2: push edi */ 12313 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x240061A3: call dword ptr [eax + 8] */ 12314 RECOMP_FLAGS_IN(); 12315 PUSH32(esp, 7); /* 0x240061A6: push 7 */ 12316 ecx = ebp + (-0x4C); /* 0x240061A8: lea ecx, [ebp - 0x4c] */ 12317 PUSH32(esp, 0x2400E294u); /* 0x240061AB: push 0x2400e294 */ 12318 PUSH32(esp, ecx); /* 0x240061B0: push ecx */ 12319 ebx = eax; /* 0x240061B1: mov ebx, eax */ 12320 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x240061B3: call dword ptr [0x2400b0b4] */ 12321 RECOMP_FLAGS_IN(); 12322 esi = MEM32(ebp + 0x8); /* 0x240061B9: mov esi, dword ptr [ebp + 8] */ 12323 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12324 ecx = ecx | 0xFFFFFFFFu; /* 0x240061BC: or ecx, 0xffffffff */ 12325 _cf = 0; 12326 _flag_k = FK_TEST; 12327 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12328 eax = 0; /* 0x240061BF: xor eax, eax */ 12329 _cf = 0; 12330 _flag_k = FK_TEST; 12331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12333 esp = esp + 0xCu; /* 0x240061C1: add esp, 0xc */ 12334 _flag_k = FK_ADD; 12335 edi = esi; /* 0x240061C4: mov edi, esi */ 12336 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x240061C6: repne scasb al, byte ptr es:[edi] */ 12337 ecx = ~ecx; /* 0x240061C8: not ecx */ 12338 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12339 ecx = ecx - 1; /* 0x240061CA: dec ecx */ 12340 _flag_k = FK_DEC; 12341 /* cmp ecx, 0x20u */ /* 0x240061CB: cmp ecx, 0x20 */ 12342 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 12343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12344 _flag_k = FK_CMP; 12345 edx = ebp + (-0x6C); /* 0x240061CE: lea edx, [ebp - 0x6c] */ 12346 MEM32(ebp + (-0x70)) = edx; /* 0x240061D1: mov dword ptr [ebp - 0x70], edx */ 12347 if (CMP_B(_flag_a, _flag_b)) goto L_240061E5; /* 0x240061D4: jb 0x240061e5 */ 12348 L_240061D6: 12349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12350 ecx = ecx + 1; /* 0x240061D6: inc ecx */ 12351 _flag_k = FK_INC; 12352 PUSH32(esp, ecx); /* 0x240061D7: push ecx */ 12353 RECOMP_ICALL(0x24009838u); /* 0x240061D8: call 0x24009838 */ /* not lifted */ 12354 RECOMP_FLAGS_IN(); 12355 edx = eax; /* 0x240061DD: mov edx, eax */ 12356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12358 esp = esp + 4; /* 0x240061DF: add esp, 4 */ 12359 _flag_k = FK_ADD; 12360 MEM32(ebp + (-0x70)) = edx; /* 0x240061E2: mov dword ptr [ebp - 0x70], edx */ 12361 L_240061E5: 12362 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12363 ecx = ecx | 0xFFFFFFFFu; /* 0x240061E5: or ecx, 0xffffffff */ 12364 _cf = 0; 12365 _flag_k = FK_TEST; 12366 edi = esi; /* 0x240061E8: mov edi, esi */ 12367 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12368 eax = 0; /* 0x240061EA: xor eax, eax */ 12369 _cf = 0; 12370 _flag_k = FK_TEST; 12371 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x240061EC: repne scasb al, byte ptr es:[edi] */ 12372 ecx = ~ecx; /* 0x240061EE: not ecx */ 12373 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 12374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12375 edi = edi - ecx; /* 0x240061F0: sub edi, ecx */ 12376 _flag_k = FK_CMP; 12377 eax = ecx; /* 0x240061F2: mov eax, ecx */ 12378 esi = edi; /* 0x240061F4: mov esi, edi */ 12379 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240061F6: shr ecx, 2 */ 12380 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12381 ecx = ecx >> 2u; /* 0x240061F6: shr ecx, 2 */ 12382 edi = edx; /* 0x240061F9: mov edi, edx */ 12383 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x240061FB: 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; } 12384 ecx = eax; /* 0x240061FD: mov ecx, eax */ 12385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 12386 ecx = ecx & 3; /* 0x240061FF: and ecx, 3 */ 12387 _cf = 0; 12388 _flag_k = FK_TEST; 12389 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24006202: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 12390 MEM8(ebp + (-0x45)) = (uint8_t)(0); /* 0x24006204: mov byte ptr [ebp - 0x45], 0 */ 12391 ecx = ebp + (-0x70); /* 0x24006208: lea ecx, [ebp - 0x70] */ 12392 PUSH32(esp, ecx); /* 0x2400620B: push ecx */ 12393 edx = ebp + (-0x10); /* 0x2400620C: lea edx, [ebp - 0x10] */ 12394 PUSH32(esp, edx); /* 0x2400620F: push edx */ 12395 ecx = ebx; /* 0x24006210: mov ecx, ebx */ 12396 MEM32(ebp + (-0x4)) = 0; /* 0x24006212: mov dword ptr [ebp - 4], 0 */ 12397 RECOMP_ICALL(0x24005180u); /* 0x24006219: call 0x24005180 */ /* not lifted */ 12398 RECOMP_FLAGS_IN(); 12399 esi = MEM32(eax); /* 0x2400621E: mov esi, dword ptr [eax] */ 12400 eax = MEM32(ebp + (-0x70)); /* 0x24006220: mov eax, dword ptr [ebp - 0x70] */ 12401 ecx = ebp + (-0x6C); /* 0x24006223: lea ecx, [ebp - 0x6c] */ 12402 /* cmp eax, ecx */ /* 0x24006226: cmp eax, ecx */ 12403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12405 _flag_k = FK_CMP; 12406 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x24006228: mov dword ptr [ebp - 4], 0xffffffff */ 12407 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400623A; /* 0x2400622F: je 0x2400623a */ 12408 L_24006231: 12409 PUSH32(esp, eax); /* 0x24006231: push eax */ 12410 RECOMP_ICALL(0x240097F2u); /* 0x24006232: call 0x240097f2 */ /* not lifted */ 12411 RECOMP_FLAGS_IN(); 12412 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12414 esp = esp + 4; /* 0x24006237: add esp, 4 */ 12415 _flag_k = FK_ADD; 12416 L_2400623A: 12417 /* cmp esi, MEM32(ebx + 0x4) */ /* 0x2400623A: cmp esi, dword ptr [ebx + 4] */ 12418 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12420 _flag_k = FK_CMP; 12421 if (CMP_NE(_flag_a, _flag_b)) goto L_2400633E; /* 0x2400623D: jne 0x2400633e */ 12422 L_24006243: 12423 edx = MEM32(ebx + 0x10); /* 0x24006243: mov edx, dword ptr [ebx + 0x10] */ 12424 PUSH32(esp, 7); /* 0x24006246: push 7 */ 12425 eax = ebp + (-0x20); /* 0x24006248: lea eax, [ebp - 0x20] */ 12426 PUSH32(esp, 0x2400E294u); /* 0x2400624B: push 0x2400e294 */ 12427 PUSH32(esp, eax); /* 0x24006250: push eax */ 12428 MEM32(ebp + (-0x10)) = edx; /* 0x24006251: mov dword ptr [ebp - 0x10], edx */ 12429 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x24006254: call dword ptr [0x2400b0b4] */ 12430 RECOMP_FLAGS_IN(); 12431 esi = MEM32(ebp + 0x8); /* 0x2400625A: mov esi, dword ptr [ebp + 8] */ 12432 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12433 ecx = ecx | 0xFFFFFFFFu; /* 0x2400625D: or ecx, 0xffffffff */ 12434 _cf = 0; 12435 _flag_k = FK_TEST; 12436 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12437 eax = 0; /* 0x24006260: xor eax, eax */ 12438 _cf = 0; 12439 _flag_k = FK_TEST; 12440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12441 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12442 esp = esp + 0xCu; /* 0x24006262: add esp, 0xc */ 12443 _flag_k = FK_ADD; 12444 edi = esi; /* 0x24006265: mov edi, esi */ 12445 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24006267: repne scasb al, byte ptr es:[edi] */ 12446 ecx = ~ecx; /* 0x24006269: not ecx */ 12447 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12448 ecx = ecx - 1; /* 0x2400626B: dec ecx */ 12449 _flag_k = FK_DEC; 12450 /* cmp ecx, 0x20u */ /* 0x2400626C: cmp ecx, 0x20 */ 12451 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 12452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12453 _flag_k = FK_CMP; 12454 edx = ebp + (-0x40); /* 0x2400626F: lea edx, [ebp - 0x40] */ 12455 MEM32(ebp + (-0x44)) = edx; /* 0x24006272: mov dword ptr [ebp - 0x44], edx */ 12456 if (CMP_B(_flag_a, _flag_b)) goto L_24006286; /* 0x24006275: jb 0x24006286 */ 12457 L_24006277: 12458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12459 ecx = ecx + 1; /* 0x24006277: inc ecx */ 12460 _flag_k = FK_INC; 12461 PUSH32(esp, ecx); /* 0x24006278: push ecx */ 12462 RECOMP_ICALL(0x24009838u); /* 0x24006279: call 0x24009838 */ /* not lifted */ 12463 RECOMP_FLAGS_IN(); 12464 edx = eax; /* 0x2400627E: mov edx, eax */ 12465 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12466 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12467 esp = esp + 4; /* 0x24006280: add esp, 4 */ 12468 _flag_k = FK_ADD; 12469 MEM32(ebp + (-0x44)) = edx; /* 0x24006283: mov dword ptr [ebp - 0x44], edx */ 12470 L_24006286: 12471 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12472 ecx = ecx | 0xFFFFFFFFu; /* 0x24006286: or ecx, 0xffffffff */ 12473 _cf = 0; 12474 _flag_k = FK_TEST; 12475 edi = esi; /* 0x24006289: mov edi, esi */ 12476 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12477 eax = 0; /* 0x2400628B: xor eax, eax */ 12478 _cf = 0; 12479 _flag_k = FK_TEST; 12480 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2400628D: repne scasb al, byte ptr es:[edi] */ 12481 ecx = ~ecx; /* 0x2400628F: not ecx */ 12482 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 12483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12484 edi = edi - ecx; /* 0x24006291: sub edi, ecx */ 12485 _flag_k = FK_CMP; 12486 eax = ecx; /* 0x24006293: mov eax, ecx */ 12487 esi = edi; /* 0x24006295: mov esi, edi */ 12488 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24006297: shr ecx, 2 */ 12489 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12490 ecx = ecx >> 2u; /* 0x24006297: shr ecx, 2 */ 12491 edi = edx; /* 0x2400629A: mov edi, edx */ 12492 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2400629C: 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; } 12493 ecx = eax; /* 0x2400629E: mov ecx, eax */ 12494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 12495 ecx = ecx & 3; /* 0x240062A0: and ecx, 3 */ 12496 _cf = 0; 12497 _flag_k = FK_TEST; 12498 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240062A3: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 12499 MEM8(ebp + (-0x19)) = (uint8_t)(0); /* 0x240062A5: mov byte ptr [ebp - 0x19], 0 */ 12500 ecx = ebp + (-0x44); /* 0x240062A9: lea ecx, [ebp - 0x44] */ 12501 PUSH32(esp, ecx); /* 0x240062AC: push ecx */ 12502 ecx = ebp + (-0xB8); /* 0x240062AD: lea ecx, [ebp - 0xb8] */ 12503 MEM32(ebp + (-0x4)) = 1; /* 0x240062B3: mov dword ptr [ebp - 4], 1 */ 12504 RECOMP_ICALL(0x24001280u); /* 0x240062BA: call 0x24001280 */ /* not lifted */ 12505 RECOMP_FLAGS_IN(); 12506 MEM32(ebp + (-0x8C)) = 0; /* 0x240062BF: mov dword ptr [ebp - 0x8c], 0 */ 12507 edx = ebp + (-0xB8); /* 0x240062C9: lea edx, [ebp - 0xb8] */ 12508 PUSH32(esp, edx); /* 0x240062CF: push edx */ 12509 eax = ebp + (-0x88); /* 0x240062D0: lea eax, [ebp - 0x88] */ 12510 PUSH32(esp, eax); /* 0x240062D6: push eax */ 12511 ecx = ebx; /* 0x240062D7: mov ecx, ebx */ 12512 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x240062D9: mov byte ptr [ebp - 4], 2 */ 12513 RECOMP_ICALL(0x240054D0u); /* 0x240062DD: call 0x240054d0 */ /* not lifted */ 12514 RECOMP_FLAGS_IN(); 12515 ecx = MEM32(eax); /* 0x240062E2: mov ecx, dword ptr [eax] */ 12516 MEM32(ebp + (-0x18)) = ecx; /* 0x240062E4: mov dword ptr [ebp - 0x18], ecx */ 12517 edx = MEM32(eax + 0x4); /* 0x240062E7: mov edx, dword ptr [eax + 4] */ 12518 eax = ebp + (-0x14); /* 0x240062EA: lea eax, [ebp - 0x14] */ 12519 PUSH32(esp, eax); /* 0x240062ED: push eax */ 12520 ecx = ebp + (-0x18); /* 0x240062EE: lea ecx, [ebp - 0x18] */ 12521 PUSH32(esp, ecx); /* 0x240062F1: push ecx */ 12522 ecx = ebp + (-0x78); /* 0x240062F2: lea ecx, [ebp - 0x78] */ 12523 MEM32(ebp + (-0x14)) = edx; /* 0x240062F5: mov dword ptr [ebp - 0x14], edx */ 12524 RECOMP_ICALL(0x24005730u); /* 0x240062F8: call 0x24005730 */ /* not lifted */ 12525 RECOMP_FLAGS_IN(); 12526 esi = MEM32(eax); /* 0x240062FD: mov esi, dword ptr [eax] */ 12527 edx = MEM32(eax + 0x4); /* 0x240062FF: mov edx, dword ptr [eax + 4] */ 12528 ecx = ebp + (-0xB8); /* 0x24006302: lea ecx, [ebp - 0xb8] */ 12529 MEM32(ebp + (-0x7C)) = edx; /* 0x24006308: mov dword ptr [ebp - 0x7c], edx */ 12530 RECOMP_ICALL(0x240030D0u); /* 0x2400630B: call 0x240030d0 */ /* not lifted */ 12531 RECOMP_FLAGS_IN(); 12532 edi = MEM32(ebp + (-0x10)); /* 0x24006310: mov edi, dword ptr [ebp - 0x10] */ 12533 MEM32(esi + 0x38) = edi; /* 0x24006313: mov dword ptr [esi + 0x38], edi */ 12534 eax = MEM32(ebp + (-0x44)); /* 0x24006316: mov eax, dword ptr [ebp - 0x44] */ 12535 ecx = ebp + (-0x40); /* 0x24006319: lea ecx, [ebp - 0x40] */ 12536 /* cmp eax, ecx */ /* 0x2400631C: cmp eax, ecx */ 12537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12539 _flag_k = FK_CMP; 12540 if (CMP_EQ(_flag_a, _flag_b)) goto L_24006329; /* 0x2400631E: je 0x24006329 */ 12541 L_24006320: 12542 PUSH32(esp, eax); /* 0x24006320: push eax */ 12543 RECOMP_ICALL(0x240097F2u); /* 0x24006321: call 0x240097f2 */ /* not lifted */ 12544 RECOMP_FLAGS_IN(); 12545 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12547 esp = esp + 4; /* 0x24006326: add esp, 4 */ 12548 _flag_k = FK_ADD; 12549 L_24006329: 12550 eax = edi; /* 0x24006329: mov eax, edi */ 12551 edi = POP32_VAL(esp); /* 0x2400632B: pop edi */ 12552 esi = POP32_VAL(esp); /* 0x2400632C: pop esi */ 12553 ebx = POP32_VAL(esp); /* 0x2400632D: pop ebx */ 12554 ecx = MEM32(ebp + (-0xC)); /* 0x2400632E: mov ecx, dword ptr [ebp - 0xc] */ 12555 MEM32(FS_BASE + (0)) = ecx; /* 0x24006331: mov dword ptr fs:[0], ecx */ 12556 esp = ebp; /* 0x24006338: mov esp, ebp */ 12557 ebp = POP32_VAL(esp); /* 0x2400633A: pop ebp */ 12558 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2400633B: ret 4 */ 12559 L_2400633E: 12560 eax = MEM32(esi + 0x38); /* 0x2400633E: mov eax, dword ptr [esi + 0x38] */ 12561 ecx = MEM32(ebp + (-0xC)); /* 0x24006341: mov ecx, dword ptr [ebp - 0xc] */ 12562 edi = POP32_VAL(esp); /* 0x24006344: pop edi */ 12563 esi = POP32_VAL(esp); /* 0x24006345: pop esi */ 12564 ebx = POP32_VAL(esp); /* 0x24006346: pop ebx */ 12565 MEM32(FS_BASE + (0)) = ecx; /* 0x24006347: mov dword ptr fs:[0], ecx */ 12566 esp = ebp; /* 0x2400634E: mov esp, ebp */ 12567 ebp = POP32_VAL(esp); /* 0x24006350: pop ebp */ 12568 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24006351: ret 4 */ 12569 RECOMP_REGS_OUT(); 12570 } 12571 12572 void sub_24006360(void) { 12573 int _fpu_cmp = 0; 12574 uint32_t _cf = 0; 12575 int _df = 1; 12576 uint32_t _flag_k = FK_NONE; 12577 uint32_t _flag_a = 0, _flag_b = 0; 12578 uint32_t _itail_tgt = 0; 12579 RECOMP_REGS_LOCALS 12580 RECOMP_ENTER(0x24006360u); 12581 12582 L_24006360: 12583 PUSH32(esp, ebp); /* 0x24006360: push ebp */ 12584 ebp = esp; /* 0x24006361: mov ebp, esp */ 12585 PUSH32(esp, 0xFFFFFFFFu); /* 0x24006363: push -1 */ 12586 PUSH32(esp, 0x24009E98u); /* 0x24006365: push 0x24009e98 */ 12587 eax = MEM32(FS_BASE + (0)); /* 0x2400636A: mov eax, dword ptr fs:[0] */ 12588 PUSH32(esp, eax); /* 0x24006370: push eax */ 12589 MEM32(FS_BASE + (0)) = esp; /* 0x24006371: mov dword ptr fs:[0], esp */ 12590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 12591 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12592 esp = esp - 0x30u; /* 0x24006378: sub esp, 0x30 */ 12593 _flag_k = FK_CMP; 12594 eax = MEM32(ecx); /* 0x2400637B: mov eax, dword ptr [ecx] */ 12595 PUSH32(esp, ebx); /* 0x2400637D: push ebx */ 12596 PUSH32(esp, esi); /* 0x2400637E: push esi */ 12597 PUSH32(esp, edi); /* 0x2400637F: push edi */ 12598 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x24006380: call dword ptr [eax + 4] */ 12599 RECOMP_FLAGS_IN(); 12600 PUSH32(esp, 7); /* 0x24006383: push 7 */ 12601 ecx = ebp + (-0x18); /* 0x24006385: lea ecx, [ebp - 0x18] */ 12602 PUSH32(esp, 0x2400E294u); /* 0x24006388: push 0x2400e294 */ 12603 PUSH32(esp, ecx); /* 0x2400638D: push ecx */ 12604 ebx = eax; /* 0x2400638E: mov ebx, eax */ 12605 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x24006390: call dword ptr [0x2400b0b4] */ 12606 RECOMP_FLAGS_IN(); 12607 esi = MEM32(ebp + 0x8); /* 0x24006396: mov esi, dword ptr [ebp + 8] */ 12608 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12609 ecx = ecx | 0xFFFFFFFFu; /* 0x24006399: or ecx, 0xffffffff */ 12610 _cf = 0; 12611 _flag_k = FK_TEST; 12612 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12613 eax = 0; /* 0x2400639C: xor eax, eax */ 12614 _cf = 0; 12615 _flag_k = FK_TEST; 12616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12618 esp = esp + 0xCu; /* 0x2400639E: add esp, 0xc */ 12619 _flag_k = FK_ADD; 12620 edi = esi; /* 0x240063A1: mov edi, esi */ 12621 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x240063A3: repne scasb al, byte ptr es:[edi] */ 12622 ecx = ~ecx; /* 0x240063A5: not ecx */ 12623 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12624 ecx = ecx - 1; /* 0x240063A7: dec ecx */ 12625 _flag_k = FK_DEC; 12626 /* cmp ecx, 0x20u */ /* 0x240063A8: cmp ecx, 0x20 */ 12627 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 12628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12629 _flag_k = FK_CMP; 12630 edx = ebp + (-0x38); /* 0x240063AB: lea edx, [ebp - 0x38] */ 12631 MEM32(ebp + (-0x3C)) = edx; /* 0x240063AE: mov dword ptr [ebp - 0x3c], edx */ 12632 if (CMP_B(_flag_a, _flag_b)) goto L_240063C2; /* 0x240063B1: jb 0x240063c2 */ 12633 L_240063B3: 12634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12635 ecx = ecx + 1; /* 0x240063B3: inc ecx */ 12636 _flag_k = FK_INC; 12637 PUSH32(esp, ecx); /* 0x240063B4: push ecx */ 12638 RECOMP_ICALL(0x24009838u); /* 0x240063B5: call 0x24009838 */ /* not lifted */ 12639 RECOMP_FLAGS_IN(); 12640 edx = eax; /* 0x240063BA: mov edx, eax */ 12641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12643 esp = esp + 4; /* 0x240063BC: add esp, 4 */ 12644 _flag_k = FK_ADD; 12645 MEM32(ebp + (-0x3C)) = edx; /* 0x240063BF: mov dword ptr [ebp - 0x3c], edx */ 12646 L_240063C2: 12647 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12648 ecx = ecx | 0xFFFFFFFFu; /* 0x240063C2: or ecx, 0xffffffff */ 12649 _cf = 0; 12650 _flag_k = FK_TEST; 12651 edi = esi; /* 0x240063C5: mov edi, esi */ 12652 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12653 eax = 0; /* 0x240063C7: xor eax, eax */ 12654 _cf = 0; 12655 _flag_k = FK_TEST; 12656 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x240063C9: repne scasb al, byte ptr es:[edi] */ 12657 ecx = ~ecx; /* 0x240063CB: not ecx */ 12658 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 12659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12660 edi = edi - ecx; /* 0x240063CD: sub edi, ecx */ 12661 _flag_k = FK_CMP; 12662 eax = ecx; /* 0x240063CF: mov eax, ecx */ 12663 esi = edi; /* 0x240063D1: mov esi, edi */ 12664 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x240063D3: shr ecx, 2 */ 12665 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12666 ecx = ecx >> 2u; /* 0x240063D3: shr ecx, 2 */ 12667 edi = edx; /* 0x240063D6: mov edi, edx */ 12668 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x240063D8: 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; } 12669 ecx = eax; /* 0x240063DA: mov ecx, eax */ 12670 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 12671 ecx = ecx & 3; /* 0x240063DC: and ecx, 3 */ 12672 _cf = 0; 12673 _flag_k = FK_TEST; 12674 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12675 eax = 0; /* 0x240063DF: xor eax, eax */ 12676 _cf = 0; 12677 _flag_k = FK_TEST; 12678 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x240063E1: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 12679 MEM8(ebp + (-0x11)) = (uint8_t)(LO8(eax)); /* 0x240063E3: mov byte ptr [ebp - 0x11], al */ 12680 ecx = ebp + (-0x3C); /* 0x240063E6: lea ecx, [ebp - 0x3c] */ 12681 PUSH32(esp, ecx); /* 0x240063E9: push ecx */ 12682 ecx = ebx; /* 0x240063EA: mov ecx, ebx */ 12683 MEM32(ebp + (-0x4)) = eax; /* 0x240063EC: mov dword ptr [ebp - 4], eax */ 12684 RECOMP_ICALL(0x24005990u); /* 0x240063EF: call 0x24005990 */ /* not lifted */ 12685 RECOMP_FLAGS_IN(); 12686 /* cmp eax, MEM32(ebx + 0x4) */ /* 0x240063F4: cmp eax, dword ptr [ebx + 4] */ 12687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x4)); 12688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12689 _flag_k = FK_CMP; 12690 MEM32(ebp + 0x8) = eax; /* 0x240063F7: mov dword ptr [ebp + 8], eax */ 12691 if (CMP_EQ(_flag_a, _flag_b)) goto L_24006411; /* 0x240063FA: je 0x24006411 */ 12692 L_240063FC: 12693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 12694 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12695 eax = eax + 0xCu; /* 0x240063FC: add eax, 0xc */ 12696 _flag_k = FK_ADD; 12697 PUSH32(esp, eax); /* 0x240063FF: push eax */ 12698 ecx = ebp + (-0x3C); /* 0x24006400: lea ecx, [ebp - 0x3c] */ 12699 RECOMP_ICALL(0x24003F00u); /* 0x24006403: call 0x24003f00 */ /* not lifted */ 12700 RECOMP_FLAGS_IN(); 12701 /* test LO8(eax), LO8(eax) */ /* 0x24006408: test al, al */ 12702 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12703 _cf = 0; 12704 _flag_k = FK_NARROW(FK_TEST, 24); 12705 if (TEST_NZ(_flag_a, _flag_b)) goto L_24006411; /* 0x2400640A: jne 0x24006411 */ 12706 L_2400640C: 12707 eax = ebp + 0x8; /* 0x2400640C: lea eax, [ebp + 8] */ 12708 goto L_2400641A; /* 0x2400640F: jmp 0x2400641a */ 12709 L_24006411: 12710 edx = MEM32(ebx + 0x4); /* 0x24006411: mov edx, dword ptr [ebx + 4] */ 12711 MEM32(ebp + (-0x10)) = edx; /* 0x24006414: mov dword ptr [ebp - 0x10], edx */ 12712 eax = ebp + (-0x10); /* 0x24006417: lea eax, [ebp - 0x10] */ 12713 L_2400641A: 12714 esi = MEM32(eax); /* 0x2400641A: mov esi, dword ptr [eax] */ 12715 eax = MEM32(ebp + (-0x3C)); /* 0x2400641C: mov eax, dword ptr [ebp - 0x3c] */ 12716 ecx = ebp + (-0x38); /* 0x2400641F: lea ecx, [ebp - 0x38] */ 12717 /* cmp eax, ecx */ /* 0x24006422: cmp eax, ecx */ 12718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12720 _flag_k = FK_CMP; 12721 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400642F; /* 0x24006424: je 0x2400642f */ 12722 L_24006426: 12723 PUSH32(esp, eax); /* 0x24006426: push eax */ 12724 RECOMP_ICALL(0x240097F2u); /* 0x24006427: call 0x240097f2 */ /* not lifted */ 12725 RECOMP_FLAGS_IN(); 12726 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12727 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12728 esp = esp + 4; /* 0x2400642C: add esp, 4 */ 12729 _flag_k = FK_ADD; 12730 L_2400642F: 12731 eax = MEM32(esi + 0x38); /* 0x2400642F: mov eax, dword ptr [esi + 0x38] */ 12732 ecx = MEM32(ebp + (-0xC)); /* 0x24006432: mov ecx, dword ptr [ebp - 0xc] */ 12733 edi = POP32_VAL(esp); /* 0x24006435: pop edi */ 12734 esi = POP32_VAL(esp); /* 0x24006436: pop esi */ 12735 ebx = POP32_VAL(esp); /* 0x24006437: pop ebx */ 12736 MEM32(FS_BASE + (0)) = ecx; /* 0x24006438: mov dword ptr fs:[0], ecx */ 12737 esp = ebp; /* 0x2400643F: mov esp, ebp */ 12738 ebp = POP32_VAL(esp); /* 0x24006441: pop ebp */ 12739 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x24006442: ret 4 */ 12740 RECOMP_REGS_OUT(); 12741 } 12742 12743 void sub_24006450(void) { 12744 int _fpu_cmp = 0; 12745 uint32_t _cf = 0; 12746 int _df = 1; 12747 uint32_t _flag_k = FK_NONE; 12748 uint32_t _flag_a = 0, _flag_b = 0; 12749 uint32_t _itail_tgt = 0; 12750 RECOMP_REGS_LOCALS 12751 RECOMP_ENTER(0x24006450u); 12752 12753 L_24006450: 12754 PUSH32(esp, ebp); /* 0x24006450: push ebp */ 12755 ebp = esp; /* 0x24006451: mov ebp, esp */ 12756 PUSH32(esp, 0xFFFFFFFFu); /* 0x24006453: push -1 */ 12757 PUSH32(esp, 0x24009EF1u); /* 0x24006455: push 0x24009ef1 */ 12758 eax = MEM32(FS_BASE + (0)); /* 0x2400645A: mov eax, dword ptr fs:[0] */ 12759 PUSH32(esp, eax); /* 0x24006460: push eax */ 12760 MEM32(FS_BASE + (0)) = esp; /* 0x24006461: mov dword ptr fs:[0], esp */ 12761 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 12762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12763 esp = esp - 0x3Cu; /* 0x24006468: sub esp, 0x3c */ 12764 _flag_k = FK_CMP; 12765 eax = MEM32(ebp + 0xC); /* 0x2400646B: mov eax, dword ptr [ebp + 0xc] */ 12766 PUSH32(esp, ebx); /* 0x2400646E: push ebx */ 12767 PUSH32(esp, esi); /* 0x2400646F: push esi */ 12768 PUSH32(esp, edi); /* 0x24006470: push edi */ 12769 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12770 edi = 0; /* 0x24006471: xor edi, edi */ 12771 _cf = 0; 12772 _flag_k = FK_TEST; 12773 /* cmp eax, edi */ /* 0x24006473: cmp eax, edi */ 12774 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12776 _flag_k = FK_CMP; 12777 ebx = ecx; /* 0x24006475: mov ebx, ecx */ 12778 if (CMP_NE(_flag_a, _flag_b)) goto L_2400651B; /* 0x24006477: jne 0x2400651b */ 12779 L_2400647D: 12780 esi = MEM32(ebx + 0x2C); /* 0x2400647D: mov esi, dword ptr [ebx + 0x2c] */ 12781 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x24006480: mov al, byte ptr [ebp + 0xf] */ 12782 PUSH32(esp, edi); /* 0x24006483: push edi */ 12783 ecx = ebp + (-0x38); /* 0x24006484: lea ecx, [ebp - 0x38] */ 12784 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Cu); 12785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12786 esi = esi + 0x1Cu; /* 0x24006487: add esi, 0x1c */ 12787 _flag_k = FK_ADD; 12788 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(eax)); /* 0x2400648A: mov byte ptr [ebp - 0x38], al */ 12789 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x2400648D: call dword ptr [0x2400b020] */ 12790 RECOMP_FLAGS_IN(); 12791 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12792 ecx = ecx | 0xFFFFFFFFu; /* 0x24006493: or ecx, 0xffffffff */ 12793 _cf = 0; 12794 _flag_k = FK_TEST; 12795 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12796 eax = 0; /* 0x24006496: xor eax, eax */ 12797 _cf = 0; 12798 _flag_k = FK_TEST; 12799 edi = esi; /* 0x24006498: mov edi, esi */ 12800 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x2400649A: repne scasb al, byte ptr es:[edi] */ 12801 ecx = ~ecx; /* 0x2400649C: not ecx */ 12802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12803 ecx = ecx - 1; /* 0x2400649E: dec ecx */ 12804 _flag_k = FK_DEC; 12805 PUSH32(esp, ecx); /* 0x2400649F: push ecx */ 12806 PUSH32(esp, esi); /* 0x240064A0: push esi */ 12807 ecx = ebp + (-0x38); /* 0x240064A1: lea ecx, [ebp - 0x38] */ 12808 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x240064A4: call dword ptr [0x2400b05c] */ 12809 RECOMP_FLAGS_IN(); 12810 eax = MEM32(ebx + 0x2C); /* 0x240064AA: mov eax, dword ptr [ebx + 0x2c] */ 12811 esi = MEM32(0x2400B0B4); /* 0x240064AD: mov esi, dword ptr [0x2400b0b4] */ 12812 PUSH32(esp, 0xFu); /* 0x240064B3: push 0xf */ 12813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Cu); 12814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12815 eax = eax + 0x1Cu; /* 0x240064B5: add eax, 0x1c */ 12816 _flag_k = FK_ADD; 12817 PUSH32(esp, 0x2400E0B0u); /* 0x240064B8: push 0x2400e0b0 */ 12818 PUSH32(esp, eax); /* 0x240064BD: push eax */ 12819 MEM32(ebp + (-0x4)) = 0; /* 0x240064BE: mov dword ptr [ebp - 4], 0 */ 12820 RECOMP_ICALL(esi); /* 0x240064C5: call esi */ 12821 RECOMP_FLAGS_IN(); 12822 ecx = MEM32(ebp + 0x8); /* 0x240064C7: mov ecx, dword ptr [ebp + 8] */ 12823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12824 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12825 esp = esp + 0xCu; /* 0x240064CA: add esp, 0xc */ 12826 _flag_k = FK_ADD; 12827 PUSH32(esp, 0xFFFFFFFFu); /* 0x240064CD: push -1 */ 12828 PUSH32(esp, ecx); /* 0x240064CF: push ecx */ 12829 ecx = MEM32(ebx + 0x2C); /* 0x240064D0: mov ecx, dword ptr [ebx + 0x2c] */ 12830 RECOMP_ICALL(0x24003380u); /* 0x240064D3: call 0x24003380 */ /* not lifted */ 12831 RECOMP_FLAGS_IN(); 12832 eax = MEM32(ebp + (-0x34)); /* 0x240064D8: mov eax, dword ptr [ebp - 0x34] */ 12833 /* test eax, eax */ /* 0x240064DB: test eax, eax */ 12834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12835 _cf = 0; 12836 _flag_k = FK_TEST; 12837 if (TEST_NZ(_flag_a, _flag_b)) goto L_240064E4; /* 0x240064DD: jne 0x240064e4 */ 12838 L_240064DF: 12839 eax = MEM32(0x2400B01C); /* 0x240064DF: mov eax, dword ptr [0x2400b01c] */ 12840 L_240064E4: 12841 ebx = MEM32(ebx + 0x2C); /* 0x240064E4: mov ebx, dword ptr [ebx + 0x2c] */ 12842 PUSH32(esp, 0xFu); /* 0x240064E7: push 0xf */ 12843 PUSH32(esp, eax); /* 0x240064E9: push eax */ 12844 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1Cu); 12845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12846 ebx = ebx + 0x1Cu; /* 0x240064EA: add ebx, 0x1c */ 12847 _flag_k = FK_ADD; 12848 PUSH32(esp, ebx); /* 0x240064ED: push ebx */ 12849 RECOMP_ICALL(esi); /* 0x240064EE: call esi */ 12850 RECOMP_FLAGS_IN(); 12851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12853 esp = esp + 0xCu; /* 0x240064F0: add esp, 0xc */ 12854 _flag_k = FK_ADD; 12855 PUSH32(esp, 1); /* 0x240064F3: push 1 */ 12856 ecx = ebp + (-0x38); /* 0x240064F5: lea ecx, [ebp - 0x38] */ 12857 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x240064F8: mov dword ptr [ebp - 4], 0xffffffff */ 12858 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x240064FF: call dword ptr [0x2400b020] */ 12859 RECOMP_FLAGS_IN(); 12860 edi = POP32_VAL(esp); /* 0x24006505: pop edi */ 12861 esi = POP32_VAL(esp); /* 0x24006506: pop esi */ 12862 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 12863 eax = eax | 0xFFFFFFFFu; /* 0x24006507: or eax, 0xffffffff */ 12864 _cf = 0; 12865 _flag_k = FK_TEST; 12866 ebx = POP32_VAL(esp); /* 0x2400650A: pop ebx */ 12867 ecx = MEM32(ebp + (-0xC)); /* 0x2400650B: mov ecx, dword ptr [ebp - 0xc] */ 12868 MEM32(FS_BASE + (0)) = ecx; /* 0x2400650E: mov dword ptr fs:[0], ecx */ 12869 esp = ebp; /* 0x24006515: mov esp, ebp */ 12870 ebp = POP32_VAL(esp); /* 0x24006517: pop ebp */ 12871 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24006518: ret 8 */ 12872 L_2400651B: 12873 PUSH32(esp, eax); /* 0x2400651B: push eax */ 12874 ecx = ebx; /* 0x2400651C: mov ecx, ebx */ 12875 RECOMP_ICALL(0x24007A70u); /* 0x2400651E: call 0x24007a70 */ /* not lifted */ 12876 RECOMP_FLAGS_IN(); 12877 /* cmp eax, 0xFFFFFFFFu */ /* 0x24006523: cmp eax, -1 */ 12878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 12879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12880 _flag_k = FK_CMP; 12881 esi = MEM32(ebx + 0x2C); /* 0x24006526: mov esi, dword ptr [ebx + 0x2c] */ 12882 MEM32(ebp + (-0x10)) = eax; /* 0x24006529: mov dword ptr [ebp - 0x10], eax */ 12883 MEM32(ebp + (-0x14)) = esi; /* 0x2400652C: mov dword ptr [ebp - 0x14], esi */ 12884 if (CMP_NE(_flag_a, _flag_b)) goto L_240067CC; /* 0x2400652F: jne 0x240067cc */ 12885 L_24006535: 12886 PUSH32(esp, 0x58u); /* 0x24006535: push 0x58 */ 12887 RECOMP_ICALL(0x24009838u); /* 0x24006537: call 0x24009838 */ /* not lifted */ 12888 RECOMP_FLAGS_IN(); 12889 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12891 esp = esp + 4; /* 0x2400653C: add esp, 4 */ 12892 _flag_k = FK_ADD; 12893 MEM32(ebp + (-0x18)) = eax; /* 0x2400653F: mov dword ptr [ebp - 0x18], eax */ 12894 /* cmp eax, edi */ /* 0x24006542: cmp eax, edi */ 12895 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12897 _flag_k = FK_CMP; 12898 MEM32(ebp + (-0x4)) = 1; /* 0x24006544: mov dword ptr [ebp - 4], 1 */ 12899 if (CMP_EQ(_flag_a, _flag_b)) goto L_24006557; /* 0x2400654B: je 0x24006557 */ 12900 L_2400654D: 12901 PUSH32(esp, ebx); /* 0x2400654D: push ebx */ 12902 ecx = eax; /* 0x2400654E: mov ecx, eax */ 12903 RECOMP_ICALL(0x240017B0u); /* 0x24006550: call 0x240017b0 */ /* not lifted */ 12904 RECOMP_FLAGS_IN(); 12905 goto L_24006559; /* 0x24006555: jmp 0x24006559 */ 12906 L_24006557: 12907 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12908 eax = 0; /* 0x24006557: xor eax, eax */ 12909 _cf = 0; 12910 _flag_k = FK_TEST; 12911 L_24006559: 12912 edx = MEM32(ebx + 0x64); /* 0x24006559: mov edx, dword ptr [ebx + 0x64] */ 12913 MEM32(ebx + 0x2C) = eax; /* 0x2400655C: mov dword ptr [ebx + 0x2c], eax */ 12914 eax = MEM32(ebp + 0xC); /* 0x2400655F: mov eax, dword ptr [ebp + 0xc] */ 12915 PUSH32(esp, eax); /* 0x24006562: push eax */ 12916 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x24006563: mov dword ptr [ebp - 4], 0xffffffff */ 12917 MEM32(ebp + (-0x18)) = edx; /* 0x2400656A: mov dword ptr [ebp - 0x18], edx */ 12918 MEM32(ebx + 0x64) = edi; /* 0x2400656D: mov dword ptr [ebx + 0x64], edi */ 12919 RECOMP_ICALL(0x2400998Eu); /* 0x24006570: call 0x2400998e */ /* not lifted */ 12920 RECOMP_FLAGS_IN(); 12921 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12923 esp = esp + 4; /* 0x24006575: add esp, 4 */ 12924 _flag_k = FK_ADD; 12925 ecx = eax; /* 0x24006578: mov ecx, eax */ 12926 RECOMP_ICALL(MEM32(0x2400B0A8)); /* 0x2400657A: call dword ptr [0x2400b0a8] */ 12927 RECOMP_FLAGS_IN(); 12928 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x24006580: mov cl, byte ptr [ebp + 0xf] */ 12929 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(ecx)); /* 0x24006583: mov byte ptr [ebp - 0x28], cl */ 12930 PUSH32(esp, edi); /* 0x24006586: push edi */ 12931 ecx = ebp + (-0x28); /* 0x24006587: lea ecx, [ebp - 0x28] */ 12932 esi = eax; /* 0x2400658A: mov esi, eax */ 12933 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x2400658C: call dword ptr [0x2400b020] */ 12934 RECOMP_FLAGS_IN(); 12935 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 12936 ecx = ecx | 0xFFFFFFFFu; /* 0x24006592: or ecx, 0xffffffff */ 12937 _cf = 0; 12938 _flag_k = FK_TEST; 12939 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12940 eax = 0; /* 0x24006595: xor eax, eax */ 12941 _cf = 0; 12942 _flag_k = FK_TEST; 12943 edi = esi; /* 0x24006597: mov edi, esi */ 12944 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24006599: repne scasb al, byte ptr es:[edi] */ 12945 ecx = ~ecx; /* 0x2400659B: not ecx */ 12946 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12947 ecx = ecx - 1; /* 0x2400659D: dec ecx */ 12948 _flag_k = FK_DEC; 12949 PUSH32(esp, ecx); /* 0x2400659E: push ecx */ 12950 PUSH32(esp, esi); /* 0x2400659F: push esi */ 12951 ecx = ebp + (-0x28); /* 0x240065A0: lea ecx, [ebp - 0x28] */ 12952 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x240065A3: call dword ptr [0x2400b05c] */ 12953 RECOMP_FLAGS_IN(); 12954 eax = MEM32(ebp + (-0x24)); /* 0x240065A9: mov eax, dword ptr [ebp - 0x24] */ 12955 /* test eax, eax */ /* 0x240065AC: test eax, eax */ 12956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12957 _cf = 0; 12958 _flag_k = FK_TEST; 12959 MEM32(ebp + (-0x4)) = 2; /* 0x240065AE: mov dword ptr [ebp - 4], 2 */ 12960 if (TEST_NZ(_flag_a, _flag_b)) goto L_240065BC; /* 0x240065B5: jne 0x240065bc */ 12961 L_240065B7: 12962 eax = MEM32(0x2400B01C); /* 0x240065B7: mov eax, dword ptr [0x2400b01c] */ 12963 L_240065BC: 12964 esi = MEM32(0x2400B0A4); /* 0x240065BC: mov esi, dword ptr [0x2400b0a4] */ 12965 PUSH32(esp, 6); /* 0x240065C2: push 6 */ 12966 PUSH32(esp, 0x2400E150u); /* 0x240065C4: push 0x2400e150 */ 12967 PUSH32(esp, eax); /* 0x240065C9: push eax */ 12968 RECOMP_ICALL(esi); /* 0x240065CA: call esi */ 12969 RECOMP_FLAGS_IN(); 12970 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12971 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12972 esp = esp + 0xCu; /* 0x240065CC: add esp, 0xc */ 12973 _flag_k = FK_ADD; 12974 /* test eax, eax */ /* 0x240065CF: test eax, eax */ 12975 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12976 _cf = 0; 12977 _flag_k = FK_TEST; 12978 if (TEST_NZ(_flag_a, _flag_b)) goto L_24006631; /* 0x240065D1: jne 0x24006631 */ 12979 L_240065D3: 12980 esi = MEM32(ebp + (-0x24)); /* 0x240065D3: mov esi, dword ptr [ebp - 0x24] */ 12981 /* test esi, esi */ /* 0x240065D6: test esi, esi */ 12982 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 12983 _cf = 0; 12984 _flag_k = FK_TEST; 12985 if (TEST_NZ(_flag_a, _flag_b)) goto L_240065E0; /* 0x240065D8: jne 0x240065e0 */ 12986 L_240065DA: 12987 esi = MEM32(0x2400B01C); /* 0x240065DA: mov esi, dword ptr [0x2400b01c] */ 12988 L_240065E0: 12989 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x240065E0: mov dl, byte ptr [ebp + 0xf] */ 12990 PUSH32(esp, 0); /* 0x240065E3: push 0 */ 12991 ecx = ebp + (-0x48); /* 0x240065E5: lea ecx, [ebp - 0x48] */ 12992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(6); 12993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12994 esi = esi + 6; /* 0x240065E8: add esi, 6 */ 12995 _flag_k = FK_ADD; 12996 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(edx)); /* 0x240065EB: mov byte ptr [ebp - 0x48], dl */ 12997 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x240065EE: call dword ptr [0x2400b020] */ 12998 RECOMP_FLAGS_IN(); 12999 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 13000 ecx = ecx | 0xFFFFFFFFu; /* 0x240065F4: or ecx, 0xffffffff */ 13001 _cf = 0; 13002 _flag_k = FK_TEST; 13003 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13004 eax = 0; /* 0x240065F7: xor eax, eax */ 13005 _cf = 0; 13006 _flag_k = FK_TEST; 13007 edi = esi; /* 0x240065F9: mov edi, esi */ 13008 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x240065FB: repne scasb al, byte ptr es:[edi] */ 13009 ecx = ~ecx; /* 0x240065FD: not ecx */ 13010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13011 ecx = ecx - 1; /* 0x240065FF: dec ecx */ 13012 _flag_k = FK_DEC; 13013 PUSH32(esp, ecx); /* 0x24006600: push ecx */ 13014 PUSH32(esp, esi); /* 0x24006601: push esi */ 13015 ecx = ebp + (-0x48); /* 0x24006602: lea ecx, [ebp - 0x48] */ 13016 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x24006605: call dword ptr [0x2400b05c] */ 13017 RECOMP_FLAGS_IN(); 13018 eax = MEM32(0x2400B044); /* 0x2400660B: mov eax, dword ptr [0x2400b044] */ 13019 ecx = MEM32(eax); /* 0x24006610: mov ecx, dword ptr [eax] */ 13020 PUSH32(esp, ecx); /* 0x24006612: push ecx */ 13021 PUSH32(esp, 0); /* 0x24006613: push 0 */ 13022 edx = ebp + (-0x48); /* 0x24006615: lea edx, [ebp - 0x48] */ 13023 PUSH32(esp, edx); /* 0x24006618: push edx */ 13024 ecx = ebp + (-0x28); /* 0x24006619: lea ecx, [ebp - 0x28] */ 13025 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x2400661C: mov byte ptr [ebp - 4], 3 */ 13026 RECOMP_ICALL(MEM32(0x2400B060)); /* 0x24006620: call dword ptr [0x2400b060] */ 13027 RECOMP_FLAGS_IN(); 13028 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x24006626: mov byte ptr [ebp - 4], 2 */ 13029 PUSH32(esp, 1); /* 0x2400662A: push 1 */ 13030 ecx = ebp + (-0x48); /* 0x2400662C: lea ecx, [ebp - 0x48] */ 13031 goto L_240066AA; /* 0x2400662F: jmp 0x240066aa */ 13032 L_24006631: 13033 eax = MEM32(ebp + (-0x24)); /* 0x24006631: mov eax, dword ptr [ebp - 0x24] */ 13034 /* test eax, eax */ /* 0x24006634: test eax, eax */ 13035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13036 _cf = 0; 13037 _flag_k = FK_TEST; 13038 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400663D; /* 0x24006636: jne 0x2400663d */ 13039 L_24006638: 13040 eax = MEM32(0x2400B01C); /* 0x24006638: mov eax, dword ptr [0x2400b01c] */ 13041 L_2400663D: 13042 PUSH32(esp, 7); /* 0x2400663D: push 7 */ 13043 PUSH32(esp, 0x2400E148u); /* 0x2400663F: push 0x2400e148 */ 13044 PUSH32(esp, eax); /* 0x24006644: push eax */ 13045 RECOMP_ICALL(esi); /* 0x24006645: call esi */ 13046 RECOMP_FLAGS_IN(); 13047 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13048 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13049 esp = esp + 0xCu; /* 0x24006647: add esp, 0xc */ 13050 _flag_k = FK_ADD; 13051 /* test eax, eax */ /* 0x2400664A: test eax, eax */ 13052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13053 _cf = 0; 13054 _flag_k = FK_TEST; 13055 if (TEST_NZ(_flag_a, _flag_b)) goto L_240066B0; /* 0x2400664C: jne 0x240066b0 */ 13056 L_2400664E: 13057 eax = MEM32(ebp + (-0x24)); /* 0x2400664E: mov eax, dword ptr [ebp - 0x24] */ 13058 /* test eax, eax */ /* 0x24006651: test eax, eax */ 13059 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13060 _cf = 0; 13061 _flag_k = FK_TEST; 13062 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400665A; /* 0x24006653: jne 0x2400665a */ 13063 L_24006655: 13064 eax = MEM32(0x2400B01C); /* 0x24006655: mov eax, dword ptr [0x2400b01c] */ 13065 L_2400665A: 13066 esi = eax + 0x7; /* 0x2400665A: lea esi, [eax + 7] */ 13067 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x2400665D: mov al, byte ptr [ebp + 0xf] */ 13068 PUSH32(esp, 0); /* 0x24006660: push 0 */ 13069 ecx = ebp + (-0x48); /* 0x24006662: lea ecx, [ebp - 0x48] */ 13070 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(eax)); /* 0x24006665: mov byte ptr [ebp - 0x48], al */ 13071 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x24006668: call dword ptr [0x2400b020] */ 13072 RECOMP_FLAGS_IN(); 13073 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 13074 ecx = ecx | 0xFFFFFFFFu; /* 0x2400666E: or ecx, 0xffffffff */ 13075 _cf = 0; 13076 _flag_k = FK_TEST; 13077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13078 eax = 0; /* 0x24006671: xor eax, eax */ 13079 _cf = 0; 13080 _flag_k = FK_TEST; 13081 edi = esi; /* 0x24006673: mov edi, esi */ 13082 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24006675: repne scasb al, byte ptr es:[edi] */ 13083 ecx = ~ecx; /* 0x24006677: not ecx */ 13084 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13085 ecx = ecx - 1; /* 0x24006679: dec ecx */ 13086 _flag_k = FK_DEC; 13087 PUSH32(esp, ecx); /* 0x2400667A: push ecx */ 13088 PUSH32(esp, esi); /* 0x2400667B: push esi */ 13089 ecx = ebp + (-0x48); /* 0x2400667C: lea ecx, [ebp - 0x48] */ 13090 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x2400667F: call dword ptr [0x2400b05c] */ 13091 RECOMP_FLAGS_IN(); 13092 ecx = MEM32(0x2400B044); /* 0x24006685: mov ecx, dword ptr [0x2400b044] */ 13093 edx = MEM32(ecx); /* 0x2400668B: mov edx, dword ptr [ecx] */ 13094 PUSH32(esp, edx); /* 0x2400668D: push edx */ 13095 PUSH32(esp, 0); /* 0x2400668E: push 0 */ 13096 eax = ebp + (-0x48); /* 0x24006690: lea eax, [ebp - 0x48] */ 13097 PUSH32(esp, eax); /* 0x24006693: push eax */ 13098 ecx = ebp + (-0x28); /* 0x24006694: lea ecx, [ebp - 0x28] */ 13099 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x24006697: mov byte ptr [ebp - 4], 4 */ 13100 RECOMP_ICALL(MEM32(0x2400B060)); /* 0x2400669B: call dword ptr [0x2400b060] */ 13101 RECOMP_FLAGS_IN(); 13102 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x240066A1: mov byte ptr [ebp - 4], 2 */ 13103 PUSH32(esp, 1); /* 0x240066A5: push 1 */ 13104 ecx = ebp + (-0x48); /* 0x240066A7: lea ecx, [ebp - 0x48] */ 13105 L_240066AA: 13106 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x240066AA: call dword ptr [0x2400b020] */ 13107 RECOMP_FLAGS_IN(); 13108 L_240066B0: 13109 eax = MEM32(ebx + 0x2C); /* 0x240066B0: mov eax, dword ptr [ebx + 0x2c] */ 13110 PUSH32(esp, 0xFu); /* 0x240066B3: push 0xf */ 13111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Cu); 13112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13113 eax = eax + 0x1Cu; /* 0x240066B5: add eax, 0x1c */ 13114 _flag_k = FK_ADD; 13115 PUSH32(esp, 0x2400E0B0u); /* 0x240066B8: push 0x2400e0b0 */ 13116 PUSH32(esp, eax); /* 0x240066BD: push eax */ 13117 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x240066BE: call dword ptr [0x2400b0b4] */ 13118 RECOMP_FLAGS_IN(); 13119 eax = MEM32(ebp + (-0x24)); /* 0x240066C4: mov eax, dword ptr [ebp - 0x24] */ 13120 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13122 esp = esp + 0xCu; /* 0x240066C7: add esp, 0xc */ 13123 _flag_k = FK_ADD; 13124 /* test eax, eax */ /* 0x240066CA: test eax, eax */ 13125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13126 _cf = 0; 13127 _flag_k = FK_TEST; 13128 if (TEST_NZ(_flag_a, _flag_b)) goto L_240066D3; /* 0x240066CC: jne 0x240066d3 */ 13129 L_240066CE: 13130 eax = MEM32(0x2400B01C); /* 0x240066CE: mov eax, dword ptr [0x2400b01c] */ 13131 L_240066D3: 13132 PUSH32(esp, eax); /* 0x240066D3: push eax */ 13133 ecx = ebx; /* 0x240066D4: mov ecx, ebx */ 13134 RECOMP_ICALL(0x24006180u); /* 0x240066D6: call 0x24006180 */ /* not lifted */ 13135 RECOMP_FLAGS_IN(); 13136 ecx = MEM32(ebx + 0x2C); /* 0x240066DB: mov ecx, dword ptr [ebx + 0x2c] */ 13137 PUSH32(esp, eax); /* 0x240066DE: push eax */ 13138 PUSH32(esp, 0x2400E138u); /* 0x240066DF: push 0x2400e138 */ 13139 RECOMP_ICALL(0x24003360u); /* 0x240066E4: call 0x24003360 */ /* not lifted */ 13140 RECOMP_FLAGS_IN(); 13141 ecx = MEM32(ebx + 0x2C); /* 0x240066E9: mov ecx, dword ptr [ebx + 0x2c] */ 13142 esi = MEM32(ebp + 0xC); /* 0x240066EC: mov esi, dword ptr [ebp + 0xc] */ 13143 PUSH32(esp, ecx); /* 0x240066EF: push ecx */ 13144 PUSH32(esp, esi); /* 0x240066F0: push esi */ 13145 ecx = ebx; /* 0x240066F1: mov ecx, ebx */ 13146 RECOMP_ICALL(0x24007AD0u); /* 0x240066F3: call 0x24007ad0 */ /* not lifted */ 13147 RECOMP_FLAGS_IN(); 13148 edx = MEM32(esi); /* 0x240066F8: mov edx, dword ptr [esi] */ 13149 PUSH32(esp, ebx); /* 0x240066FA: push ebx */ 13150 ecx = esi; /* 0x240066FB: mov ecx, esi */ 13151 MEM32(ebp + (-0x10)) = eax; /* 0x240066FD: mov dword ptr [ebp - 0x10], eax */ 13152 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x24006700: call dword ptr [edx + 4] */ 13153 RECOMP_FLAGS_IN(); 13154 ecx = MEM32(ebp + (-0x14)); /* 0x24006703: mov ecx, dword ptr [ebp - 0x14] */ 13155 eax = MEM32(ebp + (-0x18)); /* 0x24006706: mov eax, dword ptr [ebp - 0x18] */ 13156 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x24006709: mov dl, byte ptr [ebp + 0xf] */ 13157 esi = ecx + 0x1C; /* 0x2400670C: lea esi, [ecx + 0x1c] */ 13158 PUSH32(esp, 0); /* 0x2400670F: push 0 */ 13159 ecx = ebp + (-0x38); /* 0x24006711: lea ecx, [ebp - 0x38] */ 13160 MEM32(ebx + 0x64) = eax; /* 0x24006714: mov dword ptr [ebx + 0x64], eax */ 13161 MEM8(ebp + (-0x38)) = (uint8_t)(LO8(edx)); /* 0x24006717: mov byte ptr [ebp - 0x38], dl */ 13162 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x2400671A: call dword ptr [0x2400b020] */ 13163 RECOMP_FLAGS_IN(); 13164 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 13165 ecx = ecx | 0xFFFFFFFFu; /* 0x24006720: or ecx, 0xffffffff */ 13166 _cf = 0; 13167 _flag_k = FK_TEST; 13168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13169 eax = 0; /* 0x24006723: xor eax, eax */ 13170 _cf = 0; 13171 _flag_k = FK_TEST; 13172 edi = esi; /* 0x24006725: mov edi, esi */ 13173 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x24006727: repne scasb al, byte ptr es:[edi] */ 13174 ecx = ~ecx; /* 0x24006729: not ecx */ 13175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13176 ecx = ecx - 1; /* 0x2400672B: dec ecx */ 13177 _flag_k = FK_DEC; 13178 edi = ecx; /* 0x2400672C: mov edi, ecx */ 13179 PUSH32(esp, 1); /* 0x2400672E: push 1 */ 13180 PUSH32(esp, edi); /* 0x24006730: push edi */ 13181 ecx = ebp + (-0x38); /* 0x24006731: lea ecx, [ebp - 0x38] */ 13182 MEM32(ebp + 0xC) = edi; /* 0x24006734: mov dword ptr [ebp + 0xc], edi */ 13183 RECOMP_ICALL(MEM32(0x2400B048)); /* 0x24006737: call dword ptr [0x2400b048] */ 13184 RECOMP_FLAGS_IN(); 13185 /* test LO8(eax), LO8(eax) */ /* 0x2400673D: test al, al */ 13186 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13187 _cf = 0; 13188 _flag_k = FK_NARROW(FK_TEST, 24); 13189 if (TEST_Z(_flag_a, _flag_b)) goto L_24006760; /* 0x2400673F: je 0x24006760 */ 13190 L_24006741: 13191 ecx = edi; /* 0x24006741: mov ecx, edi */ 13192 edi = MEM32(ebp + (-0x34)); /* 0x24006743: mov edi, dword ptr [ebp - 0x34] */ 13193 eax = ecx; /* 0x24006746: mov eax, ecx */ 13194 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x24006748: shr ecx, 2 */ 13195 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13196 ecx = ecx >> 2u; /* 0x24006748: shr ecx, 2 */ 13197 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x2400674B: 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; } 13198 ecx = eax; /* 0x2400674D: mov ecx, eax */ 13199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 13200 ecx = ecx & 3; /* 0x2400674F: and ecx, 3 */ 13201 _cf = 0; 13202 _flag_k = FK_TEST; 13203 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x24006752: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 13204 ecx = eax; /* 0x24006754: mov ecx, eax */ 13205 PUSH32(esp, ecx); /* 0x24006756: push ecx */ 13206 ecx = ebp + (-0x38); /* 0x24006757: lea ecx, [ebp - 0x38] */ 13207 RECOMP_ICALL(MEM32(0x2400B03C)); /* 0x2400675A: call dword ptr [0x2400b03c] */ 13208 RECOMP_FLAGS_IN(); 13209 L_24006760: 13210 edi = MEM32(ebp + (-0x14)); /* 0x24006760: mov edi, dword ptr [ebp - 0x14] */ 13211 PUSH32(esp, 0xFu); /* 0x24006763: push 0xf */ 13212 PUSH32(esp, 0x2400E0B0u); /* 0x24006765: push 0x2400e0b0 */ 13213 esi = edi + 0x1C; /* 0x2400676A: lea esi, [edi + 0x1c] */ 13214 PUSH32(esp, esi); /* 0x2400676D: push esi */ 13215 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x2400676E: mov byte ptr [ebp - 4], 5 */ 13216 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x24006772: call dword ptr [0x2400b0b4] */ 13217 RECOMP_FLAGS_IN(); 13218 edx = MEM32(ebp + (-0x10)); /* 0x24006778: mov edx, dword ptr [ebp - 0x10] */ 13219 eax = MEM32(ebp + 0x8); /* 0x2400677B: mov eax, dword ptr [ebp + 8] */ 13220 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13221 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13222 esp = esp + 0xCu; /* 0x2400677E: add esp, 0xc */ 13223 _flag_k = FK_ADD; 13224 PUSH32(esp, edx); /* 0x24006781: push edx */ 13225 PUSH32(esp, eax); /* 0x24006782: push eax */ 13226 ecx = edi; /* 0x24006783: mov ecx, edi */ 13227 RECOMP_ICALL(0x24003380u); /* 0x24006785: call 0x24003380 */ /* not lifted */ 13228 RECOMP_FLAGS_IN(); 13229 eax = MEM32(ebp + (-0x34)); /* 0x2400678A: mov eax, dword ptr [ebp - 0x34] */ 13230 /* test eax, eax */ /* 0x2400678D: test eax, eax */ 13231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13232 _cf = 0; 13233 _flag_k = FK_TEST; 13234 if (TEST_NZ(_flag_a, _flag_b)) goto L_24006796; /* 0x2400678F: jne 0x24006796 */ 13235 L_24006791: 13236 eax = MEM32(0x2400B01C); /* 0x24006791: mov eax, dword ptr [0x2400b01c] */ 13237 L_24006796: 13238 PUSH32(esp, 0xFu); /* 0x24006796: push 0xf */ 13239 PUSH32(esp, eax); /* 0x24006798: push eax */ 13240 PUSH32(esp, esi); /* 0x24006799: push esi */ 13241 RECOMP_ICALL(MEM32(0x2400B0B4)); /* 0x2400679A: call dword ptr [0x2400b0b4] */ 13242 RECOMP_FLAGS_IN(); 13243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13245 esp = esp + 0xCu; /* 0x240067A0: add esp, 0xc */ 13246 _flag_k = FK_ADD; 13247 PUSH32(esp, 1); /* 0x240067A3: push 1 */ 13248 ecx = ebp + (-0x38); /* 0x240067A5: lea ecx, [ebp - 0x38] */ 13249 MEM32(ebx + 0x2C) = edi; /* 0x240067A8: mov dword ptr [ebx + 0x2c], edi */ 13250 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x240067AB: mov byte ptr [ebp - 4], 2 */ 13251 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x240067AF: call dword ptr [0x2400b020] */ 13252 RECOMP_FLAGS_IN(); 13253 PUSH32(esp, 1); /* 0x240067B5: push 1 */ 13254 ecx = ebp + (-0x28); /* 0x240067B7: lea ecx, [ebp - 0x28] */ 13255 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x240067BA: mov dword ptr [ebp - 4], 0xffffffff */ 13256 RECOMP_ICALL(MEM32(0x2400B020)); /* 0x240067C1: call dword ptr [0x2400b020] */ 13257 RECOMP_FLAGS_IN(); 13258 goto L_24006856; /* 0x240067C7: jmp 0x24006856 */ 13259 L_240067CC: 13260 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x240067CC: mov cl, byte ptr [ebp + 0xf] */ 13261 MEM8(ebp + (-0x48)) = (uint8_t)(LO8(ecx)); /* 0x240067CF: mov byte ptr [ebp - 0x48], cl */ 13262 ebx = esi + 0x1C; /* 0x240067D2: lea ebx, [esi + 0x1c] */ 13263 MEM32(ebp + (-0x44)) = edi; /* 0x240067D5: mov dword ptr [ebp - 0x44], edi */ 13264 MEM32(ebp + (-0x40)) = edi; /* 0x240067D8: mov dword ptr [ebp - 0x40], edi */ 13265 MEM32(ebp + (-0x3C)) = edi; /* 0x240067DB: mov dword ptr [ebp - 0x3c], edi */ 13266 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13267 eax = 0; /* 0x240067DE: xor eax, eax */ 13268 _cf = 0; 13269 _flag_k = FK_TEST; 13270 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 13271 ecx = ecx | 0xFFFFFFFFu; /* 0x240067E0: or ecx, 0xffffffff */ 13272 _cf = 0; 13273 _flag_k = FK_TEST; 13274 edi = ebx; /* 0x240067E3: mov edi, ebx */ 13275 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x240067E5: repne scasb al, byte ptr es:[edi] */ 13276 ecx = ~ecx; /* 0x240067E7: not ecx */ 13277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13278 ecx = ecx - 1; /* 0x240067E9: dec ecx */ 13279 _flag_k = FK_DEC; 13280 PUSH32(esp, ecx); /* 0x240067EA: push ecx */ 13281 PUSH32(esp, ebx); /* 0x240067EB: push ebx */ 13282 ecx = ebp + (-0x48); /* 0x240067EC: lea ecx, [ebp - 0x48] */ 13283 RECOMP_ICALL(MEM32(0x2400B05C)); /* 0x240067EF: call dword ptr [0x2400b05c] */ 13284 RECOMP_FLAGS_IN(); 13285 edi = MEM32(0x2400B0B4); /* 0x240067F5: mov edi, dword ptr [0x2400b0b4] */ 13286 PUSH32(esp, 0xFu); /* 0x240067FB: push 0xf */ 13287 PUSH32(esp, 0x2400E0B0u); /* 0x240067FD: push 0x2400e0b0 */ 13288 PUSH32(esp, ebx); /* 0x24006802: push ebx */ 13289 MEM32(ebp + (-0x4)) = 6; /* 0x24006803: mov dword ptr [ebp - 4], 6 */ 13290 RECOMP_ICALL(edi); /* 0x2400680A: call edi */ 13291 RECOMP_FLAGS_IN(); 13292 edx = MEM32(ebp + (-0x10)); /* 0x2400680C: mov edx, dword ptr [ebp - 0x10] */ 13293 eax = MEM32(ebp + 0x8); /* 0x2400680F: mov eax, dword ptr [ebp + 8] */ 13294 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13296 esp = esp + 0xCu; /* 0x24006812: add esp, 0xc */ 13297 _flag_k = FK_ADD; 13298 PUSH32(esp, edx); /* 0x24006815: push edx */ 13299 PUSH32(esp, eax); /* 0x24006816: push eax */ 13300 ecx = esi; /* 0x24006817: mov ecx, esi */ 13301 RECOMP_ICALL(0x24003380u); /* 0x24006819: call 0x24003380 */ /* not lifted */ 13302 RECOMP_FLAGS_IN(); 13303 eax = MEM32(ebp + (-0x44)); /* 0x2400681E: mov eax, dword ptr [ebp - 0x44] */ 13304 /* test eax, eax */ /* 0x24006821: test eax, eax */ 13305 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13306 _cf = 0; 13307 _flag_k = FK_TEST; 13308 if (TEST_NZ(_flag_a, _flag_b)) goto L_2400682A; /* 0x24006823: jne 0x2400682a */ 13309 L_24006825: 13310 eax = MEM32(0x2400B01C); /* 0x24006825: mov eax, dword ptr [0x2400b01c] */ 13311 L_2400682A: 13312 PUSH32(esp, 0xFu); /* 0x2400682A: push 0xf */ 13313 PUSH32(esp, eax); /* 0x2400682C: push eax */ 13314 PUSH32(esp, ebx); /* 0x2400682D: push ebx */ 13315 RECOMP_ICALL(edi); /* 0x2400682E: call edi */ 13316 RECOMP_FLAGS_IN(); 13317 ecx = MEM32(ebp + (-0x44)); /* 0x24006830: mov ecx, dword ptr [ebp - 0x44] */ 13318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13320 esp = esp + 0xCu; /* 0x24006833: add esp, 0xc */ 13321 _flag_k = FK_ADD; 13322 /* test ecx, ecx */ /* 0x24006836: test ecx, ecx */ 13323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13324 _cf = 0; 13325 _flag_k = FK_TEST; 13326 if (TEST_Z(_flag_a, _flag_b)) goto L_24006856; /* 0x24006838: je 0x24006856 */ 13327 L_2400683A: 13328 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x2400683A: mov al, byte ptr [ecx - 1] */ 13329 /* test LO8(eax), LO8(eax) */ /* 0x2400683D: test al, al */ 13330 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13331 _cf = 0; 13332 _flag_k = FK_NARROW(FK_TEST, 24); 13333 if (TEST_Z(_flag_a, _flag_b)) goto L_2400684C; /* 0x2400683F: je 0x2400684c */ 13334 L_24006841: 13335 /* cmp LO8(eax), 0xFFu */ /* 0x24006841: cmp al, 0xff */ 13336 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 13337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13338 _flag_k = FK_NARROW(FK_CMP, 24); 13339 if (CMP_EQ(_flag_a, _flag_b)) goto L_2400684C; /* 0x24006843: je 0x2400684c */ 13340 L_24006845: 13341 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13342 SET_LO8(eax, LO8(eax) - 1); /* 0x24006845: dec al */ 13343 _flag_k = FK_NARROW(FK_DEC, 24); 13344 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x24006847: mov byte ptr [ecx - 1], al */ 13345 goto L_24006856; /* 0x2400684A: jmp 0x24006856 */ 13346 L_2400684C: 13347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13348 ecx = ecx - 1; /* 0x2400684C: dec ecx */ 13349 _flag_k = FK_DEC; 13350 PUSH32(esp, ecx); /* 0x2400684D: push ecx */ 13351 RECOMP_ICALL(0x240097F2u); /* 0x2400684E: call 0x240097f2 */ /* not lifted */ 13352 RECOMP_FLAGS_IN(); 13353 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13355 esp = esp + 4; /* 0x24006853: add esp, 4 */ 13356 _flag_k = FK_ADD; 13357 L_24006856: 13358 ecx = MEM32(ebp + (-0xC)); /* 0x24006856: mov ecx, dword ptr [ebp - 0xc] */ 13359 eax = MEM32(ebp + (-0x10)); /* 0x24006859: mov eax, dword ptr [ebp - 0x10] */ 13360 edi = POP32_VAL(esp); /* 0x2400685C: pop edi */ 13361 esi = POP32_VAL(esp); /* 0x2400685D: pop esi */ 13362 ebx = POP32_VAL(esp); /* 0x2400685E: pop ebx */ 13363 MEM32(FS_BASE + (0)) = ecx; /* 0x2400685F: mov dword ptr fs:[0], ecx */ 13364 esp = ebp; /* 0x24006866: mov esp, ebp */ 13365 ebp = POP32_VAL(esp); /* 0x24006868: pop ebp */ 13366 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x24006869: ret 8 */ 13367 RECOMP_REGS_OUT(); 13368 }