client/vendor/msvcp60/source/lifted-0005.c (146610B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_46003B65(void) { 5 int _fpu_cmp = 0; 6 uint32_t _cf = 0; 7 int _df = 1; 8 uint32_t _flag_k = FK_NONE; 9 uint32_t _flag_a = 0, _flag_b = 0; 10 uint32_t _itail_tgt = 0; 11 RECOMP_REGS_LOCALS 12 RECOMP_ENTER(0x46003B65u); 13 14 L_46003B65: 15 PUSH32(esp, esi); /* 0x46003B65: push esi */ 16 PUSH32(esp, edi); /* 0x46003B66: push edi */ 17 edi = MEM32(esp + 0xC); /* 0x46003B67: mov edi, dword ptr [esp + 0xc] */ 18 esi = ecx; /* 0x46003B6B: mov esi, ecx */ 19 PUSH32(esp, edi); /* 0x46003B6D: push edi */ 20 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x46003B6E: call dword ptr [0x4602b114] */ 21 RECOMP_FLAGS_IN(); 22 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003B74: push -1 */ 23 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 24 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 25 edi = edi + 0xCu; /* 0x46003B76: add edi, 0xc */ 26 _flag_k = FK_ADD; 27 PUSH32(esp, 0); /* 0x46003B79: push 0 */ 28 PUSH32(esp, edi); /* 0x46003B7B: push edi */ 29 ecx = esi + 0xC; /* 0x46003B7C: lea ecx, [esi + 0xc] */ 30 RECOMP_ICALL(0x46007714u); /* 0x46003B7F: call 0x46007714 */ /* not lifted */ 31 RECOMP_FLAGS_IN(); 32 eax = esi; /* 0x46003B84: mov eax, esi */ 33 edi = POP32_VAL(esp); /* 0x46003B86: pop edi */ 34 esi = POP32_VAL(esp); /* 0x46003B87: pop esi */ 35 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003B88: ret 4 */ 36 RECOMP_REGS_OUT(); 37 } 38 39 void sub_46003B8B(void) { 40 int _fpu_cmp = 0; 41 uint32_t _cf = 0; 42 int _df = 1; 43 uint32_t _flag_k = FK_NONE; 44 uint32_t _flag_a = 0, _flag_b = 0; 45 uint32_t _itail_tgt = 0; 46 RECOMP_REGS_LOCALS 47 RECOMP_ENTER(0x46003B8Bu); 48 49 L_46003B8B: 50 PUSH32(esp, ebx); /* 0x46003B8B: push ebx */ 51 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x46003B8C: mov bl, byte ptr [esp + 8] */ 52 PUSH32(esp, esi); /* 0x46003B90: push esi */ 53 esi = ecx; /* 0x46003B91: mov esi, ecx */ 54 /* test LO8(ebx), 2 */ /* 0x46003B93: test bl, 2 */ 55 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 56 _cf = 0; 57 _flag_k = FK_NARROW(FK_TEST, 24); 58 if (TEST_Z(_flag_a, _flag_b)) goto L_46003BBF; /* 0x46003B96: je 0x46003bbf */ 59 L_46003B98: 60 PUSH32(esp, edi); /* 0x46003B98: push edi */ 61 edi = esi + (-0x4); /* 0x46003B99: lea edi, [esi - 4] */ 62 PUSH32(esp, 0x46003AF2u); /* 0x46003B9C: push 0x46003af2 */ 63 PUSH32(esp, MEM32(edi)); /* 0x46003BA1: push dword ptr [edi] */ 64 PUSH32(esp, 0x1Cu); /* 0x46003BA3: push 0x1c */ 65 PUSH32(esp, esi); /* 0x46003BA5: push esi */ 66 RECOMP_ICALL(0x4602806Eu); /* 0x46003BA6: call 0x4602806e */ /* not lifted */ 67 RECOMP_FLAGS_IN(); 68 /* test LO8(ebx), 1 */ /* 0x46003BAB: test bl, 1 */ 69 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 70 _cf = 0; 71 _flag_k = FK_NARROW(FK_TEST, 24); 72 if (TEST_Z(_flag_a, _flag_b)) goto L_46003BB7; /* 0x46003BAE: je 0x46003bb7 */ 73 L_46003BB0: 74 PUSH32(esp, edi); /* 0x46003BB0: push edi */ 75 RECOMP_ICALL(0x46002CE4u); /* 0x46003BB1: call 0x46002ce4 */ /* not lifted */ 76 RECOMP_FLAGS_IN(); 77 ecx = POP32_VAL(esp); /* 0x46003BB6: pop ecx */ 78 L_46003BB7: 79 eax = edi; /* 0x46003BB7: mov eax, edi */ 80 edi = POP32_VAL(esp); /* 0x46003BB9: pop edi */ 81 L_46003BBA: 82 esi = POP32_VAL(esp); /* 0x46003BBA: pop esi */ 83 ebx = POP32_VAL(esp); /* 0x46003BBB: pop ebx */ 84 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003BBC: ret 4 */ 85 L_46003BBF: 86 ecx = esi; /* 0x46003BBF: mov ecx, esi */ 87 RECOMP_ICALL(0x46003AF2u); /* 0x46003BC1: call 0x46003af2 */ /* not lifted */ 88 RECOMP_FLAGS_IN(); 89 /* test LO8(ebx), 1 */ /* 0x46003BC6: test bl, 1 */ 90 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 91 _cf = 0; 92 _flag_k = FK_NARROW(FK_TEST, 24); 93 if (TEST_Z(_flag_a, _flag_b)) goto L_46003BD2; /* 0x46003BC9: je 0x46003bd2 */ 94 L_46003BCB: 95 PUSH32(esp, esi); /* 0x46003BCB: push esi */ 96 RECOMP_ICALL(0x46002CE4u); /* 0x46003BCC: call 0x46002ce4 */ /* not lifted */ 97 RECOMP_FLAGS_IN(); 98 ecx = POP32_VAL(esp); /* 0x46003BD1: pop ecx */ 99 L_46003BD2: 100 eax = esi; /* 0x46003BD2: mov eax, esi */ 101 RECOMP_BACKEDGE(); 102 goto L_46003BBA; /* 0x46003BD4: jmp 0x46003bba */ 103 { RECOMP_REGS_OUT(); return; } /* end of function */ 104 RECOMP_REGS_OUT(); 105 } 106 107 void sub_46003BD6(void) { 108 int _fpu_cmp = 0; 109 uint32_t _cf = 0; 110 int _df = 1; 111 uint32_t _flag_k = FK_NONE; 112 uint32_t _flag_a = 0, _flag_b = 0; 113 uint32_t _itail_tgt = 0; 114 RECOMP_REGS_LOCALS 115 RECOMP_ENTER(0x46003BD6u); 116 117 L_46003BD6: 118 eax = 0x460282B7u; /* 0x46003BD6: mov eax, 0x460282b7 */ 119 RECOMP_ICALL(0x46001535u); /* 0x46003BDB: call 0x46001535 */ /* not lifted */ 120 RECOMP_FLAGS_IN(); 121 PUSH32(esp, ecx); /* 0x46003BE0: push ecx */ 122 PUSH32(esp, ecx); /* 0x46003BE1: push ecx */ 123 PUSH32(esp, ebx); /* 0x46003BE2: push ebx */ 124 PUSH32(esp, esi); /* 0x46003BE3: push esi */ 125 eax = ebp + (-0x10); /* 0x46003BE4: lea eax, [ebp - 0x10] */ 126 PUSH32(esp, edi); /* 0x46003BE7: push edi */ 127 esi = ecx; /* 0x46003BE8: mov esi, ecx */ 128 PUSH32(esp, eax); /* 0x46003BEA: push eax */ 129 MEM32(ebp + (-0x14)) = esi; /* 0x46003BEB: mov dword ptr [ebp - 0x14], esi */ 130 MEM32(ebp + (-0x10)) = 0x4602B7C8u; /* 0x46003BEE: mov dword ptr [ebp - 0x10], 0x4602b7c8 */ 131 RECOMP_ICALL(MEM32(0x4602B124)); /* 0x46003BF5: call dword ptr [0x4602b124] */ 132 RECOMP_FLAGS_IN(); 133 ebx = MEM32(ebp + 0x8); /* 0x46003BFB: mov ebx, dword ptr [ebp + 8] */ 134 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 135 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46003BFE: and dword ptr [ebp - 4], 0 */ 136 _cf = 0; 137 _flag_k = FK_TEST; 138 edi = esi + 0xC; /* 0x46003C02: lea edi, [esi + 0xc] */ 139 PUSH32(esp, 0); /* 0x46003C05: push 0 */ 140 SET_LO8(eax, MEM8(ebx)); /* 0x46003C07: mov al, byte ptr [ebx] */ 141 ecx = edi; /* 0x46003C09: mov ecx, edi */ 142 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x46003C0B: mov byte ptr [edi], al */ 143 RECOMP_ICALL(0x46001A60u); /* 0x46003C0D: call 0x46001a60 */ /* not lifted */ 144 RECOMP_FLAGS_IN(); 145 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003C12: push -1 */ 146 PUSH32(esp, 0); /* 0x46003C14: push 0 */ 147 PUSH32(esp, ebx); /* 0x46003C16: push ebx */ 148 ecx = edi; /* 0x46003C17: mov ecx, edi */ 149 RECOMP_ICALL(0x46007714u); /* 0x46003C19: call 0x46007714 */ /* not lifted */ 150 RECOMP_FLAGS_IN(); 151 ecx = MEM32(ebp + (-0xC)); /* 0x46003C1E: mov ecx, dword ptr [ebp - 0xc] */ 152 MEM32(esi) = 0x4602B800u; /* 0x46003C21: mov dword ptr [esi], 0x4602b800 */ 153 eax = esi; /* 0x46003C27: mov eax, esi */ 154 edi = POP32_VAL(esp); /* 0x46003C29: pop edi */ 155 esi = POP32_VAL(esp); /* 0x46003C2A: pop esi */ 156 ebx = POP32_VAL(esp); /* 0x46003C2B: pop ebx */ 157 MEM32(FS_BASE + (0)) = ecx; /* 0x46003C2C: mov dword ptr fs:[0], ecx */ 158 esp = ebp; ebp = POP32_VAL(esp); /* 0x46003C33: leave */ 159 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003C34: ret 4 */ 160 RECOMP_REGS_OUT(); 161 } 162 163 void sub_46003C37(void) { 164 int _fpu_cmp = 0; 165 uint32_t _cf = 0; 166 int _df = 1; 167 uint32_t _flag_k = FK_NONE; 168 uint32_t _flag_a = 0, _flag_b = 0; 169 uint32_t _itail_tgt = 0; 170 RECOMP_REGS_LOCALS 171 RECOMP_ENTER(0x46003C37u); 172 173 L_46003C37: 174 eax = 0x460282C7u; /* 0x46003C37: mov eax, 0x460282c7 */ 175 RECOMP_ICALL(0x46001535u); /* 0x46003C3C: call 0x46001535 */ /* not lifted */ 176 RECOMP_FLAGS_IN(); 177 PUSH32(esp, ecx); /* 0x46003C41: push ecx */ 178 PUSH32(esp, esi); /* 0x46003C42: push esi */ 179 esi = ecx; /* 0x46003C43: mov esi, ecx */ 180 MEM32(ebp + (-0x10)) = esi; /* 0x46003C45: mov dword ptr [ebp - 0x10], esi */ 181 MEM32(esi) = 0x4602B800u; /* 0x46003C48: mov dword ptr [esi], 0x4602b800 */ 182 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 183 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46003C4E: and dword ptr [ebp - 4], 0 */ 184 _cf = 0; 185 _flag_k = FK_TEST; 186 PUSH32(esp, 1); /* 0x46003C52: push 1 */ 187 ecx = esi + 0xC; /* 0x46003C54: lea ecx, [esi + 0xc] */ 188 RECOMP_ICALL(0x46001A60u); /* 0x46003C57: call 0x46001a60 */ /* not lifted */ 189 RECOMP_FLAGS_IN(); 190 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 191 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x46003C5C: or dword ptr [ebp - 4], 0xffffffff */ 192 _cf = 0; 193 _flag_k = FK_TEST; 194 ecx = esi; /* 0x46003C60: mov ecx, esi */ 195 RECOMP_ICALL(MEM32(0x4602B120)); /* 0x46003C62: call dword ptr [0x4602b120] */ 196 RECOMP_FLAGS_IN(); 197 ecx = MEM32(ebp + (-0xC)); /* 0x46003C68: mov ecx, dword ptr [ebp - 0xc] */ 198 esi = POP32_VAL(esp); /* 0x46003C6B: pop esi */ 199 MEM32(FS_BASE + (0)) = ecx; /* 0x46003C6C: mov dword ptr fs:[0], ecx */ 200 esp = ebp; ebp = POP32_VAL(esp); /* 0x46003C73: leave */ 201 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46003C74: ret */ 202 RECOMP_REGS_OUT(); 203 } 204 205 void sub_46003C75(void) { 206 int _fpu_cmp = 0; 207 uint32_t _cf = 0; 208 int _df = 1; 209 uint32_t _flag_k = FK_NONE; 210 uint32_t _flag_a = 0, _flag_b = 0; 211 uint32_t _itail_tgt = 0; 212 RECOMP_REGS_LOCALS 213 RECOMP_ENTER(0x46003C75u); 214 215 L_46003C75: 216 eax = MEM32(ecx + 0x10); /* 0x46003C75: mov eax, dword ptr [ecx + 0x10] */ 217 /* test eax, eax */ /* 0x46003C78: test eax, eax */ 218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 219 _cf = 0; 220 _flag_k = FK_TEST; 221 if (TEST_NZ(_flag_a, _flag_b)) goto L_46003C81; /* 0x46003C7A: jne 0x46003c81 */ 222 L_46003C7C: 223 eax = 0x4602B7C9u; /* 0x46003C7C: mov eax, 0x4602b7c9 */ 224 L_46003C81: 225 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46003C81: ret */ 226 RECOMP_REGS_OUT(); 227 } 228 229 void sub_46003C82(void) { 230 int _fpu_cmp = 0; 231 uint32_t _cf = 0; 232 int _df = 1; 233 uint32_t _flag_k = FK_NONE; 234 uint32_t _flag_a = 0, _flag_b = 0; 235 uint32_t _itail_tgt = 0; 236 RECOMP_REGS_LOCALS 237 RECOMP_ENTER(0x46003C82u); 238 239 L_46003C82: 240 PUSH32(esp, ebp); /* 0x46003C82: push ebp */ 241 ebp = esp; /* 0x46003C83: mov ebp, esp */ 242 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 244 esp = esp - 0x1Cu; /* 0x46003C85: sub esp, 0x1c */ 245 _flag_k = FK_CMP; 246 PUSH32(esp, ecx); /* 0x46003C88: push ecx */ 247 ecx = ebp + (-0x1C); /* 0x46003C89: lea ecx, [ebp - 0x1c] */ 248 RECOMP_ICALL(0x46003C9Fu); /* 0x46003C8C: call 0x46003c9f */ /* not lifted */ 249 RECOMP_FLAGS_IN(); 250 eax = ebp + (-0x1C); /* 0x46003C91: lea eax, [ebp - 0x1c] */ 251 PUSH32(esp, 0x4602DE88u); /* 0x46003C94: push 0x4602de88 */ 252 PUSH32(esp, eax); /* 0x46003C99: push eax */ 253 RECOMP_ICALL(0x46028068u); /* 0x46003C9A: call 0x46028068 */ /* not lifted */ 254 RECOMP_FLAGS_IN(); 255 eax = 0x460282D7u; /* 0x46003C9F: mov eax, 0x460282d7 */ 256 RECOMP_ICALL(0x46001535u); /* 0x46003CA4: call 0x46001535 */ /* not lifted */ 257 RECOMP_FLAGS_IN(); 258 PUSH32(esp, ecx); /* 0x46003CA9: push ecx */ 259 PUSH32(esp, ebx); /* 0x46003CAA: push ebx */ 260 ebx = MEM32(ebp + 0x8); /* 0x46003CAB: mov ebx, dword ptr [ebp + 8] */ 261 PUSH32(esp, esi); /* 0x46003CAE: push esi */ 262 PUSH32(esp, edi); /* 0x46003CAF: push edi */ 263 esi = ecx; /* 0x46003CB0: mov esi, ecx */ 264 PUSH32(esp, ebx); /* 0x46003CB2: push ebx */ 265 MEM32(ebp + (-0x10)) = esi; /* 0x46003CB3: mov dword ptr [ebp - 0x10], esi */ 266 RECOMP_ICALL(MEM32(0x4602B11C)); /* 0x46003CB6: call dword ptr [0x4602b11c] */ 267 RECOMP_FLAGS_IN(); 268 SET_LO8(eax, MEM8(ebx + 0xC)); /* 0x46003CBC: mov al, byte ptr [ebx + 0xc] */ 269 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 270 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46003CBF: and dword ptr [ebp - 4], 0 */ 271 _cf = 0; 272 _flag_k = FK_TEST; 273 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 275 ebx = ebx + 0xCu; /* 0x46003CC3: add ebx, 0xc */ 276 _flag_k = FK_ADD; 277 edi = esi + 0xC; /* 0x46003CC6: lea edi, [esi + 0xc] */ 278 PUSH32(esp, 0); /* 0x46003CC9: push 0 */ 279 ecx = edi; /* 0x46003CCB: mov ecx, edi */ 280 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x46003CCD: mov byte ptr [edi], al */ 281 RECOMP_ICALL(0x46001A60u); /* 0x46003CCF: call 0x46001a60 */ /* not lifted */ 282 RECOMP_FLAGS_IN(); 283 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003CD4: push -1 */ 284 PUSH32(esp, 0); /* 0x46003CD6: push 0 */ 285 PUSH32(esp, ebx); /* 0x46003CD8: push ebx */ 286 ecx = edi; /* 0x46003CD9: mov ecx, edi */ 287 RECOMP_ICALL(0x46007714u); /* 0x46003CDB: call 0x46007714 */ /* not lifted */ 288 RECOMP_FLAGS_IN(); 289 ecx = MEM32(ebp + (-0xC)); /* 0x46003CE0: mov ecx, dword ptr [ebp - 0xc] */ 290 MEM32(esi) = 0x4602B800u; /* 0x46003CE3: mov dword ptr [esi], 0x4602b800 */ 291 eax = esi; /* 0x46003CE9: mov eax, esi */ 292 edi = POP32_VAL(esp); /* 0x46003CEB: pop edi */ 293 esi = POP32_VAL(esp); /* 0x46003CEC: pop esi */ 294 ebx = POP32_VAL(esp); /* 0x46003CED: pop ebx */ 295 MEM32(FS_BASE + (0)) = ecx; /* 0x46003CEE: mov dword ptr fs:[0], ecx */ 296 esp = ebp; ebp = POP32_VAL(esp); /* 0x46003CF5: leave */ 297 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003CF6: ret 4 */ 298 RECOMP_REGS_OUT(); 299 } 300 301 void sub_46003C9F(void) { 302 int _fpu_cmp = 0; 303 uint32_t _cf = 0; 304 int _df = 1; 305 uint32_t _flag_k = FK_NONE; 306 uint32_t _flag_a = 0, _flag_b = 0; 307 uint32_t _itail_tgt = 0; 308 RECOMP_REGS_LOCALS 309 RECOMP_ENTER(0x46003C9Fu); 310 311 L_46003C9F: 312 eax = 0x460282D7u; /* 0x46003C9F: mov eax, 0x460282d7 */ 313 RECOMP_ICALL(0x46001535u); /* 0x46003CA4: call 0x46001535 */ /* not lifted */ 314 RECOMP_FLAGS_IN(); 315 PUSH32(esp, ecx); /* 0x46003CA9: push ecx */ 316 PUSH32(esp, ebx); /* 0x46003CAA: push ebx */ 317 ebx = MEM32(ebp + 0x8); /* 0x46003CAB: mov ebx, dword ptr [ebp + 8] */ 318 PUSH32(esp, esi); /* 0x46003CAE: push esi */ 319 PUSH32(esp, edi); /* 0x46003CAF: push edi */ 320 esi = ecx; /* 0x46003CB0: mov esi, ecx */ 321 PUSH32(esp, ebx); /* 0x46003CB2: push ebx */ 322 MEM32(ebp + (-0x10)) = esi; /* 0x46003CB3: mov dword ptr [ebp - 0x10], esi */ 323 RECOMP_ICALL(MEM32(0x4602B11C)); /* 0x46003CB6: call dword ptr [0x4602b11c] */ 324 RECOMP_FLAGS_IN(); 325 SET_LO8(eax, MEM8(ebx + 0xC)); /* 0x46003CBC: mov al, byte ptr [ebx + 0xc] */ 326 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 327 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46003CBF: and dword ptr [ebp - 4], 0 */ 328 _cf = 0; 329 _flag_k = FK_TEST; 330 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 332 ebx = ebx + 0xCu; /* 0x46003CC3: add ebx, 0xc */ 333 _flag_k = FK_ADD; 334 edi = esi + 0xC; /* 0x46003CC6: lea edi, [esi + 0xc] */ 335 PUSH32(esp, 0); /* 0x46003CC9: push 0 */ 336 ecx = edi; /* 0x46003CCB: mov ecx, edi */ 337 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x46003CCD: mov byte ptr [edi], al */ 338 RECOMP_ICALL(0x46001A60u); /* 0x46003CCF: call 0x46001a60 */ /* not lifted */ 339 RECOMP_FLAGS_IN(); 340 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003CD4: push -1 */ 341 PUSH32(esp, 0); /* 0x46003CD6: push 0 */ 342 PUSH32(esp, ebx); /* 0x46003CD8: push ebx */ 343 ecx = edi; /* 0x46003CD9: mov ecx, edi */ 344 RECOMP_ICALL(0x46007714u); /* 0x46003CDB: call 0x46007714 */ /* not lifted */ 345 RECOMP_FLAGS_IN(); 346 ecx = MEM32(ebp + (-0xC)); /* 0x46003CE0: mov ecx, dword ptr [ebp - 0xc] */ 347 MEM32(esi) = 0x4602B800u; /* 0x46003CE3: mov dword ptr [esi], 0x4602b800 */ 348 eax = esi; /* 0x46003CE9: mov eax, esi */ 349 edi = POP32_VAL(esp); /* 0x46003CEB: pop edi */ 350 esi = POP32_VAL(esp); /* 0x46003CEC: pop esi */ 351 ebx = POP32_VAL(esp); /* 0x46003CED: pop ebx */ 352 MEM32(FS_BASE + (0)) = ecx; /* 0x46003CEE: mov dword ptr fs:[0], ecx */ 353 esp = ebp; ebp = POP32_VAL(esp); /* 0x46003CF5: leave */ 354 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003CF6: ret 4 */ 355 RECOMP_REGS_OUT(); 356 } 357 358 void sub_46003CF9(void) { 359 int _fpu_cmp = 0; 360 uint32_t _cf = 0; 361 int _df = 1; 362 uint32_t _flag_k = FK_NONE; 363 uint32_t _flag_a = 0, _flag_b = 0; 364 uint32_t _itail_tgt = 0; 365 RECOMP_REGS_LOCALS 366 RECOMP_ENTER(0x46003CF9u); 367 368 L_46003CF9: 369 PUSH32(esp, esi); /* 0x46003CF9: push esi */ 370 PUSH32(esp, edi); /* 0x46003CFA: push edi */ 371 edi = MEM32(esp + 0xC); /* 0x46003CFB: mov edi, dword ptr [esp + 0xc] */ 372 esi = ecx; /* 0x46003CFF: mov esi, ecx */ 373 PUSH32(esp, edi); /* 0x46003D01: push edi */ 374 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x46003D02: call dword ptr [0x4602b114] */ 375 RECOMP_FLAGS_IN(); 376 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003D08: push -1 */ 377 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 379 edi = edi + 0xCu; /* 0x46003D0A: add edi, 0xc */ 380 _flag_k = FK_ADD; 381 PUSH32(esp, 0); /* 0x46003D0D: push 0 */ 382 PUSH32(esp, edi); /* 0x46003D0F: push edi */ 383 ecx = esi + 0xC; /* 0x46003D10: lea ecx, [esi + 0xc] */ 384 RECOMP_ICALL(0x46007714u); /* 0x46003D13: call 0x46007714 */ /* not lifted */ 385 RECOMP_FLAGS_IN(); 386 eax = esi; /* 0x46003D18: mov eax, esi */ 387 edi = POP32_VAL(esp); /* 0x46003D1A: pop edi */ 388 esi = POP32_VAL(esp); /* 0x46003D1B: pop esi */ 389 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003D1C: ret 4 */ 390 RECOMP_REGS_OUT(); 391 } 392 393 void sub_46003D1F(void) { 394 int _fpu_cmp = 0; 395 uint32_t _cf = 0; 396 int _df = 1; 397 uint32_t _flag_k = FK_NONE; 398 uint32_t _flag_a = 0, _flag_b = 0; 399 uint32_t _itail_tgt = 0; 400 RECOMP_REGS_LOCALS 401 RECOMP_ENTER(0x46003D1Fu); 402 403 L_46003D1F: 404 PUSH32(esp, ebx); /* 0x46003D1F: push ebx */ 405 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x46003D20: mov bl, byte ptr [esp + 8] */ 406 PUSH32(esp, esi); /* 0x46003D24: push esi */ 407 esi = ecx; /* 0x46003D25: mov esi, ecx */ 408 /* test LO8(ebx), 2 */ /* 0x46003D27: test bl, 2 */ 409 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 410 _cf = 0; 411 _flag_k = FK_NARROW(FK_TEST, 24); 412 if (TEST_Z(_flag_a, _flag_b)) goto L_46003D53; /* 0x46003D2A: je 0x46003d53 */ 413 L_46003D2C: 414 PUSH32(esp, edi); /* 0x46003D2C: push edi */ 415 edi = esi + (-0x4); /* 0x46003D2D: lea edi, [esi - 4] */ 416 PUSH32(esp, 0x46003C37u); /* 0x46003D30: push 0x46003c37 */ 417 PUSH32(esp, MEM32(edi)); /* 0x46003D35: push dword ptr [edi] */ 418 PUSH32(esp, 0x1Cu); /* 0x46003D37: push 0x1c */ 419 PUSH32(esp, esi); /* 0x46003D39: push esi */ 420 RECOMP_ICALL(0x4602806Eu); /* 0x46003D3A: call 0x4602806e */ /* not lifted */ 421 RECOMP_FLAGS_IN(); 422 /* test LO8(ebx), 1 */ /* 0x46003D3F: test bl, 1 */ 423 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 424 _cf = 0; 425 _flag_k = FK_NARROW(FK_TEST, 24); 426 if (TEST_Z(_flag_a, _flag_b)) goto L_46003D4B; /* 0x46003D42: je 0x46003d4b */ 427 L_46003D44: 428 PUSH32(esp, edi); /* 0x46003D44: push edi */ 429 RECOMP_ICALL(0x46002CE4u); /* 0x46003D45: call 0x46002ce4 */ /* not lifted */ 430 RECOMP_FLAGS_IN(); 431 ecx = POP32_VAL(esp); /* 0x46003D4A: pop ecx */ 432 L_46003D4B: 433 eax = edi; /* 0x46003D4B: mov eax, edi */ 434 edi = POP32_VAL(esp); /* 0x46003D4D: pop edi */ 435 L_46003D4E: 436 esi = POP32_VAL(esp); /* 0x46003D4E: pop esi */ 437 ebx = POP32_VAL(esp); /* 0x46003D4F: pop ebx */ 438 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003D50: ret 4 */ 439 L_46003D53: 440 ecx = esi; /* 0x46003D53: mov ecx, esi */ 441 RECOMP_ICALL(0x46003C37u); /* 0x46003D55: call 0x46003c37 */ /* not lifted */ 442 RECOMP_FLAGS_IN(); 443 /* test LO8(ebx), 1 */ /* 0x46003D5A: test bl, 1 */ 444 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 445 _cf = 0; 446 _flag_k = FK_NARROW(FK_TEST, 24); 447 if (TEST_Z(_flag_a, _flag_b)) goto L_46003D66; /* 0x46003D5D: je 0x46003d66 */ 448 L_46003D5F: 449 PUSH32(esp, esi); /* 0x46003D5F: push esi */ 450 RECOMP_ICALL(0x46002CE4u); /* 0x46003D60: call 0x46002ce4 */ /* not lifted */ 451 RECOMP_FLAGS_IN(); 452 ecx = POP32_VAL(esp); /* 0x46003D65: pop ecx */ 453 L_46003D66: 454 eax = esi; /* 0x46003D66: mov eax, esi */ 455 RECOMP_BACKEDGE(); 456 goto L_46003D4E; /* 0x46003D68: jmp 0x46003d4e */ 457 { RECOMP_REGS_OUT(); return; } /* end of function */ 458 RECOMP_REGS_OUT(); 459 } 460 461 void sub_46003D6A(void) { 462 int _fpu_cmp = 0; 463 uint32_t _cf = 0; 464 int _df = 1; 465 uint32_t _flag_k = FK_NONE; 466 uint32_t _flag_a = 0, _flag_b = 0; 467 uint32_t _itail_tgt = 0; 468 RECOMP_REGS_LOCALS 469 RECOMP_ENTER(0x46003D6Au); 470 471 L_46003D6A: 472 PUSH32(esp, esi); /* 0x46003D6A: push esi */ 473 esi = ecx; /* 0x46003D6B: mov esi, ecx */ 474 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003D6D: push dword ptr [esp + 8] */ 475 RECOMP_ICALL(0x46003BD6u); /* 0x46003D71: call 0x46003bd6 */ /* not lifted */ 476 RECOMP_FLAGS_IN(); 477 MEM32(esi) = 0x4602B810u; /* 0x46003D76: mov dword ptr [esi], 0x4602b810 */ 478 eax = esi; /* 0x46003D7C: mov eax, esi */ 479 esi = POP32_VAL(esp); /* 0x46003D7E: pop esi */ 480 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003D7F: ret 4 */ 481 RECOMP_REGS_OUT(); 482 } 483 484 void sub_46003D82(void) { 485 int _fpu_cmp = 0; 486 uint32_t _cf = 0; 487 int _df = 1; 488 uint32_t _flag_k = FK_NONE; 489 uint32_t _flag_a = 0, _flag_b = 0; 490 uint32_t _itail_tgt = 0; 491 RECOMP_REGS_LOCALS 492 RECOMP_ENTER(0x46003D82u); 493 494 L_46003D82: 495 eax = 0x460282EAu; /* 0x46003D82: mov eax, 0x460282ea */ 496 RECOMP_ICALL(0x46001535u); /* 0x46003D87: call 0x46001535 */ /* not lifted */ 497 RECOMP_FLAGS_IN(); 498 PUSH32(esp, ecx); /* 0x46003D8C: push ecx */ 499 PUSH32(esp, esi); /* 0x46003D8D: push esi */ 500 esi = ecx; /* 0x46003D8E: mov esi, ecx */ 501 MEM32(ebp + (-0x10)) = esi; /* 0x46003D90: mov dword ptr [ebp - 0x10], esi */ 502 MEM32(esi) = 0x4602B800u; /* 0x46003D93: mov dword ptr [esi], 0x4602b800 */ 503 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 504 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46003D99: and dword ptr [ebp - 4], 0 */ 505 _cf = 0; 506 _flag_k = FK_TEST; 507 PUSH32(esp, 1); /* 0x46003D9D: push 1 */ 508 ecx = esi + 0xC; /* 0x46003D9F: lea ecx, [esi + 0xc] */ 509 RECOMP_ICALL(0x46001A60u); /* 0x46003DA2: call 0x46001a60 */ /* not lifted */ 510 RECOMP_FLAGS_IN(); 511 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 512 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x46003DA7: or dword ptr [ebp - 4], 0xffffffff */ 513 _cf = 0; 514 _flag_k = FK_TEST; 515 ecx = esi; /* 0x46003DAB: mov ecx, esi */ 516 RECOMP_ICALL(MEM32(0x4602B120)); /* 0x46003DAD: call dword ptr [0x4602b120] */ 517 RECOMP_FLAGS_IN(); 518 ecx = MEM32(ebp + (-0xC)); /* 0x46003DB3: mov ecx, dword ptr [ebp - 0xc] */ 519 esi = POP32_VAL(esp); /* 0x46003DB6: pop esi */ 520 MEM32(FS_BASE + (0)) = ecx; /* 0x46003DB7: mov dword ptr fs:[0], ecx */ 521 esp = ebp; ebp = POP32_VAL(esp); /* 0x46003DBE: leave */ 522 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46003DBF: ret */ 523 RECOMP_REGS_OUT(); 524 } 525 526 void sub_46003DC0(void) { 527 int _fpu_cmp = 0; 528 uint32_t _cf = 0; 529 int _df = 1; 530 uint32_t _flag_k = FK_NONE; 531 uint32_t _flag_a = 0, _flag_b = 0; 532 uint32_t _itail_tgt = 0; 533 RECOMP_REGS_LOCALS 534 RECOMP_ENTER(0x46003DC0u); 535 536 L_46003DC0: 537 PUSH32(esp, ebp); /* 0x46003DC0: push ebp */ 538 ebp = esp; /* 0x46003DC1: mov ebp, esp */ 539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 541 esp = esp - 0x1Cu; /* 0x46003DC3: sub esp, 0x1c */ 542 _flag_k = FK_CMP; 543 PUSH32(esp, ecx); /* 0x46003DC6: push ecx */ 544 ecx = ebp + (-0x1C); /* 0x46003DC7: lea ecx, [ebp - 0x1c] */ 545 RECOMP_ICALL(0x46003DDDu); /* 0x46003DCA: call 0x46003ddd */ /* not lifted */ 546 RECOMP_FLAGS_IN(); 547 eax = ebp + (-0x1C); /* 0x46003DCF: lea eax, [ebp - 0x1c] */ 548 PUSH32(esp, 0x4602DF18u); /* 0x46003DD2: push 0x4602df18 */ 549 PUSH32(esp, eax); /* 0x46003DD7: push eax */ 550 RECOMP_ICALL(0x46028068u); /* 0x46003DD8: call 0x46028068 */ /* not lifted */ 551 RECOMP_FLAGS_IN(); 552 PUSH32(esp, esi); /* 0x46003DDD: push esi */ 553 esi = ecx; /* 0x46003DDE: mov esi, ecx */ 554 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003DE0: push dword ptr [esp + 8] */ 555 RECOMP_ICALL(0x46003C9Fu); /* 0x46003DE4: call 0x46003c9f */ /* not lifted */ 556 RECOMP_FLAGS_IN(); 557 MEM32(esi) = 0x4602B810u; /* 0x46003DE9: mov dword ptr [esi], 0x4602b810 */ 558 eax = esi; /* 0x46003DEF: mov eax, esi */ 559 esi = POP32_VAL(esp); /* 0x46003DF1: pop esi */ 560 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003DF2: ret 4 */ 561 RECOMP_REGS_OUT(); 562 } 563 564 void sub_46003DDD(void) { 565 int _fpu_cmp = 0; 566 uint32_t _cf = 0; 567 int _df = 1; 568 uint32_t _flag_k = FK_NONE; 569 uint32_t _flag_a = 0, _flag_b = 0; 570 uint32_t _itail_tgt = 0; 571 RECOMP_REGS_LOCALS 572 RECOMP_ENTER(0x46003DDDu); 573 574 L_46003DDD: 575 PUSH32(esp, esi); /* 0x46003DDD: push esi */ 576 esi = ecx; /* 0x46003DDE: mov esi, ecx */ 577 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003DE0: push dword ptr [esp + 8] */ 578 RECOMP_ICALL(0x46003C9Fu); /* 0x46003DE4: call 0x46003c9f */ /* not lifted */ 579 RECOMP_FLAGS_IN(); 580 MEM32(esi) = 0x4602B810u; /* 0x46003DE9: mov dword ptr [esi], 0x4602b810 */ 581 eax = esi; /* 0x46003DEF: mov eax, esi */ 582 esi = POP32_VAL(esp); /* 0x46003DF1: pop esi */ 583 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003DF2: ret 4 */ 584 RECOMP_REGS_OUT(); 585 } 586 587 void sub_46003DF5(void) { 588 int _fpu_cmp = 0; 589 uint32_t _cf = 0; 590 int _df = 1; 591 uint32_t _flag_k = FK_NONE; 592 uint32_t _flag_a = 0, _flag_b = 0; 593 uint32_t _itail_tgt = 0; 594 RECOMP_REGS_LOCALS 595 RECOMP_ENTER(0x46003DF5u); 596 597 L_46003DF5: 598 PUSH32(esp, esi); /* 0x46003DF5: push esi */ 599 PUSH32(esp, edi); /* 0x46003DF6: push edi */ 600 edi = MEM32(esp + 0xC); /* 0x46003DF7: mov edi, dword ptr [esp + 0xc] */ 601 esi = ecx; /* 0x46003DFB: mov esi, ecx */ 602 PUSH32(esp, edi); /* 0x46003DFD: push edi */ 603 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x46003DFE: call dword ptr [0x4602b114] */ 604 RECOMP_FLAGS_IN(); 605 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003E04: push -1 */ 606 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 607 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 608 edi = edi + 0xCu; /* 0x46003E06: add edi, 0xc */ 609 _flag_k = FK_ADD; 610 PUSH32(esp, 0); /* 0x46003E09: push 0 */ 611 PUSH32(esp, edi); /* 0x46003E0B: push edi */ 612 ecx = esi + 0xC; /* 0x46003E0C: lea ecx, [esi + 0xc] */ 613 RECOMP_ICALL(0x46007714u); /* 0x46003E0F: call 0x46007714 */ /* not lifted */ 614 RECOMP_FLAGS_IN(); 615 eax = esi; /* 0x46003E14: mov eax, esi */ 616 edi = POP32_VAL(esp); /* 0x46003E16: pop edi */ 617 esi = POP32_VAL(esp); /* 0x46003E17: pop esi */ 618 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003E18: ret 4 */ 619 RECOMP_REGS_OUT(); 620 } 621 622 void sub_46003E1B(void) { 623 int _fpu_cmp = 0; 624 uint32_t _cf = 0; 625 int _df = 1; 626 uint32_t _flag_k = FK_NONE; 627 uint32_t _flag_a = 0, _flag_b = 0; 628 uint32_t _itail_tgt = 0; 629 RECOMP_REGS_LOCALS 630 RECOMP_ENTER(0x46003E1Bu); 631 632 L_46003E1B: 633 PUSH32(esp, ebx); /* 0x46003E1B: push ebx */ 634 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x46003E1C: mov bl, byte ptr [esp + 8] */ 635 PUSH32(esp, esi); /* 0x46003E20: push esi */ 636 esi = ecx; /* 0x46003E21: mov esi, ecx */ 637 /* test LO8(ebx), 2 */ /* 0x46003E23: test bl, 2 */ 638 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 639 _cf = 0; 640 _flag_k = FK_NARROW(FK_TEST, 24); 641 if (TEST_Z(_flag_a, _flag_b)) goto L_46003E4F; /* 0x46003E26: je 0x46003e4f */ 642 L_46003E28: 643 PUSH32(esp, edi); /* 0x46003E28: push edi */ 644 edi = esi + (-0x4); /* 0x46003E29: lea edi, [esi - 4] */ 645 PUSH32(esp, 0x46003D82u); /* 0x46003E2C: push 0x46003d82 */ 646 PUSH32(esp, MEM32(edi)); /* 0x46003E31: push dword ptr [edi] */ 647 PUSH32(esp, 0x1Cu); /* 0x46003E33: push 0x1c */ 648 PUSH32(esp, esi); /* 0x46003E35: push esi */ 649 RECOMP_ICALL(0x4602806Eu); /* 0x46003E36: call 0x4602806e */ /* not lifted */ 650 RECOMP_FLAGS_IN(); 651 /* test LO8(ebx), 1 */ /* 0x46003E3B: test bl, 1 */ 652 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 653 _cf = 0; 654 _flag_k = FK_NARROW(FK_TEST, 24); 655 if (TEST_Z(_flag_a, _flag_b)) goto L_46003E47; /* 0x46003E3E: je 0x46003e47 */ 656 L_46003E40: 657 PUSH32(esp, edi); /* 0x46003E40: push edi */ 658 RECOMP_ICALL(0x46002CE4u); /* 0x46003E41: call 0x46002ce4 */ /* not lifted */ 659 RECOMP_FLAGS_IN(); 660 ecx = POP32_VAL(esp); /* 0x46003E46: pop ecx */ 661 L_46003E47: 662 eax = edi; /* 0x46003E47: mov eax, edi */ 663 edi = POP32_VAL(esp); /* 0x46003E49: pop edi */ 664 L_46003E4A: 665 esi = POP32_VAL(esp); /* 0x46003E4A: pop esi */ 666 ebx = POP32_VAL(esp); /* 0x46003E4B: pop ebx */ 667 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003E4C: ret 4 */ 668 L_46003E4F: 669 ecx = esi; /* 0x46003E4F: mov ecx, esi */ 670 RECOMP_ICALL(0x46003D82u); /* 0x46003E51: call 0x46003d82 */ /* not lifted */ 671 RECOMP_FLAGS_IN(); 672 /* test LO8(ebx), 1 */ /* 0x46003E56: test bl, 1 */ 673 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 674 _cf = 0; 675 _flag_k = FK_NARROW(FK_TEST, 24); 676 if (TEST_Z(_flag_a, _flag_b)) goto L_46003E62; /* 0x46003E59: je 0x46003e62 */ 677 L_46003E5B: 678 PUSH32(esp, esi); /* 0x46003E5B: push esi */ 679 RECOMP_ICALL(0x46002CE4u); /* 0x46003E5C: call 0x46002ce4 */ /* not lifted */ 680 RECOMP_FLAGS_IN(); 681 ecx = POP32_VAL(esp); /* 0x46003E61: pop ecx */ 682 L_46003E62: 683 eax = esi; /* 0x46003E62: mov eax, esi */ 684 RECOMP_BACKEDGE(); 685 goto L_46003E4A; /* 0x46003E64: jmp 0x46003e4a */ 686 { RECOMP_REGS_OUT(); return; } /* end of function */ 687 RECOMP_REGS_OUT(); 688 } 689 690 void sub_46003E66(void) { 691 int _fpu_cmp = 0; 692 uint32_t _cf = 0; 693 int _df = 1; 694 uint32_t _flag_k = FK_NONE; 695 uint32_t _flag_a = 0, _flag_b = 0; 696 uint32_t _itail_tgt = 0; 697 RECOMP_REGS_LOCALS 698 RECOMP_ENTER(0x46003E66u); 699 700 L_46003E66: 701 PUSH32(esp, esi); /* 0x46003E66: push esi */ 702 esi = ecx; /* 0x46003E67: mov esi, ecx */ 703 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003E69: push dword ptr [esp + 8] */ 704 RECOMP_ICALL(0x46003BD6u); /* 0x46003E6D: call 0x46003bd6 */ /* not lifted */ 705 RECOMP_FLAGS_IN(); 706 MEM32(esi) = 0x4602B820u; /* 0x46003E72: mov dword ptr [esi], 0x4602b820 */ 707 eax = esi; /* 0x46003E78: mov eax, esi */ 708 esi = POP32_VAL(esp); /* 0x46003E7A: pop esi */ 709 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003E7B: ret 4 */ 710 RECOMP_REGS_OUT(); 711 } 712 713 void sub_46003E7E(void) { 714 int _fpu_cmp = 0; 715 uint32_t _cf = 0; 716 int _df = 1; 717 uint32_t _flag_k = FK_NONE; 718 uint32_t _flag_a = 0, _flag_b = 0; 719 uint32_t _itail_tgt = 0; 720 RECOMP_REGS_LOCALS 721 RECOMP_ENTER(0x46003E7Eu); 722 723 L_46003E7E: 724 eax = 0x460282FDu; /* 0x46003E7E: mov eax, 0x460282fd */ 725 RECOMP_ICALL(0x46001535u); /* 0x46003E83: call 0x46001535 */ /* not lifted */ 726 RECOMP_FLAGS_IN(); 727 PUSH32(esp, ecx); /* 0x46003E88: push ecx */ 728 PUSH32(esp, esi); /* 0x46003E89: push esi */ 729 esi = ecx; /* 0x46003E8A: mov esi, ecx */ 730 MEM32(ebp + (-0x10)) = esi; /* 0x46003E8C: mov dword ptr [ebp - 0x10], esi */ 731 MEM32(esi) = 0x4602B800u; /* 0x46003E8F: mov dword ptr [esi], 0x4602b800 */ 732 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 733 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46003E95: and dword ptr [ebp - 4], 0 */ 734 _cf = 0; 735 _flag_k = FK_TEST; 736 PUSH32(esp, 1); /* 0x46003E99: push 1 */ 737 ecx = esi + 0xC; /* 0x46003E9B: lea ecx, [esi + 0xc] */ 738 RECOMP_ICALL(0x46001A60u); /* 0x46003E9E: call 0x46001a60 */ /* not lifted */ 739 RECOMP_FLAGS_IN(); 740 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 741 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x46003EA3: or dword ptr [ebp - 4], 0xffffffff */ 742 _cf = 0; 743 _flag_k = FK_TEST; 744 ecx = esi; /* 0x46003EA7: mov ecx, esi */ 745 RECOMP_ICALL(MEM32(0x4602B120)); /* 0x46003EA9: call dword ptr [0x4602b120] */ 746 RECOMP_FLAGS_IN(); 747 ecx = MEM32(ebp + (-0xC)); /* 0x46003EAF: mov ecx, dword ptr [ebp - 0xc] */ 748 esi = POP32_VAL(esp); /* 0x46003EB2: pop esi */ 749 MEM32(FS_BASE + (0)) = ecx; /* 0x46003EB3: mov dword ptr fs:[0], ecx */ 750 esp = ebp; ebp = POP32_VAL(esp); /* 0x46003EBA: leave */ 751 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46003EBB: ret */ 752 RECOMP_REGS_OUT(); 753 } 754 755 void sub_46003EBC(void) { 756 int _fpu_cmp = 0; 757 uint32_t _cf = 0; 758 int _df = 1; 759 uint32_t _flag_k = FK_NONE; 760 uint32_t _flag_a = 0, _flag_b = 0; 761 uint32_t _itail_tgt = 0; 762 RECOMP_REGS_LOCALS 763 RECOMP_ENTER(0x46003EBCu); 764 765 L_46003EBC: 766 PUSH32(esp, ebp); /* 0x46003EBC: push ebp */ 767 ebp = esp; /* 0x46003EBD: mov ebp, esp */ 768 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 770 esp = esp - 0x1Cu; /* 0x46003EBF: sub esp, 0x1c */ 771 _flag_k = FK_CMP; 772 PUSH32(esp, ecx); /* 0x46003EC2: push ecx */ 773 ecx = ebp + (-0x1C); /* 0x46003EC3: lea ecx, [ebp - 0x1c] */ 774 RECOMP_ICALL(0x46003ED9u); /* 0x46003EC6: call 0x46003ed9 */ /* not lifted */ 775 RECOMP_FLAGS_IN(); 776 eax = ebp + (-0x1C); /* 0x46003ECB: lea eax, [ebp - 0x1c] */ 777 PUSH32(esp, 0x4602DF80u); /* 0x46003ECE: push 0x4602df80 */ 778 PUSH32(esp, eax); /* 0x46003ED3: push eax */ 779 RECOMP_ICALL(0x46028068u); /* 0x46003ED4: call 0x46028068 */ /* not lifted */ 780 RECOMP_FLAGS_IN(); 781 PUSH32(esp, esi); /* 0x46003ED9: push esi */ 782 esi = ecx; /* 0x46003EDA: mov esi, ecx */ 783 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003EDC: push dword ptr [esp + 8] */ 784 RECOMP_ICALL(0x46003C9Fu); /* 0x46003EE0: call 0x46003c9f */ /* not lifted */ 785 RECOMP_FLAGS_IN(); 786 MEM32(esi) = 0x4602B820u; /* 0x46003EE5: mov dword ptr [esi], 0x4602b820 */ 787 eax = esi; /* 0x46003EEB: mov eax, esi */ 788 esi = POP32_VAL(esp); /* 0x46003EED: pop esi */ 789 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003EEE: ret 4 */ 790 RECOMP_REGS_OUT(); 791 } 792 793 void sub_46003ED9(void) { 794 int _fpu_cmp = 0; 795 uint32_t _cf = 0; 796 int _df = 1; 797 uint32_t _flag_k = FK_NONE; 798 uint32_t _flag_a = 0, _flag_b = 0; 799 uint32_t _itail_tgt = 0; 800 RECOMP_REGS_LOCALS 801 RECOMP_ENTER(0x46003ED9u); 802 803 L_46003ED9: 804 PUSH32(esp, esi); /* 0x46003ED9: push esi */ 805 esi = ecx; /* 0x46003EDA: mov esi, ecx */ 806 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003EDC: push dword ptr [esp + 8] */ 807 RECOMP_ICALL(0x46003C9Fu); /* 0x46003EE0: call 0x46003c9f */ /* not lifted */ 808 RECOMP_FLAGS_IN(); 809 MEM32(esi) = 0x4602B820u; /* 0x46003EE5: mov dword ptr [esi], 0x4602b820 */ 810 eax = esi; /* 0x46003EEB: mov eax, esi */ 811 esi = POP32_VAL(esp); /* 0x46003EED: pop esi */ 812 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003EEE: ret 4 */ 813 RECOMP_REGS_OUT(); 814 } 815 816 void sub_46003EF1(void) { 817 int _fpu_cmp = 0; 818 uint32_t _cf = 0; 819 int _df = 1; 820 uint32_t _flag_k = FK_NONE; 821 uint32_t _flag_a = 0, _flag_b = 0; 822 uint32_t _itail_tgt = 0; 823 RECOMP_REGS_LOCALS 824 RECOMP_ENTER(0x46003EF1u); 825 826 L_46003EF1: 827 PUSH32(esp, esi); /* 0x46003EF1: push esi */ 828 PUSH32(esp, edi); /* 0x46003EF2: push edi */ 829 edi = MEM32(esp + 0xC); /* 0x46003EF3: mov edi, dword ptr [esp + 0xc] */ 830 esi = ecx; /* 0x46003EF7: mov esi, ecx */ 831 PUSH32(esp, edi); /* 0x46003EF9: push edi */ 832 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x46003EFA: call dword ptr [0x4602b114] */ 833 RECOMP_FLAGS_IN(); 834 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003F00: push -1 */ 835 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 837 edi = edi + 0xCu; /* 0x46003F02: add edi, 0xc */ 838 _flag_k = FK_ADD; 839 PUSH32(esp, 0); /* 0x46003F05: push 0 */ 840 PUSH32(esp, edi); /* 0x46003F07: push edi */ 841 ecx = esi + 0xC; /* 0x46003F08: lea ecx, [esi + 0xc] */ 842 RECOMP_ICALL(0x46007714u); /* 0x46003F0B: call 0x46007714 */ /* not lifted */ 843 RECOMP_FLAGS_IN(); 844 eax = esi; /* 0x46003F10: mov eax, esi */ 845 edi = POP32_VAL(esp); /* 0x46003F12: pop edi */ 846 esi = POP32_VAL(esp); /* 0x46003F13: pop esi */ 847 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003F14: ret 4 */ 848 RECOMP_REGS_OUT(); 849 } 850 851 void sub_46003F17(void) { 852 int _fpu_cmp = 0; 853 uint32_t _cf = 0; 854 int _df = 1; 855 uint32_t _flag_k = FK_NONE; 856 uint32_t _flag_a = 0, _flag_b = 0; 857 uint32_t _itail_tgt = 0; 858 RECOMP_REGS_LOCALS 859 RECOMP_ENTER(0x46003F17u); 860 861 L_46003F17: 862 PUSH32(esp, ebx); /* 0x46003F17: push ebx */ 863 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x46003F18: mov bl, byte ptr [esp + 8] */ 864 PUSH32(esp, esi); /* 0x46003F1C: push esi */ 865 esi = ecx; /* 0x46003F1D: mov esi, ecx */ 866 /* test LO8(ebx), 2 */ /* 0x46003F1F: test bl, 2 */ 867 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 868 _cf = 0; 869 _flag_k = FK_NARROW(FK_TEST, 24); 870 if (TEST_Z(_flag_a, _flag_b)) goto L_46003F4B; /* 0x46003F22: je 0x46003f4b */ 871 L_46003F24: 872 PUSH32(esp, edi); /* 0x46003F24: push edi */ 873 edi = esi + (-0x4); /* 0x46003F25: lea edi, [esi - 4] */ 874 PUSH32(esp, 0x46003E7Eu); /* 0x46003F28: push 0x46003e7e */ 875 PUSH32(esp, MEM32(edi)); /* 0x46003F2D: push dword ptr [edi] */ 876 PUSH32(esp, 0x1Cu); /* 0x46003F2F: push 0x1c */ 877 PUSH32(esp, esi); /* 0x46003F31: push esi */ 878 RECOMP_ICALL(0x4602806Eu); /* 0x46003F32: call 0x4602806e */ /* not lifted */ 879 RECOMP_FLAGS_IN(); 880 /* test LO8(ebx), 1 */ /* 0x46003F37: test bl, 1 */ 881 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 882 _cf = 0; 883 _flag_k = FK_NARROW(FK_TEST, 24); 884 if (TEST_Z(_flag_a, _flag_b)) goto L_46003F43; /* 0x46003F3A: je 0x46003f43 */ 885 L_46003F3C: 886 PUSH32(esp, edi); /* 0x46003F3C: push edi */ 887 RECOMP_ICALL(0x46002CE4u); /* 0x46003F3D: call 0x46002ce4 */ /* not lifted */ 888 RECOMP_FLAGS_IN(); 889 ecx = POP32_VAL(esp); /* 0x46003F42: pop ecx */ 890 L_46003F43: 891 eax = edi; /* 0x46003F43: mov eax, edi */ 892 edi = POP32_VAL(esp); /* 0x46003F45: pop edi */ 893 L_46003F46: 894 esi = POP32_VAL(esp); /* 0x46003F46: pop esi */ 895 ebx = POP32_VAL(esp); /* 0x46003F47: pop ebx */ 896 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003F48: ret 4 */ 897 L_46003F4B: 898 ecx = esi; /* 0x46003F4B: mov ecx, esi */ 899 RECOMP_ICALL(0x46003E7Eu); /* 0x46003F4D: call 0x46003e7e */ /* not lifted */ 900 RECOMP_FLAGS_IN(); 901 /* test LO8(ebx), 1 */ /* 0x46003F52: test bl, 1 */ 902 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 903 _cf = 0; 904 _flag_k = FK_NARROW(FK_TEST, 24); 905 if (TEST_Z(_flag_a, _flag_b)) goto L_46003F5E; /* 0x46003F55: je 0x46003f5e */ 906 L_46003F57: 907 PUSH32(esp, esi); /* 0x46003F57: push esi */ 908 RECOMP_ICALL(0x46002CE4u); /* 0x46003F58: call 0x46002ce4 */ /* not lifted */ 909 RECOMP_FLAGS_IN(); 910 ecx = POP32_VAL(esp); /* 0x46003F5D: pop ecx */ 911 L_46003F5E: 912 eax = esi; /* 0x46003F5E: mov eax, esi */ 913 RECOMP_BACKEDGE(); 914 goto L_46003F46; /* 0x46003F60: jmp 0x46003f46 */ 915 { RECOMP_REGS_OUT(); return; } /* end of function */ 916 RECOMP_REGS_OUT(); 917 } 918 919 void sub_46003F62(void) { 920 int _fpu_cmp = 0; 921 uint32_t _cf = 0; 922 int _df = 1; 923 uint32_t _flag_k = FK_NONE; 924 uint32_t _flag_a = 0, _flag_b = 0; 925 uint32_t _itail_tgt = 0; 926 RECOMP_REGS_LOCALS 927 RECOMP_ENTER(0x46003F62u); 928 929 L_46003F62: 930 PUSH32(esp, esi); /* 0x46003F62: push esi */ 931 esi = ecx; /* 0x46003F63: mov esi, ecx */ 932 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003F65: push dword ptr [esp + 8] */ 933 RECOMP_ICALL(0x46003BD6u); /* 0x46003F69: call 0x46003bd6 */ /* not lifted */ 934 RECOMP_FLAGS_IN(); 935 MEM32(esi) = 0x4602B830u; /* 0x46003F6E: mov dword ptr [esi], 0x4602b830 */ 936 eax = esi; /* 0x46003F74: mov eax, esi */ 937 esi = POP32_VAL(esp); /* 0x46003F76: pop esi */ 938 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003F77: ret 4 */ 939 RECOMP_REGS_OUT(); 940 } 941 942 void sub_46003F7A(void) { 943 int _fpu_cmp = 0; 944 uint32_t _cf = 0; 945 int _df = 1; 946 uint32_t _flag_k = FK_NONE; 947 uint32_t _flag_a = 0, _flag_b = 0; 948 uint32_t _itail_tgt = 0; 949 RECOMP_REGS_LOCALS 950 RECOMP_ENTER(0x46003F7Au); 951 952 L_46003F7A: 953 eax = 0x46028310u; /* 0x46003F7A: mov eax, 0x46028310 */ 954 RECOMP_ICALL(0x46001535u); /* 0x46003F7F: call 0x46001535 */ /* not lifted */ 955 RECOMP_FLAGS_IN(); 956 PUSH32(esp, ecx); /* 0x46003F84: push ecx */ 957 PUSH32(esp, esi); /* 0x46003F85: push esi */ 958 esi = ecx; /* 0x46003F86: mov esi, ecx */ 959 MEM32(ebp + (-0x10)) = esi; /* 0x46003F88: mov dword ptr [ebp - 0x10], esi */ 960 MEM32(esi) = 0x4602B800u; /* 0x46003F8B: mov dword ptr [esi], 0x4602b800 */ 961 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 962 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46003F91: and dword ptr [ebp - 4], 0 */ 963 _cf = 0; 964 _flag_k = FK_TEST; 965 PUSH32(esp, 1); /* 0x46003F95: push 1 */ 966 ecx = esi + 0xC; /* 0x46003F97: lea ecx, [esi + 0xc] */ 967 RECOMP_ICALL(0x46001A60u); /* 0x46003F9A: call 0x46001a60 */ /* not lifted */ 968 RECOMP_FLAGS_IN(); 969 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 970 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x46003F9F: or dword ptr [ebp - 4], 0xffffffff */ 971 _cf = 0; 972 _flag_k = FK_TEST; 973 ecx = esi; /* 0x46003FA3: mov ecx, esi */ 974 RECOMP_ICALL(MEM32(0x4602B120)); /* 0x46003FA5: call dword ptr [0x4602b120] */ 975 RECOMP_FLAGS_IN(); 976 ecx = MEM32(ebp + (-0xC)); /* 0x46003FAB: mov ecx, dword ptr [ebp - 0xc] */ 977 esi = POP32_VAL(esp); /* 0x46003FAE: pop esi */ 978 MEM32(FS_BASE + (0)) = ecx; /* 0x46003FAF: mov dword ptr fs:[0], ecx */ 979 esp = ebp; ebp = POP32_VAL(esp); /* 0x46003FB6: leave */ 980 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46003FB7: ret */ 981 RECOMP_REGS_OUT(); 982 } 983 984 void sub_46003FB8(void) { 985 int _fpu_cmp = 0; 986 uint32_t _cf = 0; 987 int _df = 1; 988 uint32_t _flag_k = FK_NONE; 989 uint32_t _flag_a = 0, _flag_b = 0; 990 uint32_t _itail_tgt = 0; 991 RECOMP_REGS_LOCALS 992 RECOMP_ENTER(0x46003FB8u); 993 994 L_46003FB8: 995 PUSH32(esp, ebp); /* 0x46003FB8: push ebp */ 996 ebp = esp; /* 0x46003FB9: mov ebp, esp */ 997 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 999 esp = esp - 0x1Cu; /* 0x46003FBB: sub esp, 0x1c */ 1000 _flag_k = FK_CMP; 1001 PUSH32(esp, ecx); /* 0x46003FBE: push ecx */ 1002 ecx = ebp + (-0x1C); /* 0x46003FBF: lea ecx, [ebp - 0x1c] */ 1003 RECOMP_ICALL(0x46003FD5u); /* 0x46003FC2: call 0x46003fd5 */ /* not lifted */ 1004 RECOMP_FLAGS_IN(); 1005 eax = ebp + (-0x1C); /* 0x46003FC7: lea eax, [ebp - 0x1c] */ 1006 PUSH32(esp, 0x4602DFE8u); /* 0x46003FCA: push 0x4602dfe8 */ 1007 PUSH32(esp, eax); /* 0x46003FCF: push eax */ 1008 RECOMP_ICALL(0x46028068u); /* 0x46003FD0: call 0x46028068 */ /* not lifted */ 1009 RECOMP_FLAGS_IN(); 1010 PUSH32(esp, esi); /* 0x46003FD5: push esi */ 1011 esi = ecx; /* 0x46003FD6: mov esi, ecx */ 1012 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003FD8: push dword ptr [esp + 8] */ 1013 RECOMP_ICALL(0x46003C9Fu); /* 0x46003FDC: call 0x46003c9f */ /* not lifted */ 1014 RECOMP_FLAGS_IN(); 1015 MEM32(esi) = 0x4602B830u; /* 0x46003FE1: mov dword ptr [esi], 0x4602b830 */ 1016 eax = esi; /* 0x46003FE7: mov eax, esi */ 1017 esi = POP32_VAL(esp); /* 0x46003FE9: pop esi */ 1018 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003FEA: ret 4 */ 1019 RECOMP_REGS_OUT(); 1020 } 1021 1022 void sub_46003FD5(void) { 1023 int _fpu_cmp = 0; 1024 uint32_t _cf = 0; 1025 int _df = 1; 1026 uint32_t _flag_k = FK_NONE; 1027 uint32_t _flag_a = 0, _flag_b = 0; 1028 uint32_t _itail_tgt = 0; 1029 RECOMP_REGS_LOCALS 1030 RECOMP_ENTER(0x46003FD5u); 1031 1032 L_46003FD5: 1033 PUSH32(esp, esi); /* 0x46003FD5: push esi */ 1034 esi = ecx; /* 0x46003FD6: mov esi, ecx */ 1035 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46003FD8: push dword ptr [esp + 8] */ 1036 RECOMP_ICALL(0x46003C9Fu); /* 0x46003FDC: call 0x46003c9f */ /* not lifted */ 1037 RECOMP_FLAGS_IN(); 1038 MEM32(esi) = 0x4602B830u; /* 0x46003FE1: mov dword ptr [esi], 0x4602b830 */ 1039 eax = esi; /* 0x46003FE7: mov eax, esi */ 1040 esi = POP32_VAL(esp); /* 0x46003FE9: pop esi */ 1041 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46003FEA: ret 4 */ 1042 RECOMP_REGS_OUT(); 1043 } 1044 1045 void sub_46003FED(void) { 1046 int _fpu_cmp = 0; 1047 uint32_t _cf = 0; 1048 int _df = 1; 1049 uint32_t _flag_k = FK_NONE; 1050 uint32_t _flag_a = 0, _flag_b = 0; 1051 uint32_t _itail_tgt = 0; 1052 RECOMP_REGS_LOCALS 1053 RECOMP_ENTER(0x46003FEDu); 1054 1055 L_46003FED: 1056 PUSH32(esp, esi); /* 0x46003FED: push esi */ 1057 PUSH32(esp, edi); /* 0x46003FEE: push edi */ 1058 edi = MEM32(esp + 0xC); /* 0x46003FEF: mov edi, dword ptr [esp + 0xc] */ 1059 esi = ecx; /* 0x46003FF3: mov esi, ecx */ 1060 PUSH32(esp, edi); /* 0x46003FF5: push edi */ 1061 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x46003FF6: call dword ptr [0x4602b114] */ 1062 RECOMP_FLAGS_IN(); 1063 PUSH32(esp, 0xFFFFFFFFu); /* 0x46003FFC: push -1 */ 1064 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 1065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1066 edi = edi + 0xCu; /* 0x46003FFE: add edi, 0xc */ 1067 _flag_k = FK_ADD; 1068 PUSH32(esp, 0); /* 0x46004001: push 0 */ 1069 PUSH32(esp, edi); /* 0x46004003: push edi */ 1070 ecx = esi + 0xC; /* 0x46004004: lea ecx, [esi + 0xc] */ 1071 RECOMP_ICALL(0x46007714u); /* 0x46004007: call 0x46007714 */ /* not lifted */ 1072 RECOMP_FLAGS_IN(); 1073 eax = esi; /* 0x4600400C: mov eax, esi */ 1074 edi = POP32_VAL(esp); /* 0x4600400E: pop edi */ 1075 esi = POP32_VAL(esp); /* 0x4600400F: pop esi */ 1076 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004010: ret 4 */ 1077 RECOMP_REGS_OUT(); 1078 } 1079 1080 void sub_46004013(void) { 1081 int _fpu_cmp = 0; 1082 uint32_t _cf = 0; 1083 int _df = 1; 1084 uint32_t _flag_k = FK_NONE; 1085 uint32_t _flag_a = 0, _flag_b = 0; 1086 uint32_t _itail_tgt = 0; 1087 RECOMP_REGS_LOCALS 1088 RECOMP_ENTER(0x46004013u); 1089 1090 L_46004013: 1091 PUSH32(esp, ebx); /* 0x46004013: push ebx */ 1092 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x46004014: mov bl, byte ptr [esp + 8] */ 1093 PUSH32(esp, esi); /* 0x46004018: push esi */ 1094 esi = ecx; /* 0x46004019: mov esi, ecx */ 1095 /* test LO8(ebx), 2 */ /* 0x4600401B: test bl, 2 */ 1096 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1097 _cf = 0; 1098 _flag_k = FK_NARROW(FK_TEST, 24); 1099 if (TEST_Z(_flag_a, _flag_b)) goto L_46004047; /* 0x4600401E: je 0x46004047 */ 1100 L_46004020: 1101 PUSH32(esp, edi); /* 0x46004020: push edi */ 1102 edi = esi + (-0x4); /* 0x46004021: lea edi, [esi - 4] */ 1103 PUSH32(esp, 0x46003F7Au); /* 0x46004024: push 0x46003f7a */ 1104 PUSH32(esp, MEM32(edi)); /* 0x46004029: push dword ptr [edi] */ 1105 PUSH32(esp, 0x1Cu); /* 0x4600402B: push 0x1c */ 1106 PUSH32(esp, esi); /* 0x4600402D: push esi */ 1107 RECOMP_ICALL(0x4602806Eu); /* 0x4600402E: call 0x4602806e */ /* not lifted */ 1108 RECOMP_FLAGS_IN(); 1109 /* test LO8(ebx), 1 */ /* 0x46004033: test bl, 1 */ 1110 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1111 _cf = 0; 1112 _flag_k = FK_NARROW(FK_TEST, 24); 1113 if (TEST_Z(_flag_a, _flag_b)) goto L_4600403F; /* 0x46004036: je 0x4600403f */ 1114 L_46004038: 1115 PUSH32(esp, edi); /* 0x46004038: push edi */ 1116 RECOMP_ICALL(0x46002CE4u); /* 0x46004039: call 0x46002ce4 */ /* not lifted */ 1117 RECOMP_FLAGS_IN(); 1118 ecx = POP32_VAL(esp); /* 0x4600403E: pop ecx */ 1119 L_4600403F: 1120 eax = edi; /* 0x4600403F: mov eax, edi */ 1121 edi = POP32_VAL(esp); /* 0x46004041: pop edi */ 1122 L_46004042: 1123 esi = POP32_VAL(esp); /* 0x46004042: pop esi */ 1124 ebx = POP32_VAL(esp); /* 0x46004043: pop ebx */ 1125 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004044: ret 4 */ 1126 L_46004047: 1127 ecx = esi; /* 0x46004047: mov ecx, esi */ 1128 RECOMP_ICALL(0x46003F7Au); /* 0x46004049: call 0x46003f7a */ /* not lifted */ 1129 RECOMP_FLAGS_IN(); 1130 /* test LO8(ebx), 1 */ /* 0x4600404E: test bl, 1 */ 1131 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1132 _cf = 0; 1133 _flag_k = FK_NARROW(FK_TEST, 24); 1134 if (TEST_Z(_flag_a, _flag_b)) goto L_4600405A; /* 0x46004051: je 0x4600405a */ 1135 L_46004053: 1136 PUSH32(esp, esi); /* 0x46004053: push esi */ 1137 RECOMP_ICALL(0x46002CE4u); /* 0x46004054: call 0x46002ce4 */ /* not lifted */ 1138 RECOMP_FLAGS_IN(); 1139 ecx = POP32_VAL(esp); /* 0x46004059: pop ecx */ 1140 L_4600405A: 1141 eax = esi; /* 0x4600405A: mov eax, esi */ 1142 RECOMP_BACKEDGE(); 1143 goto L_46004042; /* 0x4600405C: jmp 0x46004042 */ 1144 { RECOMP_REGS_OUT(); return; } /* end of function */ 1145 RECOMP_REGS_OUT(); 1146 } 1147 1148 void sub_4600405E(void) { 1149 int _fpu_cmp = 0; 1150 uint32_t _cf = 0; 1151 int _df = 1; 1152 uint32_t _flag_k = FK_NONE; 1153 uint32_t _flag_a = 0, _flag_b = 0; 1154 uint32_t _itail_tgt = 0; 1155 RECOMP_REGS_LOCALS 1156 RECOMP_ENTER(0x4600405Eu); 1157 1158 L_4600405E: 1159 eax = esp + 0x4; /* 0x4600405E: lea eax, [esp + 4] */ 1160 PUSH32(esp, esi); /* 0x46004062: push esi */ 1161 esi = ecx; /* 0x46004063: mov esi, ecx */ 1162 PUSH32(esp, eax); /* 0x46004065: push eax */ 1163 RECOMP_ICALL(MEM32(0x4602B124)); /* 0x46004066: call dword ptr [0x4602b124] */ 1164 RECOMP_FLAGS_IN(); 1165 MEM32(esi) = 0x4602B840u; /* 0x4600406C: mov dword ptr [esi], 0x4602b840 */ 1166 eax = esi; /* 0x46004072: mov eax, esi */ 1167 esi = POP32_VAL(esp); /* 0x46004074: pop esi */ 1168 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004075: ret 4 */ 1169 RECOMP_REGS_OUT(); 1170 } 1171 1172 void sub_46004078(void) { 1173 int _fpu_cmp = 0; 1174 uint32_t _cf = 0; 1175 int _df = 1; 1176 uint32_t _flag_k = FK_NONE; 1177 uint32_t _flag_a = 0, _flag_b = 0; 1178 uint32_t _itail_tgt = 0; 1179 RECOMP_REGS_LOCALS 1180 RECOMP_ENTER(0x46004078u); 1181 1182 L_46004078: 1183 MEM32(ecx) = 0x4602B840u; /* 0x46004078: mov dword ptr [ecx], 0x4602b840 */ 1184 L_4600407E: 1185 { _itail_tgt = (uint32_t)(MEM32(0x4602B120)); goto _ljump; } 1186 { RECOMP_REGS_OUT(); return; } /* end of function */ 1187 _ljump: 1188 switch (_itail_tgt) { 1189 case 0x46004078u: goto L_46004078; 1190 case 0x4600407Eu: goto L_4600407E; 1191 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1192 } 1193 RECOMP_REGS_OUT(); 1194 } 1195 1196 void sub_46004084(void) { 1197 int _fpu_cmp = 0; 1198 uint32_t _cf = 0; 1199 int _df = 1; 1200 uint32_t _flag_k = FK_NONE; 1201 uint32_t _flag_a = 0, _flag_b = 0; 1202 uint32_t _itail_tgt = 0; 1203 RECOMP_REGS_LOCALS 1204 RECOMP_ENTER(0x46004084u); 1205 1206 L_46004084: 1207 PUSH32(esp, ebp); /* 0x46004084: push ebp */ 1208 ebp = esp; /* 0x46004085: mov ebp, esp */ 1209 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1211 esp = esp - 0xCu; /* 0x46004087: sub esp, 0xc */ 1212 _flag_k = FK_CMP; 1213 PUSH32(esp, ecx); /* 0x4600408A: push ecx */ 1214 ecx = ebp + (-0xC); /* 0x4600408B: lea ecx, [ebp - 0xc] */ 1215 RECOMP_ICALL(0x460040A1u); /* 0x4600408E: call 0x460040a1 */ /* not lifted */ 1216 RECOMP_FLAGS_IN(); 1217 eax = ebp + (-0xC); /* 0x46004093: lea eax, [ebp - 0xc] */ 1218 PUSH32(esp, 0x4602E028u); /* 0x46004096: push 0x4602e028 */ 1219 PUSH32(esp, eax); /* 0x4600409B: push eax */ 1220 RECOMP_ICALL(0x46028068u); /* 0x4600409C: call 0x46028068 */ /* not lifted */ 1221 RECOMP_FLAGS_IN(); 1222 PUSH32(esp, esi); /* 0x460040A1: push esi */ 1223 esi = ecx; /* 0x460040A2: mov esi, ecx */ 1224 PUSH32(esp, MEM32(esp + 0x8)); /* 0x460040A4: push dword ptr [esp + 8] */ 1225 RECOMP_ICALL(MEM32(0x4602B11C)); /* 0x460040A8: call dword ptr [0x4602b11c] */ 1226 RECOMP_FLAGS_IN(); 1227 MEM32(esi) = 0x4602B840u; /* 0x460040AE: mov dword ptr [esi], 0x4602b840 */ 1228 eax = esi; /* 0x460040B4: mov eax, esi */ 1229 esi = POP32_VAL(esp); /* 0x460040B6: pop esi */ 1230 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460040B7: ret 4 */ 1231 RECOMP_REGS_OUT(); 1232 } 1233 1234 void sub_460040A1(void) { 1235 int _fpu_cmp = 0; 1236 uint32_t _cf = 0; 1237 int _df = 1; 1238 uint32_t _flag_k = FK_NONE; 1239 uint32_t _flag_a = 0, _flag_b = 0; 1240 uint32_t _itail_tgt = 0; 1241 RECOMP_REGS_LOCALS 1242 RECOMP_ENTER(0x460040A1u); 1243 1244 L_460040A1: 1245 PUSH32(esp, esi); /* 0x460040A1: push esi */ 1246 esi = ecx; /* 0x460040A2: mov esi, ecx */ 1247 PUSH32(esp, MEM32(esp + 0x8)); /* 0x460040A4: push dword ptr [esp + 8] */ 1248 RECOMP_ICALL(MEM32(0x4602B11C)); /* 0x460040A8: call dword ptr [0x4602b11c] */ 1249 RECOMP_FLAGS_IN(); 1250 MEM32(esi) = 0x4602B840u; /* 0x460040AE: mov dword ptr [esi], 0x4602b840 */ 1251 eax = esi; /* 0x460040B4: mov eax, esi */ 1252 esi = POP32_VAL(esp); /* 0x460040B6: pop esi */ 1253 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460040B7: ret 4 */ 1254 RECOMP_REGS_OUT(); 1255 } 1256 1257 void sub_460040BA(void) { 1258 int _fpu_cmp = 0; 1259 uint32_t _cf = 0; 1260 int _df = 1; 1261 uint32_t _flag_k = FK_NONE; 1262 uint32_t _flag_a = 0, _flag_b = 0; 1263 uint32_t _itail_tgt = 0; 1264 RECOMP_REGS_LOCALS 1265 RECOMP_ENTER(0x460040BAu); 1266 1267 L_460040BA: 1268 PUSH32(esp, esi); /* 0x460040BA: push esi */ 1269 esi = ecx; /* 0x460040BB: mov esi, ecx */ 1270 PUSH32(esp, MEM32(esp + 0x8)); /* 0x460040BD: push dword ptr [esp + 8] */ 1271 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x460040C1: call dword ptr [0x4602b114] */ 1272 RECOMP_FLAGS_IN(); 1273 eax = esi; /* 0x460040C7: mov eax, esi */ 1274 esi = POP32_VAL(esp); /* 0x460040C9: pop esi */ 1275 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460040CA: ret 4 */ 1276 RECOMP_REGS_OUT(); 1277 } 1278 1279 void sub_460040CD(void) { 1280 int _fpu_cmp = 0; 1281 uint32_t _cf = 0; 1282 int _df = 1; 1283 uint32_t _flag_k = FK_NONE; 1284 uint32_t _flag_a = 0, _flag_b = 0; 1285 uint32_t _itail_tgt = 0; 1286 RECOMP_REGS_LOCALS 1287 RECOMP_ENTER(0x460040CDu); 1288 1289 L_460040CD: 1290 PUSH32(esp, 0x4602B84Cu); /* 0x460040CD: push 0x4602b84c */ 1291 RECOMP_ICALL(0x4600405Eu); /* 0x460040D2: call 0x4600405e */ /* not lifted */ 1292 RECOMP_FLAGS_IN(); 1293 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460040D7: ret */ 1294 RECOMP_REGS_OUT(); 1295 } 1296 1297 void sub_460040D8(void) { 1298 int _fpu_cmp = 0; 1299 uint32_t _cf = 0; 1300 int _df = 1; 1301 uint32_t _flag_k = FK_NONE; 1302 uint32_t _flag_a = 0, _flag_b = 0; 1303 uint32_t _itail_tgt = 0; 1304 RECOMP_REGS_LOCALS 1305 RECOMP_ENTER(0x460040D8u); 1306 1307 L_460040D8: 1308 PUSH32(esp, ebx); /* 0x460040D8: push ebx */ 1309 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x460040D9: mov bl, byte ptr [esp + 8] */ 1310 PUSH32(esp, esi); /* 0x460040DD: push esi */ 1311 esi = ecx; /* 0x460040DE: mov esi, ecx */ 1312 /* test LO8(ebx), 2 */ /* 0x460040E0: test bl, 2 */ 1313 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1314 _cf = 0; 1315 _flag_k = FK_NARROW(FK_TEST, 24); 1316 if (TEST_Z(_flag_a, _flag_b)) goto L_4600410C; /* 0x460040E3: je 0x4600410c */ 1317 L_460040E5: 1318 PUSH32(esp, edi); /* 0x460040E5: push edi */ 1319 edi = esi + (-0x4); /* 0x460040E6: lea edi, [esi - 4] */ 1320 PUSH32(esp, 0x46004078u); /* 0x460040E9: push 0x46004078 */ 1321 PUSH32(esp, MEM32(edi)); /* 0x460040EE: push dword ptr [edi] */ 1322 PUSH32(esp, 0xCu); /* 0x460040F0: push 0xc */ 1323 PUSH32(esp, esi); /* 0x460040F2: push esi */ 1324 RECOMP_ICALL(0x4602806Eu); /* 0x460040F3: call 0x4602806e */ /* not lifted */ 1325 RECOMP_FLAGS_IN(); 1326 /* test LO8(ebx), 1 */ /* 0x460040F8: test bl, 1 */ 1327 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1328 _cf = 0; 1329 _flag_k = FK_NARROW(FK_TEST, 24); 1330 if (TEST_Z(_flag_a, _flag_b)) goto L_46004104; /* 0x460040FB: je 0x46004104 */ 1331 L_460040FD: 1332 PUSH32(esp, edi); /* 0x460040FD: push edi */ 1333 RECOMP_ICALL(0x46002CE4u); /* 0x460040FE: call 0x46002ce4 */ /* not lifted */ 1334 RECOMP_FLAGS_IN(); 1335 ecx = POP32_VAL(esp); /* 0x46004103: pop ecx */ 1336 L_46004104: 1337 eax = edi; /* 0x46004104: mov eax, edi */ 1338 edi = POP32_VAL(esp); /* 0x46004106: pop edi */ 1339 L_46004107: 1340 esi = POP32_VAL(esp); /* 0x46004107: pop esi */ 1341 ebx = POP32_VAL(esp); /* 0x46004108: pop ebx */ 1342 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004109: ret 4 */ 1343 L_4600410C: 1344 ecx = esi; /* 0x4600410C: mov ecx, esi */ 1345 RECOMP_ICALL(0x46004078u); /* 0x4600410E: call 0x46004078 */ /* not lifted */ 1346 RECOMP_FLAGS_IN(); 1347 /* test LO8(ebx), 1 */ /* 0x46004113: test bl, 1 */ 1348 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1349 _cf = 0; 1350 _flag_k = FK_NARROW(FK_TEST, 24); 1351 if (TEST_Z(_flag_a, _flag_b)) goto L_4600411F; /* 0x46004116: je 0x4600411f */ 1352 L_46004118: 1353 PUSH32(esp, esi); /* 0x46004118: push esi */ 1354 RECOMP_ICALL(0x46002CE4u); /* 0x46004119: call 0x46002ce4 */ /* not lifted */ 1355 RECOMP_FLAGS_IN(); 1356 ecx = POP32_VAL(esp); /* 0x4600411E: pop ecx */ 1357 L_4600411F: 1358 eax = esi; /* 0x4600411F: mov eax, esi */ 1359 RECOMP_BACKEDGE(); 1360 goto L_46004107; /* 0x46004121: jmp 0x46004107 */ 1361 { RECOMP_REGS_OUT(); return; } /* end of function */ 1362 RECOMP_REGS_OUT(); 1363 } 1364 1365 void sub_46004123(void) { 1366 int _fpu_cmp = 0; 1367 uint32_t _cf = 0; 1368 int _df = 1; 1369 uint32_t _flag_k = FK_NONE; 1370 uint32_t _flag_a = 0, _flag_b = 0; 1371 uint32_t _itail_tgt = 0; 1372 RECOMP_REGS_LOCALS 1373 RECOMP_ENTER(0x46004123u); 1374 1375 L_46004123: 1376 eax = esp + 0x4; /* 0x46004123: lea eax, [esp + 4] */ 1377 PUSH32(esp, esi); /* 0x46004127: push esi */ 1378 esi = ecx; /* 0x46004128: mov esi, ecx */ 1379 PUSH32(esp, eax); /* 0x4600412A: push eax */ 1380 RECOMP_ICALL(MEM32(0x4602B124)); /* 0x4600412B: call dword ptr [0x4602b124] */ 1381 RECOMP_FLAGS_IN(); 1382 MEM32(esi) = 0x4602B85Cu; /* 0x46004131: mov dword ptr [esi], 0x4602b85c */ 1383 eax = esi; /* 0x46004137: mov eax, esi */ 1384 esi = POP32_VAL(esp); /* 0x46004139: pop esi */ 1385 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600413A: ret 4 */ 1386 RECOMP_REGS_OUT(); 1387 } 1388 1389 void sub_4600413D(void) { 1390 int _fpu_cmp = 0; 1391 uint32_t _cf = 0; 1392 int _df = 1; 1393 uint32_t _flag_k = FK_NONE; 1394 uint32_t _flag_a = 0, _flag_b = 0; 1395 uint32_t _itail_tgt = 0; 1396 RECOMP_REGS_LOCALS 1397 RECOMP_ENTER(0x4600413Du); 1398 1399 L_4600413D: 1400 MEM32(ecx) = 0x4602B85Cu; /* 0x4600413D: mov dword ptr [ecx], 0x4602b85c */ 1401 L_46004143: 1402 { _itail_tgt = (uint32_t)(MEM32(0x4602B120)); goto _ljump; } 1403 { RECOMP_REGS_OUT(); return; } /* end of function */ 1404 _ljump: 1405 switch (_itail_tgt) { 1406 case 0x4600413Du: goto L_4600413D; 1407 case 0x46004143u: goto L_46004143; 1408 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1409 } 1410 RECOMP_REGS_OUT(); 1411 } 1412 1413 void sub_46004149(void) { 1414 int _fpu_cmp = 0; 1415 uint32_t _cf = 0; 1416 int _df = 1; 1417 uint32_t _flag_k = FK_NONE; 1418 uint32_t _flag_a = 0, _flag_b = 0; 1419 uint32_t _itail_tgt = 0; 1420 RECOMP_REGS_LOCALS 1421 RECOMP_ENTER(0x46004149u); 1422 1423 L_46004149: 1424 PUSH32(esp, ebp); /* 0x46004149: push ebp */ 1425 ebp = esp; /* 0x4600414A: mov ebp, esp */ 1426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1428 esp = esp - 0xCu; /* 0x4600414C: sub esp, 0xc */ 1429 _flag_k = FK_CMP; 1430 PUSH32(esp, ecx); /* 0x4600414F: push ecx */ 1431 ecx = ebp + (-0xC); /* 0x46004150: lea ecx, [ebp - 0xc] */ 1432 RECOMP_ICALL(0x46004166u); /* 0x46004153: call 0x46004166 */ /* not lifted */ 1433 RECOMP_FLAGS_IN(); 1434 eax = ebp + (-0xC); /* 0x46004158: lea eax, [ebp - 0xc] */ 1435 PUSH32(esp, 0x4602E068u); /* 0x4600415B: push 0x4602e068 */ 1436 PUSH32(esp, eax); /* 0x46004160: push eax */ 1437 RECOMP_ICALL(0x46028068u); /* 0x46004161: call 0x46028068 */ /* not lifted */ 1438 RECOMP_FLAGS_IN(); 1439 PUSH32(esp, esi); /* 0x46004166: push esi */ 1440 esi = ecx; /* 0x46004167: mov esi, ecx */ 1441 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46004169: push dword ptr [esp + 8] */ 1442 RECOMP_ICALL(MEM32(0x4602B11C)); /* 0x4600416D: call dword ptr [0x4602b11c] */ 1443 RECOMP_FLAGS_IN(); 1444 MEM32(esi) = 0x4602B85Cu; /* 0x46004173: mov dword ptr [esi], 0x4602b85c */ 1445 eax = esi; /* 0x46004179: mov eax, esi */ 1446 esi = POP32_VAL(esp); /* 0x4600417B: pop esi */ 1447 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600417C: ret 4 */ 1448 RECOMP_REGS_OUT(); 1449 } 1450 1451 void sub_46004166(void) { 1452 int _fpu_cmp = 0; 1453 uint32_t _cf = 0; 1454 int _df = 1; 1455 uint32_t _flag_k = FK_NONE; 1456 uint32_t _flag_a = 0, _flag_b = 0; 1457 uint32_t _itail_tgt = 0; 1458 RECOMP_REGS_LOCALS 1459 RECOMP_ENTER(0x46004166u); 1460 1461 L_46004166: 1462 PUSH32(esp, esi); /* 0x46004166: push esi */ 1463 esi = ecx; /* 0x46004167: mov esi, ecx */ 1464 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46004169: push dword ptr [esp + 8] */ 1465 RECOMP_ICALL(MEM32(0x4602B11C)); /* 0x4600416D: call dword ptr [0x4602b11c] */ 1466 RECOMP_FLAGS_IN(); 1467 MEM32(esi) = 0x4602B85Cu; /* 0x46004173: mov dword ptr [esi], 0x4602b85c */ 1468 eax = esi; /* 0x46004179: mov eax, esi */ 1469 esi = POP32_VAL(esp); /* 0x4600417B: pop esi */ 1470 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600417C: ret 4 */ 1471 RECOMP_REGS_OUT(); 1472 } 1473 1474 void sub_4600417F(void) { 1475 int _fpu_cmp = 0; 1476 uint32_t _cf = 0; 1477 int _df = 1; 1478 uint32_t _flag_k = FK_NONE; 1479 uint32_t _flag_a = 0, _flag_b = 0; 1480 uint32_t _itail_tgt = 0; 1481 RECOMP_REGS_LOCALS 1482 RECOMP_ENTER(0x4600417Fu); 1483 1484 L_4600417F: 1485 PUSH32(esp, esi); /* 0x4600417F: push esi */ 1486 esi = ecx; /* 0x46004180: mov esi, ecx */ 1487 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46004182: push dword ptr [esp + 8] */ 1488 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x46004186: call dword ptr [0x4602b114] */ 1489 RECOMP_FLAGS_IN(); 1490 eax = esi; /* 0x4600418C: mov eax, esi */ 1491 esi = POP32_VAL(esp); /* 0x4600418E: pop esi */ 1492 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600418F: ret 4 */ 1493 RECOMP_REGS_OUT(); 1494 } 1495 1496 void sub_46004192(void) { 1497 int _fpu_cmp = 0; 1498 uint32_t _cf = 0; 1499 int _df = 1; 1500 uint32_t _flag_k = FK_NONE; 1501 uint32_t _flag_a = 0, _flag_b = 0; 1502 uint32_t _itail_tgt = 0; 1503 RECOMP_REGS_LOCALS 1504 RECOMP_ENTER(0x46004192u); 1505 1506 L_46004192: 1507 PUSH32(esp, 0x4602B868u); /* 0x46004192: push 0x4602b868 */ 1508 RECOMP_ICALL(0x46004123u); /* 0x46004197: call 0x46004123 */ /* not lifted */ 1509 RECOMP_FLAGS_IN(); 1510 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600419C: ret */ 1511 RECOMP_REGS_OUT(); 1512 } 1513 1514 void sub_4600419D(void) { 1515 int _fpu_cmp = 0; 1516 uint32_t _cf = 0; 1517 int _df = 1; 1518 uint32_t _flag_k = FK_NONE; 1519 uint32_t _flag_a = 0, _flag_b = 0; 1520 uint32_t _itail_tgt = 0; 1521 RECOMP_REGS_LOCALS 1522 RECOMP_ENTER(0x4600419Du); 1523 1524 L_4600419D: 1525 PUSH32(esp, ebx); /* 0x4600419D: push ebx */ 1526 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4600419E: mov bl, byte ptr [esp + 8] */ 1527 PUSH32(esp, esi); /* 0x460041A2: push esi */ 1528 esi = ecx; /* 0x460041A3: mov esi, ecx */ 1529 /* test LO8(ebx), 2 */ /* 0x460041A5: test bl, 2 */ 1530 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1531 _cf = 0; 1532 _flag_k = FK_NARROW(FK_TEST, 24); 1533 if (TEST_Z(_flag_a, _flag_b)) goto L_460041D1; /* 0x460041A8: je 0x460041d1 */ 1534 L_460041AA: 1535 PUSH32(esp, edi); /* 0x460041AA: push edi */ 1536 edi = esi + (-0x4); /* 0x460041AB: lea edi, [esi - 4] */ 1537 PUSH32(esp, 0x4600413Du); /* 0x460041AE: push 0x4600413d */ 1538 PUSH32(esp, MEM32(edi)); /* 0x460041B3: push dword ptr [edi] */ 1539 PUSH32(esp, 0xCu); /* 0x460041B5: push 0xc */ 1540 PUSH32(esp, esi); /* 0x460041B7: push esi */ 1541 RECOMP_ICALL(0x4602806Eu); /* 0x460041B8: call 0x4602806e */ /* not lifted */ 1542 RECOMP_FLAGS_IN(); 1543 /* test LO8(ebx), 1 */ /* 0x460041BD: test bl, 1 */ 1544 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1545 _cf = 0; 1546 _flag_k = FK_NARROW(FK_TEST, 24); 1547 if (TEST_Z(_flag_a, _flag_b)) goto L_460041C9; /* 0x460041C0: je 0x460041c9 */ 1548 L_460041C2: 1549 PUSH32(esp, edi); /* 0x460041C2: push edi */ 1550 RECOMP_ICALL(0x46002CE4u); /* 0x460041C3: call 0x46002ce4 */ /* not lifted */ 1551 RECOMP_FLAGS_IN(); 1552 ecx = POP32_VAL(esp); /* 0x460041C8: pop ecx */ 1553 L_460041C9: 1554 eax = edi; /* 0x460041C9: mov eax, edi */ 1555 edi = POP32_VAL(esp); /* 0x460041CB: pop edi */ 1556 L_460041CC: 1557 esi = POP32_VAL(esp); /* 0x460041CC: pop esi */ 1558 ebx = POP32_VAL(esp); /* 0x460041CD: pop ebx */ 1559 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460041CE: ret 4 */ 1560 L_460041D1: 1561 ecx = esi; /* 0x460041D1: mov ecx, esi */ 1562 RECOMP_ICALL(0x4600413Du); /* 0x460041D3: call 0x4600413d */ /* not lifted */ 1563 RECOMP_FLAGS_IN(); 1564 /* test LO8(ebx), 1 */ /* 0x460041D8: test bl, 1 */ 1565 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1566 _cf = 0; 1567 _flag_k = FK_NARROW(FK_TEST, 24); 1568 if (TEST_Z(_flag_a, _flag_b)) goto L_460041E4; /* 0x460041DB: je 0x460041e4 */ 1569 L_460041DD: 1570 PUSH32(esp, esi); /* 0x460041DD: push esi */ 1571 RECOMP_ICALL(0x46002CE4u); /* 0x460041DE: call 0x46002ce4 */ /* not lifted */ 1572 RECOMP_FLAGS_IN(); 1573 ecx = POP32_VAL(esp); /* 0x460041E3: pop ecx */ 1574 L_460041E4: 1575 eax = esi; /* 0x460041E4: mov eax, esi */ 1576 RECOMP_BACKEDGE(); 1577 goto L_460041CC; /* 0x460041E6: jmp 0x460041cc */ 1578 { RECOMP_REGS_OUT(); return; } /* end of function */ 1579 RECOMP_REGS_OUT(); 1580 } 1581 1582 void sub_460041E8(void) { 1583 int _fpu_cmp = 0; 1584 uint32_t _cf = 0; 1585 int _df = 1; 1586 uint32_t _flag_k = FK_NONE; 1587 uint32_t _flag_a = 0, _flag_b = 0; 1588 uint32_t _itail_tgt = 0; 1589 RECOMP_REGS_LOCALS 1590 RECOMP_ENTER(0x460041E8u); 1591 1592 L_460041E8: 1593 PUSH32(esp, ebp); /* 0x460041E8: push ebp */ 1594 ebp = esp; /* 0x460041E9: mov ebp, esp */ 1595 eax = MEM32(ebp + 0x8); /* 0x460041EB: mov eax, dword ptr [ebp + 8] */ 1596 PUSH32(esp, esi); /* 0x460041EE: push esi */ 1597 MEM32(ebp + 0x8) = eax; /* 0x460041EF: mov dword ptr [ebp + 8], eax */ 1598 eax = ebp + 0x8; /* 0x460041F2: lea eax, [ebp + 8] */ 1599 esi = ecx; /* 0x460041F5: mov esi, ecx */ 1600 PUSH32(esp, eax); /* 0x460041F7: push eax */ 1601 RECOMP_ICALL(MEM32(0x4602B124)); /* 0x460041F8: call dword ptr [0x4602b124] */ 1602 RECOMP_FLAGS_IN(); 1603 MEM32(esi) = 0x4602B878u; /* 0x460041FE: mov dword ptr [esi], 0x4602b878 */ 1604 eax = esi; /* 0x46004204: mov eax, esi */ 1605 esi = POP32_VAL(esp); /* 0x46004206: pop esi */ 1606 ebp = POP32_VAL(esp); /* 0x46004207: pop ebp */ 1607 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004208: ret 4 */ 1608 RECOMP_REGS_OUT(); 1609 } 1610 1611 void sub_4600420B(void) { 1612 int _fpu_cmp = 0; 1613 uint32_t _cf = 0; 1614 int _df = 1; 1615 uint32_t _flag_k = FK_NONE; 1616 uint32_t _flag_a = 0, _flag_b = 0; 1617 uint32_t _itail_tgt = 0; 1618 RECOMP_REGS_LOCALS 1619 RECOMP_ENTER(0x4600420Bu); 1620 1621 L_4600420B: 1622 PUSH32(esp, esi); /* 0x4600420B: push esi */ 1623 esi = ecx; /* 0x4600420C: mov esi, ecx */ 1624 PUSH32(esp, MEM32(esp + 0x8)); /* 0x4600420E: push dword ptr [esp + 8] */ 1625 RECOMP_ICALL(MEM32(0x4602B11C)); /* 0x46004212: call dword ptr [0x4602b11c] */ 1626 RECOMP_FLAGS_IN(); 1627 MEM32(esi) = 0x4602B878u; /* 0x46004218: mov dword ptr [esi], 0x4602b878 */ 1628 eax = esi; /* 0x4600421E: mov eax, esi */ 1629 esi = POP32_VAL(esp); /* 0x46004220: pop esi */ 1630 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004221: ret 4 */ 1631 RECOMP_REGS_OUT(); 1632 } 1633 1634 void sub_46004224(void) { 1635 int _fpu_cmp = 0; 1636 uint32_t _cf = 0; 1637 int _df = 1; 1638 uint32_t _flag_k = FK_NONE; 1639 uint32_t _flag_a = 0, _flag_b = 0; 1640 uint32_t _itail_tgt = 0; 1641 RECOMP_REGS_LOCALS 1642 RECOMP_ENTER(0x46004224u); 1643 1644 L_46004224: 1645 PUSH32(esp, esi); /* 0x46004224: push esi */ 1646 esi = ecx; /* 0x46004225: mov esi, ecx */ 1647 PUSH32(esp, MEM32(esp + 0x8)); /* 0x46004227: push dword ptr [esp + 8] */ 1648 RECOMP_ICALL(MEM32(0x4602B114)); /* 0x4600422B: call dword ptr [0x4602b114] */ 1649 RECOMP_FLAGS_IN(); 1650 eax = esi; /* 0x46004231: mov eax, esi */ 1651 esi = POP32_VAL(esp); /* 0x46004233: pop esi */ 1652 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004234: ret 4 */ 1653 RECOMP_REGS_OUT(); 1654 } 1655 1656 void sub_46004237(void) { 1657 int _fpu_cmp = 0; 1658 uint32_t _cf = 0; 1659 int _df = 1; 1660 uint32_t _flag_k = FK_NONE; 1661 uint32_t _flag_a = 0, _flag_b = 0; 1662 uint32_t _itail_tgt = 0; 1663 RECOMP_REGS_LOCALS 1664 RECOMP_ENTER(0x46004237u); 1665 1666 L_46004237: 1667 MEM32(ecx) = 0x4602B85Cu; /* 0x46004237: mov dword ptr [ecx], 0x4602b85c */ 1668 L_4600423D: 1669 { _itail_tgt = (uint32_t)(MEM32(0x4602B120)); goto _ljump; } 1670 { RECOMP_REGS_OUT(); return; } /* end of function */ 1671 _ljump: 1672 switch (_itail_tgt) { 1673 case 0x46004237u: goto L_46004237; 1674 case 0x4600423Du: goto L_4600423D; 1675 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1676 } 1677 RECOMP_REGS_OUT(); 1678 } 1679 1680 void sub_46004243(void) { 1681 int _fpu_cmp = 0; 1682 uint32_t _cf = 0; 1683 int _df = 1; 1684 uint32_t _flag_k = FK_NONE; 1685 uint32_t _flag_a = 0, _flag_b = 0; 1686 uint32_t _itail_tgt = 0; 1687 RECOMP_REGS_LOCALS 1688 RECOMP_ENTER(0x46004243u); 1689 1690 L_46004243: 1691 PUSH32(esp, ebx); /* 0x46004243: push ebx */ 1692 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x46004244: mov bl, byte ptr [esp + 8] */ 1693 PUSH32(esp, esi); /* 0x46004248: push esi */ 1694 esi = ecx; /* 0x46004249: mov esi, ecx */ 1695 /* test LO8(ebx), 2 */ /* 0x4600424B: test bl, 2 */ 1696 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1697 _cf = 0; 1698 _flag_k = FK_NARROW(FK_TEST, 24); 1699 if (TEST_Z(_flag_a, _flag_b)) goto L_46004277; /* 0x4600424E: je 0x46004277 */ 1700 L_46004250: 1701 PUSH32(esp, edi); /* 0x46004250: push edi */ 1702 edi = esi + (-0x4); /* 0x46004251: lea edi, [esi - 4] */ 1703 PUSH32(esp, 0x46004237u); /* 0x46004254: push 0x46004237 */ 1704 PUSH32(esp, MEM32(edi)); /* 0x46004259: push dword ptr [edi] */ 1705 PUSH32(esp, 0xCu); /* 0x4600425B: push 0xc */ 1706 PUSH32(esp, esi); /* 0x4600425D: push esi */ 1707 RECOMP_ICALL(0x4602806Eu); /* 0x4600425E: call 0x4602806e */ /* not lifted */ 1708 RECOMP_FLAGS_IN(); 1709 /* test LO8(ebx), 1 */ /* 0x46004263: test bl, 1 */ 1710 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1711 _cf = 0; 1712 _flag_k = FK_NARROW(FK_TEST, 24); 1713 if (TEST_Z(_flag_a, _flag_b)) goto L_4600426F; /* 0x46004266: je 0x4600426f */ 1714 L_46004268: 1715 PUSH32(esp, edi); /* 0x46004268: push edi */ 1716 RECOMP_ICALL(0x46002CE4u); /* 0x46004269: call 0x46002ce4 */ /* not lifted */ 1717 RECOMP_FLAGS_IN(); 1718 ecx = POP32_VAL(esp); /* 0x4600426E: pop ecx */ 1719 L_4600426F: 1720 eax = edi; /* 0x4600426F: mov eax, edi */ 1721 edi = POP32_VAL(esp); /* 0x46004271: pop edi */ 1722 L_46004272: 1723 esi = POP32_VAL(esp); /* 0x46004272: pop esi */ 1724 ebx = POP32_VAL(esp); /* 0x46004273: pop ebx */ 1725 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004274: ret 4 */ 1726 L_46004277: 1727 ecx = esi; /* 0x46004277: mov ecx, esi */ 1728 RECOMP_ICALL(0x46004237u); /* 0x46004279: call 0x46004237 */ /* not lifted */ 1729 RECOMP_FLAGS_IN(); 1730 /* test LO8(ebx), 1 */ /* 0x4600427E: test bl, 1 */ 1731 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1732 _cf = 0; 1733 _flag_k = FK_NARROW(FK_TEST, 24); 1734 if (TEST_Z(_flag_a, _flag_b)) goto L_4600428A; /* 0x46004281: je 0x4600428a */ 1735 L_46004283: 1736 PUSH32(esp, esi); /* 0x46004283: push esi */ 1737 RECOMP_ICALL(0x46002CE4u); /* 0x46004284: call 0x46002ce4 */ /* not lifted */ 1738 RECOMP_FLAGS_IN(); 1739 ecx = POP32_VAL(esp); /* 0x46004289: pop ecx */ 1740 L_4600428A: 1741 eax = esi; /* 0x4600428A: mov eax, esi */ 1742 RECOMP_BACKEDGE(); 1743 goto L_46004272; /* 0x4600428C: jmp 0x46004272 */ 1744 { RECOMP_REGS_OUT(); return; } /* end of function */ 1745 RECOMP_REGS_OUT(); 1746 } 1747 1748 void sub_4600428E(void) { 1749 int _fpu_cmp = 0; 1750 uint32_t _cf = 0; 1751 int _df = 1; 1752 uint32_t _flag_k = FK_NONE; 1753 uint32_t _flag_a = 0, _flag_b = 0; 1754 uint32_t _itail_tgt = 0; 1755 RECOMP_REGS_LOCALS 1756 RECOMP_ENTER(0x4600428Eu); 1757 1758 L_4600428E: 1759 eax = ecx; /* 0x4600428E: mov eax, ecx */ 1760 ecx = MEM32(esp + 0x4); /* 0x46004290: mov ecx, dword ptr [esp + 4] */ 1761 MEM32(eax) = ecx; /* 0x46004294: mov dword ptr [eax], ecx */ 1762 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004296: ret 4 */ 1763 RECOMP_REGS_OUT(); 1764 } 1765 1766 void sub_46004299(void) { 1767 int _fpu_cmp = 0; 1768 uint32_t _cf = 0; 1769 int _df = 1; 1770 uint32_t _flag_k = FK_NONE; 1771 uint32_t _flag_a = 0, _flag_b = 0; 1772 uint32_t _itail_tgt = 0; 1773 RECOMP_REGS_LOCALS 1774 RECOMP_ENTER(0x46004299u); 1775 1776 L_46004299: 1777 eax = ecx; /* 0x46004299: mov eax, ecx */ 1778 ecx = MEM32(esp + 0x4); /* 0x4600429B: mov ecx, dword ptr [esp + 4] */ 1779 edx = MEM32(ecx); /* 0x4600429F: mov edx, dword ptr [ecx] */ 1780 MEM32(eax) = edx; /* 0x460042A1: mov dword ptr [eax], edx */ 1781 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0); 1782 MEM32(ecx) = MEM32(ecx) & 0; /* 0x460042A3: and dword ptr [ecx], 0 */ 1783 _cf = 0; 1784 _flag_k = FK_TEST; 1785 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460042A6: ret 4 */ 1786 RECOMP_REGS_OUT(); 1787 } 1788 1789 void sub_460042A9(void) { 1790 int _fpu_cmp = 0; 1791 uint32_t _cf = 0; 1792 int _df = 1; 1793 uint32_t _flag_k = FK_NONE; 1794 uint32_t _flag_a = 0, _flag_b = 0; 1795 uint32_t _itail_tgt = 0; 1796 RECOMP_REGS_LOCALS 1797 RECOMP_ENTER(0x460042A9u); 1798 1799 L_460042A9: 1800 eax = ecx; /* 0x460042A9: mov eax, ecx */ 1801 ecx = MEM32(esp + 0x4); /* 0x460042AB: mov ecx, dword ptr [esp + 4] */ 1802 edx = MEM32(ecx); /* 0x460042AF: mov edx, dword ptr [ecx] */ 1803 MEM32(eax) = edx; /* 0x460042B1: mov dword ptr [eax], edx */ 1804 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0); 1805 MEM32(ecx) = MEM32(ecx) & 0; /* 0x460042B3: and dword ptr [ecx], 0 */ 1806 _cf = 0; 1807 _flag_k = FK_TEST; 1808 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460042B6: ret 4 */ 1809 RECOMP_REGS_OUT(); 1810 } 1811 1812 void sub_460042B9(void) { 1813 int _fpu_cmp = 0; 1814 uint32_t _cf = 0; 1815 int _df = 1; 1816 uint32_t _flag_k = FK_NONE; 1817 uint32_t _flag_a = 0, _flag_b = 0; 1818 uint32_t _itail_tgt = 0; 1819 RECOMP_REGS_LOCALS 1820 RECOMP_ENTER(0x460042B9u); 1821 1822 L_460042B9: 1823 eax = MEM32(ecx); /* 0x460042B9: mov eax, dword ptr [ecx] */ 1824 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460042BB: ret */ 1825 RECOMP_REGS_OUT(); 1826 } 1827 1828 void sub_460042BC(void) { 1829 int _fpu_cmp = 0; 1830 uint32_t _cf = 0; 1831 int _df = 1; 1832 uint32_t _flag_k = FK_NONE; 1833 uint32_t _flag_a = 0, _flag_b = 0; 1834 uint32_t _itail_tgt = 0; 1835 RECOMP_REGS_LOCALS 1836 RECOMP_ENTER(0x460042BCu); 1837 1838 L_460042BC: 1839 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0); 1840 MEM32(ecx) = MEM32(ecx) & 0; /* 0x460042BC: and dword ptr [ecx], 0 */ 1841 _cf = 0; 1842 _flag_k = FK_TEST; 1843 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460042BF: ret */ 1844 RECOMP_REGS_OUT(); 1845 } 1846 1847 void sub_460042C0(void) { 1848 int _fpu_cmp = 0; 1849 uint32_t _cf = 0; 1850 int _df = 1; 1851 uint32_t _flag_k = FK_NONE; 1852 uint32_t _flag_a = 0, _flag_b = 0; 1853 uint32_t _itail_tgt = 0; 1854 RECOMP_REGS_LOCALS 1855 RECOMP_ENTER(0x460042C0u); 1856 1857 L_460042C0: 1858 PUSH32(esp, ebp); /* 0x460042C0: push ebp */ 1859 ebp = esp; /* 0x460042C1: mov ebp, esp */ 1860 PUSH32(esp, ecx); /* 0x460042C3: push ecx */ 1861 SET_LO8(eax, MEM8(ecx + 0x30)); /* 0x460042C4: mov al, byte ptr [ecx + 0x30] */ 1862 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 1863 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x460042C7: and dword ptr [ebp - 4], 0 */ 1864 _cf = 0; 1865 _flag_k = FK_TEST; 1866 PUSH32(esp, esi); /* 0x460042CB: push esi */ 1867 esi = ecx + 0x30; /* 0x460042CC: lea esi, [ecx + 0x30] */ 1868 PUSH32(esp, edi); /* 0x460042CF: push edi */ 1869 edi = MEM32(ebp + 0x8); /* 0x460042D0: mov edi, dword ptr [ebp + 8] */ 1870 PUSH32(esp, 0); /* 0x460042D3: push 0 */ 1871 ecx = edi; /* 0x460042D5: mov ecx, edi */ 1872 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x460042D7: mov byte ptr [edi], al */ 1873 RECOMP_ICALL(0x46001A60u); /* 0x460042D9: call 0x46001a60 */ /* not lifted */ 1874 RECOMP_FLAGS_IN(); 1875 PUSH32(esp, 0xFFFFFFFFu); /* 0x460042DE: push -1 */ 1876 PUSH32(esp, 0); /* 0x460042E0: push 0 */ 1877 PUSH32(esp, esi); /* 0x460042E2: push esi */ 1878 ecx = edi; /* 0x460042E3: mov ecx, edi */ 1879 RECOMP_ICALL(0x46007714u); /* 0x460042E5: call 0x46007714 */ /* not lifted */ 1880 RECOMP_FLAGS_IN(); 1881 eax = edi; /* 0x460042EA: mov eax, edi */ 1882 edi = POP32_VAL(esp); /* 0x460042EC: pop edi */ 1883 esi = POP32_VAL(esp); /* 0x460042ED: pop esi */ 1884 esp = ebp; ebp = POP32_VAL(esp); /* 0x460042EE: leave */ 1885 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460042EF: ret 4 */ 1886 RECOMP_REGS_OUT(); 1887 } 1888 1889 void sub_460042F2(void) { 1890 int _fpu_cmp = 0; 1891 uint32_t _cf = 0; 1892 int _df = 1; 1893 uint32_t _flag_k = FK_NONE; 1894 uint32_t _flag_a = 0, _flag_b = 0; 1895 uint32_t _itail_tgt = 0; 1896 RECOMP_REGS_LOCALS 1897 RECOMP_ENTER(0x460042F2u); 1898 1899 L_460042F2: 1900 RECOMP_ICALL(0x460246E0u); /* 0x460042F2: call 0x460246e0 */ /* not lifted */ 1901 RECOMP_FLAGS_IN(); 1902 ecx = eax; /* 0x460042F7: mov ecx, eax */ 1903 eax = MEM32(esp + 0x4); /* 0x460042F9: mov eax, dword ptr [esp + 4] */ 1904 MEM32(eax) = ecx; /* 0x460042FD: mov dword ptr [eax], ecx */ 1905 MEM32(eax + 0x4) = edx; /* 0x460042FF: mov dword ptr [eax + 4], edx */ 1906 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004302: ret 4 */ 1907 RECOMP_REGS_OUT(); 1908 } 1909 1910 void sub_46004305(void) { 1911 int _fpu_cmp = 0; 1912 uint32_t _cf = 0; 1913 int _df = 1; 1914 uint32_t _flag_k = FK_NONE; 1915 uint32_t _flag_a = 0, _flag_b = 0; 1916 uint32_t _itail_tgt = 0; 1917 RECOMP_REGS_LOCALS 1918 RECOMP_ENTER(0x46004305u); 1919 1920 L_46004305: 1921 PUSH32(esp, ebp); /* 0x46004305: push ebp */ 1922 ebp = esp; /* 0x46004306: mov ebp, esp */ 1923 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 1924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1925 esp = esp - 0x20u; /* 0x46004308: sub esp, 0x20 */ 1926 _flag_k = FK_CMP; 1927 PUSH32(esp, esi); /* 0x4600430B: push esi */ 1928 eax = ebp + (-0x20); /* 0x4600430C: lea eax, [ebp - 0x20] */ 1929 PUSH32(esp, edi); /* 0x4600430F: push edi */ 1930 PUSH32(esp, eax); /* 0x46004310: push eax */ 1931 RECOMP_ICALL(0x46024D7Du); /* 0x46004311: call 0x46024d7d */ /* not lifted */ 1932 RECOMP_FLAGS_IN(); 1933 esi = eax; /* 0x46004316: mov esi, eax */ 1934 edi = ebp + (-0x10); /* 0x46004318: lea edi, [ebp - 0x10] */ 1935 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x4600431B: movsd dword ptr es:[edi], dword ptr [esi] */ 1936 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x4600431C: movsd dword ptr es:[edi], dword ptr [esi] */ 1937 eax = MEM32(ebp + 0x8); /* 0x4600431D: mov eax, dword ptr [ebp + 8] */ 1938 ecx = POP32_VAL(esp); /* 0x46004320: pop ecx */ 1939 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x46004321: movsd dword ptr es:[edi], dword ptr [esi] */ 1940 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x46004322: movsd dword ptr es:[edi], dword ptr [esi] */ 1941 esi = ebp + (-0x10); /* 0x46004323: lea esi, [ebp - 0x10] */ 1942 edi = eax; /* 0x46004326: mov edi, eax */ 1943 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x46004328: movsd dword ptr es:[edi], dword ptr [esi] */ 1944 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x46004329: movsd dword ptr es:[edi], dword ptr [esi] */ 1945 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x4600432A: movsd dword ptr es:[edi], dword ptr [esi] */ 1946 MEM32(edi) = MEM32(esi); esi += _df * 4; edi += _df * 4; /* 0x4600432B: movsd dword ptr es:[edi], dword ptr [esi] */ 1947 edi = POP32_VAL(esp); /* 0x4600432C: pop edi */ 1948 esi = POP32_VAL(esp); /* 0x4600432D: pop esi */ 1949 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600432E: leave */ 1950 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600432F: ret 4 */ 1951 RECOMP_REGS_OUT(); 1952 } 1953 1954 void sub_46004332(void) { 1955 int _fpu_cmp = 0; 1956 uint32_t _cf = 0; 1957 int _df = 1; 1958 uint32_t _flag_k = FK_NONE; 1959 uint32_t _flag_a = 0, _flag_b = 0; 1960 uint32_t _itail_tgt = 0; 1961 RECOMP_REGS_LOCALS 1962 RECOMP_ENTER(0x46004332u); 1963 1964 L_46004332: 1965 RECOMP_ICALL(0x46024940u); /* 0x46004332: call 0x46024940 */ /* not lifted */ 1966 RECOMP_FLAGS_IN(); 1967 ecx = eax; /* 0x46004337: mov ecx, eax */ 1968 eax = MEM32(esp + 0x4); /* 0x46004339: mov eax, dword ptr [esp + 4] */ 1969 MEM32(eax) = ecx; /* 0x4600433D: mov dword ptr [eax], ecx */ 1970 MEM32(eax + 0x4) = edx; /* 0x4600433F: mov dword ptr [eax + 4], edx */ 1971 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004342: ret 4 */ 1972 RECOMP_REGS_OUT(); 1973 } 1974 1975 void sub_46004345(void) { 1976 int _fpu_cmp = 0; 1977 uint32_t _cf = 0; 1978 int _df = 1; 1979 uint32_t _flag_k = FK_NONE; 1980 uint32_t _flag_a = 0, _flag_b = 0; 1981 uint32_t _itail_tgt = 0; 1982 RECOMP_REGS_LOCALS 1983 RECOMP_ENTER(0x46004345u); 1984 1985 L_46004345: 1986 { _itail_tgt = (uint32_t)(MEM32(0x4602B010)); goto _ljump; } 1987 { RECOMP_REGS_OUT(); return; } /* end of function */ 1988 _ljump: 1989 switch (_itail_tgt) { 1990 case 0x46004345u: goto L_46004345; 1991 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1992 } 1993 RECOMP_REGS_OUT(); 1994 } 1995 1996 void sub_4600434B(void) { 1997 int _fpu_cmp = 0; 1998 uint32_t _cf = 0; 1999 int _df = 1; 2000 uint32_t _flag_k = FK_NONE; 2001 uint32_t _flag_a = 0, _flag_b = 0; 2002 uint32_t _itail_tgt = 0; 2003 RECOMP_REGS_LOCALS 2004 RECOMP_ENTER(0x4600434Bu); 2005 2006 L_4600434B: 2007 PUSH32(esp, ebp); /* 0x4600434B: push ebp */ 2008 ebp = esp; /* 0x4600434C: mov ebp, esp */ 2009 PUSH32(esp, ecx); /* 0x4600434E: push ecx */ 2010 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2011 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600434F: and dword ptr [ebp - 4], 0 */ 2012 _cf = 0; 2013 _flag_k = FK_TEST; 2014 RECOMP_ICALL(0x4602816Du); /* 0x46004353: call 0x4602816d */ /* not lifted */ 2015 RECOMP_FLAGS_IN(); 2016 ecx = MEM32(ebp + 0x8); /* 0x46004358: mov ecx, dword ptr [ebp + 8] */ 2017 MEM32(ecx) = eax; /* 0x4600435B: mov dword ptr [ecx], eax */ 2018 eax = ecx; /* 0x4600435D: mov eax, ecx */ 2019 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600435F: leave */ 2020 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004360: ret 4 */ 2021 RECOMP_REGS_OUT(); 2022 } 2023 2024 void sub_46004363(void) { 2025 int _fpu_cmp = 0; 2026 uint32_t _cf = 0; 2027 int _df = 1; 2028 uint32_t _flag_k = FK_NONE; 2029 uint32_t _flag_a = 0, _flag_b = 0; 2030 uint32_t _itail_tgt = 0; 2031 RECOMP_REGS_LOCALS 2032 RECOMP_ENTER(0x46004363u); 2033 2034 L_46004363: 2035 PUSH32(esp, esi); /* 0x46004363: push esi */ 2036 PUSH32(esp, edi); /* 0x46004364: push edi */ 2037 esi = ecx; /* 0x46004365: mov esi, ecx */ 2038 RECOMP_ICALL(0x46028173u); /* 0x46004367: call 0x46028173 */ /* not lifted */ 2039 RECOMP_FLAGS_IN(); 2040 edi = eax; /* 0x4600436C: mov edi, eax */ 2041 /* test edi, edi */ /* 0x4600436E: test edi, edi */ 2042 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2043 _cf = 0; 2044 _flag_k = FK_TEST; 2045 if (TEST_Z(_flag_a, _flag_b)) goto L_4600438A; /* 0x46004370: je 0x4600438a */ 2046 L_46004372: 2047 PUSH32(esp, edi); /* 0x46004372: push edi */ 2048 RECOMP_ICALL(0x46001A98u); /* 0x46004373: call 0x46001a98 */ /* not lifted */ 2049 RECOMP_FLAGS_IN(); 2050 ecx = POP32_VAL(esp); /* 0x46004378: pop ecx */ 2051 PUSH32(esp, eax); /* 0x46004379: push eax */ 2052 PUSH32(esp, edi); /* 0x4600437A: push edi */ 2053 ecx = esi; /* 0x4600437B: mov ecx, esi */ 2054 RECOMP_ICALL(0x46001A9Eu); /* 0x4600437D: call 0x46001a9e */ /* not lifted */ 2055 RECOMP_FLAGS_IN(); 2056 PUSH32(esp, edi); /* 0x46004382: push edi */ 2057 RECOMP_ICALL(MEM32(0x4602B00C)); /* 0x46004383: call dword ptr [0x4602b00c] */ 2058 RECOMP_FLAGS_IN(); 2059 ecx = POP32_VAL(esp); /* 0x46004389: pop ecx */ 2060 L_4600438A: 2061 /* cmp MEM32(esi + 0x8), 0 */ /* 0x4600438A: cmp dword ptr [esi + 8], 0 */ 2062 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0); 2063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2064 _flag_k = FK_CMP; 2065 if (CMP_EQ(_flag_a, _flag_b)) goto L_460043A3; /* 0x4600438E: je 0x460043a3 */ 2066 L_46004390: 2067 esi = MEM32(esi + 0x4); /* 0x46004390: mov esi, dword ptr [esi + 4] */ 2068 /* test esi, esi */ /* 0x46004393: test esi, esi */ 2069 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2070 _cf = 0; 2071 _flag_k = FK_TEST; 2072 if (TEST_NZ(_flag_a, _flag_b)) goto L_4600439F; /* 0x46004395: jne 0x4600439f */ 2073 L_46004397: 2074 eax = 0x4602B7C9u; /* 0x46004397: mov eax, 0x4602b7c9 */ 2075 L_4600439C: 2076 edi = POP32_VAL(esp); /* 0x4600439C: pop edi */ 2077 esi = POP32_VAL(esp); /* 0x4600439D: pop esi */ 2078 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600439E: ret */ 2079 L_4600439F: 2080 eax = esi; /* 0x4600439F: mov eax, esi */ 2081 RECOMP_BACKEDGE(); 2082 goto L_4600439C; /* 0x460043A1: jmp 0x4600439c */ 2083 L_460043A3: 2084 eax = 0x4602B884u; /* 0x460043A3: mov eax, 0x4602b884 */ 2085 RECOMP_BACKEDGE(); 2086 goto L_4600439C; /* 0x460043A8: jmp 0x4600439c */ 2087 { RECOMP_REGS_OUT(); return; } /* end of function */ 2088 RECOMP_REGS_OUT(); 2089 } 2090 2091 void sub_460043AA(void) { 2092 int _fpu_cmp = 0; 2093 uint32_t _cf = 0; 2094 int _df = 1; 2095 uint32_t _flag_k = FK_NONE; 2096 uint32_t _flag_a = 0, _flag_b = 0; 2097 uint32_t _itail_tgt = 0; 2098 RECOMP_REGS_LOCALS 2099 RECOMP_ENTER(0x460043AAu); 2100 2101 L_460043AA: 2102 PUSH32(esp, esi); /* 0x460043AA: push esi */ 2103 PUSH32(esp, edi); /* 0x460043AB: push edi */ 2104 esi = ecx; /* 0x460043AC: mov esi, ecx */ 2105 RECOMP_ICALL(0x46028179u); /* 0x460043AE: call 0x46028179 */ /* not lifted */ 2106 RECOMP_FLAGS_IN(); 2107 edi = eax; /* 0x460043B3: mov edi, eax */ 2108 /* test edi, edi */ /* 0x460043B5: test edi, edi */ 2109 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2110 _cf = 0; 2111 _flag_k = FK_TEST; 2112 if (TEST_Z(_flag_a, _flag_b)) goto L_460043D2; /* 0x460043B7: je 0x460043d2 */ 2113 L_460043B9: 2114 PUSH32(esp, edi); /* 0x460043B9: push edi */ 2115 RECOMP_ICALL(0x46001A98u); /* 0x460043BA: call 0x46001a98 */ /* not lifted */ 2116 RECOMP_FLAGS_IN(); 2117 ecx = POP32_VAL(esp); /* 0x460043BF: pop ecx */ 2118 PUSH32(esp, eax); /* 0x460043C0: push eax */ 2119 PUSH32(esp, edi); /* 0x460043C1: push edi */ 2120 ecx = esi + 0x10; /* 0x460043C2: lea ecx, [esi + 0x10] */ 2121 RECOMP_ICALL(0x46001A9Eu); /* 0x460043C5: call 0x46001a9e */ /* not lifted */ 2122 RECOMP_FLAGS_IN(); 2123 PUSH32(esp, edi); /* 0x460043CA: push edi */ 2124 RECOMP_ICALL(MEM32(0x4602B00C)); /* 0x460043CB: call dword ptr [0x4602b00c] */ 2125 RECOMP_FLAGS_IN(); 2126 ecx = POP32_VAL(esp); /* 0x460043D1: pop ecx */ 2127 L_460043D2: 2128 /* cmp MEM32(esi + 0x18), 0 */ /* 0x460043D2: cmp dword ptr [esi + 0x18], 0 */ 2129 _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(0); 2130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2131 _flag_k = FK_CMP; 2132 if (CMP_EQ(_flag_a, _flag_b)) goto L_460043EB; /* 0x460043D6: je 0x460043eb */ 2133 L_460043D8: 2134 esi = MEM32(esi + 0x14); /* 0x460043D8: mov esi, dword ptr [esi + 0x14] */ 2135 /* test esi, esi */ /* 0x460043DB: test esi, esi */ 2136 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2137 _cf = 0; 2138 _flag_k = FK_TEST; 2139 if (TEST_NZ(_flag_a, _flag_b)) goto L_460043E7; /* 0x460043DD: jne 0x460043e7 */ 2140 L_460043DF: 2141 eax = 0x4602B7C9u; /* 0x460043DF: mov eax, 0x4602b7c9 */ 2142 L_460043E4: 2143 edi = POP32_VAL(esp); /* 0x460043E4: pop edi */ 2144 esi = POP32_VAL(esp); /* 0x460043E5: pop esi */ 2145 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460043E6: ret */ 2146 L_460043E7: 2147 eax = esi; /* 0x460043E7: mov eax, esi */ 2148 RECOMP_BACKEDGE(); 2149 goto L_460043E4; /* 0x460043E9: jmp 0x460043e4 */ 2150 L_460043EB: 2151 eax = 0x4602B8DCu; /* 0x460043EB: mov eax, 0x4602b8dc */ 2152 RECOMP_BACKEDGE(); 2153 goto L_460043E4; /* 0x460043F0: jmp 0x460043e4 */ 2154 { RECOMP_REGS_OUT(); return; } /* end of function */ 2155 RECOMP_REGS_OUT(); 2156 } 2157 2158 void sub_460043F2(void) { 2159 int _fpu_cmp = 0; 2160 uint32_t _cf = 0; 2161 int _df = 1; 2162 uint32_t _flag_k = FK_NONE; 2163 uint32_t _flag_a = 0, _flag_b = 0; 2164 uint32_t _itail_tgt = 0; 2165 RECOMP_REGS_LOCALS 2166 RECOMP_ENTER(0x460043F2u); 2167 2168 L_460043F2: 2169 eax = 0x4602B964u; /* 0x460043F2: mov eax, 0x4602b964 */ 2170 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460043F7: ret */ 2171 RECOMP_REGS_OUT(); 2172 } 2173 2174 void sub_460043F8(void) { 2175 int _fpu_cmp = 0; 2176 uint32_t _cf = 0; 2177 int _df = 1; 2178 uint32_t _flag_k = FK_NONE; 2179 uint32_t _flag_a = 0, _flag_b = 0; 2180 uint32_t _itail_tgt = 0; 2181 RECOMP_REGS_LOCALS 2182 RECOMP_ENTER(0x460043F8u); 2183 2184 L_460043F8: 2185 eax = 0x4602B96Cu; /* 0x460043F8: mov eax, 0x4602b96c */ 2186 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460043FD: ret */ 2187 RECOMP_REGS_OUT(); 2188 } 2189 2190 void sub_460043FE(void) { 2191 int _fpu_cmp = 0; 2192 uint32_t _cf = 0; 2193 int _df = 1; 2194 uint32_t _flag_k = FK_NONE; 2195 uint32_t _flag_a = 0, _flag_b = 0; 2196 uint32_t _itail_tgt = 0; 2197 RECOMP_REGS_LOCALS 2198 RECOMP_ENTER(0x460043FEu); 2199 2200 L_460043FE: 2201 eax = 0x4602B972u; /* 0x460043FE: mov eax, 0x4602b972 */ 2202 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004403: ret */ 2203 RECOMP_REGS_OUT(); 2204 } 2205 2206 void sub_46004404(void) { 2207 int _fpu_cmp = 0; 2208 uint32_t _cf = 0; 2209 int _df = 1; 2210 uint32_t _flag_k = FK_NONE; 2211 uint32_t _flag_a = 0, _flag_b = 0; 2212 uint32_t _itail_tgt = 0; 2213 RECOMP_REGS_LOCALS 2214 RECOMP_ENTER(0x46004404u); 2215 2216 L_46004404: 2217 eax = 0x4602B978u; /* 0x46004404: mov eax, 0x4602b978 */ 2218 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004409: ret */ 2219 RECOMP_REGS_OUT(); 2220 } 2221 2222 void sub_4600440A(void) { 2223 int _fpu_cmp = 0; 2224 uint32_t _cf = 0; 2225 int _df = 1; 2226 uint32_t _flag_k = FK_NONE; 2227 uint32_t _flag_a = 0, _flag_b = 0; 2228 uint32_t _itail_tgt = 0; 2229 RECOMP_REGS_LOCALS 2230 RECOMP_ENTER(0x4600440Au); 2231 2232 L_4600440A: 2233 eax = 0x46028338u; /* 0x4600440A: mov eax, 0x46028338 */ 2234 RECOMP_ICALL(0x46001535u); /* 0x4600440F: call 0x46001535 */ /* not lifted */ 2235 RECOMP_FLAGS_IN(); 2236 PUSH32(esp, ecx); /* 0x46004414: push ecx */ 2237 PUSH32(esp, ebx); /* 0x46004415: push ebx */ 2238 PUSH32(esp, esi); /* 0x46004416: push esi */ 2239 PUSH32(esp, edi); /* 0x46004417: push edi */ 2240 edi = MEM32(ebp + 0x8); /* 0x46004418: mov edi, dword ptr [ebp + 8] */ 2241 esi = ecx; /* 0x4600441B: mov esi, ecx */ 2242 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2243 ebx = 0; /* 0x4600441D: xor ebx, ebx */ 2244 _cf = 0; 2245 _flag_k = FK_TEST; 2246 SET_LO8(eax, MEM8(edi)); /* 0x4600441F: mov al, byte ptr [edi] */ 2247 PUSH32(esp, ebx); /* 0x46004421: push ebx */ 2248 MEM32(ebp + (-0x10)) = esi; /* 0x46004422: mov dword ptr [ebp - 0x10], esi */ 2249 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x46004425: mov byte ptr [esi], al */ 2250 RECOMP_ICALL(0x46001A60u); /* 0x46004427: call 0x46001a60 */ /* not lifted */ 2251 RECOMP_FLAGS_IN(); 2252 PUSH32(esp, 0xFFFFFFFFu); /* 0x4600442C: push -1 */ 2253 PUSH32(esp, ebx); /* 0x4600442E: push ebx */ 2254 PUSH32(esp, edi); /* 0x4600442F: push edi */ 2255 ecx = esi; /* 0x46004430: mov ecx, esi */ 2256 RECOMP_ICALL(0x46007714u); /* 0x46004432: call 0x46007714 */ /* not lifted */ 2257 RECOMP_FLAGS_IN(); 2258 SET_LO8(eax, MEM8(edi + 0x10)); /* 0x46004437: mov al, byte ptr [edi + 0x10] */ 2259 ecx = esi + 0x10; /* 0x4600443A: lea ecx, [esi + 0x10] */ 2260 PUSH32(esp, ebx); /* 0x4600443D: push ebx */ 2261 MEM32(ebp + (-0x4)) = ebx; /* 0x4600443E: mov dword ptr [ebp - 4], ebx */ 2262 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x46004441: mov byte ptr [ecx], al */ 2263 RECOMP_ICALL(0x46001A60u); /* 0x46004443: call 0x46001a60 */ /* not lifted */ 2264 RECOMP_FLAGS_IN(); 2265 PUSH32(esp, 0xFFFFFFFFu); /* 0x46004448: push -1 */ 2266 eax = edi + 0x10; /* 0x4600444A: lea eax, [edi + 0x10] */ 2267 PUSH32(esp, ebx); /* 0x4600444D: push ebx */ 2268 PUSH32(esp, eax); /* 0x4600444E: push eax */ 2269 ecx = esi + 0x10; /* 0x4600444F: lea ecx, [esi + 0x10] */ 2270 RECOMP_ICALL(0x46007714u); /* 0x46004452: call 0x46007714 */ /* not lifted */ 2271 RECOMP_FLAGS_IN(); 2272 SET_LO8(eax, MEM8(edi + 0x20)); /* 0x46004457: mov al, byte ptr [edi + 0x20] */ 2273 ecx = esi + 0x20; /* 0x4600445A: lea ecx, [esi + 0x20] */ 2274 PUSH32(esp, ebx); /* 0x4600445D: push ebx */ 2275 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x4600445E: mov byte ptr [ebp - 4], 1 */ 2276 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x46004462: mov byte ptr [ecx], al */ 2277 RECOMP_ICALL(0x46001A60u); /* 0x46004464: call 0x46001a60 */ /* not lifted */ 2278 RECOMP_FLAGS_IN(); 2279 PUSH32(esp, 0xFFFFFFFFu); /* 0x46004469: push -1 */ 2280 eax = edi + 0x20; /* 0x4600446B: lea eax, [edi + 0x20] */ 2281 PUSH32(esp, ebx); /* 0x4600446E: push ebx */ 2282 PUSH32(esp, eax); /* 0x4600446F: push eax */ 2283 ecx = esi + 0x20; /* 0x46004470: lea ecx, [esi + 0x20] */ 2284 RECOMP_ICALL(0x46007714u); /* 0x46004473: call 0x46007714 */ /* not lifted */ 2285 RECOMP_FLAGS_IN(); 2286 eax = edi + 0x30; /* 0x46004478: lea eax, [edi + 0x30] */ 2287 edi = esi + 0x30; /* 0x4600447B: lea edi, [esi + 0x30] */ 2288 MEM32(ebp + 0x8) = eax; /* 0x4600447E: mov dword ptr [ebp + 8], eax */ 2289 PUSH32(esp, ebx); /* 0x46004481: push ebx */ 2290 SET_LO8(eax, MEM8(eax)); /* 0x46004482: mov al, byte ptr [eax] */ 2291 ecx = edi; /* 0x46004484: mov ecx, edi */ 2292 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x46004486: mov byte ptr [ebp - 4], 2 */ 2293 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x4600448A: mov byte ptr [edi], al */ 2294 RECOMP_ICALL(0x46001A60u); /* 0x4600448C: call 0x46001a60 */ /* not lifted */ 2295 RECOMP_FLAGS_IN(); 2296 PUSH32(esp, 0xFFFFFFFFu); /* 0x46004491: push -1 */ 2297 PUSH32(esp, ebx); /* 0x46004493: push ebx */ 2298 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x46004494: push dword ptr [ebp + 8] */ 2299 ecx = edi; /* 0x46004497: mov ecx, edi */ 2300 RECOMP_ICALL(0x46007714u); /* 0x46004499: call 0x46007714 */ /* not lifted */ 2301 RECOMP_FLAGS_IN(); 2302 ecx = MEM32(ebp + (-0xC)); /* 0x4600449E: mov ecx, dword ptr [ebp - 0xc] */ 2303 eax = esi; /* 0x460044A1: mov eax, esi */ 2304 edi = POP32_VAL(esp); /* 0x460044A3: pop edi */ 2305 esi = POP32_VAL(esp); /* 0x460044A4: pop esi */ 2306 ebx = POP32_VAL(esp); /* 0x460044A5: pop ebx */ 2307 MEM32(FS_BASE + (0)) = ecx; /* 0x460044A6: mov dword ptr fs:[0], ecx */ 2308 esp = ebp; ebp = POP32_VAL(esp); /* 0x460044AD: leave */ 2309 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460044AE: ret 4 */ 2310 RECOMP_REGS_OUT(); 2311 } 2312 2313 void sub_460044B1(void) { 2314 int _fpu_cmp = 0; 2315 uint32_t _cf = 0; 2316 int _df = 1; 2317 uint32_t _flag_k = FK_NONE; 2318 uint32_t _flag_a = 0, _flag_b = 0; 2319 uint32_t _itail_tgt = 0; 2320 RECOMP_REGS_LOCALS 2321 RECOMP_ENTER(0x460044B1u); 2322 2323 L_460044B1: 2324 PUSH32(esp, esi); /* 0x460044B1: push esi */ 2325 PUSH32(esp, edi); /* 0x460044B2: push edi */ 2326 edi = MEM32(esp + 0xC); /* 0x460044B3: mov edi, dword ptr [esp + 0xc] */ 2327 PUSH32(esp, 0xFFFFFFFFu); /* 0x460044B7: push -1 */ 2328 PUSH32(esp, 0); /* 0x460044B9: push 0 */ 2329 esi = ecx; /* 0x460044BB: mov esi, ecx */ 2330 PUSH32(esp, edi); /* 0x460044BD: push edi */ 2331 RECOMP_ICALL(0x46007714u); /* 0x460044BE: call 0x46007714 */ /* not lifted */ 2332 RECOMP_FLAGS_IN(); 2333 PUSH32(esp, 0xFFFFFFFFu); /* 0x460044C3: push -1 */ 2334 eax = edi + 0x10; /* 0x460044C5: lea eax, [edi + 0x10] */ 2335 PUSH32(esp, 0); /* 0x460044C8: push 0 */ 2336 PUSH32(esp, eax); /* 0x460044CA: push eax */ 2337 ecx = esi + 0x10; /* 0x460044CB: lea ecx, [esi + 0x10] */ 2338 RECOMP_ICALL(0x46007714u); /* 0x460044CE: call 0x46007714 */ /* not lifted */ 2339 RECOMP_FLAGS_IN(); 2340 PUSH32(esp, 0xFFFFFFFFu); /* 0x460044D3: push -1 */ 2341 eax = edi + 0x20; /* 0x460044D5: lea eax, [edi + 0x20] */ 2342 PUSH32(esp, 0); /* 0x460044D8: push 0 */ 2343 PUSH32(esp, eax); /* 0x460044DA: push eax */ 2344 ecx = esi + 0x20; /* 0x460044DB: lea ecx, [esi + 0x20] */ 2345 RECOMP_ICALL(0x46007714u); /* 0x460044DE: call 0x46007714 */ /* not lifted */ 2346 RECOMP_FLAGS_IN(); 2347 PUSH32(esp, 0xFFFFFFFFu); /* 0x460044E3: push -1 */ 2348 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x30u); 2349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2350 edi = edi + 0x30u; /* 0x460044E5: add edi, 0x30 */ 2351 _flag_k = FK_ADD; 2352 PUSH32(esp, 0); /* 0x460044E8: push 0 */ 2353 PUSH32(esp, edi); /* 0x460044EA: push edi */ 2354 ecx = esi + 0x30; /* 0x460044EB: lea ecx, [esi + 0x30] */ 2355 RECOMP_ICALL(0x46007714u); /* 0x460044EE: call 0x46007714 */ /* not lifted */ 2356 RECOMP_FLAGS_IN(); 2357 eax = esi; /* 0x460044F3: mov eax, esi */ 2358 edi = POP32_VAL(esp); /* 0x460044F5: pop edi */ 2359 esi = POP32_VAL(esp); /* 0x460044F6: pop esi */ 2360 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460044F7: ret 4 */ 2361 RECOMP_REGS_OUT(); 2362 } 2363 2364 void sub_460044FA(void) { 2365 int _fpu_cmp = 0; 2366 uint32_t _cf = 0; 2367 int _df = 1; 2368 uint32_t _flag_k = FK_NONE; 2369 uint32_t _flag_a = 0, _flag_b = 0; 2370 uint32_t _itail_tgt = 0; 2371 RECOMP_REGS_LOCALS 2372 RECOMP_ENTER(0x460044FAu); 2373 2374 L_460044FA: 2375 PUSH32(esp, 0x4602B41Cu); /* 0x460044FA: push 0x4602b41c */ 2376 RECOMP_ICALL(0x46023A9Bu); /* 0x460044FF: call 0x46023a9b */ /* not lifted */ 2377 RECOMP_FLAGS_IN(); 2378 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004504: ret */ 2379 RECOMP_REGS_OUT(); 2380 } 2381 2382 void sub_46004505(void) { 2383 int _fpu_cmp = 0; 2384 uint32_t _cf = 0; 2385 int _df = 1; 2386 uint32_t _flag_k = FK_NONE; 2387 uint32_t _flag_a = 0, _flag_b = 0; 2388 uint32_t _itail_tgt = 0; 2389 RECOMP_REGS_LOCALS 2390 RECOMP_ENTER(0x46004505u); 2391 2392 L_46004505: 2393 PUSH32(esp, ebp); /* 0x46004505: push ebp */ 2394 ebp = esp; /* 0x46004506: mov ebp, esp */ 2395 PUSH32(esp, ecx); /* 0x46004508: push ecx */ 2396 PUSH32(esp, esi); /* 0x46004509: push esi */ 2397 esi = ecx; /* 0x4600450A: mov esi, ecx */ 2398 ecx = ebp + (-0x4); /* 0x4600450C: lea ecx, [ebp - 4] */ 2399 RECOMP_ICALL(0x46001589u); /* 0x4600450F: call 0x46001589 */ /* not lifted */ 2400 RECOMP_FLAGS_IN(); 2401 /* cmp MEM32(esi), 0 */ /* 0x46004514: cmp dword ptr [esi], 0 */ 2402 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0); 2403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2404 _flag_k = FK_CMP; 2405 if (CMP_NE(_flag_a, _flag_b)) goto L_46004526; /* 0x46004517: jne 0x46004526 */ 2406 L_46004519: 2407 _flag_a = (uint32_t)(MEM32(0x4605C6C4)); _flag_b = (uint32_t)(1); 2408 MEM32(0x4605C6C4) = MEM32(0x4605C6C4) + 1; /* 0x46004519: inc dword ptr [0x4605c6c4] */ 2409 _flag_k = FK_INC; 2410 eax = MEM32(0x4605C6C4); /* 0x4600451F: mov eax, dword ptr [0x4605c6c4] */ 2411 MEM32(esi) = eax; /* 0x46004524: mov dword ptr [esi], eax */ 2412 L_46004526: 2413 esi = MEM32(esi); /* 0x46004526: mov esi, dword ptr [esi] */ 2414 ecx = ebp + (-0x4); /* 0x46004528: lea ecx, [ebp - 4] */ 2415 RECOMP_ICALL(0x460015FBu); /* 0x4600452B: call 0x460015fb */ /* not lifted */ 2416 RECOMP_FLAGS_IN(); 2417 eax = esi; /* 0x46004530: mov eax, esi */ 2418 esi = POP32_VAL(esp); /* 0x46004532: pop esi */ 2419 esp = ebp; ebp = POP32_VAL(esp); /* 0x46004533: leave */ 2420 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004534: ret */ 2421 RECOMP_REGS_OUT(); 2422 } 2423 2424 void sub_46004535(void) { 2425 int _fpu_cmp = 0; 2426 uint32_t _cf = 0; 2427 int _df = 1; 2428 uint32_t _flag_k = FK_NONE; 2429 uint32_t _flag_a = 0, _flag_b = 0; 2430 uint32_t _itail_tgt = 0; 2431 RECOMP_REGS_LOCALS 2432 RECOMP_ENTER(0x46004535u); 2433 2434 L_46004535: 2435 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2436 eax = eax | 0xFFFFFFFFu; /* 0x46004535: or eax, 0xffffffff */ 2437 _cf = 0; 2438 _flag_k = FK_TEST; 2439 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004538: ret */ 2440 RECOMP_REGS_OUT(); 2441 } 2442 2443 void sub_46004539(void) { 2444 int _fpu_cmp = 0; 2445 uint32_t _cf = 0; 2446 int _df = 1; 2447 uint32_t _flag_k = FK_NONE; 2448 uint32_t _flag_a = 0, _flag_b = 0; 2449 uint32_t _itail_tgt = 0; 2450 RECOMP_REGS_LOCALS 2451 RECOMP_ENTER(0x46004539u); 2452 2453 L_46004539: 2454 eax = ecx; /* 0x46004539: mov eax, ecx */ 2455 ecx = MEM32(esp + 0x4); /* 0x4600453B: mov ecx, dword ptr [esp + 4] */ 2456 MEM32(eax + 0x4) = ecx; /* 0x4600453F: mov dword ptr [eax + 4], ecx */ 2457 MEM32(eax) = 0x4602B424u; /* 0x46004542: mov dword ptr [eax], 0x4602b424 */ 2458 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004548: ret 4 */ 2459 RECOMP_REGS_OUT(); 2460 } 2461 2462 void sub_4600454B(void) { 2463 int _fpu_cmp = 0; 2464 uint32_t _cf = 0; 2465 int _df = 1; 2466 uint32_t _flag_k = FK_NONE; 2467 uint32_t _flag_a = 0, _flag_b = 0; 2468 uint32_t _itail_tgt = 0; 2469 RECOMP_REGS_LOCALS 2470 RECOMP_ENTER(0x4600454Bu); 2471 2472 L_4600454B: 2473 eax = ecx; /* 0x4600454B: mov eax, ecx */ 2474 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600454D: ret 4 */ 2475 RECOMP_REGS_OUT(); 2476 } 2477 2478 void sub_46004550(void) { 2479 int _fpu_cmp = 0; 2480 uint32_t _cf = 0; 2481 int _df = 1; 2482 uint32_t _flag_k = FK_NONE; 2483 uint32_t _flag_a = 0, _flag_b = 0; 2484 uint32_t _itail_tgt = 0; 2485 RECOMP_REGS_LOCALS 2486 RECOMP_ENTER(0x46004550u); 2487 2488 L_46004550: 2489 eax = MEM32(esp + 0x4); /* 0x46004550: mov eax, dword ptr [esp + 4] */ 2490 PUSH32(esp, esi); /* 0x46004554: push esi */ 2491 esi = ecx; /* 0x46004555: mov esi, ecx */ 2492 ecx = MEM32(eax); /* 0x46004557: mov ecx, dword ptr [eax] */ 2493 MEM32(esi) = ecx; /* 0x46004559: mov dword ptr [esi], ecx */ 2494 RECOMP_ICALL(0x46001BBFu); /* 0x4600455B: call 0x46001bbf */ /* not lifted */ 2495 RECOMP_FLAGS_IN(); 2496 eax = esi; /* 0x46004560: mov eax, esi */ 2497 esi = POP32_VAL(esp); /* 0x46004562: pop esi */ 2498 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004563: ret 4 */ 2499 RECOMP_REGS_OUT(); 2500 } 2501 2502 void sub_46004566(void) { 2503 int _fpu_cmp = 0; 2504 uint32_t _cf = 0; 2505 int _df = 1; 2506 uint32_t _flag_k = FK_NONE; 2507 uint32_t _flag_a = 0, _flag_b = 0; 2508 uint32_t _itail_tgt = 0; 2509 RECOMP_REGS_LOCALS 2510 RECOMP_ENTER(0x46004566u); 2511 2512 L_46004566: 2513 PUSH32(esp, esi); /* 0x46004566: push esi */ 2514 esi = ecx; /* 0x46004567: mov esi, ecx */ 2515 PUSH32(esp, edi); /* 0x46004569: push edi */ 2516 edi = MEM32(esp + 0xC); /* 0x4600456A: mov edi, dword ptr [esp + 0xc] */ 2517 ecx = MEM32(esi); /* 0x4600456E: mov ecx, dword ptr [esi] */ 2518 /* cmp ecx, MEM32(edi) */ /* 0x46004570: cmp ecx, dword ptr [edi] */ 2519 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2521 _flag_k = FK_CMP; 2522 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600458E; /* 0x46004572: je 0x4600458e */ 2523 L_46004574: 2524 RECOMP_ICALL(0x46001CBEu); /* 0x46004574: call 0x46001cbe */ /* not lifted */ 2525 RECOMP_FLAGS_IN(); 2526 /* test eax, eax */ /* 0x46004579: test eax, eax */ 2527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2528 _cf = 0; 2529 _flag_k = FK_TEST; 2530 if (TEST_Z(_flag_a, _flag_b)) goto L_46004585; /* 0x4600457B: je 0x46004585 */ 2531 L_4600457D: 2532 edx = MEM32(eax); /* 0x4600457D: mov edx, dword ptr [eax] */ 2533 PUSH32(esp, 1); /* 0x4600457F: push 1 */ 2534 ecx = eax; /* 0x46004581: mov ecx, eax */ 2535 RECOMP_ICALL(MEM32(edx)); /* 0x46004583: call dword ptr [edx] */ 2536 RECOMP_FLAGS_IN(); 2537 L_46004585: 2538 ecx = MEM32(edi); /* 0x46004585: mov ecx, dword ptr [edi] */ 2539 MEM32(esi) = ecx; /* 0x46004587: mov dword ptr [esi], ecx */ 2540 RECOMP_ICALL(0x46001BBFu); /* 0x46004589: call 0x46001bbf */ /* not lifted */ 2541 RECOMP_FLAGS_IN(); 2542 L_4600458E: 2543 eax = esi; /* 0x4600458E: mov eax, esi */ 2544 edi = POP32_VAL(esp); /* 0x46004590: pop edi */ 2545 esi = POP32_VAL(esp); /* 0x46004591: pop esi */ 2546 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004592: ret 4 */ 2547 RECOMP_REGS_OUT(); 2548 } 2549 2550 void sub_46004595(void) { 2551 int _fpu_cmp = 0; 2552 uint32_t _cf = 0; 2553 int _df = 1; 2554 uint32_t _flag_k = FK_NONE; 2555 uint32_t _flag_a = 0, _flag_b = 0; 2556 uint32_t _itail_tgt = 0; 2557 RECOMP_REGS_LOCALS 2558 RECOMP_ENTER(0x46004595u); 2559 2560 L_46004595: 2561 PUSH32(esp, ebp); /* 0x46004595: push ebp */ 2562 ebp = esp; /* 0x46004596: mov ebp, esp */ 2563 PUSH32(esp, ecx); /* 0x46004598: push ecx */ 2564 PUSH32(esp, esi); /* 0x46004599: push esi */ 2565 esi = MEM32(ecx); /* 0x4600459A: mov esi, dword ptr [ecx] */ 2566 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2567 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x4600459C: and dword ptr [ebp - 4], 0 */ 2568 _cf = 0; 2569 _flag_k = FK_TEST; 2570 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 2571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2572 esi = esi + 0x18u; /* 0x460045A0: add esi, 0x18 */ 2573 _flag_k = FK_ADD; 2574 PUSH32(esp, edi); /* 0x460045A3: push edi */ 2575 edi = MEM32(ebp + 0x8); /* 0x460045A4: mov edi, dword ptr [ebp + 8] */ 2576 SET_LO8(eax, MEM8(esi)); /* 0x460045A7: mov al, byte ptr [esi] */ 2577 PUSH32(esp, 0); /* 0x460045A9: push 0 */ 2578 ecx = edi; /* 0x460045AB: mov ecx, edi */ 2579 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x460045AD: mov byte ptr [edi], al */ 2580 RECOMP_ICALL(0x46001A60u); /* 0x460045AF: call 0x46001a60 */ /* not lifted */ 2581 RECOMP_FLAGS_IN(); 2582 PUSH32(esp, 0xFFFFFFFFu); /* 0x460045B4: push -1 */ 2583 PUSH32(esp, 0); /* 0x460045B6: push 0 */ 2584 PUSH32(esp, esi); /* 0x460045B8: push esi */ 2585 ecx = edi; /* 0x460045B9: mov ecx, edi */ 2586 RECOMP_ICALL(0x46007714u); /* 0x460045BB: call 0x46007714 */ /* not lifted */ 2587 RECOMP_FLAGS_IN(); 2588 eax = edi; /* 0x460045C0: mov eax, edi */ 2589 edi = POP32_VAL(esp); /* 0x460045C2: pop edi */ 2590 esi = POP32_VAL(esp); /* 0x460045C3: pop esi */ 2591 esp = ebp; ebp = POP32_VAL(esp); /* 0x460045C4: leave */ 2592 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460045C5: ret 4 */ 2593 RECOMP_REGS_OUT(); 2594 } 2595 2596 void sub_460045C8(void) { 2597 int _fpu_cmp = 0; 2598 uint32_t _cf = 0; 2599 int _df = 1; 2600 uint32_t _flag_k = FK_NONE; 2601 uint32_t _flag_a = 0, _flag_b = 0; 2602 uint32_t _itail_tgt = 0; 2603 RECOMP_REGS_LOCALS 2604 RECOMP_ENTER(0x460045C8u); 2605 2606 L_460045C8: 2607 PUSH32(esp, MEM32(esp + 0x4)); /* 0x460045C8: push dword ptr [esp + 4] */ 2608 RECOMP_ICALL(0x46024F4Du); /* 0x460045CC: call 0x46024f4d */ /* not lifted */ 2609 RECOMP_FLAGS_IN(); 2610 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2611 _cf = (LO8(eax)) != 0; 2612 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x460045D1: neg al */ 2613 _flag_k = FK_NARROW(FK_CMP, 24); 2614 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x460045D3: sbb eax, eax */ 2615 eax = _sc ? 0xFFFFFFFFu : 0; 2616 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2617 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2618 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2619 eax = eax + 1; /* 0x460045D5: inc eax */ 2620 _flag_k = FK_INC; 2621 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460045D6: ret 4 */ 2622 RECOMP_REGS_OUT(); 2623 } 2624 2625 void sub_460045D9(void) { 2626 int _fpu_cmp = 0; 2627 uint32_t _cf = 0; 2628 int _df = 1; 2629 uint32_t _flag_k = FK_NONE; 2630 uint32_t _flag_a = 0, _flag_b = 0; 2631 uint32_t _itail_tgt = 0; 2632 RECOMP_REGS_LOCALS 2633 RECOMP_ENTER(0x460045D9u); 2634 2635 L_460045D9: 2636 eax = ecx; /* 0x460045D9: mov eax, ecx */ 2637 ecx = MEM32(esp + 0x4); /* 0x460045DB: mov ecx, dword ptr [esp + 4] */ 2638 MEM32(eax) = ecx; /* 0x460045DF: mov dword ptr [eax], ecx */ 2639 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460045E1: ret 4 */ 2640 RECOMP_REGS_OUT(); 2641 } 2642 2643 void sub_460045E4(void) { 2644 int _fpu_cmp = 0; 2645 uint32_t _cf = 0; 2646 int _df = 1; 2647 uint32_t _flag_k = FK_NONE; 2648 uint32_t _flag_a = 0, _flag_b = 0; 2649 uint32_t _itail_tgt = 0; 2650 RECOMP_REGS_LOCALS 2651 RECOMP_ENTER(0x460045E4u); 2652 2653 L_460045E4: 2654 eax = ecx; /* 0x460045E4: mov eax, ecx */ 2655 ecx = MEM32(esp + 0x4); /* 0x460045E6: mov ecx, dword ptr [esp + 4] */ 2656 ecx = MEM32(ecx); /* 0x460045EA: mov ecx, dword ptr [ecx] */ 2657 MEM32(eax) = ecx; /* 0x460045EC: mov dword ptr [eax], ecx */ 2658 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460045EE: ret 4 */ 2659 RECOMP_REGS_OUT(); 2660 } 2661 2662 void sub_460045F1(void) { 2663 int _fpu_cmp = 0; 2664 uint32_t _cf = 0; 2665 int _df = 1; 2666 uint32_t _flag_k = FK_NONE; 2667 uint32_t _flag_a = 0, _flag_b = 0; 2668 uint32_t _itail_tgt = 0; 2669 RECOMP_REGS_LOCALS 2670 RECOMP_ENTER(0x460045F1u); 2671 2672 L_460045F1: 2673 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(0); 2674 MEM32(ecx + 0x4) = MEM32(ecx + 0x4) & 0; /* 0x460045F1: and dword ptr [ecx + 4], 0 */ 2675 _cf = 0; 2676 _flag_k = FK_TEST; 2677 MEM32(ecx) = 0x4602B424u; /* 0x460045F5: mov dword ptr [ecx], 0x4602b424 */ 2678 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460045FB: ret */ 2679 RECOMP_REGS_OUT(); 2680 } 2681 2682 void sub_460045FC(void) { 2683 int _fpu_cmp = 0; 2684 uint32_t _cf = 0; 2685 int _df = 1; 2686 uint32_t _flag_k = FK_NONE; 2687 uint32_t _flag_a = 0, _flag_b = 0; 2688 uint32_t _itail_tgt = 0; 2689 RECOMP_REGS_LOCALS 2690 RECOMP_ENTER(0x460045FCu); 2691 2692 L_460045FC: 2693 PUSH32(esp, ebx); /* 0x460045FC: push ebx */ 2694 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x460045FD: mov bl, byte ptr [esp + 8] */ 2695 PUSH32(esp, esi); /* 0x46004601: push esi */ 2696 esi = ecx; /* 0x46004602: mov esi, ecx */ 2697 /* test LO8(ebx), 2 */ /* 0x46004604: test bl, 2 */ 2698 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2699 _cf = 0; 2700 _flag_k = FK_NARROW(FK_TEST, 24); 2701 if (TEST_Z(_flag_a, _flag_b)) goto L_46004630; /* 0x46004607: je 0x46004630 */ 2702 L_46004609: 2703 PUSH32(esp, edi); /* 0x46004609: push edi */ 2704 edi = esi + (-0x4); /* 0x4600460A: lea edi, [esi - 4] */ 2705 PUSH32(esp, 0x4602877Eu); /* 0x4600460D: push 0x4602877e */ 2706 PUSH32(esp, MEM32(edi)); /* 0x46004612: push dword ptr [edi] */ 2707 PUSH32(esp, 8); /* 0x46004614: push 8 */ 2708 PUSH32(esp, esi); /* 0x46004616: push esi */ 2709 RECOMP_ICALL(0x4602806Eu); /* 0x46004617: call 0x4602806e */ /* not lifted */ 2710 RECOMP_FLAGS_IN(); 2711 /* test LO8(ebx), 1 */ /* 0x4600461C: test bl, 1 */ 2712 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2713 _cf = 0; 2714 _flag_k = FK_NARROW(FK_TEST, 24); 2715 if (TEST_Z(_flag_a, _flag_b)) goto L_46004628; /* 0x4600461F: je 0x46004628 */ 2716 L_46004621: 2717 PUSH32(esp, edi); /* 0x46004621: push edi */ 2718 RECOMP_ICALL(0x46002CE4u); /* 0x46004622: call 0x46002ce4 */ /* not lifted */ 2719 RECOMP_FLAGS_IN(); 2720 ecx = POP32_VAL(esp); /* 0x46004627: pop ecx */ 2721 L_46004628: 2722 eax = edi; /* 0x46004628: mov eax, edi */ 2723 edi = POP32_VAL(esp); /* 0x4600462A: pop edi */ 2724 L_4600462B: 2725 esi = POP32_VAL(esp); /* 0x4600462B: pop esi */ 2726 ebx = POP32_VAL(esp); /* 0x4600462C: pop ebx */ 2727 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4600462D: ret 4 */ 2728 L_46004630: 2729 /* test LO8(ebx), 1 */ /* 0x46004630: test bl, 1 */ 2730 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2731 _cf = 0; 2732 _flag_k = FK_NARROW(FK_TEST, 24); 2733 MEM32(esi) = 0x4602B424u; /* 0x46004633: mov dword ptr [esi], 0x4602b424 */ 2734 if (TEST_Z(_flag_a, _flag_b)) goto L_46004642; /* 0x46004639: je 0x46004642 */ 2735 L_4600463B: 2736 PUSH32(esp, esi); /* 0x4600463B: push esi */ 2737 RECOMP_ICALL(0x46002CE4u); /* 0x4600463C: call 0x46002ce4 */ /* not lifted */ 2738 RECOMP_FLAGS_IN(); 2739 ecx = POP32_VAL(esp); /* 0x46004641: pop ecx */ 2740 L_46004642: 2741 eax = esi; /* 0x46004642: mov eax, esi */ 2742 RECOMP_BACKEDGE(); 2743 goto L_4600462B; /* 0x46004644: jmp 0x4600462b */ 2744 { RECOMP_REGS_OUT(); return; } /* end of function */ 2745 RECOMP_REGS_OUT(); 2746 } 2747 2748 void sub_46004646(void) { 2749 int _fpu_cmp = 0; 2750 uint32_t _cf = 0; 2751 int _df = 1; 2752 uint32_t _flag_k = FK_NONE; 2753 uint32_t _flag_a = 0, _flag_b = 0; 2754 uint32_t _itail_tgt = 0; 2755 RECOMP_REGS_LOCALS 2756 RECOMP_ENTER(0x46004646u); 2757 2758 L_46004646: 2759 eax = ecx; /* 0x46004646: mov eax, ecx */ 2760 ecx = MEM32(esp + 0x4); /* 0x46004648: mov ecx, dword ptr [esp + 4] */ 2761 MEM32(eax + 0x4) = ecx; /* 0x4600464C: mov dword ptr [eax + 4], ecx */ 2762 MEM32(eax) = 0x4602B980u; /* 0x4600464F: mov dword ptr [eax], 0x4602b980 */ 2763 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004655: ret 4 */ 2764 RECOMP_REGS_OUT(); 2765 } 2766 2767 void sub_46004658(void) { 2768 int _fpu_cmp = 0; 2769 uint32_t _cf = 0; 2770 int _df = 1; 2771 uint32_t _flag_k = FK_NONE; 2772 uint32_t _flag_a = 0, _flag_b = 0; 2773 uint32_t _itail_tgt = 0; 2774 RECOMP_REGS_LOCALS 2775 RECOMP_ENTER(0x46004658u); 2776 2777 L_46004658: 2778 eax = MEM32(ecx); /* 0x46004658: mov eax, dword ptr [ecx] */ 2779 L_4600465A: 2780 { _itail_tgt = (uint32_t)(MEM32(eax + 0x4)); goto _ljump; } 2781 { RECOMP_REGS_OUT(); return; } /* end of function */ 2782 _ljump: 2783 switch (_itail_tgt) { 2784 case 0x46004658u: goto L_46004658; 2785 case 0x4600465Au: goto L_4600465A; 2786 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2787 } 2788 RECOMP_REGS_OUT(); 2789 } 2790 2791 void sub_4600465D(void) { 2792 int _fpu_cmp = 0; 2793 uint32_t _cf = 0; 2794 int _df = 1; 2795 uint32_t _flag_k = FK_NONE; 2796 uint32_t _flag_a = 0, _flag_b = 0; 2797 uint32_t _itail_tgt = 0; 2798 RECOMP_REGS_LOCALS 2799 RECOMP_ENTER(0x4600465Du); 2800 2801 L_4600465D: 2802 eax = MEM32(ecx); /* 0x4600465D: mov eax, dword ptr [ecx] */ 2803 L_4600465F: 2804 { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; } 2805 { RECOMP_REGS_OUT(); return; } /* end of function */ 2806 _ljump: 2807 switch (_itail_tgt) { 2808 case 0x4600465Du: goto L_4600465D; 2809 case 0x4600465Fu: goto L_4600465F; 2810 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2811 } 2812 RECOMP_REGS_OUT(); 2813 } 2814 2815 void sub_46004662(void) { 2816 int _fpu_cmp = 0; 2817 uint32_t _cf = 0; 2818 int _df = 1; 2819 uint32_t _flag_k = FK_NONE; 2820 uint32_t _flag_a = 0, _flag_b = 0; 2821 uint32_t _itail_tgt = 0; 2822 RECOMP_REGS_LOCALS 2823 RECOMP_ENTER(0x46004662u); 2824 2825 L_46004662: 2826 eax = MEM32(ecx); /* 0x46004662: mov eax, dword ptr [ecx] */ 2827 L_46004664: 2828 { _itail_tgt = (uint32_t)(MEM32(eax + 0xC)); goto _ljump; } 2829 { RECOMP_REGS_OUT(); return; } /* end of function */ 2830 _ljump: 2831 switch (_itail_tgt) { 2832 case 0x46004662u: goto L_46004662; 2833 case 0x46004664u: goto L_46004664; 2834 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2835 } 2836 RECOMP_REGS_OUT(); 2837 } 2838 2839 void sub_46004667(void) { 2840 int _fpu_cmp = 0; 2841 uint32_t _cf = 0; 2842 int _df = 1; 2843 uint32_t _flag_k = FK_NONE; 2844 uint32_t _flag_a = 0, _flag_b = 0; 2845 uint32_t _itail_tgt = 0; 2846 RECOMP_REGS_LOCALS 2847 RECOMP_ENTER(0x46004667u); 2848 2849 L_46004667: 2850 SET_LO8(eax, 1); /* 0x46004667: mov al, 1 */ 2851 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004669: ret */ 2852 RECOMP_REGS_OUT(); 2853 } 2854 2855 void sub_4600466A(void) { 2856 int _fpu_cmp = 0; 2857 uint32_t _cf = 0; 2858 int _df = 1; 2859 uint32_t _flag_k = FK_NONE; 2860 uint32_t _flag_a = 0, _flag_b = 0; 2861 uint32_t _itail_tgt = 0; 2862 RECOMP_REGS_LOCALS 2863 RECOMP_ENTER(0x4600466Au); 2864 2865 L_4600466A: 2866 PUSH32(esp, 1); /* 0x4600466A: push 1 */ 2867 eax = POP32_VAL(esp); /* 0x4600466C: pop eax */ 2868 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600466D: ret */ 2869 RECOMP_REGS_OUT(); 2870 } 2871 2872 void sub_4600466E(void) { 2873 int _fpu_cmp = 0; 2874 uint32_t _cf = 0; 2875 int _df = 1; 2876 uint32_t _flag_k = FK_NONE; 2877 uint32_t _flag_a = 0, _flag_b = 0; 2878 uint32_t _itail_tgt = 0; 2879 RECOMP_REGS_LOCALS 2880 RECOMP_ENTER(0x4600466Eu); 2881 2882 L_4600466E: 2883 PUSH32(esp, 1); /* 0x4600466E: push 1 */ 2884 eax = POP32_VAL(esp); /* 0x46004670: pop eax */ 2885 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004671: ret */ 2886 RECOMP_REGS_OUT(); 2887 } 2888 2889 void sub_46004672(void) { 2890 int _fpu_cmp = 0; 2891 uint32_t _cf = 0; 2892 int _df = 1; 2893 uint32_t _flag_k = FK_NONE; 2894 uint32_t _flag_a = 0, _flag_b = 0; 2895 uint32_t _itail_tgt = 0; 2896 RECOMP_REGS_LOCALS 2897 RECOMP_ENTER(0x46004672u); 2898 2899 L_46004672: 2900 PUSH32(esp, 0); /* 0x46004672: push 0 */ 2901 RECOMP_ICALL(0x46004646u); /* 0x46004674: call 0x46004646 */ /* not lifted */ 2902 RECOMP_FLAGS_IN(); 2903 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004679: ret */ 2904 RECOMP_REGS_OUT(); 2905 } 2906 2907 void sub_4600467A(void) { 2908 int _fpu_cmp = 0; 2909 uint32_t _cf = 0; 2910 int _df = 1; 2911 uint32_t _flag_k = FK_NONE; 2912 uint32_t _flag_a = 0, _flag_b = 0; 2913 uint32_t _itail_tgt = 0; 2914 RECOMP_REGS_LOCALS 2915 RECOMP_ENTER(0x4600467Au); 2916 2917 L_4600467A: 2918 PUSH32(esp, ebx); /* 0x4600467A: push ebx */ 2919 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x4600467B: mov bl, byte ptr [esp + 8] */ 2920 PUSH32(esp, esi); /* 0x4600467F: push esi */ 2921 esi = ecx; /* 0x46004680: mov esi, ecx */ 2922 /* test LO8(ebx), 2 */ /* 0x46004682: test bl, 2 */ 2923 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2924 _cf = 0; 2925 _flag_k = FK_NARROW(FK_TEST, 24); 2926 if (TEST_Z(_flag_a, _flag_b)) goto L_460046AE; /* 0x46004685: je 0x460046ae */ 2927 L_46004687: 2928 PUSH32(esp, edi); /* 0x46004687: push edi */ 2929 edi = esi + (-0x4); /* 0x46004688: lea edi, [esi - 4] */ 2930 PUSH32(esp, 0x46028345u); /* 0x4600468B: push 0x46028345 */ 2931 PUSH32(esp, MEM32(edi)); /* 0x46004690: push dword ptr [edi] */ 2932 PUSH32(esp, 8); /* 0x46004692: push 8 */ 2933 PUSH32(esp, esi); /* 0x46004694: push esi */ 2934 RECOMP_ICALL(0x4602806Eu); /* 0x46004695: call 0x4602806e */ /* not lifted */ 2935 RECOMP_FLAGS_IN(); 2936 /* test LO8(ebx), 1 */ /* 0x4600469A: test bl, 1 */ 2937 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2938 _cf = 0; 2939 _flag_k = FK_NARROW(FK_TEST, 24); 2940 if (TEST_Z(_flag_a, _flag_b)) goto L_460046A6; /* 0x4600469D: je 0x460046a6 */ 2941 L_4600469F: 2942 PUSH32(esp, edi); /* 0x4600469F: push edi */ 2943 RECOMP_ICALL(0x46002CE4u); /* 0x460046A0: call 0x46002ce4 */ /* not lifted */ 2944 RECOMP_FLAGS_IN(); 2945 ecx = POP32_VAL(esp); /* 0x460046A5: pop ecx */ 2946 L_460046A6: 2947 eax = edi; /* 0x460046A6: mov eax, edi */ 2948 edi = POP32_VAL(esp); /* 0x460046A8: pop edi */ 2949 L_460046A9: 2950 esi = POP32_VAL(esp); /* 0x460046A9: pop esi */ 2951 ebx = POP32_VAL(esp); /* 0x460046AA: pop ebx */ 2952 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460046AB: ret 4 */ 2953 L_460046AE: 2954 ecx = esi; /* 0x460046AE: mov ecx, esi */ 2955 RECOMP_ICALL(0x46028345u); /* 0x460046B0: call 0x46028345 */ /* not lifted */ 2956 RECOMP_FLAGS_IN(); 2957 /* test LO8(ebx), 1 */ /* 0x460046B5: test bl, 1 */ 2958 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2959 _cf = 0; 2960 _flag_k = FK_NARROW(FK_TEST, 24); 2961 if (TEST_Z(_flag_a, _flag_b)) goto L_460046C1; /* 0x460046B8: je 0x460046c1 */ 2962 L_460046BA: 2963 PUSH32(esp, esi); /* 0x460046BA: push esi */ 2964 RECOMP_ICALL(0x46002CE4u); /* 0x460046BB: call 0x46002ce4 */ /* not lifted */ 2965 RECOMP_FLAGS_IN(); 2966 ecx = POP32_VAL(esp); /* 0x460046C0: pop ecx */ 2967 L_460046C1: 2968 eax = esi; /* 0x460046C1: mov eax, esi */ 2969 RECOMP_BACKEDGE(); 2970 goto L_460046A9; /* 0x460046C3: jmp 0x460046a9 */ 2971 { RECOMP_REGS_OUT(); return; } /* end of function */ 2972 RECOMP_REGS_OUT(); 2973 } 2974 2975 void sub_460046C5(void) { 2976 int _fpu_cmp = 0; 2977 uint32_t _cf = 0; 2978 int _df = 1; 2979 uint32_t _flag_k = FK_NONE; 2980 uint32_t _flag_a = 0, _flag_b = 0; 2981 uint32_t _itail_tgt = 0; 2982 RECOMP_REGS_LOCALS 2983 RECOMP_ENTER(0x460046C5u); 2984 2985 L_460046C5: 2986 PUSH32(esp, ebp); /* 0x460046C5: push ebp */ 2987 ebp = esp; /* 0x460046C6: mov ebp, esp */ 2988 PUSH32(esp, MEM32(ebp + 0x20)); /* 0x460046C8: push dword ptr [ebp + 0x20] */ 2989 eax = MEM32(ecx); /* 0x460046CB: mov eax, dword ptr [ecx] */ 2990 PUSH32(esp, MEM32(ebp + 0x1C)); /* 0x460046CD: push dword ptr [ebp + 0x1c] */ 2991 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x460046D0: push dword ptr [ebp + 0x18] */ 2992 PUSH32(esp, MEM32(ebp + 0x14)); /* 0x460046D3: push dword ptr [ebp + 0x14] */ 2993 PUSH32(esp, MEM32(ebp + 0x10)); /* 0x460046D6: push dword ptr [ebp + 0x10] */ 2994 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x460046D9: push dword ptr [ebp + 0xc] */ 2995 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x460046DC: push dword ptr [ebp + 8] */ 2996 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x460046DF: call dword ptr [eax + 0x10] */ 2997 RECOMP_FLAGS_IN(); 2998 ebp = POP32_VAL(esp); /* 0x460046E2: pop ebp */ 2999 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x460046E3: ret 0x1c */ 3000 RECOMP_REGS_OUT(); 3001 } 3002 3003 void sub_460046E6(void) { 3004 int _fpu_cmp = 0; 3005 uint32_t _cf = 0; 3006 int _df = 1; 3007 uint32_t _flag_k = FK_NONE; 3008 uint32_t _flag_a = 0, _flag_b = 0; 3009 uint32_t _itail_tgt = 0; 3010 RECOMP_REGS_LOCALS 3011 RECOMP_ENTER(0x460046E6u); 3012 3013 L_460046E6: 3014 PUSH32(esp, ebp); /* 0x460046E6: push ebp */ 3015 ebp = esp; /* 0x460046E7: mov ebp, esp */ 3016 PUSH32(esp, MEM32(ebp + 0x20)); /* 0x460046E9: push dword ptr [ebp + 0x20] */ 3017 eax = MEM32(ecx); /* 0x460046EC: mov eax, dword ptr [ecx] */ 3018 PUSH32(esp, MEM32(ebp + 0x1C)); /* 0x460046EE: push dword ptr [ebp + 0x1c] */ 3019 PUSH32(esp, MEM32(ebp + 0x18)); /* 0x460046F1: push dword ptr [ebp + 0x18] */ 3020 PUSH32(esp, MEM32(ebp + 0x14)); /* 0x460046F4: push dword ptr [ebp + 0x14] */ 3021 PUSH32(esp, MEM32(ebp + 0x10)); /* 0x460046F7: push dword ptr [ebp + 0x10] */ 3022 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x460046FA: push dword ptr [ebp + 0xc] */ 3023 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x460046FD: push dword ptr [ebp + 8] */ 3024 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x46004700: call dword ptr [eax + 0x14] */ 3025 RECOMP_FLAGS_IN(); 3026 ebp = POP32_VAL(esp); /* 0x46004703: pop ebp */ 3027 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x46004704: ret 0x1c */ 3028 RECOMP_REGS_OUT(); 3029 } 3030 3031 void sub_46004707(void) { 3032 int _fpu_cmp = 0; 3033 uint32_t _cf = 0; 3034 int _df = 1; 3035 uint32_t _flag_k = FK_NONE; 3036 uint32_t _flag_a = 0, _flag_b = 0; 3037 uint32_t _itail_tgt = 0; 3038 RECOMP_REGS_LOCALS 3039 RECOMP_ENTER(0x46004707u); 3040 3041 L_46004707: 3042 PUSH32(esp, MEM32(esp + 0x10)); /* 0x46004707: push dword ptr [esp + 0x10] */ 3043 eax = MEM32(ecx); /* 0x4600470B: mov eax, dword ptr [ecx] */ 3044 PUSH32(esp, MEM32(esp + 0x10)); /* 0x4600470D: push dword ptr [esp + 0x10] */ 3045 PUSH32(esp, MEM32(esp + 0x10)); /* 0x46004711: push dword ptr [esp + 0x10] */ 3046 PUSH32(esp, MEM32(esp + 0x10)); /* 0x46004715: push dword ptr [esp + 0x10] */ 3047 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x46004719: call dword ptr [eax + 0x18] */ 3048 RECOMP_FLAGS_IN(); 3049 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600471C: ret 0x10 */ 3050 RECOMP_REGS_OUT(); 3051 } 3052 3053 void sub_4600471F(void) { 3054 int _fpu_cmp = 0; 3055 uint32_t _cf = 0; 3056 int _df = 1; 3057 uint32_t _flag_k = FK_NONE; 3058 uint32_t _flag_a = 0, _flag_b = 0; 3059 uint32_t _itail_tgt = 0; 3060 RECOMP_REGS_LOCALS 3061 RECOMP_ENTER(0x4600471Fu); 3062 3063 L_4600471F: 3064 eax = 0x4602834Cu; /* 0x4600471F: mov eax, 0x4602834c */ 3065 RECOMP_ICALL(0x46001535u); /* 0x46004724: call 0x46001535 */ /* not lifted */ 3066 RECOMP_FLAGS_IN(); 3067 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 3068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3069 esp = esp - 0x44u; /* 0x46004729: sub esp, 0x44 */ 3070 _flag_k = FK_CMP; 3071 eax = MEM32(ebp + 0x8); /* 0x4600472C: mov eax, dword ptr [ebp + 8] */ 3072 PUSH32(esp, esi); /* 0x4600472F: push esi */ 3073 esi = ecx; /* 0x46004730: mov esi, ecx */ 3074 MEM32(ebp + (-0x10)) = esi; /* 0x46004732: mov dword ptr [ebp - 0x10], esi */ 3075 MEM32(esi + 0x4) = eax; /* 0x46004735: mov dword ptr [esi + 4], eax */ 3076 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 3077 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46004738: and dword ptr [ebp - 4], 0 */ 3078 _cf = 0; 3079 _flag_k = FK_TEST; 3080 PUSH32(esp, 0x4602B41Cu); /* 0x4600473C: push 0x4602b41c */ 3081 ecx = ebp + (-0x50); /* 0x46004741: lea ecx, [ebp - 0x50] */ 3082 MEM32(esi) = 0x4602B994u; /* 0x46004744: mov dword ptr [esi], 0x4602b994 */ 3083 RECOMP_ICALL(0x46023A9Bu); /* 0x4600474A: call 0x46023a9b */ /* not lifted */ 3084 RECOMP_FLAGS_IN(); 3085 RECOMP_ICALL(0x46024940u); /* 0x4600474F: call 0x46024940 */ /* not lifted */ 3086 RECOMP_FLAGS_IN(); 3087 MEM32(esi + 0x8) = eax; /* 0x46004754: mov dword ptr [esi + 8], eax */ 3088 ecx = ebp + (-0x50); /* 0x46004757: lea ecx, [ebp - 0x50] */ 3089 MEM32(esi + 0xC) = edx; /* 0x4600475A: mov dword ptr [esi + 0xc], edx */ 3090 RECOMP_ICALL(0x4602836Bu); /* 0x4600475D: call 0x4602836b */ /* not lifted */ 3091 RECOMP_FLAGS_IN(); 3092 ecx = MEM32(ebp + (-0xC)); /* 0x46004762: mov ecx, dword ptr [ebp - 0xc] */ 3093 eax = esi; /* 0x46004765: mov eax, esi */ 3094 esi = POP32_VAL(esp); /* 0x46004767: pop esi */ 3095 MEM32(FS_BASE + (0)) = ecx; /* 0x46004768: mov dword ptr fs:[0], ecx */ 3096 esp = ebp; ebp = POP32_VAL(esp); /* 0x4600476F: leave */ 3097 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x46004770: ret 4 */ 3098 RECOMP_REGS_OUT(); 3099 } 3100 3101 void sub_46004773(void) { 3102 int _fpu_cmp = 0; 3103 uint32_t _cf = 0; 3104 int _df = 1; 3105 uint32_t _flag_k = FK_NONE; 3106 uint32_t _flag_a = 0, _flag_b = 0; 3107 uint32_t _itail_tgt = 0; 3108 RECOMP_REGS_LOCALS 3109 RECOMP_ENTER(0x46004773u); 3110 3111 L_46004773: 3112 eax = MEM32(esp + 0x8); /* 0x46004773: mov eax, dword ptr [esp + 8] */ 3113 PUSH32(esp, esi); /* 0x46004777: push esi */ 3114 esi = ecx; /* 0x46004778: mov esi, ecx */ 3115 MEM32(esi + 0x4) = eax; /* 0x4600477A: mov dword ptr [esi + 4], eax */ 3116 MEM32(esi) = 0x4602B994u; /* 0x4600477D: mov dword ptr [esi], 0x4602b994 */ 3117 RECOMP_ICALL(0x46024940u); /* 0x46004783: call 0x46024940 */ /* not lifted */ 3118 RECOMP_FLAGS_IN(); 3119 MEM32(esi + 0x8) = eax; /* 0x46004788: mov dword ptr [esi + 8], eax */ 3120 MEM32(esi + 0xC) = edx; /* 0x4600478B: mov dword ptr [esi + 0xc], edx */ 3121 eax = esi; /* 0x4600478E: mov eax, esi */ 3122 esi = POP32_VAL(esp); /* 0x46004790: pop esi */ 3123 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x46004791: ret 8 */ 3124 RECOMP_REGS_OUT(); 3125 } 3126 3127 void sub_46004794(void) { 3128 int _fpu_cmp = 0; 3129 uint32_t _cf = 0; 3130 int _df = 1; 3131 uint32_t _flag_k = FK_NONE; 3132 uint32_t _flag_a = 0, _flag_b = 0; 3133 uint32_t _itail_tgt = 0; 3134 RECOMP_REGS_LOCALS 3135 RECOMP_ENTER(0x46004794u); 3136 3137 L_46004794: 3138 PUSH32(esp, 2); /* 0x46004794: push 2 */ 3139 eax = POP32_VAL(esp); /* 0x46004796: pop eax */ 3140 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004797: ret */ 3141 RECOMP_REGS_OUT(); 3142 } 3143 3144 void sub_46004798(void) { 3145 int _fpu_cmp = 0; 3146 uint32_t _cf = 0; 3147 int _df = 1; 3148 uint32_t _flag_k = FK_NONE; 3149 uint32_t _flag_a = 0, _flag_b = 0; 3150 uint32_t _itail_tgt = 0; 3151 RECOMP_REGS_LOCALS 3152 RECOMP_ENTER(0x46004798u); 3153 3154 L_46004798: 3155 MEM32(ecx) = 0x4602B424u; /* 0x46004798: mov dword ptr [ecx], 0x4602b424 */ 3156 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4600479E: ret */ 3157 RECOMP_REGS_OUT(); 3158 } 3159 3160 void sub_4600479F(void) { 3161 int _fpu_cmp = 0; 3162 uint32_t _cf = 0; 3163 int _df = 1; 3164 uint32_t _flag_k = FK_NONE; 3165 uint32_t _flag_a = 0, _flag_b = 0; 3166 uint32_t _itail_tgt = 0; 3167 RECOMP_REGS_LOCALS 3168 RECOMP_ENTER(0x4600479Fu); 3169 3170 L_4600479F: 3171 PUSH32(esp, esi); /* 0x4600479F: push esi */ 3172 esi = ecx; /* 0x460047A0: mov esi, ecx */ 3173 RECOMP_ICALL(0x46024940u); /* 0x460047A2: call 0x46024940 */ /* not lifted */ 3174 RECOMP_FLAGS_IN(); 3175 MEM32(esi + 0x8) = eax; /* 0x460047A7: mov dword ptr [esi + 8], eax */ 3176 MEM32(esi + 0xC) = edx; /* 0x460047AA: mov dword ptr [esi + 0xc], edx */ 3177 esi = POP32_VAL(esp); /* 0x460047AD: pop esi */ 3178 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x460047AE: ret 4 */ 3179 RECOMP_REGS_OUT(); 3180 } 3181 3182 void sub_460047B1(void) { 3183 int _fpu_cmp = 0; 3184 uint32_t _cf = 0; 3185 int _df = 1; 3186 uint32_t _flag_k = FK_NONE; 3187 uint32_t _flag_a = 0, _flag_b = 0; 3188 uint32_t _itail_tgt = 0; 3189 RECOMP_REGS_LOCALS 3190 RECOMP_ENTER(0x460047B1u); 3191 3192 L_460047B1: 3193 PUSH32(esp, ebp); /* 0x460047B1: push ebp */ 3194 ebp = esp; /* 0x460047B2: mov ebp, esp */ 3195 PUSH32(esp, ecx); /* 0x460047B4: push ecx */ 3196 eax = MEM32(ebp + 0xC); /* 0x460047B5: mov eax, dword ptr [ebp + 0xc] */ 3197 PUSH32(esp, ebx); /* 0x460047B8: push ebx */ 3198 PUSH32(esp, esi); /* 0x460047B9: push esi */ 3199 esi = MEM32(ebp + 0x14); /* 0x460047BA: mov esi, dword ptr [ebp + 0x14] */ 3200 ebx = MEM32(ebp + 0x10); /* 0x460047BD: mov ebx, dword ptr [ebp + 0x10] */ 3201 PUSH32(esp, edi); /* 0x460047C0: push edi */ 3202 edi = MEM32(ebp + 0x20); /* 0x460047C1: mov edi, dword ptr [ebp + 0x20] */ 3203 MEM32(esi) = eax; /* 0x460047C4: mov dword ptr [esi], eax */ 3204 eax = MEM32(ebp + 0x18); /* 0x460047C6: mov eax, dword ptr [ebp + 0x18] */ 3205 MEM32(ebp + (-0x4)) = ecx; /* 0x460047C9: mov dword ptr [ebp - 4], ecx */ 3206 MEM32(edi) = eax; /* 0x460047CC: mov dword ptr [edi], eax */ 3207 eax = MEM32(esi); /* 0x460047CE: mov eax, dword ptr [esi] */ 3208 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3209 ecx = 0; /* 0x460047D0: xor ecx, ecx */ 3210 _cf = 0; 3211 _flag_k = FK_TEST; 3212 /* cmp eax, ebx */ /* 0x460047D2: cmp eax, ebx */ 3213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3215 _flag_k = FK_CMP; 3216 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x460047D4: setne cl */ 3217 MEM32(ebp + 0x14) = ecx; /* 0x460047D7: mov dword ptr [ebp + 0x14], ecx */ 3218 L_460047DA: 3219 /* cmp eax, ebx */ /* 0x460047DA: cmp eax, ebx */ 3220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3222 _flag_k = FK_CMP; 3223 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600482E; /* 0x460047DC: je 0x4600482e */ 3224 L_460047DE: 3225 ecx = MEM32(edi); /* 0x460047DE: mov ecx, dword ptr [edi] */ 3226 /* cmp ecx, MEM32(ebp + 0x1C) */ /* 0x460047E0: cmp ecx, dword ptr [ebp + 0x1c] */ 3227 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0x1C)); 3228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3229 _flag_k = FK_CMP; 3230 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600482E; /* 0x460047E3: je 0x4600482e */ 3231 L_460047E5: 3232 edx = MEM32(ebp + (-0x4)); /* 0x460047E5: mov edx, dword ptr [ebp - 4] */ 3233 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 3234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3235 edx = edx + 8; /* 0x460047E8: add edx, 8 */ 3236 _flag_k = FK_ADD; 3237 PUSH32(esp, edx); /* 0x460047EB: push edx */ 3238 edx = ebx; /* 0x460047EC: mov edx, ebx */ 3239 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x460047EE: push dword ptr [ebp + 8] */ 3240 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3242 edx = edx - eax; /* 0x460047F1: sub edx, eax */ 3243 _flag_k = FK_CMP; 3244 PUSH32(esp, edx); /* 0x460047F3: push edx */ 3245 PUSH32(esp, eax); /* 0x460047F4: push eax */ 3246 PUSH32(esp, ecx); /* 0x460047F5: push ecx */ 3247 RECOMP_ICALL(0x460021E1u); /* 0x460047F6: call 0x460021e1 */ /* not lifted */ 3248 RECOMP_FLAGS_IN(); 3249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3251 esp = esp + 0x14u; /* 0x460047FB: add esp, 0x14 */ 3252 _flag_k = FK_ADD; 3253 /* cmp eax, 0xFFFFFFFEu */ /* 0x460047FE: cmp eax, -2 */ 3254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu); 3255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3256 _flag_k = FK_CMP; 3257 if (CMP_EQ(_flag_a, _flag_b)) goto L_4600482C; /* 0x46004801: je 0x4600482c */ 3258 L_46004803: 3259 /* cmp eax, 0xFFFFFFFFu */ /* 0x46004803: cmp eax, -1 */ 3260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3262 _flag_k = FK_CMP; 3263 if (CMP_EQ(_flag_a, _flag_b)) goto L_46004822; /* 0x46004806: je 0x46004822 */ 3264 L_46004808: 3265 /* test eax, eax */ /* 0x46004808: test eax, eax */ 3266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3267 _cf = 0; 3268 _flag_k = FK_TEST; 3269 if (TEST_NZ(_flag_a, _flag_b)) goto L_46004815; /* 0x4600480A: jne 0x46004815 */ 3270 L_4600480C: 3271 PUSH32(esp, MEM32(esi)); /* 0x4600480C: push dword ptr [esi] */ 3272 RECOMP_ICALL(0x46001A98u); /* 0x4600480E: call 0x46001a98 */ /* not lifted */ 3273 RECOMP_FLAGS_IN(); 3274 ecx = POP32_VAL(esp); /* 0x46004813: pop ecx */ 3275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3276 eax = eax + 1; /* 0x46004814: inc eax */ 3277 _flag_k = FK_INC; 3278 L_46004815: 3279 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(eax); 3280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3281 MEM32(esi) = MEM32(esi) + eax; /* 0x46004815: add dword ptr [esi], eax */ 3282 _flag_k = FK_ADD; 3283 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(2); 3284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3285 MEM32(edi) = MEM32(edi) + 2; /* 0x46004817: add dword ptr [edi], 2 */ 3286 _flag_k = FK_ADD; 3287 _flag_a = (uint32_t)(MEM32(ebp + 0x14)); _flag_b = (uint32_t)(0); 3288 MEM32(ebp + 0x14) = MEM32(ebp + 0x14) & 0; /* 0x4600481A: and dword ptr [ebp + 0x14], 0 */ 3289 _cf = 0; 3290 _flag_k = FK_TEST; 3291 eax = MEM32(esi); /* 0x4600481E: mov eax, dword ptr [esi] */ 3292 RECOMP_BACKEDGE(); 3293 goto L_460047DA; /* 0x46004820: jmp 0x460047da */ 3294 L_46004822: 3295 PUSH32(esp, 2); /* 0x46004822: push 2 */ 3296 eax = POP32_VAL(esp); /* 0x46004824: pop eax */ 3297 L_46004825: 3298 edi = POP32_VAL(esp); /* 0x46004825: pop edi */ 3299 esi = POP32_VAL(esp); /* 0x46004826: pop esi */ 3300 ebx = POP32_VAL(esp); /* 0x46004827: pop ebx */ 3301 esp = ebp; ebp = POP32_VAL(esp); /* 0x46004828: leave */ 3302 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x46004829: ret 0x1c */ 3303 L_4600482C: 3304 MEM32(esi) = ebx; /* 0x4600482C: mov dword ptr [esi], ebx */ 3305 L_4600482E: 3306 eax = MEM32(ebp + 0x14); /* 0x4600482E: mov eax, dword ptr [ebp + 0x14] */ 3307 RECOMP_BACKEDGE(); 3308 goto L_46004825; /* 0x46004831: jmp 0x46004825 */ 3309 { RECOMP_REGS_OUT(); return; } /* end of function */ 3310 RECOMP_REGS_OUT(); 3311 } 3312 3313 void sub_46004833(void) { 3314 int _fpu_cmp = 0; 3315 uint32_t _cf = 0; 3316 int _df = 1; 3317 uint32_t _flag_k = FK_NONE; 3318 uint32_t _flag_a = 0, _flag_b = 0; 3319 uint32_t _itail_tgt = 0; 3320 RECOMP_REGS_LOCALS 3321 RECOMP_ENTER(0x46004833u); 3322 3323 L_46004833: 3324 PUSH32(esp, ebp); /* 0x46004833: push ebp */ 3325 ebp = esp; /* 0x46004834: mov ebp, esp */ 3326 PUSH32(esp, ecx); /* 0x46004836: push ecx */ 3327 eax = MEM32(ebp + 0xC); /* 0x46004837: mov eax, dword ptr [ebp + 0xc] */ 3328 PUSH32(esp, ebx); /* 0x4600483A: push ebx */ 3329 PUSH32(esp, esi); /* 0x4600483B: push esi */ 3330 esi = MEM32(ebp + 0x14); /* 0x4600483C: mov esi, dword ptr [ebp + 0x14] */ 3331 PUSH32(esp, edi); /* 0x4600483F: push edi */ 3332 edi = MEM32(ebp + 0x20); /* 0x46004840: mov edi, dword ptr [ebp + 0x20] */ 3333 MEM32(esi) = eax; /* 0x46004843: mov dword ptr [esi], eax */ 3334 eax = MEM32(ebp + 0x18); /* 0x46004845: mov eax, dword ptr [ebp + 0x18] */ 3335 MEM32(ebp + (-0x4)) = ecx; /* 0x46004848: mov dword ptr [ebp - 4], ecx */ 3336 MEM32(edi) = eax; /* 0x4600484B: mov dword ptr [edi], eax */ 3337 eax = MEM32(esi); /* 0x4600484D: mov eax, dword ptr [esi] */ 3338 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3339 ecx = 0; /* 0x4600484F: xor ecx, ecx */ 3340 _cf = 0; 3341 _flag_k = FK_TEST; 3342 /* cmp eax, MEM32(ebp + 0x10) */ /* 0x46004851: cmp eax, dword ptr [ebp + 0x10] */ 3343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x10)); 3344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3345 _flag_k = FK_CMP; 3346 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x46004854: setne cl */ 3347 MEM32(ebp + 0xC) = ecx; /* 0x46004857: mov dword ptr [ebp + 0xc], ecx */ 3348 L_4600485A: 3349 /* cmp eax, MEM32(ebp + 0x10) */ /* 0x4600485A: cmp eax, dword ptr [ebp + 0x10] */ 3350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x10)); 3351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3352 _flag_k = FK_CMP; 3353 if (CMP_EQ(_flag_a, _flag_b)) goto L_460048FD; /* 0x4600485D: je 0x460048fd */ 3354 L_46004863: 3355 ecx = MEM32(edi); /* 0x46004863: mov ecx, dword ptr [edi] */ 3356 /* cmp ecx, MEM32(ebp + 0x1C) */ /* 0x46004865: cmp ecx, dword ptr [ebp + 0x1c] */ 3357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0x1C)); 3358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3359 _flag_k = FK_CMP; 3360 if (CMP_EQ(_flag_a, _flag_b)) goto L_460048FD; /* 0x46004868: je 0x460048fd */ 3361 L_4600486E: 3362 edx = MEM32(ebp + 0x1C); /* 0x4600486E: mov edx, dword ptr [ebp + 0x1c] */ 3363 ebx = MEM32(0x4602B020); /* 0x46004871: mov ebx, dword ptr [0x4602b020] */ 3364 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3366 edx = edx - ecx; /* 0x46004877: sub edx, ecx */ 3367 _flag_k = FK_CMP; 3368 /* cmp MEM32(ebx), edx */ /* 0x46004879: cmp dword ptr [ebx], edx */ 3369 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(edx); 3370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3371 _flag_k = FK_CMP; 3372 if (CMP_G(_flag_a, _flag_b)) goto L_460048A5; /* 0x4600487B: jg 0x460048a5 */ 3373 L_4600487D: 3374 edx = MEM32(ebp + (-0x4)); /* 0x4600487D: mov edx, dword ptr [ebp - 4] */ 3375 SET_LO16(eax, MEM16(eax)); /* 0x46004880: mov ax, word ptr [eax] */ 3376 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 3377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3378 edx = edx + 8; /* 0x46004883: add edx, 8 */ 3379 _flag_k = FK_ADD; 3380 PUSH32(esp, edx); /* 0x46004886: push edx */ 3381 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x46004887: push dword ptr [ebp + 8] */ 3382 PUSH32(esp, eax); /* 0x4600488A: push eax */ 3383 PUSH32(esp, ecx); /* 0x4600488B: push ecx */ 3384 RECOMP_ICALL(0x4602485Cu); /* 0x4600488C: call 0x4602485c */ /* not lifted */ 3385 RECOMP_FLAGS_IN(); 3386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3388 esp = esp + 0x10u; /* 0x46004891: add esp, 0x10 */ 3389 _flag_k = FK_ADD; 3390 /* test eax, eax */ /* 0x46004894: test eax, eax */ 3391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3392 _cf = 0; 3393 _flag_k = FK_TEST; 3394 if (TEST_LE(_flag_a, _flag_b)) goto L_460048EB; /* 0x46004896: jle 0x460048eb */ 3395 L_46004898: 3396 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(2); 3397 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3398 MEM32(esi) = MEM32(esi) + 2; /* 0x46004898: add dword ptr [esi], 2 */ 3399 _flag_k = FK_ADD; 3400 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(eax); 3401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3402 MEM32(edi) = MEM32(edi) + eax; /* 0x4600489B: add dword ptr [edi], eax */ 3403 _flag_k = FK_ADD; 3404 L_4600489D: 3405 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 3406 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) & 0; /* 0x4600489D: and dword ptr [ebp + 0xc], 0 */ 3407 _cf = 0; 3408 _flag_k = FK_TEST; 3409 eax = MEM32(esi); /* 0x460048A1: mov eax, dword ptr [esi] */ 3410 RECOMP_BACKEDGE(); 3411 goto L_4600485A; /* 0x460048A3: jmp 0x4600485a */ 3412 L_460048A5: 3413 ecx = MEM32(ebp + 0x8); /* 0x460048A5: mov ecx, dword ptr [ebp + 8] */ 3414 SET_LO16(eax, MEM16(eax)); /* 0x460048A8: mov ax, word ptr [eax] */ 3415 edx = MEM32(ecx); /* 0x460048AB: mov edx, dword ptr [ecx] */ 3416 MEM32(ebp + 0x20) = edx; /* 0x460048AD: mov dword ptr [ebp + 0x20], edx */ 3417 edx = MEM32(ebp + (-0x4)); /* 0x460048B0: mov edx, dword ptr [ebp - 4] */ 3418 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 3419 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3420 edx = edx + 8; /* 0x460048B3: add edx, 8 */ 3421 _flag_k = FK_ADD; 3422 PUSH32(esp, edx); /* 0x460048B6: push edx */ 3423 PUSH32(esp, ecx); /* 0x460048B7: push ecx */ 3424 PUSH32(esp, eax); /* 0x460048B8: push eax */ 3425 eax = ebp + 0x16; /* 0x460048B9: lea eax, [ebp + 0x16] */ 3426 PUSH32(esp, eax); /* 0x460048BC: push eax */ 3427 RECOMP_ICALL(0x4602485Cu); /* 0x460048BD: call 0x4602485c */ /* not lifted */ 3428 RECOMP_FLAGS_IN(); 3429 ebx = eax; /* 0x460048C2: mov ebx, eax */ 3430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3432 esp = esp + 0x10u; /* 0x460048C4: add esp, 0x10 */ 3433 _flag_k = FK_ADD; 3434 /* test ebx, ebx */ /* 0x460048C7: test ebx, ebx */ 3435 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3436 _cf = 0; 3437 _flag_k = FK_TEST; 3438 if (TEST_LE(_flag_a, _flag_b)) goto L_460048EB; /* 0x460048C9: jle 0x460048eb */ 3439 L_460048CB: 3440 eax = MEM32(edi); /* 0x460048CB: mov eax, dword ptr [edi] */ 3441 ecx = MEM32(ebp + 0x1C); /* 0x460048CD: mov ecx, dword ptr [ebp + 0x1c] */ 3442 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3444 ecx = ecx - eax; /* 0x460048D0: sub ecx, eax */ 3445 _flag_k = FK_CMP; 3446 /* cmp ecx, ebx */ /* 0x460048D2: cmp ecx, ebx */ 3447 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3449 _flag_k = FK_CMP; 3450 if (CMP_L(_flag_a, _flag_b)) goto L_460048F5; /* 0x460048D4: jl 0x460048f5 */ 3451 L_460048D6: 3452 ecx = ebp + 0x16; /* 0x460048D6: lea ecx, [ebp + 0x16] */ 3453 PUSH32(esp, ebx); /* 0x460048D9: push ebx */ 3454 PUSH32(esp, ecx); /* 0x460048DA: push ecx */ 3455 PUSH32(esp, eax); /* 0x460048DB: push eax */ 3456 RECOMP_ICALL(0x46001BB9u); /* 0x460048DC: call 0x46001bb9 */ /* not lifted */ 3457 RECOMP_FLAGS_IN(); 3458 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(2); 3459 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3460 MEM32(esi) = MEM32(esi) + 2; /* 0x460048E1: add dword ptr [esi], 2 */ 3461 _flag_k = FK_ADD; 3462 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3463 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3464 esp = esp + 0xCu; /* 0x460048E4: add esp, 0xc */ 3465 _flag_k = FK_ADD; 3466 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(ebx); 3467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3468 MEM32(edi) = MEM32(edi) + ebx; /* 0x460048E7: add dword ptr [edi], ebx */ 3469 _flag_k = FK_ADD; 3470 RECOMP_BACKEDGE(); 3471 goto L_4600489D; /* 0x460048E9: jmp 0x4600489d */ 3472 L_460048EB: 3473 PUSH32(esp, 2); /* 0x460048EB: push 2 */ 3474 eax = POP32_VAL(esp); /* 0x460048ED: pop eax */ 3475 L_460048EE: 3476 edi = POP32_VAL(esp); /* 0x460048EE: pop edi */ 3477 esi = POP32_VAL(esp); /* 0x460048EF: pop esi */ 3478 ebx = POP32_VAL(esp); /* 0x460048F0: pop ebx */ 3479 esp = ebp; ebp = POP32_VAL(esp); /* 0x460048F1: leave */ 3480 RECOMP_FLAGS_OUT(); esp += 32; { RECOMP_REGS_OUT(); return; } /* 0x460048F2: ret 0x1c */ 3481 L_460048F5: 3482 ecx = MEM32(ebp + 0x8); /* 0x460048F5: mov ecx, dword ptr [ebp + 8] */ 3483 eax = MEM32(ebp + 0x20); /* 0x460048F8: mov eax, dword ptr [ebp + 0x20] */ 3484 MEM32(ecx) = eax; /* 0x460048FB: mov dword ptr [ecx], eax */ 3485 L_460048FD: 3486 eax = MEM32(ebp + 0xC); /* 0x460048FD: mov eax, dword ptr [ebp + 0xc] */ 3487 RECOMP_BACKEDGE(); 3488 goto L_460048EE; /* 0x46004900: jmp 0x460048ee */ 3489 { RECOMP_REGS_OUT(); return; } /* end of function */ 3490 RECOMP_REGS_OUT(); 3491 } 3492 3493 void sub_46004902(void) { 3494 int _fpu_cmp = 0; 3495 uint32_t _cf = 0; 3496 int _df = 1; 3497 uint32_t _flag_k = FK_NONE; 3498 uint32_t _flag_a = 0, _flag_b = 0; 3499 uint32_t _itail_tgt = 0; 3500 RECOMP_REGS_LOCALS 3501 RECOMP_ENTER(0x46004902u); 3502 3503 L_46004902: 3504 PUSH32(esp, ebp); /* 0x46004902: push ebp */ 3505 ebp = esp; /* 0x46004903: mov ebp, esp */ 3506 PUSH32(esp, ebx); /* 0x46004905: push ebx */ 3507 ebx = MEM32(ebp + 0xC); /* 0x46004906: mov ebx, dword ptr [ebp + 0xc] */ 3508 /* cmp ebx, MEM32(ebp + 0x10) */ /* 0x46004909: cmp ebx, dword ptr [ebp + 0x10] */ 3509 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x10)); 3510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3511 _flag_k = FK_CMP; 3512 PUSH32(esp, esi); /* 0x4600490C: push esi */ 3513 PUSH32(esp, edi); /* 0x4600490D: push edi */ 3514 edi = ecx; /* 0x4600490E: mov edi, ecx */ 3515 esi = ebx; /* 0x46004910: mov esi, ebx */ 3516 if (CMP_EQ(_flag_a, _flag_b)) goto L_46004944; /* 0x46004912: je 0x46004944 */ 3517 L_46004914: 3518 /* cmp MEM32(ebp + 0x14), 0 */ /* 0x46004914: cmp dword ptr [ebp + 0x14], 0 */ 3519 _flag_a = (uint32_t)(MEM32(ebp + 0x14)); _flag_b = (uint32_t)(0); 3520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3521 _flag_k = FK_CMP; 3522 if (CMP_BE(_flag_a, _flag_b)) goto L_46004944; /* 0x46004918: jbe 0x46004944 */ 3523 L_4600491A: 3524 eax = edi + 0x8; /* 0x4600491A: lea eax, [edi + 8] */ 3525 PUSH32(esp, eax); /* 0x4600491D: push eax */ 3526 SET_LO16(eax, MEM16(esi)); /* 0x4600491E: mov ax, word ptr [esi] */ 3527 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x46004921: push dword ptr [ebp + 8] */ 3528 PUSH32(esp, eax); /* 0x46004924: push eax */ 3529 eax = ebp + 0xE; /* 0x46004925: lea eax, [ebp + 0xe] */ 3530 PUSH32(esp, eax); /* 0x46004928: push eax */ 3531 RECOMP_ICALL(0x4602485Cu); /* 0x46004929: call 0x4602485c */ /* not lifted */ 3532 RECOMP_FLAGS_IN(); 3533 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3535 esp = esp + 0x10u; /* 0x4600492E: add esp, 0x10 */ 3536 _flag_k = FK_ADD; 3537 /* test eax, eax */ /* 0x46004931: test eax, eax */ 3538 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3539 _cf = 0; 3540 _flag_k = FK_TEST; 3541 if (TEST_LE(_flag_a, _flag_b)) goto L_46004944; /* 0x46004933: jle 0x46004944 */ 3542 L_46004935: 3543 /* cmp MEM32(ebp + 0x14), eax */ /* 0x46004935: cmp dword ptr [ebp + 0x14], eax */ 3544 _flag_a = (uint32_t)(MEM32(ebp + 0x14)); _flag_b = (uint32_t)(eax); 3545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3546 _flag_k = FK_CMP; 3547 if (CMP_B(_flag_a, _flag_b)) goto L_46004944; /* 0x46004938: jb 0x46004944 */ 3548 L_4600493A: 3549 _flag_a = (uint32_t)(MEM32(ebp + 0x14)); _flag_b = (uint32_t)(eax); 3550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3551 MEM32(ebp + 0x14) = MEM32(ebp + 0x14) - eax; /* 0x4600493A: sub dword ptr [ebp + 0x14], eax */ 3552 _flag_k = FK_CMP; 3553 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3554 esi = esi + 1; /* 0x4600493D: inc esi */ 3555 _flag_k = FK_INC; 3556 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3557 esi = esi + 1; /* 0x4600493E: inc esi */ 3558 _flag_k = FK_INC; 3559 /* cmp esi, MEM32(ebp + 0x10) */ /* 0x4600493F: cmp esi, dword ptr [ebp + 0x10] */ 3560 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + 0x10)); 3561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3562 _flag_k = FK_CMP; 3563 RECOMP_BACKEDGE(); 3564 if (CMP_NE(_flag_a, _flag_b)) goto L_46004914; /* 0x46004942: jne 0x46004914 */ 3565 L_46004944: 3566 eax = esi; /* 0x46004944: mov eax, esi */ 3567 edi = POP32_VAL(esp); /* 0x46004946: pop edi */ 3568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3570 eax = eax - ebx; /* 0x46004947: sub eax, ebx */ 3571 _flag_k = FK_CMP; 3572 esi = POP32_VAL(esp); /* 0x46004949: pop esi */ 3573 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4600494A: sar eax, 1 */ 3574 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3575 eax = (uint32_t)((int32_t)eax >> 1u); 3576 ebx = POP32_VAL(esp); /* 0x4600494C: pop ebx */ 3577 ebp = POP32_VAL(esp); /* 0x4600494D: pop ebp */ 3578 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4600494E: ret 0x10 */ 3579 RECOMP_REGS_OUT(); 3580 } 3581 3582 void sub_46004951(void) { 3583 int _fpu_cmp = 0; 3584 uint32_t _cf = 0; 3585 int _df = 1; 3586 uint32_t _flag_k = FK_NONE; 3587 uint32_t _flag_a = 0, _flag_b = 0; 3588 uint32_t _itail_tgt = 0; 3589 RECOMP_REGS_LOCALS 3590 RECOMP_ENTER(0x46004951u); 3591 3592 L_46004951: 3593 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3594 SET_LO8(eax, 0); /* 0x46004951: xor al, al */ 3595 _cf = 0; 3596 _flag_k = FK_NARROW(FK_TEST, 24); 3597 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004953: ret */ 3598 RECOMP_REGS_OUT(); 3599 } 3600 3601 void sub_46004954(void) { 3602 int _fpu_cmp = 0; 3603 uint32_t _cf = 0; 3604 int _df = 1; 3605 uint32_t _flag_k = FK_NONE; 3606 uint32_t _flag_a = 0, _flag_b = 0; 3607 uint32_t _itail_tgt = 0; 3608 RECOMP_REGS_LOCALS 3609 RECOMP_ENTER(0x46004954u); 3610 3611 L_46004954: 3612 PUSH32(esp, 2); /* 0x46004954: push 2 */ 3613 eax = POP32_VAL(esp); /* 0x46004956: pop eax */ 3614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46004957: ret */ 3615 RECOMP_REGS_OUT(); 3616 }