client/game/ppr.dll/lifted-0008.c (236047B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_40014BB9(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x40014BB9u); 17 18 goto L_40014BB9; 19 L_4000F1E0: 20 PUSH32(esp, ecx); /* 0x4000F1E0: push ecx */ 21 RECOMP_ICALL(0x40010070u); /* 0x4000F1E1: call 0x40010070 */ /* not lifted */ 22 RECOMP_FLAGS_IN(); 23 ecx = POP32_VAL(esp); /* 0x4000F1E6: pop ecx */ 24 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000F1E7: ret */ 25 L_40014BB9: 26 ecx = ebp + (-0x50); /* 0x40014BB9: lea ecx, [ebp - 0x50] */ 27 RECOMP_BACKEDGE(); 28 goto L_4000F1E0; /* 0x40014BBC: jmp 0x4000f1e0 */ 29 { RECOMP_REGS_OUT(); return; } /* end of function */ 30 RECOMP_REGS_OUT(); 31 } 32 33 void sub_40014BC1(void) { 34 int _fpu_cmp = 0; 35 uint32_t _cf = 0; 36 int _df = 1; 37 uint32_t _flag_k = FK_NONE; 38 uint32_t _flag_a = 0, _flag_b = 0; 39 uint32_t _itail_tgt = 0; 40 RECOMP_REGS_LOCALS 41 RECOMP_ENTER(0x40014BC1u); 42 43 goto L_40014BC1; 44 L_400031D0: 45 PUSH32(esp, ebp); /* 0x400031D0: push ebp */ 46 ebp = esp; /* 0x400031D1: mov ebp, esp */ 47 PUSH32(esp, 0xFFFFFFFFu); /* 0x400031D3: push -1 */ 48 PUSH32(esp, 0x40014BFFu); /* 0x400031D5: push 0x40014bff */ 49 eax = MEM32(FS_BASE + (0)); /* 0x400031DA: mov eax, dword ptr fs:[0] */ 50 PUSH32(esp, eax); /* 0x400031E0: push eax */ 51 MEM32(FS_BASE + (0)) = esp; /* 0x400031E1: mov dword ptr fs:[0], esp */ 52 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 53 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 54 esp = esp - 0xCu; /* 0x400031E8: sub esp, 0xc */ 55 _flag_k = FK_CMP; 56 PUSH32(esp, ebx); /* 0x400031EB: push ebx */ 57 PUSH32(esp, esi); /* 0x400031EC: push esi */ 58 PUSH32(esp, edi); /* 0x400031ED: push edi */ 59 edi = ecx; /* 0x400031EE: mov edi, ecx */ 60 eax = MEM32(edi + 0x14); /* 0x400031F0: mov eax, dword ptr [edi + 0x14] */ 61 /* test eax, eax */ /* 0x400031F3: test eax, eax */ 62 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 63 _cf = 0; 64 _flag_k = FK_TEST; 65 if (TEST_NZ(_flag_a, _flag_b)) goto L_4000325D; /* 0x400031F5: jne 0x4000325d */ 66 L_400031F7: 67 RECOMP_ICALL(MEM32(0x40016018)); /* 0x400031F7: call dword ptr [0x40016018] */ 68 RECOMP_FLAGS_IN(); 69 ebx = eax; /* 0x400031FD: mov ebx, eax */ 70 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x400031FF: call dword ptr [0x400160d4] */ 71 RECOMP_FLAGS_IN(); 72 eax = MEM32(eax); /* 0x40003205: mov eax, dword ptr [eax] */ 73 /* test eax, eax */ /* 0x40003207: test eax, eax */ 74 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 75 _cf = 0; 76 _flag_k = FK_TEST; 77 if (TEST_Z(_flag_a, _flag_b)) goto L_4000320D; /* 0x40003209: je 0x4000320d */ 78 L_4000320B: 79 ebx = eax; /* 0x4000320B: mov ebx, eax */ 80 L_4000320D: 81 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x4000320D: call dword ptr [0x400161d4] */ 82 RECOMP_FLAGS_IN(); 83 esi = eax; /* 0x40003213: mov esi, eax */ 84 ecx = esi; /* 0x40003215: mov ecx, esi */ 85 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x40003217: call dword ptr [0x400161d8] */ 86 RECOMP_FLAGS_IN(); 87 PUSH32(esp, eax); /* 0x4000321D: push eax */ 88 ecx = esi; /* 0x4000321E: mov ecx, esi */ 89 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x40003220: call dword ptr [0x400161dc] */ 90 RECOMP_FLAGS_IN(); 91 PUSH32(esp, eax); /* 0x40003226: push eax */ 92 ecx = esi; /* 0x40003227: mov ecx, esi */ 93 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x40003229: call dword ptr [0x400161e0] */ 94 RECOMP_FLAGS_IN(); 95 PUSH32(esp, eax); /* 0x4000322F: push eax */ 96 PUSH32(esp, ebx); /* 0x40003230: push ebx */ 97 PUSH32(esp, 0xFFFFFFFFu); /* 0x40003231: push -1 */ 98 PUSH32(esp, 0x56u); /* 0x40003233: push 0x56 */ 99 PUSH32(esp, 0x4001C288u); /* 0x40003235: push 0x4001c288 */ 100 ecx = esi; /* 0x4000323A: mov ecx, esi */ 101 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x4000323C: call dword ptr [0x400161e4] */ 102 RECOMP_FLAGS_IN(); 103 PUSH32(esp, 0xFFFFFFFFu); /* 0x40003242: push -1 */ 104 PUSH32(esp, 0x4001C27Cu); /* 0x40003244: push 0x4001c27c */ 105 PUSH32(esp, 0x4001C240u); /* 0x40003249: push 0x4001c240 */ 106 PUSH32(esp, 0x80u); /* 0x4000324E: push 0x80 */ 107 PUSH32(esp, esi); /* 0x40003253: push esi */ 108 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x40003254: call dword ptr [0x400161e8] */ 109 RECOMP_FLAGS_IN(); 110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 112 esp = esp + 0x14u; /* 0x4000325A: add esp, 0x14 */ 113 _flag_k = FK_ADD; 114 L_4000325D: 115 esi = MEM32(edi + 0x14); /* 0x4000325D: mov esi, dword ptr [edi + 0x14] */ 116 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 118 esi = esi + 0x44u; /* 0x40003260: add esi, 0x44 */ 119 _flag_k = FK_ADD; 120 PUSH32(esp, esi); /* 0x40003263: push esi */ 121 MEM32(ebp + (-0x18)) = esi; /* 0x40003264: mov dword ptr [ebp - 0x18], esi */ 122 RECOMP_ICALL(MEM32(0x40016014)); /* 0x40003267: call dword ptr [0x40016014] */ 123 RECOMP_FLAGS_IN(); 124 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 125 ebx = 0; /* 0x4000326D: xor ebx, ebx */ 126 _cf = 0; 127 _flag_k = FK_TEST; 128 MEM32(ebp + (-0x14)) = ebx; /* 0x4000326F: mov dword ptr [ebp - 0x14], ebx */ 129 eax = MEM32(edi + 0x14); /* 0x40003272: mov eax, dword ptr [edi + 0x14] */ 130 ecx = MEM32(eax + 0x4); /* 0x40003275: mov ecx, dword ptr [eax + 4] */ 131 /* cmp ecx, ebx */ /* 0x40003278: cmp ecx, ebx */ 132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 134 _flag_k = FK_CMP; 135 edx = ecx + (-0x1); /* 0x4000327A: lea edx, [ecx - 1] */ 136 MEM32(ebp + (-0x4)) = ebx; /* 0x4000327D: mov dword ptr [ebp - 4], ebx */ 137 MEM32(eax + 0x4) = edx; /* 0x40003280: mov dword ptr [eax + 4], edx */ 138 if (CMP_NE(_flag_a, _flag_b)) goto L_400032FA; /* 0x40003283: jne 0x400032fa */ 139 L_40003285: 140 PUSH32(esp, esi); /* 0x40003285: push esi */ 141 MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x40003286: mov dword ptr [ebp - 0x14], 0xffffffff */ 142 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4000328D: call dword ptr [0x40016010] */ 143 RECOMP_FLAGS_IN(); 144 esi = MEM32(edi + 0x14); /* 0x40003293: mov esi, dword ptr [edi + 0x14] */ 145 /* cmp esi, ebx */ /* 0x40003296: cmp esi, ebx */ 146 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 148 _flag_k = FK_CMP; 149 MEM32(ebp + (-0x10)) = esi; /* 0x40003298: mov dword ptr [ebp - 0x10], esi */ 150 if (CMP_EQ(_flag_a, _flag_b)) goto L_40003301; /* 0x4000329B: je 0x40003301 */ 151 L_4000329D: 152 eax = MEM32(esi); /* 0x4000329D: mov eax, dword ptr [esi] */ 153 PUSH32(esp, eax); /* 0x4000329F: push eax */ 154 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x400032A0: mov byte ptr [ebp - 4], 2 */ 155 RECOMP_ICALL(0x400146F2u); /* 0x400032A4: call 0x400146f2 */ /* not lifted */ 156 RECOMP_FLAGS_IN(); 157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 159 esp = esp + 4; /* 0x400032A9: add esp, 4 */ 160 _flag_k = FK_ADD; 161 ecx = esi + 0x44; /* 0x400032AC: lea ecx, [esi + 0x44] */ 162 RECOMP_ICALL(MEM32(0x400161EC)); /* 0x400032AF: call dword ptr [0x400161ec] */ 163 RECOMP_FLAGS_IN(); 164 ecx = esi + 0x14; /* 0x400032B5: lea ecx, [esi + 0x14] */ 165 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x400032B8: mov byte ptr [ebp - 4], 1 */ 166 RECOMP_ICALL(MEM32(0x400161F0)); /* 0x400032BC: call dword ptr [0x400161f0] */ 167 RECOMP_FLAGS_IN(); 168 edi = esi + 0x8; /* 0x400032C2: lea edi, [esi + 8] */ 169 ecx = edi; /* 0x400032C5: mov ecx, edi */ 170 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x400032C7: mov byte ptr [ebp - 4], bl */ 171 RECOMP_ICALL(0x40010C80u); /* 0x400032CA: call 0x40010c80 */ /* not lifted */ 172 RECOMP_FLAGS_IN(); 173 eax = MEM32(edi); /* 0x400032CF: mov eax, dword ptr [edi] */ 174 /* cmp eax, ebx */ /* 0x400032D1: cmp eax, ebx */ 175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 177 _flag_k = FK_CMP; 178 if (CMP_EQ(_flag_a, _flag_b)) goto L_400032DE; /* 0x400032D3: je 0x400032de */ 179 L_400032D5: 180 ecx = MEM32(edi + 0x8); /* 0x400032D5: mov ecx, dword ptr [edi + 8] */ 181 edx = MEM32(ecx); /* 0x400032D8: mov edx, dword ptr [ecx] */ 182 PUSH32(esp, eax); /* 0x400032DA: push eax */ 183 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x400032DB: call dword ptr [edx + 0xc] */ 184 RECOMP_FLAGS_IN(); 185 L_400032DE: 186 PUSH32(esp, esi); /* 0x400032DE: push esi */ 187 MEM32(edi) = ebx; /* 0x400032DF: mov dword ptr [edi], ebx */ 188 RECOMP_ICALL(0x400146F2u); /* 0x400032E1: call 0x400146f2 */ /* not lifted */ 189 RECOMP_FLAGS_IN(); 190 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 191 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 192 esp = esp + 4; /* 0x400032E6: add esp, 4 */ 193 _flag_k = FK_ADD; 194 edi = POP32_VAL(esp); /* 0x400032E9: pop edi */ 195 esi = POP32_VAL(esp); /* 0x400032EA: pop esi */ 196 ebx = POP32_VAL(esp); /* 0x400032EB: pop ebx */ 197 ecx = MEM32(ebp + (-0xC)); /* 0x400032EC: mov ecx, dword ptr [ebp - 0xc] */ 198 MEM32(FS_BASE + (0)) = ecx; /* 0x400032EF: mov dword ptr fs:[0], ecx */ 199 esp = ebp; /* 0x400032F6: mov esp, ebp */ 200 ebp = POP32_VAL(esp); /* 0x400032F8: pop ebp */ 201 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400032F9: ret */ 202 L_400032FA: 203 PUSH32(esp, esi); /* 0x400032FA: push esi */ 204 RECOMP_ICALL(MEM32(0x40016010)); /* 0x400032FB: call dword ptr [0x40016010] */ 205 RECOMP_FLAGS_IN(); 206 L_40003301: 207 ecx = MEM32(ebp + (-0xC)); /* 0x40003301: mov ecx, dword ptr [ebp - 0xc] */ 208 edi = POP32_VAL(esp); /* 0x40003304: pop edi */ 209 esi = POP32_VAL(esp); /* 0x40003305: pop esi */ 210 ebx = POP32_VAL(esp); /* 0x40003306: pop ebx */ 211 MEM32(FS_BASE + (0)) = ecx; /* 0x40003307: mov dword ptr fs:[0], ecx */ 212 esp = ebp; /* 0x4000330E: mov esp, ebp */ 213 ebp = POP32_VAL(esp); /* 0x40003310: pop ebp */ 214 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40003311: ret */ 215 L_40014BC1: 216 ecx = ebp + (-0x64); /* 0x40014BC1: lea ecx, [ebp - 0x64] */ 217 RECOMP_BACKEDGE(); 218 goto L_400031D0; /* 0x40014BC4: jmp 0x400031d0 */ 219 { RECOMP_REGS_OUT(); return; } /* end of function */ 220 RECOMP_REGS_OUT(); 221 } 222 223 void sub_40014BC9(void) { 224 int _fpu_cmp = 0; 225 uint32_t _cf = 0; 226 int _df = 1; 227 uint32_t _flag_k = FK_NONE; 228 uint32_t _flag_a = 0, _flag_b = 0; 229 uint32_t _itail_tgt = 0; 230 RECOMP_REGS_LOCALS 231 RECOMP_ENTER(0x40014BC9u); 232 233 goto L_40014BC9; 234 L_4001470A: 235 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 236 L_40014BC9: 237 eax = 0x40016C40u; /* 0x40014BC9: mov eax, 0x40016c40 */ 238 L_40014BCE: 239 RECOMP_BACKEDGE(); 240 goto L_4001470A; /* 0x40014BCE: jmp 0x4001470a */ 241 { RECOMP_REGS_OUT(); return; } /* end of function */ 242 _ljump: 243 switch (_itail_tgt) { 244 case 0x4001470Au: goto L_4001470A; 245 case 0x40014BC9u: goto L_40014BC9; 246 case 0x40014BCEu: goto L_40014BCE; 247 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 248 } 249 RECOMP_REGS_OUT(); 250 } 251 252 void sub_40014BE0(void) { 253 int _fpu_cmp = 0; 254 uint32_t _cf = 0; 255 int _df = 1; 256 uint32_t _flag_k = FK_NONE; 257 uint32_t _flag_a = 0, _flag_b = 0; 258 uint32_t _itail_tgt = 0; 259 RECOMP_REGS_LOCALS 260 RECOMP_ENTER(0x40014BE0u); 261 262 goto L_40014BE0; 263 L_4000F1A0: 264 edx = MEM32(ecx + 0x4); /* 0x4000F1A0: mov edx, dword ptr [ecx + 4] */ 265 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 266 eax = eax | 0xFFFFFFFFu; /* 0x4000F1A3: or eax, 0xffffffff */ 267 _cf = 0; 268 _flag_k = FK_TEST; 269 /* cmp edx, eax */ /* 0x4000F1A6: cmp edx, eax */ 270 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 272 _flag_k = FK_CMP; 273 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000F1B6; /* 0x4000F1A8: je 0x4000f1b6 */ 274 L_4000F1AA: 275 MEM32(ecx + 0x4) = eax; /* 0x4000F1AA: mov dword ptr [ecx + 4], eax */ 276 eax = MEM32(ecx); /* 0x4000F1AD: mov eax, dword ptr [ecx] */ 277 PUSH32(esp, eax); /* 0x4000F1AF: push eax */ 278 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4000F1B0: call dword ptr [0x40016010] */ 279 RECOMP_FLAGS_IN(); 280 L_4000F1B6: 281 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000F1B6: ret */ 282 L_40014BE0: 283 ecx = ebp + (-0x18); /* 0x40014BE0: lea ecx, [ebp - 0x18] */ 284 RECOMP_BACKEDGE(); 285 goto L_4000F1A0; /* 0x40014BE3: jmp 0x4000f1a0 */ 286 { RECOMP_REGS_OUT(); return; } /* end of function */ 287 RECOMP_REGS_OUT(); 288 } 289 290 void sub_40014BE8(void) { 291 int _fpu_cmp = 0; 292 uint32_t _cf = 0; 293 int _df = 1; 294 uint32_t _flag_k = FK_NONE; 295 uint32_t _flag_a = 0, _flag_b = 0; 296 uint32_t _itail_tgt = 0; 297 RECOMP_REGS_LOCALS 298 RECOMP_ENTER(0x40014BE8u); 299 300 goto L_40014BE8; 301 L_40010C10: 302 PUSH32(esp, esi); /* 0x40010C10: push esi */ 303 esi = ecx; /* 0x40010C11: mov esi, ecx */ 304 eax = MEM32(esi); /* 0x40010C13: mov eax, dword ptr [esi] */ 305 PUSH32(esp, edi); /* 0x40010C15: push edi */ 306 edi = MEM32(eax); /* 0x40010C16: mov edi, dword ptr [eax] */ 307 /* cmp edi, eax */ /* 0x40010C18: cmp edi, eax */ 308 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 310 _flag_k = FK_CMP; 311 if (CMP_EQ(_flag_a, _flag_b)) goto L_40010C3A; /* 0x40010C1A: je 0x40010c3a */ 312 L_40010C1C: 313 eax = edi; /* 0x40010C1C: mov eax, edi */ 314 /* test eax, eax */ /* 0x40010C1E: test eax, eax */ 315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 316 _cf = 0; 317 _flag_k = FK_TEST; 318 edi = MEM32(edi); /* 0x40010C20: mov edi, dword ptr [edi] */ 319 if (TEST_Z(_flag_a, _flag_b)) goto L_40010C2D; /* 0x40010C22: je 0x40010c2d */ 320 L_40010C24: 321 ecx = MEM32(esi + 0x8); /* 0x40010C24: mov ecx, dword ptr [esi + 8] */ 322 edx = MEM32(ecx); /* 0x40010C27: mov edx, dword ptr [ecx] */ 323 PUSH32(esp, eax); /* 0x40010C29: push eax */ 324 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x40010C2A: call dword ptr [edx + 0xc] */ 325 RECOMP_FLAGS_IN(); 326 L_40010C2D: 327 ecx = MEM32(esi + 0x4); /* 0x40010C2D: mov ecx, dword ptr [esi + 4] */ 328 eax = MEM32(esi); /* 0x40010C30: mov eax, dword ptr [esi] */ 329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 330 ecx = ecx - 1; /* 0x40010C32: dec ecx */ 331 _flag_k = FK_DEC; 332 /* cmp edi, eax */ /* 0x40010C33: cmp edi, eax */ 333 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 335 _flag_k = FK_CMP; 336 MEM32(esi + 0x4) = ecx; /* 0x40010C35: mov dword ptr [esi + 4], ecx */ 337 RECOMP_BACKEDGE(); 338 if (CMP_NE(_flag_a, _flag_b)) goto L_40010C1C; /* 0x40010C38: jne 0x40010c1c */ 339 L_40010C3A: 340 eax = MEM32(esi); /* 0x40010C3A: mov eax, dword ptr [esi] */ 341 MEM32(eax) = eax; /* 0x40010C3C: mov dword ptr [eax], eax */ 342 eax = MEM32(esi); /* 0x40010C3E: mov eax, dword ptr [esi] */ 343 /* test eax, eax */ /* 0x40010C40: test eax, eax */ 344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 345 _cf = 0; 346 _flag_k = FK_TEST; 347 if (TEST_Z(_flag_a, _flag_b)) goto L_40010C4D; /* 0x40010C42: je 0x40010c4d */ 348 L_40010C44: 349 ecx = MEM32(esi + 0x8); /* 0x40010C44: mov ecx, dword ptr [esi + 8] */ 350 edx = MEM32(ecx); /* 0x40010C47: mov edx, dword ptr [ecx] */ 351 PUSH32(esp, eax); /* 0x40010C49: push eax */ 352 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x40010C4A: call dword ptr [edx + 0xc] */ 353 RECOMP_FLAGS_IN(); 354 L_40010C4D: 355 edi = POP32_VAL(esp); /* 0x40010C4D: pop edi */ 356 MEM32(esi) = 0; /* 0x40010C4E: mov dword ptr [esi], 0 */ 357 esi = POP32_VAL(esp); /* 0x40010C54: pop esi */ 358 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40010C55: ret */ 359 L_40014BE8: 360 ecx = MEM32(ebp + (-0x10)); /* 0x40014BE8: mov ecx, dword ptr [ebp - 0x10] */ 361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 362 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 363 ecx = ecx + 8; /* 0x40014BEB: add ecx, 8 */ 364 _flag_k = FK_ADD; 365 RECOMP_BACKEDGE(); 366 goto L_40010C10; /* 0x40014BEE: jmp 0x40010c10 */ 367 { RECOMP_REGS_OUT(); return; } /* end of function */ 368 RECOMP_REGS_OUT(); 369 } 370 371 void sub_40014BF3(void) { 372 int _fpu_cmp = 0; 373 uint32_t _cf = 0; 374 int _df = 1; 375 uint32_t _flag_k = FK_NONE; 376 uint32_t _flag_a = 0, _flag_b = 0; 377 uint32_t _itail_tgt = 0; 378 RECOMP_REGS_LOCALS 379 RECOMP_ENTER(0x40014BF3u); 380 381 L_40014BF3: 382 ecx = MEM32(ebp + (-0x10)); /* 0x40014BF3: mov ecx, dword ptr [ebp - 0x10] */ 383 L_40014BF6: 384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 386 ecx = ecx + 0x14u; /* 0x40014BF6: add ecx, 0x14 */ 387 _flag_k = FK_ADD; 388 L_40014BF9: 389 { _itail_tgt = (uint32_t)(MEM32(0x400161F0)); goto _ljump; } 390 { RECOMP_REGS_OUT(); return; } /* end of function */ 391 _ljump: 392 switch (_itail_tgt) { 393 case 0x40014BF3u: goto L_40014BF3; 394 case 0x40014BF6u: goto L_40014BF6; 395 case 0x40014BF9u: goto L_40014BF9; 396 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 397 } 398 RECOMP_REGS_OUT(); 399 } 400 401 void sub_40014BFF(void) { 402 int _fpu_cmp = 0; 403 uint32_t _cf = 0; 404 int _df = 1; 405 uint32_t _flag_k = FK_NONE; 406 uint32_t _flag_a = 0, _flag_b = 0; 407 uint32_t _itail_tgt = 0; 408 RECOMP_REGS_LOCALS 409 RECOMP_ENTER(0x40014BFFu); 410 411 goto L_40014BFF; 412 L_4001470A: 413 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 414 L_40014BFF: 415 eax = 0x40016C78u; /* 0x40014BFF: mov eax, 0x40016c78 */ 416 L_40014C04: 417 RECOMP_BACKEDGE(); 418 goto L_4001470A; /* 0x40014C04: jmp 0x4001470a */ 419 { RECOMP_REGS_OUT(); return; } /* end of function */ 420 _ljump: 421 switch (_itail_tgt) { 422 case 0x4001470Au: goto L_4001470A; 423 case 0x40014BFFu: goto L_40014BFF; 424 case 0x40014C04u: goto L_40014C04; 425 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 426 } 427 RECOMP_REGS_OUT(); 428 } 429 430 void sub_40014C10(void) { 431 int _fpu_cmp = 0; 432 uint32_t _cf = 0; 433 int _df = 1; 434 uint32_t _flag_k = FK_NONE; 435 uint32_t _flag_a = 0, _flag_b = 0; 436 uint32_t _itail_tgt = 0; 437 RECOMP_REGS_LOCALS 438 RECOMP_ENTER(0x40014C10u); 439 440 goto L_40014C10; 441 L_400071C0: 442 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 443 PUSH32(esp, esi); /* 0x400071C1: push esi */ 444 PUSH32(esp, edi); /* 0x400071C2: push edi */ 445 edi = ecx; /* 0x400071C3: mov edi, ecx */ 446 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 447 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 448 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 449 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 451 _flag_k = FK_CMP; 452 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 453 L_400071CE: 454 eax = esi; /* 0x400071CE: mov eax, esi */ 455 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 456 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 457 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 458 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 459 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 460 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 461 PUSH32(esp, eax); /* 0x400071DE: push eax */ 462 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 463 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 464 RECOMP_FLAGS_IN(); 465 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 468 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 469 _flag_k = FK_ADD; 470 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 471 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 472 _flag_k = FK_DEC; 473 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 474 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 476 _flag_k = FK_CMP; 477 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 478 RECOMP_BACKEDGE(); 479 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 480 L_400071F5: 481 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 482 PUSH32(esp, eax); /* 0x400071F8: push eax */ 483 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 484 RECOMP_FLAGS_IN(); 485 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 487 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 488 _flag_k = FK_ADD; 489 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 490 eax = 0; /* 0x40007201: xor eax, eax */ 491 _cf = 0; 492 _flag_k = FK_TEST; 493 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 494 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 495 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 496 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 497 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 498 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 499 L_40014C10: 500 ecx = ebp + (-0x54); /* 0x40014C10: lea ecx, [ebp - 0x54] */ 501 RECOMP_BACKEDGE(); 502 goto L_400071C0; /* 0x40014C13: jmp 0x400071c0 */ 503 { RECOMP_REGS_OUT(); return; } /* end of function */ 504 RECOMP_REGS_OUT(); 505 } 506 507 void sub_40014C18(void) { 508 int _fpu_cmp = 0; 509 uint32_t _cf = 0; 510 int _df = 1; 511 uint32_t _flag_k = FK_NONE; 512 uint32_t _flag_a = 0, _flag_b = 0; 513 uint32_t _itail_tgt = 0; 514 RECOMP_REGS_LOCALS 515 RECOMP_ENTER(0x40014C18u); 516 517 goto L_40014C18; 518 L_40007350: 519 PUSH32(esp, ebx); /* 0x40007350: push ebx */ 520 PUSH32(esp, esi); /* 0x40007351: push esi */ 521 PUSH32(esp, edi); /* 0x40007352: push edi */ 522 edi = ecx; /* 0x40007353: mov edi, ecx */ 523 ebx = MEM32(edi + 0xC); /* 0x40007355: mov ebx, dword ptr [edi + 0xc] */ 524 esi = MEM32(ebx); /* 0x40007358: mov esi, dword ptr [ebx] */ 525 /* cmp esi, ebx */ /* 0x4000735A: cmp esi, ebx */ 526 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 528 _flag_k = FK_CMP; 529 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007385; /* 0x4000735C: je 0x40007385 */ 530 L_4000735E: 531 eax = esi; /* 0x4000735E: mov eax, esi */ 532 ecx = MEM32(eax + 0x4); /* 0x40007360: mov ecx, dword ptr [eax + 4] */ 533 edx = MEM32(eax); /* 0x40007363: mov edx, dword ptr [eax] */ 534 esi = MEM32(esi); /* 0x40007365: mov esi, dword ptr [esi] */ 535 MEM32(ecx) = edx; /* 0x40007367: mov dword ptr [ecx], edx */ 536 ecx = MEM32(eax); /* 0x40007369: mov ecx, dword ptr [eax] */ 537 edx = MEM32(eax + 0x4); /* 0x4000736B: mov edx, dword ptr [eax + 4] */ 538 PUSH32(esp, eax); /* 0x4000736E: push eax */ 539 MEM32(ecx + 0x4) = edx; /* 0x4000736F: mov dword ptr [ecx + 4], edx */ 540 RECOMP_ICALL(0x400146F2u); /* 0x40007372: call 0x400146f2 */ /* not lifted */ 541 RECOMP_FLAGS_IN(); 542 ecx = MEM32(edi + 0x10); /* 0x40007377: mov ecx, dword ptr [edi + 0x10] */ 543 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 544 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 545 esp = esp + 4; /* 0x4000737A: add esp, 4 */ 546 _flag_k = FK_ADD; 547 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 548 ecx = ecx - 1; /* 0x4000737D: dec ecx */ 549 _flag_k = FK_DEC; 550 /* cmp esi, ebx */ /* 0x4000737E: cmp esi, ebx */ 551 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 553 _flag_k = FK_CMP; 554 MEM32(edi + 0x10) = ecx; /* 0x40007380: mov dword ptr [edi + 0x10], ecx */ 555 RECOMP_BACKEDGE(); 556 if (CMP_NE(_flag_a, _flag_b)) goto L_4000735E; /* 0x40007383: jne 0x4000735e */ 557 L_40007385: 558 eax = MEM32(edi + 0xC); /* 0x40007385: mov eax, dword ptr [edi + 0xc] */ 559 PUSH32(esp, eax); /* 0x40007388: push eax */ 560 RECOMP_ICALL(0x400146F2u); /* 0x40007389: call 0x400146f2 */ /* not lifted */ 561 RECOMP_FLAGS_IN(); 562 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 564 esp = esp + 4; /* 0x4000738E: add esp, 4 */ 565 _flag_k = FK_ADD; 566 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 567 eax = 0; /* 0x40007391: xor eax, eax */ 568 _cf = 0; 569 _flag_k = FK_TEST; 570 MEM32(edi + 0xC) = eax; /* 0x40007393: mov dword ptr [edi + 0xc], eax */ 571 MEM32(edi + 0x10) = eax; /* 0x40007396: mov dword ptr [edi + 0x10], eax */ 572 edi = POP32_VAL(esp); /* 0x40007399: pop edi */ 573 esi = POP32_VAL(esp); /* 0x4000739A: pop esi */ 574 ebx = POP32_VAL(esp); /* 0x4000739B: pop ebx */ 575 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000739C: ret */ 576 L_40014C18: 577 ecx = ebp + (-0x68); /* 0x40014C18: lea ecx, [ebp - 0x68] */ 578 RECOMP_BACKEDGE(); 579 goto L_40007350; /* 0x40014C1B: jmp 0x40007350 */ 580 { RECOMP_REGS_OUT(); return; } /* end of function */ 581 RECOMP_REGS_OUT(); 582 } 583 584 void sub_40014C20(void) { 585 int _fpu_cmp = 0; 586 uint32_t _cf = 0; 587 int _df = 1; 588 uint32_t _flag_k = FK_NONE; 589 uint32_t _flag_a = 0, _flag_b = 0; 590 uint32_t _itail_tgt = 0; 591 RECOMP_REGS_LOCALS 592 RECOMP_ENTER(0x40014C20u); 593 594 goto L_40014C20; 595 L_400071C0: 596 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 597 PUSH32(esp, esi); /* 0x400071C1: push esi */ 598 PUSH32(esp, edi); /* 0x400071C2: push edi */ 599 edi = ecx; /* 0x400071C3: mov edi, ecx */ 600 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 601 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 602 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 603 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 605 _flag_k = FK_CMP; 606 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 607 L_400071CE: 608 eax = esi; /* 0x400071CE: mov eax, esi */ 609 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 610 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 611 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 612 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 613 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 614 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 615 PUSH32(esp, eax); /* 0x400071DE: push eax */ 616 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 617 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 618 RECOMP_FLAGS_IN(); 619 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 622 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 623 _flag_k = FK_ADD; 624 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 625 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 626 _flag_k = FK_DEC; 627 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 628 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 630 _flag_k = FK_CMP; 631 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 632 RECOMP_BACKEDGE(); 633 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 634 L_400071F5: 635 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 636 PUSH32(esp, eax); /* 0x400071F8: push eax */ 637 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 638 RECOMP_FLAGS_IN(); 639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 641 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 642 _flag_k = FK_ADD; 643 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 644 eax = 0; /* 0x40007201: xor eax, eax */ 645 _cf = 0; 646 _flag_k = FK_TEST; 647 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 648 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 649 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 650 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 651 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 653 L_40014C20: 654 ecx = ebp + (-0x48); /* 0x40014C20: lea ecx, [ebp - 0x48] */ 655 RECOMP_BACKEDGE(); 656 goto L_400071C0; /* 0x40014C23: jmp 0x400071c0 */ 657 { RECOMP_REGS_OUT(); return; } /* end of function */ 658 RECOMP_REGS_OUT(); 659 } 660 661 void sub_40014C28(void) { 662 int _fpu_cmp = 0; 663 uint32_t _cf = 0; 664 int _df = 1; 665 uint32_t _flag_k = FK_NONE; 666 uint32_t _flag_a = 0, _flag_b = 0; 667 uint32_t _itail_tgt = 0; 668 RECOMP_REGS_LOCALS 669 RECOMP_ENTER(0x40014C28u); 670 671 goto L_40014C28; 672 L_400071C0: 673 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 674 PUSH32(esp, esi); /* 0x400071C1: push esi */ 675 PUSH32(esp, edi); /* 0x400071C2: push edi */ 676 edi = ecx; /* 0x400071C3: mov edi, ecx */ 677 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 678 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 679 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 680 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 682 _flag_k = FK_CMP; 683 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 684 L_400071CE: 685 eax = esi; /* 0x400071CE: mov eax, esi */ 686 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 687 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 688 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 689 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 690 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 691 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 692 PUSH32(esp, eax); /* 0x400071DE: push eax */ 693 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 694 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 695 RECOMP_FLAGS_IN(); 696 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 699 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 700 _flag_k = FK_ADD; 701 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 702 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 703 _flag_k = FK_DEC; 704 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 705 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 707 _flag_k = FK_CMP; 708 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 709 RECOMP_BACKEDGE(); 710 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 711 L_400071F5: 712 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 713 PUSH32(esp, eax); /* 0x400071F8: push eax */ 714 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 715 RECOMP_FLAGS_IN(); 716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 718 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 719 _flag_k = FK_ADD; 720 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 721 eax = 0; /* 0x40007201: xor eax, eax */ 722 _cf = 0; 723 _flag_k = FK_TEST; 724 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 725 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 726 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 727 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 728 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 729 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 730 L_40014C28: 731 ecx = ebp + (-0x3C); /* 0x40014C28: lea ecx, [ebp - 0x3c] */ 732 RECOMP_BACKEDGE(); 733 goto L_400071C0; /* 0x40014C2B: jmp 0x400071c0 */ 734 { RECOMP_REGS_OUT(); return; } /* end of function */ 735 RECOMP_REGS_OUT(); 736 } 737 738 void sub_40014C30(void) { 739 int _fpu_cmp = 0; 740 uint32_t _cf = 0; 741 int _df = 1; 742 uint32_t _flag_k = FK_NONE; 743 uint32_t _flag_a = 0, _flag_b = 0; 744 uint32_t _itail_tgt = 0; 745 RECOMP_REGS_LOCALS 746 RECOMP_ENTER(0x40014C30u); 747 748 goto L_40014C30; 749 L_4001470A: 750 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 751 L_40014C30: 752 eax = 0x40016CB0u; /* 0x40014C30: mov eax, 0x40016cb0 */ 753 L_40014C35: 754 RECOMP_BACKEDGE(); 755 goto L_4001470A; /* 0x40014C35: jmp 0x4001470a */ 756 { RECOMP_REGS_OUT(); return; } /* end of function */ 757 _ljump: 758 switch (_itail_tgt) { 759 case 0x4001470Au: goto L_4001470A; 760 case 0x40014C30u: goto L_40014C30; 761 case 0x40014C35u: goto L_40014C35; 762 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 763 } 764 RECOMP_REGS_OUT(); 765 } 766 767 void sub_40014C40(void) { 768 int _fpu_cmp = 0; 769 uint32_t _cf = 0; 770 int _df = 1; 771 uint32_t _flag_k = FK_NONE; 772 uint32_t _flag_a = 0, _flag_b = 0; 773 uint32_t _itail_tgt = 0; 774 RECOMP_REGS_LOCALS 775 RECOMP_ENTER(0x40014C40u); 776 777 goto L_40014C40; 778 L_400071C0: 779 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 780 PUSH32(esp, esi); /* 0x400071C1: push esi */ 781 PUSH32(esp, edi); /* 0x400071C2: push edi */ 782 edi = ecx; /* 0x400071C3: mov edi, ecx */ 783 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 784 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 785 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 786 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 788 _flag_k = FK_CMP; 789 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 790 L_400071CE: 791 eax = esi; /* 0x400071CE: mov eax, esi */ 792 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 793 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 794 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 795 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 796 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 797 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 798 PUSH32(esp, eax); /* 0x400071DE: push eax */ 799 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 800 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 801 RECOMP_FLAGS_IN(); 802 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 805 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 806 _flag_k = FK_ADD; 807 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 808 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 809 _flag_k = FK_DEC; 810 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 811 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 813 _flag_k = FK_CMP; 814 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 815 RECOMP_BACKEDGE(); 816 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 817 L_400071F5: 818 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 819 PUSH32(esp, eax); /* 0x400071F8: push eax */ 820 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 821 RECOMP_FLAGS_IN(); 822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 824 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 825 _flag_k = FK_ADD; 826 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 827 eax = 0; /* 0x40007201: xor eax, eax */ 828 _cf = 0; 829 _flag_k = FK_TEST; 830 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 831 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 832 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 833 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 834 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 835 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 836 L_40014C40: 837 ecx = ebp + (-0x28); /* 0x40014C40: lea ecx, [ebp - 0x28] */ 838 RECOMP_BACKEDGE(); 839 goto L_400071C0; /* 0x40014C43: jmp 0x400071c0 */ 840 { RECOMP_REGS_OUT(); return; } /* end of function */ 841 RECOMP_REGS_OUT(); 842 } 843 844 void sub_40014C48(void) { 845 int _fpu_cmp = 0; 846 uint32_t _cf = 0; 847 int _df = 1; 848 uint32_t _flag_k = FK_NONE; 849 uint32_t _flag_a = 0, _flag_b = 0; 850 uint32_t _itail_tgt = 0; 851 RECOMP_REGS_LOCALS 852 RECOMP_ENTER(0x40014C48u); 853 854 goto L_40014C48; 855 L_400071C0: 856 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 857 PUSH32(esp, esi); /* 0x400071C1: push esi */ 858 PUSH32(esp, edi); /* 0x400071C2: push edi */ 859 edi = ecx; /* 0x400071C3: mov edi, ecx */ 860 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 861 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 862 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 863 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 865 _flag_k = FK_CMP; 866 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 867 L_400071CE: 868 eax = esi; /* 0x400071CE: mov eax, esi */ 869 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 870 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 871 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 872 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 873 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 874 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 875 PUSH32(esp, eax); /* 0x400071DE: push eax */ 876 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 877 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 878 RECOMP_FLAGS_IN(); 879 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 882 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 883 _flag_k = FK_ADD; 884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 885 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 886 _flag_k = FK_DEC; 887 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 888 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 890 _flag_k = FK_CMP; 891 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 892 RECOMP_BACKEDGE(); 893 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 894 L_400071F5: 895 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 896 PUSH32(esp, eax); /* 0x400071F8: push eax */ 897 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 898 RECOMP_FLAGS_IN(); 899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 901 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 902 _flag_k = FK_ADD; 903 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 904 eax = 0; /* 0x40007201: xor eax, eax */ 905 _cf = 0; 906 _flag_k = FK_TEST; 907 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 908 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 909 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 910 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 911 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 912 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 913 L_40014C48: 914 ecx = ebp + (-0x34); /* 0x40014C48: lea ecx, [ebp - 0x34] */ 915 RECOMP_BACKEDGE(); 916 goto L_400071C0; /* 0x40014C4B: jmp 0x400071c0 */ 917 { RECOMP_REGS_OUT(); return; } /* end of function */ 918 RECOMP_REGS_OUT(); 919 } 920 921 void sub_40014C50(void) { 922 int _fpu_cmp = 0; 923 uint32_t _cf = 0; 924 int _df = 1; 925 uint32_t _flag_k = FK_NONE; 926 uint32_t _flag_a = 0, _flag_b = 0; 927 uint32_t _itail_tgt = 0; 928 RECOMP_REGS_LOCALS 929 RECOMP_ENTER(0x40014C50u); 930 931 goto L_40014C50; 932 L_40007350: 933 PUSH32(esp, ebx); /* 0x40007350: push ebx */ 934 PUSH32(esp, esi); /* 0x40007351: push esi */ 935 PUSH32(esp, edi); /* 0x40007352: push edi */ 936 edi = ecx; /* 0x40007353: mov edi, ecx */ 937 ebx = MEM32(edi + 0xC); /* 0x40007355: mov ebx, dword ptr [edi + 0xc] */ 938 esi = MEM32(ebx); /* 0x40007358: mov esi, dword ptr [ebx] */ 939 /* cmp esi, ebx */ /* 0x4000735A: cmp esi, ebx */ 940 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 942 _flag_k = FK_CMP; 943 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007385; /* 0x4000735C: je 0x40007385 */ 944 L_4000735E: 945 eax = esi; /* 0x4000735E: mov eax, esi */ 946 ecx = MEM32(eax + 0x4); /* 0x40007360: mov ecx, dword ptr [eax + 4] */ 947 edx = MEM32(eax); /* 0x40007363: mov edx, dword ptr [eax] */ 948 esi = MEM32(esi); /* 0x40007365: mov esi, dword ptr [esi] */ 949 MEM32(ecx) = edx; /* 0x40007367: mov dword ptr [ecx], edx */ 950 ecx = MEM32(eax); /* 0x40007369: mov ecx, dword ptr [eax] */ 951 edx = MEM32(eax + 0x4); /* 0x4000736B: mov edx, dword ptr [eax + 4] */ 952 PUSH32(esp, eax); /* 0x4000736E: push eax */ 953 MEM32(ecx + 0x4) = edx; /* 0x4000736F: mov dword ptr [ecx + 4], edx */ 954 RECOMP_ICALL(0x400146F2u); /* 0x40007372: call 0x400146f2 */ /* not lifted */ 955 RECOMP_FLAGS_IN(); 956 ecx = MEM32(edi + 0x10); /* 0x40007377: mov ecx, dword ptr [edi + 0x10] */ 957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 959 esp = esp + 4; /* 0x4000737A: add esp, 4 */ 960 _flag_k = FK_ADD; 961 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 962 ecx = ecx - 1; /* 0x4000737D: dec ecx */ 963 _flag_k = FK_DEC; 964 /* cmp esi, ebx */ /* 0x4000737E: cmp esi, ebx */ 965 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 967 _flag_k = FK_CMP; 968 MEM32(edi + 0x10) = ecx; /* 0x40007380: mov dword ptr [edi + 0x10], ecx */ 969 RECOMP_BACKEDGE(); 970 if (CMP_NE(_flag_a, _flag_b)) goto L_4000735E; /* 0x40007383: jne 0x4000735e */ 971 L_40007385: 972 eax = MEM32(edi + 0xC); /* 0x40007385: mov eax, dword ptr [edi + 0xc] */ 973 PUSH32(esp, eax); /* 0x40007388: push eax */ 974 RECOMP_ICALL(0x400146F2u); /* 0x40007389: call 0x400146f2 */ /* not lifted */ 975 RECOMP_FLAGS_IN(); 976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 978 esp = esp + 4; /* 0x4000738E: add esp, 4 */ 979 _flag_k = FK_ADD; 980 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 981 eax = 0; /* 0x40007391: xor eax, eax */ 982 _cf = 0; 983 _flag_k = FK_TEST; 984 MEM32(edi + 0xC) = eax; /* 0x40007393: mov dword ptr [edi + 0xc], eax */ 985 MEM32(edi + 0x10) = eax; /* 0x40007396: mov dword ptr [edi + 0x10], eax */ 986 edi = POP32_VAL(esp); /* 0x40007399: pop edi */ 987 esi = POP32_VAL(esp); /* 0x4000739A: pop esi */ 988 ebx = POP32_VAL(esp); /* 0x4000739B: pop ebx */ 989 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000739C: ret */ 990 L_40014C50: 991 ecx = ebp + (-0x48); /* 0x40014C50: lea ecx, [ebp - 0x48] */ 992 RECOMP_BACKEDGE(); 993 goto L_40007350; /* 0x40014C53: jmp 0x40007350 */ 994 { RECOMP_REGS_OUT(); return; } /* end of function */ 995 RECOMP_REGS_OUT(); 996 } 997 998 void sub_40014C58(void) { 999 int _fpu_cmp = 0; 1000 uint32_t _cf = 0; 1001 int _df = 1; 1002 uint32_t _flag_k = FK_NONE; 1003 uint32_t _flag_a = 0, _flag_b = 0; 1004 uint32_t _itail_tgt = 0; 1005 RECOMP_REGS_LOCALS 1006 RECOMP_ENTER(0x40014C58u); 1007 1008 goto L_40014C58; 1009 L_4001470A: 1010 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 1011 L_40014C58: 1012 eax = 0x40016CF0u; /* 0x40014C58: mov eax, 0x40016cf0 */ 1013 L_40014C5D: 1014 RECOMP_BACKEDGE(); 1015 goto L_4001470A; /* 0x40014C5D: jmp 0x4001470a */ 1016 { RECOMP_REGS_OUT(); return; } /* end of function */ 1017 _ljump: 1018 switch (_itail_tgt) { 1019 case 0x4001470Au: goto L_4001470A; 1020 case 0x40014C58u: goto L_40014C58; 1021 case 0x40014C5Du: goto L_40014C5D; 1022 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1023 } 1024 RECOMP_REGS_OUT(); 1025 } 1026 1027 void sub_40014C70(void) { 1028 int _fpu_cmp = 0; 1029 uint32_t _cf = 0; 1030 int _df = 1; 1031 uint32_t _flag_k = FK_NONE; 1032 uint32_t _flag_a = 0, _flag_b = 0; 1033 uint32_t _itail_tgt = 0; 1034 RECOMP_REGS_LOCALS 1035 RECOMP_ENTER(0x40014C70u); 1036 1037 goto L_40014C70; 1038 L_400071C0: 1039 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 1040 PUSH32(esp, esi); /* 0x400071C1: push esi */ 1041 PUSH32(esp, edi); /* 0x400071C2: push edi */ 1042 edi = ecx; /* 0x400071C3: mov edi, ecx */ 1043 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 1044 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 1045 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 1046 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1048 _flag_k = FK_CMP; 1049 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 1050 L_400071CE: 1051 eax = esi; /* 0x400071CE: mov eax, esi */ 1052 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 1053 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 1054 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 1055 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 1056 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 1057 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 1058 PUSH32(esp, eax); /* 0x400071DE: push eax */ 1059 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 1060 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 1061 RECOMP_FLAGS_IN(); 1062 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 1063 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1064 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1065 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 1066 _flag_k = FK_ADD; 1067 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1068 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 1069 _flag_k = FK_DEC; 1070 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 1071 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1073 _flag_k = FK_CMP; 1074 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 1075 RECOMP_BACKEDGE(); 1076 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 1077 L_400071F5: 1078 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 1079 PUSH32(esp, eax); /* 0x400071F8: push eax */ 1080 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 1081 RECOMP_FLAGS_IN(); 1082 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1083 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1084 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 1085 _flag_k = FK_ADD; 1086 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1087 eax = 0; /* 0x40007201: xor eax, eax */ 1088 _cf = 0; 1089 _flag_k = FK_TEST; 1090 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 1091 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 1092 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 1093 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 1094 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 1095 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 1096 L_40014C70: 1097 ecx = ebp + (-0x40); /* 0x40014C70: lea ecx, [ebp - 0x40] */ 1098 RECOMP_BACKEDGE(); 1099 goto L_400071C0; /* 0x40014C73: jmp 0x400071c0 */ 1100 { RECOMP_REGS_OUT(); return; } /* end of function */ 1101 RECOMP_REGS_OUT(); 1102 } 1103 1104 void sub_40014C78(void) { 1105 int _fpu_cmp = 0; 1106 uint32_t _cf = 0; 1107 int _df = 1; 1108 uint32_t _flag_k = FK_NONE; 1109 uint32_t _flag_a = 0, _flag_b = 0; 1110 uint32_t _itail_tgt = 0; 1111 RECOMP_REGS_LOCALS 1112 RECOMP_ENTER(0x40014C78u); 1113 1114 goto L_40014C78; 1115 L_4001470A: 1116 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 1117 L_40014C78: 1118 eax = 0x40016D28u; /* 0x40014C78: mov eax, 0x40016d28 */ 1119 L_40014C7D: 1120 RECOMP_BACKEDGE(); 1121 goto L_4001470A; /* 0x40014C7D: jmp 0x4001470a */ 1122 { RECOMP_REGS_OUT(); return; } /* end of function */ 1123 _ljump: 1124 switch (_itail_tgt) { 1125 case 0x4001470Au: goto L_4001470A; 1126 case 0x40014C78u: goto L_40014C78; 1127 case 0x40014C7Du: goto L_40014C7D; 1128 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1129 } 1130 RECOMP_REGS_OUT(); 1131 } 1132 1133 void sub_40014C90(void) { 1134 int _fpu_cmp = 0; 1135 uint32_t _cf = 0; 1136 int _df = 1; 1137 uint32_t _flag_k = FK_NONE; 1138 uint32_t _flag_a = 0, _flag_b = 0; 1139 uint32_t _itail_tgt = 0; 1140 RECOMP_REGS_LOCALS 1141 RECOMP_ENTER(0x40014C90u); 1142 1143 L_40014C90: 1144 eax = MEM32(ebp + 0x14); /* 0x40014C90: mov eax, dword ptr [ebp + 0x14] */ 1145 PUSH32(esp, eax); /* 0x40014C93: push eax */ 1146 RECOMP_ICALL(0x400146F2u); /* 0x40014C94: call 0x400146f2 */ /* not lifted */ 1147 RECOMP_FLAGS_IN(); 1148 ecx = POP32_VAL(esp); /* 0x40014C99: pop ecx */ 1149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40014C9A: ret */ 1150 RECOMP_REGS_OUT(); 1151 } 1152 1153 void sub_40014C9B(void) { 1154 int _fpu_cmp = 0; 1155 uint32_t _cf = 0; 1156 int _df = 1; 1157 uint32_t _flag_k = FK_NONE; 1158 uint32_t _flag_a = 0, _flag_b = 0; 1159 uint32_t _itail_tgt = 0; 1160 RECOMP_REGS_LOCALS 1161 RECOMP_ENTER(0x40014C9Bu); 1162 1163 goto L_40014C9B; 1164 L_400031D0: 1165 PUSH32(esp, ebp); /* 0x400031D0: push ebp */ 1166 ebp = esp; /* 0x400031D1: mov ebp, esp */ 1167 PUSH32(esp, 0xFFFFFFFFu); /* 0x400031D3: push -1 */ 1168 PUSH32(esp, 0x40014BFFu); /* 0x400031D5: push 0x40014bff */ 1169 eax = MEM32(FS_BASE + (0)); /* 0x400031DA: mov eax, dword ptr fs:[0] */ 1170 PUSH32(esp, eax); /* 0x400031E0: push eax */ 1171 MEM32(FS_BASE + (0)) = esp; /* 0x400031E1: mov dword ptr fs:[0], esp */ 1172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1174 esp = esp - 0xCu; /* 0x400031E8: sub esp, 0xc */ 1175 _flag_k = FK_CMP; 1176 PUSH32(esp, ebx); /* 0x400031EB: push ebx */ 1177 PUSH32(esp, esi); /* 0x400031EC: push esi */ 1178 PUSH32(esp, edi); /* 0x400031ED: push edi */ 1179 edi = ecx; /* 0x400031EE: mov edi, ecx */ 1180 eax = MEM32(edi + 0x14); /* 0x400031F0: mov eax, dword ptr [edi + 0x14] */ 1181 /* test eax, eax */ /* 0x400031F3: test eax, eax */ 1182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1183 _cf = 0; 1184 _flag_k = FK_TEST; 1185 if (TEST_NZ(_flag_a, _flag_b)) goto L_4000325D; /* 0x400031F5: jne 0x4000325d */ 1186 L_400031F7: 1187 RECOMP_ICALL(MEM32(0x40016018)); /* 0x400031F7: call dword ptr [0x40016018] */ 1188 RECOMP_FLAGS_IN(); 1189 ebx = eax; /* 0x400031FD: mov ebx, eax */ 1190 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x400031FF: call dword ptr [0x400160d4] */ 1191 RECOMP_FLAGS_IN(); 1192 eax = MEM32(eax); /* 0x40003205: mov eax, dword ptr [eax] */ 1193 /* test eax, eax */ /* 0x40003207: test eax, eax */ 1194 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1195 _cf = 0; 1196 _flag_k = FK_TEST; 1197 if (TEST_Z(_flag_a, _flag_b)) goto L_4000320D; /* 0x40003209: je 0x4000320d */ 1198 L_4000320B: 1199 ebx = eax; /* 0x4000320B: mov ebx, eax */ 1200 L_4000320D: 1201 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x4000320D: call dword ptr [0x400161d4] */ 1202 RECOMP_FLAGS_IN(); 1203 esi = eax; /* 0x40003213: mov esi, eax */ 1204 ecx = esi; /* 0x40003215: mov ecx, esi */ 1205 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x40003217: call dword ptr [0x400161d8] */ 1206 RECOMP_FLAGS_IN(); 1207 PUSH32(esp, eax); /* 0x4000321D: push eax */ 1208 ecx = esi; /* 0x4000321E: mov ecx, esi */ 1209 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x40003220: call dword ptr [0x400161dc] */ 1210 RECOMP_FLAGS_IN(); 1211 PUSH32(esp, eax); /* 0x40003226: push eax */ 1212 ecx = esi; /* 0x40003227: mov ecx, esi */ 1213 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x40003229: call dword ptr [0x400161e0] */ 1214 RECOMP_FLAGS_IN(); 1215 PUSH32(esp, eax); /* 0x4000322F: push eax */ 1216 PUSH32(esp, ebx); /* 0x40003230: push ebx */ 1217 PUSH32(esp, 0xFFFFFFFFu); /* 0x40003231: push -1 */ 1218 PUSH32(esp, 0x56u); /* 0x40003233: push 0x56 */ 1219 PUSH32(esp, 0x4001C288u); /* 0x40003235: push 0x4001c288 */ 1220 ecx = esi; /* 0x4000323A: mov ecx, esi */ 1221 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x4000323C: call dword ptr [0x400161e4] */ 1222 RECOMP_FLAGS_IN(); 1223 PUSH32(esp, 0xFFFFFFFFu); /* 0x40003242: push -1 */ 1224 PUSH32(esp, 0x4001C27Cu); /* 0x40003244: push 0x4001c27c */ 1225 PUSH32(esp, 0x4001C240u); /* 0x40003249: push 0x4001c240 */ 1226 PUSH32(esp, 0x80u); /* 0x4000324E: push 0x80 */ 1227 PUSH32(esp, esi); /* 0x40003253: push esi */ 1228 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x40003254: call dword ptr [0x400161e8] */ 1229 RECOMP_FLAGS_IN(); 1230 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1231 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1232 esp = esp + 0x14u; /* 0x4000325A: add esp, 0x14 */ 1233 _flag_k = FK_ADD; 1234 L_4000325D: 1235 esi = MEM32(edi + 0x14); /* 0x4000325D: mov esi, dword ptr [edi + 0x14] */ 1236 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 1237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1238 esi = esi + 0x44u; /* 0x40003260: add esi, 0x44 */ 1239 _flag_k = FK_ADD; 1240 PUSH32(esp, esi); /* 0x40003263: push esi */ 1241 MEM32(ebp + (-0x18)) = esi; /* 0x40003264: mov dword ptr [ebp - 0x18], esi */ 1242 RECOMP_ICALL(MEM32(0x40016014)); /* 0x40003267: call dword ptr [0x40016014] */ 1243 RECOMP_FLAGS_IN(); 1244 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1245 ebx = 0; /* 0x4000326D: xor ebx, ebx */ 1246 _cf = 0; 1247 _flag_k = FK_TEST; 1248 MEM32(ebp + (-0x14)) = ebx; /* 0x4000326F: mov dword ptr [ebp - 0x14], ebx */ 1249 eax = MEM32(edi + 0x14); /* 0x40003272: mov eax, dword ptr [edi + 0x14] */ 1250 ecx = MEM32(eax + 0x4); /* 0x40003275: mov ecx, dword ptr [eax + 4] */ 1251 /* cmp ecx, ebx */ /* 0x40003278: cmp ecx, ebx */ 1252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1254 _flag_k = FK_CMP; 1255 edx = ecx + (-0x1); /* 0x4000327A: lea edx, [ecx - 1] */ 1256 MEM32(ebp + (-0x4)) = ebx; /* 0x4000327D: mov dword ptr [ebp - 4], ebx */ 1257 MEM32(eax + 0x4) = edx; /* 0x40003280: mov dword ptr [eax + 4], edx */ 1258 if (CMP_NE(_flag_a, _flag_b)) goto L_400032FA; /* 0x40003283: jne 0x400032fa */ 1259 L_40003285: 1260 PUSH32(esp, esi); /* 0x40003285: push esi */ 1261 MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x40003286: mov dword ptr [ebp - 0x14], 0xffffffff */ 1262 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4000328D: call dword ptr [0x40016010] */ 1263 RECOMP_FLAGS_IN(); 1264 esi = MEM32(edi + 0x14); /* 0x40003293: mov esi, dword ptr [edi + 0x14] */ 1265 /* cmp esi, ebx */ /* 0x40003296: cmp esi, ebx */ 1266 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1268 _flag_k = FK_CMP; 1269 MEM32(ebp + (-0x10)) = esi; /* 0x40003298: mov dword ptr [ebp - 0x10], esi */ 1270 if (CMP_EQ(_flag_a, _flag_b)) goto L_40003301; /* 0x4000329B: je 0x40003301 */ 1271 L_4000329D: 1272 eax = MEM32(esi); /* 0x4000329D: mov eax, dword ptr [esi] */ 1273 PUSH32(esp, eax); /* 0x4000329F: push eax */ 1274 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x400032A0: mov byte ptr [ebp - 4], 2 */ 1275 RECOMP_ICALL(0x400146F2u); /* 0x400032A4: call 0x400146f2 */ /* not lifted */ 1276 RECOMP_FLAGS_IN(); 1277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1279 esp = esp + 4; /* 0x400032A9: add esp, 4 */ 1280 _flag_k = FK_ADD; 1281 ecx = esi + 0x44; /* 0x400032AC: lea ecx, [esi + 0x44] */ 1282 RECOMP_ICALL(MEM32(0x400161EC)); /* 0x400032AF: call dword ptr [0x400161ec] */ 1283 RECOMP_FLAGS_IN(); 1284 ecx = esi + 0x14; /* 0x400032B5: lea ecx, [esi + 0x14] */ 1285 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x400032B8: mov byte ptr [ebp - 4], 1 */ 1286 RECOMP_ICALL(MEM32(0x400161F0)); /* 0x400032BC: call dword ptr [0x400161f0] */ 1287 RECOMP_FLAGS_IN(); 1288 edi = esi + 0x8; /* 0x400032C2: lea edi, [esi + 8] */ 1289 ecx = edi; /* 0x400032C5: mov ecx, edi */ 1290 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x400032C7: mov byte ptr [ebp - 4], bl */ 1291 RECOMP_ICALL(0x40010C80u); /* 0x400032CA: call 0x40010c80 */ /* not lifted */ 1292 RECOMP_FLAGS_IN(); 1293 eax = MEM32(edi); /* 0x400032CF: mov eax, dword ptr [edi] */ 1294 /* cmp eax, ebx */ /* 0x400032D1: cmp eax, ebx */ 1295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1296 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1297 _flag_k = FK_CMP; 1298 if (CMP_EQ(_flag_a, _flag_b)) goto L_400032DE; /* 0x400032D3: je 0x400032de */ 1299 L_400032D5: 1300 ecx = MEM32(edi + 0x8); /* 0x400032D5: mov ecx, dword ptr [edi + 8] */ 1301 edx = MEM32(ecx); /* 0x400032D8: mov edx, dword ptr [ecx] */ 1302 PUSH32(esp, eax); /* 0x400032DA: push eax */ 1303 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x400032DB: call dword ptr [edx + 0xc] */ 1304 RECOMP_FLAGS_IN(); 1305 L_400032DE: 1306 PUSH32(esp, esi); /* 0x400032DE: push esi */ 1307 MEM32(edi) = ebx; /* 0x400032DF: mov dword ptr [edi], ebx */ 1308 RECOMP_ICALL(0x400146F2u); /* 0x400032E1: call 0x400146f2 */ /* not lifted */ 1309 RECOMP_FLAGS_IN(); 1310 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1311 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1312 esp = esp + 4; /* 0x400032E6: add esp, 4 */ 1313 _flag_k = FK_ADD; 1314 edi = POP32_VAL(esp); /* 0x400032E9: pop edi */ 1315 esi = POP32_VAL(esp); /* 0x400032EA: pop esi */ 1316 ebx = POP32_VAL(esp); /* 0x400032EB: pop ebx */ 1317 ecx = MEM32(ebp + (-0xC)); /* 0x400032EC: mov ecx, dword ptr [ebp - 0xc] */ 1318 MEM32(FS_BASE + (0)) = ecx; /* 0x400032EF: mov dword ptr fs:[0], ecx */ 1319 esp = ebp; /* 0x400032F6: mov esp, ebp */ 1320 ebp = POP32_VAL(esp); /* 0x400032F8: pop ebp */ 1321 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400032F9: ret */ 1322 L_400032FA: 1323 PUSH32(esp, esi); /* 0x400032FA: push esi */ 1324 RECOMP_ICALL(MEM32(0x40016010)); /* 0x400032FB: call dword ptr [0x40016010] */ 1325 RECOMP_FLAGS_IN(); 1326 L_40003301: 1327 ecx = MEM32(ebp + (-0xC)); /* 0x40003301: mov ecx, dword ptr [ebp - 0xc] */ 1328 edi = POP32_VAL(esp); /* 0x40003304: pop edi */ 1329 esi = POP32_VAL(esp); /* 0x40003305: pop esi */ 1330 ebx = POP32_VAL(esp); /* 0x40003306: pop ebx */ 1331 MEM32(FS_BASE + (0)) = ecx; /* 0x40003307: mov dword ptr fs:[0], ecx */ 1332 esp = ebp; /* 0x4000330E: mov esp, ebp */ 1333 ebp = POP32_VAL(esp); /* 0x40003310: pop ebp */ 1334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40003311: ret */ 1335 L_40014C9B: 1336 ecx = ebp + (-0x3C); /* 0x40014C9B: lea ecx, [ebp - 0x3c] */ 1337 RECOMP_BACKEDGE(); 1338 goto L_400031D0; /* 0x40014C9E: jmp 0x400031d0 */ 1339 { RECOMP_REGS_OUT(); return; } /* end of function */ 1340 RECOMP_REGS_OUT(); 1341 } 1342 1343 void sub_40014CA3(void) { 1344 int _fpu_cmp = 0; 1345 uint32_t _cf = 0; 1346 int _df = 1; 1347 uint32_t _flag_k = FK_NONE; 1348 uint32_t _flag_a = 0, _flag_b = 0; 1349 uint32_t _itail_tgt = 0; 1350 RECOMP_REGS_LOCALS 1351 RECOMP_ENTER(0x40014CA3u); 1352 1353 goto L_40014CA3; 1354 L_4000F1E0: 1355 PUSH32(esp, ecx); /* 0x4000F1E0: push ecx */ 1356 RECOMP_ICALL(0x40010070u); /* 0x4000F1E1: call 0x40010070 */ /* not lifted */ 1357 RECOMP_FLAGS_IN(); 1358 ecx = POP32_VAL(esp); /* 0x4000F1E6: pop ecx */ 1359 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000F1E7: ret */ 1360 L_40014CA3: 1361 ecx = ebp + 0x18; /* 0x40014CA3: lea ecx, [ebp + 0x18] */ 1362 RECOMP_BACKEDGE(); 1363 goto L_4000F1E0; /* 0x40014CA6: jmp 0x4000f1e0 */ 1364 { RECOMP_REGS_OUT(); return; } /* end of function */ 1365 RECOMP_REGS_OUT(); 1366 } 1367 1368 void sub_40014CAB(void) { 1369 int _fpu_cmp = 0; 1370 uint32_t _cf = 0; 1371 int _df = 1; 1372 uint32_t _flag_k = FK_NONE; 1373 uint32_t _flag_a = 0, _flag_b = 0; 1374 uint32_t _itail_tgt = 0; 1375 RECOMP_REGS_LOCALS 1376 RECOMP_ENTER(0x40014CABu); 1377 1378 goto L_40014CAB; 1379 L_4000F1A0: 1380 edx = MEM32(ecx + 0x4); /* 0x4000F1A0: mov edx, dword ptr [ecx + 4] */ 1381 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1382 eax = eax | 0xFFFFFFFFu; /* 0x4000F1A3: or eax, 0xffffffff */ 1383 _cf = 0; 1384 _flag_k = FK_TEST; 1385 /* cmp edx, eax */ /* 0x4000F1A6: cmp edx, eax */ 1386 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1388 _flag_k = FK_CMP; 1389 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000F1B6; /* 0x4000F1A8: je 0x4000f1b6 */ 1390 L_4000F1AA: 1391 MEM32(ecx + 0x4) = eax; /* 0x4000F1AA: mov dword ptr [ecx + 4], eax */ 1392 eax = MEM32(ecx); /* 0x4000F1AD: mov eax, dword ptr [ecx] */ 1393 PUSH32(esp, eax); /* 0x4000F1AF: push eax */ 1394 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4000F1B0: call dword ptr [0x40016010] */ 1395 RECOMP_FLAGS_IN(); 1396 L_4000F1B6: 1397 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000F1B6: ret */ 1398 L_40014CAB: 1399 ecx = ebp + (-0x20); /* 0x40014CAB: lea ecx, [ebp - 0x20] */ 1400 RECOMP_BACKEDGE(); 1401 goto L_4000F1A0; /* 0x40014CAE: jmp 0x4000f1a0 */ 1402 { RECOMP_REGS_OUT(); return; } /* end of function */ 1403 RECOMP_REGS_OUT(); 1404 } 1405 1406 void sub_40014CB3(void) { 1407 int _fpu_cmp = 0; 1408 uint32_t _cf = 0; 1409 int _df = 1; 1410 uint32_t _flag_k = FK_NONE; 1411 uint32_t _flag_a = 0, _flag_b = 0; 1412 uint32_t _itail_tgt = 0; 1413 RECOMP_REGS_LOCALS 1414 RECOMP_ENTER(0x40014CB3u); 1415 1416 goto L_40014CB3; 1417 L_4001470A: 1418 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 1419 L_40014CB3: 1420 eax = 0x40016D50u; /* 0x40014CB3: mov eax, 0x40016d50 */ 1421 L_40014CB8: 1422 RECOMP_BACKEDGE(); 1423 goto L_4001470A; /* 0x40014CB8: jmp 0x4001470a */ 1424 { RECOMP_REGS_OUT(); return; } /* end of function */ 1425 _ljump: 1426 switch (_itail_tgt) { 1427 case 0x4001470Au: goto L_4001470A; 1428 case 0x40014CB3u: goto L_40014CB3; 1429 case 0x40014CB8u: goto L_40014CB8; 1430 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1431 } 1432 RECOMP_REGS_OUT(); 1433 } 1434 1435 void sub_40014CC0(void) { 1436 int _fpu_cmp = 0; 1437 uint32_t _cf = 0; 1438 int _df = 1; 1439 uint32_t _flag_k = FK_NONE; 1440 uint32_t _flag_a = 0, _flag_b = 0; 1441 uint32_t _itail_tgt = 0; 1442 RECOMP_REGS_LOCALS 1443 RECOMP_ENTER(0x40014CC0u); 1444 1445 goto L_40014CC0; 1446 L_400071C0: 1447 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 1448 PUSH32(esp, esi); /* 0x400071C1: push esi */ 1449 PUSH32(esp, edi); /* 0x400071C2: push edi */ 1450 edi = ecx; /* 0x400071C3: mov edi, ecx */ 1451 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 1452 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 1453 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 1454 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1456 _flag_k = FK_CMP; 1457 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 1458 L_400071CE: 1459 eax = esi; /* 0x400071CE: mov eax, esi */ 1460 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 1461 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 1462 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 1463 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 1464 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 1465 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 1466 PUSH32(esp, eax); /* 0x400071DE: push eax */ 1467 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 1468 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 1469 RECOMP_FLAGS_IN(); 1470 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 1471 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1472 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1473 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 1474 _flag_k = FK_ADD; 1475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1476 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 1477 _flag_k = FK_DEC; 1478 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 1479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1481 _flag_k = FK_CMP; 1482 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 1483 RECOMP_BACKEDGE(); 1484 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 1485 L_400071F5: 1486 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 1487 PUSH32(esp, eax); /* 0x400071F8: push eax */ 1488 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 1489 RECOMP_FLAGS_IN(); 1490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1492 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 1493 _flag_k = FK_ADD; 1494 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1495 eax = 0; /* 0x40007201: xor eax, eax */ 1496 _cf = 0; 1497 _flag_k = FK_TEST; 1498 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 1499 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 1500 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 1501 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 1502 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 1503 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 1504 L_40014CC0: 1505 ecx = ebp + (-0x2C); /* 0x40014CC0: lea ecx, [ebp - 0x2c] */ 1506 RECOMP_BACKEDGE(); 1507 goto L_400071C0; /* 0x40014CC3: jmp 0x400071c0 */ 1508 { RECOMP_REGS_OUT(); return; } /* end of function */ 1509 RECOMP_REGS_OUT(); 1510 } 1511 1512 void sub_40014CC8(void) { 1513 int _fpu_cmp = 0; 1514 uint32_t _cf = 0; 1515 int _df = 1; 1516 uint32_t _flag_k = FK_NONE; 1517 uint32_t _flag_a = 0, _flag_b = 0; 1518 uint32_t _itail_tgt = 0; 1519 RECOMP_REGS_LOCALS 1520 RECOMP_ENTER(0x40014CC8u); 1521 1522 goto L_40014CC8; 1523 L_4001470A: 1524 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 1525 L_40014CC8: 1526 eax = 0x40016D90u; /* 0x40014CC8: mov eax, 0x40016d90 */ 1527 L_40014CCD: 1528 RECOMP_BACKEDGE(); 1529 goto L_4001470A; /* 0x40014CCD: jmp 0x4001470a */ 1530 { RECOMP_REGS_OUT(); return; } /* end of function */ 1531 _ljump: 1532 switch (_itail_tgt) { 1533 case 0x4001470Au: goto L_4001470A; 1534 case 0x40014CC8u: goto L_40014CC8; 1535 case 0x40014CCDu: goto L_40014CCD; 1536 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1537 } 1538 RECOMP_REGS_OUT(); 1539 } 1540 1541 void sub_40014CE0(void) { 1542 int _fpu_cmp = 0; 1543 uint32_t _cf = 0; 1544 int _df = 1; 1545 uint32_t _flag_k = FK_NONE; 1546 uint32_t _flag_a = 0, _flag_b = 0; 1547 uint32_t _itail_tgt = 0; 1548 RECOMP_REGS_LOCALS 1549 RECOMP_ENTER(0x40014CE0u); 1550 1551 L_40014CE0: 1552 ecx = ebp + (-0x6C); /* 0x40014CE0: lea ecx, [ebp - 0x6c] */ 1553 L_40014CE3: 1554 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 1555 { RECOMP_REGS_OUT(); return; } /* end of function */ 1556 _ljump: 1557 switch (_itail_tgt) { 1558 case 0x40014CE0u: goto L_40014CE0; 1559 case 0x40014CE3u: goto L_40014CE3; 1560 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1561 } 1562 RECOMP_REGS_OUT(); 1563 } 1564 1565 void sub_40014CE9(void) { 1566 int _fpu_cmp = 0; 1567 uint32_t _cf = 0; 1568 int _df = 1; 1569 uint32_t _flag_k = FK_NONE; 1570 uint32_t _flag_a = 0, _flag_b = 0; 1571 uint32_t _itail_tgt = 0; 1572 RECOMP_REGS_LOCALS 1573 RECOMP_ENTER(0x40014CE9u); 1574 1575 L_40014CE9: 1576 ecx = ebp + (-0x88); /* 0x40014CE9: lea ecx, [ebp - 0x88] */ 1577 L_40014CEF: 1578 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 1579 { RECOMP_REGS_OUT(); return; } /* end of function */ 1580 _ljump: 1581 switch (_itail_tgt) { 1582 case 0x40014CE9u: goto L_40014CE9; 1583 case 0x40014CEFu: goto L_40014CEF; 1584 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1585 } 1586 RECOMP_REGS_OUT(); 1587 } 1588 1589 void sub_40014CF5(void) { 1590 int _fpu_cmp = 0; 1591 uint32_t _cf = 0; 1592 int _df = 1; 1593 uint32_t _flag_k = FK_NONE; 1594 uint32_t _flag_a = 0, _flag_b = 0; 1595 uint32_t _itail_tgt = 0; 1596 RECOMP_REGS_LOCALS 1597 RECOMP_ENTER(0x40014CF5u); 1598 1599 goto L_40014CF5; 1600 L_4000A200: 1601 PUSH32(esp, ebp); /* 0x4000A200: push ebp */ 1602 ebp = esp; /* 0x4000A201: mov ebp, esp */ 1603 PUSH32(esp, 0xFFFFFFFFu); /* 0x4000A203: push -1 */ 1604 PUSH32(esp, 0x40014FDCu); /* 0x4000A205: push 0x40014fdc */ 1605 eax = MEM32(FS_BASE + (0)); /* 0x4000A20A: mov eax, dword ptr fs:[0] */ 1606 PUSH32(esp, eax); /* 0x4000A210: push eax */ 1607 MEM32(FS_BASE + (0)) = esp; /* 0x4000A211: mov dword ptr fs:[0], esp */ 1608 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1610 esp = esp - 0x24u; /* 0x4000A218: sub esp, 0x24 */ 1611 _flag_k = FK_CMP; 1612 PUSH32(esp, ebx); /* 0x4000A21B: push ebx */ 1613 PUSH32(esp, esi); /* 0x4000A21C: push esi */ 1614 esi = ecx; /* 0x4000A21D: mov esi, ecx */ 1615 PUSH32(esp, edi); /* 0x4000A21F: push edi */ 1616 MEM32(ebp + (-0x10)) = esi; /* 0x4000A220: mov dword ptr [ebp - 0x10], esi */ 1617 eax = ebp + (-0x20); /* 0x4000A223: lea eax, [ebp - 0x20] */ 1618 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1619 ebx = 0; /* 0x4000A226: xor ebx, ebx */ 1620 _cf = 0; 1621 _flag_k = FK_TEST; 1622 PUSH32(esp, eax); /* 0x4000A228: push eax */ 1623 MEM32(ebp + (-0x4)) = ebx; /* 0x4000A229: mov dword ptr [ebp - 4], ebx */ 1624 RECOMP_ICALL(MEM32(0x4001600C)); /* 0x4000A22C: call dword ptr [0x4001600c] */ 1625 RECOMP_FLAGS_IN(); 1626 ecx = ebp + (-0x20); /* 0x4000A232: lea ecx, [ebp - 0x20] */ 1627 PUSH32(esp, ecx); /* 0x4000A235: push ecx */ 1628 ecx = ebp + (-0x30); /* 0x4000A236: lea ecx, [ebp - 0x30] */ 1629 RECOMP_ICALL(MEM32(0x40016208)); /* 0x4000A239: call dword ptr [0x40016208] */ 1630 RECOMP_FLAGS_IN(); 1631 ecx = MEM32(eax); /* 0x4000A23F: mov ecx, dword ptr [eax] */ 1632 edi = MEM32(esi); /* 0x4000A241: mov edi, dword ptr [esi] */ 1633 edx = MEM32(esi + 0x4); /* 0x4000A243: mov edx, dword ptr [esi + 4] */ 1634 MEM32(ebp + (-0x28)) = ecx; /* 0x4000A246: mov dword ptr [ebp - 0x28], ecx */ 1635 eax = MEM32(eax + 0x4); /* 0x4000A249: mov eax, dword ptr [eax + 4] */ 1636 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1638 ecx = ecx - edi; /* 0x4000A24C: sub ecx, edi */ 1639 _flag_k = FK_CMP; 1640 edi = MEM32(0x4001620C); /* 0x4000A24E: mov edi, dword ptr [0x4001620c] */ 1641 MEM32(ebp + (-0x24)) = eax; /* 0x4000A254: mov dword ptr [ebp - 0x24], eax */ 1642 MEM32(ebp + (-0x18)) = ecx; /* 0x4000A257: mov dword ptr [ebp - 0x18], ecx */ 1643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1645 eax = eax - edx; /* 0x4000A25A: sub eax, edx */ 1646 _flag_k = FK_CMP; 1647 ecx = ebp + (-0x18); /* 0x4000A25C: lea ecx, [ebp - 0x18] */ 1648 MEM32(ebp + (-0x14)) = eax; /* 0x4000A25F: mov dword ptr [ebp - 0x14], eax */ 1649 RECOMP_ICALL(edi); /* 0x4000A262: call edi */ 1650 RECOMP_FLAGS_IN(); 1651 ecx = ebp + (-0x18); /* 0x4000A264: lea ecx, [ebp - 0x18] */ 1652 RECOMP_ICALL(edi); /* 0x4000A267: call edi */ 1653 RECOMP_FLAGS_IN(); 1654 eax = MEM32(esi + 0xC); /* 0x4000A269: mov eax, dword ptr [esi + 0xc] */ 1655 /* cmp eax, ebx */ /* 0x4000A26C: cmp eax, ebx */ 1656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1658 _flag_k = FK_CMP; 1659 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A28C; /* 0x4000A26E: je 0x4000a28c */ 1660 L_4000A270: 1661 ecx = eax + (-0x1); /* 0x4000A270: lea ecx, [eax - 1] */ 1662 SET_LO8(eax, MEM8(ecx)); /* 0x4000A273: mov al, byte ptr [ecx] */ 1663 /* cmp LO8(eax), LO8(ebx) */ /* 0x4000A275: cmp al, bl */ 1664 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1666 _flag_k = FK_NARROW(FK_CMP, 24); 1667 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A283; /* 0x4000A277: je 0x4000a283 */ 1668 L_4000A279: 1669 /* cmp LO8(eax), 0xFFu */ /* 0x4000A279: cmp al, 0xff */ 1670 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1672 _flag_k = FK_NARROW(FK_CMP, 24); 1673 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A283; /* 0x4000A27B: je 0x4000a283 */ 1674 L_4000A27D: 1675 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1676 SET_LO8(eax, LO8(eax) - 1); /* 0x4000A27D: dec al */ 1677 _flag_k = FK_NARROW(FK_DEC, 24); 1678 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x4000A27F: mov byte ptr [ecx], al */ 1679 goto L_4000A28C; /* 0x4000A281: jmp 0x4000a28c */ 1680 L_4000A283: 1681 PUSH32(esp, ecx); /* 0x4000A283: push ecx */ 1682 RECOMP_ICALL(0x400146F2u); /* 0x4000A284: call 0x400146f2 */ /* not lifted */ 1683 RECOMP_FLAGS_IN(); 1684 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1686 esp = esp + 4; /* 0x4000A289: add esp, 4 */ 1687 _flag_k = FK_ADD; 1688 L_4000A28C: 1689 ecx = MEM32(ebp + (-0xC)); /* 0x4000A28C: mov ecx, dword ptr [ebp - 0xc] */ 1690 MEM32(esi + 0xC) = ebx; /* 0x4000A28F: mov dword ptr [esi + 0xc], ebx */ 1691 MEM32(esi + 0x10) = ebx; /* 0x4000A292: mov dword ptr [esi + 0x10], ebx */ 1692 MEM32(esi + 0x14) = ebx; /* 0x4000A295: mov dword ptr [esi + 0x14], ebx */ 1693 edi = POP32_VAL(esp); /* 0x4000A298: pop edi */ 1694 esi = POP32_VAL(esp); /* 0x4000A299: pop esi */ 1695 ebx = POP32_VAL(esp); /* 0x4000A29A: pop ebx */ 1696 MEM32(FS_BASE + (0)) = ecx; /* 0x4000A29B: mov dword ptr fs:[0], ecx */ 1697 esp = ebp; /* 0x4000A2A2: mov esp, ebp */ 1698 ebp = POP32_VAL(esp); /* 0x4000A2A4: pop ebp */ 1699 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000A2A5: ret */ 1700 L_40014CF5: 1701 ecx = ebp + (-0x90); /* 0x40014CF5: lea ecx, [ebp - 0x90] */ 1702 RECOMP_BACKEDGE(); 1703 goto L_4000A200; /* 0x40014CFB: jmp 0x4000a200 */ 1704 { RECOMP_REGS_OUT(); return; } /* end of function */ 1705 RECOMP_REGS_OUT(); 1706 } 1707 1708 void sub_40014D00(void) { 1709 int _fpu_cmp = 0; 1710 uint32_t _cf = 0; 1711 int _df = 1; 1712 uint32_t _flag_k = FK_NONE; 1713 uint32_t _flag_a = 0, _flag_b = 0; 1714 uint32_t _itail_tgt = 0; 1715 RECOMP_REGS_LOCALS 1716 RECOMP_ENTER(0x40014D00u); 1717 1718 L_40014D00: 1719 ecx = ebp + (-0xA0); /* 0x40014D00: lea ecx, [ebp - 0xa0] */ 1720 L_40014D06: 1721 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 1722 { RECOMP_REGS_OUT(); return; } /* end of function */ 1723 _ljump: 1724 switch (_itail_tgt) { 1725 case 0x40014D00u: goto L_40014D00; 1726 case 0x40014D06u: goto L_40014D06; 1727 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1728 } 1729 RECOMP_REGS_OUT(); 1730 } 1731 1732 void sub_40014D0C(void) { 1733 int _fpu_cmp = 0; 1734 uint32_t _cf = 0; 1735 int _df = 1; 1736 uint32_t _flag_k = FK_NONE; 1737 uint32_t _flag_a = 0, _flag_b = 0; 1738 uint32_t _itail_tgt = 0; 1739 RECOMP_REGS_LOCALS 1740 RECOMP_ENTER(0x40014D0Cu); 1741 1742 L_40014D0C: 1743 ecx = ebp + (-0x3C); /* 0x40014D0C: lea ecx, [ebp - 0x3c] */ 1744 L_40014D0F: 1745 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 1746 { RECOMP_REGS_OUT(); return; } /* end of function */ 1747 _ljump: 1748 switch (_itail_tgt) { 1749 case 0x40014D0Cu: goto L_40014D0C; 1750 case 0x40014D0Fu: goto L_40014D0F; 1751 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1752 } 1753 RECOMP_REGS_OUT(); 1754 } 1755 1756 void sub_40014D15(void) { 1757 int _fpu_cmp = 0; 1758 uint32_t _cf = 0; 1759 int _df = 1; 1760 uint32_t _flag_k = FK_NONE; 1761 uint32_t _flag_a = 0, _flag_b = 0; 1762 uint32_t _itail_tgt = 0; 1763 RECOMP_REGS_LOCALS 1764 RECOMP_ENTER(0x40014D15u); 1765 1766 L_40014D15: 1767 ecx = ebp + (-0xB0); /* 0x40014D15: lea ecx, [ebp - 0xb0] */ 1768 L_40014D1B: 1769 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 1770 { RECOMP_REGS_OUT(); return; } /* end of function */ 1771 _ljump: 1772 switch (_itail_tgt) { 1773 case 0x40014D15u: goto L_40014D15; 1774 case 0x40014D1Bu: goto L_40014D1B; 1775 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1776 } 1777 RECOMP_REGS_OUT(); 1778 } 1779 1780 void sub_40014D21(void) { 1781 int _fpu_cmp = 0; 1782 uint32_t _cf = 0; 1783 int _df = 1; 1784 uint32_t _flag_k = FK_NONE; 1785 uint32_t _flag_a = 0, _flag_b = 0; 1786 uint32_t _itail_tgt = 0; 1787 RECOMP_REGS_LOCALS 1788 RECOMP_ENTER(0x40014D21u); 1789 1790 L_40014D21: 1791 ecx = ebp + (-0x54); /* 0x40014D21: lea ecx, [ebp - 0x54] */ 1792 L_40014D24: 1793 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 1794 { RECOMP_REGS_OUT(); return; } /* end of function */ 1795 _ljump: 1796 switch (_itail_tgt) { 1797 case 0x40014D21u: goto L_40014D21; 1798 case 0x40014D24u: goto L_40014D24; 1799 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1800 } 1801 RECOMP_REGS_OUT(); 1802 } 1803 1804 void sub_40014D2A(void) { 1805 int _fpu_cmp = 0; 1806 uint32_t _cf = 0; 1807 int _df = 1; 1808 uint32_t _flag_k = FK_NONE; 1809 uint32_t _flag_a = 0, _flag_b = 0; 1810 uint32_t _itail_tgt = 0; 1811 RECOMP_REGS_LOCALS 1812 RECOMP_ENTER(0x40014D2Au); 1813 1814 goto L_40014D2A; 1815 L_4000F1A0: 1816 edx = MEM32(ecx + 0x4); /* 0x4000F1A0: mov edx, dword ptr [ecx + 4] */ 1817 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1818 eax = eax | 0xFFFFFFFFu; /* 0x4000F1A3: or eax, 0xffffffff */ 1819 _cf = 0; 1820 _flag_k = FK_TEST; 1821 /* cmp edx, eax */ /* 0x4000F1A6: cmp edx, eax */ 1822 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1824 _flag_k = FK_CMP; 1825 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000F1B6; /* 0x4000F1A8: je 0x4000f1b6 */ 1826 L_4000F1AA: 1827 MEM32(ecx + 0x4) = eax; /* 0x4000F1AA: mov dword ptr [ecx + 4], eax */ 1828 eax = MEM32(ecx); /* 0x4000F1AD: mov eax, dword ptr [ecx] */ 1829 PUSH32(esp, eax); /* 0x4000F1AF: push eax */ 1830 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4000F1B0: call dword ptr [0x40016010] */ 1831 RECOMP_FLAGS_IN(); 1832 L_4000F1B6: 1833 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000F1B6: ret */ 1834 L_40014D2A: 1835 ecx = ebp + (-0x44); /* 0x40014D2A: lea ecx, [ebp - 0x44] */ 1836 RECOMP_BACKEDGE(); 1837 goto L_4000F1A0; /* 0x40014D2D: jmp 0x4000f1a0 */ 1838 { RECOMP_REGS_OUT(); return; } /* end of function */ 1839 RECOMP_REGS_OUT(); 1840 } 1841 1842 void sub_40014D32(void) { 1843 int _fpu_cmp = 0; 1844 uint32_t _cf = 0; 1845 int _df = 1; 1846 uint32_t _flag_k = FK_NONE; 1847 uint32_t _flag_a = 0, _flag_b = 0; 1848 uint32_t _itail_tgt = 0; 1849 RECOMP_REGS_LOCALS 1850 RECOMP_ENTER(0x40014D32u); 1851 1852 goto L_40014D32; 1853 L_40004A80: 1854 PUSH32(esp, ebp); /* 0x40004A80: push ebp */ 1855 ebp = esp; /* 0x40004A81: mov ebp, esp */ 1856 PUSH32(esp, 0xFFFFFFFFu); /* 0x40004A83: push -1 */ 1857 PUSH32(esp, 0x40014DC8u); /* 0x40004A85: push 0x40014dc8 */ 1858 eax = MEM32(FS_BASE + (0)); /* 0x40004A8A: mov eax, dword ptr fs:[0] */ 1859 PUSH32(esp, eax); /* 0x40004A90: push eax */ 1860 MEM32(FS_BASE + (0)) = esp; /* 0x40004A91: mov dword ptr fs:[0], esp */ 1861 PUSH32(esp, ecx); /* 0x40004A98: push ecx */ 1862 PUSH32(esp, esi); /* 0x40004A99: push esi */ 1863 esi = ecx; /* 0x40004A9A: mov esi, ecx */ 1864 MEM32(ebp + (-0x10)) = esi; /* 0x40004A9C: mov dword ptr [ebp - 0x10], esi */ 1865 MEM32(esi) = 0x40016344u; /* 0x40004A9F: mov dword ptr [esi], 0x40016344 */ 1866 ecx = MEM32(esi + 0x20); /* 0x40004AA5: mov ecx, dword ptr [esi + 0x20] */ 1867 /* test ecx, ecx */ /* 0x40004AA8: test ecx, ecx */ 1868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1869 _cf = 0; 1870 _flag_k = FK_TEST; 1871 MEM32(ebp + (-0x4)) = 0; /* 0x40004AAA: mov dword ptr [ebp - 4], 0 */ 1872 if (TEST_Z(_flag_a, _flag_b)) goto L_40004AC1; /* 0x40004AB1: je 0x40004ac1 */ 1873 L_40004AB3: 1874 eax = MEM32(ecx); /* 0x40004AB3: mov eax, dword ptr [ecx] */ 1875 PUSH32(esp, 0); /* 0x40004AB5: push 0 */ 1876 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x40004AB7: call dword ptr [eax + 0x28] */ 1877 RECOMP_FLAGS_IN(); 1878 MEM32(esi + 0x20) = 0; /* 0x40004ABA: mov dword ptr [esi + 0x20], 0 */ 1879 L_40004AC1: 1880 ecx = MEM32(ebp + (-0xC)); /* 0x40004AC1: mov ecx, dword ptr [ebp - 0xc] */ 1881 MEM32(esi) = 0x400162A8u; /* 0x40004AC4: mov dword ptr [esi], 0x400162a8 */ 1882 esi = POP32_VAL(esp); /* 0x40004ACA: pop esi */ 1883 MEM32(FS_BASE + (0)) = ecx; /* 0x40004ACB: mov dword ptr fs:[0], ecx */ 1884 esp = ebp; /* 0x40004AD2: mov esp, ebp */ 1885 ebp = POP32_VAL(esp); /* 0x40004AD4: pop ebp */ 1886 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40004AD5: ret */ 1887 L_40014D32: 1888 ecx = ebp + (-0xE0); /* 0x40014D32: lea ecx, [ebp - 0xe0] */ 1889 RECOMP_BACKEDGE(); 1890 goto L_40004A80; /* 0x40014D38: jmp 0x40004a80 */ 1891 { RECOMP_REGS_OUT(); return; } /* end of function */ 1892 RECOMP_REGS_OUT(); 1893 } 1894 1895 void sub_40014D3D(void) { 1896 int _fpu_cmp = 0; 1897 uint32_t _cf = 0; 1898 int _df = 1; 1899 uint32_t _flag_k = FK_NONE; 1900 uint32_t _flag_a = 0, _flag_b = 0; 1901 uint32_t _itail_tgt = 0; 1902 RECOMP_REGS_LOCALS 1903 RECOMP_ENTER(0x40014D3Du); 1904 1905 L_40014D3D: 1906 eax = MEM32(ebp + (-0x20)); /* 0x40014D3D: mov eax, dword ptr [ebp - 0x20] */ 1907 L_40014D40: 1908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1909 eax = eax & 1; /* 0x40014D40: and eax, 1 */ 1910 _cf = 0; 1911 _flag_k = FK_TEST; 1912 L_40014D43: 1913 /* test eax, eax */ /* 0x40014D43: test eax, eax */ 1914 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1915 _cf = 0; 1916 _flag_k = FK_TEST; 1917 L_40014D45: 1918 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_40014D57; /* 0x40014D45: je 0x40014d57 */ 1919 L_40014D4B: 1920 ecx = ebp + (-0x13C); /* 0x40014D4B: lea ecx, [ebp - 0x13c] */ 1921 L_40014D51: 1922 { _itail_tgt = (uint32_t)(MEM32(0x40016078)); goto _ljump; } 1923 L_40014D57: 1924 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40014D57: ret */ 1925 _ljump: 1926 switch (_itail_tgt) { 1927 case 0x40014D3Du: goto L_40014D3D; 1928 case 0x40014D40u: goto L_40014D40; 1929 case 0x40014D43u: goto L_40014D43; 1930 case 0x40014D45u: goto L_40014D45; 1931 case 0x40014D4Bu: goto L_40014D4B; 1932 case 0x40014D51u: goto L_40014D51; 1933 case 0x40014D57u: goto L_40014D57; 1934 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1935 } 1936 RECOMP_REGS_OUT(); 1937 } 1938 1939 void sub_40014D58(void) { 1940 int _fpu_cmp = 0; 1941 uint32_t _cf = 0; 1942 int _df = 1; 1943 uint32_t _flag_k = FK_NONE; 1944 uint32_t _flag_a = 0, _flag_b = 0; 1945 uint32_t _itail_tgt = 0; 1946 RECOMP_REGS_LOCALS 1947 RECOMP_ENTER(0x40014D58u); 1948 1949 L_40014D58: 1950 ecx = ebp + (-0x188); /* 0x40014D58: lea ecx, [ebp - 0x188] */ 1951 L_40014D5E: 1952 { _itail_tgt = (uint32_t)(MEM32(0x4001607C)); goto _ljump; } 1953 { RECOMP_REGS_OUT(); return; } /* end of function */ 1954 _ljump: 1955 switch (_itail_tgt) { 1956 case 0x40014D58u: goto L_40014D58; 1957 case 0x40014D5Eu: goto L_40014D5E; 1958 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1959 } 1960 RECOMP_REGS_OUT(); 1961 } 1962 1963 void sub_40014D64(void) { 1964 int _fpu_cmp = 0; 1965 uint32_t _cf = 0; 1966 int _df = 1; 1967 uint32_t _flag_k = FK_NONE; 1968 uint32_t _flag_a = 0, _flag_b = 0; 1969 uint32_t _itail_tgt = 0; 1970 RECOMP_REGS_LOCALS 1971 RECOMP_ENTER(0x40014D64u); 1972 1973 L_40014D64: 1974 ecx = ebp + (-0x194); /* 0x40014D64: lea ecx, [ebp - 0x194] */ 1975 L_40014D6A: 1976 { _itail_tgt = (uint32_t)(MEM32(0x40016080)); goto _ljump; } 1977 { RECOMP_REGS_OUT(); return; } /* end of function */ 1978 _ljump: 1979 switch (_itail_tgt) { 1980 case 0x40014D64u: goto L_40014D64; 1981 case 0x40014D6Au: goto L_40014D6A; 1982 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1983 } 1984 RECOMP_REGS_OUT(); 1985 } 1986 1987 void sub_40014D70(void) { 1988 int _fpu_cmp = 0; 1989 uint32_t _cf = 0; 1990 int _df = 1; 1991 uint32_t _flag_k = FK_NONE; 1992 uint32_t _flag_a = 0, _flag_b = 0; 1993 uint32_t _itail_tgt = 0; 1994 RECOMP_REGS_LOCALS 1995 RECOMP_ENTER(0x40014D70u); 1996 1997 L_40014D70: 1998 ecx = ebp + (-0x54); /* 0x40014D70: lea ecx, [ebp - 0x54] */ 1999 L_40014D73: 2000 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 2001 { RECOMP_REGS_OUT(); return; } /* end of function */ 2002 _ljump: 2003 switch (_itail_tgt) { 2004 case 0x40014D70u: goto L_40014D70; 2005 case 0x40014D73u: goto L_40014D73; 2006 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2007 } 2008 RECOMP_REGS_OUT(); 2009 } 2010 2011 void sub_40014D79(void) { 2012 int _fpu_cmp = 0; 2013 uint32_t _cf = 0; 2014 int _df = 1; 2015 uint32_t _flag_k = FK_NONE; 2016 uint32_t _flag_a = 0, _flag_b = 0; 2017 uint32_t _itail_tgt = 0; 2018 RECOMP_REGS_LOCALS 2019 RECOMP_ENTER(0x40014D79u); 2020 2021 goto L_40014D79; 2022 L_400019D0: 2023 MEM32(ecx) = 0x400162A8u; /* 0x400019D0: mov dword ptr [ecx], 0x400162a8 */ 2024 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400019D6: ret */ 2025 L_40014D79: 2026 ecx = ebp + (-0xE0); /* 0x40014D79: lea ecx, [ebp - 0xe0] */ 2027 RECOMP_BACKEDGE(); 2028 goto L_400019D0; /* 0x40014D7F: jmp 0x400019d0 */ 2029 { RECOMP_REGS_OUT(); return; } /* end of function */ 2030 RECOMP_REGS_OUT(); 2031 } 2032 2033 void sub_40014D84(void) { 2034 int _fpu_cmp = 0; 2035 uint32_t _cf = 0; 2036 int _df = 1; 2037 uint32_t _flag_k = FK_NONE; 2038 uint32_t _flag_a = 0, _flag_b = 0; 2039 uint32_t _itail_tgt = 0; 2040 RECOMP_REGS_LOCALS 2041 RECOMP_ENTER(0x40014D84u); 2042 2043 L_40014D84: 2044 ecx = ebp + (-0x88); /* 0x40014D84: lea ecx, [ebp - 0x88] */ 2045 L_40014D8A: 2046 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 2047 { RECOMP_REGS_OUT(); return; } /* end of function */ 2048 _ljump: 2049 switch (_itail_tgt) { 2050 case 0x40014D84u: goto L_40014D84; 2051 case 0x40014D8Au: goto L_40014D8A; 2052 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2053 } 2054 RECOMP_REGS_OUT(); 2055 } 2056 2057 void sub_40014D90(void) { 2058 int _fpu_cmp = 0; 2059 uint32_t _cf = 0; 2060 int _df = 1; 2061 uint32_t _flag_k = FK_NONE; 2062 uint32_t _flag_a = 0, _flag_b = 0; 2063 uint32_t _itail_tgt = 0; 2064 RECOMP_REGS_LOCALS 2065 RECOMP_ENTER(0x40014D90u); 2066 2067 goto L_40014D90; 2068 L_4001470A: 2069 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 2070 L_40014D90: 2071 eax = 0x40016DB8u; /* 0x40014D90: mov eax, 0x40016db8 */ 2072 L_40014D95: 2073 RECOMP_BACKEDGE(); 2074 goto L_4001470A; /* 0x40014D95: jmp 0x4001470a */ 2075 { RECOMP_REGS_OUT(); return; } /* end of function */ 2076 _ljump: 2077 switch (_itail_tgt) { 2078 case 0x4001470Au: goto L_4001470A; 2079 case 0x40014D90u: goto L_40014D90; 2080 case 0x40014D95u: goto L_40014D95; 2081 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2082 } 2083 RECOMP_REGS_OUT(); 2084 } 2085 2086 void sub_40014DA0(void) { 2087 int _fpu_cmp = 0; 2088 uint32_t _cf = 0; 2089 int _df = 1; 2090 uint32_t _flag_k = FK_NONE; 2091 uint32_t _flag_a = 0, _flag_b = 0; 2092 uint32_t _itail_tgt = 0; 2093 RECOMP_REGS_LOCALS 2094 RECOMP_ENTER(0x40014DA0u); 2095 2096 goto L_40014DA0; 2097 L_400019D0: 2098 MEM32(ecx) = 0x400162A8u; /* 0x400019D0: mov dword ptr [ecx], 0x400162a8 */ 2099 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400019D6: ret */ 2100 L_40014DA0: 2101 ecx = MEM32(ebp + (-0x10)); /* 0x40014DA0: mov ecx, dword ptr [ebp - 0x10] */ 2102 RECOMP_BACKEDGE(); 2103 goto L_400019D0; /* 0x40014DA3: jmp 0x400019d0 */ 2104 { RECOMP_REGS_OUT(); return; } /* end of function */ 2105 RECOMP_REGS_OUT(); 2106 } 2107 2108 void sub_40014DA8(void) { 2109 int _fpu_cmp = 0; 2110 uint32_t _cf = 0; 2111 int _df = 1; 2112 uint32_t _flag_k = FK_NONE; 2113 uint32_t _flag_a = 0, _flag_b = 0; 2114 uint32_t _itail_tgt = 0; 2115 RECOMP_REGS_LOCALS 2116 RECOMP_ENTER(0x40014DA8u); 2117 2118 goto L_40014DA8; 2119 L_4001470A: 2120 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 2121 L_40014DA8: 2122 eax = 0x40016E58u; /* 0x40014DA8: mov eax, 0x40016e58 */ 2123 L_40014DAD: 2124 RECOMP_BACKEDGE(); 2125 goto L_4001470A; /* 0x40014DAD: jmp 0x4001470a */ 2126 { RECOMP_REGS_OUT(); return; } /* end of function */ 2127 _ljump: 2128 switch (_itail_tgt) { 2129 case 0x4001470Au: goto L_4001470A; 2130 case 0x40014DA8u: goto L_40014DA8; 2131 case 0x40014DADu: goto L_40014DAD; 2132 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2133 } 2134 RECOMP_REGS_OUT(); 2135 } 2136 2137 void sub_40014DC0(void) { 2138 int _fpu_cmp = 0; 2139 uint32_t _cf = 0; 2140 int _df = 1; 2141 uint32_t _flag_k = FK_NONE; 2142 uint32_t _flag_a = 0, _flag_b = 0; 2143 uint32_t _itail_tgt = 0; 2144 RECOMP_REGS_LOCALS 2145 RECOMP_ENTER(0x40014DC0u); 2146 2147 goto L_40014DC0; 2148 L_400019D0: 2149 MEM32(ecx) = 0x400162A8u; /* 0x400019D0: mov dword ptr [ecx], 0x400162a8 */ 2150 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400019D6: ret */ 2151 L_40014DC0: 2152 ecx = MEM32(ebp + (-0x10)); /* 0x40014DC0: mov ecx, dword ptr [ebp - 0x10] */ 2153 RECOMP_BACKEDGE(); 2154 goto L_400019D0; /* 0x40014DC3: jmp 0x400019d0 */ 2155 { RECOMP_REGS_OUT(); return; } /* end of function */ 2156 RECOMP_REGS_OUT(); 2157 } 2158 2159 void sub_40014DC8(void) { 2160 int _fpu_cmp = 0; 2161 uint32_t _cf = 0; 2162 int _df = 1; 2163 uint32_t _flag_k = FK_NONE; 2164 uint32_t _flag_a = 0, _flag_b = 0; 2165 uint32_t _itail_tgt = 0; 2166 RECOMP_REGS_LOCALS 2167 RECOMP_ENTER(0x40014DC8u); 2168 2169 goto L_40014DC8; 2170 L_4001470A: 2171 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 2172 L_40014DC8: 2173 eax = 0x40016E80u; /* 0x40014DC8: mov eax, 0x40016e80 */ 2174 L_40014DCD: 2175 RECOMP_BACKEDGE(); 2176 goto L_4001470A; /* 0x40014DCD: jmp 0x4001470a */ 2177 { RECOMP_REGS_OUT(); return; } /* end of function */ 2178 _ljump: 2179 switch (_itail_tgt) { 2180 case 0x4001470Au: goto L_4001470A; 2181 case 0x40014DC8u: goto L_40014DC8; 2182 case 0x40014DCDu: goto L_40014DCD; 2183 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2184 } 2185 RECOMP_REGS_OUT(); 2186 } 2187 2188 void sub_40014DE0(void) { 2189 int _fpu_cmp = 0; 2190 uint32_t _cf = 0; 2191 int _df = 1; 2192 uint32_t _flag_k = FK_NONE; 2193 uint32_t _flag_a = 0, _flag_b = 0; 2194 uint32_t _itail_tgt = 0; 2195 RECOMP_REGS_LOCALS 2196 RECOMP_ENTER(0x40014DE0u); 2197 2198 L_40014DE0: 2199 ecx = ebp + (-0x70); /* 0x40014DE0: lea ecx, [ebp - 0x70] */ 2200 L_40014DE3: 2201 { _itail_tgt = (uint32_t)(MEM32(0x40016210)); goto _ljump; } 2202 { RECOMP_REGS_OUT(); return; } /* end of function */ 2203 _ljump: 2204 switch (_itail_tgt) { 2205 case 0x40014DE0u: goto L_40014DE0; 2206 case 0x40014DE3u: goto L_40014DE3; 2207 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2208 } 2209 RECOMP_REGS_OUT(); 2210 } 2211 2212 void sub_40014DE9(void) { 2213 int _fpu_cmp = 0; 2214 uint32_t _cf = 0; 2215 int _df = 1; 2216 uint32_t _flag_k = FK_NONE; 2217 uint32_t _flag_a = 0, _flag_b = 0; 2218 uint32_t _itail_tgt = 0; 2219 RECOMP_REGS_LOCALS 2220 RECOMP_ENTER(0x40014DE9u); 2221 2222 goto L_40014DE9; 2223 L_400071C0: 2224 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 2225 PUSH32(esp, esi); /* 0x400071C1: push esi */ 2226 PUSH32(esp, edi); /* 0x400071C2: push edi */ 2227 edi = ecx; /* 0x400071C3: mov edi, ecx */ 2228 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 2229 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 2230 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 2231 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2233 _flag_k = FK_CMP; 2234 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 2235 L_400071CE: 2236 eax = esi; /* 0x400071CE: mov eax, esi */ 2237 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 2238 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 2239 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 2240 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 2241 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 2242 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 2243 PUSH32(esp, eax); /* 0x400071DE: push eax */ 2244 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 2245 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 2246 RECOMP_FLAGS_IN(); 2247 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 2248 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2250 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 2251 _flag_k = FK_ADD; 2252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2253 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 2254 _flag_k = FK_DEC; 2255 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 2256 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2258 _flag_k = FK_CMP; 2259 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 2260 RECOMP_BACKEDGE(); 2261 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 2262 L_400071F5: 2263 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 2264 PUSH32(esp, eax); /* 0x400071F8: push eax */ 2265 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 2266 RECOMP_FLAGS_IN(); 2267 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2269 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 2270 _flag_k = FK_ADD; 2271 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2272 eax = 0; /* 0x40007201: xor eax, eax */ 2273 _cf = 0; 2274 _flag_k = FK_TEST; 2275 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 2276 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 2277 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 2278 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 2279 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 2280 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 2281 L_40014DE9: 2282 ecx = ebp + (-0x60); /* 0x40014DE9: lea ecx, [ebp - 0x60] */ 2283 RECOMP_BACKEDGE(); 2284 goto L_400071C0; /* 0x40014DEC: jmp 0x400071c0 */ 2285 { RECOMP_REGS_OUT(); return; } /* end of function */ 2286 RECOMP_REGS_OUT(); 2287 } 2288 2289 void sub_40014DF1(void) { 2290 int _fpu_cmp = 0; 2291 uint32_t _cf = 0; 2292 int _df = 1; 2293 uint32_t _flag_k = FK_NONE; 2294 uint32_t _flag_a = 0, _flag_b = 0; 2295 uint32_t _itail_tgt = 0; 2296 RECOMP_REGS_LOCALS 2297 RECOMP_ENTER(0x40014DF1u); 2298 2299 goto L_40014DF1; 2300 L_40007350: 2301 PUSH32(esp, ebx); /* 0x40007350: push ebx */ 2302 PUSH32(esp, esi); /* 0x40007351: push esi */ 2303 PUSH32(esp, edi); /* 0x40007352: push edi */ 2304 edi = ecx; /* 0x40007353: mov edi, ecx */ 2305 ebx = MEM32(edi + 0xC); /* 0x40007355: mov ebx, dword ptr [edi + 0xc] */ 2306 esi = MEM32(ebx); /* 0x40007358: mov esi, dword ptr [ebx] */ 2307 /* cmp esi, ebx */ /* 0x4000735A: cmp esi, ebx */ 2308 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2310 _flag_k = FK_CMP; 2311 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007385; /* 0x4000735C: je 0x40007385 */ 2312 L_4000735E: 2313 eax = esi; /* 0x4000735E: mov eax, esi */ 2314 ecx = MEM32(eax + 0x4); /* 0x40007360: mov ecx, dword ptr [eax + 4] */ 2315 edx = MEM32(eax); /* 0x40007363: mov edx, dword ptr [eax] */ 2316 esi = MEM32(esi); /* 0x40007365: mov esi, dword ptr [esi] */ 2317 MEM32(ecx) = edx; /* 0x40007367: mov dword ptr [ecx], edx */ 2318 ecx = MEM32(eax); /* 0x40007369: mov ecx, dword ptr [eax] */ 2319 edx = MEM32(eax + 0x4); /* 0x4000736B: mov edx, dword ptr [eax + 4] */ 2320 PUSH32(esp, eax); /* 0x4000736E: push eax */ 2321 MEM32(ecx + 0x4) = edx; /* 0x4000736F: mov dword ptr [ecx + 4], edx */ 2322 RECOMP_ICALL(0x400146F2u); /* 0x40007372: call 0x400146f2 */ /* not lifted */ 2323 RECOMP_FLAGS_IN(); 2324 ecx = MEM32(edi + 0x10); /* 0x40007377: mov ecx, dword ptr [edi + 0x10] */ 2325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2327 esp = esp + 4; /* 0x4000737A: add esp, 4 */ 2328 _flag_k = FK_ADD; 2329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2330 ecx = ecx - 1; /* 0x4000737D: dec ecx */ 2331 _flag_k = FK_DEC; 2332 /* cmp esi, ebx */ /* 0x4000737E: cmp esi, ebx */ 2333 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2335 _flag_k = FK_CMP; 2336 MEM32(edi + 0x10) = ecx; /* 0x40007380: mov dword ptr [edi + 0x10], ecx */ 2337 RECOMP_BACKEDGE(); 2338 if (CMP_NE(_flag_a, _flag_b)) goto L_4000735E; /* 0x40007383: jne 0x4000735e */ 2339 L_40007385: 2340 eax = MEM32(edi + 0xC); /* 0x40007385: mov eax, dword ptr [edi + 0xc] */ 2341 PUSH32(esp, eax); /* 0x40007388: push eax */ 2342 RECOMP_ICALL(0x400146F2u); /* 0x40007389: call 0x400146f2 */ /* not lifted */ 2343 RECOMP_FLAGS_IN(); 2344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2346 esp = esp + 4; /* 0x4000738E: add esp, 4 */ 2347 _flag_k = FK_ADD; 2348 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2349 eax = 0; /* 0x40007391: xor eax, eax */ 2350 _cf = 0; 2351 _flag_k = FK_TEST; 2352 MEM32(edi + 0xC) = eax; /* 0x40007393: mov dword ptr [edi + 0xc], eax */ 2353 MEM32(edi + 0x10) = eax; /* 0x40007396: mov dword ptr [edi + 0x10], eax */ 2354 edi = POP32_VAL(esp); /* 0x40007399: pop edi */ 2355 esi = POP32_VAL(esp); /* 0x4000739A: pop esi */ 2356 ebx = POP32_VAL(esp); /* 0x4000739B: pop ebx */ 2357 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000739C: ret */ 2358 L_40014DF1: 2359 ecx = ebp + (-0x84); /* 0x40014DF1: lea ecx, [ebp - 0x84] */ 2360 RECOMP_BACKEDGE(); 2361 goto L_40007350; /* 0x40014DF7: jmp 0x40007350 */ 2362 { RECOMP_REGS_OUT(); return; } /* end of function */ 2363 RECOMP_REGS_OUT(); 2364 } 2365 2366 void sub_40014DFC(void) { 2367 int _fpu_cmp = 0; 2368 uint32_t _cf = 0; 2369 int _df = 1; 2370 uint32_t _flag_k = FK_NONE; 2371 uint32_t _flag_a = 0, _flag_b = 0; 2372 uint32_t _itail_tgt = 0; 2373 RECOMP_REGS_LOCALS 2374 RECOMP_ENTER(0x40014DFCu); 2375 2376 goto L_40014DFC; 2377 L_4001470A: 2378 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 2379 L_40014DFC: 2380 eax = 0x40016EA8u; /* 0x40014DFC: mov eax, 0x40016ea8 */ 2381 L_40014E01: 2382 RECOMP_BACKEDGE(); 2383 goto L_4001470A; /* 0x40014E01: jmp 0x4001470a */ 2384 { RECOMP_REGS_OUT(); return; } /* end of function */ 2385 _ljump: 2386 switch (_itail_tgt) { 2387 case 0x4001470Au: goto L_4001470A; 2388 case 0x40014DFCu: goto L_40014DFC; 2389 case 0x40014E01u: goto L_40014E01; 2390 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2391 } 2392 RECOMP_REGS_OUT(); 2393 } 2394 2395 void sub_40014E10(void) { 2396 int _fpu_cmp = 0; 2397 uint32_t _cf = 0; 2398 int _df = 1; 2399 uint32_t _flag_k = FK_NONE; 2400 uint32_t _flag_a = 0, _flag_b = 0; 2401 uint32_t _itail_tgt = 0; 2402 RECOMP_REGS_LOCALS 2403 RECOMP_ENTER(0x40014E10u); 2404 2405 L_40014E10: 2406 ecx = ebp + (-0x50); /* 0x40014E10: lea ecx, [ebp - 0x50] */ 2407 L_40014E13: 2408 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 2409 { RECOMP_REGS_OUT(); return; } /* end of function */ 2410 _ljump: 2411 switch (_itail_tgt) { 2412 case 0x40014E10u: goto L_40014E10; 2413 case 0x40014E13u: goto L_40014E13; 2414 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2415 } 2416 RECOMP_REGS_OUT(); 2417 } 2418 2419 void sub_40014E19(void) { 2420 int _fpu_cmp = 0; 2421 uint32_t _cf = 0; 2422 int _df = 1; 2423 uint32_t _flag_k = FK_NONE; 2424 uint32_t _flag_a = 0, _flag_b = 0; 2425 uint32_t _itail_tgt = 0; 2426 RECOMP_REGS_LOCALS 2427 RECOMP_ENTER(0x40014E19u); 2428 2429 L_40014E19: 2430 ecx = ebp + (-0x78); /* 0x40014E19: lea ecx, [ebp - 0x78] */ 2431 L_40014E1C: 2432 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 2433 { RECOMP_REGS_OUT(); return; } /* end of function */ 2434 _ljump: 2435 switch (_itail_tgt) { 2436 case 0x40014E19u: goto L_40014E19; 2437 case 0x40014E1Cu: goto L_40014E1C; 2438 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2439 } 2440 RECOMP_REGS_OUT(); 2441 } 2442 2443 void sub_40014E22(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(0x40014E22u); 2452 2453 goto L_40014E22; 2454 L_4000A200: 2455 PUSH32(esp, ebp); /* 0x4000A200: push ebp */ 2456 ebp = esp; /* 0x4000A201: mov ebp, esp */ 2457 PUSH32(esp, 0xFFFFFFFFu); /* 0x4000A203: push -1 */ 2458 PUSH32(esp, 0x40014FDCu); /* 0x4000A205: push 0x40014fdc */ 2459 eax = MEM32(FS_BASE + (0)); /* 0x4000A20A: mov eax, dword ptr fs:[0] */ 2460 PUSH32(esp, eax); /* 0x4000A210: push eax */ 2461 MEM32(FS_BASE + (0)) = esp; /* 0x4000A211: mov dword ptr fs:[0], esp */ 2462 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 2463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2464 esp = esp - 0x24u; /* 0x4000A218: sub esp, 0x24 */ 2465 _flag_k = FK_CMP; 2466 PUSH32(esp, ebx); /* 0x4000A21B: push ebx */ 2467 PUSH32(esp, esi); /* 0x4000A21C: push esi */ 2468 esi = ecx; /* 0x4000A21D: mov esi, ecx */ 2469 PUSH32(esp, edi); /* 0x4000A21F: push edi */ 2470 MEM32(ebp + (-0x10)) = esi; /* 0x4000A220: mov dword ptr [ebp - 0x10], esi */ 2471 eax = ebp + (-0x20); /* 0x4000A223: lea eax, [ebp - 0x20] */ 2472 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2473 ebx = 0; /* 0x4000A226: xor ebx, ebx */ 2474 _cf = 0; 2475 _flag_k = FK_TEST; 2476 PUSH32(esp, eax); /* 0x4000A228: push eax */ 2477 MEM32(ebp + (-0x4)) = ebx; /* 0x4000A229: mov dword ptr [ebp - 4], ebx */ 2478 RECOMP_ICALL(MEM32(0x4001600C)); /* 0x4000A22C: call dword ptr [0x4001600c] */ 2479 RECOMP_FLAGS_IN(); 2480 ecx = ebp + (-0x20); /* 0x4000A232: lea ecx, [ebp - 0x20] */ 2481 PUSH32(esp, ecx); /* 0x4000A235: push ecx */ 2482 ecx = ebp + (-0x30); /* 0x4000A236: lea ecx, [ebp - 0x30] */ 2483 RECOMP_ICALL(MEM32(0x40016208)); /* 0x4000A239: call dword ptr [0x40016208] */ 2484 RECOMP_FLAGS_IN(); 2485 ecx = MEM32(eax); /* 0x4000A23F: mov ecx, dword ptr [eax] */ 2486 edi = MEM32(esi); /* 0x4000A241: mov edi, dword ptr [esi] */ 2487 edx = MEM32(esi + 0x4); /* 0x4000A243: mov edx, dword ptr [esi + 4] */ 2488 MEM32(ebp + (-0x28)) = ecx; /* 0x4000A246: mov dword ptr [ebp - 0x28], ecx */ 2489 eax = MEM32(eax + 0x4); /* 0x4000A249: mov eax, dword ptr [eax + 4] */ 2490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2492 ecx = ecx - edi; /* 0x4000A24C: sub ecx, edi */ 2493 _flag_k = FK_CMP; 2494 edi = MEM32(0x4001620C); /* 0x4000A24E: mov edi, dword ptr [0x4001620c] */ 2495 MEM32(ebp + (-0x24)) = eax; /* 0x4000A254: mov dword ptr [ebp - 0x24], eax */ 2496 MEM32(ebp + (-0x18)) = ecx; /* 0x4000A257: mov dword ptr [ebp - 0x18], ecx */ 2497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2498 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2499 eax = eax - edx; /* 0x4000A25A: sub eax, edx */ 2500 _flag_k = FK_CMP; 2501 ecx = ebp + (-0x18); /* 0x4000A25C: lea ecx, [ebp - 0x18] */ 2502 MEM32(ebp + (-0x14)) = eax; /* 0x4000A25F: mov dword ptr [ebp - 0x14], eax */ 2503 RECOMP_ICALL(edi); /* 0x4000A262: call edi */ 2504 RECOMP_FLAGS_IN(); 2505 ecx = ebp + (-0x18); /* 0x4000A264: lea ecx, [ebp - 0x18] */ 2506 RECOMP_ICALL(edi); /* 0x4000A267: call edi */ 2507 RECOMP_FLAGS_IN(); 2508 eax = MEM32(esi + 0xC); /* 0x4000A269: mov eax, dword ptr [esi + 0xc] */ 2509 /* cmp eax, ebx */ /* 0x4000A26C: cmp eax, ebx */ 2510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2512 _flag_k = FK_CMP; 2513 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A28C; /* 0x4000A26E: je 0x4000a28c */ 2514 L_4000A270: 2515 ecx = eax + (-0x1); /* 0x4000A270: lea ecx, [eax - 1] */ 2516 SET_LO8(eax, MEM8(ecx)); /* 0x4000A273: mov al, byte ptr [ecx] */ 2517 /* cmp LO8(eax), LO8(ebx) */ /* 0x4000A275: cmp al, bl */ 2518 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2520 _flag_k = FK_NARROW(FK_CMP, 24); 2521 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A283; /* 0x4000A277: je 0x4000a283 */ 2522 L_4000A279: 2523 /* cmp LO8(eax), 0xFFu */ /* 0x4000A279: cmp al, 0xff */ 2524 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2526 _flag_k = FK_NARROW(FK_CMP, 24); 2527 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A283; /* 0x4000A27B: je 0x4000a283 */ 2528 L_4000A27D: 2529 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2530 SET_LO8(eax, LO8(eax) - 1); /* 0x4000A27D: dec al */ 2531 _flag_k = FK_NARROW(FK_DEC, 24); 2532 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x4000A27F: mov byte ptr [ecx], al */ 2533 goto L_4000A28C; /* 0x4000A281: jmp 0x4000a28c */ 2534 L_4000A283: 2535 PUSH32(esp, ecx); /* 0x4000A283: push ecx */ 2536 RECOMP_ICALL(0x400146F2u); /* 0x4000A284: call 0x400146f2 */ /* not lifted */ 2537 RECOMP_FLAGS_IN(); 2538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2540 esp = esp + 4; /* 0x4000A289: add esp, 4 */ 2541 _flag_k = FK_ADD; 2542 L_4000A28C: 2543 ecx = MEM32(ebp + (-0xC)); /* 0x4000A28C: mov ecx, dword ptr [ebp - 0xc] */ 2544 MEM32(esi + 0xC) = ebx; /* 0x4000A28F: mov dword ptr [esi + 0xc], ebx */ 2545 MEM32(esi + 0x10) = ebx; /* 0x4000A292: mov dword ptr [esi + 0x10], ebx */ 2546 MEM32(esi + 0x14) = ebx; /* 0x4000A295: mov dword ptr [esi + 0x14], ebx */ 2547 edi = POP32_VAL(esp); /* 0x4000A298: pop edi */ 2548 esi = POP32_VAL(esp); /* 0x4000A299: pop esi */ 2549 ebx = POP32_VAL(esp); /* 0x4000A29A: pop ebx */ 2550 MEM32(FS_BASE + (0)) = ecx; /* 0x4000A29B: mov dword ptr fs:[0], ecx */ 2551 esp = ebp; /* 0x4000A2A2: mov esp, ebp */ 2552 ebp = POP32_VAL(esp); /* 0x4000A2A4: pop ebp */ 2553 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000A2A5: ret */ 2554 L_40014E22: 2555 ecx = ebp + (-0x80); /* 0x40014E22: lea ecx, [ebp - 0x80] */ 2556 RECOMP_BACKEDGE(); 2557 goto L_4000A200; /* 0x40014E25: jmp 0x4000a200 */ 2558 { RECOMP_REGS_OUT(); return; } /* end of function */ 2559 RECOMP_REGS_OUT(); 2560 } 2561 2562 void sub_40014E2A(void) { 2563 int _fpu_cmp = 0; 2564 uint32_t _cf = 0; 2565 int _df = 1; 2566 uint32_t _flag_k = FK_NONE; 2567 uint32_t _flag_a = 0, _flag_b = 0; 2568 uint32_t _itail_tgt = 0; 2569 RECOMP_REGS_LOCALS 2570 RECOMP_ENTER(0x40014E2Au); 2571 2572 L_40014E2A: 2573 ecx = ebp + (-0x30); /* 0x40014E2A: lea ecx, [ebp - 0x30] */ 2574 L_40014E2D: 2575 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 2576 { RECOMP_REGS_OUT(); return; } /* end of function */ 2577 _ljump: 2578 switch (_itail_tgt) { 2579 case 0x40014E2Au: goto L_40014E2A; 2580 case 0x40014E2Du: goto L_40014E2D; 2581 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2582 } 2583 RECOMP_REGS_OUT(); 2584 } 2585 2586 void sub_40014E33(void) { 2587 int _fpu_cmp = 0; 2588 uint32_t _cf = 0; 2589 int _df = 1; 2590 uint32_t _flag_k = FK_NONE; 2591 uint32_t _flag_a = 0, _flag_b = 0; 2592 uint32_t _itail_tgt = 0; 2593 RECOMP_REGS_LOCALS 2594 RECOMP_ENTER(0x40014E33u); 2595 2596 goto L_40014E33; 2597 L_400072B0: 2598 PUSH32(esp, ebx); /* 0x400072B0: push ebx */ 2599 PUSH32(esp, esi); /* 0x400072B1: push esi */ 2600 PUSH32(esp, edi); /* 0x400072B2: push edi */ 2601 edi = ecx; /* 0x400072B3: mov edi, ecx */ 2602 ebx = MEM32(edi + 0x8); /* 0x400072B5: mov ebx, dword ptr [edi + 8] */ 2603 esi = MEM32(edi + 0x4); /* 0x400072B8: mov esi, dword ptr [edi + 4] */ 2604 /* cmp esi, ebx */ /* 0x400072BB: cmp esi, ebx */ 2605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2607 _flag_k = FK_CMP; 2608 if (CMP_EQ(_flag_a, _flag_b)) goto L_400072CD; /* 0x400072BD: je 0x400072cd */ 2609 L_400072BF: 2610 ecx = esi; /* 0x400072BF: mov ecx, esi */ 2611 RECOMP_ICALL(0x400108E0u); /* 0x400072C1: call 0x400108e0 */ /* not lifted */ 2612 RECOMP_FLAGS_IN(); 2613 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2615 esi = esi + 4; /* 0x400072C6: add esi, 4 */ 2616 _flag_k = FK_ADD; 2617 /* cmp esi, ebx */ /* 0x400072C9: cmp esi, ebx */ 2618 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2620 _flag_k = FK_CMP; 2621 RECOMP_BACKEDGE(); 2622 if (CMP_NE(_flag_a, _flag_b)) goto L_400072BF; /* 0x400072CB: jne 0x400072bf */ 2623 L_400072CD: 2624 eax = MEM32(edi + 0x4); /* 0x400072CD: mov eax, dword ptr [edi + 4] */ 2625 PUSH32(esp, eax); /* 0x400072D0: push eax */ 2626 RECOMP_ICALL(0x400146F2u); /* 0x400072D1: call 0x400146f2 */ /* not lifted */ 2627 RECOMP_FLAGS_IN(); 2628 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2629 eax = 0; /* 0x400072D6: xor eax, eax */ 2630 _cf = 0; 2631 _flag_k = FK_TEST; 2632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2633 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2634 esp = esp + 4; /* 0x400072D8: add esp, 4 */ 2635 _flag_k = FK_ADD; 2636 MEM32(edi + 0x4) = eax; /* 0x400072DB: mov dword ptr [edi + 4], eax */ 2637 MEM32(edi + 0x8) = eax; /* 0x400072DE: mov dword ptr [edi + 8], eax */ 2638 MEM32(edi + 0xC) = eax; /* 0x400072E1: mov dword ptr [edi + 0xc], eax */ 2639 edi = POP32_VAL(esp); /* 0x400072E4: pop edi */ 2640 esi = POP32_VAL(esp); /* 0x400072E5: pop esi */ 2641 ebx = POP32_VAL(esp); /* 0x400072E6: pop ebx */ 2642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400072E7: ret */ 2643 L_40014E33: 2644 ecx = ebp + (-0x40); /* 0x40014E33: lea ecx, [ebp - 0x40] */ 2645 RECOMP_BACKEDGE(); 2646 goto L_400072B0; /* 0x40014E36: jmp 0x400072b0 */ 2647 { RECOMP_REGS_OUT(); return; } /* end of function */ 2648 RECOMP_REGS_OUT(); 2649 } 2650 2651 void sub_40014E3B(void) { 2652 int _fpu_cmp = 0; 2653 uint32_t _cf = 0; 2654 int _df = 1; 2655 uint32_t _flag_k = FK_NONE; 2656 uint32_t _flag_a = 0, _flag_b = 0; 2657 uint32_t _itail_tgt = 0; 2658 RECOMP_REGS_LOCALS 2659 RECOMP_ENTER(0x40014E3Bu); 2660 2661 L_40014E3B: 2662 eax = MEM32(ebp + (-0x1C)); /* 0x40014E3B: mov eax, dword ptr [ebp - 0x1c] */ 2663 PUSH32(esp, eax); /* 0x40014E3E: push eax */ 2664 RECOMP_ICALL(0x400146F2u); /* 0x40014E3F: call 0x400146f2 */ /* not lifted */ 2665 RECOMP_FLAGS_IN(); 2666 ecx = POP32_VAL(esp); /* 0x40014E44: pop ecx */ 2667 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40014E45: ret */ 2668 RECOMP_REGS_OUT(); 2669 } 2670 2671 void sub_40014E46(void) { 2672 int _fpu_cmp = 0; 2673 uint32_t _cf = 0; 2674 int _df = 1; 2675 uint32_t _flag_k = FK_NONE; 2676 uint32_t _flag_a = 0, _flag_b = 0; 2677 uint32_t _itail_tgt = 0; 2678 RECOMP_REGS_LOCALS 2679 RECOMP_ENTER(0x40014E46u); 2680 2681 goto L_40014E46; 2682 L_40005490: 2683 PUSH32(esp, ebp); /* 0x40005490: push ebp */ 2684 ebp = esp; /* 0x40005491: mov ebp, esp */ 2685 PUSH32(esp, 0xFFFFFFFFu); /* 0x40005493: push -1 */ 2686 PUSH32(esp, 0x40014E8Fu); /* 0x40005495: push 0x40014e8f */ 2687 eax = MEM32(FS_BASE + (0)); /* 0x4000549A: mov eax, dword ptr fs:[0] */ 2688 PUSH32(esp, eax); /* 0x400054A0: push eax */ 2689 MEM32(FS_BASE + (0)) = esp; /* 0x400054A1: mov dword ptr fs:[0], esp */ 2690 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2692 esp = esp - 0xCu; /* 0x400054A8: sub esp, 0xc */ 2693 _flag_k = FK_CMP; 2694 PUSH32(esp, ebx); /* 0x400054AB: push ebx */ 2695 PUSH32(esp, esi); /* 0x400054AC: push esi */ 2696 PUSH32(esp, edi); /* 0x400054AD: push edi */ 2697 edi = ecx; /* 0x400054AE: mov edi, ecx */ 2698 /* cmp MEM32(edi), 0 */ /* 0x400054B0: cmp dword ptr [edi], 0 */ 2699 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0); 2700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2701 _flag_k = FK_CMP; 2702 if (CMP_NE(_flag_a, _flag_b)) goto L_4000551B; /* 0x400054B3: jne 0x4000551b */ 2703 L_400054B5: 2704 RECOMP_ICALL(MEM32(0x40016018)); /* 0x400054B5: call dword ptr [0x40016018] */ 2705 RECOMP_FLAGS_IN(); 2706 ebx = eax; /* 0x400054BB: mov ebx, eax */ 2707 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x400054BD: call dword ptr [0x400160d4] */ 2708 RECOMP_FLAGS_IN(); 2709 eax = MEM32(eax); /* 0x400054C3: mov eax, dword ptr [eax] */ 2710 /* test eax, eax */ /* 0x400054C5: test eax, eax */ 2711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2712 _cf = 0; 2713 _flag_k = FK_TEST; 2714 if (TEST_Z(_flag_a, _flag_b)) goto L_400054CB; /* 0x400054C7: je 0x400054cb */ 2715 L_400054C9: 2716 ebx = eax; /* 0x400054C9: mov ebx, eax */ 2717 L_400054CB: 2718 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x400054CB: call dword ptr [0x400161d4] */ 2719 RECOMP_FLAGS_IN(); 2720 esi = eax; /* 0x400054D1: mov esi, eax */ 2721 ecx = esi; /* 0x400054D3: mov ecx, esi */ 2722 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x400054D5: call dword ptr [0x400161d8] */ 2723 RECOMP_FLAGS_IN(); 2724 PUSH32(esp, eax); /* 0x400054DB: push eax */ 2725 ecx = esi; /* 0x400054DC: mov ecx, esi */ 2726 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x400054DE: call dword ptr [0x400161dc] */ 2727 RECOMP_FLAGS_IN(); 2728 PUSH32(esp, eax); /* 0x400054E4: push eax */ 2729 ecx = esi; /* 0x400054E5: mov ecx, esi */ 2730 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x400054E7: call dword ptr [0x400161e0] */ 2731 RECOMP_FLAGS_IN(); 2732 PUSH32(esp, eax); /* 0x400054ED: push eax */ 2733 PUSH32(esp, ebx); /* 0x400054EE: push ebx */ 2734 PUSH32(esp, 0xFFFFFFFFu); /* 0x400054EF: push -1 */ 2735 PUSH32(esp, 0x56u); /* 0x400054F1: push 0x56 */ 2736 PUSH32(esp, 0x4001C288u); /* 0x400054F3: push 0x4001c288 */ 2737 ecx = esi; /* 0x400054F8: mov ecx, esi */ 2738 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x400054FA: call dword ptr [0x400161e4] */ 2739 RECOMP_FLAGS_IN(); 2740 PUSH32(esp, 0xFFFFFFFFu); /* 0x40005500: push -1 */ 2741 PUSH32(esp, 0x4001C27Cu); /* 0x40005502: push 0x4001c27c */ 2742 PUSH32(esp, 0x4001C240u); /* 0x40005507: push 0x4001c240 */ 2743 PUSH32(esp, 0x80u); /* 0x4000550C: push 0x80 */ 2744 PUSH32(esp, esi); /* 0x40005511: push esi */ 2745 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x40005512: call dword ptr [0x400161e8] */ 2746 RECOMP_FLAGS_IN(); 2747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2748 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2749 esp = esp + 0x14u; /* 0x40005518: add esp, 0x14 */ 2750 _flag_k = FK_ADD; 2751 L_4000551B: 2752 esi = MEM32(edi); /* 0x4000551B: mov esi, dword ptr [edi] */ 2753 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 2754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2755 esi = esi + 0x44u; /* 0x4000551D: add esi, 0x44 */ 2756 _flag_k = FK_ADD; 2757 PUSH32(esp, esi); /* 0x40005520: push esi */ 2758 MEM32(ebp + (-0x18)) = esi; /* 0x40005521: mov dword ptr [ebp - 0x18], esi */ 2759 RECOMP_ICALL(MEM32(0x40016014)); /* 0x40005524: call dword ptr [0x40016014] */ 2760 RECOMP_FLAGS_IN(); 2761 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2762 ebx = 0; /* 0x4000552A: xor ebx, ebx */ 2763 _cf = 0; 2764 _flag_k = FK_TEST; 2765 MEM32(ebp + (-0x14)) = ebx; /* 0x4000552C: mov dword ptr [ebp - 0x14], ebx */ 2766 eax = MEM32(edi); /* 0x4000552F: mov eax, dword ptr [edi] */ 2767 ecx = MEM32(eax + 0x4); /* 0x40005531: mov ecx, dword ptr [eax + 4] */ 2768 /* cmp ecx, ebx */ /* 0x40005534: cmp ecx, ebx */ 2769 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2771 _flag_k = FK_CMP; 2772 edx = ecx + (-0x1); /* 0x40005536: lea edx, [ecx - 1] */ 2773 MEM32(ebp + (-0x4)) = ebx; /* 0x40005539: mov dword ptr [ebp - 4], ebx */ 2774 MEM32(eax + 0x4) = edx; /* 0x4000553C: mov dword ptr [eax + 4], edx */ 2775 if (CMP_NE(_flag_a, _flag_b)) goto L_400055B5; /* 0x4000553F: jne 0x400055b5 */ 2776 L_40005541: 2777 PUSH32(esp, esi); /* 0x40005541: push esi */ 2778 MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x40005542: mov dword ptr [ebp - 0x14], 0xffffffff */ 2779 RECOMP_ICALL(MEM32(0x40016010)); /* 0x40005549: call dword ptr [0x40016010] */ 2780 RECOMP_FLAGS_IN(); 2781 esi = MEM32(edi); /* 0x4000554F: mov esi, dword ptr [edi] */ 2782 /* cmp esi, ebx */ /* 0x40005551: cmp esi, ebx */ 2783 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2785 _flag_k = FK_CMP; 2786 MEM32(ebp + (-0x10)) = esi; /* 0x40005553: mov dword ptr [ebp - 0x10], esi */ 2787 if (CMP_EQ(_flag_a, _flag_b)) goto L_400055BC; /* 0x40005556: je 0x400055bc */ 2788 L_40005558: 2789 eax = MEM32(esi); /* 0x40005558: mov eax, dword ptr [esi] */ 2790 PUSH32(esp, eax); /* 0x4000555A: push eax */ 2791 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x4000555B: mov byte ptr [ebp - 4], 2 */ 2792 RECOMP_ICALL(0x400146F2u); /* 0x4000555F: call 0x400146f2 */ /* not lifted */ 2793 RECOMP_FLAGS_IN(); 2794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2795 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2796 esp = esp + 4; /* 0x40005564: add esp, 4 */ 2797 _flag_k = FK_ADD; 2798 ecx = esi + 0x44; /* 0x40005567: lea ecx, [esi + 0x44] */ 2799 RECOMP_ICALL(MEM32(0x400161EC)); /* 0x4000556A: call dword ptr [0x400161ec] */ 2800 RECOMP_FLAGS_IN(); 2801 ecx = esi + 0x14; /* 0x40005570: lea ecx, [esi + 0x14] */ 2802 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x40005573: mov byte ptr [ebp - 4], 1 */ 2803 RECOMP_ICALL(MEM32(0x400161F0)); /* 0x40005577: call dword ptr [0x400161f0] */ 2804 RECOMP_FLAGS_IN(); 2805 edi = esi + 0x8; /* 0x4000557D: lea edi, [esi + 8] */ 2806 ecx = edi; /* 0x40005580: mov ecx, edi */ 2807 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x40005582: mov byte ptr [ebp - 4], bl */ 2808 RECOMP_ICALL(0x40010C80u); /* 0x40005585: call 0x40010c80 */ /* not lifted */ 2809 RECOMP_FLAGS_IN(); 2810 eax = MEM32(edi); /* 0x4000558A: mov eax, dword ptr [edi] */ 2811 /* cmp eax, ebx */ /* 0x4000558C: cmp eax, ebx */ 2812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2814 _flag_k = FK_CMP; 2815 if (CMP_EQ(_flag_a, _flag_b)) goto L_40005599; /* 0x4000558E: je 0x40005599 */ 2816 L_40005590: 2817 ecx = MEM32(edi + 0x8); /* 0x40005590: mov ecx, dword ptr [edi + 8] */ 2818 edx = MEM32(ecx); /* 0x40005593: mov edx, dword ptr [ecx] */ 2819 PUSH32(esp, eax); /* 0x40005595: push eax */ 2820 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x40005596: call dword ptr [edx + 0xc] */ 2821 RECOMP_FLAGS_IN(); 2822 L_40005599: 2823 PUSH32(esp, esi); /* 0x40005599: push esi */ 2824 MEM32(edi) = ebx; /* 0x4000559A: mov dword ptr [edi], ebx */ 2825 RECOMP_ICALL(0x400146F2u); /* 0x4000559C: call 0x400146f2 */ /* not lifted */ 2826 RECOMP_FLAGS_IN(); 2827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2829 esp = esp + 4; /* 0x400055A1: add esp, 4 */ 2830 _flag_k = FK_ADD; 2831 edi = POP32_VAL(esp); /* 0x400055A4: pop edi */ 2832 esi = POP32_VAL(esp); /* 0x400055A5: pop esi */ 2833 ebx = POP32_VAL(esp); /* 0x400055A6: pop ebx */ 2834 ecx = MEM32(ebp + (-0xC)); /* 0x400055A7: mov ecx, dword ptr [ebp - 0xc] */ 2835 MEM32(FS_BASE + (0)) = ecx; /* 0x400055AA: mov dword ptr fs:[0], ecx */ 2836 esp = ebp; /* 0x400055B1: mov esp, ebp */ 2837 ebp = POP32_VAL(esp); /* 0x400055B3: pop ebp */ 2838 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400055B4: ret */ 2839 L_400055B5: 2840 PUSH32(esp, esi); /* 0x400055B5: push esi */ 2841 RECOMP_ICALL(MEM32(0x40016010)); /* 0x400055B6: call dword ptr [0x40016010] */ 2842 RECOMP_FLAGS_IN(); 2843 L_400055BC: 2844 ecx = MEM32(ebp + (-0xC)); /* 0x400055BC: mov ecx, dword ptr [ebp - 0xc] */ 2845 edi = POP32_VAL(esp); /* 0x400055BF: pop edi */ 2846 esi = POP32_VAL(esp); /* 0x400055C0: pop esi */ 2847 ebx = POP32_VAL(esp); /* 0x400055C1: pop ebx */ 2848 MEM32(FS_BASE + (0)) = ecx; /* 0x400055C2: mov dword ptr fs:[0], ecx */ 2849 esp = ebp; /* 0x400055C9: mov esp, ebp */ 2850 ebp = POP32_VAL(esp); /* 0x400055CB: pop ebp */ 2851 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400055CC: ret */ 2852 L_40014E46: 2853 ecx = ebp + (-0x14); /* 0x40014E46: lea ecx, [ebp - 0x14] */ 2854 RECOMP_BACKEDGE(); 2855 goto L_40005490; /* 0x40014E49: jmp 0x40005490 */ 2856 { RECOMP_REGS_OUT(); return; } /* end of function */ 2857 RECOMP_REGS_OUT(); 2858 } 2859 2860 void sub_40014E4E(void) { 2861 int _fpu_cmp = 0; 2862 uint32_t _cf = 0; 2863 int _df = 1; 2864 uint32_t _flag_k = FK_NONE; 2865 uint32_t _flag_a = 0, _flag_b = 0; 2866 uint32_t _itail_tgt = 0; 2867 RECOMP_REGS_LOCALS 2868 RECOMP_ENTER(0x40014E4Eu); 2869 2870 L_40014E4E: 2871 ecx = ebp + (-0x78); /* 0x40014E4E: lea ecx, [ebp - 0x78] */ 2872 L_40014E51: 2873 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 2874 { RECOMP_REGS_OUT(); return; } /* end of function */ 2875 _ljump: 2876 switch (_itail_tgt) { 2877 case 0x40014E4Eu: goto L_40014E4E; 2878 case 0x40014E51u: goto L_40014E51; 2879 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2880 } 2881 RECOMP_REGS_OUT(); 2882 } 2883 2884 void sub_40014E57(void) { 2885 int _fpu_cmp = 0; 2886 uint32_t _cf = 0; 2887 int _df = 1; 2888 uint32_t _flag_k = FK_NONE; 2889 uint32_t _flag_a = 0, _flag_b = 0; 2890 uint32_t _itail_tgt = 0; 2891 RECOMP_REGS_LOCALS 2892 RECOMP_ENTER(0x40014E57u); 2893 2894 goto L_40014E57; 2895 L_4001470A: 2896 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 2897 L_40014E57: 2898 eax = 0x40016EE0u; /* 0x40014E57: mov eax, 0x40016ee0 */ 2899 L_40014E5C: 2900 RECOMP_BACKEDGE(); 2901 goto L_4001470A; /* 0x40014E5C: jmp 0x4001470a */ 2902 { RECOMP_REGS_OUT(); return; } /* end of function */ 2903 _ljump: 2904 switch (_itail_tgt) { 2905 case 0x4001470Au: goto L_4001470A; 2906 case 0x40014E57u: goto L_40014E57; 2907 case 0x40014E5Cu: goto L_40014E5C; 2908 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2909 } 2910 RECOMP_REGS_OUT(); 2911 } 2912 2913 void sub_40014E70(void) { 2914 int _fpu_cmp = 0; 2915 uint32_t _cf = 0; 2916 int _df = 1; 2917 uint32_t _flag_k = FK_NONE; 2918 uint32_t _flag_a = 0, _flag_b = 0; 2919 uint32_t _itail_tgt = 0; 2920 RECOMP_REGS_LOCALS 2921 RECOMP_ENTER(0x40014E70u); 2922 2923 goto L_40014E70; 2924 L_4000F1A0: 2925 edx = MEM32(ecx + 0x4); /* 0x4000F1A0: mov edx, dword ptr [ecx + 4] */ 2926 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2927 eax = eax | 0xFFFFFFFFu; /* 0x4000F1A3: or eax, 0xffffffff */ 2928 _cf = 0; 2929 _flag_k = FK_TEST; 2930 /* cmp edx, eax */ /* 0x4000F1A6: cmp edx, eax */ 2931 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2933 _flag_k = FK_CMP; 2934 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000F1B6; /* 0x4000F1A8: je 0x4000f1b6 */ 2935 L_4000F1AA: 2936 MEM32(ecx + 0x4) = eax; /* 0x4000F1AA: mov dword ptr [ecx + 4], eax */ 2937 eax = MEM32(ecx); /* 0x4000F1AD: mov eax, dword ptr [ecx] */ 2938 PUSH32(esp, eax); /* 0x4000F1AF: push eax */ 2939 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4000F1B0: call dword ptr [0x40016010] */ 2940 RECOMP_FLAGS_IN(); 2941 L_4000F1B6: 2942 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000F1B6: ret */ 2943 L_40014E70: 2944 ecx = ebp + (-0x18); /* 0x40014E70: lea ecx, [ebp - 0x18] */ 2945 RECOMP_BACKEDGE(); 2946 goto L_4000F1A0; /* 0x40014E73: jmp 0x4000f1a0 */ 2947 { RECOMP_REGS_OUT(); return; } /* end of function */ 2948 RECOMP_REGS_OUT(); 2949 } 2950 2951 void sub_40014E78(void) { 2952 int _fpu_cmp = 0; 2953 uint32_t _cf = 0; 2954 int _df = 1; 2955 uint32_t _flag_k = FK_NONE; 2956 uint32_t _flag_a = 0, _flag_b = 0; 2957 uint32_t _itail_tgt = 0; 2958 RECOMP_REGS_LOCALS 2959 RECOMP_ENTER(0x40014E78u); 2960 2961 goto L_40014E78; 2962 L_40010C10: 2963 PUSH32(esp, esi); /* 0x40010C10: push esi */ 2964 esi = ecx; /* 0x40010C11: mov esi, ecx */ 2965 eax = MEM32(esi); /* 0x40010C13: mov eax, dword ptr [esi] */ 2966 PUSH32(esp, edi); /* 0x40010C15: push edi */ 2967 edi = MEM32(eax); /* 0x40010C16: mov edi, dword ptr [eax] */ 2968 /* cmp edi, eax */ /* 0x40010C18: cmp edi, eax */ 2969 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2971 _flag_k = FK_CMP; 2972 if (CMP_EQ(_flag_a, _flag_b)) goto L_40010C3A; /* 0x40010C1A: je 0x40010c3a */ 2973 L_40010C1C: 2974 eax = edi; /* 0x40010C1C: mov eax, edi */ 2975 /* test eax, eax */ /* 0x40010C1E: test eax, eax */ 2976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2977 _cf = 0; 2978 _flag_k = FK_TEST; 2979 edi = MEM32(edi); /* 0x40010C20: mov edi, dword ptr [edi] */ 2980 if (TEST_Z(_flag_a, _flag_b)) goto L_40010C2D; /* 0x40010C22: je 0x40010c2d */ 2981 L_40010C24: 2982 ecx = MEM32(esi + 0x8); /* 0x40010C24: mov ecx, dword ptr [esi + 8] */ 2983 edx = MEM32(ecx); /* 0x40010C27: mov edx, dword ptr [ecx] */ 2984 PUSH32(esp, eax); /* 0x40010C29: push eax */ 2985 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x40010C2A: call dword ptr [edx + 0xc] */ 2986 RECOMP_FLAGS_IN(); 2987 L_40010C2D: 2988 ecx = MEM32(esi + 0x4); /* 0x40010C2D: mov ecx, dword ptr [esi + 4] */ 2989 eax = MEM32(esi); /* 0x40010C30: mov eax, dword ptr [esi] */ 2990 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2991 ecx = ecx - 1; /* 0x40010C32: dec ecx */ 2992 _flag_k = FK_DEC; 2993 /* cmp edi, eax */ /* 0x40010C33: cmp edi, eax */ 2994 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2996 _flag_k = FK_CMP; 2997 MEM32(esi + 0x4) = ecx; /* 0x40010C35: mov dword ptr [esi + 4], ecx */ 2998 RECOMP_BACKEDGE(); 2999 if (CMP_NE(_flag_a, _flag_b)) goto L_40010C1C; /* 0x40010C38: jne 0x40010c1c */ 3000 L_40010C3A: 3001 eax = MEM32(esi); /* 0x40010C3A: mov eax, dword ptr [esi] */ 3002 MEM32(eax) = eax; /* 0x40010C3C: mov dword ptr [eax], eax */ 3003 eax = MEM32(esi); /* 0x40010C3E: mov eax, dword ptr [esi] */ 3004 /* test eax, eax */ /* 0x40010C40: test eax, eax */ 3005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3006 _cf = 0; 3007 _flag_k = FK_TEST; 3008 if (TEST_Z(_flag_a, _flag_b)) goto L_40010C4D; /* 0x40010C42: je 0x40010c4d */ 3009 L_40010C44: 3010 ecx = MEM32(esi + 0x8); /* 0x40010C44: mov ecx, dword ptr [esi + 8] */ 3011 edx = MEM32(ecx); /* 0x40010C47: mov edx, dword ptr [ecx] */ 3012 PUSH32(esp, eax); /* 0x40010C49: push eax */ 3013 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x40010C4A: call dword ptr [edx + 0xc] */ 3014 RECOMP_FLAGS_IN(); 3015 L_40010C4D: 3016 edi = POP32_VAL(esp); /* 0x40010C4D: pop edi */ 3017 MEM32(esi) = 0; /* 0x40010C4E: mov dword ptr [esi], 0 */ 3018 esi = POP32_VAL(esp); /* 0x40010C54: pop esi */ 3019 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40010C55: ret */ 3020 L_40014E78: 3021 ecx = MEM32(ebp + (-0x10)); /* 0x40014E78: mov ecx, dword ptr [ebp - 0x10] */ 3022 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3024 ecx = ecx + 8; /* 0x40014E7B: add ecx, 8 */ 3025 _flag_k = FK_ADD; 3026 RECOMP_BACKEDGE(); 3027 goto L_40010C10; /* 0x40014E7E: jmp 0x40010c10 */ 3028 { RECOMP_REGS_OUT(); return; } /* end of function */ 3029 RECOMP_REGS_OUT(); 3030 } 3031 3032 void sub_40014E83(void) { 3033 int _fpu_cmp = 0; 3034 uint32_t _cf = 0; 3035 int _df = 1; 3036 uint32_t _flag_k = FK_NONE; 3037 uint32_t _flag_a = 0, _flag_b = 0; 3038 uint32_t _itail_tgt = 0; 3039 RECOMP_REGS_LOCALS 3040 RECOMP_ENTER(0x40014E83u); 3041 3042 L_40014E83: 3043 ecx = MEM32(ebp + (-0x10)); /* 0x40014E83: mov ecx, dword ptr [ebp - 0x10] */ 3044 L_40014E86: 3045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 3046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3047 ecx = ecx + 0x14u; /* 0x40014E86: add ecx, 0x14 */ 3048 _flag_k = FK_ADD; 3049 L_40014E89: 3050 { _itail_tgt = (uint32_t)(MEM32(0x400161F0)); goto _ljump; } 3051 { RECOMP_REGS_OUT(); return; } /* end of function */ 3052 _ljump: 3053 switch (_itail_tgt) { 3054 case 0x40014E83u: goto L_40014E83; 3055 case 0x40014E86u: goto L_40014E86; 3056 case 0x40014E89u: goto L_40014E89; 3057 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3058 } 3059 RECOMP_REGS_OUT(); 3060 } 3061 3062 void sub_40014E8F(void) { 3063 int _fpu_cmp = 0; 3064 uint32_t _cf = 0; 3065 int _df = 1; 3066 uint32_t _flag_k = FK_NONE; 3067 uint32_t _flag_a = 0, _flag_b = 0; 3068 uint32_t _itail_tgt = 0; 3069 RECOMP_REGS_LOCALS 3070 RECOMP_ENTER(0x40014E8Fu); 3071 3072 goto L_40014E8F; 3073 L_4001470A: 3074 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 3075 L_40014E8F: 3076 eax = 0x40016F48u; /* 0x40014E8F: mov eax, 0x40016f48 */ 3077 L_40014E94: 3078 RECOMP_BACKEDGE(); 3079 goto L_4001470A; /* 0x40014E94: jmp 0x4001470a */ 3080 { RECOMP_REGS_OUT(); return; } /* end of function */ 3081 _ljump: 3082 switch (_itail_tgt) { 3083 case 0x4001470Au: goto L_4001470A; 3084 case 0x40014E8Fu: goto L_40014E8F; 3085 case 0x40014E94u: goto L_40014E94; 3086 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3087 } 3088 RECOMP_REGS_OUT(); 3089 } 3090 3091 void sub_40014EA0(void) { 3092 int _fpu_cmp = 0; 3093 uint32_t _cf = 0; 3094 int _df = 1; 3095 uint32_t _flag_k = FK_NONE; 3096 uint32_t _flag_a = 0, _flag_b = 0; 3097 uint32_t _itail_tgt = 0; 3098 RECOMP_REGS_LOCALS 3099 RECOMP_ENTER(0x40014EA0u); 3100 3101 L_40014EA0: 3102 ecx = ebp + (-0xE4); /* 0x40014EA0: lea ecx, [ebp - 0xe4] */ 3103 L_40014EA6: 3104 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3105 { RECOMP_REGS_OUT(); return; } /* end of function */ 3106 _ljump: 3107 switch (_itail_tgt) { 3108 case 0x40014EA0u: goto L_40014EA0; 3109 case 0x40014EA6u: goto L_40014EA6; 3110 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3111 } 3112 RECOMP_REGS_OUT(); 3113 } 3114 3115 void sub_40014EAC(void) { 3116 int _fpu_cmp = 0; 3117 uint32_t _cf = 0; 3118 int _df = 1; 3119 uint32_t _flag_k = FK_NONE; 3120 uint32_t _flag_a = 0, _flag_b = 0; 3121 uint32_t _itail_tgt = 0; 3122 RECOMP_REGS_LOCALS 3123 RECOMP_ENTER(0x40014EACu); 3124 3125 L_40014EAC: 3126 ecx = ebp + (-0xCC); /* 0x40014EAC: lea ecx, [ebp - 0xcc] */ 3127 L_40014EB2: 3128 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3129 { RECOMP_REGS_OUT(); return; } /* end of function */ 3130 _ljump: 3131 switch (_itail_tgt) { 3132 case 0x40014EACu: goto L_40014EAC; 3133 case 0x40014EB2u: goto L_40014EB2; 3134 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3135 } 3136 RECOMP_REGS_OUT(); 3137 } 3138 3139 void sub_40014EB8(void) { 3140 int _fpu_cmp = 0; 3141 uint32_t _cf = 0; 3142 int _df = 1; 3143 uint32_t _flag_k = FK_NONE; 3144 uint32_t _flag_a = 0, _flag_b = 0; 3145 uint32_t _itail_tgt = 0; 3146 RECOMP_REGS_LOCALS 3147 RECOMP_ENTER(0x40014EB8u); 3148 3149 goto L_40014EB8; 3150 L_4000A200: 3151 PUSH32(esp, ebp); /* 0x4000A200: push ebp */ 3152 ebp = esp; /* 0x4000A201: mov ebp, esp */ 3153 PUSH32(esp, 0xFFFFFFFFu); /* 0x4000A203: push -1 */ 3154 PUSH32(esp, 0x40014FDCu); /* 0x4000A205: push 0x40014fdc */ 3155 eax = MEM32(FS_BASE + (0)); /* 0x4000A20A: mov eax, dword ptr fs:[0] */ 3156 PUSH32(esp, eax); /* 0x4000A210: push eax */ 3157 MEM32(FS_BASE + (0)) = esp; /* 0x4000A211: mov dword ptr fs:[0], esp */ 3158 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3160 esp = esp - 0x24u; /* 0x4000A218: sub esp, 0x24 */ 3161 _flag_k = FK_CMP; 3162 PUSH32(esp, ebx); /* 0x4000A21B: push ebx */ 3163 PUSH32(esp, esi); /* 0x4000A21C: push esi */ 3164 esi = ecx; /* 0x4000A21D: mov esi, ecx */ 3165 PUSH32(esp, edi); /* 0x4000A21F: push edi */ 3166 MEM32(ebp + (-0x10)) = esi; /* 0x4000A220: mov dword ptr [ebp - 0x10], esi */ 3167 eax = ebp + (-0x20); /* 0x4000A223: lea eax, [ebp - 0x20] */ 3168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3169 ebx = 0; /* 0x4000A226: xor ebx, ebx */ 3170 _cf = 0; 3171 _flag_k = FK_TEST; 3172 PUSH32(esp, eax); /* 0x4000A228: push eax */ 3173 MEM32(ebp + (-0x4)) = ebx; /* 0x4000A229: mov dword ptr [ebp - 4], ebx */ 3174 RECOMP_ICALL(MEM32(0x4001600C)); /* 0x4000A22C: call dword ptr [0x4001600c] */ 3175 RECOMP_FLAGS_IN(); 3176 ecx = ebp + (-0x20); /* 0x4000A232: lea ecx, [ebp - 0x20] */ 3177 PUSH32(esp, ecx); /* 0x4000A235: push ecx */ 3178 ecx = ebp + (-0x30); /* 0x4000A236: lea ecx, [ebp - 0x30] */ 3179 RECOMP_ICALL(MEM32(0x40016208)); /* 0x4000A239: call dword ptr [0x40016208] */ 3180 RECOMP_FLAGS_IN(); 3181 ecx = MEM32(eax); /* 0x4000A23F: mov ecx, dword ptr [eax] */ 3182 edi = MEM32(esi); /* 0x4000A241: mov edi, dword ptr [esi] */ 3183 edx = MEM32(esi + 0x4); /* 0x4000A243: mov edx, dword ptr [esi + 4] */ 3184 MEM32(ebp + (-0x28)) = ecx; /* 0x4000A246: mov dword ptr [ebp - 0x28], ecx */ 3185 eax = MEM32(eax + 0x4); /* 0x4000A249: mov eax, dword ptr [eax + 4] */ 3186 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3188 ecx = ecx - edi; /* 0x4000A24C: sub ecx, edi */ 3189 _flag_k = FK_CMP; 3190 edi = MEM32(0x4001620C); /* 0x4000A24E: mov edi, dword ptr [0x4001620c] */ 3191 MEM32(ebp + (-0x24)) = eax; /* 0x4000A254: mov dword ptr [ebp - 0x24], eax */ 3192 MEM32(ebp + (-0x18)) = ecx; /* 0x4000A257: mov dword ptr [ebp - 0x18], ecx */ 3193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3195 eax = eax - edx; /* 0x4000A25A: sub eax, edx */ 3196 _flag_k = FK_CMP; 3197 ecx = ebp + (-0x18); /* 0x4000A25C: lea ecx, [ebp - 0x18] */ 3198 MEM32(ebp + (-0x14)) = eax; /* 0x4000A25F: mov dword ptr [ebp - 0x14], eax */ 3199 RECOMP_ICALL(edi); /* 0x4000A262: call edi */ 3200 RECOMP_FLAGS_IN(); 3201 ecx = ebp + (-0x18); /* 0x4000A264: lea ecx, [ebp - 0x18] */ 3202 RECOMP_ICALL(edi); /* 0x4000A267: call edi */ 3203 RECOMP_FLAGS_IN(); 3204 eax = MEM32(esi + 0xC); /* 0x4000A269: mov eax, dword ptr [esi + 0xc] */ 3205 /* cmp eax, ebx */ /* 0x4000A26C: cmp eax, ebx */ 3206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3208 _flag_k = FK_CMP; 3209 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A28C; /* 0x4000A26E: je 0x4000a28c */ 3210 L_4000A270: 3211 ecx = eax + (-0x1); /* 0x4000A270: lea ecx, [eax - 1] */ 3212 SET_LO8(eax, MEM8(ecx)); /* 0x4000A273: mov al, byte ptr [ecx] */ 3213 /* cmp LO8(eax), LO8(ebx) */ /* 0x4000A275: cmp al, bl */ 3214 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3216 _flag_k = FK_NARROW(FK_CMP, 24); 3217 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A283; /* 0x4000A277: je 0x4000a283 */ 3218 L_4000A279: 3219 /* cmp LO8(eax), 0xFFu */ /* 0x4000A279: cmp al, 0xff */ 3220 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3222 _flag_k = FK_NARROW(FK_CMP, 24); 3223 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000A283; /* 0x4000A27B: je 0x4000a283 */ 3224 L_4000A27D: 3225 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3226 SET_LO8(eax, LO8(eax) - 1); /* 0x4000A27D: dec al */ 3227 _flag_k = FK_NARROW(FK_DEC, 24); 3228 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x4000A27F: mov byte ptr [ecx], al */ 3229 goto L_4000A28C; /* 0x4000A281: jmp 0x4000a28c */ 3230 L_4000A283: 3231 PUSH32(esp, ecx); /* 0x4000A283: push ecx */ 3232 RECOMP_ICALL(0x400146F2u); /* 0x4000A284: call 0x400146f2 */ /* not lifted */ 3233 RECOMP_FLAGS_IN(); 3234 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3236 esp = esp + 4; /* 0x4000A289: add esp, 4 */ 3237 _flag_k = FK_ADD; 3238 L_4000A28C: 3239 ecx = MEM32(ebp + (-0xC)); /* 0x4000A28C: mov ecx, dword ptr [ebp - 0xc] */ 3240 MEM32(esi + 0xC) = ebx; /* 0x4000A28F: mov dword ptr [esi + 0xc], ebx */ 3241 MEM32(esi + 0x10) = ebx; /* 0x4000A292: mov dword ptr [esi + 0x10], ebx */ 3242 MEM32(esi + 0x14) = ebx; /* 0x4000A295: mov dword ptr [esi + 0x14], ebx */ 3243 edi = POP32_VAL(esp); /* 0x4000A298: pop edi */ 3244 esi = POP32_VAL(esp); /* 0x4000A299: pop esi */ 3245 ebx = POP32_VAL(esp); /* 0x4000A29A: pop ebx */ 3246 MEM32(FS_BASE + (0)) = ecx; /* 0x4000A29B: mov dword ptr fs:[0], ecx */ 3247 esp = ebp; /* 0x4000A2A2: mov esp, ebp */ 3248 ebp = POP32_VAL(esp); /* 0x4000A2A4: pop ebp */ 3249 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000A2A5: ret */ 3250 L_40014EB8: 3251 ecx = ebp + (-0xD4); /* 0x40014EB8: lea ecx, [ebp - 0xd4] */ 3252 RECOMP_BACKEDGE(); 3253 goto L_4000A200; /* 0x40014EBE: jmp 0x4000a200 */ 3254 { RECOMP_REGS_OUT(); return; } /* end of function */ 3255 RECOMP_REGS_OUT(); 3256 } 3257 3258 void sub_40014EC3(void) { 3259 int _fpu_cmp = 0; 3260 uint32_t _cf = 0; 3261 int _df = 1; 3262 uint32_t _flag_k = FK_NONE; 3263 uint32_t _flag_a = 0, _flag_b = 0; 3264 uint32_t _itail_tgt = 0; 3265 RECOMP_REGS_LOCALS 3266 RECOMP_ENTER(0x40014EC3u); 3267 3268 L_40014EC3: 3269 ecx = ebp + (-0x84); /* 0x40014EC3: lea ecx, [ebp - 0x84] */ 3270 L_40014EC9: 3271 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3272 { RECOMP_REGS_OUT(); return; } /* end of function */ 3273 _ljump: 3274 switch (_itail_tgt) { 3275 case 0x40014EC3u: goto L_40014EC3; 3276 case 0x40014EC9u: goto L_40014EC9; 3277 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3278 } 3279 RECOMP_REGS_OUT(); 3280 } 3281 3282 void sub_40014ECF(void) { 3283 int _fpu_cmp = 0; 3284 uint32_t _cf = 0; 3285 int _df = 1; 3286 uint32_t _flag_k = FK_NONE; 3287 uint32_t _flag_a = 0, _flag_b = 0; 3288 uint32_t _itail_tgt = 0; 3289 RECOMP_REGS_LOCALS 3290 RECOMP_ENTER(0x40014ECFu); 3291 3292 L_40014ECF: 3293 ecx = ebp + (-0x50); /* 0x40014ECF: lea ecx, [ebp - 0x50] */ 3294 L_40014ED2: 3295 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3296 { RECOMP_REGS_OUT(); return; } /* end of function */ 3297 _ljump: 3298 switch (_itail_tgt) { 3299 case 0x40014ECFu: goto L_40014ECF; 3300 case 0x40014ED2u: goto L_40014ED2; 3301 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3302 } 3303 RECOMP_REGS_OUT(); 3304 } 3305 3306 void sub_40014ED8(void) { 3307 int _fpu_cmp = 0; 3308 uint32_t _cf = 0; 3309 int _df = 1; 3310 uint32_t _flag_k = FK_NONE; 3311 uint32_t _flag_a = 0, _flag_b = 0; 3312 uint32_t _itail_tgt = 0; 3313 RECOMP_REGS_LOCALS 3314 RECOMP_ENTER(0x40014ED8u); 3315 3316 L_40014ED8: 3317 ecx = ebp + (-0x40); /* 0x40014ED8: lea ecx, [ebp - 0x40] */ 3318 L_40014EDB: 3319 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3320 { RECOMP_REGS_OUT(); return; } /* end of function */ 3321 _ljump: 3322 switch (_itail_tgt) { 3323 case 0x40014ED8u: goto L_40014ED8; 3324 case 0x40014EDBu: goto L_40014EDB; 3325 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3326 } 3327 RECOMP_REGS_OUT(); 3328 } 3329 3330 void sub_40014EE1(void) { 3331 int _fpu_cmp = 0; 3332 uint32_t _cf = 0; 3333 int _df = 1; 3334 uint32_t _flag_k = FK_NONE; 3335 uint32_t _flag_a = 0, _flag_b = 0; 3336 uint32_t _itail_tgt = 0; 3337 RECOMP_REGS_LOCALS 3338 RECOMP_ENTER(0x40014EE1u); 3339 3340 L_40014EE1: 3341 ecx = ebp + (-0x40); /* 0x40014EE1: lea ecx, [ebp - 0x40] */ 3342 L_40014EE4: 3343 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3344 { RECOMP_REGS_OUT(); return; } /* end of function */ 3345 _ljump: 3346 switch (_itail_tgt) { 3347 case 0x40014EE1u: goto L_40014EE1; 3348 case 0x40014EE4u: goto L_40014EE4; 3349 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3350 } 3351 RECOMP_REGS_OUT(); 3352 } 3353 3354 void sub_40014EEA(void) { 3355 int _fpu_cmp = 0; 3356 uint32_t _cf = 0; 3357 int _df = 1; 3358 uint32_t _flag_k = FK_NONE; 3359 uint32_t _flag_a = 0, _flag_b = 0; 3360 uint32_t _itail_tgt = 0; 3361 RECOMP_REGS_LOCALS 3362 RECOMP_ENTER(0x40014EEAu); 3363 3364 L_40014EEA: 3365 ecx = ebp + (-0x144); /* 0x40014EEA: lea ecx, [ebp - 0x144] */ 3366 L_40014EF0: 3367 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3368 { RECOMP_REGS_OUT(); return; } /* end of function */ 3369 _ljump: 3370 switch (_itail_tgt) { 3371 case 0x40014EEAu: goto L_40014EEA; 3372 case 0x40014EF0u: goto L_40014EF0; 3373 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3374 } 3375 RECOMP_REGS_OUT(); 3376 } 3377 3378 void sub_40014EF6(void) { 3379 int _fpu_cmp = 0; 3380 uint32_t _cf = 0; 3381 int _df = 1; 3382 uint32_t _flag_k = FK_NONE; 3383 uint32_t _flag_a = 0, _flag_b = 0; 3384 uint32_t _itail_tgt = 0; 3385 RECOMP_REGS_LOCALS 3386 RECOMP_ENTER(0x40014EF6u); 3387 3388 L_40014EF6: 3389 ecx = ebp + (-0xF4); /* 0x40014EF6: lea ecx, [ebp - 0xf4] */ 3390 L_40014EFC: 3391 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3392 { RECOMP_REGS_OUT(); return; } /* end of function */ 3393 _ljump: 3394 switch (_itail_tgt) { 3395 case 0x40014EF6u: goto L_40014EF6; 3396 case 0x40014EFCu: goto L_40014EFC; 3397 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3398 } 3399 RECOMP_REGS_OUT(); 3400 } 3401 3402 void sub_40014F02(void) { 3403 int _fpu_cmp = 0; 3404 uint32_t _cf = 0; 3405 int _df = 1; 3406 uint32_t _flag_k = FK_NONE; 3407 uint32_t _flag_a = 0, _flag_b = 0; 3408 uint32_t _itail_tgt = 0; 3409 RECOMP_REGS_LOCALS 3410 RECOMP_ENTER(0x40014F02u); 3411 3412 L_40014F02: 3413 ecx = ebp + (-0x124); /* 0x40014F02: lea ecx, [ebp - 0x124] */ 3414 L_40014F08: 3415 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3416 { RECOMP_REGS_OUT(); return; } /* end of function */ 3417 _ljump: 3418 switch (_itail_tgt) { 3419 case 0x40014F02u: goto L_40014F02; 3420 case 0x40014F08u: goto L_40014F08; 3421 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3422 } 3423 RECOMP_REGS_OUT(); 3424 } 3425 3426 void sub_40014F0E(void) { 3427 int _fpu_cmp = 0; 3428 uint32_t _cf = 0; 3429 int _df = 1; 3430 uint32_t _flag_k = FK_NONE; 3431 uint32_t _flag_a = 0, _flag_b = 0; 3432 uint32_t _itail_tgt = 0; 3433 RECOMP_REGS_LOCALS 3434 RECOMP_ENTER(0x40014F0Eu); 3435 3436 L_40014F0E: 3437 ecx = ebp + (-0x104); /* 0x40014F0E: lea ecx, [ebp - 0x104] */ 3438 L_40014F14: 3439 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3440 { RECOMP_REGS_OUT(); return; } /* end of function */ 3441 _ljump: 3442 switch (_itail_tgt) { 3443 case 0x40014F0Eu: goto L_40014F0E; 3444 case 0x40014F14u: goto L_40014F14; 3445 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3446 } 3447 RECOMP_REGS_OUT(); 3448 } 3449 3450 void sub_40014F1A(void) { 3451 int _fpu_cmp = 0; 3452 uint32_t _cf = 0; 3453 int _df = 1; 3454 uint32_t _flag_k = FK_NONE; 3455 uint32_t _flag_a = 0, _flag_b = 0; 3456 uint32_t _itail_tgt = 0; 3457 RECOMP_REGS_LOCALS 3458 RECOMP_ENTER(0x40014F1Au); 3459 3460 L_40014F1A: 3461 ecx = ebp + (-0x134); /* 0x40014F1A: lea ecx, [ebp - 0x134] */ 3462 L_40014F20: 3463 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3464 { RECOMP_REGS_OUT(); return; } /* end of function */ 3465 _ljump: 3466 switch (_itail_tgt) { 3467 case 0x40014F1Au: goto L_40014F1A; 3468 case 0x40014F20u: goto L_40014F20; 3469 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3470 } 3471 RECOMP_REGS_OUT(); 3472 } 3473 3474 void sub_40014F26(void) { 3475 int _fpu_cmp = 0; 3476 uint32_t _cf = 0; 3477 int _df = 1; 3478 uint32_t _flag_k = FK_NONE; 3479 uint32_t _flag_a = 0, _flag_b = 0; 3480 uint32_t _itail_tgt = 0; 3481 RECOMP_REGS_LOCALS 3482 RECOMP_ENTER(0x40014F26u); 3483 3484 L_40014F26: 3485 ecx = ebp + (-0x114); /* 0x40014F26: lea ecx, [ebp - 0x114] */ 3486 L_40014F2C: 3487 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3488 { RECOMP_REGS_OUT(); return; } /* end of function */ 3489 _ljump: 3490 switch (_itail_tgt) { 3491 case 0x40014F26u: goto L_40014F26; 3492 case 0x40014F2Cu: goto L_40014F2C; 3493 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3494 } 3495 RECOMP_REGS_OUT(); 3496 } 3497 3498 void sub_40014F32(void) { 3499 int _fpu_cmp = 0; 3500 uint32_t _cf = 0; 3501 int _df = 1; 3502 uint32_t _flag_k = FK_NONE; 3503 uint32_t _flag_a = 0, _flag_b = 0; 3504 uint32_t _itail_tgt = 0; 3505 RECOMP_REGS_LOCALS 3506 RECOMP_ENTER(0x40014F32u); 3507 3508 goto L_40014F32; 3509 L_400063B0: 3510 PUSH32(esp, ebp); /* 0x400063B0: push ebp */ 3511 ebp = esp; /* 0x400063B1: mov ebp, esp */ 3512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3514 esp = esp - 8; /* 0x400063B3: sub esp, 8 */ 3515 _flag_k = FK_CMP; 3516 PUSH32(esp, ebx); /* 0x400063B6: push ebx */ 3517 PUSH32(esp, esi); /* 0x400063B7: push esi */ 3518 esi = ecx; /* 0x400063B8: mov esi, ecx */ 3519 ecx = MEM32(esi + 0x10); /* 0x400063BA: mov ecx, dword ptr [esi + 0x10] */ 3520 /* test ecx, ecx */ /* 0x400063BD: test ecx, ecx */ 3521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3522 _cf = 0; 3523 _flag_k = FK_TEST; 3524 PUSH32(esp, edi); /* 0x400063BF: push edi */ 3525 edi = MEM32(esi + 0x4); /* 0x400063C0: mov edi, dword ptr [esi + 4] */ 3526 eax = MEM32(edi); /* 0x400063C3: mov eax, dword ptr [edi] */ 3527 MEM32(ebp + (-0x4)) = eax; /* 0x400063C5: mov dword ptr [ebp - 4], eax */ 3528 if (TEST_Z(_flag_a, _flag_b)) goto L_40006425; /* 0x400063C8: je 0x40006425 */ 3529 L_400063CA: 3530 ecx = eax; /* 0x400063CA: mov ecx, eax */ 3531 /* cmp eax, ecx */ /* 0x400063CC: cmp eax, ecx */ 3532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3534 _flag_k = FK_CMP; 3535 if (CMP_NE(_flag_a, _flag_b)) goto L_40006425; /* 0x400063CE: jne 0x40006425 */ 3536 L_400063D0: 3537 /* cmp edi, edi */ /* 0x400063D0: cmp edi, edi */ 3538 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3540 _flag_k = FK_CMP; 3541 if (CMP_NE(_flag_a, _flag_b)) goto L_40006425; /* 0x400063D2: jne 0x40006425 */ 3542 L_400063D4: 3543 ebx = MEM32(edi + 0x4); /* 0x400063D4: mov ebx, dword ptr [edi + 4] */ 3544 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x400063D7: cmp ebx, dword ptr [esi + 8] */ 3545 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3547 _flag_k = FK_CMP; 3548 edi = ebx; /* 0x400063DA: mov edi, ebx */ 3549 if (CMP_EQ(_flag_a, _flag_b)) goto L_400063FD; /* 0x400063DC: je 0x400063fd */ 3550 L_400063DE: 3551 eax = MEM32(edi + 0x8); /* 0x400063DE: mov eax, dword ptr [edi + 8] */ 3552 PUSH32(esp, eax); /* 0x400063E1: push eax */ 3553 ecx = esi; /* 0x400063E2: mov ecx, esi */ 3554 RECOMP_ICALL(0x4000E1F0u); /* 0x400063E4: call 0x4000e1f0 */ /* not lifted */ 3555 RECOMP_FLAGS_IN(); 3556 edi = MEM32(edi); /* 0x400063E9: mov edi, dword ptr [edi] */ 3557 PUSH32(esp, ebx); /* 0x400063EB: push ebx */ 3558 RECOMP_ICALL(0x400146F2u); /* 0x400063EC: call 0x400146f2 */ /* not lifted */ 3559 RECOMP_FLAGS_IN(); 3560 eax = MEM32(esi + 0x8); /* 0x400063F1: mov eax, dword ptr [esi + 8] */ 3561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3563 esp = esp + 4; /* 0x400063F4: add esp, 4 */ 3564 _flag_k = FK_ADD; 3565 /* cmp edi, eax */ /* 0x400063F7: cmp edi, eax */ 3566 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3568 _flag_k = FK_CMP; 3569 ebx = edi; /* 0x400063F9: mov ebx, edi */ 3570 RECOMP_BACKEDGE(); 3571 if (CMP_NE(_flag_a, _flag_b)) goto L_400063DE; /* 0x400063FB: jne 0x400063de */ 3572 L_400063FD: 3573 ecx = MEM32(esi + 0x4); /* 0x400063FD: mov ecx, dword ptr [esi + 4] */ 3574 edx = MEM32(esi + 0x8); /* 0x40006400: mov edx, dword ptr [esi + 8] */ 3575 MEM32(ecx + 0x4) = edx; /* 0x40006403: mov dword ptr [ecx + 4], edx */ 3576 eax = MEM32(esi + 0x4); /* 0x40006406: mov eax, dword ptr [esi + 4] */ 3577 MEM32(esi + 0x10) = 0; /* 0x40006409: mov dword ptr [esi + 0x10], 0 */ 3578 MEM32(eax) = eax; /* 0x40006410: mov dword ptr [eax], eax */ 3579 eax = MEM32(esi + 0x4); /* 0x40006412: mov eax, dword ptr [esi + 4] */ 3580 MEM32(eax + 0x8) = eax; /* 0x40006415: mov dword ptr [eax + 8], eax */ 3581 eax = ebp + (-0x8); /* 0x40006418: lea eax, [ebp - 8] */ 3582 PUSH32(esp, eax); /* 0x4000641B: push eax */ 3583 ecx = esi; /* 0x4000641C: mov ecx, esi */ 3584 RECOMP_ICALL(0x40001BA0u); /* 0x4000641E: call 0x40001ba0 */ /* not lifted */ 3585 RECOMP_FLAGS_IN(); 3586 goto L_40006446; /* 0x40006423: jmp 0x40006446 */ 3587 L_40006425: 3588 /* cmp eax, edi */ /* 0x40006425: cmp eax, edi */ 3589 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3591 _flag_k = FK_CMP; 3592 if (CMP_EQ(_flag_a, _flag_b)) goto L_40006446; /* 0x40006427: je 0x40006446 */ 3593 L_40006429: 3594 ecx = ebp + (-0x4); /* 0x40006429: lea ecx, [ebp - 4] */ 3595 ebx = eax; /* 0x4000642C: mov ebx, eax */ 3596 RECOMP_ICALL(0x40001C50u); /* 0x4000642E: call 0x40001c50 */ /* not lifted */ 3597 RECOMP_FLAGS_IN(); 3598 PUSH32(esp, ebx); /* 0x40006433: push ebx */ 3599 ecx = ebp + (-0x8); /* 0x40006434: lea ecx, [ebp - 8] */ 3600 PUSH32(esp, ecx); /* 0x40006437: push ecx */ 3601 ecx = esi; /* 0x40006438: mov ecx, esi */ 3602 RECOMP_ICALL(0x4000DE30u); /* 0x4000643A: call 0x4000de30 */ /* not lifted */ 3603 RECOMP_FLAGS_IN(); 3604 eax = MEM32(ebp + (-0x4)); /* 0x4000643F: mov eax, dword ptr [ebp - 4] */ 3605 /* cmp eax, edi */ /* 0x40006442: cmp eax, edi */ 3606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3608 _flag_k = FK_CMP; 3609 RECOMP_BACKEDGE(); 3610 if (CMP_NE(_flag_a, _flag_b)) goto L_40006429; /* 0x40006444: jne 0x40006429 */ 3611 L_40006446: 3612 edx = MEM32(esi + 0x4); /* 0x40006446: mov edx, dword ptr [esi + 4] */ 3613 PUSH32(esp, edx); /* 0x40006449: push edx */ 3614 RECOMP_ICALL(0x400146F2u); /* 0x4000644A: call 0x400146f2 */ /* not lifted */ 3615 RECOMP_FLAGS_IN(); 3616 eax = MEM32(esi + 0x8); /* 0x4000644F: mov eax, dword ptr [esi + 8] */ 3617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3618 edi = 0; /* 0x40006452: xor edi, edi */ 3619 _cf = 0; 3620 _flag_k = FK_TEST; 3621 PUSH32(esp, eax); /* 0x40006454: push eax */ 3622 MEM32(esi + 0x4) = edi; /* 0x40006455: mov dword ptr [esi + 4], edi */ 3623 MEM32(esi + 0x10) = edi; /* 0x40006458: mov dword ptr [esi + 0x10], edi */ 3624 RECOMP_ICALL(0x400146F2u); /* 0x4000645B: call 0x400146f2 */ /* not lifted */ 3625 RECOMP_FLAGS_IN(); 3626 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3628 esp = esp + 8; /* 0x40006460: add esp, 8 */ 3629 _flag_k = FK_ADD; 3630 MEM32(esi + 0x8) = edi; /* 0x40006463: mov dword ptr [esi + 8], edi */ 3631 edi = POP32_VAL(esp); /* 0x40006466: pop edi */ 3632 esi = POP32_VAL(esp); /* 0x40006467: pop esi */ 3633 ebx = POP32_VAL(esp); /* 0x40006468: pop ebx */ 3634 esp = ebp; /* 0x40006469: mov esp, ebp */ 3635 ebp = POP32_VAL(esp); /* 0x4000646B: pop ebp */ 3636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000646C: ret */ 3637 L_40014F32: 3638 ecx = ebp + (-0x64); /* 0x40014F32: lea ecx, [ebp - 0x64] */ 3639 RECOMP_BACKEDGE(); 3640 goto L_400063B0; /* 0x40014F35: jmp 0x400063b0 */ 3641 { RECOMP_REGS_OUT(); return; } /* end of function */ 3642 RECOMP_REGS_OUT(); 3643 } 3644 3645 void sub_40014F3A(void) { 3646 int _fpu_cmp = 0; 3647 uint32_t _cf = 0; 3648 int _df = 1; 3649 uint32_t _flag_k = FK_NONE; 3650 uint32_t _flag_a = 0, _flag_b = 0; 3651 uint32_t _itail_tgt = 0; 3652 RECOMP_REGS_LOCALS 3653 RECOMP_ENTER(0x40014F3Au); 3654 3655 L_40014F3A: 3656 ecx = ebp + (-0x40); /* 0x40014F3A: lea ecx, [ebp - 0x40] */ 3657 L_40014F3D: 3658 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3659 { RECOMP_REGS_OUT(); return; } /* end of function */ 3660 _ljump: 3661 switch (_itail_tgt) { 3662 case 0x40014F3Au: goto L_40014F3A; 3663 case 0x40014F3Du: goto L_40014F3D; 3664 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3665 } 3666 RECOMP_REGS_OUT(); 3667 } 3668 3669 void sub_40014F43(void) { 3670 int _fpu_cmp = 0; 3671 uint32_t _cf = 0; 3672 int _df = 1; 3673 uint32_t _flag_k = FK_NONE; 3674 uint32_t _flag_a = 0, _flag_b = 0; 3675 uint32_t _itail_tgt = 0; 3676 RECOMP_REGS_LOCALS 3677 RECOMP_ENTER(0x40014F43u); 3678 3679 L_40014F43: 3680 ecx = ebp + (-0x50); /* 0x40014F43: lea ecx, [ebp - 0x50] */ 3681 L_40014F46: 3682 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3683 { RECOMP_REGS_OUT(); return; } /* end of function */ 3684 _ljump: 3685 switch (_itail_tgt) { 3686 case 0x40014F43u: goto L_40014F43; 3687 case 0x40014F46u: goto L_40014F46; 3688 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3689 } 3690 RECOMP_REGS_OUT(); 3691 } 3692 3693 void sub_40014F4C(void) { 3694 int _fpu_cmp = 0; 3695 uint32_t _cf = 0; 3696 int _df = 1; 3697 uint32_t _flag_k = FK_NONE; 3698 uint32_t _flag_a = 0, _flag_b = 0; 3699 uint32_t _itail_tgt = 0; 3700 RECOMP_REGS_LOCALS 3701 RECOMP_ENTER(0x40014F4Cu); 3702 3703 L_40014F4C: 3704 ecx = ebp + (-0xCC); /* 0x40014F4C: lea ecx, [ebp - 0xcc] */ 3705 L_40014F52: 3706 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 3707 { RECOMP_REGS_OUT(); return; } /* end of function */ 3708 _ljump: 3709 switch (_itail_tgt) { 3710 case 0x40014F4Cu: goto L_40014F4C; 3711 case 0x40014F52u: goto L_40014F52; 3712 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3713 } 3714 RECOMP_REGS_OUT(); 3715 } 3716 3717 void sub_40014F58(void) { 3718 int _fpu_cmp = 0; 3719 uint32_t _cf = 0; 3720 int _df = 1; 3721 uint32_t _flag_k = FK_NONE; 3722 uint32_t _flag_a = 0, _flag_b = 0; 3723 uint32_t _itail_tgt = 0; 3724 RECOMP_REGS_LOCALS 3725 RECOMP_ENTER(0x40014F58u); 3726 3727 goto L_40014F58; 3728 L_4001470A: 3729 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 3730 L_40014F58: 3731 eax = 0x40016F80u; /* 0x40014F58: mov eax, 0x40016f80 */ 3732 L_40014F5D: 3733 RECOMP_BACKEDGE(); 3734 goto L_4001470A; /* 0x40014F5D: jmp 0x4001470a */ 3735 { RECOMP_REGS_OUT(); return; } /* end of function */ 3736 _ljump: 3737 switch (_itail_tgt) { 3738 case 0x4001470Au: goto L_4001470A; 3739 case 0x40014F58u: goto L_40014F58; 3740 case 0x40014F5Du: goto L_40014F5D; 3741 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3742 } 3743 RECOMP_REGS_OUT(); 3744 } 3745 3746 void sub_40014F70(void) { 3747 int _fpu_cmp = 0; 3748 uint32_t _cf = 0; 3749 int _df = 1; 3750 uint32_t _flag_k = FK_NONE; 3751 uint32_t _flag_a = 0, _flag_b = 0; 3752 uint32_t _itail_tgt = 0; 3753 RECOMP_REGS_LOCALS 3754 RECOMP_ENTER(0x40014F70u); 3755 3756 goto L_40014F70; 3757 L_4000F1E0: 3758 PUSH32(esp, ecx); /* 0x4000F1E0: push ecx */ 3759 RECOMP_ICALL(0x40010070u); /* 0x4000F1E1: call 0x40010070 */ /* not lifted */ 3760 RECOMP_FLAGS_IN(); 3761 ecx = POP32_VAL(esp); /* 0x4000F1E6: pop ecx */ 3762 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000F1E7: ret */ 3763 L_40014F70: 3764 ecx = ebp + (-0x34); /* 0x40014F70: lea ecx, [ebp - 0x34] */ 3765 RECOMP_BACKEDGE(); 3766 goto L_4000F1E0; /* 0x40014F73: jmp 0x4000f1e0 */ 3767 { RECOMP_REGS_OUT(); return; } /* end of function */ 3768 RECOMP_REGS_OUT(); 3769 } 3770 3771 void sub_40014F78(void) { 3772 int _fpu_cmp = 0; 3773 uint32_t _cf = 0; 3774 int _df = 1; 3775 uint32_t _flag_k = FK_NONE; 3776 uint32_t _flag_a = 0, _flag_b = 0; 3777 uint32_t _itail_tgt = 0; 3778 RECOMP_REGS_LOCALS 3779 RECOMP_ENTER(0x40014F78u); 3780 3781 goto L_40014F78; 3782 L_400031D0: 3783 PUSH32(esp, ebp); /* 0x400031D0: push ebp */ 3784 ebp = esp; /* 0x400031D1: mov ebp, esp */ 3785 PUSH32(esp, 0xFFFFFFFFu); /* 0x400031D3: push -1 */ 3786 PUSH32(esp, 0x40014BFFu); /* 0x400031D5: push 0x40014bff */ 3787 eax = MEM32(FS_BASE + (0)); /* 0x400031DA: mov eax, dword ptr fs:[0] */ 3788 PUSH32(esp, eax); /* 0x400031E0: push eax */ 3789 MEM32(FS_BASE + (0)) = esp; /* 0x400031E1: mov dword ptr fs:[0], esp */ 3790 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3792 esp = esp - 0xCu; /* 0x400031E8: sub esp, 0xc */ 3793 _flag_k = FK_CMP; 3794 PUSH32(esp, ebx); /* 0x400031EB: push ebx */ 3795 PUSH32(esp, esi); /* 0x400031EC: push esi */ 3796 PUSH32(esp, edi); /* 0x400031ED: push edi */ 3797 edi = ecx; /* 0x400031EE: mov edi, ecx */ 3798 eax = MEM32(edi + 0x14); /* 0x400031F0: mov eax, dword ptr [edi + 0x14] */ 3799 /* test eax, eax */ /* 0x400031F3: test eax, eax */ 3800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3801 _cf = 0; 3802 _flag_k = FK_TEST; 3803 if (TEST_NZ(_flag_a, _flag_b)) goto L_4000325D; /* 0x400031F5: jne 0x4000325d */ 3804 L_400031F7: 3805 RECOMP_ICALL(MEM32(0x40016018)); /* 0x400031F7: call dword ptr [0x40016018] */ 3806 RECOMP_FLAGS_IN(); 3807 ebx = eax; /* 0x400031FD: mov ebx, eax */ 3808 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x400031FF: call dword ptr [0x400160d4] */ 3809 RECOMP_FLAGS_IN(); 3810 eax = MEM32(eax); /* 0x40003205: mov eax, dword ptr [eax] */ 3811 /* test eax, eax */ /* 0x40003207: test eax, eax */ 3812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3813 _cf = 0; 3814 _flag_k = FK_TEST; 3815 if (TEST_Z(_flag_a, _flag_b)) goto L_4000320D; /* 0x40003209: je 0x4000320d */ 3816 L_4000320B: 3817 ebx = eax; /* 0x4000320B: mov ebx, eax */ 3818 L_4000320D: 3819 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x4000320D: call dword ptr [0x400161d4] */ 3820 RECOMP_FLAGS_IN(); 3821 esi = eax; /* 0x40003213: mov esi, eax */ 3822 ecx = esi; /* 0x40003215: mov ecx, esi */ 3823 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x40003217: call dword ptr [0x400161d8] */ 3824 RECOMP_FLAGS_IN(); 3825 PUSH32(esp, eax); /* 0x4000321D: push eax */ 3826 ecx = esi; /* 0x4000321E: mov ecx, esi */ 3827 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x40003220: call dword ptr [0x400161dc] */ 3828 RECOMP_FLAGS_IN(); 3829 PUSH32(esp, eax); /* 0x40003226: push eax */ 3830 ecx = esi; /* 0x40003227: mov ecx, esi */ 3831 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x40003229: call dword ptr [0x400161e0] */ 3832 RECOMP_FLAGS_IN(); 3833 PUSH32(esp, eax); /* 0x4000322F: push eax */ 3834 PUSH32(esp, ebx); /* 0x40003230: push ebx */ 3835 PUSH32(esp, 0xFFFFFFFFu); /* 0x40003231: push -1 */ 3836 PUSH32(esp, 0x56u); /* 0x40003233: push 0x56 */ 3837 PUSH32(esp, 0x4001C288u); /* 0x40003235: push 0x4001c288 */ 3838 ecx = esi; /* 0x4000323A: mov ecx, esi */ 3839 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x4000323C: call dword ptr [0x400161e4] */ 3840 RECOMP_FLAGS_IN(); 3841 PUSH32(esp, 0xFFFFFFFFu); /* 0x40003242: push -1 */ 3842 PUSH32(esp, 0x4001C27Cu); /* 0x40003244: push 0x4001c27c */ 3843 PUSH32(esp, 0x4001C240u); /* 0x40003249: push 0x4001c240 */ 3844 PUSH32(esp, 0x80u); /* 0x4000324E: push 0x80 */ 3845 PUSH32(esp, esi); /* 0x40003253: push esi */ 3846 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x40003254: call dword ptr [0x400161e8] */ 3847 RECOMP_FLAGS_IN(); 3848 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3850 esp = esp + 0x14u; /* 0x4000325A: add esp, 0x14 */ 3851 _flag_k = FK_ADD; 3852 L_4000325D: 3853 esi = MEM32(edi + 0x14); /* 0x4000325D: mov esi, dword ptr [edi + 0x14] */ 3854 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 3855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3856 esi = esi + 0x44u; /* 0x40003260: add esi, 0x44 */ 3857 _flag_k = FK_ADD; 3858 PUSH32(esp, esi); /* 0x40003263: push esi */ 3859 MEM32(ebp + (-0x18)) = esi; /* 0x40003264: mov dword ptr [ebp - 0x18], esi */ 3860 RECOMP_ICALL(MEM32(0x40016014)); /* 0x40003267: call dword ptr [0x40016014] */ 3861 RECOMP_FLAGS_IN(); 3862 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3863 ebx = 0; /* 0x4000326D: xor ebx, ebx */ 3864 _cf = 0; 3865 _flag_k = FK_TEST; 3866 MEM32(ebp + (-0x14)) = ebx; /* 0x4000326F: mov dword ptr [ebp - 0x14], ebx */ 3867 eax = MEM32(edi + 0x14); /* 0x40003272: mov eax, dword ptr [edi + 0x14] */ 3868 ecx = MEM32(eax + 0x4); /* 0x40003275: mov ecx, dword ptr [eax + 4] */ 3869 /* cmp ecx, ebx */ /* 0x40003278: cmp ecx, ebx */ 3870 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 3871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3872 _flag_k = FK_CMP; 3873 edx = ecx + (-0x1); /* 0x4000327A: lea edx, [ecx - 1] */ 3874 MEM32(ebp + (-0x4)) = ebx; /* 0x4000327D: mov dword ptr [ebp - 4], ebx */ 3875 MEM32(eax + 0x4) = edx; /* 0x40003280: mov dword ptr [eax + 4], edx */ 3876 if (CMP_NE(_flag_a, _flag_b)) goto L_400032FA; /* 0x40003283: jne 0x400032fa */ 3877 L_40003285: 3878 PUSH32(esp, esi); /* 0x40003285: push esi */ 3879 MEM32(ebp + (-0x14)) = 0xFFFFFFFFu; /* 0x40003286: mov dword ptr [ebp - 0x14], 0xffffffff */ 3880 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4000328D: call dword ptr [0x40016010] */ 3881 RECOMP_FLAGS_IN(); 3882 esi = MEM32(edi + 0x14); /* 0x40003293: mov esi, dword ptr [edi + 0x14] */ 3883 /* cmp esi, ebx */ /* 0x40003296: cmp esi, ebx */ 3884 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3886 _flag_k = FK_CMP; 3887 MEM32(ebp + (-0x10)) = esi; /* 0x40003298: mov dword ptr [ebp - 0x10], esi */ 3888 if (CMP_EQ(_flag_a, _flag_b)) goto L_40003301; /* 0x4000329B: je 0x40003301 */ 3889 L_4000329D: 3890 eax = MEM32(esi); /* 0x4000329D: mov eax, dword ptr [esi] */ 3891 PUSH32(esp, eax); /* 0x4000329F: push eax */ 3892 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x400032A0: mov byte ptr [ebp - 4], 2 */ 3893 RECOMP_ICALL(0x400146F2u); /* 0x400032A4: call 0x400146f2 */ /* not lifted */ 3894 RECOMP_FLAGS_IN(); 3895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3897 esp = esp + 4; /* 0x400032A9: add esp, 4 */ 3898 _flag_k = FK_ADD; 3899 ecx = esi + 0x44; /* 0x400032AC: lea ecx, [esi + 0x44] */ 3900 RECOMP_ICALL(MEM32(0x400161EC)); /* 0x400032AF: call dword ptr [0x400161ec] */ 3901 RECOMP_FLAGS_IN(); 3902 ecx = esi + 0x14; /* 0x400032B5: lea ecx, [esi + 0x14] */ 3903 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x400032B8: mov byte ptr [ebp - 4], 1 */ 3904 RECOMP_ICALL(MEM32(0x400161F0)); /* 0x400032BC: call dword ptr [0x400161f0] */ 3905 RECOMP_FLAGS_IN(); 3906 edi = esi + 0x8; /* 0x400032C2: lea edi, [esi + 8] */ 3907 ecx = edi; /* 0x400032C5: mov ecx, edi */ 3908 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x400032C7: mov byte ptr [ebp - 4], bl */ 3909 RECOMP_ICALL(0x40010C80u); /* 0x400032CA: call 0x40010c80 */ /* not lifted */ 3910 RECOMP_FLAGS_IN(); 3911 eax = MEM32(edi); /* 0x400032CF: mov eax, dword ptr [edi] */ 3912 /* cmp eax, ebx */ /* 0x400032D1: cmp eax, ebx */ 3913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3915 _flag_k = FK_CMP; 3916 if (CMP_EQ(_flag_a, _flag_b)) goto L_400032DE; /* 0x400032D3: je 0x400032de */ 3917 L_400032D5: 3918 ecx = MEM32(edi + 0x8); /* 0x400032D5: mov ecx, dword ptr [edi + 8] */ 3919 edx = MEM32(ecx); /* 0x400032D8: mov edx, dword ptr [ecx] */ 3920 PUSH32(esp, eax); /* 0x400032DA: push eax */ 3921 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x400032DB: call dword ptr [edx + 0xc] */ 3922 RECOMP_FLAGS_IN(); 3923 L_400032DE: 3924 PUSH32(esp, esi); /* 0x400032DE: push esi */ 3925 MEM32(edi) = ebx; /* 0x400032DF: mov dword ptr [edi], ebx */ 3926 RECOMP_ICALL(0x400146F2u); /* 0x400032E1: call 0x400146f2 */ /* not lifted */ 3927 RECOMP_FLAGS_IN(); 3928 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3929 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3930 esp = esp + 4; /* 0x400032E6: add esp, 4 */ 3931 _flag_k = FK_ADD; 3932 edi = POP32_VAL(esp); /* 0x400032E9: pop edi */ 3933 esi = POP32_VAL(esp); /* 0x400032EA: pop esi */ 3934 ebx = POP32_VAL(esp); /* 0x400032EB: pop ebx */ 3935 ecx = MEM32(ebp + (-0xC)); /* 0x400032EC: mov ecx, dword ptr [ebp - 0xc] */ 3936 MEM32(FS_BASE + (0)) = ecx; /* 0x400032EF: mov dword ptr fs:[0], ecx */ 3937 esp = ebp; /* 0x400032F6: mov esp, ebp */ 3938 ebp = POP32_VAL(esp); /* 0x400032F8: pop ebp */ 3939 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400032F9: ret */ 3940 L_400032FA: 3941 PUSH32(esp, esi); /* 0x400032FA: push esi */ 3942 RECOMP_ICALL(MEM32(0x40016010)); /* 0x400032FB: call dword ptr [0x40016010] */ 3943 RECOMP_FLAGS_IN(); 3944 L_40003301: 3945 ecx = MEM32(ebp + (-0xC)); /* 0x40003301: mov ecx, dword ptr [ebp - 0xc] */ 3946 edi = POP32_VAL(esp); /* 0x40003304: pop edi */ 3947 esi = POP32_VAL(esp); /* 0x40003305: pop esi */ 3948 ebx = POP32_VAL(esp); /* 0x40003306: pop ebx */ 3949 MEM32(FS_BASE + (0)) = ecx; /* 0x40003307: mov dword ptr fs:[0], ecx */ 3950 esp = ebp; /* 0x4000330E: mov esp, ebp */ 3951 ebp = POP32_VAL(esp); /* 0x40003310: pop ebp */ 3952 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40003311: ret */ 3953 L_40014F78: 3954 ecx = ebp + (-0x48); /* 0x40014F78: lea ecx, [ebp - 0x48] */ 3955 RECOMP_BACKEDGE(); 3956 goto L_400031D0; /* 0x40014F7B: jmp 0x400031d0 */ 3957 { RECOMP_REGS_OUT(); return; } /* end of function */ 3958 RECOMP_REGS_OUT(); 3959 } 3960 3961 void sub_40014F80(void) { 3962 int _fpu_cmp = 0; 3963 uint32_t _cf = 0; 3964 int _df = 1; 3965 uint32_t _flag_k = FK_NONE; 3966 uint32_t _flag_a = 0, _flag_b = 0; 3967 uint32_t _itail_tgt = 0; 3968 RECOMP_REGS_LOCALS 3969 RECOMP_ENTER(0x40014F80u); 3970 3971 goto L_40014F80; 3972 L_4001470A: 3973 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 3974 L_40014F80: 3975 eax = 0x40017030u; /* 0x40014F80: mov eax, 0x40017030 */ 3976 L_40014F85: 3977 RECOMP_BACKEDGE(); 3978 goto L_4001470A; /* 0x40014F85: jmp 0x4001470a */ 3979 { RECOMP_REGS_OUT(); return; } /* end of function */ 3980 _ljump: 3981 switch (_itail_tgt) { 3982 case 0x4001470Au: goto L_4001470A; 3983 case 0x40014F80u: goto L_40014F80; 3984 case 0x40014F85u: goto L_40014F85; 3985 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3986 } 3987 RECOMP_REGS_OUT(); 3988 } 3989 3990 void sub_40014F90(void) { 3991 int _fpu_cmp = 0; 3992 uint32_t _cf = 0; 3993 int _df = 1; 3994 uint32_t _flag_k = FK_NONE; 3995 uint32_t _flag_a = 0, _flag_b = 0; 3996 uint32_t _itail_tgt = 0; 3997 RECOMP_REGS_LOCALS 3998 RECOMP_ENTER(0x40014F90u); 3999 4000 goto L_40014F90; 4001 L_400071C0: 4002 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 4003 PUSH32(esp, esi); /* 0x400071C1: push esi */ 4004 PUSH32(esp, edi); /* 0x400071C2: push edi */ 4005 edi = ecx; /* 0x400071C3: mov edi, ecx */ 4006 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 4007 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 4008 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 4009 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4011 _flag_k = FK_CMP; 4012 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 4013 L_400071CE: 4014 eax = esi; /* 0x400071CE: mov eax, esi */ 4015 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 4016 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 4017 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 4018 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 4019 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 4020 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 4021 PUSH32(esp, eax); /* 0x400071DE: push eax */ 4022 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 4023 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 4024 RECOMP_FLAGS_IN(); 4025 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 4026 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4028 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 4029 _flag_k = FK_ADD; 4030 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4031 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 4032 _flag_k = FK_DEC; 4033 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 4034 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4036 _flag_k = FK_CMP; 4037 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 4038 RECOMP_BACKEDGE(); 4039 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 4040 L_400071F5: 4041 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 4042 PUSH32(esp, eax); /* 0x400071F8: push eax */ 4043 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 4044 RECOMP_FLAGS_IN(); 4045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4047 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 4048 _flag_k = FK_ADD; 4049 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4050 eax = 0; /* 0x40007201: xor eax, eax */ 4051 _cf = 0; 4052 _flag_k = FK_TEST; 4053 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 4054 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 4055 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 4056 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 4057 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 4058 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 4059 L_40014F90: 4060 ecx = ebp + (-0x24); /* 0x40014F90: lea ecx, [ebp - 0x24] */ 4061 RECOMP_BACKEDGE(); 4062 goto L_400071C0; /* 0x40014F93: jmp 0x400071c0 */ 4063 { RECOMP_REGS_OUT(); return; } /* end of function */ 4064 RECOMP_REGS_OUT(); 4065 } 4066 4067 void sub_40014F98(void) { 4068 int _fpu_cmp = 0; 4069 uint32_t _cf = 0; 4070 int _df = 1; 4071 uint32_t _flag_k = FK_NONE; 4072 uint32_t _flag_a = 0, _flag_b = 0; 4073 uint32_t _itail_tgt = 0; 4074 RECOMP_REGS_LOCALS 4075 RECOMP_ENTER(0x40014F98u); 4076 4077 goto L_40014F98; 4078 L_40007350: 4079 PUSH32(esp, ebx); /* 0x40007350: push ebx */ 4080 PUSH32(esp, esi); /* 0x40007351: push esi */ 4081 PUSH32(esp, edi); /* 0x40007352: push edi */ 4082 edi = ecx; /* 0x40007353: mov edi, ecx */ 4083 ebx = MEM32(edi + 0xC); /* 0x40007355: mov ebx, dword ptr [edi + 0xc] */ 4084 esi = MEM32(ebx); /* 0x40007358: mov esi, dword ptr [ebx] */ 4085 /* cmp esi, ebx */ /* 0x4000735A: cmp esi, ebx */ 4086 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4088 _flag_k = FK_CMP; 4089 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007385; /* 0x4000735C: je 0x40007385 */ 4090 L_4000735E: 4091 eax = esi; /* 0x4000735E: mov eax, esi */ 4092 ecx = MEM32(eax + 0x4); /* 0x40007360: mov ecx, dword ptr [eax + 4] */ 4093 edx = MEM32(eax); /* 0x40007363: mov edx, dword ptr [eax] */ 4094 esi = MEM32(esi); /* 0x40007365: mov esi, dword ptr [esi] */ 4095 MEM32(ecx) = edx; /* 0x40007367: mov dword ptr [ecx], edx */ 4096 ecx = MEM32(eax); /* 0x40007369: mov ecx, dword ptr [eax] */ 4097 edx = MEM32(eax + 0x4); /* 0x4000736B: mov edx, dword ptr [eax + 4] */ 4098 PUSH32(esp, eax); /* 0x4000736E: push eax */ 4099 MEM32(ecx + 0x4) = edx; /* 0x4000736F: mov dword ptr [ecx + 4], edx */ 4100 RECOMP_ICALL(0x400146F2u); /* 0x40007372: call 0x400146f2 */ /* not lifted */ 4101 RECOMP_FLAGS_IN(); 4102 ecx = MEM32(edi + 0x10); /* 0x40007377: mov ecx, dword ptr [edi + 0x10] */ 4103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4105 esp = esp + 4; /* 0x4000737A: add esp, 4 */ 4106 _flag_k = FK_ADD; 4107 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4108 ecx = ecx - 1; /* 0x4000737D: dec ecx */ 4109 _flag_k = FK_DEC; 4110 /* cmp esi, ebx */ /* 0x4000737E: cmp esi, ebx */ 4111 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4113 _flag_k = FK_CMP; 4114 MEM32(edi + 0x10) = ecx; /* 0x40007380: mov dword ptr [edi + 0x10], ecx */ 4115 RECOMP_BACKEDGE(); 4116 if (CMP_NE(_flag_a, _flag_b)) goto L_4000735E; /* 0x40007383: jne 0x4000735e */ 4117 L_40007385: 4118 eax = MEM32(edi + 0xC); /* 0x40007385: mov eax, dword ptr [edi + 0xc] */ 4119 PUSH32(esp, eax); /* 0x40007388: push eax */ 4120 RECOMP_ICALL(0x400146F2u); /* 0x40007389: call 0x400146f2 */ /* not lifted */ 4121 RECOMP_FLAGS_IN(); 4122 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4124 esp = esp + 4; /* 0x4000738E: add esp, 4 */ 4125 _flag_k = FK_ADD; 4126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4127 eax = 0; /* 0x40007391: xor eax, eax */ 4128 _cf = 0; 4129 _flag_k = FK_TEST; 4130 MEM32(edi + 0xC) = eax; /* 0x40007393: mov dword ptr [edi + 0xc], eax */ 4131 MEM32(edi + 0x10) = eax; /* 0x40007396: mov dword ptr [edi + 0x10], eax */ 4132 edi = POP32_VAL(esp); /* 0x40007399: pop edi */ 4133 esi = POP32_VAL(esp); /* 0x4000739A: pop esi */ 4134 ebx = POP32_VAL(esp); /* 0x4000739B: pop ebx */ 4135 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000739C: ret */ 4136 L_40014F98: 4137 ecx = ebp + (-0x38); /* 0x40014F98: lea ecx, [ebp - 0x38] */ 4138 RECOMP_BACKEDGE(); 4139 goto L_40007350; /* 0x40014F9B: jmp 0x40007350 */ 4140 { RECOMP_REGS_OUT(); return; } /* end of function */ 4141 RECOMP_REGS_OUT(); 4142 } 4143 4144 void sub_40014FA0(void) { 4145 int _fpu_cmp = 0; 4146 uint32_t _cf = 0; 4147 int _df = 1; 4148 uint32_t _flag_k = FK_NONE; 4149 uint32_t _flag_a = 0, _flag_b = 0; 4150 uint32_t _itail_tgt = 0; 4151 RECOMP_REGS_LOCALS 4152 RECOMP_ENTER(0x40014FA0u); 4153 4154 goto L_40014FA0; 4155 L_4001470A: 4156 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 4157 L_40014FA0: 4158 eax = 0x40017060u; /* 0x40014FA0: mov eax, 0x40017060 */ 4159 L_40014FA5: 4160 RECOMP_BACKEDGE(); 4161 goto L_4001470A; /* 0x40014FA5: jmp 0x4001470a */ 4162 { RECOMP_REGS_OUT(); return; } /* end of function */ 4163 _ljump: 4164 switch (_itail_tgt) { 4165 case 0x4001470Au: goto L_4001470A; 4166 case 0x40014FA0u: goto L_40014FA0; 4167 case 0x40014FA5u: goto L_40014FA5; 4168 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4169 } 4170 RECOMP_REGS_OUT(); 4171 } 4172 4173 void sub_40014FB0(void) { 4174 int _fpu_cmp = 0; 4175 uint32_t _cf = 0; 4176 int _df = 1; 4177 uint32_t _flag_k = FK_NONE; 4178 uint32_t _flag_a = 0, _flag_b = 0; 4179 uint32_t _itail_tgt = 0; 4180 RECOMP_REGS_LOCALS 4181 RECOMP_ENTER(0x40014FB0u); 4182 4183 goto L_40014FB0; 4184 L_400071C0: 4185 PUSH32(esp, ebx); /* 0x400071C0: push ebx */ 4186 PUSH32(esp, esi); /* 0x400071C1: push esi */ 4187 PUSH32(esp, edi); /* 0x400071C2: push edi */ 4188 edi = ecx; /* 0x400071C3: mov edi, ecx */ 4189 ebx = MEM32(edi + 0x4); /* 0x400071C5: mov ebx, dword ptr [edi + 4] */ 4190 esi = MEM32(ebx); /* 0x400071C8: mov esi, dword ptr [ebx] */ 4191 /* cmp esi, ebx */ /* 0x400071CA: cmp esi, ebx */ 4192 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4194 _flag_k = FK_CMP; 4195 if (CMP_EQ(_flag_a, _flag_b)) goto L_400071F5; /* 0x400071CC: je 0x400071f5 */ 4196 L_400071CE: 4197 eax = esi; /* 0x400071CE: mov eax, esi */ 4198 ecx = MEM32(eax + 0x4); /* 0x400071D0: mov ecx, dword ptr [eax + 4] */ 4199 edx = MEM32(eax); /* 0x400071D3: mov edx, dword ptr [eax] */ 4200 esi = MEM32(esi); /* 0x400071D5: mov esi, dword ptr [esi] */ 4201 MEM32(ecx) = edx; /* 0x400071D7: mov dword ptr [ecx], edx */ 4202 ecx = MEM32(eax); /* 0x400071D9: mov ecx, dword ptr [eax] */ 4203 edx = MEM32(eax + 0x4); /* 0x400071DB: mov edx, dword ptr [eax + 4] */ 4204 PUSH32(esp, eax); /* 0x400071DE: push eax */ 4205 MEM32(ecx + 0x4) = edx; /* 0x400071DF: mov dword ptr [ecx + 4], edx */ 4206 RECOMP_ICALL(0x400146F2u); /* 0x400071E2: call 0x400146f2 */ /* not lifted */ 4207 RECOMP_FLAGS_IN(); 4208 ecx = MEM32(edi + 0x8); /* 0x400071E7: mov ecx, dword ptr [edi + 8] */ 4209 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4211 esp = esp + 4; /* 0x400071EA: add esp, 4 */ 4212 _flag_k = FK_ADD; 4213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4214 ecx = ecx - 1; /* 0x400071ED: dec ecx */ 4215 _flag_k = FK_DEC; 4216 /* cmp esi, ebx */ /* 0x400071EE: cmp esi, ebx */ 4217 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4219 _flag_k = FK_CMP; 4220 MEM32(edi + 0x8) = ecx; /* 0x400071F0: mov dword ptr [edi + 8], ecx */ 4221 RECOMP_BACKEDGE(); 4222 if (CMP_NE(_flag_a, _flag_b)) goto L_400071CE; /* 0x400071F3: jne 0x400071ce */ 4223 L_400071F5: 4224 eax = MEM32(edi + 0x4); /* 0x400071F5: mov eax, dword ptr [edi + 4] */ 4225 PUSH32(esp, eax); /* 0x400071F8: push eax */ 4226 RECOMP_ICALL(0x400146F2u); /* 0x400071F9: call 0x400146f2 */ /* not lifted */ 4227 RECOMP_FLAGS_IN(); 4228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4230 esp = esp + 4; /* 0x400071FE: add esp, 4 */ 4231 _flag_k = FK_ADD; 4232 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4233 eax = 0; /* 0x40007201: xor eax, eax */ 4234 _cf = 0; 4235 _flag_k = FK_TEST; 4236 MEM32(edi + 0x4) = eax; /* 0x40007203: mov dword ptr [edi + 4], eax */ 4237 MEM32(edi + 0x8) = eax; /* 0x40007206: mov dword ptr [edi + 8], eax */ 4238 edi = POP32_VAL(esp); /* 0x40007209: pop edi */ 4239 esi = POP32_VAL(esp); /* 0x4000720A: pop esi */ 4240 ebx = POP32_VAL(esp); /* 0x4000720B: pop ebx */ 4241 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000720C: ret */ 4242 L_40014FB0: 4243 ecx = ebp + (-0x24); /* 0x40014FB0: lea ecx, [ebp - 0x24] */ 4244 RECOMP_BACKEDGE(); 4245 goto L_400071C0; /* 0x40014FB3: jmp 0x400071c0 */ 4246 { RECOMP_REGS_OUT(); return; } /* end of function */ 4247 RECOMP_REGS_OUT(); 4248 } 4249 4250 void sub_40014FB8(void) { 4251 int _fpu_cmp = 0; 4252 uint32_t _cf = 0; 4253 int _df = 1; 4254 uint32_t _flag_k = FK_NONE; 4255 uint32_t _flag_a = 0, _flag_b = 0; 4256 uint32_t _itail_tgt = 0; 4257 RECOMP_REGS_LOCALS 4258 RECOMP_ENTER(0x40014FB8u); 4259 4260 goto L_40014FB8; 4261 L_400073A0: 4262 PUSH32(esp, ebx); /* 0x400073A0: push ebx */ 4263 PUSH32(esp, esi); /* 0x400073A1: push esi */ 4264 PUSH32(esp, edi); /* 0x400073A2: push edi */ 4265 edi = ecx; /* 0x400073A3: mov edi, ecx */ 4266 ebx = MEM32(edi + 0x8); /* 0x400073A5: mov ebx, dword ptr [edi + 8] */ 4267 esi = MEM32(ebx); /* 0x400073A8: mov esi, dword ptr [ebx] */ 4268 /* cmp esi, ebx */ /* 0x400073AA: cmp esi, ebx */ 4269 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4271 _flag_k = FK_CMP; 4272 if (CMP_EQ(_flag_a, _flag_b)) goto L_400073D5; /* 0x400073AC: je 0x400073d5 */ 4273 L_400073AE: 4274 eax = esi; /* 0x400073AE: mov eax, esi */ 4275 ecx = MEM32(eax + 0x4); /* 0x400073B0: mov ecx, dword ptr [eax + 4] */ 4276 edx = MEM32(eax); /* 0x400073B3: mov edx, dword ptr [eax] */ 4277 esi = MEM32(esi); /* 0x400073B5: mov esi, dword ptr [esi] */ 4278 MEM32(ecx) = edx; /* 0x400073B7: mov dword ptr [ecx], edx */ 4279 ecx = MEM32(eax); /* 0x400073B9: mov ecx, dword ptr [eax] */ 4280 edx = MEM32(eax + 0x4); /* 0x400073BB: mov edx, dword ptr [eax + 4] */ 4281 PUSH32(esp, eax); /* 0x400073BE: push eax */ 4282 MEM32(ecx + 0x4) = edx; /* 0x400073BF: mov dword ptr [ecx + 4], edx */ 4283 RECOMP_ICALL(0x400146F2u); /* 0x400073C2: call 0x400146f2 */ /* not lifted */ 4284 RECOMP_FLAGS_IN(); 4285 ecx = MEM32(edi + 0xC); /* 0x400073C7: mov ecx, dword ptr [edi + 0xc] */ 4286 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4287 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4288 esp = esp + 4; /* 0x400073CA: add esp, 4 */ 4289 _flag_k = FK_ADD; 4290 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4291 ecx = ecx - 1; /* 0x400073CD: dec ecx */ 4292 _flag_k = FK_DEC; 4293 /* cmp esi, ebx */ /* 0x400073CE: cmp esi, ebx */ 4294 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4296 _flag_k = FK_CMP; 4297 MEM32(edi + 0xC) = ecx; /* 0x400073D0: mov dword ptr [edi + 0xc], ecx */ 4298 RECOMP_BACKEDGE(); 4299 if (CMP_NE(_flag_a, _flag_b)) goto L_400073AE; /* 0x400073D3: jne 0x400073ae */ 4300 L_400073D5: 4301 eax = MEM32(edi + 0x8); /* 0x400073D5: mov eax, dword ptr [edi + 8] */ 4302 PUSH32(esp, eax); /* 0x400073D8: push eax */ 4303 RECOMP_ICALL(0x400146F2u); /* 0x400073D9: call 0x400146f2 */ /* not lifted */ 4304 RECOMP_FLAGS_IN(); 4305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4307 esp = esp + 4; /* 0x400073DE: add esp, 4 */ 4308 _flag_k = FK_ADD; 4309 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4310 eax = 0; /* 0x400073E1: xor eax, eax */ 4311 _cf = 0; 4312 _flag_k = FK_TEST; 4313 MEM32(edi + 0x8) = eax; /* 0x400073E3: mov dword ptr [edi + 8], eax */ 4314 MEM32(edi + 0xC) = eax; /* 0x400073E6: mov dword ptr [edi + 0xc], eax */ 4315 edi = POP32_VAL(esp); /* 0x400073E9: pop edi */ 4316 esi = POP32_VAL(esp); /* 0x400073EA: pop esi */ 4317 ebx = POP32_VAL(esp); /* 0x400073EB: pop ebx */ 4318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400073EC: ret */ 4319 L_40014FB8: 4320 ecx = ebp + (-0x34); /* 0x40014FB8: lea ecx, [ebp - 0x34] */ 4321 RECOMP_BACKEDGE(); 4322 goto L_400073A0; /* 0x40014FBB: jmp 0x400073a0 */ 4323 { RECOMP_REGS_OUT(); return; } /* end of function */ 4324 RECOMP_REGS_OUT(); 4325 } 4326 4327 void sub_40014FC0(void) { 4328 int _fpu_cmp = 0; 4329 uint32_t _cf = 0; 4330 int _df = 1; 4331 uint32_t _flag_k = FK_NONE; 4332 uint32_t _flag_a = 0, _flag_b = 0; 4333 uint32_t _itail_tgt = 0; 4334 RECOMP_REGS_LOCALS 4335 RECOMP_ENTER(0x40014FC0u); 4336 4337 goto L_40014FC0; 4338 L_4001470A: 4339 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 4340 L_40014FC0: 4341 eax = 0x40017090u; /* 0x40014FC0: mov eax, 0x40017090 */ 4342 L_40014FC5: 4343 RECOMP_BACKEDGE(); 4344 goto L_4001470A; /* 0x40014FC5: jmp 0x4001470a */ 4345 { RECOMP_REGS_OUT(); return; } /* end of function */ 4346 _ljump: 4347 switch (_itail_tgt) { 4348 case 0x4001470Au: goto L_4001470A; 4349 case 0x40014FC0u: goto L_40014FC0; 4350 case 0x40014FC5u: goto L_40014FC5; 4351 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4352 } 4353 RECOMP_REGS_OUT(); 4354 } 4355 4356 void sub_40014FD0(void) { 4357 int _fpu_cmp = 0; 4358 uint32_t _cf = 0; 4359 int _df = 1; 4360 uint32_t _flag_k = FK_NONE; 4361 uint32_t _flag_a = 0, _flag_b = 0; 4362 uint32_t _itail_tgt = 0; 4363 RECOMP_REGS_LOCALS 4364 RECOMP_ENTER(0x40014FD0u); 4365 4366 L_40014FD0: 4367 ecx = MEM32(ebp + (-0x10)); /* 0x40014FD0: mov ecx, dword ptr [ebp - 0x10] */ 4368 L_40014FD3: 4369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4371 ecx = ecx + 8; /* 0x40014FD3: add ecx, 8 */ 4372 _flag_k = FK_ADD; 4373 L_40014FD6: 4374 { _itail_tgt = (uint32_t)(MEM32(0x40016074)); goto _ljump; } 4375 { RECOMP_REGS_OUT(); return; } /* end of function */ 4376 _ljump: 4377 switch (_itail_tgt) { 4378 case 0x40014FD0u: goto L_40014FD0; 4379 case 0x40014FD3u: goto L_40014FD3; 4380 case 0x40014FD6u: goto L_40014FD6; 4381 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4382 } 4383 RECOMP_REGS_OUT(); 4384 } 4385 4386 void sub_40014FDC(void) { 4387 int _fpu_cmp = 0; 4388 uint32_t _cf = 0; 4389 int _df = 1; 4390 uint32_t _flag_k = FK_NONE; 4391 uint32_t _flag_a = 0, _flag_b = 0; 4392 uint32_t _itail_tgt = 0; 4393 RECOMP_REGS_LOCALS 4394 RECOMP_ENTER(0x40014FDCu); 4395 4396 goto L_40014FDC; 4397 L_4001470A: 4398 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 4399 L_40014FDC: 4400 eax = 0x400170C0u; /* 0x40014FDC: mov eax, 0x400170c0 */ 4401 L_40014FE1: 4402 RECOMP_BACKEDGE(); 4403 goto L_4001470A; /* 0x40014FE1: jmp 0x4001470a */ 4404 { RECOMP_REGS_OUT(); return; } /* end of function */ 4405 _ljump: 4406 switch (_itail_tgt) { 4407 case 0x4001470Au: goto L_4001470A; 4408 case 0x40014FDCu: goto L_40014FDC; 4409 case 0x40014FE1u: goto L_40014FE1; 4410 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4411 } 4412 RECOMP_REGS_OUT(); 4413 } 4414 4415 void sub_40014FF0(void) { 4416 int _fpu_cmp = 0; 4417 uint32_t _cf = 0; 4418 int _df = 1; 4419 uint32_t _flag_k = FK_NONE; 4420 uint32_t _flag_a = 0, _flag_b = 0; 4421 uint32_t _itail_tgt = 0; 4422 RECOMP_REGS_LOCALS 4423 RECOMP_ENTER(0x40014FF0u); 4424 4425 goto L_40014FF0; 4426 L_40001500: 4427 MEM32(ecx) = 0x40016274u; /* 0x40001500: mov dword ptr [ecx], 0x40016274 */ 4428 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40001506: ret */ 4429 L_40014FF0: 4430 ecx = MEM32(ebp + (-0x10)); /* 0x40014FF0: mov ecx, dword ptr [ebp - 0x10] */ 4431 RECOMP_BACKEDGE(); 4432 goto L_40001500; /* 0x40014FF3: jmp 0x40001500 */ 4433 { RECOMP_REGS_OUT(); return; } /* end of function */ 4434 RECOMP_REGS_OUT(); 4435 } 4436 4437 void sub_40014FF8(void) { 4438 int _fpu_cmp = 0; 4439 uint32_t _cf = 0; 4440 int _df = 1; 4441 uint32_t _flag_k = FK_NONE; 4442 uint32_t _flag_a = 0, _flag_b = 0; 4443 uint32_t _itail_tgt = 0; 4444 RECOMP_REGS_LOCALS 4445 RECOMP_ENTER(0x40014FF8u); 4446 4447 goto L_40014FF8; 4448 L_4000CA30: 4449 PUSH32(esp, ebp); /* 0x4000CA30: push ebp */ 4450 ebp = esp; /* 0x4000CA31: mov ebp, esp */ 4451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4453 esp = esp - 8; /* 0x4000CA33: sub esp, 8 */ 4454 _flag_k = FK_CMP; 4455 PUSH32(esp, ebx); /* 0x4000CA36: push ebx */ 4456 PUSH32(esp, esi); /* 0x4000CA37: push esi */ 4457 esi = ecx; /* 0x4000CA38: mov esi, ecx */ 4458 ecx = MEM32(esi + 0x10); /* 0x4000CA3A: mov ecx, dword ptr [esi + 0x10] */ 4459 /* test ecx, ecx */ /* 0x4000CA3D: test ecx, ecx */ 4460 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4461 _cf = 0; 4462 _flag_k = FK_TEST; 4463 PUSH32(esp, edi); /* 0x4000CA3F: push edi */ 4464 edi = MEM32(esi + 0x4); /* 0x4000CA40: mov edi, dword ptr [esi + 4] */ 4465 eax = MEM32(edi); /* 0x4000CA43: mov eax, dword ptr [edi] */ 4466 MEM32(ebp + (-0x4)) = eax; /* 0x4000CA45: mov dword ptr [ebp - 4], eax */ 4467 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA48: je 0x4000caaf */ 4468 L_4000CA4A: 4469 ecx = eax; /* 0x4000CA4A: mov ecx, eax */ 4470 /* cmp eax, ecx */ /* 0x4000CA4C: cmp eax, ecx */ 4471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4473 _flag_k = FK_CMP; 4474 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA4E: jne 0x4000caaf */ 4475 L_4000CA50: 4476 /* cmp edi, edi */ /* 0x4000CA50: cmp edi, edi */ 4477 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4479 _flag_k = FK_CMP; 4480 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA52: jne 0x4000caaf */ 4481 L_4000CA54: 4482 ebx = MEM32(edi + 0x4); /* 0x4000CA54: mov ebx, dword ptr [edi + 4] */ 4483 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CA57: cmp ebx, dword ptr [esi + 8] */ 4484 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4486 _flag_k = FK_CMP; 4487 edi = ebx; /* 0x4000CA5A: mov edi, ebx */ 4488 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CA87; /* 0x4000CA5C: je 0x4000ca87 */ 4489 L_4000CA5E: 4490 eax = MEM32(edi + 0x8); /* 0x4000CA5E: mov eax, dword ptr [edi + 8] */ 4491 PUSH32(esp, eax); /* 0x4000CA61: push eax */ 4492 ecx = esi; /* 0x4000CA62: mov ecx, esi */ 4493 RECOMP_ICALL(0x40009030u); /* 0x4000CA64: call 0x40009030 */ /* not lifted */ 4494 RECOMP_FLAGS_IN(); 4495 edi = MEM32(edi); /* 0x4000CA69: mov edi, dword ptr [edi] */ 4496 PUSH32(esp, 0); /* 0x4000CA6B: push 0 */ 4497 ecx = ebx + 0xC; /* 0x4000CA6D: lea ecx, [ebx + 0xc] */ 4498 RECOMP_ICALL(0x4000FE70u); /* 0x4000CA70: call 0x4000fe70 */ /* not lifted */ 4499 RECOMP_FLAGS_IN(); 4500 PUSH32(esp, ebx); /* 0x4000CA75: push ebx */ 4501 RECOMP_ICALL(0x400146F2u); /* 0x4000CA76: call 0x400146f2 */ /* not lifted */ 4502 RECOMP_FLAGS_IN(); 4503 eax = MEM32(esi + 0x8); /* 0x4000CA7B: mov eax, dword ptr [esi + 8] */ 4504 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4505 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4506 esp = esp + 4; /* 0x4000CA7E: add esp, 4 */ 4507 _flag_k = FK_ADD; 4508 /* cmp edi, eax */ /* 0x4000CA81: cmp edi, eax */ 4509 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4511 _flag_k = FK_CMP; 4512 ebx = edi; /* 0x4000CA83: mov ebx, edi */ 4513 RECOMP_BACKEDGE(); 4514 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CA5E; /* 0x4000CA85: jne 0x4000ca5e */ 4515 L_4000CA87: 4516 ecx = MEM32(esi + 0x4); /* 0x4000CA87: mov ecx, dword ptr [esi + 4] */ 4517 edx = MEM32(esi + 0x8); /* 0x4000CA8A: mov edx, dword ptr [esi + 8] */ 4518 MEM32(ecx + 0x4) = edx; /* 0x4000CA8D: mov dword ptr [ecx + 4], edx */ 4519 eax = MEM32(esi + 0x4); /* 0x4000CA90: mov eax, dword ptr [esi + 4] */ 4520 MEM32(esi + 0x10) = 0; /* 0x4000CA93: mov dword ptr [esi + 0x10], 0 */ 4521 MEM32(eax) = eax; /* 0x4000CA9A: mov dword ptr [eax], eax */ 4522 eax = MEM32(esi + 0x4); /* 0x4000CA9C: mov eax, dword ptr [esi + 4] */ 4523 MEM32(eax + 0x8) = eax; /* 0x4000CA9F: mov dword ptr [eax + 8], eax */ 4524 eax = ebp + (-0x8); /* 0x4000CAA2: lea eax, [ebp - 8] */ 4525 PUSH32(esp, eax); /* 0x4000CAA5: push eax */ 4526 ecx = esi; /* 0x4000CAA6: mov ecx, esi */ 4527 RECOMP_ICALL(0x40001BA0u); /* 0x4000CAA8: call 0x40001ba0 */ /* not lifted */ 4528 RECOMP_FLAGS_IN(); 4529 goto L_4000CAD0; /* 0x4000CAAD: jmp 0x4000cad0 */ 4530 L_4000CAAF: 4531 /* cmp eax, edi */ /* 0x4000CAAF: cmp eax, edi */ 4532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4534 _flag_k = FK_CMP; 4535 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CAD0; /* 0x4000CAB1: je 0x4000cad0 */ 4536 L_4000CAB3: 4537 ecx = ebp + (-0x4); /* 0x4000CAB3: lea ecx, [ebp - 4] */ 4538 ebx = eax; /* 0x4000CAB6: mov ebx, eax */ 4539 RECOMP_ICALL(0x40007BB0u); /* 0x4000CAB8: call 0x40007bb0 */ /* not lifted */ 4540 RECOMP_FLAGS_IN(); 4541 PUSH32(esp, ebx); /* 0x4000CABD: push ebx */ 4542 ecx = ebp + (-0x8); /* 0x4000CABE: lea ecx, [ebp - 8] */ 4543 PUSH32(esp, ecx); /* 0x4000CAC1: push ecx */ 4544 ecx = esi; /* 0x4000CAC2: mov ecx, esi */ 4545 RECOMP_ICALL(0x40007690u); /* 0x4000CAC4: call 0x40007690 */ /* not lifted */ 4546 RECOMP_FLAGS_IN(); 4547 eax = MEM32(ebp + (-0x4)); /* 0x4000CAC9: mov eax, dword ptr [ebp - 4] */ 4548 /* cmp eax, edi */ /* 0x4000CACC: cmp eax, edi */ 4549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4550 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4551 _flag_k = FK_CMP; 4552 RECOMP_BACKEDGE(); 4553 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAB3; /* 0x4000CACE: jne 0x4000cab3 */ 4554 L_4000CAD0: 4555 edx = MEM32(esi + 0x4); /* 0x4000CAD0: mov edx, dword ptr [esi + 4] */ 4556 PUSH32(esp, edx); /* 0x4000CAD3: push edx */ 4557 RECOMP_ICALL(0x400146F2u); /* 0x4000CAD4: call 0x400146f2 */ /* not lifted */ 4558 RECOMP_FLAGS_IN(); 4559 eax = MEM32(esi + 0x8); /* 0x4000CAD9: mov eax, dword ptr [esi + 8] */ 4560 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4561 edi = 0; /* 0x4000CADC: xor edi, edi */ 4562 _cf = 0; 4563 _flag_k = FK_TEST; 4564 PUSH32(esp, eax); /* 0x4000CADE: push eax */ 4565 MEM32(esi + 0x4) = edi; /* 0x4000CADF: mov dword ptr [esi + 4], edi */ 4566 MEM32(esi + 0x10) = edi; /* 0x4000CAE2: mov dword ptr [esi + 0x10], edi */ 4567 RECOMP_ICALL(0x400146F2u); /* 0x4000CAE5: call 0x400146f2 */ /* not lifted */ 4568 RECOMP_FLAGS_IN(); 4569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4571 esp = esp + 8; /* 0x4000CAEA: add esp, 8 */ 4572 _flag_k = FK_ADD; 4573 MEM32(esi + 0x8) = edi; /* 0x4000CAED: mov dword ptr [esi + 8], edi */ 4574 edi = POP32_VAL(esp); /* 0x4000CAF0: pop edi */ 4575 esi = POP32_VAL(esp); /* 0x4000CAF1: pop esi */ 4576 ebx = POP32_VAL(esp); /* 0x4000CAF2: pop ebx */ 4577 esp = ebp; /* 0x4000CAF3: mov esp, ebp */ 4578 ebp = POP32_VAL(esp); /* 0x4000CAF5: pop ebp */ 4579 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CAF6: ret */ 4580 L_40014FF8: 4581 ecx = MEM32(ebp + (-0x10)); /* 0x40014FF8: mov ecx, dword ptr [ebp - 0x10] */ 4582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 4583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4584 ecx = ecx + 0x14u; /* 0x40014FFB: add ecx, 0x14 */ 4585 _flag_k = FK_ADD; 4586 RECOMP_BACKEDGE(); 4587 goto L_4000CA30; /* 0x40014FFE: jmp 0x4000ca30 */ 4588 { RECOMP_REGS_OUT(); return; } /* end of function */ 4589 RECOMP_REGS_OUT(); 4590 } 4591 4592 void sub_40015003(void) { 4593 int _fpu_cmp = 0; 4594 uint32_t _cf = 0; 4595 int _df = 1; 4596 uint32_t _flag_k = FK_NONE; 4597 uint32_t _flag_a = 0, _flag_b = 0; 4598 uint32_t _itail_tgt = 0; 4599 RECOMP_REGS_LOCALS 4600 RECOMP_ENTER(0x40015003u); 4601 4602 goto L_40015003; 4603 L_40006A70: 4604 PUSH32(esp, ebp); /* 0x40006A70: push ebp */ 4605 ebp = esp; /* 0x40006A71: mov ebp, esp */ 4606 PUSH32(esp, ecx); /* 0x40006A73: push ecx */ 4607 PUSH32(esp, ebx); /* 0x40006A74: push ebx */ 4608 ebx = ecx; /* 0x40006A75: mov ebx, ecx */ 4609 eax = MEM32(ebx + 0x4); /* 0x40006A77: mov eax, dword ptr [ebx + 4] */ 4610 PUSH32(esp, edi); /* 0x40006A7A: push edi */ 4611 edi = MEM32(eax); /* 0x40006A7B: mov edi, dword ptr [eax] */ 4612 /* cmp edi, eax */ /* 0x40006A7D: cmp edi, eax */ 4613 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4615 _flag_k = FK_CMP; 4616 MEM32(ebp + (-0x4)) = eax; /* 0x40006A7F: mov dword ptr [ebp - 4], eax */ 4617 if (CMP_EQ(_flag_a, _flag_b)) goto L_40006AB8; /* 0x40006A82: je 0x40006ab8 */ 4618 L_40006A84: 4619 PUSH32(esp, esi); /* 0x40006A84: push esi */ 4620 L_40006A85: 4621 esi = edi; /* 0x40006A85: mov esi, edi */ 4622 eax = MEM32(esi + 0x4); /* 0x40006A87: mov eax, dword ptr [esi + 4] */ 4623 ecx = MEM32(esi); /* 0x40006A8A: mov ecx, dword ptr [esi] */ 4624 edi = MEM32(edi); /* 0x40006A8C: mov edi, dword ptr [edi] */ 4625 MEM32(eax) = ecx; /* 0x40006A8E: mov dword ptr [eax], ecx */ 4626 edx = MEM32(esi); /* 0x40006A90: mov edx, dword ptr [esi] */ 4627 eax = MEM32(esi + 0x4); /* 0x40006A92: mov eax, dword ptr [esi + 4] */ 4628 ecx = esi + 0x8; /* 0x40006A95: lea ecx, [esi + 8] */ 4629 MEM32(edx + 0x4) = eax; /* 0x40006A98: mov dword ptr [edx + 4], eax */ 4630 RECOMP_ICALL(0x40005490u); /* 0x40006A9B: call 0x40005490 */ /* not lifted */ 4631 RECOMP_FLAGS_IN(); 4632 PUSH32(esp, esi); /* 0x40006AA0: push esi */ 4633 RECOMP_ICALL(0x400146F2u); /* 0x40006AA1: call 0x400146f2 */ /* not lifted */ 4634 RECOMP_FLAGS_IN(); 4635 ecx = MEM32(ebx + 0x8); /* 0x40006AA6: mov ecx, dword ptr [ebx + 8] */ 4636 eax = MEM32(ebp + (-0x4)); /* 0x40006AA9: mov eax, dword ptr [ebp - 4] */ 4637 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4638 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4639 esp = esp + 4; /* 0x40006AAC: add esp, 4 */ 4640 _flag_k = FK_ADD; 4641 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4642 ecx = ecx - 1; /* 0x40006AAF: dec ecx */ 4643 _flag_k = FK_DEC; 4644 /* cmp edi, eax */ /* 0x40006AB0: cmp edi, eax */ 4645 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4647 _flag_k = FK_CMP; 4648 MEM32(ebx + 0x8) = ecx; /* 0x40006AB2: mov dword ptr [ebx + 8], ecx */ 4649 RECOMP_BACKEDGE(); 4650 if (CMP_NE(_flag_a, _flag_b)) goto L_40006A85; /* 0x40006AB5: jne 0x40006a85 */ 4651 L_40006AB7: 4652 esi = POP32_VAL(esp); /* 0x40006AB7: pop esi */ 4653 L_40006AB8: 4654 ecx = MEM32(ebx + 0x4); /* 0x40006AB8: mov ecx, dword ptr [ebx + 4] */ 4655 PUSH32(esp, ecx); /* 0x40006ABB: push ecx */ 4656 RECOMP_ICALL(0x400146F2u); /* 0x40006ABC: call 0x400146f2 */ /* not lifted */ 4657 RECOMP_FLAGS_IN(); 4658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4660 esp = esp + 4; /* 0x40006AC1: add esp, 4 */ 4661 _flag_k = FK_ADD; 4662 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4663 eax = 0; /* 0x40006AC4: xor eax, eax */ 4664 _cf = 0; 4665 _flag_k = FK_TEST; 4666 edi = POP32_VAL(esp); /* 0x40006AC6: pop edi */ 4667 MEM32(ebx + 0x4) = eax; /* 0x40006AC7: mov dword ptr [ebx + 4], eax */ 4668 MEM32(ebx + 0x8) = eax; /* 0x40006ACA: mov dword ptr [ebx + 8], eax */ 4669 ebx = POP32_VAL(esp); /* 0x40006ACD: pop ebx */ 4670 esp = ebp; /* 0x40006ACE: mov esp, ebp */ 4671 ebp = POP32_VAL(esp); /* 0x40006AD0: pop ebp */ 4672 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40006AD1: ret */ 4673 L_40015003: 4674 ecx = MEM32(ebp + (-0x10)); /* 0x40015003: mov ecx, dword ptr [ebp - 0x10] */ 4675 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 4676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4677 ecx = ecx + 0x28u; /* 0x40015006: add ecx, 0x28 */ 4678 _flag_k = FK_ADD; 4679 RECOMP_BACKEDGE(); 4680 goto L_40006A70; /* 0x40015009: jmp 0x40006a70 */ 4681 { RECOMP_REGS_OUT(); return; } /* end of function */ 4682 RECOMP_REGS_OUT(); 4683 } 4684 4685 void sub_4001500E(void) { 4686 int _fpu_cmp = 0; 4687 uint32_t _cf = 0; 4688 int _df = 1; 4689 uint32_t _flag_k = FK_NONE; 4690 uint32_t _flag_a = 0, _flag_b = 0; 4691 uint32_t _itail_tgt = 0; 4692 RECOMP_REGS_LOCALS 4693 RECOMP_ENTER(0x4001500Eu); 4694 4695 goto L_4001500E; 4696 L_4000CD50: 4697 PUSH32(esp, ebp); /* 0x4000CD50: push ebp */ 4698 ebp = esp; /* 0x4000CD51: mov ebp, esp */ 4699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4701 esp = esp - 8; /* 0x4000CD53: sub esp, 8 */ 4702 _flag_k = FK_CMP; 4703 PUSH32(esp, ebx); /* 0x4000CD56: push ebx */ 4704 PUSH32(esp, esi); /* 0x4000CD57: push esi */ 4705 esi = ecx; /* 0x4000CD58: mov esi, ecx */ 4706 ecx = MEM32(esi + 0x10); /* 0x4000CD5A: mov ecx, dword ptr [esi + 0x10] */ 4707 /* test ecx, ecx */ /* 0x4000CD5D: test ecx, ecx */ 4708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4709 _cf = 0; 4710 _flag_k = FK_TEST; 4711 PUSH32(esp, edi); /* 0x4000CD5F: push edi */ 4712 edi = MEM32(esi + 0x4); /* 0x4000CD60: mov edi, dword ptr [esi + 4] */ 4713 eax = MEM32(edi); /* 0x4000CD63: mov eax, dword ptr [edi] */ 4714 MEM32(ebp + (-0x4)) = eax; /* 0x4000CD65: mov dword ptr [ebp - 4], eax */ 4715 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD68: je 0x4000cdc5 */ 4716 L_4000CD6A: 4717 ecx = eax; /* 0x4000CD6A: mov ecx, eax */ 4718 /* cmp eax, ecx */ /* 0x4000CD6C: cmp eax, ecx */ 4719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4721 _flag_k = FK_CMP; 4722 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD6E: jne 0x4000cdc5 */ 4723 L_4000CD70: 4724 /* cmp edi, edi */ /* 0x4000CD70: cmp edi, edi */ 4725 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4727 _flag_k = FK_CMP; 4728 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD72: jne 0x4000cdc5 */ 4729 L_4000CD74: 4730 ebx = MEM32(edi + 0x4); /* 0x4000CD74: mov ebx, dword ptr [edi + 4] */ 4731 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CD77: cmp ebx, dword ptr [esi + 8] */ 4732 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4734 _flag_k = FK_CMP; 4735 edi = ebx; /* 0x4000CD7A: mov edi, ebx */ 4736 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CD9D; /* 0x4000CD7C: je 0x4000cd9d */ 4737 L_4000CD7E: 4738 eax = MEM32(edi + 0x8); /* 0x4000CD7E: mov eax, dword ptr [edi + 8] */ 4739 PUSH32(esp, eax); /* 0x4000CD81: push eax */ 4740 ecx = esi; /* 0x4000CD82: mov ecx, esi */ 4741 RECOMP_ICALL(0x40009400u); /* 0x4000CD84: call 0x40009400 */ /* not lifted */ 4742 RECOMP_FLAGS_IN(); 4743 edi = MEM32(edi); /* 0x4000CD89: mov edi, dword ptr [edi] */ 4744 PUSH32(esp, ebx); /* 0x4000CD8B: push ebx */ 4745 RECOMP_ICALL(0x400146F2u); /* 0x4000CD8C: call 0x400146f2 */ /* not lifted */ 4746 RECOMP_FLAGS_IN(); 4747 eax = MEM32(esi + 0x8); /* 0x4000CD91: mov eax, dword ptr [esi + 8] */ 4748 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4750 esp = esp + 4; /* 0x4000CD94: add esp, 4 */ 4751 _flag_k = FK_ADD; 4752 /* cmp edi, eax */ /* 0x4000CD97: cmp edi, eax */ 4753 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4755 _flag_k = FK_CMP; 4756 ebx = edi; /* 0x4000CD99: mov ebx, edi */ 4757 RECOMP_BACKEDGE(); 4758 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CD7E; /* 0x4000CD9B: jne 0x4000cd7e */ 4759 L_4000CD9D: 4760 ecx = MEM32(esi + 0x4); /* 0x4000CD9D: mov ecx, dword ptr [esi + 4] */ 4761 edx = MEM32(esi + 0x8); /* 0x4000CDA0: mov edx, dword ptr [esi + 8] */ 4762 MEM32(ecx + 0x4) = edx; /* 0x4000CDA3: mov dword ptr [ecx + 4], edx */ 4763 eax = MEM32(esi + 0x4); /* 0x4000CDA6: mov eax, dword ptr [esi + 4] */ 4764 MEM32(esi + 0x10) = 0; /* 0x4000CDA9: mov dword ptr [esi + 0x10], 0 */ 4765 MEM32(eax) = eax; /* 0x4000CDB0: mov dword ptr [eax], eax */ 4766 eax = MEM32(esi + 0x4); /* 0x4000CDB2: mov eax, dword ptr [esi + 4] */ 4767 MEM32(eax + 0x8) = eax; /* 0x4000CDB5: mov dword ptr [eax + 8], eax */ 4768 eax = ebp + (-0x8); /* 0x4000CDB8: lea eax, [ebp - 8] */ 4769 PUSH32(esp, eax); /* 0x4000CDBB: push eax */ 4770 ecx = esi; /* 0x4000CDBC: mov ecx, esi */ 4771 RECOMP_ICALL(0x40001BA0u); /* 0x4000CDBE: call 0x40001ba0 */ /* not lifted */ 4772 RECOMP_FLAGS_IN(); 4773 goto L_4000CDE6; /* 0x4000CDC3: jmp 0x4000cde6 */ 4774 L_4000CDC5: 4775 /* cmp eax, edi */ /* 0x4000CDC5: cmp eax, edi */ 4776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4778 _flag_k = FK_CMP; 4779 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CDE6; /* 0x4000CDC7: je 0x4000cde6 */ 4780 L_4000CDC9: 4781 ecx = ebp + (-0x4); /* 0x4000CDC9: lea ecx, [ebp - 4] */ 4782 ebx = eax; /* 0x4000CDCC: mov ebx, eax */ 4783 RECOMP_ICALL(0x400082F0u); /* 0x4000CDCE: call 0x400082f0 */ /* not lifted */ 4784 RECOMP_FLAGS_IN(); 4785 PUSH32(esp, ebx); /* 0x4000CDD3: push ebx */ 4786 ecx = ebp + (-0x8); /* 0x4000CDD4: lea ecx, [ebp - 8] */ 4787 PUSH32(esp, ecx); /* 0x4000CDD7: push ecx */ 4788 ecx = esi; /* 0x4000CDD8: mov ecx, esi */ 4789 RECOMP_ICALL(0x40007E20u); /* 0x4000CDDA: call 0x40007e20 */ /* not lifted */ 4790 RECOMP_FLAGS_IN(); 4791 eax = MEM32(ebp + (-0x4)); /* 0x4000CDDF: mov eax, dword ptr [ebp - 4] */ 4792 /* cmp eax, edi */ /* 0x4000CDE2: cmp eax, edi */ 4793 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4795 _flag_k = FK_CMP; 4796 RECOMP_BACKEDGE(); 4797 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC9; /* 0x4000CDE4: jne 0x4000cdc9 */ 4798 L_4000CDE6: 4799 edx = MEM32(esi + 0x4); /* 0x4000CDE6: mov edx, dword ptr [esi + 4] */ 4800 PUSH32(esp, edx); /* 0x4000CDE9: push edx */ 4801 RECOMP_ICALL(0x400146F2u); /* 0x4000CDEA: call 0x400146f2 */ /* not lifted */ 4802 RECOMP_FLAGS_IN(); 4803 eax = MEM32(esi + 0x8); /* 0x4000CDEF: mov eax, dword ptr [esi + 8] */ 4804 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4805 edi = 0; /* 0x4000CDF2: xor edi, edi */ 4806 _cf = 0; 4807 _flag_k = FK_TEST; 4808 PUSH32(esp, eax); /* 0x4000CDF4: push eax */ 4809 MEM32(esi + 0x4) = edi; /* 0x4000CDF5: mov dword ptr [esi + 4], edi */ 4810 MEM32(esi + 0x10) = edi; /* 0x4000CDF8: mov dword ptr [esi + 0x10], edi */ 4811 RECOMP_ICALL(0x400146F2u); /* 0x4000CDFB: call 0x400146f2 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4815 esp = esp + 8; /* 0x4000CE00: add esp, 8 */ 4816 _flag_k = FK_ADD; 4817 MEM32(esi + 0x8) = edi; /* 0x4000CE03: mov dword ptr [esi + 8], edi */ 4818 edi = POP32_VAL(esp); /* 0x4000CE06: pop edi */ 4819 esi = POP32_VAL(esp); /* 0x4000CE07: pop esi */ 4820 ebx = POP32_VAL(esp); /* 0x4000CE08: pop ebx */ 4821 esp = ebp; /* 0x4000CE09: mov esp, ebp */ 4822 ebp = POP32_VAL(esp); /* 0x4000CE0B: pop ebp */ 4823 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CE0C: ret */ 4824 L_4001500E: 4825 ecx = MEM32(ebp + (-0x10)); /* 0x4001500E: mov ecx, dword ptr [ebp - 0x10] */ 4826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 4827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4828 ecx = ecx + 0x34u; /* 0x40015011: add ecx, 0x34 */ 4829 _flag_k = FK_ADD; 4830 RECOMP_BACKEDGE(); 4831 goto L_4000CD50; /* 0x40015014: jmp 0x4000cd50 */ 4832 { RECOMP_REGS_OUT(); return; } /* end of function */ 4833 RECOMP_REGS_OUT(); 4834 } 4835 4836 void sub_40015019(void) { 4837 int _fpu_cmp = 0; 4838 uint32_t _cf = 0; 4839 int _df = 1; 4840 uint32_t _flag_k = FK_NONE; 4841 uint32_t _flag_a = 0, _flag_b = 0; 4842 uint32_t _itail_tgt = 0; 4843 RECOMP_REGS_LOCALS 4844 RECOMP_ENTER(0x40015019u); 4845 4846 goto L_40015019; 4847 L_4000CE10: 4848 PUSH32(esp, ebp); /* 0x4000CE10: push ebp */ 4849 ebp = esp; /* 0x4000CE11: mov ebp, esp */ 4850 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4852 esp = esp - 8; /* 0x4000CE13: sub esp, 8 */ 4853 _flag_k = FK_CMP; 4854 PUSH32(esp, ebx); /* 0x4000CE16: push ebx */ 4855 PUSH32(esp, esi); /* 0x4000CE17: push esi */ 4856 esi = ecx; /* 0x4000CE18: mov esi, ecx */ 4857 ecx = MEM32(esi + 0x10); /* 0x4000CE1A: mov ecx, dword ptr [esi + 0x10] */ 4858 /* test ecx, ecx */ /* 0x4000CE1D: test ecx, ecx */ 4859 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4860 _cf = 0; 4861 _flag_k = FK_TEST; 4862 PUSH32(esp, edi); /* 0x4000CE1F: push edi */ 4863 edi = MEM32(esi + 0x4); /* 0x4000CE20: mov edi, dword ptr [esi + 4] */ 4864 eax = MEM32(edi); /* 0x4000CE23: mov eax, dword ptr [edi] */ 4865 MEM32(ebp + (-0x4)) = eax; /* 0x4000CE25: mov dword ptr [ebp - 4], eax */ 4866 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE28: je 0x4000ce85 */ 4867 L_4000CE2A: 4868 ecx = eax; /* 0x4000CE2A: mov ecx, eax */ 4869 /* cmp eax, ecx */ /* 0x4000CE2C: cmp eax, ecx */ 4870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4872 _flag_k = FK_CMP; 4873 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE2E: jne 0x4000ce85 */ 4874 L_4000CE30: 4875 /* cmp edi, edi */ /* 0x4000CE30: cmp edi, edi */ 4876 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4878 _flag_k = FK_CMP; 4879 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE32: jne 0x4000ce85 */ 4880 L_4000CE34: 4881 ebx = MEM32(edi + 0x4); /* 0x4000CE34: mov ebx, dword ptr [edi + 4] */ 4882 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CE37: cmp ebx, dword ptr [esi + 8] */ 4883 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4885 _flag_k = FK_CMP; 4886 edi = ebx; /* 0x4000CE3A: mov edi, ebx */ 4887 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CE5D; /* 0x4000CE3C: je 0x4000ce5d */ 4888 L_4000CE3E: 4889 eax = MEM32(edi + 0x8); /* 0x4000CE3E: mov eax, dword ptr [edi + 8] */ 4890 PUSH32(esp, eax); /* 0x4000CE41: push eax */ 4891 ecx = esi; /* 0x4000CE42: mov ecx, esi */ 4892 RECOMP_ICALL(0x40009A50u); /* 0x4000CE44: call 0x40009a50 */ /* not lifted */ 4893 RECOMP_FLAGS_IN(); 4894 edi = MEM32(edi); /* 0x4000CE49: mov edi, dword ptr [edi] */ 4895 PUSH32(esp, ebx); /* 0x4000CE4B: push ebx */ 4896 RECOMP_ICALL(0x400146F2u); /* 0x4000CE4C: call 0x400146f2 */ /* not lifted */ 4897 RECOMP_FLAGS_IN(); 4898 eax = MEM32(esi + 0x8); /* 0x4000CE51: mov eax, dword ptr [esi + 8] */ 4899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4901 esp = esp + 4; /* 0x4000CE54: add esp, 4 */ 4902 _flag_k = FK_ADD; 4903 /* cmp edi, eax */ /* 0x4000CE57: cmp edi, eax */ 4904 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4906 _flag_k = FK_CMP; 4907 ebx = edi; /* 0x4000CE59: mov ebx, edi */ 4908 RECOMP_BACKEDGE(); 4909 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE3E; /* 0x4000CE5B: jne 0x4000ce3e */ 4910 L_4000CE5D: 4911 ecx = MEM32(esi + 0x4); /* 0x4000CE5D: mov ecx, dword ptr [esi + 4] */ 4912 edx = MEM32(esi + 0x8); /* 0x4000CE60: mov edx, dword ptr [esi + 8] */ 4913 MEM32(ecx + 0x4) = edx; /* 0x4000CE63: mov dword ptr [ecx + 4], edx */ 4914 eax = MEM32(esi + 0x4); /* 0x4000CE66: mov eax, dword ptr [esi + 4] */ 4915 MEM32(esi + 0x10) = 0; /* 0x4000CE69: mov dword ptr [esi + 0x10], 0 */ 4916 MEM32(eax) = eax; /* 0x4000CE70: mov dword ptr [eax], eax */ 4917 eax = MEM32(esi + 0x4); /* 0x4000CE72: mov eax, dword ptr [esi + 4] */ 4918 MEM32(eax + 0x8) = eax; /* 0x4000CE75: mov dword ptr [eax + 8], eax */ 4919 eax = ebp + (-0x8); /* 0x4000CE78: lea eax, [ebp - 8] */ 4920 PUSH32(esp, eax); /* 0x4000CE7B: push eax */ 4921 ecx = esi; /* 0x4000CE7C: mov ecx, esi */ 4922 RECOMP_ICALL(0x40001BA0u); /* 0x4000CE7E: call 0x40001ba0 */ /* not lifted */ 4923 RECOMP_FLAGS_IN(); 4924 goto L_4000CEA6; /* 0x4000CE83: jmp 0x4000cea6 */ 4925 L_4000CE85: 4926 /* cmp eax, edi */ /* 0x4000CE85: cmp eax, edi */ 4927 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4929 _flag_k = FK_CMP; 4930 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CEA6; /* 0x4000CE87: je 0x4000cea6 */ 4931 L_4000CE89: 4932 ecx = ebp + (-0x4); /* 0x4000CE89: lea ecx, [ebp - 4] */ 4933 ebx = eax; /* 0x4000CE8C: mov ebx, eax */ 4934 RECOMP_ICALL(0x40008480u); /* 0x4000CE8E: call 0x40008480 */ /* not lifted */ 4935 RECOMP_FLAGS_IN(); 4936 PUSH32(esp, ebx); /* 0x4000CE93: push ebx */ 4937 ecx = ebp + (-0x8); /* 0x4000CE94: lea ecx, [ebp - 8] */ 4938 PUSH32(esp, ecx); /* 0x4000CE97: push ecx */ 4939 ecx = esi; /* 0x4000CE98: mov ecx, esi */ 4940 RECOMP_ICALL(0x40009690u); /* 0x4000CE9A: call 0x40009690 */ /* not lifted */ 4941 RECOMP_FLAGS_IN(); 4942 eax = MEM32(ebp + (-0x4)); /* 0x4000CE9F: mov eax, dword ptr [ebp - 4] */ 4943 /* cmp eax, edi */ /* 0x4000CEA2: cmp eax, edi */ 4944 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4946 _flag_k = FK_CMP; 4947 RECOMP_BACKEDGE(); 4948 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE89; /* 0x4000CEA4: jne 0x4000ce89 */ 4949 L_4000CEA6: 4950 edx = MEM32(esi + 0x4); /* 0x4000CEA6: mov edx, dword ptr [esi + 4] */ 4951 PUSH32(esp, edx); /* 0x4000CEA9: push edx */ 4952 RECOMP_ICALL(0x400146F2u); /* 0x4000CEAA: call 0x400146f2 */ /* not lifted */ 4953 RECOMP_FLAGS_IN(); 4954 eax = MEM32(esi + 0x8); /* 0x4000CEAF: mov eax, dword ptr [esi + 8] */ 4955 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4956 edi = 0; /* 0x4000CEB2: xor edi, edi */ 4957 _cf = 0; 4958 _flag_k = FK_TEST; 4959 PUSH32(esp, eax); /* 0x4000CEB4: push eax */ 4960 MEM32(esi + 0x4) = edi; /* 0x4000CEB5: mov dword ptr [esi + 4], edi */ 4961 MEM32(esi + 0x10) = edi; /* 0x4000CEB8: mov dword ptr [esi + 0x10], edi */ 4962 RECOMP_ICALL(0x400146F2u); /* 0x4000CEBB: call 0x400146f2 */ /* not lifted */ 4963 RECOMP_FLAGS_IN(); 4964 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4966 esp = esp + 8; /* 0x4000CEC0: add esp, 8 */ 4967 _flag_k = FK_ADD; 4968 MEM32(esi + 0x8) = edi; /* 0x4000CEC3: mov dword ptr [esi + 8], edi */ 4969 edi = POP32_VAL(esp); /* 0x4000CEC6: pop edi */ 4970 esi = POP32_VAL(esp); /* 0x4000CEC7: pop esi */ 4971 ebx = POP32_VAL(esp); /* 0x4000CEC8: pop ebx */ 4972 esp = ebp; /* 0x4000CEC9: mov esp, ebp */ 4973 ebp = POP32_VAL(esp); /* 0x4000CECB: pop ebp */ 4974 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CECC: ret */ 4975 L_40015019: 4976 ecx = MEM32(ebp + (-0x10)); /* 0x40015019: mov ecx, dword ptr [ebp - 0x10] */ 4977 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x48u); 4978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4979 ecx = ecx + 0x48u; /* 0x4001501C: add ecx, 0x48 */ 4980 _flag_k = FK_ADD; 4981 RECOMP_BACKEDGE(); 4982 goto L_4000CE10; /* 0x4001501F: jmp 0x4000ce10 */ 4983 { RECOMP_REGS_OUT(); return; } /* end of function */ 4984 RECOMP_REGS_OUT(); 4985 } 4986 4987 void sub_40015024(void) { 4988 int _fpu_cmp = 0; 4989 uint32_t _cf = 0; 4990 int _df = 1; 4991 uint32_t _flag_k = FK_NONE; 4992 uint32_t _flag_a = 0, _flag_b = 0; 4993 uint32_t _itail_tgt = 0; 4994 RECOMP_REGS_LOCALS 4995 RECOMP_ENTER(0x40015024u); 4996 4997 goto L_40015024; 4998 L_4000CE10: 4999 PUSH32(esp, ebp); /* 0x4000CE10: push ebp */ 5000 ebp = esp; /* 0x4000CE11: mov ebp, esp */ 5001 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5003 esp = esp - 8; /* 0x4000CE13: sub esp, 8 */ 5004 _flag_k = FK_CMP; 5005 PUSH32(esp, ebx); /* 0x4000CE16: push ebx */ 5006 PUSH32(esp, esi); /* 0x4000CE17: push esi */ 5007 esi = ecx; /* 0x4000CE18: mov esi, ecx */ 5008 ecx = MEM32(esi + 0x10); /* 0x4000CE1A: mov ecx, dword ptr [esi + 0x10] */ 5009 /* test ecx, ecx */ /* 0x4000CE1D: test ecx, ecx */ 5010 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5011 _cf = 0; 5012 _flag_k = FK_TEST; 5013 PUSH32(esp, edi); /* 0x4000CE1F: push edi */ 5014 edi = MEM32(esi + 0x4); /* 0x4000CE20: mov edi, dword ptr [esi + 4] */ 5015 eax = MEM32(edi); /* 0x4000CE23: mov eax, dword ptr [edi] */ 5016 MEM32(ebp + (-0x4)) = eax; /* 0x4000CE25: mov dword ptr [ebp - 4], eax */ 5017 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE28: je 0x4000ce85 */ 5018 L_4000CE2A: 5019 ecx = eax; /* 0x4000CE2A: mov ecx, eax */ 5020 /* cmp eax, ecx */ /* 0x4000CE2C: cmp eax, ecx */ 5021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5023 _flag_k = FK_CMP; 5024 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE2E: jne 0x4000ce85 */ 5025 L_4000CE30: 5026 /* cmp edi, edi */ /* 0x4000CE30: cmp edi, edi */ 5027 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5029 _flag_k = FK_CMP; 5030 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE32: jne 0x4000ce85 */ 5031 L_4000CE34: 5032 ebx = MEM32(edi + 0x4); /* 0x4000CE34: mov ebx, dword ptr [edi + 4] */ 5033 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CE37: cmp ebx, dword ptr [esi + 8] */ 5034 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5036 _flag_k = FK_CMP; 5037 edi = ebx; /* 0x4000CE3A: mov edi, ebx */ 5038 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CE5D; /* 0x4000CE3C: je 0x4000ce5d */ 5039 L_4000CE3E: 5040 eax = MEM32(edi + 0x8); /* 0x4000CE3E: mov eax, dword ptr [edi + 8] */ 5041 PUSH32(esp, eax); /* 0x4000CE41: push eax */ 5042 ecx = esi; /* 0x4000CE42: mov ecx, esi */ 5043 RECOMP_ICALL(0x40009A50u); /* 0x4000CE44: call 0x40009a50 */ /* not lifted */ 5044 RECOMP_FLAGS_IN(); 5045 edi = MEM32(edi); /* 0x4000CE49: mov edi, dword ptr [edi] */ 5046 PUSH32(esp, ebx); /* 0x4000CE4B: push ebx */ 5047 RECOMP_ICALL(0x400146F2u); /* 0x4000CE4C: call 0x400146f2 */ /* not lifted */ 5048 RECOMP_FLAGS_IN(); 5049 eax = MEM32(esi + 0x8); /* 0x4000CE51: mov eax, dword ptr [esi + 8] */ 5050 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5052 esp = esp + 4; /* 0x4000CE54: add esp, 4 */ 5053 _flag_k = FK_ADD; 5054 /* cmp edi, eax */ /* 0x4000CE57: cmp edi, eax */ 5055 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5057 _flag_k = FK_CMP; 5058 ebx = edi; /* 0x4000CE59: mov ebx, edi */ 5059 RECOMP_BACKEDGE(); 5060 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE3E; /* 0x4000CE5B: jne 0x4000ce3e */ 5061 L_4000CE5D: 5062 ecx = MEM32(esi + 0x4); /* 0x4000CE5D: mov ecx, dword ptr [esi + 4] */ 5063 edx = MEM32(esi + 0x8); /* 0x4000CE60: mov edx, dword ptr [esi + 8] */ 5064 MEM32(ecx + 0x4) = edx; /* 0x4000CE63: mov dword ptr [ecx + 4], edx */ 5065 eax = MEM32(esi + 0x4); /* 0x4000CE66: mov eax, dword ptr [esi + 4] */ 5066 MEM32(esi + 0x10) = 0; /* 0x4000CE69: mov dword ptr [esi + 0x10], 0 */ 5067 MEM32(eax) = eax; /* 0x4000CE70: mov dword ptr [eax], eax */ 5068 eax = MEM32(esi + 0x4); /* 0x4000CE72: mov eax, dword ptr [esi + 4] */ 5069 MEM32(eax + 0x8) = eax; /* 0x4000CE75: mov dword ptr [eax + 8], eax */ 5070 eax = ebp + (-0x8); /* 0x4000CE78: lea eax, [ebp - 8] */ 5071 PUSH32(esp, eax); /* 0x4000CE7B: push eax */ 5072 ecx = esi; /* 0x4000CE7C: mov ecx, esi */ 5073 RECOMP_ICALL(0x40001BA0u); /* 0x4000CE7E: call 0x40001ba0 */ /* not lifted */ 5074 RECOMP_FLAGS_IN(); 5075 goto L_4000CEA6; /* 0x4000CE83: jmp 0x4000cea6 */ 5076 L_4000CE85: 5077 /* cmp eax, edi */ /* 0x4000CE85: cmp eax, edi */ 5078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5080 _flag_k = FK_CMP; 5081 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CEA6; /* 0x4000CE87: je 0x4000cea6 */ 5082 L_4000CE89: 5083 ecx = ebp + (-0x4); /* 0x4000CE89: lea ecx, [ebp - 4] */ 5084 ebx = eax; /* 0x4000CE8C: mov ebx, eax */ 5085 RECOMP_ICALL(0x40008480u); /* 0x4000CE8E: call 0x40008480 */ /* not lifted */ 5086 RECOMP_FLAGS_IN(); 5087 PUSH32(esp, ebx); /* 0x4000CE93: push ebx */ 5088 ecx = ebp + (-0x8); /* 0x4000CE94: lea ecx, [ebp - 8] */ 5089 PUSH32(esp, ecx); /* 0x4000CE97: push ecx */ 5090 ecx = esi; /* 0x4000CE98: mov ecx, esi */ 5091 RECOMP_ICALL(0x40009690u); /* 0x4000CE9A: call 0x40009690 */ /* not lifted */ 5092 RECOMP_FLAGS_IN(); 5093 eax = MEM32(ebp + (-0x4)); /* 0x4000CE9F: mov eax, dword ptr [ebp - 4] */ 5094 /* cmp eax, edi */ /* 0x4000CEA2: cmp eax, edi */ 5095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5097 _flag_k = FK_CMP; 5098 RECOMP_BACKEDGE(); 5099 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE89; /* 0x4000CEA4: jne 0x4000ce89 */ 5100 L_4000CEA6: 5101 edx = MEM32(esi + 0x4); /* 0x4000CEA6: mov edx, dword ptr [esi + 4] */ 5102 PUSH32(esp, edx); /* 0x4000CEA9: push edx */ 5103 RECOMP_ICALL(0x400146F2u); /* 0x4000CEAA: call 0x400146f2 */ /* not lifted */ 5104 RECOMP_FLAGS_IN(); 5105 eax = MEM32(esi + 0x8); /* 0x4000CEAF: mov eax, dword ptr [esi + 8] */ 5106 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5107 edi = 0; /* 0x4000CEB2: xor edi, edi */ 5108 _cf = 0; 5109 _flag_k = FK_TEST; 5110 PUSH32(esp, eax); /* 0x4000CEB4: push eax */ 5111 MEM32(esi + 0x4) = edi; /* 0x4000CEB5: mov dword ptr [esi + 4], edi */ 5112 MEM32(esi + 0x10) = edi; /* 0x4000CEB8: mov dword ptr [esi + 0x10], edi */ 5113 RECOMP_ICALL(0x400146F2u); /* 0x4000CEBB: call 0x400146f2 */ /* not lifted */ 5114 RECOMP_FLAGS_IN(); 5115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5117 esp = esp + 8; /* 0x4000CEC0: add esp, 8 */ 5118 _flag_k = FK_ADD; 5119 MEM32(esi + 0x8) = edi; /* 0x4000CEC3: mov dword ptr [esi + 8], edi */ 5120 edi = POP32_VAL(esp); /* 0x4000CEC6: pop edi */ 5121 esi = POP32_VAL(esp); /* 0x4000CEC7: pop esi */ 5122 ebx = POP32_VAL(esp); /* 0x4000CEC8: pop ebx */ 5123 esp = ebp; /* 0x4000CEC9: mov esp, ebp */ 5124 ebp = POP32_VAL(esp); /* 0x4000CECB: pop ebp */ 5125 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CECC: ret */ 5126 L_40015024: 5127 ecx = MEM32(ebp + (-0x10)); /* 0x40015024: mov ecx, dword ptr [ebp - 0x10] */ 5128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x5Cu); 5129 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5130 ecx = ecx + 0x5Cu; /* 0x40015027: add ecx, 0x5c */ 5131 _flag_k = FK_ADD; 5132 RECOMP_BACKEDGE(); 5133 goto L_4000CE10; /* 0x4001502A: jmp 0x4000ce10 */ 5134 { RECOMP_REGS_OUT(); return; } /* end of function */ 5135 RECOMP_REGS_OUT(); 5136 } 5137 5138 void sub_4001502F(void) { 5139 int _fpu_cmp = 0; 5140 uint32_t _cf = 0; 5141 int _df = 1; 5142 uint32_t _flag_k = FK_NONE; 5143 uint32_t _flag_a = 0, _flag_b = 0; 5144 uint32_t _itail_tgt = 0; 5145 RECOMP_REGS_LOCALS 5146 RECOMP_ENTER(0x4001502Fu); 5147 5148 goto L_4001502F; 5149 L_4000CED0: 5150 PUSH32(esp, ebp); /* 0x4000CED0: push ebp */ 5151 ebp = esp; /* 0x4000CED1: mov ebp, esp */ 5152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5154 esp = esp - 8; /* 0x4000CED3: sub esp, 8 */ 5155 _flag_k = FK_CMP; 5156 PUSH32(esp, ebx); /* 0x4000CED6: push ebx */ 5157 PUSH32(esp, esi); /* 0x4000CED7: push esi */ 5158 esi = ecx; /* 0x4000CED8: mov esi, ecx */ 5159 ecx = MEM32(esi + 0x10); /* 0x4000CEDA: mov ecx, dword ptr [esi + 0x10] */ 5160 /* test ecx, ecx */ /* 0x4000CEDD: test ecx, ecx */ 5161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5162 _cf = 0; 5163 _flag_k = FK_TEST; 5164 PUSH32(esp, edi); /* 0x4000CEDF: push edi */ 5165 edi = MEM32(esi + 0x4); /* 0x4000CEE0: mov edi, dword ptr [esi + 4] */ 5166 eax = MEM32(edi); /* 0x4000CEE3: mov eax, dword ptr [edi] */ 5167 MEM32(ebp + (-0x4)) = eax; /* 0x4000CEE5: mov dword ptr [ebp - 4], eax */ 5168 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEE8: je 0x4000cf45 */ 5169 L_4000CEEA: 5170 ecx = eax; /* 0x4000CEEA: mov ecx, eax */ 5171 /* cmp eax, ecx */ /* 0x4000CEEC: cmp eax, ecx */ 5172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5174 _flag_k = FK_CMP; 5175 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEEE: jne 0x4000cf45 */ 5176 L_4000CEF0: 5177 /* cmp edi, edi */ /* 0x4000CEF0: cmp edi, edi */ 5178 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5180 _flag_k = FK_CMP; 5181 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEF2: jne 0x4000cf45 */ 5182 L_4000CEF4: 5183 ebx = MEM32(edi + 0x4); /* 0x4000CEF4: mov ebx, dword ptr [edi + 4] */ 5184 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CEF7: cmp ebx, dword ptr [esi + 8] */ 5185 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5187 _flag_k = FK_CMP; 5188 edi = ebx; /* 0x4000CEFA: mov edi, ebx */ 5189 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CF1D; /* 0x4000CEFC: je 0x4000cf1d */ 5190 L_4000CEFE: 5191 eax = MEM32(edi + 0x8); /* 0x4000CEFE: mov eax, dword ptr [edi + 8] */ 5192 PUSH32(esp, eax); /* 0x4000CF01: push eax */ 5193 ecx = esi; /* 0x4000CF02: mov ecx, esi */ 5194 RECOMP_ICALL(0x40009E80u); /* 0x4000CF04: call 0x40009e80 */ /* not lifted */ 5195 RECOMP_FLAGS_IN(); 5196 edi = MEM32(edi); /* 0x4000CF09: mov edi, dword ptr [edi] */ 5197 PUSH32(esp, ebx); /* 0x4000CF0B: push ebx */ 5198 RECOMP_ICALL(0x400146F2u); /* 0x4000CF0C: call 0x400146f2 */ /* not lifted */ 5199 RECOMP_FLAGS_IN(); 5200 eax = MEM32(esi + 0x8); /* 0x4000CF11: mov eax, dword ptr [esi + 8] */ 5201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5203 esp = esp + 4; /* 0x4000CF14: add esp, 4 */ 5204 _flag_k = FK_ADD; 5205 /* cmp edi, eax */ /* 0x4000CF17: cmp edi, eax */ 5206 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5208 _flag_k = FK_CMP; 5209 ebx = edi; /* 0x4000CF19: mov ebx, edi */ 5210 RECOMP_BACKEDGE(); 5211 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CEFE; /* 0x4000CF1B: jne 0x4000cefe */ 5212 L_4000CF1D: 5213 ecx = MEM32(esi + 0x4); /* 0x4000CF1D: mov ecx, dword ptr [esi + 4] */ 5214 edx = MEM32(esi + 0x8); /* 0x4000CF20: mov edx, dword ptr [esi + 8] */ 5215 MEM32(ecx + 0x4) = edx; /* 0x4000CF23: mov dword ptr [ecx + 4], edx */ 5216 eax = MEM32(esi + 0x4); /* 0x4000CF26: mov eax, dword ptr [esi + 4] */ 5217 MEM32(esi + 0x10) = 0; /* 0x4000CF29: mov dword ptr [esi + 0x10], 0 */ 5218 MEM32(eax) = eax; /* 0x4000CF30: mov dword ptr [eax], eax */ 5219 eax = MEM32(esi + 0x4); /* 0x4000CF32: mov eax, dword ptr [esi + 4] */ 5220 MEM32(eax + 0x8) = eax; /* 0x4000CF35: mov dword ptr [eax + 8], eax */ 5221 eax = ebp + (-0x8); /* 0x4000CF38: lea eax, [ebp - 8] */ 5222 PUSH32(esp, eax); /* 0x4000CF3B: push eax */ 5223 ecx = esi; /* 0x4000CF3C: mov ecx, esi */ 5224 RECOMP_ICALL(0x40001BA0u); /* 0x4000CF3E: call 0x40001ba0 */ /* not lifted */ 5225 RECOMP_FLAGS_IN(); 5226 goto L_4000CF66; /* 0x4000CF43: jmp 0x4000cf66 */ 5227 L_4000CF45: 5228 /* cmp eax, edi */ /* 0x4000CF45: cmp eax, edi */ 5229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5230 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5231 _flag_k = FK_CMP; 5232 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CF66; /* 0x4000CF47: je 0x4000cf66 */ 5233 L_4000CF49: 5234 ecx = ebp + (-0x4); /* 0x4000CF49: lea ecx, [ebp - 4] */ 5235 ebx = eax; /* 0x4000CF4C: mov ebx, eax */ 5236 RECOMP_ICALL(0x40008540u); /* 0x4000CF4E: call 0x40008540 */ /* not lifted */ 5237 RECOMP_FLAGS_IN(); 5238 PUSH32(esp, ebx); /* 0x4000CF53: push ebx */ 5239 ecx = ebp + (-0x8); /* 0x4000CF54: lea ecx, [ebp - 8] */ 5240 PUSH32(esp, ecx); /* 0x4000CF57: push ecx */ 5241 ecx = esi; /* 0x4000CF58: mov ecx, esi */ 5242 RECOMP_ICALL(0x40009AC0u); /* 0x4000CF5A: call 0x40009ac0 */ /* not lifted */ 5243 RECOMP_FLAGS_IN(); 5244 eax = MEM32(ebp + (-0x4)); /* 0x4000CF5F: mov eax, dword ptr [ebp - 4] */ 5245 /* cmp eax, edi */ /* 0x4000CF62: cmp eax, edi */ 5246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5248 _flag_k = FK_CMP; 5249 RECOMP_BACKEDGE(); 5250 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF49; /* 0x4000CF64: jne 0x4000cf49 */ 5251 L_4000CF66: 5252 edx = MEM32(esi + 0x4); /* 0x4000CF66: mov edx, dword ptr [esi + 4] */ 5253 PUSH32(esp, edx); /* 0x4000CF69: push edx */ 5254 RECOMP_ICALL(0x400146F2u); /* 0x4000CF6A: call 0x400146f2 */ /* not lifted */ 5255 RECOMP_FLAGS_IN(); 5256 eax = MEM32(esi + 0x8); /* 0x4000CF6F: mov eax, dword ptr [esi + 8] */ 5257 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5258 edi = 0; /* 0x4000CF72: xor edi, edi */ 5259 _cf = 0; 5260 _flag_k = FK_TEST; 5261 PUSH32(esp, eax); /* 0x4000CF74: push eax */ 5262 MEM32(esi + 0x4) = edi; /* 0x4000CF75: mov dword ptr [esi + 4], edi */ 5263 MEM32(esi + 0x10) = edi; /* 0x4000CF78: mov dword ptr [esi + 0x10], edi */ 5264 RECOMP_ICALL(0x400146F2u); /* 0x4000CF7B: call 0x400146f2 */ /* not lifted */ 5265 RECOMP_FLAGS_IN(); 5266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5267 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5268 esp = esp + 8; /* 0x4000CF80: add esp, 8 */ 5269 _flag_k = FK_ADD; 5270 MEM32(esi + 0x8) = edi; /* 0x4000CF83: mov dword ptr [esi + 8], edi */ 5271 edi = POP32_VAL(esp); /* 0x4000CF86: pop edi */ 5272 esi = POP32_VAL(esp); /* 0x4000CF87: pop esi */ 5273 ebx = POP32_VAL(esp); /* 0x4000CF88: pop ebx */ 5274 esp = ebp; /* 0x4000CF89: mov esp, ebp */ 5275 ebp = POP32_VAL(esp); /* 0x4000CF8B: pop ebp */ 5276 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CF8C: ret */ 5277 L_4001502F: 5278 ecx = MEM32(ebp + (-0x10)); /* 0x4001502F: mov ecx, dword ptr [ebp - 0x10] */ 5279 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x160u); 5280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5281 ecx = ecx + 0x160u; /* 0x40015032: add ecx, 0x160 */ 5282 _flag_k = FK_ADD; 5283 RECOMP_BACKEDGE(); 5284 goto L_4000CED0; /* 0x40015038: jmp 0x4000ced0 */ 5285 { RECOMP_REGS_OUT(); return; } /* end of function */ 5286 RECOMP_REGS_OUT(); 5287 } 5288 5289 void sub_4001503D(void) { 5290 int _fpu_cmp = 0; 5291 uint32_t _cf = 0; 5292 int _df = 1; 5293 uint32_t _flag_k = FK_NONE; 5294 uint32_t _flag_a = 0, _flag_b = 0; 5295 uint32_t _itail_tgt = 0; 5296 RECOMP_REGS_LOCALS 5297 RECOMP_ENTER(0x4001503Du); 5298 5299 goto L_4001503D; 5300 L_4000CF90: 5301 PUSH32(esp, ebp); /* 0x4000CF90: push ebp */ 5302 ebp = esp; /* 0x4000CF91: mov ebp, esp */ 5303 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5305 esp = esp - 8; /* 0x4000CF93: sub esp, 8 */ 5306 _flag_k = FK_CMP; 5307 PUSH32(esp, ebx); /* 0x4000CF96: push ebx */ 5308 PUSH32(esp, esi); /* 0x4000CF97: push esi */ 5309 esi = ecx; /* 0x4000CF98: mov esi, ecx */ 5310 ecx = MEM32(esi + 0x10); /* 0x4000CF9A: mov ecx, dword ptr [esi + 0x10] */ 5311 /* test ecx, ecx */ /* 0x4000CF9D: test ecx, ecx */ 5312 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5313 _cf = 0; 5314 _flag_k = FK_TEST; 5315 PUSH32(esp, edi); /* 0x4000CF9F: push edi */ 5316 edi = MEM32(esi + 0x4); /* 0x4000CFA0: mov edi, dword ptr [esi + 4] */ 5317 eax = MEM32(edi); /* 0x4000CFA3: mov eax, dword ptr [edi] */ 5318 MEM32(ebp + (-0x4)) = eax; /* 0x4000CFA5: mov dword ptr [ebp - 4], eax */ 5319 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFA8: je 0x4000d005 */ 5320 L_4000CFAA: 5321 ecx = eax; /* 0x4000CFAA: mov ecx, eax */ 5322 /* cmp eax, ecx */ /* 0x4000CFAC: cmp eax, ecx */ 5323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5325 _flag_k = FK_CMP; 5326 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFAE: jne 0x4000d005 */ 5327 L_4000CFB0: 5328 /* cmp edi, edi */ /* 0x4000CFB0: cmp edi, edi */ 5329 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5331 _flag_k = FK_CMP; 5332 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFB2: jne 0x4000d005 */ 5333 L_4000CFB4: 5334 ebx = MEM32(edi + 0x4); /* 0x4000CFB4: mov ebx, dword ptr [edi + 4] */ 5335 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CFB7: cmp ebx, dword ptr [esi + 8] */ 5336 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5338 _flag_k = FK_CMP; 5339 edi = ebx; /* 0x4000CFBA: mov edi, ebx */ 5340 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CFDD; /* 0x4000CFBC: je 0x4000cfdd */ 5341 L_4000CFBE: 5342 eax = MEM32(edi + 0x8); /* 0x4000CFBE: mov eax, dword ptr [edi + 8] */ 5343 PUSH32(esp, eax); /* 0x4000CFC1: push eax */ 5344 ecx = esi; /* 0x4000CFC2: mov ecx, esi */ 5345 RECOMP_ICALL(0x40009F20u); /* 0x4000CFC4: call 0x40009f20 */ /* not lifted */ 5346 RECOMP_FLAGS_IN(); 5347 edi = MEM32(edi); /* 0x4000CFC9: mov edi, dword ptr [edi] */ 5348 PUSH32(esp, ebx); /* 0x4000CFCB: push ebx */ 5349 RECOMP_ICALL(0x400146F2u); /* 0x4000CFCC: call 0x400146f2 */ /* not lifted */ 5350 RECOMP_FLAGS_IN(); 5351 eax = MEM32(esi + 0x8); /* 0x4000CFD1: mov eax, dword ptr [esi + 8] */ 5352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5354 esp = esp + 4; /* 0x4000CFD4: add esp, 4 */ 5355 _flag_k = FK_ADD; 5356 /* cmp edi, eax */ /* 0x4000CFD7: cmp edi, eax */ 5357 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5359 _flag_k = FK_CMP; 5360 ebx = edi; /* 0x4000CFD9: mov ebx, edi */ 5361 RECOMP_BACKEDGE(); 5362 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CFBE; /* 0x4000CFDB: jne 0x4000cfbe */ 5363 L_4000CFDD: 5364 ecx = MEM32(esi + 0x4); /* 0x4000CFDD: mov ecx, dword ptr [esi + 4] */ 5365 edx = MEM32(esi + 0x8); /* 0x4000CFE0: mov edx, dword ptr [esi + 8] */ 5366 MEM32(ecx + 0x4) = edx; /* 0x4000CFE3: mov dword ptr [ecx + 4], edx */ 5367 eax = MEM32(esi + 0x4); /* 0x4000CFE6: mov eax, dword ptr [esi + 4] */ 5368 MEM32(esi + 0x10) = 0; /* 0x4000CFE9: mov dword ptr [esi + 0x10], 0 */ 5369 MEM32(eax) = eax; /* 0x4000CFF0: mov dword ptr [eax], eax */ 5370 eax = MEM32(esi + 0x4); /* 0x4000CFF2: mov eax, dword ptr [esi + 4] */ 5371 MEM32(eax + 0x8) = eax; /* 0x4000CFF5: mov dword ptr [eax + 8], eax */ 5372 eax = ebp + (-0x8); /* 0x4000CFF8: lea eax, [ebp - 8] */ 5373 PUSH32(esp, eax); /* 0x4000CFFB: push eax */ 5374 ecx = esi; /* 0x4000CFFC: mov ecx, esi */ 5375 RECOMP_ICALL(0x40001BA0u); /* 0x4000CFFE: call 0x40001ba0 */ /* not lifted */ 5376 RECOMP_FLAGS_IN(); 5377 goto L_4000D026; /* 0x4000D003: jmp 0x4000d026 */ 5378 L_4000D005: 5379 /* cmp eax, edi */ /* 0x4000D005: cmp eax, edi */ 5380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5382 _flag_k = FK_CMP; 5383 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D026; /* 0x4000D007: je 0x4000d026 */ 5384 L_4000D009: 5385 ecx = ebp + (-0x4); /* 0x4000D009: lea ecx, [ebp - 4] */ 5386 ebx = eax; /* 0x4000D00C: mov ebx, eax */ 5387 RECOMP_ICALL(0x40001C50u); /* 0x4000D00E: call 0x40001c50 */ /* not lifted */ 5388 RECOMP_FLAGS_IN(); 5389 PUSH32(esp, ebx); /* 0x4000D013: push ebx */ 5390 ecx = ebp + (-0x8); /* 0x4000D014: lea ecx, [ebp - 8] */ 5391 PUSH32(esp, ecx); /* 0x4000D017: push ecx */ 5392 ecx = esi; /* 0x4000D018: mov ecx, esi */ 5393 RECOMP_ICALL(0x4000DE30u); /* 0x4000D01A: call 0x4000de30 */ /* not lifted */ 5394 RECOMP_FLAGS_IN(); 5395 eax = MEM32(ebp + (-0x4)); /* 0x4000D01F: mov eax, dword ptr [ebp - 4] */ 5396 /* cmp eax, edi */ /* 0x4000D022: cmp eax, edi */ 5397 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5399 _flag_k = FK_CMP; 5400 RECOMP_BACKEDGE(); 5401 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D009; /* 0x4000D024: jne 0x4000d009 */ 5402 L_4000D026: 5403 edx = MEM32(esi + 0x4); /* 0x4000D026: mov edx, dword ptr [esi + 4] */ 5404 PUSH32(esp, edx); /* 0x4000D029: push edx */ 5405 RECOMP_ICALL(0x400146F2u); /* 0x4000D02A: call 0x400146f2 */ /* not lifted */ 5406 RECOMP_FLAGS_IN(); 5407 eax = MEM32(esi + 0x8); /* 0x4000D02F: mov eax, dword ptr [esi + 8] */ 5408 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5409 edi = 0; /* 0x4000D032: xor edi, edi */ 5410 _cf = 0; 5411 _flag_k = FK_TEST; 5412 PUSH32(esp, eax); /* 0x4000D034: push eax */ 5413 MEM32(esi + 0x4) = edi; /* 0x4000D035: mov dword ptr [esi + 4], edi */ 5414 MEM32(esi + 0x10) = edi; /* 0x4000D038: mov dword ptr [esi + 0x10], edi */ 5415 RECOMP_ICALL(0x400146F2u); /* 0x4000D03B: call 0x400146f2 */ /* not lifted */ 5416 RECOMP_FLAGS_IN(); 5417 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5418 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5419 esp = esp + 8; /* 0x4000D040: add esp, 8 */ 5420 _flag_k = FK_ADD; 5421 MEM32(esi + 0x8) = edi; /* 0x4000D043: mov dword ptr [esi + 8], edi */ 5422 edi = POP32_VAL(esp); /* 0x4000D046: pop edi */ 5423 esi = POP32_VAL(esp); /* 0x4000D047: pop esi */ 5424 ebx = POP32_VAL(esp); /* 0x4000D048: pop ebx */ 5425 esp = ebp; /* 0x4000D049: mov esp, ebp */ 5426 ebp = POP32_VAL(esp); /* 0x4000D04B: pop ebp */ 5427 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D04C: ret */ 5428 L_4001503D: 5429 ecx = MEM32(ebp + (-0x10)); /* 0x4001503D: mov ecx, dword ptr [ebp - 0x10] */ 5430 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x19Cu); 5431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5432 ecx = ecx + 0x19Cu; /* 0x40015040: add ecx, 0x19c */ 5433 _flag_k = FK_ADD; 5434 RECOMP_BACKEDGE(); 5435 goto L_4000CF90; /* 0x40015046: jmp 0x4000cf90 */ 5436 { RECOMP_REGS_OUT(); return; } /* end of function */ 5437 RECOMP_REGS_OUT(); 5438 } 5439 5440 void sub_4001504B(void) { 5441 int _fpu_cmp = 0; 5442 uint32_t _cf = 0; 5443 int _df = 1; 5444 uint32_t _flag_k = FK_NONE; 5445 uint32_t _flag_a = 0, _flag_b = 0; 5446 uint32_t _itail_tgt = 0; 5447 RECOMP_REGS_LOCALS 5448 RECOMP_ENTER(0x4001504Bu); 5449 5450 goto L_4001504B; 5451 L_4000CF90: 5452 PUSH32(esp, ebp); /* 0x4000CF90: push ebp */ 5453 ebp = esp; /* 0x4000CF91: mov ebp, esp */ 5454 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5456 esp = esp - 8; /* 0x4000CF93: sub esp, 8 */ 5457 _flag_k = FK_CMP; 5458 PUSH32(esp, ebx); /* 0x4000CF96: push ebx */ 5459 PUSH32(esp, esi); /* 0x4000CF97: push esi */ 5460 esi = ecx; /* 0x4000CF98: mov esi, ecx */ 5461 ecx = MEM32(esi + 0x10); /* 0x4000CF9A: mov ecx, dword ptr [esi + 0x10] */ 5462 /* test ecx, ecx */ /* 0x4000CF9D: test ecx, ecx */ 5463 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5464 _cf = 0; 5465 _flag_k = FK_TEST; 5466 PUSH32(esp, edi); /* 0x4000CF9F: push edi */ 5467 edi = MEM32(esi + 0x4); /* 0x4000CFA0: mov edi, dword ptr [esi + 4] */ 5468 eax = MEM32(edi); /* 0x4000CFA3: mov eax, dword ptr [edi] */ 5469 MEM32(ebp + (-0x4)) = eax; /* 0x4000CFA5: mov dword ptr [ebp - 4], eax */ 5470 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFA8: je 0x4000d005 */ 5471 L_4000CFAA: 5472 ecx = eax; /* 0x4000CFAA: mov ecx, eax */ 5473 /* cmp eax, ecx */ /* 0x4000CFAC: cmp eax, ecx */ 5474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5476 _flag_k = FK_CMP; 5477 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFAE: jne 0x4000d005 */ 5478 L_4000CFB0: 5479 /* cmp edi, edi */ /* 0x4000CFB0: cmp edi, edi */ 5480 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5482 _flag_k = FK_CMP; 5483 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFB2: jne 0x4000d005 */ 5484 L_4000CFB4: 5485 ebx = MEM32(edi + 0x4); /* 0x4000CFB4: mov ebx, dword ptr [edi + 4] */ 5486 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CFB7: cmp ebx, dword ptr [esi + 8] */ 5487 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5489 _flag_k = FK_CMP; 5490 edi = ebx; /* 0x4000CFBA: mov edi, ebx */ 5491 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CFDD; /* 0x4000CFBC: je 0x4000cfdd */ 5492 L_4000CFBE: 5493 eax = MEM32(edi + 0x8); /* 0x4000CFBE: mov eax, dword ptr [edi + 8] */ 5494 PUSH32(esp, eax); /* 0x4000CFC1: push eax */ 5495 ecx = esi; /* 0x4000CFC2: mov ecx, esi */ 5496 RECOMP_ICALL(0x40009F20u); /* 0x4000CFC4: call 0x40009f20 */ /* not lifted */ 5497 RECOMP_FLAGS_IN(); 5498 edi = MEM32(edi); /* 0x4000CFC9: mov edi, dword ptr [edi] */ 5499 PUSH32(esp, ebx); /* 0x4000CFCB: push ebx */ 5500 RECOMP_ICALL(0x400146F2u); /* 0x4000CFCC: call 0x400146f2 */ /* not lifted */ 5501 RECOMP_FLAGS_IN(); 5502 eax = MEM32(esi + 0x8); /* 0x4000CFD1: mov eax, dword ptr [esi + 8] */ 5503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5505 esp = esp + 4; /* 0x4000CFD4: add esp, 4 */ 5506 _flag_k = FK_ADD; 5507 /* cmp edi, eax */ /* 0x4000CFD7: cmp edi, eax */ 5508 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5510 _flag_k = FK_CMP; 5511 ebx = edi; /* 0x4000CFD9: mov ebx, edi */ 5512 RECOMP_BACKEDGE(); 5513 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CFBE; /* 0x4000CFDB: jne 0x4000cfbe */ 5514 L_4000CFDD: 5515 ecx = MEM32(esi + 0x4); /* 0x4000CFDD: mov ecx, dword ptr [esi + 4] */ 5516 edx = MEM32(esi + 0x8); /* 0x4000CFE0: mov edx, dword ptr [esi + 8] */ 5517 MEM32(ecx + 0x4) = edx; /* 0x4000CFE3: mov dword ptr [ecx + 4], edx */ 5518 eax = MEM32(esi + 0x4); /* 0x4000CFE6: mov eax, dword ptr [esi + 4] */ 5519 MEM32(esi + 0x10) = 0; /* 0x4000CFE9: mov dword ptr [esi + 0x10], 0 */ 5520 MEM32(eax) = eax; /* 0x4000CFF0: mov dword ptr [eax], eax */ 5521 eax = MEM32(esi + 0x4); /* 0x4000CFF2: mov eax, dword ptr [esi + 4] */ 5522 MEM32(eax + 0x8) = eax; /* 0x4000CFF5: mov dword ptr [eax + 8], eax */ 5523 eax = ebp + (-0x8); /* 0x4000CFF8: lea eax, [ebp - 8] */ 5524 PUSH32(esp, eax); /* 0x4000CFFB: push eax */ 5525 ecx = esi; /* 0x4000CFFC: mov ecx, esi */ 5526 RECOMP_ICALL(0x40001BA0u); /* 0x4000CFFE: call 0x40001ba0 */ /* not lifted */ 5527 RECOMP_FLAGS_IN(); 5528 goto L_4000D026; /* 0x4000D003: jmp 0x4000d026 */ 5529 L_4000D005: 5530 /* cmp eax, edi */ /* 0x4000D005: cmp eax, edi */ 5531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5533 _flag_k = FK_CMP; 5534 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D026; /* 0x4000D007: je 0x4000d026 */ 5535 L_4000D009: 5536 ecx = ebp + (-0x4); /* 0x4000D009: lea ecx, [ebp - 4] */ 5537 ebx = eax; /* 0x4000D00C: mov ebx, eax */ 5538 RECOMP_ICALL(0x40001C50u); /* 0x4000D00E: call 0x40001c50 */ /* not lifted */ 5539 RECOMP_FLAGS_IN(); 5540 PUSH32(esp, ebx); /* 0x4000D013: push ebx */ 5541 ecx = ebp + (-0x8); /* 0x4000D014: lea ecx, [ebp - 8] */ 5542 PUSH32(esp, ecx); /* 0x4000D017: push ecx */ 5543 ecx = esi; /* 0x4000D018: mov ecx, esi */ 5544 RECOMP_ICALL(0x4000DE30u); /* 0x4000D01A: call 0x4000de30 */ /* not lifted */ 5545 RECOMP_FLAGS_IN(); 5546 eax = MEM32(ebp + (-0x4)); /* 0x4000D01F: mov eax, dword ptr [ebp - 4] */ 5547 /* cmp eax, edi */ /* 0x4000D022: cmp eax, edi */ 5548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5550 _flag_k = FK_CMP; 5551 RECOMP_BACKEDGE(); 5552 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D009; /* 0x4000D024: jne 0x4000d009 */ 5553 L_4000D026: 5554 edx = MEM32(esi + 0x4); /* 0x4000D026: mov edx, dword ptr [esi + 4] */ 5555 PUSH32(esp, edx); /* 0x4000D029: push edx */ 5556 RECOMP_ICALL(0x400146F2u); /* 0x4000D02A: call 0x400146f2 */ /* not lifted */ 5557 RECOMP_FLAGS_IN(); 5558 eax = MEM32(esi + 0x8); /* 0x4000D02F: mov eax, dword ptr [esi + 8] */ 5559 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5560 edi = 0; /* 0x4000D032: xor edi, edi */ 5561 _cf = 0; 5562 _flag_k = FK_TEST; 5563 PUSH32(esp, eax); /* 0x4000D034: push eax */ 5564 MEM32(esi + 0x4) = edi; /* 0x4000D035: mov dword ptr [esi + 4], edi */ 5565 MEM32(esi + 0x10) = edi; /* 0x4000D038: mov dword ptr [esi + 0x10], edi */ 5566 RECOMP_ICALL(0x400146F2u); /* 0x4000D03B: call 0x400146f2 */ /* not lifted */ 5567 RECOMP_FLAGS_IN(); 5568 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5570 esp = esp + 8; /* 0x4000D040: add esp, 8 */ 5571 _flag_k = FK_ADD; 5572 MEM32(esi + 0x8) = edi; /* 0x4000D043: mov dword ptr [esi + 8], edi */ 5573 edi = POP32_VAL(esp); /* 0x4000D046: pop edi */ 5574 esi = POP32_VAL(esp); /* 0x4000D047: pop esi */ 5575 ebx = POP32_VAL(esp); /* 0x4000D048: pop ebx */ 5576 esp = ebp; /* 0x4000D049: mov esp, ebp */ 5577 ebp = POP32_VAL(esp); /* 0x4000D04B: pop ebp */ 5578 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D04C: ret */ 5579 L_4001504B: 5580 ecx = MEM32(ebp + (-0x10)); /* 0x4001504B: mov ecx, dword ptr [ebp - 0x10] */ 5581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1B0u); 5582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5583 ecx = ecx + 0x1B0u; /* 0x4001504E: add ecx, 0x1b0 */ 5584 _flag_k = FK_ADD; 5585 RECOMP_BACKEDGE(); 5586 goto L_4000CF90; /* 0x40015054: jmp 0x4000cf90 */ 5587 { RECOMP_REGS_OUT(); return; } /* end of function */ 5588 RECOMP_REGS_OUT(); 5589 }