client/game/ppr.dll/lifted-0007.c (285300B)
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_40014040(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(0x40014040u); 17 18 L_40014040: 19 PUSH32(esp, ebp); /* 0x40014040: push ebp */ 20 ebp = esp; /* 0x40014041: mov ebp, esp */ 21 PUSH32(esp, esi); /* 0x40014043: push esi */ 22 esi = ecx; /* 0x40014044: mov esi, ecx */ 23 RECOMP_ICALL(0x40014070u); /* 0x40014046: call 0x40014070 */ /* not lifted */ 24 RECOMP_FLAGS_IN(); 25 /* test MEM8(ebp + 0x8), 1 */ /* 0x4001404B: test byte ptr [ebp + 8], 1 */ 26 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 27 _cf = 0; 28 _flag_k = FK_NARROW(FK_TEST, 24); 29 if (TEST_Z(_flag_a, _flag_b)) goto L_4001405A; /* 0x4001404F: je 0x4001405a */ 30 L_40014051: 31 PUSH32(esp, esi); /* 0x40014051: push esi */ 32 RECOMP_ICALL(0x400146F2u); /* 0x40014052: call 0x400146f2 */ /* not lifted */ 33 RECOMP_FLAGS_IN(); 34 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 35 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36 esp = esp + 4; /* 0x40014057: add esp, 4 */ 37 _flag_k = FK_ADD; 38 L_4001405A: 39 eax = esi; /* 0x4001405A: mov eax, esi */ 40 esi = POP32_VAL(esp); /* 0x4001405C: pop esi */ 41 ebp = POP32_VAL(esp); /* 0x4001405D: pop ebp */ 42 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4001405E: ret 4 */ 43 RECOMP_REGS_OUT(); 44 } 45 46 void sub_40014070(void) { 47 int _fpu_cmp = 0; 48 uint32_t _cf = 0; 49 int _df = 1; 50 uint32_t _flag_k = FK_NONE; 51 uint32_t _flag_a = 0, _flag_b = 0; 52 uint32_t _itail_tgt = 0; 53 RECOMP_REGS_LOCALS 54 RECOMP_ENTER(0x40014070u); 55 56 L_40014070: 57 PUSH32(esp, ebp); /* 0x40014070: push ebp */ 58 ebp = esp; /* 0x40014071: mov ebp, esp */ 59 PUSH32(esp, 0xFFFFFFFFu); /* 0x40014073: push -1 */ 60 PUSH32(esp, 0x400158E8u); /* 0x40014075: push 0x400158e8 */ 61 eax = MEM32(FS_BASE + (0)); /* 0x4001407A: mov eax, dword ptr fs:[0] */ 62 PUSH32(esp, eax); /* 0x40014080: push eax */ 63 MEM32(FS_BASE + (0)) = esp; /* 0x40014081: mov dword ptr fs:[0], esp */ 64 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 65 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 66 esp = esp - 0x10u; /* 0x40014088: sub esp, 0x10 */ 67 _flag_k = FK_CMP; 68 PUSH32(esp, ebx); /* 0x4001408B: push ebx */ 69 ebx = ecx; /* 0x4001408C: mov ebx, ecx */ 70 PUSH32(esp, esi); /* 0x4001408E: push esi */ 71 PUSH32(esp, edi); /* 0x4001408F: push edi */ 72 MEM32(ebp + (-0x10)) = ebx; /* 0x40014090: mov dword ptr [ebp - 0x10], ebx */ 73 MEM32(ebx) = 0x40016540u; /* 0x40014093: mov dword ptr [ebx], 0x40016540 */ 74 eax = MEM32(ebx + 0xC); /* 0x40014099: mov eax, dword ptr [ebx + 0xc] */ 75 /* test eax, eax */ /* 0x4001409C: test eax, eax */ 76 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 77 _cf = 0; 78 _flag_k = FK_TEST; 79 MEM32(ebp + (-0x4)) = 0; /* 0x4001409E: mov dword ptr [ebp - 4], 0 */ 80 if (TEST_NZ(_flag_a, _flag_b)) goto L_4001410D; /* 0x400140A5: jne 0x4001410d */ 81 L_400140A7: 82 RECOMP_ICALL(MEM32(0x40016018)); /* 0x400140A7: call dword ptr [0x40016018] */ 83 RECOMP_FLAGS_IN(); 84 edi = eax; /* 0x400140AD: mov edi, eax */ 85 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x400140AF: call dword ptr [0x400160d4] */ 86 RECOMP_FLAGS_IN(); 87 eax = MEM32(eax); /* 0x400140B5: mov eax, dword ptr [eax] */ 88 /* test eax, eax */ /* 0x400140B7: test eax, eax */ 89 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 90 _cf = 0; 91 _flag_k = FK_TEST; 92 if (TEST_Z(_flag_a, _flag_b)) goto L_400140BD; /* 0x400140B9: je 0x400140bd */ 93 L_400140BB: 94 edi = eax; /* 0x400140BB: mov edi, eax */ 95 L_400140BD: 96 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x400140BD: call dword ptr [0x400161d4] */ 97 RECOMP_FLAGS_IN(); 98 esi = eax; /* 0x400140C3: mov esi, eax */ 99 ecx = esi; /* 0x400140C5: mov ecx, esi */ 100 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x400140C7: call dword ptr [0x400161d8] */ 101 RECOMP_FLAGS_IN(); 102 PUSH32(esp, eax); /* 0x400140CD: push eax */ 103 ecx = esi; /* 0x400140CE: mov ecx, esi */ 104 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x400140D0: call dword ptr [0x400161dc] */ 105 RECOMP_FLAGS_IN(); 106 PUSH32(esp, eax); /* 0x400140D6: push eax */ 107 ecx = esi; /* 0x400140D7: mov ecx, esi */ 108 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x400140D9: call dword ptr [0x400161e0] */ 109 RECOMP_FLAGS_IN(); 110 PUSH32(esp, eax); /* 0x400140DF: push eax */ 111 PUSH32(esp, edi); /* 0x400140E0: push edi */ 112 PUSH32(esp, 0xFFFFFFFFu); /* 0x400140E1: push -1 */ 113 PUSH32(esp, 0x56u); /* 0x400140E3: push 0x56 */ 114 PUSH32(esp, 0x4001C288u); /* 0x400140E5: push 0x4001c288 */ 115 ecx = esi; /* 0x400140EA: mov ecx, esi */ 116 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x400140EC: call dword ptr [0x400161e4] */ 117 RECOMP_FLAGS_IN(); 118 PUSH32(esp, 0xFFFFFFFFu); /* 0x400140F2: push -1 */ 119 PUSH32(esp, 0x4001C27Cu); /* 0x400140F4: push 0x4001c27c */ 120 PUSH32(esp, 0x4001C240u); /* 0x400140F9: push 0x4001c240 */ 121 PUSH32(esp, 0x80u); /* 0x400140FE: push 0x80 */ 122 PUSH32(esp, esi); /* 0x40014103: push esi */ 123 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x40014104: call dword ptr [0x400161e8] */ 124 RECOMP_FLAGS_IN(); 125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 127 esp = esp + 0x14u; /* 0x4001410A: add esp, 0x14 */ 128 _flag_k = FK_ADD; 129 L_4001410D: 130 esi = MEM32(ebx + 0xC); /* 0x4001410D: mov esi, dword ptr [ebx + 0xc] */ 131 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x44u); 132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 133 esi = esi + 0x44u; /* 0x40014110: add esi, 0x44 */ 134 _flag_k = FK_ADD; 135 PUSH32(esp, esi); /* 0x40014113: push esi */ 136 MEM32(ebp + (-0x1C)) = esi; /* 0x40014114: mov dword ptr [ebp - 0x1c], esi */ 137 RECOMP_ICALL(MEM32(0x40016014)); /* 0x40014117: call dword ptr [0x40016014] */ 138 RECOMP_FLAGS_IN(); 139 MEM32(ebp + (-0x18)) = 0; /* 0x4001411D: mov dword ptr [ebp - 0x18], 0 */ 140 eax = MEM32(ebx + 0xC); /* 0x40014124: mov eax, dword ptr [ebx + 0xc] */ 141 ecx = MEM32(eax + 0x4); /* 0x40014127: mov ecx, dword ptr [eax + 4] */ 142 /* test ecx, ecx */ /* 0x4001412A: test ecx, ecx */ 143 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 144 _cf = 0; 145 _flag_k = FK_TEST; 146 edx = ecx + (-0x1); /* 0x4001412C: lea edx, [ecx - 1] */ 147 MEM32(eax + 0x4) = edx; /* 0x4001412F: mov dword ptr [eax + 4], edx */ 148 if (TEST_NZ(_flag_a, _flag_b)) goto L_4001419F; /* 0x40014132: jne 0x4001419f */ 149 L_40014134: 150 PUSH32(esp, esi); /* 0x40014134: push esi */ 151 MEM32(ebp + (-0x18)) = 0xFFFFFFFFu; /* 0x40014135: mov dword ptr [ebp - 0x18], 0xffffffff */ 152 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4001413C: call dword ptr [0x40016010] */ 153 RECOMP_FLAGS_IN(); 154 esi = MEM32(ebx + 0xC); /* 0x40014142: mov esi, dword ptr [ebx + 0xc] */ 155 /* test esi, esi */ /* 0x40014145: test esi, esi */ 156 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 157 _cf = 0; 158 _flag_k = FK_TEST; 159 MEM32(ebp + (-0x14)) = esi; /* 0x40014147: mov dword ptr [ebp - 0x14], esi */ 160 if (TEST_Z(_flag_a, _flag_b)) goto L_400141A6; /* 0x4001414A: je 0x400141a6 */ 161 L_4001414C: 162 eax = MEM32(esi); /* 0x4001414C: mov eax, dword ptr [esi] */ 163 PUSH32(esp, eax); /* 0x4001414E: push eax */ 164 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x4001414F: mov byte ptr [ebp - 4], 3 */ 165 RECOMP_ICALL(0x400146F2u); /* 0x40014153: call 0x400146f2 */ /* not lifted */ 166 RECOMP_FLAGS_IN(); 167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 169 esp = esp + 4; /* 0x40014158: add esp, 4 */ 170 _flag_k = FK_ADD; 171 ecx = esi + 0x44; /* 0x4001415B: lea ecx, [esi + 0x44] */ 172 RECOMP_ICALL(MEM32(0x400161EC)); /* 0x4001415E: call dword ptr [0x400161ec] */ 173 RECOMP_FLAGS_IN(); 174 ecx = esi + 0x14; /* 0x40014164: lea ecx, [esi + 0x14] */ 175 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x40014167: mov byte ptr [ebp - 4], 2 */ 176 RECOMP_ICALL(MEM32(0x400161F0)); /* 0x4001416B: call dword ptr [0x400161f0] */ 177 RECOMP_FLAGS_IN(); 178 edi = esi + 0x8; /* 0x40014171: lea edi, [esi + 8] */ 179 ecx = edi; /* 0x40014174: mov ecx, edi */ 180 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x40014176: mov byte ptr [ebp - 4], 1 */ 181 RECOMP_ICALL(0x40010C80u); /* 0x4001417A: call 0x40010c80 */ /* not lifted */ 182 RECOMP_FLAGS_IN(); 183 eax = MEM32(edi); /* 0x4001417F: mov eax, dword ptr [edi] */ 184 /* test eax, eax */ /* 0x40014181: test eax, eax */ 185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 186 _cf = 0; 187 _flag_k = FK_TEST; 188 if (TEST_Z(_flag_a, _flag_b)) goto L_4001418E; /* 0x40014183: je 0x4001418e */ 189 L_40014185: 190 ecx = MEM32(edi + 0x8); /* 0x40014185: mov ecx, dword ptr [edi + 8] */ 191 edx = MEM32(ecx); /* 0x40014188: mov edx, dword ptr [ecx] */ 192 PUSH32(esp, eax); /* 0x4001418A: push eax */ 193 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4001418B: call dword ptr [edx + 0xc] */ 194 RECOMP_FLAGS_IN(); 195 L_4001418E: 196 PUSH32(esp, esi); /* 0x4001418E: push esi */ 197 MEM32(edi) = 0; /* 0x4001418F: mov dword ptr [edi], 0 */ 198 RECOMP_ICALL(0x400146F2u); /* 0x40014195: call 0x400146f2 */ /* not lifted */ 199 RECOMP_FLAGS_IN(); 200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 202 esp = esp + 4; /* 0x4001419A: add esp, 4 */ 203 _flag_k = FK_ADD; 204 goto L_400141A6; /* 0x4001419D: jmp 0x400141a6 */ 205 L_4001419F: 206 PUSH32(esp, esi); /* 0x4001419F: push esi */ 207 RECOMP_ICALL(MEM32(0x40016010)); /* 0x400141A0: call dword ptr [0x40016010] */ 208 RECOMP_FLAGS_IN(); 209 L_400141A6: 210 ecx = ebx; /* 0x400141A6: mov ecx, ebx */ 211 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x400141A8: mov dword ptr [ebp - 4], 0xffffffff */ 212 RECOMP_ICALL(MEM32(0x4001611C)); /* 0x400141AF: call dword ptr [0x4001611c] */ 213 RECOMP_FLAGS_IN(); 214 ecx = MEM32(ebp + (-0xC)); /* 0x400141B5: mov ecx, dword ptr [ebp - 0xc] */ 215 edi = POP32_VAL(esp); /* 0x400141B8: pop edi */ 216 esi = POP32_VAL(esp); /* 0x400141B9: pop esi */ 217 ebx = POP32_VAL(esp); /* 0x400141BA: pop ebx */ 218 MEM32(FS_BASE + (0)) = ecx; /* 0x400141BB: mov dword ptr fs:[0], ecx */ 219 esp = ebp; /* 0x400141C2: mov esp, ebp */ 220 ebp = POP32_VAL(esp); /* 0x400141C4: pop ebp */ 221 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400141C5: ret */ 222 RECOMP_REGS_OUT(); 223 } 224 225 void sub_40014124(void) { 226 int _fpu_cmp = 0; 227 uint32_t _cf = 0; 228 int _df = 1; 229 uint32_t _flag_k = FK_NONE; 230 uint32_t _flag_a = 0, _flag_b = 0; 231 uint32_t _itail_tgt = 0; 232 RECOMP_REGS_LOCALS 233 RECOMP_ENTER(0x40014124u); 234 235 L_40014124: 236 eax = MEM32(ebx + 0xC); /* 0x40014124: mov eax, dword ptr [ebx + 0xc] */ 237 ecx = MEM32(eax + 0x4); /* 0x40014127: mov ecx, dword ptr [eax + 4] */ 238 /* test ecx, ecx */ /* 0x4001412A: test ecx, ecx */ 239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 240 _cf = 0; 241 _flag_k = FK_TEST; 242 edx = ecx + (-0x1); /* 0x4001412C: lea edx, [ecx - 1] */ 243 MEM32(eax + 0x4) = edx; /* 0x4001412F: mov dword ptr [eax + 4], edx */ 244 if (TEST_NZ(_flag_a, _flag_b)) goto L_4001419F; /* 0x40014132: jne 0x4001419f */ 245 L_40014134: 246 PUSH32(esp, esi); /* 0x40014134: push esi */ 247 MEM32(ebp + (-0x18)) = 0xFFFFFFFFu; /* 0x40014135: mov dword ptr [ebp - 0x18], 0xffffffff */ 248 RECOMP_ICALL(MEM32(0x40016010)); /* 0x4001413C: call dword ptr [0x40016010] */ 249 RECOMP_FLAGS_IN(); 250 esi = MEM32(ebx + 0xC); /* 0x40014142: mov esi, dword ptr [ebx + 0xc] */ 251 /* test esi, esi */ /* 0x40014145: test esi, esi */ 252 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 253 _cf = 0; 254 _flag_k = FK_TEST; 255 MEM32(ebp + (-0x14)) = esi; /* 0x40014147: mov dword ptr [ebp - 0x14], esi */ 256 if (TEST_Z(_flag_a, _flag_b)) goto L_400141A6; /* 0x4001414A: je 0x400141a6 */ 257 L_4001414C: 258 eax = MEM32(esi); /* 0x4001414C: mov eax, dword ptr [esi] */ 259 PUSH32(esp, eax); /* 0x4001414E: push eax */ 260 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x4001414F: mov byte ptr [ebp - 4], 3 */ 261 RECOMP_ICALL(0x400146F2u); /* 0x40014153: call 0x400146f2 */ /* not lifted */ 262 RECOMP_FLAGS_IN(); 263 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 265 esp = esp + 4; /* 0x40014158: add esp, 4 */ 266 _flag_k = FK_ADD; 267 ecx = esi + 0x44; /* 0x4001415B: lea ecx, [esi + 0x44] */ 268 RECOMP_ICALL(MEM32(0x400161EC)); /* 0x4001415E: call dword ptr [0x400161ec] */ 269 RECOMP_FLAGS_IN(); 270 ecx = esi + 0x14; /* 0x40014164: lea ecx, [esi + 0x14] */ 271 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x40014167: mov byte ptr [ebp - 4], 2 */ 272 RECOMP_ICALL(MEM32(0x400161F0)); /* 0x4001416B: call dword ptr [0x400161f0] */ 273 RECOMP_FLAGS_IN(); 274 edi = esi + 0x8; /* 0x40014171: lea edi, [esi + 8] */ 275 ecx = edi; /* 0x40014174: mov ecx, edi */ 276 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x40014176: mov byte ptr [ebp - 4], 1 */ 277 RECOMP_ICALL(0x40010C80u); /* 0x4001417A: call 0x40010c80 */ /* not lifted */ 278 RECOMP_FLAGS_IN(); 279 eax = MEM32(edi); /* 0x4001417F: mov eax, dword ptr [edi] */ 280 /* test eax, eax */ /* 0x40014181: test eax, eax */ 281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 282 _cf = 0; 283 _flag_k = FK_TEST; 284 if (TEST_Z(_flag_a, _flag_b)) goto L_4001418E; /* 0x40014183: je 0x4001418e */ 285 L_40014185: 286 ecx = MEM32(edi + 0x8); /* 0x40014185: mov ecx, dword ptr [edi + 8] */ 287 edx = MEM32(ecx); /* 0x40014188: mov edx, dword ptr [ecx] */ 288 PUSH32(esp, eax); /* 0x4001418A: push eax */ 289 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4001418B: call dword ptr [edx + 0xc] */ 290 RECOMP_FLAGS_IN(); 291 L_4001418E: 292 PUSH32(esp, esi); /* 0x4001418E: push esi */ 293 MEM32(edi) = 0; /* 0x4001418F: mov dword ptr [edi], 0 */ 294 RECOMP_ICALL(0x400146F2u); /* 0x40014195: call 0x400146f2 */ /* not lifted */ 295 RECOMP_FLAGS_IN(); 296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 298 esp = esp + 4; /* 0x4001419A: add esp, 4 */ 299 _flag_k = FK_ADD; 300 goto L_400141A6; /* 0x4001419D: jmp 0x400141a6 */ 301 L_4001419F: 302 PUSH32(esp, esi); /* 0x4001419F: push esi */ 303 RECOMP_ICALL(MEM32(0x40016010)); /* 0x400141A0: call dword ptr [0x40016010] */ 304 RECOMP_FLAGS_IN(); 305 L_400141A6: 306 ecx = ebx; /* 0x400141A6: mov ecx, ebx */ 307 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x400141A8: mov dword ptr [ebp - 4], 0xffffffff */ 308 RECOMP_ICALL(MEM32(0x4001611C)); /* 0x400141AF: call dword ptr [0x4001611c] */ 309 RECOMP_FLAGS_IN(); 310 ecx = MEM32(ebp + (-0xC)); /* 0x400141B5: mov ecx, dword ptr [ebp - 0xc] */ 311 edi = POP32_VAL(esp); /* 0x400141B8: pop edi */ 312 esi = POP32_VAL(esp); /* 0x400141B9: pop esi */ 313 ebx = POP32_VAL(esp); /* 0x400141BA: pop ebx */ 314 MEM32(FS_BASE + (0)) = ecx; /* 0x400141BB: mov dword ptr fs:[0], ecx */ 315 esp = ebp; /* 0x400141C2: mov esp, ebp */ 316 ebp = POP32_VAL(esp); /* 0x400141C4: pop ebp */ 317 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400141C5: ret */ 318 RECOMP_REGS_OUT(); 319 } 320 321 void sub_400141A6(void) { 322 int _fpu_cmp = 0; 323 uint32_t _cf = 0; 324 int _df = 1; 325 uint32_t _flag_k = FK_NONE; 326 uint32_t _flag_a = 0, _flag_b = 0; 327 uint32_t _itail_tgt = 0; 328 RECOMP_REGS_LOCALS 329 RECOMP_ENTER(0x400141A6u); 330 331 L_400141A6: 332 ecx = ebx; /* 0x400141A6: mov ecx, ebx */ 333 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x400141A8: mov dword ptr [ebp - 4], 0xffffffff */ 334 RECOMP_ICALL(MEM32(0x4001611C)); /* 0x400141AF: call dword ptr [0x4001611c] */ 335 RECOMP_FLAGS_IN(); 336 ecx = MEM32(ebp + (-0xC)); /* 0x400141B5: mov ecx, dword ptr [ebp - 0xc] */ 337 edi = POP32_VAL(esp); /* 0x400141B8: pop edi */ 338 esi = POP32_VAL(esp); /* 0x400141B9: pop esi */ 339 ebx = POP32_VAL(esp); /* 0x400141BA: pop ebx */ 340 MEM32(FS_BASE + (0)) = ecx; /* 0x400141BB: mov dword ptr fs:[0], ecx */ 341 esp = ebp; /* 0x400141C2: mov esp, ebp */ 342 ebp = POP32_VAL(esp); /* 0x400141C4: pop ebp */ 343 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400141C5: ret */ 344 RECOMP_REGS_OUT(); 345 } 346 347 void sub_400141D0(void) { 348 int _fpu_cmp = 0; 349 uint32_t _cf = 0; 350 int _df = 1; 351 uint32_t _flag_k = FK_NONE; 352 uint32_t _flag_a = 0, _flag_b = 0; 353 uint32_t _itail_tgt = 0; 354 RECOMP_REGS_LOCALS 355 RECOMP_ENTER(0x400141D0u); 356 357 L_400141D0: 358 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 359 eax = eax | 0xFFFFFFFFu; /* 0x400141D0: or eax, 0xffffffff */ 360 _cf = 0; 361 _flag_k = FK_TEST; 362 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400141D3: ret */ 363 RECOMP_REGS_OUT(); 364 } 365 366 void sub_400141E0(void) { 367 int _fpu_cmp = 0; 368 uint32_t _cf = 0; 369 int _df = 1; 370 uint32_t _flag_k = FK_NONE; 371 uint32_t _flag_a = 0, _flag_b = 0; 372 uint32_t _itail_tgt = 0; 373 RECOMP_REGS_LOCALS 374 RECOMP_ENTER(0x400141E0u); 375 376 L_400141E0: 377 PUSH32(esp, ebp); /* 0x400141E0: push ebp */ 378 ebp = esp; /* 0x400141E1: mov ebp, esp */ 379 PUSH32(esp, esi); /* 0x400141E3: push esi */ 380 esi = ecx; /* 0x400141E4: mov esi, ecx */ 381 RECOMP_ICALL(0x40014210u); /* 0x400141E6: call 0x40014210 */ /* not lifted */ 382 RECOMP_FLAGS_IN(); 383 /* test MEM8(ebp + 0x8), 1 */ /* 0x400141EB: test byte ptr [ebp + 8], 1 */ 384 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 385 _cf = 0; 386 _flag_k = FK_NARROW(FK_TEST, 24); 387 if (TEST_Z(_flag_a, _flag_b)) goto L_400141FA; /* 0x400141EF: je 0x400141fa */ 388 L_400141F1: 389 PUSH32(esp, esi); /* 0x400141F1: push esi */ 390 RECOMP_ICALL(0x400146F2u); /* 0x400141F2: call 0x400146f2 */ /* not lifted */ 391 RECOMP_FLAGS_IN(); 392 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 393 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 394 esp = esp + 4; /* 0x400141F7: add esp, 4 */ 395 _flag_k = FK_ADD; 396 L_400141FA: 397 eax = esi; /* 0x400141FA: mov eax, esi */ 398 esi = POP32_VAL(esp); /* 0x400141FC: pop esi */ 399 ebp = POP32_VAL(esp); /* 0x400141FD: pop ebp */ 400 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x400141FE: ret 4 */ 401 RECOMP_REGS_OUT(); 402 } 403 404 void sub_40014210(void) { 405 int _fpu_cmp = 0; 406 uint32_t _cf = 0; 407 int _df = 1; 408 uint32_t _flag_k = FK_NONE; 409 uint32_t _flag_a = 0, _flag_b = 0; 410 uint32_t _itail_tgt = 0; 411 RECOMP_REGS_LOCALS 412 RECOMP_ENTER(0x40014210u); 413 414 L_40014210: 415 MEM32(ecx) = 0x4001651Cu; /* 0x40014210: mov dword ptr [ecx], 0x4001651c */ 416 L_40014216: 417 { _itail_tgt = (uint32_t)(MEM32(0x4001611C)); goto _ljump; } 418 { RECOMP_REGS_OUT(); return; } /* end of function */ 419 _ljump: 420 switch (_itail_tgt) { 421 case 0x40014210u: goto L_40014210; 422 case 0x40014216u: goto L_40014216; 423 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 424 } 425 RECOMP_REGS_OUT(); 426 } 427 428 void sub_40014220(void) { 429 int _fpu_cmp = 0; 430 uint32_t _cf = 0; 431 int _df = 1; 432 uint32_t _flag_k = FK_NONE; 433 uint32_t _flag_a = 0, _flag_b = 0; 434 uint32_t _itail_tgt = 0; 435 RECOMP_REGS_LOCALS 436 RECOMP_ENTER(0x40014220u); 437 438 L_40014220: 439 PUSH32(esp, ebp); /* 0x40014220: push ebp */ 440 ebp = esp; /* 0x40014221: mov ebp, esp */ 441 PUSH32(esp, 0xFFFFFFFFu); /* 0x40014223: push -1 */ 442 PUSH32(esp, 0x40015908u); /* 0x40014225: push 0x40015908 */ 443 eax = MEM32(FS_BASE + (0)); /* 0x4001422A: mov eax, dword ptr fs:[0] */ 444 PUSH32(esp, eax); /* 0x40014230: push eax */ 445 MEM32(FS_BASE + (0)) = esp; /* 0x40014231: mov dword ptr fs:[0], esp */ 446 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 448 esp = esp - 0x14u; /* 0x40014238: sub esp, 0x14 */ 449 _flag_k = FK_CMP; 450 PUSH32(esp, ebx); /* 0x4001423B: push ebx */ 451 PUSH32(esp, esi); /* 0x4001423C: push esi */ 452 PUSH32(esp, edi); /* 0x4001423D: push edi */ 453 edi = ecx; /* 0x4001423E: mov edi, ecx */ 454 eax = MEM32(edi); /* 0x40014240: mov eax, dword ptr [edi] */ 455 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 456 esi = 0; /* 0x40014242: xor esi, esi */ 457 _cf = 0; 458 _flag_k = FK_TEST; 459 /* cmp eax, esi */ /* 0x40014244: cmp eax, esi */ 460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 462 _flag_k = FK_CMP; 463 MEM32(ebp + (-0x10)) = edi; /* 0x40014246: mov dword ptr [ebp - 0x10], edi */ 464 if (CMP_NE(_flag_a, _flag_b)) goto L_4001438F; /* 0x40014249: jne 0x4001438f */ 465 L_4001424F: 466 ebx = edi + 0x44; /* 0x4001424F: lea ebx, [edi + 0x44] */ 467 PUSH32(esp, ebx); /* 0x40014252: push ebx */ 468 MEM32(ebp + (-0x18)) = ebx; /* 0x40014253: mov dword ptr [ebp - 0x18], ebx */ 469 RECOMP_ICALL(MEM32(0x40016014)); /* 0x40014256: call dword ptr [0x40016014] */ 470 RECOMP_FLAGS_IN(); 471 MEM32(ebp + (-0x14)) = esi; /* 0x4001425C: mov dword ptr [ebp - 0x14], esi */ 472 /* cmp MEM32(edi), esi */ /* 0x4001425F: cmp dword ptr [edi], esi */ 473 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(esi); 474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 475 _flag_k = FK_CMP; 476 MEM32(ebp + (-0x4)) = esi; /* 0x40014261: mov dword ptr [ebp - 4], esi */ 477 if (CMP_NE(_flag_a, _flag_b)) goto L_400142AE; /* 0x40014264: jne 0x400142ae */ 478 L_40014266: 479 PUSH32(esp, 4); /* 0x40014266: push 4 */ 480 RECOMP_ICALL(0x40014704u); /* 0x40014268: call 0x40014704 */ /* not lifted */ 481 RECOMP_FLAGS_IN(); 482 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 484 esp = esp + 4; /* 0x4001426D: add esp, 4 */ 485 _flag_k = FK_ADD; 486 /* cmp eax, esi */ /* 0x40014270: cmp eax, esi */ 487 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 489 _flag_k = FK_CMP; 490 if (CMP_EQ(_flag_a, _flag_b)) goto L_4001427D; /* 0x40014272: je 0x4001427d */ 491 L_40014274: 492 ecx = MEM32(ebp + 0x8); /* 0x40014274: mov ecx, dword ptr [ebp + 8] */ 493 edx = MEM32(ecx); /* 0x40014277: mov edx, dword ptr [ecx] */ 494 MEM32(eax) = edx; /* 0x40014279: mov dword ptr [eax], edx */ 495 goto L_4001427F; /* 0x4001427B: jmp 0x4001427f */ 496 L_4001427D: 497 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 498 eax = 0; /* 0x4001427D: xor eax, eax */ 499 _cf = 0; 500 _flag_k = FK_TEST; 501 L_4001427F: 502 /* cmp eax, esi */ /* 0x4001427F: cmp eax, esi */ 503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 505 _flag_k = FK_CMP; 506 MEM32(edi) = eax; /* 0x40014281: mov dword ptr [edi], eax */ 507 if (CMP_NE(_flag_a, _flag_b)) goto L_400142AE; /* 0x40014283: jne 0x400142ae */ 508 L_40014285: 509 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x40014285: call dword ptr [0x400160d4] */ 510 RECOMP_FLAGS_IN(); 511 PUSH32(esp, ebx); /* 0x4001428B: push ebx */ 512 MEM32(eax) = 0xCu; /* 0x4001428C: mov dword ptr [eax], 0xc */ 513 RECOMP_ICALL(MEM32(0x40016010)); /* 0x40014292: call dword ptr [0x40016010] */ 514 RECOMP_FLAGS_IN(); 515 edi = POP32_VAL(esp); /* 0x40014298: pop edi */ 516 esi = POP32_VAL(esp); /* 0x40014299: pop esi */ 517 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 518 eax = eax | 0xFFFFFFFFu; /* 0x4001429A: or eax, 0xffffffff */ 519 _cf = 0; 520 _flag_k = FK_TEST; 521 ebx = POP32_VAL(esp); /* 0x4001429D: pop ebx */ 522 ecx = MEM32(ebp + (-0xC)); /* 0x4001429E: mov ecx, dword ptr [ebp - 0xc] */ 523 MEM32(FS_BASE + (0)) = ecx; /* 0x400142A1: mov dword ptr fs:[0], ecx */ 524 esp = ebp; /* 0x400142A8: mov esp, ebp */ 525 ebp = POP32_VAL(esp); /* 0x400142AA: pop ebp */ 526 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400142AB: ret 8 */ 527 L_400142AE: 528 eax = MEM32(edi + 0x8); /* 0x400142AE: mov eax, dword ptr [edi + 8] */ 529 ebx = MEM32(eax); /* 0x400142B1: mov ebx, dword ptr [eax] */ 530 ecx = eax; /* 0x400142B3: mov ecx, eax */ 531 MEM32(ebp + (-0x20)) = ecx; /* 0x400142B5: mov dword ptr [ebp - 0x20], ecx */ 532 L_400142B8: 533 eax = edi + 0x8; /* 0x400142B8: lea eax, [edi + 8] */ 534 /* cmp eax, eax */ /* 0x400142BB: cmp eax, eax */ 535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 537 _flag_k = FK_CMP; 538 if (CMP_NE(_flag_a, _flag_b)) goto L_400142C8; /* 0x400142BD: jne 0x400142c8 */ 539 L_400142BF: 540 /* cmp ebx, MEM32(ebp + (-0x20)) */ /* 0x400142BF: cmp ebx, dword ptr [ebp - 0x20] */ 541 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 543 _flag_k = FK_CMP; 544 if (CMP_EQ(_flag_a, _flag_b)) goto L_40014365; /* 0x400142C2: je 0x40014365 */ 545 L_400142C8: 546 /* cmp ebx, MEM32(eax) */ /* 0x400142C8: cmp ebx, dword ptr [eax] */ 547 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 549 _flag_k = FK_CMP; 550 MEM32(ebp + 0x8) = esi; /* 0x400142CA: mov dword ptr [ebp + 8], esi */ 551 if (CMP_EQ(_flag_a, _flag_b)) goto L_400142E2; /* 0x400142CD: je 0x400142e2 */ 552 L_400142CF: 553 ecx = MEM32(ebx + 0x4); /* 0x400142CF: mov ecx, dword ptr [ebx + 4] */ 554 edx = MEM32(ecx); /* 0x400142D2: mov edx, dword ptr [ecx] */ 555 eax = ebx + 0x4; /* 0x400142D4: lea eax, [ebx + 4] */ 556 eax = MEM32(ebp + 0xC); /* 0x400142D7: mov eax, dword ptr [ebp + 0xc] */ 557 PUSH32(esp, eax); /* 0x400142DA: push eax */ 558 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x400142DB: call dword ptr [edx + 4] */ 559 RECOMP_FLAGS_IN(); 560 ebx = MEM32(ebx); /* 0x400142DE: mov ebx, dword ptr [ebx] */ 561 RECOMP_BACKEDGE(); 562 goto L_400142B8; /* 0x400142E0: jmp 0x400142b8 */ 563 L_400142E2: 564 RECOMP_ICALL(MEM32(0x40016018)); /* 0x400142E2: call dword ptr [0x40016018] */ 565 RECOMP_FLAGS_IN(); 566 edi = eax; /* 0x400142E8: mov edi, eax */ 567 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x400142EA: call dword ptr [0x400160d4] */ 568 RECOMP_FLAGS_IN(); 569 eax = MEM32(eax); /* 0x400142F0: mov eax, dword ptr [eax] */ 570 /* cmp eax, esi */ /* 0x400142F2: cmp eax, esi */ 571 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 573 _flag_k = FK_CMP; 574 if (CMP_EQ(_flag_a, _flag_b)) goto L_400142F8; /* 0x400142F4: je 0x400142f8 */ 575 L_400142F6: 576 edi = eax; /* 0x400142F6: mov edi, eax */ 577 L_400142F8: 578 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x400142F8: call dword ptr [0x400161d4] */ 579 RECOMP_FLAGS_IN(); 580 esi = eax; /* 0x400142FE: mov esi, eax */ 581 ecx = esi; /* 0x40014300: mov ecx, esi */ 582 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x40014302: call dword ptr [0x400161d8] */ 583 RECOMP_FLAGS_IN(); 584 PUSH32(esp, eax); /* 0x40014308: push eax */ 585 ecx = esi; /* 0x40014309: mov ecx, esi */ 586 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x4001430B: call dword ptr [0x400161dc] */ 587 RECOMP_FLAGS_IN(); 588 PUSH32(esp, eax); /* 0x40014311: push eax */ 589 ecx = esi; /* 0x40014312: mov ecx, esi */ 590 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x40014314: call dword ptr [0x400161e0] */ 591 RECOMP_FLAGS_IN(); 592 PUSH32(esp, eax); /* 0x4001431A: push eax */ 593 PUSH32(esp, edi); /* 0x4001431B: push edi */ 594 PUSH32(esp, 0xFFFFFFFFu); /* 0x4001431C: push -1 */ 595 PUSH32(esp, 0x7EDu); /* 0x4001431E: push 0x7ed */ 596 PUSH32(esp, 0x4001CF80u); /* 0x40014323: push 0x4001cf80 */ 597 ecx = esi; /* 0x40014328: mov ecx, esi */ 598 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x4001432A: call dword ptr [0x400161e4] */ 599 RECOMP_FLAGS_IN(); 600 PUSH32(esp, 0xFFFFFFFFu); /* 0x40014330: push -1 */ 601 PUSH32(esp, 0x4001CF74u); /* 0x40014332: push 0x4001cf74 */ 602 PUSH32(esp, 0x4001C240u); /* 0x40014337: push 0x4001c240 */ 603 PUSH32(esp, 0x80u); /* 0x4001433C: push 0x80 */ 604 PUSH32(esp, esi); /* 0x40014341: push esi */ 605 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x40014342: call dword ptr [0x400161e8] */ 606 RECOMP_FLAGS_IN(); 607 eax = MEM32(ebp + 0x8); /* 0x40014348: mov eax, dword ptr [ebp + 8] */ 608 ecx = MEM32(eax); /* 0x4001434B: mov ecx, dword ptr [eax] */ 609 eax = MEM32(ebp + 0xC); /* 0x4001434D: mov eax, dword ptr [ebp + 0xc] */ 610 edx = MEM32(ecx); /* 0x40014350: mov edx, dword ptr [ecx] */ 611 edi = MEM32(ebp + (-0x10)); /* 0x40014352: mov edi, dword ptr [ebp - 0x10] */ 612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 614 esp = esp + 0x14u; /* 0x40014355: add esp, 0x14 */ 615 _flag_k = FK_ADD; 616 PUSH32(esp, eax); /* 0x40014358: push eax */ 617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 618 esi = 0; /* 0x40014359: xor esi, esi */ 619 _cf = 0; 620 _flag_k = FK_TEST; 621 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4001435B: call dword ptr [edx + 4] */ 622 RECOMP_FLAGS_IN(); 623 ebx = MEM32(ebx); /* 0x4001435E: mov ebx, dword ptr [ebx] */ 624 RECOMP_BACKEDGE(); 625 goto L_400142B8; /* 0x40014360: jmp 0x400142b8 */ 626 L_40014365: 627 ecx = edi + 0x14; /* 0x40014365: lea ecx, [edi + 0x14] */ 628 RECOMP_ICALL(MEM32(0x40016170)); /* 0x40014368: call dword ptr [0x40016170] */ 629 RECOMP_FLAGS_IN(); 630 ecx = MEM32(ebp + (-0x18)); /* 0x4001436E: mov ecx, dword ptr [ebp - 0x18] */ 631 PUSH32(esp, ecx); /* 0x40014371: push ecx */ 632 esi = eax; /* 0x40014372: mov esi, eax */ 633 RECOMP_ICALL(MEM32(0x40016010)); /* 0x40014374: call dword ptr [0x40016010] */ 634 RECOMP_FLAGS_IN(); 635 edi = POP32_VAL(esp); /* 0x4001437A: pop edi */ 636 eax = esi; /* 0x4001437B: mov eax, esi */ 637 esi = POP32_VAL(esp); /* 0x4001437D: pop esi */ 638 ebx = POP32_VAL(esp); /* 0x4001437E: pop ebx */ 639 ecx = MEM32(ebp + (-0xC)); /* 0x4001437F: mov ecx, dword ptr [ebp - 0xc] */ 640 MEM32(FS_BASE + (0)) = ecx; /* 0x40014382: mov dword ptr fs:[0], ecx */ 641 esp = ebp; /* 0x40014389: mov esp, ebp */ 642 ebp = POP32_VAL(esp); /* 0x4001438B: pop ebp */ 643 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4001438C: ret 8 */ 644 L_4001438F: 645 ecx = MEM32(ebp + (-0xC)); /* 0x4001438F: mov ecx, dword ptr [ebp - 0xc] */ 646 edi = POP32_VAL(esp); /* 0x40014392: pop edi */ 647 esi = POP32_VAL(esp); /* 0x40014393: pop esi */ 648 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 649 eax = 0; /* 0x40014394: xor eax, eax */ 650 _cf = 0; 651 _flag_k = FK_TEST; 652 ebx = POP32_VAL(esp); /* 0x40014396: pop ebx */ 653 MEM32(FS_BASE + (0)) = ecx; /* 0x40014397: mov dword ptr fs:[0], ecx */ 654 esp = ebp; /* 0x4001439E: mov esp, ebp */ 655 ebp = POP32_VAL(esp); /* 0x400143A0: pop ebp */ 656 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x400143A1: ret 8 */ 657 RECOMP_REGS_OUT(); 658 } 659 660 void sub_400142B8(void) { 661 int _fpu_cmp = 0; 662 uint32_t _cf = 0; 663 int _df = 1; 664 uint32_t _flag_k = FK_NONE; 665 uint32_t _flag_a = 0, _flag_b = 0; 666 uint32_t _itail_tgt = 0; 667 RECOMP_REGS_LOCALS 668 RECOMP_ENTER(0x400142B8u); 669 670 L_400142B8: 671 eax = edi + 0x8; /* 0x400142B8: lea eax, [edi + 8] */ 672 /* cmp eax, eax */ /* 0x400142BB: cmp eax, eax */ 673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 675 _flag_k = FK_CMP; 676 if (CMP_NE(_flag_a, _flag_b)) goto L_400142C8; /* 0x400142BD: jne 0x400142c8 */ 677 L_400142BF: 678 /* cmp ebx, MEM32(ebp + (-0x20)) */ /* 0x400142BF: cmp ebx, dword ptr [ebp - 0x20] */ 679 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 681 _flag_k = FK_CMP; 682 if (CMP_EQ(_flag_a, _flag_b)) goto L_40014365; /* 0x400142C2: je 0x40014365 */ 683 L_400142C8: 684 /* cmp ebx, MEM32(eax) */ /* 0x400142C8: cmp ebx, dword ptr [eax] */ 685 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 687 _flag_k = FK_CMP; 688 MEM32(ebp + 0x8) = esi; /* 0x400142CA: mov dword ptr [ebp + 8], esi */ 689 if (CMP_EQ(_flag_a, _flag_b)) goto L_400142E2; /* 0x400142CD: je 0x400142e2 */ 690 L_400142CF: 691 ecx = MEM32(ebx + 0x4); /* 0x400142CF: mov ecx, dword ptr [ebx + 4] */ 692 edx = MEM32(ecx); /* 0x400142D2: mov edx, dword ptr [ecx] */ 693 eax = ebx + 0x4; /* 0x400142D4: lea eax, [ebx + 4] */ 694 eax = MEM32(ebp + 0xC); /* 0x400142D7: mov eax, dword ptr [ebp + 0xc] */ 695 PUSH32(esp, eax); /* 0x400142DA: push eax */ 696 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x400142DB: call dword ptr [edx + 4] */ 697 RECOMP_FLAGS_IN(); 698 ebx = MEM32(ebx); /* 0x400142DE: mov ebx, dword ptr [ebx] */ 699 RECOMP_BACKEDGE(); 700 goto L_400142B8; /* 0x400142E0: jmp 0x400142b8 */ 701 L_400142E2: 702 RECOMP_ICALL(MEM32(0x40016018)); /* 0x400142E2: call dword ptr [0x40016018] */ 703 RECOMP_FLAGS_IN(); 704 edi = eax; /* 0x400142E8: mov edi, eax */ 705 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x400142EA: call dword ptr [0x400160d4] */ 706 RECOMP_FLAGS_IN(); 707 eax = MEM32(eax); /* 0x400142F0: mov eax, dword ptr [eax] */ 708 /* cmp eax, esi */ /* 0x400142F2: cmp eax, esi */ 709 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 711 _flag_k = FK_CMP; 712 if (CMP_EQ(_flag_a, _flag_b)) goto L_400142F8; /* 0x400142F4: je 0x400142f8 */ 713 L_400142F6: 714 edi = eax; /* 0x400142F6: mov edi, eax */ 715 L_400142F8: 716 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x400142F8: call dword ptr [0x400161d4] */ 717 RECOMP_FLAGS_IN(); 718 esi = eax; /* 0x400142FE: mov esi, eax */ 719 ecx = esi; /* 0x40014300: mov ecx, esi */ 720 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x40014302: call dword ptr [0x400161d8] */ 721 RECOMP_FLAGS_IN(); 722 PUSH32(esp, eax); /* 0x40014308: push eax */ 723 ecx = esi; /* 0x40014309: mov ecx, esi */ 724 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x4001430B: call dword ptr [0x400161dc] */ 725 RECOMP_FLAGS_IN(); 726 PUSH32(esp, eax); /* 0x40014311: push eax */ 727 ecx = esi; /* 0x40014312: mov ecx, esi */ 728 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x40014314: call dword ptr [0x400161e0] */ 729 RECOMP_FLAGS_IN(); 730 PUSH32(esp, eax); /* 0x4001431A: push eax */ 731 PUSH32(esp, edi); /* 0x4001431B: push edi */ 732 PUSH32(esp, 0xFFFFFFFFu); /* 0x4001431C: push -1 */ 733 PUSH32(esp, 0x7EDu); /* 0x4001431E: push 0x7ed */ 734 PUSH32(esp, 0x4001CF80u); /* 0x40014323: push 0x4001cf80 */ 735 ecx = esi; /* 0x40014328: mov ecx, esi */ 736 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x4001432A: call dword ptr [0x400161e4] */ 737 RECOMP_FLAGS_IN(); 738 PUSH32(esp, 0xFFFFFFFFu); /* 0x40014330: push -1 */ 739 PUSH32(esp, 0x4001CF74u); /* 0x40014332: push 0x4001cf74 */ 740 PUSH32(esp, 0x4001C240u); /* 0x40014337: push 0x4001c240 */ 741 PUSH32(esp, 0x80u); /* 0x4001433C: push 0x80 */ 742 PUSH32(esp, esi); /* 0x40014341: push esi */ 743 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x40014342: call dword ptr [0x400161e8] */ 744 RECOMP_FLAGS_IN(); 745 eax = MEM32(ebp + 0x8); /* 0x40014348: mov eax, dword ptr [ebp + 8] */ 746 ecx = MEM32(eax); /* 0x4001434B: mov ecx, dword ptr [eax] */ 747 eax = MEM32(ebp + 0xC); /* 0x4001434D: mov eax, dword ptr [ebp + 0xc] */ 748 edx = MEM32(ecx); /* 0x40014350: mov edx, dword ptr [ecx] */ 749 edi = MEM32(ebp + (-0x10)); /* 0x40014352: mov edi, dword ptr [ebp - 0x10] */ 750 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 752 esp = esp + 0x14u; /* 0x40014355: add esp, 0x14 */ 753 _flag_k = FK_ADD; 754 PUSH32(esp, eax); /* 0x40014358: push eax */ 755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 756 esi = 0; /* 0x40014359: xor esi, esi */ 757 _cf = 0; 758 _flag_k = FK_TEST; 759 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4001435B: call dword ptr [edx + 4] */ 760 RECOMP_FLAGS_IN(); 761 ebx = MEM32(ebx); /* 0x4001435E: mov ebx, dword ptr [ebx] */ 762 RECOMP_BACKEDGE(); 763 goto L_400142B8; /* 0x40014360: jmp 0x400142b8 */ 764 L_40014365: 765 ecx = edi + 0x14; /* 0x40014365: lea ecx, [edi + 0x14] */ 766 RECOMP_ICALL(MEM32(0x40016170)); /* 0x40014368: call dword ptr [0x40016170] */ 767 RECOMP_FLAGS_IN(); 768 ecx = MEM32(ebp + (-0x18)); /* 0x4001436E: mov ecx, dword ptr [ebp - 0x18] */ 769 PUSH32(esp, ecx); /* 0x40014371: push ecx */ 770 esi = eax; /* 0x40014372: mov esi, eax */ 771 RECOMP_ICALL(MEM32(0x40016010)); /* 0x40014374: call dword ptr [0x40016010] */ 772 RECOMP_FLAGS_IN(); 773 edi = POP32_VAL(esp); /* 0x4001437A: pop edi */ 774 eax = esi; /* 0x4001437B: mov eax, esi */ 775 esi = POP32_VAL(esp); /* 0x4001437D: pop esi */ 776 ebx = POP32_VAL(esp); /* 0x4001437E: pop ebx */ 777 ecx = MEM32(ebp + (-0xC)); /* 0x4001437F: mov ecx, dword ptr [ebp - 0xc] */ 778 MEM32(FS_BASE + (0)) = ecx; /* 0x40014382: mov dword ptr fs:[0], ecx */ 779 esp = ebp; /* 0x40014389: mov esp, ebp */ 780 ebp = POP32_VAL(esp); /* 0x4001438B: pop ebp */ 781 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4001438C: ret 8 */ 782 RECOMP_REGS_OUT(); 783 } 784 785 void sub_400143B0(void) { 786 int _fpu_cmp = 0; 787 uint32_t _cf = 0; 788 int _df = 1; 789 uint32_t _flag_k = FK_NONE; 790 uint32_t _flag_a = 0, _flag_b = 0; 791 uint32_t _itail_tgt = 0; 792 RECOMP_REGS_LOCALS 793 RECOMP_ENTER(0x400143B0u); 794 795 L_400143B0: 796 PUSH32(esp, ebp); /* 0x400143B0: push ebp */ 797 ebp = esp; /* 0x400143B1: mov ebp, esp */ 798 PUSH32(esp, 0xFFFFFFFFu); /* 0x400143B3: push -1 */ 799 PUSH32(esp, 0x40015928u); /* 0x400143B5: push 0x40015928 */ 800 eax = MEM32(FS_BASE + (0)); /* 0x400143BA: mov eax, dword ptr fs:[0] */ 801 PUSH32(esp, eax); /* 0x400143C0: push eax */ 802 MEM32(FS_BASE + (0)) = esp; /* 0x400143C1: mov dword ptr fs:[0], esp */ 803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 805 esp = esp - 0x14u; /* 0x400143C8: sub esp, 0x14 */ 806 _flag_k = FK_CMP; 807 PUSH32(esp, ebx); /* 0x400143CB: push ebx */ 808 PUSH32(esp, esi); /* 0x400143CC: push esi */ 809 PUSH32(esp, edi); /* 0x400143CD: push edi */ 810 edi = ecx; /* 0x400143CE: mov edi, ecx */ 811 eax = MEM32(edi); /* 0x400143D0: mov eax, dword ptr [edi] */ 812 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 813 esi = 0; /* 0x400143D2: xor esi, esi */ 814 _cf = 0; 815 _flag_k = FK_TEST; 816 /* cmp eax, esi */ /* 0x400143D4: cmp eax, esi */ 817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 819 _flag_k = FK_CMP; 820 MEM32(ebp + (-0x10)) = edi; /* 0x400143D6: mov dword ptr [ebp - 0x10], edi */ 821 if (CMP_NE(_flag_a, _flag_b)) goto L_4001451F; /* 0x400143D9: jne 0x4001451f */ 822 L_400143DF: 823 ebx = edi + 0x44; /* 0x400143DF: lea ebx, [edi + 0x44] */ 824 PUSH32(esp, ebx); /* 0x400143E2: push ebx */ 825 MEM32(ebp + (-0x18)) = ebx; /* 0x400143E3: mov dword ptr [ebp - 0x18], ebx */ 826 RECOMP_ICALL(MEM32(0x40016014)); /* 0x400143E6: call dword ptr [0x40016014] */ 827 RECOMP_FLAGS_IN(); 828 MEM32(ebp + (-0x14)) = esi; /* 0x400143EC: mov dword ptr [ebp - 0x14], esi */ 829 /* cmp MEM32(edi), esi */ /* 0x400143EF: cmp dword ptr [edi], esi */ 830 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(esi); 831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 832 _flag_k = FK_CMP; 833 MEM32(ebp + (-0x4)) = esi; /* 0x400143F1: mov dword ptr [ebp - 4], esi */ 834 if (CMP_NE(_flag_a, _flag_b)) goto L_4001443E; /* 0x400143F4: jne 0x4001443e */ 835 L_400143F6: 836 PUSH32(esp, 4); /* 0x400143F6: push 4 */ 837 RECOMP_ICALL(0x40014704u); /* 0x400143F8: call 0x40014704 */ /* not lifted */ 838 RECOMP_FLAGS_IN(); 839 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 841 esp = esp + 4; /* 0x400143FD: add esp, 4 */ 842 _flag_k = FK_ADD; 843 /* cmp eax, esi */ /* 0x40014400: cmp eax, esi */ 844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 846 _flag_k = FK_CMP; 847 if (CMP_EQ(_flag_a, _flag_b)) goto L_4001440D; /* 0x40014402: je 0x4001440d */ 848 L_40014404: 849 ecx = MEM32(ebp + 0x8); /* 0x40014404: mov ecx, dword ptr [ebp + 8] */ 850 edx = MEM32(ecx); /* 0x40014407: mov edx, dword ptr [ecx] */ 851 MEM32(eax) = edx; /* 0x40014409: mov dword ptr [eax], edx */ 852 goto L_4001440F; /* 0x4001440B: jmp 0x4001440f */ 853 L_4001440D: 854 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 855 eax = 0; /* 0x4001440D: xor eax, eax */ 856 _cf = 0; 857 _flag_k = FK_TEST; 858 L_4001440F: 859 /* cmp eax, esi */ /* 0x4001440F: cmp eax, esi */ 860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 862 _flag_k = FK_CMP; 863 MEM32(edi) = eax; /* 0x40014411: mov dword ptr [edi], eax */ 864 if (CMP_NE(_flag_a, _flag_b)) goto L_4001443E; /* 0x40014413: jne 0x4001443e */ 865 L_40014415: 866 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x40014415: call dword ptr [0x400160d4] */ 867 RECOMP_FLAGS_IN(); 868 PUSH32(esp, ebx); /* 0x4001441B: push ebx */ 869 MEM32(eax) = 0xCu; /* 0x4001441C: mov dword ptr [eax], 0xc */ 870 RECOMP_ICALL(MEM32(0x40016010)); /* 0x40014422: call dword ptr [0x40016010] */ 871 RECOMP_FLAGS_IN(); 872 edi = POP32_VAL(esp); /* 0x40014428: pop edi */ 873 esi = POP32_VAL(esp); /* 0x40014429: pop esi */ 874 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 875 eax = eax | 0xFFFFFFFFu; /* 0x4001442A: or eax, 0xffffffff */ 876 _cf = 0; 877 _flag_k = FK_TEST; 878 ebx = POP32_VAL(esp); /* 0x4001442D: pop ebx */ 879 ecx = MEM32(ebp + (-0xC)); /* 0x4001442E: mov ecx, dword ptr [ebp - 0xc] */ 880 MEM32(FS_BASE + (0)) = ecx; /* 0x40014431: mov dword ptr fs:[0], ecx */ 881 esp = ebp; /* 0x40014438: mov esp, ebp */ 882 ebp = POP32_VAL(esp); /* 0x4001443A: pop ebp */ 883 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4001443B: ret 8 */ 884 L_4001443E: 885 eax = MEM32(edi + 0x8); /* 0x4001443E: mov eax, dword ptr [edi + 8] */ 886 ebx = MEM32(eax); /* 0x40014441: mov ebx, dword ptr [eax] */ 887 ecx = eax; /* 0x40014443: mov ecx, eax */ 888 MEM32(ebp + (-0x20)) = ecx; /* 0x40014445: mov dword ptr [ebp - 0x20], ecx */ 889 L_40014448: 890 eax = edi + 0x8; /* 0x40014448: lea eax, [edi + 8] */ 891 /* cmp eax, eax */ /* 0x4001444B: cmp eax, eax */ 892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 894 _flag_k = FK_CMP; 895 if (CMP_NE(_flag_a, _flag_b)) goto L_40014458; /* 0x4001444D: jne 0x40014458 */ 896 L_4001444F: 897 /* cmp ebx, MEM32(ebp + (-0x20)) */ /* 0x4001444F: cmp ebx, dword ptr [ebp - 0x20] */ 898 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 899 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 900 _flag_k = FK_CMP; 901 if (CMP_EQ(_flag_a, _flag_b)) goto L_400144F5; /* 0x40014452: je 0x400144f5 */ 902 L_40014458: 903 /* cmp ebx, MEM32(eax) */ /* 0x40014458: cmp ebx, dword ptr [eax] */ 904 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 906 _flag_k = FK_CMP; 907 MEM32(ebp + 0x8) = esi; /* 0x4001445A: mov dword ptr [ebp + 8], esi */ 908 if (CMP_EQ(_flag_a, _flag_b)) goto L_40014472; /* 0x4001445D: je 0x40014472 */ 909 L_4001445F: 910 ecx = MEM32(ebx + 0x4); /* 0x4001445F: mov ecx, dword ptr [ebx + 4] */ 911 edx = MEM32(ecx); /* 0x40014462: mov edx, dword ptr [ecx] */ 912 eax = ebx + 0x4; /* 0x40014464: lea eax, [ebx + 4] */ 913 eax = MEM32(ebp + 0xC); /* 0x40014467: mov eax, dword ptr [ebp + 0xc] */ 914 PUSH32(esp, eax); /* 0x4001446A: push eax */ 915 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4001446B: call dword ptr [edx + 4] */ 916 RECOMP_FLAGS_IN(); 917 ebx = MEM32(ebx); /* 0x4001446E: mov ebx, dword ptr [ebx] */ 918 RECOMP_BACKEDGE(); 919 goto L_40014448; /* 0x40014470: jmp 0x40014448 */ 920 L_40014472: 921 RECOMP_ICALL(MEM32(0x40016018)); /* 0x40014472: call dword ptr [0x40016018] */ 922 RECOMP_FLAGS_IN(); 923 edi = eax; /* 0x40014478: mov edi, eax */ 924 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x4001447A: call dword ptr [0x400160d4] */ 925 RECOMP_FLAGS_IN(); 926 eax = MEM32(eax); /* 0x40014480: mov eax, dword ptr [eax] */ 927 /* cmp eax, esi */ /* 0x40014482: cmp eax, esi */ 928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 930 _flag_k = FK_CMP; 931 if (CMP_EQ(_flag_a, _flag_b)) goto L_40014488; /* 0x40014484: je 0x40014488 */ 932 L_40014486: 933 edi = eax; /* 0x40014486: mov edi, eax */ 934 L_40014488: 935 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x40014488: call dword ptr [0x400161d4] */ 936 RECOMP_FLAGS_IN(); 937 esi = eax; /* 0x4001448E: mov esi, eax */ 938 ecx = esi; /* 0x40014490: mov ecx, esi */ 939 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x40014492: call dword ptr [0x400161d8] */ 940 RECOMP_FLAGS_IN(); 941 PUSH32(esp, eax); /* 0x40014498: push eax */ 942 ecx = esi; /* 0x40014499: mov ecx, esi */ 943 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x4001449B: call dword ptr [0x400161dc] */ 944 RECOMP_FLAGS_IN(); 945 PUSH32(esp, eax); /* 0x400144A1: push eax */ 946 ecx = esi; /* 0x400144A2: mov ecx, esi */ 947 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x400144A4: call dword ptr [0x400161e0] */ 948 RECOMP_FLAGS_IN(); 949 PUSH32(esp, eax); /* 0x400144AA: push eax */ 950 PUSH32(esp, edi); /* 0x400144AB: push edi */ 951 PUSH32(esp, 0xFFFFFFFFu); /* 0x400144AC: push -1 */ 952 PUSH32(esp, 0x7EDu); /* 0x400144AE: push 0x7ed */ 953 PUSH32(esp, 0x4001CF80u); /* 0x400144B3: push 0x4001cf80 */ 954 ecx = esi; /* 0x400144B8: mov ecx, esi */ 955 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x400144BA: call dword ptr [0x400161e4] */ 956 RECOMP_FLAGS_IN(); 957 PUSH32(esp, 0xFFFFFFFFu); /* 0x400144C0: push -1 */ 958 PUSH32(esp, 0x4001CF74u); /* 0x400144C2: push 0x4001cf74 */ 959 PUSH32(esp, 0x4001C240u); /* 0x400144C7: push 0x4001c240 */ 960 PUSH32(esp, 0x80u); /* 0x400144CC: push 0x80 */ 961 PUSH32(esp, esi); /* 0x400144D1: push esi */ 962 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x400144D2: call dword ptr [0x400161e8] */ 963 RECOMP_FLAGS_IN(); 964 eax = MEM32(ebp + 0x8); /* 0x400144D8: mov eax, dword ptr [ebp + 8] */ 965 ecx = MEM32(eax); /* 0x400144DB: mov ecx, dword ptr [eax] */ 966 eax = MEM32(ebp + 0xC); /* 0x400144DD: mov eax, dword ptr [ebp + 0xc] */ 967 edx = MEM32(ecx); /* 0x400144E0: mov edx, dword ptr [ecx] */ 968 edi = MEM32(ebp + (-0x10)); /* 0x400144E2: mov edi, dword ptr [ebp - 0x10] */ 969 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 970 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 971 esp = esp + 0x14u; /* 0x400144E5: add esp, 0x14 */ 972 _flag_k = FK_ADD; 973 PUSH32(esp, eax); /* 0x400144E8: push eax */ 974 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 975 esi = 0; /* 0x400144E9: xor esi, esi */ 976 _cf = 0; 977 _flag_k = FK_TEST; 978 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x400144EB: call dword ptr [edx + 4] */ 979 RECOMP_FLAGS_IN(); 980 ebx = MEM32(ebx); /* 0x400144EE: mov ebx, dword ptr [ebx] */ 981 RECOMP_BACKEDGE(); 982 goto L_40014448; /* 0x400144F0: jmp 0x40014448 */ 983 L_400144F5: 984 ecx = edi + 0x14; /* 0x400144F5: lea ecx, [edi + 0x14] */ 985 RECOMP_ICALL(MEM32(0x40016170)); /* 0x400144F8: call dword ptr [0x40016170] */ 986 RECOMP_FLAGS_IN(); 987 ecx = MEM32(ebp + (-0x18)); /* 0x400144FE: mov ecx, dword ptr [ebp - 0x18] */ 988 PUSH32(esp, ecx); /* 0x40014501: push ecx */ 989 esi = eax; /* 0x40014502: mov esi, eax */ 990 RECOMP_ICALL(MEM32(0x40016010)); /* 0x40014504: call dword ptr [0x40016010] */ 991 RECOMP_FLAGS_IN(); 992 edi = POP32_VAL(esp); /* 0x4001450A: pop edi */ 993 eax = esi; /* 0x4001450B: mov eax, esi */ 994 esi = POP32_VAL(esp); /* 0x4001450D: pop esi */ 995 ebx = POP32_VAL(esp); /* 0x4001450E: pop ebx */ 996 ecx = MEM32(ebp + (-0xC)); /* 0x4001450F: mov ecx, dword ptr [ebp - 0xc] */ 997 MEM32(FS_BASE + (0)) = ecx; /* 0x40014512: mov dword ptr fs:[0], ecx */ 998 esp = ebp; /* 0x40014519: mov esp, ebp */ 999 ebp = POP32_VAL(esp); /* 0x4001451B: pop ebp */ 1000 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4001451C: ret 8 */ 1001 L_4001451F: 1002 ecx = MEM32(ebp + (-0xC)); /* 0x4001451F: mov ecx, dword ptr [ebp - 0xc] */ 1003 edi = POP32_VAL(esp); /* 0x40014522: pop edi */ 1004 esi = POP32_VAL(esp); /* 0x40014523: pop esi */ 1005 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1006 eax = 0; /* 0x40014524: xor eax, eax */ 1007 _cf = 0; 1008 _flag_k = FK_TEST; 1009 ebx = POP32_VAL(esp); /* 0x40014526: pop ebx */ 1010 MEM32(FS_BASE + (0)) = ecx; /* 0x40014527: mov dword ptr fs:[0], ecx */ 1011 esp = ebp; /* 0x4001452E: mov esp, ebp */ 1012 ebp = POP32_VAL(esp); /* 0x40014530: pop ebp */ 1013 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x40014531: ret 8 */ 1014 RECOMP_REGS_OUT(); 1015 } 1016 1017 void sub_40014448(void) { 1018 int _fpu_cmp = 0; 1019 uint32_t _cf = 0; 1020 int _df = 1; 1021 uint32_t _flag_k = FK_NONE; 1022 uint32_t _flag_a = 0, _flag_b = 0; 1023 uint32_t _itail_tgt = 0; 1024 RECOMP_REGS_LOCALS 1025 RECOMP_ENTER(0x40014448u); 1026 1027 L_40014448: 1028 eax = edi + 0x8; /* 0x40014448: lea eax, [edi + 8] */ 1029 /* cmp eax, eax */ /* 0x4001444B: cmp eax, eax */ 1030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1032 _flag_k = FK_CMP; 1033 if (CMP_NE(_flag_a, _flag_b)) goto L_40014458; /* 0x4001444D: jne 0x40014458 */ 1034 L_4001444F: 1035 /* cmp ebx, MEM32(ebp + (-0x20)) */ /* 0x4001444F: cmp ebx, dword ptr [ebp - 0x20] */ 1036 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 1037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1038 _flag_k = FK_CMP; 1039 if (CMP_EQ(_flag_a, _flag_b)) goto L_400144F5; /* 0x40014452: je 0x400144f5 */ 1040 L_40014458: 1041 /* cmp ebx, MEM32(eax) */ /* 0x40014458: cmp ebx, dword ptr [eax] */ 1042 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax)); 1043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1044 _flag_k = FK_CMP; 1045 MEM32(ebp + 0x8) = esi; /* 0x4001445A: mov dword ptr [ebp + 8], esi */ 1046 if (CMP_EQ(_flag_a, _flag_b)) goto L_40014472; /* 0x4001445D: je 0x40014472 */ 1047 L_4001445F: 1048 ecx = MEM32(ebx + 0x4); /* 0x4001445F: mov ecx, dword ptr [ebx + 4] */ 1049 edx = MEM32(ecx); /* 0x40014462: mov edx, dword ptr [ecx] */ 1050 eax = ebx + 0x4; /* 0x40014464: lea eax, [ebx + 4] */ 1051 eax = MEM32(ebp + 0xC); /* 0x40014467: mov eax, dword ptr [ebp + 0xc] */ 1052 PUSH32(esp, eax); /* 0x4001446A: push eax */ 1053 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4001446B: call dword ptr [edx + 4] */ 1054 RECOMP_FLAGS_IN(); 1055 ebx = MEM32(ebx); /* 0x4001446E: mov ebx, dword ptr [ebx] */ 1056 RECOMP_BACKEDGE(); 1057 goto L_40014448; /* 0x40014470: jmp 0x40014448 */ 1058 L_40014472: 1059 RECOMP_ICALL(MEM32(0x40016018)); /* 0x40014472: call dword ptr [0x40016018] */ 1060 RECOMP_FLAGS_IN(); 1061 edi = eax; /* 0x40014478: mov edi, eax */ 1062 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x4001447A: call dword ptr [0x400160d4] */ 1063 RECOMP_FLAGS_IN(); 1064 eax = MEM32(eax); /* 0x40014480: mov eax, dword ptr [eax] */ 1065 /* cmp eax, esi */ /* 0x40014482: cmp eax, esi */ 1066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1068 _flag_k = FK_CMP; 1069 if (CMP_EQ(_flag_a, _flag_b)) goto L_40014488; /* 0x40014484: je 0x40014488 */ 1070 L_40014486: 1071 edi = eax; /* 0x40014486: mov edi, eax */ 1072 L_40014488: 1073 RECOMP_ICALL(MEM32(0x400161D4)); /* 0x40014488: call dword ptr [0x400161d4] */ 1074 RECOMP_FLAGS_IN(); 1075 esi = eax; /* 0x4001448E: mov esi, eax */ 1076 ecx = esi; /* 0x40014490: mov ecx, esi */ 1077 RECOMP_ICALL(MEM32(0x400161D8)); /* 0x40014492: call dword ptr [0x400161d8] */ 1078 RECOMP_FLAGS_IN(); 1079 PUSH32(esp, eax); /* 0x40014498: push eax */ 1080 ecx = esi; /* 0x40014499: mov ecx, esi */ 1081 RECOMP_ICALL(MEM32(0x400161DC)); /* 0x4001449B: call dword ptr [0x400161dc] */ 1082 RECOMP_FLAGS_IN(); 1083 PUSH32(esp, eax); /* 0x400144A1: push eax */ 1084 ecx = esi; /* 0x400144A2: mov ecx, esi */ 1085 RECOMP_ICALL(MEM32(0x400161E0)); /* 0x400144A4: call dword ptr [0x400161e0] */ 1086 RECOMP_FLAGS_IN(); 1087 PUSH32(esp, eax); /* 0x400144AA: push eax */ 1088 PUSH32(esp, edi); /* 0x400144AB: push edi */ 1089 PUSH32(esp, 0xFFFFFFFFu); /* 0x400144AC: push -1 */ 1090 PUSH32(esp, 0x7EDu); /* 0x400144AE: push 0x7ed */ 1091 PUSH32(esp, 0x4001CF80u); /* 0x400144B3: push 0x4001cf80 */ 1092 ecx = esi; /* 0x400144B8: mov ecx, esi */ 1093 RECOMP_ICALL(MEM32(0x400161E4)); /* 0x400144BA: call dword ptr [0x400161e4] */ 1094 RECOMP_FLAGS_IN(); 1095 PUSH32(esp, 0xFFFFFFFFu); /* 0x400144C0: push -1 */ 1096 PUSH32(esp, 0x4001CF74u); /* 0x400144C2: push 0x4001cf74 */ 1097 PUSH32(esp, 0x4001C240u); /* 0x400144C7: push 0x4001c240 */ 1098 PUSH32(esp, 0x80u); /* 0x400144CC: push 0x80 */ 1099 PUSH32(esp, esi); /* 0x400144D1: push esi */ 1100 RECOMP_ICALL(MEM32(0x400161E8)); /* 0x400144D2: call dword ptr [0x400161e8] */ 1101 RECOMP_FLAGS_IN(); 1102 eax = MEM32(ebp + 0x8); /* 0x400144D8: mov eax, dword ptr [ebp + 8] */ 1103 ecx = MEM32(eax); /* 0x400144DB: mov ecx, dword ptr [eax] */ 1104 eax = MEM32(ebp + 0xC); /* 0x400144DD: mov eax, dword ptr [ebp + 0xc] */ 1105 edx = MEM32(ecx); /* 0x400144E0: mov edx, dword ptr [ecx] */ 1106 edi = MEM32(ebp + (-0x10)); /* 0x400144E2: mov edi, dword ptr [ebp - 0x10] */ 1107 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1109 esp = esp + 0x14u; /* 0x400144E5: add esp, 0x14 */ 1110 _flag_k = FK_ADD; 1111 PUSH32(esp, eax); /* 0x400144E8: push eax */ 1112 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1113 esi = 0; /* 0x400144E9: xor esi, esi */ 1114 _cf = 0; 1115 _flag_k = FK_TEST; 1116 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x400144EB: call dword ptr [edx + 4] */ 1117 RECOMP_FLAGS_IN(); 1118 ebx = MEM32(ebx); /* 0x400144EE: mov ebx, dword ptr [ebx] */ 1119 RECOMP_BACKEDGE(); 1120 goto L_40014448; /* 0x400144F0: jmp 0x40014448 */ 1121 L_400144F5: 1122 ecx = edi + 0x14; /* 0x400144F5: lea ecx, [edi + 0x14] */ 1123 RECOMP_ICALL(MEM32(0x40016170)); /* 0x400144F8: call dword ptr [0x40016170] */ 1124 RECOMP_FLAGS_IN(); 1125 ecx = MEM32(ebp + (-0x18)); /* 0x400144FE: mov ecx, dword ptr [ebp - 0x18] */ 1126 PUSH32(esp, ecx); /* 0x40014501: push ecx */ 1127 esi = eax; /* 0x40014502: mov esi, eax */ 1128 RECOMP_ICALL(MEM32(0x40016010)); /* 0x40014504: call dword ptr [0x40016010] */ 1129 RECOMP_FLAGS_IN(); 1130 edi = POP32_VAL(esp); /* 0x4001450A: pop edi */ 1131 eax = esi; /* 0x4001450B: mov eax, esi */ 1132 esi = POP32_VAL(esp); /* 0x4001450D: pop esi */ 1133 ebx = POP32_VAL(esp); /* 0x4001450E: pop ebx */ 1134 ecx = MEM32(ebp + (-0xC)); /* 0x4001450F: mov ecx, dword ptr [ebp - 0xc] */ 1135 MEM32(FS_BASE + (0)) = ecx; /* 0x40014512: mov dword ptr fs:[0], ecx */ 1136 esp = ebp; /* 0x40014519: mov esp, ebp */ 1137 ebp = POP32_VAL(esp); /* 0x4001451B: pop ebp */ 1138 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4001451C: ret 8 */ 1139 RECOMP_REGS_OUT(); 1140 } 1141 1142 void sub_40014540(void) { 1143 int _fpu_cmp = 0; 1144 uint32_t _cf = 0; 1145 int _df = 1; 1146 uint32_t _flag_k = FK_NONE; 1147 uint32_t _flag_a = 0, _flag_b = 0; 1148 uint32_t _itail_tgt = 0; 1149 RECOMP_REGS_LOCALS 1150 RECOMP_ENTER(0x40014540u); 1151 1152 L_40014540: 1153 PUSH32(esp, ebp); /* 0x40014540: push ebp */ 1154 ebp = esp; /* 0x40014541: mov ebp, esp */ 1155 PUSH32(esp, 0xFFFFFFFFu); /* 0x40014543: push -1 */ 1156 PUSH32(esp, 0x40015957u); /* 0x40014545: push 0x40015957 */ 1157 eax = MEM32(FS_BASE + (0)); /* 0x4001454A: mov eax, dword ptr fs:[0] */ 1158 PUSH32(esp, eax); /* 0x40014550: push eax */ 1159 MEM32(FS_BASE + (0)) = esp; /* 0x40014551: mov dword ptr fs:[0], esp */ 1160 PUSH32(esp, ecx); /* 0x40014558: push ecx */ 1161 PUSH32(esp, esi); /* 0x40014559: push esi */ 1162 esi = ecx; /* 0x4001455A: mov esi, ecx */ 1163 PUSH32(esp, edi); /* 0x4001455C: push edi */ 1164 MEM32(ebp + (-0x10)) = esi; /* 0x4001455D: mov dword ptr [ebp - 0x10], esi */ 1165 eax = MEM32(esi); /* 0x40014560: mov eax, dword ptr [esi] */ 1166 PUSH32(esp, eax); /* 0x40014562: push eax */ 1167 MEM32(ebp + (-0x4)) = 1; /* 0x40014563: mov dword ptr [ebp - 4], 1 */ 1168 RECOMP_ICALL(0x400146F2u); /* 0x4001456A: call 0x400146f2 */ /* not lifted */ 1169 RECOMP_FLAGS_IN(); 1170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1172 esp = esp + 4; /* 0x4001456F: add esp, 4 */ 1173 _flag_k = FK_ADD; 1174 ecx = esi + 0x44; /* 0x40014572: lea ecx, [esi + 0x44] */ 1175 RECOMP_ICALL(MEM32(0x400161EC)); /* 0x40014575: call dword ptr [0x400161ec] */ 1176 RECOMP_FLAGS_IN(); 1177 ecx = esi + 0x14; /* 0x4001457B: lea ecx, [esi + 0x14] */ 1178 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x4001457E: mov byte ptr [ebp - 4], 0 */ 1179 RECOMP_ICALL(MEM32(0x400161F0)); /* 0x40014582: call dword ptr [0x400161f0] */ 1180 RECOMP_FLAGS_IN(); 1181 eax = MEM32(esi + 0x8); /* 0x40014588: mov eax, dword ptr [esi + 8] */ 1182 edi = MEM32(eax); /* 0x4001458B: mov edi, dword ptr [eax] */ 1183 /* cmp edi, eax */ /* 0x4001458D: cmp edi, eax */ 1184 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1186 _flag_k = FK_CMP; 1187 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x4001458F: mov dword ptr [ebp - 4], 0xffffffff */ 1188 if (CMP_EQ(_flag_a, _flag_b)) goto L_400145B7; /* 0x40014596: je 0x400145b7 */ 1189 L_40014598: 1190 eax = edi; /* 0x40014598: mov eax, edi */ 1191 /* test eax, eax */ /* 0x4001459A: test eax, eax */ 1192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1193 _cf = 0; 1194 _flag_k = FK_TEST; 1195 edi = MEM32(edi); /* 0x4001459C: mov edi, dword ptr [edi] */ 1196 if (TEST_Z(_flag_a, _flag_b)) goto L_400145A9; /* 0x4001459E: je 0x400145a9 */ 1197 L_400145A0: 1198 ecx = MEM32(esi + 0x10); /* 0x400145A0: mov ecx, dword ptr [esi + 0x10] */ 1199 edx = MEM32(ecx); /* 0x400145A3: mov edx, dword ptr [ecx] */ 1200 PUSH32(esp, eax); /* 0x400145A5: push eax */ 1201 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x400145A6: call dword ptr [edx + 0xc] */ 1202 RECOMP_FLAGS_IN(); 1203 L_400145A9: 1204 ecx = MEM32(esi + 0xC); /* 0x400145A9: mov ecx, dword ptr [esi + 0xc] */ 1205 eax = MEM32(esi + 0x8); /* 0x400145AC: mov eax, dword ptr [esi + 8] */ 1206 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1207 ecx = ecx - 1; /* 0x400145AF: dec ecx */ 1208 _flag_k = FK_DEC; 1209 /* cmp edi, eax */ /* 0x400145B0: cmp edi, eax */ 1210 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1212 _flag_k = FK_CMP; 1213 MEM32(esi + 0xC) = ecx; /* 0x400145B2: mov dword ptr [esi + 0xc], ecx */ 1214 RECOMP_BACKEDGE(); 1215 if (CMP_NE(_flag_a, _flag_b)) goto L_40014598; /* 0x400145B5: jne 0x40014598 */ 1216 L_400145B7: 1217 eax = MEM32(esi + 0x8); /* 0x400145B7: mov eax, dword ptr [esi + 8] */ 1218 MEM32(eax) = eax; /* 0x400145BA: mov dword ptr [eax], eax */ 1219 eax = MEM32(esi + 0x8); /* 0x400145BC: mov eax, dword ptr [esi + 8] */ 1220 /* test eax, eax */ /* 0x400145BF: test eax, eax */ 1221 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1222 _cf = 0; 1223 _flag_k = FK_TEST; 1224 if (TEST_Z(_flag_a, _flag_b)) goto L_400145CC; /* 0x400145C1: je 0x400145cc */ 1225 L_400145C3: 1226 ecx = MEM32(esi + 0x10); /* 0x400145C3: mov ecx, dword ptr [esi + 0x10] */ 1227 edx = MEM32(ecx); /* 0x400145C6: mov edx, dword ptr [ecx] */ 1228 PUSH32(esp, eax); /* 0x400145C8: push eax */ 1229 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x400145C9: call dword ptr [edx + 0xc] */ 1230 RECOMP_FLAGS_IN(); 1231 L_400145CC: 1232 ecx = MEM32(ebp + (-0xC)); /* 0x400145CC: mov ecx, dword ptr [ebp - 0xc] */ 1233 MEM32(esi + 0x8) = 0; /* 0x400145CF: mov dword ptr [esi + 8], 0 */ 1234 edi = POP32_VAL(esp); /* 0x400145D6: pop edi */ 1235 esi = POP32_VAL(esp); /* 0x400145D7: pop esi */ 1236 MEM32(FS_BASE + (0)) = ecx; /* 0x400145D8: mov dword ptr fs:[0], ecx */ 1237 esp = ebp; /* 0x400145DF: mov esp, ebp */ 1238 ebp = POP32_VAL(esp); /* 0x400145E1: pop ebp */ 1239 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400145E2: ret */ 1240 RECOMP_REGS_OUT(); 1241 } 1242 1243 void sub_400145F0(void) { 1244 int _fpu_cmp = 0; 1245 uint32_t _cf = 0; 1246 int _df = 1; 1247 uint32_t _flag_k = FK_NONE; 1248 uint32_t _flag_a = 0, _flag_b = 0; 1249 uint32_t _itail_tgt = 0; 1250 RECOMP_REGS_LOCALS 1251 RECOMP_ENTER(0x400145F0u); 1252 1253 L_400145F0: 1254 PUSH32(esp, ebp); /* 0x400145F0: push ebp */ 1255 ebp = esp; /* 0x400145F1: mov ebp, esp */ 1256 eax = MEM32(ebp + 0x8); /* 0x400145F3: mov eax, dword ptr [ebp + 8] */ 1257 /* test eax, eax */ /* 0x400145F6: test eax, eax */ 1258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1259 _cf = 0; 1260 _flag_k = FK_TEST; 1261 PUSH32(esp, esi); /* 0x400145F8: push esi */ 1262 esi = ecx; /* 0x400145F9: mov esi, ecx */ 1263 MEM32(esi) = 0; /* 0x400145FB: mov dword ptr [esi], 0 */ 1264 MEM32(esi + 0x4) = 0; /* 0x40014601: mov dword ptr [esi + 4], 0 */ 1265 MEM32(esi + 0x8) = eax; /* 0x40014608: mov dword ptr [esi + 8], eax */ 1266 if (TEST_NZ(_flag_a, _flag_b)) goto L_40014616; /* 0x4001460B: jne 0x40014616 */ 1267 L_4001460D: 1268 RECOMP_ICALL(MEM32(0x40016218)); /* 0x4001460D: call dword ptr [0x40016218] */ 1269 RECOMP_FLAGS_IN(); 1270 MEM32(esi + 0x8) = eax; /* 0x40014613: mov dword ptr [esi + 8], eax */ 1271 L_40014616: 1272 ecx = MEM32(esi + 0x8); /* 0x40014616: mov ecx, dword ptr [esi + 8] */ 1273 eax = MEM32(ecx); /* 0x40014619: mov eax, dword ptr [ecx] */ 1274 PUSH32(esp, 8); /* 0x4001461B: push 8 */ 1275 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4001461D: call dword ptr [eax + 4] */ 1276 RECOMP_FLAGS_IN(); 1277 /* test eax, eax */ /* 0x40014620: test eax, eax */ 1278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1279 _cf = 0; 1280 _flag_k = FK_TEST; 1281 MEM32(esi) = eax; /* 0x40014622: mov dword ptr [esi], eax */ 1282 if (TEST_Z(_flag_a, _flag_b)) goto L_40014637; /* 0x40014624: je 0x40014637 */ 1283 L_40014626: 1284 MEM32(eax) = 0; /* 0x40014626: mov dword ptr [eax], 0 */ 1285 eax = MEM32(esi); /* 0x4001462C: mov eax, dword ptr [esi] */ 1286 MEM32(eax) = eax; /* 0x4001462E: mov dword ptr [eax], eax */ 1287 eax = esi; /* 0x40014630: mov eax, esi */ 1288 esi = POP32_VAL(esp); /* 0x40014632: pop esi */ 1289 ebp = POP32_VAL(esp); /* 0x40014633: pop ebp */ 1290 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40014634: ret 4 */ 1291 L_40014637: 1292 RECOMP_ICALL(MEM32(0x400160D4)); /* 0x40014637: call dword ptr [0x400160d4] */ 1293 RECOMP_FLAGS_IN(); 1294 MEM32(eax) = 0xCu; /* 0x4001463D: mov dword ptr [eax], 0xc */ 1295 eax = esi; /* 0x40014643: mov eax, esi */ 1296 esi = POP32_VAL(esp); /* 0x40014645: pop esi */ 1297 ebp = POP32_VAL(esp); /* 0x40014646: pop ebp */ 1298 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x40014647: ret 4 */ 1299 RECOMP_REGS_OUT(); 1300 } 1301 1302 void sub_40014650(void) { 1303 int _fpu_cmp = 0; 1304 uint32_t _cf = 0; 1305 int _df = 1; 1306 uint32_t _flag_k = FK_NONE; 1307 uint32_t _flag_a = 0, _flag_b = 0; 1308 uint32_t _itail_tgt = 0; 1309 RECOMP_REGS_LOCALS 1310 RECOMP_ENTER(0x40014650u); 1311 1312 L_40014650: 1313 { _itail_tgt = (uint32_t)(MEM32(0x400161BC)); goto _ljump; } 1314 { RECOMP_REGS_OUT(); return; } /* end of function */ 1315 _ljump: 1316 switch (_itail_tgt) { 1317 case 0x40014650u: goto L_40014650; 1318 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1319 } 1320 RECOMP_REGS_OUT(); 1321 } 1322 1323 void sub_40014656(void) { 1324 int _fpu_cmp = 0; 1325 uint32_t _cf = 0; 1326 int _df = 1; 1327 uint32_t _flag_k = FK_NONE; 1328 uint32_t _flag_a = 0, _flag_b = 0; 1329 uint32_t _itail_tgt = 0; 1330 RECOMP_REGS_LOCALS 1331 RECOMP_ENTER(0x40014656u); 1332 1333 L_40014656: 1334 { _itail_tgt = (uint32_t)(MEM32(0x400161B8)); goto _ljump; } 1335 { RECOMP_REGS_OUT(); return; } /* end of function */ 1336 _ljump: 1337 switch (_itail_tgt) { 1338 case 0x40014656u: goto L_40014656; 1339 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1340 } 1341 RECOMP_REGS_OUT(); 1342 } 1343 1344 void sub_4001465C(void) { 1345 int _fpu_cmp = 0; 1346 uint32_t _cf = 0; 1347 int _df = 1; 1348 uint32_t _flag_k = FK_NONE; 1349 uint32_t _flag_a = 0, _flag_b = 0; 1350 uint32_t _itail_tgt = 0; 1351 RECOMP_REGS_LOCALS 1352 RECOMP_ENTER(0x4001465Cu); 1353 1354 L_4001465C: 1355 { _itail_tgt = (uint32_t)(MEM32(0x400161B4)); goto _ljump; } 1356 { RECOMP_REGS_OUT(); return; } /* end of function */ 1357 _ljump: 1358 switch (_itail_tgt) { 1359 case 0x4001465Cu: goto L_4001465C; 1360 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1361 } 1362 RECOMP_REGS_OUT(); 1363 } 1364 1365 void sub_40014662(void) { 1366 int _fpu_cmp = 0; 1367 uint32_t _cf = 0; 1368 int _df = 1; 1369 uint32_t _flag_k = FK_NONE; 1370 uint32_t _flag_a = 0, _flag_b = 0; 1371 uint32_t _itail_tgt = 0; 1372 RECOMP_REGS_LOCALS 1373 RECOMP_ENTER(0x40014662u); 1374 1375 L_40014662: 1376 { _itail_tgt = (uint32_t)(MEM32(0x400161B0)); goto _ljump; } 1377 { RECOMP_REGS_OUT(); return; } /* end of function */ 1378 _ljump: 1379 switch (_itail_tgt) { 1380 case 0x40014662u: goto L_40014662; 1381 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1382 } 1383 RECOMP_REGS_OUT(); 1384 } 1385 1386 void sub_40014668(void) { 1387 int _fpu_cmp = 0; 1388 uint32_t _cf = 0; 1389 int _df = 1; 1390 uint32_t _flag_k = FK_NONE; 1391 uint32_t _flag_a = 0, _flag_b = 0; 1392 uint32_t _itail_tgt = 0; 1393 RECOMP_REGS_LOCALS 1394 RECOMP_ENTER(0x40014668u); 1395 1396 L_40014668: 1397 { _itail_tgt = (uint32_t)(MEM32(0x400161AC)); goto _ljump; } 1398 { RECOMP_REGS_OUT(); return; } /* end of function */ 1399 _ljump: 1400 switch (_itail_tgt) { 1401 case 0x40014668u: goto L_40014668; 1402 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1403 } 1404 RECOMP_REGS_OUT(); 1405 } 1406 1407 void sub_4001466E(void) { 1408 int _fpu_cmp = 0; 1409 uint32_t _cf = 0; 1410 int _df = 1; 1411 uint32_t _flag_k = FK_NONE; 1412 uint32_t _flag_a = 0, _flag_b = 0; 1413 uint32_t _itail_tgt = 0; 1414 RECOMP_REGS_LOCALS 1415 RECOMP_ENTER(0x4001466Eu); 1416 1417 L_4001466E: 1418 { _itail_tgt = (uint32_t)(MEM32(0x400161A8)); goto _ljump; } 1419 { RECOMP_REGS_OUT(); return; } /* end of function */ 1420 _ljump: 1421 switch (_itail_tgt) { 1422 case 0x4001466Eu: goto L_4001466E; 1423 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1424 } 1425 RECOMP_REGS_OUT(); 1426 } 1427 1428 void sub_40014674(void) { 1429 int _fpu_cmp = 0; 1430 uint32_t _cf = 0; 1431 int _df = 1; 1432 uint32_t _flag_k = FK_NONE; 1433 uint32_t _flag_a = 0, _flag_b = 0; 1434 uint32_t _itail_tgt = 0; 1435 RECOMP_REGS_LOCALS 1436 RECOMP_ENTER(0x40014674u); 1437 1438 L_40014674: 1439 { _itail_tgt = (uint32_t)(MEM32(0x400161A4)); goto _ljump; } 1440 { RECOMP_REGS_OUT(); return; } /* end of function */ 1441 _ljump: 1442 switch (_itail_tgt) { 1443 case 0x40014674u: goto L_40014674; 1444 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1445 } 1446 RECOMP_REGS_OUT(); 1447 } 1448 1449 void sub_4001467A(void) { 1450 int _fpu_cmp = 0; 1451 uint32_t _cf = 0; 1452 int _df = 1; 1453 uint32_t _flag_k = FK_NONE; 1454 uint32_t _flag_a = 0, _flag_b = 0; 1455 uint32_t _itail_tgt = 0; 1456 RECOMP_REGS_LOCALS 1457 RECOMP_ENTER(0x4001467Au); 1458 1459 L_4001467A: 1460 { _itail_tgt = (uint32_t)(MEM32(0x400161A0)); goto _ljump; } 1461 { RECOMP_REGS_OUT(); return; } /* end of function */ 1462 _ljump: 1463 switch (_itail_tgt) { 1464 case 0x4001467Au: goto L_4001467A; 1465 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1466 } 1467 RECOMP_REGS_OUT(); 1468 } 1469 1470 void sub_40014680(void) { 1471 int _fpu_cmp = 0; 1472 uint32_t _cf = 0; 1473 int _df = 1; 1474 uint32_t _flag_k = FK_NONE; 1475 uint32_t _flag_a = 0, _flag_b = 0; 1476 uint32_t _itail_tgt = 0; 1477 RECOMP_REGS_LOCALS 1478 RECOMP_ENTER(0x40014680u); 1479 1480 L_40014680: 1481 { _itail_tgt = (uint32_t)(MEM32(0x4001619C)); goto _ljump; } 1482 { RECOMP_REGS_OUT(); return; } /* end of function */ 1483 _ljump: 1484 switch (_itail_tgt) { 1485 case 0x40014680u: goto L_40014680; 1486 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1487 } 1488 RECOMP_REGS_OUT(); 1489 } 1490 1491 void sub_40014686(void) { 1492 int _fpu_cmp = 0; 1493 uint32_t _cf = 0; 1494 int _df = 1; 1495 uint32_t _flag_k = FK_NONE; 1496 uint32_t _flag_a = 0, _flag_b = 0; 1497 uint32_t _itail_tgt = 0; 1498 RECOMP_REGS_LOCALS 1499 RECOMP_ENTER(0x40014686u); 1500 1501 L_40014686: 1502 { _itail_tgt = (uint32_t)(MEM32(0x40016198)); goto _ljump; } 1503 { RECOMP_REGS_OUT(); return; } /* end of function */ 1504 _ljump: 1505 switch (_itail_tgt) { 1506 case 0x40014686u: goto L_40014686; 1507 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1508 } 1509 RECOMP_REGS_OUT(); 1510 } 1511 1512 void sub_4001468C(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(0x4001468Cu); 1521 1522 L_4001468C: 1523 { _itail_tgt = (uint32_t)(MEM32(0x40016194)); goto _ljump; } 1524 { RECOMP_REGS_OUT(); return; } /* end of function */ 1525 _ljump: 1526 switch (_itail_tgt) { 1527 case 0x4001468Cu: goto L_4001468C; 1528 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1529 } 1530 RECOMP_REGS_OUT(); 1531 } 1532 1533 void sub_40014692(void) { 1534 int _fpu_cmp = 0; 1535 uint32_t _cf = 0; 1536 int _df = 1; 1537 uint32_t _flag_k = FK_NONE; 1538 uint32_t _flag_a = 0, _flag_b = 0; 1539 uint32_t _itail_tgt = 0; 1540 RECOMP_REGS_LOCALS 1541 RECOMP_ENTER(0x40014692u); 1542 1543 L_40014692: 1544 { _itail_tgt = (uint32_t)(MEM32(0x40016190)); goto _ljump; } 1545 { RECOMP_REGS_OUT(); return; } /* end of function */ 1546 _ljump: 1547 switch (_itail_tgt) { 1548 case 0x40014692u: goto L_40014692; 1549 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1550 } 1551 RECOMP_REGS_OUT(); 1552 } 1553 1554 void sub_40014698(void) { 1555 int _fpu_cmp = 0; 1556 uint32_t _cf = 0; 1557 int _df = 1; 1558 uint32_t _flag_k = FK_NONE; 1559 uint32_t _flag_a = 0, _flag_b = 0; 1560 uint32_t _itail_tgt = 0; 1561 RECOMP_REGS_LOCALS 1562 RECOMP_ENTER(0x40014698u); 1563 1564 L_40014698: 1565 { _itail_tgt = (uint32_t)(MEM32(0x4001618C)); goto _ljump; } 1566 { RECOMP_REGS_OUT(); return; } /* end of function */ 1567 _ljump: 1568 switch (_itail_tgt) { 1569 case 0x40014698u: goto L_40014698; 1570 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1571 } 1572 RECOMP_REGS_OUT(); 1573 } 1574 1575 void sub_4001469E(void) { 1576 int _fpu_cmp = 0; 1577 uint32_t _cf = 0; 1578 int _df = 1; 1579 uint32_t _flag_k = FK_NONE; 1580 uint32_t _flag_a = 0, _flag_b = 0; 1581 uint32_t _itail_tgt = 0; 1582 RECOMP_REGS_LOCALS 1583 RECOMP_ENTER(0x4001469Eu); 1584 1585 L_4001469E: 1586 { _itail_tgt = (uint32_t)(MEM32(0x40016188)); goto _ljump; } 1587 { RECOMP_REGS_OUT(); return; } /* end of function */ 1588 _ljump: 1589 switch (_itail_tgt) { 1590 case 0x4001469Eu: goto L_4001469E; 1591 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1592 } 1593 RECOMP_REGS_OUT(); 1594 } 1595 1596 void sub_400146A4(void) { 1597 int _fpu_cmp = 0; 1598 uint32_t _cf = 0; 1599 int _df = 1; 1600 uint32_t _flag_k = FK_NONE; 1601 uint32_t _flag_a = 0, _flag_b = 0; 1602 uint32_t _itail_tgt = 0; 1603 RECOMP_REGS_LOCALS 1604 RECOMP_ENTER(0x400146A4u); 1605 1606 L_400146A4: 1607 { _itail_tgt = (uint32_t)(MEM32(0x40016184)); goto _ljump; } 1608 { RECOMP_REGS_OUT(); return; } /* end of function */ 1609 _ljump: 1610 switch (_itail_tgt) { 1611 case 0x400146A4u: goto L_400146A4; 1612 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1613 } 1614 RECOMP_REGS_OUT(); 1615 } 1616 1617 void sub_400146AA(void) { 1618 int _fpu_cmp = 0; 1619 uint32_t _cf = 0; 1620 int _df = 1; 1621 uint32_t _flag_k = FK_NONE; 1622 uint32_t _flag_a = 0, _flag_b = 0; 1623 uint32_t _itail_tgt = 0; 1624 RECOMP_REGS_LOCALS 1625 RECOMP_ENTER(0x400146AAu); 1626 1627 L_400146AA: 1628 { _itail_tgt = (uint32_t)(MEM32(0x40016238)); goto _ljump; } 1629 { RECOMP_REGS_OUT(); return; } /* end of function */ 1630 _ljump: 1631 switch (_itail_tgt) { 1632 case 0x400146AAu: goto L_400146AA; 1633 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1634 } 1635 RECOMP_REGS_OUT(); 1636 } 1637 1638 void sub_400146B0(void) { 1639 int _fpu_cmp = 0; 1640 uint32_t _cf = 0; 1641 int _df = 1; 1642 uint32_t _flag_k = FK_NONE; 1643 uint32_t _flag_a = 0, _flag_b = 0; 1644 uint32_t _itail_tgt = 0; 1645 RECOMP_REGS_LOCALS 1646 RECOMP_ENTER(0x400146B0u); 1647 1648 L_400146B0: 1649 { _itail_tgt = (uint32_t)(MEM32(0x40016234)); goto _ljump; } 1650 { RECOMP_REGS_OUT(); return; } /* end of function */ 1651 _ljump: 1652 switch (_itail_tgt) { 1653 case 0x400146B0u: goto L_400146B0; 1654 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1655 } 1656 RECOMP_REGS_OUT(); 1657 } 1658 1659 void sub_400146B6(void) { 1660 int _fpu_cmp = 0; 1661 uint32_t _cf = 0; 1662 int _df = 1; 1663 uint32_t _flag_k = FK_NONE; 1664 uint32_t _flag_a = 0, _flag_b = 0; 1665 uint32_t _itail_tgt = 0; 1666 RECOMP_REGS_LOCALS 1667 RECOMP_ENTER(0x400146B6u); 1668 1669 L_400146B6: 1670 { _itail_tgt = (uint32_t)(MEM32(0x40016178)); goto _ljump; } 1671 { RECOMP_REGS_OUT(); return; } /* end of function */ 1672 _ljump: 1673 switch (_itail_tgt) { 1674 case 0x400146B6u: goto L_400146B6; 1675 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1676 } 1677 RECOMP_REGS_OUT(); 1678 } 1679 1680 void sub_400146BC(void) { 1681 int _fpu_cmp = 0; 1682 uint32_t _cf = 0; 1683 int _df = 1; 1684 uint32_t _flag_k = FK_NONE; 1685 uint32_t _flag_a = 0, _flag_b = 0; 1686 uint32_t _itail_tgt = 0; 1687 RECOMP_REGS_LOCALS 1688 RECOMP_ENTER(0x400146BCu); 1689 1690 L_400146BC: 1691 { _itail_tgt = (uint32_t)(MEM32(0x40016164)); goto _ljump; } 1692 { RECOMP_REGS_OUT(); return; } /* end of function */ 1693 _ljump: 1694 switch (_itail_tgt) { 1695 case 0x400146BCu: goto L_400146BC; 1696 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1697 } 1698 RECOMP_REGS_OUT(); 1699 } 1700 1701 void sub_400146C2(void) { 1702 int _fpu_cmp = 0; 1703 uint32_t _cf = 0; 1704 int _df = 1; 1705 uint32_t _flag_k = FK_NONE; 1706 uint32_t _flag_a = 0, _flag_b = 0; 1707 uint32_t _itail_tgt = 0; 1708 RECOMP_REGS_LOCALS 1709 RECOMP_ENTER(0x400146C2u); 1710 1711 L_400146C2: 1712 { _itail_tgt = (uint32_t)(MEM32(0x40016160)); goto _ljump; } 1713 { RECOMP_REGS_OUT(); return; } /* end of function */ 1714 _ljump: 1715 switch (_itail_tgt) { 1716 case 0x400146C2u: goto L_400146C2; 1717 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1718 } 1719 RECOMP_REGS_OUT(); 1720 } 1721 1722 void sub_400146C8(void) { 1723 int _fpu_cmp = 0; 1724 uint32_t _cf = 0; 1725 int _df = 1; 1726 uint32_t _flag_k = FK_NONE; 1727 uint32_t _flag_a = 0, _flag_b = 0; 1728 uint32_t _itail_tgt = 0; 1729 RECOMP_REGS_LOCALS 1730 RECOMP_ENTER(0x400146C8u); 1731 1732 L_400146C8: 1733 { _itail_tgt = (uint32_t)(MEM32(0x4001615C)); goto _ljump; } 1734 { RECOMP_REGS_OUT(); return; } /* end of function */ 1735 _ljump: 1736 switch (_itail_tgt) { 1737 case 0x400146C8u: goto L_400146C8; 1738 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1739 } 1740 RECOMP_REGS_OUT(); 1741 } 1742 1743 void sub_400146CE(void) { 1744 int _fpu_cmp = 0; 1745 uint32_t _cf = 0; 1746 int _df = 1; 1747 uint32_t _flag_k = FK_NONE; 1748 uint32_t _flag_a = 0, _flag_b = 0; 1749 uint32_t _itail_tgt = 0; 1750 RECOMP_REGS_LOCALS 1751 RECOMP_ENTER(0x400146CEu); 1752 1753 L_400146CE: 1754 { _itail_tgt = (uint32_t)(MEM32(0x40016158)); goto _ljump; } 1755 { RECOMP_REGS_OUT(); return; } /* end of function */ 1756 _ljump: 1757 switch (_itail_tgt) { 1758 case 0x400146CEu: goto L_400146CE; 1759 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1760 } 1761 RECOMP_REGS_OUT(); 1762 } 1763 1764 void sub_400146D4(void) { 1765 int _fpu_cmp = 0; 1766 uint32_t _cf = 0; 1767 int _df = 1; 1768 uint32_t _flag_k = FK_NONE; 1769 uint32_t _flag_a = 0, _flag_b = 0; 1770 uint32_t _itail_tgt = 0; 1771 RECOMP_REGS_LOCALS 1772 RECOMP_ENTER(0x400146D4u); 1773 1774 L_400146D4: 1775 { _itail_tgt = (uint32_t)(MEM32(0x40016154)); goto _ljump; } 1776 { RECOMP_REGS_OUT(); return; } /* end of function */ 1777 _ljump: 1778 switch (_itail_tgt) { 1779 case 0x400146D4u: goto L_400146D4; 1780 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1781 } 1782 RECOMP_REGS_OUT(); 1783 } 1784 1785 void sub_400146DA(void) { 1786 int _fpu_cmp = 0; 1787 uint32_t _cf = 0; 1788 int _df = 1; 1789 uint32_t _flag_k = FK_NONE; 1790 uint32_t _flag_a = 0, _flag_b = 0; 1791 uint32_t _itail_tgt = 0; 1792 RECOMP_REGS_LOCALS 1793 RECOMP_ENTER(0x400146DAu); 1794 1795 L_400146DA: 1796 { _itail_tgt = (uint32_t)(MEM32(0x40016150)); goto _ljump; } 1797 { RECOMP_REGS_OUT(); return; } /* end of function */ 1798 _ljump: 1799 switch (_itail_tgt) { 1800 case 0x400146DAu: goto L_400146DA; 1801 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1802 } 1803 RECOMP_REGS_OUT(); 1804 } 1805 1806 void sub_400146E0(void) { 1807 int _fpu_cmp = 0; 1808 uint32_t _cf = 0; 1809 int _df = 1; 1810 uint32_t _flag_k = FK_NONE; 1811 uint32_t _flag_a = 0, _flag_b = 0; 1812 uint32_t _itail_tgt = 0; 1813 RECOMP_REGS_LOCALS 1814 RECOMP_ENTER(0x400146E0u); 1815 1816 L_400146E0: 1817 { _itail_tgt = (uint32_t)(MEM32(0x4001614C)); goto _ljump; } 1818 { RECOMP_REGS_OUT(); return; } /* end of function */ 1819 _ljump: 1820 switch (_itail_tgt) { 1821 case 0x400146E0u: goto L_400146E0; 1822 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1823 } 1824 RECOMP_REGS_OUT(); 1825 } 1826 1827 void sub_400146E6(void) { 1828 int _fpu_cmp = 0; 1829 uint32_t _cf = 0; 1830 int _df = 1; 1831 uint32_t _flag_k = FK_NONE; 1832 uint32_t _flag_a = 0, _flag_b = 0; 1833 uint32_t _itail_tgt = 0; 1834 RECOMP_REGS_LOCALS 1835 RECOMP_ENTER(0x400146E6u); 1836 1837 L_400146E6: 1838 { _itail_tgt = (uint32_t)(MEM32(0x40016148)); goto _ljump; } 1839 { RECOMP_REGS_OUT(); return; } /* end of function */ 1840 _ljump: 1841 switch (_itail_tgt) { 1842 case 0x400146E6u: goto L_400146E6; 1843 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1844 } 1845 RECOMP_REGS_OUT(); 1846 } 1847 1848 void sub_400146EC(void) { 1849 int _fpu_cmp = 0; 1850 uint32_t _cf = 0; 1851 int _df = 1; 1852 uint32_t _flag_k = FK_NONE; 1853 uint32_t _flag_a = 0, _flag_b = 0; 1854 uint32_t _itail_tgt = 0; 1855 RECOMP_REGS_LOCALS 1856 RECOMP_ENTER(0x400146ECu); 1857 1858 L_400146EC: 1859 { _itail_tgt = (uint32_t)(MEM32(0x40016138)); goto _ljump; } 1860 { RECOMP_REGS_OUT(); return; } /* end of function */ 1861 _ljump: 1862 switch (_itail_tgt) { 1863 case 0x400146ECu: goto L_400146EC; 1864 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1865 } 1866 RECOMP_REGS_OUT(); 1867 } 1868 1869 void sub_400146F2(void) { 1870 int _fpu_cmp = 0; 1871 uint32_t _cf = 0; 1872 int _df = 1; 1873 uint32_t _flag_k = FK_NONE; 1874 uint32_t _flag_a = 0, _flag_b = 0; 1875 uint32_t _itail_tgt = 0; 1876 RECOMP_REGS_LOCALS 1877 RECOMP_ENTER(0x400146F2u); 1878 1879 L_400146F2: 1880 PUSH32(esp, MEM32(esp + 0x4)); /* 0x400146F2: push dword ptr [esp + 4] */ 1881 RECOMP_ICALL(0x400149B8u); /* 0x400146F6: call 0x400149b8 */ /* not lifted */ 1882 RECOMP_FLAGS_IN(); 1883 ecx = POP32_VAL(esp); /* 0x400146FB: pop ecx */ 1884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400146FC: ret */ 1885 RECOMP_REGS_OUT(); 1886 } 1887 1888 void sub_400146FE(void) { 1889 int _fpu_cmp = 0; 1890 uint32_t _cf = 0; 1891 int _df = 1; 1892 uint32_t _flag_k = FK_NONE; 1893 uint32_t _flag_a = 0, _flag_b = 0; 1894 uint32_t _itail_tgt = 0; 1895 RECOMP_REGS_LOCALS 1896 RECOMP_ENTER(0x400146FEu); 1897 1898 L_400146FE: 1899 { _itail_tgt = (uint32_t)(MEM32(0x40016060)); goto _ljump; } 1900 { RECOMP_REGS_OUT(); return; } /* end of function */ 1901 _ljump: 1902 switch (_itail_tgt) { 1903 case 0x400146FEu: goto L_400146FE; 1904 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1905 } 1906 RECOMP_REGS_OUT(); 1907 } 1908 1909 void sub_40014704(void) { 1910 int _fpu_cmp = 0; 1911 uint32_t _cf = 0; 1912 int _df = 1; 1913 uint32_t _flag_k = FK_NONE; 1914 uint32_t _flag_a = 0, _flag_b = 0; 1915 uint32_t _itail_tgt = 0; 1916 RECOMP_REGS_LOCALS 1917 RECOMP_ENTER(0x40014704u); 1918 1919 L_40014704: 1920 { _itail_tgt = (uint32_t)(MEM32(0x40016100)); goto _ljump; } 1921 { RECOMP_REGS_OUT(); return; } /* end of function */ 1922 _ljump: 1923 switch (_itail_tgt) { 1924 case 0x40014704u: goto L_40014704; 1925 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1926 } 1927 RECOMP_REGS_OUT(); 1928 } 1929 1930 void sub_4001470A(void) { 1931 int _fpu_cmp = 0; 1932 uint32_t _cf = 0; 1933 int _df = 1; 1934 uint32_t _flag_k = FK_NONE; 1935 uint32_t _flag_a = 0, _flag_b = 0; 1936 uint32_t _itail_tgt = 0; 1937 RECOMP_REGS_LOCALS 1938 RECOMP_ENTER(0x4001470Au); 1939 1940 L_4001470A: 1941 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 1942 { RECOMP_REGS_OUT(); return; } /* end of function */ 1943 _ljump: 1944 switch (_itail_tgt) { 1945 case 0x4001470Au: goto L_4001470A; 1946 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1947 } 1948 RECOMP_REGS_OUT(); 1949 } 1950 1951 void sub_40014710(void) { 1952 int _fpu_cmp = 0; 1953 uint32_t _cf = 0; 1954 int _df = 1; 1955 uint32_t _flag_k = FK_NONE; 1956 uint32_t _flag_a = 0, _flag_b = 0; 1957 uint32_t _itail_tgt = 0; 1958 RECOMP_REGS_LOCALS 1959 RECOMP_ENTER(0x40014710u); 1960 1961 L_40014710: 1962 /* cmp MEM32(0x4001D0E8), 0xFFFFFFFFu */ /* 0x40014710: cmp dword ptr [0x4001d0e8], -1 */ 1963 _flag_a = (uint32_t)(MEM32(0x4001D0E8)); _flag_b = (uint32_t)(0xFFFFFFFFu); 1964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1965 _flag_k = FK_CMP; 1966 if (CMP_NE(_flag_a, _flag_b)) goto L_40014725; /* 0x40014717: jne 0x40014725 */ 1967 L_40014719: 1968 PUSH32(esp, MEM32(esp + 0x4)); /* 0x40014719: push dword ptr [esp + 4] */ 1969 RECOMP_ICALL(MEM32(0x40016108)); /* 0x4001471D: call dword ptr [0x40016108] */ 1970 RECOMP_FLAGS_IN(); 1971 ecx = POP32_VAL(esp); /* 0x40014723: pop ecx */ 1972 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40014724: ret */ 1973 L_40014725: 1974 PUSH32(esp, 0x4001D0E4u); /* 0x40014725: push 0x4001d0e4 */ 1975 PUSH32(esp, 0x4001D0E8u); /* 0x4001472A: push 0x4001d0e8 */ 1976 PUSH32(esp, MEM32(esp + 0xC)); /* 0x4001472F: push dword ptr [esp + 0xc] */ 1977 RECOMP_ICALL(0x400149BEu); /* 0x40014733: call 0x400149be */ /* not lifted */ 1978 RECOMP_FLAGS_IN(); 1979 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1981 esp = esp + 0xCu; /* 0x40014738: add esp, 0xc */ 1982 _flag_k = FK_ADD; 1983 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4001473B: ret */ 1984 RECOMP_REGS_OUT(); 1985 } 1986 1987 void sub_4001473C(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(0x4001473Cu); 1996 1997 L_4001473C: 1998 PUSH32(esp, MEM32(esp + 0x4)); /* 0x4001473C: push dword ptr [esp + 4] */ 1999 RECOMP_ICALL(0x40014710u); /* 0x40014740: call 0x40014710 */ /* not lifted */ 2000 RECOMP_FLAGS_IN(); 2001 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2002 _cf = (eax) != 0; 2003 eax = (uint32_t)(-(int32_t)eax); /* 0x40014745: neg eax */ 2004 _flag_k = FK_CMP; 2005 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x40014747: sbb eax, eax */ 2006 eax = _sc ? 0xFFFFFFFFu : 0; 2007 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2008 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2009 ecx = POP32_VAL(esp); /* 0x40014749: pop ecx */ 2010 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2011 _cf = (eax) != 0; 2012 eax = (uint32_t)(-(int32_t)eax); /* 0x4001474A: neg eax */ 2013 _flag_k = FK_CMP; 2014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2015 eax = eax - 1; /* 0x4001474C: dec eax */ 2016 _flag_k = FK_DEC; 2017 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4001474D: ret */ 2018 RECOMP_REGS_OUT(); 2019 } 2020 2021 void sub_4001474E(void) { 2022 int _fpu_cmp = 0; 2023 uint32_t _cf = 0; 2024 int _df = 1; 2025 uint32_t _flag_k = FK_NONE; 2026 uint32_t _flag_a = 0, _flag_b = 0; 2027 uint32_t _itail_tgt = 0; 2028 RECOMP_REGS_LOCALS 2029 RECOMP_ENTER(0x4001474Eu); 2030 2031 L_4001474E: 2032 { _itail_tgt = (uint32_t)(MEM32(0x400160E0)); goto _ljump; } 2033 { RECOMP_REGS_OUT(); return; } /* end of function */ 2034 _ljump: 2035 switch (_itail_tgt) { 2036 case 0x4001474Eu: goto L_4001474E; 2037 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2038 } 2039 RECOMP_REGS_OUT(); 2040 } 2041 2042 void sub_40014754(void) { 2043 int _fpu_cmp = 0; 2044 uint32_t _cf = 0; 2045 int _df = 1; 2046 uint32_t _flag_k = FK_NONE; 2047 uint32_t _flag_a = 0, _flag_b = 0; 2048 uint32_t _itail_tgt = 0; 2049 RECOMP_REGS_LOCALS 2050 RECOMP_ENTER(0x40014754u); 2051 2052 L_40014754: 2053 PUSH32(esp, esi); /* 0x40014754: push esi */ 2054 esi = ecx; /* 0x40014755: mov esi, ecx */ 2055 RECOMP_ICALL(0x400149C4u); /* 0x40014757: call 0x400149c4 */ /* not lifted */ 2056 RECOMP_FLAGS_IN(); 2057 /* test MEM8(esp + 0x8), 1 */ /* 0x4001475C: test byte ptr [esp + 8], 1 */ 2058 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2059 _cf = 0; 2060 _flag_k = FK_NARROW(FK_TEST, 24); 2061 if (TEST_Z(_flag_a, _flag_b)) goto L_4001476A; /* 0x40014761: je 0x4001476a */ 2062 L_40014763: 2063 PUSH32(esp, esi); /* 0x40014763: push esi */ 2064 RECOMP_ICALL(0x400146F2u); /* 0x40014764: call 0x400146f2 */ /* not lifted */ 2065 RECOMP_FLAGS_IN(); 2066 ecx = POP32_VAL(esp); /* 0x40014769: pop ecx */ 2067 L_4001476A: 2068 eax = esi; /* 0x4001476A: mov eax, esi */ 2069 esi = POP32_VAL(esp); /* 0x4001476C: pop esi */ 2070 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4001476D: ret 4 */ 2071 RECOMP_REGS_OUT(); 2072 } 2073 2074 void sub_40014770(void) { 2075 int _fpu_cmp = 0; 2076 uint32_t _cf = 0; 2077 int _df = 1; 2078 uint32_t _flag_k = FK_NONE; 2079 uint32_t _flag_a = 0, _flag_b = 0; 2080 uint32_t _itail_tgt = 0; 2081 RECOMP_REGS_LOCALS 2082 RECOMP_ENTER(0x40014770u); 2083 2084 L_40014770: 2085 PUSH32(esp, ebp); /* 0x40014770: push ebp */ 2086 ebp = esp; /* 0x40014771: mov ebp, esp */ 2087 PUSH32(esp, 0xFFFFFFFFu); /* 0x40014773: push -1 */ 2088 PUSH32(esp, 0x40016550u); /* 0x40014775: push 0x40016550 */ 2089 PUSH32(esp, 0x400149CAu); /* 0x4001477A: push 0x400149ca */ 2090 eax = MEM32(FS_BASE + (0)); /* 0x4001477F: mov eax, dword ptr fs:[0] */ 2091 PUSH32(esp, eax); /* 0x40014785: push eax */ 2092 MEM32(FS_BASE + (0)) = esp; /* 0x40014786: mov dword ptr fs:[0], esp */ 2093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2095 esp = esp - 0xCu; /* 0x4001478D: sub esp, 0xc */ 2096 _flag_k = FK_CMP; 2097 PUSH32(esp, ebx); /* 0x40014790: push ebx */ 2098 PUSH32(esp, esi); /* 0x40014791: push esi */ 2099 PUSH32(esp, edi); /* 0x40014792: push edi */ 2100 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0); 2101 MEM32(ebp + (-0x1C)) = MEM32(ebp + (-0x1C)) & 0; /* 0x40014793: and dword ptr [ebp - 0x1c], 0 */ 2102 _cf = 0; 2103 _flag_k = FK_TEST; 2104 esi = MEM32(ebp + 0xC); /* 0x40014797: mov esi, dword ptr [ebp + 0xc] */ 2105 eax = esi; /* 0x4001479A: mov eax, esi */ 2106 eax = (uint32_t)((int32_t)eax * (int32_t)MEM32(ebp + 0x10)); /* 0x4001479C: imul eax, dword ptr [ebp + 0x10] */ 2107 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(eax); 2108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2109 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) + eax; /* 0x400147A0: add dword ptr [ebp + 8], eax */ 2110 _flag_k = FK_ADD; 2111 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2112 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x400147A3: and dword ptr [ebp - 4], 0 */ 2113 _cf = 0; 2114 _flag_k = FK_TEST; 2115 L_400147A7: 2116 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 2117 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) - 1; /* 0x400147A7: dec dword ptr [ebp + 0x10] */ 2118 _flag_k = FK_DEC; 2119 if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_400147B7; /* 0x400147AA: js 0x400147b7 */ 2120 L_400147AC: 2121 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(esi); 2122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2123 MEM32(ebp + 0x8) = MEM32(ebp + 0x8) - esi; /* 0x400147AC: sub dword ptr [ebp + 8], esi */ 2124 _flag_k = FK_CMP; 2125 ecx = MEM32(ebp + 0x8); /* 0x400147AF: mov ecx, dword ptr [ebp + 8] */ 2126 RECOMP_ICALL(MEM32(ebp + 0x14)); /* 0x400147B2: call dword ptr [ebp + 0x14] */ 2127 RECOMP_FLAGS_IN(); 2128 RECOMP_BACKEDGE(); 2129 goto L_400147A7; /* 0x400147B5: jmp 0x400147a7 */ 2130 L_400147B7: 2131 MEM32(ebp + (-0x1C)) = 1; /* 0x400147B7: mov dword ptr [ebp - 0x1c], 1 */ 2132 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 2133 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x400147BE: or dword ptr [ebp - 4], 0xffffffff */ 2134 _cf = 0; 2135 _flag_k = FK_TEST; 2136 RECOMP_ICALL(0x400147D8u); /* 0x400147C2: call 0x400147d8 */ /* not lifted */ 2137 RECOMP_FLAGS_IN(); 2138 ecx = MEM32(ebp + (-0x10)); /* 0x400147C7: mov ecx, dword ptr [ebp - 0x10] */ 2139 MEM32(FS_BASE + (0)) = ecx; /* 0x400147CA: mov dword ptr fs:[0], ecx */ 2140 edi = POP32_VAL(esp); /* 0x400147D1: pop edi */ 2141 esi = POP32_VAL(esp); /* 0x400147D2: pop esi */ 2142 ebx = POP32_VAL(esp); /* 0x400147D3: pop ebx */ 2143 esp = ebp; ebp = POP32_VAL(esp); /* 0x400147D4: leave */ 2144 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x400147D5: ret 0x10 */ 2145 RECOMP_REGS_OUT(); 2146 } 2147 2148 void sub_400147D8(void) { 2149 int _fpu_cmp = 0; 2150 uint32_t _cf = 0; 2151 int _df = 1; 2152 uint32_t _flag_k = FK_NONE; 2153 uint32_t _flag_a = 0, _flag_b = 0; 2154 uint32_t _itail_tgt = 0; 2155 RECOMP_REGS_LOCALS 2156 RECOMP_ENTER(0x400147D8u); 2157 2158 L_400147D8: 2159 /* cmp MEM32(ebp + (-0x1C)), 0 */ /* 0x400147D8: cmp dword ptr [ebp - 0x1c], 0 */ 2160 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0); 2161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2162 _flag_k = FK_CMP; 2163 if (CMP_NE(_flag_a, _flag_b)) goto L_400147EF; /* 0x400147DC: jne 0x400147ef */ 2164 L_400147DE: 2165 PUSH32(esp, MEM32(ebp + 0x14)); /* 0x400147DE: push dword ptr [ebp + 0x14] */ 2166 PUSH32(esp, MEM32(ebp + 0x10)); /* 0x400147E1: push dword ptr [ebp + 0x10] */ 2167 PUSH32(esp, MEM32(ebp + 0xC)); /* 0x400147E4: push dword ptr [ebp + 0xc] */ 2168 PUSH32(esp, MEM32(ebp + 0x8)); /* 0x400147E7: push dword ptr [ebp + 8] */ 2169 RECOMP_ICALL(0x400147F0u); /* 0x400147EA: call 0x400147f0 */ /* not lifted */ 2170 RECOMP_FLAGS_IN(); 2171 L_400147EF: 2172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400147EF: ret */ 2173 RECOMP_REGS_OUT(); 2174 } 2175 2176 void sub_400147F0(void) { 2177 int _fpu_cmp = 0; 2178 uint32_t _cf = 0; 2179 int _df = 1; 2180 uint32_t _flag_k = FK_NONE; 2181 uint32_t _flag_a = 0, _flag_b = 0; 2182 uint32_t _itail_tgt = 0; 2183 RECOMP_REGS_LOCALS 2184 RECOMP_ENTER(0x400147F0u); 2185 2186 L_400147F0: 2187 PUSH32(esp, ebp); /* 0x400147F0: push ebp */ 2188 ebp = esp; /* 0x400147F1: mov ebp, esp */ 2189 PUSH32(esp, 0xFFFFFFFFu); /* 0x400147F3: push -1 */ 2190 PUSH32(esp, 0x40016560u); /* 0x400147F5: push 0x40016560 */ 2191 PUSH32(esp, 0x400149CAu); /* 0x400147FA: push 0x400149ca */ 2192 eax = MEM32(FS_BASE + (0)); /* 0x400147FF: mov eax, dword ptr fs:[0] */ 2193 PUSH32(esp, eax); /* 0x40014805: push eax */ 2194 MEM32(FS_BASE + (0)) = esp; /* 0x40014806: mov dword ptr fs:[0], esp */ 2195 PUSH32(esp, ecx); /* 0x4001480D: push ecx */ 2196 PUSH32(esp, ecx); /* 0x4001480E: push ecx */ 2197 PUSH32(esp, ebx); /* 0x4001480F: push ebx */ 2198 PUSH32(esp, esi); /* 0x40014810: push esi */ 2199 PUSH32(esp, edi); /* 0x40014811: push edi */ 2200 MEM32(ebp + (-0x18)) = esp; /* 0x40014812: mov dword ptr [ebp - 0x18], esp */ 2201 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0); 2202 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x40014815: and dword ptr [ebp - 4], 0 */ 2203 _cf = 0; 2204 _flag_k = FK_TEST; 2205 L_40014819: 2206 _flag_a = (uint32_t)(MEM32(ebp + 0x10)); _flag_b = (uint32_t)(1); 2207 MEM32(ebp + 0x10) = MEM32(ebp + 0x10) - 1; /* 0x40014819: dec dword ptr [ebp + 0x10] */ 2208 _flag_k = FK_DEC; 2209 if (/* dec result */ CMP_S(_flag_a, _flag_b)) goto L_40014839; /* 0x4001481C: js 0x40014839 */ 2210 L_4001481E: 2211 ecx = MEM32(ebp + 0x8); /* 0x4001481E: mov ecx, dword ptr [ebp + 8] */ 2212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 2213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2214 ecx = ecx - MEM32(ebp + 0xC); /* 0x40014821: sub ecx, dword ptr [ebp + 0xc] */ 2215 _flag_k = FK_CMP; 2216 MEM32(ebp + 0x8) = ecx; /* 0x40014824: mov dword ptr [ebp + 8], ecx */ 2217 RECOMP_ICALL(MEM32(ebp + 0x14)); /* 0x40014827: call dword ptr [ebp + 0x14] */ 2218 RECOMP_FLAGS_IN(); 2219 RECOMP_BACKEDGE(); 2220 goto L_40014819; /* 0x4001482A: jmp 0x40014819 */ 2221 L_40014839: 2222 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 2223 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x40014839: or dword ptr [ebp - 4], 0xffffffff */ 2224 _cf = 0; 2225 _flag_k = FK_TEST; 2226 ecx = MEM32(ebp + (-0x10)); /* 0x4001483D: mov ecx, dword ptr [ebp - 0x10] */ 2227 MEM32(FS_BASE + (0)) = ecx; /* 0x40014840: mov dword ptr fs:[0], ecx */ 2228 edi = POP32_VAL(esp); /* 0x40014847: pop edi */ 2229 esi = POP32_VAL(esp); /* 0x40014848: pop esi */ 2230 ebx = POP32_VAL(esp); /* 0x40014849: pop ebx */ 2231 esp = ebp; ebp = POP32_VAL(esp); /* 0x4001484A: leave */ 2232 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4001484B: ret 0x10 */ 2233 RECOMP_REGS_OUT(); 2234 } 2235 2236 void sub_4001482C(void) { 2237 int _fpu_cmp = 0; 2238 uint32_t _cf = 0; 2239 int _df = 1; 2240 uint32_t _flag_k = FK_NONE; 2241 uint32_t _flag_a = 0, _flag_b = 0; 2242 uint32_t _itail_tgt = 0; 2243 RECOMP_REGS_LOCALS 2244 RECOMP_ENTER(0x4001482Cu); 2245 2246 L_4001482C: 2247 PUSH32(esp, MEM32(ebp + (-0x14))); /* 0x4001482C: push dword ptr [ebp - 0x14] */ 2248 RECOMP_ICALL(0x4001484Eu); /* 0x4001482F: call 0x4001484e */ /* not lifted */ 2249 RECOMP_FLAGS_IN(); 2250 ecx = POP32_VAL(esp); /* 0x40014834: pop ecx */ 2251 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40014835: ret */ 2252 RECOMP_REGS_OUT(); 2253 } 2254 2255 void sub_40014836(void) { 2256 int _fpu_cmp = 0; 2257 uint32_t _cf = 0; 2258 int _df = 1; 2259 uint32_t _flag_k = FK_NONE; 2260 uint32_t _flag_a = 0, _flag_b = 0; 2261 uint32_t _itail_tgt = 0; 2262 RECOMP_REGS_LOCALS 2263 RECOMP_ENTER(0x40014836u); 2264 2265 L_40014836: 2266 esp = MEM32(ebp + (-0x18)); /* 0x40014836: mov esp, dword ptr [ebp - 0x18] */ 2267 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 2268 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x40014839: or dword ptr [ebp - 4], 0xffffffff */ 2269 _cf = 0; 2270 _flag_k = FK_TEST; 2271 ecx = MEM32(ebp + (-0x10)); /* 0x4001483D: mov ecx, dword ptr [ebp - 0x10] */ 2272 MEM32(FS_BASE + (0)) = ecx; /* 0x40014840: mov dword ptr fs:[0], ecx */ 2273 edi = POP32_VAL(esp); /* 0x40014847: pop edi */ 2274 esi = POP32_VAL(esp); /* 0x40014848: pop esi */ 2275 ebx = POP32_VAL(esp); /* 0x40014849: pop ebx */ 2276 esp = ebp; ebp = POP32_VAL(esp); /* 0x4001484A: leave */ 2277 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4001484B: ret 0x10 */ 2278 RECOMP_REGS_OUT(); 2279 } 2280 2281 void sub_40014839(void) { 2282 int _fpu_cmp = 0; 2283 uint32_t _cf = 0; 2284 int _df = 1; 2285 uint32_t _flag_k = FK_NONE; 2286 uint32_t _flag_a = 0, _flag_b = 0; 2287 uint32_t _itail_tgt = 0; 2288 RECOMP_REGS_LOCALS 2289 RECOMP_ENTER(0x40014839u); 2290 2291 L_40014839: 2292 _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); 2293 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x40014839: or dword ptr [ebp - 4], 0xffffffff */ 2294 _cf = 0; 2295 _flag_k = FK_TEST; 2296 ecx = MEM32(ebp + (-0x10)); /* 0x4001483D: mov ecx, dword ptr [ebp - 0x10] */ 2297 MEM32(FS_BASE + (0)) = ecx; /* 0x40014840: mov dword ptr fs:[0], ecx */ 2298 edi = POP32_VAL(esp); /* 0x40014847: pop edi */ 2299 esi = POP32_VAL(esp); /* 0x40014848: pop esi */ 2300 ebx = POP32_VAL(esp); /* 0x40014849: pop ebx */ 2301 esp = ebp; ebp = POP32_VAL(esp); /* 0x4001484A: leave */ 2302 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4001484B: ret 0x10 */ 2303 RECOMP_REGS_OUT(); 2304 } 2305 2306 void sub_4001484E(void) { 2307 int _fpu_cmp = 0; 2308 uint32_t _cf = 0; 2309 int _df = 1; 2310 uint32_t _flag_k = FK_NONE; 2311 uint32_t _flag_a = 0, _flag_b = 0; 2312 uint32_t _itail_tgt = 0; 2313 RECOMP_REGS_LOCALS 2314 RECOMP_ENTER(0x4001484Eu); 2315 2316 L_4001484E: 2317 eax = MEM32(esp + 0x4); /* 0x4001484E: mov eax, dword ptr [esp + 4] */ 2318 L_40014852: 2319 eax = MEM32(eax); /* 0x40014852: mov eax, dword ptr [eax] */ 2320 L_40014854: 2321 /* cmp MEM32(eax), 0xE06D7363u */ /* 0x40014854: cmp dword ptr [eax], 0xe06d7363 */ 2322 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xE06D7363u); 2323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2324 _flag_k = FK_CMP; 2325 L_4001485A: 2326 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4001485F; /* 0x4001485A: je 0x4001485f */ 2327 L_4001485C: 2328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2329 eax = 0; /* 0x4001485C: xor eax, eax */ 2330 _cf = 0; 2331 _flag_k = FK_TEST; 2332 L_4001485E: 2333 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4001485E: ret */ 2334 L_4001485F: 2335 goto L_400149D0; /* 0x4001485F: jmp 0x400149d0 */ 2336 L_400149D0: 2337 { _itail_tgt = (uint32_t)(MEM32(0x400160EC)); goto _ljump; } 2338 { RECOMP_REGS_OUT(); return; } /* end of function */ 2339 _ljump: 2340 switch (_itail_tgt) { 2341 case 0x4001484Eu: goto L_4001484E; 2342 case 0x40014852u: goto L_40014852; 2343 case 0x40014854u: goto L_40014854; 2344 case 0x4001485Au: goto L_4001485A; 2345 case 0x4001485Cu: goto L_4001485C; 2346 case 0x4001485Eu: goto L_4001485E; 2347 case 0x4001485Fu: goto L_4001485F; 2348 case 0x400149D0u: goto L_400149D0; 2349 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2350 } 2351 RECOMP_REGS_OUT(); 2352 } 2353 2354 void sub_40014864(void) { 2355 int _fpu_cmp = 0; 2356 uint32_t _cf = 0; 2357 int _df = 1; 2358 uint32_t _flag_k = FK_NONE; 2359 uint32_t _flag_a = 0, _flag_b = 0; 2360 uint32_t _itail_tgt = 0; 2361 RECOMP_REGS_LOCALS 2362 RECOMP_ENTER(0x40014864u); 2363 2364 L_40014864: 2365 { _itail_tgt = (uint32_t)(MEM32(0x400160D8)); goto _ljump; } 2366 { RECOMP_REGS_OUT(); return; } /* end of function */ 2367 _ljump: 2368 switch (_itail_tgt) { 2369 case 0x40014864u: goto L_40014864; 2370 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2371 } 2372 RECOMP_REGS_OUT(); 2373 } 2374 2375 void sub_4001486A(void) { 2376 int _fpu_cmp = 0; 2377 uint32_t _cf = 0; 2378 int _df = 1; 2379 uint32_t _flag_k = FK_NONE; 2380 uint32_t _flag_a = 0, _flag_b = 0; 2381 uint32_t _itail_tgt = 0; 2382 RECOMP_REGS_LOCALS 2383 RECOMP_ENTER(0x4001486Au); 2384 2385 L_4001486A: 2386 { _itail_tgt = (uint32_t)(MEM32(0x400160D0)); goto _ljump; } 2387 { RECOMP_REGS_OUT(); return; } /* end of function */ 2388 _ljump: 2389 switch (_itail_tgt) { 2390 case 0x4001486Au: goto L_4001486A; 2391 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2392 } 2393 RECOMP_REGS_OUT(); 2394 } 2395 2396 void sub_40014870(void) { 2397 int _fpu_cmp = 0; 2398 uint32_t _cf = 0; 2399 int _df = 1; 2400 uint32_t _flag_k = FK_NONE; 2401 uint32_t _flag_a = 0, _flag_b = 0; 2402 uint32_t _itail_tgt = 0; 2403 RECOMP_REGS_LOCALS 2404 RECOMP_ENTER(0x40014870u); 2405 2406 L_40014870: 2407 eax = MEM32(esp + 0x8); /* 0x40014870: mov eax, dword ptr [esp + 8] */ 2408 /* test eax, eax */ /* 0x40014874: test eax, eax */ 2409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2410 _cf = 0; 2411 _flag_k = FK_TEST; 2412 if (TEST_NZ(_flag_a, _flag_b)) goto L_40014886; /* 0x40014876: jne 0x40014886 */ 2413 L_40014878: 2414 /* cmp MEM32(0x4001D0D8), eax */ /* 0x40014878: cmp dword ptr [0x4001d0d8], eax */ 2415 _flag_a = (uint32_t)(MEM32(0x4001D0D8)); _flag_b = (uint32_t)(eax); 2416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2417 _flag_k = FK_CMP; 2418 if (CMP_LE(_flag_a, _flag_b)) goto L_400148AE; /* 0x4001487E: jle 0x400148ae */ 2419 L_40014880: 2420 _flag_a = (uint32_t)(MEM32(0x4001D0D8)); _flag_b = (uint32_t)(1); 2421 MEM32(0x4001D0D8) = MEM32(0x4001D0D8) - 1; /* 0x40014880: dec dword ptr [0x4001d0d8] */ 2422 _flag_k = FK_DEC; 2423 L_40014886: 2424 ecx = MEM32(0x400160F8); /* 0x40014886: mov ecx, dword ptr [0x400160f8] */ 2425 /* cmp eax, 1 */ /* 0x4001488C: cmp eax, 1 */ 2426 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2428 _flag_k = FK_CMP; 2429 ecx = MEM32(ecx); /* 0x4001488F: mov ecx, dword ptr [ecx] */ 2430 MEM32(0x4001D0DC) = ecx; /* 0x40014891: mov dword ptr [0x4001d0dc], ecx */ 2431 if (CMP_NE(_flag_a, _flag_b)) goto L_400148D8; /* 0x40014897: jne 0x400148d8 */ 2432 L_40014899: 2433 PUSH32(esp, 0x80u); /* 0x40014899: push 0x80 */ 2434 RECOMP_ICALL(MEM32(0x400160F4)); /* 0x4001489E: call dword ptr [0x400160f4] */ 2435 RECOMP_FLAGS_IN(); 2436 /* test eax, eax */ /* 0x400148A4: test eax, eax */ 2437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2438 _cf = 0; 2439 _flag_k = FK_TEST; 2440 ecx = POP32_VAL(esp); /* 0x400148A6: pop ecx */ 2441 MEM32(0x4001D0E8) = eax; /* 0x400148A7: mov dword ptr [0x4001d0e8], eax */ 2442 if (TEST_NZ(_flag_a, _flag_b)) goto L_400148B2; /* 0x400148AC: jne 0x400148b2 */ 2443 L_400148AE: 2444 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2445 eax = 0; /* 0x400148AE: xor eax, eax */ 2446 _cf = 0; 2447 _flag_k = FK_TEST; 2448 goto L_40014918; /* 0x400148B0: jmp 0x40014918 */ 2449 L_400148B2: 2450 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 2451 MEM32(eax) = MEM32(eax) & 0; /* 0x400148B2: and dword ptr [eax], 0 */ 2452 _cf = 0; 2453 _flag_k = FK_TEST; 2454 eax = MEM32(0x4001D0E8); /* 0x400148B5: mov eax, dword ptr [0x4001d0e8] */ 2455 PUSH32(esp, 0x4001C09Cu); /* 0x400148BA: push 0x4001c09c */ 2456 PUSH32(esp, 0x4001C000u); /* 0x400148BF: push 0x4001c000 */ 2457 MEM32(0x4001D0E4) = eax; /* 0x400148C4: mov dword ptr [0x4001d0e4], eax */ 2458 RECOMP_ICALL(0x400149D6u); /* 0x400148C9: call 0x400149d6 */ /* not lifted */ 2459 RECOMP_FLAGS_IN(); 2460 _flag_a = (uint32_t)(MEM32(0x4001D0D8)); _flag_b = (uint32_t)(1); 2461 MEM32(0x4001D0D8) = MEM32(0x4001D0D8) + 1; /* 0x400148CE: inc dword ptr [0x4001d0d8] */ 2462 _flag_k = FK_INC; 2463 ecx = POP32_VAL(esp); /* 0x400148D4: pop ecx */ 2464 ecx = POP32_VAL(esp); /* 0x400148D5: pop ecx */ 2465 goto L_40014915; /* 0x400148D6: jmp 0x40014915 */ 2466 L_400148D8: 2467 /* test eax, eax */ /* 0x400148D8: test eax, eax */ 2468 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2469 _cf = 0; 2470 _flag_k = FK_TEST; 2471 if (TEST_NZ(_flag_a, _flag_b)) goto L_40014915; /* 0x400148DA: jne 0x40014915 */ 2472 L_400148DC: 2473 eax = MEM32(0x4001D0E8); /* 0x400148DC: mov eax, dword ptr [0x4001d0e8] */ 2474 /* test eax, eax */ /* 0x400148E1: test eax, eax */ 2475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2476 _cf = 0; 2477 _flag_k = FK_TEST; 2478 if (TEST_Z(_flag_a, _flag_b)) goto L_40014915; /* 0x400148E3: je 0x40014915 */ 2479 L_400148E5: 2480 ecx = MEM32(0x4001D0E4); /* 0x400148E5: mov ecx, dword ptr [0x4001d0e4] */ 2481 PUSH32(esp, esi); /* 0x400148EB: push esi */ 2482 esi = ecx + (-0x4); /* 0x400148EC: lea esi, [ecx - 4] */ 2483 L_400148EF: 2484 /* cmp esi, eax */ /* 0x400148EF: cmp esi, eax */ 2485 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2486 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2487 _flag_k = FK_CMP; 2488 if (CMP_B(_flag_a, _flag_b)) goto L_40014905; /* 0x400148F1: jb 0x40014905 */ 2489 L_400148F3: 2490 ecx = MEM32(esi); /* 0x400148F3: mov ecx, dword ptr [esi] */ 2491 /* test ecx, ecx */ /* 0x400148F5: test ecx, ecx */ 2492 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2493 _cf = 0; 2494 _flag_k = FK_TEST; 2495 if (TEST_Z(_flag_a, _flag_b)) goto L_40014900; /* 0x400148F7: je 0x40014900 */ 2496 L_400148F9: 2497 RECOMP_ICALL(ecx); /* 0x400148F9: call ecx */ 2498 RECOMP_FLAGS_IN(); 2499 eax = MEM32(0x4001D0E8); /* 0x400148FB: mov eax, dword ptr [0x4001d0e8] */ 2500 L_40014900: 2501 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2503 esi = esi - 4; /* 0x40014900: sub esi, 4 */ 2504 _flag_k = FK_CMP; 2505 RECOMP_BACKEDGE(); 2506 goto L_400148EF; /* 0x40014903: jmp 0x400148ef */ 2507 L_40014905: 2508 PUSH32(esp, eax); /* 0x40014905: push eax */ 2509 RECOMP_ICALL(MEM32(0x400160FC)); /* 0x40014906: call dword ptr [0x400160fc] */ 2510 RECOMP_FLAGS_IN(); 2511 _flag_a = (uint32_t)(MEM32(0x4001D0E8)); _flag_b = (uint32_t)(0); 2512 MEM32(0x4001D0E8) = MEM32(0x4001D0E8) & 0; /* 0x4001490C: and dword ptr [0x4001d0e8], 0 */ 2513 _cf = 0; 2514 _flag_k = FK_TEST; 2515 ecx = POP32_VAL(esp); /* 0x40014913: pop ecx */ 2516 esi = POP32_VAL(esp); /* 0x40014914: pop esi */ 2517 L_40014915: 2518 PUSH32(esp, 1); /* 0x40014915: push 1 */ 2519 eax = POP32_VAL(esp); /* 0x40014917: pop eax */ 2520 L_40014918: 2521 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x40014918: ret 0xc */ 2522 RECOMP_REGS_OUT(); 2523 } 2524 2525 void sub_4001491B(void) { 2526 int _fpu_cmp = 0; 2527 uint32_t _cf = 0; 2528 int _df = 1; 2529 uint32_t _flag_k = FK_NONE; 2530 uint32_t _flag_a = 0, _flag_b = 0; 2531 uint32_t _itail_tgt = 0; 2532 RECOMP_REGS_LOCALS 2533 RECOMP_ENTER(0x4001491Bu); 2534 2535 L_4001491B: 2536 PUSH32(esp, ebp); /* 0x4001491B: push ebp */ 2537 ebp = esp; /* 0x4001491C: mov ebp, esp */ 2538 PUSH32(esp, ebx); /* 0x4001491E: push ebx */ 2539 ebx = MEM32(ebp + 0x8); /* 0x4001491F: mov ebx, dword ptr [ebp + 8] */ 2540 PUSH32(esp, esi); /* 0x40014922: push esi */ 2541 esi = MEM32(ebp + 0xC); /* 0x40014923: mov esi, dword ptr [ebp + 0xc] */ 2542 PUSH32(esp, edi); /* 0x40014926: push edi */ 2543 edi = MEM32(ebp + 0x10); /* 0x40014927: mov edi, dword ptr [ebp + 0x10] */ 2544 /* test esi, esi */ /* 0x4001492A: test esi, esi */ 2545 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2546 _cf = 0; 2547 _flag_k = FK_TEST; 2548 if (TEST_NZ(_flag_a, _flag_b)) goto L_40014937; /* 0x4001492C: jne 0x40014937 */ 2549 L_4001492E: 2550 /* cmp MEM32(0x4001D0D8), 0 */ /* 0x4001492E: cmp dword ptr [0x4001d0d8], 0 */ 2551 _flag_a = (uint32_t)(MEM32(0x4001D0D8)); _flag_b = (uint32_t)(0); 2552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2553 _flag_k = FK_CMP; 2554 goto L_4001495D; /* 0x40014935: jmp 0x4001495d */ 2555 L_40014937: 2556 /* cmp esi, 1 */ /* 0x40014937: cmp esi, 1 */ 2557 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2559 _flag_k = FK_CMP; 2560 if (CMP_EQ(_flag_a, _flag_b)) goto L_40014941; /* 0x4001493A: je 0x40014941 */ 2561 L_4001493C: 2562 /* cmp esi, 2 */ /* 0x4001493C: cmp esi, 2 */ 2563 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2565 _flag_k = FK_CMP; 2566 if (CMP_NE(_flag_a, _flag_b)) goto L_40014963; /* 0x4001493F: jne 0x40014963 */ 2567 L_40014941: 2568 eax = MEM32(0x4001D0E0); /* 0x40014941: mov eax, dword ptr [0x4001d0e0] */ 2569 /* test eax, eax */ /* 0x40014946: test eax, eax */ 2570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2571 _cf = 0; 2572 _flag_k = FK_TEST; 2573 if (TEST_Z(_flag_a, _flag_b)) goto L_40014953; /* 0x40014948: je 0x40014953 */ 2574 L_4001494A: 2575 PUSH32(esp, edi); /* 0x4001494A: push edi */ 2576 PUSH32(esp, esi); /* 0x4001494B: push esi */ 2577 PUSH32(esp, ebx); /* 0x4001494C: push ebx */ 2578 RECOMP_ICALL(eax); /* 0x4001494D: call eax */ 2579 RECOMP_FLAGS_IN(); 2580 /* test eax, eax */ /* 0x4001494F: test eax, eax */ 2581 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2582 _cf = 0; 2583 _flag_k = FK_TEST; 2584 if (TEST_Z(_flag_a, _flag_b)) goto L_4001495F; /* 0x40014951: je 0x4001495f */ 2585 L_40014953: 2586 PUSH32(esp, edi); /* 0x40014953: push edi */ 2587 PUSH32(esp, esi); /* 0x40014954: push esi */ 2588 PUSH32(esp, ebx); /* 0x40014955: push ebx */ 2589 RECOMP_ICALL(0x40014870u); /* 0x40014956: call 0x40014870 */ /* not lifted */ 2590 RECOMP_FLAGS_IN(); 2591 /* test eax, eax */ /* 0x4001495B: test eax, eax */ 2592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2593 _cf = 0; 2594 _flag_k = FK_TEST; 2595 L_4001495D: 2596 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_40014963; /* 0x4001495D: jne 0x40014963 */ 2597 L_4001495F: 2598 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2599 eax = 0; /* 0x4001495F: xor eax, eax */ 2600 _cf = 0; 2601 _flag_k = FK_TEST; 2602 goto L_400149B1; /* 0x40014961: jmp 0x400149b1 */ 2603 L_40014963: 2604 PUSH32(esp, edi); /* 0x40014963: push edi */ 2605 PUSH32(esp, esi); /* 0x40014964: push esi */ 2606 PUSH32(esp, ebx); /* 0x40014965: push ebx */ 2607 RECOMP_ICALL(0x400149DCu); /* 0x40014966: call 0x400149dc */ /* not lifted */ 2608 RECOMP_FLAGS_IN(); 2609 /* cmp esi, 1 */ /* 0x4001496B: cmp esi, 1 */ 2610 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 2611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2612 _flag_k = FK_CMP; 2613 MEM32(ebp + 0xC) = eax; /* 0x4001496E: mov dword ptr [ebp + 0xc], eax */ 2614 if (CMP_NE(_flag_a, _flag_b)) goto L_4001497F; /* 0x40014971: jne 0x4001497f */ 2615 L_40014973: 2616 /* test eax, eax */ /* 0x40014973: test eax, eax */ 2617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2618 _cf = 0; 2619 _flag_k = FK_TEST; 2620 if (TEST_NZ(_flag_a, _flag_b)) goto L_400149AE; /* 0x40014975: jne 0x400149ae */ 2621 L_40014977: 2622 PUSH32(esp, edi); /* 0x40014977: push edi */ 2623 PUSH32(esp, eax); /* 0x40014978: push eax */ 2624 PUSH32(esp, ebx); /* 0x40014979: push ebx */ 2625 RECOMP_ICALL(0x40014870u); /* 0x4001497A: call 0x40014870 */ /* not lifted */ 2626 RECOMP_FLAGS_IN(); 2627 L_4001497F: 2628 /* test esi, esi */ /* 0x4001497F: test esi, esi */ 2629 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2630 _cf = 0; 2631 _flag_k = FK_TEST; 2632 if (TEST_Z(_flag_a, _flag_b)) goto L_40014988; /* 0x40014981: je 0x40014988 */ 2633 L_40014983: 2634 /* cmp esi, 3 */ /* 0x40014983: cmp esi, 3 */ 2635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(3); 2636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2637 _flag_k = FK_CMP; 2638 if (CMP_NE(_flag_a, _flag_b)) goto L_400149AE; /* 0x40014986: jne 0x400149ae */ 2639 L_40014988: 2640 PUSH32(esp, edi); /* 0x40014988: push edi */ 2641 PUSH32(esp, esi); /* 0x40014989: push esi */ 2642 PUSH32(esp, ebx); /* 0x4001498A: push ebx */ 2643 RECOMP_ICALL(0x40014870u); /* 0x4001498B: call 0x40014870 */ /* not lifted */ 2644 RECOMP_FLAGS_IN(); 2645 /* test eax, eax */ /* 0x40014990: test eax, eax */ 2646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2647 _cf = 0; 2648 _flag_k = FK_TEST; 2649 if (TEST_NZ(_flag_a, _flag_b)) goto L_40014997; /* 0x40014992: jne 0x40014997 */ 2650 L_40014994: 2651 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(eax); 2652 MEM32(ebp + 0xC) = MEM32(ebp + 0xC) & eax; /* 0x40014994: and dword ptr [ebp + 0xc], eax */ 2653 _cf = 0; 2654 _flag_k = FK_TEST; 2655 L_40014997: 2656 /* cmp MEM32(ebp + 0xC), 0 */ /* 0x40014997: cmp dword ptr [ebp + 0xc], 0 */ 2657 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(0); 2658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2659 _flag_k = FK_CMP; 2660 if (CMP_EQ(_flag_a, _flag_b)) goto L_400149AE; /* 0x4001499B: je 0x400149ae */ 2661 L_4001499D: 2662 eax = MEM32(0x4001D0E0); /* 0x4001499D: mov eax, dword ptr [0x4001d0e0] */ 2663 /* test eax, eax */ /* 0x400149A2: test eax, eax */ 2664 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2665 _cf = 0; 2666 _flag_k = FK_TEST; 2667 if (TEST_Z(_flag_a, _flag_b)) goto L_400149AE; /* 0x400149A4: je 0x400149ae */ 2668 L_400149A6: 2669 PUSH32(esp, edi); /* 0x400149A6: push edi */ 2670 PUSH32(esp, esi); /* 0x400149A7: push esi */ 2671 PUSH32(esp, ebx); /* 0x400149A8: push ebx */ 2672 RECOMP_ICALL(eax); /* 0x400149A9: call eax */ 2673 RECOMP_FLAGS_IN(); 2674 MEM32(ebp + 0xC) = eax; /* 0x400149AB: mov dword ptr [ebp + 0xc], eax */ 2675 L_400149AE: 2676 eax = MEM32(ebp + 0xC); /* 0x400149AE: mov eax, dword ptr [ebp + 0xc] */ 2677 L_400149B1: 2678 edi = POP32_VAL(esp); /* 0x400149B1: pop edi */ 2679 esi = POP32_VAL(esp); /* 0x400149B2: pop esi */ 2680 ebx = POP32_VAL(esp); /* 0x400149B3: pop ebx */ 2681 ebp = POP32_VAL(esp); /* 0x400149B4: pop ebp */ 2682 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x400149B5: ret 0xc */ 2683 RECOMP_REGS_OUT(); 2684 } 2685 2686 void sub_400149B8(void) { 2687 int _fpu_cmp = 0; 2688 uint32_t _cf = 0; 2689 int _df = 1; 2690 uint32_t _flag_k = FK_NONE; 2691 uint32_t _flag_a = 0, _flag_b = 0; 2692 uint32_t _itail_tgt = 0; 2693 RECOMP_REGS_LOCALS 2694 RECOMP_ENTER(0x400149B8u); 2695 2696 L_400149B8: 2697 { _itail_tgt = (uint32_t)(MEM32(0x400160FC)); goto _ljump; } 2698 { RECOMP_REGS_OUT(); return; } /* end of function */ 2699 _ljump: 2700 switch (_itail_tgt) { 2701 case 0x400149B8u: goto L_400149B8; 2702 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2703 } 2704 RECOMP_REGS_OUT(); 2705 } 2706 2707 void sub_400149BE(void) { 2708 int _fpu_cmp = 0; 2709 uint32_t _cf = 0; 2710 int _df = 1; 2711 uint32_t _flag_k = FK_NONE; 2712 uint32_t _flag_a = 0, _flag_b = 0; 2713 uint32_t _itail_tgt = 0; 2714 RECOMP_REGS_LOCALS 2715 RECOMP_ENTER(0x400149BEu); 2716 2717 L_400149BE: 2718 { _itail_tgt = (uint32_t)(MEM32(0x400160C4)); goto _ljump; } 2719 { RECOMP_REGS_OUT(); return; } /* end of function */ 2720 _ljump: 2721 switch (_itail_tgt) { 2722 case 0x400149BEu: goto L_400149BE; 2723 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2724 } 2725 RECOMP_REGS_OUT(); 2726 } 2727 2728 void sub_400149C4(void) { 2729 int _fpu_cmp = 0; 2730 uint32_t _cf = 0; 2731 int _df = 1; 2732 uint32_t _flag_k = FK_NONE; 2733 uint32_t _flag_a = 0, _flag_b = 0; 2734 uint32_t _itail_tgt = 0; 2735 RECOMP_REGS_LOCALS 2736 RECOMP_ENTER(0x400149C4u); 2737 2738 L_400149C4: 2739 { _itail_tgt = (uint32_t)(MEM32(0x400160F0)); goto _ljump; } 2740 { RECOMP_REGS_OUT(); return; } /* end of function */ 2741 _ljump: 2742 switch (_itail_tgt) { 2743 case 0x400149C4u: goto L_400149C4; 2744 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2745 } 2746 RECOMP_REGS_OUT(); 2747 } 2748 2749 void sub_400149CA(void) { 2750 int _fpu_cmp = 0; 2751 uint32_t _cf = 0; 2752 int _df = 1; 2753 uint32_t _flag_k = FK_NONE; 2754 uint32_t _flag_a = 0, _flag_b = 0; 2755 uint32_t _itail_tgt = 0; 2756 RECOMP_REGS_LOCALS 2757 RECOMP_ENTER(0x400149CAu); 2758 2759 L_400149CA: 2760 { _itail_tgt = (uint32_t)(MEM32(0x400160E8)); goto _ljump; } 2761 { RECOMP_REGS_OUT(); return; } /* end of function */ 2762 _ljump: 2763 switch (_itail_tgt) { 2764 case 0x400149CAu: goto L_400149CA; 2765 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2766 } 2767 RECOMP_REGS_OUT(); 2768 } 2769 2770 void sub_400149D0(void) { 2771 int _fpu_cmp = 0; 2772 uint32_t _cf = 0; 2773 int _df = 1; 2774 uint32_t _flag_k = FK_NONE; 2775 uint32_t _flag_a = 0, _flag_b = 0; 2776 uint32_t _itail_tgt = 0; 2777 RECOMP_REGS_LOCALS 2778 RECOMP_ENTER(0x400149D0u); 2779 2780 L_400149D0: 2781 { _itail_tgt = (uint32_t)(MEM32(0x400160EC)); goto _ljump; } 2782 { RECOMP_REGS_OUT(); return; } /* end of function */ 2783 _ljump: 2784 switch (_itail_tgt) { 2785 case 0x400149D0u: goto L_400149D0; 2786 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2787 } 2788 RECOMP_REGS_OUT(); 2789 } 2790 2791 void sub_400149D6(void) { 2792 int _fpu_cmp = 0; 2793 uint32_t _cf = 0; 2794 int _df = 1; 2795 uint32_t _flag_k = FK_NONE; 2796 uint32_t _flag_a = 0, _flag_b = 0; 2797 uint32_t _itail_tgt = 0; 2798 RECOMP_REGS_LOCALS 2799 RECOMP_ENTER(0x400149D6u); 2800 2801 L_400149D6: 2802 { _itail_tgt = (uint32_t)(MEM32(0x40016104)); goto _ljump; } 2803 { RECOMP_REGS_OUT(); return; } /* end of function */ 2804 _ljump: 2805 switch (_itail_tgt) { 2806 case 0x400149D6u: goto L_400149D6; 2807 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2808 } 2809 RECOMP_REGS_OUT(); 2810 } 2811 2812 void sub_400149DC(void) { 2813 int _fpu_cmp = 0; 2814 uint32_t _cf = 0; 2815 int _df = 1; 2816 uint32_t _flag_k = FK_NONE; 2817 uint32_t _flag_a = 0, _flag_b = 0; 2818 uint32_t _itail_tgt = 0; 2819 RECOMP_REGS_LOCALS 2820 RECOMP_ENTER(0x400149DCu); 2821 2822 L_400149DC: 2823 /* cmp MEM32(esp + 0x8), 1 */ /* 0x400149DC: cmp dword ptr [esp + 8], 1 */ 2824 _flag_a = (uint32_t)(MEM32(esp + 0x8)); _flag_b = (uint32_t)(1); 2825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2826 _flag_k = FK_CMP; 2827 if (CMP_NE(_flag_a, _flag_b)) goto L_400149F6; /* 0x400149E1: jne 0x400149f6 */ 2828 L_400149E3: 2829 /* cmp MEM32(0x4001D0E0), 0 */ /* 0x400149E3: cmp dword ptr [0x4001d0e0], 0 */ 2830 _flag_a = (uint32_t)(MEM32(0x4001D0E0)); _flag_b = (uint32_t)(0); 2831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2832 _flag_k = FK_CMP; 2833 if (CMP_NE(_flag_a, _flag_b)) goto L_400149F6; /* 0x400149EA: jne 0x400149f6 */ 2834 L_400149EC: 2835 PUSH32(esp, MEM32(esp + 0x4)); /* 0x400149EC: push dword ptr [esp + 4] */ 2836 RECOMP_ICALL(MEM32(0x40016000)); /* 0x400149F0: call dword ptr [0x40016000] */ 2837 RECOMP_FLAGS_IN(); 2838 L_400149F6: 2839 PUSH32(esp, 1); /* 0x400149F6: push 1 */ 2840 eax = POP32_VAL(esp); /* 0x400149F8: pop eax */ 2841 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x400149F9: ret 0xc */ 2842 RECOMP_REGS_OUT(); 2843 } 2844 2845 void sub_40014A00(void) { 2846 int _fpu_cmp = 0; 2847 uint32_t _cf = 0; 2848 int _df = 1; 2849 uint32_t _flag_k = FK_NONE; 2850 uint32_t _flag_a = 0, _flag_b = 0; 2851 uint32_t _itail_tgt = 0; 2852 RECOMP_REGS_LOCALS 2853 RECOMP_ENTER(0x40014A00u); 2854 2855 goto L_40014A00; 2856 L_40001910: 2857 PUSH32(esp, ebp); /* 0x40001910: push ebp */ 2858 ebp = esp; /* 0x40001911: mov ebp, esp */ 2859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2861 esp = esp - 8; /* 0x40001913: sub esp, 8 */ 2862 _flag_k = FK_CMP; 2863 PUSH32(esp, ebx); /* 0x40001916: push ebx */ 2864 PUSH32(esp, esi); /* 0x40001917: push esi */ 2865 esi = ecx; /* 0x40001918: mov esi, ecx */ 2866 ecx = MEM32(esi + 0x10); /* 0x4000191A: mov ecx, dword ptr [esi + 0x10] */ 2867 /* test ecx, ecx */ /* 0x4000191D: test ecx, ecx */ 2868 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2869 _cf = 0; 2870 _flag_k = FK_TEST; 2871 PUSH32(esp, edi); /* 0x4000191F: push edi */ 2872 edi = MEM32(esi + 0x4); /* 0x40001920: mov edi, dword ptr [esi + 4] */ 2873 eax = MEM32(edi); /* 0x40001923: mov eax, dword ptr [edi] */ 2874 MEM32(ebp + (-0x4)) = eax; /* 0x40001925: mov dword ptr [ebp - 4], eax */ 2875 if (TEST_Z(_flag_a, _flag_b)) goto L_40001985; /* 0x40001928: je 0x40001985 */ 2876 L_4000192A: 2877 ecx = eax; /* 0x4000192A: mov ecx, eax */ 2878 /* cmp eax, ecx */ /* 0x4000192C: cmp eax, ecx */ 2879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2881 _flag_k = FK_CMP; 2882 if (CMP_NE(_flag_a, _flag_b)) goto L_40001985; /* 0x4000192E: jne 0x40001985 */ 2883 L_40001930: 2884 /* cmp edi, edi */ /* 0x40001930: cmp edi, edi */ 2885 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2887 _flag_k = FK_CMP; 2888 if (CMP_NE(_flag_a, _flag_b)) goto L_40001985; /* 0x40001932: jne 0x40001985 */ 2889 L_40001934: 2890 ebx = MEM32(edi + 0x4); /* 0x40001934: mov ebx, dword ptr [edi + 4] */ 2891 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x40001937: cmp ebx, dword ptr [esi + 8] */ 2892 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2894 _flag_k = FK_CMP; 2895 edi = ebx; /* 0x4000193A: mov edi, ebx */ 2896 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000195D; /* 0x4000193C: je 0x4000195d */ 2897 L_4000193E: 2898 eax = MEM32(edi + 0x8); /* 0x4000193E: mov eax, dword ptr [edi + 8] */ 2899 PUSH32(esp, eax); /* 0x40001941: push eax */ 2900 ecx = esi; /* 0x40001942: mov ecx, esi */ 2901 RECOMP_ICALL(0x40001F90u); /* 0x40001944: call 0x40001f90 */ /* not lifted */ 2902 RECOMP_FLAGS_IN(); 2903 edi = MEM32(edi); /* 0x40001949: mov edi, dword ptr [edi] */ 2904 PUSH32(esp, ebx); /* 0x4000194B: push ebx */ 2905 RECOMP_ICALL(0x400146F2u); /* 0x4000194C: call 0x400146f2 */ /* not lifted */ 2906 RECOMP_FLAGS_IN(); 2907 eax = MEM32(esi + 0x8); /* 0x40001951: mov eax, dword ptr [esi + 8] */ 2908 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2910 esp = esp + 4; /* 0x40001954: add esp, 4 */ 2911 _flag_k = FK_ADD; 2912 /* cmp edi, eax */ /* 0x40001957: cmp edi, eax */ 2913 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2915 _flag_k = FK_CMP; 2916 ebx = edi; /* 0x40001959: mov ebx, edi */ 2917 RECOMP_BACKEDGE(); 2918 if (CMP_NE(_flag_a, _flag_b)) goto L_4000193E; /* 0x4000195B: jne 0x4000193e */ 2919 L_4000195D: 2920 ecx = MEM32(esi + 0x4); /* 0x4000195D: mov ecx, dword ptr [esi + 4] */ 2921 edx = MEM32(esi + 0x8); /* 0x40001960: mov edx, dword ptr [esi + 8] */ 2922 MEM32(ecx + 0x4) = edx; /* 0x40001963: mov dword ptr [ecx + 4], edx */ 2923 eax = MEM32(esi + 0x4); /* 0x40001966: mov eax, dword ptr [esi + 4] */ 2924 MEM32(esi + 0x10) = 0; /* 0x40001969: mov dword ptr [esi + 0x10], 0 */ 2925 MEM32(eax) = eax; /* 0x40001970: mov dword ptr [eax], eax */ 2926 eax = MEM32(esi + 0x4); /* 0x40001972: mov eax, dword ptr [esi + 4] */ 2927 MEM32(eax + 0x8) = eax; /* 0x40001975: mov dword ptr [eax + 8], eax */ 2928 eax = ebp + (-0x8); /* 0x40001978: lea eax, [ebp - 8] */ 2929 PUSH32(esp, eax); /* 0x4000197B: push eax */ 2930 ecx = esi; /* 0x4000197C: mov ecx, esi */ 2931 RECOMP_ICALL(0x40001BA0u); /* 0x4000197E: call 0x40001ba0 */ /* not lifted */ 2932 RECOMP_FLAGS_IN(); 2933 goto L_400019A6; /* 0x40001983: jmp 0x400019a6 */ 2934 L_40001985: 2935 /* cmp eax, edi */ /* 0x40001985: cmp eax, edi */ 2936 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2938 _flag_k = FK_CMP; 2939 if (CMP_EQ(_flag_a, _flag_b)) goto L_400019A6; /* 0x40001987: je 0x400019a6 */ 2940 L_40001989: 2941 ecx = ebp + (-0x4); /* 0x40001989: lea ecx, [ebp - 4] */ 2942 ebx = eax; /* 0x4000198C: mov ebx, eax */ 2943 RECOMP_ICALL(0x40001C50u); /* 0x4000198E: call 0x40001c50 */ /* not lifted */ 2944 RECOMP_FLAGS_IN(); 2945 PUSH32(esp, ebx); /* 0x40001993: push ebx */ 2946 ecx = ebp + (-0x8); /* 0x40001994: lea ecx, [ebp - 8] */ 2947 PUSH32(esp, ecx); /* 0x40001997: push ecx */ 2948 ecx = esi; /* 0x40001998: mov ecx, esi */ 2949 RECOMP_ICALL(0x4000DE30u); /* 0x4000199A: call 0x4000de30 */ /* not lifted */ 2950 RECOMP_FLAGS_IN(); 2951 eax = MEM32(ebp + (-0x4)); /* 0x4000199F: mov eax, dword ptr [ebp - 4] */ 2952 /* cmp eax, edi */ /* 0x400019A2: cmp eax, edi */ 2953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2955 _flag_k = FK_CMP; 2956 RECOMP_BACKEDGE(); 2957 if (CMP_NE(_flag_a, _flag_b)) goto L_40001989; /* 0x400019A4: jne 0x40001989 */ 2958 L_400019A6: 2959 edx = MEM32(esi + 0x4); /* 0x400019A6: mov edx, dword ptr [esi + 4] */ 2960 PUSH32(esp, edx); /* 0x400019A9: push edx */ 2961 RECOMP_ICALL(0x400146F2u); /* 0x400019AA: call 0x400146f2 */ /* not lifted */ 2962 RECOMP_FLAGS_IN(); 2963 eax = MEM32(esi + 0x8); /* 0x400019AF: mov eax, dword ptr [esi + 8] */ 2964 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2965 edi = 0; /* 0x400019B2: xor edi, edi */ 2966 _cf = 0; 2967 _flag_k = FK_TEST; 2968 PUSH32(esp, eax); /* 0x400019B4: push eax */ 2969 MEM32(esi + 0x4) = edi; /* 0x400019B5: mov dword ptr [esi + 4], edi */ 2970 MEM32(esi + 0x10) = edi; /* 0x400019B8: mov dword ptr [esi + 0x10], edi */ 2971 RECOMP_ICALL(0x400146F2u); /* 0x400019BB: call 0x400146f2 */ /* not lifted */ 2972 RECOMP_FLAGS_IN(); 2973 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2974 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2975 esp = esp + 8; /* 0x400019C0: add esp, 8 */ 2976 _flag_k = FK_ADD; 2977 MEM32(esi + 0x8) = edi; /* 0x400019C3: mov dword ptr [esi + 8], edi */ 2978 edi = POP32_VAL(esp); /* 0x400019C6: pop edi */ 2979 esi = POP32_VAL(esp); /* 0x400019C7: pop esi */ 2980 ebx = POP32_VAL(esp); /* 0x400019C8: pop ebx */ 2981 esp = ebp; /* 0x400019C9: mov esp, ebp */ 2982 ebp = POP32_VAL(esp); /* 0x400019CB: pop ebp */ 2983 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x400019CC: ret */ 2984 L_40014A00: 2985 ecx = MEM32(ebp + (-0x10)); /* 0x40014A00: mov ecx, dword ptr [ebp - 0x10] */ 2986 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2988 ecx = ecx + 4; /* 0x40014A03: add ecx, 4 */ 2989 _flag_k = FK_ADD; 2990 RECOMP_BACKEDGE(); 2991 goto L_40001910; /* 0x40014A06: jmp 0x40001910 */ 2992 { RECOMP_REGS_OUT(); return; } /* end of function */ 2993 RECOMP_REGS_OUT(); 2994 } 2995 2996 void sub_40014A0B(void) { 2997 int _fpu_cmp = 0; 2998 uint32_t _cf = 0; 2999 int _df = 1; 3000 uint32_t _flag_k = FK_NONE; 3001 uint32_t _flag_a = 0, _flag_b = 0; 3002 uint32_t _itail_tgt = 0; 3003 RECOMP_REGS_LOCALS 3004 RECOMP_ENTER(0x40014A0Bu); 3005 3006 goto L_40014A0B; 3007 L_4001470A: 3008 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 3009 L_40014A0B: 3010 eax = 0x40016AD8u; /* 0x40014A0B: mov eax, 0x40016ad8 */ 3011 L_40014A10: 3012 RECOMP_BACKEDGE(); 3013 goto L_4001470A; /* 0x40014A10: jmp 0x4001470a */ 3014 { RECOMP_REGS_OUT(); return; } /* end of function */ 3015 _ljump: 3016 switch (_itail_tgt) { 3017 case 0x4001470Au: goto L_4001470A; 3018 case 0x40014A0Bu: goto L_40014A0B; 3019 case 0x40014A10u: goto L_40014A10; 3020 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3021 } 3022 RECOMP_REGS_OUT(); 3023 } 3024 3025 void sub_40014A20(void) { 3026 int _fpu_cmp = 0; 3027 uint32_t _cf = 0; 3028 int _df = 1; 3029 uint32_t _flag_k = FK_NONE; 3030 uint32_t _flag_a = 0, _flag_b = 0; 3031 uint32_t _itail_tgt = 0; 3032 RECOMP_REGS_LOCALS 3033 RECOMP_ENTER(0x40014A20u); 3034 3035 L_40014A20: 3036 eax = MEM32(ebp + (-0x10)); /* 0x40014A20: mov eax, dword ptr [ebp - 0x10] */ 3037 PUSH32(esp, eax); /* 0x40014A23: push eax */ 3038 RECOMP_ICALL(0x400146F2u); /* 0x40014A24: call 0x400146f2 */ /* not lifted */ 3039 RECOMP_FLAGS_IN(); 3040 ecx = POP32_VAL(esp); /* 0x40014A29: pop ecx */ 3041 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40014A2A: ret */ 3042 RECOMP_REGS_OUT(); 3043 } 3044 3045 void sub_40014A2B(void) { 3046 int _fpu_cmp = 0; 3047 uint32_t _cf = 0; 3048 int _df = 1; 3049 uint32_t _flag_k = FK_NONE; 3050 uint32_t _flag_a = 0, _flag_b = 0; 3051 uint32_t _itail_tgt = 0; 3052 RECOMP_REGS_LOCALS 3053 RECOMP_ENTER(0x40014A2Bu); 3054 3055 goto L_40014A2B; 3056 L_4001470A: 3057 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 3058 L_40014A2B: 3059 eax = 0x40016B00u; /* 0x40014A2B: mov eax, 0x40016b00 */ 3060 L_40014A30: 3061 RECOMP_BACKEDGE(); 3062 goto L_4001470A; /* 0x40014A30: jmp 0x4001470a */ 3063 { RECOMP_REGS_OUT(); return; } /* end of function */ 3064 _ljump: 3065 switch (_itail_tgt) { 3066 case 0x4001470Au: goto L_4001470A; 3067 case 0x40014A2Bu: goto L_40014A2B; 3068 case 0x40014A30u: goto L_40014A30; 3069 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3070 } 3071 RECOMP_REGS_OUT(); 3072 } 3073 3074 void sub_40014A40(void) { 3075 int _fpu_cmp = 0; 3076 uint32_t _cf = 0; 3077 int _df = 1; 3078 uint32_t _flag_k = FK_NONE; 3079 uint32_t _flag_a = 0, _flag_b = 0; 3080 uint32_t _itail_tgt = 0; 3081 RECOMP_REGS_LOCALS 3082 RECOMP_ENTER(0x40014A40u); 3083 3084 goto L_40014A40; 3085 L_40001500: 3086 MEM32(ecx) = 0x40016274u; /* 0x40001500: mov dword ptr [ecx], 0x40016274 */ 3087 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40001506: ret */ 3088 L_40014A40: 3089 ecx = MEM32(ebp + (-0x14)); /* 0x40014A40: mov ecx, dword ptr [ebp - 0x14] */ 3090 RECOMP_BACKEDGE(); 3091 goto L_40001500; /* 0x40014A43: jmp 0x40001500 */ 3092 { RECOMP_REGS_OUT(); return; } /* end of function */ 3093 RECOMP_REGS_OUT(); 3094 } 3095 3096 void sub_40014A48(void) { 3097 int _fpu_cmp = 0; 3098 uint32_t _cf = 0; 3099 int _df = 1; 3100 uint32_t _flag_k = FK_NONE; 3101 uint32_t _flag_a = 0, _flag_b = 0; 3102 uint32_t _itail_tgt = 0; 3103 RECOMP_REGS_LOCALS 3104 RECOMP_ENTER(0x40014A48u); 3105 3106 goto L_40014A48; 3107 L_4000CA30: 3108 PUSH32(esp, ebp); /* 0x4000CA30: push ebp */ 3109 ebp = esp; /* 0x4000CA31: mov ebp, esp */ 3110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3112 esp = esp - 8; /* 0x4000CA33: sub esp, 8 */ 3113 _flag_k = FK_CMP; 3114 PUSH32(esp, ebx); /* 0x4000CA36: push ebx */ 3115 PUSH32(esp, esi); /* 0x4000CA37: push esi */ 3116 esi = ecx; /* 0x4000CA38: mov esi, ecx */ 3117 ecx = MEM32(esi + 0x10); /* 0x4000CA3A: mov ecx, dword ptr [esi + 0x10] */ 3118 /* test ecx, ecx */ /* 0x4000CA3D: test ecx, ecx */ 3119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3120 _cf = 0; 3121 _flag_k = FK_TEST; 3122 PUSH32(esp, edi); /* 0x4000CA3F: push edi */ 3123 edi = MEM32(esi + 0x4); /* 0x4000CA40: mov edi, dword ptr [esi + 4] */ 3124 eax = MEM32(edi); /* 0x4000CA43: mov eax, dword ptr [edi] */ 3125 MEM32(ebp + (-0x4)) = eax; /* 0x4000CA45: mov dword ptr [ebp - 4], eax */ 3126 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA48: je 0x4000caaf */ 3127 L_4000CA4A: 3128 ecx = eax; /* 0x4000CA4A: mov ecx, eax */ 3129 /* cmp eax, ecx */ /* 0x4000CA4C: cmp eax, ecx */ 3130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3132 _flag_k = FK_CMP; 3133 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA4E: jne 0x4000caaf */ 3134 L_4000CA50: 3135 /* cmp edi, edi */ /* 0x4000CA50: cmp edi, edi */ 3136 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3137 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3138 _flag_k = FK_CMP; 3139 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA52: jne 0x4000caaf */ 3140 L_4000CA54: 3141 ebx = MEM32(edi + 0x4); /* 0x4000CA54: mov ebx, dword ptr [edi + 4] */ 3142 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CA57: cmp ebx, dword ptr [esi + 8] */ 3143 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3145 _flag_k = FK_CMP; 3146 edi = ebx; /* 0x4000CA5A: mov edi, ebx */ 3147 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CA87; /* 0x4000CA5C: je 0x4000ca87 */ 3148 L_4000CA5E: 3149 eax = MEM32(edi + 0x8); /* 0x4000CA5E: mov eax, dword ptr [edi + 8] */ 3150 PUSH32(esp, eax); /* 0x4000CA61: push eax */ 3151 ecx = esi; /* 0x4000CA62: mov ecx, esi */ 3152 RECOMP_ICALL(0x40009030u); /* 0x4000CA64: call 0x40009030 */ /* not lifted */ 3153 RECOMP_FLAGS_IN(); 3154 edi = MEM32(edi); /* 0x4000CA69: mov edi, dword ptr [edi] */ 3155 PUSH32(esp, 0); /* 0x4000CA6B: push 0 */ 3156 ecx = ebx + 0xC; /* 0x4000CA6D: lea ecx, [ebx + 0xc] */ 3157 RECOMP_ICALL(0x4000FE70u); /* 0x4000CA70: call 0x4000fe70 */ /* not lifted */ 3158 RECOMP_FLAGS_IN(); 3159 PUSH32(esp, ebx); /* 0x4000CA75: push ebx */ 3160 RECOMP_ICALL(0x400146F2u); /* 0x4000CA76: call 0x400146f2 */ /* not lifted */ 3161 RECOMP_FLAGS_IN(); 3162 eax = MEM32(esi + 0x8); /* 0x4000CA7B: mov eax, dword ptr [esi + 8] */ 3163 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3165 esp = esp + 4; /* 0x4000CA7E: add esp, 4 */ 3166 _flag_k = FK_ADD; 3167 /* cmp edi, eax */ /* 0x4000CA81: cmp edi, eax */ 3168 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3170 _flag_k = FK_CMP; 3171 ebx = edi; /* 0x4000CA83: mov ebx, edi */ 3172 RECOMP_BACKEDGE(); 3173 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CA5E; /* 0x4000CA85: jne 0x4000ca5e */ 3174 L_4000CA87: 3175 ecx = MEM32(esi + 0x4); /* 0x4000CA87: mov ecx, dword ptr [esi + 4] */ 3176 edx = MEM32(esi + 0x8); /* 0x4000CA8A: mov edx, dword ptr [esi + 8] */ 3177 MEM32(ecx + 0x4) = edx; /* 0x4000CA8D: mov dword ptr [ecx + 4], edx */ 3178 eax = MEM32(esi + 0x4); /* 0x4000CA90: mov eax, dword ptr [esi + 4] */ 3179 MEM32(esi + 0x10) = 0; /* 0x4000CA93: mov dword ptr [esi + 0x10], 0 */ 3180 MEM32(eax) = eax; /* 0x4000CA9A: mov dword ptr [eax], eax */ 3181 eax = MEM32(esi + 0x4); /* 0x4000CA9C: mov eax, dword ptr [esi + 4] */ 3182 MEM32(eax + 0x8) = eax; /* 0x4000CA9F: mov dword ptr [eax + 8], eax */ 3183 eax = ebp + (-0x8); /* 0x4000CAA2: lea eax, [ebp - 8] */ 3184 PUSH32(esp, eax); /* 0x4000CAA5: push eax */ 3185 ecx = esi; /* 0x4000CAA6: mov ecx, esi */ 3186 RECOMP_ICALL(0x40001BA0u); /* 0x4000CAA8: call 0x40001ba0 */ /* not lifted */ 3187 RECOMP_FLAGS_IN(); 3188 goto L_4000CAD0; /* 0x4000CAAD: jmp 0x4000cad0 */ 3189 L_4000CAAF: 3190 /* cmp eax, edi */ /* 0x4000CAAF: cmp eax, edi */ 3191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3193 _flag_k = FK_CMP; 3194 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CAD0; /* 0x4000CAB1: je 0x4000cad0 */ 3195 L_4000CAB3: 3196 ecx = ebp + (-0x4); /* 0x4000CAB3: lea ecx, [ebp - 4] */ 3197 ebx = eax; /* 0x4000CAB6: mov ebx, eax */ 3198 RECOMP_ICALL(0x40007BB0u); /* 0x4000CAB8: call 0x40007bb0 */ /* not lifted */ 3199 RECOMP_FLAGS_IN(); 3200 PUSH32(esp, ebx); /* 0x4000CABD: push ebx */ 3201 ecx = ebp + (-0x8); /* 0x4000CABE: lea ecx, [ebp - 8] */ 3202 PUSH32(esp, ecx); /* 0x4000CAC1: push ecx */ 3203 ecx = esi; /* 0x4000CAC2: mov ecx, esi */ 3204 RECOMP_ICALL(0x40007690u); /* 0x4000CAC4: call 0x40007690 */ /* not lifted */ 3205 RECOMP_FLAGS_IN(); 3206 eax = MEM32(ebp + (-0x4)); /* 0x4000CAC9: mov eax, dword ptr [ebp - 4] */ 3207 /* cmp eax, edi */ /* 0x4000CACC: cmp eax, edi */ 3208 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3209 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3210 _flag_k = FK_CMP; 3211 RECOMP_BACKEDGE(); 3212 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAB3; /* 0x4000CACE: jne 0x4000cab3 */ 3213 L_4000CAD0: 3214 edx = MEM32(esi + 0x4); /* 0x4000CAD0: mov edx, dword ptr [esi + 4] */ 3215 PUSH32(esp, edx); /* 0x4000CAD3: push edx */ 3216 RECOMP_ICALL(0x400146F2u); /* 0x4000CAD4: call 0x400146f2 */ /* not lifted */ 3217 RECOMP_FLAGS_IN(); 3218 eax = MEM32(esi + 0x8); /* 0x4000CAD9: mov eax, dword ptr [esi + 8] */ 3219 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3220 edi = 0; /* 0x4000CADC: xor edi, edi */ 3221 _cf = 0; 3222 _flag_k = FK_TEST; 3223 PUSH32(esp, eax); /* 0x4000CADE: push eax */ 3224 MEM32(esi + 0x4) = edi; /* 0x4000CADF: mov dword ptr [esi + 4], edi */ 3225 MEM32(esi + 0x10) = edi; /* 0x4000CAE2: mov dword ptr [esi + 0x10], edi */ 3226 RECOMP_ICALL(0x400146F2u); /* 0x4000CAE5: call 0x400146f2 */ /* not lifted */ 3227 RECOMP_FLAGS_IN(); 3228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3230 esp = esp + 8; /* 0x4000CAEA: add esp, 8 */ 3231 _flag_k = FK_ADD; 3232 MEM32(esi + 0x8) = edi; /* 0x4000CAED: mov dword ptr [esi + 8], edi */ 3233 edi = POP32_VAL(esp); /* 0x4000CAF0: pop edi */ 3234 esi = POP32_VAL(esp); /* 0x4000CAF1: pop esi */ 3235 ebx = POP32_VAL(esp); /* 0x4000CAF2: pop ebx */ 3236 esp = ebp; /* 0x4000CAF3: mov esp, ebp */ 3237 ebp = POP32_VAL(esp); /* 0x4000CAF5: pop ebp */ 3238 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CAF6: ret */ 3239 L_40014A48: 3240 ecx = MEM32(ebp + (-0x14)); /* 0x40014A48: mov ecx, dword ptr [ebp - 0x14] */ 3241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 3242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3243 ecx = ecx + 0x14u; /* 0x40014A4B: add ecx, 0x14 */ 3244 _flag_k = FK_ADD; 3245 RECOMP_BACKEDGE(); 3246 goto L_4000CA30; /* 0x40014A4E: jmp 0x4000ca30 */ 3247 { RECOMP_REGS_OUT(); return; } /* end of function */ 3248 RECOMP_REGS_OUT(); 3249 } 3250 3251 void sub_40014A53(void) { 3252 int _fpu_cmp = 0; 3253 uint32_t _cf = 0; 3254 int _df = 1; 3255 uint32_t _flag_k = FK_NONE; 3256 uint32_t _flag_a = 0, _flag_b = 0; 3257 uint32_t _itail_tgt = 0; 3258 RECOMP_REGS_LOCALS 3259 RECOMP_ENTER(0x40014A53u); 3260 3261 goto L_40014A53; 3262 L_40006A70: 3263 PUSH32(esp, ebp); /* 0x40006A70: push ebp */ 3264 ebp = esp; /* 0x40006A71: mov ebp, esp */ 3265 PUSH32(esp, ecx); /* 0x40006A73: push ecx */ 3266 PUSH32(esp, ebx); /* 0x40006A74: push ebx */ 3267 ebx = ecx; /* 0x40006A75: mov ebx, ecx */ 3268 eax = MEM32(ebx + 0x4); /* 0x40006A77: mov eax, dword ptr [ebx + 4] */ 3269 PUSH32(esp, edi); /* 0x40006A7A: push edi */ 3270 edi = MEM32(eax); /* 0x40006A7B: mov edi, dword ptr [eax] */ 3271 /* cmp edi, eax */ /* 0x40006A7D: cmp edi, eax */ 3272 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3274 _flag_k = FK_CMP; 3275 MEM32(ebp + (-0x4)) = eax; /* 0x40006A7F: mov dword ptr [ebp - 4], eax */ 3276 if (CMP_EQ(_flag_a, _flag_b)) goto L_40006AB8; /* 0x40006A82: je 0x40006ab8 */ 3277 L_40006A84: 3278 PUSH32(esp, esi); /* 0x40006A84: push esi */ 3279 L_40006A85: 3280 esi = edi; /* 0x40006A85: mov esi, edi */ 3281 eax = MEM32(esi + 0x4); /* 0x40006A87: mov eax, dword ptr [esi + 4] */ 3282 ecx = MEM32(esi); /* 0x40006A8A: mov ecx, dword ptr [esi] */ 3283 edi = MEM32(edi); /* 0x40006A8C: mov edi, dword ptr [edi] */ 3284 MEM32(eax) = ecx; /* 0x40006A8E: mov dword ptr [eax], ecx */ 3285 edx = MEM32(esi); /* 0x40006A90: mov edx, dword ptr [esi] */ 3286 eax = MEM32(esi + 0x4); /* 0x40006A92: mov eax, dword ptr [esi + 4] */ 3287 ecx = esi + 0x8; /* 0x40006A95: lea ecx, [esi + 8] */ 3288 MEM32(edx + 0x4) = eax; /* 0x40006A98: mov dword ptr [edx + 4], eax */ 3289 RECOMP_ICALL(0x40005490u); /* 0x40006A9B: call 0x40005490 */ /* not lifted */ 3290 RECOMP_FLAGS_IN(); 3291 PUSH32(esp, esi); /* 0x40006AA0: push esi */ 3292 RECOMP_ICALL(0x400146F2u); /* 0x40006AA1: call 0x400146f2 */ /* not lifted */ 3293 RECOMP_FLAGS_IN(); 3294 ecx = MEM32(ebx + 0x8); /* 0x40006AA6: mov ecx, dword ptr [ebx + 8] */ 3295 eax = MEM32(ebp + (-0x4)); /* 0x40006AA9: mov eax, dword ptr [ebp - 4] */ 3296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3298 esp = esp + 4; /* 0x40006AAC: add esp, 4 */ 3299 _flag_k = FK_ADD; 3300 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3301 ecx = ecx - 1; /* 0x40006AAF: dec ecx */ 3302 _flag_k = FK_DEC; 3303 /* cmp edi, eax */ /* 0x40006AB0: cmp edi, eax */ 3304 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3306 _flag_k = FK_CMP; 3307 MEM32(ebx + 0x8) = ecx; /* 0x40006AB2: mov dword ptr [ebx + 8], ecx */ 3308 RECOMP_BACKEDGE(); 3309 if (CMP_NE(_flag_a, _flag_b)) goto L_40006A85; /* 0x40006AB5: jne 0x40006a85 */ 3310 L_40006AB7: 3311 esi = POP32_VAL(esp); /* 0x40006AB7: pop esi */ 3312 L_40006AB8: 3313 ecx = MEM32(ebx + 0x4); /* 0x40006AB8: mov ecx, dword ptr [ebx + 4] */ 3314 PUSH32(esp, ecx); /* 0x40006ABB: push ecx */ 3315 RECOMP_ICALL(0x400146F2u); /* 0x40006ABC: call 0x400146f2 */ /* not lifted */ 3316 RECOMP_FLAGS_IN(); 3317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3319 esp = esp + 4; /* 0x40006AC1: add esp, 4 */ 3320 _flag_k = FK_ADD; 3321 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3322 eax = 0; /* 0x40006AC4: xor eax, eax */ 3323 _cf = 0; 3324 _flag_k = FK_TEST; 3325 edi = POP32_VAL(esp); /* 0x40006AC6: pop edi */ 3326 MEM32(ebx + 0x4) = eax; /* 0x40006AC7: mov dword ptr [ebx + 4], eax */ 3327 MEM32(ebx + 0x8) = eax; /* 0x40006ACA: mov dword ptr [ebx + 8], eax */ 3328 ebx = POP32_VAL(esp); /* 0x40006ACD: pop ebx */ 3329 esp = ebp; /* 0x40006ACE: mov esp, ebp */ 3330 ebp = POP32_VAL(esp); /* 0x40006AD0: pop ebp */ 3331 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40006AD1: ret */ 3332 L_40014A53: 3333 ecx = MEM32(ebp + (-0x14)); /* 0x40014A53: mov ecx, dword ptr [ebp - 0x14] */ 3334 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 3335 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3336 ecx = ecx + 0x28u; /* 0x40014A56: add ecx, 0x28 */ 3337 _flag_k = FK_ADD; 3338 RECOMP_BACKEDGE(); 3339 goto L_40006A70; /* 0x40014A59: jmp 0x40006a70 */ 3340 { RECOMP_REGS_OUT(); return; } /* end of function */ 3341 RECOMP_REGS_OUT(); 3342 } 3343 3344 void sub_40014A5E(void) { 3345 int _fpu_cmp = 0; 3346 uint32_t _cf = 0; 3347 int _df = 1; 3348 uint32_t _flag_k = FK_NONE; 3349 uint32_t _flag_a = 0, _flag_b = 0; 3350 uint32_t _itail_tgt = 0; 3351 RECOMP_REGS_LOCALS 3352 RECOMP_ENTER(0x40014A5Eu); 3353 3354 goto L_40014A5E; 3355 L_4000CD50: 3356 PUSH32(esp, ebp); /* 0x4000CD50: push ebp */ 3357 ebp = esp; /* 0x4000CD51: mov ebp, esp */ 3358 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3360 esp = esp - 8; /* 0x4000CD53: sub esp, 8 */ 3361 _flag_k = FK_CMP; 3362 PUSH32(esp, ebx); /* 0x4000CD56: push ebx */ 3363 PUSH32(esp, esi); /* 0x4000CD57: push esi */ 3364 esi = ecx; /* 0x4000CD58: mov esi, ecx */ 3365 ecx = MEM32(esi + 0x10); /* 0x4000CD5A: mov ecx, dword ptr [esi + 0x10] */ 3366 /* test ecx, ecx */ /* 0x4000CD5D: test ecx, ecx */ 3367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3368 _cf = 0; 3369 _flag_k = FK_TEST; 3370 PUSH32(esp, edi); /* 0x4000CD5F: push edi */ 3371 edi = MEM32(esi + 0x4); /* 0x4000CD60: mov edi, dword ptr [esi + 4] */ 3372 eax = MEM32(edi); /* 0x4000CD63: mov eax, dword ptr [edi] */ 3373 MEM32(ebp + (-0x4)) = eax; /* 0x4000CD65: mov dword ptr [ebp - 4], eax */ 3374 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD68: je 0x4000cdc5 */ 3375 L_4000CD6A: 3376 ecx = eax; /* 0x4000CD6A: mov ecx, eax */ 3377 /* cmp eax, ecx */ /* 0x4000CD6C: cmp eax, ecx */ 3378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3380 _flag_k = FK_CMP; 3381 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD6E: jne 0x4000cdc5 */ 3382 L_4000CD70: 3383 /* cmp edi, edi */ /* 0x4000CD70: cmp edi, edi */ 3384 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3386 _flag_k = FK_CMP; 3387 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD72: jne 0x4000cdc5 */ 3388 L_4000CD74: 3389 ebx = MEM32(edi + 0x4); /* 0x4000CD74: mov ebx, dword ptr [edi + 4] */ 3390 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CD77: cmp ebx, dword ptr [esi + 8] */ 3391 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3393 _flag_k = FK_CMP; 3394 edi = ebx; /* 0x4000CD7A: mov edi, ebx */ 3395 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CD9D; /* 0x4000CD7C: je 0x4000cd9d */ 3396 L_4000CD7E: 3397 eax = MEM32(edi + 0x8); /* 0x4000CD7E: mov eax, dword ptr [edi + 8] */ 3398 PUSH32(esp, eax); /* 0x4000CD81: push eax */ 3399 ecx = esi; /* 0x4000CD82: mov ecx, esi */ 3400 RECOMP_ICALL(0x40009400u); /* 0x4000CD84: call 0x40009400 */ /* not lifted */ 3401 RECOMP_FLAGS_IN(); 3402 edi = MEM32(edi); /* 0x4000CD89: mov edi, dword ptr [edi] */ 3403 PUSH32(esp, ebx); /* 0x4000CD8B: push ebx */ 3404 RECOMP_ICALL(0x400146F2u); /* 0x4000CD8C: call 0x400146f2 */ /* not lifted */ 3405 RECOMP_FLAGS_IN(); 3406 eax = MEM32(esi + 0x8); /* 0x4000CD91: mov eax, dword ptr [esi + 8] */ 3407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3409 esp = esp + 4; /* 0x4000CD94: add esp, 4 */ 3410 _flag_k = FK_ADD; 3411 /* cmp edi, eax */ /* 0x4000CD97: cmp edi, eax */ 3412 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3414 _flag_k = FK_CMP; 3415 ebx = edi; /* 0x4000CD99: mov ebx, edi */ 3416 RECOMP_BACKEDGE(); 3417 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CD7E; /* 0x4000CD9B: jne 0x4000cd7e */ 3418 L_4000CD9D: 3419 ecx = MEM32(esi + 0x4); /* 0x4000CD9D: mov ecx, dword ptr [esi + 4] */ 3420 edx = MEM32(esi + 0x8); /* 0x4000CDA0: mov edx, dword ptr [esi + 8] */ 3421 MEM32(ecx + 0x4) = edx; /* 0x4000CDA3: mov dword ptr [ecx + 4], edx */ 3422 eax = MEM32(esi + 0x4); /* 0x4000CDA6: mov eax, dword ptr [esi + 4] */ 3423 MEM32(esi + 0x10) = 0; /* 0x4000CDA9: mov dword ptr [esi + 0x10], 0 */ 3424 MEM32(eax) = eax; /* 0x4000CDB0: mov dword ptr [eax], eax */ 3425 eax = MEM32(esi + 0x4); /* 0x4000CDB2: mov eax, dword ptr [esi + 4] */ 3426 MEM32(eax + 0x8) = eax; /* 0x4000CDB5: mov dword ptr [eax + 8], eax */ 3427 eax = ebp + (-0x8); /* 0x4000CDB8: lea eax, [ebp - 8] */ 3428 PUSH32(esp, eax); /* 0x4000CDBB: push eax */ 3429 ecx = esi; /* 0x4000CDBC: mov ecx, esi */ 3430 RECOMP_ICALL(0x40001BA0u); /* 0x4000CDBE: call 0x40001ba0 */ /* not lifted */ 3431 RECOMP_FLAGS_IN(); 3432 goto L_4000CDE6; /* 0x4000CDC3: jmp 0x4000cde6 */ 3433 L_4000CDC5: 3434 /* cmp eax, edi */ /* 0x4000CDC5: cmp eax, edi */ 3435 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3437 _flag_k = FK_CMP; 3438 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CDE6; /* 0x4000CDC7: je 0x4000cde6 */ 3439 L_4000CDC9: 3440 ecx = ebp + (-0x4); /* 0x4000CDC9: lea ecx, [ebp - 4] */ 3441 ebx = eax; /* 0x4000CDCC: mov ebx, eax */ 3442 RECOMP_ICALL(0x400082F0u); /* 0x4000CDCE: call 0x400082f0 */ /* not lifted */ 3443 RECOMP_FLAGS_IN(); 3444 PUSH32(esp, ebx); /* 0x4000CDD3: push ebx */ 3445 ecx = ebp + (-0x8); /* 0x4000CDD4: lea ecx, [ebp - 8] */ 3446 PUSH32(esp, ecx); /* 0x4000CDD7: push ecx */ 3447 ecx = esi; /* 0x4000CDD8: mov ecx, esi */ 3448 RECOMP_ICALL(0x40007E20u); /* 0x4000CDDA: call 0x40007e20 */ /* not lifted */ 3449 RECOMP_FLAGS_IN(); 3450 eax = MEM32(ebp + (-0x4)); /* 0x4000CDDF: mov eax, dword ptr [ebp - 4] */ 3451 /* cmp eax, edi */ /* 0x4000CDE2: cmp eax, edi */ 3452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3454 _flag_k = FK_CMP; 3455 RECOMP_BACKEDGE(); 3456 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC9; /* 0x4000CDE4: jne 0x4000cdc9 */ 3457 L_4000CDE6: 3458 edx = MEM32(esi + 0x4); /* 0x4000CDE6: mov edx, dword ptr [esi + 4] */ 3459 PUSH32(esp, edx); /* 0x4000CDE9: push edx */ 3460 RECOMP_ICALL(0x400146F2u); /* 0x4000CDEA: call 0x400146f2 */ /* not lifted */ 3461 RECOMP_FLAGS_IN(); 3462 eax = MEM32(esi + 0x8); /* 0x4000CDEF: mov eax, dword ptr [esi + 8] */ 3463 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3464 edi = 0; /* 0x4000CDF2: xor edi, edi */ 3465 _cf = 0; 3466 _flag_k = FK_TEST; 3467 PUSH32(esp, eax); /* 0x4000CDF4: push eax */ 3468 MEM32(esi + 0x4) = edi; /* 0x4000CDF5: mov dword ptr [esi + 4], edi */ 3469 MEM32(esi + 0x10) = edi; /* 0x4000CDF8: mov dword ptr [esi + 0x10], edi */ 3470 RECOMP_ICALL(0x400146F2u); /* 0x4000CDFB: call 0x400146f2 */ /* not lifted */ 3471 RECOMP_FLAGS_IN(); 3472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3474 esp = esp + 8; /* 0x4000CE00: add esp, 8 */ 3475 _flag_k = FK_ADD; 3476 MEM32(esi + 0x8) = edi; /* 0x4000CE03: mov dword ptr [esi + 8], edi */ 3477 edi = POP32_VAL(esp); /* 0x4000CE06: pop edi */ 3478 esi = POP32_VAL(esp); /* 0x4000CE07: pop esi */ 3479 ebx = POP32_VAL(esp); /* 0x4000CE08: pop ebx */ 3480 esp = ebp; /* 0x4000CE09: mov esp, ebp */ 3481 ebp = POP32_VAL(esp); /* 0x4000CE0B: pop ebp */ 3482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CE0C: ret */ 3483 L_40014A5E: 3484 ecx = MEM32(ebp + (-0x14)); /* 0x40014A5E: mov ecx, dword ptr [ebp - 0x14] */ 3485 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 3486 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3487 ecx = ecx + 0x34u; /* 0x40014A61: add ecx, 0x34 */ 3488 _flag_k = FK_ADD; 3489 RECOMP_BACKEDGE(); 3490 goto L_4000CD50; /* 0x40014A64: jmp 0x4000cd50 */ 3491 { RECOMP_REGS_OUT(); return; } /* end of function */ 3492 RECOMP_REGS_OUT(); 3493 } 3494 3495 void sub_40014A69(void) { 3496 int _fpu_cmp = 0; 3497 uint32_t _cf = 0; 3498 int _df = 1; 3499 uint32_t _flag_k = FK_NONE; 3500 uint32_t _flag_a = 0, _flag_b = 0; 3501 uint32_t _itail_tgt = 0; 3502 RECOMP_REGS_LOCALS 3503 RECOMP_ENTER(0x40014A69u); 3504 3505 goto L_40014A69; 3506 L_4000CE10: 3507 PUSH32(esp, ebp); /* 0x4000CE10: push ebp */ 3508 ebp = esp; /* 0x4000CE11: mov ebp, esp */ 3509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3511 esp = esp - 8; /* 0x4000CE13: sub esp, 8 */ 3512 _flag_k = FK_CMP; 3513 PUSH32(esp, ebx); /* 0x4000CE16: push ebx */ 3514 PUSH32(esp, esi); /* 0x4000CE17: push esi */ 3515 esi = ecx; /* 0x4000CE18: mov esi, ecx */ 3516 ecx = MEM32(esi + 0x10); /* 0x4000CE1A: mov ecx, dword ptr [esi + 0x10] */ 3517 /* test ecx, ecx */ /* 0x4000CE1D: test ecx, ecx */ 3518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3519 _cf = 0; 3520 _flag_k = FK_TEST; 3521 PUSH32(esp, edi); /* 0x4000CE1F: push edi */ 3522 edi = MEM32(esi + 0x4); /* 0x4000CE20: mov edi, dword ptr [esi + 4] */ 3523 eax = MEM32(edi); /* 0x4000CE23: mov eax, dword ptr [edi] */ 3524 MEM32(ebp + (-0x4)) = eax; /* 0x4000CE25: mov dword ptr [ebp - 4], eax */ 3525 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE28: je 0x4000ce85 */ 3526 L_4000CE2A: 3527 ecx = eax; /* 0x4000CE2A: mov ecx, eax */ 3528 /* cmp eax, ecx */ /* 0x4000CE2C: cmp eax, ecx */ 3529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3531 _flag_k = FK_CMP; 3532 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE2E: jne 0x4000ce85 */ 3533 L_4000CE30: 3534 /* cmp edi, edi */ /* 0x4000CE30: cmp edi, edi */ 3535 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3537 _flag_k = FK_CMP; 3538 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE32: jne 0x4000ce85 */ 3539 L_4000CE34: 3540 ebx = MEM32(edi + 0x4); /* 0x4000CE34: mov ebx, dword ptr [edi + 4] */ 3541 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CE37: cmp ebx, dword ptr [esi + 8] */ 3542 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3544 _flag_k = FK_CMP; 3545 edi = ebx; /* 0x4000CE3A: mov edi, ebx */ 3546 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CE5D; /* 0x4000CE3C: je 0x4000ce5d */ 3547 L_4000CE3E: 3548 eax = MEM32(edi + 0x8); /* 0x4000CE3E: mov eax, dword ptr [edi + 8] */ 3549 PUSH32(esp, eax); /* 0x4000CE41: push eax */ 3550 ecx = esi; /* 0x4000CE42: mov ecx, esi */ 3551 RECOMP_ICALL(0x40009A50u); /* 0x4000CE44: call 0x40009a50 */ /* not lifted */ 3552 RECOMP_FLAGS_IN(); 3553 edi = MEM32(edi); /* 0x4000CE49: mov edi, dword ptr [edi] */ 3554 PUSH32(esp, ebx); /* 0x4000CE4B: push ebx */ 3555 RECOMP_ICALL(0x400146F2u); /* 0x4000CE4C: call 0x400146f2 */ /* not lifted */ 3556 RECOMP_FLAGS_IN(); 3557 eax = MEM32(esi + 0x8); /* 0x4000CE51: mov eax, dword ptr [esi + 8] */ 3558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3560 esp = esp + 4; /* 0x4000CE54: add esp, 4 */ 3561 _flag_k = FK_ADD; 3562 /* cmp edi, eax */ /* 0x4000CE57: cmp edi, eax */ 3563 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3565 _flag_k = FK_CMP; 3566 ebx = edi; /* 0x4000CE59: mov ebx, edi */ 3567 RECOMP_BACKEDGE(); 3568 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE3E; /* 0x4000CE5B: jne 0x4000ce3e */ 3569 L_4000CE5D: 3570 ecx = MEM32(esi + 0x4); /* 0x4000CE5D: mov ecx, dword ptr [esi + 4] */ 3571 edx = MEM32(esi + 0x8); /* 0x4000CE60: mov edx, dword ptr [esi + 8] */ 3572 MEM32(ecx + 0x4) = edx; /* 0x4000CE63: mov dword ptr [ecx + 4], edx */ 3573 eax = MEM32(esi + 0x4); /* 0x4000CE66: mov eax, dword ptr [esi + 4] */ 3574 MEM32(esi + 0x10) = 0; /* 0x4000CE69: mov dword ptr [esi + 0x10], 0 */ 3575 MEM32(eax) = eax; /* 0x4000CE70: mov dword ptr [eax], eax */ 3576 eax = MEM32(esi + 0x4); /* 0x4000CE72: mov eax, dword ptr [esi + 4] */ 3577 MEM32(eax + 0x8) = eax; /* 0x4000CE75: mov dword ptr [eax + 8], eax */ 3578 eax = ebp + (-0x8); /* 0x4000CE78: lea eax, [ebp - 8] */ 3579 PUSH32(esp, eax); /* 0x4000CE7B: push eax */ 3580 ecx = esi; /* 0x4000CE7C: mov ecx, esi */ 3581 RECOMP_ICALL(0x40001BA0u); /* 0x4000CE7E: call 0x40001ba0 */ /* not lifted */ 3582 RECOMP_FLAGS_IN(); 3583 goto L_4000CEA6; /* 0x4000CE83: jmp 0x4000cea6 */ 3584 L_4000CE85: 3585 /* cmp eax, edi */ /* 0x4000CE85: cmp eax, edi */ 3586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3588 _flag_k = FK_CMP; 3589 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CEA6; /* 0x4000CE87: je 0x4000cea6 */ 3590 L_4000CE89: 3591 ecx = ebp + (-0x4); /* 0x4000CE89: lea ecx, [ebp - 4] */ 3592 ebx = eax; /* 0x4000CE8C: mov ebx, eax */ 3593 RECOMP_ICALL(0x40008480u); /* 0x4000CE8E: call 0x40008480 */ /* not lifted */ 3594 RECOMP_FLAGS_IN(); 3595 PUSH32(esp, ebx); /* 0x4000CE93: push ebx */ 3596 ecx = ebp + (-0x8); /* 0x4000CE94: lea ecx, [ebp - 8] */ 3597 PUSH32(esp, ecx); /* 0x4000CE97: push ecx */ 3598 ecx = esi; /* 0x4000CE98: mov ecx, esi */ 3599 RECOMP_ICALL(0x40009690u); /* 0x4000CE9A: call 0x40009690 */ /* not lifted */ 3600 RECOMP_FLAGS_IN(); 3601 eax = MEM32(ebp + (-0x4)); /* 0x4000CE9F: mov eax, dword ptr [ebp - 4] */ 3602 /* cmp eax, edi */ /* 0x4000CEA2: cmp eax, edi */ 3603 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3605 _flag_k = FK_CMP; 3606 RECOMP_BACKEDGE(); 3607 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE89; /* 0x4000CEA4: jne 0x4000ce89 */ 3608 L_4000CEA6: 3609 edx = MEM32(esi + 0x4); /* 0x4000CEA6: mov edx, dword ptr [esi + 4] */ 3610 PUSH32(esp, edx); /* 0x4000CEA9: push edx */ 3611 RECOMP_ICALL(0x400146F2u); /* 0x4000CEAA: call 0x400146f2 */ /* not lifted */ 3612 RECOMP_FLAGS_IN(); 3613 eax = MEM32(esi + 0x8); /* 0x4000CEAF: mov eax, dword ptr [esi + 8] */ 3614 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3615 edi = 0; /* 0x4000CEB2: xor edi, edi */ 3616 _cf = 0; 3617 _flag_k = FK_TEST; 3618 PUSH32(esp, eax); /* 0x4000CEB4: push eax */ 3619 MEM32(esi + 0x4) = edi; /* 0x4000CEB5: mov dword ptr [esi + 4], edi */ 3620 MEM32(esi + 0x10) = edi; /* 0x4000CEB8: mov dword ptr [esi + 0x10], edi */ 3621 RECOMP_ICALL(0x400146F2u); /* 0x4000CEBB: call 0x400146f2 */ /* not lifted */ 3622 RECOMP_FLAGS_IN(); 3623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3625 esp = esp + 8; /* 0x4000CEC0: add esp, 8 */ 3626 _flag_k = FK_ADD; 3627 MEM32(esi + 0x8) = edi; /* 0x4000CEC3: mov dword ptr [esi + 8], edi */ 3628 edi = POP32_VAL(esp); /* 0x4000CEC6: pop edi */ 3629 esi = POP32_VAL(esp); /* 0x4000CEC7: pop esi */ 3630 ebx = POP32_VAL(esp); /* 0x4000CEC8: pop ebx */ 3631 esp = ebp; /* 0x4000CEC9: mov esp, ebp */ 3632 ebp = POP32_VAL(esp); /* 0x4000CECB: pop ebp */ 3633 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CECC: ret */ 3634 L_40014A69: 3635 ecx = MEM32(ebp + (-0x14)); /* 0x40014A69: mov ecx, dword ptr [ebp - 0x14] */ 3636 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x48u); 3637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3638 ecx = ecx + 0x48u; /* 0x40014A6C: add ecx, 0x48 */ 3639 _flag_k = FK_ADD; 3640 RECOMP_BACKEDGE(); 3641 goto L_4000CE10; /* 0x40014A6F: jmp 0x4000ce10 */ 3642 { RECOMP_REGS_OUT(); return; } /* end of function */ 3643 RECOMP_REGS_OUT(); 3644 } 3645 3646 void sub_40014A74(void) { 3647 int _fpu_cmp = 0; 3648 uint32_t _cf = 0; 3649 int _df = 1; 3650 uint32_t _flag_k = FK_NONE; 3651 uint32_t _flag_a = 0, _flag_b = 0; 3652 uint32_t _itail_tgt = 0; 3653 RECOMP_REGS_LOCALS 3654 RECOMP_ENTER(0x40014A74u); 3655 3656 goto L_40014A74; 3657 L_4000CE10: 3658 PUSH32(esp, ebp); /* 0x4000CE10: push ebp */ 3659 ebp = esp; /* 0x4000CE11: mov ebp, esp */ 3660 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3662 esp = esp - 8; /* 0x4000CE13: sub esp, 8 */ 3663 _flag_k = FK_CMP; 3664 PUSH32(esp, ebx); /* 0x4000CE16: push ebx */ 3665 PUSH32(esp, esi); /* 0x4000CE17: push esi */ 3666 esi = ecx; /* 0x4000CE18: mov esi, ecx */ 3667 ecx = MEM32(esi + 0x10); /* 0x4000CE1A: mov ecx, dword ptr [esi + 0x10] */ 3668 /* test ecx, ecx */ /* 0x4000CE1D: test ecx, ecx */ 3669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3670 _cf = 0; 3671 _flag_k = FK_TEST; 3672 PUSH32(esp, edi); /* 0x4000CE1F: push edi */ 3673 edi = MEM32(esi + 0x4); /* 0x4000CE20: mov edi, dword ptr [esi + 4] */ 3674 eax = MEM32(edi); /* 0x4000CE23: mov eax, dword ptr [edi] */ 3675 MEM32(ebp + (-0x4)) = eax; /* 0x4000CE25: mov dword ptr [ebp - 4], eax */ 3676 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE28: je 0x4000ce85 */ 3677 L_4000CE2A: 3678 ecx = eax; /* 0x4000CE2A: mov ecx, eax */ 3679 /* cmp eax, ecx */ /* 0x4000CE2C: cmp eax, ecx */ 3680 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3682 _flag_k = FK_CMP; 3683 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE2E: jne 0x4000ce85 */ 3684 L_4000CE30: 3685 /* cmp edi, edi */ /* 0x4000CE30: cmp edi, edi */ 3686 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3688 _flag_k = FK_CMP; 3689 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE32: jne 0x4000ce85 */ 3690 L_4000CE34: 3691 ebx = MEM32(edi + 0x4); /* 0x4000CE34: mov ebx, dword ptr [edi + 4] */ 3692 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CE37: cmp ebx, dword ptr [esi + 8] */ 3693 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3695 _flag_k = FK_CMP; 3696 edi = ebx; /* 0x4000CE3A: mov edi, ebx */ 3697 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CE5D; /* 0x4000CE3C: je 0x4000ce5d */ 3698 L_4000CE3E: 3699 eax = MEM32(edi + 0x8); /* 0x4000CE3E: mov eax, dword ptr [edi + 8] */ 3700 PUSH32(esp, eax); /* 0x4000CE41: push eax */ 3701 ecx = esi; /* 0x4000CE42: mov ecx, esi */ 3702 RECOMP_ICALL(0x40009A50u); /* 0x4000CE44: call 0x40009a50 */ /* not lifted */ 3703 RECOMP_FLAGS_IN(); 3704 edi = MEM32(edi); /* 0x4000CE49: mov edi, dword ptr [edi] */ 3705 PUSH32(esp, ebx); /* 0x4000CE4B: push ebx */ 3706 RECOMP_ICALL(0x400146F2u); /* 0x4000CE4C: call 0x400146f2 */ /* not lifted */ 3707 RECOMP_FLAGS_IN(); 3708 eax = MEM32(esi + 0x8); /* 0x4000CE51: mov eax, dword ptr [esi + 8] */ 3709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3711 esp = esp + 4; /* 0x4000CE54: add esp, 4 */ 3712 _flag_k = FK_ADD; 3713 /* cmp edi, eax */ /* 0x4000CE57: cmp edi, eax */ 3714 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3716 _flag_k = FK_CMP; 3717 ebx = edi; /* 0x4000CE59: mov ebx, edi */ 3718 RECOMP_BACKEDGE(); 3719 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE3E; /* 0x4000CE5B: jne 0x4000ce3e */ 3720 L_4000CE5D: 3721 ecx = MEM32(esi + 0x4); /* 0x4000CE5D: mov ecx, dword ptr [esi + 4] */ 3722 edx = MEM32(esi + 0x8); /* 0x4000CE60: mov edx, dword ptr [esi + 8] */ 3723 MEM32(ecx + 0x4) = edx; /* 0x4000CE63: mov dword ptr [ecx + 4], edx */ 3724 eax = MEM32(esi + 0x4); /* 0x4000CE66: mov eax, dword ptr [esi + 4] */ 3725 MEM32(esi + 0x10) = 0; /* 0x4000CE69: mov dword ptr [esi + 0x10], 0 */ 3726 MEM32(eax) = eax; /* 0x4000CE70: mov dword ptr [eax], eax */ 3727 eax = MEM32(esi + 0x4); /* 0x4000CE72: mov eax, dword ptr [esi + 4] */ 3728 MEM32(eax + 0x8) = eax; /* 0x4000CE75: mov dword ptr [eax + 8], eax */ 3729 eax = ebp + (-0x8); /* 0x4000CE78: lea eax, [ebp - 8] */ 3730 PUSH32(esp, eax); /* 0x4000CE7B: push eax */ 3731 ecx = esi; /* 0x4000CE7C: mov ecx, esi */ 3732 RECOMP_ICALL(0x40001BA0u); /* 0x4000CE7E: call 0x40001ba0 */ /* not lifted */ 3733 RECOMP_FLAGS_IN(); 3734 goto L_4000CEA6; /* 0x4000CE83: jmp 0x4000cea6 */ 3735 L_4000CE85: 3736 /* cmp eax, edi */ /* 0x4000CE85: cmp eax, edi */ 3737 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3739 _flag_k = FK_CMP; 3740 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CEA6; /* 0x4000CE87: je 0x4000cea6 */ 3741 L_4000CE89: 3742 ecx = ebp + (-0x4); /* 0x4000CE89: lea ecx, [ebp - 4] */ 3743 ebx = eax; /* 0x4000CE8C: mov ebx, eax */ 3744 RECOMP_ICALL(0x40008480u); /* 0x4000CE8E: call 0x40008480 */ /* not lifted */ 3745 RECOMP_FLAGS_IN(); 3746 PUSH32(esp, ebx); /* 0x4000CE93: push ebx */ 3747 ecx = ebp + (-0x8); /* 0x4000CE94: lea ecx, [ebp - 8] */ 3748 PUSH32(esp, ecx); /* 0x4000CE97: push ecx */ 3749 ecx = esi; /* 0x4000CE98: mov ecx, esi */ 3750 RECOMP_ICALL(0x40009690u); /* 0x4000CE9A: call 0x40009690 */ /* not lifted */ 3751 RECOMP_FLAGS_IN(); 3752 eax = MEM32(ebp + (-0x4)); /* 0x4000CE9F: mov eax, dword ptr [ebp - 4] */ 3753 /* cmp eax, edi */ /* 0x4000CEA2: cmp eax, edi */ 3754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3756 _flag_k = FK_CMP; 3757 RECOMP_BACKEDGE(); 3758 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE89; /* 0x4000CEA4: jne 0x4000ce89 */ 3759 L_4000CEA6: 3760 edx = MEM32(esi + 0x4); /* 0x4000CEA6: mov edx, dword ptr [esi + 4] */ 3761 PUSH32(esp, edx); /* 0x4000CEA9: push edx */ 3762 RECOMP_ICALL(0x400146F2u); /* 0x4000CEAA: call 0x400146f2 */ /* not lifted */ 3763 RECOMP_FLAGS_IN(); 3764 eax = MEM32(esi + 0x8); /* 0x4000CEAF: mov eax, dword ptr [esi + 8] */ 3765 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3766 edi = 0; /* 0x4000CEB2: xor edi, edi */ 3767 _cf = 0; 3768 _flag_k = FK_TEST; 3769 PUSH32(esp, eax); /* 0x4000CEB4: push eax */ 3770 MEM32(esi + 0x4) = edi; /* 0x4000CEB5: mov dword ptr [esi + 4], edi */ 3771 MEM32(esi + 0x10) = edi; /* 0x4000CEB8: mov dword ptr [esi + 0x10], edi */ 3772 RECOMP_ICALL(0x400146F2u); /* 0x4000CEBB: call 0x400146f2 */ /* not lifted */ 3773 RECOMP_FLAGS_IN(); 3774 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3775 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3776 esp = esp + 8; /* 0x4000CEC0: add esp, 8 */ 3777 _flag_k = FK_ADD; 3778 MEM32(esi + 0x8) = edi; /* 0x4000CEC3: mov dword ptr [esi + 8], edi */ 3779 edi = POP32_VAL(esp); /* 0x4000CEC6: pop edi */ 3780 esi = POP32_VAL(esp); /* 0x4000CEC7: pop esi */ 3781 ebx = POP32_VAL(esp); /* 0x4000CEC8: pop ebx */ 3782 esp = ebp; /* 0x4000CEC9: mov esp, ebp */ 3783 ebp = POP32_VAL(esp); /* 0x4000CECB: pop ebp */ 3784 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CECC: ret */ 3785 L_40014A74: 3786 ecx = MEM32(ebp + (-0x14)); /* 0x40014A74: mov ecx, dword ptr [ebp - 0x14] */ 3787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x5Cu); 3788 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3789 ecx = ecx + 0x5Cu; /* 0x40014A77: add ecx, 0x5c */ 3790 _flag_k = FK_ADD; 3791 RECOMP_BACKEDGE(); 3792 goto L_4000CE10; /* 0x40014A7A: jmp 0x4000ce10 */ 3793 { RECOMP_REGS_OUT(); return; } /* end of function */ 3794 RECOMP_REGS_OUT(); 3795 } 3796 3797 void sub_40014A7F(void) { 3798 int _fpu_cmp = 0; 3799 uint32_t _cf = 0; 3800 int _df = 1; 3801 uint32_t _flag_k = FK_NONE; 3802 uint32_t _flag_a = 0, _flag_b = 0; 3803 uint32_t _itail_tgt = 0; 3804 RECOMP_REGS_LOCALS 3805 RECOMP_ENTER(0x40014A7Fu); 3806 3807 goto L_40014A7F; 3808 L_4000CED0: 3809 PUSH32(esp, ebp); /* 0x4000CED0: push ebp */ 3810 ebp = esp; /* 0x4000CED1: mov ebp, esp */ 3811 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3813 esp = esp - 8; /* 0x4000CED3: sub esp, 8 */ 3814 _flag_k = FK_CMP; 3815 PUSH32(esp, ebx); /* 0x4000CED6: push ebx */ 3816 PUSH32(esp, esi); /* 0x4000CED7: push esi */ 3817 esi = ecx; /* 0x4000CED8: mov esi, ecx */ 3818 ecx = MEM32(esi + 0x10); /* 0x4000CEDA: mov ecx, dword ptr [esi + 0x10] */ 3819 /* test ecx, ecx */ /* 0x4000CEDD: test ecx, ecx */ 3820 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3821 _cf = 0; 3822 _flag_k = FK_TEST; 3823 PUSH32(esp, edi); /* 0x4000CEDF: push edi */ 3824 edi = MEM32(esi + 0x4); /* 0x4000CEE0: mov edi, dword ptr [esi + 4] */ 3825 eax = MEM32(edi); /* 0x4000CEE3: mov eax, dword ptr [edi] */ 3826 MEM32(ebp + (-0x4)) = eax; /* 0x4000CEE5: mov dword ptr [ebp - 4], eax */ 3827 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEE8: je 0x4000cf45 */ 3828 L_4000CEEA: 3829 ecx = eax; /* 0x4000CEEA: mov ecx, eax */ 3830 /* cmp eax, ecx */ /* 0x4000CEEC: cmp eax, ecx */ 3831 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3833 _flag_k = FK_CMP; 3834 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEEE: jne 0x4000cf45 */ 3835 L_4000CEF0: 3836 /* cmp edi, edi */ /* 0x4000CEF0: cmp edi, edi */ 3837 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3839 _flag_k = FK_CMP; 3840 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEF2: jne 0x4000cf45 */ 3841 L_4000CEF4: 3842 ebx = MEM32(edi + 0x4); /* 0x4000CEF4: mov ebx, dword ptr [edi + 4] */ 3843 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CEF7: cmp ebx, dword ptr [esi + 8] */ 3844 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3846 _flag_k = FK_CMP; 3847 edi = ebx; /* 0x4000CEFA: mov edi, ebx */ 3848 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CF1D; /* 0x4000CEFC: je 0x4000cf1d */ 3849 L_4000CEFE: 3850 eax = MEM32(edi + 0x8); /* 0x4000CEFE: mov eax, dword ptr [edi + 8] */ 3851 PUSH32(esp, eax); /* 0x4000CF01: push eax */ 3852 ecx = esi; /* 0x4000CF02: mov ecx, esi */ 3853 RECOMP_ICALL(0x40009E80u); /* 0x4000CF04: call 0x40009e80 */ /* not lifted */ 3854 RECOMP_FLAGS_IN(); 3855 edi = MEM32(edi); /* 0x4000CF09: mov edi, dword ptr [edi] */ 3856 PUSH32(esp, ebx); /* 0x4000CF0B: push ebx */ 3857 RECOMP_ICALL(0x400146F2u); /* 0x4000CF0C: call 0x400146f2 */ /* not lifted */ 3858 RECOMP_FLAGS_IN(); 3859 eax = MEM32(esi + 0x8); /* 0x4000CF11: mov eax, dword ptr [esi + 8] */ 3860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3862 esp = esp + 4; /* 0x4000CF14: add esp, 4 */ 3863 _flag_k = FK_ADD; 3864 /* cmp edi, eax */ /* 0x4000CF17: cmp edi, eax */ 3865 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3867 _flag_k = FK_CMP; 3868 ebx = edi; /* 0x4000CF19: mov ebx, edi */ 3869 RECOMP_BACKEDGE(); 3870 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CEFE; /* 0x4000CF1B: jne 0x4000cefe */ 3871 L_4000CF1D: 3872 ecx = MEM32(esi + 0x4); /* 0x4000CF1D: mov ecx, dword ptr [esi + 4] */ 3873 edx = MEM32(esi + 0x8); /* 0x4000CF20: mov edx, dword ptr [esi + 8] */ 3874 MEM32(ecx + 0x4) = edx; /* 0x4000CF23: mov dword ptr [ecx + 4], edx */ 3875 eax = MEM32(esi + 0x4); /* 0x4000CF26: mov eax, dword ptr [esi + 4] */ 3876 MEM32(esi + 0x10) = 0; /* 0x4000CF29: mov dword ptr [esi + 0x10], 0 */ 3877 MEM32(eax) = eax; /* 0x4000CF30: mov dword ptr [eax], eax */ 3878 eax = MEM32(esi + 0x4); /* 0x4000CF32: mov eax, dword ptr [esi + 4] */ 3879 MEM32(eax + 0x8) = eax; /* 0x4000CF35: mov dword ptr [eax + 8], eax */ 3880 eax = ebp + (-0x8); /* 0x4000CF38: lea eax, [ebp - 8] */ 3881 PUSH32(esp, eax); /* 0x4000CF3B: push eax */ 3882 ecx = esi; /* 0x4000CF3C: mov ecx, esi */ 3883 RECOMP_ICALL(0x40001BA0u); /* 0x4000CF3E: call 0x40001ba0 */ /* not lifted */ 3884 RECOMP_FLAGS_IN(); 3885 goto L_4000CF66; /* 0x4000CF43: jmp 0x4000cf66 */ 3886 L_4000CF45: 3887 /* cmp eax, edi */ /* 0x4000CF45: cmp eax, edi */ 3888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3890 _flag_k = FK_CMP; 3891 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CF66; /* 0x4000CF47: je 0x4000cf66 */ 3892 L_4000CF49: 3893 ecx = ebp + (-0x4); /* 0x4000CF49: lea ecx, [ebp - 4] */ 3894 ebx = eax; /* 0x4000CF4C: mov ebx, eax */ 3895 RECOMP_ICALL(0x40008540u); /* 0x4000CF4E: call 0x40008540 */ /* not lifted */ 3896 RECOMP_FLAGS_IN(); 3897 PUSH32(esp, ebx); /* 0x4000CF53: push ebx */ 3898 ecx = ebp + (-0x8); /* 0x4000CF54: lea ecx, [ebp - 8] */ 3899 PUSH32(esp, ecx); /* 0x4000CF57: push ecx */ 3900 ecx = esi; /* 0x4000CF58: mov ecx, esi */ 3901 RECOMP_ICALL(0x40009AC0u); /* 0x4000CF5A: call 0x40009ac0 */ /* not lifted */ 3902 RECOMP_FLAGS_IN(); 3903 eax = MEM32(ebp + (-0x4)); /* 0x4000CF5F: mov eax, dword ptr [ebp - 4] */ 3904 /* cmp eax, edi */ /* 0x4000CF62: cmp eax, edi */ 3905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3907 _flag_k = FK_CMP; 3908 RECOMP_BACKEDGE(); 3909 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF49; /* 0x4000CF64: jne 0x4000cf49 */ 3910 L_4000CF66: 3911 edx = MEM32(esi + 0x4); /* 0x4000CF66: mov edx, dword ptr [esi + 4] */ 3912 PUSH32(esp, edx); /* 0x4000CF69: push edx */ 3913 RECOMP_ICALL(0x400146F2u); /* 0x4000CF6A: call 0x400146f2 */ /* not lifted */ 3914 RECOMP_FLAGS_IN(); 3915 eax = MEM32(esi + 0x8); /* 0x4000CF6F: mov eax, dword ptr [esi + 8] */ 3916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3917 edi = 0; /* 0x4000CF72: xor edi, edi */ 3918 _cf = 0; 3919 _flag_k = FK_TEST; 3920 PUSH32(esp, eax); /* 0x4000CF74: push eax */ 3921 MEM32(esi + 0x4) = edi; /* 0x4000CF75: mov dword ptr [esi + 4], edi */ 3922 MEM32(esi + 0x10) = edi; /* 0x4000CF78: mov dword ptr [esi + 0x10], edi */ 3923 RECOMP_ICALL(0x400146F2u); /* 0x4000CF7B: call 0x400146f2 */ /* not lifted */ 3924 RECOMP_FLAGS_IN(); 3925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3927 esp = esp + 8; /* 0x4000CF80: add esp, 8 */ 3928 _flag_k = FK_ADD; 3929 MEM32(esi + 0x8) = edi; /* 0x4000CF83: mov dword ptr [esi + 8], edi */ 3930 edi = POP32_VAL(esp); /* 0x4000CF86: pop edi */ 3931 esi = POP32_VAL(esp); /* 0x4000CF87: pop esi */ 3932 ebx = POP32_VAL(esp); /* 0x4000CF88: pop ebx */ 3933 esp = ebp; /* 0x4000CF89: mov esp, ebp */ 3934 ebp = POP32_VAL(esp); /* 0x4000CF8B: pop ebp */ 3935 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CF8C: ret */ 3936 L_40014A7F: 3937 ecx = MEM32(ebp + (-0x14)); /* 0x40014A7F: mov ecx, dword ptr [ebp - 0x14] */ 3938 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x160u); 3939 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3940 ecx = ecx + 0x160u; /* 0x40014A82: add ecx, 0x160 */ 3941 _flag_k = FK_ADD; 3942 RECOMP_BACKEDGE(); 3943 goto L_4000CED0; /* 0x40014A88: jmp 0x4000ced0 */ 3944 { RECOMP_REGS_OUT(); return; } /* end of function */ 3945 RECOMP_REGS_OUT(); 3946 } 3947 3948 void sub_40014A8D(void) { 3949 int _fpu_cmp = 0; 3950 uint32_t _cf = 0; 3951 int _df = 1; 3952 uint32_t _flag_k = FK_NONE; 3953 uint32_t _flag_a = 0, _flag_b = 0; 3954 uint32_t _itail_tgt = 0; 3955 RECOMP_REGS_LOCALS 3956 RECOMP_ENTER(0x40014A8Du); 3957 3958 goto L_40014A8D; 3959 L_4000CF90: 3960 PUSH32(esp, ebp); /* 0x4000CF90: push ebp */ 3961 ebp = esp; /* 0x4000CF91: mov ebp, esp */ 3962 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3964 esp = esp - 8; /* 0x4000CF93: sub esp, 8 */ 3965 _flag_k = FK_CMP; 3966 PUSH32(esp, ebx); /* 0x4000CF96: push ebx */ 3967 PUSH32(esp, esi); /* 0x4000CF97: push esi */ 3968 esi = ecx; /* 0x4000CF98: mov esi, ecx */ 3969 ecx = MEM32(esi + 0x10); /* 0x4000CF9A: mov ecx, dword ptr [esi + 0x10] */ 3970 /* test ecx, ecx */ /* 0x4000CF9D: test ecx, ecx */ 3971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3972 _cf = 0; 3973 _flag_k = FK_TEST; 3974 PUSH32(esp, edi); /* 0x4000CF9F: push edi */ 3975 edi = MEM32(esi + 0x4); /* 0x4000CFA0: mov edi, dword ptr [esi + 4] */ 3976 eax = MEM32(edi); /* 0x4000CFA3: mov eax, dword ptr [edi] */ 3977 MEM32(ebp + (-0x4)) = eax; /* 0x4000CFA5: mov dword ptr [ebp - 4], eax */ 3978 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFA8: je 0x4000d005 */ 3979 L_4000CFAA: 3980 ecx = eax; /* 0x4000CFAA: mov ecx, eax */ 3981 /* cmp eax, ecx */ /* 0x4000CFAC: cmp eax, ecx */ 3982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3984 _flag_k = FK_CMP; 3985 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFAE: jne 0x4000d005 */ 3986 L_4000CFB0: 3987 /* cmp edi, edi */ /* 0x4000CFB0: cmp edi, edi */ 3988 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3990 _flag_k = FK_CMP; 3991 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFB2: jne 0x4000d005 */ 3992 L_4000CFB4: 3993 ebx = MEM32(edi + 0x4); /* 0x4000CFB4: mov ebx, dword ptr [edi + 4] */ 3994 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CFB7: cmp ebx, dword ptr [esi + 8] */ 3995 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3997 _flag_k = FK_CMP; 3998 edi = ebx; /* 0x4000CFBA: mov edi, ebx */ 3999 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CFDD; /* 0x4000CFBC: je 0x4000cfdd */ 4000 L_4000CFBE: 4001 eax = MEM32(edi + 0x8); /* 0x4000CFBE: mov eax, dword ptr [edi + 8] */ 4002 PUSH32(esp, eax); /* 0x4000CFC1: push eax */ 4003 ecx = esi; /* 0x4000CFC2: mov ecx, esi */ 4004 RECOMP_ICALL(0x40009F20u); /* 0x4000CFC4: call 0x40009f20 */ /* not lifted */ 4005 RECOMP_FLAGS_IN(); 4006 edi = MEM32(edi); /* 0x4000CFC9: mov edi, dword ptr [edi] */ 4007 PUSH32(esp, ebx); /* 0x4000CFCB: push ebx */ 4008 RECOMP_ICALL(0x400146F2u); /* 0x4000CFCC: call 0x400146f2 */ /* not lifted */ 4009 RECOMP_FLAGS_IN(); 4010 eax = MEM32(esi + 0x8); /* 0x4000CFD1: mov eax, dword ptr [esi + 8] */ 4011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4013 esp = esp + 4; /* 0x4000CFD4: add esp, 4 */ 4014 _flag_k = FK_ADD; 4015 /* cmp edi, eax */ /* 0x4000CFD7: cmp edi, eax */ 4016 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4018 _flag_k = FK_CMP; 4019 ebx = edi; /* 0x4000CFD9: mov ebx, edi */ 4020 RECOMP_BACKEDGE(); 4021 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CFBE; /* 0x4000CFDB: jne 0x4000cfbe */ 4022 L_4000CFDD: 4023 ecx = MEM32(esi + 0x4); /* 0x4000CFDD: mov ecx, dword ptr [esi + 4] */ 4024 edx = MEM32(esi + 0x8); /* 0x4000CFE0: mov edx, dword ptr [esi + 8] */ 4025 MEM32(ecx + 0x4) = edx; /* 0x4000CFE3: mov dword ptr [ecx + 4], edx */ 4026 eax = MEM32(esi + 0x4); /* 0x4000CFE6: mov eax, dword ptr [esi + 4] */ 4027 MEM32(esi + 0x10) = 0; /* 0x4000CFE9: mov dword ptr [esi + 0x10], 0 */ 4028 MEM32(eax) = eax; /* 0x4000CFF0: mov dword ptr [eax], eax */ 4029 eax = MEM32(esi + 0x4); /* 0x4000CFF2: mov eax, dword ptr [esi + 4] */ 4030 MEM32(eax + 0x8) = eax; /* 0x4000CFF5: mov dword ptr [eax + 8], eax */ 4031 eax = ebp + (-0x8); /* 0x4000CFF8: lea eax, [ebp - 8] */ 4032 PUSH32(esp, eax); /* 0x4000CFFB: push eax */ 4033 ecx = esi; /* 0x4000CFFC: mov ecx, esi */ 4034 RECOMP_ICALL(0x40001BA0u); /* 0x4000CFFE: call 0x40001ba0 */ /* not lifted */ 4035 RECOMP_FLAGS_IN(); 4036 goto L_4000D026; /* 0x4000D003: jmp 0x4000d026 */ 4037 L_4000D005: 4038 /* cmp eax, edi */ /* 0x4000D005: cmp eax, edi */ 4039 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4041 _flag_k = FK_CMP; 4042 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D026; /* 0x4000D007: je 0x4000d026 */ 4043 L_4000D009: 4044 ecx = ebp + (-0x4); /* 0x4000D009: lea ecx, [ebp - 4] */ 4045 ebx = eax; /* 0x4000D00C: mov ebx, eax */ 4046 RECOMP_ICALL(0x40001C50u); /* 0x4000D00E: call 0x40001c50 */ /* not lifted */ 4047 RECOMP_FLAGS_IN(); 4048 PUSH32(esp, ebx); /* 0x4000D013: push ebx */ 4049 ecx = ebp + (-0x8); /* 0x4000D014: lea ecx, [ebp - 8] */ 4050 PUSH32(esp, ecx); /* 0x4000D017: push ecx */ 4051 ecx = esi; /* 0x4000D018: mov ecx, esi */ 4052 RECOMP_ICALL(0x4000DE30u); /* 0x4000D01A: call 0x4000de30 */ /* not lifted */ 4053 RECOMP_FLAGS_IN(); 4054 eax = MEM32(ebp + (-0x4)); /* 0x4000D01F: mov eax, dword ptr [ebp - 4] */ 4055 /* cmp eax, edi */ /* 0x4000D022: cmp eax, edi */ 4056 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4058 _flag_k = FK_CMP; 4059 RECOMP_BACKEDGE(); 4060 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D009; /* 0x4000D024: jne 0x4000d009 */ 4061 L_4000D026: 4062 edx = MEM32(esi + 0x4); /* 0x4000D026: mov edx, dword ptr [esi + 4] */ 4063 PUSH32(esp, edx); /* 0x4000D029: push edx */ 4064 RECOMP_ICALL(0x400146F2u); /* 0x4000D02A: call 0x400146f2 */ /* not lifted */ 4065 RECOMP_FLAGS_IN(); 4066 eax = MEM32(esi + 0x8); /* 0x4000D02F: mov eax, dword ptr [esi + 8] */ 4067 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4068 edi = 0; /* 0x4000D032: xor edi, edi */ 4069 _cf = 0; 4070 _flag_k = FK_TEST; 4071 PUSH32(esp, eax); /* 0x4000D034: push eax */ 4072 MEM32(esi + 0x4) = edi; /* 0x4000D035: mov dword ptr [esi + 4], edi */ 4073 MEM32(esi + 0x10) = edi; /* 0x4000D038: mov dword ptr [esi + 0x10], edi */ 4074 RECOMP_ICALL(0x400146F2u); /* 0x4000D03B: call 0x400146f2 */ /* not lifted */ 4075 RECOMP_FLAGS_IN(); 4076 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4077 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4078 esp = esp + 8; /* 0x4000D040: add esp, 8 */ 4079 _flag_k = FK_ADD; 4080 MEM32(esi + 0x8) = edi; /* 0x4000D043: mov dword ptr [esi + 8], edi */ 4081 edi = POP32_VAL(esp); /* 0x4000D046: pop edi */ 4082 esi = POP32_VAL(esp); /* 0x4000D047: pop esi */ 4083 ebx = POP32_VAL(esp); /* 0x4000D048: pop ebx */ 4084 esp = ebp; /* 0x4000D049: mov esp, ebp */ 4085 ebp = POP32_VAL(esp); /* 0x4000D04B: pop ebp */ 4086 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D04C: ret */ 4087 L_40014A8D: 4088 ecx = MEM32(ebp + (-0x14)); /* 0x40014A8D: mov ecx, dword ptr [ebp - 0x14] */ 4089 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x19Cu); 4090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4091 ecx = ecx + 0x19Cu; /* 0x40014A90: add ecx, 0x19c */ 4092 _flag_k = FK_ADD; 4093 RECOMP_BACKEDGE(); 4094 goto L_4000CF90; /* 0x40014A96: jmp 0x4000cf90 */ 4095 { RECOMP_REGS_OUT(); return; } /* end of function */ 4096 RECOMP_REGS_OUT(); 4097 } 4098 4099 void sub_40014A9B(void) { 4100 int _fpu_cmp = 0; 4101 uint32_t _cf = 0; 4102 int _df = 1; 4103 uint32_t _flag_k = FK_NONE; 4104 uint32_t _flag_a = 0, _flag_b = 0; 4105 uint32_t _itail_tgt = 0; 4106 RECOMP_REGS_LOCALS 4107 RECOMP_ENTER(0x40014A9Bu); 4108 4109 goto L_40014A9B; 4110 L_4000CF90: 4111 PUSH32(esp, ebp); /* 0x4000CF90: push ebp */ 4112 ebp = esp; /* 0x4000CF91: mov ebp, esp */ 4113 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4115 esp = esp - 8; /* 0x4000CF93: sub esp, 8 */ 4116 _flag_k = FK_CMP; 4117 PUSH32(esp, ebx); /* 0x4000CF96: push ebx */ 4118 PUSH32(esp, esi); /* 0x4000CF97: push esi */ 4119 esi = ecx; /* 0x4000CF98: mov esi, ecx */ 4120 ecx = MEM32(esi + 0x10); /* 0x4000CF9A: mov ecx, dword ptr [esi + 0x10] */ 4121 /* test ecx, ecx */ /* 0x4000CF9D: test ecx, ecx */ 4122 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4123 _cf = 0; 4124 _flag_k = FK_TEST; 4125 PUSH32(esp, edi); /* 0x4000CF9F: push edi */ 4126 edi = MEM32(esi + 0x4); /* 0x4000CFA0: mov edi, dword ptr [esi + 4] */ 4127 eax = MEM32(edi); /* 0x4000CFA3: mov eax, dword ptr [edi] */ 4128 MEM32(ebp + (-0x4)) = eax; /* 0x4000CFA5: mov dword ptr [ebp - 4], eax */ 4129 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFA8: je 0x4000d005 */ 4130 L_4000CFAA: 4131 ecx = eax; /* 0x4000CFAA: mov ecx, eax */ 4132 /* cmp eax, ecx */ /* 0x4000CFAC: cmp eax, ecx */ 4133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4135 _flag_k = FK_CMP; 4136 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFAE: jne 0x4000d005 */ 4137 L_4000CFB0: 4138 /* cmp edi, edi */ /* 0x4000CFB0: cmp edi, edi */ 4139 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4141 _flag_k = FK_CMP; 4142 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFB2: jne 0x4000d005 */ 4143 L_4000CFB4: 4144 ebx = MEM32(edi + 0x4); /* 0x4000CFB4: mov ebx, dword ptr [edi + 4] */ 4145 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CFB7: cmp ebx, dword ptr [esi + 8] */ 4146 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4148 _flag_k = FK_CMP; 4149 edi = ebx; /* 0x4000CFBA: mov edi, ebx */ 4150 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CFDD; /* 0x4000CFBC: je 0x4000cfdd */ 4151 L_4000CFBE: 4152 eax = MEM32(edi + 0x8); /* 0x4000CFBE: mov eax, dword ptr [edi + 8] */ 4153 PUSH32(esp, eax); /* 0x4000CFC1: push eax */ 4154 ecx = esi; /* 0x4000CFC2: mov ecx, esi */ 4155 RECOMP_ICALL(0x40009F20u); /* 0x4000CFC4: call 0x40009f20 */ /* not lifted */ 4156 RECOMP_FLAGS_IN(); 4157 edi = MEM32(edi); /* 0x4000CFC9: mov edi, dword ptr [edi] */ 4158 PUSH32(esp, ebx); /* 0x4000CFCB: push ebx */ 4159 RECOMP_ICALL(0x400146F2u); /* 0x4000CFCC: call 0x400146f2 */ /* not lifted */ 4160 RECOMP_FLAGS_IN(); 4161 eax = MEM32(esi + 0x8); /* 0x4000CFD1: mov eax, dword ptr [esi + 8] */ 4162 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4164 esp = esp + 4; /* 0x4000CFD4: add esp, 4 */ 4165 _flag_k = FK_ADD; 4166 /* cmp edi, eax */ /* 0x4000CFD7: cmp edi, eax */ 4167 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4169 _flag_k = FK_CMP; 4170 ebx = edi; /* 0x4000CFD9: mov ebx, edi */ 4171 RECOMP_BACKEDGE(); 4172 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CFBE; /* 0x4000CFDB: jne 0x4000cfbe */ 4173 L_4000CFDD: 4174 ecx = MEM32(esi + 0x4); /* 0x4000CFDD: mov ecx, dword ptr [esi + 4] */ 4175 edx = MEM32(esi + 0x8); /* 0x4000CFE0: mov edx, dword ptr [esi + 8] */ 4176 MEM32(ecx + 0x4) = edx; /* 0x4000CFE3: mov dword ptr [ecx + 4], edx */ 4177 eax = MEM32(esi + 0x4); /* 0x4000CFE6: mov eax, dword ptr [esi + 4] */ 4178 MEM32(esi + 0x10) = 0; /* 0x4000CFE9: mov dword ptr [esi + 0x10], 0 */ 4179 MEM32(eax) = eax; /* 0x4000CFF0: mov dword ptr [eax], eax */ 4180 eax = MEM32(esi + 0x4); /* 0x4000CFF2: mov eax, dword ptr [esi + 4] */ 4181 MEM32(eax + 0x8) = eax; /* 0x4000CFF5: mov dword ptr [eax + 8], eax */ 4182 eax = ebp + (-0x8); /* 0x4000CFF8: lea eax, [ebp - 8] */ 4183 PUSH32(esp, eax); /* 0x4000CFFB: push eax */ 4184 ecx = esi; /* 0x4000CFFC: mov ecx, esi */ 4185 RECOMP_ICALL(0x40001BA0u); /* 0x4000CFFE: call 0x40001ba0 */ /* not lifted */ 4186 RECOMP_FLAGS_IN(); 4187 goto L_4000D026; /* 0x4000D003: jmp 0x4000d026 */ 4188 L_4000D005: 4189 /* cmp eax, edi */ /* 0x4000D005: cmp eax, edi */ 4190 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4192 _flag_k = FK_CMP; 4193 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D026; /* 0x4000D007: je 0x4000d026 */ 4194 L_4000D009: 4195 ecx = ebp + (-0x4); /* 0x4000D009: lea ecx, [ebp - 4] */ 4196 ebx = eax; /* 0x4000D00C: mov ebx, eax */ 4197 RECOMP_ICALL(0x40001C50u); /* 0x4000D00E: call 0x40001c50 */ /* not lifted */ 4198 RECOMP_FLAGS_IN(); 4199 PUSH32(esp, ebx); /* 0x4000D013: push ebx */ 4200 ecx = ebp + (-0x8); /* 0x4000D014: lea ecx, [ebp - 8] */ 4201 PUSH32(esp, ecx); /* 0x4000D017: push ecx */ 4202 ecx = esi; /* 0x4000D018: mov ecx, esi */ 4203 RECOMP_ICALL(0x4000DE30u); /* 0x4000D01A: call 0x4000de30 */ /* not lifted */ 4204 RECOMP_FLAGS_IN(); 4205 eax = MEM32(ebp + (-0x4)); /* 0x4000D01F: mov eax, dword ptr [ebp - 4] */ 4206 /* cmp eax, edi */ /* 0x4000D022: cmp eax, edi */ 4207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4209 _flag_k = FK_CMP; 4210 RECOMP_BACKEDGE(); 4211 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D009; /* 0x4000D024: jne 0x4000d009 */ 4212 L_4000D026: 4213 edx = MEM32(esi + 0x4); /* 0x4000D026: mov edx, dword ptr [esi + 4] */ 4214 PUSH32(esp, edx); /* 0x4000D029: push edx */ 4215 RECOMP_ICALL(0x400146F2u); /* 0x4000D02A: call 0x400146f2 */ /* not lifted */ 4216 RECOMP_FLAGS_IN(); 4217 eax = MEM32(esi + 0x8); /* 0x4000D02F: mov eax, dword ptr [esi + 8] */ 4218 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4219 edi = 0; /* 0x4000D032: xor edi, edi */ 4220 _cf = 0; 4221 _flag_k = FK_TEST; 4222 PUSH32(esp, eax); /* 0x4000D034: push eax */ 4223 MEM32(esi + 0x4) = edi; /* 0x4000D035: mov dword ptr [esi + 4], edi */ 4224 MEM32(esi + 0x10) = edi; /* 0x4000D038: mov dword ptr [esi + 0x10], edi */ 4225 RECOMP_ICALL(0x400146F2u); /* 0x4000D03B: call 0x400146f2 */ /* not lifted */ 4226 RECOMP_FLAGS_IN(); 4227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4229 esp = esp + 8; /* 0x4000D040: add esp, 8 */ 4230 _flag_k = FK_ADD; 4231 MEM32(esi + 0x8) = edi; /* 0x4000D043: mov dword ptr [esi + 8], edi */ 4232 edi = POP32_VAL(esp); /* 0x4000D046: pop edi */ 4233 esi = POP32_VAL(esp); /* 0x4000D047: pop esi */ 4234 ebx = POP32_VAL(esp); /* 0x4000D048: pop ebx */ 4235 esp = ebp; /* 0x4000D049: mov esp, ebp */ 4236 ebp = POP32_VAL(esp); /* 0x4000D04B: pop ebp */ 4237 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D04C: ret */ 4238 L_40014A9B: 4239 ecx = MEM32(ebp + (-0x14)); /* 0x40014A9B: mov ecx, dword ptr [ebp - 0x14] */ 4240 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1B0u); 4241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4242 ecx = ecx + 0x1B0u; /* 0x40014A9E: add ecx, 0x1b0 */ 4243 _flag_k = FK_ADD; 4244 RECOMP_BACKEDGE(); 4245 goto L_4000CF90; /* 0x40014AA4: jmp 0x4000cf90 */ 4246 { RECOMP_REGS_OUT(); return; } /* end of function */ 4247 RECOMP_REGS_OUT(); 4248 } 4249 4250 void sub_40014AA9(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(0x40014AA9u); 4259 4260 goto L_40014AA9; 4261 L_4000D420: 4262 PUSH32(esp, ebp); /* 0x4000D420: push ebp */ 4263 ebp = esp; /* 0x4000D421: mov ebp, esp */ 4264 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4266 esp = esp - 8; /* 0x4000D423: sub esp, 8 */ 4267 _flag_k = FK_CMP; 4268 PUSH32(esp, ebx); /* 0x4000D426: push ebx */ 4269 PUSH32(esp, esi); /* 0x4000D427: push esi */ 4270 esi = ecx; /* 0x4000D428: mov esi, ecx */ 4271 ecx = MEM32(esi + 0x10); /* 0x4000D42A: mov ecx, dword ptr [esi + 0x10] */ 4272 /* test ecx, ecx */ /* 0x4000D42D: test ecx, ecx */ 4273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4274 _cf = 0; 4275 _flag_k = FK_TEST; 4276 PUSH32(esp, edi); /* 0x4000D42F: push edi */ 4277 edi = MEM32(esi + 0x4); /* 0x4000D430: mov edi, dword ptr [esi + 4] */ 4278 eax = MEM32(edi); /* 0x4000D433: mov eax, dword ptr [edi] */ 4279 MEM32(ebp + (-0x4)) = eax; /* 0x4000D435: mov dword ptr [ebp - 4], eax */ 4280 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D49F; /* 0x4000D438: je 0x4000d49f */ 4281 L_4000D43A: 4282 ecx = eax; /* 0x4000D43A: mov ecx, eax */ 4283 /* cmp eax, ecx */ /* 0x4000D43C: cmp eax, ecx */ 4284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4286 _flag_k = FK_CMP; 4287 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D49F; /* 0x4000D43E: jne 0x4000d49f */ 4288 L_4000D440: 4289 /* cmp edi, edi */ /* 0x4000D440: cmp edi, edi */ 4290 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4291 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4292 _flag_k = FK_CMP; 4293 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D49F; /* 0x4000D442: jne 0x4000d49f */ 4294 L_4000D444: 4295 ebx = MEM32(edi + 0x4); /* 0x4000D444: mov ebx, dword ptr [edi + 4] */ 4296 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000D447: cmp ebx, dword ptr [esi + 8] */ 4297 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4299 _flag_k = FK_CMP; 4300 edi = ebx; /* 0x4000D44A: mov edi, ebx */ 4301 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D477; /* 0x4000D44C: je 0x4000d477 */ 4302 L_4000D44E: 4303 eax = MEM32(edi + 0x8); /* 0x4000D44E: mov eax, dword ptr [edi + 8] */ 4304 PUSH32(esp, eax); /* 0x4000D451: push eax */ 4305 ecx = esi; /* 0x4000D452: mov ecx, esi */ 4306 RECOMP_ICALL(0x4000B8E0u); /* 0x4000D454: call 0x4000b8e0 */ /* not lifted */ 4307 RECOMP_FLAGS_IN(); 4308 edi = MEM32(edi); /* 0x4000D459: mov edi, dword ptr [edi] */ 4309 PUSH32(esp, 0); /* 0x4000D45B: push 0 */ 4310 ecx = ebx + 0xC; /* 0x4000D45D: lea ecx, [ebx + 0xc] */ 4311 RECOMP_ICALL(0x4000FED0u); /* 0x4000D460: call 0x4000fed0 */ /* not lifted */ 4312 RECOMP_FLAGS_IN(); 4313 PUSH32(esp, ebx); /* 0x4000D465: push ebx */ 4314 RECOMP_ICALL(0x400146F2u); /* 0x4000D466: call 0x400146f2 */ /* not lifted */ 4315 RECOMP_FLAGS_IN(); 4316 eax = MEM32(esi + 0x8); /* 0x4000D46B: mov eax, dword ptr [esi + 8] */ 4317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4319 esp = esp + 4; /* 0x4000D46E: add esp, 4 */ 4320 _flag_k = FK_ADD; 4321 /* cmp edi, eax */ /* 0x4000D471: cmp edi, eax */ 4322 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4324 _flag_k = FK_CMP; 4325 ebx = edi; /* 0x4000D473: mov ebx, edi */ 4326 RECOMP_BACKEDGE(); 4327 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D44E; /* 0x4000D475: jne 0x4000d44e */ 4328 L_4000D477: 4329 ecx = MEM32(esi + 0x4); /* 0x4000D477: mov ecx, dword ptr [esi + 4] */ 4330 edx = MEM32(esi + 0x8); /* 0x4000D47A: mov edx, dword ptr [esi + 8] */ 4331 MEM32(ecx + 0x4) = edx; /* 0x4000D47D: mov dword ptr [ecx + 4], edx */ 4332 eax = MEM32(esi + 0x4); /* 0x4000D480: mov eax, dword ptr [esi + 4] */ 4333 MEM32(esi + 0x10) = 0; /* 0x4000D483: mov dword ptr [esi + 0x10], 0 */ 4334 MEM32(eax) = eax; /* 0x4000D48A: mov dword ptr [eax], eax */ 4335 eax = MEM32(esi + 0x4); /* 0x4000D48C: mov eax, dword ptr [esi + 4] */ 4336 MEM32(eax + 0x8) = eax; /* 0x4000D48F: mov dword ptr [eax + 8], eax */ 4337 eax = ebp + (-0x8); /* 0x4000D492: lea eax, [ebp - 8] */ 4338 PUSH32(esp, eax); /* 0x4000D495: push eax */ 4339 ecx = esi; /* 0x4000D496: mov ecx, esi */ 4340 RECOMP_ICALL(0x40001BA0u); /* 0x4000D498: call 0x40001ba0 */ /* not lifted */ 4341 RECOMP_FLAGS_IN(); 4342 goto L_4000D4C0; /* 0x4000D49D: jmp 0x4000d4c0 */ 4343 L_4000D49F: 4344 /* cmp eax, edi */ /* 0x4000D49F: cmp eax, edi */ 4345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4347 _flag_k = FK_CMP; 4348 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D4C0; /* 0x4000D4A1: je 0x4000d4c0 */ 4349 L_4000D4A3: 4350 ecx = ebp + (-0x4); /* 0x4000D4A3: lea ecx, [ebp - 4] */ 4351 ebx = eax; /* 0x4000D4A6: mov ebx, eax */ 4352 RECOMP_ICALL(0x4000F0F0u); /* 0x4000D4A8: call 0x4000f0f0 */ /* not lifted */ 4353 RECOMP_FLAGS_IN(); 4354 PUSH32(esp, ebx); /* 0x4000D4AD: push ebx */ 4355 ecx = ebp + (-0x8); /* 0x4000D4AE: lea ecx, [ebp - 8] */ 4356 PUSH32(esp, ecx); /* 0x4000D4B1: push ecx */ 4357 ecx = esi; /* 0x4000D4B2: mov ecx, esi */ 4358 RECOMP_ICALL(0x4000A2B0u); /* 0x4000D4B4: call 0x4000a2b0 */ /* not lifted */ 4359 RECOMP_FLAGS_IN(); 4360 eax = MEM32(ebp + (-0x4)); /* 0x4000D4B9: mov eax, dword ptr [ebp - 4] */ 4361 /* cmp eax, edi */ /* 0x4000D4BC: cmp eax, edi */ 4362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4364 _flag_k = FK_CMP; 4365 RECOMP_BACKEDGE(); 4366 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D4A3; /* 0x4000D4BE: jne 0x4000d4a3 */ 4367 L_4000D4C0: 4368 edx = MEM32(esi + 0x4); /* 0x4000D4C0: mov edx, dword ptr [esi + 4] */ 4369 PUSH32(esp, edx); /* 0x4000D4C3: push edx */ 4370 RECOMP_ICALL(0x400146F2u); /* 0x4000D4C4: call 0x400146f2 */ /* not lifted */ 4371 RECOMP_FLAGS_IN(); 4372 eax = MEM32(esi + 0x8); /* 0x4000D4C9: mov eax, dword ptr [esi + 8] */ 4373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4374 edi = 0; /* 0x4000D4CC: xor edi, edi */ 4375 _cf = 0; 4376 _flag_k = FK_TEST; 4377 PUSH32(esp, eax); /* 0x4000D4CE: push eax */ 4378 MEM32(esi + 0x4) = edi; /* 0x4000D4CF: mov dword ptr [esi + 4], edi */ 4379 MEM32(esi + 0x10) = edi; /* 0x4000D4D2: mov dword ptr [esi + 0x10], edi */ 4380 RECOMP_ICALL(0x400146F2u); /* 0x4000D4D5: call 0x400146f2 */ /* not lifted */ 4381 RECOMP_FLAGS_IN(); 4382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4384 esp = esp + 8; /* 0x4000D4DA: add esp, 8 */ 4385 _flag_k = FK_ADD; 4386 MEM32(esi + 0x8) = edi; /* 0x4000D4DD: mov dword ptr [esi + 8], edi */ 4387 edi = POP32_VAL(esp); /* 0x4000D4E0: pop edi */ 4388 esi = POP32_VAL(esp); /* 0x4000D4E1: pop esi */ 4389 ebx = POP32_VAL(esp); /* 0x4000D4E2: pop ebx */ 4390 esp = ebp; /* 0x4000D4E3: mov esp, ebp */ 4391 ebp = POP32_VAL(esp); /* 0x4000D4E5: pop ebp */ 4392 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D4E6: ret */ 4393 L_40014AA9: 4394 ecx = MEM32(ebp + (-0x14)); /* 0x40014AA9: mov ecx, dword ptr [ebp - 0x14] */ 4395 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1C4u); 4396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4397 ecx = ecx + 0x1C4u; /* 0x40014AAC: add ecx, 0x1c4 */ 4398 _flag_k = FK_ADD; 4399 RECOMP_BACKEDGE(); 4400 goto L_4000D420; /* 0x40014AB2: jmp 0x4000d420 */ 4401 { RECOMP_REGS_OUT(); return; } /* end of function */ 4402 RECOMP_REGS_OUT(); 4403 } 4404 4405 void sub_40014AB7(void) { 4406 int _fpu_cmp = 0; 4407 uint32_t _cf = 0; 4408 int _df = 1; 4409 uint32_t _flag_k = FK_NONE; 4410 uint32_t _flag_a = 0, _flag_b = 0; 4411 uint32_t _itail_tgt = 0; 4412 RECOMP_REGS_LOCALS 4413 RECOMP_ENTER(0x40014AB7u); 4414 4415 goto L_40014AB7; 4416 L_4000D4F0: 4417 PUSH32(esp, ebp); /* 0x4000D4F0: push ebp */ 4418 ebp = esp; /* 0x4000D4F1: mov ebp, esp */ 4419 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4421 esp = esp - 8; /* 0x4000D4F3: sub esp, 8 */ 4422 _flag_k = FK_CMP; 4423 PUSH32(esp, ebx); /* 0x4000D4F6: push ebx */ 4424 PUSH32(esp, esi); /* 0x4000D4F7: push esi */ 4425 esi = ecx; /* 0x4000D4F8: mov esi, ecx */ 4426 ecx = MEM32(esi + 0x10); /* 0x4000D4FA: mov ecx, dword ptr [esi + 0x10] */ 4427 /* test ecx, ecx */ /* 0x4000D4FD: test ecx, ecx */ 4428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4429 _cf = 0; 4430 _flag_k = FK_TEST; 4431 PUSH32(esp, edi); /* 0x4000D4FF: push edi */ 4432 edi = MEM32(esi + 0x4); /* 0x4000D500: mov edi, dword ptr [esi + 4] */ 4433 eax = MEM32(edi); /* 0x4000D503: mov eax, dword ptr [edi] */ 4434 MEM32(ebp + (-0x4)) = eax; /* 0x4000D505: mov dword ptr [ebp - 4], eax */ 4435 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D56F; /* 0x4000D508: je 0x4000d56f */ 4436 L_4000D50A: 4437 ecx = eax; /* 0x4000D50A: mov ecx, eax */ 4438 /* cmp eax, ecx */ /* 0x4000D50C: cmp eax, ecx */ 4439 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4441 _flag_k = FK_CMP; 4442 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D56F; /* 0x4000D50E: jne 0x4000d56f */ 4443 L_4000D510: 4444 /* cmp edi, edi */ /* 0x4000D510: cmp edi, edi */ 4445 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4447 _flag_k = FK_CMP; 4448 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D56F; /* 0x4000D512: jne 0x4000d56f */ 4449 L_4000D514: 4450 ebx = MEM32(edi + 0x4); /* 0x4000D514: mov ebx, dword ptr [edi + 4] */ 4451 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000D517: cmp ebx, dword ptr [esi + 8] */ 4452 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4454 _flag_k = FK_CMP; 4455 edi = ebx; /* 0x4000D51A: mov edi, ebx */ 4456 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D547; /* 0x4000D51C: je 0x4000d547 */ 4457 L_4000D51E: 4458 eax = MEM32(edi + 0x8); /* 0x4000D51E: mov eax, dword ptr [edi + 8] */ 4459 PUSH32(esp, eax); /* 0x4000D521: push eax */ 4460 ecx = esi; /* 0x4000D522: mov ecx, esi */ 4461 RECOMP_ICALL(0x4000D8E0u); /* 0x4000D524: call 0x4000d8e0 */ /* not lifted */ 4462 RECOMP_FLAGS_IN(); 4463 edi = MEM32(edi); /* 0x4000D529: mov edi, dword ptr [edi] */ 4464 PUSH32(esp, 0); /* 0x4000D52B: push 0 */ 4465 ecx = ebx + 0xC; /* 0x4000D52D: lea ecx, [ebx + 0xc] */ 4466 RECOMP_ICALL(0x4000FF00u); /* 0x4000D530: call 0x4000ff00 */ /* not lifted */ 4467 RECOMP_FLAGS_IN(); 4468 PUSH32(esp, ebx); /* 0x4000D535: push ebx */ 4469 RECOMP_ICALL(0x400146F2u); /* 0x4000D536: call 0x400146f2 */ /* not lifted */ 4470 RECOMP_FLAGS_IN(); 4471 eax = MEM32(esi + 0x8); /* 0x4000D53B: mov eax, dword ptr [esi + 8] */ 4472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4474 esp = esp + 4; /* 0x4000D53E: add esp, 4 */ 4475 _flag_k = FK_ADD; 4476 /* cmp edi, eax */ /* 0x4000D541: cmp edi, eax */ 4477 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4479 _flag_k = FK_CMP; 4480 ebx = edi; /* 0x4000D543: mov ebx, edi */ 4481 RECOMP_BACKEDGE(); 4482 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D51E; /* 0x4000D545: jne 0x4000d51e */ 4483 L_4000D547: 4484 ecx = MEM32(esi + 0x4); /* 0x4000D547: mov ecx, dword ptr [esi + 4] */ 4485 edx = MEM32(esi + 0x8); /* 0x4000D54A: mov edx, dword ptr [esi + 8] */ 4486 MEM32(ecx + 0x4) = edx; /* 0x4000D54D: mov dword ptr [ecx + 4], edx */ 4487 eax = MEM32(esi + 0x4); /* 0x4000D550: mov eax, dword ptr [esi + 4] */ 4488 MEM32(esi + 0x10) = 0; /* 0x4000D553: mov dword ptr [esi + 0x10], 0 */ 4489 MEM32(eax) = eax; /* 0x4000D55A: mov dword ptr [eax], eax */ 4490 eax = MEM32(esi + 0x4); /* 0x4000D55C: mov eax, dword ptr [esi + 4] */ 4491 MEM32(eax + 0x8) = eax; /* 0x4000D55F: mov dword ptr [eax + 8], eax */ 4492 eax = ebp + (-0x8); /* 0x4000D562: lea eax, [ebp - 8] */ 4493 PUSH32(esp, eax); /* 0x4000D565: push eax */ 4494 ecx = esi; /* 0x4000D566: mov ecx, esi */ 4495 RECOMP_ICALL(0x40001BA0u); /* 0x4000D568: call 0x40001ba0 */ /* not lifted */ 4496 RECOMP_FLAGS_IN(); 4497 goto L_4000D590; /* 0x4000D56D: jmp 0x4000d590 */ 4498 L_4000D56F: 4499 /* cmp eax, edi */ /* 0x4000D56F: cmp eax, edi */ 4500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4502 _flag_k = FK_CMP; 4503 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D590; /* 0x4000D571: je 0x4000d590 */ 4504 L_4000D573: 4505 ecx = ebp + (-0x4); /* 0x4000D573: lea ecx, [ebp - 4] */ 4506 ebx = eax; /* 0x4000D576: mov ebx, eax */ 4507 RECOMP_ICALL(0x40001C50u); /* 0x4000D578: call 0x40001c50 */ /* not lifted */ 4508 RECOMP_FLAGS_IN(); 4509 PUSH32(esp, ebx); /* 0x4000D57D: push ebx */ 4510 ecx = ebp + (-0x8); /* 0x4000D57E: lea ecx, [ebp - 8] */ 4511 PUSH32(esp, ecx); /* 0x4000D581: push ecx */ 4512 ecx = esi; /* 0x4000D582: mov ecx, esi */ 4513 RECOMP_ICALL(0x4000D050u); /* 0x4000D584: call 0x4000d050 */ /* not lifted */ 4514 RECOMP_FLAGS_IN(); 4515 eax = MEM32(ebp + (-0x4)); /* 0x4000D589: mov eax, dword ptr [ebp - 4] */ 4516 /* cmp eax, edi */ /* 0x4000D58C: cmp eax, edi */ 4517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4519 _flag_k = FK_CMP; 4520 RECOMP_BACKEDGE(); 4521 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D573; /* 0x4000D58E: jne 0x4000d573 */ 4522 L_4000D590: 4523 edx = MEM32(esi + 0x4); /* 0x4000D590: mov edx, dword ptr [esi + 4] */ 4524 PUSH32(esp, edx); /* 0x4000D593: push edx */ 4525 RECOMP_ICALL(0x400146F2u); /* 0x4000D594: call 0x400146f2 */ /* not lifted */ 4526 RECOMP_FLAGS_IN(); 4527 eax = MEM32(esi + 0x8); /* 0x4000D599: mov eax, dword ptr [esi + 8] */ 4528 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4529 edi = 0; /* 0x4000D59C: xor edi, edi */ 4530 _cf = 0; 4531 _flag_k = FK_TEST; 4532 PUSH32(esp, eax); /* 0x4000D59E: push eax */ 4533 MEM32(esi + 0x4) = edi; /* 0x4000D59F: mov dword ptr [esi + 4], edi */ 4534 MEM32(esi + 0x10) = edi; /* 0x4000D5A2: mov dword ptr [esi + 0x10], edi */ 4535 RECOMP_ICALL(0x400146F2u); /* 0x4000D5A5: call 0x400146f2 */ /* not lifted */ 4536 RECOMP_FLAGS_IN(); 4537 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4539 esp = esp + 8; /* 0x4000D5AA: add esp, 8 */ 4540 _flag_k = FK_ADD; 4541 MEM32(esi + 0x8) = edi; /* 0x4000D5AD: mov dword ptr [esi + 8], edi */ 4542 edi = POP32_VAL(esp); /* 0x4000D5B0: pop edi */ 4543 esi = POP32_VAL(esp); /* 0x4000D5B1: pop esi */ 4544 ebx = POP32_VAL(esp); /* 0x4000D5B2: pop ebx */ 4545 esp = ebp; /* 0x4000D5B3: mov esp, ebp */ 4546 ebp = POP32_VAL(esp); /* 0x4000D5B5: pop ebp */ 4547 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D5B6: ret */ 4548 L_40014AB7: 4549 ecx = MEM32(ebp + (-0x14)); /* 0x40014AB7: mov ecx, dword ptr [ebp - 0x14] */ 4550 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1D8u); 4551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4552 ecx = ecx + 0x1D8u; /* 0x40014ABA: add ecx, 0x1d8 */ 4553 _flag_k = FK_ADD; 4554 RECOMP_BACKEDGE(); 4555 goto L_4000D4F0; /* 0x40014AC0: jmp 0x4000d4f0 */ 4556 { RECOMP_REGS_OUT(); return; } /* end of function */ 4557 RECOMP_REGS_OUT(); 4558 } 4559 4560 void sub_40014AC5(void) { 4561 int _fpu_cmp = 0; 4562 uint32_t _cf = 0; 4563 int _df = 1; 4564 uint32_t _flag_k = FK_NONE; 4565 uint32_t _flag_a = 0, _flag_b = 0; 4566 uint32_t _itail_tgt = 0; 4567 RECOMP_REGS_LOCALS 4568 RECOMP_ENTER(0x40014AC5u); 4569 4570 goto L_40014AC5; 4571 L_40012450: 4572 PUSH32(esp, ebp); /* 0x40012450: push ebp */ 4573 ebp = esp; /* 0x40012451: mov ebp, esp */ 4574 PUSH32(esp, ecx); /* 0x40012453: push ecx */ 4575 PUSH32(esp, esi); /* 0x40012454: push esi */ 4576 esi = ecx; /* 0x40012455: mov esi, ecx */ 4577 eax = MEM32(esi + 0x4); /* 0x40012457: mov eax, dword ptr [esi + 4] */ 4578 PUSH32(esp, eax); /* 0x4001245A: push eax */ 4579 MEM32(ebp + (-0x4)) = eax; /* 0x4001245B: mov dword ptr [ebp - 4], eax */ 4580 RECOMP_ICALL(0x400146F2u); /* 0x4001245E: call 0x400146f2 */ /* not lifted */ 4581 RECOMP_FLAGS_IN(); 4582 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4584 esp = esp + 4; /* 0x40012463: add esp, 4 */ 4585 _flag_k = FK_ADD; 4586 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4587 eax = 0; /* 0x40012466: xor eax, eax */ 4588 _cf = 0; 4589 _flag_k = FK_TEST; 4590 MEM32(esi + 0x4) = eax; /* 0x40012468: mov dword ptr [esi + 4], eax */ 4591 MEM32(esi + 0x8) = eax; /* 0x4001246B: mov dword ptr [esi + 8], eax */ 4592 MEM32(esi + 0xC) = eax; /* 0x4001246E: mov dword ptr [esi + 0xc], eax */ 4593 esi = POP32_VAL(esp); /* 0x40012471: pop esi */ 4594 esp = ebp; /* 0x40012472: mov esp, ebp */ 4595 ebp = POP32_VAL(esp); /* 0x40012474: pop ebp */ 4596 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40012475: ret */ 4597 L_40014AC5: 4598 ecx = MEM32(ebp + (-0x14)); /* 0x40014AC5: mov ecx, dword ptr [ebp - 0x14] */ 4599 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1ECu); 4600 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4601 ecx = ecx + 0x1ECu; /* 0x40014AC8: add ecx, 0x1ec */ 4602 _flag_k = FK_ADD; 4603 RECOMP_BACKEDGE(); 4604 goto L_40012450; /* 0x40014ACE: jmp 0x40012450 */ 4605 { RECOMP_REGS_OUT(); return; } /* end of function */ 4606 RECOMP_REGS_OUT(); 4607 } 4608 4609 void sub_40014AD3(void) { 4610 int _fpu_cmp = 0; 4611 uint32_t _cf = 0; 4612 int _df = 1; 4613 uint32_t _flag_k = FK_NONE; 4614 uint32_t _flag_a = 0, _flag_b = 0; 4615 uint32_t _itail_tgt = 0; 4616 RECOMP_REGS_LOCALS 4617 RECOMP_ENTER(0x40014AD3u); 4618 4619 goto L_40014AD3; 4620 L_40007220: 4621 PUSH32(esp, ebp); /* 0x40007220: push ebp */ 4622 ebp = esp; /* 0x40007221: mov ebp, esp */ 4623 PUSH32(esp, ecx); /* 0x40007223: push ecx */ 4624 PUSH32(esp, ebx); /* 0x40007224: push ebx */ 4625 PUSH32(esp, esi); /* 0x40007225: push esi */ 4626 PUSH32(esp, edi); /* 0x40007226: push edi */ 4627 edi = ecx; /* 0x40007227: mov edi, ecx */ 4628 edx = MEM32(edi + 0x8); /* 0x40007229: mov edx, dword ptr [edi + 8] */ 4629 esi = MEM32(edi + 0x4); /* 0x4000722C: mov esi, dword ptr [edi + 4] */ 4630 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4631 ebx = 0; /* 0x4000722F: xor ebx, ebx */ 4632 _cf = 0; 4633 _flag_k = FK_TEST; 4634 /* cmp esi, edx */ /* 0x40007231: cmp esi, edx */ 4635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 4636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4637 _flag_k = FK_CMP; 4638 MEM32(ebp + (-0x4)) = edx; /* 0x40007233: mov dword ptr [ebp - 4], edx */ 4639 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000726E; /* 0x40007236: je 0x4000726e */ 4640 L_40007238: 4641 eax = MEM32(esi + 0x4); /* 0x40007238: mov eax, dword ptr [esi + 4] */ 4642 /* cmp eax, ebx */ /* 0x4000723B: cmp eax, ebx */ 4643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4645 _flag_k = FK_CMP; 4646 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000725E; /* 0x4000723D: je 0x4000725e */ 4647 L_4000723F: 4648 ecx = eax + (-0x1); /* 0x4000723F: lea ecx, [eax - 1] */ 4649 SET_LO8(eax, MEM8(ecx)); /* 0x40007242: mov al, byte ptr [ecx] */ 4650 /* cmp LO8(eax), LO8(ebx) */ /* 0x40007244: cmp al, bl */ 4651 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4653 _flag_k = FK_NARROW(FK_CMP, 24); 4654 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007252; /* 0x40007246: je 0x40007252 */ 4655 L_40007248: 4656 /* cmp LO8(eax), 0xFFu */ /* 0x40007248: cmp al, 0xff */ 4657 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4659 _flag_k = FK_NARROW(FK_CMP, 24); 4660 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007252; /* 0x4000724A: je 0x40007252 */ 4661 L_4000724C: 4662 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4663 SET_LO8(eax, LO8(eax) - 1); /* 0x4000724C: dec al */ 4664 _flag_k = FK_NARROW(FK_DEC, 24); 4665 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x4000724E: mov byte ptr [ecx], al */ 4666 goto L_4000725E; /* 0x40007250: jmp 0x4000725e */ 4667 L_40007252: 4668 PUSH32(esp, ecx); /* 0x40007252: push ecx */ 4669 RECOMP_ICALL(0x400146F2u); /* 0x40007253: call 0x400146f2 */ /* not lifted */ 4670 RECOMP_FLAGS_IN(); 4671 edx = MEM32(ebp + (-0x4)); /* 0x40007258: mov edx, dword ptr [ebp - 4] */ 4672 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4674 esp = esp + 4; /* 0x4000725B: add esp, 4 */ 4675 _flag_k = FK_ADD; 4676 L_4000725E: 4677 MEM32(esi + 0x4) = ebx; /* 0x4000725E: mov dword ptr [esi + 4], ebx */ 4678 MEM32(esi + 0x8) = ebx; /* 0x40007261: mov dword ptr [esi + 8], ebx */ 4679 MEM32(esi + 0xC) = ebx; /* 0x40007264: mov dword ptr [esi + 0xc], ebx */ 4680 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 4681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4682 esi = esi + 0x10u; /* 0x40007267: add esi, 0x10 */ 4683 _flag_k = FK_ADD; 4684 /* cmp esi, edx */ /* 0x4000726A: cmp esi, edx */ 4685 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 4686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4687 _flag_k = FK_CMP; 4688 RECOMP_BACKEDGE(); 4689 if (CMP_NE(_flag_a, _flag_b)) goto L_40007238; /* 0x4000726C: jne 0x40007238 */ 4690 L_4000726E: 4691 eax = MEM32(edi + 0x4); /* 0x4000726E: mov eax, dword ptr [edi + 4] */ 4692 PUSH32(esp, eax); /* 0x40007271: push eax */ 4693 RECOMP_ICALL(0x400146F2u); /* 0x40007272: call 0x400146f2 */ /* not lifted */ 4694 RECOMP_FLAGS_IN(); 4695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4697 esp = esp + 4; /* 0x40007277: add esp, 4 */ 4698 _flag_k = FK_ADD; 4699 MEM32(edi + 0x4) = ebx; /* 0x4000727A: mov dword ptr [edi + 4], ebx */ 4700 MEM32(edi + 0x8) = ebx; /* 0x4000727D: mov dword ptr [edi + 8], ebx */ 4701 MEM32(edi + 0xC) = ebx; /* 0x40007280: mov dword ptr [edi + 0xc], ebx */ 4702 edi = POP32_VAL(esp); /* 0x40007283: pop edi */ 4703 esi = POP32_VAL(esp); /* 0x40007284: pop esi */ 4704 ebx = POP32_VAL(esp); /* 0x40007285: pop ebx */ 4705 esp = ebp; /* 0x40007286: mov esp, ebp */ 4706 ebp = POP32_VAL(esp); /* 0x40007288: pop ebp */ 4707 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40007289: ret */ 4708 L_40014AD3: 4709 ecx = MEM32(ebp + (-0x14)); /* 0x40014AD3: mov ecx, dword ptr [ebp - 0x14] */ 4710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x204u); 4711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4712 ecx = ecx + 0x204u; /* 0x40014AD6: add ecx, 0x204 */ 4713 _flag_k = FK_ADD; 4714 RECOMP_BACKEDGE(); 4715 goto L_40007220; /* 0x40014ADC: jmp 0x40007220 */ 4716 { RECOMP_REGS_OUT(); return; } /* end of function */ 4717 RECOMP_REGS_OUT(); 4718 } 4719 4720 void sub_40014AE1(void) { 4721 int _fpu_cmp = 0; 4722 uint32_t _cf = 0; 4723 int _df = 1; 4724 uint32_t _flag_k = FK_NONE; 4725 uint32_t _flag_a = 0, _flag_b = 0; 4726 uint32_t _itail_tgt = 0; 4727 RECOMP_REGS_LOCALS 4728 RECOMP_ENTER(0x40014AE1u); 4729 4730 L_40014AE1: 4731 eax = MEM32(ebp + (-0x18)); /* 0x40014AE1: mov eax, dword ptr [ebp - 0x18] */ 4732 PUSH32(esp, eax); /* 0x40014AE4: push eax */ 4733 RECOMP_ICALL(0x400146F2u); /* 0x40014AE5: call 0x400146f2 */ /* not lifted */ 4734 RECOMP_FLAGS_IN(); 4735 ecx = POP32_VAL(esp); /* 0x40014AEA: pop ecx */ 4736 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40014AEB: ret */ 4737 RECOMP_REGS_OUT(); 4738 } 4739 4740 void sub_40014AEC(void) { 4741 int _fpu_cmp = 0; 4742 uint32_t _cf = 0; 4743 int _df = 1; 4744 uint32_t _flag_k = FK_NONE; 4745 uint32_t _flag_a = 0, _flag_b = 0; 4746 uint32_t _itail_tgt = 0; 4747 RECOMP_REGS_LOCALS 4748 RECOMP_ENTER(0x40014AECu); 4749 4750 goto L_40014AEC; 4751 L_4001470A: 4752 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 4753 L_40014AEC: 4754 eax = 0x40016B28u; /* 0x40014AEC: mov eax, 0x40016b28 */ 4755 L_40014AF1: 4756 RECOMP_BACKEDGE(); 4757 goto L_4001470A; /* 0x40014AF1: jmp 0x4001470a */ 4758 { RECOMP_REGS_OUT(); return; } /* end of function */ 4759 _ljump: 4760 switch (_itail_tgt) { 4761 case 0x4001470Au: goto L_4001470A; 4762 case 0x40014AECu: goto L_40014AEC; 4763 case 0x40014AF1u: goto L_40014AF1; 4764 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4765 } 4766 RECOMP_REGS_OUT(); 4767 } 4768 4769 void sub_40014B00(void) { 4770 int _fpu_cmp = 0; 4771 uint32_t _cf = 0; 4772 int _df = 1; 4773 uint32_t _flag_k = FK_NONE; 4774 uint32_t _flag_a = 0, _flag_b = 0; 4775 uint32_t _itail_tgt = 0; 4776 RECOMP_REGS_LOCALS 4777 RECOMP_ENTER(0x40014B00u); 4778 4779 goto L_40014B00; 4780 L_40001500: 4781 MEM32(ecx) = 0x40016274u; /* 0x40001500: mov dword ptr [ecx], 0x40016274 */ 4782 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40001506: ret */ 4783 L_40014B00: 4784 ecx = MEM32(ebp + (-0x14)); /* 0x40014B00: mov ecx, dword ptr [ebp - 0x14] */ 4785 RECOMP_BACKEDGE(); 4786 goto L_40001500; /* 0x40014B03: jmp 0x40001500 */ 4787 { RECOMP_REGS_OUT(); return; } /* end of function */ 4788 RECOMP_REGS_OUT(); 4789 } 4790 4791 void sub_40014B08(void) { 4792 int _fpu_cmp = 0; 4793 uint32_t _cf = 0; 4794 int _df = 1; 4795 uint32_t _flag_k = FK_NONE; 4796 uint32_t _flag_a = 0, _flag_b = 0; 4797 uint32_t _itail_tgt = 0; 4798 RECOMP_REGS_LOCALS 4799 RECOMP_ENTER(0x40014B08u); 4800 4801 goto L_40014B08; 4802 L_4000CA30: 4803 PUSH32(esp, ebp); /* 0x4000CA30: push ebp */ 4804 ebp = esp; /* 0x4000CA31: mov ebp, esp */ 4805 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4807 esp = esp - 8; /* 0x4000CA33: sub esp, 8 */ 4808 _flag_k = FK_CMP; 4809 PUSH32(esp, ebx); /* 0x4000CA36: push ebx */ 4810 PUSH32(esp, esi); /* 0x4000CA37: push esi */ 4811 esi = ecx; /* 0x4000CA38: mov esi, ecx */ 4812 ecx = MEM32(esi + 0x10); /* 0x4000CA3A: mov ecx, dword ptr [esi + 0x10] */ 4813 /* test ecx, ecx */ /* 0x4000CA3D: test ecx, ecx */ 4814 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4815 _cf = 0; 4816 _flag_k = FK_TEST; 4817 PUSH32(esp, edi); /* 0x4000CA3F: push edi */ 4818 edi = MEM32(esi + 0x4); /* 0x4000CA40: mov edi, dword ptr [esi + 4] */ 4819 eax = MEM32(edi); /* 0x4000CA43: mov eax, dword ptr [edi] */ 4820 MEM32(ebp + (-0x4)) = eax; /* 0x4000CA45: mov dword ptr [ebp - 4], eax */ 4821 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA48: je 0x4000caaf */ 4822 L_4000CA4A: 4823 ecx = eax; /* 0x4000CA4A: mov ecx, eax */ 4824 /* cmp eax, ecx */ /* 0x4000CA4C: cmp eax, ecx */ 4825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4827 _flag_k = FK_CMP; 4828 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA4E: jne 0x4000caaf */ 4829 L_4000CA50: 4830 /* cmp edi, edi */ /* 0x4000CA50: cmp edi, edi */ 4831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4833 _flag_k = FK_CMP; 4834 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAAF; /* 0x4000CA52: jne 0x4000caaf */ 4835 L_4000CA54: 4836 ebx = MEM32(edi + 0x4); /* 0x4000CA54: mov ebx, dword ptr [edi + 4] */ 4837 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CA57: cmp ebx, dword ptr [esi + 8] */ 4838 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4840 _flag_k = FK_CMP; 4841 edi = ebx; /* 0x4000CA5A: mov edi, ebx */ 4842 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CA87; /* 0x4000CA5C: je 0x4000ca87 */ 4843 L_4000CA5E: 4844 eax = MEM32(edi + 0x8); /* 0x4000CA5E: mov eax, dword ptr [edi + 8] */ 4845 PUSH32(esp, eax); /* 0x4000CA61: push eax */ 4846 ecx = esi; /* 0x4000CA62: mov ecx, esi */ 4847 RECOMP_ICALL(0x40009030u); /* 0x4000CA64: call 0x40009030 */ /* not lifted */ 4848 RECOMP_FLAGS_IN(); 4849 edi = MEM32(edi); /* 0x4000CA69: mov edi, dword ptr [edi] */ 4850 PUSH32(esp, 0); /* 0x4000CA6B: push 0 */ 4851 ecx = ebx + 0xC; /* 0x4000CA6D: lea ecx, [ebx + 0xc] */ 4852 RECOMP_ICALL(0x4000FE70u); /* 0x4000CA70: call 0x4000fe70 */ /* not lifted */ 4853 RECOMP_FLAGS_IN(); 4854 PUSH32(esp, ebx); /* 0x4000CA75: push ebx */ 4855 RECOMP_ICALL(0x400146F2u); /* 0x4000CA76: call 0x400146f2 */ /* not lifted */ 4856 RECOMP_FLAGS_IN(); 4857 eax = MEM32(esi + 0x8); /* 0x4000CA7B: mov eax, dword ptr [esi + 8] */ 4858 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4859 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4860 esp = esp + 4; /* 0x4000CA7E: add esp, 4 */ 4861 _flag_k = FK_ADD; 4862 /* cmp edi, eax */ /* 0x4000CA81: cmp edi, eax */ 4863 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4865 _flag_k = FK_CMP; 4866 ebx = edi; /* 0x4000CA83: mov ebx, edi */ 4867 RECOMP_BACKEDGE(); 4868 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CA5E; /* 0x4000CA85: jne 0x4000ca5e */ 4869 L_4000CA87: 4870 ecx = MEM32(esi + 0x4); /* 0x4000CA87: mov ecx, dword ptr [esi + 4] */ 4871 edx = MEM32(esi + 0x8); /* 0x4000CA8A: mov edx, dword ptr [esi + 8] */ 4872 MEM32(ecx + 0x4) = edx; /* 0x4000CA8D: mov dword ptr [ecx + 4], edx */ 4873 eax = MEM32(esi + 0x4); /* 0x4000CA90: mov eax, dword ptr [esi + 4] */ 4874 MEM32(esi + 0x10) = 0; /* 0x4000CA93: mov dword ptr [esi + 0x10], 0 */ 4875 MEM32(eax) = eax; /* 0x4000CA9A: mov dword ptr [eax], eax */ 4876 eax = MEM32(esi + 0x4); /* 0x4000CA9C: mov eax, dword ptr [esi + 4] */ 4877 MEM32(eax + 0x8) = eax; /* 0x4000CA9F: mov dword ptr [eax + 8], eax */ 4878 eax = ebp + (-0x8); /* 0x4000CAA2: lea eax, [ebp - 8] */ 4879 PUSH32(esp, eax); /* 0x4000CAA5: push eax */ 4880 ecx = esi; /* 0x4000CAA6: mov ecx, esi */ 4881 RECOMP_ICALL(0x40001BA0u); /* 0x4000CAA8: call 0x40001ba0 */ /* not lifted */ 4882 RECOMP_FLAGS_IN(); 4883 goto L_4000CAD0; /* 0x4000CAAD: jmp 0x4000cad0 */ 4884 L_4000CAAF: 4885 /* cmp eax, edi */ /* 0x4000CAAF: cmp eax, edi */ 4886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4888 _flag_k = FK_CMP; 4889 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CAD0; /* 0x4000CAB1: je 0x4000cad0 */ 4890 L_4000CAB3: 4891 ecx = ebp + (-0x4); /* 0x4000CAB3: lea ecx, [ebp - 4] */ 4892 ebx = eax; /* 0x4000CAB6: mov ebx, eax */ 4893 RECOMP_ICALL(0x40007BB0u); /* 0x4000CAB8: call 0x40007bb0 */ /* not lifted */ 4894 RECOMP_FLAGS_IN(); 4895 PUSH32(esp, ebx); /* 0x4000CABD: push ebx */ 4896 ecx = ebp + (-0x8); /* 0x4000CABE: lea ecx, [ebp - 8] */ 4897 PUSH32(esp, ecx); /* 0x4000CAC1: push ecx */ 4898 ecx = esi; /* 0x4000CAC2: mov ecx, esi */ 4899 RECOMP_ICALL(0x40007690u); /* 0x4000CAC4: call 0x40007690 */ /* not lifted */ 4900 RECOMP_FLAGS_IN(); 4901 eax = MEM32(ebp + (-0x4)); /* 0x4000CAC9: mov eax, dword ptr [ebp - 4] */ 4902 /* cmp eax, edi */ /* 0x4000CACC: cmp eax, edi */ 4903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4905 _flag_k = FK_CMP; 4906 RECOMP_BACKEDGE(); 4907 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CAB3; /* 0x4000CACE: jne 0x4000cab3 */ 4908 L_4000CAD0: 4909 edx = MEM32(esi + 0x4); /* 0x4000CAD0: mov edx, dword ptr [esi + 4] */ 4910 PUSH32(esp, edx); /* 0x4000CAD3: push edx */ 4911 RECOMP_ICALL(0x400146F2u); /* 0x4000CAD4: call 0x400146f2 */ /* not lifted */ 4912 RECOMP_FLAGS_IN(); 4913 eax = MEM32(esi + 0x8); /* 0x4000CAD9: mov eax, dword ptr [esi + 8] */ 4914 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4915 edi = 0; /* 0x4000CADC: xor edi, edi */ 4916 _cf = 0; 4917 _flag_k = FK_TEST; 4918 PUSH32(esp, eax); /* 0x4000CADE: push eax */ 4919 MEM32(esi + 0x4) = edi; /* 0x4000CADF: mov dword ptr [esi + 4], edi */ 4920 MEM32(esi + 0x10) = edi; /* 0x4000CAE2: mov dword ptr [esi + 0x10], edi */ 4921 RECOMP_ICALL(0x400146F2u); /* 0x4000CAE5: call 0x400146f2 */ /* not lifted */ 4922 RECOMP_FLAGS_IN(); 4923 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4924 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4925 esp = esp + 8; /* 0x4000CAEA: add esp, 8 */ 4926 _flag_k = FK_ADD; 4927 MEM32(esi + 0x8) = edi; /* 0x4000CAED: mov dword ptr [esi + 8], edi */ 4928 edi = POP32_VAL(esp); /* 0x4000CAF0: pop edi */ 4929 esi = POP32_VAL(esp); /* 0x4000CAF1: pop esi */ 4930 ebx = POP32_VAL(esp); /* 0x4000CAF2: pop ebx */ 4931 esp = ebp; /* 0x4000CAF3: mov esp, ebp */ 4932 ebp = POP32_VAL(esp); /* 0x4000CAF5: pop ebp */ 4933 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CAF6: ret */ 4934 L_40014B08: 4935 ecx = MEM32(ebp + (-0x14)); /* 0x40014B08: mov ecx, dword ptr [ebp - 0x14] */ 4936 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 4937 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4938 ecx = ecx + 0x14u; /* 0x40014B0B: add ecx, 0x14 */ 4939 _flag_k = FK_ADD; 4940 RECOMP_BACKEDGE(); 4941 goto L_4000CA30; /* 0x40014B0E: jmp 0x4000ca30 */ 4942 { RECOMP_REGS_OUT(); return; } /* end of function */ 4943 RECOMP_REGS_OUT(); 4944 } 4945 4946 void sub_40014B13(void) { 4947 int _fpu_cmp = 0; 4948 uint32_t _cf = 0; 4949 int _df = 1; 4950 uint32_t _flag_k = FK_NONE; 4951 uint32_t _flag_a = 0, _flag_b = 0; 4952 uint32_t _itail_tgt = 0; 4953 RECOMP_REGS_LOCALS 4954 RECOMP_ENTER(0x40014B13u); 4955 4956 goto L_40014B13; 4957 L_40006A70: 4958 PUSH32(esp, ebp); /* 0x40006A70: push ebp */ 4959 ebp = esp; /* 0x40006A71: mov ebp, esp */ 4960 PUSH32(esp, ecx); /* 0x40006A73: push ecx */ 4961 PUSH32(esp, ebx); /* 0x40006A74: push ebx */ 4962 ebx = ecx; /* 0x40006A75: mov ebx, ecx */ 4963 eax = MEM32(ebx + 0x4); /* 0x40006A77: mov eax, dword ptr [ebx + 4] */ 4964 PUSH32(esp, edi); /* 0x40006A7A: push edi */ 4965 edi = MEM32(eax); /* 0x40006A7B: mov edi, dword ptr [eax] */ 4966 /* cmp edi, eax */ /* 0x40006A7D: cmp edi, eax */ 4967 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4969 _flag_k = FK_CMP; 4970 MEM32(ebp + (-0x4)) = eax; /* 0x40006A7F: mov dword ptr [ebp - 4], eax */ 4971 if (CMP_EQ(_flag_a, _flag_b)) goto L_40006AB8; /* 0x40006A82: je 0x40006ab8 */ 4972 L_40006A84: 4973 PUSH32(esp, esi); /* 0x40006A84: push esi */ 4974 L_40006A85: 4975 esi = edi; /* 0x40006A85: mov esi, edi */ 4976 eax = MEM32(esi + 0x4); /* 0x40006A87: mov eax, dword ptr [esi + 4] */ 4977 ecx = MEM32(esi); /* 0x40006A8A: mov ecx, dword ptr [esi] */ 4978 edi = MEM32(edi); /* 0x40006A8C: mov edi, dword ptr [edi] */ 4979 MEM32(eax) = ecx; /* 0x40006A8E: mov dword ptr [eax], ecx */ 4980 edx = MEM32(esi); /* 0x40006A90: mov edx, dword ptr [esi] */ 4981 eax = MEM32(esi + 0x4); /* 0x40006A92: mov eax, dword ptr [esi + 4] */ 4982 ecx = esi + 0x8; /* 0x40006A95: lea ecx, [esi + 8] */ 4983 MEM32(edx + 0x4) = eax; /* 0x40006A98: mov dword ptr [edx + 4], eax */ 4984 RECOMP_ICALL(0x40005490u); /* 0x40006A9B: call 0x40005490 */ /* not lifted */ 4985 RECOMP_FLAGS_IN(); 4986 PUSH32(esp, esi); /* 0x40006AA0: push esi */ 4987 RECOMP_ICALL(0x400146F2u); /* 0x40006AA1: call 0x400146f2 */ /* not lifted */ 4988 RECOMP_FLAGS_IN(); 4989 ecx = MEM32(ebx + 0x8); /* 0x40006AA6: mov ecx, dword ptr [ebx + 8] */ 4990 eax = MEM32(ebp + (-0x4)); /* 0x40006AA9: mov eax, dword ptr [ebp - 4] */ 4991 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4992 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4993 esp = esp + 4; /* 0x40006AAC: add esp, 4 */ 4994 _flag_k = FK_ADD; 4995 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4996 ecx = ecx - 1; /* 0x40006AAF: dec ecx */ 4997 _flag_k = FK_DEC; 4998 /* cmp edi, eax */ /* 0x40006AB0: cmp edi, eax */ 4999 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5001 _flag_k = FK_CMP; 5002 MEM32(ebx + 0x8) = ecx; /* 0x40006AB2: mov dword ptr [ebx + 8], ecx */ 5003 RECOMP_BACKEDGE(); 5004 if (CMP_NE(_flag_a, _flag_b)) goto L_40006A85; /* 0x40006AB5: jne 0x40006a85 */ 5005 L_40006AB7: 5006 esi = POP32_VAL(esp); /* 0x40006AB7: pop esi */ 5007 L_40006AB8: 5008 ecx = MEM32(ebx + 0x4); /* 0x40006AB8: mov ecx, dword ptr [ebx + 4] */ 5009 PUSH32(esp, ecx); /* 0x40006ABB: push ecx */ 5010 RECOMP_ICALL(0x400146F2u); /* 0x40006ABC: call 0x400146f2 */ /* not lifted */ 5011 RECOMP_FLAGS_IN(); 5012 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5013 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5014 esp = esp + 4; /* 0x40006AC1: add esp, 4 */ 5015 _flag_k = FK_ADD; 5016 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5017 eax = 0; /* 0x40006AC4: xor eax, eax */ 5018 _cf = 0; 5019 _flag_k = FK_TEST; 5020 edi = POP32_VAL(esp); /* 0x40006AC6: pop edi */ 5021 MEM32(ebx + 0x4) = eax; /* 0x40006AC7: mov dword ptr [ebx + 4], eax */ 5022 MEM32(ebx + 0x8) = eax; /* 0x40006ACA: mov dword ptr [ebx + 8], eax */ 5023 ebx = POP32_VAL(esp); /* 0x40006ACD: pop ebx */ 5024 esp = ebp; /* 0x40006ACE: mov esp, ebp */ 5025 ebp = POP32_VAL(esp); /* 0x40006AD0: pop ebp */ 5026 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40006AD1: ret */ 5027 L_40014B13: 5028 ecx = MEM32(ebp + (-0x14)); /* 0x40014B13: mov ecx, dword ptr [ebp - 0x14] */ 5029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x28u); 5030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5031 ecx = ecx + 0x28u; /* 0x40014B16: add ecx, 0x28 */ 5032 _flag_k = FK_ADD; 5033 RECOMP_BACKEDGE(); 5034 goto L_40006A70; /* 0x40014B19: jmp 0x40006a70 */ 5035 { RECOMP_REGS_OUT(); return; } /* end of function */ 5036 RECOMP_REGS_OUT(); 5037 } 5038 5039 void sub_40014B1E(void) { 5040 int _fpu_cmp = 0; 5041 uint32_t _cf = 0; 5042 int _df = 1; 5043 uint32_t _flag_k = FK_NONE; 5044 uint32_t _flag_a = 0, _flag_b = 0; 5045 uint32_t _itail_tgt = 0; 5046 RECOMP_REGS_LOCALS 5047 RECOMP_ENTER(0x40014B1Eu); 5048 5049 goto L_40014B1E; 5050 L_4000CD50: 5051 PUSH32(esp, ebp); /* 0x4000CD50: push ebp */ 5052 ebp = esp; /* 0x4000CD51: mov ebp, esp */ 5053 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5055 esp = esp - 8; /* 0x4000CD53: sub esp, 8 */ 5056 _flag_k = FK_CMP; 5057 PUSH32(esp, ebx); /* 0x4000CD56: push ebx */ 5058 PUSH32(esp, esi); /* 0x4000CD57: push esi */ 5059 esi = ecx; /* 0x4000CD58: mov esi, ecx */ 5060 ecx = MEM32(esi + 0x10); /* 0x4000CD5A: mov ecx, dword ptr [esi + 0x10] */ 5061 /* test ecx, ecx */ /* 0x4000CD5D: test ecx, ecx */ 5062 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5063 _cf = 0; 5064 _flag_k = FK_TEST; 5065 PUSH32(esp, edi); /* 0x4000CD5F: push edi */ 5066 edi = MEM32(esi + 0x4); /* 0x4000CD60: mov edi, dword ptr [esi + 4] */ 5067 eax = MEM32(edi); /* 0x4000CD63: mov eax, dword ptr [edi] */ 5068 MEM32(ebp + (-0x4)) = eax; /* 0x4000CD65: mov dword ptr [ebp - 4], eax */ 5069 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD68: je 0x4000cdc5 */ 5070 L_4000CD6A: 5071 ecx = eax; /* 0x4000CD6A: mov ecx, eax */ 5072 /* cmp eax, ecx */ /* 0x4000CD6C: cmp eax, ecx */ 5073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5075 _flag_k = FK_CMP; 5076 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD6E: jne 0x4000cdc5 */ 5077 L_4000CD70: 5078 /* cmp edi, edi */ /* 0x4000CD70: cmp edi, edi */ 5079 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5081 _flag_k = FK_CMP; 5082 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC5; /* 0x4000CD72: jne 0x4000cdc5 */ 5083 L_4000CD74: 5084 ebx = MEM32(edi + 0x4); /* 0x4000CD74: mov ebx, dword ptr [edi + 4] */ 5085 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CD77: cmp ebx, dword ptr [esi + 8] */ 5086 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5088 _flag_k = FK_CMP; 5089 edi = ebx; /* 0x4000CD7A: mov edi, ebx */ 5090 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CD9D; /* 0x4000CD7C: je 0x4000cd9d */ 5091 L_4000CD7E: 5092 eax = MEM32(edi + 0x8); /* 0x4000CD7E: mov eax, dword ptr [edi + 8] */ 5093 PUSH32(esp, eax); /* 0x4000CD81: push eax */ 5094 ecx = esi; /* 0x4000CD82: mov ecx, esi */ 5095 RECOMP_ICALL(0x40009400u); /* 0x4000CD84: call 0x40009400 */ /* not lifted */ 5096 RECOMP_FLAGS_IN(); 5097 edi = MEM32(edi); /* 0x4000CD89: mov edi, dword ptr [edi] */ 5098 PUSH32(esp, ebx); /* 0x4000CD8B: push ebx */ 5099 RECOMP_ICALL(0x400146F2u); /* 0x4000CD8C: call 0x400146f2 */ /* not lifted */ 5100 RECOMP_FLAGS_IN(); 5101 eax = MEM32(esi + 0x8); /* 0x4000CD91: mov eax, dword ptr [esi + 8] */ 5102 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5104 esp = esp + 4; /* 0x4000CD94: add esp, 4 */ 5105 _flag_k = FK_ADD; 5106 /* cmp edi, eax */ /* 0x4000CD97: cmp edi, eax */ 5107 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5109 _flag_k = FK_CMP; 5110 ebx = edi; /* 0x4000CD99: mov ebx, edi */ 5111 RECOMP_BACKEDGE(); 5112 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CD7E; /* 0x4000CD9B: jne 0x4000cd7e */ 5113 L_4000CD9D: 5114 ecx = MEM32(esi + 0x4); /* 0x4000CD9D: mov ecx, dword ptr [esi + 4] */ 5115 edx = MEM32(esi + 0x8); /* 0x4000CDA0: mov edx, dword ptr [esi + 8] */ 5116 MEM32(ecx + 0x4) = edx; /* 0x4000CDA3: mov dword ptr [ecx + 4], edx */ 5117 eax = MEM32(esi + 0x4); /* 0x4000CDA6: mov eax, dword ptr [esi + 4] */ 5118 MEM32(esi + 0x10) = 0; /* 0x4000CDA9: mov dword ptr [esi + 0x10], 0 */ 5119 MEM32(eax) = eax; /* 0x4000CDB0: mov dword ptr [eax], eax */ 5120 eax = MEM32(esi + 0x4); /* 0x4000CDB2: mov eax, dword ptr [esi + 4] */ 5121 MEM32(eax + 0x8) = eax; /* 0x4000CDB5: mov dword ptr [eax + 8], eax */ 5122 eax = ebp + (-0x8); /* 0x4000CDB8: lea eax, [ebp - 8] */ 5123 PUSH32(esp, eax); /* 0x4000CDBB: push eax */ 5124 ecx = esi; /* 0x4000CDBC: mov ecx, esi */ 5125 RECOMP_ICALL(0x40001BA0u); /* 0x4000CDBE: call 0x40001ba0 */ /* not lifted */ 5126 RECOMP_FLAGS_IN(); 5127 goto L_4000CDE6; /* 0x4000CDC3: jmp 0x4000cde6 */ 5128 L_4000CDC5: 5129 /* cmp eax, edi */ /* 0x4000CDC5: cmp eax, edi */ 5130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5132 _flag_k = FK_CMP; 5133 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CDE6; /* 0x4000CDC7: je 0x4000cde6 */ 5134 L_4000CDC9: 5135 ecx = ebp + (-0x4); /* 0x4000CDC9: lea ecx, [ebp - 4] */ 5136 ebx = eax; /* 0x4000CDCC: mov ebx, eax */ 5137 RECOMP_ICALL(0x400082F0u); /* 0x4000CDCE: call 0x400082f0 */ /* not lifted */ 5138 RECOMP_FLAGS_IN(); 5139 PUSH32(esp, ebx); /* 0x4000CDD3: push ebx */ 5140 ecx = ebp + (-0x8); /* 0x4000CDD4: lea ecx, [ebp - 8] */ 5141 PUSH32(esp, ecx); /* 0x4000CDD7: push ecx */ 5142 ecx = esi; /* 0x4000CDD8: mov ecx, esi */ 5143 RECOMP_ICALL(0x40007E20u); /* 0x4000CDDA: call 0x40007e20 */ /* not lifted */ 5144 RECOMP_FLAGS_IN(); 5145 eax = MEM32(ebp + (-0x4)); /* 0x4000CDDF: mov eax, dword ptr [ebp - 4] */ 5146 /* cmp eax, edi */ /* 0x4000CDE2: cmp eax, edi */ 5147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5149 _flag_k = FK_CMP; 5150 RECOMP_BACKEDGE(); 5151 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CDC9; /* 0x4000CDE4: jne 0x4000cdc9 */ 5152 L_4000CDE6: 5153 edx = MEM32(esi + 0x4); /* 0x4000CDE6: mov edx, dword ptr [esi + 4] */ 5154 PUSH32(esp, edx); /* 0x4000CDE9: push edx */ 5155 RECOMP_ICALL(0x400146F2u); /* 0x4000CDEA: call 0x400146f2 */ /* not lifted */ 5156 RECOMP_FLAGS_IN(); 5157 eax = MEM32(esi + 0x8); /* 0x4000CDEF: mov eax, dword ptr [esi + 8] */ 5158 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5159 edi = 0; /* 0x4000CDF2: xor edi, edi */ 5160 _cf = 0; 5161 _flag_k = FK_TEST; 5162 PUSH32(esp, eax); /* 0x4000CDF4: push eax */ 5163 MEM32(esi + 0x4) = edi; /* 0x4000CDF5: mov dword ptr [esi + 4], edi */ 5164 MEM32(esi + 0x10) = edi; /* 0x4000CDF8: mov dword ptr [esi + 0x10], edi */ 5165 RECOMP_ICALL(0x400146F2u); /* 0x4000CDFB: call 0x400146f2 */ /* not lifted */ 5166 RECOMP_FLAGS_IN(); 5167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5169 esp = esp + 8; /* 0x4000CE00: add esp, 8 */ 5170 _flag_k = FK_ADD; 5171 MEM32(esi + 0x8) = edi; /* 0x4000CE03: mov dword ptr [esi + 8], edi */ 5172 edi = POP32_VAL(esp); /* 0x4000CE06: pop edi */ 5173 esi = POP32_VAL(esp); /* 0x4000CE07: pop esi */ 5174 ebx = POP32_VAL(esp); /* 0x4000CE08: pop ebx */ 5175 esp = ebp; /* 0x4000CE09: mov esp, ebp */ 5176 ebp = POP32_VAL(esp); /* 0x4000CE0B: pop ebp */ 5177 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CE0C: ret */ 5178 L_40014B1E: 5179 ecx = MEM32(ebp + (-0x14)); /* 0x40014B1E: mov ecx, dword ptr [ebp - 0x14] */ 5180 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u); 5181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5182 ecx = ecx + 0x34u; /* 0x40014B21: add ecx, 0x34 */ 5183 _flag_k = FK_ADD; 5184 RECOMP_BACKEDGE(); 5185 goto L_4000CD50; /* 0x40014B24: jmp 0x4000cd50 */ 5186 { RECOMP_REGS_OUT(); return; } /* end of function */ 5187 RECOMP_REGS_OUT(); 5188 } 5189 5190 void sub_40014B29(void) { 5191 int _fpu_cmp = 0; 5192 uint32_t _cf = 0; 5193 int _df = 1; 5194 uint32_t _flag_k = FK_NONE; 5195 uint32_t _flag_a = 0, _flag_b = 0; 5196 uint32_t _itail_tgt = 0; 5197 RECOMP_REGS_LOCALS 5198 RECOMP_ENTER(0x40014B29u); 5199 5200 goto L_40014B29; 5201 L_4000CE10: 5202 PUSH32(esp, ebp); /* 0x4000CE10: push ebp */ 5203 ebp = esp; /* 0x4000CE11: mov ebp, esp */ 5204 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5206 esp = esp - 8; /* 0x4000CE13: sub esp, 8 */ 5207 _flag_k = FK_CMP; 5208 PUSH32(esp, ebx); /* 0x4000CE16: push ebx */ 5209 PUSH32(esp, esi); /* 0x4000CE17: push esi */ 5210 esi = ecx; /* 0x4000CE18: mov esi, ecx */ 5211 ecx = MEM32(esi + 0x10); /* 0x4000CE1A: mov ecx, dword ptr [esi + 0x10] */ 5212 /* test ecx, ecx */ /* 0x4000CE1D: test ecx, ecx */ 5213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5214 _cf = 0; 5215 _flag_k = FK_TEST; 5216 PUSH32(esp, edi); /* 0x4000CE1F: push edi */ 5217 edi = MEM32(esi + 0x4); /* 0x4000CE20: mov edi, dword ptr [esi + 4] */ 5218 eax = MEM32(edi); /* 0x4000CE23: mov eax, dword ptr [edi] */ 5219 MEM32(ebp + (-0x4)) = eax; /* 0x4000CE25: mov dword ptr [ebp - 4], eax */ 5220 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE28: je 0x4000ce85 */ 5221 L_4000CE2A: 5222 ecx = eax; /* 0x4000CE2A: mov ecx, eax */ 5223 /* cmp eax, ecx */ /* 0x4000CE2C: cmp eax, ecx */ 5224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5226 _flag_k = FK_CMP; 5227 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE2E: jne 0x4000ce85 */ 5228 L_4000CE30: 5229 /* cmp edi, edi */ /* 0x4000CE30: cmp edi, edi */ 5230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5232 _flag_k = FK_CMP; 5233 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE32: jne 0x4000ce85 */ 5234 L_4000CE34: 5235 ebx = MEM32(edi + 0x4); /* 0x4000CE34: mov ebx, dword ptr [edi + 4] */ 5236 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CE37: cmp ebx, dword ptr [esi + 8] */ 5237 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5239 _flag_k = FK_CMP; 5240 edi = ebx; /* 0x4000CE3A: mov edi, ebx */ 5241 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CE5D; /* 0x4000CE3C: je 0x4000ce5d */ 5242 L_4000CE3E: 5243 eax = MEM32(edi + 0x8); /* 0x4000CE3E: mov eax, dword ptr [edi + 8] */ 5244 PUSH32(esp, eax); /* 0x4000CE41: push eax */ 5245 ecx = esi; /* 0x4000CE42: mov ecx, esi */ 5246 RECOMP_ICALL(0x40009A50u); /* 0x4000CE44: call 0x40009a50 */ /* not lifted */ 5247 RECOMP_FLAGS_IN(); 5248 edi = MEM32(edi); /* 0x4000CE49: mov edi, dword ptr [edi] */ 5249 PUSH32(esp, ebx); /* 0x4000CE4B: push ebx */ 5250 RECOMP_ICALL(0x400146F2u); /* 0x4000CE4C: call 0x400146f2 */ /* not lifted */ 5251 RECOMP_FLAGS_IN(); 5252 eax = MEM32(esi + 0x8); /* 0x4000CE51: mov eax, dword ptr [esi + 8] */ 5253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5255 esp = esp + 4; /* 0x4000CE54: add esp, 4 */ 5256 _flag_k = FK_ADD; 5257 /* cmp edi, eax */ /* 0x4000CE57: cmp edi, eax */ 5258 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5260 _flag_k = FK_CMP; 5261 ebx = edi; /* 0x4000CE59: mov ebx, edi */ 5262 RECOMP_BACKEDGE(); 5263 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE3E; /* 0x4000CE5B: jne 0x4000ce3e */ 5264 L_4000CE5D: 5265 ecx = MEM32(esi + 0x4); /* 0x4000CE5D: mov ecx, dword ptr [esi + 4] */ 5266 edx = MEM32(esi + 0x8); /* 0x4000CE60: mov edx, dword ptr [esi + 8] */ 5267 MEM32(ecx + 0x4) = edx; /* 0x4000CE63: mov dword ptr [ecx + 4], edx */ 5268 eax = MEM32(esi + 0x4); /* 0x4000CE66: mov eax, dword ptr [esi + 4] */ 5269 MEM32(esi + 0x10) = 0; /* 0x4000CE69: mov dword ptr [esi + 0x10], 0 */ 5270 MEM32(eax) = eax; /* 0x4000CE70: mov dword ptr [eax], eax */ 5271 eax = MEM32(esi + 0x4); /* 0x4000CE72: mov eax, dword ptr [esi + 4] */ 5272 MEM32(eax + 0x8) = eax; /* 0x4000CE75: mov dword ptr [eax + 8], eax */ 5273 eax = ebp + (-0x8); /* 0x4000CE78: lea eax, [ebp - 8] */ 5274 PUSH32(esp, eax); /* 0x4000CE7B: push eax */ 5275 ecx = esi; /* 0x4000CE7C: mov ecx, esi */ 5276 RECOMP_ICALL(0x40001BA0u); /* 0x4000CE7E: call 0x40001ba0 */ /* not lifted */ 5277 RECOMP_FLAGS_IN(); 5278 goto L_4000CEA6; /* 0x4000CE83: jmp 0x4000cea6 */ 5279 L_4000CE85: 5280 /* cmp eax, edi */ /* 0x4000CE85: cmp eax, edi */ 5281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5283 _flag_k = FK_CMP; 5284 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CEA6; /* 0x4000CE87: je 0x4000cea6 */ 5285 L_4000CE89: 5286 ecx = ebp + (-0x4); /* 0x4000CE89: lea ecx, [ebp - 4] */ 5287 ebx = eax; /* 0x4000CE8C: mov ebx, eax */ 5288 RECOMP_ICALL(0x40008480u); /* 0x4000CE8E: call 0x40008480 */ /* not lifted */ 5289 RECOMP_FLAGS_IN(); 5290 PUSH32(esp, ebx); /* 0x4000CE93: push ebx */ 5291 ecx = ebp + (-0x8); /* 0x4000CE94: lea ecx, [ebp - 8] */ 5292 PUSH32(esp, ecx); /* 0x4000CE97: push ecx */ 5293 ecx = esi; /* 0x4000CE98: mov ecx, esi */ 5294 RECOMP_ICALL(0x40009690u); /* 0x4000CE9A: call 0x40009690 */ /* not lifted */ 5295 RECOMP_FLAGS_IN(); 5296 eax = MEM32(ebp + (-0x4)); /* 0x4000CE9F: mov eax, dword ptr [ebp - 4] */ 5297 /* cmp eax, edi */ /* 0x4000CEA2: cmp eax, edi */ 5298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5300 _flag_k = FK_CMP; 5301 RECOMP_BACKEDGE(); 5302 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE89; /* 0x4000CEA4: jne 0x4000ce89 */ 5303 L_4000CEA6: 5304 edx = MEM32(esi + 0x4); /* 0x4000CEA6: mov edx, dword ptr [esi + 4] */ 5305 PUSH32(esp, edx); /* 0x4000CEA9: push edx */ 5306 RECOMP_ICALL(0x400146F2u); /* 0x4000CEAA: call 0x400146f2 */ /* not lifted */ 5307 RECOMP_FLAGS_IN(); 5308 eax = MEM32(esi + 0x8); /* 0x4000CEAF: mov eax, dword ptr [esi + 8] */ 5309 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5310 edi = 0; /* 0x4000CEB2: xor edi, edi */ 5311 _cf = 0; 5312 _flag_k = FK_TEST; 5313 PUSH32(esp, eax); /* 0x4000CEB4: push eax */ 5314 MEM32(esi + 0x4) = edi; /* 0x4000CEB5: mov dword ptr [esi + 4], edi */ 5315 MEM32(esi + 0x10) = edi; /* 0x4000CEB8: mov dword ptr [esi + 0x10], edi */ 5316 RECOMP_ICALL(0x400146F2u); /* 0x4000CEBB: call 0x400146f2 */ /* not lifted */ 5317 RECOMP_FLAGS_IN(); 5318 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5319 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5320 esp = esp + 8; /* 0x4000CEC0: add esp, 8 */ 5321 _flag_k = FK_ADD; 5322 MEM32(esi + 0x8) = edi; /* 0x4000CEC3: mov dword ptr [esi + 8], edi */ 5323 edi = POP32_VAL(esp); /* 0x4000CEC6: pop edi */ 5324 esi = POP32_VAL(esp); /* 0x4000CEC7: pop esi */ 5325 ebx = POP32_VAL(esp); /* 0x4000CEC8: pop ebx */ 5326 esp = ebp; /* 0x4000CEC9: mov esp, ebp */ 5327 ebp = POP32_VAL(esp); /* 0x4000CECB: pop ebp */ 5328 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CECC: ret */ 5329 L_40014B29: 5330 ecx = MEM32(ebp + (-0x14)); /* 0x40014B29: mov ecx, dword ptr [ebp - 0x14] */ 5331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x48u); 5332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5333 ecx = ecx + 0x48u; /* 0x40014B2C: add ecx, 0x48 */ 5334 _flag_k = FK_ADD; 5335 RECOMP_BACKEDGE(); 5336 goto L_4000CE10; /* 0x40014B2F: jmp 0x4000ce10 */ 5337 { RECOMP_REGS_OUT(); return; } /* end of function */ 5338 RECOMP_REGS_OUT(); 5339 } 5340 5341 void sub_40014B34(void) { 5342 int _fpu_cmp = 0; 5343 uint32_t _cf = 0; 5344 int _df = 1; 5345 uint32_t _flag_k = FK_NONE; 5346 uint32_t _flag_a = 0, _flag_b = 0; 5347 uint32_t _itail_tgt = 0; 5348 RECOMP_REGS_LOCALS 5349 RECOMP_ENTER(0x40014B34u); 5350 5351 goto L_40014B34; 5352 L_4000CE10: 5353 PUSH32(esp, ebp); /* 0x4000CE10: push ebp */ 5354 ebp = esp; /* 0x4000CE11: mov ebp, esp */ 5355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5357 esp = esp - 8; /* 0x4000CE13: sub esp, 8 */ 5358 _flag_k = FK_CMP; 5359 PUSH32(esp, ebx); /* 0x4000CE16: push ebx */ 5360 PUSH32(esp, esi); /* 0x4000CE17: push esi */ 5361 esi = ecx; /* 0x4000CE18: mov esi, ecx */ 5362 ecx = MEM32(esi + 0x10); /* 0x4000CE1A: mov ecx, dword ptr [esi + 0x10] */ 5363 /* test ecx, ecx */ /* 0x4000CE1D: test ecx, ecx */ 5364 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5365 _cf = 0; 5366 _flag_k = FK_TEST; 5367 PUSH32(esp, edi); /* 0x4000CE1F: push edi */ 5368 edi = MEM32(esi + 0x4); /* 0x4000CE20: mov edi, dword ptr [esi + 4] */ 5369 eax = MEM32(edi); /* 0x4000CE23: mov eax, dword ptr [edi] */ 5370 MEM32(ebp + (-0x4)) = eax; /* 0x4000CE25: mov dword ptr [ebp - 4], eax */ 5371 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE28: je 0x4000ce85 */ 5372 L_4000CE2A: 5373 ecx = eax; /* 0x4000CE2A: mov ecx, eax */ 5374 /* cmp eax, ecx */ /* 0x4000CE2C: cmp eax, ecx */ 5375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5377 _flag_k = FK_CMP; 5378 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE2E: jne 0x4000ce85 */ 5379 L_4000CE30: 5380 /* cmp edi, edi */ /* 0x4000CE30: cmp edi, edi */ 5381 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5383 _flag_k = FK_CMP; 5384 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE85; /* 0x4000CE32: jne 0x4000ce85 */ 5385 L_4000CE34: 5386 ebx = MEM32(edi + 0x4); /* 0x4000CE34: mov ebx, dword ptr [edi + 4] */ 5387 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CE37: cmp ebx, dword ptr [esi + 8] */ 5388 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5390 _flag_k = FK_CMP; 5391 edi = ebx; /* 0x4000CE3A: mov edi, ebx */ 5392 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CE5D; /* 0x4000CE3C: je 0x4000ce5d */ 5393 L_4000CE3E: 5394 eax = MEM32(edi + 0x8); /* 0x4000CE3E: mov eax, dword ptr [edi + 8] */ 5395 PUSH32(esp, eax); /* 0x4000CE41: push eax */ 5396 ecx = esi; /* 0x4000CE42: mov ecx, esi */ 5397 RECOMP_ICALL(0x40009A50u); /* 0x4000CE44: call 0x40009a50 */ /* not lifted */ 5398 RECOMP_FLAGS_IN(); 5399 edi = MEM32(edi); /* 0x4000CE49: mov edi, dword ptr [edi] */ 5400 PUSH32(esp, ebx); /* 0x4000CE4B: push ebx */ 5401 RECOMP_ICALL(0x400146F2u); /* 0x4000CE4C: call 0x400146f2 */ /* not lifted */ 5402 RECOMP_FLAGS_IN(); 5403 eax = MEM32(esi + 0x8); /* 0x4000CE51: mov eax, dword ptr [esi + 8] */ 5404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5406 esp = esp + 4; /* 0x4000CE54: add esp, 4 */ 5407 _flag_k = FK_ADD; 5408 /* cmp edi, eax */ /* 0x4000CE57: cmp edi, eax */ 5409 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5411 _flag_k = FK_CMP; 5412 ebx = edi; /* 0x4000CE59: mov ebx, edi */ 5413 RECOMP_BACKEDGE(); 5414 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE3E; /* 0x4000CE5B: jne 0x4000ce3e */ 5415 L_4000CE5D: 5416 ecx = MEM32(esi + 0x4); /* 0x4000CE5D: mov ecx, dword ptr [esi + 4] */ 5417 edx = MEM32(esi + 0x8); /* 0x4000CE60: mov edx, dword ptr [esi + 8] */ 5418 MEM32(ecx + 0x4) = edx; /* 0x4000CE63: mov dword ptr [ecx + 4], edx */ 5419 eax = MEM32(esi + 0x4); /* 0x4000CE66: mov eax, dword ptr [esi + 4] */ 5420 MEM32(esi + 0x10) = 0; /* 0x4000CE69: mov dword ptr [esi + 0x10], 0 */ 5421 MEM32(eax) = eax; /* 0x4000CE70: mov dword ptr [eax], eax */ 5422 eax = MEM32(esi + 0x4); /* 0x4000CE72: mov eax, dword ptr [esi + 4] */ 5423 MEM32(eax + 0x8) = eax; /* 0x4000CE75: mov dword ptr [eax + 8], eax */ 5424 eax = ebp + (-0x8); /* 0x4000CE78: lea eax, [ebp - 8] */ 5425 PUSH32(esp, eax); /* 0x4000CE7B: push eax */ 5426 ecx = esi; /* 0x4000CE7C: mov ecx, esi */ 5427 RECOMP_ICALL(0x40001BA0u); /* 0x4000CE7E: call 0x40001ba0 */ /* not lifted */ 5428 RECOMP_FLAGS_IN(); 5429 goto L_4000CEA6; /* 0x4000CE83: jmp 0x4000cea6 */ 5430 L_4000CE85: 5431 /* cmp eax, edi */ /* 0x4000CE85: cmp eax, edi */ 5432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5434 _flag_k = FK_CMP; 5435 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CEA6; /* 0x4000CE87: je 0x4000cea6 */ 5436 L_4000CE89: 5437 ecx = ebp + (-0x4); /* 0x4000CE89: lea ecx, [ebp - 4] */ 5438 ebx = eax; /* 0x4000CE8C: mov ebx, eax */ 5439 RECOMP_ICALL(0x40008480u); /* 0x4000CE8E: call 0x40008480 */ /* not lifted */ 5440 RECOMP_FLAGS_IN(); 5441 PUSH32(esp, ebx); /* 0x4000CE93: push ebx */ 5442 ecx = ebp + (-0x8); /* 0x4000CE94: lea ecx, [ebp - 8] */ 5443 PUSH32(esp, ecx); /* 0x4000CE97: push ecx */ 5444 ecx = esi; /* 0x4000CE98: mov ecx, esi */ 5445 RECOMP_ICALL(0x40009690u); /* 0x4000CE9A: call 0x40009690 */ /* not lifted */ 5446 RECOMP_FLAGS_IN(); 5447 eax = MEM32(ebp + (-0x4)); /* 0x4000CE9F: mov eax, dword ptr [ebp - 4] */ 5448 /* cmp eax, edi */ /* 0x4000CEA2: cmp eax, edi */ 5449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5451 _flag_k = FK_CMP; 5452 RECOMP_BACKEDGE(); 5453 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CE89; /* 0x4000CEA4: jne 0x4000ce89 */ 5454 L_4000CEA6: 5455 edx = MEM32(esi + 0x4); /* 0x4000CEA6: mov edx, dword ptr [esi + 4] */ 5456 PUSH32(esp, edx); /* 0x4000CEA9: push edx */ 5457 RECOMP_ICALL(0x400146F2u); /* 0x4000CEAA: call 0x400146f2 */ /* not lifted */ 5458 RECOMP_FLAGS_IN(); 5459 eax = MEM32(esi + 0x8); /* 0x4000CEAF: mov eax, dword ptr [esi + 8] */ 5460 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5461 edi = 0; /* 0x4000CEB2: xor edi, edi */ 5462 _cf = 0; 5463 _flag_k = FK_TEST; 5464 PUSH32(esp, eax); /* 0x4000CEB4: push eax */ 5465 MEM32(esi + 0x4) = edi; /* 0x4000CEB5: mov dword ptr [esi + 4], edi */ 5466 MEM32(esi + 0x10) = edi; /* 0x4000CEB8: mov dword ptr [esi + 0x10], edi */ 5467 RECOMP_ICALL(0x400146F2u); /* 0x4000CEBB: call 0x400146f2 */ /* not lifted */ 5468 RECOMP_FLAGS_IN(); 5469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5471 esp = esp + 8; /* 0x4000CEC0: add esp, 8 */ 5472 _flag_k = FK_ADD; 5473 MEM32(esi + 0x8) = edi; /* 0x4000CEC3: mov dword ptr [esi + 8], edi */ 5474 edi = POP32_VAL(esp); /* 0x4000CEC6: pop edi */ 5475 esi = POP32_VAL(esp); /* 0x4000CEC7: pop esi */ 5476 ebx = POP32_VAL(esp); /* 0x4000CEC8: pop ebx */ 5477 esp = ebp; /* 0x4000CEC9: mov esp, ebp */ 5478 ebp = POP32_VAL(esp); /* 0x4000CECB: pop ebp */ 5479 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CECC: ret */ 5480 L_40014B34: 5481 ecx = MEM32(ebp + (-0x14)); /* 0x40014B34: mov ecx, dword ptr [ebp - 0x14] */ 5482 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x5Cu); 5483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5484 ecx = ecx + 0x5Cu; /* 0x40014B37: add ecx, 0x5c */ 5485 _flag_k = FK_ADD; 5486 RECOMP_BACKEDGE(); 5487 goto L_4000CE10; /* 0x40014B3A: jmp 0x4000ce10 */ 5488 { RECOMP_REGS_OUT(); return; } /* end of function */ 5489 RECOMP_REGS_OUT(); 5490 } 5491 5492 void sub_40014B3F(void) { 5493 int _fpu_cmp = 0; 5494 uint32_t _cf = 0; 5495 int _df = 1; 5496 uint32_t _flag_k = FK_NONE; 5497 uint32_t _flag_a = 0, _flag_b = 0; 5498 uint32_t _itail_tgt = 0; 5499 RECOMP_REGS_LOCALS 5500 RECOMP_ENTER(0x40014B3Fu); 5501 5502 goto L_40014B3F; 5503 L_4000CED0: 5504 PUSH32(esp, ebp); /* 0x4000CED0: push ebp */ 5505 ebp = esp; /* 0x4000CED1: mov ebp, esp */ 5506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5508 esp = esp - 8; /* 0x4000CED3: sub esp, 8 */ 5509 _flag_k = FK_CMP; 5510 PUSH32(esp, ebx); /* 0x4000CED6: push ebx */ 5511 PUSH32(esp, esi); /* 0x4000CED7: push esi */ 5512 esi = ecx; /* 0x4000CED8: mov esi, ecx */ 5513 ecx = MEM32(esi + 0x10); /* 0x4000CEDA: mov ecx, dword ptr [esi + 0x10] */ 5514 /* test ecx, ecx */ /* 0x4000CEDD: test ecx, ecx */ 5515 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5516 _cf = 0; 5517 _flag_k = FK_TEST; 5518 PUSH32(esp, edi); /* 0x4000CEDF: push edi */ 5519 edi = MEM32(esi + 0x4); /* 0x4000CEE0: mov edi, dword ptr [esi + 4] */ 5520 eax = MEM32(edi); /* 0x4000CEE3: mov eax, dword ptr [edi] */ 5521 MEM32(ebp + (-0x4)) = eax; /* 0x4000CEE5: mov dword ptr [ebp - 4], eax */ 5522 if (TEST_Z(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEE8: je 0x4000cf45 */ 5523 L_4000CEEA: 5524 ecx = eax; /* 0x4000CEEA: mov ecx, eax */ 5525 /* cmp eax, ecx */ /* 0x4000CEEC: cmp eax, ecx */ 5526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5528 _flag_k = FK_CMP; 5529 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEEE: jne 0x4000cf45 */ 5530 L_4000CEF0: 5531 /* cmp edi, edi */ /* 0x4000CEF0: cmp edi, edi */ 5532 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5534 _flag_k = FK_CMP; 5535 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF45; /* 0x4000CEF2: jne 0x4000cf45 */ 5536 L_4000CEF4: 5537 ebx = MEM32(edi + 0x4); /* 0x4000CEF4: mov ebx, dword ptr [edi + 4] */ 5538 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CEF7: cmp ebx, dword ptr [esi + 8] */ 5539 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5541 _flag_k = FK_CMP; 5542 edi = ebx; /* 0x4000CEFA: mov edi, ebx */ 5543 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CF1D; /* 0x4000CEFC: je 0x4000cf1d */ 5544 L_4000CEFE: 5545 eax = MEM32(edi + 0x8); /* 0x4000CEFE: mov eax, dword ptr [edi + 8] */ 5546 PUSH32(esp, eax); /* 0x4000CF01: push eax */ 5547 ecx = esi; /* 0x4000CF02: mov ecx, esi */ 5548 RECOMP_ICALL(0x40009E80u); /* 0x4000CF04: call 0x40009e80 */ /* not lifted */ 5549 RECOMP_FLAGS_IN(); 5550 edi = MEM32(edi); /* 0x4000CF09: mov edi, dword ptr [edi] */ 5551 PUSH32(esp, ebx); /* 0x4000CF0B: push ebx */ 5552 RECOMP_ICALL(0x400146F2u); /* 0x4000CF0C: call 0x400146f2 */ /* not lifted */ 5553 RECOMP_FLAGS_IN(); 5554 eax = MEM32(esi + 0x8); /* 0x4000CF11: mov eax, dword ptr [esi + 8] */ 5555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5557 esp = esp + 4; /* 0x4000CF14: add esp, 4 */ 5558 _flag_k = FK_ADD; 5559 /* cmp edi, eax */ /* 0x4000CF17: cmp edi, eax */ 5560 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5562 _flag_k = FK_CMP; 5563 ebx = edi; /* 0x4000CF19: mov ebx, edi */ 5564 RECOMP_BACKEDGE(); 5565 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CEFE; /* 0x4000CF1B: jne 0x4000cefe */ 5566 L_4000CF1D: 5567 ecx = MEM32(esi + 0x4); /* 0x4000CF1D: mov ecx, dword ptr [esi + 4] */ 5568 edx = MEM32(esi + 0x8); /* 0x4000CF20: mov edx, dword ptr [esi + 8] */ 5569 MEM32(ecx + 0x4) = edx; /* 0x4000CF23: mov dword ptr [ecx + 4], edx */ 5570 eax = MEM32(esi + 0x4); /* 0x4000CF26: mov eax, dword ptr [esi + 4] */ 5571 MEM32(esi + 0x10) = 0; /* 0x4000CF29: mov dword ptr [esi + 0x10], 0 */ 5572 MEM32(eax) = eax; /* 0x4000CF30: mov dword ptr [eax], eax */ 5573 eax = MEM32(esi + 0x4); /* 0x4000CF32: mov eax, dword ptr [esi + 4] */ 5574 MEM32(eax + 0x8) = eax; /* 0x4000CF35: mov dword ptr [eax + 8], eax */ 5575 eax = ebp + (-0x8); /* 0x4000CF38: lea eax, [ebp - 8] */ 5576 PUSH32(esp, eax); /* 0x4000CF3B: push eax */ 5577 ecx = esi; /* 0x4000CF3C: mov ecx, esi */ 5578 RECOMP_ICALL(0x40001BA0u); /* 0x4000CF3E: call 0x40001ba0 */ /* not lifted */ 5579 RECOMP_FLAGS_IN(); 5580 goto L_4000CF66; /* 0x4000CF43: jmp 0x4000cf66 */ 5581 L_4000CF45: 5582 /* cmp eax, edi */ /* 0x4000CF45: cmp eax, edi */ 5583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5585 _flag_k = FK_CMP; 5586 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CF66; /* 0x4000CF47: je 0x4000cf66 */ 5587 L_4000CF49: 5588 ecx = ebp + (-0x4); /* 0x4000CF49: lea ecx, [ebp - 4] */ 5589 ebx = eax; /* 0x4000CF4C: mov ebx, eax */ 5590 RECOMP_ICALL(0x40008540u); /* 0x4000CF4E: call 0x40008540 */ /* not lifted */ 5591 RECOMP_FLAGS_IN(); 5592 PUSH32(esp, ebx); /* 0x4000CF53: push ebx */ 5593 ecx = ebp + (-0x8); /* 0x4000CF54: lea ecx, [ebp - 8] */ 5594 PUSH32(esp, ecx); /* 0x4000CF57: push ecx */ 5595 ecx = esi; /* 0x4000CF58: mov ecx, esi */ 5596 RECOMP_ICALL(0x40009AC0u); /* 0x4000CF5A: call 0x40009ac0 */ /* not lifted */ 5597 RECOMP_FLAGS_IN(); 5598 eax = MEM32(ebp + (-0x4)); /* 0x4000CF5F: mov eax, dword ptr [ebp - 4] */ 5599 /* cmp eax, edi */ /* 0x4000CF62: cmp eax, edi */ 5600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5602 _flag_k = FK_CMP; 5603 RECOMP_BACKEDGE(); 5604 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CF49; /* 0x4000CF64: jne 0x4000cf49 */ 5605 L_4000CF66: 5606 edx = MEM32(esi + 0x4); /* 0x4000CF66: mov edx, dword ptr [esi + 4] */ 5607 PUSH32(esp, edx); /* 0x4000CF69: push edx */ 5608 RECOMP_ICALL(0x400146F2u); /* 0x4000CF6A: call 0x400146f2 */ /* not lifted */ 5609 RECOMP_FLAGS_IN(); 5610 eax = MEM32(esi + 0x8); /* 0x4000CF6F: mov eax, dword ptr [esi + 8] */ 5611 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5612 edi = 0; /* 0x4000CF72: xor edi, edi */ 5613 _cf = 0; 5614 _flag_k = FK_TEST; 5615 PUSH32(esp, eax); /* 0x4000CF74: push eax */ 5616 MEM32(esi + 0x4) = edi; /* 0x4000CF75: mov dword ptr [esi + 4], edi */ 5617 MEM32(esi + 0x10) = edi; /* 0x4000CF78: mov dword ptr [esi + 0x10], edi */ 5618 RECOMP_ICALL(0x400146F2u); /* 0x4000CF7B: call 0x400146f2 */ /* not lifted */ 5619 RECOMP_FLAGS_IN(); 5620 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5622 esp = esp + 8; /* 0x4000CF80: add esp, 8 */ 5623 _flag_k = FK_ADD; 5624 MEM32(esi + 0x8) = edi; /* 0x4000CF83: mov dword ptr [esi + 8], edi */ 5625 edi = POP32_VAL(esp); /* 0x4000CF86: pop edi */ 5626 esi = POP32_VAL(esp); /* 0x4000CF87: pop esi */ 5627 ebx = POP32_VAL(esp); /* 0x4000CF88: pop ebx */ 5628 esp = ebp; /* 0x4000CF89: mov esp, ebp */ 5629 ebp = POP32_VAL(esp); /* 0x4000CF8B: pop ebp */ 5630 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000CF8C: ret */ 5631 L_40014B3F: 5632 ecx = MEM32(ebp + (-0x14)); /* 0x40014B3F: mov ecx, dword ptr [ebp - 0x14] */ 5633 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x160u); 5634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5635 ecx = ecx + 0x160u; /* 0x40014B42: add ecx, 0x160 */ 5636 _flag_k = FK_ADD; 5637 RECOMP_BACKEDGE(); 5638 goto L_4000CED0; /* 0x40014B48: jmp 0x4000ced0 */ 5639 { RECOMP_REGS_OUT(); return; } /* end of function */ 5640 RECOMP_REGS_OUT(); 5641 } 5642 5643 void sub_40014B4D(void) { 5644 int _fpu_cmp = 0; 5645 uint32_t _cf = 0; 5646 int _df = 1; 5647 uint32_t _flag_k = FK_NONE; 5648 uint32_t _flag_a = 0, _flag_b = 0; 5649 uint32_t _itail_tgt = 0; 5650 RECOMP_REGS_LOCALS 5651 RECOMP_ENTER(0x40014B4Du); 5652 5653 goto L_40014B4D; 5654 L_4000CF90: 5655 PUSH32(esp, ebp); /* 0x4000CF90: push ebp */ 5656 ebp = esp; /* 0x4000CF91: mov ebp, esp */ 5657 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5659 esp = esp - 8; /* 0x4000CF93: sub esp, 8 */ 5660 _flag_k = FK_CMP; 5661 PUSH32(esp, ebx); /* 0x4000CF96: push ebx */ 5662 PUSH32(esp, esi); /* 0x4000CF97: push esi */ 5663 esi = ecx; /* 0x4000CF98: mov esi, ecx */ 5664 ecx = MEM32(esi + 0x10); /* 0x4000CF9A: mov ecx, dword ptr [esi + 0x10] */ 5665 /* test ecx, ecx */ /* 0x4000CF9D: test ecx, ecx */ 5666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5667 _cf = 0; 5668 _flag_k = FK_TEST; 5669 PUSH32(esp, edi); /* 0x4000CF9F: push edi */ 5670 edi = MEM32(esi + 0x4); /* 0x4000CFA0: mov edi, dword ptr [esi + 4] */ 5671 eax = MEM32(edi); /* 0x4000CFA3: mov eax, dword ptr [edi] */ 5672 MEM32(ebp + (-0x4)) = eax; /* 0x4000CFA5: mov dword ptr [ebp - 4], eax */ 5673 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFA8: je 0x4000d005 */ 5674 L_4000CFAA: 5675 ecx = eax; /* 0x4000CFAA: mov ecx, eax */ 5676 /* cmp eax, ecx */ /* 0x4000CFAC: cmp eax, ecx */ 5677 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5679 _flag_k = FK_CMP; 5680 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFAE: jne 0x4000d005 */ 5681 L_4000CFB0: 5682 /* cmp edi, edi */ /* 0x4000CFB0: cmp edi, edi */ 5683 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5685 _flag_k = FK_CMP; 5686 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFB2: jne 0x4000d005 */ 5687 L_4000CFB4: 5688 ebx = MEM32(edi + 0x4); /* 0x4000CFB4: mov ebx, dword ptr [edi + 4] */ 5689 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CFB7: cmp ebx, dword ptr [esi + 8] */ 5690 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5692 _flag_k = FK_CMP; 5693 edi = ebx; /* 0x4000CFBA: mov edi, ebx */ 5694 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CFDD; /* 0x4000CFBC: je 0x4000cfdd */ 5695 L_4000CFBE: 5696 eax = MEM32(edi + 0x8); /* 0x4000CFBE: mov eax, dword ptr [edi + 8] */ 5697 PUSH32(esp, eax); /* 0x4000CFC1: push eax */ 5698 ecx = esi; /* 0x4000CFC2: mov ecx, esi */ 5699 RECOMP_ICALL(0x40009F20u); /* 0x4000CFC4: call 0x40009f20 */ /* not lifted */ 5700 RECOMP_FLAGS_IN(); 5701 edi = MEM32(edi); /* 0x4000CFC9: mov edi, dword ptr [edi] */ 5702 PUSH32(esp, ebx); /* 0x4000CFCB: push ebx */ 5703 RECOMP_ICALL(0x400146F2u); /* 0x4000CFCC: call 0x400146f2 */ /* not lifted */ 5704 RECOMP_FLAGS_IN(); 5705 eax = MEM32(esi + 0x8); /* 0x4000CFD1: mov eax, dword ptr [esi + 8] */ 5706 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5708 esp = esp + 4; /* 0x4000CFD4: add esp, 4 */ 5709 _flag_k = FK_ADD; 5710 /* cmp edi, eax */ /* 0x4000CFD7: cmp edi, eax */ 5711 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5713 _flag_k = FK_CMP; 5714 ebx = edi; /* 0x4000CFD9: mov ebx, edi */ 5715 RECOMP_BACKEDGE(); 5716 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CFBE; /* 0x4000CFDB: jne 0x4000cfbe */ 5717 L_4000CFDD: 5718 ecx = MEM32(esi + 0x4); /* 0x4000CFDD: mov ecx, dword ptr [esi + 4] */ 5719 edx = MEM32(esi + 0x8); /* 0x4000CFE0: mov edx, dword ptr [esi + 8] */ 5720 MEM32(ecx + 0x4) = edx; /* 0x4000CFE3: mov dword ptr [ecx + 4], edx */ 5721 eax = MEM32(esi + 0x4); /* 0x4000CFE6: mov eax, dword ptr [esi + 4] */ 5722 MEM32(esi + 0x10) = 0; /* 0x4000CFE9: mov dword ptr [esi + 0x10], 0 */ 5723 MEM32(eax) = eax; /* 0x4000CFF0: mov dword ptr [eax], eax */ 5724 eax = MEM32(esi + 0x4); /* 0x4000CFF2: mov eax, dword ptr [esi + 4] */ 5725 MEM32(eax + 0x8) = eax; /* 0x4000CFF5: mov dword ptr [eax + 8], eax */ 5726 eax = ebp + (-0x8); /* 0x4000CFF8: lea eax, [ebp - 8] */ 5727 PUSH32(esp, eax); /* 0x4000CFFB: push eax */ 5728 ecx = esi; /* 0x4000CFFC: mov ecx, esi */ 5729 RECOMP_ICALL(0x40001BA0u); /* 0x4000CFFE: call 0x40001ba0 */ /* not lifted */ 5730 RECOMP_FLAGS_IN(); 5731 goto L_4000D026; /* 0x4000D003: jmp 0x4000d026 */ 5732 L_4000D005: 5733 /* cmp eax, edi */ /* 0x4000D005: cmp eax, edi */ 5734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5736 _flag_k = FK_CMP; 5737 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D026; /* 0x4000D007: je 0x4000d026 */ 5738 L_4000D009: 5739 ecx = ebp + (-0x4); /* 0x4000D009: lea ecx, [ebp - 4] */ 5740 ebx = eax; /* 0x4000D00C: mov ebx, eax */ 5741 RECOMP_ICALL(0x40001C50u); /* 0x4000D00E: call 0x40001c50 */ /* not lifted */ 5742 RECOMP_FLAGS_IN(); 5743 PUSH32(esp, ebx); /* 0x4000D013: push ebx */ 5744 ecx = ebp + (-0x8); /* 0x4000D014: lea ecx, [ebp - 8] */ 5745 PUSH32(esp, ecx); /* 0x4000D017: push ecx */ 5746 ecx = esi; /* 0x4000D018: mov ecx, esi */ 5747 RECOMP_ICALL(0x4000DE30u); /* 0x4000D01A: call 0x4000de30 */ /* not lifted */ 5748 RECOMP_FLAGS_IN(); 5749 eax = MEM32(ebp + (-0x4)); /* 0x4000D01F: mov eax, dword ptr [ebp - 4] */ 5750 /* cmp eax, edi */ /* 0x4000D022: cmp eax, edi */ 5751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5753 _flag_k = FK_CMP; 5754 RECOMP_BACKEDGE(); 5755 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D009; /* 0x4000D024: jne 0x4000d009 */ 5756 L_4000D026: 5757 edx = MEM32(esi + 0x4); /* 0x4000D026: mov edx, dword ptr [esi + 4] */ 5758 PUSH32(esp, edx); /* 0x4000D029: push edx */ 5759 RECOMP_ICALL(0x400146F2u); /* 0x4000D02A: call 0x400146f2 */ /* not lifted */ 5760 RECOMP_FLAGS_IN(); 5761 eax = MEM32(esi + 0x8); /* 0x4000D02F: mov eax, dword ptr [esi + 8] */ 5762 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5763 edi = 0; /* 0x4000D032: xor edi, edi */ 5764 _cf = 0; 5765 _flag_k = FK_TEST; 5766 PUSH32(esp, eax); /* 0x4000D034: push eax */ 5767 MEM32(esi + 0x4) = edi; /* 0x4000D035: mov dword ptr [esi + 4], edi */ 5768 MEM32(esi + 0x10) = edi; /* 0x4000D038: mov dword ptr [esi + 0x10], edi */ 5769 RECOMP_ICALL(0x400146F2u); /* 0x4000D03B: call 0x400146f2 */ /* not lifted */ 5770 RECOMP_FLAGS_IN(); 5771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5773 esp = esp + 8; /* 0x4000D040: add esp, 8 */ 5774 _flag_k = FK_ADD; 5775 MEM32(esi + 0x8) = edi; /* 0x4000D043: mov dword ptr [esi + 8], edi */ 5776 edi = POP32_VAL(esp); /* 0x4000D046: pop edi */ 5777 esi = POP32_VAL(esp); /* 0x4000D047: pop esi */ 5778 ebx = POP32_VAL(esp); /* 0x4000D048: pop ebx */ 5779 esp = ebp; /* 0x4000D049: mov esp, ebp */ 5780 ebp = POP32_VAL(esp); /* 0x4000D04B: pop ebp */ 5781 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D04C: ret */ 5782 L_40014B4D: 5783 ecx = MEM32(ebp + (-0x14)); /* 0x40014B4D: mov ecx, dword ptr [ebp - 0x14] */ 5784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x19Cu); 5785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5786 ecx = ecx + 0x19Cu; /* 0x40014B50: add ecx, 0x19c */ 5787 _flag_k = FK_ADD; 5788 RECOMP_BACKEDGE(); 5789 goto L_4000CF90; /* 0x40014B56: jmp 0x4000cf90 */ 5790 { RECOMP_REGS_OUT(); return; } /* end of function */ 5791 RECOMP_REGS_OUT(); 5792 } 5793 5794 void sub_40014B5B(void) { 5795 int _fpu_cmp = 0; 5796 uint32_t _cf = 0; 5797 int _df = 1; 5798 uint32_t _flag_k = FK_NONE; 5799 uint32_t _flag_a = 0, _flag_b = 0; 5800 uint32_t _itail_tgt = 0; 5801 RECOMP_REGS_LOCALS 5802 RECOMP_ENTER(0x40014B5Bu); 5803 5804 goto L_40014B5B; 5805 L_4000CF90: 5806 PUSH32(esp, ebp); /* 0x4000CF90: push ebp */ 5807 ebp = esp; /* 0x4000CF91: mov ebp, esp */ 5808 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5810 esp = esp - 8; /* 0x4000CF93: sub esp, 8 */ 5811 _flag_k = FK_CMP; 5812 PUSH32(esp, ebx); /* 0x4000CF96: push ebx */ 5813 PUSH32(esp, esi); /* 0x4000CF97: push esi */ 5814 esi = ecx; /* 0x4000CF98: mov esi, ecx */ 5815 ecx = MEM32(esi + 0x10); /* 0x4000CF9A: mov ecx, dword ptr [esi + 0x10] */ 5816 /* test ecx, ecx */ /* 0x4000CF9D: test ecx, ecx */ 5817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5818 _cf = 0; 5819 _flag_k = FK_TEST; 5820 PUSH32(esp, edi); /* 0x4000CF9F: push edi */ 5821 edi = MEM32(esi + 0x4); /* 0x4000CFA0: mov edi, dword ptr [esi + 4] */ 5822 eax = MEM32(edi); /* 0x4000CFA3: mov eax, dword ptr [edi] */ 5823 MEM32(ebp + (-0x4)) = eax; /* 0x4000CFA5: mov dword ptr [ebp - 4], eax */ 5824 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFA8: je 0x4000d005 */ 5825 L_4000CFAA: 5826 ecx = eax; /* 0x4000CFAA: mov ecx, eax */ 5827 /* cmp eax, ecx */ /* 0x4000CFAC: cmp eax, ecx */ 5828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5830 _flag_k = FK_CMP; 5831 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFAE: jne 0x4000d005 */ 5832 L_4000CFB0: 5833 /* cmp edi, edi */ /* 0x4000CFB0: cmp edi, edi */ 5834 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5836 _flag_k = FK_CMP; 5837 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D005; /* 0x4000CFB2: jne 0x4000d005 */ 5838 L_4000CFB4: 5839 ebx = MEM32(edi + 0x4); /* 0x4000CFB4: mov ebx, dword ptr [edi + 4] */ 5840 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000CFB7: cmp ebx, dword ptr [esi + 8] */ 5841 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5843 _flag_k = FK_CMP; 5844 edi = ebx; /* 0x4000CFBA: mov edi, ebx */ 5845 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000CFDD; /* 0x4000CFBC: je 0x4000cfdd */ 5846 L_4000CFBE: 5847 eax = MEM32(edi + 0x8); /* 0x4000CFBE: mov eax, dword ptr [edi + 8] */ 5848 PUSH32(esp, eax); /* 0x4000CFC1: push eax */ 5849 ecx = esi; /* 0x4000CFC2: mov ecx, esi */ 5850 RECOMP_ICALL(0x40009F20u); /* 0x4000CFC4: call 0x40009f20 */ /* not lifted */ 5851 RECOMP_FLAGS_IN(); 5852 edi = MEM32(edi); /* 0x4000CFC9: mov edi, dword ptr [edi] */ 5853 PUSH32(esp, ebx); /* 0x4000CFCB: push ebx */ 5854 RECOMP_ICALL(0x400146F2u); /* 0x4000CFCC: call 0x400146f2 */ /* not lifted */ 5855 RECOMP_FLAGS_IN(); 5856 eax = MEM32(esi + 0x8); /* 0x4000CFD1: mov eax, dword ptr [esi + 8] */ 5857 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5858 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5859 esp = esp + 4; /* 0x4000CFD4: add esp, 4 */ 5860 _flag_k = FK_ADD; 5861 /* cmp edi, eax */ /* 0x4000CFD7: cmp edi, eax */ 5862 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5863 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5864 _flag_k = FK_CMP; 5865 ebx = edi; /* 0x4000CFD9: mov ebx, edi */ 5866 RECOMP_BACKEDGE(); 5867 if (CMP_NE(_flag_a, _flag_b)) goto L_4000CFBE; /* 0x4000CFDB: jne 0x4000cfbe */ 5868 L_4000CFDD: 5869 ecx = MEM32(esi + 0x4); /* 0x4000CFDD: mov ecx, dword ptr [esi + 4] */ 5870 edx = MEM32(esi + 0x8); /* 0x4000CFE0: mov edx, dword ptr [esi + 8] */ 5871 MEM32(ecx + 0x4) = edx; /* 0x4000CFE3: mov dword ptr [ecx + 4], edx */ 5872 eax = MEM32(esi + 0x4); /* 0x4000CFE6: mov eax, dword ptr [esi + 4] */ 5873 MEM32(esi + 0x10) = 0; /* 0x4000CFE9: mov dword ptr [esi + 0x10], 0 */ 5874 MEM32(eax) = eax; /* 0x4000CFF0: mov dword ptr [eax], eax */ 5875 eax = MEM32(esi + 0x4); /* 0x4000CFF2: mov eax, dword ptr [esi + 4] */ 5876 MEM32(eax + 0x8) = eax; /* 0x4000CFF5: mov dword ptr [eax + 8], eax */ 5877 eax = ebp + (-0x8); /* 0x4000CFF8: lea eax, [ebp - 8] */ 5878 PUSH32(esp, eax); /* 0x4000CFFB: push eax */ 5879 ecx = esi; /* 0x4000CFFC: mov ecx, esi */ 5880 RECOMP_ICALL(0x40001BA0u); /* 0x4000CFFE: call 0x40001ba0 */ /* not lifted */ 5881 RECOMP_FLAGS_IN(); 5882 goto L_4000D026; /* 0x4000D003: jmp 0x4000d026 */ 5883 L_4000D005: 5884 /* cmp eax, edi */ /* 0x4000D005: cmp eax, edi */ 5885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5887 _flag_k = FK_CMP; 5888 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D026; /* 0x4000D007: je 0x4000d026 */ 5889 L_4000D009: 5890 ecx = ebp + (-0x4); /* 0x4000D009: lea ecx, [ebp - 4] */ 5891 ebx = eax; /* 0x4000D00C: mov ebx, eax */ 5892 RECOMP_ICALL(0x40001C50u); /* 0x4000D00E: call 0x40001c50 */ /* not lifted */ 5893 RECOMP_FLAGS_IN(); 5894 PUSH32(esp, ebx); /* 0x4000D013: push ebx */ 5895 ecx = ebp + (-0x8); /* 0x4000D014: lea ecx, [ebp - 8] */ 5896 PUSH32(esp, ecx); /* 0x4000D017: push ecx */ 5897 ecx = esi; /* 0x4000D018: mov ecx, esi */ 5898 RECOMP_ICALL(0x4000DE30u); /* 0x4000D01A: call 0x4000de30 */ /* not lifted */ 5899 RECOMP_FLAGS_IN(); 5900 eax = MEM32(ebp + (-0x4)); /* 0x4000D01F: mov eax, dword ptr [ebp - 4] */ 5901 /* cmp eax, edi */ /* 0x4000D022: cmp eax, edi */ 5902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5904 _flag_k = FK_CMP; 5905 RECOMP_BACKEDGE(); 5906 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D009; /* 0x4000D024: jne 0x4000d009 */ 5907 L_4000D026: 5908 edx = MEM32(esi + 0x4); /* 0x4000D026: mov edx, dword ptr [esi + 4] */ 5909 PUSH32(esp, edx); /* 0x4000D029: push edx */ 5910 RECOMP_ICALL(0x400146F2u); /* 0x4000D02A: call 0x400146f2 */ /* not lifted */ 5911 RECOMP_FLAGS_IN(); 5912 eax = MEM32(esi + 0x8); /* 0x4000D02F: mov eax, dword ptr [esi + 8] */ 5913 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5914 edi = 0; /* 0x4000D032: xor edi, edi */ 5915 _cf = 0; 5916 _flag_k = FK_TEST; 5917 PUSH32(esp, eax); /* 0x4000D034: push eax */ 5918 MEM32(esi + 0x4) = edi; /* 0x4000D035: mov dword ptr [esi + 4], edi */ 5919 MEM32(esi + 0x10) = edi; /* 0x4000D038: mov dword ptr [esi + 0x10], edi */ 5920 RECOMP_ICALL(0x400146F2u); /* 0x4000D03B: call 0x400146f2 */ /* not lifted */ 5921 RECOMP_FLAGS_IN(); 5922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5924 esp = esp + 8; /* 0x4000D040: add esp, 8 */ 5925 _flag_k = FK_ADD; 5926 MEM32(esi + 0x8) = edi; /* 0x4000D043: mov dword ptr [esi + 8], edi */ 5927 edi = POP32_VAL(esp); /* 0x4000D046: pop edi */ 5928 esi = POP32_VAL(esp); /* 0x4000D047: pop esi */ 5929 ebx = POP32_VAL(esp); /* 0x4000D048: pop ebx */ 5930 esp = ebp; /* 0x4000D049: mov esp, ebp */ 5931 ebp = POP32_VAL(esp); /* 0x4000D04B: pop ebp */ 5932 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D04C: ret */ 5933 L_40014B5B: 5934 ecx = MEM32(ebp + (-0x14)); /* 0x40014B5B: mov ecx, dword ptr [ebp - 0x14] */ 5935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1B0u); 5936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5937 ecx = ecx + 0x1B0u; /* 0x40014B5E: add ecx, 0x1b0 */ 5938 _flag_k = FK_ADD; 5939 RECOMP_BACKEDGE(); 5940 goto L_4000CF90; /* 0x40014B64: jmp 0x4000cf90 */ 5941 { RECOMP_REGS_OUT(); return; } /* end of function */ 5942 RECOMP_REGS_OUT(); 5943 } 5944 5945 void sub_40014B69(void) { 5946 int _fpu_cmp = 0; 5947 uint32_t _cf = 0; 5948 int _df = 1; 5949 uint32_t _flag_k = FK_NONE; 5950 uint32_t _flag_a = 0, _flag_b = 0; 5951 uint32_t _itail_tgt = 0; 5952 RECOMP_REGS_LOCALS 5953 RECOMP_ENTER(0x40014B69u); 5954 5955 goto L_40014B69; 5956 L_4000D420: 5957 PUSH32(esp, ebp); /* 0x4000D420: push ebp */ 5958 ebp = esp; /* 0x4000D421: mov ebp, esp */ 5959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5961 esp = esp - 8; /* 0x4000D423: sub esp, 8 */ 5962 _flag_k = FK_CMP; 5963 PUSH32(esp, ebx); /* 0x4000D426: push ebx */ 5964 PUSH32(esp, esi); /* 0x4000D427: push esi */ 5965 esi = ecx; /* 0x4000D428: mov esi, ecx */ 5966 ecx = MEM32(esi + 0x10); /* 0x4000D42A: mov ecx, dword ptr [esi + 0x10] */ 5967 /* test ecx, ecx */ /* 0x4000D42D: test ecx, ecx */ 5968 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5969 _cf = 0; 5970 _flag_k = FK_TEST; 5971 PUSH32(esp, edi); /* 0x4000D42F: push edi */ 5972 edi = MEM32(esi + 0x4); /* 0x4000D430: mov edi, dword ptr [esi + 4] */ 5973 eax = MEM32(edi); /* 0x4000D433: mov eax, dword ptr [edi] */ 5974 MEM32(ebp + (-0x4)) = eax; /* 0x4000D435: mov dword ptr [ebp - 4], eax */ 5975 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D49F; /* 0x4000D438: je 0x4000d49f */ 5976 L_4000D43A: 5977 ecx = eax; /* 0x4000D43A: mov ecx, eax */ 5978 /* cmp eax, ecx */ /* 0x4000D43C: cmp eax, ecx */ 5979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5981 _flag_k = FK_CMP; 5982 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D49F; /* 0x4000D43E: jne 0x4000d49f */ 5983 L_4000D440: 5984 /* cmp edi, edi */ /* 0x4000D440: cmp edi, edi */ 5985 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5987 _flag_k = FK_CMP; 5988 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D49F; /* 0x4000D442: jne 0x4000d49f */ 5989 L_4000D444: 5990 ebx = MEM32(edi + 0x4); /* 0x4000D444: mov ebx, dword ptr [edi + 4] */ 5991 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000D447: cmp ebx, dword ptr [esi + 8] */ 5992 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5994 _flag_k = FK_CMP; 5995 edi = ebx; /* 0x4000D44A: mov edi, ebx */ 5996 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D477; /* 0x4000D44C: je 0x4000d477 */ 5997 L_4000D44E: 5998 eax = MEM32(edi + 0x8); /* 0x4000D44E: mov eax, dword ptr [edi + 8] */ 5999 PUSH32(esp, eax); /* 0x4000D451: push eax */ 6000 ecx = esi; /* 0x4000D452: mov ecx, esi */ 6001 RECOMP_ICALL(0x4000B8E0u); /* 0x4000D454: call 0x4000b8e0 */ /* not lifted */ 6002 RECOMP_FLAGS_IN(); 6003 edi = MEM32(edi); /* 0x4000D459: mov edi, dword ptr [edi] */ 6004 PUSH32(esp, 0); /* 0x4000D45B: push 0 */ 6005 ecx = ebx + 0xC; /* 0x4000D45D: lea ecx, [ebx + 0xc] */ 6006 RECOMP_ICALL(0x4000FED0u); /* 0x4000D460: call 0x4000fed0 */ /* not lifted */ 6007 RECOMP_FLAGS_IN(); 6008 PUSH32(esp, ebx); /* 0x4000D465: push ebx */ 6009 RECOMP_ICALL(0x400146F2u); /* 0x4000D466: call 0x400146f2 */ /* not lifted */ 6010 RECOMP_FLAGS_IN(); 6011 eax = MEM32(esi + 0x8); /* 0x4000D46B: mov eax, dword ptr [esi + 8] */ 6012 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6013 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6014 esp = esp + 4; /* 0x4000D46E: add esp, 4 */ 6015 _flag_k = FK_ADD; 6016 /* cmp edi, eax */ /* 0x4000D471: cmp edi, eax */ 6017 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6019 _flag_k = FK_CMP; 6020 ebx = edi; /* 0x4000D473: mov ebx, edi */ 6021 RECOMP_BACKEDGE(); 6022 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D44E; /* 0x4000D475: jne 0x4000d44e */ 6023 L_4000D477: 6024 ecx = MEM32(esi + 0x4); /* 0x4000D477: mov ecx, dword ptr [esi + 4] */ 6025 edx = MEM32(esi + 0x8); /* 0x4000D47A: mov edx, dword ptr [esi + 8] */ 6026 MEM32(ecx + 0x4) = edx; /* 0x4000D47D: mov dword ptr [ecx + 4], edx */ 6027 eax = MEM32(esi + 0x4); /* 0x4000D480: mov eax, dword ptr [esi + 4] */ 6028 MEM32(esi + 0x10) = 0; /* 0x4000D483: mov dword ptr [esi + 0x10], 0 */ 6029 MEM32(eax) = eax; /* 0x4000D48A: mov dword ptr [eax], eax */ 6030 eax = MEM32(esi + 0x4); /* 0x4000D48C: mov eax, dword ptr [esi + 4] */ 6031 MEM32(eax + 0x8) = eax; /* 0x4000D48F: mov dword ptr [eax + 8], eax */ 6032 eax = ebp + (-0x8); /* 0x4000D492: lea eax, [ebp - 8] */ 6033 PUSH32(esp, eax); /* 0x4000D495: push eax */ 6034 ecx = esi; /* 0x4000D496: mov ecx, esi */ 6035 RECOMP_ICALL(0x40001BA0u); /* 0x4000D498: call 0x40001ba0 */ /* not lifted */ 6036 RECOMP_FLAGS_IN(); 6037 goto L_4000D4C0; /* 0x4000D49D: jmp 0x4000d4c0 */ 6038 L_4000D49F: 6039 /* cmp eax, edi */ /* 0x4000D49F: cmp eax, edi */ 6040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6042 _flag_k = FK_CMP; 6043 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D4C0; /* 0x4000D4A1: je 0x4000d4c0 */ 6044 L_4000D4A3: 6045 ecx = ebp + (-0x4); /* 0x4000D4A3: lea ecx, [ebp - 4] */ 6046 ebx = eax; /* 0x4000D4A6: mov ebx, eax */ 6047 RECOMP_ICALL(0x4000F0F0u); /* 0x4000D4A8: call 0x4000f0f0 */ /* not lifted */ 6048 RECOMP_FLAGS_IN(); 6049 PUSH32(esp, ebx); /* 0x4000D4AD: push ebx */ 6050 ecx = ebp + (-0x8); /* 0x4000D4AE: lea ecx, [ebp - 8] */ 6051 PUSH32(esp, ecx); /* 0x4000D4B1: push ecx */ 6052 ecx = esi; /* 0x4000D4B2: mov ecx, esi */ 6053 RECOMP_ICALL(0x4000A2B0u); /* 0x4000D4B4: call 0x4000a2b0 */ /* not lifted */ 6054 RECOMP_FLAGS_IN(); 6055 eax = MEM32(ebp + (-0x4)); /* 0x4000D4B9: mov eax, dword ptr [ebp - 4] */ 6056 /* cmp eax, edi */ /* 0x4000D4BC: cmp eax, edi */ 6057 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6059 _flag_k = FK_CMP; 6060 RECOMP_BACKEDGE(); 6061 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D4A3; /* 0x4000D4BE: jne 0x4000d4a3 */ 6062 L_4000D4C0: 6063 edx = MEM32(esi + 0x4); /* 0x4000D4C0: mov edx, dword ptr [esi + 4] */ 6064 PUSH32(esp, edx); /* 0x4000D4C3: push edx */ 6065 RECOMP_ICALL(0x400146F2u); /* 0x4000D4C4: call 0x400146f2 */ /* not lifted */ 6066 RECOMP_FLAGS_IN(); 6067 eax = MEM32(esi + 0x8); /* 0x4000D4C9: mov eax, dword ptr [esi + 8] */ 6068 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6069 edi = 0; /* 0x4000D4CC: xor edi, edi */ 6070 _cf = 0; 6071 _flag_k = FK_TEST; 6072 PUSH32(esp, eax); /* 0x4000D4CE: push eax */ 6073 MEM32(esi + 0x4) = edi; /* 0x4000D4CF: mov dword ptr [esi + 4], edi */ 6074 MEM32(esi + 0x10) = edi; /* 0x4000D4D2: mov dword ptr [esi + 0x10], edi */ 6075 RECOMP_ICALL(0x400146F2u); /* 0x4000D4D5: call 0x400146f2 */ /* not lifted */ 6076 RECOMP_FLAGS_IN(); 6077 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6079 esp = esp + 8; /* 0x4000D4DA: add esp, 8 */ 6080 _flag_k = FK_ADD; 6081 MEM32(esi + 0x8) = edi; /* 0x4000D4DD: mov dword ptr [esi + 8], edi */ 6082 edi = POP32_VAL(esp); /* 0x4000D4E0: pop edi */ 6083 esi = POP32_VAL(esp); /* 0x4000D4E1: pop esi */ 6084 ebx = POP32_VAL(esp); /* 0x4000D4E2: pop ebx */ 6085 esp = ebp; /* 0x4000D4E3: mov esp, ebp */ 6086 ebp = POP32_VAL(esp); /* 0x4000D4E5: pop ebp */ 6087 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D4E6: ret */ 6088 L_40014B69: 6089 ecx = MEM32(ebp + (-0x14)); /* 0x40014B69: mov ecx, dword ptr [ebp - 0x14] */ 6090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1C4u); 6091 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6092 ecx = ecx + 0x1C4u; /* 0x40014B6C: add ecx, 0x1c4 */ 6093 _flag_k = FK_ADD; 6094 RECOMP_BACKEDGE(); 6095 goto L_4000D420; /* 0x40014B72: jmp 0x4000d420 */ 6096 { RECOMP_REGS_OUT(); return; } /* end of function */ 6097 RECOMP_REGS_OUT(); 6098 } 6099 6100 void sub_40014B77(void) { 6101 int _fpu_cmp = 0; 6102 uint32_t _cf = 0; 6103 int _df = 1; 6104 uint32_t _flag_k = FK_NONE; 6105 uint32_t _flag_a = 0, _flag_b = 0; 6106 uint32_t _itail_tgt = 0; 6107 RECOMP_REGS_LOCALS 6108 RECOMP_ENTER(0x40014B77u); 6109 6110 goto L_40014B77; 6111 L_4000D4F0: 6112 PUSH32(esp, ebp); /* 0x4000D4F0: push ebp */ 6113 ebp = esp; /* 0x4000D4F1: mov ebp, esp */ 6114 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6116 esp = esp - 8; /* 0x4000D4F3: sub esp, 8 */ 6117 _flag_k = FK_CMP; 6118 PUSH32(esp, ebx); /* 0x4000D4F6: push ebx */ 6119 PUSH32(esp, esi); /* 0x4000D4F7: push esi */ 6120 esi = ecx; /* 0x4000D4F8: mov esi, ecx */ 6121 ecx = MEM32(esi + 0x10); /* 0x4000D4FA: mov ecx, dword ptr [esi + 0x10] */ 6122 /* test ecx, ecx */ /* 0x4000D4FD: test ecx, ecx */ 6123 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6124 _cf = 0; 6125 _flag_k = FK_TEST; 6126 PUSH32(esp, edi); /* 0x4000D4FF: push edi */ 6127 edi = MEM32(esi + 0x4); /* 0x4000D500: mov edi, dword ptr [esi + 4] */ 6128 eax = MEM32(edi); /* 0x4000D503: mov eax, dword ptr [edi] */ 6129 MEM32(ebp + (-0x4)) = eax; /* 0x4000D505: mov dword ptr [ebp - 4], eax */ 6130 if (TEST_Z(_flag_a, _flag_b)) goto L_4000D56F; /* 0x4000D508: je 0x4000d56f */ 6131 L_4000D50A: 6132 ecx = eax; /* 0x4000D50A: mov ecx, eax */ 6133 /* cmp eax, ecx */ /* 0x4000D50C: cmp eax, ecx */ 6134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6136 _flag_k = FK_CMP; 6137 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D56F; /* 0x4000D50E: jne 0x4000d56f */ 6138 L_4000D510: 6139 /* cmp edi, edi */ /* 0x4000D510: cmp edi, edi */ 6140 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6142 _flag_k = FK_CMP; 6143 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D56F; /* 0x4000D512: jne 0x4000d56f */ 6144 L_4000D514: 6145 ebx = MEM32(edi + 0x4); /* 0x4000D514: mov ebx, dword ptr [edi + 4] */ 6146 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x4000D517: cmp ebx, dword ptr [esi + 8] */ 6147 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6149 _flag_k = FK_CMP; 6150 edi = ebx; /* 0x4000D51A: mov edi, ebx */ 6151 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D547; /* 0x4000D51C: je 0x4000d547 */ 6152 L_4000D51E: 6153 eax = MEM32(edi + 0x8); /* 0x4000D51E: mov eax, dword ptr [edi + 8] */ 6154 PUSH32(esp, eax); /* 0x4000D521: push eax */ 6155 ecx = esi; /* 0x4000D522: mov ecx, esi */ 6156 RECOMP_ICALL(0x4000D8E0u); /* 0x4000D524: call 0x4000d8e0 */ /* not lifted */ 6157 RECOMP_FLAGS_IN(); 6158 edi = MEM32(edi); /* 0x4000D529: mov edi, dword ptr [edi] */ 6159 PUSH32(esp, 0); /* 0x4000D52B: push 0 */ 6160 ecx = ebx + 0xC; /* 0x4000D52D: lea ecx, [ebx + 0xc] */ 6161 RECOMP_ICALL(0x4000FF00u); /* 0x4000D530: call 0x4000ff00 */ /* not lifted */ 6162 RECOMP_FLAGS_IN(); 6163 PUSH32(esp, ebx); /* 0x4000D535: push ebx */ 6164 RECOMP_ICALL(0x400146F2u); /* 0x4000D536: call 0x400146f2 */ /* not lifted */ 6165 RECOMP_FLAGS_IN(); 6166 eax = MEM32(esi + 0x8); /* 0x4000D53B: mov eax, dword ptr [esi + 8] */ 6167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6169 esp = esp + 4; /* 0x4000D53E: add esp, 4 */ 6170 _flag_k = FK_ADD; 6171 /* cmp edi, eax */ /* 0x4000D541: cmp edi, eax */ 6172 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6174 _flag_k = FK_CMP; 6175 ebx = edi; /* 0x4000D543: mov ebx, edi */ 6176 RECOMP_BACKEDGE(); 6177 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D51E; /* 0x4000D545: jne 0x4000d51e */ 6178 L_4000D547: 6179 ecx = MEM32(esi + 0x4); /* 0x4000D547: mov ecx, dword ptr [esi + 4] */ 6180 edx = MEM32(esi + 0x8); /* 0x4000D54A: mov edx, dword ptr [esi + 8] */ 6181 MEM32(ecx + 0x4) = edx; /* 0x4000D54D: mov dword ptr [ecx + 4], edx */ 6182 eax = MEM32(esi + 0x4); /* 0x4000D550: mov eax, dword ptr [esi + 4] */ 6183 MEM32(esi + 0x10) = 0; /* 0x4000D553: mov dword ptr [esi + 0x10], 0 */ 6184 MEM32(eax) = eax; /* 0x4000D55A: mov dword ptr [eax], eax */ 6185 eax = MEM32(esi + 0x4); /* 0x4000D55C: mov eax, dword ptr [esi + 4] */ 6186 MEM32(eax + 0x8) = eax; /* 0x4000D55F: mov dword ptr [eax + 8], eax */ 6187 eax = ebp + (-0x8); /* 0x4000D562: lea eax, [ebp - 8] */ 6188 PUSH32(esp, eax); /* 0x4000D565: push eax */ 6189 ecx = esi; /* 0x4000D566: mov ecx, esi */ 6190 RECOMP_ICALL(0x40001BA0u); /* 0x4000D568: call 0x40001ba0 */ /* not lifted */ 6191 RECOMP_FLAGS_IN(); 6192 goto L_4000D590; /* 0x4000D56D: jmp 0x4000d590 */ 6193 L_4000D56F: 6194 /* cmp eax, edi */ /* 0x4000D56F: cmp eax, edi */ 6195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6197 _flag_k = FK_CMP; 6198 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000D590; /* 0x4000D571: je 0x4000d590 */ 6199 L_4000D573: 6200 ecx = ebp + (-0x4); /* 0x4000D573: lea ecx, [ebp - 4] */ 6201 ebx = eax; /* 0x4000D576: mov ebx, eax */ 6202 RECOMP_ICALL(0x40001C50u); /* 0x4000D578: call 0x40001c50 */ /* not lifted */ 6203 RECOMP_FLAGS_IN(); 6204 PUSH32(esp, ebx); /* 0x4000D57D: push ebx */ 6205 ecx = ebp + (-0x8); /* 0x4000D57E: lea ecx, [ebp - 8] */ 6206 PUSH32(esp, ecx); /* 0x4000D581: push ecx */ 6207 ecx = esi; /* 0x4000D582: mov ecx, esi */ 6208 RECOMP_ICALL(0x4000D050u); /* 0x4000D584: call 0x4000d050 */ /* not lifted */ 6209 RECOMP_FLAGS_IN(); 6210 eax = MEM32(ebp + (-0x4)); /* 0x4000D589: mov eax, dword ptr [ebp - 4] */ 6211 /* cmp eax, edi */ /* 0x4000D58C: cmp eax, edi */ 6212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6214 _flag_k = FK_CMP; 6215 RECOMP_BACKEDGE(); 6216 if (CMP_NE(_flag_a, _flag_b)) goto L_4000D573; /* 0x4000D58E: jne 0x4000d573 */ 6217 L_4000D590: 6218 edx = MEM32(esi + 0x4); /* 0x4000D590: mov edx, dword ptr [esi + 4] */ 6219 PUSH32(esp, edx); /* 0x4000D593: push edx */ 6220 RECOMP_ICALL(0x400146F2u); /* 0x4000D594: call 0x400146f2 */ /* not lifted */ 6221 RECOMP_FLAGS_IN(); 6222 eax = MEM32(esi + 0x8); /* 0x4000D599: mov eax, dword ptr [esi + 8] */ 6223 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6224 edi = 0; /* 0x4000D59C: xor edi, edi */ 6225 _cf = 0; 6226 _flag_k = FK_TEST; 6227 PUSH32(esp, eax); /* 0x4000D59E: push eax */ 6228 MEM32(esi + 0x4) = edi; /* 0x4000D59F: mov dword ptr [esi + 4], edi */ 6229 MEM32(esi + 0x10) = edi; /* 0x4000D5A2: mov dword ptr [esi + 0x10], edi */ 6230 RECOMP_ICALL(0x400146F2u); /* 0x4000D5A5: call 0x400146f2 */ /* not lifted */ 6231 RECOMP_FLAGS_IN(); 6232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6234 esp = esp + 8; /* 0x4000D5AA: add esp, 8 */ 6235 _flag_k = FK_ADD; 6236 MEM32(esi + 0x8) = edi; /* 0x4000D5AD: mov dword ptr [esi + 8], edi */ 6237 edi = POP32_VAL(esp); /* 0x4000D5B0: pop edi */ 6238 esi = POP32_VAL(esp); /* 0x4000D5B1: pop esi */ 6239 ebx = POP32_VAL(esp); /* 0x4000D5B2: pop ebx */ 6240 esp = ebp; /* 0x4000D5B3: mov esp, ebp */ 6241 ebp = POP32_VAL(esp); /* 0x4000D5B5: pop ebp */ 6242 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4000D5B6: ret */ 6243 L_40014B77: 6244 ecx = MEM32(ebp + (-0x14)); /* 0x40014B77: mov ecx, dword ptr [ebp - 0x14] */ 6245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1D8u); 6246 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6247 ecx = ecx + 0x1D8u; /* 0x40014B7A: add ecx, 0x1d8 */ 6248 _flag_k = FK_ADD; 6249 RECOMP_BACKEDGE(); 6250 goto L_4000D4F0; /* 0x40014B80: jmp 0x4000d4f0 */ 6251 { RECOMP_REGS_OUT(); return; } /* end of function */ 6252 RECOMP_REGS_OUT(); 6253 } 6254 6255 void sub_40014B85(void) { 6256 int _fpu_cmp = 0; 6257 uint32_t _cf = 0; 6258 int _df = 1; 6259 uint32_t _flag_k = FK_NONE; 6260 uint32_t _flag_a = 0, _flag_b = 0; 6261 uint32_t _itail_tgt = 0; 6262 RECOMP_REGS_LOCALS 6263 RECOMP_ENTER(0x40014B85u); 6264 6265 goto L_40014B85; 6266 L_40012450: 6267 PUSH32(esp, ebp); /* 0x40012450: push ebp */ 6268 ebp = esp; /* 0x40012451: mov ebp, esp */ 6269 PUSH32(esp, ecx); /* 0x40012453: push ecx */ 6270 PUSH32(esp, esi); /* 0x40012454: push esi */ 6271 esi = ecx; /* 0x40012455: mov esi, ecx */ 6272 eax = MEM32(esi + 0x4); /* 0x40012457: mov eax, dword ptr [esi + 4] */ 6273 PUSH32(esp, eax); /* 0x4001245A: push eax */ 6274 MEM32(ebp + (-0x4)) = eax; /* 0x4001245B: mov dword ptr [ebp - 4], eax */ 6275 RECOMP_ICALL(0x400146F2u); /* 0x4001245E: call 0x400146f2 */ /* not lifted */ 6276 RECOMP_FLAGS_IN(); 6277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6279 esp = esp + 4; /* 0x40012463: add esp, 4 */ 6280 _flag_k = FK_ADD; 6281 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6282 eax = 0; /* 0x40012466: xor eax, eax */ 6283 _cf = 0; 6284 _flag_k = FK_TEST; 6285 MEM32(esi + 0x4) = eax; /* 0x40012468: mov dword ptr [esi + 4], eax */ 6286 MEM32(esi + 0x8) = eax; /* 0x4001246B: mov dword ptr [esi + 8], eax */ 6287 MEM32(esi + 0xC) = eax; /* 0x4001246E: mov dword ptr [esi + 0xc], eax */ 6288 esi = POP32_VAL(esp); /* 0x40012471: pop esi */ 6289 esp = ebp; /* 0x40012472: mov esp, ebp */ 6290 ebp = POP32_VAL(esp); /* 0x40012474: pop ebp */ 6291 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40012475: ret */ 6292 L_40014B85: 6293 ecx = MEM32(ebp + (-0x14)); /* 0x40014B85: mov ecx, dword ptr [ebp - 0x14] */ 6294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1ECu); 6295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6296 ecx = ecx + 0x1ECu; /* 0x40014B88: add ecx, 0x1ec */ 6297 _flag_k = FK_ADD; 6298 RECOMP_BACKEDGE(); 6299 goto L_40012450; /* 0x40014B8E: jmp 0x40012450 */ 6300 { RECOMP_REGS_OUT(); return; } /* end of function */ 6301 RECOMP_REGS_OUT(); 6302 } 6303 6304 void sub_40014B93(void) { 6305 int _fpu_cmp = 0; 6306 uint32_t _cf = 0; 6307 int _df = 1; 6308 uint32_t _flag_k = FK_NONE; 6309 uint32_t _flag_a = 0, _flag_b = 0; 6310 uint32_t _itail_tgt = 0; 6311 RECOMP_REGS_LOCALS 6312 RECOMP_ENTER(0x40014B93u); 6313 6314 goto L_40014B93; 6315 L_40007220: 6316 PUSH32(esp, ebp); /* 0x40007220: push ebp */ 6317 ebp = esp; /* 0x40007221: mov ebp, esp */ 6318 PUSH32(esp, ecx); /* 0x40007223: push ecx */ 6319 PUSH32(esp, ebx); /* 0x40007224: push ebx */ 6320 PUSH32(esp, esi); /* 0x40007225: push esi */ 6321 PUSH32(esp, edi); /* 0x40007226: push edi */ 6322 edi = ecx; /* 0x40007227: mov edi, ecx */ 6323 edx = MEM32(edi + 0x8); /* 0x40007229: mov edx, dword ptr [edi + 8] */ 6324 esi = MEM32(edi + 0x4); /* 0x4000722C: mov esi, dword ptr [edi + 4] */ 6325 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6326 ebx = 0; /* 0x4000722F: xor ebx, ebx */ 6327 _cf = 0; 6328 _flag_k = FK_TEST; 6329 /* cmp esi, edx */ /* 0x40007231: cmp esi, edx */ 6330 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6332 _flag_k = FK_CMP; 6333 MEM32(ebp + (-0x4)) = edx; /* 0x40007233: mov dword ptr [ebp - 4], edx */ 6334 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000726E; /* 0x40007236: je 0x4000726e */ 6335 L_40007238: 6336 eax = MEM32(esi + 0x4); /* 0x40007238: mov eax, dword ptr [esi + 4] */ 6337 /* cmp eax, ebx */ /* 0x4000723B: cmp eax, ebx */ 6338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6340 _flag_k = FK_CMP; 6341 if (CMP_EQ(_flag_a, _flag_b)) goto L_4000725E; /* 0x4000723D: je 0x4000725e */ 6342 L_4000723F: 6343 ecx = eax + (-0x1); /* 0x4000723F: lea ecx, [eax - 1] */ 6344 SET_LO8(eax, MEM8(ecx)); /* 0x40007242: mov al, byte ptr [ecx] */ 6345 /* cmp LO8(eax), LO8(ebx) */ /* 0x40007244: cmp al, bl */ 6346 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6348 _flag_k = FK_NARROW(FK_CMP, 24); 6349 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007252; /* 0x40007246: je 0x40007252 */ 6350 L_40007248: 6351 /* cmp LO8(eax), 0xFFu */ /* 0x40007248: cmp al, 0xff */ 6352 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 6353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6354 _flag_k = FK_NARROW(FK_CMP, 24); 6355 if (CMP_EQ(_flag_a, _flag_b)) goto L_40007252; /* 0x4000724A: je 0x40007252 */ 6356 L_4000724C: 6357 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6358 SET_LO8(eax, LO8(eax) - 1); /* 0x4000724C: dec al */ 6359 _flag_k = FK_NARROW(FK_DEC, 24); 6360 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x4000724E: mov byte ptr [ecx], al */ 6361 goto L_4000725E; /* 0x40007250: jmp 0x4000725e */ 6362 L_40007252: 6363 PUSH32(esp, ecx); /* 0x40007252: push ecx */ 6364 RECOMP_ICALL(0x400146F2u); /* 0x40007253: call 0x400146f2 */ /* not lifted */ 6365 RECOMP_FLAGS_IN(); 6366 edx = MEM32(ebp + (-0x4)); /* 0x40007258: mov edx, dword ptr [ebp - 4] */ 6367 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6369 esp = esp + 4; /* 0x4000725B: add esp, 4 */ 6370 _flag_k = FK_ADD; 6371 L_4000725E: 6372 MEM32(esi + 0x4) = ebx; /* 0x4000725E: mov dword ptr [esi + 4], ebx */ 6373 MEM32(esi + 0x8) = ebx; /* 0x40007261: mov dword ptr [esi + 8], ebx */ 6374 MEM32(esi + 0xC) = ebx; /* 0x40007264: mov dword ptr [esi + 0xc], ebx */ 6375 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6377 esi = esi + 0x10u; /* 0x40007267: add esi, 0x10 */ 6378 _flag_k = FK_ADD; 6379 /* cmp esi, edx */ /* 0x4000726A: cmp esi, edx */ 6380 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6382 _flag_k = FK_CMP; 6383 RECOMP_BACKEDGE(); 6384 if (CMP_NE(_flag_a, _flag_b)) goto L_40007238; /* 0x4000726C: jne 0x40007238 */ 6385 L_4000726E: 6386 eax = MEM32(edi + 0x4); /* 0x4000726E: mov eax, dword ptr [edi + 4] */ 6387 PUSH32(esp, eax); /* 0x40007271: push eax */ 6388 RECOMP_ICALL(0x400146F2u); /* 0x40007272: call 0x400146f2 */ /* not lifted */ 6389 RECOMP_FLAGS_IN(); 6390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6392 esp = esp + 4; /* 0x40007277: add esp, 4 */ 6393 _flag_k = FK_ADD; 6394 MEM32(edi + 0x4) = ebx; /* 0x4000727A: mov dword ptr [edi + 4], ebx */ 6395 MEM32(edi + 0x8) = ebx; /* 0x4000727D: mov dword ptr [edi + 8], ebx */ 6396 MEM32(edi + 0xC) = ebx; /* 0x40007280: mov dword ptr [edi + 0xc], ebx */ 6397 edi = POP32_VAL(esp); /* 0x40007283: pop edi */ 6398 esi = POP32_VAL(esp); /* 0x40007284: pop esi */ 6399 ebx = POP32_VAL(esp); /* 0x40007285: pop ebx */ 6400 esp = ebp; /* 0x40007286: mov esp, ebp */ 6401 ebp = POP32_VAL(esp); /* 0x40007288: pop ebp */ 6402 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x40007289: ret */ 6403 L_40014B93: 6404 ecx = MEM32(ebp + (-0x14)); /* 0x40014B93: mov ecx, dword ptr [ebp - 0x14] */ 6405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x204u); 6406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6407 ecx = ecx + 0x204u; /* 0x40014B96: add ecx, 0x204 */ 6408 _flag_k = FK_ADD; 6409 RECOMP_BACKEDGE(); 6410 goto L_40007220; /* 0x40014B9C: jmp 0x40007220 */ 6411 { RECOMP_REGS_OUT(); return; } /* end of function */ 6412 RECOMP_REGS_OUT(); 6413 } 6414 6415 void sub_40014BA1(void) { 6416 int _fpu_cmp = 0; 6417 uint32_t _cf = 0; 6418 int _df = 1; 6419 uint32_t _flag_k = FK_NONE; 6420 uint32_t _flag_a = 0, _flag_b = 0; 6421 uint32_t _itail_tgt = 0; 6422 RECOMP_REGS_LOCALS 6423 RECOMP_ENTER(0x40014BA1u); 6424 6425 goto L_40014BA1; 6426 L_4001470A: 6427 { _itail_tgt = (uint32_t)(MEM32(0x400160E4)); goto _ljump; } 6428 L_40014BA1: 6429 eax = 0x40016BB8u; /* 0x40014BA1: mov eax, 0x40016bb8 */ 6430 L_40014BA6: 6431 RECOMP_BACKEDGE(); 6432 goto L_4001470A; /* 0x40014BA6: jmp 0x4001470a */ 6433 { RECOMP_REGS_OUT(); return; } /* end of function */ 6434 _ljump: 6435 switch (_itail_tgt) { 6436 case 0x4001470Au: goto L_4001470A; 6437 case 0x40014BA1u: goto L_40014BA1; 6438 case 0x40014BA6u: goto L_40014BA6; 6439 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6440 } 6441 RECOMP_REGS_OUT(); 6442 } 6443 6444 void sub_40014BB0(void) { 6445 int _fpu_cmp = 0; 6446 uint32_t _cf = 0; 6447 int _df = 1; 6448 uint32_t _flag_k = FK_NONE; 6449 uint32_t _flag_a = 0, _flag_b = 0; 6450 uint32_t _itail_tgt = 0; 6451 RECOMP_REGS_LOCALS 6452 RECOMP_ENTER(0x40014BB0u); 6453 6454 L_40014BB0: 6455 ecx = ebp + (-0x48); /* 0x40014BB0: lea ecx, [ebp - 0x48] */ 6456 L_40014BB3: 6457 { _itail_tgt = (uint32_t)(MEM32(0x40016210)); goto _ljump; } 6458 { RECOMP_REGS_OUT(); return; } /* end of function */ 6459 _ljump: 6460 switch (_itail_tgt) { 6461 case 0x40014BB0u: goto L_40014BB0; 6462 case 0x40014BB3u: goto L_40014BB3; 6463 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6464 } 6465 RECOMP_REGS_OUT(); 6466 }