client/game/sr.dll/lifted-0000.c (358362B)
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_43001000(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(0x43001000u); 17 18 L_43001000: 19 eax = MEM32(0x43006728); /* 0x43001000: mov eax, dword ptr [0x43006728] */ 20 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001005: ret */ 21 RECOMP_REGS_OUT(); 22 } 23 24 void sub_43001010(void) { 25 int _fpu_cmp = 0; 26 uint32_t _cf = 0; 27 int _df = 1; 28 uint32_t _flag_k = FK_NONE; 29 uint32_t _flag_a = 0, _flag_b = 0; 30 uint32_t _itail_tgt = 0; 31 RECOMP_REGS_LOCALS 32 RECOMP_ENTER(0x43001010u); 33 34 L_43001010: 35 PUSH32(esp, ebp); /* 0x43001010: push ebp */ 36 ebp = esp; /* 0x43001011: mov ebp, esp */ 37 PUSH32(esp, 0xFFFFFFFFu); /* 0x43001013: push -1 */ 38 PUSH32(esp, 0x4300371Bu); /* 0x43001015: push 0x4300371b */ 39 eax = MEM32(FS_BASE + (0)); /* 0x4300101A: mov eax, dword ptr fs:[0] */ 40 PUSH32(esp, eax); /* 0x43001020: push eax */ 41 MEM32(FS_BASE + (0)) = esp; /* 0x43001021: mov dword ptr fs:[0], esp */ 42 PUSH32(esp, ecx); /* 0x43001028: push ecx */ 43 eax = MEM32(0x43006728); /* 0x43001029: mov eax, dword ptr [0x43006728] */ 44 /* test eax, eax */ /* 0x4300102E: test eax, eax */ 45 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 46 _cf = 0; 47 _flag_k = FK_TEST; 48 if (TEST_NZ(_flag_a, _flag_b)) goto L_4300106E; /* 0x43001030: jne 0x4300106e */ 49 L_43001032: 50 PUSH32(esp, 0x00180098u); /* 0x43001032: push 0x180098 */ 51 RECOMP_ICALL(0x43003506u); /* 0x43001037: call 0x43003506 */ /* not lifted */ 52 RECOMP_FLAGS_IN(); 53 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 54 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 55 esp = esp + 4; /* 0x4300103C: add esp, 4 */ 56 _flag_k = FK_ADD; 57 MEM32(ebp + (-0x10)) = eax; /* 0x4300103F: mov dword ptr [ebp - 0x10], eax */ 58 /* test eax, eax */ /* 0x43001042: test eax, eax */ 59 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 60 _cf = 0; 61 _flag_k = FK_TEST; 62 MEM32(ebp + (-0x4)) = 0; /* 0x43001044: mov dword ptr [ebp - 4], 0 */ 63 if (TEST_Z(_flag_a, _flag_b)) goto L_43001067; /* 0x4300104B: je 0x43001067 */ 64 L_4300104D: 65 ecx = eax; /* 0x4300104D: mov ecx, eax */ 66 RECOMP_ICALL(0x43001140u); /* 0x4300104F: call 0x43001140 */ /* not lifted */ 67 RECOMP_FLAGS_IN(); 68 MEM32(0x43006728) = eax; /* 0x43001054: mov dword ptr [0x43006728], eax */ 69 ecx = MEM32(ebp + (-0xC)); /* 0x43001059: mov ecx, dword ptr [ebp - 0xc] */ 70 MEM32(FS_BASE + (0)) = ecx; /* 0x4300105C: mov dword ptr fs:[0], ecx */ 71 esp = ebp; /* 0x43001063: mov esp, ebp */ 72 ebp = POP32_VAL(esp); /* 0x43001065: pop ebp */ 73 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001066: ret */ 74 L_43001067: 75 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 76 eax = 0; /* 0x43001067: xor eax, eax */ 77 _cf = 0; 78 _flag_k = FK_TEST; 79 MEM32(0x43006728) = eax; /* 0x43001069: mov dword ptr [0x43006728], eax */ 80 L_4300106E: 81 ecx = MEM32(ebp + (-0xC)); /* 0x4300106E: mov ecx, dword ptr [ebp - 0xc] */ 82 MEM32(FS_BASE + (0)) = ecx; /* 0x43001071: mov dword ptr fs:[0], ecx */ 83 esp = ebp; /* 0x43001078: mov esp, ebp */ 84 ebp = POP32_VAL(esp); /* 0x4300107A: pop ebp */ 85 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300107B: ret */ 86 RECOMP_REGS_OUT(); 87 } 88 89 void sub_43001080(void) { 90 int _fpu_cmp = 0; 91 uint32_t _cf = 0; 92 int _df = 1; 93 uint32_t _flag_k = FK_NONE; 94 uint32_t _flag_a = 0, _flag_b = 0; 95 uint32_t _itail_tgt = 0; 96 RECOMP_REGS_LOCALS 97 RECOMP_ENTER(0x43001080u); 98 99 L_43001080: 100 PUSH32(esp, esi); /* 0x43001080: push esi */ 101 esi = MEM32(0x43006728); /* 0x43001081: mov esi, dword ptr [0x43006728] */ 102 /* test esi, esi */ /* 0x43001087: test esi, esi */ 103 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 104 _cf = 0; 105 _flag_k = FK_TEST; 106 MEM32(0x43006728) = 0; /* 0x43001089: mov dword ptr [0x43006728], 0 */ 107 if (TEST_Z(_flag_a, _flag_b)) goto L_430010A5; /* 0x43001093: je 0x430010a5 */ 108 L_43001095: 109 ecx = esi; /* 0x43001095: mov ecx, esi */ 110 RECOMP_ICALL(0x43001210u); /* 0x43001097: call 0x43001210 */ /* not lifted */ 111 RECOMP_FLAGS_IN(); 112 PUSH32(esp, esi); /* 0x4300109C: push esi */ 113 RECOMP_ICALL(0x43003500u); /* 0x4300109D: call 0x43003500 */ /* not lifted */ 114 RECOMP_FLAGS_IN(); 115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 117 esp = esp + 4; /* 0x430010A2: add esp, 4 */ 118 _flag_k = FK_ADD; 119 L_430010A5: 120 esi = POP32_VAL(esp); /* 0x430010A5: pop esi */ 121 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430010A6: ret */ 122 RECOMP_REGS_OUT(); 123 } 124 125 void sub_430010B0(void) { 126 int _fpu_cmp = 0; 127 uint32_t _cf = 0; 128 int _df = 1; 129 uint32_t _flag_k = FK_NONE; 130 uint32_t _flag_a = 0, _flag_b = 0; 131 uint32_t _itail_tgt = 0; 132 RECOMP_REGS_LOCALS 133 RECOMP_ENTER(0x430010B0u); 134 135 L_430010B0: 136 PUSH32(esp, ebp); /* 0x430010B0: push ebp */ 137 ebp = esp; /* 0x430010B1: mov ebp, esp */ 138 PUSH32(esp, 0xFFFFFFFFu); /* 0x430010B3: push -1 */ 139 PUSH32(esp, 0x43003738u); /* 0x430010B5: push 0x43003738 */ 140 eax = MEM32(FS_BASE + (0)); /* 0x430010BA: mov eax, dword ptr fs:[0] */ 141 PUSH32(esp, eax); /* 0x430010C0: push eax */ 142 MEM32(FS_BASE + (0)) = esp; /* 0x430010C1: mov dword ptr fs:[0], esp */ 143 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 145 esp = esp - 8; /* 0x430010C8: sub esp, 8 */ 146 _flag_k = FK_CMP; 147 PUSH32(esp, ebx); /* 0x430010CB: push ebx */ 148 PUSH32(esp, esi); /* 0x430010CC: push esi */ 149 esi = ecx; /* 0x430010CD: mov esi, ecx */ 150 PUSH32(esp, edi); /* 0x430010CF: push edi */ 151 PUSH32(esp, 0); /* 0x430010D0: push 0 */ 152 edi = esi + 0x180050; /* 0x430010D2: lea edi, [esi + 0x180050] */ 153 ecx = edi; /* 0x430010D8: mov ecx, edi */ 154 MEM32(ebp + (-0x14)) = edi; /* 0x430010DA: mov dword ptr [ebp - 0x14], edi */ 155 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x430010DD: call dword ptr [0x4300407c] */ 156 RECOMP_FLAGS_IN(); 157 ebx = eax; /* 0x430010E3: mov ebx, eax */ 158 MEM32(ebp + (-0x10)) = ebx; /* 0x430010E5: mov dword ptr [ebp - 0x10], ebx */ 159 ecx = esi + 0x20; /* 0x430010E8: lea ecx, [esi + 0x20] */ 160 MEM32(ebp + (-0x4)) = 0; /* 0x430010EB: mov dword ptr [ebp - 4], 0 */ 161 RECOMP_ICALL(0x43002630u); /* 0x430010F2: call 0x43002630 */ /* not lifted */ 162 RECOMP_FLAGS_IN(); 163 ecx = esi + 0xC0020; /* 0x430010F7: lea ecx, [esi + 0xc0020] */ 164 RECOMP_ICALL(0x43002630u); /* 0x430010FD: call 0x43002630 */ /* not lifted */ 165 RECOMP_FLAGS_IN(); 166 RECOMP_ICALL(0x43002AB0u); /* 0x43001102: call 0x43002ab0 */ /* not lifted */ 167 RECOMP_FLAGS_IN(); 168 /* test eax, eax */ /* 0x43001107: test eax, eax */ 169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 170 _cf = 0; 171 _flag_k = FK_TEST; 172 if (TEST_Z(_flag_a, _flag_b)) goto L_43001117; /* 0x43001109: je 0x43001117 */ 173 L_4300110B: 174 RECOMP_ICALL(0x43002AB0u); /* 0x4300110B: call 0x43002ab0 */ /* not lifted */ 175 RECOMP_FLAGS_IN(); 176 ecx = eax; /* 0x43001110: mov ecx, eax */ 177 RECOMP_ICALL(0x43002C20u); /* 0x43001112: call 0x43002c20 */ /* not lifted */ 178 RECOMP_FLAGS_IN(); 179 L_43001117: 180 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43001117: cmp ebx, -1 */ 181 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 183 _flag_k = FK_CMP; 184 MEM8(esi + 0x1C) = (uint8_t)(1); /* 0x4300111A: mov byte ptr [esi + 0x1c], 1 */ 185 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4300111E: mov dword ptr [ebp - 4], 0xffffffff */ 186 if (CMP_EQ(_flag_a, _flag_b)) goto L_4300112F; /* 0x43001125: je 0x4300112f */ 187 L_43001127: 188 ecx = edi; /* 0x43001127: mov ecx, edi */ 189 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43001129: call dword ptr [0x43004088] */ 190 RECOMP_FLAGS_IN(); 191 L_4300112F: 192 ecx = MEM32(ebp + (-0xC)); /* 0x4300112F: mov ecx, dword ptr [ebp - 0xc] */ 193 edi = POP32_VAL(esp); /* 0x43001132: pop edi */ 194 esi = POP32_VAL(esp); /* 0x43001133: pop esi */ 195 ebx = POP32_VAL(esp); /* 0x43001134: pop ebx */ 196 MEM32(FS_BASE + (0)) = ecx; /* 0x43001135: mov dword ptr fs:[0], ecx */ 197 esp = ebp; /* 0x4300113C: mov esp, ebp */ 198 ebp = POP32_VAL(esp); /* 0x4300113E: pop ebp */ 199 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300113F: ret */ 200 RECOMP_REGS_OUT(); 201 } 202 203 void sub_43001140(void) { 204 int _fpu_cmp = 0; 205 uint32_t _cf = 0; 206 int _df = 1; 207 uint32_t _flag_k = FK_NONE; 208 uint32_t _flag_a = 0, _flag_b = 0; 209 uint32_t _itail_tgt = 0; 210 RECOMP_REGS_LOCALS 211 RECOMP_ENTER(0x43001140u); 212 213 L_43001140: 214 PUSH32(esp, ebp); /* 0x43001140: push ebp */ 215 ebp = esp; /* 0x43001141: mov ebp, esp */ 216 PUSH32(esp, 0xFFFFFFFFu); /* 0x43001143: push -1 */ 217 PUSH32(esp, 0x43003793u); /* 0x43001145: push 0x43003793 */ 218 eax = MEM32(FS_BASE + (0)); /* 0x4300114A: mov eax, dword ptr fs:[0] */ 219 PUSH32(esp, eax); /* 0x43001150: push eax */ 220 MEM32(FS_BASE + (0)) = esp; /* 0x43001151: mov dword ptr fs:[0], esp */ 221 PUSH32(esp, ecx); /* 0x43001158: push ecx */ 222 PUSH32(esp, ebx); /* 0x43001159: push ebx */ 223 PUSH32(esp, esi); /* 0x4300115A: push esi */ 224 esi = ecx; /* 0x4300115B: mov esi, ecx */ 225 PUSH32(esp, edi); /* 0x4300115D: push edi */ 226 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 227 ebx = 0; /* 0x4300115E: xor ebx, ebx */ 228 _cf = 0; 229 _flag_k = FK_TEST; 230 MEM32(ebp + (-0x10)) = esi; /* 0x43001160: mov dword ptr [ebp - 0x10], esi */ 231 edi = esi + 0x20; /* 0x43001163: lea edi, [esi + 0x20] */ 232 MEM8(esi) = (uint8_t)(LO8(ebx)); /* 0x43001166: mov byte ptr [esi], bl */ 233 ecx = edi; /* 0x43001168: mov ecx, edi */ 234 MEM8(esi + 0x1) = (uint8_t)(LO8(ebx)); /* 0x4300116A: mov byte ptr [esi + 1], bl */ 235 MEM8(esi + 0x2) = (uint8_t)(LO8(ebx)); /* 0x4300116D: mov byte ptr [esi + 2], bl */ 236 MEM8(esi + 0x3) = (uint8_t)(LO8(ebx)); /* 0x43001170: mov byte ptr [esi + 3], bl */ 237 MEM8(esi + 0x4) = (uint8_t)(LO8(ebx)); /* 0x43001173: mov byte ptr [esi + 4], bl */ 238 MEM32(esi + 0x8) = ebx; /* 0x43001176: mov dword ptr [esi + 8], ebx */ 239 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x43001179: mov byte ptr [esi + 0xc], bl */ 240 MEM32(esi + 0x10) = ebx; /* 0x4300117C: mov dword ptr [esi + 0x10], ebx */ 241 MEM32(esi + 0x14) = ebx; /* 0x4300117F: mov dword ptr [esi + 0x14], ebx */ 242 MEM32(esi + 0x18) = 0x000F4240u; /* 0x43001182: mov dword ptr [esi + 0x18], 0xf4240 */ 243 MEM8(esi + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x43001189: mov byte ptr [esi + 0x1c], bl */ 244 RECOMP_ICALL(0x43002510u); /* 0x4300118C: call 0x43002510 */ /* not lifted */ 245 RECOMP_FLAGS_IN(); 246 ecx = esi + 0xC0020; /* 0x43001191: lea ecx, [esi + 0xc0020] */ 247 MEM32(ebp + (-0x4)) = ebx; /* 0x43001197: mov dword ptr [ebp - 4], ebx */ 248 RECOMP_ICALL(0x43002510u); /* 0x4300119A: call 0x43002510 */ /* not lifted */ 249 RECOMP_FLAGS_IN(); 250 ecx = esi + 0x180020; /* 0x4300119F: lea ecx, [esi + 0x180020] */ 251 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x430011A5: mov byte ptr [ebp - 4], 1 */ 252 RECOMP_ICALL(0x43002650u); /* 0x430011A9: call 0x43002650 */ /* not lifted */ 253 RECOMP_FLAGS_IN(); 254 ecx = esi + 0x180030; /* 0x430011AE: lea ecx, [esi + 0x180030] */ 255 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x430011B4: mov byte ptr [ebp - 4], 2 */ 256 RECOMP_ICALL(0x43002760u); /* 0x430011B8: call 0x43002760 */ /* not lifted */ 257 RECOMP_FLAGS_IN(); 258 MEM32(esi + 0x180040) = edi; /* 0x430011BD: mov dword ptr [esi + 0x180040], edi */ 259 MEM32(esi + 0x180044) = ebx; /* 0x430011C3: mov dword ptr [esi + 0x180044], ebx */ 260 MEM32(esi + 0x180048) = ebx; /* 0x430011C9: mov dword ptr [esi + 0x180048], ebx */ 261 MEM32(esi + 0x18004C) = ebx; /* 0x430011CF: mov dword ptr [esi + 0x18004c], ebx */ 262 PUSH32(esp, ebx); /* 0x430011D5: push ebx */ 263 PUSH32(esp, ebx); /* 0x430011D6: push ebx */ 264 ecx = esi + 0x180050; /* 0x430011D7: lea ecx, [esi + 0x180050] */ 265 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x430011DD: mov byte ptr [ebp - 4], 4 */ 266 RECOMP_ICALL(MEM32(0x43004084)); /* 0x430011E1: call dword ptr [0x43004084] */ 267 RECOMP_FLAGS_IN(); 268 PUSH32(esp, 0x4300604Cu); /* 0x430011E7: push 0x4300604c */ 269 RECOMP_ICALL(MEM32(0x43004030)); /* 0x430011EC: call dword ptr [0x43004030] */ 270 RECOMP_FLAGS_IN(); 271 ecx = MEM32(ebp + (-0xC)); /* 0x430011F2: mov ecx, dword ptr [ebp - 0xc] */ 272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 274 esp = esp + 4; /* 0x430011F5: add esp, 4 */ 275 _flag_k = FK_ADD; 276 eax = esi; /* 0x430011F8: mov eax, esi */ 277 MEM32(FS_BASE + (0)) = ecx; /* 0x430011FA: mov dword ptr fs:[0], ecx */ 278 edi = POP32_VAL(esp); /* 0x43001201: pop edi */ 279 esi = POP32_VAL(esp); /* 0x43001202: pop esi */ 280 ebx = POP32_VAL(esp); /* 0x43001203: pop ebx */ 281 esp = ebp; /* 0x43001204: mov esp, ebp */ 282 ebp = POP32_VAL(esp); /* 0x43001206: pop ebp */ 283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001207: ret */ 284 RECOMP_REGS_OUT(); 285 } 286 287 void sub_43001210(void) { 288 int _fpu_cmp = 0; 289 uint32_t _cf = 0; 290 int _df = 1; 291 uint32_t _flag_k = FK_NONE; 292 uint32_t _flag_a = 0, _flag_b = 0; 293 uint32_t _itail_tgt = 0; 294 RECOMP_REGS_LOCALS 295 RECOMP_ENTER(0x43001210u); 296 297 L_43001210: 298 PUSH32(esp, ebp); /* 0x43001210: push ebp */ 299 ebp = esp; /* 0x43001211: mov ebp, esp */ 300 PUSH32(esp, 0xFFFFFFFFu); /* 0x43001213: push -1 */ 301 PUSH32(esp, 0x430037F2u); /* 0x43001215: push 0x430037f2 */ 302 eax = MEM32(FS_BASE + (0)); /* 0x4300121A: mov eax, dword ptr fs:[0] */ 303 PUSH32(esp, eax); /* 0x43001220: push eax */ 304 MEM32(FS_BASE + (0)) = esp; /* 0x43001221: mov dword ptr fs:[0], esp */ 305 PUSH32(esp, ecx); /* 0x43001228: push ecx */ 306 PUSH32(esp, esi); /* 0x43001229: push esi */ 307 esi = ecx; /* 0x4300122A: mov esi, ecx */ 308 MEM32(ebp + (-0x10)) = esi; /* 0x4300122C: mov dword ptr [ebp - 0x10], esi */ 309 PUSH32(esp, 0x43006070u); /* 0x4300122F: push 0x43006070 */ 310 MEM32(ebp + (-0x4)) = 5; /* 0x43001234: mov dword ptr [ebp - 4], 5 */ 311 RECOMP_ICALL(MEM32(0x43004030)); /* 0x4300123B: call dword ptr [0x43004030] */ 312 RECOMP_FLAGS_IN(); 313 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 314 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 315 esp = esp + 4; /* 0x43001241: add esp, 4 */ 316 _flag_k = FK_ADD; 317 ecx = esi; /* 0x43001244: mov ecx, esi */ 318 PUSH32(esp, 0); /* 0x43001246: push 0 */ 319 RECOMP_ICALL(0x430021C0u); /* 0x43001248: call 0x430021c0 */ /* not lifted */ 320 RECOMP_FLAGS_IN(); 321 ecx = esi + 0x180050; /* 0x4300124D: lea ecx, [esi + 0x180050] */ 322 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x43001253: mov byte ptr [ebp - 4], 4 */ 323 RECOMP_ICALL(MEM32(0x43004080)); /* 0x43001257: call dword ptr [0x43004080] */ 324 RECOMP_FLAGS_IN(); 325 ecx = esi + 0x180030; /* 0x4300125D: lea ecx, [esi + 0x180030] */ 326 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x43001263: mov byte ptr [ebp - 4], 2 */ 327 RECOMP_ICALL(0x43002780u); /* 0x43001267: call 0x43002780 */ /* not lifted */ 328 RECOMP_FLAGS_IN(); 329 ecx = esi + 0x180020; /* 0x4300126C: lea ecx, [esi + 0x180020] */ 330 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x43001272: mov byte ptr [ebp - 4], 1 */ 331 RECOMP_ICALL(0x43002680u); /* 0x43001276: call 0x43002680 */ /* not lifted */ 332 RECOMP_FLAGS_IN(); 333 ecx = esi + 0xC0020; /* 0x4300127B: lea ecx, [esi + 0xc0020] */ 334 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x43001281: mov byte ptr [ebp - 4], 0 */ 335 RECOMP_ICALL(0x43002560u); /* 0x43001285: call 0x43002560 */ /* not lifted */ 336 RECOMP_FLAGS_IN(); 337 ecx = esi + 0x20; /* 0x4300128A: lea ecx, [esi + 0x20] */ 338 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4300128D: mov dword ptr [ebp - 4], 0xffffffff */ 339 RECOMP_ICALL(0x43002560u); /* 0x43001294: call 0x43002560 */ /* not lifted */ 340 RECOMP_FLAGS_IN(); 341 ecx = MEM32(ebp + (-0xC)); /* 0x43001299: mov ecx, dword ptr [ebp - 0xc] */ 342 esi = POP32_VAL(esp); /* 0x4300129C: pop esi */ 343 MEM32(FS_BASE + (0)) = ecx; /* 0x4300129D: mov dword ptr fs:[0], ecx */ 344 esp = ebp; /* 0x430012A4: mov esp, ebp */ 345 ebp = POP32_VAL(esp); /* 0x430012A6: pop ebp */ 346 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430012A7: ret */ 347 RECOMP_REGS_OUT(); 348 } 349 350 void sub_430012B0(void) { 351 int _fpu_cmp = 0; 352 uint32_t _cf = 0; 353 int _df = 1; 354 uint32_t _flag_k = FK_NONE; 355 uint32_t _flag_a = 0, _flag_b = 0; 356 uint32_t _itail_tgt = 0; 357 RECOMP_REGS_LOCALS 358 RECOMP_ENTER(0x430012B0u); 359 360 L_430012B0: 361 PUSH32(esp, ebp); /* 0x430012B0: push ebp */ 362 ebp = esp; /* 0x430012B1: mov ebp, esp */ 363 PUSH32(esp, edi); /* 0x430012B3: push edi */ 364 edi = ecx; /* 0x430012B4: mov edi, ecx */ 365 /* cmp MEM8(edi), 0 */ /* 0x430012B6: cmp byte ptr [edi], 0 */ 366 _flag_a = (uint32_t)(MEM8(edi)) << 24; _flag_b = (uint32_t)(0) << 24; 367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 368 _flag_k = FK_NARROW(FK_CMP, 24); 369 if (CMP_EQ(_flag_a, _flag_b)) goto L_430012E7; /* 0x430012B9: je 0x430012e7 */ 370 L_430012BB: 371 eax = MEM32(ebp + 0x8); /* 0x430012BB: mov eax, dword ptr [ebp + 8] */ 372 PUSH32(esp, esi); /* 0x430012BE: push esi */ 373 PUSH32(esp, 0x43006098u); /* 0x430012BF: push 0x43006098 */ 374 PUSH32(esp, eax); /* 0x430012C4: push eax */ 375 RECOMP_ICALL(MEM32(0x43004038)); /* 0x430012C5: call dword ptr [0x43004038] */ 376 RECOMP_FLAGS_IN(); 377 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 379 esp = esp + 8; /* 0x430012CB: add esp, 8 */ 380 _flag_k = FK_ADD; 381 esi = eax; /* 0x430012CE: mov esi, eax */ 382 ecx = edi + 0x180020; /* 0x430012D0: lea ecx, [edi + 0x180020] */ 383 PUSH32(esp, esi); /* 0x430012D6: push esi */ 384 RECOMP_ICALL(0x43002700u); /* 0x430012D7: call 0x43002700 */ /* not lifted */ 385 RECOMP_FLAGS_IN(); 386 PUSH32(esp, esi); /* 0x430012DC: push esi */ 387 RECOMP_ICALL(MEM32(0x43004034)); /* 0x430012DD: call dword ptr [0x43004034] */ 388 RECOMP_FLAGS_IN(); 389 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 391 esp = esp + 4; /* 0x430012E3: add esp, 4 */ 392 _flag_k = FK_ADD; 393 esi = POP32_VAL(esp); /* 0x430012E6: pop esi */ 394 L_430012E7: 395 edi = POP32_VAL(esp); /* 0x430012E7: pop edi */ 396 ebp = POP32_VAL(esp); /* 0x430012E8: pop ebp */ 397 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430012E9: ret 4 */ 398 RECOMP_REGS_OUT(); 399 } 400 401 void sub_430012F0(void) { 402 int _fpu_cmp = 0; 403 uint32_t _cf = 0; 404 int _df = 1; 405 uint32_t _flag_k = FK_NONE; 406 uint32_t _flag_a = 0, _flag_b = 0; 407 uint32_t _itail_tgt = 0; 408 RECOMP_REGS_LOCALS 409 RECOMP_ENTER(0x430012F0u); 410 411 L_430012F0: 412 PUSH32(esp, ebp); /* 0x430012F0: push ebp */ 413 L_430012F1: 414 ebp = esp; /* 0x430012F1: mov ebp, esp */ 415 L_430012F3: 416 PUSH32(esp, 0xFFFFFFFFu); /* 0x430012F3: push -1 */ 417 L_430012F5: 418 PUSH32(esp, 0x43003808u); /* 0x430012F5: push 0x43003808 */ 419 L_430012FA: 420 eax = MEM32(FS_BASE + (0)); /* 0x430012FA: mov eax, dword ptr fs:[0] */ 421 L_43001300: 422 PUSH32(esp, eax); /* 0x43001300: push eax */ 423 L_43001301: 424 MEM32(FS_BASE + (0)) = esp; /* 0x43001301: mov dword ptr fs:[0], esp */ 425 L_43001308: 426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 428 esp = esp - 0x18u; /* 0x43001308: sub esp, 0x18 */ 429 _flag_k = FK_CMP; 430 L_4300130B: 431 PUSH32(esp, ebx); /* 0x4300130B: push ebx */ 432 L_4300130C: 433 PUSH32(esp, esi); /* 0x4300130C: push esi */ 434 L_4300130D: 435 esi = ecx; /* 0x4300130D: mov esi, ecx */ 436 L_4300130F: 437 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 438 ebx = 0; /* 0x4300130F: xor ebx, ebx */ 439 _cf = 0; 440 _flag_k = FK_TEST; 441 L_43001311: 442 PUSH32(esp, edi); /* 0x43001311: push edi */ 443 L_43001312: 444 PUSH32(esp, ebx); /* 0x43001312: push ebx */ 445 L_43001313: 446 ecx = esi + 0x180050; /* 0x43001313: lea ecx, [esi + 0x180050] */ 447 L_43001319: 448 MEM32(ebp + (-0x14)) = ecx; /* 0x43001319: mov dword ptr [ebp - 0x14], ecx */ 449 L_4300131C: 450 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x4300131C: call dword ptr [0x4300407c] */ 451 RECOMP_FLAGS_IN(); 452 L_43001322: 453 MEM32(ebp + (-0x10)) = eax; /* 0x43001322: mov dword ptr [ebp - 0x10], eax */ 454 L_43001325: 455 edi = MEM32(ebp + 0x8); /* 0x43001325: mov edi, dword ptr [ebp + 8] */ 456 L_43001328: 457 MEM32(ebp + (-0x4)) = ebx; /* 0x43001328: mov dword ptr [ebp - 4], ebx */ 458 L_4300132B: 459 /* cmp edi, ebx */ /* 0x4300132B: cmp edi, ebx */ 460 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 462 _flag_k = FK_CMP; 463 L_4300132D: 464 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001335; /* 0x4300132D: jne 0x43001335 */ 465 L_4300132F: 466 { _itail_tgt = (uint32_t)(MEM32(0x4300403C)); goto _ljump; } 467 L_43001335: 468 PUSH32(esp, edi); /* 0x43001335: push edi */ 469 L_43001336: 470 ecx = esi; /* 0x43001336: mov ecx, esi */ 471 L_43001338: 472 RECOMP_ICALL(0x43001C60u); /* 0x43001338: call 0x43001c60 */ /* not lifted */ 473 RECOMP_FLAGS_IN(); 474 L_4300133D: 475 eax = MEM32(ebp + 0xC); /* 0x4300133D: mov eax, dword ptr [ebp + 0xc] */ 476 L_43001340: 477 ecx = ebp + (-0x24); /* 0x43001340: lea ecx, [ebp - 0x24] */ 478 L_43001343: 479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 480 eax = eax & 0x3FFFFFFFu; /* 0x43001343: and eax, 0x3fffffff */ 481 _cf = 0; 482 _flag_k = FK_TEST; 483 L_43001348: 484 PUSH32(esp, ecx); /* 0x43001348: push ecx */ 485 L_43001349: 486 PUSH32(esp, edi); /* 0x43001349: push edi */ 487 L_4300134A: 488 ecx = esi + 0x20; /* 0x4300134A: lea ecx, [esi + 0x20] */ 489 L_4300134D: 490 MEM32(ebp + (-0x24)) = edi; /* 0x4300134D: mov dword ptr [ebp - 0x24], edi */ 491 L_43001350: 492 MEM32(ebp + (-0x20)) = eax; /* 0x43001350: mov dword ptr [ebp - 0x20], eax */ 493 L_43001353: 494 MEM32(ebp + (-0x1C)) = ebx; /* 0x43001353: mov dword ptr [ebp - 0x1c], ebx */ 495 L_43001356: 496 MEM32(ebp + (-0x18)) = ebx; /* 0x43001356: mov dword ptr [ebp - 0x18], ebx */ 497 L_43001359: 498 RECOMP_ICALL(0x43002590u); /* 0x43001359: call 0x43002590 */ /* not lifted */ 499 RECOMP_FLAGS_IN(); 500 L_4300135E: 501 PUSH32(esp, edi); /* 0x4300135E: push edi */ 502 L_4300135F: 503 ecx = esi; /* 0x4300135F: mov ecx, esi */ 504 L_43001361: 505 RECOMP_ICALL(0x43001C60u); /* 0x43001361: call 0x43001c60 */ /* not lifted */ 506 RECOMP_FLAGS_IN(); 507 L_43001366: 508 ebx = eax; /* 0x43001366: mov ebx, eax */ 509 L_43001368: 510 RECOMP_ICALL(0x43002AB0u); /* 0x43001368: call 0x43002ab0 */ /* not lifted */ 511 RECOMP_FLAGS_IN(); 512 L_4300136D: 513 /* test eax, eax */ /* 0x4300136D: test eax, eax */ 514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 515 _cf = 0; 516 _flag_k = FK_TEST; 517 L_4300136F: 518 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4300137E; /* 0x4300136F: je 0x4300137e */ 519 L_43001371: 520 PUSH32(esp, ebx); /* 0x43001371: push ebx */ 521 L_43001372: 522 RECOMP_ICALL(0x43002AB0u); /* 0x43001372: call 0x43002ab0 */ /* not lifted */ 523 RECOMP_FLAGS_IN(); 524 L_43001377: 525 ecx = eax; /* 0x43001377: mov ecx, eax */ 526 L_43001379: 527 RECOMP_ICALL(0x43002D40u); /* 0x43001379: call 0x43002d40 */ /* not lifted */ 528 RECOMP_FLAGS_IN(); 529 L_4300137E: 530 /* cmp MEM8(esi), 0 */ /* 0x4300137E: cmp byte ptr [esi], 0 */ 531 _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0) << 24; 532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 533 _flag_k = FK_NARROW(FK_CMP, 24); 534 L_43001381: 535 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001390; /* 0x43001381: je 0x43001390 */ 536 L_43001383: 537 PUSH32(esp, ebx); /* 0x43001383: push ebx */ 538 L_43001384: 539 PUSH32(esp, edi); /* 0x43001384: push edi */ 540 L_43001385: 541 ecx = esi + 0x180020; /* 0x43001385: lea ecx, [esi + 0x180020] */ 542 L_4300138B: 543 RECOMP_ICALL(0x430026A0u); /* 0x4300138B: call 0x430026a0 */ /* not lifted */ 544 RECOMP_FLAGS_IN(); 545 L_43001390: 546 SET_LO8(eax, MEM8(esi + 0x3)); /* 0x43001390: mov al, byte ptr [esi + 3] */ 547 L_43001393: 548 /* test LO8(eax), LO8(eax) */ /* 0x43001393: test al, al */ 549 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 550 _cf = 0; 551 _flag_k = FK_NARROW(FK_TEST, 24); 552 L_43001395: 553 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430013A6; /* 0x43001395: je 0x430013a6 */ 554 L_43001397: 555 PUSH32(esp, ebx); /* 0x43001397: push ebx */ 556 L_43001398: 557 PUSH32(esp, edi); /* 0x43001398: push edi */ 558 L_43001399: 559 PUSH32(esp, 0); /* 0x43001399: push 0 */ 560 L_4300139B: 561 ecx = esi + 0x180030; /* 0x4300139B: lea ecx, [esi + 0x180030] */ 562 L_430013A1: 563 RECOMP_ICALL(0x43002800u); /* 0x430013A1: call 0x43002800 */ /* not lifted */ 564 RECOMP_FLAGS_IN(); 565 L_430013A6: 566 ecx = MEM32(ebp + (-0x10)); /* 0x430013A6: mov ecx, dword ptr [ebp - 0x10] */ 567 L_430013A9: 568 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 569 eax = eax | 0xFFFFFFFFu; /* 0x430013A9: or eax, 0xffffffff */ 570 _cf = 0; 571 _flag_k = FK_TEST; 572 L_430013AC: 573 /* cmp ecx, eax */ /* 0x430013AC: cmp ecx, eax */ 574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 576 _flag_k = FK_CMP; 577 L_430013AE: 578 MEM32(ebp + (-0x4)) = eax; /* 0x430013AE: mov dword ptr [ebp - 4], eax */ 579 L_430013B1: 580 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430013BC; /* 0x430013B1: je 0x430013bc */ 581 L_430013B3: 582 ecx = MEM32(ebp + (-0x14)); /* 0x430013B3: mov ecx, dword ptr [ebp - 0x14] */ 583 L_430013B6: 584 RECOMP_ICALL(MEM32(0x43004088)); /* 0x430013B6: call dword ptr [0x43004088] */ 585 RECOMP_FLAGS_IN(); 586 L_430013BC: 587 ecx = MEM32(ebp + (-0xC)); /* 0x430013BC: mov ecx, dword ptr [ebp - 0xc] */ 588 L_430013BF: 589 edi = POP32_VAL(esp); /* 0x430013BF: pop edi */ 590 L_430013C0: 591 esi = POP32_VAL(esp); /* 0x430013C0: pop esi */ 592 L_430013C1: 593 ebx = POP32_VAL(esp); /* 0x430013C1: pop ebx */ 594 L_430013C2: 595 MEM32(FS_BASE + (0)) = ecx; /* 0x430013C2: mov dword ptr fs:[0], ecx */ 596 L_430013C9: 597 esp = ebp; /* 0x430013C9: mov esp, ebp */ 598 L_430013CB: 599 ebp = POP32_VAL(esp); /* 0x430013CB: pop ebp */ 600 L_430013CC: 601 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x430013CC: ret 8 */ 602 _ljump: 603 switch (_itail_tgt) { 604 case 0x430012F0u: goto L_430012F0; 605 case 0x430012F1u: goto L_430012F1; 606 case 0x430012F3u: goto L_430012F3; 607 case 0x430012F5u: goto L_430012F5; 608 case 0x430012FAu: goto L_430012FA; 609 case 0x43001300u: goto L_43001300; 610 case 0x43001301u: goto L_43001301; 611 case 0x43001308u: goto L_43001308; 612 case 0x4300130Bu: goto L_4300130B; 613 case 0x4300130Cu: goto L_4300130C; 614 case 0x4300130Du: goto L_4300130D; 615 case 0x4300130Fu: goto L_4300130F; 616 case 0x43001311u: goto L_43001311; 617 case 0x43001312u: goto L_43001312; 618 case 0x43001313u: goto L_43001313; 619 case 0x43001319u: goto L_43001319; 620 case 0x4300131Cu: goto L_4300131C; 621 case 0x43001322u: goto L_43001322; 622 case 0x43001325u: goto L_43001325; 623 case 0x43001328u: goto L_43001328; 624 case 0x4300132Bu: goto L_4300132B; 625 case 0x4300132Du: goto L_4300132D; 626 case 0x4300132Fu: goto L_4300132F; 627 case 0x43001335u: goto L_43001335; 628 case 0x43001336u: goto L_43001336; 629 case 0x43001338u: goto L_43001338; 630 case 0x4300133Du: goto L_4300133D; 631 case 0x43001340u: goto L_43001340; 632 case 0x43001343u: goto L_43001343; 633 case 0x43001348u: goto L_43001348; 634 case 0x43001349u: goto L_43001349; 635 case 0x4300134Au: goto L_4300134A; 636 case 0x4300134Du: goto L_4300134D; 637 case 0x43001350u: goto L_43001350; 638 case 0x43001353u: goto L_43001353; 639 case 0x43001356u: goto L_43001356; 640 case 0x43001359u: goto L_43001359; 641 case 0x4300135Eu: goto L_4300135E; 642 case 0x4300135Fu: goto L_4300135F; 643 case 0x43001361u: goto L_43001361; 644 case 0x43001366u: goto L_43001366; 645 case 0x43001368u: goto L_43001368; 646 case 0x4300136Du: goto L_4300136D; 647 case 0x4300136Fu: goto L_4300136F; 648 case 0x43001371u: goto L_43001371; 649 case 0x43001372u: goto L_43001372; 650 case 0x43001377u: goto L_43001377; 651 case 0x43001379u: goto L_43001379; 652 case 0x4300137Eu: goto L_4300137E; 653 case 0x43001381u: goto L_43001381; 654 case 0x43001383u: goto L_43001383; 655 case 0x43001384u: goto L_43001384; 656 case 0x43001385u: goto L_43001385; 657 case 0x4300138Bu: goto L_4300138B; 658 case 0x43001390u: goto L_43001390; 659 case 0x43001393u: goto L_43001393; 660 case 0x43001395u: goto L_43001395; 661 case 0x43001397u: goto L_43001397; 662 case 0x43001398u: goto L_43001398; 663 case 0x43001399u: goto L_43001399; 664 case 0x4300139Bu: goto L_4300139B; 665 case 0x430013A1u: goto L_430013A1; 666 case 0x430013A6u: goto L_430013A6; 667 case 0x430013A9u: goto L_430013A9; 668 case 0x430013ACu: goto L_430013AC; 669 case 0x430013AEu: goto L_430013AE; 670 case 0x430013B1u: goto L_430013B1; 671 case 0x430013B3u: goto L_430013B3; 672 case 0x430013B6u: goto L_430013B6; 673 case 0x430013BCu: goto L_430013BC; 674 case 0x430013BFu: goto L_430013BF; 675 case 0x430013C0u: goto L_430013C0; 676 case 0x430013C1u: goto L_430013C1; 677 case 0x430013C2u: goto L_430013C2; 678 case 0x430013C9u: goto L_430013C9; 679 case 0x430013CBu: goto L_430013CB; 680 case 0x430013CCu: goto L_430013CC; 681 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 682 } 683 RECOMP_REGS_OUT(); 684 } 685 686 void sub_430013D0(void) { 687 int _fpu_cmp = 0; 688 uint32_t _cf = 0; 689 int _df = 1; 690 uint32_t _flag_k = FK_NONE; 691 uint32_t _flag_a = 0, _flag_b = 0; 692 uint32_t _itail_tgt = 0; 693 RECOMP_REGS_LOCALS 694 RECOMP_ENTER(0x430013D0u); 695 696 L_430013D0: 697 PUSH32(esp, ebp); /* 0x430013D0: push ebp */ 698 L_430013D1: 699 ebp = esp; /* 0x430013D1: mov ebp, esp */ 700 L_430013D3: 701 PUSH32(esp, 0xFFFFFFFFu); /* 0x430013D3: push -1 */ 702 L_430013D5: 703 PUSH32(esp, 0x43003828u); /* 0x430013D5: push 0x43003828 */ 704 L_430013DA: 705 eax = MEM32(FS_BASE + (0)); /* 0x430013DA: mov eax, dword ptr fs:[0] */ 706 L_430013E0: 707 PUSH32(esp, eax); /* 0x430013E0: push eax */ 708 L_430013E1: 709 MEM32(FS_BASE + (0)) = esp; /* 0x430013E1: mov dword ptr fs:[0], esp */ 710 L_430013E8: 711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x33Cu); 712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 713 esp = esp - 0x33Cu; /* 0x430013E8: sub esp, 0x33c */ 714 _flag_k = FK_CMP; 715 L_430013EE: 716 PUSH32(esp, ebx); /* 0x430013EE: push ebx */ 717 L_430013EF: 718 PUSH32(esp, esi); /* 0x430013EF: push esi */ 719 L_430013F0: 720 esi = ecx; /* 0x430013F0: mov esi, ecx */ 721 L_430013F2: 722 PUSH32(esp, edi); /* 0x430013F2: push edi */ 723 L_430013F3: 724 PUSH32(esp, 0); /* 0x430013F3: push 0 */ 725 L_430013F5: 726 ecx = esi + 0x180050; /* 0x430013F5: lea ecx, [esi + 0x180050] */ 727 L_430013FB: 728 MEM32(ebp + (-0x18)) = ecx; /* 0x430013FB: mov dword ptr [ebp - 0x18], ecx */ 729 L_430013FE: 730 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x430013FE: call dword ptr [0x4300407c] */ 731 RECOMP_FLAGS_IN(); 732 L_43001404: 733 MEM32(ebp + (-0x14)) = eax; /* 0x43001404: mov dword ptr [ebp - 0x14], eax */ 734 L_43001407: 735 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x43001407: mov al, byte ptr [esi + 1] */ 736 L_4300140A: 737 MEM32(ebp + (-0x4)) = 0; /* 0x4300140A: mov dword ptr [ebp - 4], 0 */ 738 L_43001411: 739 /* test LO8(eax), LO8(eax) */ /* 0x43001411: test al, al */ 740 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 741 _cf = 0; 742 _flag_k = FK_NARROW(FK_TEST, 24); 743 L_43001413: 744 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4300141C; /* 0x43001413: je 0x4300141c */ 745 L_43001415: 746 ecx = esi; /* 0x43001415: mov ecx, esi */ 747 L_43001417: 748 RECOMP_ICALL(0x430017B0u); /* 0x43001417: call 0x430017b0 */ /* not lifted */ 749 RECOMP_FLAGS_IN(); 750 L_4300141C: 751 eax = MEM32(ebp + 0x10); /* 0x4300141C: mov eax, dword ptr [ebp + 0x10] */ 752 L_4300141F: 753 /* test eax, eax */ /* 0x4300141F: test eax, eax */ 754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 755 _cf = 0; 756 _flag_k = FK_TEST; 757 L_43001421: 758 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4300142A; /* 0x43001421: je 0x4300142a */ 759 L_43001423: 760 _flag_a = (uint32_t)((MEM32(eax + 0x4) | 0x80000000u)); _flag_b = (uint32_t)((MEM32(eax + 0x4) | 0x80000000u)); 761 MEM32(eax + 0x4) = MEM32(eax + 0x4) | 0x80000000u; /* 0x43001423: or dword ptr [eax + 4], 0x80000000 */ 762 _cf = 0; 763 _flag_k = FK_TEST; 764 L_4300142A: 765 ebx = MEM32(ebp + 0x8); /* 0x4300142A: mov ebx, dword ptr [ebp + 8] */ 766 L_4300142D: 767 ecx = esi; /* 0x4300142D: mov ecx, esi */ 768 L_4300142F: 769 PUSH32(esp, ebx); /* 0x4300142F: push ebx */ 770 L_43001430: 771 RECOMP_ICALL(0x43001C60u); /* 0x43001430: call 0x43001c60 */ /* not lifted */ 772 RECOMP_FLAGS_IN(); 773 L_43001435: 774 edi = eax; /* 0x43001435: mov edi, eax */ 775 L_43001437: 776 PUSH32(esp, ebx); /* 0x43001437: push ebx */ 777 L_43001438: 778 ecx = esi; /* 0x43001438: mov ecx, esi */ 779 L_4300143A: 780 MEM32(ebp + 0x8) = edi; /* 0x4300143A: mov dword ptr [ebp + 8], edi */ 781 L_4300143D: 782 RECOMP_ICALL(0x43001C80u); /* 0x4300143D: call 0x43001c80 */ /* not lifted */ 783 RECOMP_FLAGS_IN(); 784 L_43001442: 785 ecx = eax; /* 0x43001442: mov ecx, eax */ 786 L_43001444: 787 /* test edi, edi */ /* 0x43001444: test edi, edi */ 788 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 789 _cf = 0; 790 _flag_k = FK_TEST; 791 L_43001446: 792 MEM32(ebp + (-0x10)) = ecx; /* 0x43001446: mov dword ptr [ebp - 0x10], ecx */ 793 L_43001449: 794 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4300147E; /* 0x43001449: jne 0x4300147e */ 795 L_4300144B: 796 /* test ecx, ecx */ /* 0x4300144B: test ecx, ecx */ 797 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 798 _cf = 0; 799 _flag_k = FK_TEST; 800 L_4300144D: 801 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_430016CB; /* 0x4300144D: jne 0x430016cb */ 802 L_43001453: 803 ecx = MEM32(ebp + (-0x14)); /* 0x43001453: mov ecx, dword ptr [ebp - 0x14] */ 804 L_43001456: 805 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 806 eax = eax | 0xFFFFFFFFu; /* 0x43001456: or eax, 0xffffffff */ 807 _cf = 0; 808 _flag_k = FK_TEST; 809 L_43001459: 810 /* cmp ecx, eax */ /* 0x43001459: cmp ecx, eax */ 811 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 813 _flag_k = FK_CMP; 814 L_4300145B: 815 MEM32(ebp + (-0x4)) = eax; /* 0x4300145B: mov dword ptr [ebp - 4], eax */ 816 L_4300145E: 817 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001469; /* 0x4300145E: je 0x43001469 */ 818 L_43001460: 819 ecx = MEM32(ebp + (-0x18)); /* 0x43001460: mov ecx, dword ptr [ebp - 0x18] */ 820 L_43001463: 821 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43001463: call dword ptr [0x43004088] */ 822 RECOMP_FLAGS_IN(); 823 L_43001469: 824 edi = POP32_VAL(esp); /* 0x43001469: pop edi */ 825 L_4300146A: 826 esi = POP32_VAL(esp); /* 0x4300146A: pop esi */ 827 L_4300146B: 828 SET_LO8(eax, 1); /* 0x4300146B: mov al, 1 */ 829 L_4300146D: 830 ebx = POP32_VAL(esp); /* 0x4300146D: pop ebx */ 831 L_4300146E: 832 ecx = MEM32(ebp + (-0xC)); /* 0x4300146E: mov ecx, dword ptr [ebp - 0xc] */ 833 L_43001471: 834 MEM32(FS_BASE + (0)) = ecx; /* 0x43001471: mov dword ptr fs:[0], ecx */ 835 L_43001478: 836 esp = ebp; /* 0x43001478: mov esp, ebp */ 837 L_4300147A: 838 ebp = POP32_VAL(esp); /* 0x4300147A: pop ebp */ 839 L_4300147B: 840 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4300147B: ret 0xc */ 841 L_4300147E: 842 eax = MEM32(ebp + 0x10); /* 0x4300147E: mov eax, dword ptr [ebp + 0x10] */ 843 L_43001481: 844 /* test eax, eax */ /* 0x43001481: test eax, eax */ 845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 846 _cf = 0; 847 _flag_k = FK_TEST; 848 L_43001483: 849 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430014A0; /* 0x43001483: je 0x430014a0 */ 850 L_43001485: 851 ecx = edi; /* 0x43001485: mov ecx, edi */ 852 L_43001487: 853 edx = MEM32(ecx); /* 0x43001487: mov edx, dword ptr [ecx] */ 854 L_43001489: 855 MEM32(eax) = edx; /* 0x43001489: mov dword ptr [eax], edx */ 856 L_4300148B: 857 edx = MEM32(ecx + 0x4); /* 0x4300148B: mov edx, dword ptr [ecx + 4] */ 858 L_4300148E: 859 MEM32(eax + 0x4) = edx; /* 0x4300148E: mov dword ptr [eax + 4], edx */ 860 L_43001491: 861 edx = MEM32(ecx + 0x8); /* 0x43001491: mov edx, dword ptr [ecx + 8] */ 862 L_43001494: 863 MEM32(eax + 0x8) = edx; /* 0x43001494: mov dword ptr [eax + 8], edx */ 864 L_43001497: 865 ecx = MEM32(ecx + 0xC); /* 0x43001497: mov ecx, dword ptr [ecx + 0xc] */ 866 L_4300149A: 867 MEM32(eax + 0xC) = ecx; /* 0x4300149A: mov dword ptr [eax + 0xc], ecx */ 868 L_4300149D: 869 ecx = MEM32(ebp + (-0x10)); /* 0x4300149D: mov ecx, dword ptr [ebp - 0x10] */ 870 L_430014A0: 871 eax = MEM32(edi + 0x4); /* 0x430014A0: mov eax, dword ptr [edi + 4] */ 872 L_430014A3: 873 edx = eax; /* 0x430014A3: mov edx, eax */ 874 L_430014A5: 875 if (31u) _cf = (((edx) >> 30) & 1u); /* 0x430014A5: shr edx, 0x1f */ 876 if (31u) { _flag_a = recomp_flags_pack((edx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 877 edx = edx >> 31u; /* 0x430014A5: shr edx, 0x1f */ 878 L_430014A8: 879 SET_LO8(edx, ~LO8(edx)); /* 0x430014A8: not dl */ 880 L_430014AA: 881 /* test LO8(edx), 1 */ /* 0x430014AA: test dl, 1 */ 882 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 883 _cf = 0; 884 _flag_k = FK_NARROW(FK_TEST, 24); 885 L_430014AD: 886 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430016C3; /* 0x430014AD: je 0x430016c3 */ 887 L_430014B3: 888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 889 eax = eax & 0x3FFFFFFFu; /* 0x430014B3: and eax, 0x3fffffff */ 890 _cf = 0; 891 _flag_k = FK_TEST; 892 L_430014B8: 893 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 894 edi = 0; /* 0x430014B8: xor edi, edi */ 895 _cf = 0; 896 _flag_k = FK_TEST; 897 L_430014BA: 898 MEM32(ebp + (-0x10)) = eax; /* 0x430014BA: mov dword ptr [ebp - 0x10], eax */ 899 L_430014BD: 900 RECOMP_ICALL(0x43002AB0u); /* 0x430014BD: call 0x43002ab0 */ /* not lifted */ 901 RECOMP_FLAGS_IN(); 902 L_430014C2: 903 /* test eax, eax */ /* 0x430014C2: test eax, eax */ 904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 905 _cf = 0; 906 _flag_k = FK_TEST; 907 L_430014C4: 908 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430014DA; /* 0x430014C4: je 0x430014da */ 909 L_430014C6: 910 eax = MEM32(ebp + 0x8); /* 0x430014C6: mov eax, dword ptr [ebp + 8] */ 911 L_430014C9: 912 PUSH32(esp, edi); /* 0x430014C9: push edi */ 913 L_430014CA: 914 PUSH32(esp, edi); /* 0x430014CA: push edi */ 915 L_430014CB: 916 PUSH32(esp, eax); /* 0x430014CB: push eax */ 917 L_430014CC: 918 RECOMP_ICALL(0x43002AB0u); /* 0x430014CC: call 0x43002ab0 */ /* not lifted */ 919 RECOMP_FLAGS_IN(); 920 L_430014D1: 921 ecx = eax; /* 0x430014D1: mov ecx, eax */ 922 L_430014D3: 923 RECOMP_ICALL(0x43002F20u); /* 0x430014D3: call 0x43002f20 */ /* not lifted */ 924 RECOMP_FLAGS_IN(); 925 L_430014D8: 926 edi = eax; /* 0x430014D8: mov edi, eax */ 927 L_430014DA: 928 ecx = MEM32(ebp + (-0x10)); /* 0x430014DA: mov ecx, dword ptr [ebp - 0x10] */ 929 L_430014DD: 930 SET_LO8(eax, MEM8(esi + 0x2)); /* 0x430014DD: mov al, byte ptr [esi + 2] */ 931 L_430014E0: 932 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3FFFFFFFu); 933 ecx = ecx & 0x3FFFFFFFu; /* 0x430014E0: and ecx, 0x3fffffff */ 934 _cf = 0; 935 _flag_k = FK_TEST; 936 L_430014E6: 937 MEM32(ebp + (-0x28)) = ebx; /* 0x430014E6: mov dword ptr [ebp - 0x28], ebx */ 938 L_430014E9: 939 /* test LO8(eax), LO8(eax) */ /* 0x430014E9: test al, al */ 940 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 941 _cf = 0; 942 _flag_k = FK_NARROW(FK_TEST, 24); 943 L_430014EB: 944 MEM32(ebp + (-0x24)) = ecx; /* 0x430014EB: mov dword ptr [ebp - 0x24], ecx */ 945 L_430014EE: 946 MEM32(ebp + (-0x1C)) = 0; /* 0x430014EE: mov dword ptr [ebp - 0x1c], 0 */ 947 L_430014F5: 948 MEM32(ebp + (-0x20)) = edi; /* 0x430014F5: mov dword ptr [ebp - 0x20], edi */ 949 L_430014F8: 950 MEM8(ebp + 0x13) = (uint8_t)(1); /* 0x430014F8: mov byte ptr [ebp + 0x13], 1 */ 951 L_430014FC: 952 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001515; /* 0x430014FC: je 0x43001515 */ 953 L_430014FE: 954 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x430014FE: mov al, byte ptr [ebp + 0xc] */ 955 L_43001501: 956 /* test LO8(eax), LO8(eax) */ /* 0x43001501: test al, al */ 957 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 958 _cf = 0; 959 _flag_k = FK_NARROW(FK_TEST, 24); 960 L_43001503: 961 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001515; /* 0x43001503: jne 0x43001515 */ 962 L_43001505: 963 edx = ebp + (-0x28); /* 0x43001505: lea edx, [ebp - 0x28] */ 964 L_43001508: 965 ecx = esi + 0xC0020; /* 0x43001508: lea ecx, [esi + 0xc0020] */ 966 L_4300150E: 967 PUSH32(esp, edx); /* 0x4300150E: push edx */ 968 L_4300150F: 969 PUSH32(esp, ebx); /* 0x4300150F: push ebx */ 970 L_43001510: 971 RECOMP_ICALL(0x43002590u); /* 0x43001510: call 0x43002590 */ /* not lifted */ 972 RECOMP_FLAGS_IN(); 973 L_43001515: 974 SET_LO8(eax, MEM8(esi + 0x3)); /* 0x43001515: mov al, byte ptr [esi + 3] */ 975 L_43001518: 976 /* test LO8(eax), LO8(eax) */ /* 0x43001518: test al, al */ 977 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 978 _cf = 0; 979 _flag_k = FK_NARROW(FK_TEST, 24); 980 L_4300151A: 981 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4300152E; /* 0x4300151A: je 0x4300152e */ 982 L_4300151C: 983 eax = ebp + (-0x28); /* 0x4300151C: lea eax, [ebp - 0x28] */ 984 L_4300151F: 985 ecx = esi + 0x180030; /* 0x4300151F: lea ecx, [esi + 0x180030] */ 986 L_43001525: 987 PUSH32(esp, eax); /* 0x43001525: push eax */ 988 L_43001526: 989 PUSH32(esp, ebx); /* 0x43001526: push ebx */ 990 L_43001527: 991 PUSH32(esp, 1); /* 0x43001527: push 1 */ 992 L_43001529: 993 RECOMP_ICALL(0x43002800u); /* 0x43001529: call 0x43002800 */ /* not lifted */ 994 RECOMP_FLAGS_IN(); 995 L_4300152E: 996 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x4300152E: mov al, byte ptr [esi + 4] */ 997 L_43001531: 998 /* test LO8(eax), LO8(eax) */ /* 0x43001531: test al, al */ 999 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1000 _cf = 0; 1001 _flag_k = FK_NARROW(FK_TEST, 24); 1002 L_43001533: 1003 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001554; /* 0x43001533: je 0x43001554 */ 1004 L_43001535: 1005 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x43001535: mov al, byte ptr [ebp + 0xc] */ 1006 L_43001538: 1007 /* test LO8(eax), LO8(eax) */ /* 0x43001538: test al, al */ 1008 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1009 _cf = 0; 1010 _flag_k = FK_NARROW(FK_TEST, 24); 1011 L_4300153A: 1012 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001554; /* 0x4300153A: jne 0x43001554 */ 1013 L_4300153C: 1014 ecx = MEM32(ebp + (-0x10)); /* 0x4300153C: mov ecx, dword ptr [ebp - 0x10] */ 1015 L_4300153F: 1016 eax = 0xDDDDDDDDu; /* 0x4300153F: mov eax, 0xdddddddd */ 1017 L_43001544: 1018 edx = ecx; /* 0x43001544: mov edx, ecx */ 1019 L_43001546: 1020 edi = ebx; /* 0x43001546: mov edi, ebx */ 1021 L_43001548: 1022 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x43001548: shr ecx, 2 */ 1023 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1024 ecx = ecx >> 2u; /* 0x43001548: shr ecx, 2 */ 1025 L_4300154B: 1026 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4300154B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 1027 L_4300154D: 1028 ecx = edx; /* 0x4300154D: mov ecx, edx */ 1029 L_4300154F: 1030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1031 ecx = ecx & 3; /* 0x4300154F: and ecx, 3 */ 1032 _cf = 0; 1033 _flag_k = FK_TEST; 1034 L_43001552: 1035 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x43001552: rep stosb byte ptr es:[edi], al */ if (_df > 0) { memset((void*)ADDR(edi), LO8(eax), _n); edi += _b; } else { memset((void*)ADDR(edi - _b + 1u), LO8(eax), _n); edi -= _b; } ecx = 0; } 1036 L_43001554: 1037 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x43001554: mov al, byte ptr [esi + 1] */ 1038 L_43001557: 1039 /* test LO8(eax), LO8(eax) */ /* 0x43001557: test al, al */ 1040 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1041 _cf = 0; 1042 _flag_k = FK_NARROW(FK_TEST, 24); 1043 L_43001559: 1044 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001653; /* 0x43001559: je 0x43001653 */ 1045 L_4300155F: 1046 eax = MEM32(ebp + 0x8); /* 0x4300155F: mov eax, dword ptr [ebp + 8] */ 1047 L_43001562: 1048 PUSH32(esp, ebx); /* 0x43001562: push ebx */ 1049 L_43001563: 1050 edx = MEM32(eax + 0x4); /* 0x43001563: mov edx, dword ptr [eax + 4] */ 1051 L_43001566: 1052 _flag_a = (uint32_t)((edx | 0x80000000u)); _flag_b = (uint32_t)((edx | 0x80000000u)); 1053 edx = edx | 0x80000000u; /* 0x43001566: or edx, 0x80000000 */ 1054 _cf = 0; 1055 _flag_k = FK_TEST; 1056 L_4300156C: 1057 MEM32(eax + 0x4) = edx; /* 0x4300156C: mov dword ptr [eax + 4], edx */ 1058 L_4300156F: 1059 ecx = MEM32(esi + 0x180040); /* 0x4300156F: mov ecx, dword ptr [esi + 0x180040] */ 1060 L_43001575: 1061 RECOMP_ICALL(0x430025C0u); /* 0x43001575: call 0x430025c0 */ /* not lifted */ 1062 RECOMP_FLAGS_IN(); 1063 L_4300157A: 1064 edx = eax; /* 0x4300157A: mov edx, eax */ 1065 L_4300157C: 1066 /* test edx, edx */ /* 0x4300157C: test edx, edx */ 1067 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1068 _cf = 0; 1069 _flag_k = FK_TEST; 1070 L_4300157E: 1071 MEM32(ebp + 0xC) = edx; /* 0x4300157E: mov dword ptr [ebp + 0xc], edx */ 1072 L_43001581: 1073 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4300158C; /* 0x43001581: jne 0x4300158c */ 1074 L_43001583: 1075 ecx = 0x19u; /* 0x43001583: mov ecx, 0x19 */ 1076 L_43001588: 1077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1078 edi = 0; /* 0x43001588: xor edi, edi */ 1079 _cf = 0; 1080 _flag_k = FK_TEST; 1081 L_4300158A: 1082 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4300158A: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 1083 L_4300158C: 1084 MEM32(edx + 0xC) = 0; /* 0x4300158C: mov dword ptr [edx + 0xc], 0 */ 1085 L_43001593: 1086 eax = MEM32(esi + 0x180044); /* 0x43001593: mov eax, dword ptr [esi + 0x180044] */ 1087 L_43001599: 1088 /* test eax, eax */ /* 0x43001599: test eax, eax */ 1089 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1090 _cf = 0; 1091 _flag_k = FK_TEST; 1092 L_4300159B: 1093 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_430015DA; /* 0x4300159B: jne 0x430015da */ 1094 L_4300159D: 1095 MEM32(esi + 0x180048) = ebx; /* 0x4300159D: mov dword ptr [esi + 0x180048], ebx */ 1096 L_430015A3: 1097 MEM32(esi + 0x180044) = ebx; /* 0x430015A3: mov dword ptr [esi + 0x180044], ebx */ 1098 L_430015A9: 1099 eax = MEM32(edx + 0x4); /* 0x430015A9: mov eax, dword ptr [edx + 4] */ 1100 L_430015AC: 1101 ecx = eax; /* 0x430015AC: mov ecx, eax */ 1102 L_430015AE: 1103 if (30u) _cf = (((ecx) >> 29) & 1u); /* 0x430015AE: shr ecx, 0x1e */ 1104 if (30u) { _flag_a = recomp_flags_pack((ecx >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1105 ecx = ecx >> 30u; /* 0x430015AE: shr ecx, 0x1e */ 1106 L_430015B1: 1107 /* test LO8(ecx), 1 */ /* 0x430015B1: test cl, 1 */ 1108 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 1109 _cf = 0; 1110 _flag_k = FK_NARROW(FK_TEST, 24); 1111 L_430015B4: 1112 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430015CD; /* 0x430015B4: je 0x430015cd */ 1113 L_430015B6: 1114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 1115 eax = eax & 0x3FFFFFFFu; /* 0x430015B6: and eax, 0x3fffffff */ 1116 _cf = 0; 1117 _flag_k = FK_TEST; 1118 L_430015BB: 1119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1FFFu); 1120 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1121 eax = eax + 0x1FFFu; /* 0x430015BB: add eax, 0x1fff */ 1122 _flag_k = FK_ADD; 1123 L_430015C0: 1124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFF000u); 1125 eax = eax & 0xFFFFF000u; /* 0x430015C0: and eax, 0xfffff000 */ 1126 _cf = 0; 1127 _flag_k = FK_TEST; 1128 L_430015C5: 1129 MEM32(esi + 0x18004C) = eax; /* 0x430015C5: mov dword ptr [esi + 0x18004c], eax */ 1130 L_430015CB: 1131 goto L_43001630; /* 0x430015CB: jmp 0x43001630 */ 1132 L_430015CD: 1133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 1134 eax = eax & 0x3FFFFFFFu; /* 0x430015CD: and eax, 0x3fffffff */ 1135 _cf = 0; 1136 _flag_k = FK_TEST; 1137 L_430015D2: 1138 MEM32(esi + 0x18004C) = eax; /* 0x430015D2: mov dword ptr [esi + 0x18004c], eax */ 1139 L_430015D8: 1140 goto L_43001630; /* 0x430015D8: jmp 0x43001630 */ 1141 L_430015DA: 1142 edx = MEM32(esi + 0x180048); /* 0x430015DA: mov edx, dword ptr [esi + 0x180048] */ 1143 L_430015E0: 1144 ecx = MEM32(esi + 0x180040); /* 0x430015E0: mov ecx, dword ptr [esi + 0x180040] */ 1145 L_430015E6: 1146 PUSH32(esp, edx); /* 0x430015E6: push edx */ 1147 L_430015E7: 1148 RECOMP_ICALL(0x430025C0u); /* 0x430015E7: call 0x430025c0 */ /* not lifted */ 1149 RECOMP_FLAGS_IN(); 1150 L_430015EC: 1151 edx = eax; /* 0x430015EC: mov edx, eax */ 1152 L_430015EE: 1153 /* test edx, edx */ /* 0x430015EE: test edx, edx */ 1154 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1155 _cf = 0; 1156 _flag_k = FK_TEST; 1157 L_430015F0: 1158 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_430015FB; /* 0x430015F0: jne 0x430015fb */ 1159 L_430015F2: 1160 ecx = 0x19u; /* 0x430015F2: mov ecx, 0x19 */ 1161 L_430015F7: 1162 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1163 edi = 0; /* 0x430015F7: xor edi, edi */ 1164 _cf = 0; 1165 _flag_k = FK_TEST; 1166 L_430015F9: 1167 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x430015F9: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 1168 L_430015FB: 1169 eax = MEM32(ebp + 0xC); /* 0x430015FB: mov eax, dword ptr [ebp + 0xc] */ 1170 L_430015FE: 1171 MEM32(edx + 0xC) = ebx; /* 0x430015FE: mov dword ptr [edx + 0xc], ebx */ 1172 L_43001601: 1173 MEM32(esi + 0x180048) = ebx; /* 0x43001601: mov dword ptr [esi + 0x180048], ebx */ 1174 L_43001607: 1175 eax = MEM32(eax + 0x4); /* 0x43001607: mov eax, dword ptr [eax + 4] */ 1176 L_4300160A: 1177 ecx = eax; /* 0x4300160A: mov ecx, eax */ 1178 L_4300160C: 1179 if (30u) _cf = (((ecx) >> 29) & 1u); /* 0x4300160C: shr ecx, 0x1e */ 1180 if (30u) { _flag_a = recomp_flags_pack((ecx >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1181 ecx = ecx >> 30u; /* 0x4300160C: shr ecx, 0x1e */ 1182 L_4300160F: 1183 /* test LO8(ecx), 1 */ /* 0x4300160F: test cl, 1 */ 1184 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 1185 _cf = 0; 1186 _flag_k = FK_NARROW(FK_TEST, 24); 1187 L_43001612: 1188 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001625; /* 0x43001612: je 0x43001625 */ 1189 L_43001614: 1190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 1191 eax = eax & 0x3FFFFFFFu; /* 0x43001614: and eax, 0x3fffffff */ 1192 _cf = 0; 1193 _flag_k = FK_TEST; 1194 L_43001619: 1195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1FFFu); 1196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1197 eax = eax + 0x1FFFu; /* 0x43001619: add eax, 0x1fff */ 1198 _flag_k = FK_ADD; 1199 L_4300161E: 1200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFF000u); 1201 eax = eax & 0xFFFFF000u; /* 0x4300161E: and eax, 0xfffff000 */ 1202 _cf = 0; 1203 _flag_k = FK_TEST; 1204 L_43001623: 1205 goto L_4300162A; /* 0x43001623: jmp 0x4300162a */ 1206 L_43001625: 1207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 1208 eax = eax & 0x3FFFFFFFu; /* 0x43001625: and eax, 0x3fffffff */ 1209 _cf = 0; 1210 _flag_k = FK_TEST; 1211 L_4300162A: 1212 _flag_a = (uint32_t)(MEM32(esi + 0x18004C)); _flag_b = (uint32_t)(eax); 1213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1214 MEM32(esi + 0x18004C) = MEM32(esi + 0x18004C) + eax; /* 0x4300162A: add dword ptr [esi + 0x18004c], eax */ 1215 _flag_k = FK_ADD; 1216 L_43001630: 1217 edx = MEM32(ebp + 0x8); /* 0x43001630: mov edx, dword ptr [ebp + 8] */ 1218 L_43001633: 1219 eax = MEM32(edx + 0x4); /* 0x43001633: mov eax, dword ptr [edx + 4] */ 1220 L_43001636: 1221 ecx = eax; /* 0x43001636: mov ecx, eax */ 1222 L_43001638: 1223 if (30u) _cf = (((ecx) >> 29) & 1u); /* 0x43001638: shr ecx, 0x1e */ 1224 if (30u) { _flag_a = recomp_flags_pack((ecx >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1225 ecx = ecx >> 30u; /* 0x43001638: shr ecx, 0x1e */ 1226 L_4300163B: 1227 /* test LO8(ecx), 1 */ /* 0x4300163B: test cl, 1 */ 1228 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 1229 _cf = 0; 1230 _flag_k = FK_NARROW(FK_TEST, 24); 1231 L_4300163E: 1232 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001693; /* 0x4300163E: je 0x43001693 */ 1233 L_43001640: 1234 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 1235 eax = eax & 0x3FFFFFFFu; /* 0x43001640: and eax, 0x3fffffff */ 1236 _cf = 0; 1237 _flag_k = FK_TEST; 1238 L_43001645: 1239 PUSH32(esp, 1); /* 0x43001645: push 1 */ 1240 L_43001647: 1241 PUSH32(esp, eax); /* 0x43001647: push eax */ 1242 L_43001648: 1243 PUSH32(esp, ebx); /* 0x43001648: push ebx */ 1244 L_43001649: 1245 RECOMP_ICALL(0x43002240u); /* 0x43001649: call 0x43002240 */ /* not lifted */ 1246 RECOMP_FLAGS_IN(); 1247 L_4300164E: 1248 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1250 esp = esp + 0xCu; /* 0x4300164E: add esp, 0xc */ 1251 _flag_k = FK_ADD; 1252 L_43001651: 1253 goto L_43001693; /* 0x43001651: jmp 0x43001693 */ 1254 L_43001653: 1255 PUSH32(esp, ebx); /* 0x43001653: push ebx */ 1256 L_43001654: 1257 ecx = esi + 0x20; /* 0x43001654: lea ecx, [esi + 0x20] */ 1258 L_43001657: 1259 RECOMP_ICALL(0x43002600u); /* 0x43001657: call 0x43002600 */ /* not lifted */ 1260 RECOMP_FLAGS_IN(); 1261 L_4300165C: 1262 esi = MEM32(ebp + 0x8); /* 0x4300165C: mov esi, dword ptr [ebp + 8] */ 1263 L_4300165F: 1264 edx = MEM32(esi + 0x4); /* 0x4300165F: mov edx, dword ptr [esi + 4] */ 1265 L_43001662: 1266 if (30u) _cf = (((edx) >> 29) & 1u); /* 0x43001662: shr edx, 0x1e */ 1267 if (30u) { _flag_a = recomp_flags_pack((edx >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1268 edx = edx >> 30u; /* 0x43001662: shr edx, 0x1e */ 1269 L_43001665: 1270 /* test LO8(edx), 1 */ /* 0x43001665: test dl, 1 */ 1271 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 1272 _cf = 0; 1273 _flag_k = FK_NARROW(FK_TEST, 24); 1274 L_43001668: 1275 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001697; /* 0x43001668: je 0x43001697 */ 1276 L_4300166A: 1277 PUSH32(esp, 0x430061B0u); /* 0x4300166A: push 0x430061b0 */ 1278 L_4300166F: 1279 RECOMP_ICALL(MEM32(0x43004044)); /* 0x4300166F: call dword ptr [0x43004044] */ 1280 RECOMP_FLAGS_IN(); 1281 L_43001675: 1282 eax = MEM32(esi + 0x4); /* 0x43001675: mov eax, dword ptr [esi + 4] */ 1283 L_43001678: 1284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1286 esp = esp + 4; /* 0x43001678: add esp, 4 */ 1287 _flag_k = FK_ADD; 1288 L_4300167B: 1289 if (30u) _cf = (((eax) >> 29) & 1u); /* 0x4300167B: shr eax, 0x1e */ 1290 if (30u) { _flag_a = recomp_flags_pack((eax >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1291 eax = eax >> 30u; /* 0x4300167B: shr eax, 0x1e */ 1292 L_4300167E: 1293 /* test LO8(eax), 1 */ /* 0x4300167E: test al, 1 */ 1294 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1295 _cf = 0; 1296 _flag_k = FK_NARROW(FK_TEST, 24); 1297 L_43001680: 1298 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001687; /* 0x43001680: je 0x43001687 */ 1299 L_43001682: 1300 eax = MEM32(esi + 0x8); /* 0x43001682: mov eax, dword ptr [esi + 8] */ 1301 L_43001685: 1302 goto L_43001689; /* 0x43001685: jmp 0x43001689 */ 1303 L_43001687: 1304 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1305 eax = 0; /* 0x43001687: xor eax, eax */ 1306 _cf = 0; 1307 _flag_k = FK_TEST; 1308 L_43001689: 1309 PUSH32(esp, eax); /* 0x43001689: push eax */ 1310 L_4300168A: 1311 RECOMP_ICALL(MEM32(0x43004040)); /* 0x4300168A: call dword ptr [0x43004040] */ 1312 RECOMP_FLAGS_IN(); 1313 L_43001690: 1314 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1315 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1316 esp = esp + 4; /* 0x43001690: add esp, 4 */ 1317 _flag_k = FK_ADD; 1318 L_43001693: 1319 MEM8(ebp + 0x13) = (uint8_t)(0); /* 0x43001693: mov byte ptr [ebp + 0x13], 0 */ 1320 L_43001697: 1321 ecx = MEM32(ebp + (-0x14)); /* 0x43001697: mov ecx, dword ptr [ebp - 0x14] */ 1322 L_4300169A: 1323 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1324 eax = eax | 0xFFFFFFFFu; /* 0x4300169A: or eax, 0xffffffff */ 1325 _cf = 0; 1326 _flag_k = FK_TEST; 1327 L_4300169D: 1328 /* cmp ecx, eax */ /* 0x4300169D: cmp ecx, eax */ 1329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1331 _flag_k = FK_CMP; 1332 L_4300169F: 1333 MEM32(ebp + (-0x4)) = eax; /* 0x4300169F: mov dword ptr [ebp - 4], eax */ 1334 L_430016A2: 1335 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430016AD; /* 0x430016A2: je 0x430016ad */ 1336 L_430016A4: 1337 ecx = MEM32(ebp + (-0x18)); /* 0x430016A4: mov ecx, dword ptr [ebp - 0x18] */ 1338 L_430016A7: 1339 RECOMP_ICALL(MEM32(0x43004088)); /* 0x430016A7: call dword ptr [0x43004088] */ 1340 RECOMP_FLAGS_IN(); 1341 L_430016AD: 1342 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x430016AD: mov al, byte ptr [ebp + 0x13] */ 1343 L_430016B0: 1344 edi = POP32_VAL(esp); /* 0x430016B0: pop edi */ 1345 L_430016B1: 1346 esi = POP32_VAL(esp); /* 0x430016B1: pop esi */ 1347 L_430016B2: 1348 ebx = POP32_VAL(esp); /* 0x430016B2: pop ebx */ 1349 L_430016B3: 1350 ecx = MEM32(ebp + (-0xC)); /* 0x430016B3: mov ecx, dword ptr [ebp - 0xc] */ 1351 L_430016B6: 1352 MEM32(FS_BASE + (0)) = ecx; /* 0x430016B6: mov dword ptr fs:[0], ecx */ 1353 L_430016BD: 1354 esp = ebp; /* 0x430016BD: mov esp, ebp */ 1355 L_430016BF: 1356 ebp = POP32_VAL(esp); /* 0x430016BF: pop ebp */ 1357 L_430016C0: 1358 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x430016C0: ret 0xc */ 1359 L_430016C3: 1360 /* test ecx, ecx */ /* 0x430016C3: test ecx, ecx */ 1361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1362 _cf = 0; 1363 _flag_k = FK_TEST; 1364 L_430016C5: 1365 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4300178D; /* 0x430016C5: je 0x4300178d */ 1366 L_430016CB: 1367 esi = MEM32(0x43004030); /* 0x430016CB: mov esi, dword ptr [0x43004030] */ 1368 L_430016D1: 1369 PUSH32(esp, ebx); /* 0x430016D1: push ebx */ 1370 L_430016D2: 1371 PUSH32(esp, 0x43006168u); /* 0x430016D2: push 0x43006168 */ 1372 L_430016D7: 1373 RECOMP_ICALL(esi); /* 0x430016D7: call esi */ 1374 RECOMP_FLAGS_IN(); 1375 L_430016D9: 1376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1378 esp = esp + 8; /* 0x430016D9: add esp, 8 */ 1379 _flag_k = FK_ADD; 1380 L_430016DC: 1381 RECOMP_ICALL(0x43002AB0u); /* 0x430016DC: call 0x43002ab0 */ /* not lifted */ 1382 RECOMP_FLAGS_IN(); 1383 L_430016E1: 1384 /* test eax, eax */ /* 0x430016E1: test eax, eax */ 1385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1386 _cf = 0; 1387 _flag_k = FK_TEST; 1388 L_430016E3: 1389 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001758; /* 0x430016E3: je 0x43001758 */ 1390 L_430016E5: 1391 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1392 esi = 0; /* 0x430016E5: xor esi, esi */ 1393 _cf = 0; 1394 _flag_k = FK_TEST; 1395 L_430016E7: 1396 /* test edi, edi */ /* 0x430016E7: test edi, edi */ 1397 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1398 _cf = 0; 1399 _flag_k = FK_TEST; 1400 L_430016E9: 1401 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001703; /* 0x430016E9: je 0x43001703 */ 1402 L_430016EB: 1403 ecx = ebp + (-0x1B8); /* 0x430016EB: lea ecx, [ebp - 0x1b8] */ 1404 L_430016F1: 1405 PUSH32(esp, 0x64u); /* 0x430016F1: push 0x64 */ 1406 L_430016F3: 1407 PUSH32(esp, ecx); /* 0x430016F3: push ecx */ 1408 L_430016F4: 1409 PUSH32(esp, edi); /* 0x430016F4: push edi */ 1410 L_430016F5: 1411 RECOMP_ICALL(0x43002AB0u); /* 0x430016F5: call 0x43002ab0 */ /* not lifted */ 1412 RECOMP_FLAGS_IN(); 1413 L_430016FA: 1414 ecx = eax; /* 0x430016FA: mov ecx, eax */ 1415 L_430016FC: 1416 RECOMP_ICALL(0x43003100u); /* 0x430016FC: call 0x43003100 */ /* not lifted */ 1417 RECOMP_FLAGS_IN(); 1418 L_43001701: 1419 esi = eax; /* 0x43001701: mov esi, eax */ 1420 L_43001703: 1421 eax = MEM32(ebp + (-0x10)); /* 0x43001703: mov eax, dword ptr [ebp - 0x10] */ 1422 L_43001706: 1423 edx = ebp + (-0x348); /* 0x43001706: lea edx, [ebp - 0x348] */ 1424 L_4300170C: 1425 PUSH32(esp, 0x64u); /* 0x4300170C: push 0x64 */ 1426 L_4300170E: 1427 PUSH32(esp, edx); /* 0x4300170E: push edx */ 1428 L_4300170F: 1429 PUSH32(esp, eax); /* 0x4300170F: push eax */ 1430 L_43001710: 1431 RECOMP_ICALL(0x43002AB0u); /* 0x43001710: call 0x43002ab0 */ /* not lifted */ 1432 RECOMP_FLAGS_IN(); 1433 L_43001715: 1434 ecx = eax; /* 0x43001715: mov ecx, eax */ 1435 L_43001717: 1436 RECOMP_ICALL(0x43003100u); /* 0x43001717: call 0x43003100 */ /* not lifted */ 1437 RECOMP_FLAGS_IN(); 1438 L_4300171C: 1439 ebx = MEM32(0x43004044); /* 0x4300171C: mov ebx, dword ptr [0x43004044] */ 1440 L_43001722: 1441 edi = eax; /* 0x43001722: mov edi, eax */ 1442 L_43001724: 1443 /* test esi, esi */ /* 0x43001724: test esi, esi */ 1444 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1445 _cf = 0; 1446 _flag_k = FK_TEST; 1447 L_43001726: 1448 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_4300173F; /* 0x43001726: jbe 0x4300173f */ 1449 L_43001728: 1450 PUSH32(esp, 0x43006158u); /* 0x43001728: push 0x43006158 */ 1451 L_4300172D: 1452 RECOMP_ICALL(ebx); /* 0x4300172D: call ebx */ 1453 RECOMP_FLAGS_IN(); 1454 L_4300172F: 1455 ecx = ebp + (-0x1B8); /* 0x4300172F: lea ecx, [ebp - 0x1b8] */ 1456 L_43001735: 1457 PUSH32(esp, esi); /* 0x43001735: push esi */ 1458 L_43001736: 1459 PUSH32(esp, ecx); /* 0x43001736: push ecx */ 1460 L_43001737: 1461 RECOMP_ICALL(0x43001BF0u); /* 0x43001737: call 0x43001bf0 */ /* not lifted */ 1462 RECOMP_FLAGS_IN(); 1463 L_4300173C: 1464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1466 esp = esp + 0xCu; /* 0x4300173C: add esp, 0xc */ 1467 _flag_k = FK_ADD; 1468 L_4300173F: 1469 PUSH32(esp, 0x43006140u); /* 0x4300173F: push 0x43006140 */ 1470 L_43001744: 1471 RECOMP_ICALL(ebx); /* 0x43001744: call ebx */ 1472 RECOMP_FLAGS_IN(); 1473 L_43001746: 1474 edx = ebp + (-0x348); /* 0x43001746: lea edx, [ebp - 0x348] */ 1475 L_4300174C: 1476 PUSH32(esp, edi); /* 0x4300174C: push edi */ 1477 L_4300174D: 1478 PUSH32(esp, edx); /* 0x4300174D: push edx */ 1479 L_4300174E: 1480 RECOMP_ICALL(0x43001BF0u); /* 0x4300174E: call 0x43001bf0 */ /* not lifted */ 1481 RECOMP_FLAGS_IN(); 1482 L_43001753: 1483 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1485 esp = esp + 0xCu; /* 0x43001753: add esp, 0xc */ 1486 _flag_k = FK_ADD; 1487 L_43001756: 1488 goto L_43001762; /* 0x43001756: jmp 0x43001762 */ 1489 L_43001758: 1490 PUSH32(esp, 0x43006104u); /* 0x43001758: push 0x43006104 */ 1491 L_4300175D: 1492 RECOMP_ICALL(esi); /* 0x4300175D: call esi */ 1493 RECOMP_FLAGS_IN(); 1494 L_4300175F: 1495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1497 esp = esp + 4; /* 0x4300175F: add esp, 4 */ 1498 _flag_k = FK_ADD; 1499 L_43001762: 1500 ecx = MEM32(ebp + (-0x14)); /* 0x43001762: mov ecx, dword ptr [ebp - 0x14] */ 1501 L_43001765: 1502 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1503 eax = eax | 0xFFFFFFFFu; /* 0x43001765: or eax, 0xffffffff */ 1504 _cf = 0; 1505 _flag_k = FK_TEST; 1506 L_43001768: 1507 /* cmp ecx, eax */ /* 0x43001768: cmp ecx, eax */ 1508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1510 _flag_k = FK_CMP; 1511 L_4300176A: 1512 MEM32(ebp + (-0x4)) = eax; /* 0x4300176A: mov dword ptr [ebp - 4], eax */ 1513 L_4300176D: 1514 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001778; /* 0x4300176D: je 0x43001778 */ 1515 L_4300176F: 1516 ecx = MEM32(ebp + (-0x18)); /* 0x4300176F: mov ecx, dword ptr [ebp - 0x18] */ 1517 L_43001772: 1518 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43001772: call dword ptr [0x43004088] */ 1519 RECOMP_FLAGS_IN(); 1520 L_43001778: 1521 ecx = MEM32(ebp + (-0xC)); /* 0x43001778: mov ecx, dword ptr [ebp - 0xc] */ 1522 L_4300177B: 1523 edi = POP32_VAL(esp); /* 0x4300177B: pop edi */ 1524 L_4300177C: 1525 esi = POP32_VAL(esp); /* 0x4300177C: pop esi */ 1526 L_4300177D: 1527 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 1528 SET_LO8(eax, 0); /* 0x4300177D: xor al, al */ 1529 _cf = 0; 1530 _flag_k = FK_NARROW(FK_TEST, 24); 1531 L_4300177F: 1532 ebx = POP32_VAL(esp); /* 0x4300177F: pop ebx */ 1533 L_43001780: 1534 MEM32(FS_BASE + (0)) = ecx; /* 0x43001780: mov dword ptr fs:[0], ecx */ 1535 L_43001787: 1536 esp = ebp; /* 0x43001787: mov esp, ebp */ 1537 L_43001789: 1538 ebp = POP32_VAL(esp); /* 0x43001789: pop ebp */ 1539 L_4300178A: 1540 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4300178A: ret 0xc */ 1541 L_4300178D: 1542 PUSH32(esp, ebx); /* 0x4300178D: push ebx */ 1543 L_4300178E: 1544 PUSH32(esp, 0x4300609Cu); /* 0x4300178E: push 0x4300609c */ 1545 L_43001793: 1546 RECOMP_ICALL(MEM32(0x43004030)); /* 0x43001793: call dword ptr [0x43004030] */ 1547 RECOMP_FLAGS_IN(); 1548 L_43001799: 1549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1551 esp = esp + 8; /* 0x43001799: add esp, 8 */ 1552 _flag_k = FK_ADD; 1553 L_4300179C: 1554 { _itail_tgt = (uint32_t)(MEM32(0x4300403C)); goto _ljump; } 1555 { RECOMP_REGS_OUT(); return; } /* end of function */ 1556 _ljump: 1557 switch (_itail_tgt) { 1558 case 0x430013D0u: goto L_430013D0; 1559 case 0x430013D1u: goto L_430013D1; 1560 case 0x430013D3u: goto L_430013D3; 1561 case 0x430013D5u: goto L_430013D5; 1562 case 0x430013DAu: goto L_430013DA; 1563 case 0x430013E0u: goto L_430013E0; 1564 case 0x430013E1u: goto L_430013E1; 1565 case 0x430013E8u: goto L_430013E8; 1566 case 0x430013EEu: goto L_430013EE; 1567 case 0x430013EFu: goto L_430013EF; 1568 case 0x430013F0u: goto L_430013F0; 1569 case 0x430013F2u: goto L_430013F2; 1570 case 0x430013F3u: goto L_430013F3; 1571 case 0x430013F5u: goto L_430013F5; 1572 case 0x430013FBu: goto L_430013FB; 1573 case 0x430013FEu: goto L_430013FE; 1574 case 0x43001404u: goto L_43001404; 1575 case 0x43001407u: goto L_43001407; 1576 case 0x4300140Au: goto L_4300140A; 1577 case 0x43001411u: goto L_43001411; 1578 case 0x43001413u: goto L_43001413; 1579 case 0x43001415u: goto L_43001415; 1580 case 0x43001417u: goto L_43001417; 1581 case 0x4300141Cu: goto L_4300141C; 1582 case 0x4300141Fu: goto L_4300141F; 1583 case 0x43001421u: goto L_43001421; 1584 case 0x43001423u: goto L_43001423; 1585 case 0x4300142Au: goto L_4300142A; 1586 case 0x4300142Du: goto L_4300142D; 1587 case 0x4300142Fu: goto L_4300142F; 1588 case 0x43001430u: goto L_43001430; 1589 case 0x43001435u: goto L_43001435; 1590 case 0x43001437u: goto L_43001437; 1591 case 0x43001438u: goto L_43001438; 1592 case 0x4300143Au: goto L_4300143A; 1593 case 0x4300143Du: goto L_4300143D; 1594 case 0x43001442u: goto L_43001442; 1595 case 0x43001444u: goto L_43001444; 1596 case 0x43001446u: goto L_43001446; 1597 case 0x43001449u: goto L_43001449; 1598 case 0x4300144Bu: goto L_4300144B; 1599 case 0x4300144Du: goto L_4300144D; 1600 case 0x43001453u: goto L_43001453; 1601 case 0x43001456u: goto L_43001456; 1602 case 0x43001459u: goto L_43001459; 1603 case 0x4300145Bu: goto L_4300145B; 1604 case 0x4300145Eu: goto L_4300145E; 1605 case 0x43001460u: goto L_43001460; 1606 case 0x43001463u: goto L_43001463; 1607 case 0x43001469u: goto L_43001469; 1608 case 0x4300146Au: goto L_4300146A; 1609 case 0x4300146Bu: goto L_4300146B; 1610 case 0x4300146Du: goto L_4300146D; 1611 case 0x4300146Eu: goto L_4300146E; 1612 case 0x43001471u: goto L_43001471; 1613 case 0x43001478u: goto L_43001478; 1614 case 0x4300147Au: goto L_4300147A; 1615 case 0x4300147Bu: goto L_4300147B; 1616 case 0x4300147Eu: goto L_4300147E; 1617 case 0x43001481u: goto L_43001481; 1618 case 0x43001483u: goto L_43001483; 1619 case 0x43001485u: goto L_43001485; 1620 case 0x43001487u: goto L_43001487; 1621 case 0x43001489u: goto L_43001489; 1622 case 0x4300148Bu: goto L_4300148B; 1623 case 0x4300148Eu: goto L_4300148E; 1624 case 0x43001491u: goto L_43001491; 1625 case 0x43001494u: goto L_43001494; 1626 case 0x43001497u: goto L_43001497; 1627 case 0x4300149Au: goto L_4300149A; 1628 case 0x4300149Du: goto L_4300149D; 1629 case 0x430014A0u: goto L_430014A0; 1630 case 0x430014A3u: goto L_430014A3; 1631 case 0x430014A5u: goto L_430014A5; 1632 case 0x430014A8u: goto L_430014A8; 1633 case 0x430014AAu: goto L_430014AA; 1634 case 0x430014ADu: goto L_430014AD; 1635 case 0x430014B3u: goto L_430014B3; 1636 case 0x430014B8u: goto L_430014B8; 1637 case 0x430014BAu: goto L_430014BA; 1638 case 0x430014BDu: goto L_430014BD; 1639 case 0x430014C2u: goto L_430014C2; 1640 case 0x430014C4u: goto L_430014C4; 1641 case 0x430014C6u: goto L_430014C6; 1642 case 0x430014C9u: goto L_430014C9; 1643 case 0x430014CAu: goto L_430014CA; 1644 case 0x430014CBu: goto L_430014CB; 1645 case 0x430014CCu: goto L_430014CC; 1646 case 0x430014D1u: goto L_430014D1; 1647 case 0x430014D3u: goto L_430014D3; 1648 case 0x430014D8u: goto L_430014D8; 1649 case 0x430014DAu: goto L_430014DA; 1650 case 0x430014DDu: goto L_430014DD; 1651 case 0x430014E0u: goto L_430014E0; 1652 case 0x430014E6u: goto L_430014E6; 1653 case 0x430014E9u: goto L_430014E9; 1654 case 0x430014EBu: goto L_430014EB; 1655 case 0x430014EEu: goto L_430014EE; 1656 case 0x430014F5u: goto L_430014F5; 1657 case 0x430014F8u: goto L_430014F8; 1658 case 0x430014FCu: goto L_430014FC; 1659 case 0x430014FEu: goto L_430014FE; 1660 case 0x43001501u: goto L_43001501; 1661 case 0x43001503u: goto L_43001503; 1662 case 0x43001505u: goto L_43001505; 1663 case 0x43001508u: goto L_43001508; 1664 case 0x4300150Eu: goto L_4300150E; 1665 case 0x4300150Fu: goto L_4300150F; 1666 case 0x43001510u: goto L_43001510; 1667 case 0x43001515u: goto L_43001515; 1668 case 0x43001518u: goto L_43001518; 1669 case 0x4300151Au: goto L_4300151A; 1670 case 0x4300151Cu: goto L_4300151C; 1671 case 0x4300151Fu: goto L_4300151F; 1672 case 0x43001525u: goto L_43001525; 1673 case 0x43001526u: goto L_43001526; 1674 case 0x43001527u: goto L_43001527; 1675 case 0x43001529u: goto L_43001529; 1676 case 0x4300152Eu: goto L_4300152E; 1677 case 0x43001531u: goto L_43001531; 1678 case 0x43001533u: goto L_43001533; 1679 case 0x43001535u: goto L_43001535; 1680 case 0x43001538u: goto L_43001538; 1681 case 0x4300153Au: goto L_4300153A; 1682 case 0x4300153Cu: goto L_4300153C; 1683 case 0x4300153Fu: goto L_4300153F; 1684 case 0x43001544u: goto L_43001544; 1685 case 0x43001546u: goto L_43001546; 1686 case 0x43001548u: goto L_43001548; 1687 case 0x4300154Bu: goto L_4300154B; 1688 case 0x4300154Du: goto L_4300154D; 1689 case 0x4300154Fu: goto L_4300154F; 1690 case 0x43001552u: goto L_43001552; 1691 case 0x43001554u: goto L_43001554; 1692 case 0x43001557u: goto L_43001557; 1693 case 0x43001559u: goto L_43001559; 1694 case 0x4300155Fu: goto L_4300155F; 1695 case 0x43001562u: goto L_43001562; 1696 case 0x43001563u: goto L_43001563; 1697 case 0x43001566u: goto L_43001566; 1698 case 0x4300156Cu: goto L_4300156C; 1699 case 0x4300156Fu: goto L_4300156F; 1700 case 0x43001575u: goto L_43001575; 1701 case 0x4300157Au: goto L_4300157A; 1702 case 0x4300157Cu: goto L_4300157C; 1703 case 0x4300157Eu: goto L_4300157E; 1704 case 0x43001581u: goto L_43001581; 1705 case 0x43001583u: goto L_43001583; 1706 case 0x43001588u: goto L_43001588; 1707 case 0x4300158Au: goto L_4300158A; 1708 case 0x4300158Cu: goto L_4300158C; 1709 case 0x43001593u: goto L_43001593; 1710 case 0x43001599u: goto L_43001599; 1711 case 0x4300159Bu: goto L_4300159B; 1712 case 0x4300159Du: goto L_4300159D; 1713 case 0x430015A3u: goto L_430015A3; 1714 case 0x430015A9u: goto L_430015A9; 1715 case 0x430015ACu: goto L_430015AC; 1716 case 0x430015AEu: goto L_430015AE; 1717 case 0x430015B1u: goto L_430015B1; 1718 case 0x430015B4u: goto L_430015B4; 1719 case 0x430015B6u: goto L_430015B6; 1720 case 0x430015BBu: goto L_430015BB; 1721 case 0x430015C0u: goto L_430015C0; 1722 case 0x430015C5u: goto L_430015C5; 1723 case 0x430015CBu: goto L_430015CB; 1724 case 0x430015CDu: goto L_430015CD; 1725 case 0x430015D2u: goto L_430015D2; 1726 case 0x430015D8u: goto L_430015D8; 1727 case 0x430015DAu: goto L_430015DA; 1728 case 0x430015E0u: goto L_430015E0; 1729 case 0x430015E6u: goto L_430015E6; 1730 case 0x430015E7u: goto L_430015E7; 1731 case 0x430015ECu: goto L_430015EC; 1732 case 0x430015EEu: goto L_430015EE; 1733 case 0x430015F0u: goto L_430015F0; 1734 case 0x430015F2u: goto L_430015F2; 1735 case 0x430015F7u: goto L_430015F7; 1736 case 0x430015F9u: goto L_430015F9; 1737 case 0x430015FBu: goto L_430015FB; 1738 case 0x430015FEu: goto L_430015FE; 1739 case 0x43001601u: goto L_43001601; 1740 case 0x43001607u: goto L_43001607; 1741 case 0x4300160Au: goto L_4300160A; 1742 case 0x4300160Cu: goto L_4300160C; 1743 case 0x4300160Fu: goto L_4300160F; 1744 case 0x43001612u: goto L_43001612; 1745 case 0x43001614u: goto L_43001614; 1746 case 0x43001619u: goto L_43001619; 1747 case 0x4300161Eu: goto L_4300161E; 1748 case 0x43001623u: goto L_43001623; 1749 case 0x43001625u: goto L_43001625; 1750 case 0x4300162Au: goto L_4300162A; 1751 case 0x43001630u: goto L_43001630; 1752 case 0x43001633u: goto L_43001633; 1753 case 0x43001636u: goto L_43001636; 1754 case 0x43001638u: goto L_43001638; 1755 case 0x4300163Bu: goto L_4300163B; 1756 case 0x4300163Eu: goto L_4300163E; 1757 case 0x43001640u: goto L_43001640; 1758 case 0x43001645u: goto L_43001645; 1759 case 0x43001647u: goto L_43001647; 1760 case 0x43001648u: goto L_43001648; 1761 case 0x43001649u: goto L_43001649; 1762 case 0x4300164Eu: goto L_4300164E; 1763 case 0x43001651u: goto L_43001651; 1764 case 0x43001653u: goto L_43001653; 1765 case 0x43001654u: goto L_43001654; 1766 case 0x43001657u: goto L_43001657; 1767 case 0x4300165Cu: goto L_4300165C; 1768 case 0x4300165Fu: goto L_4300165F; 1769 case 0x43001662u: goto L_43001662; 1770 case 0x43001665u: goto L_43001665; 1771 case 0x43001668u: goto L_43001668; 1772 case 0x4300166Au: goto L_4300166A; 1773 case 0x4300166Fu: goto L_4300166F; 1774 case 0x43001675u: goto L_43001675; 1775 case 0x43001678u: goto L_43001678; 1776 case 0x4300167Bu: goto L_4300167B; 1777 case 0x4300167Eu: goto L_4300167E; 1778 case 0x43001680u: goto L_43001680; 1779 case 0x43001682u: goto L_43001682; 1780 case 0x43001685u: goto L_43001685; 1781 case 0x43001687u: goto L_43001687; 1782 case 0x43001689u: goto L_43001689; 1783 case 0x4300168Au: goto L_4300168A; 1784 case 0x43001690u: goto L_43001690; 1785 case 0x43001693u: goto L_43001693; 1786 case 0x43001697u: goto L_43001697; 1787 case 0x4300169Au: goto L_4300169A; 1788 case 0x4300169Du: goto L_4300169D; 1789 case 0x4300169Fu: goto L_4300169F; 1790 case 0x430016A2u: goto L_430016A2; 1791 case 0x430016A4u: goto L_430016A4; 1792 case 0x430016A7u: goto L_430016A7; 1793 case 0x430016ADu: goto L_430016AD; 1794 case 0x430016B0u: goto L_430016B0; 1795 case 0x430016B1u: goto L_430016B1; 1796 case 0x430016B2u: goto L_430016B2; 1797 case 0x430016B3u: goto L_430016B3; 1798 case 0x430016B6u: goto L_430016B6; 1799 case 0x430016BDu: goto L_430016BD; 1800 case 0x430016BFu: goto L_430016BF; 1801 case 0x430016C0u: goto L_430016C0; 1802 case 0x430016C3u: goto L_430016C3; 1803 case 0x430016C5u: goto L_430016C5; 1804 case 0x430016CBu: goto L_430016CB; 1805 case 0x430016D1u: goto L_430016D1; 1806 case 0x430016D2u: goto L_430016D2; 1807 case 0x430016D7u: goto L_430016D7; 1808 case 0x430016D9u: goto L_430016D9; 1809 case 0x430016DCu: goto L_430016DC; 1810 case 0x430016E1u: goto L_430016E1; 1811 case 0x430016E3u: goto L_430016E3; 1812 case 0x430016E5u: goto L_430016E5; 1813 case 0x430016E7u: goto L_430016E7; 1814 case 0x430016E9u: goto L_430016E9; 1815 case 0x430016EBu: goto L_430016EB; 1816 case 0x430016F1u: goto L_430016F1; 1817 case 0x430016F3u: goto L_430016F3; 1818 case 0x430016F4u: goto L_430016F4; 1819 case 0x430016F5u: goto L_430016F5; 1820 case 0x430016FAu: goto L_430016FA; 1821 case 0x430016FCu: goto L_430016FC; 1822 case 0x43001701u: goto L_43001701; 1823 case 0x43001703u: goto L_43001703; 1824 case 0x43001706u: goto L_43001706; 1825 case 0x4300170Cu: goto L_4300170C; 1826 case 0x4300170Eu: goto L_4300170E; 1827 case 0x4300170Fu: goto L_4300170F; 1828 case 0x43001710u: goto L_43001710; 1829 case 0x43001715u: goto L_43001715; 1830 case 0x43001717u: goto L_43001717; 1831 case 0x4300171Cu: goto L_4300171C; 1832 case 0x43001722u: goto L_43001722; 1833 case 0x43001724u: goto L_43001724; 1834 case 0x43001726u: goto L_43001726; 1835 case 0x43001728u: goto L_43001728; 1836 case 0x4300172Du: goto L_4300172D; 1837 case 0x4300172Fu: goto L_4300172F; 1838 case 0x43001735u: goto L_43001735; 1839 case 0x43001736u: goto L_43001736; 1840 case 0x43001737u: goto L_43001737; 1841 case 0x4300173Cu: goto L_4300173C; 1842 case 0x4300173Fu: goto L_4300173F; 1843 case 0x43001744u: goto L_43001744; 1844 case 0x43001746u: goto L_43001746; 1845 case 0x4300174Cu: goto L_4300174C; 1846 case 0x4300174Du: goto L_4300174D; 1847 case 0x4300174Eu: goto L_4300174E; 1848 case 0x43001753u: goto L_43001753; 1849 case 0x43001756u: goto L_43001756; 1850 case 0x43001758u: goto L_43001758; 1851 case 0x4300175Du: goto L_4300175D; 1852 case 0x4300175Fu: goto L_4300175F; 1853 case 0x43001762u: goto L_43001762; 1854 case 0x43001765u: goto L_43001765; 1855 case 0x43001768u: goto L_43001768; 1856 case 0x4300176Au: goto L_4300176A; 1857 case 0x4300176Du: goto L_4300176D; 1858 case 0x4300176Fu: goto L_4300176F; 1859 case 0x43001772u: goto L_43001772; 1860 case 0x43001778u: goto L_43001778; 1861 case 0x4300177Bu: goto L_4300177B; 1862 case 0x4300177Cu: goto L_4300177C; 1863 case 0x4300177Du: goto L_4300177D; 1864 case 0x4300177Fu: goto L_4300177F; 1865 case 0x43001780u: goto L_43001780; 1866 case 0x43001787u: goto L_43001787; 1867 case 0x43001789u: goto L_43001789; 1868 case 0x4300178Au: goto L_4300178A; 1869 case 0x4300178Du: goto L_4300178D; 1870 case 0x4300178Eu: goto L_4300178E; 1871 case 0x43001793u: goto L_43001793; 1872 case 0x43001799u: goto L_43001799; 1873 case 0x4300179Cu: goto L_4300179C; 1874 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1875 } 1876 RECOMP_REGS_OUT(); 1877 } 1878 1879 void sub_430017B0(void) { 1880 int _fpu_cmp = 0; 1881 uint32_t _cf = 0; 1882 int _df = 1; 1883 uint32_t _flag_k = FK_NONE; 1884 uint32_t _flag_a = 0, _flag_b = 0; 1885 uint32_t _itail_tgt = 0; 1886 RECOMP_REGS_LOCALS 1887 RECOMP_ENTER(0x430017B0u); 1888 1889 L_430017B0: 1890 PUSH32(esp, ebp); /* 0x430017B0: push ebp */ 1891 L_430017B1: 1892 ebp = esp; /* 0x430017B1: mov ebp, esp */ 1893 L_430017B3: 1894 eax = 0x120Cu; /* 0x430017B3: mov eax, 0x120c */ 1895 L_430017B8: 1896 RECOMP_ICALL(0x43003520u); /* 0x430017B8: call 0x43003520 */ /* not lifted */ 1897 RECOMP_FLAGS_IN(); 1898 L_430017BD: 1899 PUSH32(esp, ebx); /* 0x430017BD: push ebx */ 1900 L_430017BE: 1901 ebx = ecx; /* 0x430017BE: mov ebx, ecx */ 1902 L_430017C0: 1903 PUSH32(esp, esi); /* 0x430017C0: push esi */ 1904 L_430017C1: 1905 PUSH32(esp, edi); /* 0x430017C1: push edi */ 1906 L_430017C2: 1907 eax = MEM32(ebx + 0x18004C); /* 0x430017C2: mov eax, dword ptr [ebx + 0x18004c] */ 1908 L_430017C8: 1909 ecx = MEM32(ebx + 0x8); /* 0x430017C8: mov ecx, dword ptr [ebx + 8] */ 1910 L_430017CB: 1911 /* cmp eax, ecx */ /* 0x430017CB: cmp eax, ecx */ 1912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1914 _flag_k = FK_CMP; 1915 L_430017CD: 1916 MEM32(ebp + (-0x8)) = ebx; /* 0x430017CD: mov dword ptr [ebp - 8], ebx */ 1917 L_430017D0: 1918 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_B, _cf)) goto L_43001B86; /* 0x430017D0: jb 0x43001b86 */ 1919 L_430017D6: 1920 eax = ebp + (-0x1204); /* 0x430017D6: lea eax, [ebp - 0x1204] */ 1921 L_430017DC: 1922 ecx = 0x64u; /* 0x430017DC: mov ecx, 0x64 */ 1923 L_430017E1: 1924 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1925 edx = 0; /* 0x430017E1: xor edx, edx */ 1926 _cf = 0; 1927 _flag_k = FK_TEST; 1928 L_430017E3: 1929 MEM32(eax + (-0x4)) = 0x80000000u; /* 0x430017E3: mov dword ptr [eax - 4], 0x80000000 */ 1930 L_430017EA: 1931 MEM32(eax + (-0x8)) = edx; /* 0x430017EA: mov dword ptr [eax - 8], edx */ 1932 L_430017ED: 1933 MEM32(eax) = edx; /* 0x430017ED: mov dword ptr [eax], edx */ 1934 L_430017EF: 1935 MEM32(eax + 0x4) = edx; /* 0x430017EF: mov dword ptr [eax + 4], edx */ 1936 L_430017F2: 1937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 1938 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1939 eax = eax + 0x10u; /* 0x430017F2: add eax, 0x10 */ 1940 _flag_k = FK_ADD; 1941 L_430017F5: 1942 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1943 ecx = ecx - 1; /* 0x430017F5: dec ecx */ 1944 _flag_k = FK_DEC; 1945 L_430017F6: 1946 RECOMP_BACKEDGE(); 1947 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_430017E1; /* 0x430017F6: jne 0x430017e1 */ 1948 L_430017F8: 1949 eax = ebp + (-0xBC4); /* 0x430017F8: lea eax, [ebp - 0xbc4] */ 1950 L_430017FE: 1951 ecx = 0x64u; /* 0x430017FE: mov ecx, 0x64 */ 1952 L_43001803: 1953 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1954 edx = 0; /* 0x43001803: xor edx, edx */ 1955 _cf = 0; 1956 _flag_k = FK_TEST; 1957 L_43001805: 1958 MEM32(eax + (-0x4)) = 0x80000000u; /* 0x43001805: mov dword ptr [eax - 4], 0x80000000 */ 1959 L_4300180C: 1960 MEM32(eax + (-0x8)) = edx; /* 0x4300180C: mov dword ptr [eax - 8], edx */ 1961 L_4300180F: 1962 MEM32(eax) = edx; /* 0x4300180F: mov dword ptr [eax], edx */ 1963 L_43001811: 1964 MEM32(eax + 0x4) = edx; /* 0x43001811: mov dword ptr [eax + 4], edx */ 1965 L_43001814: 1966 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 1967 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1968 eax = eax + 0x10u; /* 0x43001814: add eax, 0x10 */ 1969 _flag_k = FK_ADD; 1970 L_43001817: 1971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1972 ecx = ecx - 1; /* 0x43001817: dec ecx */ 1973 _flag_k = FK_DEC; 1974 L_43001818: 1975 RECOMP_BACKEDGE(); 1976 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001803; /* 0x43001818: jne 0x43001803 */ 1977 L_4300181A: 1978 eax = MEM32(ebx + 0x8); /* 0x4300181A: mov eax, dword ptr [ebx + 8] */ 1979 L_4300181D: 1980 SET_LO8(ecx, MEM8(ebx + 0x4)); /* 0x4300181D: mov cl, byte ptr [ebx + 4] */ 1981 L_43001820: 1982 MEM32(ebp + (-0x4)) = edx; /* 0x43001820: mov dword ptr [ebp - 4], edx */ 1983 L_43001823: 1984 edx = MEM32(ebx + 0x18004C); /* 0x43001823: mov edx, dword ptr [ebx + 0x18004c] */ 1985 L_43001829: 1986 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x43001829: shl edx, 1 */ 1987 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1988 edx = edx << 1u; /* 0x43001829: shl edx, 1 */ 1989 L_4300182B: 1990 /* cmp edx, eax */ /* 0x4300182B: cmp edx, eax */ 1991 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1993 _flag_k = FK_CMP; 1994 L_4300182D: 1995 MEM8(ebp + (-0x9)) = (uint8_t)(LO8(ecx)); /* 0x4300182D: mov byte ptr [ebp - 9], cl */ 1996 L_43001830: 1997 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_43001B86; /* 0x43001830: jbe 0x43001b86 */ 1998 L_43001836: 1999 eax = ebp + (-0x120C); /* 0x43001836: lea eax, [ebp - 0x120c] */ 2000 L_4300183C: 2001 MEM32(ebp + (-0x14)) = eax; /* 0x4300183C: mov dword ptr [ebp - 0x14], eax */ 2002 L_4300183F: 2003 eax = MEM32(ebx + 0x180044); /* 0x4300183F: mov eax, dword ptr [ebx + 0x180044] */ 2004 L_43001845: 2005 /* test eax, eax */ /* 0x43001845: test eax, eax */ 2006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2007 _cf = 0; 2008 _flag_k = FK_TEST; 2009 L_43001847: 2010 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001854; /* 0x43001847: jne 0x43001854 */ 2011 L_43001849: 2012 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2013 eax = 0; /* 0x43001849: xor eax, eax */ 2014 _cf = 0; 2015 _flag_k = FK_TEST; 2016 L_4300184B: 2017 ecx = 0x19u; /* 0x4300184B: mov ecx, 0x19 */ 2018 L_43001850: 2019 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2020 edi = 0; /* 0x43001850: xor edi, edi */ 2021 _cf = 0; 2022 _flag_k = FK_TEST; 2023 L_43001852: 2024 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x43001852: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2025 L_43001854: 2026 ecx = MEM32(ebx + 0x180044); /* 0x43001854: mov ecx, dword ptr [ebx + 0x180044] */ 2027 L_4300185A: 2028 PUSH32(esp, ecx); /* 0x4300185A: push ecx */ 2029 L_4300185B: 2030 ecx = MEM32(ebx + 0x180040); /* 0x4300185B: mov ecx, dword ptr [ebx + 0x180040] */ 2031 L_43001861: 2032 RECOMP_ICALL(0x430025C0u); /* 0x43001861: call 0x430025c0 */ /* not lifted */ 2033 RECOMP_FLAGS_IN(); 2034 L_43001866: 2035 esi = eax; /* 0x43001866: mov esi, eax */ 2036 L_43001868: 2037 /* test esi, esi */ /* 0x43001868: test esi, esi */ 2038 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2039 _cf = 0; 2040 _flag_k = FK_TEST; 2041 L_4300186A: 2042 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001875; /* 0x4300186A: jne 0x43001875 */ 2043 L_4300186C: 2044 ecx = 0x19u; /* 0x4300186C: mov ecx, 0x19 */ 2045 L_43001871: 2046 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2047 edi = 0; /* 0x43001871: xor edi, edi */ 2048 _cf = 0; 2049 _flag_k = FK_TEST; 2050 L_43001873: 2051 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x43001873: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2052 L_43001875: 2053 eax = MEM32(esi + 0x4); /* 0x43001875: mov eax, dword ptr [esi + 4] */ 2054 L_43001878: 2055 edx = eax; /* 0x43001878: mov edx, eax */ 2056 L_4300187A: 2057 if (30u) _cf = (((edx) >> 29) & 1u); /* 0x4300187A: shr edx, 0x1e */ 2058 if (30u) { _flag_a = recomp_flags_pack((edx >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2059 edx = edx >> 30u; /* 0x4300187A: shr edx, 0x1e */ 2060 L_4300187D: 2061 /* test LO8(edx), 1 */ /* 0x4300187D: test dl, 1 */ 2062 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 2063 _cf = 0; 2064 _flag_k = FK_NARROW(FK_TEST, 24); 2065 L_43001880: 2066 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001893; /* 0x43001880: je 0x43001893 */ 2067 L_43001882: 2068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 2069 eax = eax & 0x3FFFFFFFu; /* 0x43001882: and eax, 0x3fffffff */ 2070 _cf = 0; 2071 _flag_k = FK_TEST; 2072 L_43001887: 2073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1FFFu); 2074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2075 eax = eax + 0x1FFFu; /* 0x43001887: add eax, 0x1fff */ 2076 _flag_k = FK_ADD; 2077 L_4300188C: 2078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFF000u); 2079 eax = eax & 0xFFFFF000u; /* 0x4300188C: and eax, 0xfffff000 */ 2080 _cf = 0; 2081 _flag_k = FK_TEST; 2082 L_43001891: 2083 goto L_43001898; /* 0x43001891: jmp 0x43001898 */ 2084 L_43001893: 2085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 2086 eax = eax & 0x3FFFFFFFu; /* 0x43001893: and eax, 0x3fffffff */ 2087 _cf = 0; 2088 _flag_k = FK_TEST; 2089 L_43001898: 2090 edi = MEM32(ebx + 0x18004C); /* 0x43001898: mov edi, dword ptr [ebx + 0x18004c] */ 2091 L_4300189E: 2092 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2094 edi = edi - eax; /* 0x4300189E: sub edi, eax */ 2095 _flag_k = FK_CMP; 2096 L_430018A0: 2097 MEM32(ebx + 0x18004C) = edi; /* 0x430018A0: mov dword ptr [ebx + 0x18004c], edi */ 2098 L_430018A6: 2099 eax = MEM32(esi + 0xC); /* 0x430018A6: mov eax, dword ptr [esi + 0xc] */ 2100 L_430018A9: 2101 /* test eax, eax */ /* 0x430018A9: test eax, eax */ 2102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2103 _cf = 0; 2104 _flag_k = FK_TEST; 2105 L_430018AB: 2106 ecx = edi; /* 0x430018AB: mov ecx, edi */ 2107 L_430018AD: 2108 MEM32(ebx + 0x180044) = eax; /* 0x430018AD: mov dword ptr [ebx + 0x180044], eax */ 2109 L_430018B3: 2110 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_430018CC; /* 0x430018B3: jne 0x430018cc */ 2111 L_430018B5: 2112 /* test ecx, ecx */ /* 0x430018B5: test ecx, ecx */ 2113 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2114 _cf = 0; 2115 _flag_k = FK_TEST; 2116 L_430018B7: 2117 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430018C2; /* 0x430018B7: je 0x430018c2 */ 2118 L_430018B9: 2119 ecx = 0x19u; /* 0x430018B9: mov ecx, 0x19 */ 2120 L_430018BE: 2121 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2122 edi = 0; /* 0x430018BE: xor edi, edi */ 2123 _cf = 0; 2124 _flag_k = FK_TEST; 2125 L_430018C0: 2126 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x430018C0: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2127 L_430018C2: 2128 MEM32(ebx + 0x180048) = 0; /* 0x430018C2: mov dword ptr [ebx + 0x180048], 0 */ 2129 L_430018CC: 2130 eax = MEM32(esi + 0x4); /* 0x430018CC: mov eax, dword ptr [esi + 4] */ 2131 L_430018CF: 2132 ecx = MEM32(esi); /* 0x430018CF: mov ecx, dword ptr [esi] */ 2133 L_430018D1: 2134 edi = eax; /* 0x430018D1: mov edi, eax */ 2135 L_430018D3: 2136 MEM32(ebp + (-0x10)) = ecx; /* 0x430018D3: mov dword ptr [ebp - 0x10], ecx */ 2137 L_430018D6: 2138 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3FFFFFFFu); 2139 edi = edi & 0x3FFFFFFFu; /* 0x430018D6: and edi, 0x3fffffff */ 2140 _cf = 0; 2141 _flag_k = FK_TEST; 2142 L_430018DC: 2143 /* test ecx, ecx */ /* 0x430018DC: test ecx, ecx */ 2144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2145 _cf = 0; 2146 _flag_k = FK_TEST; 2147 L_430018DE: 2148 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4300197A; /* 0x430018DE: je 0x4300197a */ 2149 L_430018E4: 2150 if (30u) _cf = (((eax) >> 29) & 1u); /* 0x430018E4: shr eax, 0x1e */ 2151 if (30u) { _flag_a = recomp_flags_pack((eax >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2152 eax = eax >> 30u; /* 0x430018E4: shr eax, 0x1e */ 2153 L_430018E7: 2154 /* test LO8(eax), 1 */ /* 0x430018E7: test al, 1 */ 2155 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2156 _cf = 0; 2157 _flag_k = FK_NARROW(FK_TEST, 24); 2158 L_430018E9: 2159 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430018FA; /* 0x430018E9: je 0x430018fa */ 2160 L_430018EB: 2161 PUSH32(esp, 0); /* 0x430018EB: push 0 */ 2162 L_430018ED: 2163 PUSH32(esp, edi); /* 0x430018ED: push edi */ 2164 L_430018EE: 2165 PUSH32(esp, ecx); /* 0x430018EE: push ecx */ 2166 L_430018EF: 2167 RECOMP_ICALL(0x43002240u); /* 0x430018EF: call 0x43002240 */ /* not lifted */ 2168 RECOMP_FLAGS_IN(); 2169 L_430018F4: 2170 ecx = MEM32(ebp + (-0x10)); /* 0x430018F4: mov ecx, dword ptr [ebp - 0x10] */ 2171 L_430018F7: 2172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2174 esp = esp + 0xCu; /* 0x430018F7: add esp, 0xc */ 2175 _flag_k = FK_ADD; 2176 L_430018FA: 2177 SET_LO8(eax, MEM8(ebp + (-0x9))); /* 0x430018FA: mov al, byte ptr [ebp - 9] */ 2178 L_430018FD: 2179 /* test LO8(eax), LO8(eax) */ /* 0x430018FD: test al, al */ 2180 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2181 _cf = 0; 2182 _flag_k = FK_NARROW(FK_TEST, 24); 2183 L_430018FF: 2184 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001912; /* 0x430018FF: je 0x43001912 */ 2185 L_43001901: 2186 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2187 eax = 0; /* 0x43001901: xor eax, eax */ 2188 _cf = 0; 2189 _flag_k = FK_TEST; 2190 L_43001903: 2191 /* test edi, edi */ /* 0x43001903: test edi, edi */ 2192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2193 _cf = 0; 2194 _flag_k = FK_TEST; 2195 L_43001905: 2196 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_43001912; /* 0x43001905: jbe 0x43001912 */ 2197 L_43001907: 2198 /* cmp MEM8(eax + ecx), 0xDDu */ /* 0x43001907: cmp byte ptr [eax + ecx], 0xdd */ 2199 _flag_a = (uint32_t)(MEM8(eax + ecx)) << 24; _flag_b = (uint32_t)(0xDDu) << 24; 2200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2201 _flag_k = FK_NARROW(FK_CMP, 24); 2202 L_4300190B: 2203 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4300194A; /* 0x4300190B: jne 0x4300194a */ 2204 L_4300190D: 2205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2206 eax = eax + 1; /* 0x4300190D: inc eax */ 2207 _flag_k = FK_INC; 2208 L_4300190E: 2209 /* cmp eax, edi */ /* 0x4300190E: cmp eax, edi */ 2210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2212 _flag_k = FK_CMP; 2213 L_43001910: 2214 RECOMP_BACKEDGE(); 2215 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_B, _cf)) goto L_43001907; /* 0x43001910: jb 0x43001907 */ 2216 L_43001912: 2217 eax = MEM32(esi + 0x4); /* 0x43001912: mov eax, dword ptr [esi + 4] */ 2218 L_43001915: 2219 if (30u) _cf = (((eax) >> 29) & 1u); /* 0x43001915: shr eax, 0x1e */ 2220 if (30u) { _flag_a = recomp_flags_pack((eax >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2221 eax = eax >> 30u; /* 0x43001915: shr eax, 0x1e */ 2222 L_43001918: 2223 /* test LO8(eax), 1 */ /* 0x43001918: test al, 1 */ 2224 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2225 _cf = 0; 2226 _flag_k = FK_NARROW(FK_TEST, 24); 2227 L_4300191A: 2228 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4300191F; /* 0x4300191A: je 0x4300191f */ 2229 L_4300191C: 2230 ecx = MEM32(esi + 0x8); /* 0x4300191C: mov ecx, dword ptr [esi + 8] */ 2231 L_4300191F: 2232 PUSH32(esp, ecx); /* 0x4300191F: push ecx */ 2233 L_43001920: 2234 RECOMP_ICALL(MEM32(0x43004040)); /* 0x43001920: call dword ptr [0x43004040] */ 2235 RECOMP_FLAGS_IN(); 2236 L_43001926: 2237 ecx = MEM32(ebp + (-0x10)); /* 0x43001926: mov ecx, dword ptr [ebp - 0x10] */ 2238 L_43001929: 2239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2241 esp = esp + 4; /* 0x43001929: add esp, 4 */ 2242 _flag_k = FK_ADD; 2243 L_4300192C: 2244 PUSH32(esp, ecx); /* 0x4300192C: push ecx */ 2245 L_4300192D: 2246 ecx = ebx + 0x20; /* 0x4300192D: lea ecx, [ebx + 0x20] */ 2247 L_43001930: 2248 RECOMP_ICALL(0x43002600u); /* 0x43001930: call 0x43002600 */ /* not lifted */ 2249 RECOMP_FLAGS_IN(); 2250 L_43001935: 2251 edx = MEM32(ebx + 0x18004C); /* 0x43001935: mov edx, dword ptr [ebx + 0x18004c] */ 2252 L_4300193B: 2253 eax = MEM32(ebx + 0x8); /* 0x4300193B: mov eax, dword ptr [ebx + 8] */ 2254 L_4300193E: 2255 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x4300193E: shl edx, 1 */ 2256 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2257 edx = edx << 1u; /* 0x4300193E: shl edx, 1 */ 2258 L_43001940: 2259 /* cmp edx, eax */ /* 0x43001940: cmp edx, eax */ 2260 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2262 _flag_k = FK_CMP; 2263 L_43001942: 2264 RECOMP_BACKEDGE(); 2265 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_4300183F; /* 0x43001942: ja 0x4300183f */ 2266 L_43001948: 2267 goto L_4300198F; /* 0x43001948: jmp 0x4300198f */ 2268 L_4300194A: 2269 /* cmp MEM32(ebp + (-0x4)), 0x64u */ /* 0x4300194A: cmp dword ptr [ebp - 4], 0x64 */ 2270 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x64u); 2271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2272 _flag_k = FK_CMP; 2273 L_4300194E: 2274 RECOMP_BACKEDGE(); 2275 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_AE, _cf)) goto L_4300192C; /* 0x4300194E: jae 0x4300192c */ 2276 L_43001950: 2277 eax = MEM32(ebp + (-0x14)); /* 0x43001950: mov eax, dword ptr [ebp - 0x14] */ 2278 L_43001953: 2279 edi = MEM32(esi); /* 0x43001953: mov edi, dword ptr [esi] */ 2280 L_43001955: 2281 edx = eax; /* 0x43001955: mov edx, eax */ 2282 L_43001957: 2283 MEM32(edx) = edi; /* 0x43001957: mov dword ptr [edx], edi */ 2284 L_43001959: 2285 edi = MEM32(esi + 0x4); /* 0x43001959: mov edi, dword ptr [esi + 4] */ 2286 L_4300195C: 2287 MEM32(edx + 0x4) = edi; /* 0x4300195C: mov dword ptr [edx + 4], edi */ 2288 L_4300195F: 2289 edi = MEM32(esi + 0x8); /* 0x4300195F: mov edi, dword ptr [esi + 8] */ 2290 L_43001962: 2291 MEM32(edx + 0x8) = edi; /* 0x43001962: mov dword ptr [edx + 8], edi */ 2292 L_43001965: 2293 esi = MEM32(esi + 0xC); /* 0x43001965: mov esi, dword ptr [esi + 0xc] */ 2294 L_43001968: 2295 MEM32(edx + 0xC) = esi; /* 0x43001968: mov dword ptr [edx + 0xc], esi */ 2296 L_4300196B: 2297 esi = MEM32(ebp + (-0x4)); /* 0x4300196B: mov esi, dword ptr [ebp - 4] */ 2298 L_4300196E: 2299 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2300 esi = esi + 1; /* 0x4300196E: inc esi */ 2301 _flag_k = FK_INC; 2302 L_4300196F: 2303 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 2304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2305 eax = eax + 0x10u; /* 0x4300196F: add eax, 0x10 */ 2306 _flag_k = FK_ADD; 2307 L_43001972: 2308 MEM32(ebp + (-0x4)) = esi; /* 0x43001972: mov dword ptr [ebp - 4], esi */ 2309 L_43001975: 2310 MEM32(ebp + (-0x14)) = eax; /* 0x43001975: mov dword ptr [ebp - 0x14], eax */ 2311 L_43001978: 2312 RECOMP_BACKEDGE(); 2313 goto L_4300192C; /* 0x43001978: jmp 0x4300192c */ 2314 L_4300197A: 2315 PUSH32(esp, edi); /* 0x4300197A: push edi */ 2316 L_4300197B: 2317 PUSH32(esp, 0x430062A8u); /* 0x4300197B: push 0x430062a8 */ 2318 L_43001980: 2319 RECOMP_ICALL(MEM32(0x43004030)); /* 0x43001980: call dword ptr [0x43004030] */ 2320 RECOMP_FLAGS_IN(); 2321 L_43001986: 2322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2324 esp = esp + 8; /* 0x43001986: add esp, 8 */ 2325 _flag_k = FK_ADD; 2326 L_43001989: 2327 { _itail_tgt = (uint32_t)(MEM32(0x4300403C)); goto _ljump; } 2328 L_4300198F: 2329 eax = MEM32(ebp + (-0x4)); /* 0x4300198F: mov eax, dword ptr [ebp - 4] */ 2330 L_43001992: 2331 /* test eax, eax */ /* 0x43001992: test eax, eax */ 2332 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2333 _cf = 0; 2334 _flag_k = FK_TEST; 2335 L_43001994: 2336 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001B86; /* 0x43001994: je 0x43001b86 */ 2337 L_4300199A: 2338 ebx = MEM32(0x43004030); /* 0x4300199A: mov ebx, dword ptr [0x43004030] */ 2339 L_430019A0: 2340 PUSH32(esp, eax); /* 0x430019A0: push eax */ 2341 L_430019A1: 2342 PUSH32(esp, 0x43006260u); /* 0x430019A1: push 0x43006260 */ 2343 L_430019A6: 2344 RECOMP_ICALL(ebx); /* 0x430019A6: call ebx */ 2345 RECOMP_FLAGS_IN(); 2346 L_430019A8: 2347 eax = MEM32(ebp + (-0x8)); /* 0x430019A8: mov eax, dword ptr [ebp - 8] */ 2348 L_430019AB: 2349 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2351 esp = esp + 8; /* 0x430019AB: add esp, 8 */ 2352 _flag_k = FK_ADD; 2353 L_430019AE: 2354 SET_LO8(ecx, MEM8(eax + 0x2)); /* 0x430019AE: mov cl, byte ptr [eax + 2] */ 2355 L_430019B1: 2356 /* test LO8(ecx), LO8(ecx) */ /* 0x430019B1: test cl, cl */ 2357 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2358 _cf = 0; 2359 _flag_k = FK_NARROW(FK_TEST, 24); 2360 L_430019B3: 2361 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_430019F3; /* 0x430019B3: je 0x430019f3 */ 2362 L_430019B5: 2363 edi = MEM32(ebp + (-0x4)); /* 0x430019B5: mov edi, dword ptr [ebp - 4] */ 2364 L_430019B8: 2365 /* test edi, edi */ /* 0x430019B8: test edi, edi */ 2366 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2367 _cf = 0; 2368 _flag_k = FK_TEST; 2369 L_430019BA: 2370 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_43001A14; /* 0x430019BA: jbe 0x43001a14 */ 2371 L_430019BC: 2372 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2373 esi = 0; /* 0x430019BC: xor esi, esi */ 2374 _cf = 0; 2375 _flag_k = FK_TEST; 2376 L_430019BE: 2377 eax = MEM32(ebp + esi + (-0x120C)); /* 0x430019BE: mov eax, dword ptr [ebp + esi - 0x120c] */ 2378 L_430019C5: 2379 ecx = MEM32(ebp + (-0x8)); /* 0x430019C5: mov ecx, dword ptr [ebp - 8] */ 2380 L_430019C8: 2381 PUSH32(esp, eax); /* 0x430019C8: push eax */ 2382 L_430019C9: 2383 RECOMP_ICALL(0x43001C80u); /* 0x430019C9: call 0x43001c80 */ /* not lifted */ 2384 RECOMP_FLAGS_IN(); 2385 L_430019CE: 2386 edx = MEM32(eax); /* 0x430019CE: mov edx, dword ptr [eax] */ 2387 L_430019D0: 2388 ecx = ebp + esi + (-0xBCC); /* 0x430019D0: lea ecx, [ebp + esi - 0xbcc] */ 2389 L_430019D7: 2390 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 2391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2392 esi = esi + 0x10u; /* 0x430019D7: add esi, 0x10 */ 2393 _flag_k = FK_ADD; 2394 L_430019DA: 2395 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 2396 edi = edi - 1; /* 0x430019DA: dec edi */ 2397 _flag_k = FK_DEC; 2398 L_430019DB: 2399 MEM32(ecx) = edx; /* 0x430019DB: mov dword ptr [ecx], edx */ 2400 L_430019DD: 2401 edx = MEM32(eax + 0x4); /* 0x430019DD: mov edx, dword ptr [eax + 4] */ 2402 L_430019E0: 2403 MEM32(ecx + 0x4) = edx; /* 0x430019E0: mov dword ptr [ecx + 4], edx */ 2404 L_430019E3: 2405 edx = MEM32(eax + 0x8); /* 0x430019E3: mov edx, dword ptr [eax + 8] */ 2406 L_430019E6: 2407 MEM32(ecx + 0x8) = edx; /* 0x430019E6: mov dword ptr [ecx + 8], edx */ 2408 L_430019E9: 2409 eax = MEM32(eax + 0xC); /* 0x430019E9: mov eax, dword ptr [eax + 0xc] */ 2410 L_430019EC: 2411 MEM32(ecx + 0xC) = eax; /* 0x430019EC: mov dword ptr [ecx + 0xc], eax */ 2412 L_430019EF: 2413 RECOMP_BACKEDGE(); 2414 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_430019BE; /* 0x430019EF: jne 0x430019be */ 2415 L_430019F1: 2416 goto L_43001A14; /* 0x430019F1: jmp 0x43001a14 */ 2417 L_430019F3: 2418 eax = MEM32(ebp + (-0x4)); /* 0x430019F3: mov eax, dword ptr [ebp - 4] */ 2419 L_430019F6: 2420 /* test eax, eax */ /* 0x430019F6: test eax, eax */ 2421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2422 _cf = 0; 2423 _flag_k = FK_TEST; 2424 L_430019F8: 2425 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_43001A14; /* 0x430019F8: jbe 0x43001a14 */ 2426 L_430019FA: 2427 ecx = MEM32(ebp + (-0x4)); /* 0x430019FA: mov ecx, dword ptr [ebp - 4] */ 2428 L_430019FD: 2429 eax = ebp + (-0xBC8); /* 0x430019FD: lea eax, [ebp - 0xbc8] */ 2430 L_43001A03: 2431 edi = MEM32(eax); /* 0x43001A03: mov edi, dword ptr [eax] */ 2432 L_43001A05: 2433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 2434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2435 eax = eax + 0x10u; /* 0x43001A05: add eax, 0x10 */ 2436 _flag_k = FK_ADD; 2437 L_43001A08: 2438 _flag_a = (uint32_t)((edi | 0x80000000u)); _flag_b = (uint32_t)((edi | 0x80000000u)); 2439 edi = edi | 0x80000000u; /* 0x43001A08: or edi, 0x80000000 */ 2440 _cf = 0; 2441 _flag_k = FK_TEST; 2442 L_43001A0E: 2443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2444 ecx = ecx - 1; /* 0x43001A0E: dec ecx */ 2445 _flag_k = FK_DEC; 2446 L_43001A0F: 2447 MEM32(eax + (-0x10)) = edi; /* 0x43001A0F: mov dword ptr [eax - 0x10], edi */ 2448 L_43001A12: 2449 RECOMP_BACKEDGE(); 2450 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001A03; /* 0x43001A12: jne 0x43001a03 */ 2451 L_43001A14: 2452 RECOMP_ICALL(MEM32(0x43004090)); /* 0x43001A14: call dword ptr [0x43004090] */ 2453 RECOMP_FLAGS_IN(); 2454 L_43001A1A: 2455 esi = eax; /* 0x43001A1A: mov esi, eax */ 2456 L_43001A1C: 2457 RECOMP_ICALL(0x43002AB0u); /* 0x43001A1C: call 0x43002ab0 */ /* not lifted */ 2458 RECOMP_FLAGS_IN(); 2459 L_43001A21: 2460 MEM32(ebp + (-0x10)) = eax; /* 0x43001A21: mov dword ptr [ebp - 0x10], eax */ 2461 L_43001A24: 2462 eax = MEM32(ebp + (-0x4)); /* 0x43001A24: mov eax, dword ptr [ebp - 4] */ 2463 L_43001A27: 2464 /* test eax, eax */ /* 0x43001A27: test eax, eax */ 2465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2466 _cf = 0; 2467 _flag_k = FK_TEST; 2468 L_43001A29: 2469 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_43001B86; /* 0x43001A29: jbe 0x43001b86 */ 2470 L_43001A2F: 2471 MEM32(ebp + (-0x4)) = 0; /* 0x43001A2F: mov dword ptr [ebp - 4], 0 */ 2472 L_43001A36: 2473 MEM32(ebp + (-0x14)) = eax; /* 0x43001A36: mov dword ptr [ebp - 0x14], eax */ 2474 L_43001A39: 2475 ecx = MEM32(ebp + (-0x4)); /* 0x43001A39: mov ecx, dword ptr [ebp - 4] */ 2476 L_43001A3C: 2477 edx = MEM32(0x43004048); /* 0x43001A3C: mov edx, dword ptr [0x43004048] */ 2478 L_43001A42: 2479 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x20u); 2480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2481 edx = edx + 0x20u; /* 0x43001A42: add edx, 0x20 */ 2482 _flag_k = FK_ADD; 2483 L_43001A45: 2484 eax = MEM32(ebp + ecx + (-0x1208)); /* 0x43001A45: mov eax, dword ptr [ebp + ecx - 0x1208] */ 2485 L_43001A4C: 2486 edi = ebp + ecx + (-0x120C); /* 0x43001A4C: lea edi, [ebp + ecx - 0x120c] */ 2487 L_43001A53: 2488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu); 2489 eax = eax & 0x3FFFFFFFu; /* 0x43001A53: and eax, 0x3fffffff */ 2490 _cf = 0; 2491 _flag_k = FK_TEST; 2492 L_43001A58: 2493 PUSH32(esp, edx); /* 0x43001A58: push edx */ 2494 L_43001A59: 2495 ecx = MEM32(edi); /* 0x43001A59: mov ecx, dword ptr [edi] */ 2496 L_43001A5B: 2497 PUSH32(esp, eax); /* 0x43001A5B: push eax */ 2498 L_43001A5C: 2499 PUSH32(esp, ecx); /* 0x43001A5C: push ecx */ 2500 L_43001A5D: 2501 RECOMP_ICALL(0x43001F60u); /* 0x43001A5D: call 0x43001f60 */ /* not lifted */ 2502 RECOMP_FLAGS_IN(); 2503 L_43001A62: 2504 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2506 esp = esp + 0xCu; /* 0x43001A62: add esp, 0xc */ 2507 _flag_k = FK_ADD; 2508 L_43001A65: 2509 /* test esi, esi */ /* 0x43001A65: test esi, esi */ 2510 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2511 _cf = 0; 2512 _flag_k = FK_TEST; 2513 L_43001A67: 2514 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001B62; /* 0x43001A67: je 0x43001b62 */ 2515 L_43001A6D: 2516 eax = MEM32(ebp + (-0x10)); /* 0x43001A6D: mov eax, dword ptr [ebp - 0x10] */ 2517 L_43001A70: 2518 /* test eax, eax */ /* 0x43001A70: test eax, eax */ 2519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2520 _cf = 0; 2521 _flag_k = FK_TEST; 2522 L_43001A72: 2523 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001B62; /* 0x43001A72: je 0x43001b62 */ 2524 L_43001A78: 2525 PUSH32(esp, 0x4300624Cu); /* 0x43001A78: push 0x4300624c */ 2526 L_43001A7D: 2527 RECOMP_ICALL(ebx); /* 0x43001A7D: call ebx */ 2528 RECOMP_FLAGS_IN(); 2529 L_43001A7F: 2530 ecx = MEM32(ebp + (-0x10)); /* 0x43001A7F: mov ecx, dword ptr [ebp - 0x10] */ 2531 L_43001A82: 2532 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2533 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2534 esp = esp + 4; /* 0x43001A82: add esp, 4 */ 2535 _flag_k = FK_ADD; 2536 L_43001A85: 2537 edx = ebp + (-0x1A4); /* 0x43001A85: lea edx, [ebp - 0x1a4] */ 2538 L_43001A8B: 2539 PUSH32(esp, 0x64u); /* 0x43001A8B: push 0x64 */ 2540 L_43001A8D: 2541 PUSH32(esp, edx); /* 0x43001A8D: push edx */ 2542 L_43001A8E: 2543 PUSH32(esp, edi); /* 0x43001A8E: push edi */ 2544 L_43001A8F: 2545 RECOMP_ICALL(0x43003100u); /* 0x43001A8F: call 0x43003100 */ /* not lifted */ 2546 RECOMP_FLAGS_IN(); 2547 L_43001A94: 2548 /* test eax, eax */ /* 0x43001A94: test eax, eax */ 2549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2550 _cf = 0; 2551 _flag_k = FK_TEST; 2552 L_43001A96: 2553 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_43001AD5; /* 0x43001A96: jbe 0x43001ad5 */ 2554 L_43001A98: 2555 edi = ebp + (-0x1A4); /* 0x43001A98: lea edi, [ebp - 0x1a4] */ 2556 L_43001A9E: 2557 MEM32(ebp + (-0x8)) = eax; /* 0x43001A9E: mov dword ptr [ebp - 8], eax */ 2558 L_43001AA1: 2559 edx = MEM32(edi); /* 0x43001AA1: mov edx, dword ptr [edi] */ 2560 L_43001AA3: 2561 eax = MEM32(esi); /* 0x43001AA3: mov eax, dword ptr [esi] */ 2562 L_43001AA5: 2563 PUSH32(esp, 2); /* 0x43001AA5: push 2 */ 2564 L_43001AA7: 2565 ecx = ebp + (-0x58C); /* 0x43001AA7: lea ecx, [ebp - 0x58c] */ 2566 L_43001AAD: 2567 PUSH32(esp, 0x3E8u); /* 0x43001AAD: push 0x3e8 */ 2568 L_43001AB2: 2569 PUSH32(esp, ecx); /* 0x43001AB2: push ecx */ 2570 L_43001AB3: 2571 PUSH32(esp, edx); /* 0x43001AB3: push edx */ 2572 L_43001AB4: 2573 ecx = esi; /* 0x43001AB4: mov ecx, esi */ 2574 L_43001AB6: 2575 RECOMP_ICALL(MEM32(eax)); /* 0x43001AB6: call dword ptr [eax] */ 2576 RECOMP_FLAGS_IN(); 2577 L_43001AB8: 2578 eax = ebp + (-0x58C); /* 0x43001AB8: lea eax, [ebp - 0x58c] */ 2579 L_43001ABE: 2580 PUSH32(esp, eax); /* 0x43001ABE: push eax */ 2581 L_43001ABF: 2582 PUSH32(esp, 0x43006244u); /* 0x43001ABF: push 0x43006244 */ 2583 L_43001AC4: 2584 RECOMP_ICALL(ebx); /* 0x43001AC4: call ebx */ 2585 RECOMP_FLAGS_IN(); 2586 L_43001AC6: 2587 eax = MEM32(ebp + (-0x8)); /* 0x43001AC6: mov eax, dword ptr [ebp - 8] */ 2588 L_43001AC9: 2589 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2591 esp = esp + 8; /* 0x43001AC9: add esp, 8 */ 2592 _flag_k = FK_ADD; 2593 L_43001ACC: 2594 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2595 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2596 edi = edi + 4; /* 0x43001ACC: add edi, 4 */ 2597 _flag_k = FK_ADD; 2598 L_43001ACF: 2599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2600 eax = eax - 1; /* 0x43001ACF: dec eax */ 2601 _flag_k = FK_DEC; 2602 L_43001AD0: 2603 MEM32(ebp + (-0x8)) = eax; /* 0x43001AD0: mov dword ptr [ebp - 8], eax */ 2604 L_43001AD3: 2605 RECOMP_BACKEDGE(); 2606 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001AA1; /* 0x43001AD3: jne 0x43001aa1 */ 2607 L_43001AD5: 2608 PUSH32(esp, 0x43006210u); /* 0x43001AD5: push 0x43006210 */ 2609 L_43001ADA: 2610 RECOMP_ICALL(MEM32(0x43004044)); /* 0x43001ADA: call dword ptr [0x43004044] */ 2611 RECOMP_FLAGS_IN(); 2612 L_43001AE0: 2613 edi = MEM32(ebp + (-0x4)); /* 0x43001AE0: mov edi, dword ptr [ebp - 4] */ 2614 L_43001AE3: 2615 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2617 esp = esp + 4; /* 0x43001AE3: add esp, 4 */ 2618 _flag_k = FK_ADD; 2619 L_43001AE6: 2620 ecx = MEM32(ebp + edi + (-0xBC8)); /* 0x43001AE6: mov ecx, dword ptr [ebp + edi - 0xbc8] */ 2621 L_43001AED: 2622 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x43001AED: shr ecx, 0x1f */ 2623 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2624 ecx = ecx >> 31u; /* 0x43001AED: shr ecx, 0x1f */ 2625 L_43001AF0: 2626 SET_LO8(ecx, ~LO8(ecx)); /* 0x43001AF0: not cl */ 2627 L_43001AF2: 2628 /* test LO8(ecx), 1 */ /* 0x43001AF2: test cl, 1 */ 2629 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 2630 _cf = 0; 2631 _flag_k = FK_NARROW(FK_TEST, 24); 2632 L_43001AF5: 2633 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43001B70; /* 0x43001AF5: je 0x43001b70 */ 2634 L_43001AF7: 2635 PUSH32(esp, 0x430061FCu); /* 0x43001AF7: push 0x430061fc */ 2636 L_43001AFC: 2637 RECOMP_ICALL(ebx); /* 0x43001AFC: call ebx */ 2638 RECOMP_FLAGS_IN(); 2639 L_43001AFE: 2640 ecx = MEM32(ebp + (-0x10)); /* 0x43001AFE: mov ecx, dword ptr [ebp - 0x10] */ 2641 L_43001B01: 2642 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2644 esp = esp + 4; /* 0x43001B01: add esp, 4 */ 2645 _flag_k = FK_ADD; 2646 L_43001B04: 2647 edx = ebp + (-0x1A4); /* 0x43001B04: lea edx, [ebp - 0x1a4] */ 2648 L_43001B0A: 2649 eax = ebp + edi + (-0xBCC); /* 0x43001B0A: lea eax, [ebp + edi - 0xbcc] */ 2650 L_43001B11: 2651 PUSH32(esp, 0x64u); /* 0x43001B11: push 0x64 */ 2652 L_43001B13: 2653 PUSH32(esp, edx); /* 0x43001B13: push edx */ 2654 L_43001B14: 2655 PUSH32(esp, eax); /* 0x43001B14: push eax */ 2656 L_43001B15: 2657 RECOMP_ICALL(0x43003100u); /* 0x43001B15: call 0x43003100 */ /* not lifted */ 2658 RECOMP_FLAGS_IN(); 2659 L_43001B1A: 2660 /* test eax, eax */ /* 0x43001B1A: test eax, eax */ 2661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2662 _cf = 0; 2663 _flag_k = FK_TEST; 2664 L_43001B1C: 2665 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_BE, _cf)) goto L_43001B5B; /* 0x43001B1C: jbe 0x43001b5b */ 2666 L_43001B1E: 2667 edi = ebp + (-0x1A4); /* 0x43001B1E: lea edi, [ebp - 0x1a4] */ 2668 L_43001B24: 2669 MEM32(ebp + (-0x8)) = eax; /* 0x43001B24: mov dword ptr [ebp - 8], eax */ 2670 L_43001B27: 2671 ecx = MEM32(edi); /* 0x43001B27: mov ecx, dword ptr [edi] */ 2672 L_43001B29: 2673 edx = MEM32(esi); /* 0x43001B29: mov edx, dword ptr [esi] */ 2674 L_43001B2B: 2675 PUSH32(esp, 2); /* 0x43001B2B: push 2 */ 2676 L_43001B2D: 2677 eax = ebp + (-0x58C); /* 0x43001B2D: lea eax, [ebp - 0x58c] */ 2678 L_43001B33: 2679 PUSH32(esp, 0x3E8u); /* 0x43001B33: push 0x3e8 */ 2680 L_43001B38: 2681 PUSH32(esp, eax); /* 0x43001B38: push eax */ 2682 L_43001B39: 2683 PUSH32(esp, ecx); /* 0x43001B39: push ecx */ 2684 L_43001B3A: 2685 ecx = esi; /* 0x43001B3A: mov ecx, esi */ 2686 L_43001B3C: 2687 RECOMP_ICALL(MEM32(edx)); /* 0x43001B3C: call dword ptr [edx] */ 2688 RECOMP_FLAGS_IN(); 2689 L_43001B3E: 2690 edx = ebp + (-0x58C); /* 0x43001B3E: lea edx, [ebp - 0x58c] */ 2691 L_43001B44: 2692 PUSH32(esp, edx); /* 0x43001B44: push edx */ 2693 L_43001B45: 2694 PUSH32(esp, 0x43006244u); /* 0x43001B45: push 0x43006244 */ 2695 L_43001B4A: 2696 RECOMP_ICALL(ebx); /* 0x43001B4A: call ebx */ 2697 RECOMP_FLAGS_IN(); 2698 L_43001B4C: 2699 eax = MEM32(ebp + (-0x8)); /* 0x43001B4C: mov eax, dword ptr [ebp - 8] */ 2700 L_43001B4F: 2701 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2702 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2703 esp = esp + 8; /* 0x43001B4F: add esp, 8 */ 2704 _flag_k = FK_ADD; 2705 L_43001B52: 2706 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2708 edi = edi + 4; /* 0x43001B52: add edi, 4 */ 2709 _flag_k = FK_ADD; 2710 L_43001B55: 2711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2712 eax = eax - 1; /* 0x43001B55: dec eax */ 2713 _flag_k = FK_DEC; 2714 L_43001B56: 2715 MEM32(ebp + (-0x8)) = eax; /* 0x43001B56: mov dword ptr [ebp - 8], eax */ 2716 L_43001B59: 2717 RECOMP_BACKEDGE(); 2718 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001B27; /* 0x43001B59: jne 0x43001b27 */ 2719 L_43001B5B: 2720 PUSH32(esp, 0x43006210u); /* 0x43001B5B: push 0x43006210 */ 2721 L_43001B60: 2722 goto L_43001B67; /* 0x43001B60: jmp 0x43001b67 */ 2723 L_43001B62: 2724 PUSH32(esp, 0x430061CCu); /* 0x43001B62: push 0x430061cc */ 2725 L_43001B67: 2726 RECOMP_ICALL(MEM32(0x43004044)); /* 0x43001B67: call dword ptr [0x43004044] */ 2727 RECOMP_FLAGS_IN(); 2728 L_43001B6D: 2729 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2731 esp = esp + 4; /* 0x43001B6D: add esp, 4 */ 2732 _flag_k = FK_ADD; 2733 L_43001B70: 2734 ecx = MEM32(ebp + (-0x4)); /* 0x43001B70: mov ecx, dword ptr [ebp - 4] */ 2735 L_43001B73: 2736 eax = MEM32(ebp + (-0x14)); /* 0x43001B73: mov eax, dword ptr [ebp - 0x14] */ 2737 L_43001B76: 2738 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 2739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2740 ecx = ecx + 0x10u; /* 0x43001B76: add ecx, 0x10 */ 2741 _flag_k = FK_ADD; 2742 L_43001B79: 2743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2744 eax = eax - 1; /* 0x43001B79: dec eax */ 2745 _flag_k = FK_DEC; 2746 L_43001B7A: 2747 MEM32(ebp + (-0x4)) = ecx; /* 0x43001B7A: mov dword ptr [ebp - 4], ecx */ 2748 L_43001B7D: 2749 MEM32(ebp + (-0x14)) = eax; /* 0x43001B7D: mov dword ptr [ebp - 0x14], eax */ 2750 L_43001B80: 2751 RECOMP_BACKEDGE(); 2752 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_43001A39; /* 0x43001B80: jne 0x43001a39 */ 2753 L_43001B86: 2754 edi = POP32_VAL(esp); /* 0x43001B86: pop edi */ 2755 L_43001B87: 2756 esi = POP32_VAL(esp); /* 0x43001B87: pop esi */ 2757 L_43001B88: 2758 ebx = POP32_VAL(esp); /* 0x43001B88: pop ebx */ 2759 L_43001B89: 2760 esp = ebp; /* 0x43001B89: mov esp, ebp */ 2761 L_43001B8B: 2762 ebp = POP32_VAL(esp); /* 0x43001B8B: pop ebp */ 2763 L_43001B8C: 2764 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001B8C: ret */ 2765 _ljump: 2766 switch (_itail_tgt) { 2767 case 0x430017B0u: goto L_430017B0; 2768 case 0x430017B1u: goto L_430017B1; 2769 case 0x430017B3u: goto L_430017B3; 2770 case 0x430017B8u: goto L_430017B8; 2771 case 0x430017BDu: goto L_430017BD; 2772 case 0x430017BEu: goto L_430017BE; 2773 case 0x430017C0u: goto L_430017C0; 2774 case 0x430017C1u: goto L_430017C1; 2775 case 0x430017C2u: goto L_430017C2; 2776 case 0x430017C8u: goto L_430017C8; 2777 case 0x430017CBu: goto L_430017CB; 2778 case 0x430017CDu: goto L_430017CD; 2779 case 0x430017D0u: goto L_430017D0; 2780 case 0x430017D6u: goto L_430017D6; 2781 case 0x430017DCu: goto L_430017DC; 2782 case 0x430017E1u: goto L_430017E1; 2783 case 0x430017E3u: goto L_430017E3; 2784 case 0x430017EAu: goto L_430017EA; 2785 case 0x430017EDu: goto L_430017ED; 2786 case 0x430017EFu: goto L_430017EF; 2787 case 0x430017F2u: goto L_430017F2; 2788 case 0x430017F5u: goto L_430017F5; 2789 case 0x430017F6u: goto L_430017F6; 2790 case 0x430017F8u: goto L_430017F8; 2791 case 0x430017FEu: goto L_430017FE; 2792 case 0x43001803u: goto L_43001803; 2793 case 0x43001805u: goto L_43001805; 2794 case 0x4300180Cu: goto L_4300180C; 2795 case 0x4300180Fu: goto L_4300180F; 2796 case 0x43001811u: goto L_43001811; 2797 case 0x43001814u: goto L_43001814; 2798 case 0x43001817u: goto L_43001817; 2799 case 0x43001818u: goto L_43001818; 2800 case 0x4300181Au: goto L_4300181A; 2801 case 0x4300181Du: goto L_4300181D; 2802 case 0x43001820u: goto L_43001820; 2803 case 0x43001823u: goto L_43001823; 2804 case 0x43001829u: goto L_43001829; 2805 case 0x4300182Bu: goto L_4300182B; 2806 case 0x4300182Du: goto L_4300182D; 2807 case 0x43001830u: goto L_43001830; 2808 case 0x43001836u: goto L_43001836; 2809 case 0x4300183Cu: goto L_4300183C; 2810 case 0x4300183Fu: goto L_4300183F; 2811 case 0x43001845u: goto L_43001845; 2812 case 0x43001847u: goto L_43001847; 2813 case 0x43001849u: goto L_43001849; 2814 case 0x4300184Bu: goto L_4300184B; 2815 case 0x43001850u: goto L_43001850; 2816 case 0x43001852u: goto L_43001852; 2817 case 0x43001854u: goto L_43001854; 2818 case 0x4300185Au: goto L_4300185A; 2819 case 0x4300185Bu: goto L_4300185B; 2820 case 0x43001861u: goto L_43001861; 2821 case 0x43001866u: goto L_43001866; 2822 case 0x43001868u: goto L_43001868; 2823 case 0x4300186Au: goto L_4300186A; 2824 case 0x4300186Cu: goto L_4300186C; 2825 case 0x43001871u: goto L_43001871; 2826 case 0x43001873u: goto L_43001873; 2827 case 0x43001875u: goto L_43001875; 2828 case 0x43001878u: goto L_43001878; 2829 case 0x4300187Au: goto L_4300187A; 2830 case 0x4300187Du: goto L_4300187D; 2831 case 0x43001880u: goto L_43001880; 2832 case 0x43001882u: goto L_43001882; 2833 case 0x43001887u: goto L_43001887; 2834 case 0x4300188Cu: goto L_4300188C; 2835 case 0x43001891u: goto L_43001891; 2836 case 0x43001893u: goto L_43001893; 2837 case 0x43001898u: goto L_43001898; 2838 case 0x4300189Eu: goto L_4300189E; 2839 case 0x430018A0u: goto L_430018A0; 2840 case 0x430018A6u: goto L_430018A6; 2841 case 0x430018A9u: goto L_430018A9; 2842 case 0x430018ABu: goto L_430018AB; 2843 case 0x430018ADu: goto L_430018AD; 2844 case 0x430018B3u: goto L_430018B3; 2845 case 0x430018B5u: goto L_430018B5; 2846 case 0x430018B7u: goto L_430018B7; 2847 case 0x430018B9u: goto L_430018B9; 2848 case 0x430018BEu: goto L_430018BE; 2849 case 0x430018C0u: goto L_430018C0; 2850 case 0x430018C2u: goto L_430018C2; 2851 case 0x430018CCu: goto L_430018CC; 2852 case 0x430018CFu: goto L_430018CF; 2853 case 0x430018D1u: goto L_430018D1; 2854 case 0x430018D3u: goto L_430018D3; 2855 case 0x430018D6u: goto L_430018D6; 2856 case 0x430018DCu: goto L_430018DC; 2857 case 0x430018DEu: goto L_430018DE; 2858 case 0x430018E4u: goto L_430018E4; 2859 case 0x430018E7u: goto L_430018E7; 2860 case 0x430018E9u: goto L_430018E9; 2861 case 0x430018EBu: goto L_430018EB; 2862 case 0x430018EDu: goto L_430018ED; 2863 case 0x430018EEu: goto L_430018EE; 2864 case 0x430018EFu: goto L_430018EF; 2865 case 0x430018F4u: goto L_430018F4; 2866 case 0x430018F7u: goto L_430018F7; 2867 case 0x430018FAu: goto L_430018FA; 2868 case 0x430018FDu: goto L_430018FD; 2869 case 0x430018FFu: goto L_430018FF; 2870 case 0x43001901u: goto L_43001901; 2871 case 0x43001903u: goto L_43001903; 2872 case 0x43001905u: goto L_43001905; 2873 case 0x43001907u: goto L_43001907; 2874 case 0x4300190Bu: goto L_4300190B; 2875 case 0x4300190Du: goto L_4300190D; 2876 case 0x4300190Eu: goto L_4300190E; 2877 case 0x43001910u: goto L_43001910; 2878 case 0x43001912u: goto L_43001912; 2879 case 0x43001915u: goto L_43001915; 2880 case 0x43001918u: goto L_43001918; 2881 case 0x4300191Au: goto L_4300191A; 2882 case 0x4300191Cu: goto L_4300191C; 2883 case 0x4300191Fu: goto L_4300191F; 2884 case 0x43001920u: goto L_43001920; 2885 case 0x43001926u: goto L_43001926; 2886 case 0x43001929u: goto L_43001929; 2887 case 0x4300192Cu: goto L_4300192C; 2888 case 0x4300192Du: goto L_4300192D; 2889 case 0x43001930u: goto L_43001930; 2890 case 0x43001935u: goto L_43001935; 2891 case 0x4300193Bu: goto L_4300193B; 2892 case 0x4300193Eu: goto L_4300193E; 2893 case 0x43001940u: goto L_43001940; 2894 case 0x43001942u: goto L_43001942; 2895 case 0x43001948u: goto L_43001948; 2896 case 0x4300194Au: goto L_4300194A; 2897 case 0x4300194Eu: goto L_4300194E; 2898 case 0x43001950u: goto L_43001950; 2899 case 0x43001953u: goto L_43001953; 2900 case 0x43001955u: goto L_43001955; 2901 case 0x43001957u: goto L_43001957; 2902 case 0x43001959u: goto L_43001959; 2903 case 0x4300195Cu: goto L_4300195C; 2904 case 0x4300195Fu: goto L_4300195F; 2905 case 0x43001962u: goto L_43001962; 2906 case 0x43001965u: goto L_43001965; 2907 case 0x43001968u: goto L_43001968; 2908 case 0x4300196Bu: goto L_4300196B; 2909 case 0x4300196Eu: goto L_4300196E; 2910 case 0x4300196Fu: goto L_4300196F; 2911 case 0x43001972u: goto L_43001972; 2912 case 0x43001975u: goto L_43001975; 2913 case 0x43001978u: goto L_43001978; 2914 case 0x4300197Au: goto L_4300197A; 2915 case 0x4300197Bu: goto L_4300197B; 2916 case 0x43001980u: goto L_43001980; 2917 case 0x43001986u: goto L_43001986; 2918 case 0x43001989u: goto L_43001989; 2919 case 0x4300198Fu: goto L_4300198F; 2920 case 0x43001992u: goto L_43001992; 2921 case 0x43001994u: goto L_43001994; 2922 case 0x4300199Au: goto L_4300199A; 2923 case 0x430019A0u: goto L_430019A0; 2924 case 0x430019A1u: goto L_430019A1; 2925 case 0x430019A6u: goto L_430019A6; 2926 case 0x430019A8u: goto L_430019A8; 2927 case 0x430019ABu: goto L_430019AB; 2928 case 0x430019AEu: goto L_430019AE; 2929 case 0x430019B1u: goto L_430019B1; 2930 case 0x430019B3u: goto L_430019B3; 2931 case 0x430019B5u: goto L_430019B5; 2932 case 0x430019B8u: goto L_430019B8; 2933 case 0x430019BAu: goto L_430019BA; 2934 case 0x430019BCu: goto L_430019BC; 2935 case 0x430019BEu: goto L_430019BE; 2936 case 0x430019C5u: goto L_430019C5; 2937 case 0x430019C8u: goto L_430019C8; 2938 case 0x430019C9u: goto L_430019C9; 2939 case 0x430019CEu: goto L_430019CE; 2940 case 0x430019D0u: goto L_430019D0; 2941 case 0x430019D7u: goto L_430019D7; 2942 case 0x430019DAu: goto L_430019DA; 2943 case 0x430019DBu: goto L_430019DB; 2944 case 0x430019DDu: goto L_430019DD; 2945 case 0x430019E0u: goto L_430019E0; 2946 case 0x430019E3u: goto L_430019E3; 2947 case 0x430019E6u: goto L_430019E6; 2948 case 0x430019E9u: goto L_430019E9; 2949 case 0x430019ECu: goto L_430019EC; 2950 case 0x430019EFu: goto L_430019EF; 2951 case 0x430019F1u: goto L_430019F1; 2952 case 0x430019F3u: goto L_430019F3; 2953 case 0x430019F6u: goto L_430019F6; 2954 case 0x430019F8u: goto L_430019F8; 2955 case 0x430019FAu: goto L_430019FA; 2956 case 0x430019FDu: goto L_430019FD; 2957 case 0x43001A03u: goto L_43001A03; 2958 case 0x43001A05u: goto L_43001A05; 2959 case 0x43001A08u: goto L_43001A08; 2960 case 0x43001A0Eu: goto L_43001A0E; 2961 case 0x43001A0Fu: goto L_43001A0F; 2962 case 0x43001A12u: goto L_43001A12; 2963 case 0x43001A14u: goto L_43001A14; 2964 case 0x43001A1Au: goto L_43001A1A; 2965 case 0x43001A1Cu: goto L_43001A1C; 2966 case 0x43001A21u: goto L_43001A21; 2967 case 0x43001A24u: goto L_43001A24; 2968 case 0x43001A27u: goto L_43001A27; 2969 case 0x43001A29u: goto L_43001A29; 2970 case 0x43001A2Fu: goto L_43001A2F; 2971 case 0x43001A36u: goto L_43001A36; 2972 case 0x43001A39u: goto L_43001A39; 2973 case 0x43001A3Cu: goto L_43001A3C; 2974 case 0x43001A42u: goto L_43001A42; 2975 case 0x43001A45u: goto L_43001A45; 2976 case 0x43001A4Cu: goto L_43001A4C; 2977 case 0x43001A53u: goto L_43001A53; 2978 case 0x43001A58u: goto L_43001A58; 2979 case 0x43001A59u: goto L_43001A59; 2980 case 0x43001A5Bu: goto L_43001A5B; 2981 case 0x43001A5Cu: goto L_43001A5C; 2982 case 0x43001A5Du: goto L_43001A5D; 2983 case 0x43001A62u: goto L_43001A62; 2984 case 0x43001A65u: goto L_43001A65; 2985 case 0x43001A67u: goto L_43001A67; 2986 case 0x43001A6Du: goto L_43001A6D; 2987 case 0x43001A70u: goto L_43001A70; 2988 case 0x43001A72u: goto L_43001A72; 2989 case 0x43001A78u: goto L_43001A78; 2990 case 0x43001A7Du: goto L_43001A7D; 2991 case 0x43001A7Fu: goto L_43001A7F; 2992 case 0x43001A82u: goto L_43001A82; 2993 case 0x43001A85u: goto L_43001A85; 2994 case 0x43001A8Bu: goto L_43001A8B; 2995 case 0x43001A8Du: goto L_43001A8D; 2996 case 0x43001A8Eu: goto L_43001A8E; 2997 case 0x43001A8Fu: goto L_43001A8F; 2998 case 0x43001A94u: goto L_43001A94; 2999 case 0x43001A96u: goto L_43001A96; 3000 case 0x43001A98u: goto L_43001A98; 3001 case 0x43001A9Eu: goto L_43001A9E; 3002 case 0x43001AA1u: goto L_43001AA1; 3003 case 0x43001AA3u: goto L_43001AA3; 3004 case 0x43001AA5u: goto L_43001AA5; 3005 case 0x43001AA7u: goto L_43001AA7; 3006 case 0x43001AADu: goto L_43001AAD; 3007 case 0x43001AB2u: goto L_43001AB2; 3008 case 0x43001AB3u: goto L_43001AB3; 3009 case 0x43001AB4u: goto L_43001AB4; 3010 case 0x43001AB6u: goto L_43001AB6; 3011 case 0x43001AB8u: goto L_43001AB8; 3012 case 0x43001ABEu: goto L_43001ABE; 3013 case 0x43001ABFu: goto L_43001ABF; 3014 case 0x43001AC4u: goto L_43001AC4; 3015 case 0x43001AC6u: goto L_43001AC6; 3016 case 0x43001AC9u: goto L_43001AC9; 3017 case 0x43001ACCu: goto L_43001ACC; 3018 case 0x43001ACFu: goto L_43001ACF; 3019 case 0x43001AD0u: goto L_43001AD0; 3020 case 0x43001AD3u: goto L_43001AD3; 3021 case 0x43001AD5u: goto L_43001AD5; 3022 case 0x43001ADAu: goto L_43001ADA; 3023 case 0x43001AE0u: goto L_43001AE0; 3024 case 0x43001AE3u: goto L_43001AE3; 3025 case 0x43001AE6u: goto L_43001AE6; 3026 case 0x43001AEDu: goto L_43001AED; 3027 case 0x43001AF0u: goto L_43001AF0; 3028 case 0x43001AF2u: goto L_43001AF2; 3029 case 0x43001AF5u: goto L_43001AF5; 3030 case 0x43001AF7u: goto L_43001AF7; 3031 case 0x43001AFCu: goto L_43001AFC; 3032 case 0x43001AFEu: goto L_43001AFE; 3033 case 0x43001B01u: goto L_43001B01; 3034 case 0x43001B04u: goto L_43001B04; 3035 case 0x43001B0Au: goto L_43001B0A; 3036 case 0x43001B11u: goto L_43001B11; 3037 case 0x43001B13u: goto L_43001B13; 3038 case 0x43001B14u: goto L_43001B14; 3039 case 0x43001B15u: goto L_43001B15; 3040 case 0x43001B1Au: goto L_43001B1A; 3041 case 0x43001B1Cu: goto L_43001B1C; 3042 case 0x43001B1Eu: goto L_43001B1E; 3043 case 0x43001B24u: goto L_43001B24; 3044 case 0x43001B27u: goto L_43001B27; 3045 case 0x43001B29u: goto L_43001B29; 3046 case 0x43001B2Bu: goto L_43001B2B; 3047 case 0x43001B2Du: goto L_43001B2D; 3048 case 0x43001B33u: goto L_43001B33; 3049 case 0x43001B38u: goto L_43001B38; 3050 case 0x43001B39u: goto L_43001B39; 3051 case 0x43001B3Au: goto L_43001B3A; 3052 case 0x43001B3Cu: goto L_43001B3C; 3053 case 0x43001B3Eu: goto L_43001B3E; 3054 case 0x43001B44u: goto L_43001B44; 3055 case 0x43001B45u: goto L_43001B45; 3056 case 0x43001B4Au: goto L_43001B4A; 3057 case 0x43001B4Cu: goto L_43001B4C; 3058 case 0x43001B4Fu: goto L_43001B4F; 3059 case 0x43001B52u: goto L_43001B52; 3060 case 0x43001B55u: goto L_43001B55; 3061 case 0x43001B56u: goto L_43001B56; 3062 case 0x43001B59u: goto L_43001B59; 3063 case 0x43001B5Bu: goto L_43001B5B; 3064 case 0x43001B60u: goto L_43001B60; 3065 case 0x43001B62u: goto L_43001B62; 3066 case 0x43001B67u: goto L_43001B67; 3067 case 0x43001B6Du: goto L_43001B6D; 3068 case 0x43001B70u: goto L_43001B70; 3069 case 0x43001B73u: goto L_43001B73; 3070 case 0x43001B76u: goto L_43001B76; 3071 case 0x43001B79u: goto L_43001B79; 3072 case 0x43001B7Au: goto L_43001B7A; 3073 case 0x43001B7Du: goto L_43001B7D; 3074 case 0x43001B80u: goto L_43001B80; 3075 case 0x43001B86u: goto L_43001B86; 3076 case 0x43001B87u: goto L_43001B87; 3077 case 0x43001B88u: goto L_43001B88; 3078 case 0x43001B89u: goto L_43001B89; 3079 case 0x43001B8Bu: goto L_43001B8B; 3080 case 0x43001B8Cu: goto L_43001B8C; 3081 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3082 } 3083 RECOMP_REGS_OUT(); 3084 } 3085 3086 void sub_43001B90(void) { 3087 int _fpu_cmp = 0; 3088 uint32_t _cf = 0; 3089 int _df = 1; 3090 uint32_t _flag_k = FK_NONE; 3091 uint32_t _flag_a = 0, _flag_b = 0; 3092 uint32_t _itail_tgt = 0; 3093 RECOMP_REGS_LOCALS 3094 RECOMP_ENTER(0x43001B90u); 3095 3096 L_43001B90: 3097 PUSH32(esp, ebp); /* 0x43001B90: push ebp */ 3098 ebp = esp; /* 0x43001B91: mov ebp, esp */ 3099 eax = MEM32(ebp + 0x8); /* 0x43001B93: mov eax, dword ptr [ebp + 8] */ 3100 PUSH32(esp, eax); /* 0x43001B96: push eax */ 3101 RECOMP_ICALL(MEM32(0x43004020)); /* 0x43001B97: call dword ptr [0x43004020] */ 3102 RECOMP_FLAGS_IN(); 3103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3105 esp = esp + 4; /* 0x43001B9D: add esp, 4 */ 3106 _flag_k = FK_ADD; 3107 ebp = POP32_VAL(esp); /* 0x43001BA0: pop ebp */ 3108 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001BA1: ret */ 3109 RECOMP_REGS_OUT(); 3110 } 3111 3112 void sub_43001BB0(void) { 3113 int _fpu_cmp = 0; 3114 uint32_t _cf = 0; 3115 int _df = 1; 3116 uint32_t _flag_k = FK_NONE; 3117 uint32_t _flag_a = 0, _flag_b = 0; 3118 uint32_t _itail_tgt = 0; 3119 RECOMP_REGS_LOCALS 3120 RECOMP_ENTER(0x43001BB0u); 3121 3122 L_43001BB0: 3123 PUSH32(esp, ebp); /* 0x43001BB0: push ebp */ 3124 ebp = esp; /* 0x43001BB1: mov ebp, esp */ 3125 eax = MEM32(ebp + 0x8); /* 0x43001BB3: mov eax, dword ptr [ebp + 8] */ 3126 PUSH32(esp, eax); /* 0x43001BB6: push eax */ 3127 RECOMP_ICALL(MEM32(0x43004040)); /* 0x43001BB7: call dword ptr [0x43004040] */ 3128 RECOMP_FLAGS_IN(); 3129 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3130 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3131 esp = esp + 4; /* 0x43001BBD: add esp, 4 */ 3132 _flag_k = FK_ADD; 3133 ebp = POP32_VAL(esp); /* 0x43001BC0: pop ebp */ 3134 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001BC1: ret */ 3135 RECOMP_REGS_OUT(); 3136 } 3137 3138 void sub_43001BD0(void) { 3139 int _fpu_cmp = 0; 3140 uint32_t _cf = 0; 3141 int _df = 1; 3142 uint32_t _flag_k = FK_NONE; 3143 uint32_t _flag_a = 0, _flag_b = 0; 3144 uint32_t _itail_tgt = 0; 3145 RECOMP_REGS_LOCALS 3146 RECOMP_ENTER(0x43001BD0u); 3147 3148 L_43001BD0: 3149 PUSH32(esp, ebp); /* 0x43001BD0: push ebp */ 3150 ebp = esp; /* 0x43001BD1: mov ebp, esp */ 3151 eax = MEM32(ebp + 0xC); /* 0x43001BD3: mov eax, dword ptr [ebp + 0xc] */ 3152 ecx = MEM32(ebp + 0x8); /* 0x43001BD6: mov ecx, dword ptr [ebp + 8] */ 3153 PUSH32(esp, eax); /* 0x43001BD9: push eax */ 3154 PUSH32(esp, ecx); /* 0x43001BDA: push ecx */ 3155 RECOMP_ICALL(MEM32(0x43004050)); /* 0x43001BDB: call dword ptr [0x43004050] */ 3156 RECOMP_FLAGS_IN(); 3157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3159 esp = esp + 8; /* 0x43001BE1: add esp, 8 */ 3160 _flag_k = FK_ADD; 3161 ebp = POP32_VAL(esp); /* 0x43001BE4: pop ebp */ 3162 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001BE5: ret */ 3163 RECOMP_REGS_OUT(); 3164 } 3165 3166 void sub_43001BF0(void) { 3167 int _fpu_cmp = 0; 3168 uint32_t _cf = 0; 3169 int _df = 1; 3170 uint32_t _flag_k = FK_NONE; 3171 uint32_t _flag_a = 0, _flag_b = 0; 3172 uint32_t _itail_tgt = 0; 3173 RECOMP_REGS_LOCALS 3174 RECOMP_ENTER(0x43001BF0u); 3175 3176 L_43001BF0: 3177 PUSH32(esp, ebp); /* 0x43001BF0: push ebp */ 3178 ebp = esp; /* 0x43001BF1: mov ebp, esp */ 3179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3E8u); 3180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3181 esp = esp - 0x3E8u; /* 0x43001BF3: sub esp, 0x3e8 */ 3182 _flag_k = FK_CMP; 3183 PUSH32(esp, ebx); /* 0x43001BF9: push ebx */ 3184 PUSH32(esp, esi); /* 0x43001BFA: push esi */ 3185 esi = MEM32(ebp + 0x8); /* 0x43001BFB: mov esi, dword ptr [ebp + 8] */ 3186 PUSH32(esp, edi); /* 0x43001BFE: push edi */ 3187 /* test esi, esi */ /* 0x43001BFF: test esi, esi */ 3188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3189 _cf = 0; 3190 _flag_k = FK_TEST; 3191 if (TEST_Z(_flag_a, _flag_b)) goto L_43001C55; /* 0x43001C01: je 0x43001c55 */ 3192 L_43001C03: 3193 ebx = MEM32(ebp + 0xC); /* 0x43001C03: mov ebx, dword ptr [ebp + 0xc] */ 3194 /* test ebx, ebx */ /* 0x43001C06: test ebx, ebx */ 3195 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3196 _cf = 0; 3197 _flag_k = FK_TEST; 3198 if (TEST_Z(_flag_a, _flag_b)) goto L_43001C55; /* 0x43001C08: je 0x43001c55 */ 3199 L_43001C0A: 3200 RECOMP_ICALL(MEM32(0x43004090)); /* 0x43001C0A: call dword ptr [0x43004090] */ 3201 RECOMP_FLAGS_IN(); 3202 edi = eax; /* 0x43001C10: mov edi, eax */ 3203 /* test edi, edi */ /* 0x43001C12: test edi, edi */ 3204 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3205 _cf = 0; 3206 _flag_k = FK_TEST; 3207 if (TEST_Z(_flag_a, _flag_b)) goto L_43001C55; /* 0x43001C14: je 0x43001c55 */ 3208 L_43001C16: 3209 /* test ebx, ebx */ /* 0x43001C16: test ebx, ebx */ 3210 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3211 _cf = 0; 3212 _flag_k = FK_TEST; 3213 if (TEST_Z(_flag_a, _flag_b)) goto L_43001C47; /* 0x43001C18: jbe 0x43001c47 */ 3214 L_43001C1A: 3215 edx = MEM32(esi); /* 0x43001C1A: mov edx, dword ptr [esi] */ 3216 eax = MEM32(edi); /* 0x43001C1C: mov eax, dword ptr [edi] */ 3217 PUSH32(esp, 2); /* 0x43001C1E: push 2 */ 3218 ecx = ebp + (-0x3E8); /* 0x43001C20: lea ecx, [ebp - 0x3e8] */ 3219 PUSH32(esp, 0x3E8u); /* 0x43001C26: push 0x3e8 */ 3220 PUSH32(esp, ecx); /* 0x43001C2B: push ecx */ 3221 PUSH32(esp, edx); /* 0x43001C2C: push edx */ 3222 ecx = edi; /* 0x43001C2D: mov ecx, edi */ 3223 RECOMP_ICALL(MEM32(eax)); /* 0x43001C2F: call dword ptr [eax] */ 3224 RECOMP_FLAGS_IN(); 3225 eax = ebp + (-0x3E8); /* 0x43001C31: lea eax, [ebp - 0x3e8] */ 3226 PUSH32(esp, eax); /* 0x43001C37: push eax */ 3227 RECOMP_ICALL(MEM32(0x43004044)); /* 0x43001C38: call dword ptr [0x43004044] */ 3228 RECOMP_FLAGS_IN(); 3229 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3230 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3231 esp = esp + 4; /* 0x43001C3E: add esp, 4 */ 3232 _flag_k = FK_ADD; 3233 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3235 esi = esi + 4; /* 0x43001C41: add esi, 4 */ 3236 _flag_k = FK_ADD; 3237 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 3238 ebx = ebx - 1; /* 0x43001C44: dec ebx */ 3239 _flag_k = FK_DEC; 3240 RECOMP_BACKEDGE(); 3241 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_43001C1A; /* 0x43001C45: jne 0x43001c1a */ 3242 L_43001C47: 3243 PUSH32(esp, 0x430062B4u); /* 0x43001C47: push 0x430062b4 */ 3244 RECOMP_ICALL(MEM32(0x43004044)); /* 0x43001C4C: call dword ptr [0x43004044] */ 3245 RECOMP_FLAGS_IN(); 3246 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3247 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3248 esp = esp + 4; /* 0x43001C52: add esp, 4 */ 3249 _flag_k = FK_ADD; 3250 L_43001C55: 3251 edi = POP32_VAL(esp); /* 0x43001C55: pop edi */ 3252 esi = POP32_VAL(esp); /* 0x43001C56: pop esi */ 3253 ebx = POP32_VAL(esp); /* 0x43001C57: pop ebx */ 3254 esp = ebp; /* 0x43001C58: mov esp, ebp */ 3255 ebp = POP32_VAL(esp); /* 0x43001C5A: pop ebp */ 3256 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001C5B: ret */ 3257 RECOMP_REGS_OUT(); 3258 } 3259 3260 void sub_43001C60(void) { 3261 int _fpu_cmp = 0; 3262 uint32_t _cf = 0; 3263 int _df = 1; 3264 uint32_t _flag_k = FK_NONE; 3265 uint32_t _flag_a = 0, _flag_b = 0; 3266 uint32_t _itail_tgt = 0; 3267 RECOMP_REGS_LOCALS 3268 RECOMP_ENTER(0x43001C60u); 3269 3270 L_43001C60: 3271 PUSH32(esp, ebp); /* 0x43001C60: push ebp */ 3272 ebp = esp; /* 0x43001C61: mov ebp, esp */ 3273 eax = MEM32(ebp + 0x8); /* 0x43001C63: mov eax, dword ptr [ebp + 8] */ 3274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 3275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3276 ecx = ecx + 0x20u; /* 0x43001C66: add ecx, 0x20 */ 3277 _flag_k = FK_ADD; 3278 PUSH32(esp, eax); /* 0x43001C69: push eax */ 3279 RECOMP_ICALL(0x430025C0u); /* 0x43001C6A: call 0x430025c0 */ /* not lifted */ 3280 RECOMP_FLAGS_IN(); 3281 ebp = POP32_VAL(esp); /* 0x43001C6F: pop ebp */ 3282 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43001C70: ret 4 */ 3283 RECOMP_REGS_OUT(); 3284 } 3285 3286 void sub_43001C80(void) { 3287 int _fpu_cmp = 0; 3288 uint32_t _cf = 0; 3289 int _df = 1; 3290 uint32_t _flag_k = FK_NONE; 3291 uint32_t _flag_a = 0, _flag_b = 0; 3292 uint32_t _itail_tgt = 0; 3293 RECOMP_REGS_LOCALS 3294 RECOMP_ENTER(0x43001C80u); 3295 3296 L_43001C80: 3297 PUSH32(esp, ebp); /* 0x43001C80: push ebp */ 3298 ebp = esp; /* 0x43001C81: mov ebp, esp */ 3299 eax = MEM32(ebp + 0x8); /* 0x43001C83: mov eax, dword ptr [ebp + 8] */ 3300 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x000C0020u); 3301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3302 ecx = ecx + 0x000C0020u; /* 0x43001C86: add ecx, 0xc0020 */ 3303 _flag_k = FK_ADD; 3304 PUSH32(esp, eax); /* 0x43001C8C: push eax */ 3305 RECOMP_ICALL(0x430025C0u); /* 0x43001C8D: call 0x430025c0 */ /* not lifted */ 3306 RECOMP_FLAGS_IN(); 3307 ebp = POP32_VAL(esp); /* 0x43001C92: pop ebp */ 3308 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43001C93: ret 4 */ 3309 RECOMP_REGS_OUT(); 3310 } 3311 3312 void sub_43001CA0(void) { 3313 int _fpu_cmp = 0; 3314 uint32_t _cf = 0; 3315 int _df = 1; 3316 uint32_t _flag_k = FK_NONE; 3317 uint32_t _flag_a = 0, _flag_b = 0; 3318 uint32_t _itail_tgt = 0; 3319 RECOMP_REGS_LOCALS 3320 RECOMP_ENTER(0x43001CA0u); 3321 3322 L_43001CA0: 3323 PUSH32(esp, ebp); /* 0x43001CA0: push ebp */ 3324 ebp = esp; /* 0x43001CA1: mov ebp, esp */ 3325 eax = MEM32(ebp + 0x8); /* 0x43001CA3: mov eax, dword ptr [ebp + 8] */ 3326 /* test eax, eax */ /* 0x43001CA6: test eax, eax */ 3327 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3328 _cf = 0; 3329 _flag_k = FK_TEST; 3330 SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x43001CA8: seta dl */ 3331 MEM8(ecx + 0x3) = (uint8_t)(LO8(edx)); /* 0x43001CAB: mov byte ptr [ecx + 3], dl */ 3332 PUSH32(esp, eax); /* 0x43001CAE: push eax */ 3333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x00180030u); 3334 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3335 ecx = ecx + 0x00180030u; /* 0x43001CAF: add ecx, 0x180030 */ 3336 _flag_k = FK_ADD; 3337 RECOMP_ICALL(0x43002790u); /* 0x43001CB5: call 0x43002790 */ /* not lifted */ 3338 RECOMP_FLAGS_IN(); 3339 ebp = POP32_VAL(esp); /* 0x43001CBA: pop ebp */ 3340 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43001CBB: ret 4 */ 3341 RECOMP_REGS_OUT(); 3342 } 3343 3344 void sub_43001CC0(void) { 3345 int _fpu_cmp = 0; 3346 uint32_t _cf = 0; 3347 int _df = 1; 3348 uint32_t _flag_k = FK_NONE; 3349 uint32_t _flag_a = 0, _flag_b = 0; 3350 uint32_t _itail_tgt = 0; 3351 RECOMP_REGS_LOCALS 3352 RECOMP_ENTER(0x43001CC0u); 3353 3354 L_43001CC0: 3355 PUSH32(esp, ebp); /* 0x43001CC0: push ebp */ 3356 ebp = esp; /* 0x43001CC1: mov ebp, esp */ 3357 PUSH32(esp, 0xFFFFFFFFu); /* 0x43001CC3: push -1 */ 3358 PUSH32(esp, 0x43003848u); /* 0x43001CC5: push 0x43003848 */ 3359 eax = MEM32(FS_BASE + (0)); /* 0x43001CCA: mov eax, dword ptr fs:[0] */ 3360 PUSH32(esp, eax); /* 0x43001CD0: push eax */ 3361 MEM32(FS_BASE + (0)) = esp; /* 0x43001CD1: mov dword ptr fs:[0], esp */ 3362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x590u); 3363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3364 esp = esp - 0x590u; /* 0x43001CD8: sub esp, 0x590 */ 3365 _flag_k = FK_CMP; 3366 PUSH32(esp, ebx); /* 0x43001CDE: push ebx */ 3367 PUSH32(esp, esi); /* 0x43001CDF: push esi */ 3368 PUSH32(esp, edi); /* 0x43001CE0: push edi */ 3369 edi = ecx; /* 0x43001CE1: mov edi, ecx */ 3370 SET_LO8(eax, MEM8(edi + 0x3)); /* 0x43001CE3: mov al, byte ptr [edi + 3] */ 3371 /* test LO8(eax), LO8(eax) */ /* 0x43001CE6: test al, al */ 3372 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3373 _cf = 0; 3374 _flag_k = FK_NARROW(FK_TEST, 24); 3375 if (TEST_Z(_flag_a, _flag_b)) goto L_43001F48; /* 0x43001CE8: je 0x43001f48 */ 3376 L_43001CEE: 3377 eax = MEM32(0x43004048); /* 0x43001CEE: mov eax, dword ptr [0x43004048] */ 3378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 3379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3380 eax = eax + 0x40u; /* 0x43001CF3: add eax, 0x40 */ 3381 _flag_k = FK_ADD; 3382 PUSH32(esp, eax); /* 0x43001CF6: push eax */ 3383 PUSH32(esp, 0x43006438u); /* 0x43001CF7: push 0x43006438 */ 3384 RECOMP_ICALL(MEM32(0x4300405C)); /* 0x43001CFC: call dword ptr [0x4300405c] */ 3385 RECOMP_FLAGS_IN(); 3386 ecx = MEM32(0x43004048); /* 0x43001D02: mov ecx, dword ptr [0x43004048] */ 3387 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 3388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3389 ecx = ecx + 0x40u; /* 0x43001D08: add ecx, 0x40 */ 3390 _flag_k = FK_ADD; 3391 PUSH32(esp, ecx); /* 0x43001D0B: push ecx */ 3392 RECOMP_ICALL(MEM32(0x43004058)); /* 0x43001D0C: call dword ptr [0x43004058] */ 3393 RECOMP_FLAGS_IN(); 3394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3396 esp = esp + 0xCu; /* 0x43001D12: add esp, 0xc */ 3397 _flag_k = FK_ADD; 3398 RECOMP_ICALL(MEM32(0x43004090)); /* 0x43001D15: call dword ptr [0x43004090] */ 3399 RECOMP_FLAGS_IN(); 3400 ebx = edi + 0x180050; /* 0x43001D1B: lea ebx, [edi + 0x180050] */ 3401 PUSH32(esp, 0); /* 0x43001D21: push 0 */ 3402 ecx = ebx; /* 0x43001D23: mov ecx, ebx */ 3403 MEM32(ebp + (-0x14)) = eax; /* 0x43001D25: mov dword ptr [ebp - 0x14], eax */ 3404 MEM32(ebp + (-0x24)) = ebx; /* 0x43001D28: mov dword ptr [ebp - 0x24], ebx */ 3405 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x43001D2B: call dword ptr [0x4300407c] */ 3406 RECOMP_FLAGS_IN(); 3407 esi = eax; /* 0x43001D31: mov esi, eax */ 3408 MEM32(ebp + (-0x20)) = esi; /* 0x43001D33: mov dword ptr [ebp - 0x20], esi */ 3409 SET_LO8(eax, MEM8(0x4300672C)); /* 0x43001D36: mov al, byte ptr [0x4300672c] */ 3410 MEM32(ebp + (-0x4)) = 0; /* 0x43001D3B: mov dword ptr [ebp - 4], 0 */ 3411 /* test LO8(eax), LO8(eax) */ /* 0x43001D42: test al, al */ 3412 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3413 _cf = 0; 3414 _flag_k = FK_NARROW(FK_TEST, 24); 3415 if (TEST_Z(_flag_a, _flag_b)) goto L_43001D5D; /* 0x43001D44: je 0x43001d5d */ 3416 L_43001D46: 3417 edx = MEM32(0x43004048); /* 0x43001D46: mov edx, dword ptr [0x43004048] */ 3418 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u); 3419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3420 edx = edx + 0x40u; /* 0x43001D4C: add edx, 0x40 */ 3421 _flag_k = FK_ADD; 3422 PUSH32(esp, edx); /* 0x43001D4F: push edx */ 3423 PUSH32(esp, 0x43006408u); /* 0x43001D50: push 0x43006408 */ 3424 RECOMP_ICALL(MEM32(0x4300405C)); /* 0x43001D55: call dword ptr [0x4300405c] */ 3425 RECOMP_FLAGS_IN(); 3426 goto L_43001D98; /* 0x43001D5B: jmp 0x43001d98 */ 3427 L_43001D5D: 3428 eax = MEM32(ebp + (-0x14)); /* 0x43001D5D: mov eax, dword ptr [ebp - 0x14] */ 3429 /* test eax, eax */ /* 0x43001D60: test eax, eax */ 3430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3431 _cf = 0; 3432 _flag_k = FK_TEST; 3433 if (TEST_NZ(_flag_a, _flag_b)) goto L_43001D7A; /* 0x43001D62: jne 0x43001d7a */ 3434 L_43001D64: 3435 eax = MEM32(0x43004048); /* 0x43001D64: mov eax, dword ptr [0x43004048] */ 3436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 3437 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3438 eax = eax + 0x40u; /* 0x43001D69: add eax, 0x40 */ 3439 _flag_k = FK_ADD; 3440 PUSH32(esp, eax); /* 0x43001D6C: push eax */ 3441 PUSH32(esp, 0x430063CCu); /* 0x43001D6D: push 0x430063cc */ 3442 RECOMP_ICALL(MEM32(0x4300405C)); /* 0x43001D72: call dword ptr [0x4300405c] */ 3443 RECOMP_FLAGS_IN(); 3444 goto L_43001D98; /* 0x43001D78: jmp 0x43001d98 */ 3445 L_43001D7A: 3446 RECOMP_ICALL(0x43002AB0u); /* 0x43001D7A: call 0x43002ab0 */ /* not lifted */ 3447 RECOMP_FLAGS_IN(); 3448 /* test eax, eax */ /* 0x43001D7F: test eax, eax */ 3449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3450 _cf = 0; 3451 _flag_k = FK_TEST; 3452 if (TEST_NZ(_flag_a, _flag_b)) goto L_43001DC4; /* 0x43001D81: jne 0x43001dc4 */ 3453 L_43001D83: 3454 ecx = MEM32(0x43004048); /* 0x43001D83: mov ecx, dword ptr [0x43004048] */ 3455 PUSH32(esp, 0x4300638Cu); /* 0x43001D89: push 0x4300638c */ 3456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 3457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3458 ecx = ecx + 0x40u; /* 0x43001D8E: add ecx, 0x40 */ 3459 _flag_k = FK_ADD; 3460 PUSH32(esp, ecx); /* 0x43001D91: push ecx */ 3461 RECOMP_ICALL(MEM32(0x43004054)); /* 0x43001D92: call dword ptr [0x43004054] */ 3462 RECOMP_FLAGS_IN(); 3463 L_43001D98: 3464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3466 esp = esp + 8; /* 0x43001D98: add esp, 8 */ 3467 _flag_k = FK_ADD; 3468 /* cmp esi, 0xFFFFFFFFu */ /* 0x43001D9B: cmp esi, -1 */ 3469 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3471 _flag_k = FK_CMP; 3472 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43001D9E: mov dword ptr [ebp - 4], 0xffffffff */ 3473 if (CMP_EQ(_flag_a, _flag_b)) goto L_43001F48; /* 0x43001DA5: je 0x43001f48 */ 3474 L_43001DAB: 3475 ecx = ebx; /* 0x43001DAB: mov ecx, ebx */ 3476 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43001DAD: call dword ptr [0x43004088] */ 3477 RECOMP_FLAGS_IN(); 3478 edi = POP32_VAL(esp); /* 0x43001DB3: pop edi */ 3479 esi = POP32_VAL(esp); /* 0x43001DB4: pop esi */ 3480 ebx = POP32_VAL(esp); /* 0x43001DB5: pop ebx */ 3481 ecx = MEM32(ebp + (-0xC)); /* 0x43001DB6: mov ecx, dword ptr [ebp - 0xc] */ 3482 MEM32(FS_BASE + (0)) = ecx; /* 0x43001DB9: mov dword ptr fs:[0], ecx */ 3483 esp = ebp; /* 0x43001DC0: mov esp, ebp */ 3484 ebp = POP32_VAL(esp); /* 0x43001DC2: pop ebp */ 3485 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001DC3: ret */ 3486 L_43001DC4: 3487 edx = MEM32(edi + 0x180038); /* 0x43001DC4: mov edx, dword ptr [edi + 0x180038] */ 3488 ecx = edi + 0x180030; /* 0x43001DCA: lea ecx, [edi + 0x180030] */ 3489 MEM32(ebp + (-0x10)) = edx; /* 0x43001DD0: mov dword ptr [ebp - 0x10], edx */ 3490 RECOMP_ICALL(0x43002880u); /* 0x43001DD3: call 0x43002880 */ /* not lifted */ 3491 RECOMP_FLAGS_IN(); 3492 /* cmp esi, 0xFFFFFFFFu */ /* 0x43001DD8: cmp esi, -1 */ 3493 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3495 _flag_k = FK_CMP; 3496 MEM32(ebp + (-0x20)) = eax; /* 0x43001DDB: mov dword ptr [ebp - 0x20], eax */ 3497 MEM8(0x4300672C) = (uint8_t)(1); /* 0x43001DDE: mov byte ptr [0x4300672c], 1 */ 3498 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43001DE5: mov dword ptr [ebp - 4], 0xffffffff */ 3499 if (CMP_EQ(_flag_a, _flag_b)) goto L_43001DF6; /* 0x43001DEC: je 0x43001df6 */ 3500 L_43001DEE: 3501 ecx = ebx; /* 0x43001DEE: mov ecx, ebx */ 3502 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43001DF0: call dword ptr [0x43004088] */ 3503 RECOMP_FLAGS_IN(); 3504 L_43001DF6: 3505 eax = MEM32(0x43006034); /* 0x43001DF6: mov eax, dword ptr [0x43006034] */ 3506 PUSH32(esp, 0x43006388u); /* 0x43001DFB: push 0x43006388 */ 3507 PUSH32(esp, eax); /* 0x43001E00: push eax */ 3508 RECOMP_ICALL(MEM32(0x43004038)); /* 0x43001E01: call dword ptr [0x43004038] */ 3509 RECOMP_FLAGS_IN(); 3510 edi = eax; /* 0x43001E07: mov edi, eax */ 3511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3513 esp = esp + 8; /* 0x43001E09: add esp, 8 */ 3514 _flag_k = FK_ADD; 3515 /* test edi, edi */ /* 0x43001E0C: test edi, edi */ 3516 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3517 _cf = 0; 3518 _flag_k = FK_TEST; 3519 if (TEST_NZ(_flag_a, _flag_b)) goto L_43001E40; /* 0x43001E0E: jne 0x43001e40 */ 3520 L_43001E10: 3521 ecx = MEM32(0x43006034); /* 0x43001E10: mov ecx, dword ptr [0x43006034] */ 3522 edx = MEM32(0x43004048); /* 0x43001E16: mov edx, dword ptr [0x43004048] */ 3523 PUSH32(esp, ecx); /* 0x43001E1C: push ecx */ 3524 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u); 3525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3526 edx = edx + 0x40u; /* 0x43001E1D: add edx, 0x40 */ 3527 _flag_k = FK_ADD; 3528 PUSH32(esp, 0x43006350u); /* 0x43001E20: push 0x43006350 */ 3529 PUSH32(esp, edx); /* 0x43001E25: push edx */ 3530 RECOMP_ICALL(MEM32(0x43004054)); /* 0x43001E26: call dword ptr [0x43004054] */ 3531 RECOMP_FLAGS_IN(); 3532 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3533 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3534 esp = esp + 0xCu; /* 0x43001E2C: add esp, 0xc */ 3535 _flag_k = FK_ADD; 3536 edi = POP32_VAL(esp); /* 0x43001E2F: pop edi */ 3537 esi = POP32_VAL(esp); /* 0x43001E30: pop esi */ 3538 ebx = POP32_VAL(esp); /* 0x43001E31: pop ebx */ 3539 ecx = MEM32(ebp + (-0xC)); /* 0x43001E32: mov ecx, dword ptr [ebp - 0xc] */ 3540 MEM32(FS_BASE + (0)) = ecx; /* 0x43001E35: mov dword ptr fs:[0], ecx */ 3541 esp = ebp; /* 0x43001E3C: mov esp, ebp */ 3542 ebp = POP32_VAL(esp); /* 0x43001E3E: pop ebp */ 3543 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001E3F: ret */ 3544 L_43001E40: 3545 eax = MEM32(ebp + (-0x10)); /* 0x43001E40: mov eax, dword ptr [ebp - 0x10] */ 3546 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3547 esi = 0; /* 0x43001E43: xor esi, esi */ 3548 _cf = 0; 3549 _flag_k = FK_TEST; 3550 /* test eax, eax */ /* 0x43001E45: test eax, eax */ 3551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3552 _cf = 0; 3553 _flag_k = FK_TEST; 3554 MEM32(ebp + (-0x18)) = esi; /* 0x43001E47: mov dword ptr [ebp - 0x18], esi */ 3555 if (TEST_Z(_flag_a, _flag_b)) goto L_43001F09; /* 0x43001E4A: jbe 0x43001f09 */ 3556 L_43001E50: 3557 eax = MEM32(ebp + (-0x20)); /* 0x43001E50: mov eax, dword ptr [ebp - 0x20] */ 3558 ebx = eax + 0x4; /* 0x43001E53: lea ebx, [eax + 4] */ 3559 L_43001E56: 3560 eax = MEM32(ebx + (-0x4)); /* 0x43001E56: mov eax, dword ptr [ebx - 4] */ 3561 /* test eax, eax */ /* 0x43001E59: test eax, eax */ 3562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3563 _cf = 0; 3564 _flag_k = FK_TEST; 3565 eax = 0x43006344u; /* 0x43001E5B: mov eax, 0x43006344 */ 3566 if (TEST_Z(_flag_a, _flag_b)) goto L_43001E67; /* 0x43001E60: je 0x43001e67 */ 3567 L_43001E62: 3568 eax = 0x43006334u; /* 0x43001E62: mov eax, 0x43006334 */ 3569 L_43001E67: 3570 ecx = MEM32(ebx + 0x8); /* 0x43001E67: mov ecx, dword ptr [ebx + 8] */ 3571 edx = MEM32(ebx); /* 0x43001E6A: mov edx, dword ptr [ebx] */ 3572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3FFFFFFFu); 3573 ecx = ecx & 0x3FFFFFFFu; /* 0x43001E6C: and ecx, 0x3fffffff */ 3574 _cf = 0; 3575 _flag_k = FK_TEST; 3576 PUSH32(esp, ecx); /* 0x43001E72: push ecx */ 3577 PUSH32(esp, edx); /* 0x43001E73: push edx */ 3578 PUSH32(esp, eax); /* 0x43001E74: push eax */ 3579 PUSH32(esp, esi); /* 0x43001E75: push esi */ 3580 PUSH32(esp, 0x43006318u); /* 0x43001E76: push 0x43006318 */ 3581 PUSH32(esp, edi); /* 0x43001E7B: push edi */ 3582 RECOMP_ICALL(MEM32(0x43004054)); /* 0x43001E7C: call dword ptr [0x43004054] */ 3583 RECOMP_FLAGS_IN(); 3584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3586 esp = esp + 0x18u; /* 0x43001E82: add esp, 0x18 */ 3587 _flag_k = FK_ADD; 3588 eax = ebp + (-0x1B4); /* 0x43001E85: lea eax, [ebp - 0x1b4] */ 3589 ecx = ebx + 0x4; /* 0x43001E8B: lea ecx, [ebx + 4] */ 3590 PUSH32(esp, 0x64u); /* 0x43001E8E: push 0x64 */ 3591 PUSH32(esp, eax); /* 0x43001E90: push eax */ 3592 PUSH32(esp, ecx); /* 0x43001E91: push ecx */ 3593 RECOMP_ICALL(0x43002AB0u); /* 0x43001E92: call 0x43002ab0 */ /* not lifted */ 3594 RECOMP_FLAGS_IN(); 3595 ecx = eax; /* 0x43001E97: mov ecx, eax */ 3596 RECOMP_ICALL(0x43003100u); /* 0x43001E99: call 0x43003100 */ /* not lifted */ 3597 RECOMP_FLAGS_IN(); 3598 /* test eax, eax */ /* 0x43001E9E: test eax, eax */ 3599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3600 _cf = 0; 3601 _flag_k = FK_TEST; 3602 if (TEST_Z(_flag_a, _flag_b)) goto L_43001EE8; /* 0x43001EA0: jbe 0x43001ee8 */ 3603 L_43001EA2: 3604 esi = ebp + (-0x1B4); /* 0x43001EA2: lea esi, [ebp - 0x1b4] */ 3605 MEM32(ebp + (-0x1C)) = eax; /* 0x43001EA8: mov dword ptr [ebp - 0x1c], eax */ 3606 L_43001EAB: 3607 ecx = MEM32(ebp + (-0x14)); /* 0x43001EAB: mov ecx, dword ptr [ebp - 0x14] */ 3608 PUSH32(esp, 2); /* 0x43001EAE: push 2 */ 3609 eax = ebp + (-0x59C); /* 0x43001EB0: lea eax, [ebp - 0x59c] */ 3610 PUSH32(esp, 0x3E8u); /* 0x43001EB6: push 0x3e8 */ 3611 edx = MEM32(ecx); /* 0x43001EBB: mov edx, dword ptr [ecx] */ 3612 PUSH32(esp, eax); /* 0x43001EBD: push eax */ 3613 eax = MEM32(esi); /* 0x43001EBE: mov eax, dword ptr [esi] */ 3614 PUSH32(esp, eax); /* 0x43001EC0: push eax */ 3615 RECOMP_ICALL(MEM32(edx)); /* 0x43001EC1: call dword ptr [edx] */ 3616 RECOMP_FLAGS_IN(); 3617 ecx = ebp + (-0x59C); /* 0x43001EC3: lea ecx, [ebp - 0x59c] */ 3618 PUSH32(esp, ecx); /* 0x43001EC9: push ecx */ 3619 PUSH32(esp, 0x43006244u); /* 0x43001ECA: push 0x43006244 */ 3620 PUSH32(esp, edi); /* 0x43001ECF: push edi */ 3621 RECOMP_ICALL(MEM32(0x43004054)); /* 0x43001ED0: call dword ptr [0x43004054] */ 3622 RECOMP_FLAGS_IN(); 3623 eax = MEM32(ebp + (-0x1C)); /* 0x43001ED6: mov eax, dword ptr [ebp - 0x1c] */ 3624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3626 esp = esp + 0xCu; /* 0x43001ED9: add esp, 0xc */ 3627 _flag_k = FK_ADD; 3628 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3630 esi = esi + 4; /* 0x43001EDC: add esi, 4 */ 3631 _flag_k = FK_ADD; 3632 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3633 eax = eax - 1; /* 0x43001EDF: dec eax */ 3634 _flag_k = FK_DEC; 3635 MEM32(ebp + (-0x1C)) = eax; /* 0x43001EE0: mov dword ptr [ebp - 0x1c], eax */ 3636 RECOMP_BACKEDGE(); 3637 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_43001EAB; /* 0x43001EE3: jne 0x43001eab */ 3638 L_43001EE5: 3639 esi = MEM32(ebp + (-0x18)); /* 0x43001EE5: mov esi, dword ptr [ebp - 0x18] */ 3640 L_43001EE8: 3641 PUSH32(esp, edi); /* 0x43001EE8: push edi */ 3642 PUSH32(esp, 0x43006210u); /* 0x43001EE9: push 0x43006210 */ 3643 RECOMP_ICALL(MEM32(0x4300405C)); /* 0x43001EEE: call dword ptr [0x4300405c] */ 3644 RECOMP_FLAGS_IN(); 3645 eax = MEM32(ebp + (-0x10)); /* 0x43001EF4: mov eax, dword ptr [ebp - 0x10] */ 3646 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3648 esp = esp + 8; /* 0x43001EF7: add esp, 8 */ 3649 _flag_k = FK_ADD; 3650 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3651 esi = esi + 1; /* 0x43001EFA: inc esi */ 3652 _flag_k = FK_INC; 3653 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x18u); 3654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3655 ebx = ebx + 0x18u; /* 0x43001EFB: add ebx, 0x18 */ 3656 _flag_k = FK_ADD; 3657 /* cmp esi, eax */ /* 0x43001EFE: cmp esi, eax */ 3658 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3660 _flag_k = FK_CMP; 3661 MEM32(ebp + (-0x18)) = esi; /* 0x43001F00: mov dword ptr [ebp - 0x18], esi */ 3662 RECOMP_BACKEDGE(); 3663 if (CMP_B(_flag_a, _flag_b)) goto L_43001E56; /* 0x43001F03: jb 0x43001e56 */ 3664 L_43001F09: 3665 PUSH32(esp, edi); /* 0x43001F09: push edi */ 3666 RECOMP_ICALL(MEM32(0x43004034)); /* 0x43001F0A: call dword ptr [0x43004034] */ 3667 RECOMP_FLAGS_IN(); 3668 edx = MEM32(ebp + (-0x20)); /* 0x43001F10: mov edx, dword ptr [ebp - 0x20] */ 3669 PUSH32(esp, edx); /* 0x43001F13: push edx */ 3670 RECOMP_ICALL(MEM32(0x43004040)); /* 0x43001F14: call dword ptr [0x43004040] */ 3671 RECOMP_FLAGS_IN(); 3672 eax = MEM32(0x43004048); /* 0x43001F1A: mov eax, dword ptr [0x43004048] */ 3673 MEM8(0x4300672C) = (uint8_t)(0); /* 0x43001F1F: mov byte ptr [0x4300672c], 0 */ 3674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 3675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3676 eax = eax + 0x40u; /* 0x43001F26: add eax, 0x40 */ 3677 _flag_k = FK_ADD; 3678 PUSH32(esp, eax); /* 0x43001F29: push eax */ 3679 PUSH32(esp, 0x430062E8u); /* 0x43001F2A: push 0x430062e8 */ 3680 RECOMP_ICALL(MEM32(0x4300405C)); /* 0x43001F2F: call dword ptr [0x4300405c] */ 3681 RECOMP_FLAGS_IN(); 3682 ecx = MEM32(0x43004048); /* 0x43001F35: mov ecx, dword ptr [0x43004048] */ 3683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 3684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3685 ecx = ecx + 0x40u; /* 0x43001F3B: add ecx, 0x40 */ 3686 _flag_k = FK_ADD; 3687 PUSH32(esp, ecx); /* 0x43001F3E: push ecx */ 3688 RECOMP_ICALL(MEM32(0x43004058)); /* 0x43001F3F: call dword ptr [0x43004058] */ 3689 RECOMP_FLAGS_IN(); 3690 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3692 esp = esp + 0x14u; /* 0x43001F45: add esp, 0x14 */ 3693 _flag_k = FK_ADD; 3694 L_43001F48: 3695 ecx = MEM32(ebp + (-0xC)); /* 0x43001F48: mov ecx, dword ptr [ebp - 0xc] */ 3696 edi = POP32_VAL(esp); /* 0x43001F4B: pop edi */ 3697 esi = POP32_VAL(esp); /* 0x43001F4C: pop esi */ 3698 ebx = POP32_VAL(esp); /* 0x43001F4D: pop ebx */ 3699 MEM32(FS_BASE + (0)) = ecx; /* 0x43001F4E: mov dword ptr fs:[0], ecx */ 3700 esp = ebp; /* 0x43001F55: mov esp, ebp */ 3701 ebp = POP32_VAL(esp); /* 0x43001F57: pop ebp */ 3702 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43001F58: ret */ 3703 RECOMP_REGS_OUT(); 3704 } 3705 3706 void sub_43001F60(void) { 3707 int _fpu_cmp = 0; 3708 uint32_t _cf = 0; 3709 int _df = 1; 3710 uint32_t _flag_k = FK_NONE; 3711 uint32_t _flag_a = 0, _flag_b = 0; 3712 uint32_t _itail_tgt = 0; 3713 RECOMP_REGS_LOCALS 3714 RECOMP_ENTER(0x43001F60u); 3715 3716 L_43001F60: 3717 PUSH32(esp, ebp); /* 0x43001F60: push ebp */ 3718 ebp = esp; /* 0x43001F61: mov ebp, esp */ 3719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 3720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3721 esp = esp - 0x5Cu; /* 0x43001F63: sub esp, 0x5c */ 3722 _flag_k = FK_CMP; 3723 eax = MEM32(ebp + 0xC); /* 0x43001F66: mov eax, dword ptr [ebp + 0xc] */ 3724 PUSH32(esp, esi); /* 0x43001F69: push esi */ 3725 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3726 esi = 0; /* 0x43001F6A: xor esi, esi */ 3727 _cf = 0; 3728 _flag_k = FK_TEST; 3729 /* test eax, eax */ /* 0x43001F6C: test eax, eax */ 3730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3731 _cf = 0; 3732 _flag_k = FK_TEST; 3733 MEM32(ebp + (-0x8)) = esi; /* 0x43001F6E: mov dword ptr [ebp - 8], esi */ 3734 if (TEST_Z(_flag_a, _flag_b)) goto L_430020E9; /* 0x43001F71: jbe 0x430020e9 */ 3735 L_43001F77: 3736 PUSH32(esp, ebx); /* 0x43001F77: push ebx */ 3737 ebx = MEM32(0x43004064); /* 0x43001F78: mov ebx, dword ptr [0x43004064] */ 3738 PUSH32(esp, edi); /* 0x43001F7E: push edi */ 3739 goto L_43001F84; /* 0x43001F7F: jmp 0x43001f84 */ 3740 L_43001F81: 3741 esi = MEM32(ebp + (-0x8)); /* 0x43001F81: mov esi, dword ptr [ebp - 8] */ 3742 L_43001F84: 3743 PUSH32(esp, esi); /* 0x43001F84: push esi */ 3744 PUSH32(esp, 4); /* 0x43001F85: push 4 */ 3745 eax = ebp + (-0x5C); /* 0x43001F87: lea eax, [ebp - 0x5c] */ 3746 PUSH32(esp, 0x4300647Cu); /* 0x43001F8A: push 0x4300647c */ 3747 PUSH32(esp, eax); /* 0x43001F8F: push eax */ 3748 MEM8(ebp + (-0x5C)) = (uint8_t)(0); /* 0x43001F90: mov byte ptr [ebp - 0x5c], 0 */ 3749 RECOMP_ICALL(ebx); /* 0x43001F94: call ebx */ 3750 RECOMP_FLAGS_IN(); 3751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3753 esp = esp + 0x10u; /* 0x43001F96: add esp, 0x10 */ 3754 _flag_k = FK_ADD; 3755 MEM32(ebp + (-0x4)) = 0; /* 0x43001F99: mov dword ptr [ebp - 4], 0 */ 3756 L_43001FA0: 3757 edx = MEM32(ebp + 0x8); /* 0x43001FA0: mov edx, dword ptr [ebp + 8] */ 3758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3759 ecx = 0; /* 0x43001FA3: xor ecx, ecx */ 3760 _cf = 0; 3761 _flag_k = FK_TEST; 3762 edi = ebp + (-0x5C); /* 0x43001FA5: lea edi, [ebp - 0x5c] */ 3763 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3764 eax = 0; /* 0x43001FA8: xor eax, eax */ 3765 _cf = 0; 3766 _flag_k = FK_TEST; 3767 SET_LO8(ecx, MEM8(esi + edx)); /* 0x43001FAA: mov cl, byte ptr [esi + edx] */ 3768 PUSH32(esp, ecx); /* 0x43001FAD: push ecx */ 3769 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3770 ecx = ecx | 0xFFFFFFFFu; /* 0x43001FAE: or ecx, 0xffffffff */ 3771 _cf = 0; 3772 _flag_k = FK_TEST; 3773 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; } /* 0x43001FB1: repne scasb al, byte ptr es:[edi] */ 3774 ecx = ~ecx; /* 0x43001FB3: not ecx */ 3775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3776 ecx = ecx - 1; /* 0x43001FB5: dec ecx */ 3777 _flag_k = FK_DEC; 3778 PUSH32(esp, 2); /* 0x43001FB6: push 2 */ 3779 PUSH32(esp, 0x43006474u); /* 0x43001FB8: push 0x43006474 */ 3780 eax = ebp + ecx + (-0x5C); /* 0x43001FBD: lea eax, [ebp + ecx - 0x5c] */ 3781 PUSH32(esp, eax); /* 0x43001FC1: push eax */ 3782 RECOMP_ICALL(ebx); /* 0x43001FC2: call ebx */ 3783 RECOMP_FLAGS_IN(); 3784 ecx = MEM32(ebp + 0xC); /* 0x43001FC4: mov ecx, dword ptr [ebp + 0xc] */ 3785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3787 esp = esp + 0x10u; /* 0x43001FC7: add esp, 0x10 */ 3788 _flag_k = FK_ADD; 3789 eax = ecx + (-0x1); /* 0x43001FCA: lea eax, [ecx - 1] */ 3790 /* cmp esi, eax */ /* 0x43001FCD: cmp esi, eax */ 3791 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3793 _flag_k = FK_CMP; 3794 eax = MEM32(ebp + (-0x4)); /* 0x43001FCF: mov eax, dword ptr [ebp - 4] */ 3795 if (CMP_AE(_flag_a, _flag_b)) goto L_43001FE0; /* 0x43001FD2: jae 0x43001fe0 */ 3796 L_43001FD4: 3797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3798 eax = eax + 1; /* 0x43001FD4: inc eax */ 3799 _flag_k = FK_INC; 3800 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3801 esi = esi + 1; /* 0x43001FD5: inc esi */ 3802 _flag_k = FK_INC; 3803 /* cmp eax, 0x10u */ /* 0x43001FD6: cmp eax, 0x10 */ 3804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3806 _flag_k = FK_CMP; 3807 MEM32(ebp + (-0x4)) = eax; /* 0x43001FD9: mov dword ptr [ebp - 4], eax */ 3808 RECOMP_BACKEDGE(); 3809 if (CMP_B(_flag_a, _flag_b)) goto L_43001FA0; /* 0x43001FDC: jb 0x43001fa0 */ 3810 L_43001FDE: 3811 goto L_43002011; /* 0x43001FDE: jmp 0x43002011 */ 3812 L_43001FE0: 3813 /* cmp eax, 0x10u */ /* 0x43001FE0: cmp eax, 0x10 */ 3814 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3816 _flag_k = FK_CMP; 3817 if (CMP_AE(_flag_a, _flag_b)) goto L_43002011; /* 0x43001FE3: jae 0x43002011 */ 3818 L_43001FE5: 3819 edx = eax + eax * 2; /* 0x43001FE5: lea edx, [eax + eax*2] */ 3820 eax = 0x2Du; /* 0x43001FE8: mov eax, 0x2d */ 3821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3823 eax = eax - edx; /* 0x43001FED: sub eax, edx */ 3824 _flag_k = FK_CMP; 3825 PUSH32(esp, 0x43006730u); /* 0x43001FEF: push 0x43006730 */ 3826 PUSH32(esp, eax); /* 0x43001FF4: push eax */ 3827 edi = ebp + (-0x5C); /* 0x43001FF5: lea edi, [ebp - 0x5c] */ 3828 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3829 ecx = ecx | 0xFFFFFFFFu; /* 0x43001FF8: or ecx, 0xffffffff */ 3830 _cf = 0; 3831 _flag_k = FK_TEST; 3832 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3833 eax = 0; /* 0x43001FFB: xor eax, eax */ 3834 _cf = 0; 3835 _flag_k = FK_TEST; 3836 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; } /* 0x43001FFD: repne scasb al, byte ptr es:[edi] */ 3837 ecx = ~ecx; /* 0x43001FFF: not ecx */ 3838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3839 ecx = ecx - 1; /* 0x43002001: dec ecx */ 3840 _flag_k = FK_DEC; 3841 PUSH32(esp, 0x43006470u); /* 0x43002002: push 0x43006470 */ 3842 ecx = ebp + ecx + (-0x5C); /* 0x43002007: lea ecx, [ebp + ecx - 0x5c] */ 3843 PUSH32(esp, ecx); /* 0x4300200B: push ecx */ 3844 RECOMP_ICALL(ebx); /* 0x4300200C: call ebx */ 3845 RECOMP_FLAGS_IN(); 3846 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3848 esp = esp + 0x10u; /* 0x4300200E: add esp, 0x10 */ 3849 _flag_k = FK_ADD; 3850 L_43002011: 3851 edi = ebp + (-0x5C); /* 0x43002011: lea edi, [ebp - 0x5c] */ 3852 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3853 ecx = ecx | 0xFFFFFFFFu; /* 0x43002014: or ecx, 0xffffffff */ 3854 _cf = 0; 3855 _flag_k = FK_TEST; 3856 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3857 eax = 0; /* 0x43002017: xor eax, eax */ 3858 _cf = 0; 3859 _flag_k = FK_TEST; 3860 PUSH32(esp, 0x4300646Cu); /* 0x43002019: push 0x4300646c */ 3861 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; } /* 0x4300201E: repne scasb al, byte ptr es:[edi] */ 3862 ecx = ~ecx; /* 0x43002020: not ecx */ 3863 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3864 ecx = ecx - 1; /* 0x43002022: dec ecx */ 3865 _flag_k = FK_DEC; 3866 edx = ebp + ecx + (-0x5C); /* 0x43002023: lea edx, [ebp + ecx - 0x5c] */ 3867 PUSH32(esp, edx); /* 0x43002027: push edx */ 3868 RECOMP_ICALL(ebx); /* 0x43002028: call ebx */ 3869 RECOMP_FLAGS_IN(); 3870 esi = MEM32(ebp + (-0x8)); /* 0x4300202A: mov esi, dword ptr [ebp - 8] */ 3871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3873 esp = esp + 8; /* 0x4300202D: add esp, 8 */ 3874 _flag_k = FK_ADD; 3875 MEM32(ebp + (-0x4)) = 0; /* 0x43002030: mov dword ptr [ebp - 4], 0 */ 3876 L_43002037: 3877 eax = MEM32(ebp + 0x8); /* 0x43002037: mov eax, dword ptr [ebp + 8] */ 3878 SET_LO8(ecx, MEM8(esi + eax)); /* 0x4300203A: mov cl, byte ptr [esi + eax] */ 3879 MEM8(ebp + (-0xC)) = (uint8_t)(LO8(ecx)); /* 0x4300203D: mov byte ptr [ebp - 0xc], cl */ 3880 edx = MEM32(ebp + (-0xC)); /* 0x43002040: mov edx, dword ptr [ebp - 0xc] */ 3881 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 3882 edx = edx & 0xFFu; /* 0x43002043: and edx, 0xff */ 3883 _cf = 0; 3884 _flag_k = FK_TEST; 3885 PUSH32(esp, edx); /* 0x43002049: push edx */ 3886 RECOMP_ICALL(MEM32(0x43004060)); /* 0x4300204A: call dword ptr [0x43004060] */ 3887 RECOMP_FLAGS_IN(); 3888 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3890 esp = esp + 4; /* 0x43002050: add esp, 4 */ 3891 _flag_k = FK_ADD; 3892 /* test eax, eax */ /* 0x43002053: test eax, eax */ 3893 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3894 _cf = 0; 3895 _flag_k = FK_TEST; 3896 SET_LO8(eax, MEM8(ebp + (-0xC))); /* 0x43002055: mov al, byte ptr [ebp - 0xc] */ 3897 if (TEST_NZ(_flag_a, _flag_b)) goto L_4300205C; /* 0x43002058: jne 0x4300205c */ 3898 L_4300205A: 3899 SET_LO8(eax, 0x2Eu); /* 0x4300205A: mov al, 0x2e */ 3900 L_4300205C: 3901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 3902 eax = eax & 0xFFu; /* 0x4300205C: and eax, 0xff */ 3903 _cf = 0; 3904 _flag_k = FK_TEST; 3905 edi = ebp + (-0x5C); /* 0x43002061: lea edi, [ebp - 0x5c] */ 3906 PUSH32(esp, eax); /* 0x43002064: push eax */ 3907 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3908 ecx = ecx | 0xFFFFFFFFu; /* 0x43002065: or ecx, 0xffffffff */ 3909 _cf = 0; 3910 _flag_k = FK_TEST; 3911 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3912 eax = 0; /* 0x43002068: xor eax, eax */ 3913 _cf = 0; 3914 _flag_k = FK_TEST; 3915 PUSH32(esp, 0x43006468u); /* 0x4300206A: push 0x43006468 */ 3916 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; } /* 0x4300206F: repne scasb al, byte ptr es:[edi] */ 3917 ecx = ~ecx; /* 0x43002071: not ecx */ 3918 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3919 ecx = ecx - 1; /* 0x43002073: dec ecx */ 3920 _flag_k = FK_DEC; 3921 eax = ebp + ecx + (-0x5C); /* 0x43002074: lea eax, [ebp + ecx - 0x5c] */ 3922 PUSH32(esp, eax); /* 0x43002078: push eax */ 3923 RECOMP_ICALL(ebx); /* 0x43002079: call ebx */ 3924 RECOMP_FLAGS_IN(); 3925 ecx = MEM32(ebp + 0xC); /* 0x4300207B: mov ecx, dword ptr [ebp + 0xc] */ 3926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3927 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3928 esp = esp + 0xCu; /* 0x4300207E: add esp, 0xc */ 3929 _flag_k = FK_ADD; 3930 eax = ecx + (-0x1); /* 0x43002081: lea eax, [ecx - 1] */ 3931 /* cmp esi, eax */ /* 0x43002084: cmp esi, eax */ 3932 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3934 _flag_k = FK_CMP; 3935 if (CMP_AE(_flag_a, _flag_b)) goto L_43002095; /* 0x43002086: jae 0x43002095 */ 3936 L_43002088: 3937 eax = MEM32(ebp + (-0x4)); /* 0x43002088: mov eax, dword ptr [ebp - 4] */ 3938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3939 eax = eax + 1; /* 0x4300208B: inc eax */ 3940 _flag_k = FK_INC; 3941 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3942 esi = esi + 1; /* 0x4300208C: inc esi */ 3943 _flag_k = FK_INC; 3944 /* cmp eax, 0x10u */ /* 0x4300208D: cmp eax, 0x10 */ 3945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3947 _flag_k = FK_CMP; 3948 MEM32(ebp + (-0x4)) = eax; /* 0x43002090: mov dword ptr [ebp - 4], eax */ 3949 RECOMP_BACKEDGE(); 3950 if (CMP_B(_flag_a, _flag_b)) goto L_43002037; /* 0x43002093: jb 0x43002037 */ 3951 L_43002095: 3952 edi = 0x43006464u; /* 0x43002095: mov edi, 0x43006464 */ 3953 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3954 ecx = ecx | 0xFFFFFFFFu; /* 0x4300209A: or ecx, 0xffffffff */ 3955 _cf = 0; 3956 _flag_k = FK_TEST; 3957 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3958 eax = 0; /* 0x4300209D: xor eax, eax */ 3959 _cf = 0; 3960 _flag_k = FK_TEST; 3961 edx = ebp + (-0x5C); /* 0x4300209F: lea edx, [ebp - 0x5c] */ 3962 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; } /* 0x430020A2: repne scasb al, byte ptr es:[edi] */ 3963 ecx = ~ecx; /* 0x430020A4: not ecx */ 3964 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3966 edi = edi - ecx; /* 0x430020A6: sub edi, ecx */ 3967 _flag_k = FK_CMP; 3968 esi = edi; /* 0x430020A8: mov esi, edi */ 3969 edi = edx; /* 0x430020AA: mov edi, edx */ 3970 edx = ecx; /* 0x430020AC: mov edx, ecx */ 3971 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3972 ecx = ecx | 0xFFFFFFFFu; /* 0x430020AE: or ecx, 0xffffffff */ 3973 _cf = 0; 3974 _flag_k = FK_TEST; 3975 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; } /* 0x430020B1: repne scasb al, byte ptr es:[edi] */ 3976 ecx = edx; /* 0x430020B3: mov ecx, edx */ 3977 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 3978 edi = edi - 1; /* 0x430020B5: dec edi */ 3979 _flag_k = FK_DEC; 3980 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x430020B6: shr ecx, 2 */ 3981 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3982 ecx = ecx >> 2u; /* 0x430020B6: shr ecx, 2 */ 3983 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x430020B9: 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; } 3984 eax = MEM32(ebp + 0x10); /* 0x430020BB: mov eax, dword ptr [ebp + 0x10] */ 3985 ecx = edx; /* 0x430020BE: mov ecx, edx */ 3986 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3987 ecx = ecx & 3; /* 0x430020C0: and ecx, 3 */ 3988 _cf = 0; 3989 _flag_k = FK_TEST; 3990 PUSH32(esp, eax); /* 0x430020C3: push eax */ 3991 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x430020C4: 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; } 3992 ecx = ebp + (-0x5C); /* 0x430020C6: lea ecx, [ebp - 0x5c] */ 3993 PUSH32(esp, ecx); /* 0x430020C9: push ecx */ 3994 RECOMP_ICALL(MEM32(0x4300405C)); /* 0x430020CA: call dword ptr [0x4300405c] */ 3995 RECOMP_FLAGS_IN(); 3996 eax = MEM32(ebp + (-0x8)); /* 0x430020D0: mov eax, dword ptr [ebp - 8] */ 3997 ecx = MEM32(ebp + 0xC); /* 0x430020D3: mov ecx, dword ptr [ebp + 0xc] */ 3998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 3999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4000 eax = eax + 0x10u; /* 0x430020D6: add eax, 0x10 */ 4001 _flag_k = FK_ADD; 4002 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4004 esp = esp + 8; /* 0x430020D9: add esp, 8 */ 4005 _flag_k = FK_ADD; 4006 /* cmp eax, ecx */ /* 0x430020DC: cmp eax, ecx */ 4007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4009 _flag_k = FK_CMP; 4010 MEM32(ebp + (-0x8)) = eax; /* 0x430020DE: mov dword ptr [ebp - 8], eax */ 4011 RECOMP_BACKEDGE(); 4012 if (CMP_B(_flag_a, _flag_b)) goto L_43001F81; /* 0x430020E1: jb 0x43001f81 */ 4013 L_430020E7: 4014 edi = POP32_VAL(esp); /* 0x430020E7: pop edi */ 4015 ebx = POP32_VAL(esp); /* 0x430020E8: pop ebx */ 4016 L_430020E9: 4017 esi = POP32_VAL(esp); /* 0x430020E9: pop esi */ 4018 esp = ebp; /* 0x430020EA: mov esp, ebp */ 4019 ebp = POP32_VAL(esp); /* 0x430020EC: pop ebp */ 4020 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430020ED: ret */ 4021 RECOMP_REGS_OUT(); 4022 } 4023 4024 void sub_430020F0(void) { 4025 int _fpu_cmp = 0; 4026 uint32_t _cf = 0; 4027 int _df = 1; 4028 uint32_t _flag_k = FK_NONE; 4029 uint32_t _flag_a = 0, _flag_b = 0; 4030 uint32_t _itail_tgt = 0; 4031 RECOMP_REGS_LOCALS 4032 RECOMP_ENTER(0x430020F0u); 4033 4034 L_430020F0: 4035 PUSH32(esp, ebp); /* 0x430020F0: push ebp */ 4036 ebp = esp; /* 0x430020F1: mov ebp, esp */ 4037 PUSH32(esp, 0xFFFFFFFFu); /* 0x430020F3: push -1 */ 4038 PUSH32(esp, 0x43003868u); /* 0x430020F5: push 0x43003868 */ 4039 eax = MEM32(FS_BASE + (0)); /* 0x430020FA: mov eax, dword ptr fs:[0] */ 4040 PUSH32(esp, eax); /* 0x43002100: push eax */ 4041 MEM32(FS_BASE + (0)) = esp; /* 0x43002101: mov dword ptr fs:[0], esp */ 4042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4044 esp = esp - 0x18u; /* 0x43002108: sub esp, 0x18 */ 4045 _flag_k = FK_CMP; 4046 PUSH32(esp, ebx); /* 0x4300210B: push ebx */ 4047 PUSH32(esp, esi); /* 0x4300210C: push esi */ 4048 PUSH32(esp, edi); /* 0x4300210D: push edi */ 4049 edi = MEM32(ebp + 0x8); /* 0x4300210E: mov edi, dword ptr [ebp + 8] */ 4050 ebx = ecx; /* 0x43002111: mov ebx, ecx */ 4051 eax = edi + 0x1FFF; /* 0x43002113: lea eax, [edi + 0x1fff] */ 4052 if (12u) _cf = (((eax) >> 11) & 1u); /* 0x43002119: shr eax, 0xc */ 4053 if (12u) { _flag_a = recomp_flags_pack((eax >> 12u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4054 eax = eax >> 12u; /* 0x43002119: shr eax, 0xc */ 4055 if (12u) _cf = (((eax) >> 20) & 1u); /* 0x4300211C: shl eax, 0xc */ 4056 if (12u) { _flag_a = recomp_flags_pack((eax << 12u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4057 eax = eax << 12u; /* 0x4300211C: shl eax, 0xc */ 4058 PUSH32(esp, eax); /* 0x4300211F: push eax */ 4059 RECOMP_ICALL(MEM32(0x43004020)); /* 0x43002120: call dword ptr [0x43004020] */ 4060 RECOMP_FLAGS_IN(); 4061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4063 esp = esp + 4; /* 0x43002126: add esp, 4 */ 4064 _flag_k = FK_ADD; 4065 esi = eax + 0xFFF; /* 0x43002129: lea esi, [eax + 0xfff] */ 4066 ecx = ebx + 0x180050; /* 0x4300212F: lea ecx, [ebx + 0x180050] */ 4067 MEM32(ebp + 0x8) = eax; /* 0x43002135: mov dword ptr [ebp + 8], eax */ 4068 PUSH32(esp, 0); /* 0x43002138: push 0 */ 4069 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFF000u); 4070 esi = esi & 0xFFFFF000u; /* 0x4300213A: and esi, 0xfffff000 */ 4071 _cf = 0; 4072 _flag_k = FK_TEST; 4073 MEM32(ebp + (-0x14)) = ecx; /* 0x43002140: mov dword ptr [ebp - 0x14], ecx */ 4074 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x43002143: call dword ptr [0x4300407c] */ 4075 RECOMP_FLAGS_IN(); 4076 MEM32(ebp + (-0x10)) = eax; /* 0x43002149: mov dword ptr [ebp - 0x10], eax */ 4077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4078 eax = 0; /* 0x4300214C: xor eax, eax */ 4079 _cf = 0; 4080 _flag_k = FK_TEST; 4081 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3FFFFFFFu); 4082 edi = edi & 0x3FFFFFFFu; /* 0x4300214E: and edi, 0x3fffffff */ 4083 _cf = 0; 4084 _flag_k = FK_TEST; 4085 ecx = ebp + (-0x24); /* 0x43002154: lea ecx, [ebp - 0x24] */ 4086 MEM32(ebp + (-0x4)) = eax; /* 0x43002157: mov dword ptr [ebp - 4], eax */ 4087 MEM32(ebp + (-0x18)) = eax; /* 0x4300215A: mov dword ptr [ebp - 0x18], eax */ 4088 eax = MEM32(ebp + 0x8); /* 0x4300215D: mov eax, dword ptr [ebp + 8] */ 4089 _flag_a = (uint32_t)((edi | 0x40000000u)); _flag_b = (uint32_t)((edi | 0x40000000u)); 4090 edi = edi | 0x40000000u; /* 0x43002160: or edi, 0x40000000 */ 4091 _cf = 0; 4092 _flag_k = FK_TEST; 4093 PUSH32(esp, ecx); /* 0x43002166: push ecx */ 4094 PUSH32(esp, esi); /* 0x43002167: push esi */ 4095 ecx = ebx + 0x20; /* 0x43002168: lea ecx, [ebx + 0x20] */ 4096 MEM32(ebp + (-0x24)) = esi; /* 0x4300216B: mov dword ptr [ebp - 0x24], esi */ 4097 MEM32(ebp + (-0x20)) = edi; /* 0x4300216E: mov dword ptr [ebp - 0x20], edi */ 4098 MEM32(ebp + (-0x1C)) = eax; /* 0x43002171: mov dword ptr [ebp - 0x1c], eax */ 4099 RECOMP_ICALL(0x43002590u); /* 0x43002174: call 0x43002590 */ /* not lifted */ 4100 RECOMP_FLAGS_IN(); 4101 RECOMP_ICALL(0x43002AB0u); /* 0x43002179: call 0x43002ab0 */ /* not lifted */ 4102 RECOMP_FLAGS_IN(); 4103 /* test eax, eax */ /* 0x4300217E: test eax, eax */ 4104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4105 _cf = 0; 4106 _flag_k = FK_TEST; 4107 if (TEST_Z(_flag_a, _flag_b)) goto L_43002192; /* 0x43002180: je 0x43002192 */ 4108 L_43002182: 4109 edx = ebp + (-0x24); /* 0x43002182: lea edx, [ebp - 0x24] */ 4110 PUSH32(esp, edx); /* 0x43002185: push edx */ 4111 RECOMP_ICALL(0x43002AB0u); /* 0x43002186: call 0x43002ab0 */ /* not lifted */ 4112 RECOMP_FLAGS_IN(); 4113 ecx = eax; /* 0x4300218B: mov ecx, eax */ 4114 RECOMP_ICALL(0x43002D40u); /* 0x4300218D: call 0x43002d40 */ /* not lifted */ 4115 RECOMP_FLAGS_IN(); 4116 L_43002192: 4117 ecx = MEM32(ebp + (-0x10)); /* 0x43002192: mov ecx, dword ptr [ebp - 0x10] */ 4118 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4119 eax = eax | 0xFFFFFFFFu; /* 0x43002195: or eax, 0xffffffff */ 4120 _cf = 0; 4121 _flag_k = FK_TEST; 4122 /* cmp ecx, eax */ /* 0x43002198: cmp ecx, eax */ 4123 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4125 _flag_k = FK_CMP; 4126 MEM32(ebp + (-0x4)) = eax; /* 0x4300219A: mov dword ptr [ebp - 4], eax */ 4127 if (CMP_EQ(_flag_a, _flag_b)) goto L_430021A8; /* 0x4300219D: je 0x430021a8 */ 4128 L_4300219F: 4129 ecx = MEM32(ebp + (-0x14)); /* 0x4300219F: mov ecx, dword ptr [ebp - 0x14] */ 4130 RECOMP_ICALL(MEM32(0x43004088)); /* 0x430021A2: call dword ptr [0x43004088] */ 4131 RECOMP_FLAGS_IN(); 4132 L_430021A8: 4133 ecx = MEM32(ebp + (-0xC)); /* 0x430021A8: mov ecx, dword ptr [ebp - 0xc] */ 4134 eax = esi; /* 0x430021AB: mov eax, esi */ 4135 edi = POP32_VAL(esp); /* 0x430021AD: pop edi */ 4136 esi = POP32_VAL(esp); /* 0x430021AE: pop esi */ 4137 ebx = POP32_VAL(esp); /* 0x430021AF: pop ebx */ 4138 MEM32(FS_BASE + (0)) = ecx; /* 0x430021B0: mov dword ptr fs:[0], ecx */ 4139 esp = ebp; /* 0x430021B7: mov esp, ebp */ 4140 ebp = POP32_VAL(esp); /* 0x430021B9: pop ebp */ 4141 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430021BA: ret 4 */ 4142 RECOMP_REGS_OUT(); 4143 } 4144 4145 void sub_430021C0(void) { 4146 int _fpu_cmp = 0; 4147 uint32_t _cf = 0; 4148 int _df = 1; 4149 uint32_t _flag_k = FK_NONE; 4150 uint32_t _flag_a = 0, _flag_b = 0; 4151 uint32_t _itail_tgt = 0; 4152 RECOMP_REGS_LOCALS 4153 RECOMP_ENTER(0x430021C0u); 4154 4155 L_430021C0: 4156 PUSH32(esp, ebp); /* 0x430021C0: push ebp */ 4157 ebp = esp; /* 0x430021C1: mov ebp, esp */ 4158 PUSH32(esp, 0xFFFFFFFFu); /* 0x430021C3: push -1 */ 4159 PUSH32(esp, 0x43003888u); /* 0x430021C5: push 0x43003888 */ 4160 eax = MEM32(FS_BASE + (0)); /* 0x430021CA: mov eax, dword ptr fs:[0] */ 4161 PUSH32(esp, eax); /* 0x430021D0: push eax */ 4162 MEM32(FS_BASE + (0)) = esp; /* 0x430021D1: mov dword ptr fs:[0], esp */ 4163 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4165 esp = esp - 8; /* 0x430021D8: sub esp, 8 */ 4166 _flag_k = FK_CMP; 4167 PUSH32(esp, ebx); /* 0x430021DB: push ebx */ 4168 PUSH32(esp, esi); /* 0x430021DC: push esi */ 4169 esi = ecx; /* 0x430021DD: mov esi, ecx */ 4170 PUSH32(esp, edi); /* 0x430021DF: push edi */ 4171 PUSH32(esp, 0); /* 0x430021E0: push 0 */ 4172 edi = esi + 0x180050; /* 0x430021E2: lea edi, [esi + 0x180050] */ 4173 ecx = edi; /* 0x430021E8: mov ecx, edi */ 4174 MEM32(ebp + (-0x14)) = edi; /* 0x430021EA: mov dword ptr [ebp - 0x14], edi */ 4175 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x430021ED: call dword ptr [0x4300407c] */ 4176 RECOMP_FLAGS_IN(); 4177 ebx = eax; /* 0x430021F3: mov ebx, eax */ 4178 MEM32(ebp + (-0x10)) = ebx; /* 0x430021F5: mov dword ptr [ebp - 0x10], ebx */ 4179 SET_LO8(ecx, MEM8(ebp + 0x8)); /* 0x430021F8: mov cl, byte ptr [ebp + 8] */ 4180 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4181 eax = 0; /* 0x430021FB: xor eax, eax */ 4182 _cf = 0; 4183 _flag_k = FK_TEST; 4184 /* test LO8(ecx), LO8(ecx) */ /* 0x430021FD: test cl, cl */ 4185 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4186 _cf = 0; 4187 _flag_k = FK_NARROW(FK_TEST, 24); 4188 MEM32(ebp + (-0x4)) = eax; /* 0x430021FF: mov dword ptr [ebp - 4], eax */ 4189 if (TEST_NZ(_flag_a, _flag_b)) goto L_4300220E; /* 0x43002202: jne 0x4300220e */ 4190 L_43002204: 4191 ecx = esi; /* 0x43002204: mov ecx, esi */ 4192 MEM32(esi + 0x8) = eax; /* 0x43002206: mov dword ptr [esi + 8], eax */ 4193 RECOMP_ICALL(0x430017B0u); /* 0x43002209: call 0x430017b0 */ /* not lifted */ 4194 RECOMP_FLAGS_IN(); 4195 L_4300220E: 4196 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x4300220E: mov al, byte ptr [ebp + 8] */ 4197 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43002211: cmp ebx, -1 */ 4198 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 4199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4200 _flag_k = FK_CMP; 4201 MEM8(esi + 0x1) = (uint8_t)(LO8(eax)); /* 0x43002214: mov byte ptr [esi + 1], al */ 4202 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43002217: mov dword ptr [ebp - 4], 0xffffffff */ 4203 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002228; /* 0x4300221E: je 0x43002228 */ 4204 L_43002220: 4205 ecx = edi; /* 0x43002220: mov ecx, edi */ 4206 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43002222: call dword ptr [0x43004088] */ 4207 RECOMP_FLAGS_IN(); 4208 L_43002228: 4209 ecx = MEM32(ebp + (-0xC)); /* 0x43002228: mov ecx, dword ptr [ebp - 0xc] */ 4210 edi = POP32_VAL(esp); /* 0x4300222B: pop edi */ 4211 esi = POP32_VAL(esp); /* 0x4300222C: pop esi */ 4212 ebx = POP32_VAL(esp); /* 0x4300222D: pop ebx */ 4213 MEM32(FS_BASE + (0)) = ecx; /* 0x4300222E: mov dword ptr fs:[0], ecx */ 4214 esp = ebp; /* 0x43002235: mov esp, ebp */ 4215 ebp = POP32_VAL(esp); /* 0x43002237: pop ebp */ 4216 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002238: ret 4 */ 4217 RECOMP_REGS_OUT(); 4218 } 4219 4220 void sub_43002240(void) { 4221 int _fpu_cmp = 0; 4222 uint32_t _cf = 0; 4223 int _df = 1; 4224 uint32_t _flag_k = FK_NONE; 4225 uint32_t _flag_a = 0, _flag_b = 0; 4226 uint32_t _itail_tgt = 0; 4227 RECOMP_REGS_LOCALS 4228 RECOMP_ENTER(0x43002240u); 4229 4230 L_43002240: 4231 PUSH32(esp, ebp); /* 0x43002240: push ebp */ 4232 L_43002241: 4233 ebp = esp; /* 0x43002241: mov ebp, esp */ 4234 L_43002243: 4235 SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x43002243: mov cl, byte ptr [ebp + 0x10] */ 4236 L_43002246: 4237 edx = MEM32(ebp + 0xC); /* 0x43002246: mov edx, dword ptr [ebp + 0xc] */ 4238 L_43002249: 4239 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4240 _cf = (LO8(ecx)) != 0; 4241 SET_LO8(ecx, (uint32_t)(-(int32_t)LO8(ecx))); /* 0x43002249: neg cl */ 4242 _flag_k = FK_NARROW(FK_CMP, 24); 4243 L_4300224B: 4244 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x4300224B: sbb ecx, ecx */ 4245 ecx = _sc ? 0xFFFFFFFFu : 0; 4246 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 4247 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 4248 L_4300224D: 4249 eax = ebp + 0x10; /* 0x4300224D: lea eax, [ebp + 0x10] */ 4250 L_43002250: 4251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFDu); 4252 ecx = ecx & 0xFFFFFFFDu; /* 0x43002250: and ecx, 0xfffffffd */ 4253 _cf = 0; 4254 _flag_k = FK_TEST; 4255 L_43002253: 4256 PUSH32(esp, eax); /* 0x43002253: push eax */ 4257 L_43002254: 4258 eax = MEM32(ebp + 0x8); /* 0x43002254: mov eax, dword ptr [ebp + 8] */ 4259 L_43002257: 4260 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4261 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4262 ecx = ecx + 4; /* 0x43002257: add ecx, 4 */ 4263 _flag_k = FK_ADD; 4264 L_4300225A: 4265 PUSH32(esp, ecx); /* 0x4300225A: push ecx */ 4266 L_4300225B: 4267 PUSH32(esp, edx); /* 0x4300225B: push edx */ 4268 L_4300225C: 4269 PUSH32(esp, eax); /* 0x4300225C: push eax */ 4270 L_4300225D: 4271 RECOMP_ICALL(MEM32(0x43004004)); /* 0x4300225D: call dword ptr [0x43004004] */ 4272 RECOMP_FLAGS_IN(); 4273 L_43002263: 4274 /* test eax, eax */ /* 0x43002263: test eax, eax */ 4275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4276 _cf = 0; 4277 _flag_k = FK_TEST; 4278 L_43002265: 4279 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_4300227B; /* 0x43002265: jne 0x4300227b */ 4280 L_43002267: 4281 PUSH32(esp, 0x43006484u); /* 0x43002267: push 0x43006484 */ 4282 L_4300226C: 4283 RECOMP_ICALL(MEM32(0x43004030)); /* 0x4300226C: call dword ptr [0x43004030] */ 4284 RECOMP_FLAGS_IN(); 4285 L_43002272: 4286 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4287 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4288 esp = esp + 4; /* 0x43002272: add esp, 4 */ 4289 _flag_k = FK_ADD; 4290 L_43002275: 4291 { _itail_tgt = (uint32_t)(MEM32(0x4300403C)); goto _ljump; } 4292 L_4300227B: 4293 ebp = POP32_VAL(esp); /* 0x4300227B: pop ebp */ 4294 L_4300227C: 4295 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300227C: ret */ 4296 _ljump: 4297 switch (_itail_tgt) { 4298 case 0x43002240u: goto L_43002240; 4299 case 0x43002241u: goto L_43002241; 4300 case 0x43002243u: goto L_43002243; 4301 case 0x43002246u: goto L_43002246; 4302 case 0x43002249u: goto L_43002249; 4303 case 0x4300224Bu: goto L_4300224B; 4304 case 0x4300224Du: goto L_4300224D; 4305 case 0x43002250u: goto L_43002250; 4306 case 0x43002253u: goto L_43002253; 4307 case 0x43002254u: goto L_43002254; 4308 case 0x43002257u: goto L_43002257; 4309 case 0x4300225Au: goto L_4300225A; 4310 case 0x4300225Bu: goto L_4300225B; 4311 case 0x4300225Cu: goto L_4300225C; 4312 case 0x4300225Du: goto L_4300225D; 4313 case 0x43002263u: goto L_43002263; 4314 case 0x43002265u: goto L_43002265; 4315 case 0x43002267u: goto L_43002267; 4316 case 0x4300226Cu: goto L_4300226C; 4317 case 0x43002272u: goto L_43002272; 4318 case 0x43002275u: goto L_43002275; 4319 case 0x4300227Bu: goto L_4300227B; 4320 case 0x4300227Cu: goto L_4300227C; 4321 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4322 } 4323 RECOMP_REGS_OUT(); 4324 } 4325 4326 void sub_43002280(void) { 4327 int _fpu_cmp = 0; 4328 uint32_t _cf = 0; 4329 int _df = 1; 4330 uint32_t _flag_k = FK_NONE; 4331 uint32_t _flag_a = 0, _flag_b = 0; 4332 uint32_t _itail_tgt = 0; 4333 RECOMP_REGS_LOCALS 4334 RECOMP_ENTER(0x43002280u); 4335 4336 L_43002280: 4337 PUSH32(esp, ebp); /* 0x43002280: push ebp */ 4338 ebp = esp; /* 0x43002281: mov ebp, esp */ 4339 eax = MEM32(ebp + 0x8); /* 0x43002283: mov eax, dword ptr [ebp + 8] */ 4340 ecx = MEM32(0x43006030); /* 0x43002286: mov ecx, dword ptr [0x43006030] */ 4341 /* cmp eax, ecx */ /* 0x4300228C: cmp eax, ecx */ 4342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4344 _flag_k = FK_CMP; 4345 SET_LO8(eax, (CMP_A(_flag_a, _flag_b)) ? 1 : 0); /* 0x4300228E: seta al */ 4346 ebp = POP32_VAL(esp); /* 0x43002291: pop ebp */ 4347 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002292: ret 4 */ 4348 RECOMP_REGS_OUT(); 4349 } 4350 4351 void sub_430022A0(void) { 4352 int _fpu_cmp = 0; 4353 uint32_t _cf = 0; 4354 int _df = 1; 4355 uint32_t _flag_k = FK_NONE; 4356 uint32_t _flag_a = 0, _flag_b = 0; 4357 uint32_t _itail_tgt = 0; 4358 RECOMP_REGS_LOCALS 4359 RECOMP_ENTER(0x430022A0u); 4360 4361 L_430022A0: 4362 PUSH32(esp, ebp); /* 0x430022A0: push ebp */ 4363 ebp = esp; /* 0x430022A1: mov ebp, esp */ 4364 PUSH32(esp, 0xFFFFFFFFu); /* 0x430022A3: push -1 */ 4365 PUSH32(esp, 0x430038A8u); /* 0x430022A5: push 0x430038a8 */ 4366 eax = MEM32(FS_BASE + (0)); /* 0x430022AA: mov eax, dword ptr fs:[0] */ 4367 PUSH32(esp, eax); /* 0x430022B0: push eax */ 4368 MEM32(FS_BASE + (0)) = esp; /* 0x430022B1: mov dword ptr fs:[0], esp */ 4369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4371 esp = esp - 0xCu; /* 0x430022B8: sub esp, 0xc */ 4372 _flag_k = FK_CMP; 4373 PUSH32(esp, ebx); /* 0x430022BB: push ebx */ 4374 PUSH32(esp, esi); /* 0x430022BC: push esi */ 4375 esi = ecx; /* 0x430022BD: mov esi, ecx */ 4376 PUSH32(esp, edi); /* 0x430022BF: push edi */ 4377 PUSH32(esp, 0); /* 0x430022C0: push 0 */ 4378 edi = esi + 0x180050; /* 0x430022C2: lea edi, [esi + 0x180050] */ 4379 ecx = edi; /* 0x430022C8: mov ecx, edi */ 4380 MEM32(ebp + (-0x18)) = edi; /* 0x430022CA: mov dword ptr [ebp - 0x18], edi */ 4381 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x430022CD: call dword ptr [0x4300407c] */ 4382 RECOMP_FLAGS_IN(); 4383 ebx = eax; /* 0x430022D3: mov ebx, eax */ 4384 MEM32(ebp + (-0x14)) = ebx; /* 0x430022D5: mov dword ptr [ebp - 0x14], ebx */ 4385 ecx = MEM32(esi + 0x8); /* 0x430022D8: mov ecx, dword ptr [esi + 8] */ 4386 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4387 eax = 0; /* 0x430022DB: xor eax, eax */ 4388 _cf = 0; 4389 _flag_k = FK_TEST; 4390 MEM32(ebp + (-0x10)) = ecx; /* 0x430022DD: mov dword ptr [ebp - 0x10], ecx */ 4391 ecx = esi; /* 0x430022E0: mov ecx, esi */ 4392 MEM32(ebp + (-0x4)) = eax; /* 0x430022E2: mov dword ptr [ebp - 4], eax */ 4393 MEM32(esi + 0x8) = eax; /* 0x430022E5: mov dword ptr [esi + 8], eax */ 4394 RECOMP_ICALL(0x430017B0u); /* 0x430022E8: call 0x430017b0 */ /* not lifted */ 4395 RECOMP_FLAGS_IN(); 4396 edx = MEM32(ebp + (-0x10)); /* 0x430022ED: mov edx, dword ptr [ebp - 0x10] */ 4397 ecx = esi + 0xC0020; /* 0x430022F0: lea ecx, [esi + 0xc0020] */ 4398 MEM32(esi + 0x8) = edx; /* 0x430022F6: mov dword ptr [esi + 8], edx */ 4399 RECOMP_ICALL(0x43002630u); /* 0x430022F9: call 0x43002630 */ /* not lifted */ 4400 RECOMP_FLAGS_IN(); 4401 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x430022FE: mov al, byte ptr [ebp + 8] */ 4402 ecx = MEM32(ebp + 0xC); /* 0x43002301: mov ecx, dword ptr [ebp + 0xc] */ 4403 edx = MEM32(ebp + 0x10); /* 0x43002304: mov edx, dword ptr [ebp + 0x10] */ 4404 MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x43002307: mov byte ptr [esi + 0xc], al */ 4405 eax = MEM32(ebp + 0x14); /* 0x4300230A: mov eax, dword ptr [ebp + 0x14] */ 4406 /* cmp ebx, 0xFFFFFFFFu */ /* 0x4300230D: cmp ebx, -1 */ 4407 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 4408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4409 _flag_k = FK_CMP; 4410 MEM32(esi + 0x10) = ecx; /* 0x43002310: mov dword ptr [esi + 0x10], ecx */ 4411 MEM32(esi + 0x14) = edx; /* 0x43002313: mov dword ptr [esi + 0x14], edx */ 4412 MEM32(esi + 0x18) = eax; /* 0x43002316: mov dword ptr [esi + 0x18], eax */ 4413 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43002319: mov dword ptr [ebp - 4], 0xffffffff */ 4414 if (CMP_EQ(_flag_a, _flag_b)) goto L_4300232A; /* 0x43002320: je 0x4300232a */ 4415 L_43002322: 4416 ecx = edi; /* 0x43002322: mov ecx, edi */ 4417 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43002324: call dword ptr [0x43004088] */ 4418 RECOMP_FLAGS_IN(); 4419 L_4300232A: 4420 ecx = MEM32(ebp + (-0xC)); /* 0x4300232A: mov ecx, dword ptr [ebp - 0xc] */ 4421 edi = POP32_VAL(esp); /* 0x4300232D: pop edi */ 4422 esi = POP32_VAL(esp); /* 0x4300232E: pop esi */ 4423 ebx = POP32_VAL(esp); /* 0x4300232F: pop ebx */ 4424 MEM32(FS_BASE + (0)) = ecx; /* 0x43002330: mov dword ptr fs:[0], ecx */ 4425 esp = ebp; /* 0x43002337: mov esp, ebp */ 4426 ebp = POP32_VAL(esp); /* 0x43002339: pop ebp */ 4427 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4300233A: ret 0x10 */ 4428 RECOMP_REGS_OUT(); 4429 } 4430 4431 void sub_43002340(void) { 4432 int _fpu_cmp = 0; 4433 uint32_t _cf = 0; 4434 int _df = 1; 4435 uint32_t _flag_k = FK_NONE; 4436 uint32_t _flag_a = 0, _flag_b = 0; 4437 uint32_t _itail_tgt = 0; 4438 RECOMP_REGS_LOCALS 4439 RECOMP_ENTER(0x43002340u); 4440 4441 L_43002340: 4442 PUSH32(esp, ebp); /* 0x43002340: push ebp */ 4443 ebp = esp; /* 0x43002341: mov ebp, esp */ 4444 PUSH32(esp, 0xFFFFFFFFu); /* 0x43002343: push -1 */ 4445 PUSH32(esp, 0x430038C8u); /* 0x43002345: push 0x430038c8 */ 4446 eax = MEM32(FS_BASE + (0)); /* 0x4300234A: mov eax, dword ptr fs:[0] */ 4447 PUSH32(esp, eax); /* 0x43002350: push eax */ 4448 MEM32(FS_BASE + (0)) = esp; /* 0x43002351: mov dword ptr fs:[0], esp */ 4449 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4451 esp = esp - 0xCu; /* 0x43002358: sub esp, 0xc */ 4452 _flag_k = FK_CMP; 4453 PUSH32(esp, ebx); /* 0x4300235B: push ebx */ 4454 PUSH32(esp, esi); /* 0x4300235C: push esi */ 4455 esi = ecx; /* 0x4300235D: mov esi, ecx */ 4456 PUSH32(esp, edi); /* 0x4300235F: push edi */ 4457 PUSH32(esp, 0); /* 0x43002360: push 0 */ 4458 edi = esi + 0x180050; /* 0x43002362: lea edi, [esi + 0x180050] */ 4459 ecx = edi; /* 0x43002368: mov ecx, edi */ 4460 MEM32(ebp + (-0x18)) = edi; /* 0x4300236A: mov dword ptr [ebp - 0x18], edi */ 4461 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x4300236D: call dword ptr [0x4300407c] */ 4462 RECOMP_FLAGS_IN(); 4463 ebx = eax; /* 0x43002373: mov ebx, eax */ 4464 MEM32(ebp + (-0x14)) = ebx; /* 0x43002375: mov dword ptr [ebp - 0x14], ebx */ 4465 ecx = MEM32(esi + 0x8); /* 0x43002378: mov ecx, dword ptr [esi + 8] */ 4466 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4467 eax = 0; /* 0x4300237B: xor eax, eax */ 4468 _cf = 0; 4469 _flag_k = FK_TEST; 4470 MEM32(ebp + (-0x10)) = ecx; /* 0x4300237D: mov dword ptr [ebp - 0x10], ecx */ 4471 ecx = esi; /* 0x43002380: mov ecx, esi */ 4472 MEM32(ebp + (-0x4)) = eax; /* 0x43002382: mov dword ptr [ebp - 4], eax */ 4473 MEM32(esi + 0x8) = eax; /* 0x43002385: mov dword ptr [esi + 8], eax */ 4474 RECOMP_ICALL(0x430017B0u); /* 0x43002388: call 0x430017b0 */ /* not lifted */ 4475 RECOMP_FLAGS_IN(); 4476 edx = MEM32(ebp + (-0x10)); /* 0x4300238D: mov edx, dword ptr [ebp - 0x10] */ 4477 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43002390: cmp ebx, -1 */ 4478 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 4479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4480 _flag_k = FK_CMP; 4481 MEM32(esi + 0x8) = edx; /* 0x43002393: mov dword ptr [esi + 8], edx */ 4482 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43002396: mov dword ptr [ebp - 4], 0xffffffff */ 4483 if (CMP_EQ(_flag_a, _flag_b)) goto L_430023A7; /* 0x4300239D: je 0x430023a7 */ 4484 L_4300239F: 4485 ecx = edi; /* 0x4300239F: mov ecx, edi */ 4486 RECOMP_ICALL(MEM32(0x43004088)); /* 0x430023A1: call dword ptr [0x43004088] */ 4487 RECOMP_FLAGS_IN(); 4488 L_430023A7: 4489 ecx = MEM32(ebp + (-0xC)); /* 0x430023A7: mov ecx, dword ptr [ebp - 0xc] */ 4490 edi = POP32_VAL(esp); /* 0x430023AA: pop edi */ 4491 esi = POP32_VAL(esp); /* 0x430023AB: pop esi */ 4492 ebx = POP32_VAL(esp); /* 0x430023AC: pop ebx */ 4493 MEM32(FS_BASE + (0)) = ecx; /* 0x430023AD: mov dword ptr fs:[0], ecx */ 4494 esp = ebp; /* 0x430023B4: mov esp, ebp */ 4495 ebp = POP32_VAL(esp); /* 0x430023B6: pop ebp */ 4496 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430023B7: ret */ 4497 RECOMP_REGS_OUT(); 4498 } 4499 4500 void sub_430023C0(void) { 4501 int _fpu_cmp = 0; 4502 uint32_t _cf = 0; 4503 int _df = 1; 4504 uint32_t _flag_k = FK_NONE; 4505 uint32_t _flag_a = 0, _flag_b = 0; 4506 uint32_t _itail_tgt = 0; 4507 RECOMP_REGS_LOCALS 4508 RECOMP_ENTER(0x430023C0u); 4509 4510 L_430023C0: 4511 PUSH32(esp, ebp); /* 0x430023C0: push ebp */ 4512 ebp = esp; /* 0x430023C1: mov ebp, esp */ 4513 edx = MEM32(ecx + 0x4); /* 0x430023C3: mov edx, dword ptr [ecx + 4] */ 4514 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4515 eax = 0; /* 0x430023C6: xor eax, eax */ 4516 _cf = 0; 4517 _flag_k = FK_TEST; 4518 PUSH32(esp, esi); /* 0x430023C8: push esi */ 4519 /* test edx, edx */ /* 0x430023C9: test edx, edx */ 4520 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4521 _cf = 0; 4522 _flag_k = FK_TEST; 4523 if (TEST_Z(_flag_a, _flag_b)) goto L_430023DE; /* 0x430023CB: jbe 0x430023de */ 4524 L_430023CD: 4525 ecx = MEM32(ecx); /* 0x430023CD: mov ecx, dword ptr [ecx] */ 4526 esi = MEM32(ebp + 0x8); /* 0x430023CF: mov esi, dword ptr [ebp + 8] */ 4527 L_430023D2: 4528 /* cmp MEM32(ecx), esi */ /* 0x430023D2: cmp dword ptr [ecx], esi */ 4529 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 4530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4531 _flag_k = FK_CMP; 4532 if (CMP_EQ(_flag_a, _flag_b)) goto L_430023DE; /* 0x430023D4: je 0x430023de */ 4533 L_430023D6: 4534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4535 eax = eax + 1; /* 0x430023D6: inc eax */ 4536 _flag_k = FK_INC; 4537 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 4538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4539 ecx = ecx + 0x10u; /* 0x430023D7: add ecx, 0x10 */ 4540 _flag_k = FK_ADD; 4541 /* cmp eax, edx */ /* 0x430023DA: cmp eax, edx */ 4542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4544 _flag_k = FK_CMP; 4545 RECOMP_BACKEDGE(); 4546 if (CMP_B(_flag_a, _flag_b)) goto L_430023D2; /* 0x430023DC: jb 0x430023d2 */ 4547 L_430023DE: 4548 esi = POP32_VAL(esp); /* 0x430023DE: pop esi */ 4549 ebp = POP32_VAL(esp); /* 0x430023DF: pop ebp */ 4550 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430023E0: ret 4 */ 4551 RECOMP_REGS_OUT(); 4552 } 4553 4554 void sub_430023F0(void) { 4555 int _fpu_cmp = 0; 4556 uint32_t _cf = 0; 4557 int _df = 1; 4558 uint32_t _flag_k = FK_NONE; 4559 uint32_t _flag_a = 0, _flag_b = 0; 4560 uint32_t _itail_tgt = 0; 4561 RECOMP_REGS_LOCALS 4562 RECOMP_ENTER(0x430023F0u); 4563 4564 L_430023F0: 4565 PUSH32(esp, ebp); /* 0x430023F0: push ebp */ 4566 ebp = esp; /* 0x430023F1: mov ebp, esp */ 4567 eax = MEM32(ebp + 0x8); /* 0x430023F3: mov eax, dword ptr [ebp + 8] */ 4568 PUSH32(esp, esi); /* 0x430023F6: push esi */ 4569 esi = ecx; /* 0x430023F7: mov esi, ecx */ 4570 PUSH32(esp, eax); /* 0x430023F9: push eax */ 4571 RECOMP_ICALL(0x430023C0u); /* 0x430023FA: call 0x430023c0 */ /* not lifted */ 4572 RECOMP_FLAGS_IN(); 4573 ecx = MEM32(esi + 0x4); /* 0x430023FF: mov ecx, dword ptr [esi + 4] */ 4574 /* cmp eax, ecx */ /* 0x43002402: cmp eax, ecx */ 4575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4577 _flag_k = FK_CMP; 4578 if (CMP_AE(_flag_a, _flag_b)) goto L_4300242B; /* 0x43002404: jae 0x4300242b */ 4579 L_43002406: 4580 ecx = MEM32(esi); /* 0x43002406: mov ecx, dword ptr [esi] */ 4581 esi = POP32_VAL(esp); /* 0x43002408: pop esi */ 4582 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x43002409: shl eax, 4 */ 4583 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4584 eax = eax << 4u; /* 0x43002409: shl eax, 4 */ 4585 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4587 eax = eax + ecx; /* 0x4300240C: add eax, ecx */ 4588 _flag_k = FK_ADD; 4589 ecx = MEM32(ebp + 0xC); /* 0x4300240E: mov ecx, dword ptr [ebp + 0xc] */ 4590 edx = MEM32(ecx); /* 0x43002411: mov edx, dword ptr [ecx] */ 4591 MEM32(eax) = edx; /* 0x43002413: mov dword ptr [eax], edx */ 4592 edx = MEM32(ecx + 0x4); /* 0x43002415: mov edx, dword ptr [ecx + 4] */ 4593 MEM32(eax + 0x4) = edx; /* 0x43002418: mov dword ptr [eax + 4], edx */ 4594 edx = MEM32(ecx + 0x8); /* 0x4300241B: mov edx, dword ptr [ecx + 8] */ 4595 MEM32(eax + 0x8) = edx; /* 0x4300241E: mov dword ptr [eax + 8], edx */ 4596 ecx = MEM32(ecx + 0xC); /* 0x43002421: mov ecx, dword ptr [ecx + 0xc] */ 4597 MEM32(eax + 0xC) = ecx; /* 0x43002424: mov dword ptr [eax + 0xc], ecx */ 4598 ebp = POP32_VAL(esp); /* 0x43002427: pop ebp */ 4599 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x43002428: ret 8 */ 4600 L_4300242B: 4601 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x4300242B: cmp ecx, dword ptr [esi + 8] */ 4602 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4604 _flag_k = FK_CMP; 4605 if (CMP_B(_flag_a, _flag_b)) goto L_4300244B; /* 0x4300242E: jb 0x4300244b */ 4606 L_43002430: 4607 edx = MEM32(esi); /* 0x43002430: mov edx, dword ptr [esi] */ 4608 if (5u) _cf = (((ecx) >> 27) & 1u); /* 0x43002432: shl ecx, 5 */ 4609 if (5u) { _flag_a = recomp_flags_pack((ecx << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4610 ecx = ecx << 5u; /* 0x43002432: shl ecx, 5 */ 4611 PUSH32(esp, ecx); /* 0x43002435: push ecx */ 4612 PUSH32(esp, edx); /* 0x43002436: push edx */ 4613 RECOMP_ICALL(MEM32(0x43004050)); /* 0x43002437: call dword ptr [0x43004050] */ 4614 RECOMP_FLAGS_IN(); 4615 ecx = MEM32(esi + 0x4); /* 0x4300243D: mov ecx, dword ptr [esi + 4] */ 4616 MEM32(esi) = eax; /* 0x43002440: mov dword ptr [esi], eax */ 4617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4619 esp = esp + 8; /* 0x43002442: add esp, 8 */ 4620 _flag_k = FK_ADD; 4621 eax = ecx + ecx; /* 0x43002445: lea eax, [ecx + ecx] */ 4622 MEM32(esi + 0x8) = eax; /* 0x43002448: mov dword ptr [esi + 8], eax */ 4623 L_4300244B: 4624 edx = MEM32(esi); /* 0x4300244B: mov edx, dword ptr [esi] */ 4625 if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x4300244D: shl ecx, 4 */ 4626 if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4627 ecx = ecx << 4u; /* 0x4300244D: shl ecx, 4 */ 4628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4630 ecx = ecx + edx; /* 0x43002450: add ecx, edx */ 4631 _flag_k = FK_ADD; 4632 edx = MEM32(ebp + 0xC); /* 0x43002452: mov edx, dword ptr [ebp + 0xc] */ 4633 eax = MEM32(edx); /* 0x43002455: mov eax, dword ptr [edx] */ 4634 MEM32(ecx) = eax; /* 0x43002457: mov dword ptr [ecx], eax */ 4635 eax = MEM32(edx + 0x4); /* 0x43002459: mov eax, dword ptr [edx + 4] */ 4636 MEM32(ecx + 0x4) = eax; /* 0x4300245C: mov dword ptr [ecx + 4], eax */ 4637 eax = MEM32(edx + 0x8); /* 0x4300245F: mov eax, dword ptr [edx + 8] */ 4638 MEM32(ecx + 0x8) = eax; /* 0x43002462: mov dword ptr [ecx + 8], eax */ 4639 edx = MEM32(edx + 0xC); /* 0x43002465: mov edx, dword ptr [edx + 0xc] */ 4640 MEM32(ecx + 0xC) = edx; /* 0x43002468: mov dword ptr [ecx + 0xc], edx */ 4641 eax = MEM32(esi + 0x4); /* 0x4300246B: mov eax, dword ptr [esi + 4] */ 4642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4643 eax = eax + 1; /* 0x4300246E: inc eax */ 4644 _flag_k = FK_INC; 4645 MEM32(esi + 0x4) = eax; /* 0x4300246F: mov dword ptr [esi + 4], eax */ 4646 esi = POP32_VAL(esp); /* 0x43002472: pop esi */ 4647 ebp = POP32_VAL(esp); /* 0x43002473: pop ebp */ 4648 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x43002474: ret 8 */ 4649 RECOMP_REGS_OUT(); 4650 } 4651 4652 void sub_43002480(void) { 4653 int _fpu_cmp = 0; 4654 uint32_t _cf = 0; 4655 int _df = 1; 4656 uint32_t _flag_k = FK_NONE; 4657 uint32_t _flag_a = 0, _flag_b = 0; 4658 uint32_t _itail_tgt = 0; 4659 RECOMP_REGS_LOCALS 4660 RECOMP_ENTER(0x43002480u); 4661 4662 L_43002480: 4663 PUSH32(esp, ebp); /* 0x43002480: push ebp */ 4664 ebp = esp; /* 0x43002481: mov ebp, esp */ 4665 eax = MEM32(ebp + 0x8); /* 0x43002483: mov eax, dword ptr [ebp + 8] */ 4666 PUSH32(esp, esi); /* 0x43002486: push esi */ 4667 esi = ecx; /* 0x43002487: mov esi, ecx */ 4668 PUSH32(esp, eax); /* 0x43002489: push eax */ 4669 RECOMP_ICALL(0x430023C0u); /* 0x4300248A: call 0x430023c0 */ /* not lifted */ 4670 RECOMP_FLAGS_IN(); 4671 ecx = MEM32(esi + 0x4); /* 0x4300248F: mov ecx, dword ptr [esi + 4] */ 4672 /* cmp eax, ecx */ /* 0x43002492: cmp eax, ecx */ 4673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4675 _flag_k = FK_CMP; 4676 if (CMP_AE(_flag_a, _flag_b)) goto L_430024C6; /* 0x43002494: jae 0x430024c6 */ 4677 L_43002496: 4678 edx = MEM32(esi); /* 0x43002496: mov edx, dword ptr [esi] */ 4679 if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x43002498: shl ecx, 4 */ 4680 if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4681 ecx = ecx << 4u; /* 0x43002498: shl ecx, 4 */ 4682 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x4300249B: shl eax, 4 */ 4683 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4684 eax = eax << 4u; /* 0x4300249B: shl eax, 4 */ 4685 ecx = ecx + edx + (-0x10); /* 0x4300249E: lea ecx, [ecx + edx - 0x10] */ 4686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4688 eax = eax + edx; /* 0x430024A2: add eax, edx */ 4689 _flag_k = FK_ADD; 4690 edx = MEM32(ecx); /* 0x430024A4: mov edx, dword ptr [ecx] */ 4691 MEM32(eax) = edx; /* 0x430024A6: mov dword ptr [eax], edx */ 4692 edx = MEM32(ecx + 0x4); /* 0x430024A8: mov edx, dword ptr [ecx + 4] */ 4693 MEM32(eax + 0x4) = edx; /* 0x430024AB: mov dword ptr [eax + 4], edx */ 4694 edx = MEM32(ecx + 0x8); /* 0x430024AE: mov edx, dword ptr [ecx + 8] */ 4695 MEM32(eax + 0x8) = edx; /* 0x430024B1: mov dword ptr [eax + 8], edx */ 4696 ecx = MEM32(ecx + 0xC); /* 0x430024B4: mov ecx, dword ptr [ecx + 0xc] */ 4697 MEM32(eax + 0xC) = ecx; /* 0x430024B7: mov dword ptr [eax + 0xc], ecx */ 4698 eax = MEM32(esi + 0x4); /* 0x430024BA: mov eax, dword ptr [esi + 4] */ 4699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4700 eax = eax - 1; /* 0x430024BD: dec eax */ 4701 _flag_k = FK_DEC; 4702 MEM32(esi + 0x4) = eax; /* 0x430024BE: mov dword ptr [esi + 4], eax */ 4703 esi = POP32_VAL(esp); /* 0x430024C1: pop esi */ 4704 ebp = POP32_VAL(esp); /* 0x430024C2: pop ebp */ 4705 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430024C3: ret 4 */ 4706 L_430024C6: 4707 PUSH32(esp, 0x430064BCu); /* 0x430024C6: push 0x430064bc */ 4708 RECOMP_ICALL(MEM32(0x43004030)); /* 0x430024CB: call dword ptr [0x43004030] */ 4709 RECOMP_FLAGS_IN(); 4710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4712 esp = esp + 4; /* 0x430024D1: add esp, 4 */ 4713 _flag_k = FK_ADD; 4714 esi = POP32_VAL(esp); /* 0x430024D4: pop esi */ 4715 ebp = POP32_VAL(esp); /* 0x430024D5: pop ebp */ 4716 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430024D6: ret 4 */ 4717 RECOMP_REGS_OUT(); 4718 } 4719 4720 void sub_430024E0(void) { 4721 int _fpu_cmp = 0; 4722 uint32_t _cf = 0; 4723 int _df = 1; 4724 uint32_t _flag_k = FK_NONE; 4725 uint32_t _flag_a = 0, _flag_b = 0; 4726 uint32_t _itail_tgt = 0; 4727 RECOMP_REGS_LOCALS 4728 RECOMP_ENTER(0x430024E0u); 4729 4730 L_430024E0: 4731 PUSH32(esp, ebp); /* 0x430024E0: push ebp */ 4732 ebp = esp; /* 0x430024E1: mov ebp, esp */ 4733 edx = MEM32(ebp + 0x8); /* 0x430024E3: mov edx, dword ptr [ebp + 8] */ 4734 eax = edx; /* 0x430024E6: mov eax, edx */ 4735 eax = (uint32_t)((int32_t)eax * (int32_t)edx); /* 0x430024E8: imul eax, edx */ 4736 ecx = eax + eax * 2; /* 0x430024EB: lea ecx, [eax + eax*2] */ 4737 ecx = eax + ecx * 4 + 0x25; /* 0x430024EE: lea ecx, [eax + ecx*4 + 0x25] */ 4738 ecx = (uint32_t)((int32_t)ecx * (int32_t)edx); /* 0x430024F2: imul ecx, edx */ 4739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x33u); 4740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4741 ecx = ecx + 0x33u; /* 0x430024F5: add ecx, 0x33 */ 4742 _flag_k = FK_ADD; 4743 eax = ecx; /* 0x430024F8: mov eax, ecx */ 4744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 4745 ecx = ecx & 0xFFFFu; /* 0x430024FA: and ecx, 0xffff */ 4746 _cf = 0; 4747 _flag_k = FK_TEST; 4748 if (16u) _cf = (((eax) >> 15) & 1u); /* 0x43002500: shr eax, 0x10 */ 4749 if (16u) { _flag_a = recomp_flags_pack((eax >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4750 eax = eax >> 16u; /* 0x43002500: shr eax, 0x10 */ 4751 _flag_a = (uint32_t)((eax ^ ecx)); _flag_b = (uint32_t)((eax ^ ecx)); 4752 eax = eax ^ ecx; /* 0x43002503: xor eax, ecx */ 4753 _cf = 0; 4754 _flag_k = FK_TEST; 4755 ebp = POP32_VAL(esp); /* 0x43002505: pop ebp */ 4756 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002506: ret */ 4757 RECOMP_REGS_OUT(); 4758 } 4759 4760 void sub_43002510(void) { 4761 int _fpu_cmp = 0; 4762 uint32_t _cf = 0; 4763 int _df = 1; 4764 uint32_t _flag_k = FK_NONE; 4765 uint32_t _flag_a = 0, _flag_b = 0; 4766 uint32_t _itail_tgt = 0; 4767 RECOMP_REGS_LOCALS 4768 RECOMP_ENTER(0x43002510u); 4769 4770 L_43002510: 4771 PUSH32(esp, ebp); /* 0x43002510: push ebp */ 4772 ebp = esp; /* 0x43002511: mov ebp, esp */ 4773 PUSH32(esp, ecx); /* 0x43002513: push ecx */ 4774 PUSH32(esp, ebx); /* 0x43002514: push ebx */ 4775 ebx = MEM32(0x43004020); /* 0x43002515: mov ebx, dword ptr [0x43004020] */ 4776 PUSH32(esp, esi); /* 0x4300251B: push esi */ 4777 PUSH32(esp, edi); /* 0x4300251C: push edi */ 4778 MEM32(ebp + (-0x4)) = ecx; /* 0x4300251D: mov dword ptr [ebp - 4], ecx */ 4779 esi = ecx + 0x8; /* 0x43002520: lea esi, [ecx + 8] */ 4780 edi = 0x00010000u; /* 0x43002523: mov edi, 0x10000 */ 4781 L_43002528: 4782 PUSH32(esp, 0x100u); /* 0x43002528: push 0x100 */ 4783 MEM32(esi + (-0x4)) = 0; /* 0x4300252D: mov dword ptr [esi - 4], 0 */ 4784 RECOMP_ICALL(ebx); /* 0x43002534: call ebx */ 4785 RECOMP_FLAGS_IN(); 4786 MEM32(esi + (-0x8)) = eax; /* 0x43002536: mov dword ptr [esi - 8], eax */ 4787 MEM32(esi) = 0x10u; /* 0x43002539: mov dword ptr [esi], 0x10 */ 4788 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4789 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4790 esp = esp + 4; /* 0x4300253F: add esp, 4 */ 4791 _flag_k = FK_ADD; 4792 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 4793 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4794 esi = esi + 0xCu; /* 0x43002542: add esi, 0xc */ 4795 _flag_k = FK_ADD; 4796 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4797 edi = edi - 1; /* 0x43002545: dec edi */ 4798 _flag_k = FK_DEC; 4799 RECOMP_BACKEDGE(); 4800 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_43002528; /* 0x43002546: jne 0x43002528 */ 4801 L_43002548: 4802 eax = MEM32(ebp + (-0x4)); /* 0x43002548: mov eax, dword ptr [ebp - 4] */ 4803 edi = POP32_VAL(esp); /* 0x4300254B: pop edi */ 4804 esi = POP32_VAL(esp); /* 0x4300254C: pop esi */ 4805 ebx = POP32_VAL(esp); /* 0x4300254D: pop ebx */ 4806 esp = ebp; /* 0x4300254E: mov esp, ebp */ 4807 ebp = POP32_VAL(esp); /* 0x43002550: pop ebp */ 4808 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002551: ret */ 4809 RECOMP_REGS_OUT(); 4810 } 4811 4812 void sub_43002560(void) { 4813 int _fpu_cmp = 0; 4814 uint32_t _cf = 0; 4815 int _df = 1; 4816 uint32_t _flag_k = FK_NONE; 4817 uint32_t _flag_a = 0, _flag_b = 0; 4818 uint32_t _itail_tgt = 0; 4819 RECOMP_REGS_LOCALS 4820 RECOMP_ENTER(0x43002560u); 4821 4822 L_43002560: 4823 PUSH32(esp, ebx); /* 0x43002560: push ebx */ 4824 ebx = MEM32(0x43004040); /* 0x43002561: mov ebx, dword ptr [0x43004040] */ 4825 PUSH32(esp, esi); /* 0x43002567: push esi */ 4826 PUSH32(esp, edi); /* 0x43002568: push edi */ 4827 esi = ecx; /* 0x43002569: mov esi, ecx */ 4828 edi = 0x00010000u; /* 0x4300256B: mov edi, 0x10000 */ 4829 L_43002570: 4830 eax = MEM32(esi); /* 0x43002570: mov eax, dword ptr [esi] */ 4831 PUSH32(esp, eax); /* 0x43002572: push eax */ 4832 RECOMP_ICALL(ebx); /* 0x43002573: call ebx */ 4833 RECOMP_FLAGS_IN(); 4834 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4836 esp = esp + 4; /* 0x43002575: add esp, 4 */ 4837 _flag_k = FK_ADD; 4838 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 4839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4840 esi = esi + 0xCu; /* 0x43002578: add esi, 0xc */ 4841 _flag_k = FK_ADD; 4842 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4843 edi = edi - 1; /* 0x4300257B: dec edi */ 4844 _flag_k = FK_DEC; 4845 RECOMP_BACKEDGE(); 4846 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_43002570; /* 0x4300257C: jne 0x43002570 */ 4847 L_4300257E: 4848 edi = POP32_VAL(esp); /* 0x4300257E: pop edi */ 4849 esi = POP32_VAL(esp); /* 0x4300257F: pop esi */ 4850 ebx = POP32_VAL(esp); /* 0x43002580: pop ebx */ 4851 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002581: ret */ 4852 RECOMP_REGS_OUT(); 4853 } 4854 4855 void sub_43002590(void) { 4856 int _fpu_cmp = 0; 4857 uint32_t _cf = 0; 4858 int _df = 1; 4859 uint32_t _flag_k = FK_NONE; 4860 uint32_t _flag_a = 0, _flag_b = 0; 4861 uint32_t _itail_tgt = 0; 4862 RECOMP_REGS_LOCALS 4863 RECOMP_ENTER(0x43002590u); 4864 4865 L_43002590: 4866 PUSH32(esp, ebp); /* 0x43002590: push ebp */ 4867 ebp = esp; /* 0x43002591: mov ebp, esp */ 4868 PUSH32(esp, esi); /* 0x43002593: push esi */ 4869 PUSH32(esp, edi); /* 0x43002594: push edi */ 4870 edi = MEM32(ebp + 0x8); /* 0x43002595: mov edi, dword ptr [ebp + 8] */ 4871 esi = ecx; /* 0x43002598: mov esi, ecx */ 4872 PUSH32(esp, edi); /* 0x4300259A: push edi */ 4873 RECOMP_ICALL(0x430024E0u); /* 0x4300259B: call 0x430024e0 */ /* not lifted */ 4874 RECOMP_FLAGS_IN(); 4875 edx = MEM32(ebp + 0xC); /* 0x430025A0: mov edx, dword ptr [ebp + 0xc] */ 4876 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4877 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4878 esp = esp + 4; /* 0x430025A3: add esp, 4 */ 4879 _flag_k = FK_ADD; 4880 eax = eax + eax * 2; /* 0x430025A6: lea eax, [eax + eax*2] */ 4881 PUSH32(esp, edx); /* 0x430025A9: push edx */ 4882 PUSH32(esp, edi); /* 0x430025AA: push edi */ 4883 ecx = esi + eax * 4; /* 0x430025AB: lea ecx, [esi + eax*4] */ 4884 RECOMP_ICALL(0x430023F0u); /* 0x430025AE: call 0x430023f0 */ /* not lifted */ 4885 RECOMP_FLAGS_IN(); 4886 edi = POP32_VAL(esp); /* 0x430025B3: pop edi */ 4887 esi = POP32_VAL(esp); /* 0x430025B4: pop esi */ 4888 ebp = POP32_VAL(esp); /* 0x430025B5: pop ebp */ 4889 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x430025B6: ret 8 */ 4890 RECOMP_REGS_OUT(); 4891 } 4892 4893 void sub_430025C0(void) { 4894 int _fpu_cmp = 0; 4895 uint32_t _cf = 0; 4896 int _df = 1; 4897 uint32_t _flag_k = FK_NONE; 4898 uint32_t _flag_a = 0, _flag_b = 0; 4899 uint32_t _itail_tgt = 0; 4900 RECOMP_REGS_LOCALS 4901 RECOMP_ENTER(0x430025C0u); 4902 4903 L_430025C0: 4904 PUSH32(esp, ebp); /* 0x430025C0: push ebp */ 4905 ebp = esp; /* 0x430025C1: mov ebp, esp */ 4906 PUSH32(esp, esi); /* 0x430025C3: push esi */ 4907 PUSH32(esp, edi); /* 0x430025C4: push edi */ 4908 edi = MEM32(ebp + 0x8); /* 0x430025C5: mov edi, dword ptr [ebp + 8] */ 4909 esi = ecx; /* 0x430025C8: mov esi, ecx */ 4910 PUSH32(esp, edi); /* 0x430025CA: push edi */ 4911 RECOMP_ICALL(0x430024E0u); /* 0x430025CB: call 0x430024e0 */ /* not lifted */ 4912 RECOMP_FLAGS_IN(); 4913 eax = eax + eax * 2; /* 0x430025D0: lea eax, [eax + eax*2] */ 4914 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4916 esp = esp + 4; /* 0x430025D3: add esp, 4 */ 4917 _flag_k = FK_ADD; 4918 esi = esi + eax * 4; /* 0x430025D6: lea esi, [esi + eax*4] */ 4919 PUSH32(esp, edi); /* 0x430025D9: push edi */ 4920 ecx = esi; /* 0x430025DA: mov ecx, esi */ 4921 RECOMP_ICALL(0x430023C0u); /* 0x430025DC: call 0x430023c0 */ /* not lifted */ 4922 RECOMP_FLAGS_IN(); 4923 /* cmp eax, MEM32(esi + 0x4) */ /* 0x430025E1: cmp eax, dword ptr [esi + 4] */ 4924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4926 _flag_k = FK_CMP; 4927 if (CMP_AE(_flag_a, _flag_b)) goto L_430025F3; /* 0x430025E4: jae 0x430025f3 */ 4928 L_430025E6: 4929 ecx = MEM32(esi); /* 0x430025E6: mov ecx, dword ptr [esi] */ 4930 edi = POP32_VAL(esp); /* 0x430025E8: pop edi */ 4931 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x430025E9: shl eax, 4 */ 4932 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4933 eax = eax << 4u; /* 0x430025E9: shl eax, 4 */ 4934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4936 eax = eax + ecx; /* 0x430025EC: add eax, ecx */ 4937 _flag_k = FK_ADD; 4938 esi = POP32_VAL(esp); /* 0x430025EE: pop esi */ 4939 ebp = POP32_VAL(esp); /* 0x430025EF: pop ebp */ 4940 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430025F0: ret 4 */ 4941 L_430025F3: 4942 edi = POP32_VAL(esp); /* 0x430025F3: pop edi */ 4943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4944 eax = 0; /* 0x430025F4: xor eax, eax */ 4945 _cf = 0; 4946 _flag_k = FK_TEST; 4947 esi = POP32_VAL(esp); /* 0x430025F6: pop esi */ 4948 ebp = POP32_VAL(esp); /* 0x430025F7: pop ebp */ 4949 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430025F8: ret 4 */ 4950 RECOMP_REGS_OUT(); 4951 } 4952 4953 void sub_43002600(void) { 4954 int _fpu_cmp = 0; 4955 uint32_t _cf = 0; 4956 int _df = 1; 4957 uint32_t _flag_k = FK_NONE; 4958 uint32_t _flag_a = 0, _flag_b = 0; 4959 uint32_t _itail_tgt = 0; 4960 RECOMP_REGS_LOCALS 4961 RECOMP_ENTER(0x43002600u); 4962 4963 L_43002600: 4964 PUSH32(esp, ebp); /* 0x43002600: push ebp */ 4965 ebp = esp; /* 0x43002601: mov ebp, esp */ 4966 PUSH32(esp, esi); /* 0x43002603: push esi */ 4967 PUSH32(esp, edi); /* 0x43002604: push edi */ 4968 edi = MEM32(ebp + 0x8); /* 0x43002605: mov edi, dword ptr [ebp + 8] */ 4969 esi = ecx; /* 0x43002608: mov esi, ecx */ 4970 PUSH32(esp, edi); /* 0x4300260A: push edi */ 4971 RECOMP_ICALL(0x430024E0u); /* 0x4300260B: call 0x430024e0 */ /* not lifted */ 4972 RECOMP_FLAGS_IN(); 4973 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4974 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4975 esp = esp + 4; /* 0x43002610: add esp, 4 */ 4976 _flag_k = FK_ADD; 4977 eax = eax + eax * 2; /* 0x43002613: lea eax, [eax + eax*2] */ 4978 ecx = esi + eax * 4; /* 0x43002616: lea ecx, [esi + eax*4] */ 4979 PUSH32(esp, edi); /* 0x43002619: push edi */ 4980 RECOMP_ICALL(0x43002480u); /* 0x4300261A: call 0x43002480 */ /* not lifted */ 4981 RECOMP_FLAGS_IN(); 4982 edi = POP32_VAL(esp); /* 0x4300261F: pop edi */ 4983 esi = POP32_VAL(esp); /* 0x43002620: pop esi */ 4984 ebp = POP32_VAL(esp); /* 0x43002621: pop ebp */ 4985 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002622: ret 4 */ 4986 RECOMP_REGS_OUT(); 4987 } 4988 4989 void sub_43002630(void) { 4990 int _fpu_cmp = 0; 4991 uint32_t _cf = 0; 4992 int _df = 1; 4993 uint32_t _flag_k = FK_NONE; 4994 uint32_t _flag_a = 0, _flag_b = 0; 4995 uint32_t _itail_tgt = 0; 4996 RECOMP_REGS_LOCALS 4997 RECOMP_ENTER(0x43002630u); 4998 4999 L_43002630: 5000 eax = ecx + 0x4; /* 0x43002630: lea eax, [ecx + 4] */ 5001 ecx = 0x00010000u; /* 0x43002633: mov ecx, 0x10000 */ 5002 L_43002638: 5003 MEM32(eax) = 0; /* 0x43002638: mov dword ptr [eax], 0 */ 5004 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 5005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5006 eax = eax + 0xCu; /* 0x4300263E: add eax, 0xc */ 5007 _flag_k = FK_ADD; 5008 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5009 ecx = ecx - 1; /* 0x43002641: dec ecx */ 5010 _flag_k = FK_DEC; 5011 RECOMP_BACKEDGE(); 5012 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_43002638; /* 0x43002642: jne 0x43002638 */ 5013 L_43002644: 5014 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002644: ret */ 5015 RECOMP_REGS_OUT(); 5016 } 5017 5018 void sub_43002650(void) { 5019 int _fpu_cmp = 0; 5020 uint32_t _cf = 0; 5021 int _df = 1; 5022 uint32_t _flag_k = FK_NONE; 5023 uint32_t _flag_a = 0, _flag_b = 0; 5024 uint32_t _itail_tgt = 0; 5025 RECOMP_REGS_LOCALS 5026 RECOMP_ENTER(0x43002650u); 5027 5028 L_43002650: 5029 PUSH32(esp, esi); /* 0x43002650: push esi */ 5030 esi = ecx; /* 0x43002651: mov esi, ecx */ 5031 PUSH32(esp, 0x00010000u); /* 0x43002653: push 0x10000 */ 5032 MEM32(esi) = 0; /* 0x43002658: mov dword ptr [esi], 0 */ 5033 RECOMP_ICALL(0x43001B90u); /* 0x4300265E: call 0x43001b90 */ /* not lifted */ 5034 RECOMP_FLAGS_IN(); 5035 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5037 esp = esp + 4; /* 0x43002663: add esp, 4 */ 5038 _flag_k = FK_ADD; 5039 MEM32(esi + 0x8) = eax; /* 0x43002666: mov dword ptr [esi + 8], eax */ 5040 MEM32(esi + 0x4) = 0x1000u; /* 0x43002669: mov dword ptr [esi + 4], 0x1000 */ 5041 MEM8(esi + 0xC) = (uint8_t)(0); /* 0x43002670: mov byte ptr [esi + 0xc], 0 */ 5042 eax = esi; /* 0x43002674: mov eax, esi */ 5043 esi = POP32_VAL(esp); /* 0x43002676: pop esi */ 5044 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002677: ret */ 5045 RECOMP_REGS_OUT(); 5046 } 5047 5048 void sub_43002680(void) { 5049 int _fpu_cmp = 0; 5050 uint32_t _cf = 0; 5051 int _df = 1; 5052 uint32_t _flag_k = FK_NONE; 5053 uint32_t _flag_a = 0, _flag_b = 0; 5054 uint32_t _itail_tgt = 0; 5055 RECOMP_REGS_LOCALS 5056 RECOMP_ENTER(0x43002680u); 5057 5058 L_43002680: 5059 eax = MEM32(ecx + 0x8); /* 0x43002680: mov eax, dword ptr [ecx + 8] */ 5060 MEM32(ecx) = 0; /* 0x43002683: mov dword ptr [ecx], 0 */ 5061 PUSH32(esp, eax); /* 0x43002689: push eax */ 5062 MEM32(ecx + 0x4) = 0; /* 0x4300268A: mov dword ptr [ecx + 4], 0 */ 5063 RECOMP_ICALL(0x43001BB0u); /* 0x43002691: call 0x43001bb0 */ /* not lifted */ 5064 RECOMP_FLAGS_IN(); 5065 ecx = POP32_VAL(esp); /* 0x43002696: pop ecx */ 5066 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002697: ret */ 5067 RECOMP_REGS_OUT(); 5068 } 5069 5070 void sub_430026A0(void) { 5071 int _fpu_cmp = 0; 5072 uint32_t _cf = 0; 5073 int _df = 1; 5074 uint32_t _flag_k = FK_NONE; 5075 uint32_t _flag_a = 0, _flag_b = 0; 5076 uint32_t _itail_tgt = 0; 5077 RECOMP_REGS_LOCALS 5078 RECOMP_ENTER(0x430026A0u); 5079 5080 L_430026A0: 5081 PUSH32(esp, ebp); /* 0x430026A0: push ebp */ 5082 ebp = esp; /* 0x430026A1: mov ebp, esp */ 5083 PUSH32(esp, esi); /* 0x430026A3: push esi */ 5084 esi = ecx; /* 0x430026A4: mov esi, ecx */ 5085 SET_LO8(eax, MEM8(esi + 0xC)); /* 0x430026A6: mov al, byte ptr [esi + 0xc] */ 5086 /* test LO8(eax), LO8(eax) */ /* 0x430026A9: test al, al */ 5087 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5088 _cf = 0; 5089 _flag_k = FK_NARROW(FK_TEST, 24); 5090 if (TEST_NZ(_flag_a, _flag_b)) goto L_430026F7; /* 0x430026AB: jne 0x430026f7 */ 5091 L_430026AD: 5092 eax = MEM32(esi); /* 0x430026AD: mov eax, dword ptr [esi] */ 5093 ecx = MEM32(esi + 0x4); /* 0x430026AF: mov ecx, dword ptr [esi + 4] */ 5094 /* cmp eax, ecx */ /* 0x430026B2: cmp eax, ecx */ 5095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5097 _flag_k = FK_CMP; 5098 if (CMP_B(_flag_a, _flag_b)) goto L_430026D1; /* 0x430026B4: jb 0x430026d1 */ 5099 L_430026B6: 5100 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x430026B6: shl eax, 5 */ 5101 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5102 eax = eax << 5u; /* 0x430026B6: shl eax, 5 */ 5103 PUSH32(esp, eax); /* 0x430026B9: push eax */ 5104 eax = MEM32(esi + 0x8); /* 0x430026BA: mov eax, dword ptr [esi + 8] */ 5105 PUSH32(esp, eax); /* 0x430026BD: push eax */ 5106 RECOMP_ICALL(0x43001BD0u); /* 0x430026BE: call 0x43001bd0 */ /* not lifted */ 5107 RECOMP_FLAGS_IN(); 5108 MEM32(esi + 0x8) = eax; /* 0x430026C3: mov dword ptr [esi + 8], eax */ 5109 eax = MEM32(esi); /* 0x430026C6: mov eax, dword ptr [esi] */ 5110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5112 esp = esp + 8; /* 0x430026C8: add esp, 8 */ 5113 _flag_k = FK_ADD; 5114 ecx = eax + eax; /* 0x430026CB: lea ecx, [eax + eax] */ 5115 MEM32(esi + 0x4) = ecx; /* 0x430026CE: mov dword ptr [esi + 4], ecx */ 5116 L_430026D1: 5117 ecx = MEM32(esi + 0x8); /* 0x430026D1: mov ecx, dword ptr [esi + 8] */ 5118 edx = MEM32(ebp + 0xC); /* 0x430026D4: mov edx, dword ptr [ebp + 0xc] */ 5119 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x430026D7: shl eax, 4 */ 5120 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5121 eax = eax << 4u; /* 0x430026D7: shl eax, 4 */ 5122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5124 eax = eax + ecx; /* 0x430026DA: add eax, ecx */ 5125 _flag_k = FK_ADD; 5126 ecx = MEM32(edx); /* 0x430026DC: mov ecx, dword ptr [edx] */ 5127 MEM32(eax) = ecx; /* 0x430026DE: mov dword ptr [eax], ecx */ 5128 ecx = MEM32(edx + 0x4); /* 0x430026E0: mov ecx, dword ptr [edx + 4] */ 5129 MEM32(eax + 0x4) = ecx; /* 0x430026E3: mov dword ptr [eax + 4], ecx */ 5130 ecx = MEM32(edx + 0x8); /* 0x430026E6: mov ecx, dword ptr [edx + 8] */ 5131 MEM32(eax + 0x8) = ecx; /* 0x430026E9: mov dword ptr [eax + 8], ecx */ 5132 edx = MEM32(edx + 0xC); /* 0x430026EC: mov edx, dword ptr [edx + 0xc] */ 5133 MEM32(eax + 0xC) = edx; /* 0x430026EF: mov dword ptr [eax + 0xc], edx */ 5134 eax = MEM32(esi); /* 0x430026F2: mov eax, dword ptr [esi] */ 5135 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5136 eax = eax + 1; /* 0x430026F4: inc eax */ 5137 _flag_k = FK_INC; 5138 MEM32(esi) = eax; /* 0x430026F5: mov dword ptr [esi], eax */ 5139 L_430026F7: 5140 esi = POP32_VAL(esp); /* 0x430026F7: pop esi */ 5141 ebp = POP32_VAL(esp); /* 0x430026F8: pop ebp */ 5142 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x430026F9: ret 8 */ 5143 RECOMP_REGS_OUT(); 5144 } 5145 5146 void sub_43002700(void) { 5147 int _fpu_cmp = 0; 5148 uint32_t _cf = 0; 5149 int _df = 1; 5150 uint32_t _flag_k = FK_NONE; 5151 uint32_t _flag_a = 0, _flag_b = 0; 5152 uint32_t _itail_tgt = 0; 5153 RECOMP_REGS_LOCALS 5154 RECOMP_ENTER(0x43002700u); 5155 5156 L_43002700: 5157 PUSH32(esp, ebp); /* 0x43002700: push ebp */ 5158 ebp = esp; /* 0x43002701: mov ebp, esp */ 5159 PUSH32(esp, ebx); /* 0x43002703: push ebx */ 5160 ebx = MEM32(ebp + 0x8); /* 0x43002704: mov ebx, dword ptr [ebp + 8] */ 5161 PUSH32(esp, esi); /* 0x43002707: push esi */ 5162 esi = ecx; /* 0x43002708: mov esi, ecx */ 5163 /* test ebx, ebx */ /* 0x4300270A: test ebx, ebx */ 5164 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5165 _cf = 0; 5166 _flag_k = FK_TEST; 5167 MEM8(esi + 0xC) = (uint8_t)(1); /* 0x4300270C: mov byte ptr [esi + 0xc], 1 */ 5168 if (TEST_Z(_flag_a, _flag_b)) goto L_4300274E; /* 0x43002710: je 0x4300274e */ 5169 L_43002712: 5170 eax = MEM32(esi); /* 0x43002712: mov eax, dword ptr [esi] */ 5171 PUSH32(esp, edi); /* 0x43002714: push edi */ 5172 edi = MEM32(0x43004030); /* 0x43002715: mov edi, dword ptr [0x43004030] */ 5173 PUSH32(esp, eax); /* 0x4300271B: push eax */ 5174 PUSH32(esp, 0x43006538u); /* 0x4300271C: push 0x43006538 */ 5175 RECOMP_ICALL(edi); /* 0x43002721: call edi */ 5176 RECOMP_FLAGS_IN(); 5177 eax = MEM32(esi); /* 0x43002723: mov eax, dword ptr [esi] */ 5178 ecx = MEM32(esi + 0x8); /* 0x43002725: mov ecx, dword ptr [esi + 8] */ 5179 PUSH32(esp, ebx); /* 0x43002728: push ebx */ 5180 PUSH32(esp, eax); /* 0x43002729: push eax */ 5181 PUSH32(esp, 0x10u); /* 0x4300272A: push 0x10 */ 5182 PUSH32(esp, ecx); /* 0x4300272C: push ecx */ 5183 MEM32(esi) = 0; /* 0x4300272D: mov dword ptr [esi], 0 */ 5184 RECOMP_ICALL(MEM32(0x43004068)); /* 0x43002733: call dword ptr [0x43004068] */ 5185 RECOMP_FLAGS_IN(); 5186 PUSH32(esp, 0x430064FCu); /* 0x43002739: push 0x430064fc */ 5187 RECOMP_ICALL(edi); /* 0x4300273E: call edi */ 5188 RECOMP_FLAGS_IN(); 5189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 5190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5191 esp = esp + 0x1Cu; /* 0x43002740: add esp, 0x1c */ 5192 _flag_k = FK_ADD; 5193 MEM8(esi + 0xC) = (uint8_t)(0); /* 0x43002743: mov byte ptr [esi + 0xc], 0 */ 5194 edi = POP32_VAL(esp); /* 0x43002747: pop edi */ 5195 esi = POP32_VAL(esp); /* 0x43002748: pop esi */ 5196 ebx = POP32_VAL(esp); /* 0x43002749: pop ebx */ 5197 ebp = POP32_VAL(esp); /* 0x4300274A: pop ebp */ 5198 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4300274B: ret 4 */ 5199 L_4300274E: 5200 MEM8(esi + 0xC) = (uint8_t)(0); /* 0x4300274E: mov byte ptr [esi + 0xc], 0 */ 5201 esi = POP32_VAL(esp); /* 0x43002752: pop esi */ 5202 ebx = POP32_VAL(esp); /* 0x43002753: pop ebx */ 5203 ebp = POP32_VAL(esp); /* 0x43002754: pop ebp */ 5204 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002755: ret 4 */ 5205 RECOMP_REGS_OUT(); 5206 } 5207 5208 void sub_43002760(void) { 5209 int _fpu_cmp = 0; 5210 uint32_t _cf = 0; 5211 int _df = 1; 5212 uint32_t _flag_k = FK_NONE; 5213 uint32_t _flag_a = 0, _flag_b = 0; 5214 uint32_t _itail_tgt = 0; 5215 RECOMP_REGS_LOCALS 5216 RECOMP_ENTER(0x43002760u); 5217 5218 L_43002760: 5219 PUSH32(esp, esi); /* 0x43002760: push esi */ 5220 esi = ecx; /* 0x43002761: mov esi, ecx */ 5221 PUSH32(esp, 0); /* 0x43002763: push 0 */ 5222 MEM32(esi) = 0; /* 0x43002765: mov dword ptr [esi], 0 */ 5223 RECOMP_ICALL(0x43002790u); /* 0x4300276B: call 0x43002790 */ /* not lifted */ 5224 RECOMP_FLAGS_IN(); 5225 eax = esi; /* 0x43002770: mov eax, esi */ 5226 esi = POP32_VAL(esp); /* 0x43002772: pop esi */ 5227 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002773: ret */ 5228 RECOMP_REGS_OUT(); 5229 } 5230 5231 void sub_43002780(void) { 5232 int _fpu_cmp = 0; 5233 uint32_t _cf = 0; 5234 int _df = 1; 5235 uint32_t _flag_k = FK_NONE; 5236 uint32_t _flag_a = 0, _flag_b = 0; 5237 uint32_t _itail_tgt = 0; 5238 RECOMP_REGS_LOCALS 5239 RECOMP_ENTER(0x43002780u); 5240 5241 L_43002780: 5242 PUSH32(esp, 0); /* 0x43002780: push 0 */ 5243 RECOMP_ICALL(0x43002790u); /* 0x43002782: call 0x43002790 */ /* not lifted */ 5244 RECOMP_FLAGS_IN(); 5245 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002787: ret */ 5246 RECOMP_REGS_OUT(); 5247 } 5248 5249 void sub_43002790(void) { 5250 int _fpu_cmp = 0; 5251 uint32_t _cf = 0; 5252 int _df = 1; 5253 uint32_t _flag_k = FK_NONE; 5254 uint32_t _flag_a = 0, _flag_b = 0; 5255 uint32_t _itail_tgt = 0; 5256 RECOMP_REGS_LOCALS 5257 RECOMP_ENTER(0x43002790u); 5258 5259 L_43002790: 5260 PUSH32(esp, ebp); /* 0x43002790: push ebp */ 5261 ebp = esp; /* 0x43002791: mov ebp, esp */ 5262 PUSH32(esp, ebx); /* 0x43002793: push ebx */ 5263 PUSH32(esp, esi); /* 0x43002794: push esi */ 5264 esi = ecx; /* 0x43002795: mov esi, ecx */ 5265 PUSH32(esp, edi); /* 0x43002797: push edi */ 5266 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5267 edi = 0; /* 0x43002798: xor edi, edi */ 5268 _cf = 0; 5269 _flag_k = FK_TEST; 5270 eax = MEM32(esi); /* 0x4300279A: mov eax, dword ptr [esi] */ 5271 MEM32(esi + 0x4) = edi; /* 0x4300279C: mov dword ptr [esi + 4], edi */ 5272 PUSH32(esp, eax); /* 0x4300279F: push eax */ 5273 MEM32(esi + 0x8) = edi; /* 0x430027A0: mov dword ptr [esi + 8], edi */ 5274 RECOMP_ICALL(0x43003500u); /* 0x430027A3: call 0x43003500 */ /* not lifted */ 5275 RECOMP_FLAGS_IN(); 5276 ebx = MEM32(ebp + 0x8); /* 0x430027A8: mov ebx, dword ptr [ebp + 8] */ 5277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5279 esp = esp + 4; /* 0x430027AB: add esp, 4 */ 5280 _flag_k = FK_ADD; 5281 /* cmp ebx, edi */ /* 0x430027AE: cmp ebx, edi */ 5282 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 5283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5284 _flag_k = FK_CMP; 5285 MEM32(esi) = edi; /* 0x430027B0: mov dword ptr [esi], edi */ 5286 if (CMP_BE(_flag_a, _flag_b)) goto L_430027F2; /* 0x430027B2: jbe 0x430027f2 */ 5287 L_430027B4: 5288 ecx = ebx + ebx * 2; /* 0x430027B4: lea ecx, [ebx + ebx*2] */ 5289 if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x430027B7: shl ecx, 3 */ 5290 if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5291 ecx = ecx << 3u; /* 0x430027B7: shl ecx, 3 */ 5292 PUSH32(esp, ecx); /* 0x430027BA: push ecx */ 5293 RECOMP_ICALL(0x43003506u); /* 0x430027BB: call 0x43003506 */ /* not lifted */ 5294 RECOMP_FLAGS_IN(); 5295 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5297 esp = esp + 4; /* 0x430027C0: add esp, 4 */ 5298 _flag_k = FK_ADD; 5299 /* cmp eax, edi */ /* 0x430027C3: cmp eax, edi */ 5300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5302 _flag_k = FK_CMP; 5303 MEM32(ebp + 0x8) = eax; /* 0x430027C5: mov dword ptr [ebp + 8], eax */ 5304 if (CMP_EQ(_flag_a, _flag_b)) goto L_430027F0; /* 0x430027C8: je 0x430027f0 */ 5305 L_430027CA: 5306 edx = ebx + (-0x1); /* 0x430027CA: lea edx, [ebx - 1] */ 5307 /* cmp edx, edi */ /* 0x430027CD: cmp edx, edi */ 5308 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5310 _flag_k = FK_CMP; 5311 if (CMP_L(_flag_a, _flag_b)) goto L_430027EE; /* 0x430027CF: jl 0x430027ee */ 5312 L_430027D1: 5313 ecx = eax + 0x10; /* 0x430027D1: lea ecx, [eax + 0x10] */ 5314 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5315 edx = edx + 1; /* 0x430027D4: inc edx */ 5316 _flag_k = FK_INC; 5317 eax = 0x80000000u; /* 0x430027D5: mov eax, 0x80000000 */ 5318 L_430027DA: 5319 MEM32(ecx + (-0x8)) = edi; /* 0x430027DA: mov dword ptr [ecx - 8], edi */ 5320 MEM32(ecx + (-0x4)) = eax; /* 0x430027DD: mov dword ptr [ecx - 4], eax */ 5321 MEM32(ecx) = edi; /* 0x430027E0: mov dword ptr [ecx], edi */ 5322 MEM32(ecx + 0x4) = edi; /* 0x430027E2: mov dword ptr [ecx + 4], edi */ 5323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 5324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5325 ecx = ecx + 0x18u; /* 0x430027E5: add ecx, 0x18 */ 5326 _flag_k = FK_ADD; 5327 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5328 edx = edx - 1; /* 0x430027E8: dec edx */ 5329 _flag_k = FK_DEC; 5330 RECOMP_BACKEDGE(); 5331 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_430027DA; /* 0x430027E9: jne 0x430027da */ 5332 L_430027EB: 5333 eax = MEM32(ebp + 0x8); /* 0x430027EB: mov eax, dword ptr [ebp + 8] */ 5334 L_430027EE: 5335 edi = eax; /* 0x430027EE: mov edi, eax */ 5336 L_430027F0: 5337 MEM32(esi) = edi; /* 0x430027F0: mov dword ptr [esi], edi */ 5338 L_430027F2: 5339 MEM32(esi + 0xC) = ebx; /* 0x430027F2: mov dword ptr [esi + 0xc], ebx */ 5340 edi = POP32_VAL(esp); /* 0x430027F5: pop edi */ 5341 esi = POP32_VAL(esp); /* 0x430027F6: pop esi */ 5342 ebx = POP32_VAL(esp); /* 0x430027F7: pop ebx */ 5343 ebp = POP32_VAL(esp); /* 0x430027F8: pop ebp */ 5344 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430027F9: ret 4 */ 5345 RECOMP_REGS_OUT(); 5346 } 5347 5348 void sub_43002800(void) { 5349 int _fpu_cmp = 0; 5350 uint32_t _cf = 0; 5351 int _df = 1; 5352 uint32_t _flag_k = FK_NONE; 5353 uint32_t _flag_a = 0, _flag_b = 0; 5354 uint32_t _itail_tgt = 0; 5355 RECOMP_REGS_LOCALS 5356 RECOMP_ENTER(0x43002800u); 5357 5358 L_43002800: 5359 PUSH32(esp, ebp); /* 0x43002800: push ebp */ 5360 ebp = esp; /* 0x43002801: mov ebp, esp */ 5361 edx = MEM32(ecx); /* 0x43002803: mov edx, dword ptr [ecx] */ 5362 /* test edx, edx */ /* 0x43002805: test edx, edx */ 5363 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5364 _cf = 0; 5365 _flag_k = FK_TEST; 5366 if (TEST_Z(_flag_a, _flag_b)) goto L_4300286D; /* 0x43002807: je 0x4300286d */ 5367 L_43002809: 5368 eax = MEM32(ecx + 0x4); /* 0x43002809: mov eax, dword ptr [ecx + 4] */ 5369 PUSH32(esp, esi); /* 0x4300280C: push esi */ 5370 esi = MEM32(ebp + 0x8); /* 0x4300280D: mov esi, dword ptr [ebp + 8] */ 5371 eax = eax + eax * 2; /* 0x43002810: lea eax, [eax + eax*2] */ 5372 MEM32(edx + eax * 8) = esi; /* 0x43002813: mov dword ptr [edx + eax*8], esi */ 5373 eax = MEM32(ecx + 0x4); /* 0x43002816: mov eax, dword ptr [ecx + 4] */ 5374 esi = MEM32(ebp + 0xC); /* 0x43002819: mov esi, dword ptr [ebp + 0xc] */ 5375 edx = eax + eax * 2; /* 0x4300281C: lea edx, [eax + eax*2] */ 5376 eax = MEM32(ecx); /* 0x4300281F: mov eax, dword ptr [ecx] */ 5377 MEM32(eax + edx * 8 + 0x4) = esi; /* 0x43002821: mov dword ptr [eax + edx*8 + 4], esi */ 5378 eax = MEM32(ecx + 0x4); /* 0x43002825: mov eax, dword ptr [ecx + 4] */ 5379 edx = eax + eax * 2; /* 0x43002828: lea edx, [eax + eax*2] */ 5380 eax = MEM32(ecx); /* 0x4300282B: mov eax, dword ptr [ecx] */ 5381 edx = eax + edx * 8 + 0x8; /* 0x4300282D: lea edx, [eax + edx*8 + 8] */ 5382 eax = MEM32(ebp + 0x10); /* 0x43002831: mov eax, dword ptr [ebp + 0x10] */ 5383 esi = MEM32(eax); /* 0x43002834: mov esi, dword ptr [eax] */ 5384 MEM32(edx) = esi; /* 0x43002836: mov dword ptr [edx], esi */ 5385 esi = MEM32(eax + 0x4); /* 0x43002838: mov esi, dword ptr [eax + 4] */ 5386 MEM32(edx + 0x4) = esi; /* 0x4300283B: mov dword ptr [edx + 4], esi */ 5387 esi = MEM32(eax + 0x8); /* 0x4300283E: mov esi, dword ptr [eax + 8] */ 5388 MEM32(edx + 0x8) = esi; /* 0x43002841: mov dword ptr [edx + 8], esi */ 5389 esi = POP32_VAL(esp); /* 0x43002844: pop esi */ 5390 eax = MEM32(eax + 0xC); /* 0x43002845: mov eax, dword ptr [eax + 0xc] */ 5391 MEM32(edx + 0xC) = eax; /* 0x43002848: mov dword ptr [edx + 0xc], eax */ 5392 eax = MEM32(ecx + 0x4); /* 0x4300284B: mov eax, dword ptr [ecx + 4] */ 5393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5394 eax = eax + 1; /* 0x4300284E: inc eax */ 5395 _flag_k = FK_INC; 5396 MEM32(ecx + 0x4) = eax; /* 0x4300284F: mov dword ptr [ecx + 4], eax */ 5397 edx = eax; /* 0x43002852: mov edx, eax */ 5398 eax = MEM32(ecx + 0xC); /* 0x43002854: mov eax, dword ptr [ecx + 0xc] */ 5399 /* cmp edx, eax */ /* 0x43002857: cmp edx, eax */ 5400 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5402 _flag_k = FK_CMP; 5403 if (CMP_B(_flag_a, _flag_b)) goto L_43002862; /* 0x43002859: jb 0x43002862 */ 5404 L_4300285B: 5405 MEM32(ecx + 0x4) = 0; /* 0x4300285B: mov dword ptr [ecx + 4], 0 */ 5406 L_43002862: 5407 edx = MEM32(ecx + 0x8); /* 0x43002862: mov edx, dword ptr [ecx + 8] */ 5408 /* cmp edx, eax */ /* 0x43002865: cmp edx, eax */ 5409 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5411 _flag_k = FK_CMP; 5412 if (CMP_AE(_flag_a, _flag_b)) goto L_4300286D; /* 0x43002867: jae 0x4300286d */ 5413 L_43002869: 5414 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5415 edx = edx + 1; /* 0x43002869: inc edx */ 5416 _flag_k = FK_INC; 5417 MEM32(ecx + 0x8) = edx; /* 0x4300286A: mov dword ptr [ecx + 8], edx */ 5418 L_4300286D: 5419 ebp = POP32_VAL(esp); /* 0x4300286D: pop ebp */ 5420 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4300286E: ret 0xc */ 5421 RECOMP_REGS_OUT(); 5422 } 5423 5424 void sub_43002880(void) { 5425 int _fpu_cmp = 0; 5426 uint32_t _cf = 0; 5427 int _df = 1; 5428 uint32_t _flag_k = FK_NONE; 5429 uint32_t _flag_a = 0, _flag_b = 0; 5430 uint32_t _itail_tgt = 0; 5431 RECOMP_REGS_LOCALS 5432 RECOMP_ENTER(0x43002880u); 5433 5434 L_43002880: 5435 PUSH32(esp, ebp); /* 0x43002880: push ebp */ 5436 ebp = esp; /* 0x43002881: mov ebp, esp */ 5437 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5439 esp = esp - 8; /* 0x43002883: sub esp, 8 */ 5440 _flag_k = FK_CMP; 5441 PUSH32(esp, ebx); /* 0x43002886: push ebx */ 5442 ebx = ecx; /* 0x43002887: mov ebx, ecx */ 5443 PUSH32(esp, esi); /* 0x43002889: push esi */ 5444 eax = MEM32(ebx + 0x8); /* 0x4300288A: mov eax, dword ptr [ebx + 8] */ 5445 eax = eax + eax * 2; /* 0x4300288D: lea eax, [eax + eax*2] */ 5446 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x43002890: shl eax, 3 */ 5447 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5448 eax = eax << 3u; /* 0x43002890: shl eax, 3 */ 5449 PUSH32(esp, eax); /* 0x43002893: push eax */ 5450 RECOMP_ICALL(MEM32(0x43004020)); /* 0x43002894: call dword ptr [0x43004020] */ 5451 RECOMP_FLAGS_IN(); 5452 esi = MEM32(ebx + 0x8); /* 0x4300289A: mov esi, dword ptr [ebx + 8] */ 5453 edx = MEM32(ebx + 0x4); /* 0x4300289D: mov edx, dword ptr [ebx + 4] */ 5454 ecx = eax; /* 0x430028A0: mov ecx, eax */ 5455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5457 esp = esp + 4; /* 0x430028A2: add esp, 4 */ 5458 _flag_k = FK_ADD; 5459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5460 eax = 0; /* 0x430028A5: xor eax, eax */ 5461 _cf = 0; 5462 _flag_k = FK_TEST; 5463 MEM32(ebp + (-0x8)) = ecx; /* 0x430028A7: mov dword ptr [ebp - 8], ecx */ 5464 /* test esi, esi */ /* 0x430028AA: test esi, esi */ 5465 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5466 _cf = 0; 5467 _flag_k = FK_TEST; 5468 if (TEST_Z(_flag_a, _flag_b)) goto L_430028E5; /* 0x430028AC: jbe 0x430028e5 */ 5469 L_430028AE: 5470 PUSH32(esp, edi); /* 0x430028AE: push edi */ 5471 MEM32(ebp + (-0x4)) = ecx; /* 0x430028AF: mov dword ptr [ebp - 4], ecx */ 5472 L_430028B2: 5473 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5474 edx = edx - 1; /* 0x430028B2: dec edx */ 5475 _flag_k = FK_DEC; 5476 if (/* dec result */ CMP_NS(_flag_a, _flag_b)) goto L_430028B8; /* 0x430028B3: jns 0x430028b8 */ 5477 L_430028B5: 5478 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 5479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5480 edx = edx + MEM32(ebx + 0xC); /* 0x430028B5: add edx, dword ptr [ebx + 0xc] */ 5481 _flag_k = FK_ADD; 5482 L_430028B8: 5483 esi = MEM32(ebx); /* 0x430028B8: mov esi, dword ptr [ebx] */ 5484 edi = MEM32(ebp + (-0x4)); /* 0x430028BA: mov edi, dword ptr [ebp - 4] */ 5485 ecx = edx + edx * 2; /* 0x430028BD: lea ecx, [edx + edx*2] */ 5486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5487 eax = eax + 1; /* 0x430028C0: inc eax */ 5488 _flag_k = FK_INC; 5489 esi = esi + ecx * 8; /* 0x430028C1: lea esi, [esi + ecx*8] */ 5490 ecx = 6; /* 0x430028C4: mov ecx, 6 */ 5491 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x430028C9: 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; } 5492 esi = MEM32(ebp + (-0x4)); /* 0x430028CB: mov esi, dword ptr [ebp - 4] */ 5493 ecx = MEM32(ebx + 0x8); /* 0x430028CE: mov ecx, dword ptr [ebx + 8] */ 5494 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 5495 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5496 esi = esi + 0x18u; /* 0x430028D1: add esi, 0x18 */ 5497 _flag_k = FK_ADD; 5498 /* cmp eax, ecx */ /* 0x430028D4: cmp eax, ecx */ 5499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5501 _flag_k = FK_CMP; 5502 MEM32(ebp + (-0x4)) = esi; /* 0x430028D6: mov dword ptr [ebp - 4], esi */ 5503 RECOMP_BACKEDGE(); 5504 if (CMP_B(_flag_a, _flag_b)) goto L_430028B2; /* 0x430028D9: jb 0x430028b2 */ 5505 L_430028DB: 5506 eax = MEM32(ebp + (-0x8)); /* 0x430028DB: mov eax, dword ptr [ebp - 8] */ 5507 edi = POP32_VAL(esp); /* 0x430028DE: pop edi */ 5508 esi = POP32_VAL(esp); /* 0x430028DF: pop esi */ 5509 ebx = POP32_VAL(esp); /* 0x430028E0: pop ebx */ 5510 esp = ebp; /* 0x430028E1: mov esp, ebp */ 5511 ebp = POP32_VAL(esp); /* 0x430028E3: pop ebp */ 5512 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430028E4: ret */ 5513 L_430028E5: 5514 esi = POP32_VAL(esp); /* 0x430028E5: pop esi */ 5515 eax = ecx; /* 0x430028E6: mov eax, ecx */ 5516 ebx = POP32_VAL(esp); /* 0x430028E8: pop ebx */ 5517 esp = ebp; /* 0x430028E9: mov esp, ebp */ 5518 ebp = POP32_VAL(esp); /* 0x430028EB: pop ebp */ 5519 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430028EC: ret */ 5520 RECOMP_REGS_OUT(); 5521 } 5522 5523 void sub_430028F0(void) { 5524 int _fpu_cmp = 0; 5525 uint32_t _cf = 0; 5526 int _df = 1; 5527 uint32_t _flag_k = FK_NONE; 5528 uint32_t _flag_a = 0, _flag_b = 0; 5529 uint32_t _itail_tgt = 0; 5530 RECOMP_REGS_LOCALS 5531 RECOMP_ENTER(0x430028F0u); 5532 5533 L_430028F0: 5534 RECOMP_ICALL(0x43002900u); /* 0x430028F0: call 0x43002900 */ /* not lifted */ 5535 RECOMP_FLAGS_IN(); 5536 goto L_43002910; /* 0x430028F5: jmp 0x43002910 */ 5537 L_43002910: 5538 PUSH32(esp, 0x43002920u); /* 0x43002910: push 0x43002920 */ 5539 RECOMP_ICALL(0x4300357Bu); /* 0x43002915: call 0x4300357b */ /* not lifted */ 5540 RECOMP_FLAGS_IN(); 5541 ecx = POP32_VAL(esp); /* 0x4300291A: pop ecx */ 5542 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300291B: ret */ 5543 RECOMP_REGS_OUT(); 5544 } 5545 5546 void sub_43002900(void) { 5547 int _fpu_cmp = 0; 5548 uint32_t _cf = 0; 5549 int _df = 1; 5550 uint32_t _flag_k = FK_NONE; 5551 uint32_t _flag_a = 0, _flag_b = 0; 5552 uint32_t _itail_tgt = 0; 5553 RECOMP_REGS_LOCALS 5554 RECOMP_ENTER(0x43002900u); 5555 5556 L_43002900: 5557 ecx = 0x43006725u; /* 0x43002900: mov ecx, 0x43006725 */ 5558 L_43002905: 5559 { _itail_tgt = (uint32_t)(MEM32(0x43004018)); goto _ljump; } 5560 { RECOMP_REGS_OUT(); return; } /* end of function */ 5561 _ljump: 5562 switch (_itail_tgt) { 5563 case 0x43002900u: goto L_43002900; 5564 case 0x43002905u: goto L_43002905; 5565 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5566 } 5567 RECOMP_REGS_OUT(); 5568 } 5569 5570 void sub_43002910(void) { 5571 int _fpu_cmp = 0; 5572 uint32_t _cf = 0; 5573 int _df = 1; 5574 uint32_t _flag_k = FK_NONE; 5575 uint32_t _flag_a = 0, _flag_b = 0; 5576 uint32_t _itail_tgt = 0; 5577 RECOMP_REGS_LOCALS 5578 RECOMP_ENTER(0x43002910u); 5579 5580 L_43002910: 5581 PUSH32(esp, 0x43002920u); /* 0x43002910: push 0x43002920 */ 5582 RECOMP_ICALL(0x4300357Bu); /* 0x43002915: call 0x4300357b */ /* not lifted */ 5583 RECOMP_FLAGS_IN(); 5584 ecx = POP32_VAL(esp); /* 0x4300291A: pop ecx */ 5585 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300291B: ret */ 5586 RECOMP_REGS_OUT(); 5587 } 5588 5589 void sub_43002920(void) { 5590 int _fpu_cmp = 0; 5591 uint32_t _cf = 0; 5592 int _df = 1; 5593 uint32_t _flag_k = FK_NONE; 5594 uint32_t _flag_a = 0, _flag_b = 0; 5595 uint32_t _itail_tgt = 0; 5596 RECOMP_REGS_LOCALS 5597 RECOMP_ENTER(0x43002920u); 5598 5599 L_43002920: 5600 ecx = 0x43006725u; /* 0x43002920: mov ecx, 0x43006725 */ 5601 L_43002925: 5602 { _itail_tgt = (uint32_t)(MEM32(0x43004014)); goto _ljump; } 5603 { RECOMP_REGS_OUT(); return; } /* end of function */ 5604 _ljump: 5605 switch (_itail_tgt) { 5606 case 0x43002920u: goto L_43002920; 5607 case 0x43002925u: goto L_43002925; 5608 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5609 } 5610 RECOMP_REGS_OUT(); 5611 } 5612 5613 void sub_43002930(void) { 5614 int _fpu_cmp = 0; 5615 uint32_t _cf = 0; 5616 int _df = 1; 5617 uint32_t _flag_k = FK_NONE; 5618 uint32_t _flag_a = 0, _flag_b = 0; 5619 uint32_t _itail_tgt = 0; 5620 RECOMP_REGS_LOCALS 5621 RECOMP_ENTER(0x43002930u); 5622 5623 L_43002930: 5624 RECOMP_ICALL(0x43002940u); /* 0x43002930: call 0x43002940 */ /* not lifted */ 5625 RECOMP_FLAGS_IN(); 5626 goto L_43002950; /* 0x43002935: jmp 0x43002950 */ 5627 L_43002950: 5628 PUSH32(esp, 0x43002960u); /* 0x43002950: push 0x43002960 */ 5629 RECOMP_ICALL(0x4300357Bu); /* 0x43002955: call 0x4300357b */ /* not lifted */ 5630 RECOMP_FLAGS_IN(); 5631 ecx = POP32_VAL(esp); /* 0x4300295A: pop ecx */ 5632 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300295B: ret */ 5633 RECOMP_REGS_OUT(); 5634 } 5635 5636 void sub_43002940(void) { 5637 int _fpu_cmp = 0; 5638 uint32_t _cf = 0; 5639 int _df = 1; 5640 uint32_t _flag_k = FK_NONE; 5641 uint32_t _flag_a = 0, _flag_b = 0; 5642 uint32_t _itail_tgt = 0; 5643 RECOMP_REGS_LOCALS 5644 RECOMP_ENTER(0x43002940u); 5645 5646 L_43002940: 5647 ecx = 0x43006724u; /* 0x43002940: mov ecx, 0x43006724 */ 5648 L_43002945: 5649 { _itail_tgt = (uint32_t)(MEM32(0x43004010)); goto _ljump; } 5650 { RECOMP_REGS_OUT(); return; } /* end of function */ 5651 _ljump: 5652 switch (_itail_tgt) { 5653 case 0x43002940u: goto L_43002940; 5654 case 0x43002945u: goto L_43002945; 5655 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5656 } 5657 RECOMP_REGS_OUT(); 5658 } 5659 5660 void sub_43002950(void) { 5661 int _fpu_cmp = 0; 5662 uint32_t _cf = 0; 5663 int _df = 1; 5664 uint32_t _flag_k = FK_NONE; 5665 uint32_t _flag_a = 0, _flag_b = 0; 5666 uint32_t _itail_tgt = 0; 5667 RECOMP_REGS_LOCALS 5668 RECOMP_ENTER(0x43002950u); 5669 5670 L_43002950: 5671 PUSH32(esp, 0x43002960u); /* 0x43002950: push 0x43002960 */ 5672 RECOMP_ICALL(0x4300357Bu); /* 0x43002955: call 0x4300357b */ /* not lifted */ 5673 RECOMP_FLAGS_IN(); 5674 ecx = POP32_VAL(esp); /* 0x4300295A: pop ecx */ 5675 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300295B: ret */ 5676 RECOMP_REGS_OUT(); 5677 } 5678 5679 void sub_43002960(void) { 5680 int _fpu_cmp = 0; 5681 uint32_t _cf = 0; 5682 int _df = 1; 5683 uint32_t _flag_k = FK_NONE; 5684 uint32_t _flag_a = 0, _flag_b = 0; 5685 uint32_t _itail_tgt = 0; 5686 RECOMP_REGS_LOCALS 5687 RECOMP_ENTER(0x43002960u); 5688 5689 L_43002960: 5690 ecx = 0x43006724u; /* 0x43002960: mov ecx, 0x43006724 */ 5691 L_43002965: 5692 { _itail_tgt = (uint32_t)(MEM32(0x4300400C)); goto _ljump; } 5693 { RECOMP_REGS_OUT(); return; } /* end of function */ 5694 _ljump: 5695 switch (_itail_tgt) { 5696 case 0x43002960u: goto L_43002960; 5697 case 0x43002965u: goto L_43002965; 5698 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5699 } 5700 RECOMP_REGS_OUT(); 5701 } 5702 5703 void sub_43002970(void) { 5704 int _fpu_cmp = 0; 5705 uint32_t _cf = 0; 5706 int _df = 1; 5707 uint32_t _flag_k = FK_NONE; 5708 uint32_t _flag_a = 0, _flag_b = 0; 5709 uint32_t _itail_tgt = 0; 5710 RECOMP_REGS_LOCALS 5711 RECOMP_ENTER(0x43002970u); 5712 5713 L_43002970: 5714 edx = MEM32(ecx + 0x4); /* 0x43002970: mov edx, dword ptr [ecx + 4] */ 5715 L_43002973: 5716 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5717 eax = eax | 0xFFFFFFFFu; /* 0x43002973: or eax, 0xffffffff */ 5718 _cf = 0; 5719 _flag_k = FK_TEST; 5720 L_43002976: 5721 /* cmp edx, eax */ /* 0x43002976: cmp edx, eax */ 5722 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5724 _flag_k = FK_CMP; 5725 L_43002978: 5726 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_43002985; /* 0x43002978: je 0x43002985 */ 5727 L_4300297A: 5728 MEM32(ecx + 0x4) = eax; /* 0x4300297A: mov dword ptr [ecx + 4], eax */ 5729 L_4300297D: 5730 ecx = MEM32(ecx); /* 0x4300297D: mov ecx, dword ptr [ecx] */ 5731 L_4300297F: 5732 { _itail_tgt = (uint32_t)(MEM32(0x43004088)); goto _ljump; } 5733 L_43002985: 5734 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002985: ret */ 5735 _ljump: 5736 switch (_itail_tgt) { 5737 case 0x43002970u: goto L_43002970; 5738 case 0x43002973u: goto L_43002973; 5739 case 0x43002976u: goto L_43002976; 5740 case 0x43002978u: goto L_43002978; 5741 case 0x4300297Au: goto L_4300297A; 5742 case 0x4300297Du: goto L_4300297D; 5743 case 0x4300297Fu: goto L_4300297F; 5744 case 0x43002985u: goto L_43002985; 5745 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5746 } 5747 RECOMP_REGS_OUT(); 5748 } 5749 5750 void sub_43002990(void) { 5751 int _fpu_cmp = 0; 5752 uint32_t _cf = 0; 5753 int _df = 1; 5754 uint32_t _flag_k = FK_NONE; 5755 uint32_t _flag_a = 0, _flag_b = 0; 5756 uint32_t _itail_tgt = 0; 5757 RECOMP_REGS_LOCALS 5758 RECOMP_ENTER(0x43002990u); 5759 5760 L_43002990: 5761 goto L_430029A0; /* 0x43002990: jmp 0x430029a0 */ 5762 L_430029A0: 5763 MEM32(0x43006720) = 0x43006580u; /* 0x430029A0: mov dword ptr [0x43006720], 0x43006580 */ 5764 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430029AA: ret */ 5765 RECOMP_REGS_OUT(); 5766 } 5767 5768 void sub_430029A0(void) { 5769 int _fpu_cmp = 0; 5770 uint32_t _cf = 0; 5771 int _df = 1; 5772 uint32_t _flag_k = FK_NONE; 5773 uint32_t _flag_a = 0, _flag_b = 0; 5774 uint32_t _itail_tgt = 0; 5775 RECOMP_REGS_LOCALS 5776 RECOMP_ENTER(0x430029A0u); 5777 5778 L_430029A0: 5779 MEM32(0x43006720) = 0x43006580u; /* 0x430029A0: mov dword ptr [0x43006720], 0x43006580 */ 5780 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430029AA: ret */ 5781 RECOMP_REGS_OUT(); 5782 } 5783 5784 void sub_430029B0(void) { 5785 int _fpu_cmp = 0; 5786 uint32_t _cf = 0; 5787 int _df = 1; 5788 uint32_t _flag_k = FK_NONE; 5789 uint32_t _flag_a = 0, _flag_b = 0; 5790 uint32_t _itail_tgt = 0; 5791 RECOMP_REGS_LOCALS 5792 RECOMP_ENTER(0x430029B0u); 5793 5794 L_430029B0: 5795 PUSH32(esp, ebp); /* 0x430029B0: push ebp */ 5796 ebp = esp; /* 0x430029B1: mov ebp, esp */ 5797 eax = MEM32(ebp + 0x8); /* 0x430029B3: mov eax, dword ptr [ebp + 8] */ 5798 MEM32(ecx + 0x8) = eax; /* 0x430029B6: mov dword ptr [ecx + 8], eax */ 5799 ebp = POP32_VAL(esp); /* 0x430029B9: pop ebp */ 5800 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430029BA: ret 4 */ 5801 RECOMP_REGS_OUT(); 5802 } 5803 5804 void sub_430029C0(void) { 5805 int _fpu_cmp = 0; 5806 uint32_t _cf = 0; 5807 int _df = 1; 5808 uint32_t _flag_k = FK_NONE; 5809 uint32_t _flag_a = 0, _flag_b = 0; 5810 uint32_t _itail_tgt = 0; 5811 RECOMP_REGS_LOCALS 5812 RECOMP_ENTER(0x430029C0u); 5813 5814 L_430029C0: 5815 PUSH32(esp, ebp); /* 0x430029C0: push ebp */ 5816 ebp = esp; /* 0x430029C1: mov ebp, esp */ 5817 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x430029C3: mov al, byte ptr [ebp + 8] */ 5818 MEM8(ecx + 0x2) = (uint8_t)(LO8(eax)); /* 0x430029C6: mov byte ptr [ecx + 2], al */ 5819 ebp = POP32_VAL(esp); /* 0x430029C9: pop ebp */ 5820 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430029CA: ret 4 */ 5821 RECOMP_REGS_OUT(); 5822 } 5823 5824 void sub_430029D0(void) { 5825 int _fpu_cmp = 0; 5826 uint32_t _cf = 0; 5827 int _df = 1; 5828 uint32_t _flag_k = FK_NONE; 5829 uint32_t _flag_a = 0, _flag_b = 0; 5830 uint32_t _itail_tgt = 0; 5831 RECOMP_REGS_LOCALS 5832 RECOMP_ENTER(0x430029D0u); 5833 5834 L_430029D0: 5835 PUSH32(esp, ebp); /* 0x430029D0: push ebp */ 5836 ebp = esp; /* 0x430029D1: mov ebp, esp */ 5837 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x430029D3: mov al, byte ptr [ebp + 8] */ 5838 MEM8(ecx + 0x4) = (uint8_t)(LO8(eax)); /* 0x430029D6: mov byte ptr [ecx + 4], al */ 5839 ebp = POP32_VAL(esp); /* 0x430029D9: pop ebp */ 5840 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430029DA: ret 4 */ 5841 RECOMP_REGS_OUT(); 5842 } 5843 5844 void sub_430029E0(void) { 5845 int _fpu_cmp = 0; 5846 uint32_t _cf = 0; 5847 int _df = 1; 5848 uint32_t _flag_k = FK_NONE; 5849 uint32_t _flag_a = 0, _flag_b = 0; 5850 uint32_t _itail_tgt = 0; 5851 RECOMP_REGS_LOCALS 5852 RECOMP_ENTER(0x430029E0u); 5853 5854 L_430029E0: 5855 PUSH32(esp, ebp); /* 0x430029E0: push ebp */ 5856 ebp = esp; /* 0x430029E1: mov ebp, esp */ 5857 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x430029E3: mov al, byte ptr [ebp + 8] */ 5858 MEM8(ecx + 0x1C) = (uint8_t)(LO8(eax)); /* 0x430029E6: mov byte ptr [ecx + 0x1c], al */ 5859 ebp = POP32_VAL(esp); /* 0x430029E9: pop ebp */ 5860 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430029EA: ret 4 */ 5861 RECOMP_REGS_OUT(); 5862 } 5863 5864 void sub_430029F0(void) { 5865 int _fpu_cmp = 0; 5866 uint32_t _cf = 0; 5867 int _df = 1; 5868 uint32_t _flag_k = FK_NONE; 5869 uint32_t _flag_a = 0, _flag_b = 0; 5870 uint32_t _itail_tgt = 0; 5871 RECOMP_REGS_LOCALS 5872 RECOMP_ENTER(0x430029F0u); 5873 5874 L_430029F0: 5875 SET_LO8(eax, MEM8(ecx + 0xC)); /* 0x430029F0: mov al, byte ptr [ecx + 0xc] */ 5876 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430029F3: ret */ 5877 RECOMP_REGS_OUT(); 5878 } 5879 5880 void sub_43002A00(void) { 5881 int _fpu_cmp = 0; 5882 uint32_t _cf = 0; 5883 int _df = 1; 5884 uint32_t _flag_k = FK_NONE; 5885 uint32_t _flag_a = 0, _flag_b = 0; 5886 uint32_t _itail_tgt = 0; 5887 RECOMP_REGS_LOCALS 5888 RECOMP_ENTER(0x43002A00u); 5889 5890 L_43002A00: 5891 SET_LO8(eax, MEM8(ecx + 0x1C)); /* 0x43002A00: mov al, byte ptr [ecx + 0x1c] */ 5892 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002A03: ret */ 5893 RECOMP_REGS_OUT(); 5894 } 5895 5896 void sub_43002A10(void) { 5897 int _fpu_cmp = 0; 5898 uint32_t _cf = 0; 5899 int _df = 1; 5900 uint32_t _flag_k = FK_NONE; 5901 uint32_t _flag_a = 0, _flag_b = 0; 5902 uint32_t _itail_tgt = 0; 5903 RECOMP_REGS_LOCALS 5904 RECOMP_ENTER(0x43002A10u); 5905 5906 L_43002A10: 5907 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002A10: ret */ 5908 RECOMP_REGS_OUT(); 5909 } 5910 5911 void sub_43002A20(void) { 5912 int _fpu_cmp = 0; 5913 uint32_t _cf = 0; 5914 int _df = 1; 5915 uint32_t _flag_k = FK_NONE; 5916 uint32_t _flag_a = 0, _flag_b = 0; 5917 uint32_t _itail_tgt = 0; 5918 RECOMP_REGS_LOCALS 5919 RECOMP_ENTER(0x43002A20u); 5920 5921 L_43002A20: 5922 PUSH32(esp, ebp); /* 0x43002A20: push ebp */ 5923 ebp = esp; /* 0x43002A21: mov ebp, esp */ 5924 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x43002A23: mov al, byte ptr [ebp + 8] */ 5925 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x43002A26: mov byte ptr [ecx], al */ 5926 ebp = POP32_VAL(esp); /* 0x43002A28: pop ebp */ 5927 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002A29: ret 4 */ 5928 RECOMP_REGS_OUT(); 5929 } 5930 5931 void sub_43002A30(void) { 5932 int _fpu_cmp = 0; 5933 uint32_t _cf = 0; 5934 int _df = 1; 5935 uint32_t _flag_k = FK_NONE; 5936 uint32_t _flag_a = 0, _flag_b = 0; 5937 uint32_t _itail_tgt = 0; 5938 RECOMP_REGS_LOCALS 5939 RECOMP_ENTER(0x43002A30u); 5940 5941 L_43002A30: 5942 SET_LO8(eax, MEM8(ecx)); /* 0x43002A30: mov al, byte ptr [ecx] */ 5943 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002A32: ret */ 5944 RECOMP_REGS_OUT(); 5945 } 5946 5947 void sub_43002A40(void) { 5948 int _fpu_cmp = 0; 5949 uint32_t _cf = 0; 5950 int _df = 1; 5951 uint32_t _flag_k = FK_NONE; 5952 uint32_t _flag_a = 0, _flag_b = 0; 5953 uint32_t _itail_tgt = 0; 5954 RECOMP_REGS_LOCALS 5955 RECOMP_ENTER(0x43002A40u); 5956 5957 L_43002A40: 5958 eax = MEM32(ecx + 0x94); /* 0x43002A40: mov eax, dword ptr [ecx + 0x94] */ 5959 edx = MEM32(ecx + 0x98); /* 0x43002A46: mov edx, dword ptr [ecx + 0x98] */ 5960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5962 eax = eax - edx; /* 0x43002A4C: sub eax, edx */ 5963 _flag_k = FK_CMP; 5964 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002A4E: ret */ 5965 RECOMP_REGS_OUT(); 5966 } 5967 5968 void sub_43002A50(void) { 5969 int _fpu_cmp = 0; 5970 uint32_t _cf = 0; 5971 int _df = 1; 5972 uint32_t _flag_k = FK_NONE; 5973 uint32_t _flag_a = 0, _flag_b = 0; 5974 uint32_t _itail_tgt = 0; 5975 RECOMP_REGS_LOCALS 5976 RECOMP_ENTER(0x43002A50u); 5977 5978 L_43002A50: 5979 eax = MEM32(ecx + 0x8C); /* 0x43002A50: mov eax, dword ptr [ecx + 0x8c] */ 5980 edx = MEM32(ecx + 0x90); /* 0x43002A56: mov edx, dword ptr [ecx + 0x90] */ 5981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5983 eax = eax - edx; /* 0x43002A5C: sub eax, edx */ 5984 _flag_k = FK_CMP; 5985 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002A5E: ret */ 5986 RECOMP_REGS_OUT(); 5987 } 5988 5989 void sub_43002A60(void) { 5990 int _fpu_cmp = 0; 5991 uint32_t _cf = 0; 5992 int _df = 1; 5993 uint32_t _flag_k = FK_NONE; 5994 uint32_t _flag_a = 0, _flag_b = 0; 5995 uint32_t _itail_tgt = 0; 5996 RECOMP_REGS_LOCALS 5997 RECOMP_ENTER(0x43002A60u); 5998 5999 L_43002A60: 6000 PUSH32(esp, ebp); /* 0x43002A60: push ebp */ 6001 ebp = esp; /* 0x43002A61: mov ebp, esp */ 6002 PUSH32(esp, esi); /* 0x43002A63: push esi */ 6003 esi = MEM32(ebp + 0x8); /* 0x43002A64: mov esi, dword ptr [ebp + 8] */ 6004 eax = ecx; /* 0x43002A67: mov eax, ecx */ 6005 PUSH32(esp, edi); /* 0x43002A69: push edi */ 6006 ecx = 0x29u; /* 0x43002A6A: mov ecx, 0x29 */ 6007 edi = eax; /* 0x43002A6F: mov edi, eax */ 6008 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x43002A71: 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; } 6009 edi = POP32_VAL(esp); /* 0x43002A73: pop edi */ 6010 esi = POP32_VAL(esp); /* 0x43002A74: pop esi */ 6011 ebp = POP32_VAL(esp); /* 0x43002A75: pop ebp */ 6012 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002A76: ret 4 */ 6013 RECOMP_REGS_OUT(); 6014 } 6015 6016 void sub_43002A80(void) { 6017 int _fpu_cmp = 0; 6018 uint32_t _cf = 0; 6019 int _df = 1; 6020 uint32_t _flag_k = FK_NONE; 6021 uint32_t _flag_a = 0, _flag_b = 0; 6022 uint32_t _itail_tgt = 0; 6023 RECOMP_REGS_LOCALS 6024 RECOMP_ENTER(0x43002A80u); 6025 6026 L_43002A80: 6027 PUSH32(esp, ebp); /* 0x43002A80: push ebp */ 6028 ebp = esp; /* 0x43002A81: mov ebp, esp */ 6029 PUSH32(esp, esi); /* 0x43002A83: push esi */ 6030 esi = MEM32(ebp + 0x8); /* 0x43002A84: mov esi, dword ptr [ebp + 8] */ 6031 eax = ecx; /* 0x43002A87: mov eax, ecx */ 6032 PUSH32(esp, edi); /* 0x43002A89: push edi */ 6033 ecx = 0x55u; /* 0x43002A8A: mov ecx, 0x55 */ 6034 edi = eax; /* 0x43002A8F: mov edi, eax */ 6035 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x43002A91: 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; } 6036 edi = POP32_VAL(esp); /* 0x43002A93: pop edi */ 6037 esi = POP32_VAL(esp); /* 0x43002A94: pop esi */ 6038 ebp = POP32_VAL(esp); /* 0x43002A95: pop ebp */ 6039 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002A96: ret 4 */ 6040 RECOMP_REGS_OUT(); 6041 } 6042 6043 void sub_43002AA0(void) { 6044 int _fpu_cmp = 0; 6045 uint32_t _cf = 0; 6046 int _df = 1; 6047 uint32_t _flag_k = FK_NONE; 6048 uint32_t _flag_a = 0, _flag_b = 0; 6049 uint32_t _itail_tgt = 0; 6050 RECOMP_REGS_LOCALS 6051 RECOMP_ENTER(0x43002AA0u); 6052 6053 L_43002AA0: 6054 PUSH32(esp, 0); /* 0x43002AA0: push 0 */ 6055 PUSH32(esp, 0); /* 0x43002AA2: push 0 */ 6056 RECOMP_ICALL(0x43002CC0u); /* 0x43002AA4: call 0x43002cc0 */ /* not lifted */ 6057 RECOMP_FLAGS_IN(); 6058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002AA9: ret */ 6059 RECOMP_REGS_OUT(); 6060 } 6061 6062 void sub_43002AB0(void) { 6063 int _fpu_cmp = 0; 6064 uint32_t _cf = 0; 6065 int _df = 1; 6066 uint32_t _flag_k = FK_NONE; 6067 uint32_t _flag_a = 0, _flag_b = 0; 6068 uint32_t _itail_tgt = 0; 6069 RECOMP_REGS_LOCALS 6070 RECOMP_ENTER(0x43002AB0u); 6071 6072 L_43002AB0: 6073 eax = MEM32(0x4300E888); /* 0x43002AB0: mov eax, dword ptr [0x4300e888] */ 6074 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002AB5: ret */ 6075 RECOMP_REGS_OUT(); 6076 } 6077 6078 void sub_43002AC0(void) { 6079 int _fpu_cmp = 0; 6080 uint32_t _cf = 0; 6081 int _df = 1; 6082 uint32_t _flag_k = FK_NONE; 6083 uint32_t _flag_a = 0, _flag_b = 0; 6084 uint32_t _itail_tgt = 0; 6085 RECOMP_REGS_LOCALS 6086 RECOMP_ENTER(0x43002AC0u); 6087 6088 L_43002AC0: 6089 PUSH32(esp, ebp); /* 0x43002AC0: push ebp */ 6090 ebp = esp; /* 0x43002AC1: mov ebp, esp */ 6091 PUSH32(esp, 0xFFFFFFFFu); /* 0x43002AC3: push -1 */ 6092 PUSH32(esp, 0x430038EBu); /* 0x43002AC5: push 0x430038eb */ 6093 eax = MEM32(FS_BASE + (0)); /* 0x43002ACA: mov eax, dword ptr fs:[0] */ 6094 PUSH32(esp, eax); /* 0x43002AD0: push eax */ 6095 MEM32(FS_BASE + (0)) = esp; /* 0x43002AD1: mov dword ptr fs:[0], esp */ 6096 PUSH32(esp, ecx); /* 0x43002AD8: push ecx */ 6097 eax = MEM32(0x4300E888); /* 0x43002AD9: mov eax, dword ptr [0x4300e888] */ 6098 /* test eax, eax */ /* 0x43002ADE: test eax, eax */ 6099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6100 _cf = 0; 6101 _flag_k = FK_TEST; 6102 if (TEST_NZ(_flag_a, _flag_b)) goto L_43002B26; /* 0x43002AE0: jne 0x43002b26 */ 6103 L_43002AE2: 6104 PUSH32(esp, 0x154u); /* 0x43002AE2: push 0x154 */ 6105 RECOMP_ICALL(0x43003506u); /* 0x43002AE7: call 0x43003506 */ /* not lifted */ 6106 RECOMP_FLAGS_IN(); 6107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6109 esp = esp + 4; /* 0x43002AEC: add esp, 4 */ 6110 _flag_k = FK_ADD; 6111 MEM32(ebp + (-0x10)) = eax; /* 0x43002AEF: mov dword ptr [ebp - 0x10], eax */ 6112 /* test eax, eax */ /* 0x43002AF2: test eax, eax */ 6113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6114 _cf = 0; 6115 _flag_k = FK_TEST; 6116 MEM32(ebp + (-0x4)) = 0; /* 0x43002AF4: mov dword ptr [ebp - 4], 0 */ 6117 if (TEST_Z(_flag_a, _flag_b)) goto L_43002B1F; /* 0x43002AFB: je 0x43002b1f */ 6118 L_43002AFD: 6119 ecx = MEM32(ebp + 0xC); /* 0x43002AFD: mov ecx, dword ptr [ebp + 0xc] */ 6120 edx = MEM32(ebp + 0x8); /* 0x43002B00: mov edx, dword ptr [ebp + 8] */ 6121 PUSH32(esp, ecx); /* 0x43002B03: push ecx */ 6122 PUSH32(esp, edx); /* 0x43002B04: push edx */ 6123 ecx = eax; /* 0x43002B05: mov ecx, eax */ 6124 RECOMP_ICALL(0x43002CC0u); /* 0x43002B07: call 0x43002cc0 */ /* not lifted */ 6125 RECOMP_FLAGS_IN(); 6126 MEM32(0x4300E888) = eax; /* 0x43002B0C: mov dword ptr [0x4300e888], eax */ 6127 ecx = MEM32(ebp + (-0xC)); /* 0x43002B11: mov ecx, dword ptr [ebp - 0xc] */ 6128 MEM32(FS_BASE + (0)) = ecx; /* 0x43002B14: mov dword ptr fs:[0], ecx */ 6129 esp = ebp; /* 0x43002B1B: mov esp, ebp */ 6130 ebp = POP32_VAL(esp); /* 0x43002B1D: pop ebp */ 6131 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002B1E: ret */ 6132 L_43002B1F: 6133 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6134 eax = 0; /* 0x43002B1F: xor eax, eax */ 6135 _cf = 0; 6136 _flag_k = FK_TEST; 6137 MEM32(0x4300E888) = eax; /* 0x43002B21: mov dword ptr [0x4300e888], eax */ 6138 L_43002B26: 6139 ecx = MEM32(ebp + (-0xC)); /* 0x43002B26: mov ecx, dword ptr [ebp - 0xc] */ 6140 MEM32(FS_BASE + (0)) = ecx; /* 0x43002B29: mov dword ptr fs:[0], ecx */ 6141 esp = ebp; /* 0x43002B30: mov esp, ebp */ 6142 ebp = POP32_VAL(esp); /* 0x43002B32: pop ebp */ 6143 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002B33: ret */ 6144 RECOMP_REGS_OUT(); 6145 } 6146 6147 void sub_43002B40(void) { 6148 int _fpu_cmp = 0; 6149 uint32_t _cf = 0; 6150 int _df = 1; 6151 uint32_t _flag_k = FK_NONE; 6152 uint32_t _flag_a = 0, _flag_b = 0; 6153 uint32_t _itail_tgt = 0; 6154 RECOMP_REGS_LOCALS 6155 RECOMP_ENTER(0x43002B40u); 6156 6157 L_43002B40: 6158 SET_LO8(ecx, MEM8(0x4300E83E)); /* 0x43002B40: mov cl, byte ptr [0x4300e83e] */ 6159 SET_LO8(eax, 1); /* 0x43002B46: mov al, 1 */ 6160 /* test LO8(eax), LO8(ecx) */ /* 0x43002B48: test al, cl */ 6161 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6162 _cf = 0; 6163 _flag_k = FK_NARROW(FK_TEST, 24); 6164 if (TEST_NZ(_flag_a, _flag_b)) goto L_43002B70; /* 0x43002B4A: jne 0x43002b70 */ 6165 L_43002B4C: 6166 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 6167 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x43002B4C: or cl, al */ 6168 _cf = 0; 6169 _flag_k = FK_NARROW(FK_TEST, 24); 6170 PUSH32(esp, 0); /* 0x43002B4E: push 0 */ 6171 MEM8(0x4300E83E) = (uint8_t)(LO8(ecx)); /* 0x43002B50: mov byte ptr [0x4300e83e], cl */ 6172 PUSH32(esp, 0); /* 0x43002B56: push 0 */ 6173 ecx = 0x4300E840u; /* 0x43002B58: mov ecx, 0x4300e840 */ 6174 RECOMP_ICALL(MEM32(0x43004084)); /* 0x43002B5D: call dword ptr [0x43004084] */ 6175 RECOMP_FLAGS_IN(); 6176 PUSH32(esp, 0x43002B80u); /* 0x43002B63: push 0x43002b80 */ 6177 RECOMP_ICALL(0x4300357Bu); /* 0x43002B68: call 0x4300357b */ /* not lifted */ 6178 RECOMP_FLAGS_IN(); 6179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6181 esp = esp + 4; /* 0x43002B6D: add esp, 4 */ 6182 _flag_k = FK_ADD; 6183 L_43002B70: 6184 eax = 0x4300E840u; /* 0x43002B70: mov eax, 0x4300e840 */ 6185 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002B75: ret */ 6186 RECOMP_REGS_OUT(); 6187 } 6188 6189 void sub_43002B80(void) { 6190 int _fpu_cmp = 0; 6191 uint32_t _cf = 0; 6192 int _df = 1; 6193 uint32_t _flag_k = FK_NONE; 6194 uint32_t _flag_a = 0, _flag_b = 0; 6195 uint32_t _itail_tgt = 0; 6196 RECOMP_REGS_LOCALS 6197 RECOMP_ENTER(0x43002B80u); 6198 6199 L_43002B80: 6200 ecx = 0x4300E840u; /* 0x43002B80: mov ecx, 0x4300e840 */ 6201 L_43002B85: 6202 { _itail_tgt = (uint32_t)(MEM32(0x43004080)); goto _ljump; } 6203 { RECOMP_REGS_OUT(); return; } /* end of function */ 6204 _ljump: 6205 switch (_itail_tgt) { 6206 case 0x43002B80u: goto L_43002B80; 6207 case 0x43002B85u: goto L_43002B85; 6208 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6209 } 6210 RECOMP_REGS_OUT(); 6211 } 6212 6213 void sub_43002B90(void) { 6214 int _fpu_cmp = 0; 6215 uint32_t _cf = 0; 6216 int _df = 1; 6217 uint32_t _flag_k = FK_NONE; 6218 uint32_t _flag_a = 0, _flag_b = 0; 6219 uint32_t _itail_tgt = 0; 6220 RECOMP_REGS_LOCALS 6221 RECOMP_ENTER(0x43002B90u); 6222 6223 L_43002B90: 6224 PUSH32(esp, ebp); /* 0x43002B90: push ebp */ 6225 ebp = esp; /* 0x43002B91: mov ebp, esp */ 6226 PUSH32(esp, 0xFFFFFFFFu); /* 0x43002B93: push -1 */ 6227 PUSH32(esp, 0x43003908u); /* 0x43002B95: push 0x43003908 */ 6228 eax = MEM32(FS_BASE + (0)); /* 0x43002B9A: mov eax, dword ptr fs:[0] */ 6229 PUSH32(esp, eax); /* 0x43002BA0: push eax */ 6230 MEM32(FS_BASE + (0)) = esp; /* 0x43002BA1: mov dword ptr fs:[0], esp */ 6231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6233 esp = esp - 8; /* 0x43002BA8: sub esp, 8 */ 6234 _flag_k = FK_CMP; 6235 PUSH32(esp, ebx); /* 0x43002BAB: push ebx */ 6236 PUSH32(esp, esi); /* 0x43002BAC: push esi */ 6237 PUSH32(esp, edi); /* 0x43002BAD: push edi */ 6238 RECOMP_ICALL(0x43002B40u); /* 0x43002BAE: call 0x43002b40 */ /* not lifted */ 6239 RECOMP_FLAGS_IN(); 6240 esi = eax; /* 0x43002BB3: mov esi, eax */ 6241 PUSH32(esp, 0); /* 0x43002BB5: push 0 */ 6242 ecx = esi; /* 0x43002BB7: mov ecx, esi */ 6243 MEM32(ebp + (-0x14)) = esi; /* 0x43002BB9: mov dword ptr [ebp - 0x14], esi */ 6244 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x43002BBC: call dword ptr [0x4300407c] */ 6245 RECOMP_FLAGS_IN(); 6246 ebx = eax; /* 0x43002BC2: mov ebx, eax */ 6247 MEM32(ebp + (-0x10)) = ebx; /* 0x43002BC4: mov dword ptr [ebp - 0x10], ebx */ 6248 edi = MEM32(0x4300E888); /* 0x43002BC7: mov edi, dword ptr [0x4300e888] */ 6249 MEM32(ebp + (-0x4)) = 0; /* 0x43002BCD: mov dword ptr [ebp - 4], 0 */ 6250 /* test edi, edi */ /* 0x43002BD4: test edi, edi */ 6251 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6252 _cf = 0; 6253 _flag_k = FK_TEST; 6254 MEM32(0x4300E888) = 0; /* 0x43002BD6: mov dword ptr [0x4300e888], 0 */ 6255 if (TEST_Z(_flag_a, _flag_b)) goto L_43002BF2; /* 0x43002BE0: je 0x43002bf2 */ 6256 L_43002BE2: 6257 ecx = edi; /* 0x43002BE2: mov ecx, edi */ 6258 RECOMP_ICALL(0x43002D10u); /* 0x43002BE4: call 0x43002d10 */ /* not lifted */ 6259 RECOMP_FLAGS_IN(); 6260 PUSH32(esp, edi); /* 0x43002BE9: push edi */ 6261 RECOMP_ICALL(0x43003500u); /* 0x43002BEA: call 0x43003500 */ /* not lifted */ 6262 RECOMP_FLAGS_IN(); 6263 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6265 esp = esp + 4; /* 0x43002BEF: add esp, 4 */ 6266 _flag_k = FK_ADD; 6267 L_43002BF2: 6268 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43002BF2: cmp ebx, -1 */ 6269 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 6270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6271 _flag_k = FK_CMP; 6272 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43002BF5: mov dword ptr [ebp - 4], 0xffffffff */ 6273 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002C06; /* 0x43002BFC: je 0x43002c06 */ 6274 L_43002BFE: 6275 ecx = esi; /* 0x43002BFE: mov ecx, esi */ 6276 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43002C00: call dword ptr [0x43004088] */ 6277 RECOMP_FLAGS_IN(); 6278 L_43002C06: 6279 ecx = MEM32(ebp + (-0xC)); /* 0x43002C06: mov ecx, dword ptr [ebp - 0xc] */ 6280 edi = POP32_VAL(esp); /* 0x43002C09: pop edi */ 6281 esi = POP32_VAL(esp); /* 0x43002C0A: pop esi */ 6282 ebx = POP32_VAL(esp); /* 0x43002C0B: pop ebx */ 6283 MEM32(FS_BASE + (0)) = ecx; /* 0x43002C0C: mov dword ptr fs:[0], ecx */ 6284 esp = ebp; /* 0x43002C13: mov esp, ebp */ 6285 ebp = POP32_VAL(esp); /* 0x43002C15: pop ebp */ 6286 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002C16: ret */ 6287 RECOMP_REGS_OUT(); 6288 } 6289 6290 void sub_43002C20(void) { 6291 int _fpu_cmp = 0; 6292 uint32_t _cf = 0; 6293 int _df = 1; 6294 uint32_t _flag_k = FK_NONE; 6295 uint32_t _flag_a = 0, _flag_b = 0; 6296 uint32_t _itail_tgt = 0; 6297 RECOMP_REGS_LOCALS 6298 RECOMP_ENTER(0x43002C20u); 6299 6300 L_43002C20: 6301 PUSH32(esp, ebp); /* 0x43002C20: push ebp */ 6302 ebp = esp; /* 0x43002C21: mov ebp, esp */ 6303 PUSH32(esp, 0xFFFFFFFFu); /* 0x43002C23: push -1 */ 6304 PUSH32(esp, 0x43003928u); /* 0x43002C25: push 0x43003928 */ 6305 eax = MEM32(FS_BASE + (0)); /* 0x43002C2A: mov eax, dword ptr fs:[0] */ 6306 PUSH32(esp, eax); /* 0x43002C30: push eax */ 6307 MEM32(FS_BASE + (0)) = esp; /* 0x43002C31: mov dword ptr fs:[0], esp */ 6308 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6310 esp = esp - 8; /* 0x43002C38: sub esp, 8 */ 6311 _flag_k = FK_CMP; 6312 PUSH32(esp, ebx); /* 0x43002C3B: push ebx */ 6313 PUSH32(esp, esi); /* 0x43002C3C: push esi */ 6314 PUSH32(esp, edi); /* 0x43002C3D: push edi */ 6315 edi = ecx; /* 0x43002C3E: mov edi, ecx */ 6316 RECOMP_ICALL(0x43002B40u); /* 0x43002C40: call 0x43002b40 */ /* not lifted */ 6317 RECOMP_FLAGS_IN(); 6318 esi = eax; /* 0x43002C45: mov esi, eax */ 6319 PUSH32(esp, 0); /* 0x43002C47: push 0 */ 6320 ecx = esi; /* 0x43002C49: mov ecx, esi */ 6321 MEM32(ebp + (-0x14)) = esi; /* 0x43002C4B: mov dword ptr [ebp - 0x14], esi */ 6322 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x43002C4E: call dword ptr [0x4300407c] */ 6323 RECOMP_FLAGS_IN(); 6324 MEM32(ebp + (-0x10)) = eax; /* 0x43002C54: mov dword ptr [ebp - 0x10], eax */ 6325 ebx = edi + 0xC; /* 0x43002C57: lea ebx, [edi + 0xc] */ 6326 MEM32(ebp + (-0x4)) = 0; /* 0x43002C5A: mov dword ptr [ebp - 4], 0 */ 6327 ecx = ebx; /* 0x43002C61: mov ecx, ebx */ 6328 RECOMP_ICALL(0x43003200u); /* 0x43002C63: call 0x43003200 */ /* not lifted */ 6329 RECOMP_FLAGS_IN(); 6330 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xB0u); 6331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6332 edi = edi + 0xB0u; /* 0x43002C68: add edi, 0xb0 */ 6333 _flag_k = FK_ADD; 6334 ecx = edi; /* 0x43002C6E: mov ecx, edi */ 6335 RECOMP_ICALL(0x43003200u); /* 0x43002C70: call 0x43003200 */ /* not lifted */ 6336 RECOMP_FLAGS_IN(); 6337 PUSH32(esp, 0); /* 0x43002C75: push 0 */ 6338 PUSH32(esp, 0); /* 0x43002C77: push 0 */ 6339 ecx = ebx; /* 0x43002C79: mov ecx, ebx */ 6340 RECOMP_ICALL(0x430031C0u); /* 0x43002C7B: call 0x430031c0 */ /* not lifted */ 6341 RECOMP_FLAGS_IN(); 6342 PUSH32(esp, 0); /* 0x43002C80: push 0 */ 6343 PUSH32(esp, 0); /* 0x43002C82: push 0 */ 6344 ecx = edi; /* 0x43002C84: mov ecx, edi */ 6345 RECOMP_ICALL(0x430031C0u); /* 0x43002C86: call 0x430031c0 */ /* not lifted */ 6346 RECOMP_FLAGS_IN(); 6347 ecx = MEM32(ebp + (-0x10)); /* 0x43002C8B: mov ecx, dword ptr [ebp - 0x10] */ 6348 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6349 eax = eax | 0xFFFFFFFFu; /* 0x43002C8E: or eax, 0xffffffff */ 6350 _cf = 0; 6351 _flag_k = FK_TEST; 6352 /* cmp ecx, eax */ /* 0x43002C91: cmp ecx, eax */ 6353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6355 _flag_k = FK_CMP; 6356 MEM32(ebp + (-0x4)) = eax; /* 0x43002C93: mov dword ptr [ebp - 4], eax */ 6357 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002CA0; /* 0x43002C96: je 0x43002ca0 */ 6358 L_43002C98: 6359 ecx = esi; /* 0x43002C98: mov ecx, esi */ 6360 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43002C9A: call dword ptr [0x43004088] */ 6361 RECOMP_FLAGS_IN(); 6362 L_43002CA0: 6363 ecx = MEM32(ebp + (-0xC)); /* 0x43002CA0: mov ecx, dword ptr [ebp - 0xc] */ 6364 edi = POP32_VAL(esp); /* 0x43002CA3: pop edi */ 6365 esi = POP32_VAL(esp); /* 0x43002CA4: pop esi */ 6366 ebx = POP32_VAL(esp); /* 0x43002CA5: pop ebx */ 6367 MEM32(FS_BASE + (0)) = ecx; /* 0x43002CA6: mov dword ptr fs:[0], ecx */ 6368 esp = ebp; /* 0x43002CAD: mov esp, ebp */ 6369 ebp = POP32_VAL(esp); /* 0x43002CAF: pop ebp */ 6370 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002CB0: ret */ 6371 RECOMP_REGS_OUT(); 6372 } 6373 6374 void sub_43002CC0(void) { 6375 int _fpu_cmp = 0; 6376 uint32_t _cf = 0; 6377 int _df = 1; 6378 uint32_t _flag_k = FK_NONE; 6379 uint32_t _flag_a = 0, _flag_b = 0; 6380 uint32_t _itail_tgt = 0; 6381 RECOMP_REGS_LOCALS 6382 RECOMP_ENTER(0x43002CC0u); 6383 6384 L_43002CC0: 6385 PUSH32(esp, ebp); /* 0x43002CC0: push ebp */ 6386 ebp = esp; /* 0x43002CC1: mov ebp, esp */ 6387 eax = MEM32(ebp + 0x8); /* 0x43002CC3: mov eax, dword ptr [ebp + 8] */ 6388 PUSH32(esp, esi); /* 0x43002CC6: push esi */ 6389 esi = ecx; /* 0x43002CC7: mov esi, ecx */ 6390 PUSH32(esp, 0x430065B4u); /* 0x43002CC9: push 0x430065b4 */ 6391 SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x43002CCE: mov cl, byte ptr [ebp + 0xc] */ 6392 MEM8(esi) = (uint8_t)(0); /* 0x43002CD1: mov byte ptr [esi], 0 */ 6393 MEM32(esi + 0x4) = eax; /* 0x43002CD4: mov dword ptr [esi + 4], eax */ 6394 MEM8(esi + 0x8) = (uint8_t)(LO8(ecx)); /* 0x43002CD7: mov byte ptr [esi + 8], cl */ 6395 RECOMP_ICALL(MEM32(0x43004044)); /* 0x43002CDA: call dword ptr [0x43004044] */ 6396 RECOMP_FLAGS_IN(); 6397 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6399 esp = esp + 4; /* 0x43002CE0: add esp, 4 */ 6400 _flag_k = FK_ADD; 6401 ecx = esi + 0xC; /* 0x43002CE3: lea ecx, [esi + 0xc] */ 6402 PUSH32(esp, 0); /* 0x43002CE6: push 0 */ 6403 PUSH32(esp, 0); /* 0x43002CE8: push 0 */ 6404 RECOMP_ICALL(0x430031C0u); /* 0x43002CEA: call 0x430031c0 */ /* not lifted */ 6405 RECOMP_FLAGS_IN(); 6406 PUSH32(esp, 0); /* 0x43002CEF: push 0 */ 6407 PUSH32(esp, 0); /* 0x43002CF1: push 0 */ 6408 ecx = esi + 0xB0; /* 0x43002CF3: lea ecx, [esi + 0xb0] */ 6409 RECOMP_ICALL(0x430031C0u); /* 0x43002CF9: call 0x430031c0 */ /* not lifted */ 6410 RECOMP_FLAGS_IN(); 6411 eax = esi; /* 0x43002CFE: mov eax, esi */ 6412 esi = POP32_VAL(esp); /* 0x43002D00: pop esi */ 6413 ebp = POP32_VAL(esp); /* 0x43002D01: pop ebp */ 6414 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x43002D02: ret 8 */ 6415 RECOMP_REGS_OUT(); 6416 } 6417 6418 void sub_43002D10(void) { 6419 int _fpu_cmp = 0; 6420 uint32_t _cf = 0; 6421 int _df = 1; 6422 uint32_t _flag_k = FK_NONE; 6423 uint32_t _flag_a = 0, _flag_b = 0; 6424 uint32_t _itail_tgt = 0; 6425 RECOMP_REGS_LOCALS 6426 RECOMP_ENTER(0x43002D10u); 6427 6428 L_43002D10: 6429 PUSH32(esp, esi); /* 0x43002D10: push esi */ 6430 esi = ecx; /* 0x43002D11: mov esi, ecx */ 6431 PUSH32(esp, 0x430065DCu); /* 0x43002D13: push 0x430065dc */ 6432 RECOMP_ICALL(MEM32(0x43004044)); /* 0x43002D18: call dword ptr [0x43004044] */ 6433 RECOMP_FLAGS_IN(); 6434 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6436 esp = esp + 4; /* 0x43002D1E: add esp, 4 */ 6437 _flag_k = FK_ADD; 6438 ecx = esi + 0xC; /* 0x43002D21: lea ecx, [esi + 0xc] */ 6439 RECOMP_ICALL(0x43003200u); /* 0x43002D24: call 0x43003200 */ /* not lifted */ 6440 RECOMP_FLAGS_IN(); 6441 ecx = esi + 0xB0; /* 0x43002D29: lea ecx, [esi + 0xb0] */ 6442 RECOMP_ICALL(0x43003200u); /* 0x43002D2F: call 0x43003200 */ /* not lifted */ 6443 RECOMP_FLAGS_IN(); 6444 esi = POP32_VAL(esp); /* 0x43002D34: pop esi */ 6445 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43002D35: ret */ 6446 RECOMP_REGS_OUT(); 6447 } 6448 6449 void sub_43002D40(void) { 6450 int _fpu_cmp = 0; 6451 uint32_t _cf = 0; 6452 int _df = 1; 6453 uint32_t _flag_k = FK_NONE; 6454 uint32_t _flag_a = 0, _flag_b = 0; 6455 uint32_t _itail_tgt = 0; 6456 RECOMP_REGS_LOCALS 6457 RECOMP_ENTER(0x43002D40u); 6458 6459 L_43002D40: 6460 PUSH32(esp, ebp); /* 0x43002D40: push ebp */ 6461 ebp = esp; /* 0x43002D41: mov ebp, esp */ 6462 PUSH32(esp, 0xFFFFFFFFu); /* 0x43002D43: push -1 */ 6463 PUSH32(esp, 0x43003948u); /* 0x43002D45: push 0x43003948 */ 6464 eax = MEM32(FS_BASE + (0)); /* 0x43002D4A: mov eax, dword ptr fs:[0] */ 6465 PUSH32(esp, eax); /* 0x43002D50: push eax */ 6466 MEM32(FS_BASE + (0)) = esp; /* 0x43002D51: mov dword ptr fs:[0], esp */ 6467 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6469 esp = esp - 8; /* 0x43002D58: sub esp, 8 */ 6470 _flag_k = FK_CMP; 6471 PUSH32(esp, ebx); /* 0x43002D5B: push ebx */ 6472 PUSH32(esp, esi); /* 0x43002D5C: push esi */ 6473 esi = ecx; /* 0x43002D5D: mov esi, ecx */ 6474 PUSH32(esp, edi); /* 0x43002D5F: push edi */ 6475 SET_LO8(eax, MEM8(esi)); /* 0x43002D60: mov al, byte ptr [esi] */ 6476 /* test LO8(eax), LO8(eax) */ /* 0x43002D62: test al, al */ 6477 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6478 _cf = 0; 6479 _flag_k = FK_NARROW(FK_TEST, 24); 6480 if (TEST_Z(_flag_a, _flag_b)) goto L_43002DCC; /* 0x43002D64: je 0x43002dcc */ 6481 L_43002D66: 6482 RECOMP_ICALL(0x43002B40u); /* 0x43002D66: call 0x43002b40 */ /* not lifted */ 6483 RECOMP_FLAGS_IN(); 6484 edi = eax; /* 0x43002D6B: mov edi, eax */ 6485 PUSH32(esp, 0); /* 0x43002D6D: push 0 */ 6486 ecx = edi; /* 0x43002D6F: mov ecx, edi */ 6487 MEM32(ebp + (-0x14)) = edi; /* 0x43002D71: mov dword ptr [ebp - 0x14], edi */ 6488 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x43002D74: call dword ptr [0x4300407c] */ 6489 RECOMP_FLAGS_IN(); 6490 ebx = eax; /* 0x43002D7A: mov ebx, eax */ 6491 MEM32(ebp + (-0x10)) = ebx; /* 0x43002D7C: mov dword ptr [ebp - 0x10], ebx */ 6492 SET_LO8(eax, MEM8(esi)); /* 0x43002D7F: mov al, byte ptr [esi] */ 6493 MEM32(ebp + (-0x4)) = 0; /* 0x43002D81: mov dword ptr [ebp - 4], 0 */ 6494 /* test LO8(eax), LO8(eax) */ /* 0x43002D88: test al, al */ 6495 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6496 _cf = 0; 6497 _flag_k = FK_NARROW(FK_TEST, 24); 6498 if (TEST_NZ(_flag_a, _flag_b)) goto L_43002D9A; /* 0x43002D8A: jne 0x43002d9a */ 6499 L_43002D8C: 6500 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43002D8C: cmp ebx, -1 */ 6501 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 6502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6503 _flag_k = FK_CMP; 6504 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43002D8F: mov dword ptr [ebp - 4], 0xffffffff */ 6505 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002DCC; /* 0x43002D96: je 0x43002dcc */ 6506 L_43002D98: 6507 goto L_43002DC4; /* 0x43002D98: jmp 0x43002dc4 */ 6508 L_43002D9A: 6509 eax = MEM32(ebp + 0x8); /* 0x43002D9A: mov eax, dword ptr [ebp + 8] */ 6510 edx = esi + 0xC; /* 0x43002D9D: lea edx, [esi + 0xc] */ 6511 ecx = MEM32(eax + 0x4); /* 0x43002DA0: mov ecx, dword ptr [eax + 4] */ 6512 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x3FFFFFFFu); 6513 ecx = ecx & 0x3FFFFFFFu; /* 0x43002DA3: and ecx, 0x3fffffff */ 6514 _cf = 0; 6515 _flag_k = FK_TEST; 6516 PUSH32(esp, ecx); /* 0x43002DA9: push ecx */ 6517 PUSH32(esp, edx); /* 0x43002DAA: push edx */ 6518 ecx = esi; /* 0x43002DAB: mov ecx, esi */ 6519 RECOMP_ICALL(0x43002DE0u); /* 0x43002DAD: call 0x43002de0 */ /* not lifted */ 6520 RECOMP_FLAGS_IN(); 6521 ecx = MEM32(ebp + 0x8); /* 0x43002DB2: mov ecx, dword ptr [ebp + 8] */ 6522 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43002DB5: cmp ebx, -1 */ 6523 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 6524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6525 _flag_k = FK_CMP; 6526 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43002DB8: mov dword ptr [ebp - 4], 0xffffffff */ 6527 MEM32(ecx + 0x8) = eax; /* 0x43002DBF: mov dword ptr [ecx + 8], eax */ 6528 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002DCC; /* 0x43002DC2: je 0x43002dcc */ 6529 L_43002DC4: 6530 ecx = edi; /* 0x43002DC4: mov ecx, edi */ 6531 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43002DC6: call dword ptr [0x43004088] */ 6532 RECOMP_FLAGS_IN(); 6533 L_43002DCC: 6534 ecx = MEM32(ebp + (-0xC)); /* 0x43002DCC: mov ecx, dword ptr [ebp - 0xc] */ 6535 edi = POP32_VAL(esp); /* 0x43002DCF: pop edi */ 6536 esi = POP32_VAL(esp); /* 0x43002DD0: pop esi */ 6537 ebx = POP32_VAL(esp); /* 0x43002DD1: pop ebx */ 6538 MEM32(FS_BASE + (0)) = ecx; /* 0x43002DD2: mov dword ptr fs:[0], ecx */ 6539 esp = ebp; /* 0x43002DD9: mov esp, ebp */ 6540 ebp = POP32_VAL(esp); /* 0x43002DDB: pop ebp */ 6541 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x43002DDC: ret 4 */ 6542 RECOMP_REGS_OUT(); 6543 } 6544 6545 void sub_43002DE0(void) { 6546 int _fpu_cmp = 0; 6547 uint32_t _cf = 0; 6548 int _df = 1; 6549 uint32_t _flag_k = FK_NONE; 6550 uint32_t _flag_a = 0, _flag_b = 0; 6551 uint32_t _itail_tgt = 0; 6552 RECOMP_REGS_LOCALS 6553 RECOMP_ENTER(0x43002DE0u); 6554 6555 L_43002DE0: 6556 PUSH32(esp, ebp); /* 0x43002DE0: push ebp */ 6557 ebp = esp; /* 0x43002DE1: mov ebp, esp */ 6558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6560 esp = esp - 8; /* 0x43002DE3: sub esp, 8 */ 6561 _flag_k = FK_CMP; 6562 PUSH32(esp, esi); /* 0x43002DE6: push esi */ 6563 esi = ecx; /* 0x43002DE7: mov esi, ecx */ 6564 RECOMP_ICALL(MEM32(0x43004090)); /* 0x43002DE9: call dword ptr [0x43004090] */ 6565 RECOMP_FLAGS_IN(); 6566 /* test eax, eax */ /* 0x43002DEF: test eax, eax */ 6567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6568 _cf = 0; 6569 _flag_k = FK_TEST; 6570 if (TEST_Z(_flag_a, _flag_b)) goto L_43002F09; /* 0x43002DF1: je 0x43002f09 */ 6571 L_43002DF7: 6572 edx = MEM32(eax); /* 0x43002DF7: mov edx, dword ptr [eax] */ 6573 PUSH32(esp, 0x40u); /* 0x43002DF9: push 0x40 */ 6574 PUSH32(esp, 0x4300673Cu); /* 0x43002DFB: push 0x4300673c */ 6575 ecx = eax; /* 0x43002E00: mov ecx, eax */ 6576 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x43002E02: call dword ptr [edx + 8] */ 6577 RECOMP_FLAGS_IN(); 6578 /* test eax, eax */ /* 0x43002E05: test eax, eax */ 6579 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6580 _cf = 0; 6581 _flag_k = FK_TEST; 6582 if (TEST_Z(_flag_a, _flag_b)) goto L_43002F09; /* 0x43002E07: je 0x43002f09 */ 6583 L_43002E0D: 6584 PUSH32(esp, ebx); /* 0x43002E0D: push ebx */ 6585 PUSH32(esp, edi); /* 0x43002E0E: push edi */ 6586 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6587 edx = 0; /* 0x43002E0F: xor edx, edx */ 6588 _cf = 0; 6589 _flag_k = FK_TEST; 6590 eax = 0x4300673Cu; /* 0x43002E11: mov eax, 0x4300673c */ 6591 L_43002E16: 6592 ecx = MEM32(eax); /* 0x43002E16: mov ecx, dword ptr [eax] */ 6593 /* test ecx, ecx */ /* 0x43002E18: test ecx, ecx */ 6594 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6595 _cf = 0; 6596 _flag_k = FK_TEST; 6597 if (TEST_Z(_flag_a, _flag_b)) goto L_43002E34; /* 0x43002E1A: je 0x43002e34 */ 6598 L_43002E1C: 6599 edi = MEM32(esi + 0x4); /* 0x43002E1C: mov edi, dword ptr [esi + 4] */ 6600 _flag_a = (uint32_t)((edi ^ ecx)); _flag_b = (uint32_t)((edi ^ ecx)); 6601 edi = edi ^ ecx; /* 0x43002E1F: xor edi, ecx */ 6602 _cf = 0; 6603 _flag_k = FK_TEST; 6604 /* test edi, 0xFFFFF000u */ /* 0x43002E21: test edi, 0xfffff000 */ 6605 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFF000u); 6606 _cf = 0; 6607 _flag_k = FK_TEST; 6608 if (TEST_Z(_flag_a, _flag_b)) goto L_43002E34; /* 0x43002E27: je 0x43002e34 */ 6609 L_43002E29: 6610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6612 eax = eax + 4; /* 0x43002E29: add eax, 4 */ 6613 _flag_k = FK_ADD; 6614 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6615 edx = edx + 1; /* 0x43002E2C: inc edx */ 6616 _flag_k = FK_INC; 6617 /* cmp eax, 0x430067BCu */ /* 0x43002E2D: cmp eax, 0x430067bc */ 6618 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x430067BCu); 6619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6620 _flag_k = FK_CMP; 6621 RECOMP_BACKEDGE(); 6622 if (CMP_B(_flag_a, _flag_b)) goto L_43002E16; /* 0x43002E32: jb 0x43002e16 */ 6623 L_43002E34: 6624 esi = MEM32(ebp + 0x8); /* 0x43002E34: mov esi, dword ptr [ebp + 8] */ 6625 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6626 edx = edx - 1; /* 0x43002E37: dec edx */ 6627 _flag_k = FK_DEC; 6628 MEM32(ebp + (-0x8)) = edx; /* 0x43002E38: mov dword ptr [ebp - 8], edx */ 6629 eax = edx * 4 + 0x4300673C; /* 0x43002E3B: lea eax, [edx*4 + 0x4300673c] */ 6630 MEM32(ebp + (-0x4)) = eax; /* 0x43002E42: mov dword ptr [ebp - 4], eax */ 6631 L_43002E45: 6632 ecx = MEM32(ebp + 0xC); /* 0x43002E45: mov ecx, dword ptr [ebp + 0xc] */ 6633 eax = MEM32(esi + 0x8C); /* 0x43002E48: mov eax, dword ptr [esi + 0x8c] */ 6634 edi = MEM32(esi + 0x90); /* 0x43002E4E: mov edi, dword ptr [esi + 0x90] */ 6635 ebx = MEM32(esi + 0x94); /* 0x43002E54: mov ebx, dword ptr [esi + 0x94] */ 6636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6638 eax = eax + ecx; /* 0x43002E5A: add eax, ecx */ 6639 _flag_k = FK_ADD; 6640 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6641 ebx = ebx + 1; /* 0x43002E5C: inc ebx */ 6642 _flag_k = FK_INC; 6643 MEM32(esi + 0x8C) = eax; /* 0x43002E5D: mov dword ptr [esi + 0x8c], eax */ 6644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6646 eax = eax - edi; /* 0x43002E63: sub eax, edi */ 6647 _flag_k = FK_CMP; 6648 /* test eax, eax */ /* 0x43002E65: test eax, eax */ 6649 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6650 _cf = 0; 6651 _flag_k = FK_TEST; 6652 MEM32(esi + 0x94) = ebx; /* 0x43002E67: mov dword ptr [esi + 0x94], ebx */ 6653 if (TEST_LE(_flag_a, _flag_b)) goto L_43002E7D; /* 0x43002E6D: jle 0x43002e7d */ 6654 L_43002E6F: 6655 /* cmp eax, MEM32(esi + 0x9C) */ /* 0x43002E6F: cmp eax, dword ptr [esi + 0x9c] */ 6656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x9C)); 6657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6658 _flag_k = FK_CMP; 6659 if (CMP_BE(_flag_a, _flag_b)) goto L_43002E7D; /* 0x43002E75: jbe 0x43002e7d */ 6660 L_43002E77: 6661 MEM32(esi + 0x9C) = eax; /* 0x43002E77: mov dword ptr [esi + 0x9c], eax */ 6662 L_43002E7D: 6663 /* cmp edx, 4 */ /* 0x43002E7D: cmp edx, 4 */ 6664 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6666 _flag_k = FK_CMP; 6667 if (CMP_LE(_flag_a, _flag_b)) goto L_43002EFE; /* 0x43002E80: jle 0x43002efe */ 6668 L_43002E82: 6669 SET_LO8(edx, MEM8(esi + 0x4)); /* 0x43002E82: mov dl, byte ptr [esi + 4] */ 6670 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6671 eax = 0; /* 0x43002E85: xor eax, eax */ 6672 _cf = 0; 6673 _flag_k = FK_TEST; 6674 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6675 edx = edx & 0xFFu; /* 0x43002E87: and edx, 0xff */ 6676 _cf = 0; 6677 _flag_k = FK_TEST; 6678 if (TEST_Z(_flag_a, _flag_b)) goto L_43002EA5; /* 0x43002E8D: jbe 0x43002ea5 */ 6679 L_43002E8F: 6680 ecx = MEM32(ebp + (-0x4)); /* 0x43002E8F: mov ecx, dword ptr [ebp - 4] */ 6681 edi = MEM32(ecx); /* 0x43002E92: mov edi, dword ptr [ecx] */ 6682 ecx = esi + 0x8; /* 0x43002E94: lea ecx, [esi + 8] */ 6683 L_43002E97: 6684 ebx = MEM32(ecx); /* 0x43002E97: mov ebx, dword ptr [ecx] */ 6685 /* cmp MEM32(ebx), edi */ /* 0x43002E99: cmp dword ptr [ebx], edi */ 6686 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(edi); 6687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6688 _flag_k = FK_CMP; 6689 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002EDD; /* 0x43002E9B: je 0x43002edd */ 6690 L_43002E9D: 6691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6692 eax = eax + 1; /* 0x43002E9D: inc eax */ 6693 _flag_k = FK_INC; 6694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 6695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6696 ecx = ecx + 4; /* 0x43002E9E: add ecx, 4 */ 6697 _flag_k = FK_ADD; 6698 /* cmp eax, edx */ /* 0x43002EA1: cmp eax, edx */ 6699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6701 _flag_k = FK_CMP; 6702 RECOMP_BACKEDGE(); 6703 if (CMP_B(_flag_a, _flag_b)) goto L_43002E97; /* 0x43002EA3: jb 0x43002e97 */ 6704 L_43002EA5: 6705 /* cmp MEM8(esi + 0x4), 0x20u */ /* 0x43002EA5: cmp byte ptr [esi + 4], 0x20 */ 6706 _flag_a = (uint32_t)(MEM8(esi + 0x4)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 6707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6708 _flag_k = FK_NARROW(FK_CMP, 24); 6709 if (CMP_AE(_flag_a, _flag_b)) goto L_43002EE3; /* 0x43002EA9: jae 0x43002ee3 */ 6710 L_43002EAB: 6711 PUSH32(esp, 0xA4u); /* 0x43002EAB: push 0xa4 */ 6712 RECOMP_ICALL(0x43001B90u); /* 0x43002EB0: call 0x43001b90 */ /* not lifted */ 6713 RECOMP_FLAGS_IN(); 6714 edx = MEM32(ebp + (-0x4)); /* 0x43002EB5: mov edx, dword ptr [ebp - 4] */ 6715 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6717 esp = esp + 4; /* 0x43002EB8: add esp, 4 */ 6718 _flag_k = FK_ADD; 6719 edi = eax; /* 0x43002EBB: mov edi, eax */ 6720 eax = MEM32(edx); /* 0x43002EBD: mov eax, dword ptr [edx] */ 6721 ecx = edi; /* 0x43002EBF: mov ecx, edi */ 6722 PUSH32(esp, eax); /* 0x43002EC1: push eax */ 6723 PUSH32(esp, esi); /* 0x43002EC2: push esi */ 6724 RECOMP_ICALL(0x430031C0u); /* 0x43002EC3: call 0x430031c0 */ /* not lifted */ 6725 RECOMP_FLAGS_IN(); 6726 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6727 ecx = 0; /* 0x43002EC8: xor ecx, ecx */ 6728 _cf = 0; 6729 _flag_k = FK_TEST; 6730 SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x43002ECA: mov cl, byte ptr [esi + 4] */ 6731 MEM32(esi + ecx * 4 + 0x8) = edi; /* 0x43002ECD: mov dword ptr [esi + ecx*4 + 8], edi */ 6732 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x43002ED1: mov al, byte ptr [esi + 4] */ 6733 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6734 SET_LO8(eax, LO8(eax) + 1); /* 0x43002ED4: inc al */ 6735 _flag_k = FK_NARROW(FK_INC, 24); 6736 MEM8(esi + 0x4) = (uint8_t)(LO8(eax)); /* 0x43002ED6: mov byte ptr [esi + 4], al */ 6737 esi = edi; /* 0x43002ED9: mov esi, edi */ 6738 goto L_43002EE9; /* 0x43002EDB: jmp 0x43002ee9 */ 6739 L_43002EDD: 6740 esi = MEM32(esi + eax * 4 + 0x8); /* 0x43002EDD: mov esi, dword ptr [esi + eax*4 + 8] */ 6741 goto L_43002EE9; /* 0x43002EE1: jmp 0x43002ee9 */ 6742 L_43002EE3: 6743 esi = MEM32(esi + 0x84); /* 0x43002EE3: mov esi, dword ptr [esi + 0x84] */ 6744 L_43002EE9: 6745 edx = MEM32(ebp + (-0x8)); /* 0x43002EE9: mov edx, dword ptr [ebp - 8] */ 6746 eax = MEM32(ebp + (-0x4)); /* 0x43002EEC: mov eax, dword ptr [ebp - 4] */ 6747 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6748 edx = edx - 1; /* 0x43002EEF: dec edx */ 6749 _flag_k = FK_DEC; 6750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6752 eax = eax - 4; /* 0x43002EF0: sub eax, 4 */ 6753 _flag_k = FK_CMP; 6754 MEM32(ebp + (-0x8)) = edx; /* 0x43002EF3: mov dword ptr [ebp - 8], edx */ 6755 MEM32(ebp + (-0x4)) = eax; /* 0x43002EF6: mov dword ptr [ebp - 4], eax */ 6756 RECOMP_BACKEDGE(); 6757 goto L_43002E45; /* 0x43002EF9: jmp 0x43002e45 */ 6758 L_43002EFE: 6759 edi = POP32_VAL(esp); /* 0x43002EFE: pop edi */ 6760 eax = esi; /* 0x43002EFF: mov eax, esi */ 6761 ebx = POP32_VAL(esp); /* 0x43002F01: pop ebx */ 6762 esi = POP32_VAL(esp); /* 0x43002F02: pop esi */ 6763 esp = ebp; /* 0x43002F03: mov esp, ebp */ 6764 ebp = POP32_VAL(esp); /* 0x43002F05: pop ebp */ 6765 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x43002F06: ret 8 */ 6766 L_43002F09: 6767 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6768 eax = 0; /* 0x43002F09: xor eax, eax */ 6769 _cf = 0; 6770 _flag_k = FK_TEST; 6771 esi = POP32_VAL(esp); /* 0x43002F0B: pop esi */ 6772 esp = ebp; /* 0x43002F0C: mov esp, ebp */ 6773 ebp = POP32_VAL(esp); /* 0x43002F0E: pop ebp */ 6774 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x43002F0F: ret 8 */ 6775 RECOMP_REGS_OUT(); 6776 } 6777 6778 void sub_43002E45(void) { 6779 int _fpu_cmp = 0; 6780 uint32_t _cf = 0; 6781 int _df = 1; 6782 uint32_t _flag_k = FK_NONE; 6783 uint32_t _flag_a = 0, _flag_b = 0; 6784 uint32_t _itail_tgt = 0; 6785 RECOMP_REGS_LOCALS 6786 RECOMP_ENTER(0x43002E45u); 6787 6788 L_43002E45: 6789 ecx = MEM32(ebp + 0xC); /* 0x43002E45: mov ecx, dword ptr [ebp + 0xc] */ 6790 eax = MEM32(esi + 0x8C); /* 0x43002E48: mov eax, dword ptr [esi + 0x8c] */ 6791 edi = MEM32(esi + 0x90); /* 0x43002E4E: mov edi, dword ptr [esi + 0x90] */ 6792 ebx = MEM32(esi + 0x94); /* 0x43002E54: mov ebx, dword ptr [esi + 0x94] */ 6793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6795 eax = eax + ecx; /* 0x43002E5A: add eax, ecx */ 6796 _flag_k = FK_ADD; 6797 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6798 ebx = ebx + 1; /* 0x43002E5C: inc ebx */ 6799 _flag_k = FK_INC; 6800 MEM32(esi + 0x8C) = eax; /* 0x43002E5D: mov dword ptr [esi + 0x8c], eax */ 6801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6803 eax = eax - edi; /* 0x43002E63: sub eax, edi */ 6804 _flag_k = FK_CMP; 6805 /* test eax, eax */ /* 0x43002E65: test eax, eax */ 6806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6807 _cf = 0; 6808 _flag_k = FK_TEST; 6809 MEM32(esi + 0x94) = ebx; /* 0x43002E67: mov dword ptr [esi + 0x94], ebx */ 6810 if (TEST_LE(_flag_a, _flag_b)) goto L_43002E7D; /* 0x43002E6D: jle 0x43002e7d */ 6811 L_43002E6F: 6812 /* cmp eax, MEM32(esi + 0x9C) */ /* 0x43002E6F: cmp eax, dword ptr [esi + 0x9c] */ 6813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x9C)); 6814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6815 _flag_k = FK_CMP; 6816 if (CMP_BE(_flag_a, _flag_b)) goto L_43002E7D; /* 0x43002E75: jbe 0x43002e7d */ 6817 L_43002E77: 6818 MEM32(esi + 0x9C) = eax; /* 0x43002E77: mov dword ptr [esi + 0x9c], eax */ 6819 L_43002E7D: 6820 /* cmp edx, 4 */ /* 0x43002E7D: cmp edx, 4 */ 6821 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6823 _flag_k = FK_CMP; 6824 if (CMP_LE(_flag_a, _flag_b)) goto L_43002EFE; /* 0x43002E80: jle 0x43002efe */ 6825 L_43002E82: 6826 SET_LO8(edx, MEM8(esi + 0x4)); /* 0x43002E82: mov dl, byte ptr [esi + 4] */ 6827 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6828 eax = 0; /* 0x43002E85: xor eax, eax */ 6829 _cf = 0; 6830 _flag_k = FK_TEST; 6831 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6832 edx = edx & 0xFFu; /* 0x43002E87: and edx, 0xff */ 6833 _cf = 0; 6834 _flag_k = FK_TEST; 6835 if (TEST_Z(_flag_a, _flag_b)) goto L_43002EA5; /* 0x43002E8D: jbe 0x43002ea5 */ 6836 L_43002E8F: 6837 ecx = MEM32(ebp + (-0x4)); /* 0x43002E8F: mov ecx, dword ptr [ebp - 4] */ 6838 edi = MEM32(ecx); /* 0x43002E92: mov edi, dword ptr [ecx] */ 6839 ecx = esi + 0x8; /* 0x43002E94: lea ecx, [esi + 8] */ 6840 L_43002E97: 6841 ebx = MEM32(ecx); /* 0x43002E97: mov ebx, dword ptr [ecx] */ 6842 /* cmp MEM32(ebx), edi */ /* 0x43002E99: cmp dword ptr [ebx], edi */ 6843 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(edi); 6844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6845 _flag_k = FK_CMP; 6846 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002EDD; /* 0x43002E9B: je 0x43002edd */ 6847 L_43002E9D: 6848 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6849 eax = eax + 1; /* 0x43002E9D: inc eax */ 6850 _flag_k = FK_INC; 6851 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 6852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6853 ecx = ecx + 4; /* 0x43002E9E: add ecx, 4 */ 6854 _flag_k = FK_ADD; 6855 /* cmp eax, edx */ /* 0x43002EA1: cmp eax, edx */ 6856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6858 _flag_k = FK_CMP; 6859 RECOMP_BACKEDGE(); 6860 if (CMP_B(_flag_a, _flag_b)) goto L_43002E97; /* 0x43002EA3: jb 0x43002e97 */ 6861 L_43002EA5: 6862 /* cmp MEM8(esi + 0x4), 0x20u */ /* 0x43002EA5: cmp byte ptr [esi + 4], 0x20 */ 6863 _flag_a = (uint32_t)(MEM8(esi + 0x4)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 6864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6865 _flag_k = FK_NARROW(FK_CMP, 24); 6866 if (CMP_AE(_flag_a, _flag_b)) goto L_43002EE3; /* 0x43002EA9: jae 0x43002ee3 */ 6867 L_43002EAB: 6868 PUSH32(esp, 0xA4u); /* 0x43002EAB: push 0xa4 */ 6869 RECOMP_ICALL(0x43001B90u); /* 0x43002EB0: call 0x43001b90 */ /* not lifted */ 6870 RECOMP_FLAGS_IN(); 6871 edx = MEM32(ebp + (-0x4)); /* 0x43002EB5: mov edx, dword ptr [ebp - 4] */ 6872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6874 esp = esp + 4; /* 0x43002EB8: add esp, 4 */ 6875 _flag_k = FK_ADD; 6876 edi = eax; /* 0x43002EBB: mov edi, eax */ 6877 eax = MEM32(edx); /* 0x43002EBD: mov eax, dword ptr [edx] */ 6878 ecx = edi; /* 0x43002EBF: mov ecx, edi */ 6879 PUSH32(esp, eax); /* 0x43002EC1: push eax */ 6880 PUSH32(esp, esi); /* 0x43002EC2: push esi */ 6881 RECOMP_ICALL(0x430031C0u); /* 0x43002EC3: call 0x430031c0 */ /* not lifted */ 6882 RECOMP_FLAGS_IN(); 6883 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6884 ecx = 0; /* 0x43002EC8: xor ecx, ecx */ 6885 _cf = 0; 6886 _flag_k = FK_TEST; 6887 SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x43002ECA: mov cl, byte ptr [esi + 4] */ 6888 MEM32(esi + ecx * 4 + 0x8) = edi; /* 0x43002ECD: mov dword ptr [esi + ecx*4 + 8], edi */ 6889 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x43002ED1: mov al, byte ptr [esi + 4] */ 6890 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6891 SET_LO8(eax, LO8(eax) + 1); /* 0x43002ED4: inc al */ 6892 _flag_k = FK_NARROW(FK_INC, 24); 6893 MEM8(esi + 0x4) = (uint8_t)(LO8(eax)); /* 0x43002ED6: mov byte ptr [esi + 4], al */ 6894 esi = edi; /* 0x43002ED9: mov esi, edi */ 6895 goto L_43002EE9; /* 0x43002EDB: jmp 0x43002ee9 */ 6896 L_43002EDD: 6897 esi = MEM32(esi + eax * 4 + 0x8); /* 0x43002EDD: mov esi, dword ptr [esi + eax*4 + 8] */ 6898 goto L_43002EE9; /* 0x43002EE1: jmp 0x43002ee9 */ 6899 L_43002EE3: 6900 esi = MEM32(esi + 0x84); /* 0x43002EE3: mov esi, dword ptr [esi + 0x84] */ 6901 L_43002EE9: 6902 edx = MEM32(ebp + (-0x8)); /* 0x43002EE9: mov edx, dword ptr [ebp - 8] */ 6903 eax = MEM32(ebp + (-0x4)); /* 0x43002EEC: mov eax, dword ptr [ebp - 4] */ 6904 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6905 edx = edx - 1; /* 0x43002EEF: dec edx */ 6906 _flag_k = FK_DEC; 6907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6909 eax = eax - 4; /* 0x43002EF0: sub eax, 4 */ 6910 _flag_k = FK_CMP; 6911 MEM32(ebp + (-0x8)) = edx; /* 0x43002EF3: mov dword ptr [ebp - 8], edx */ 6912 MEM32(ebp + (-0x4)) = eax; /* 0x43002EF6: mov dword ptr [ebp - 4], eax */ 6913 RECOMP_BACKEDGE(); 6914 goto L_43002E45; /* 0x43002EF9: jmp 0x43002e45 */ 6915 L_43002EFE: 6916 edi = POP32_VAL(esp); /* 0x43002EFE: pop edi */ 6917 eax = esi; /* 0x43002EFF: mov eax, esi */ 6918 ebx = POP32_VAL(esp); /* 0x43002F01: pop ebx */ 6919 esi = POP32_VAL(esp); /* 0x43002F02: pop esi */ 6920 esp = ebp; /* 0x43002F03: mov esp, ebp */ 6921 ebp = POP32_VAL(esp); /* 0x43002F05: pop ebp */ 6922 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x43002F06: ret 8 */ 6923 RECOMP_REGS_OUT(); 6924 } 6925 6926 void sub_43002EE9(void) { 6927 int _fpu_cmp = 0; 6928 uint32_t _cf = 0; 6929 int _df = 1; 6930 uint32_t _flag_k = FK_NONE; 6931 uint32_t _flag_a = 0, _flag_b = 0; 6932 uint32_t _itail_tgt = 0; 6933 RECOMP_REGS_LOCALS 6934 RECOMP_ENTER(0x43002EE9u); 6935 6936 goto L_43002EE9; 6937 L_43002E45: 6938 ecx = MEM32(ebp + 0xC); /* 0x43002E45: mov ecx, dword ptr [ebp + 0xc] */ 6939 eax = MEM32(esi + 0x8C); /* 0x43002E48: mov eax, dword ptr [esi + 0x8c] */ 6940 edi = MEM32(esi + 0x90); /* 0x43002E4E: mov edi, dword ptr [esi + 0x90] */ 6941 ebx = MEM32(esi + 0x94); /* 0x43002E54: mov ebx, dword ptr [esi + 0x94] */ 6942 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6944 eax = eax + ecx; /* 0x43002E5A: add eax, ecx */ 6945 _flag_k = FK_ADD; 6946 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6947 ebx = ebx + 1; /* 0x43002E5C: inc ebx */ 6948 _flag_k = FK_INC; 6949 MEM32(esi + 0x8C) = eax; /* 0x43002E5D: mov dword ptr [esi + 0x8c], eax */ 6950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6952 eax = eax - edi; /* 0x43002E63: sub eax, edi */ 6953 _flag_k = FK_CMP; 6954 /* test eax, eax */ /* 0x43002E65: test eax, eax */ 6955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6956 _cf = 0; 6957 _flag_k = FK_TEST; 6958 MEM32(esi + 0x94) = ebx; /* 0x43002E67: mov dword ptr [esi + 0x94], ebx */ 6959 if (TEST_LE(_flag_a, _flag_b)) goto L_43002E7D; /* 0x43002E6D: jle 0x43002e7d */ 6960 L_43002E6F: 6961 /* cmp eax, MEM32(esi + 0x9C) */ /* 0x43002E6F: cmp eax, dword ptr [esi + 0x9c] */ 6962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x9C)); 6963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6964 _flag_k = FK_CMP; 6965 if (CMP_BE(_flag_a, _flag_b)) goto L_43002E7D; /* 0x43002E75: jbe 0x43002e7d */ 6966 L_43002E77: 6967 MEM32(esi + 0x9C) = eax; /* 0x43002E77: mov dword ptr [esi + 0x9c], eax */ 6968 L_43002E7D: 6969 /* cmp edx, 4 */ /* 0x43002E7D: cmp edx, 4 */ 6970 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 6971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6972 _flag_k = FK_CMP; 6973 if (CMP_LE(_flag_a, _flag_b)) goto L_43002EFE; /* 0x43002E80: jle 0x43002efe */ 6974 L_43002E82: 6975 SET_LO8(edx, MEM8(esi + 0x4)); /* 0x43002E82: mov dl, byte ptr [esi + 4] */ 6976 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6977 eax = 0; /* 0x43002E85: xor eax, eax */ 6978 _cf = 0; 6979 _flag_k = FK_TEST; 6980 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6981 edx = edx & 0xFFu; /* 0x43002E87: and edx, 0xff */ 6982 _cf = 0; 6983 _flag_k = FK_TEST; 6984 if (TEST_Z(_flag_a, _flag_b)) goto L_43002EA5; /* 0x43002E8D: jbe 0x43002ea5 */ 6985 L_43002E8F: 6986 ecx = MEM32(ebp + (-0x4)); /* 0x43002E8F: mov ecx, dword ptr [ebp - 4] */ 6987 edi = MEM32(ecx); /* 0x43002E92: mov edi, dword ptr [ecx] */ 6988 ecx = esi + 0x8; /* 0x43002E94: lea ecx, [esi + 8] */ 6989 L_43002E97: 6990 ebx = MEM32(ecx); /* 0x43002E97: mov ebx, dword ptr [ecx] */ 6991 /* cmp MEM32(ebx), edi */ /* 0x43002E99: cmp dword ptr [ebx], edi */ 6992 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(edi); 6993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6994 _flag_k = FK_CMP; 6995 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002EDD; /* 0x43002E9B: je 0x43002edd */ 6996 L_43002E9D: 6997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6998 eax = eax + 1; /* 0x43002E9D: inc eax */ 6999 _flag_k = FK_INC; 7000 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 7001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7002 ecx = ecx + 4; /* 0x43002E9E: add ecx, 4 */ 7003 _flag_k = FK_ADD; 7004 /* cmp eax, edx */ /* 0x43002EA1: cmp eax, edx */ 7005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7007 _flag_k = FK_CMP; 7008 RECOMP_BACKEDGE(); 7009 if (CMP_B(_flag_a, _flag_b)) goto L_43002E97; /* 0x43002EA3: jb 0x43002e97 */ 7010 L_43002EA5: 7011 /* cmp MEM8(esi + 0x4), 0x20u */ /* 0x43002EA5: cmp byte ptr [esi + 4], 0x20 */ 7012 _flag_a = (uint32_t)(MEM8(esi + 0x4)) << 24; _flag_b = (uint32_t)(0x20u) << 24; 7013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7014 _flag_k = FK_NARROW(FK_CMP, 24); 7015 if (CMP_AE(_flag_a, _flag_b)) goto L_43002EE3; /* 0x43002EA9: jae 0x43002ee3 */ 7016 L_43002EAB: 7017 PUSH32(esp, 0xA4u); /* 0x43002EAB: push 0xa4 */ 7018 RECOMP_ICALL(0x43001B90u); /* 0x43002EB0: call 0x43001b90 */ /* not lifted */ 7019 RECOMP_FLAGS_IN(); 7020 edx = MEM32(ebp + (-0x4)); /* 0x43002EB5: mov edx, dword ptr [ebp - 4] */ 7021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7023 esp = esp + 4; /* 0x43002EB8: add esp, 4 */ 7024 _flag_k = FK_ADD; 7025 edi = eax; /* 0x43002EBB: mov edi, eax */ 7026 eax = MEM32(edx); /* 0x43002EBD: mov eax, dword ptr [edx] */ 7027 ecx = edi; /* 0x43002EBF: mov ecx, edi */ 7028 PUSH32(esp, eax); /* 0x43002EC1: push eax */ 7029 PUSH32(esp, esi); /* 0x43002EC2: push esi */ 7030 RECOMP_ICALL(0x430031C0u); /* 0x43002EC3: call 0x430031c0 */ /* not lifted */ 7031 RECOMP_FLAGS_IN(); 7032 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7033 ecx = 0; /* 0x43002EC8: xor ecx, ecx */ 7034 _cf = 0; 7035 _flag_k = FK_TEST; 7036 SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x43002ECA: mov cl, byte ptr [esi + 4] */ 7037 MEM32(esi + ecx * 4 + 0x8) = edi; /* 0x43002ECD: mov dword ptr [esi + ecx*4 + 8], edi */ 7038 SET_LO8(eax, MEM8(esi + 0x4)); /* 0x43002ED1: mov al, byte ptr [esi + 4] */ 7039 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7040 SET_LO8(eax, LO8(eax) + 1); /* 0x43002ED4: inc al */ 7041 _flag_k = FK_NARROW(FK_INC, 24); 7042 MEM8(esi + 0x4) = (uint8_t)(LO8(eax)); /* 0x43002ED6: mov byte ptr [esi + 4], al */ 7043 esi = edi; /* 0x43002ED9: mov esi, edi */ 7044 goto L_43002EE9; /* 0x43002EDB: jmp 0x43002ee9 */ 7045 L_43002EDD: 7046 esi = MEM32(esi + eax * 4 + 0x8); /* 0x43002EDD: mov esi, dword ptr [esi + eax*4 + 8] */ 7047 goto L_43002EE9; /* 0x43002EE1: jmp 0x43002ee9 */ 7048 L_43002EE3: 7049 esi = MEM32(esi + 0x84); /* 0x43002EE3: mov esi, dword ptr [esi + 0x84] */ 7050 L_43002EE9: 7051 edx = MEM32(ebp + (-0x8)); /* 0x43002EE9: mov edx, dword ptr [ebp - 8] */ 7052 eax = MEM32(ebp + (-0x4)); /* 0x43002EEC: mov eax, dword ptr [ebp - 4] */ 7053 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7054 edx = edx - 1; /* 0x43002EEF: dec edx */ 7055 _flag_k = FK_DEC; 7056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7058 eax = eax - 4; /* 0x43002EF0: sub eax, 4 */ 7059 _flag_k = FK_CMP; 7060 MEM32(ebp + (-0x8)) = edx; /* 0x43002EF3: mov dword ptr [ebp - 8], edx */ 7061 MEM32(ebp + (-0x4)) = eax; /* 0x43002EF6: mov dword ptr [ebp - 4], eax */ 7062 RECOMP_BACKEDGE(); 7063 goto L_43002E45; /* 0x43002EF9: jmp 0x43002e45 */ 7064 L_43002EFE: 7065 edi = POP32_VAL(esp); /* 0x43002EFE: pop edi */ 7066 eax = esi; /* 0x43002EFF: mov eax, esi */ 7067 ebx = POP32_VAL(esp); /* 0x43002F01: pop ebx */ 7068 esi = POP32_VAL(esp); /* 0x43002F02: pop esi */ 7069 esp = ebp; /* 0x43002F03: mov esp, ebp */ 7070 ebp = POP32_VAL(esp); /* 0x43002F05: pop ebp */ 7071 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x43002F06: ret 8 */ 7072 RECOMP_REGS_OUT(); 7073 } 7074 7075 void sub_43002F20(void) { 7076 int _fpu_cmp = 0; 7077 uint32_t _cf = 0; 7078 int _df = 1; 7079 uint32_t _flag_k = FK_NONE; 7080 uint32_t _flag_a = 0, _flag_b = 0; 7081 uint32_t _itail_tgt = 0; 7082 RECOMP_REGS_LOCALS 7083 RECOMP_ENTER(0x43002F20u); 7084 7085 L_43002F20: 7086 PUSH32(esp, ebp); /* 0x43002F20: push ebp */ 7087 ebp = esp; /* 0x43002F21: mov ebp, esp */ 7088 PUSH32(esp, 0xFFFFFFFFu); /* 0x43002F23: push -1 */ 7089 PUSH32(esp, 0x43003968u); /* 0x43002F25: push 0x43003968 */ 7090 eax = MEM32(FS_BASE + (0)); /* 0x43002F2A: mov eax, dword ptr fs:[0] */ 7091 PUSH32(esp, eax); /* 0x43002F30: push eax */ 7092 MEM32(FS_BASE + (0)) = esp; /* 0x43002F31: mov dword ptr fs:[0], esp */ 7093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7095 esp = esp - 8; /* 0x43002F38: sub esp, 8 */ 7096 _flag_k = FK_CMP; 7097 PUSH32(esp, ebx); /* 0x43002F3B: push ebx */ 7098 PUSH32(esp, esi); /* 0x43002F3C: push esi */ 7099 esi = ecx; /* 0x43002F3D: mov esi, ecx */ 7100 PUSH32(esp, edi); /* 0x43002F3F: push edi */ 7101 SET_LO8(eax, MEM8(esi)); /* 0x43002F40: mov al, byte ptr [esi] */ 7102 /* test LO8(eax), LO8(eax) */ /* 0x43002F42: test al, al */ 7103 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7104 _cf = 0; 7105 _flag_k = FK_NARROW(FK_TEST, 24); 7106 if (TEST_NZ(_flag_a, _flag_b)) goto L_43002F5B; /* 0x43002F44: jne 0x43002f5b */ 7107 L_43002F46: 7108 edi = POP32_VAL(esp); /* 0x43002F46: pop edi */ 7109 esi = POP32_VAL(esp); /* 0x43002F47: pop esi */ 7110 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7111 eax = 0; /* 0x43002F48: xor eax, eax */ 7112 _cf = 0; 7113 _flag_k = FK_TEST; 7114 ebx = POP32_VAL(esp); /* 0x43002F4A: pop ebx */ 7115 ecx = MEM32(ebp + (-0xC)); /* 0x43002F4B: mov ecx, dword ptr [ebp - 0xc] */ 7116 MEM32(FS_BASE + (0)) = ecx; /* 0x43002F4E: mov dword ptr fs:[0], ecx */ 7117 esp = ebp; /* 0x43002F55: mov esp, ebp */ 7118 ebp = POP32_VAL(esp); /* 0x43002F57: pop ebp */ 7119 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x43002F58: ret 0xc */ 7120 L_43002F5B: 7121 RECOMP_ICALL(0x43002B40u); /* 0x43002F5B: call 0x43002b40 */ /* not lifted */ 7122 RECOMP_FLAGS_IN(); 7123 edi = eax; /* 0x43002F60: mov edi, eax */ 7124 PUSH32(esp, 0); /* 0x43002F62: push 0 */ 7125 ecx = edi; /* 0x43002F64: mov ecx, edi */ 7126 MEM32(ebp + (-0x14)) = edi; /* 0x43002F66: mov dword ptr [ebp - 0x14], edi */ 7127 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x43002F69: call dword ptr [0x4300407c] */ 7128 RECOMP_FLAGS_IN(); 7129 ebx = eax; /* 0x43002F6F: mov ebx, eax */ 7130 MEM32(ebp + (-0x10)) = ebx; /* 0x43002F71: mov dword ptr [ebp - 0x10], ebx */ 7131 SET_LO8(eax, MEM8(esi)); /* 0x43002F74: mov al, byte ptr [esi] */ 7132 MEM32(ebp + (-0x4)) = 0; /* 0x43002F76: mov dword ptr [ebp - 4], 0 */ 7133 /* test LO8(eax), LO8(eax) */ /* 0x43002F7D: test al, al */ 7134 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7135 _cf = 0; 7136 _flag_k = FK_NARROW(FK_TEST, 24); 7137 if (TEST_NZ(_flag_a, _flag_b)) goto L_43002FAA; /* 0x43002F7F: jne 0x43002faa */ 7138 L_43002F81: 7139 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43002F81: cmp ebx, -1 */ 7140 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 7141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7142 _flag_k = FK_CMP; 7143 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43002F84: mov dword ptr [ebp - 4], 0xffffffff */ 7144 if (CMP_EQ(_flag_a, _flag_b)) goto L_43002F95; /* 0x43002F8B: je 0x43002f95 */ 7145 L_43002F8D: 7146 ecx = edi; /* 0x43002F8D: mov ecx, edi */ 7147 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43002F8F: call dword ptr [0x43004088] */ 7148 RECOMP_FLAGS_IN(); 7149 L_43002F95: 7150 edi = POP32_VAL(esp); /* 0x43002F95: pop edi */ 7151 esi = POP32_VAL(esp); /* 0x43002F96: pop esi */ 7152 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7153 eax = 0; /* 0x43002F97: xor eax, eax */ 7154 _cf = 0; 7155 _flag_k = FK_TEST; 7156 ebx = POP32_VAL(esp); /* 0x43002F99: pop ebx */ 7157 ecx = MEM32(ebp + (-0xC)); /* 0x43002F9A: mov ecx, dword ptr [ebp - 0xc] */ 7158 MEM32(FS_BASE + (0)) = ecx; /* 0x43002F9D: mov dword ptr fs:[0], ecx */ 7159 esp = ebp; /* 0x43002FA4: mov esp, ebp */ 7160 ebp = POP32_VAL(esp); /* 0x43002FA6: pop ebp */ 7161 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x43002FA7: ret 0xc */ 7162 L_43002FAA: 7163 ecx = MEM32(ebp + 0x8); /* 0x43002FAA: mov ecx, dword ptr [ebp + 8] */ 7164 eax = MEM32(ecx + 0x4); /* 0x43002FAD: mov eax, dword ptr [ecx + 4] */ 7165 if (30u) _cf = (((eax) >> 29) & 1u); /* 0x43002FB0: shr eax, 0x1e */ 7166 if (30u) { _flag_a = recomp_flags_pack((eax >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7167 eax = eax >> 30u; /* 0x43002FB0: shr eax, 0x1e */ 7168 /* test LO8(eax), 1 */ /* 0x43002FB3: test al, 1 */ 7169 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7170 _cf = 0; 7171 _flag_k = FK_NARROW(FK_TEST, 24); 7172 if (TEST_NZ(_flag_a, _flag_b)) goto L_43003003; /* 0x43002FB5: jne 0x43003003 */ 7173 L_43002FB7: 7174 eax = MEM32(ecx + 0x8); /* 0x43002FB7: mov eax, dword ptr [ecx + 8] */ 7175 /* test eax, eax */ /* 0x43002FBA: test eax, eax */ 7176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7177 _cf = 0; 7178 _flag_k = FK_TEST; 7179 if (TEST_Z(_flag_a, _flag_b)) goto L_43003003; /* 0x43002FBC: je 0x43003003 */ 7180 L_43002FBE: 7181 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x43002FBE: mov dl, byte ptr [ebp + 0xc] */ 7182 L_43002FC1: 7183 ebx = MEM32(ecx + 0x4); /* 0x43002FC1: mov ebx, dword ptr [ecx + 4] */ 7184 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x3FFFFFFFu); 7185 ebx = ebx & 0x3FFFFFFFu; /* 0x43002FC4: and ebx, 0x3fffffff */ 7186 _cf = 0; 7187 _flag_k = FK_TEST; 7188 _flag_a = (uint32_t)(MEM32(eax + 0x90)); _flag_b = (uint32_t)(ebx); 7189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7190 MEM32(eax + 0x90) = MEM32(eax + 0x90) + ebx; /* 0x43002FCA: add dword ptr [eax + 0x90], ebx */ 7191 _flag_k = FK_ADD; 7192 ebx = MEM32(eax + 0x98); /* 0x43002FD0: mov ebx, dword ptr [eax + 0x98] */ 7193 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 7194 ebx = ebx + 1; /* 0x43002FD6: inc ebx */ 7195 _flag_k = FK_INC; 7196 /* test LO8(edx), LO8(edx) */ /* 0x43002FD7: test dl, dl */ 7197 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7198 _cf = 0; 7199 _flag_k = FK_NARROW(FK_TEST, 24); 7200 MEM32(eax + 0x98) = ebx; /* 0x43002FD9: mov dword ptr [eax + 0x98], ebx */ 7201 if (TEST_Z(_flag_a, _flag_b)) goto L_43002FE8; /* 0x43002FDF: je 0x43002fe8 */ 7202 L_43002FE1: 7203 _flag_a = (uint32_t)((MEM8(eax + 0xA0) | 1)) << 24; _flag_b = (uint32_t)((MEM8(eax + 0xA0) | 1)) << 24; 7204 MEM8(eax + 0xA0) = (uint8_t)(MEM8(eax + 0xA0) | 1); /* 0x43002FE1: or byte ptr [eax + 0xa0], 1 */ 7205 _cf = 0; 7206 _flag_k = FK_NARROW(FK_TEST, 24); 7207 L_43002FE8: 7208 SET_LO8(ebx, MEM8(ebp + 0x10)); /* 0x43002FE8: mov bl, byte ptr [ebp + 0x10] */ 7209 /* test LO8(ebx), LO8(ebx) */ /* 0x43002FEB: test bl, bl */ 7210 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7211 _cf = 0; 7212 _flag_k = FK_NARROW(FK_TEST, 24); 7213 if (TEST_Z(_flag_a, _flag_b)) goto L_43002FF6; /* 0x43002FED: je 0x43002ff6 */ 7214 L_43002FEF: 7215 _flag_a = (uint32_t)((MEM8(eax + 0xA0) | 2)) << 24; _flag_b = (uint32_t)((MEM8(eax + 0xA0) | 2)) << 24; 7216 MEM8(eax + 0xA0) = (uint8_t)(MEM8(eax + 0xA0) | 2); /* 0x43002FEF: or byte ptr [eax + 0xa0], 2 */ 7217 _cf = 0; 7218 _flag_k = FK_NARROW(FK_TEST, 24); 7219 L_43002FF6: 7220 eax = MEM32(eax + 0x88); /* 0x43002FF6: mov eax, dword ptr [eax + 0x88] */ 7221 /* test eax, eax */ /* 0x43002FFC: test eax, eax */ 7222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7223 _cf = 0; 7224 _flag_k = FK_TEST; 7225 RECOMP_BACKEDGE(); 7226 if (TEST_NZ(_flag_a, _flag_b)) goto L_43002FC1; /* 0x43002FFE: jne 0x43002fc1 */ 7227 L_43003000: 7228 ebx = MEM32(ebp + (-0x10)); /* 0x43003000: mov ebx, dword ptr [ebp - 0x10] */ 7229 L_43003003: 7230 ecx = esi + 0xB0; /* 0x43003003: lea ecx, [esi + 0xb0] */ 7231 PUSH32(esp, 0); /* 0x43003009: push 0 */ 7232 PUSH32(esp, ecx); /* 0x4300300B: push ecx */ 7233 ecx = esi; /* 0x4300300C: mov ecx, esi */ 7234 RECOMP_ICALL(0x43002DE0u); /* 0x4300300E: call 0x43002de0 */ /* not lifted */ 7235 RECOMP_FLAGS_IN(); 7236 /* cmp ebx, 0xFFFFFFFFu */ /* 0x43003013: cmp ebx, -1 */ 7237 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 7238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7239 _flag_k = FK_CMP; 7240 esi = eax; /* 0x43003016: mov esi, eax */ 7241 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x43003018: mov dword ptr [ebp - 4], 0xffffffff */ 7242 if (CMP_EQ(_flag_a, _flag_b)) goto L_43003029; /* 0x4300301F: je 0x43003029 */ 7243 L_43003021: 7244 ecx = edi; /* 0x43003021: mov ecx, edi */ 7245 RECOMP_ICALL(MEM32(0x43004088)); /* 0x43003023: call dword ptr [0x43004088] */ 7246 RECOMP_FLAGS_IN(); 7247 L_43003029: 7248 ecx = MEM32(ebp + (-0xC)); /* 0x43003029: mov ecx, dword ptr [ebp - 0xc] */ 7249 eax = esi; /* 0x4300302C: mov eax, esi */ 7250 edi = POP32_VAL(esp); /* 0x4300302E: pop edi */ 7251 esi = POP32_VAL(esp); /* 0x4300302F: pop esi */ 7252 ebx = POP32_VAL(esp); /* 0x43003030: pop ebx */ 7253 MEM32(FS_BASE + (0)) = ecx; /* 0x43003031: mov dword ptr fs:[0], ecx */ 7254 esp = ebp; /* 0x43003038: mov esp, ebp */ 7255 ebp = POP32_VAL(esp); /* 0x4300303A: pop ebp */ 7256 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4300303B: ret 0xc */ 7257 RECOMP_REGS_OUT(); 7258 } 7259 7260 void sub_43003040(void) { 7261 int _fpu_cmp = 0; 7262 uint32_t _cf = 0; 7263 int _df = 1; 7264 uint32_t _flag_k = FK_NONE; 7265 uint32_t _flag_a = 0, _flag_b = 0; 7266 uint32_t _itail_tgt = 0; 7267 RECOMP_REGS_LOCALS 7268 RECOMP_ENTER(0x43003040u); 7269 7270 L_43003040: 7271 PUSH32(esp, ebp); /* 0x43003040: push ebp */ 7272 ebp = esp; /* 0x43003041: mov ebp, esp */ 7273 PUSH32(esp, 0xFFFFFFFFu); /* 0x43003043: push -1 */ 7274 PUSH32(esp, 0x43003988u); /* 0x43003045: push 0x43003988 */ 7275 eax = MEM32(FS_BASE + (0)); /* 0x4300304A: mov eax, dword ptr fs:[0] */ 7276 PUSH32(esp, eax); /* 0x43003050: push eax */ 7277 MEM32(FS_BASE + (0)) = esp; /* 0x43003051: mov dword ptr fs:[0], esp */ 7278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7280 esp = esp - 0xCu; /* 0x43003058: sub esp, 0xc */ 7281 _flag_k = FK_CMP; 7282 PUSH32(esp, ebx); /* 0x4300305B: push ebx */ 7283 PUSH32(esp, esi); /* 0x4300305C: push esi */ 7284 PUSH32(esp, edi); /* 0x4300305D: push edi */ 7285 esi = ecx; /* 0x4300305E: mov esi, ecx */ 7286 RECOMP_ICALL(0x43002B40u); /* 0x43003060: call 0x43002b40 */ /* not lifted */ 7287 RECOMP_FLAGS_IN(); 7288 edi = eax; /* 0x43003065: mov edi, eax */ 7289 PUSH32(esp, 0); /* 0x43003067: push 0 */ 7290 ecx = edi; /* 0x43003069: mov ecx, edi */ 7291 MEM32(ebp + (-0x18)) = edi; /* 0x4300306B: mov dword ptr [ebp - 0x18], edi */ 7292 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x4300306E: call dword ptr [0x4300407c] */ 7293 RECOMP_FLAGS_IN(); 7294 ebx = eax; /* 0x43003074: mov ebx, eax */ 7295 MEM32(ebp + (-0x14)) = ebx; /* 0x43003076: mov dword ptr [ebp - 0x14], ebx */ 7296 SET_LO8(eax, MEM8(esi)); /* 0x43003079: mov al, byte ptr [esi] */ 7297 PUSH32(esp, 0x43006644u); /* 0x4300307B: push 0x43006644 */ 7298 MEM32(ebp + (-0x4)) = 0; /* 0x43003080: mov dword ptr [ebp - 4], 0 */ 7299 MEM8(ebp + (-0xD)) = (uint8_t)(LO8(eax)); /* 0x43003087: mov byte ptr [ebp - 0xd], al */ 7300 MEM8(esi) = (uint8_t)(0); /* 0x4300308A: mov byte ptr [esi], 0 */ 7301 RECOMP_ICALL(MEM32(0x43004044)); /* 0x4300308D: call dword ptr [0x43004044] */ 7302 RECOMP_FLAGS_IN(); 7303 SET_LO8(ecx, MEM8(esi + 0x8)); /* 0x43003093: mov cl, byte ptr [esi + 8] */ 7304 edx = MEM32(ebp + 0x8); /* 0x43003096: mov edx, dword ptr [ebp + 8] */ 7305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7307 esp = esp + 4; /* 0x43003099: add esp, 4 */ 7308 _flag_k = FK_ADD; 7309 PUSH32(esp, 0); /* 0x4300309C: push 0 */ 7310 PUSH32(esp, ecx); /* 0x4300309E: push ecx */ 7311 PUSH32(esp, 0x43006634u); /* 0x4300309F: push 0x43006634 */ 7312 PUSH32(esp, edx); /* 0x430030A4: push edx */ 7313 ecx = esi + 0xC; /* 0x430030A5: lea ecx, [esi + 0xc] */ 7314 RECOMP_ICALL(0x43003270u); /* 0x430030A8: call 0x43003270 */ /* not lifted */ 7315 RECOMP_FLAGS_IN(); 7316 eax = MEM32(ebp + 0x8); /* 0x430030AD: mov eax, dword ptr [ebp + 8] */ 7317 PUSH32(esp, 0x4300662Cu); /* 0x430030B0: push 0x4300662c */ 7318 PUSH32(esp, eax); /* 0x430030B5: push eax */ 7319 RECOMP_ICALL(MEM32(0x43004054)); /* 0x430030B6: call dword ptr [0x43004054] */ 7320 RECOMP_FLAGS_IN(); 7321 PUSH32(esp, 0x43006604u); /* 0x430030BC: push 0x43006604 */ 7322 RECOMP_ICALL(MEM32(0x43004044)); /* 0x430030C1: call dword ptr [0x43004044] */ 7323 RECOMP_FLAGS_IN(); 7324 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x430030C7: mov cl, byte ptr [ebp - 0xd] */ 7325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7327 esp = esp + 0xCu; /* 0x430030CA: add esp, 0xc */ 7328 _flag_k = FK_ADD; 7329 /* cmp ebx, 0xFFFFFFFFu */ /* 0x430030CD: cmp ebx, -1 */ 7330 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 7331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7332 _flag_k = FK_CMP; 7333 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x430030D0: mov byte ptr [esi], cl */ 7334 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x430030D2: mov dword ptr [ebp - 4], 0xffffffff */ 7335 if (CMP_EQ(_flag_a, _flag_b)) goto L_430030E3; /* 0x430030D9: je 0x430030e3 */ 7336 L_430030DB: 7337 ecx = edi; /* 0x430030DB: mov ecx, edi */ 7338 RECOMP_ICALL(MEM32(0x43004088)); /* 0x430030DD: call dword ptr [0x43004088] */ 7339 RECOMP_FLAGS_IN(); 7340 L_430030E3: 7341 ecx = MEM32(ebp + (-0xC)); /* 0x430030E3: mov ecx, dword ptr [ebp - 0xc] */ 7342 edi = POP32_VAL(esp); /* 0x430030E6: pop edi */ 7343 esi = POP32_VAL(esp); /* 0x430030E7: pop esi */ 7344 ebx = POP32_VAL(esp); /* 0x430030E8: pop ebx */ 7345 MEM32(FS_BASE + (0)) = ecx; /* 0x430030E9: mov dword ptr fs:[0], ecx */ 7346 esp = ebp; /* 0x430030F0: mov esp, ebp */ 7347 ebp = POP32_VAL(esp); /* 0x430030F2: pop ebp */ 7348 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x430030F3: ret 4 */ 7349 RECOMP_REGS_OUT(); 7350 } 7351 7352 void sub_43003100(void) { 7353 int _fpu_cmp = 0; 7354 uint32_t _cf = 0; 7355 int _df = 1; 7356 uint32_t _flag_k = FK_NONE; 7357 uint32_t _flag_a = 0, _flag_b = 0; 7358 uint32_t _itail_tgt = 0; 7359 RECOMP_REGS_LOCALS 7360 RECOMP_ENTER(0x43003100u); 7361 7362 L_43003100: 7363 PUSH32(esp, ebp); /* 0x43003100: push ebp */ 7364 ebp = esp; /* 0x43003101: mov ebp, esp */ 7365 PUSH32(esp, 0xFFFFFFFFu); /* 0x43003103: push -1 */ 7366 PUSH32(esp, 0x430039A8u); /* 0x43003105: push 0x430039a8 */ 7367 eax = MEM32(FS_BASE + (0)); /* 0x4300310A: mov eax, dword ptr fs:[0] */ 7368 PUSH32(esp, eax); /* 0x43003110: push eax */ 7369 MEM32(FS_BASE + (0)) = esp; /* 0x43003111: mov dword ptr fs:[0], esp */ 7370 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7372 esp = esp - 8; /* 0x43003118: sub esp, 8 */ 7373 _flag_k = FK_CMP; 7374 PUSH32(esp, ebx); /* 0x4300311B: push ebx */ 7375 PUSH32(esp, edi); /* 0x4300311C: push edi */ 7376 RECOMP_ICALL(0x43002B40u); /* 0x4300311D: call 0x43002b40 */ /* not lifted */ 7377 RECOMP_FLAGS_IN(); 7378 ebx = eax; /* 0x43003122: mov ebx, eax */ 7379 PUSH32(esp, 0); /* 0x43003124: push 0 */ 7380 ecx = ebx; /* 0x43003126: mov ecx, ebx */ 7381 RECOMP_ICALL(MEM32(0x4300407C)); /* 0x43003128: call dword ptr [0x4300407c] */ 7382 RECOMP_FLAGS_IN(); 7383 MEM32(ebp + (-0x10)) = eax; /* 0x4300312E: mov dword ptr [ebp - 0x10], eax */ 7384 edx = MEM32(ebp + 0xC); /* 0x43003131: mov edx, dword ptr [ebp + 0xc] */ 7385 /* test edx, edx */ /* 0x43003134: test edx, edx */ 7386 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 7387 _cf = 0; 7388 _flag_k = FK_TEST; 7389 if (TEST_Z(_flag_a, _flag_b)) goto L_43003196; /* 0x43003136: je 0x43003196 */ 7390 L_43003138: 7391 edi = MEM32(ebp + 0x10); /* 0x43003138: mov edi, dword ptr [ebp + 0x10] */ 7392 /* test edi, edi */ /* 0x4300313B: test edi, edi */ 7393 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7394 _cf = 0; 7395 _flag_k = FK_TEST; 7396 if (TEST_Z(_flag_a, _flag_b)) goto L_43003196; /* 0x4300313D: je 0x43003196 */ 7397 L_4300313F: 7398 ecx = MEM32(ebp + 0x8); /* 0x4300313F: mov ecx, dword ptr [ebp + 8] */ 7399 PUSH32(esp, esi); /* 0x43003142: push esi */ 7400 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7401 esi = 0; /* 0x43003143: xor esi, esi */ 7402 _cf = 0; 7403 _flag_k = FK_TEST; 7404 eax = MEM32(ecx + 0x4); /* 0x43003145: mov eax, dword ptr [ecx + 4] */ 7405 if (30u) _cf = (((eax) >> 29) & 1u); /* 0x43003148: shr eax, 0x1e */ 7406 if (30u) { _flag_a = recomp_flags_pack((eax >> 30u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7407 eax = eax >> 30u; /* 0x43003148: shr eax, 0x1e */ 7408 /* test LO8(eax), 1 */ /* 0x4300314B: test al, 1 */ 7409 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7410 _cf = 0; 7411 _flag_k = FK_NARROW(FK_TEST, 24); 7412 if (TEST_NZ(_flag_a, _flag_b)) goto L_4300316C; /* 0x4300314D: jne 0x4300316c */ 7413 L_4300314F: 7414 ecx = MEM32(ecx + 0x8); /* 0x4300314F: mov ecx, dword ptr [ecx + 8] */ 7415 /* test ecx, ecx */ /* 0x43003152: test ecx, ecx */ 7416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7417 _cf = 0; 7418 _flag_k = FK_TEST; 7419 if (TEST_Z(_flag_a, _flag_b)) goto L_4300316C; /* 0x43003154: je 0x4300316c */ 7420 L_43003156: 7421 /* cmp esi, edi */ /* 0x43003156: cmp esi, edi */ 7422 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 7423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7424 _flag_k = FK_CMP; 7425 if (CMP_AE(_flag_a, _flag_b)) goto L_4300316C; /* 0x43003158: jae 0x4300316c */ 7426 L_4300315A: 7427 eax = MEM32(ecx); /* 0x4300315A: mov eax, dword ptr [ecx] */ 7428 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 7429 esi = esi + 1; /* 0x4300315C: inc esi */ 7430 _flag_k = FK_INC; 7431 MEM32(edx) = eax; /* 0x4300315D: mov dword ptr [edx], eax */ 7432 ecx = MEM32(ecx + 0x88); /* 0x4300315F: mov ecx, dword ptr [ecx + 0x88] */ 7433 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7435 edx = edx + 4; /* 0x43003165: add edx, 4 */ 7436 _flag_k = FK_ADD; 7437 /* test ecx, ecx */ /* 0x43003168: test ecx, ecx */ 7438 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7439 _cf = 0; 7440 _flag_k = FK_TEST; 7441 RECOMP_BACKEDGE(); 7442 if (TEST_NZ(_flag_a, _flag_b)) goto L_43003156; /* 0x4300316A: jne 0x43003156 */ 7443 L_4300316C: 7444 eax = MEM32(ebp + (-0x10)); /* 0x4300316C: mov eax, dword ptr [ebp - 0x10] */ 7445 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7446 ecx = ecx | 0xFFFFFFFFu; /* 0x4300316F: or ecx, 0xffffffff */ 7447 _cf = 0; 7448 _flag_k = FK_TEST; 7449 /* cmp eax, ecx */ /* 0x43003172: cmp eax, ecx */ 7450 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7452 _flag_k = FK_CMP; 7453 MEM32(ebp + (-0x4)) = ecx; /* 0x43003174: mov dword ptr [ebp - 4], ecx */ 7454 if (CMP_EQ(_flag_a, _flag_b)) goto L_43003181; /* 0x43003177: je 0x43003181 */ 7455 L_43003179: 7456 ecx = ebx; /* 0x43003179: mov ecx, ebx */ 7457 RECOMP_ICALL(MEM32(0x43004088)); /* 0x4300317B: call dword ptr [0x43004088] */ 7458 RECOMP_FLAGS_IN(); 7459 L_43003181: 7460 eax = esi; /* 0x43003181: mov eax, esi */ 7461 esi = POP32_VAL(esp); /* 0x43003183: pop esi */ 7462 edi = POP32_VAL(esp); /* 0x43003184: pop edi */ 7463 ebx = POP32_VAL(esp); /* 0x43003185: pop ebx */ 7464 ecx = MEM32(ebp + (-0xC)); /* 0x43003186: mov ecx, dword ptr [ebp - 0xc] */ 7465 MEM32(FS_BASE + (0)) = ecx; /* 0x43003189: mov dword ptr fs:[0], ecx */ 7466 esp = ebp; /* 0x43003190: mov esp, ebp */ 7467 ebp = POP32_VAL(esp); /* 0x43003192: pop ebp */ 7468 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x43003193: ret 0xc */ 7469 L_43003196: 7470 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7471 ecx = ecx | 0xFFFFFFFFu; /* 0x43003196: or ecx, 0xffffffff */ 7472 _cf = 0; 7473 _flag_k = FK_TEST; 7474 /* cmp eax, ecx */ /* 0x43003199: cmp eax, ecx */ 7475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7477 _flag_k = FK_CMP; 7478 MEM32(ebp + (-0x4)) = ecx; /* 0x4300319B: mov dword ptr [ebp - 4], ecx */ 7479 if (CMP_EQ(_flag_a, _flag_b)) goto L_430031A8; /* 0x4300319E: je 0x430031a8 */ 7480 L_430031A0: 7481 ecx = ebx; /* 0x430031A0: mov ecx, ebx */ 7482 RECOMP_ICALL(MEM32(0x43004088)); /* 0x430031A2: call dword ptr [0x43004088] */ 7483 RECOMP_FLAGS_IN(); 7484 L_430031A8: 7485 ecx = MEM32(ebp + (-0xC)); /* 0x430031A8: mov ecx, dword ptr [ebp - 0xc] */ 7486 edi = POP32_VAL(esp); /* 0x430031AB: pop edi */ 7487 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7488 eax = 0; /* 0x430031AC: xor eax, eax */ 7489 _cf = 0; 7490 _flag_k = FK_TEST; 7491 ebx = POP32_VAL(esp); /* 0x430031AE: pop ebx */ 7492 MEM32(FS_BASE + (0)) = ecx; /* 0x430031AF: mov dword ptr fs:[0], ecx */ 7493 esp = ebp; /* 0x430031B6: mov esp, ebp */ 7494 ebp = POP32_VAL(esp); /* 0x430031B8: pop ebp */ 7495 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x430031B9: ret 0xc */ 7496 RECOMP_REGS_OUT(); 7497 } 7498 7499 void sub_430031C0(void) { 7500 int _fpu_cmp = 0; 7501 uint32_t _cf = 0; 7502 int _df = 1; 7503 uint32_t _flag_k = FK_NONE; 7504 uint32_t _flag_a = 0, _flag_b = 0; 7505 uint32_t _itail_tgt = 0; 7506 RECOMP_REGS_LOCALS 7507 RECOMP_ENTER(0x430031C0u); 7508 7509 L_430031C0: 7510 PUSH32(esp, ebp); /* 0x430031C0: push ebp */ 7511 ebp = esp; /* 0x430031C1: mov ebp, esp */ 7512 eax = MEM32(ebp + 0xC); /* 0x430031C3: mov eax, dword ptr [ebp + 0xc] */ 7513 edx = MEM32(ebp + 0x8); /* 0x430031C6: mov edx, dword ptr [ebp + 8] */ 7514 MEM32(ecx) = eax; /* 0x430031C9: mov dword ptr [ecx], eax */ 7515 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7516 eax = 0; /* 0x430031CB: xor eax, eax */ 7517 _cf = 0; 7518 _flag_k = FK_TEST; 7519 MEM8(ecx + 0x4) = (uint8_t)(LO8(eax)); /* 0x430031CD: mov byte ptr [ecx + 4], al */ 7520 MEM32(ecx + 0x88) = edx; /* 0x430031D0: mov dword ptr [ecx + 0x88], edx */ 7521 MEM32(ecx + 0x8C) = eax; /* 0x430031D6: mov dword ptr [ecx + 0x8c], eax */ 7522 MEM32(ecx + 0x90) = eax; /* 0x430031DC: mov dword ptr [ecx + 0x90], eax */ 7523 MEM32(ecx + 0x94) = eax; /* 0x430031E2: mov dword ptr [ecx + 0x94], eax */ 7524 MEM32(ecx + 0x98) = eax; /* 0x430031E8: mov dword ptr [ecx + 0x98], eax */ 7525 MEM32(ecx + 0x9C) = eax; /* 0x430031EE: mov dword ptr [ecx + 0x9c], eax */ 7526 MEM8(ecx + 0xA0) = (uint8_t)(LO8(eax)); /* 0x430031F4: mov byte ptr [ecx + 0xa0], al */ 7527 ebp = POP32_VAL(esp); /* 0x430031FA: pop ebp */ 7528 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x430031FB: ret 8 */ 7529 RECOMP_REGS_OUT(); 7530 } 7531 7532 void sub_43003200(void) { 7533 int _fpu_cmp = 0; 7534 uint32_t _cf = 0; 7535 int _df = 1; 7536 uint32_t _flag_k = FK_NONE; 7537 uint32_t _flag_a = 0, _flag_b = 0; 7538 uint32_t _itail_tgt = 0; 7539 RECOMP_REGS_LOCALS 7540 RECOMP_ENTER(0x43003200u); 7541 7542 L_43003200: 7543 PUSH32(esp, ebx); /* 0x43003200: push ebx */ 7544 PUSH32(esp, edi); /* 0x43003201: push edi */ 7545 edi = ecx; /* 0x43003202: mov edi, ecx */ 7546 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7547 ebx = 0; /* 0x43003204: xor ebx, ebx */ 7548 _cf = 0; 7549 _flag_k = FK_TEST; 7550 SET_LO8(eax, MEM8(edi + 0x4)); /* 0x43003206: mov al, byte ptr [edi + 4] */ 7551 /* test LO8(eax), LO8(eax) */ /* 0x43003209: test al, al */ 7552 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7553 _cf = 0; 7554 _flag_k = FK_NARROW(FK_TEST, 24); 7555 if (TEST_Z(_flag_a, _flag_b)) goto L_43003238; /* 0x4300320B: jbe 0x43003238 */ 7556 L_4300320D: 7557 PUSH32(esp, esi); /* 0x4300320D: push esi */ 7558 esi = edi + 0x8; /* 0x4300320E: lea esi, [edi + 8] */ 7559 L_43003211: 7560 ecx = MEM32(esi); /* 0x43003211: mov ecx, dword ptr [esi] */ 7561 RECOMP_ICALL(0x43003200u); /* 0x43003213: call 0x43003200 */ /* not lifted */ 7562 RECOMP_FLAGS_IN(); 7563 eax = MEM32(esi); /* 0x43003218: mov eax, dword ptr [esi] */ 7564 PUSH32(esp, eax); /* 0x4300321A: push eax */ 7565 RECOMP_ICALL(0x43001BB0u); /* 0x4300321B: call 0x43001bb0 */ /* not lifted */ 7566 RECOMP_FLAGS_IN(); 7567 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7568 ecx = 0; /* 0x43003220: xor ecx, ecx */ 7569 _cf = 0; 7570 _flag_k = FK_TEST; 7571 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7573 esp = esp + 4; /* 0x43003222: add esp, 4 */ 7574 _flag_k = FK_ADD; 7575 SET_LO8(ecx, MEM8(edi + 0x4)); /* 0x43003225: mov cl, byte ptr [edi + 4] */ 7576 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 7577 ebx = ebx + 1; /* 0x43003228: inc ebx */ 7578 _flag_k = FK_INC; 7579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 7580 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7581 esi = esi + 4; /* 0x43003229: add esi, 4 */ 7582 _flag_k = FK_ADD; 7583 /* cmp ebx, ecx */ /* 0x4300322C: cmp ebx, ecx */ 7584 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 7585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7586 _flag_k = FK_CMP; 7587 RECOMP_BACKEDGE(); 7588 if (CMP_B(_flag_a, _flag_b)) goto L_43003211; /* 0x4300322E: jb 0x43003211 */ 7589 L_43003230: 7590 MEM8(edi + 0x4) = (uint8_t)(0); /* 0x43003230: mov byte ptr [edi + 4], 0 */ 7591 esi = POP32_VAL(esp); /* 0x43003234: pop esi */ 7592 edi = POP32_VAL(esp); /* 0x43003235: pop edi */ 7593 ebx = POP32_VAL(esp); /* 0x43003236: pop ebx */ 7594 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x43003237: ret */ 7595 L_43003238: 7596 MEM8(edi + 0x4) = (uint8_t)(0); /* 0x43003238: mov byte ptr [edi + 4], 0 */ 7597 edi = POP32_VAL(esp); /* 0x4300323C: pop edi */ 7598 ebx = POP32_VAL(esp); /* 0x4300323D: pop ebx */ 7599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300323E: ret */ 7600 RECOMP_REGS_OUT(); 7601 } 7602 7603 void sub_43003240(void) { 7604 int _fpu_cmp = 0; 7605 uint32_t _cf = 0; 7606 int _df = 1; 7607 uint32_t _flag_k = FK_NONE; 7608 uint32_t _flag_a = 0, _flag_b = 0; 7609 uint32_t _itail_tgt = 0; 7610 RECOMP_REGS_LOCALS 7611 RECOMP_ENTER(0x43003240u); 7612 7613 L_43003240: 7614 PUSH32(esp, ebp); /* 0x43003240: push ebp */ 7615 ebp = esp; /* 0x43003241: mov ebp, esp */ 7616 PUSH32(esp, esi); /* 0x43003243: push esi */ 7617 esi = ecx; /* 0x43003244: mov esi, ecx */ 7618 RECOMP_ICALL(MEM32(0x43004090)); /* 0x43003246: call dword ptr [0x43004090] */ 7619 RECOMP_FLAGS_IN(); 7620 ecx = MEM32(ebp + 0xC); /* 0x4300324C: mov ecx, dword ptr [ebp + 0xc] */ 7621 edx = MEM32(eax); /* 0x4300324F: mov edx, dword ptr [eax] */ 7622 PUSH32(esp, 2); /* 0x43003251: push 2 */ 7623 PUSH32(esp, ecx); /* 0x43003253: push ecx */ 7624 ecx = MEM32(ebp + 0x8); /* 0x43003254: mov ecx, dword ptr [ebp + 8] */ 7625 PUSH32(esp, ecx); /* 0x43003257: push ecx */ 7626 ecx = MEM32(esi); /* 0x43003258: mov ecx, dword ptr [esi] */ 7627 PUSH32(esp, ecx); /* 0x4300325A: push ecx */ 7628 ecx = eax; /* 0x4300325B: mov ecx, eax */ 7629 RECOMP_ICALL(MEM32(edx)); /* 0x4300325D: call dword ptr [edx] */ 7630 RECOMP_FLAGS_IN(); 7631 SET_LO8(eax, 1); /* 0x4300325F: mov al, 1 */ 7632 esi = POP32_VAL(esp); /* 0x43003261: pop esi */ 7633 ebp = POP32_VAL(esp); /* 0x43003262: pop ebp */ 7634 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x43003263: ret 0xc */ 7635 RECOMP_REGS_OUT(); 7636 } 7637 7638 void sub_43003270(void) { 7639 int _fpu_cmp = 0; 7640 uint32_t _cf = 0; 7641 int _df = 1; 7642 uint32_t _flag_k = FK_NONE; 7643 uint32_t _flag_a = 0, _flag_b = 0; 7644 uint32_t _itail_tgt = 0; 7645 RECOMP_REGS_LOCALS 7646 RECOMP_ENTER(0x43003270u); 7647 7648 L_43003270: 7649 PUSH32(esp, ebp); /* 0x43003270: push ebp */ 7650 ebp = esp; /* 0x43003271: mov ebp, esp */ 7651 eax = 0x4004u; /* 0x43003273: mov eax, 0x4004 */ 7652 RECOMP_ICALL(0x43003520u); /* 0x43003278: call 0x43003520 */ /* not lifted */ 7653 RECOMP_FLAGS_IN(); 7654 eax = MEM32(ebp + 0xC); /* 0x4300327D: mov eax, dword ptr [ebp + 0xc] */ 7655 PUSH32(esp, ebx); /* 0x43003280: push ebx */ 7656 PUSH32(esp, esi); /* 0x43003281: push esi */ 7657 ebx = ecx; /* 0x43003282: mov ebx, ecx */ 7658 PUSH32(esp, edi); /* 0x43003284: push edi */ 7659 edi = MEM32(0x43004064); /* 0x43003285: mov edi, dword ptr [0x43004064] */ 7660 PUSH32(esp, eax); /* 0x4300328B: push eax */ 7661 ecx = ebp + (-0x4004); /* 0x4300328C: lea ecx, [ebp - 0x4004] */ 7662 PUSH32(esp, 0x43006708u); /* 0x43003292: push 0x43006708 */ 7663 PUSH32(esp, ecx); /* 0x43003297: push ecx */ 7664 RECOMP_ICALL(edi); /* 0x43003298: call edi */ 7665 RECOMP_FLAGS_IN(); 7666 esi = ebp + eax + (-0x4004); /* 0x4300329A: lea esi, [ebp + eax - 0x4004] */ 7667 eax = MEM32(0x4300E88C); /* 0x430032A1: mov eax, dword ptr [0x4300e88c] */ 7668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7669 eax = eax + 1; /* 0x430032A6: inc eax */ 7670 _flag_k = FK_INC; 7671 PUSH32(esp, eax); /* 0x430032A7: push eax */ 7672 PUSH32(esp, 0x43006700u); /* 0x430032A8: push 0x43006700 */ 7673 PUSH32(esp, esi); /* 0x430032AD: push esi */ 7674 MEM32(0x4300E88C) = eax; /* 0x430032AE: mov dword ptr [0x4300e88c], eax */ 7675 RECOMP_ICALL(edi); /* 0x430032B3: call edi */ 7676 RECOMP_FLAGS_IN(); 7677 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7678 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7679 esi = esi + eax; /* 0x430032B5: add esi, eax */ 7680 _flag_k = FK_ADD; 7681 PUSH32(esp, ebx); /* 0x430032B7: push ebx */ 7682 PUSH32(esp, 0x430066F4u); /* 0x430032B8: push 0x430066f4 */ 7683 PUSH32(esp, esi); /* 0x430032BD: push esi */ 7684 RECOMP_ICALL(edi); /* 0x430032BE: call edi */ 7685 RECOMP_FLAGS_IN(); 7686 edx = MEM32(ebx + 0x94); /* 0x430032C0: mov edx, dword ptr [ebx + 0x94] */ 7687 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7689 esi = esi + eax; /* 0x430032C6: add esi, eax */ 7690 _flag_k = FK_ADD; 7691 PUSH32(esp, edx); /* 0x430032C8: push edx */ 7692 PUSH32(esp, 0x430066E4u); /* 0x430032C9: push 0x430066e4 */ 7693 PUSH32(esp, esi); /* 0x430032CE: push esi */ 7694 RECOMP_ICALL(edi); /* 0x430032CF: call edi */ 7695 RECOMP_FLAGS_IN(); 7696 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7698 esi = esi + eax; /* 0x430032D1: add esi, eax */ 7699 _flag_k = FK_ADD; 7700 eax = MEM32(ebx + 0x8C); /* 0x430032D3: mov eax, dword ptr [ebx + 0x8c] */ 7701 PUSH32(esp, eax); /* 0x430032D9: push eax */ 7702 PUSH32(esp, 0x430066D0u); /* 0x430032DA: push 0x430066d0 */ 7703 PUSH32(esp, esi); /* 0x430032DF: push esi */ 7704 RECOMP_ICALL(edi); /* 0x430032E0: call edi */ 7705 RECOMP_FLAGS_IN(); 7706 ecx = MEM32(ebx + 0x98); /* 0x430032E2: mov ecx, dword ptr [ebx + 0x98] */ 7707 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7709 esi = esi + eax; /* 0x430032E8: add esi, eax */ 7710 _flag_k = FK_ADD; 7711 PUSH32(esp, ecx); /* 0x430032EA: push ecx */ 7712 PUSH32(esp, 0x430066C0u); /* 0x430032EB: push 0x430066c0 */ 7713 PUSH32(esp, esi); /* 0x430032F0: push esi */ 7714 RECOMP_ICALL(edi); /* 0x430032F1: call edi */ 7715 RECOMP_FLAGS_IN(); 7716 edx = MEM32(ebx + 0x90); /* 0x430032F3: mov edx, dword ptr [ebx + 0x90] */ 7717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 7718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7719 esp = esp + 0x48u; /* 0x430032F9: add esp, 0x48 */ 7720 _flag_k = FK_ADD; 7721 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7723 esi = esi + eax; /* 0x430032FC: add esi, eax */ 7724 _flag_k = FK_ADD; 7725 PUSH32(esp, edx); /* 0x430032FE: push edx */ 7726 PUSH32(esp, 0x430066B0u); /* 0x430032FF: push 0x430066b0 */ 7727 PUSH32(esp, esi); /* 0x43003304: push esi */ 7728 RECOMP_ICALL(edi); /* 0x43003305: call edi */ 7729 RECOMP_FLAGS_IN(); 7730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7731 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7732 esi = esi + eax; /* 0x43003307: add esi, eax */ 7733 _flag_k = FK_ADD; 7734 eax = MEM32(ebx + 0x9C); /* 0x43003309: mov eax, dword ptr [ebx + 0x9c] */ 7735 PUSH32(esp, eax); /* 0x4300330F: push eax */ 7736 PUSH32(esp, 0x430066A0u); /* 0x43003310: push 0x430066a0 */ 7737 PUSH32(esp, esi); /* 0x43003315: push esi */ 7738 RECOMP_ICALL(edi); /* 0x43003316: call edi */ 7739 RECOMP_FLAGS_IN(); 7740 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7741 ecx = 0; /* 0x43003318: xor ecx, ecx */ 7742 _cf = 0; 7743 _flag_k = FK_TEST; 7744 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7746 esi = esi + eax; /* 0x4300331A: add esi, eax */ 7747 _flag_k = FK_ADD; 7748 SET_LO8(ecx, MEM8(ebx + 0xA0)); /* 0x4300331C: mov cl, byte ptr [ebx + 0xa0] */ 7749 PUSH32(esp, ecx); /* 0x43003322: push ecx */ 7750 PUSH32(esp, 0x43006694u); /* 0x43003323: push 0x43006694 */ 7751 PUSH32(esp, esi); /* 0x43003328: push esi */ 7752 RECOMP_ICALL(edi); /* 0x43003329: call edi */ 7753 RECOMP_FLAGS_IN(); 7754 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7755 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7756 esi = esi + eax; /* 0x4300332B: add esi, eax */ 7757 _flag_k = FK_ADD; 7758 eax = MEM32(ebp + 0x14); /* 0x4300332D: mov eax, dword ptr [ebp + 0x14] */ 7759 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 7760 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7761 esp = esp + 0x24u; /* 0x43003330: add esp, 0x24 */ 7762 _flag_k = FK_ADD; 7763 /* test eax, eax */ /* 0x43003333: test eax, eax */ 7764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7765 _cf = 0; 7766 _flag_k = FK_TEST; 7767 if (TEST_NS(_flag_a, _flag_b)) goto L_43003376; /* 0x43003335: jge 0x43003376 */ 7768 L_43003337: 7769 PUSH32(esp, 0x43006688u); /* 0x43003337: push 0x43006688 */ 7770 PUSH32(esp, esi); /* 0x4300333C: push esi */ 7771 RECOMP_ICALL(edi); /* 0x4300333D: call edi */ 7772 RECOMP_FLAGS_IN(); 7773 edi = ebp + (-0x4004); /* 0x4300333F: lea edi, [ebp - 0x4004] */ 7774 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7775 ecx = ecx | 0xFFFFFFFFu; /* 0x43003345: or ecx, 0xffffffff */ 7776 _cf = 0; 7777 _flag_k = FK_TEST; 7778 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7779 eax = 0; /* 0x43003348: xor eax, eax */ 7780 _cf = 0; 7781 _flag_k = FK_TEST; 7782 esi = MEM32(ebp + 0x8); /* 0x4300334A: mov esi, dword ptr [ebp + 8] */ 7783 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; } /* 0x4300334D: repne scasb al, byte ptr es:[edi] */ 7784 ecx = ~ecx; /* 0x4300334F: not ecx */ 7785 PUSH32(esp, esi); /* 0x43003351: push esi */ 7786 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7787 ecx = ecx - 1; /* 0x43003352: dec ecx */ 7788 _flag_k = FK_DEC; 7789 PUSH32(esp, 1); /* 0x43003353: push 1 */ 7790 edx = ebp + (-0x4004); /* 0x43003355: lea edx, [ebp - 0x4004] */ 7791 PUSH32(esp, ecx); /* 0x4300335B: push ecx */ 7792 PUSH32(esp, edx); /* 0x4300335C: push edx */ 7793 RECOMP_ICALL(MEM32(0x43004068)); /* 0x4300335D: call dword ptr [0x43004068] */ 7794 RECOMP_FLAGS_IN(); 7795 PUSH32(esp, esi); /* 0x43003363: push esi */ 7796 RECOMP_ICALL(MEM32(0x43004058)); /* 0x43003364: call dword ptr [0x43004058] */ 7797 RECOMP_FLAGS_IN(); 7798 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 7799 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7800 esp = esp + 0x1Cu; /* 0x4300336A: add esp, 0x1c */ 7801 _flag_k = FK_ADD; 7802 edi = POP32_VAL(esp); /* 0x4300336D: pop edi */ 7803 esi = POP32_VAL(esp); /* 0x4300336E: pop esi */ 7804 ebx = POP32_VAL(esp); /* 0x4300336F: pop ebx */ 7805 esp = ebp; /* 0x43003370: mov esp, ebp */ 7806 ebp = POP32_VAL(esp); /* 0x43003372: pop ebp */ 7807 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x43003373: ret 0x10 */ 7808 L_43003376: 7809 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7810 eax = 0; /* 0x43003376: xor eax, eax */ 7811 _cf = 0; 7812 _flag_k = FK_TEST; 7813 SET_LO8(eax, MEM8(ebx + 0x4)); /* 0x43003378: mov al, byte ptr [ebx + 4] */ 7814 PUSH32(esp, eax); /* 0x4300337B: push eax */ 7815 PUSH32(esp, 0x43006678u); /* 0x4300337C: push 0x43006678 */ 7816 PUSH32(esp, esi); /* 0x43003381: push esi */ 7817 RECOMP_ICALL(edi); /* 0x43003382: call edi */ 7818 RECOMP_FLAGS_IN(); 7819 edi = ebp + (-0x4004); /* 0x43003384: lea edi, [ebp - 0x4004] */ 7820 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7821 ecx = ecx | 0xFFFFFFFFu; /* 0x4300338A: or ecx, 0xffffffff */ 7822 _cf = 0; 7823 _flag_k = FK_TEST; 7824 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7825 eax = 0; /* 0x4300338D: xor eax, eax */ 7826 _cf = 0; 7827 _flag_k = FK_TEST; 7828 esi = MEM32(ebp + 0x8); /* 0x4300338F: mov esi, dword ptr [ebp + 8] */ 7829 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; } /* 0x43003392: repne scasb al, byte ptr es:[edi] */ 7830 ecx = ~ecx; /* 0x43003394: not ecx */ 7831 PUSH32(esp, esi); /* 0x43003396: push esi */ 7832 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7833 ecx = ecx - 1; /* 0x43003397: dec ecx */ 7834 _flag_k = FK_DEC; 7835 PUSH32(esp, 1); /* 0x43003398: push 1 */ 7836 PUSH32(esp, ecx); /* 0x4300339A: push ecx */ 7837 ecx = ebp + (-0x4004); /* 0x4300339B: lea ecx, [ebp - 0x4004] */ 7838 PUSH32(esp, ecx); /* 0x430033A1: push ecx */ 7839 RECOMP_ICALL(MEM32(0x43004068)); /* 0x430033A2: call dword ptr [0x43004068] */ 7840 RECOMP_FLAGS_IN(); 7841 PUSH32(esp, esi); /* 0x430033A8: push esi */ 7842 RECOMP_ICALL(MEM32(0x43004058)); /* 0x430033A9: call dword ptr [0x43004058] */ 7843 RECOMP_FLAGS_IN(); 7844 SET_LO8(eax, MEM8(ebx + 0x4)); /* 0x430033AF: mov al, byte ptr [ebx + 4] */ 7845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 7846 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7847 esp = esp + 0x20u; /* 0x430033B2: add esp, 0x20 */ 7848 _flag_k = FK_ADD; 7849 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7850 esi = 0; /* 0x430033B5: xor esi, esi */ 7851 _cf = 0; 7852 _flag_k = FK_TEST; 7853 /* test LO8(eax), LO8(eax) */ /* 0x430033B7: test al, al */ 7854 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7855 _cf = 0; 7856 _flag_k = FK_NARROW(FK_TEST, 24); 7857 MEM32(ebp + 0xC) = esi; /* 0x430033B9: mov dword ptr [ebp + 0xc], esi */ 7858 if (TEST_Z(_flag_a, _flag_b)) goto L_4300344D; /* 0x430033BC: jbe 0x4300344d */ 7859 L_430033C2: 7860 edi = ebx + 0x8; /* 0x430033C2: lea edi, [ebx + 8] */ 7861 MEM32(ebp + (-0x4)) = edi; /* 0x430033C5: mov dword ptr [ebp - 4], edi */ 7862 L_430033C8: 7863 /* cmp esi, 0x1Fu */ /* 0x430033C8: cmp esi, 0x1f */ 7864 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Fu); 7865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7866 _flag_k = FK_CMP; 7867 if (CMP_AE(_flag_a, _flag_b)) goto L_430033F0; /* 0x430033CB: jae 0x430033f0 */ 7868 L_430033CD: 7869 edx = MEM32(ebp + 0x10); /* 0x430033CD: mov edx, dword ptr [ebp + 0x10] */ 7870 ecx = MEM32(edi); /* 0x430033D0: mov ecx, dword ptr [edi] */ 7871 PUSH32(esp, edx); /* 0x430033D2: push edx */ 7872 PUSH32(esp, 0x8000u); /* 0x430033D3: push 0x8000 */ 7873 PUSH32(esp, 0x4300683Cu); /* 0x430033D8: push 0x4300683c */ 7874 RECOMP_ICALL(0x43003240u); /* 0x430033DD: call 0x43003240 */ /* not lifted */ 7875 RECOMP_FLAGS_IN(); 7876 /* test LO8(eax), LO8(eax) */ /* 0x430033E2: test al, al */ 7877 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7878 _cf = 0; 7879 _flag_k = FK_NARROW(FK_TEST, 24); 7880 SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x430033E4: sete al */ 7881 /* test LO8(eax), LO8(eax) */ /* 0x430033E7: test al, al */ 7882 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7883 _cf = 0; 7884 _flag_k = FK_NARROW(FK_TEST, 24); 7885 if (TEST_Z(_flag_a, _flag_b)) goto L_4300341B; /* 0x430033E9: je 0x4300341b */ 7886 L_430033EB: 7887 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7888 eax = eax | 0xFFFFFFFFu; /* 0x430033EB: or eax, 0xffffffff */ 7889 _cf = 0; 7890 _flag_k = FK_TEST; 7891 goto L_43003421; /* 0x430033EE: jmp 0x43003421 */ 7892 L_430033F0: 7893 edi = 0x43006670u; /* 0x430033F0: mov edi, 0x43006670 */ 7894 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7895 ecx = ecx | 0xFFFFFFFFu; /* 0x430033F5: or ecx, 0xffffffff */ 7896 _cf = 0; 7897 _flag_k = FK_TEST; 7898 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7899 eax = 0; /* 0x430033F8: xor eax, eax */ 7900 _cf = 0; 7901 _flag_k = FK_TEST; 7902 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; } /* 0x430033FA: repne scasb al, byte ptr es:[edi] */ 7903 ecx = ~ecx; /* 0x430033FC: not ecx */ 7904 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 7905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7906 edi = edi - ecx; /* 0x430033FE: sub edi, ecx */ 7907 _flag_k = FK_CMP; 7908 eax = ecx; /* 0x43003400: mov eax, ecx */ 7909 esi = edi; /* 0x43003402: mov esi, edi */ 7910 edi = 0x4300683Cu; /* 0x43003404: mov edi, 0x4300683c */ 7911 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x43003409: shr ecx, 2 */ 7912 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7913 ecx = ecx >> 2u; /* 0x43003409: shr ecx, 2 */ 7914 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4300340C: 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; } 7915 ecx = eax; /* 0x4300340E: mov ecx, eax */ 7916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7917 ecx = ecx & 3; /* 0x43003410: and ecx, 3 */ 7918 _cf = 0; 7919 _flag_k = FK_TEST; 7920 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x43003413: 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; } 7921 edi = MEM32(ebp + (-0x4)); /* 0x43003415: mov edi, dword ptr [ebp - 4] */ 7922 esi = MEM32(ebp + 0xC); /* 0x43003418: mov esi, dword ptr [ebp + 0xc] */ 7923 L_4300341B: 7924 ecx = MEM32(ebp + 0x14); /* 0x4300341B: mov ecx, dword ptr [ebp + 0x14] */ 7925 eax = ecx + 0x1; /* 0x4300341E: lea eax, [ecx + 1] */ 7926 L_43003421: 7927 edx = MEM32(ebp + 0x10); /* 0x43003421: mov edx, dword ptr [ebp + 0x10] */ 7928 ecx = MEM32(edi); /* 0x43003424: mov ecx, dword ptr [edi] */ 7929 PUSH32(esp, eax); /* 0x43003426: push eax */ 7930 eax = MEM32(ebp + 0x8); /* 0x43003427: mov eax, dword ptr [ebp + 8] */ 7931 PUSH32(esp, edx); /* 0x4300342A: push edx */ 7932 PUSH32(esp, 0x4300683Cu); /* 0x4300342B: push 0x4300683c */ 7933 PUSH32(esp, eax); /* 0x43003430: push eax */ 7934 RECOMP_ICALL(0x43003270u); /* 0x43003431: call 0x43003270 */ /* not lifted */ 7935 RECOMP_FLAGS_IN(); 7936 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7937 ecx = 0; /* 0x43003436: xor ecx, ecx */ 7938 _cf = 0; 7939 _flag_k = FK_TEST; 7940 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 7941 esi = esi + 1; /* 0x43003438: inc esi */ 7942 _flag_k = FK_INC; 7943 SET_LO8(ecx, MEM8(ebx + 0x4)); /* 0x43003439: mov cl, byte ptr [ebx + 4] */ 7944 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 7945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7946 edi = edi + 4; /* 0x4300343C: add edi, 4 */ 7947 _flag_k = FK_ADD; 7948 /* cmp esi, ecx */ /* 0x4300343F: cmp esi, ecx */ 7949 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 7950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7951 _flag_k = FK_CMP; 7952 MEM32(ebp + 0xC) = esi; /* 0x43003441: mov dword ptr [ebp + 0xc], esi */ 7953 MEM32(ebp + (-0x4)) = edi; /* 0x43003444: mov dword ptr [ebp - 4], edi */ 7954 RECOMP_BACKEDGE(); 7955 if (CMP_B(_flag_a, _flag_b)) goto L_430033C8; /* 0x43003447: jb 0x430033c8 */ 7956 L_4300344D: 7957 edi = POP32_VAL(esp); /* 0x4300344D: pop edi */ 7958 esi = POP32_VAL(esp); /* 0x4300344E: pop esi */ 7959 ebx = POP32_VAL(esp); /* 0x4300344F: pop ebx */ 7960 esp = ebp; /* 0x43003450: mov esp, ebp */ 7961 ebp = POP32_VAL(esp); /* 0x43003452: pop ebp */ 7962 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x43003453: ret 0x10 */ 7963 RECOMP_REGS_OUT(); 7964 } 7965 7966 void sub_43003460(void) { 7967 int _fpu_cmp = 0; 7968 uint32_t _cf = 0; 7969 int _df = 1; 7970 uint32_t _flag_k = FK_NONE; 7971 uint32_t _flag_a = 0, _flag_b = 0; 7972 uint32_t _itail_tgt = 0; 7973 RECOMP_REGS_LOCALS 7974 RECOMP_ENTER(0x43003460u); 7975 7976 L_43003460: 7977 RECOMP_ICALL(0x43003470u); /* 0x43003460: call 0x43003470 */ /* not lifted */ 7978 RECOMP_FLAGS_IN(); 7979 goto L_43003480; /* 0x43003465: jmp 0x43003480 */ 7980 L_43003480: 7981 PUSH32(esp, 0x43003490u); /* 0x43003480: push 0x43003490 */ 7982 RECOMP_ICALL(0x4300357Bu); /* 0x43003485: call 0x4300357b */ /* not lifted */ 7983 RECOMP_FLAGS_IN(); 7984 ecx = POP32_VAL(esp); /* 0x4300348A: pop ecx */ 7985 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300348B: ret */ 7986 RECOMP_REGS_OUT(); 7987 } 7988 7989 void sub_43003470(void) { 7990 int _fpu_cmp = 0; 7991 uint32_t _cf = 0; 7992 int _df = 1; 7993 uint32_t _flag_k = FK_NONE; 7994 uint32_t _flag_a = 0, _flag_b = 0; 7995 uint32_t _itail_tgt = 0; 7996 RECOMP_REGS_LOCALS 7997 RECOMP_ENTER(0x43003470u); 7998 7999 L_43003470: 8000 ecx = 0x4300E83Du; /* 0x43003470: mov ecx, 0x4300e83d */ 8001 L_43003475: 8002 { _itail_tgt = (uint32_t)(MEM32(0x43004018)); goto _ljump; } 8003 { RECOMP_REGS_OUT(); return; } /* end of function */ 8004 _ljump: 8005 switch (_itail_tgt) { 8006 case 0x43003470u: goto L_43003470; 8007 case 0x43003475u: goto L_43003475; 8008 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8009 } 8010 RECOMP_REGS_OUT(); 8011 } 8012 8013 void sub_43003480(void) { 8014 int _fpu_cmp = 0; 8015 uint32_t _cf = 0; 8016 int _df = 1; 8017 uint32_t _flag_k = FK_NONE; 8018 uint32_t _flag_a = 0, _flag_b = 0; 8019 uint32_t _itail_tgt = 0; 8020 RECOMP_REGS_LOCALS 8021 RECOMP_ENTER(0x43003480u); 8022 8023 L_43003480: 8024 PUSH32(esp, 0x43003490u); /* 0x43003480: push 0x43003490 */ 8025 RECOMP_ICALL(0x4300357Bu); /* 0x43003485: call 0x4300357b */ /* not lifted */ 8026 RECOMP_FLAGS_IN(); 8027 ecx = POP32_VAL(esp); /* 0x4300348A: pop ecx */ 8028 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4300348B: ret */ 8029 RECOMP_REGS_OUT(); 8030 } 8031 8032 void sub_43003490(void) { 8033 int _fpu_cmp = 0; 8034 uint32_t _cf = 0; 8035 int _df = 1; 8036 uint32_t _flag_k = FK_NONE; 8037 uint32_t _flag_a = 0, _flag_b = 0; 8038 uint32_t _itail_tgt = 0; 8039 RECOMP_REGS_LOCALS 8040 RECOMP_ENTER(0x43003490u); 8041 8042 L_43003490: 8043 ecx = 0x4300E83Du; /* 0x43003490: mov ecx, 0x4300e83d */ 8044 L_43003495: 8045 { _itail_tgt = (uint32_t)(MEM32(0x43004014)); goto _ljump; } 8046 { RECOMP_REGS_OUT(); return; } /* end of function */ 8047 _ljump: 8048 switch (_itail_tgt) { 8049 case 0x43003490u: goto L_43003490; 8050 case 0x43003495u: goto L_43003495; 8051 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8052 } 8053 RECOMP_REGS_OUT(); 8054 } 8055 8056 void sub_430034A0(void) { 8057 int _fpu_cmp = 0; 8058 uint32_t _cf = 0; 8059 int _df = 1; 8060 uint32_t _flag_k = FK_NONE; 8061 uint32_t _flag_a = 0, _flag_b = 0; 8062 uint32_t _itail_tgt = 0; 8063 RECOMP_REGS_LOCALS 8064 RECOMP_ENTER(0x430034A0u); 8065 8066 L_430034A0: 8067 RECOMP_ICALL(0x430034B0u); /* 0x430034A0: call 0x430034b0 */ /* not lifted */ 8068 RECOMP_FLAGS_IN(); 8069 goto L_430034C0; /* 0x430034A5: jmp 0x430034c0 */ 8070 L_430034C0: 8071 PUSH32(esp, 0x430034D0u); /* 0x430034C0: push 0x430034d0 */ 8072 RECOMP_ICALL(0x4300357Bu); /* 0x430034C5: call 0x4300357b */ /* not lifted */ 8073 RECOMP_FLAGS_IN(); 8074 ecx = POP32_VAL(esp); /* 0x430034CA: pop ecx */ 8075 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430034CB: ret */ 8076 RECOMP_REGS_OUT(); 8077 } 8078 8079 void sub_430034B0(void) { 8080 int _fpu_cmp = 0; 8081 uint32_t _cf = 0; 8082 int _df = 1; 8083 uint32_t _flag_k = FK_NONE; 8084 uint32_t _flag_a = 0, _flag_b = 0; 8085 uint32_t _itail_tgt = 0; 8086 RECOMP_REGS_LOCALS 8087 RECOMP_ENTER(0x430034B0u); 8088 8089 L_430034B0: 8090 ecx = 0x4300E83Cu; /* 0x430034B0: mov ecx, 0x4300e83c */ 8091 L_430034B5: 8092 { _itail_tgt = (uint32_t)(MEM32(0x43004010)); goto _ljump; } 8093 { RECOMP_REGS_OUT(); return; } /* end of function */ 8094 _ljump: 8095 switch (_itail_tgt) { 8096 case 0x430034B0u: goto L_430034B0; 8097 case 0x430034B5u: goto L_430034B5; 8098 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8099 } 8100 RECOMP_REGS_OUT(); 8101 } 8102 8103 void sub_430034C0(void) { 8104 int _fpu_cmp = 0; 8105 uint32_t _cf = 0; 8106 int _df = 1; 8107 uint32_t _flag_k = FK_NONE; 8108 uint32_t _flag_a = 0, _flag_b = 0; 8109 uint32_t _itail_tgt = 0; 8110 RECOMP_REGS_LOCALS 8111 RECOMP_ENTER(0x430034C0u); 8112 8113 L_430034C0: 8114 PUSH32(esp, 0x430034D0u); /* 0x430034C0: push 0x430034d0 */ 8115 RECOMP_ICALL(0x4300357Bu); /* 0x430034C5: call 0x4300357b */ /* not lifted */ 8116 RECOMP_FLAGS_IN(); 8117 ecx = POP32_VAL(esp); /* 0x430034CA: pop ecx */ 8118 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430034CB: ret */ 8119 RECOMP_REGS_OUT(); 8120 } 8121 8122 void sub_430034D0(void) { 8123 int _fpu_cmp = 0; 8124 uint32_t _cf = 0; 8125 int _df = 1; 8126 uint32_t _flag_k = FK_NONE; 8127 uint32_t _flag_a = 0, _flag_b = 0; 8128 uint32_t _itail_tgt = 0; 8129 RECOMP_REGS_LOCALS 8130 RECOMP_ENTER(0x430034D0u); 8131 8132 L_430034D0: 8133 ecx = 0x4300E83Cu; /* 0x430034D0: mov ecx, 0x4300e83c */ 8134 L_430034D5: 8135 { _itail_tgt = (uint32_t)(MEM32(0x4300400C)); goto _ljump; } 8136 { RECOMP_REGS_OUT(); return; } /* end of function */ 8137 _ljump: 8138 switch (_itail_tgt) { 8139 case 0x430034D0u: goto L_430034D0; 8140 case 0x430034D5u: goto L_430034D5; 8141 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8142 } 8143 RECOMP_REGS_OUT(); 8144 } 8145 8146 void sub_430034E0(void) { 8147 int _fpu_cmp = 0; 8148 uint32_t _cf = 0; 8149 int _df = 1; 8150 uint32_t _flag_k = FK_NONE; 8151 uint32_t _flag_a = 0, _flag_b = 0; 8152 uint32_t _itail_tgt = 0; 8153 RECOMP_REGS_LOCALS 8154 RECOMP_ENTER(0x430034E0u); 8155 8156 L_430034E0: 8157 goto L_430034F0; /* 0x430034E0: jmp 0x430034f0 */ 8158 L_430034F0: 8159 MEM32(0x43006738) = 0x43006580u; /* 0x430034F0: mov dword ptr [0x43006738], 0x43006580 */ 8160 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430034FA: ret */ 8161 RECOMP_REGS_OUT(); 8162 } 8163 8164 void sub_430034F0(void) { 8165 int _fpu_cmp = 0; 8166 uint32_t _cf = 0; 8167 int _df = 1; 8168 uint32_t _flag_k = FK_NONE; 8169 uint32_t _flag_a = 0, _flag_b = 0; 8170 uint32_t _itail_tgt = 0; 8171 RECOMP_REGS_LOCALS 8172 RECOMP_ENTER(0x430034F0u); 8173 8174 L_430034F0: 8175 MEM32(0x43006738) = 0x43006580u; /* 0x430034F0: mov dword ptr [0x43006738], 0x43006580 */ 8176 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x430034FA: ret */ 8177 RECOMP_REGS_OUT(); 8178 } 8179 8180 void sub_43003500(void) { 8181 int _fpu_cmp = 0; 8182 uint32_t _cf = 0; 8183 int _df = 1; 8184 uint32_t _flag_k = FK_NONE; 8185 uint32_t _flag_a = 0, _flag_b = 0; 8186 uint32_t _itail_tgt = 0; 8187 RECOMP_REGS_LOCALS 8188 RECOMP_ENTER(0x43003500u); 8189 8190 L_43003500: 8191 { _itail_tgt = (uint32_t)(MEM32(0x43004024)); goto _ljump; } 8192 { RECOMP_REGS_OUT(); return; } /* end of function */ 8193 _ljump: 8194 switch (_itail_tgt) { 8195 case 0x43003500u: goto L_43003500; 8196 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8197 } 8198 RECOMP_REGS_OUT(); 8199 } 8200 8201 void sub_43003506(void) { 8202 int _fpu_cmp = 0; 8203 uint32_t _cf = 0; 8204 int _df = 1; 8205 uint32_t _flag_k = FK_NONE; 8206 uint32_t _flag_a = 0, _flag_b = 0; 8207 uint32_t _itail_tgt = 0; 8208 RECOMP_REGS_LOCALS 8209 RECOMP_ENTER(0x43003506u); 8210 8211 L_43003506: 8212 { _itail_tgt = (uint32_t)(MEM32(0x43004028)); goto _ljump; } 8213 { RECOMP_REGS_OUT(); return; } /* end of function */ 8214 _ljump: 8215 switch (_itail_tgt) { 8216 case 0x43003506u: goto L_43003506; 8217 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8218 } 8219 RECOMP_REGS_OUT(); 8220 }