client/game/kkr.dll/lifted-0080.c (756937B)
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_361109C0(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(0x361109C0u); 17 18 L_361109C0: 19 PUSH32(esp, ebp); /* 0x361109C0: push ebp */ 20 ebp = esp; /* 0x361109C1: mov ebp, esp */ 21 PUSH32(esp, 0xFFFFFFFFu); /* 0x361109C3: push -1 */ 22 PUSH32(esp, 0x3616AB43u); /* 0x361109C5: push 0x3616ab43 */ 23 eax = MEM32(FS_BASE + (0)); /* 0x361109CA: mov eax, dword ptr fs:[0] */ 24 PUSH32(esp, eax); /* 0x361109D0: push eax */ 25 MEM32(FS_BASE + (0)) = esp; /* 0x361109D1: mov dword ptr fs:[0], esp */ 26 PUSH32(esp, ecx); /* 0x361109D8: push ecx */ 27 eax = MEM32(ebp + 0x8); /* 0x361109D9: mov eax, dword ptr [ebp + 8] */ 28 PUSH32(esp, ebx); /* 0x361109DC: push ebx */ 29 PUSH32(esp, esi); /* 0x361109DD: push esi */ 30 PUSH32(esp, edi); /* 0x361109DE: push edi */ 31 esi = ecx; /* 0x361109DF: mov esi, ecx */ 32 PUSH32(esp, eax); /* 0x361109E1: push eax */ 33 MEM32(ebp + (-0x10)) = esi; /* 0x361109E2: mov dword ptr [ebp - 0x10], esi */ 34 RECOMP_ICALL(0x360FC270u); /* 0x361109E5: call 0x360fc270 */ /* not lifted */ 35 RECOMP_FLAGS_IN(); 36 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 37 ebx = 0; /* 0x361109EA: xor ebx, ebx */ 38 _cf = 0; 39 _flag_k = FK_TEST; 40 MEM32(esi + 0x20) = ebx; /* 0x361109EC: mov dword ptr [esi + 0x20], ebx */ 41 MEM32(esi + 0x24) = ebx; /* 0x361109EF: mov dword ptr [esi + 0x24], ebx */ 42 MEM32(esi + 0xA8) = ebx; /* 0x361109F2: mov dword ptr [esi + 0xa8], ebx */ 43 MEM32(esi + 0xB4) = ebx; /* 0x361109F8: mov dword ptr [esi + 0xb4], ebx */ 44 MEM32(esi + 0xB8) = ebx; /* 0x361109FE: mov dword ptr [esi + 0xb8], ebx */ 45 MEM32(esi + 0xBC) = ebx; /* 0x36110A04: mov dword ptr [esi + 0xbc], ebx */ 46 ecx = esi; /* 0x36110A0A: mov ecx, esi */ 47 MEM32(ebp + (-0x4)) = ebx; /* 0x36110A0C: mov dword ptr [ebp - 4], ebx */ 48 MEM32(esi) = 0x36176964u; /* 0x36110A0F: mov dword ptr [esi], 0x36176964 */ 49 RECOMP_ICALL(0x36112140u); /* 0x36110A15: call 0x36112140 */ /* not lifted */ 50 RECOMP_FLAGS_IN(); 51 ecx = MEM32(esi + 0x4); /* 0x36110A1A: mov ecx, dword ptr [esi + 4] */ 52 PUSH32(esp, ecx); /* 0x36110A1D: push ecx */ 53 RECOMP_ICALL(0x360F7B00u); /* 0x36110A1E: call 0x360f7b00 */ /* not lifted */ 54 RECOMP_FLAGS_IN(); 55 ecx = eax; /* 0x36110A23: mov ecx, eax */ 56 RECOMP_ICALL(0x360FBFF0u); /* 0x36110A25: call 0x360fbff0 */ /* not lifted */ 57 RECOMP_FLAGS_IN(); 58 ecx = eax; /* 0x36110A2A: mov ecx, eax */ 59 RECOMP_ICALL(0x361371A0u); /* 0x36110A2C: call 0x361371a0 */ /* not lifted */ 60 RECOMP_FLAGS_IN(); 61 PUSH32(esp, 0x10Cu); /* 0x36110A31: push 0x10c */ 62 edi = eax; /* 0x36110A36: mov edi, eax */ 63 RECOMP_ICALL(0x3615FD6Au); /* 0x36110A38: call 0x3615fd6a */ /* not lifted */ 64 RECOMP_FLAGS_IN(); 65 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 66 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 67 esp = esp + 4; /* 0x36110A3D: add esp, 4 */ 68 _flag_k = FK_ADD; 69 MEM32(ebp + 0x8) = eax; /* 0x36110A40: mov dword ptr [ebp + 8], eax */ 70 /* cmp eax, ebx */ /* 0x36110A43: cmp eax, ebx */ 71 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 72 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 73 _flag_k = FK_CMP; 74 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36110A45: mov byte ptr [ebp - 4], 1 */ 75 if (CMP_EQ(_flag_a, _flag_b)) goto L_36110A54; /* 0x36110A49: je 0x36110a54 */ 76 L_36110A4B: 77 ecx = eax; /* 0x36110A4B: mov ecx, eax */ 78 RECOMP_ICALL(0x36132920u); /* 0x36110A4D: call 0x36132920 */ /* not lifted */ 79 RECOMP_FLAGS_IN(); 80 goto L_36110A56; /* 0x36110A52: jmp 0x36110a56 */ 81 L_36110A54: 82 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 83 eax = 0; /* 0x36110A54: xor eax, eax */ 84 _cf = 0; 85 _flag_k = FK_TEST; 86 L_36110A56: 87 MEM32(esi + 0x20) = eax; /* 0x36110A56: mov dword ptr [esi + 0x20], eax */ 88 eax = MEM32(esi + 0x28); /* 0x36110A59: mov eax, dword ptr [esi + 0x28] */ 89 edx = eax; /* 0x36110A5C: mov edx, eax */ 90 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 91 edx = edx & 2; /* 0x36110A5E: and edx, 2 */ 92 _cf = 0; 93 _flag_k = FK_TEST; 94 /* cmp LO8(edx), 2 */ /* 0x36110A61: cmp dl, 2 */ 95 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 96 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 97 _flag_k = FK_NARROW(FK_CMP, 24); 98 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36110A64: sete cl */ 99 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 100 eax = eax & 1; /* 0x36110A67: and eax, 1 */ 101 _cf = 0; 102 _flag_k = FK_TEST; 103 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 104 SET_LO8(eax, LO8(eax) - 1); /* 0x36110A6A: dec al */ 105 _flag_k = FK_NARROW(FK_DEC, 24); 106 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 107 _cf = (LO8(eax)) != 0; 108 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36110A6C: neg al */ 109 _flag_k = FK_NARROW(FK_CMP, 24); 110 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36110A6E: sbb al, al */ 111 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 112 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 113 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 114 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 115 SET_LO8(eax, LO8(eax) + 1); /* 0x36110A70: inc al */ 116 _flag_k = FK_NARROW(FK_INC, 24); 117 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36110A72: mov byte ptr [ebp - 4], bl */ 118 PUSH32(esp, ecx); /* 0x36110A75: push ecx */ 119 ecx = edi; /* 0x36110A76: mov ecx, edi */ 120 PUSH32(esp, eax); /* 0x36110A78: push eax */ 121 PUSH32(esp, 7); /* 0x36110A79: push 7 */ 122 RECOMP_ICALL(0x36136FE0u); /* 0x36110A7B: call 0x36136fe0 */ /* not lifted */ 123 RECOMP_FLAGS_IN(); 124 edx = MEM32(esi + 0x28); /* 0x36110A80: mov edx, dword ptr [esi + 0x28] */ 125 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 126 edx = edx & 4; /* 0x36110A83: and edx, 4 */ 127 _cf = 0; 128 _flag_k = FK_TEST; 129 PUSH32(esp, eax); /* 0x36110A86: push eax */ 130 /* cmp LO8(edx), 4 */ /* 0x36110A87: cmp dl, 4 */ 131 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 133 _flag_k = FK_NARROW(FK_CMP, 24); 134 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36110A8A: sete al */ 135 ecx = edi; /* 0x36110A8D: mov ecx, edi */ 136 PUSH32(esp, eax); /* 0x36110A8F: push eax */ 137 PUSH32(esp, 6); /* 0x36110A90: push 6 */ 138 RECOMP_ICALL(0x36137010u); /* 0x36110A92: call 0x36137010 */ /* not lifted */ 139 RECOMP_FLAGS_IN(); 140 PUSH32(esp, ecx); /* 0x36110A97: push ecx */ 141 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110A98: fstp dword ptr [esp] */ 142 PUSH32(esp, 5); /* 0x36110A9B: push 5 */ 143 ecx = edi; /* 0x36110A9D: mov ecx, edi */ 144 RECOMP_ICALL(0x36137010u); /* 0x36110A9F: call 0x36137010 */ /* not lifted */ 145 RECOMP_FLAGS_IN(); 146 PUSH32(esp, ecx); /* 0x36110AA4: push ecx */ 147 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110AA5: fstp dword ptr [esp] */ 148 PUSH32(esp, 4); /* 0x36110AA8: push 4 */ 149 ecx = edi; /* 0x36110AAA: mov ecx, edi */ 150 RECOMP_ICALL(0x36137010u); /* 0x36110AAC: call 0x36137010 */ /* not lifted */ 151 RECOMP_FLAGS_IN(); 152 PUSH32(esp, ecx); /* 0x36110AB1: push ecx */ 153 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110AB2: fstp dword ptr [esp] */ 154 PUSH32(esp, 3); /* 0x36110AB5: push 3 */ 155 ecx = edi; /* 0x36110AB7: mov ecx, edi */ 156 RECOMP_ICALL(0x36137010u); /* 0x36110AB9: call 0x36137010 */ /* not lifted */ 157 RECOMP_FLAGS_IN(); 158 PUSH32(esp, ecx); /* 0x36110ABE: push ecx */ 159 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110ABF: fstp dword ptr [esp] */ 160 PUSH32(esp, 2); /* 0x36110AC2: push 2 */ 161 ecx = edi; /* 0x36110AC4: mov ecx, edi */ 162 RECOMP_ICALL(0x36137010u); /* 0x36110AC6: call 0x36137010 */ /* not lifted */ 163 RECOMP_FLAGS_IN(); 164 PUSH32(esp, ecx); /* 0x36110ACB: push ecx */ 165 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110ACC: fstp dword ptr [esp] */ 166 PUSH32(esp, 1); /* 0x36110ACF: push 1 */ 167 ecx = edi; /* 0x36110AD1: mov ecx, edi */ 168 RECOMP_ICALL(0x36137010u); /* 0x36110AD3: call 0x36137010 */ /* not lifted */ 169 RECOMP_FLAGS_IN(); 170 PUSH32(esp, ecx); /* 0x36110AD8: push ecx */ 171 ecx = MEM32(ebp + 0xC); /* 0x36110AD9: mov ecx, dword ptr [ebp + 0xc] */ 172 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110ADC: fstp dword ptr [esp] */ 173 PUSH32(esp, ecx); /* 0x36110ADF: push ecx */ 174 ecx = MEM32(esi + 0x20); /* 0x36110AE0: mov ecx, dword ptr [esi + 0x20] */ 175 RECOMP_ICALL(0x36132D20u); /* 0x36110AE3: call 0x36132d20 */ /* not lifted */ 176 RECOMP_FLAGS_IN(); 177 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 178 _cf = (LO8(eax)) != 0; 179 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36110AE8: neg al */ 180 _flag_k = FK_NARROW(FK_CMP, 24); 181 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36110AEA: sbb al, al */ 182 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 183 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 184 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 185 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 186 SET_LO8(eax, LO8(eax) + 1); /* 0x36110AEC: inc al */ 187 _flag_k = FK_NARROW(FK_INC, 24); 188 ecx = esi; /* 0x36110AEE: mov ecx, esi */ 189 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36110AF0: mov byte ptr [esi + 0x14], al */ 190 RECOMP_ICALL(0x36111020u); /* 0x36110AF3: call 0x36111020 */ /* not lifted */ 191 RECOMP_FLAGS_IN(); 192 ecx = MEM32(ebp + (-0xC)); /* 0x36110AF8: mov ecx, dword ptr [ebp - 0xc] */ 193 edi = POP32_VAL(esp); /* 0x36110AFB: pop edi */ 194 eax = esi; /* 0x36110AFC: mov eax, esi */ 195 esi = POP32_VAL(esp); /* 0x36110AFE: pop esi */ 196 ebx = POP32_VAL(esp); /* 0x36110AFF: pop ebx */ 197 MEM32(FS_BASE + (0)) = ecx; /* 0x36110B00: mov dword ptr fs:[0], ecx */ 198 esp = ebp; /* 0x36110B07: mov esp, ebp */ 199 ebp = POP32_VAL(esp); /* 0x36110B09: pop ebp */ 200 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36110B0A: ret 8 */ 201 RECOMP_REGS_OUT(); 202 } 203 204 void sub_36110B10(void) { 205 int _fpu_cmp = 0; 206 uint32_t _cf = 0; 207 int _df = 1; 208 uint32_t _flag_k = FK_NONE; 209 uint32_t _flag_a = 0, _flag_b = 0; 210 uint32_t _itail_tgt = 0; 211 RECOMP_REGS_LOCALS 212 RECOMP_ENTER(0x36110B10u); 213 214 L_36110B10: 215 PUSH32(esp, ebp); /* 0x36110B10: push ebp */ 216 ebp = esp; /* 0x36110B11: mov ebp, esp */ 217 PUSH32(esp, 0xFFFFFFFFu); /* 0x36110B13: push -1 */ 218 PUSH32(esp, 0x3616AB63u); /* 0x36110B15: push 0x3616ab63 */ 219 eax = MEM32(FS_BASE + (0)); /* 0x36110B1A: mov eax, dword ptr fs:[0] */ 220 PUSH32(esp, eax); /* 0x36110B20: push eax */ 221 MEM32(FS_BASE + (0)) = esp; /* 0x36110B21: mov dword ptr fs:[0], esp */ 222 PUSH32(esp, ecx); /* 0x36110B28: push ecx */ 223 eax = MEM32(ebp + 0x8); /* 0x36110B29: mov eax, dword ptr [ebp + 8] */ 224 PUSH32(esp, ebx); /* 0x36110B2C: push ebx */ 225 PUSH32(esp, esi); /* 0x36110B2D: push esi */ 226 PUSH32(esp, edi); /* 0x36110B2E: push edi */ 227 esi = ecx; /* 0x36110B2F: mov esi, ecx */ 228 PUSH32(esp, eax); /* 0x36110B31: push eax */ 229 MEM32(ebp + (-0x10)) = esi; /* 0x36110B32: mov dword ptr [ebp - 0x10], esi */ 230 RECOMP_ICALL(0x360FC270u); /* 0x36110B35: call 0x360fc270 */ /* not lifted */ 231 RECOMP_FLAGS_IN(); 232 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 233 ebx = 0; /* 0x36110B3A: xor ebx, ebx */ 234 _cf = 0; 235 _flag_k = FK_TEST; 236 MEM32(esi + 0x20) = ebx; /* 0x36110B3C: mov dword ptr [esi + 0x20], ebx */ 237 MEM32(esi + 0x24) = ebx; /* 0x36110B3F: mov dword ptr [esi + 0x24], ebx */ 238 MEM32(esi + 0xA8) = ebx; /* 0x36110B42: mov dword ptr [esi + 0xa8], ebx */ 239 MEM32(esi + 0xB4) = ebx; /* 0x36110B48: mov dword ptr [esi + 0xb4], ebx */ 240 MEM32(esi + 0xB8) = ebx; /* 0x36110B4E: mov dword ptr [esi + 0xb8], ebx */ 241 MEM32(esi + 0xBC) = ebx; /* 0x36110B54: mov dword ptr [esi + 0xbc], ebx */ 242 ecx = esi; /* 0x36110B5A: mov ecx, esi */ 243 MEM32(ebp + (-0x4)) = ebx; /* 0x36110B5C: mov dword ptr [ebp - 4], ebx */ 244 MEM32(esi) = 0x36176964u; /* 0x36110B5F: mov dword ptr [esi], 0x36176964 */ 245 RECOMP_ICALL(0x36112140u); /* 0x36110B65: call 0x36112140 */ /* not lifted */ 246 RECOMP_FLAGS_IN(); 247 ecx = MEM32(esi + 0x4); /* 0x36110B6A: mov ecx, dword ptr [esi + 4] */ 248 PUSH32(esp, ecx); /* 0x36110B6D: push ecx */ 249 RECOMP_ICALL(0x360F7B00u); /* 0x36110B6E: call 0x360f7b00 */ /* not lifted */ 250 RECOMP_FLAGS_IN(); 251 ecx = eax; /* 0x36110B73: mov ecx, eax */ 252 RECOMP_ICALL(0x360FBFF0u); /* 0x36110B75: call 0x360fbff0 */ /* not lifted */ 253 RECOMP_FLAGS_IN(); 254 ecx = eax; /* 0x36110B7A: mov ecx, eax */ 255 RECOMP_ICALL(0x361371A0u); /* 0x36110B7C: call 0x361371a0 */ /* not lifted */ 256 RECOMP_FLAGS_IN(); 257 edi = eax; /* 0x36110B81: mov edi, eax */ 258 eax = MEM32(ebp + 0x10); /* 0x36110B83: mov eax, dword ptr [ebp + 0x10] */ 259 /* cmp eax, ebx */ /* 0x36110B86: cmp eax, ebx */ 260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 262 _flag_k = FK_CMP; 263 if (CMP_NE(_flag_a, _flag_b)) goto L_36110B93; /* 0x36110B88: jne 0x36110b93 */ 264 L_36110B8A: 265 PUSH32(esp, 7); /* 0x36110B8A: push 7 */ 266 ecx = edi; /* 0x36110B8C: mov ecx, edi */ 267 RECOMP_ICALL(0x36136FE0u); /* 0x36110B8E: call 0x36136fe0 */ /* not lifted */ 268 RECOMP_FLAGS_IN(); 269 L_36110B93: 270 PUSH32(esp, 0x10Cu); /* 0x36110B93: push 0x10c */ 271 MEM32(ebp + 0x8) = eax; /* 0x36110B98: mov dword ptr [ebp + 8], eax */ 272 RECOMP_ICALL(0x3615FD6Au); /* 0x36110B9B: call 0x3615fd6a */ /* not lifted */ 273 RECOMP_FLAGS_IN(); 274 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 276 esp = esp + 4; /* 0x36110BA0: add esp, 4 */ 277 _flag_k = FK_ADD; 278 MEM32(ebp + 0x10) = eax; /* 0x36110BA3: mov dword ptr [ebp + 0x10], eax */ 279 /* cmp eax, ebx */ /* 0x36110BA6: cmp eax, ebx */ 280 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 282 _flag_k = FK_CMP; 283 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36110BA8: mov byte ptr [ebp - 4], 1 */ 284 if (CMP_EQ(_flag_a, _flag_b)) goto L_36110BB7; /* 0x36110BAC: je 0x36110bb7 */ 285 L_36110BAE: 286 ecx = eax; /* 0x36110BAE: mov ecx, eax */ 287 RECOMP_ICALL(0x36132920u); /* 0x36110BB0: call 0x36132920 */ /* not lifted */ 288 RECOMP_FLAGS_IN(); 289 goto L_36110BB9; /* 0x36110BB5: jmp 0x36110bb9 */ 290 L_36110BB7: 291 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 292 eax = 0; /* 0x36110BB7: xor eax, eax */ 293 _cf = 0; 294 _flag_k = FK_TEST; 295 L_36110BB9: 296 MEM32(esi + 0x20) = eax; /* 0x36110BB9: mov dword ptr [esi + 0x20], eax */ 297 eax = MEM32(esi + 0x28); /* 0x36110BBC: mov eax, dword ptr [esi + 0x28] */ 298 edx = eax; /* 0x36110BBF: mov edx, eax */ 299 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 300 edx = edx & 2; /* 0x36110BC1: and edx, 2 */ 301 _cf = 0; 302 _flag_k = FK_TEST; 303 /* cmp LO8(edx), 2 */ /* 0x36110BC4: cmp dl, 2 */ 304 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 306 _flag_k = FK_NARROW(FK_CMP, 24); 307 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36110BC7: sete cl */ 308 edx = eax; /* 0x36110BCA: mov edx, eax */ 309 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 310 edx = edx & 1; /* 0x36110BCC: and edx, 1 */ 311 _cf = 0; 312 _flag_k = FK_TEST; 313 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 314 SET_LO8(edx, LO8(edx) - 1); /* 0x36110BCF: dec dl */ 315 _flag_k = FK_NARROW(FK_DEC, 24); 316 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 317 _cf = (LO8(edx)) != 0; 318 SET_LO8(edx, (uint32_t)(-(int32_t)LO8(edx))); /* 0x36110BD1: neg dl */ 319 _flag_k = FK_NARROW(FK_CMP, 24); 320 { uint32_t _sa = LO8(edx), _sb = LO8(edx), _sc = _cf; /* 0x36110BD3: sbb dl, dl */ 321 SET_LO8(edx, _sc ? 0xFFFFFFFFu : 0); 322 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 323 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 324 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 325 SET_LO8(edx, LO8(edx) + 1); /* 0x36110BD5: inc dl */ 326 _flag_k = FK_NARROW(FK_INC, 24); 327 PUSH32(esp, ecx); /* 0x36110BD7: push ecx */ 328 ecx = MEM32(ebp + 0x8); /* 0x36110BD8: mov ecx, dword ptr [ebp + 8] */ 329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 330 eax = eax & 4; /* 0x36110BDB: and eax, 4 */ 331 _cf = 0; 332 _flag_k = FK_TEST; 333 /* cmp LO8(eax), 4 */ /* 0x36110BDE: cmp al, 4 */ 334 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 336 _flag_k = FK_NARROW(FK_CMP, 24); 337 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36110BE0: mov byte ptr [ebp - 4], bl */ 338 PUSH32(esp, edx); /* 0x36110BE3: push edx */ 339 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36110BE4: sete dl */ 340 PUSH32(esp, ecx); /* 0x36110BE7: push ecx */ 341 ecx = edi; /* 0x36110BE8: mov ecx, edi */ 342 PUSH32(esp, edx); /* 0x36110BEA: push edx */ 343 PUSH32(esp, 6); /* 0x36110BEB: push 6 */ 344 RECOMP_ICALL(0x36137010u); /* 0x36110BED: call 0x36137010 */ /* not lifted */ 345 RECOMP_FLAGS_IN(); 346 PUSH32(esp, ecx); /* 0x36110BF2: push ecx */ 347 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110BF3: fstp dword ptr [esp] */ 348 PUSH32(esp, 5); /* 0x36110BF6: push 5 */ 349 ecx = edi; /* 0x36110BF8: mov ecx, edi */ 350 RECOMP_ICALL(0x36137010u); /* 0x36110BFA: call 0x36137010 */ /* not lifted */ 351 RECOMP_FLAGS_IN(); 352 PUSH32(esp, ecx); /* 0x36110BFF: push ecx */ 353 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110C00: fstp dword ptr [esp] */ 354 PUSH32(esp, 4); /* 0x36110C03: push 4 */ 355 ecx = edi; /* 0x36110C05: mov ecx, edi */ 356 RECOMP_ICALL(0x36137010u); /* 0x36110C07: call 0x36137010 */ /* not lifted */ 357 RECOMP_FLAGS_IN(); 358 PUSH32(esp, ecx); /* 0x36110C0C: push ecx */ 359 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110C0D: fstp dword ptr [esp] */ 360 PUSH32(esp, 3); /* 0x36110C10: push 3 */ 361 ecx = edi; /* 0x36110C12: mov ecx, edi */ 362 RECOMP_ICALL(0x36137010u); /* 0x36110C14: call 0x36137010 */ /* not lifted */ 363 RECOMP_FLAGS_IN(); 364 PUSH32(esp, ecx); /* 0x36110C19: push ecx */ 365 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110C1A: fstp dword ptr [esp] */ 366 PUSH32(esp, 2); /* 0x36110C1D: push 2 */ 367 ecx = edi; /* 0x36110C1F: mov ecx, edi */ 368 RECOMP_ICALL(0x36137010u); /* 0x36110C21: call 0x36137010 */ /* not lifted */ 369 RECOMP_FLAGS_IN(); 370 PUSH32(esp, ecx); /* 0x36110C26: push ecx */ 371 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110C27: fstp dword ptr [esp] */ 372 PUSH32(esp, 1); /* 0x36110C2A: push 1 */ 373 ecx = edi; /* 0x36110C2C: mov ecx, edi */ 374 RECOMP_ICALL(0x36137010u); /* 0x36110C2E: call 0x36137010 */ /* not lifted */ 375 RECOMP_FLAGS_IN(); 376 eax = MEM32(ebp + 0xC); /* 0x36110C33: mov eax, dword ptr [ebp + 0xc] */ 377 PUSH32(esp, ecx); /* 0x36110C36: push ecx */ 378 ecx = MEM32(esi + 0x20); /* 0x36110C37: mov ecx, dword ptr [esi + 0x20] */ 379 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110C3A: fstp dword ptr [esp] */ 380 PUSH32(esp, eax); /* 0x36110C3D: push eax */ 381 RECOMP_ICALL(0x36132EB0u); /* 0x36110C3E: call 0x36132eb0 */ /* not lifted */ 382 RECOMP_FLAGS_IN(); 383 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 384 _cf = (LO8(eax)) != 0; 385 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36110C43: neg al */ 386 _flag_k = FK_NARROW(FK_CMP, 24); 387 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36110C45: sbb al, al */ 388 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 389 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 390 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 391 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 392 SET_LO8(eax, LO8(eax) + 1); /* 0x36110C47: inc al */ 393 _flag_k = FK_NARROW(FK_INC, 24); 394 ecx = esi; /* 0x36110C49: mov ecx, esi */ 395 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36110C4B: mov byte ptr [esi + 0x14], al */ 396 RECOMP_ICALL(0x36111020u); /* 0x36110C4E: call 0x36111020 */ /* not lifted */ 397 RECOMP_FLAGS_IN(); 398 ecx = MEM32(ebp + (-0xC)); /* 0x36110C53: mov ecx, dword ptr [ebp - 0xc] */ 399 edi = POP32_VAL(esp); /* 0x36110C56: pop edi */ 400 eax = esi; /* 0x36110C57: mov eax, esi */ 401 esi = POP32_VAL(esp); /* 0x36110C59: pop esi */ 402 ebx = POP32_VAL(esp); /* 0x36110C5A: pop ebx */ 403 MEM32(FS_BASE + (0)) = ecx; /* 0x36110C5B: mov dword ptr fs:[0], ecx */ 404 esp = ebp; /* 0x36110C62: mov esp, ebp */ 405 ebp = POP32_VAL(esp); /* 0x36110C64: pop ebp */ 406 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36110C65: ret 0xc */ 407 RECOMP_REGS_OUT(); 408 } 409 410 void sub_36110C70(void) { 411 int _fpu_cmp = 0; 412 uint32_t _cf = 0; 413 int _df = 1; 414 uint32_t _flag_k = FK_NONE; 415 uint32_t _flag_a = 0, _flag_b = 0; 416 uint32_t _itail_tgt = 0; 417 RECOMP_REGS_LOCALS 418 RECOMP_ENTER(0x36110C70u); 419 420 L_36110C70: 421 PUSH32(esp, ebp); /* 0x36110C70: push ebp */ 422 ebp = esp; /* 0x36110C71: mov ebp, esp */ 423 PUSH32(esp, 0xFFFFFFFFu); /* 0x36110C73: push -1 */ 424 PUSH32(esp, 0x3616AB78u); /* 0x36110C75: push 0x3616ab78 */ 425 eax = MEM32(FS_BASE + (0)); /* 0x36110C7A: mov eax, dword ptr fs:[0] */ 426 PUSH32(esp, eax); /* 0x36110C80: push eax */ 427 MEM32(FS_BASE + (0)) = esp; /* 0x36110C81: mov dword ptr fs:[0], esp */ 428 PUSH32(esp, ecx); /* 0x36110C88: push ecx */ 429 PUSH32(esp, esi); /* 0x36110C89: push esi */ 430 esi = ecx; /* 0x36110C8A: mov esi, ecx */ 431 PUSH32(esp, edi); /* 0x36110C8C: push edi */ 432 MEM32(ebp + (-0x10)) = esi; /* 0x36110C8D: mov dword ptr [ebp - 0x10], esi */ 433 MEM32(esi) = 0x36176964u; /* 0x36110C90: mov dword ptr [esi], 0x36176964 */ 434 edi = MEM32(esi + 0x20); /* 0x36110C96: mov edi, dword ptr [esi + 0x20] */ 435 /* test edi, edi */ /* 0x36110C99: test edi, edi */ 436 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 437 _cf = 0; 438 _flag_k = FK_TEST; 439 MEM32(ebp + (-0x4)) = 0; /* 0x36110C9B: mov dword ptr [ebp - 4], 0 */ 440 if (TEST_Z(_flag_a, _flag_b)) goto L_36110CBB; /* 0x36110CA2: je 0x36110cbb */ 441 L_36110CA4: 442 ecx = edi; /* 0x36110CA4: mov ecx, edi */ 443 RECOMP_ICALL(0x360E2940u); /* 0x36110CA6: call 0x360e2940 */ /* not lifted */ 444 RECOMP_FLAGS_IN(); 445 PUSH32(esp, edi); /* 0x36110CAB: push edi */ 446 RECOMP_ICALL(0x3615FCC4u); /* 0x36110CAC: call 0x3615fcc4 */ /* not lifted */ 447 RECOMP_FLAGS_IN(); 448 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 449 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 450 esp = esp + 4; /* 0x36110CB1: add esp, 4 */ 451 _flag_k = FK_ADD; 452 MEM32(esi + 0x20) = 0; /* 0x36110CB4: mov dword ptr [esi + 0x20], 0 */ 453 L_36110CBB: 454 ecx = MEM32(esi + 0x24); /* 0x36110CBB: mov ecx, dword ptr [esi + 0x24] */ 455 /* test ecx, ecx */ /* 0x36110CBE: test ecx, ecx */ 456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 457 _cf = 0; 458 _flag_k = FK_TEST; 459 if (TEST_Z(_flag_a, _flag_b)) goto L_36110CCF; /* 0x36110CC0: je 0x36110ccf */ 460 L_36110CC2: 461 eax = MEM32(ecx); /* 0x36110CC2: mov eax, dword ptr [ecx] */ 462 PUSH32(esp, 1); /* 0x36110CC4: push 1 */ 463 RECOMP_ICALL(MEM32(eax)); /* 0x36110CC6: call dword ptr [eax] */ 464 RECOMP_FLAGS_IN(); 465 MEM32(esi + 0x24) = 0; /* 0x36110CC8: mov dword ptr [esi + 0x24], 0 */ 466 L_36110CCF: 467 ecx = esi; /* 0x36110CCF: mov ecx, esi */ 468 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36110CD1: mov dword ptr [ebp - 4], 0xffffffff */ 469 RECOMP_ICALL(0x360FC2F0u); /* 0x36110CD8: call 0x360fc2f0 */ /* not lifted */ 470 RECOMP_FLAGS_IN(); 471 ecx = MEM32(ebp + (-0xC)); /* 0x36110CDD: mov ecx, dword ptr [ebp - 0xc] */ 472 edi = POP32_VAL(esp); /* 0x36110CE0: pop edi */ 473 esi = POP32_VAL(esp); /* 0x36110CE1: pop esi */ 474 MEM32(FS_BASE + (0)) = ecx; /* 0x36110CE2: mov dword ptr fs:[0], ecx */ 475 esp = ebp; /* 0x36110CE9: mov esp, ebp */ 476 ebp = POP32_VAL(esp); /* 0x36110CEB: pop ebp */ 477 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36110CEC: ret */ 478 RECOMP_REGS_OUT(); 479 } 480 481 void sub_36110CF0(void) { 482 int _fpu_cmp = 0; 483 uint32_t _cf = 0; 484 int _df = 1; 485 uint32_t _flag_k = FK_NONE; 486 uint32_t _flag_a = 0, _flag_b = 0; 487 uint32_t _itail_tgt = 0; 488 RECOMP_REGS_LOCALS 489 RECOMP_ENTER(0x36110CF0u); 490 491 L_36110CF0: 492 PUSH32(esp, ebp); /* 0x36110CF0: push ebp */ 493 ebp = esp; /* 0x36110CF1: mov ebp, esp */ 494 PUSH32(esp, 0xFFFFFFFFu); /* 0x36110CF3: push -1 */ 495 PUSH32(esp, 0x3616AB9Cu); /* 0x36110CF5: push 0x3616ab9c */ 496 eax = MEM32(FS_BASE + (0)); /* 0x36110CFA: mov eax, dword ptr fs:[0] */ 497 PUSH32(esp, eax); /* 0x36110D00: push eax */ 498 MEM32(FS_BASE + (0)) = esp; /* 0x36110D01: mov dword ptr fs:[0], esp */ 499 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x98u); 500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 501 esp = esp - 0x98u; /* 0x36110D08: sub esp, 0x98 */ 502 _flag_k = FK_CMP; 503 PUSH32(esp, esi); /* 0x36110D0E: push esi */ 504 esi = ecx; /* 0x36110D0F: mov esi, ecx */ 505 RECOMP_ICALL(0x360FC300u); /* 0x36110D11: call 0x360fc300 */ /* not lifted */ 506 RECOMP_FLAGS_IN(); 507 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36110D16: mov al, byte ptr [esi + 0x14] */ 508 /* test LO8(eax), LO8(eax) */ /* 0x36110D19: test al, al */ 509 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 510 _cf = 0; 511 _flag_k = FK_NARROW(FK_TEST, 24); 512 if (TEST_NZ(_flag_a, _flag_b)) goto L_36110FF2; /* 0x36110D1B: jne 0x36110ff2 */ 513 L_36110D21: 514 ecx = MEM32(esi + 0x20); /* 0x36110D21: mov ecx, dword ptr [esi + 0x20] */ 515 RECOMP_ICALL(0x361331E0u); /* 0x36110D24: call 0x361331e0 */ /* not lifted */ 516 RECOMP_FLAGS_IN(); 517 /* test LO8(eax), LO8(eax) */ /* 0x36110D29: test al, al */ 518 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 519 _cf = 0; 520 _flag_k = FK_NARROW(FK_TEST, 24); 521 if (TEST_NZ(_flag_a, _flag_b)) goto L_36110D3F; /* 0x36110D2B: jne 0x36110d3f */ 522 L_36110D2D: 523 eax = MEM32(esi + 0x20); /* 0x36110D2D: mov eax, dword ptr [esi + 0x20] */ 524 MEM8(eax) = (uint8_t)(0); /* 0x36110D30: mov byte ptr [eax], 0 */ 525 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x36110D33: fld dword ptr [esi + 0x94] */ 526 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36110D39: fadd dword ptr [esi + 0xc] */ 527 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36110D3C: fstp dword ptr [esi + 0x10] */ 528 L_36110D3F: 529 PUSH32(esp, ebx); /* 0x36110D3F: push ebx */ 530 PUSH32(esp, edi); /* 0x36110D40: push edi */ 531 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36110D41: call dword ptr [0x3616f254] */ 532 RECOMP_FLAGS_IN(); 533 /* test MEM32(esi + 0x68), eax */ /* 0x36110D47: test dword ptr [esi + 0x68], eax */ 534 _flag_a = (uint32_t)(MEM32(esi + 0x68)); _flag_b = (uint32_t)(eax); 535 _cf = 0; 536 _flag_k = FK_TEST; 537 if (TEST_NZ(_flag_a, _flag_b)) goto L_36110EEE; /* 0x36110D4A: jne 0x36110eee */ 538 L_36110D50: 539 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36110D50: fld dword ptr [esi + 0x10] */ 540 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36110D53: fcomp dword ptr [0x3617040c] */ 541 fp_pop(); 542 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36110D59: fnstsw ax */ 543 /* test HI8(eax), 1 */ /* 0x36110D5B: test ah, 1 */ 544 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 545 _cf = 0; 546 _flag_k = FK_NARROW(FK_TEST, 24); 547 if (TEST_NZ(_flag_a, _flag_b)) goto L_36110D77; /* 0x36110D5E: jne 0x36110d77 */ 548 L_36110D60: 549 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36110D60: fld dword ptr [esi + 0x10] */ 550 _st[0] -= (double)*(float*)ADDR(esi + 0x94); /* 0x36110D63: fsub dword ptr [esi + 0x94] */ 551 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36110D69: fcomp dword ptr [esi + 0xc] */ 552 fp_pop(); 553 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36110D6C: fnstsw ax */ 554 /* test HI8(eax), 0x41u */ /* 0x36110D6E: test ah, 0x41 */ 555 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 556 _cf = 0; 557 _flag_k = FK_NARROW(FK_TEST, 24); 558 if (TEST_NZ(_flag_a, _flag_b)) goto L_36110EEE; /* 0x36110D71: jne 0x36110eee */ 559 L_36110D77: 560 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36110D77: fld dword ptr [esi + 0x30] */ 561 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x36110D7A: fmul dword ptr [esi + 0xc] */ 562 RECOMP_ICALL(0x3615FD8Cu); /* 0x36110D7D: call 0x3615fd8c */ /* not lifted */ 563 RECOMP_FLAGS_IN(); 564 ecx = ebp + (-0x48); /* 0x36110D82: lea ecx, [ebp - 0x48] */ 565 ebx = eax; /* 0x36110D85: mov ebx, eax */ 566 PUSH32(esp, ecx); /* 0x36110D87: push ecx */ 567 ecx = MEM32(esi + 0x20); /* 0x36110D88: mov ecx, dword ptr [esi + 0x20] */ 568 MEM32(ebp + (-0x3C)) = ebx; /* 0x36110D8B: mov dword ptr [ebp - 0x3c], ebx */ 569 edi = esi + 0xB4; /* 0x36110D8E: lea edi, [esi + 0xb4] */ 570 RECOMP_ICALL(0x36133FC0u); /* 0x36110D94: call 0x36133fc0 */ /* not lifted */ 571 RECOMP_FLAGS_IN(); 572 edx = MEM32(eax); /* 0x36110D99: mov edx, dword ptr [eax] */ 573 ecx = MEM32(eax + 0x4); /* 0x36110D9B: mov ecx, dword ptr [eax + 4] */ 574 MEM32(ebp + (-0x18)) = edx; /* 0x36110D9E: mov dword ptr [ebp - 0x18], edx */ 575 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36110DA1: fld dword ptr [ebp - 0x18] */ 576 _st[0] -= (double)*(float*)ADDR(edi); /* 0x36110DA4: fsub dword ptr [edi] */ 577 edx = MEM32(eax + 0x8); /* 0x36110DA6: mov edx, dword ptr [eax + 8] */ 578 MEM32(ebp + (-0x14)) = ecx; /* 0x36110DA9: mov dword ptr [ebp - 0x14], ecx */ 579 MEM32(ebp + (-0x10)) = edx; /* 0x36110DAC: mov dword ptr [ebp - 0x10], edx */ 580 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36110DAF: fst dword ptr [ebp - 0x18] */ 581 eax = MEM32(ebp + (-0x18)); /* 0x36110DB2: mov eax, dword ptr [ebp - 0x18] */ 582 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36110DB5: fld dword ptr [ebp - 0x14] */ 583 MEM32(ebp + (-0x38)) = eax; /* 0x36110DB8: mov dword ptr [ebp - 0x38], eax */ 584 _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x36110DBB: fsub dword ptr [edi + 4] */ 585 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36110DBE: fstp dword ptr [ebp - 0x14] */ 586 ecx = MEM32(ebp + (-0x14)); /* 0x36110DC1: mov ecx, dword ptr [ebp - 0x14] */ 587 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36110DC4: fld dword ptr [ebp - 0x10] */ 588 MEM32(ebp + (-0x34)) = ecx; /* 0x36110DC7: mov dword ptr [ebp - 0x34], ecx */ 589 _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x36110DCA: fsub dword ptr [edi + 8] */ 590 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36110DCD: fstp dword ptr [ebp - 0x10] */ 591 edx = MEM32(ebp + (-0x10)); /* 0x36110DD0: mov edx, dword ptr [ebp - 0x10] */ 592 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36110DD3: fld dword ptr [ebp - 0x10] */ 593 MEM32(ebp + (-0x30)) = edx; /* 0x36110DD6: mov dword ptr [ebp - 0x30], edx */ 594 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36110DD9: fmul dword ptr [ebp - 0x10] */ 595 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36110DDC: fld dword ptr [ebp - 0x14] */ 596 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36110DDF: fmul dword ptr [ebp - 0x14] */ 597 { double _v = fp_pop(); _st[0] += _v; } /* 0x36110DE2: faddp st(1) */ 598 fp_push(_st[1]); /* 0x36110DE4: fld st(1) */ 599 _st[0] *= _st[2]; /* 0x36110DE6: fmul st(2) */ 600 { double _v = fp_pop(); _st[0] += _v; } /* 0x36110DE8: faddp st(1) */ 601 _st[0] = sqrt(_st[0]); /* 0x36110DEA: fsqrt */ 602 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36110DEC: fst dword ptr [ebp - 0x1c] */ 603 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36110DEF: fstp dword ptr [ebp - 0x20] */ 604 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36110DF2: fcomp dword ptr [0x3617040c] */ 605 fp_pop(); 606 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36110DF8: fnstsw ax */ 607 /* test HI8(eax), 0x40u */ /* 0x36110DFA: test ah, 0x40 */ 608 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 609 _cf = 0; 610 _flag_k = FK_NARROW(FK_TEST, 24); 611 if (TEST_Z(_flag_a, _flag_b)) goto L_36110E1F; /* 0x36110DFD: je 0x36110e1f */ 612 L_36110DFF: 613 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36110DFF: fld dword ptr [ebp - 0x14] */ 614 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36110E02: fcomp dword ptr [0x3617040c] */ 615 fp_pop(); 616 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36110E08: fnstsw ax */ 617 /* test HI8(eax), 0x40u */ /* 0x36110E0A: test ah, 0x40 */ 618 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 619 _cf = 0; 620 _flag_k = FK_NARROW(FK_TEST, 24); 621 if (TEST_Z(_flag_a, _flag_b)) goto L_36110E1F; /* 0x36110E0D: je 0x36110e1f */ 622 L_36110E0F: 623 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36110E0F: fld dword ptr [ebp - 0x10] */ 624 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36110E12: fcomp dword ptr [0x3617040c] */ 625 fp_pop(); 626 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36110E18: fnstsw ax */ 627 /* test HI8(eax), 0x40u */ /* 0x36110E1A: test ah, 0x40 */ 628 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 629 _cf = 0; 630 _flag_k = FK_NARROW(FK_TEST, 24); 631 if (TEST_NZ(_flag_a, _flag_b)) goto L_36110E35; /* 0x36110E1D: jne 0x36110e35 */ 632 L_36110E1F: 633 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36110E1F: fld dword ptr [0x36170380] */ 634 PUSH32(esp, ecx); /* 0x36110E25: push ecx */ 635 _st[0] /= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36110E26: fdiv dword ptr [ebp - 0x1c] */ 636 ecx = ebp + (-0x38); /* 0x36110E29: lea ecx, [ebp - 0x38] */ 637 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36110E2C: fstp dword ptr [esp] */ 638 RECOMP_ICALL(MEM32(0x36170184)); /* 0x36110E2F: call dword ptr [0x36170184] */ 639 RECOMP_FLAGS_IN(); 640 L_36110E35: 641 edx = MEM32(esi + 0xA8); /* 0x36110E35: mov edx, dword ptr [esi + 0xa8] */ 642 eax = ebx; /* 0x36110E3B: mov eax, ebx */ 643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 645 eax = eax - edx; /* 0x36110E3D: sub eax, edx */ 646 _flag_k = FK_CMP; 647 /* test eax, eax */ /* 0x36110E3F: test eax, eax */ 648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 649 _cf = 0; 650 _flag_k = FK_TEST; 651 MEM32(ebp + (-0x1C)) = eax; /* 0x36110E41: mov dword ptr [ebp - 0x1c], eax */ 652 if (TEST_LE(_flag_a, _flag_b)) goto L_36110E4F; /* 0x36110E44: jle 0x36110e4f */ 653 L_36110E46: 654 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x36110E46: fild dword ptr [ebp - 0x1c] */ 655 _st[0] = (double)*(float*)ADDR(ebp + (-0x20)) / _st[0]; /* 0x36110E49: fdivr dword ptr [ebp - 0x20] */ 656 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36110E4C: fstp dword ptr [ebp - 0x20] */ 657 L_36110E4F: 658 /* test eax, eax */ /* 0x36110E4F: test eax, eax */ 659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 660 _cf = 0; 661 _flag_k = FK_TEST; 662 ecx = MEM32(ebp + (-0x20)); /* 0x36110E51: mov ecx, dword ptr [ebp - 0x20] */ 663 MEM32(ebp + (-0x1C)) = ecx; /* 0x36110E54: mov dword ptr [ebp - 0x1c], ecx */ 664 if (TEST_LE(_flag_a, _flag_b)) goto L_36110EE8; /* 0x36110E57: jle 0x36110ee8 */ 665 L_36110E5D: 666 ebx = eax; /* 0x36110E5D: mov ebx, eax */ 667 L_36110E5F: 668 eax = MEM32(ebp + (-0x34)); /* 0x36110E5F: mov eax, dword ptr [ebp - 0x34] */ 669 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36110E62: fld dword ptr [ebp - 0x38] */ 670 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36110E65: fmul dword ptr [ebp - 0x1c] */ 671 ecx = MEM32(ebp + (-0x30)); /* 0x36110E68: mov ecx, dword ptr [ebp - 0x30] */ 672 edx = MEM32(ebp + (-0x38)); /* 0x36110E6B: mov edx, dword ptr [ebp - 0x38] */ 673 MEM32(ebp + (-0x28)) = eax; /* 0x36110E6E: mov dword ptr [ebp - 0x28], eax */ 674 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36110E71: fld dword ptr [ebp - 0x28] */ 675 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36110E74: fmul dword ptr [ebp - 0x1c] */ 676 MEM32(ebp + (-0x24)) = ecx; /* 0x36110E77: mov dword ptr [ebp - 0x24], ecx */ 677 MEM32(ebp + (-0x2C)) = edx; /* 0x36110E7A: mov dword ptr [ebp - 0x2c], edx */ 678 edx = edi; /* 0x36110E7D: mov edx, edi */ 679 eax = MEM32(edx); /* 0x36110E7F: mov eax, dword ptr [edx] */ 680 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36110E81: fstp dword ptr [ebp - 0x28] */ 681 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36110E84: fld dword ptr [ebp - 0x24] */ 682 ecx = MEM32(edx + 0x4); /* 0x36110E87: mov ecx, dword ptr [edx + 4] */ 683 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36110E8A: fmul dword ptr [ebp - 0x1c] */ 684 edx = MEM32(edx + 0x8); /* 0x36110E8D: mov edx, dword ptr [edx + 8] */ 685 MEM32(ebp + (-0x18)) = eax; /* 0x36110E90: mov dword ptr [ebp - 0x18], eax */ 686 MEM32(ebp + (-0x14)) = ecx; /* 0x36110E93: mov dword ptr [ebp - 0x14], ecx */ 687 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36110E96: fstp dword ptr [ebp - 0x24] */ 688 MEM32(ebp + (-0x10)) = edx; /* 0x36110E99: mov dword ptr [ebp - 0x10], edx */ 689 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36110E9C: fld dword ptr [ebp - 0x18] */ 690 _st[0] += _st[1]; /* 0x36110E9F: fadd st(1) */ 691 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36110EA1: fstp dword ptr [ebp - 0x18] */ 692 eax = MEM32(ebp + (-0x18)); /* 0x36110EA4: mov eax, dword ptr [ebp - 0x18] */ 693 MEM32(ebp + (-0x48)) = eax; /* 0x36110EA7: mov dword ptr [ebp - 0x48], eax */ 694 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36110EAA: fstp st(0) */ 695 eax = ebp + (-0x48); /* 0x36110EAC: lea eax, [ebp - 0x48] */ 696 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36110EAF: fld dword ptr [ebp - 0x14] */ 697 PUSH32(esp, eax); /* 0x36110EB2: push eax */ 698 _st[0] += (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36110EB3: fadd dword ptr [ebp - 0x28] */ 699 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36110EB6: fstp dword ptr [ebp - 0x14] */ 700 ecx = MEM32(ebp + (-0x14)); /* 0x36110EB9: mov ecx, dword ptr [ebp - 0x14] */ 701 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36110EBC: fld dword ptr [ebp - 0x10] */ 702 MEM32(ebp + (-0x44)) = ecx; /* 0x36110EBF: mov dword ptr [ebp - 0x44], ecx */ 703 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36110EC2: fadd dword ptr [ebp - 0x24] */ 704 ecx = esi; /* 0x36110EC5: mov ecx, esi */ 705 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36110EC7: fstp dword ptr [ebp - 0x10] */ 706 edx = MEM32(ebp + (-0x10)); /* 0x36110ECA: mov edx, dword ptr [ebp - 0x10] */ 707 MEM32(ebp + (-0x40)) = edx; /* 0x36110ECD: mov dword ptr [ebp - 0x40], edx */ 708 RECOMP_ICALL(0x36111350u); /* 0x36110ED0: call 0x36111350 */ /* not lifted */ 709 RECOMP_FLAGS_IN(); 710 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36110ED5: fld dword ptr [ebp - 0x1c] */ 711 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 712 ebx = ebx - 1; /* 0x36110ED8: dec ebx */ 713 _flag_k = FK_DEC; 714 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36110ED9: fadd dword ptr [ebp - 0x20] */ 715 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36110EDC: fstp dword ptr [ebp - 0x1c] */ 716 RECOMP_BACKEDGE(); 717 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36110E5F; /* 0x36110EDF: jne 0x36110e5f */ 718 L_36110EE5: 719 ebx = MEM32(ebp + (-0x3C)); /* 0x36110EE5: mov ebx, dword ptr [ebp - 0x3c] */ 720 L_36110EE8: 721 MEM32(esi + 0xA8) = ebx; /* 0x36110EE8: mov dword ptr [esi + 0xa8], ebx */ 722 L_36110EEE: 723 RECOMP_ICALL(0x360F7B00u); /* 0x36110EEE: call 0x360f7b00 */ /* not lifted */ 724 RECOMP_FLAGS_IN(); 725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 726 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 727 eax = eax + 0x28u; /* 0x36110EF3: add eax, 0x28 */ 728 _flag_k = FK_ADD; 729 ecx = MEM32(eax); /* 0x36110EF6: mov ecx, dword ptr [eax] */ 730 MEM32(ebp + (-0x58)) = ecx; /* 0x36110EF8: mov dword ptr [ebp - 0x58], ecx */ 731 edx = MEM32(eax + 0x4); /* 0x36110EFB: mov edx, dword ptr [eax + 4] */ 732 MEM32(ebp + (-0x54)) = edx; /* 0x36110EFE: mov dword ptr [ebp - 0x54], edx */ 733 edx = MEM32(esi + 0x8); /* 0x36110F01: mov edx, dword ptr [esi + 8] */ 734 eax = MEM32(eax + 0x8); /* 0x36110F04: mov eax, dword ptr [eax + 8] */ 735 ecx = ebp + (-0x58); /* 0x36110F07: lea ecx, [ebp - 0x58] */ 736 PUSH32(esp, ecx); /* 0x36110F0A: push ecx */ 737 ecx = MEM32(esi + 0x24); /* 0x36110F0B: mov ecx, dword ptr [esi + 0x24] */ 738 PUSH32(esp, edx); /* 0x36110F0E: push edx */ 739 MEM32(ebp + (-0x50)) = eax; /* 0x36110F0F: mov dword ptr [ebp - 0x50], eax */ 740 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x36110F12: call dword ptr [0x3616f6c0] */ 741 RECOMP_FLAGS_IN(); 742 ecx = MEM32(esi + 0x20); /* 0x36110F18: mov ecx, dword ptr [esi + 0x20] */ 743 eax = ebp + (-0x48); /* 0x36110F1B: lea eax, [ebp - 0x48] */ 744 PUSH32(esp, eax); /* 0x36110F1E: push eax */ 745 RECOMP_ICALL(0x36133E80u); /* 0x36110F1F: call 0x36133e80 */ /* not lifted */ 746 RECOMP_FLAGS_IN(); 747 ecx = MEM32(esi + 0x24); /* 0x36110F24: mov ecx, dword ptr [esi + 0x24] */ 748 edi = MEM32(eax); /* 0x36110F27: mov edi, dword ptr [eax] */ 749 edx = ecx + 0x78; /* 0x36110F29: lea edx, [ecx + 0x78] */ 750 MEM32(edx) = edi; /* 0x36110F2C: mov dword ptr [edx], edi */ 751 edi = MEM32(eax + 0x4); /* 0x36110F2E: mov edi, dword ptr [eax + 4] */ 752 MEM32(edx + 0x4) = edi; /* 0x36110F31: mov dword ptr [edx + 4], edi */ 753 eax = MEM32(eax + 0x8); /* 0x36110F34: mov eax, dword ptr [eax + 8] */ 754 PUSH32(esp, 1); /* 0x36110F37: push 1 */ 755 MEM32(edx + 0x8) = eax; /* 0x36110F39: mov dword ptr [edx + 8], eax */ 756 edx = MEM32(ecx); /* 0x36110F3C: mov edx, dword ptr [ecx] */ 757 PUSH32(esp, 1); /* 0x36110F3E: push 1 */ 758 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36110F40: call dword ptr [edx + 0x2c] */ 759 RECOMP_FLAGS_IN(); 760 ecx = MEM32(esi + 0x20); /* 0x36110F43: mov ecx, dword ptr [esi + 0x20] */ 761 eax = ebp + (-0xA4); /* 0x36110F46: lea eax, [ebp - 0xa4] */ 762 PUSH32(esp, eax); /* 0x36110F4C: push eax */ 763 RECOMP_ICALL(0x36133DC0u); /* 0x36110F4D: call 0x36133dc0 */ /* not lifted */ 764 RECOMP_FLAGS_IN(); 765 PUSH32(esp, eax); /* 0x36110F52: push eax */ 766 ecx = ebp + (-0x4C); /* 0x36110F53: lea ecx, [ebp - 0x4c] */ 767 MEM32(ebp + (-0x4)) = 0; /* 0x36110F56: mov dword ptr [ebp - 4], 0 */ 768 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36110F5D: call dword ptr [0x361701a4] */ 769 RECOMP_FLAGS_IN(); 770 ecx = MEM32(esi + 0x24); /* 0x36110F63: mov ecx, dword ptr [esi + 0x24] */ 771 edi = MEM32(eax); /* 0x36110F66: mov edi, dword ptr [eax] */ 772 edx = ecx + 0x84; /* 0x36110F68: lea edx, [ecx + 0x84] */ 773 MEM32(edx) = edi; /* 0x36110F6E: mov dword ptr [edx], edi */ 774 edi = MEM32(eax + 0x4); /* 0x36110F70: mov edi, dword ptr [eax + 4] */ 775 MEM32(edx + 0x4) = edi; /* 0x36110F73: mov dword ptr [edx + 4], edi */ 776 edi = MEM32(eax + 0x8); /* 0x36110F76: mov edi, dword ptr [eax + 8] */ 777 MEM32(edx + 0x8) = edi; /* 0x36110F79: mov dword ptr [edx + 8], edi */ 778 eax = MEM32(eax + 0xC); /* 0x36110F7C: mov eax, dword ptr [eax + 0xc] */ 779 PUSH32(esp, 1); /* 0x36110F7F: push 1 */ 780 MEM32(edx + 0xC) = eax; /* 0x36110F81: mov dword ptr [edx + 0xc], eax */ 781 edx = MEM32(ecx); /* 0x36110F84: mov edx, dword ptr [ecx] */ 782 PUSH32(esp, 2); /* 0x36110F86: push 2 */ 783 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36110F88: call dword ptr [edx + 0x2c] */ 784 RECOMP_FLAGS_IN(); 785 eax = MEM32(esi + 0x20); /* 0x36110F8B: mov eax, dword ptr [esi + 0x20] */ 786 SET_LO8(ebx, MEM8(eax + 0x108)); /* 0x36110F8E: mov bl, byte ptr [eax + 0x108] */ 787 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 788 ecx = 0; /* 0x36110F94: xor ecx, ecx */ 789 _cf = 0; 790 _flag_k = FK_TEST; 791 /* test LO8(ebx), LO8(ebx) */ /* 0x36110F96: test bl, bl */ 792 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 793 _cf = 0; 794 _flag_k = FK_NARROW(FK_TEST, 24); 795 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36110F98: sete cl */ 796 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36110F9B: mov dword ptr [ebp - 4], 0xffffffff */ 797 PUSH32(esp, ecx); /* 0x36110FA2: push ecx */ 798 ecx = MEM32(esi + 0x24); /* 0x36110FA3: mov ecx, dword ptr [esi + 0x24] */ 799 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36110FA6: call dword ptr [0x3616f620] */ 800 RECOMP_FLAGS_IN(); 801 edx = MEM32(esi + 0x28); /* 0x36110FAC: mov edx, dword ptr [esi + 0x28] */ 802 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 803 edx = edx & 0x200u; /* 0x36110FAF: and edx, 0x200 */ 804 _cf = 0; 805 _flag_k = FK_TEST; 806 /* cmp edx, 0x200u */ /* 0x36110FB5: cmp edx, 0x200 */ 807 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 808 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 809 _flag_k = FK_CMP; 810 edi = POP32_VAL(esp); /* 0x36110FBB: pop edi */ 811 ebx = POP32_VAL(esp); /* 0x36110FBC: pop ebx */ 812 if (CMP_NE(_flag_a, _flag_b)) goto L_36110FD0; /* 0x36110FBD: jne 0x36110fd0 */ 813 L_36110FBF: 814 eax = MEM32(esi + 0x24); /* 0x36110FBF: mov eax, dword ptr [esi + 0x24] */ 815 ecx = MEM32(eax + 0x27C); /* 0x36110FC2: mov ecx, dword ptr [eax + 0x27c] */ 816 /* test ecx, ecx */ /* 0x36110FC8: test ecx, ecx */ 817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 818 _cf = 0; 819 _flag_k = FK_TEST; 820 if (TEST_NZ(_flag_a, _flag_b)) goto L_36110FD0; /* 0x36110FCA: jne 0x36110fd0 */ 821 L_36110FCC: 822 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36110FCC: mov byte ptr [esi + 0x14], 1 */ 823 L_36110FD0: 824 ecx = ebp + (-0x64); /* 0x36110FD0: lea ecx, [ebp - 0x64] */ 825 PUSH32(esp, ecx); /* 0x36110FD3: push ecx */ 826 ecx = MEM32(esi + 0x20); /* 0x36110FD4: mov ecx, dword ptr [esi + 0x20] */ 827 RECOMP_ICALL(0x36133FC0u); /* 0x36110FD7: call 0x36133fc0 */ /* not lifted */ 828 RECOMP_FLAGS_IN(); 829 edx = MEM32(eax); /* 0x36110FDC: mov edx, dword ptr [eax] */ 830 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u); 831 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 832 esi = esi + 0xB4u; /* 0x36110FDE: add esi, 0xb4 */ 833 _flag_k = FK_ADD; 834 MEM32(esi) = edx; /* 0x36110FE4: mov dword ptr [esi], edx */ 835 ecx = MEM32(eax + 0x4); /* 0x36110FE6: mov ecx, dword ptr [eax + 4] */ 836 MEM32(esi + 0x4) = ecx; /* 0x36110FE9: mov dword ptr [esi + 4], ecx */ 837 edx = MEM32(eax + 0x8); /* 0x36110FEC: mov edx, dword ptr [eax + 8] */ 838 MEM32(esi + 0x8) = edx; /* 0x36110FEF: mov dword ptr [esi + 8], edx */ 839 L_36110FF2: 840 ecx = MEM32(ebp + (-0xC)); /* 0x36110FF2: mov ecx, dword ptr [ebp - 0xc] */ 841 esi = POP32_VAL(esp); /* 0x36110FF5: pop esi */ 842 MEM32(FS_BASE + (0)) = ecx; /* 0x36110FF6: mov dword ptr fs:[0], ecx */ 843 esp = ebp; /* 0x36110FFD: mov esp, ebp */ 844 ebp = POP32_VAL(esp); /* 0x36110FFF: pop ebp */ 845 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36111000: ret */ 846 RECOMP_REGS_OUT(); 847 } 848 849 void sub_36111010(void) { 850 int _fpu_cmp = 0; 851 uint32_t _cf = 0; 852 int _df = 1; 853 uint32_t _flag_k = FK_NONE; 854 uint32_t _flag_a = 0, _flag_b = 0; 855 uint32_t _itail_tgt = 0; 856 RECOMP_REGS_LOCALS 857 RECOMP_ENTER(0x36111010u); 858 859 L_36111010: 860 fp_push(*(float*)&MEM32(ecx + 0x94)); /* 0x36111010: fld dword ptr [ecx + 0x94] */ 861 _st[0] += (double)*(float*)ADDR(ecx + 0xC); /* 0x36111016: fadd dword ptr [ecx + 0xc] */ 862 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x10) = _v; } /* 0x36111019: fstp dword ptr [ecx + 0x10] */ 863 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3611101C: ret */ 864 RECOMP_REGS_OUT(); 865 } 866 867 void sub_36111020(void) { 868 int _fpu_cmp = 0; 869 uint32_t _cf = 0; 870 int _df = 1; 871 uint32_t _flag_k = FK_NONE; 872 uint32_t _flag_a = 0, _flag_b = 0; 873 uint32_t _itail_tgt = 0; 874 RECOMP_REGS_LOCALS 875 RECOMP_ENTER(0x36111020u); 876 877 L_36111020: 878 PUSH32(esp, ebp); /* 0x36111020: push ebp */ 879 ebp = esp; /* 0x36111021: mov ebp, esp */ 880 PUSH32(esp, 0xFFFFFFFFu); /* 0x36111023: push -1 */ 881 PUSH32(esp, 0x3616ABC7u); /* 0x36111025: push 0x3616abc7 */ 882 eax = MEM32(FS_BASE + (0)); /* 0x3611102A: mov eax, dword ptr fs:[0] */ 883 PUSH32(esp, eax); /* 0x36111030: push eax */ 884 MEM32(FS_BASE + (0)) = esp; /* 0x36111031: mov dword ptr fs:[0], esp */ 885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x98u); 886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 887 esp = esp - 0x98u; /* 0x36111038: sub esp, 0x98 */ 888 _flag_k = FK_CMP; 889 PUSH32(esp, esi); /* 0x3611103E: push esi */ 890 esi = ecx; /* 0x3611103F: mov esi, ecx */ 891 eax = MEM32(esi + 0x28); /* 0x36111041: mov eax, dword ptr [esi + 0x28] */ 892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x800u); 893 eax = eax & 0x800u; /* 0x36111044: and eax, 0x800 */ 894 _cf = 0; 895 _flag_k = FK_TEST; 896 /* cmp eax, 0x800u */ /* 0x36111049: cmp eax, 0x800 */ 897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x800u); 898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 899 _flag_k = FK_CMP; 900 PUSH32(esp, edi); /* 0x3611104E: push edi */ 901 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x3611104F: setne cl */ 902 PUSH32(esp, 0x284u); /* 0x36111052: push 0x284 */ 903 MEM8(ebp + (-0x10)) = (uint8_t)(LO8(ecx)); /* 0x36111057: mov byte ptr [ebp - 0x10], cl */ 904 RECOMP_ICALL(0x3615FD6Au); /* 0x3611105A: call 0x3615fd6a */ /* not lifted */ 905 RECOMP_FLAGS_IN(); 906 edi = eax; /* 0x3611105F: mov edi, eax */ 907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 909 esp = esp + 4; /* 0x36111061: add esp, 4 */ 910 _flag_k = FK_ADD; 911 MEM32(ebp + (-0x24)) = edi; /* 0x36111064: mov dword ptr [ebp - 0x24], edi */ 912 /* test edi, edi */ /* 0x36111067: test edi, edi */ 913 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 914 _cf = 0; 915 _flag_k = FK_TEST; 916 MEM32(ebp + (-0x4)) = 0; /* 0x36111069: mov dword ptr [ebp - 4], 0 */ 917 if (TEST_Z(_flag_a, _flag_b)) goto L_361110C9; /* 0x36111070: je 0x361110c9 */ 918 L_36111072: 919 edx = MEM32(ebp + (-0x10)); /* 0x36111072: mov edx, dword ptr [ebp - 0x10] */ 920 eax = MEM32(esi + 0x2C); /* 0x36111075: mov eax, dword ptr [esi + 0x2c] */ 921 PUSH32(esp, edx); /* 0x36111078: push edx */ 922 PUSH32(esp, 0); /* 0x36111079: push 0 */ 923 PUSH32(esp, eax); /* 0x3611107B: push eax */ 924 RECOMP_ICALL(0x360F7B00u); /* 0x3611107C: call 0x360f7b00 */ /* not lifted */ 925 RECOMP_FLAGS_IN(); 926 ecx = eax; /* 0x36111081: mov ecx, eax */ 927 RECOMP_ICALL(0x360FBE40u); /* 0x36111083: call 0x360fbe40 */ /* not lifted */ 928 RECOMP_FLAGS_IN(); 929 PUSH32(esp, eax); /* 0x36111088: push eax */ 930 ecx = edi; /* 0x36111089: mov ecx, edi */ 931 RECOMP_ICALL(MEM32(0x3616F6DC)); /* 0x3611108B: call dword ptr [0x3616f6dc] */ 932 RECOMP_FLAGS_IN(); 933 MEM32(edi) = 0x361761E4u; /* 0x36111091: mov dword ptr [edi], 0x361761e4 */ 934 MEM32(edi + 0x8) = 0x361761D4u; /* 0x36111097: mov dword ptr [edi + 8], 0x361761d4 */ 935 MEM32(edi + 0x20) = 0x361761C4u; /* 0x3611109E: mov dword ptr [edi + 0x20], 0x361761c4 */ 936 MEM32(edi + 0x38) = 0x361761B4u; /* 0x361110A5: mov dword ptr [edi + 0x38], 0x361761b4 */ 937 MEM32(edi + 0x50) = 0x361761A4u; /* 0x361110AC: mov dword ptr [edi + 0x50], 0x361761a4 */ 938 MEM32(edi + 0x138) = 0x36176194u; /* 0x361110B3: mov dword ptr [edi + 0x138], 0x36176194 */ 939 MEM32(edi + 0x150) = 0x36176184u; /* 0x361110BD: mov dword ptr [edi + 0x150], 0x36176184 */ 940 goto L_361110CB; /* 0x361110C7: jmp 0x361110cb */ 941 L_361110C9: 942 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 943 edi = 0; /* 0x361110C9: xor edi, edi */ 944 _cf = 0; 945 _flag_k = FK_TEST; 946 L_361110CB: 947 ecx = MEM32(esi + 0x2C); /* 0x361110CB: mov ecx, dword ptr [esi + 0x2c] */ 948 PUSH32(esp, ecx); /* 0x361110CE: push ecx */ 949 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361110CF: mov dword ptr [ebp - 4], 0xffffffff */ 950 MEM32(esi + 0x24) = edi; /* 0x361110D6: mov dword ptr [esi + 0x24], edi */ 951 RECOMP_ICALL(0x360F7B00u); /* 0x361110D9: call 0x360f7b00 */ /* not lifted */ 952 RECOMP_FLAGS_IN(); 953 ecx = eax; /* 0x361110DE: mov ecx, eax */ 954 RECOMP_ICALL(0x360FBE60u); /* 0x361110E0: call 0x360fbe60 */ /* not lifted */ 955 RECOMP_FLAGS_IN(); 956 ecx = MEM32(esi + 0x24); /* 0x361110E5: mov ecx, dword ptr [esi + 0x24] */ 957 MEM32(ecx + 0x1E0) = eax; /* 0x361110E8: mov dword ptr [ecx + 0x1e0], eax */ 958 edx = MEM32(esi + 0x2C); /* 0x361110EE: mov edx, dword ptr [esi + 0x2c] */ 959 PUSH32(esp, edx); /* 0x361110F1: push edx */ 960 RECOMP_ICALL(0x360F7B00u); /* 0x361110F2: call 0x360f7b00 */ /* not lifted */ 961 RECOMP_FLAGS_IN(); 962 ecx = eax; /* 0x361110F7: mov ecx, eax */ 963 RECOMP_ICALL(0x360FBEA0u); /* 0x361110F9: call 0x360fbea0 */ /* not lifted */ 964 RECOMP_FLAGS_IN(); 965 ecx = MEM32(esi + 0x24); /* 0x361110FE: mov ecx, dword ptr [esi + 0x24] */ 966 MEM32(ecx + 0x1E4) = eax; /* 0x36111101: mov dword ptr [ecx + 0x1e4], eax */ 967 eax = MEM32(esi + 0x2C); /* 0x36111107: mov eax, dword ptr [esi + 0x2c] */ 968 PUSH32(esp, eax); /* 0x3611110A: push eax */ 969 RECOMP_ICALL(0x360F7B00u); /* 0x3611110B: call 0x360f7b00 */ /* not lifted */ 970 RECOMP_FLAGS_IN(); 971 ecx = eax; /* 0x36111110: mov ecx, eax */ 972 RECOMP_ICALL(0x360FBEE0u); /* 0x36111112: call 0x360fbee0 */ /* not lifted */ 973 RECOMP_FLAGS_IN(); 974 ecx = MEM32(esi + 0x2C); /* 0x36111117: mov ecx, dword ptr [esi + 0x2c] */ 975 MEM32(ebp + (-0x10)) = eax; /* 0x3611111A: mov dword ptr [ebp - 0x10], eax */ 976 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x3611111D: fild dword ptr [ebp - 0x10] */ 977 PUSH32(esp, ecx); /* 0x36111120: push ecx */ 978 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xAC) = _v; } /* 0x36111121: fstp dword ptr [esi + 0xac] */ 979 RECOMP_ICALL(0x360F7B00u); /* 0x36111127: call 0x360f7b00 */ /* not lifted */ 980 RECOMP_FLAGS_IN(); 981 ecx = eax; /* 0x3611112C: mov ecx, eax */ 982 RECOMP_ICALL(0x360FBF20u); /* 0x3611112E: call 0x360fbf20 */ /* not lifted */ 983 RECOMP_FLAGS_IN(); 984 ecx = MEM32(esi + 0x20); /* 0x36111133: mov ecx, dword ptr [esi + 0x20] */ 985 MEM32(ebp + (-0x10)) = eax; /* 0x36111136: mov dword ptr [ebp - 0x10], eax */ 986 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36111139: fild dword ptr [ebp - 0x10] */ 987 edx = ebp + (-0x48); /* 0x3611113C: lea edx, [ebp - 0x48] */ 988 PUSH32(esp, edx); /* 0x3611113F: push edx */ 989 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xB0) = _v; } /* 0x36111140: fstp dword ptr [esi + 0xb0] */ 990 RECOMP_ICALL(0x36133E80u); /* 0x36111146: call 0x36133e80 */ /* not lifted */ 991 RECOMP_FLAGS_IN(); 992 ecx = MEM32(esi + 0x24); /* 0x3611114B: mov ecx, dword ptr [esi + 0x24] */ 993 edi = MEM32(eax); /* 0x3611114E: mov edi, dword ptr [eax] */ 994 edx = ecx + 0x78; /* 0x36111150: lea edx, [ecx + 0x78] */ 995 MEM32(edx) = edi; /* 0x36111153: mov dword ptr [edx], edi */ 996 edi = MEM32(eax + 0x4); /* 0x36111155: mov edi, dword ptr [eax + 4] */ 997 MEM32(edx + 0x4) = edi; /* 0x36111158: mov dword ptr [edx + 4], edi */ 998 eax = MEM32(eax + 0x8); /* 0x3611115B: mov eax, dword ptr [eax + 8] */ 999 PUSH32(esp, 1); /* 0x3611115E: push 1 */ 1000 MEM32(edx + 0x8) = eax; /* 0x36111160: mov dword ptr [edx + 8], eax */ 1001 edx = MEM32(ecx); /* 0x36111163: mov edx, dword ptr [ecx] */ 1002 PUSH32(esp, 1); /* 0x36111165: push 1 */ 1003 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36111167: call dword ptr [edx + 0x2c] */ 1004 RECOMP_FLAGS_IN(); 1005 ecx = MEM32(esi + 0x20); /* 0x3611116A: mov ecx, dword ptr [esi + 0x20] */ 1006 eax = ebp + (-0xA4); /* 0x3611116D: lea eax, [ebp - 0xa4] */ 1007 PUSH32(esp, eax); /* 0x36111173: push eax */ 1008 RECOMP_ICALL(0x36133DC0u); /* 0x36111174: call 0x36133dc0 */ /* not lifted */ 1009 RECOMP_FLAGS_IN(); 1010 PUSH32(esp, eax); /* 0x36111179: push eax */ 1011 ecx = ebp + (-0x4C); /* 0x3611117A: lea ecx, [ebp - 0x4c] */ 1012 MEM32(ebp + (-0x4)) = 1; /* 0x3611117D: mov dword ptr [ebp - 4], 1 */ 1013 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36111184: call dword ptr [0x361701a4] */ 1014 RECOMP_FLAGS_IN(); 1015 ecx = MEM32(esi + 0x24); /* 0x3611118A: mov ecx, dword ptr [esi + 0x24] */ 1016 edi = MEM32(eax); /* 0x3611118D: mov edi, dword ptr [eax] */ 1017 edx = ecx + 0x84; /* 0x3611118F: lea edx, [ecx + 0x84] */ 1018 MEM32(edx) = edi; /* 0x36111195: mov dword ptr [edx], edi */ 1019 edi = MEM32(eax + 0x4); /* 0x36111197: mov edi, dword ptr [eax + 4] */ 1020 MEM32(edx + 0x4) = edi; /* 0x3611119A: mov dword ptr [edx + 4], edi */ 1021 edi = MEM32(eax + 0x8); /* 0x3611119D: mov edi, dword ptr [eax + 8] */ 1022 MEM32(edx + 0x8) = edi; /* 0x361111A0: mov dword ptr [edx + 8], edi */ 1023 eax = MEM32(eax + 0xC); /* 0x361111A3: mov eax, dword ptr [eax + 0xc] */ 1024 PUSH32(esp, 1); /* 0x361111A6: push 1 */ 1025 MEM32(edx + 0xC) = eax; /* 0x361111A8: mov dword ptr [edx + 0xc], eax */ 1026 edx = MEM32(ecx); /* 0x361111AB: mov edx, dword ptr [ecx] */ 1027 PUSH32(esp, 2); /* 0x361111AD: push 2 */ 1028 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x361111AF: call dword ptr [edx + 0x2c] */ 1029 RECOMP_FLAGS_IN(); 1030 ecx = MEM32(esi + 0x24); /* 0x361111B2: mov ecx, dword ptr [esi + 0x24] */ 1031 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361111B5: mov dword ptr [ebp - 4], 0xffffffff */ 1032 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x361111BC: call dword ptr [0x3616f5f8] */ 1033 RECOMP_FLAGS_IN(); 1034 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361111C2: fld dword ptr [0x36170380] */ 1035 _st[0] /= (double)*(float*)ADDR(esi + 0x94); /* 0x361111C8: fdiv dword ptr [esi + 0x94] */ 1036 eax = MEM32(esi + 0x48); /* 0x361111CE: mov eax, dword ptr [esi + 0x48] */ 1037 ecx = MEM32(esi + 0x4C); /* 0x361111D1: mov ecx, dword ptr [esi + 0x4c] */ 1038 MEM32(ebp + (-0x1C)) = eax; /* 0x361111D4: mov dword ptr [ebp - 0x1c], eax */ 1039 MEM32(ebp + (-0x18)) = ecx; /* 0x361111D7: mov dword ptr [ebp - 0x18], ecx */ 1040 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361111DA: fstp dword ptr [ebp - 0x14] */ 1041 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x361111DD: fld dword ptr [esi + 0x58] */ 1042 edx = MEM32(esi + 0x50); /* 0x361111E0: mov edx, dword ptr [esi + 0x50] */ 1043 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x361111E3: fsub dword ptr [ebp - 0x1c] */ 1044 eax = MEM32(esi + 0x54); /* 0x361111E6: mov eax, dword ptr [esi + 0x54] */ 1045 MEM32(ebp + (-0x2C)) = edx; /* 0x361111E9: mov dword ptr [ebp - 0x2c], edx */ 1046 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361111EC: fmul dword ptr [ebp - 0x14] */ 1047 MEM32(ebp + (-0x28)) = eax; /* 0x361111EF: mov dword ptr [ebp - 0x28], eax */ 1048 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361111F2: fstp dword ptr [ebp - 0x24] */ 1049 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x361111F5: fld dword ptr [esi + 0x5c] */ 1050 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x361111F8: fsub dword ptr [ebp - 0x18] */ 1051 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361111FB: fmul dword ptr [ebp - 0x14] */ 1052 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x361111FE: fstp dword ptr [ebp - 0x3c] */ 1053 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x36111201: fld dword ptr [esi + 0x60] */ 1054 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36111204: fsub dword ptr [ebp - 0x2c] */ 1055 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36111207: fmul dword ptr [ebp - 0x14] */ 1056 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x3611120A: fstp dword ptr [ebp - 0x38] */ 1057 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x3611120D: fld dword ptr [esi + 0x64] */ 1058 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36111210: fsub dword ptr [ebp - 0x28] */ 1059 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36111213: fmul dword ptr [ebp - 0x14] */ 1060 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36111216: fstp dword ptr [ebp - 0x34] */ 1061 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36111219: fld dword ptr [esi + 0x30] */ 1062 _st[0] *= (double)*(float*)ADDR(esi + 0x94); /* 0x3611121C: fmul dword ptr [esi + 0x94] */ 1063 _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x36111222: fmul dword ptr [0x36174f9c] */ 1064 RECOMP_ICALL(0x3615FD8Cu); /* 0x36111228: call 0x3615fd8c */ /* not lifted */ 1065 RECOMP_FLAGS_IN(); 1066 ecx = MEM32(esi + 0x84); /* 0x3611122D: mov ecx, dword ptr [esi + 0x84] */ 1067 /* cmp eax, ecx */ /* 0x36111233: cmp eax, ecx */ 1068 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1070 _flag_k = FK_CMP; 1071 if (CMP_GE(_flag_a, _flag_b)) goto L_36111239; /* 0x36111235: jge 0x36111239 */ 1072 L_36111237: 1073 eax = ecx; /* 0x36111237: mov eax, ecx */ 1074 L_36111239: 1075 ecx = MEM32(esi + 0x24); /* 0x36111239: mov ecx, dword ptr [esi + 0x24] */ 1076 PUSH32(esp, eax); /* 0x3611123C: push eax */ 1077 RECOMP_ICALL(MEM32(0x3616F6D8)); /* 0x3611123D: call dword ptr [0x3616f6d8] */ 1078 RECOMP_FLAGS_IN(); 1079 fp_push(*(float*)&MEM32(esi + 0xB0)); /* 0x36111243: fld dword ptr [esi + 0xb0] */ 1080 ecx = MEM32(esi + 0xAC); /* 0x36111249: mov ecx, dword ptr [esi + 0xac] */ 1081 edx = MEM32(esi + 0x40); /* 0x3611124F: mov edx, dword ptr [esi + 0x40] */ 1082 eax = MEM32(esi + 0x38); /* 0x36111252: mov eax, dword ptr [esi + 0x38] */ 1083 PUSH32(esp, 1); /* 0x36111255: push 1 */ 1084 PUSH32(esp, 0); /* 0x36111257: push 0 */ 1085 PUSH32(esp, 0); /* 0x36111259: push 0 */ 1086 PUSH32(esp, 0); /* 0x3611125B: push 0 */ 1087 PUSH32(esp, 0); /* 0x3611125D: push 0 */ 1088 PUSH32(esp, ecx); /* 0x3611125F: push ecx */ 1089 MEM32(ebp + (-0x30)) = ecx; /* 0x36111260: mov dword ptr [ebp - 0x30], ecx */ 1090 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36111263: fsub dword ptr [ebp - 0x30] */ 1091 MEM32(ebp + (-0x20)) = edx; /* 0x36111266: mov dword ptr [ebp - 0x20], edx */ 1092 edx = MEM32(ebp + (-0x34)); /* 0x36111269: mov edx, dword ptr [ebp - 0x34] */ 1093 MEM32(ebp + (-0x10)) = eax; /* 0x3611126C: mov dword ptr [ebp - 0x10], eax */ 1094 eax = MEM32(ebp + (-0x38)); /* 0x3611126F: mov eax, dword ptr [ebp - 0x38] */ 1095 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36111272: fmul dword ptr [ebp - 0x14] */ 1096 MEM32(ebp + (-0x58)) = 0; /* 0x36111275: mov dword ptr [ebp - 0x58], 0 */ 1097 MEM32(ebp + (-0x54)) = 0; /* 0x3611127C: mov dword ptr [ebp - 0x54], 0 */ 1098 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111283: fstp dword ptr [esp] */ 1099 PUSH32(esp, ecx); /* 0x36111286: push ecx */ 1100 ecx = MEM32(ebp + (-0x3C)); /* 0x36111287: mov ecx, dword ptr [ebp - 0x3c] */ 1101 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x3611128A: fld dword ptr [esi + 0x44] */ 1102 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3611128D: fsub dword ptr [ebp - 0x20] */ 1103 PUSH32(esp, edx); /* 0x36111290: push edx */ 1104 edx = MEM32(ebp + (-0x24)); /* 0x36111291: mov edx, dword ptr [ebp - 0x24] */ 1105 PUSH32(esp, eax); /* 0x36111294: push eax */ 1106 eax = MEM32(ebp + (-0x28)); /* 0x36111295: mov eax, dword ptr [ebp - 0x28] */ 1107 PUSH32(esp, ecx); /* 0x36111298: push ecx */ 1108 ecx = MEM32(ebp + (-0x2C)); /* 0x36111299: mov ecx, dword ptr [ebp - 0x2c] */ 1109 PUSH32(esp, edx); /* 0x3611129C: push edx */ 1110 edx = MEM32(ebp + (-0x18)); /* 0x3611129D: mov edx, dword ptr [ebp - 0x18] */ 1111 PUSH32(esp, eax); /* 0x361112A0: push eax */ 1112 eax = MEM32(ebp + (-0x1C)); /* 0x361112A1: mov eax, dword ptr [ebp - 0x1c] */ 1113 PUSH32(esp, ecx); /* 0x361112A4: push ecx */ 1114 ecx = MEM32(esi + 0x94); /* 0x361112A5: mov ecx, dword ptr [esi + 0x94] */ 1115 PUSH32(esp, edx); /* 0x361112AB: push edx */ 1116 edx = MEM32(ebp + (-0x20)); /* 0x361112AC: mov edx, dword ptr [ebp - 0x20] */ 1117 PUSH32(esp, eax); /* 0x361112AF: push eax */ 1118 eax = MEM32(ebp + (-0x10)); /* 0x361112B0: mov eax, dword ptr [ebp - 0x10] */ 1119 PUSH32(esp, 0xFFFFFFFFu); /* 0x361112B3: push -1 */ 1120 PUSH32(esp, ecx); /* 0x361112B5: push ecx */ 1121 PUSH32(esp, ecx); /* 0x361112B6: push ecx */ 1122 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361112B7: fmul dword ptr [ebp - 0x14] */ 1123 MEM32(ebp + (-0x50)) = 0; /* 0x361112BA: mov dword ptr [ebp - 0x50], 0 */ 1124 MEM32(ebp + (-0x48)) = 0; /* 0x361112C1: mov dword ptr [ebp - 0x48], 0 */ 1125 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361112C8: fstp dword ptr [esp] */ 1126 PUSH32(esp, ecx); /* 0x361112CB: push ecx */ 1127 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x361112CC: fld dword ptr [esi + 0x3c] */ 1128 ecx = ebp + (-0x58); /* 0x361112CF: lea ecx, [ebp - 0x58] */ 1129 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361112D2: fsub dword ptr [ebp - 0x10] */ 1130 MEM32(ebp + (-0x44)) = 0; /* 0x361112D5: mov dword ptr [ebp - 0x44], 0 */ 1131 MEM32(ebp + (-0x40)) = 0; /* 0x361112DC: mov dword ptr [ebp - 0x40], 0 */ 1132 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361112E3: fmul dword ptr [ebp - 0x14] */ 1133 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361112E6: fstp dword ptr [esp] */ 1134 PUSH32(esp, edx); /* 0x361112E9: push edx */ 1135 PUSH32(esp, eax); /* 0x361112EA: push eax */ 1136 PUSH32(esp, ecx); /* 0x361112EB: push ecx */ 1137 ecx = MEM32(esi + 0x24); /* 0x361112EC: mov ecx, dword ptr [esi + 0x24] */ 1138 edx = ebp + (-0x48); /* 0x361112EF: lea edx, [ebp - 0x48] */ 1139 PUSH32(esp, edx); /* 0x361112F2: push edx */ 1140 RECOMP_ICALL(MEM32(0x3616F6D4)); /* 0x361112F3: call dword ptr [0x3616f6d4] */ 1141 RECOMP_FLAGS_IN(); 1142 ecx = MEM32(esi + 0x20); /* 0x361112F9: mov ecx, dword ptr [esi + 0x20] */ 1143 eax = ebp + (-0x64); /* 0x361112FC: lea eax, [ebp - 0x64] */ 1144 PUSH32(esp, eax); /* 0x361112FF: push eax */ 1145 RECOMP_ICALL(0x36133FC0u); /* 0x36111300: call 0x36133fc0 */ /* not lifted */ 1146 RECOMP_FLAGS_IN(); 1147 edx = MEM32(eax); /* 0x36111305: mov edx, dword ptr [eax] */ 1148 ecx = esi + 0xB4; /* 0x36111307: lea ecx, [esi + 0xb4] */ 1149 MEM32(ecx) = edx; /* 0x3611130D: mov dword ptr [ecx], edx */ 1150 edx = MEM32(eax + 0x4); /* 0x3611130F: mov edx, dword ptr [eax + 4] */ 1151 MEM32(ecx + 0x4) = edx; /* 0x36111312: mov dword ptr [ecx + 4], edx */ 1152 eax = MEM32(eax + 0x8); /* 0x36111315: mov eax, dword ptr [eax + 8] */ 1153 MEM32(ecx + 0x8) = eax; /* 0x36111318: mov dword ptr [ecx + 8], eax */ 1154 eax = MEM32(esi + 0x84); /* 0x3611131B: mov eax, dword ptr [esi + 0x84] */ 1155 /* test eax, eax */ /* 0x36111321: test eax, eax */ 1156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1157 _cf = 0; 1158 _flag_k = FK_TEST; 1159 if (TEST_LE(_flag_a, _flag_b)) goto L_3611133D; /* 0x36111323: jle 0x3611133d */ 1160 L_36111325: 1161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1162 eax = eax - 1; /* 0x36111325: dec eax */ 1163 _flag_k = FK_DEC; 1164 ecx = esi; /* 0x36111326: mov ecx, esi */ 1165 MEM32(esi + 0x84) = eax; /* 0x36111328: mov dword ptr [esi + 0x84], eax */ 1166 RECOMP_ICALL(0x36113CD0u); /* 0x3611132E: call 0x36113cd0 */ /* not lifted */ 1167 RECOMP_FLAGS_IN(); 1168 eax = MEM32(esi + 0x84); /* 0x36111333: mov eax, dword ptr [esi + 0x84] */ 1169 /* test eax, eax */ /* 0x36111339: test eax, eax */ 1170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1171 _cf = 0; 1172 _flag_k = FK_TEST; 1173 RECOMP_BACKEDGE(); 1174 if (TEST_G(_flag_a, _flag_b)) goto L_36111325; /* 0x3611133B: jg 0x36111325 */ 1175 L_3611133D: 1176 ecx = MEM32(ebp + (-0xC)); /* 0x3611133D: mov ecx, dword ptr [ebp - 0xc] */ 1177 edi = POP32_VAL(esp); /* 0x36111340: pop edi */ 1178 esi = POP32_VAL(esp); /* 0x36111341: pop esi */ 1179 MEM32(FS_BASE + (0)) = ecx; /* 0x36111342: mov dword ptr fs:[0], ecx */ 1180 esp = ebp; /* 0x36111349: mov esp, ebp */ 1181 ebp = POP32_VAL(esp); /* 0x3611134B: pop ebp */ 1182 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3611134C: ret */ 1183 RECOMP_REGS_OUT(); 1184 } 1185 1186 void sub_36111350(void) { 1187 int _fpu_cmp = 0; 1188 uint32_t _cf = 0; 1189 int _df = 1; 1190 uint32_t _flag_k = FK_NONE; 1191 uint32_t _flag_a = 0, _flag_b = 0; 1192 uint32_t _itail_tgt = 0; 1193 RECOMP_REGS_LOCALS 1194 RECOMP_ENTER(0x36111350u); 1195 1196 L_36111350: 1197 PUSH32(esp, ebp); /* 0x36111350: push ebp */ 1198 ebp = esp; /* 0x36111351: mov ebp, esp */ 1199 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 1200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1201 esp = esp - 0x94u; /* 0x36111353: sub esp, 0x94 */ 1202 _flag_k = FK_CMP; 1203 PUSH32(esp, esi); /* 0x36111359: push esi */ 1204 esi = ecx; /* 0x3611135A: mov esi, ecx */ 1205 ecx = 0x3630DBB8u; /* 0x3611135C: mov ecx, 0x3630dbb8 */ 1206 RECOMP_ICALL(0x3615BCE0u); /* 0x36111361: call 0x3615bce0 */ /* not lifted */ 1207 RECOMP_FLAGS_IN(); 1208 fp_push(*(float*)&MEM32(esi + 0x70)); /* 0x36111366: fld dword ptr [esi + 0x70] */ 1209 _st[0] -= (double)*(float*)ADDR(esi + 0x6C); /* 0x36111369: fsub dword ptr [esi + 0x6c] */ 1210 ecx = 0x3630DBB8u; /* 0x3611136C: mov ecx, 0x3630dbb8 */ 1211 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36111371: fmulp st(1) */ 1212 _st[0] += (double)*(float*)ADDR(esi + 0x6C); /* 0x36111373: fadd dword ptr [esi + 0x6c] */ 1213 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36111376: fstp dword ptr [ebp - 0x18] */ 1214 RECOMP_ICALL(0x3615BCE0u); /* 0x36111379: call 0x3615bce0 */ /* not lifted */ 1215 RECOMP_FLAGS_IN(); 1216 fp_push(*(float*)&MEM32(esi + 0x78)); /* 0x3611137E: fld dword ptr [esi + 0x78] */ 1217 _st[0] -= (double)*(float*)ADDR(esi + 0x74); /* 0x36111381: fsub dword ptr [esi + 0x74] */ 1218 ecx = 0x3630DBB8u; /* 0x36111384: mov ecx, 0x3630dbb8 */ 1219 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36111389: fmulp st(1) */ 1220 _st[0] += (double)*(float*)ADDR(esi + 0x74); /* 0x3611138B: fadd dword ptr [esi + 0x74] */ 1221 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3611138E: fstp dword ptr [ebp - 0x14] */ 1222 RECOMP_ICALL(0x3615BCE0u); /* 0x36111391: call 0x3615bce0 */ /* not lifted */ 1223 RECOMP_FLAGS_IN(); 1224 fp_push(*(float*)&MEM32(esi + 0x80)); /* 0x36111396: fld dword ptr [esi + 0x80] */ 1225 _st[0] -= (double)*(float*)ADDR(esi + 0x7C); /* 0x3611139C: fsub dword ptr [esi + 0x7c] */ 1226 { double _v = fp_pop(); _st[0] *= _v; } /* 0x3611139F: fmulp st(1) */ 1227 _st[0] += (double)*(float*)ADDR(esi + 0x7C); /* 0x361113A1: fadd dword ptr [esi + 0x7c] */ 1228 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361113A4: fld dword ptr [ebp - 0x14] */ 1229 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x361113A7: fcos */ 1230 _st[0] *= _st[1]; /* 0x361113A9: fmul st(1) */ 1231 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361113AB: fstp dword ptr [ebp - 0x10] */ 1232 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361113AE: fld dword ptr [ebp - 0x18] */ 1233 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x361113B1: fcos */ 1234 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361113B3: fmul dword ptr [ebp - 0x10] */ 1235 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361113B6: fstp dword ptr [ebp - 0x24] */ 1236 eax = MEM32(ebp + (-0x24)); /* 0x361113B9: mov eax, dword ptr [ebp - 0x24] */ 1237 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361113BC: fld dword ptr [ebp - 0x14] */ 1238 MEM32(ebp + (-0xC)) = eax; /* 0x361113BF: mov dword ptr [ebp - 0xc], eax */ 1239 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361113C2: fsin */ 1240 eax = ebp + (-0x94); /* 0x361113C4: lea eax, [ebp - 0x94] */ 1241 PUSH32(esp, eax); /* 0x361113CA: push eax */ 1242 _st[0] *= _st[1]; /* 0x361113CB: fmul st(1) */ 1243 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361113CD: fstp dword ptr [ebp - 0x20] */ 1244 ecx = MEM32(ebp + (-0x20)); /* 0x361113D0: mov ecx, dword ptr [ebp - 0x20] */ 1245 MEM32(ebp + (-0x8)) = ecx; /* 0x361113D3: mov dword ptr [ebp - 8], ecx */ 1246 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361113D6: fstp st(0) */ 1247 ecx = MEM32(esi + 0x20); /* 0x361113D8: mov ecx, dword ptr [esi + 0x20] */ 1248 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361113DB: fld dword ptr [ebp - 0x18] */ 1249 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361113DE: fsin */ 1250 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361113E0: fmul dword ptr [ebp - 0x10] */ 1251 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361113E3: fstp dword ptr [ebp - 0x1c] */ 1252 edx = MEM32(ebp + (-0x1C)); /* 0x361113E6: mov edx, dword ptr [ebp - 0x1c] */ 1253 MEM32(ebp + (-0x4)) = edx; /* 0x361113E9: mov dword ptr [ebp - 4], edx */ 1254 RECOMP_ICALL(0x36133F00u); /* 0x361113EC: call 0x36133f00 */ /* not lifted */ 1255 RECOMP_FLAGS_IN(); 1256 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x361113F1: fld dword ptr [ebp - 4] */ 1257 _st[0] *= (double)*(float*)ADDR(eax + 0x24); /* 0x361113F4: fmul dword ptr [eax + 0x24] */ 1258 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x361113F7: fld dword ptr [ebp - 8] */ 1259 _st[0] *= (double)*(float*)ADDR(eax + 0x14); /* 0x361113FA: fmul dword ptr [eax + 0x14] */ 1260 { double _v = fp_pop(); _st[0] += _v; } /* 0x361113FD: faddp st(1) */ 1261 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x361113FF: fld dword ptr [ebp - 0xc] */ 1262 _st[0] *= (double)*(float*)ADDR(eax + 0x4); /* 0x36111402: fmul dword ptr [eax + 4] */ 1263 { double _v = fp_pop(); _st[0] += _v; } /* 0x36111405: faddp st(1) */ 1264 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36111407: fld dword ptr [ebp - 4] */ 1265 _st[0] *= (double)*(float*)ADDR(eax + 0x28); /* 0x3611140A: fmul dword ptr [eax + 0x28] */ 1266 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3611140D: fld dword ptr [ebp - 8] */ 1267 edx = MEM32(ebp + 0x8); /* 0x36111410: mov edx, dword ptr [ebp + 8] */ 1268 _st[0] *= (double)*(float*)ADDR(eax + 0x18); /* 0x36111413: fmul dword ptr [eax + 0x18] */ 1269 { double _v = fp_pop(); _st[0] += _v; } /* 0x36111416: faddp st(1) */ 1270 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36111418: fld dword ptr [ebp - 0xc] */ 1271 _st[0] *= (double)*(float*)ADDR(eax + 0x8); /* 0x3611141B: fmul dword ptr [eax + 8] */ 1272 { double _v = fp_pop(); _st[0] += _v; } /* 0x3611141E: faddp st(1) */ 1273 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36111420: fstp dword ptr [ebp - 0x28] */ 1274 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36111423: fld dword ptr [ebp - 4] */ 1275 ecx = MEM32(ebp + (-0x28)); /* 0x36111426: mov ecx, dword ptr [ebp - 0x28] */ 1276 _st[0] *= (double)*(float*)ADDR(eax + 0x20); /* 0x36111429: fmul dword ptr [eax + 0x20] */ 1277 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3611142C: fld dword ptr [ebp - 8] */ 1278 _st[0] *= (double)*(float*)ADDR(eax + 0x10); /* 0x3611142F: fmul dword ptr [eax + 0x10] */ 1279 { double _v = fp_pop(); _st[0] += _v; } /* 0x36111432: faddp st(1) */ 1280 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36111434: fld dword ptr [ebp - 0xc] */ 1281 _st[0] *= (double)*(float*)ADDR(eax); /* 0x36111437: fmul dword ptr [eax] */ 1282 eax = MEM32(edx); /* 0x36111439: mov eax, dword ptr [edx] */ 1283 MEM32(ebp + (-0x4)) = ecx; /* 0x3611143B: mov dword ptr [ebp - 4], ecx */ 1284 ecx = MEM32(edx + 0x4); /* 0x3611143E: mov ecx, dword ptr [edx + 4] */ 1285 edx = MEM32(edx + 0x8); /* 0x36111441: mov edx, dword ptr [edx + 8] */ 1286 { double _v = fp_pop(); _st[0] += _v; } /* 0x36111444: faddp st(1) */ 1287 MEM32(ebp + (-0x50)) = eax; /* 0x36111446: mov dword ptr [ebp - 0x50], eax */ 1288 MEM32(ebp + (-0x4C)) = ecx; /* 0x36111449: mov dword ptr [ebp - 0x4c], ecx */ 1289 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3611144C: fstp dword ptr [ebp - 0xc] */ 1290 eax = MEM32(ebp + (-0xC)); /* 0x3611144F: mov eax, dword ptr [ebp - 0xc] */ 1291 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36111452: fstp dword ptr [ebp - 8] */ 1292 ecx = MEM32(ebp + (-0x8)); /* 0x36111455: mov ecx, dword ptr [ebp - 8] */ 1293 fp_push(*(float*)&MEM32(esi + 0x88)); /* 0x36111458: fld dword ptr [esi + 0x88] */ 1294 MEM32(ebp + (-0x20)) = ecx; /* 0x3611145E: mov dword ptr [ebp - 0x20], ecx */ 1295 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36111461: fld dword ptr [ebp - 0xc] */ 1296 MEM32(ebp + (-0x24)) = eax; /* 0x36111464: mov dword ptr [ebp - 0x24], eax */ 1297 _st[0] *= _st[1]; /* 0x36111467: fmul st(1) */ 1298 MEM32(ebp + (-0x48)) = edx; /* 0x36111469: mov dword ptr [ebp - 0x48], edx */ 1299 edx = MEM32(ebp + (-0x4)); /* 0x3611146C: mov edx, dword ptr [ebp - 4] */ 1300 MEM32(ebp + (-0x1C)) = edx; /* 0x3611146F: mov dword ptr [ebp - 0x1c], edx */ 1301 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36111472: fstp dword ptr [ebp - 0x24] */ 1302 eax = MEM32(ebp + (-0x24)); /* 0x36111475: mov eax, dword ptr [ebp - 0x24] */ 1303 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36111478: fld dword ptr [ebp - 0x20] */ 1304 MEM32(ebp + (-0xC)) = eax; /* 0x3611147B: mov dword ptr [ebp - 0xc], eax */ 1305 _st[0] *= _st[1]; /* 0x3611147E: fmul st(1) */ 1306 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36111480: fstp dword ptr [ebp - 0x20] */ 1307 ecx = MEM32(ebp + (-0x20)); /* 0x36111483: mov ecx, dword ptr [ebp - 0x20] */ 1308 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36111486: fld dword ptr [ebp - 0x1c] */ 1309 MEM32(ebp + (-0x8)) = ecx; /* 0x36111489: mov dword ptr [ebp - 8], ecx */ 1310 _st[0] *= _st[1]; /* 0x3611148C: fmul st(1) */ 1311 ecx = 0x3630DBB8u; /* 0x3611148E: mov ecx, 0x3630dbb8 */ 1312 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36111493: fstp dword ptr [ebp - 0x1c] */ 1313 edx = MEM32(ebp + (-0x1C)); /* 0x36111496: mov edx, dword ptr [ebp - 0x1c] */ 1314 MEM32(ebp + (-0x4)) = edx; /* 0x36111499: mov dword ptr [ebp - 4], edx */ 1315 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3611149C: fstp st(0) */ 1316 RECOMP_ICALL(0x3615BCE0u); /* 0x3611149E: call 0x3615bce0 */ /* not lifted */ 1317 RECOMP_FLAGS_IN(); 1318 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x361114A3: fld dword ptr [esi + 0x94] */ 1319 eax = MEM32(esi + 0x48); /* 0x361114A9: mov eax, dword ptr [esi + 0x48] */ 1320 _st[0] -= (double)*(float*)ADDR(esi + 0x90); /* 0x361114AC: fsub dword ptr [esi + 0x90] */ 1321 ecx = MEM32(esi + 0x4C); /* 0x361114B2: mov ecx, dword ptr [esi + 0x4c] */ 1322 edx = MEM32(esi + 0x50); /* 0x361114B5: mov edx, dword ptr [esi + 0x50] */ 1323 { double _v = fp_pop(); _st[0] *= _v; } /* 0x361114B8: fmulp st(1) */ 1324 MEM32(ebp + (-0x38)) = eax; /* 0x361114BA: mov dword ptr [ebp - 0x38], eax */ 1325 eax = MEM32(esi + 0x54); /* 0x361114BD: mov eax, dword ptr [esi + 0x54] */ 1326 _st[0] += (double)*(float*)ADDR(esi + 0x90); /* 0x361114C0: fadd dword ptr [esi + 0x90] */ 1327 MEM32(ebp + (-0x2C)) = ecx; /* 0x361114C6: mov dword ptr [ebp - 0x2c], ecx */ 1328 MEM32(ebp + (-0x14)) = edx; /* 0x361114C9: mov dword ptr [ebp - 0x14], edx */ 1329 MEM32(ebp + (-0x18)) = eax; /* 0x361114CC: mov dword ptr [ebp - 0x18], eax */ 1330 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x361114CF: fstp dword ptr [ebp - 0x34] */ 1331 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361114D2: fld dword ptr [0x36170380] */ 1332 _st[0] /= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x361114D8: fdiv dword ptr [ebp - 0x34] */ 1333 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + 0x8) = _v; } /* 0x361114DB: fstp dword ptr [ebp + 8] */ 1334 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x361114DE: fld dword ptr [esi + 0x58] */ 1335 _st[0] -= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x361114E1: fsub dword ptr [ebp - 0x38] */ 1336 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x361114E4: fmul dword ptr [ebp + 8] */ 1337 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x44)) = _v; } /* 0x361114E7: fstp dword ptr [ebp - 0x44] */ 1338 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x361114EA: fld dword ptr [esi + 0x5c] */ 1339 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x361114ED: fsub dword ptr [ebp - 0x2c] */ 1340 ecx = MEM32(esi + 0xAC); /* 0x361114F0: mov ecx, dword ptr [esi + 0xac] */ 1341 edx = MEM32(esi + 0x40); /* 0x361114F6: mov edx, dword ptr [esi + 0x40] */ 1342 eax = MEM32(esi + 0x38); /* 0x361114F9: mov eax, dword ptr [esi + 0x38] */ 1343 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x361114FC: fmul dword ptr [ebp + 8] */ 1344 MEM32(ebp + (-0x10)) = ecx; /* 0x361114FF: mov dword ptr [ebp - 0x10], ecx */ 1345 PUSH32(esp, 1); /* 0x36111502: push 1 */ 1346 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36111504: fstp dword ptr [ebp - 0x3c] */ 1347 ecx = 0x3630DBB8u; /* 0x36111507: mov ecx, 0x3630dbb8 */ 1348 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x3611150C: fld dword ptr [esi + 0x60] */ 1349 MEM32(ebp + (-0x30)) = edx; /* 0x3611150F: mov dword ptr [ebp - 0x30], edx */ 1350 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36111512: fsub dword ptr [ebp - 0x14] */ 1351 MEM32(ebp + (-0x28)) = eax; /* 0x36111515: mov dword ptr [ebp - 0x28], eax */ 1352 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x36111518: fmul dword ptr [ebp + 8] */ 1353 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x54)) = _v; } /* 0x3611151B: fstp dword ptr [ebp - 0x54] */ 1354 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x3611151E: fld dword ptr [esi + 0x64] */ 1355 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36111521: fsub dword ptr [ebp - 0x18] */ 1356 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x36111524: fmul dword ptr [ebp + 8] */ 1357 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x40)) = _v; } /* 0x36111527: fstp dword ptr [ebp - 0x40] */ 1358 RECOMP_ICALL(0x3615BCE0u); /* 0x3611152A: call 0x3615bce0 */ /* not lifted */ 1359 RECOMP_FLAGS_IN(); 1360 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x3611152F: fmul dword ptr [0x36170824] */ 1361 PUSH32(esp, ecx); /* 0x36111535: push ecx */ 1362 edx = MEM32(ebp + (-0x10)); /* 0x36111536: mov edx, dword ptr [ebp - 0x10] */ 1363 eax = MEM32(ebp + (-0x40)); /* 0x36111539: mov eax, dword ptr [ebp - 0x40] */ 1364 _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x3611153C: fadd dword ptr [0x36170d68] */ 1365 _st[0] *= (double)*(float*)ADDR(esi + 0xA4); /* 0x36111542: fmul dword ptr [esi + 0xa4] */ 1366 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111548: fstp dword ptr [esp] */ 1367 PUSH32(esp, ecx); /* 0x3611154B: push ecx */ 1368 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x3611154C: fld dword ptr [ebp - 0x4c] */ 1369 _st[0] += (double)*(float*)ADDR(esi + 0x9C); /* 0x3611154F: fadd dword ptr [esi + 0x9c] */ 1370 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111555: fstp dword ptr [esp] */ 1371 PUSH32(esp, ecx); /* 0x36111558: push ecx */ 1372 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x36111559: fld dword ptr [ebp - 0x4c] */ 1373 ecx = MEM32(esi + 0xA0); /* 0x3611155C: mov ecx, dword ptr [esi + 0xa0] */ 1374 _st[0] += (double)*(float*)ADDR(esi + 0x98); /* 0x36111562: fadd dword ptr [esi + 0x98] */ 1375 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111568: fstp dword ptr [esp] */ 1376 PUSH32(esp, ecx); /* 0x3611156B: push ecx */ 1377 fp_push(*(float*)&MEM32(esi + 0xB0)); /* 0x3611156C: fld dword ptr [esi + 0xb0] */ 1378 PUSH32(esp, ecx); /* 0x36111572: push ecx */ 1379 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36111573: fsub dword ptr [ebp - 0x10] */ 1380 ecx = MEM32(ebp + (-0x54)); /* 0x36111576: mov ecx, dword ptr [ebp - 0x54] */ 1381 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x36111579: fmul dword ptr [ebp + 8] */ 1382 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611157C: fstp dword ptr [esp] */ 1383 PUSH32(esp, edx); /* 0x3611157F: push edx */ 1384 edx = MEM32(ebp + (-0x3C)); /* 0x36111580: mov edx, dword ptr [ebp - 0x3c] */ 1385 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36111583: fld dword ptr [esi + 0x44] */ 1386 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36111586: fsub dword ptr [ebp - 0x30] */ 1387 PUSH32(esp, eax); /* 0x36111589: push eax */ 1388 eax = MEM32(ebp + (-0x44)); /* 0x3611158A: mov eax, dword ptr [ebp - 0x44] */ 1389 PUSH32(esp, ecx); /* 0x3611158D: push ecx */ 1390 ecx = MEM32(ebp + (-0x18)); /* 0x3611158E: mov ecx, dword ptr [ebp - 0x18] */ 1391 PUSH32(esp, edx); /* 0x36111591: push edx */ 1392 edx = MEM32(ebp + (-0x14)); /* 0x36111592: mov edx, dword ptr [ebp - 0x14] */ 1393 PUSH32(esp, eax); /* 0x36111595: push eax */ 1394 eax = MEM32(ebp + (-0x2C)); /* 0x36111596: mov eax, dword ptr [ebp - 0x2c] */ 1395 PUSH32(esp, ecx); /* 0x36111599: push ecx */ 1396 ecx = MEM32(ebp + (-0x38)); /* 0x3611159A: mov ecx, dword ptr [ebp - 0x38] */ 1397 PUSH32(esp, edx); /* 0x3611159D: push edx */ 1398 edx = MEM32(ebp + (-0x34)); /* 0x3611159E: mov edx, dword ptr [ebp - 0x34] */ 1399 PUSH32(esp, eax); /* 0x361115A1: push eax */ 1400 eax = MEM32(ebp + (-0x30)); /* 0x361115A2: mov eax, dword ptr [ebp - 0x30] */ 1401 PUSH32(esp, ecx); /* 0x361115A5: push ecx */ 1402 PUSH32(esp, 0xFFFFFFFFu); /* 0x361115A6: push -1 */ 1403 PUSH32(esp, edx); /* 0x361115A8: push edx */ 1404 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x361115A9: fmul dword ptr [ebp + 8] */ 1405 PUSH32(esp, ecx); /* 0x361115AC: push ecx */ 1406 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361115AD: fstp dword ptr [esp] */ 1407 PUSH32(esp, ecx); /* 0x361115B0: push ecx */ 1408 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x361115B1: fld dword ptr [esi + 0x3c] */ 1409 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x361115B4: fsub dword ptr [ebp - 0x28] */ 1410 _st[0] *= (double)*(float*)ADDR(ebp + 0x8); /* 0x361115B7: fmul dword ptr [ebp + 8] */ 1411 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361115BA: fstp dword ptr [esp] */ 1412 ecx = MEM32(ebp + (-0x28)); /* 0x361115BD: mov ecx, dword ptr [ebp - 0x28] */ 1413 PUSH32(esp, eax); /* 0x361115C0: push eax */ 1414 PUSH32(esp, ecx); /* 0x361115C1: push ecx */ 1415 ecx = MEM32(esi + 0x24); /* 0x361115C2: mov ecx, dword ptr [esi + 0x24] */ 1416 edx = ebp + (-0xC); /* 0x361115C5: lea edx, [ebp - 0xc] */ 1417 PUSH32(esp, edx); /* 0x361115C8: push edx */ 1418 eax = ebp + (-0x50); /* 0x361115C9: lea eax, [ebp - 0x50] */ 1419 PUSH32(esp, eax); /* 0x361115CC: push eax */ 1420 RECOMP_ICALL(MEM32(0x3616F7D0)); /* 0x361115CD: call dword ptr [0x3616f7d0] */ 1421 RECOMP_FLAGS_IN(); 1422 esi = POP32_VAL(esp); /* 0x361115D3: pop esi */ 1423 esp = ebp; /* 0x361115D4: mov esp, ebp */ 1424 ebp = POP32_VAL(esp); /* 0x361115D6: pop ebp */ 1425 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361115D7: ret 4 */ 1426 RECOMP_REGS_OUT(); 1427 } 1428 1429 void sub_361115E0(void) { 1430 int _fpu_cmp = 0; 1431 uint32_t _cf = 0; 1432 int _df = 1; 1433 uint32_t _flag_k = FK_NONE; 1434 uint32_t _flag_a = 0, _flag_b = 0; 1435 uint32_t _itail_tgt = 0; 1436 RECOMP_REGS_LOCALS 1437 RECOMP_ENTER(0x361115E0u); 1438 1439 L_361115E0: 1440 PUSH32(esp, ebp); /* 0x361115E0: push ebp */ 1441 ebp = esp; /* 0x361115E1: mov ebp, esp */ 1442 PUSH32(esp, 0xFFFFFFFFu); /* 0x361115E3: push -1 */ 1443 PUSH32(esp, 0x3616ABF3u); /* 0x361115E5: push 0x3616abf3 */ 1444 eax = MEM32(FS_BASE + (0)); /* 0x361115EA: mov eax, dword ptr fs:[0] */ 1445 PUSH32(esp, eax); /* 0x361115F0: push eax */ 1446 MEM32(FS_BASE + (0)) = esp; /* 0x361115F1: mov dword ptr fs:[0], esp */ 1447 PUSH32(esp, ecx); /* 0x361115F8: push ecx */ 1448 eax = MEM32(ebp + 0x8); /* 0x361115F9: mov eax, dword ptr [ebp + 8] */ 1449 PUSH32(esp, ebx); /* 0x361115FC: push ebx */ 1450 PUSH32(esp, esi); /* 0x361115FD: push esi */ 1451 PUSH32(esp, edi); /* 0x361115FE: push edi */ 1452 esi = ecx; /* 0x361115FF: mov esi, ecx */ 1453 PUSH32(esp, eax); /* 0x36111601: push eax */ 1454 MEM32(ebp + (-0x10)) = esi; /* 0x36111602: mov dword ptr [ebp - 0x10], esi */ 1455 RECOMP_ICALL(0x360FC270u); /* 0x36111605: call 0x360fc270 */ /* not lifted */ 1456 RECOMP_FLAGS_IN(); 1457 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1458 ebx = 0; /* 0x3611160A: xor ebx, ebx */ 1459 _cf = 0; 1460 _flag_k = FK_TEST; 1461 MEM32(esi + 0x20) = ebx; /* 0x3611160C: mov dword ptr [esi + 0x20], ebx */ 1462 MEM32(esi + 0x24) = ebx; /* 0x3611160F: mov dword ptr [esi + 0x24], ebx */ 1463 MEM32(esi + 0xA8) = ebx; /* 0x36111612: mov dword ptr [esi + 0xa8], ebx */ 1464 MEM32(esi + 0xB4) = ebx; /* 0x36111618: mov dword ptr [esi + 0xb4], ebx */ 1465 MEM32(esi + 0xB8) = ebx; /* 0x3611161E: mov dword ptr [esi + 0xb8], ebx */ 1466 MEM32(esi + 0xBC) = ebx; /* 0x36111624: mov dword ptr [esi + 0xbc], ebx */ 1467 ecx = esi; /* 0x3611162A: mov ecx, esi */ 1468 MEM32(ebp + (-0x4)) = ebx; /* 0x3611162C: mov dword ptr [ebp - 4], ebx */ 1469 MEM32(esi) = 0x361769ACu; /* 0x3611162F: mov dword ptr [esi], 0x361769ac */ 1470 RECOMP_ICALL(0x36112140u); /* 0x36111635: call 0x36112140 */ /* not lifted */ 1471 RECOMP_FLAGS_IN(); 1472 ecx = MEM32(esi + 0x4); /* 0x3611163A: mov ecx, dword ptr [esi + 4] */ 1473 PUSH32(esp, ecx); /* 0x3611163D: push ecx */ 1474 RECOMP_ICALL(0x360F7B00u); /* 0x3611163E: call 0x360f7b00 */ /* not lifted */ 1475 RECOMP_FLAGS_IN(); 1476 ecx = eax; /* 0x36111643: mov ecx, eax */ 1477 RECOMP_ICALL(0x360FBFF0u); /* 0x36111645: call 0x360fbff0 */ /* not lifted */ 1478 RECOMP_FLAGS_IN(); 1479 ecx = eax; /* 0x3611164A: mov ecx, eax */ 1480 RECOMP_ICALL(0x361371A0u); /* 0x3611164C: call 0x361371a0 */ /* not lifted */ 1481 RECOMP_FLAGS_IN(); 1482 PUSH32(esp, 0x10Cu); /* 0x36111651: push 0x10c */ 1483 edi = eax; /* 0x36111656: mov edi, eax */ 1484 RECOMP_ICALL(0x3615FD6Au); /* 0x36111658: call 0x3615fd6a */ /* not lifted */ 1485 RECOMP_FLAGS_IN(); 1486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1488 esp = esp + 4; /* 0x3611165D: add esp, 4 */ 1489 _flag_k = FK_ADD; 1490 MEM32(ebp + 0x8) = eax; /* 0x36111660: mov dword ptr [ebp + 8], eax */ 1491 /* cmp eax, ebx */ /* 0x36111663: cmp eax, ebx */ 1492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1494 _flag_k = FK_CMP; 1495 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36111665: mov byte ptr [ebp - 4], 1 */ 1496 if (CMP_EQ(_flag_a, _flag_b)) goto L_36111674; /* 0x36111669: je 0x36111674 */ 1497 L_3611166B: 1498 ecx = eax; /* 0x3611166B: mov ecx, eax */ 1499 RECOMP_ICALL(0x36132920u); /* 0x3611166D: call 0x36132920 */ /* not lifted */ 1500 RECOMP_FLAGS_IN(); 1501 goto L_36111676; /* 0x36111672: jmp 0x36111676 */ 1502 L_36111674: 1503 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1504 eax = 0; /* 0x36111674: xor eax, eax */ 1505 _cf = 0; 1506 _flag_k = FK_TEST; 1507 L_36111676: 1508 MEM32(esi + 0x20) = eax; /* 0x36111676: mov dword ptr [esi + 0x20], eax */ 1509 eax = MEM32(esi + 0x28); /* 0x36111679: mov eax, dword ptr [esi + 0x28] */ 1510 edx = eax; /* 0x3611167C: mov edx, eax */ 1511 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1512 edx = edx & 2; /* 0x3611167E: and edx, 2 */ 1513 _cf = 0; 1514 _flag_k = FK_TEST; 1515 /* cmp LO8(edx), 2 */ /* 0x36111681: cmp dl, 2 */ 1516 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 1517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1518 _flag_k = FK_NARROW(FK_CMP, 24); 1519 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36111684: sete cl */ 1520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1521 eax = eax & 1; /* 0x36111687: and eax, 1 */ 1522 _cf = 0; 1523 _flag_k = FK_TEST; 1524 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1525 SET_LO8(eax, LO8(eax) - 1); /* 0x3611168A: dec al */ 1526 _flag_k = FK_NARROW(FK_DEC, 24); 1527 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1528 _cf = (LO8(eax)) != 0; 1529 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3611168C: neg al */ 1530 _flag_k = FK_NARROW(FK_CMP, 24); 1531 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611168E: sbb al, al */ 1532 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1533 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1534 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1535 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1536 SET_LO8(eax, LO8(eax) + 1); /* 0x36111690: inc al */ 1537 _flag_k = FK_NARROW(FK_INC, 24); 1538 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36111692: mov byte ptr [ebp - 4], bl */ 1539 PUSH32(esp, ecx); /* 0x36111695: push ecx */ 1540 ecx = edi; /* 0x36111696: mov ecx, edi */ 1541 PUSH32(esp, eax); /* 0x36111698: push eax */ 1542 PUSH32(esp, 7); /* 0x36111699: push 7 */ 1543 RECOMP_ICALL(0x36136FE0u); /* 0x3611169B: call 0x36136fe0 */ /* not lifted */ 1544 RECOMP_FLAGS_IN(); 1545 edx = MEM32(esi + 0x28); /* 0x361116A0: mov edx, dword ptr [esi + 0x28] */ 1546 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1547 edx = edx & 4; /* 0x361116A3: and edx, 4 */ 1548 _cf = 0; 1549 _flag_k = FK_TEST; 1550 PUSH32(esp, eax); /* 0x361116A6: push eax */ 1551 /* cmp LO8(edx), 4 */ /* 0x361116A7: cmp dl, 4 */ 1552 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 1553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1554 _flag_k = FK_NARROW(FK_CMP, 24); 1555 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361116AA: sete al */ 1556 ecx = edi; /* 0x361116AD: mov ecx, edi */ 1557 PUSH32(esp, eax); /* 0x361116AF: push eax */ 1558 PUSH32(esp, 6); /* 0x361116B0: push 6 */ 1559 RECOMP_ICALL(0x36137010u); /* 0x361116B2: call 0x36137010 */ /* not lifted */ 1560 RECOMP_FLAGS_IN(); 1561 PUSH32(esp, ecx); /* 0x361116B7: push ecx */ 1562 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361116B8: fstp dword ptr [esp] */ 1563 PUSH32(esp, 5); /* 0x361116BB: push 5 */ 1564 ecx = edi; /* 0x361116BD: mov ecx, edi */ 1565 RECOMP_ICALL(0x36137010u); /* 0x361116BF: call 0x36137010 */ /* not lifted */ 1566 RECOMP_FLAGS_IN(); 1567 PUSH32(esp, ecx); /* 0x361116C4: push ecx */ 1568 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361116C5: fstp dword ptr [esp] */ 1569 PUSH32(esp, 4); /* 0x361116C8: push 4 */ 1570 ecx = edi; /* 0x361116CA: mov ecx, edi */ 1571 RECOMP_ICALL(0x36137010u); /* 0x361116CC: call 0x36137010 */ /* not lifted */ 1572 RECOMP_FLAGS_IN(); 1573 PUSH32(esp, ecx); /* 0x361116D1: push ecx */ 1574 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361116D2: fstp dword ptr [esp] */ 1575 PUSH32(esp, 3); /* 0x361116D5: push 3 */ 1576 ecx = edi; /* 0x361116D7: mov ecx, edi */ 1577 RECOMP_ICALL(0x36137010u); /* 0x361116D9: call 0x36137010 */ /* not lifted */ 1578 RECOMP_FLAGS_IN(); 1579 PUSH32(esp, ecx); /* 0x361116DE: push ecx */ 1580 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361116DF: fstp dword ptr [esp] */ 1581 PUSH32(esp, 2); /* 0x361116E2: push 2 */ 1582 ecx = edi; /* 0x361116E4: mov ecx, edi */ 1583 RECOMP_ICALL(0x36137010u); /* 0x361116E6: call 0x36137010 */ /* not lifted */ 1584 RECOMP_FLAGS_IN(); 1585 PUSH32(esp, ecx); /* 0x361116EB: push ecx */ 1586 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361116EC: fstp dword ptr [esp] */ 1587 PUSH32(esp, 1); /* 0x361116EF: push 1 */ 1588 ecx = edi; /* 0x361116F1: mov ecx, edi */ 1589 RECOMP_ICALL(0x36137010u); /* 0x361116F3: call 0x36137010 */ /* not lifted */ 1590 RECOMP_FLAGS_IN(); 1591 PUSH32(esp, ecx); /* 0x361116F8: push ecx */ 1592 ecx = MEM32(ebp + 0xC); /* 0x361116F9: mov ecx, dword ptr [ebp + 0xc] */ 1593 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361116FC: fstp dword ptr [esp] */ 1594 PUSH32(esp, ecx); /* 0x361116FF: push ecx */ 1595 ecx = MEM32(esi + 0x20); /* 0x36111700: mov ecx, dword ptr [esi + 0x20] */ 1596 RECOMP_ICALL(0x36132A30u); /* 0x36111703: call 0x36132a30 */ /* not lifted */ 1597 RECOMP_FLAGS_IN(); 1598 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1599 _cf = (LO8(eax)) != 0; 1600 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36111708: neg al */ 1601 _flag_k = FK_NARROW(FK_CMP, 24); 1602 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611170A: sbb al, al */ 1603 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1604 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1605 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1606 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1607 SET_LO8(eax, LO8(eax) + 1); /* 0x3611170C: inc al */ 1608 _flag_k = FK_NARROW(FK_INC, 24); 1609 ecx = esi; /* 0x3611170E: mov ecx, esi */ 1610 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36111710: mov byte ptr [esi + 0x14], al */ 1611 RECOMP_ICALL(0x36112310u); /* 0x36111713: call 0x36112310 */ /* not lifted */ 1612 RECOMP_FLAGS_IN(); 1613 ecx = MEM32(ebp + (-0xC)); /* 0x36111718: mov ecx, dword ptr [ebp - 0xc] */ 1614 edi = POP32_VAL(esp); /* 0x3611171B: pop edi */ 1615 eax = esi; /* 0x3611171C: mov eax, esi */ 1616 esi = POP32_VAL(esp); /* 0x3611171E: pop esi */ 1617 ebx = POP32_VAL(esp); /* 0x3611171F: pop ebx */ 1618 MEM32(FS_BASE + (0)) = ecx; /* 0x36111720: mov dword ptr fs:[0], ecx */ 1619 esp = ebp; /* 0x36111727: mov esp, ebp */ 1620 ebp = POP32_VAL(esp); /* 0x36111729: pop ebp */ 1621 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3611172A: ret 8 */ 1622 RECOMP_REGS_OUT(); 1623 } 1624 1625 void sub_36111730(void) { 1626 int _fpu_cmp = 0; 1627 uint32_t _cf = 0; 1628 int _df = 1; 1629 uint32_t _flag_k = FK_NONE; 1630 uint32_t _flag_a = 0, _flag_b = 0; 1631 uint32_t _itail_tgt = 0; 1632 RECOMP_REGS_LOCALS 1633 RECOMP_ENTER(0x36111730u); 1634 1635 L_36111730: 1636 PUSH32(esp, ebp); /* 0x36111730: push ebp */ 1637 ebp = esp; /* 0x36111731: mov ebp, esp */ 1638 PUSH32(esp, esi); /* 0x36111733: push esi */ 1639 esi = ecx; /* 0x36111734: mov esi, ecx */ 1640 RECOMP_ICALL(0x36111B60u); /* 0x36111736: call 0x36111b60 */ /* not lifted */ 1641 RECOMP_FLAGS_IN(); 1642 /* test MEM8(ebp + 0x8), 1 */ /* 0x3611173B: test byte ptr [ebp + 8], 1 */ 1643 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1644 _cf = 0; 1645 _flag_k = FK_NARROW(FK_TEST, 24); 1646 if (TEST_Z(_flag_a, _flag_b)) goto L_3611174A; /* 0x3611173F: je 0x3611174a */ 1647 L_36111741: 1648 PUSH32(esp, esi); /* 0x36111741: push esi */ 1649 RECOMP_ICALL(0x3615FCC4u); /* 0x36111742: call 0x3615fcc4 */ /* not lifted */ 1650 RECOMP_FLAGS_IN(); 1651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1653 esp = esp + 4; /* 0x36111747: add esp, 4 */ 1654 _flag_k = FK_ADD; 1655 L_3611174A: 1656 eax = esi; /* 0x3611174A: mov eax, esi */ 1657 esi = POP32_VAL(esp); /* 0x3611174C: pop esi */ 1658 ebp = POP32_VAL(esp); /* 0x3611174D: pop ebp */ 1659 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611174E: ret 4 */ 1660 RECOMP_REGS_OUT(); 1661 } 1662 1663 void sub_36111760(void) { 1664 int _fpu_cmp = 0; 1665 uint32_t _cf = 0; 1666 int _df = 1; 1667 uint32_t _flag_k = FK_NONE; 1668 uint32_t _flag_a = 0, _flag_b = 0; 1669 uint32_t _itail_tgt = 0; 1670 RECOMP_REGS_LOCALS 1671 RECOMP_ENTER(0x36111760u); 1672 1673 L_36111760: 1674 PUSH32(esp, ebp); /* 0x36111760: push ebp */ 1675 ebp = esp; /* 0x36111761: mov ebp, esp */ 1676 PUSH32(esp, 0xFFFFFFFFu); /* 0x36111763: push -1 */ 1677 PUSH32(esp, 0x3616AC13u); /* 0x36111765: push 0x3616ac13 */ 1678 eax = MEM32(FS_BASE + (0)); /* 0x3611176A: mov eax, dword ptr fs:[0] */ 1679 PUSH32(esp, eax); /* 0x36111770: push eax */ 1680 MEM32(FS_BASE + (0)) = esp; /* 0x36111771: mov dword ptr fs:[0], esp */ 1681 PUSH32(esp, ecx); /* 0x36111778: push ecx */ 1682 eax = MEM32(ebp + 0x8); /* 0x36111779: mov eax, dword ptr [ebp + 8] */ 1683 PUSH32(esp, ebx); /* 0x3611177C: push ebx */ 1684 PUSH32(esp, esi); /* 0x3611177D: push esi */ 1685 PUSH32(esp, edi); /* 0x3611177E: push edi */ 1686 esi = ecx; /* 0x3611177F: mov esi, ecx */ 1687 PUSH32(esp, eax); /* 0x36111781: push eax */ 1688 MEM32(ebp + (-0x10)) = esi; /* 0x36111782: mov dword ptr [ebp - 0x10], esi */ 1689 RECOMP_ICALL(0x360FC270u); /* 0x36111785: call 0x360fc270 */ /* not lifted */ 1690 RECOMP_FLAGS_IN(); 1691 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1692 ebx = 0; /* 0x3611178A: xor ebx, ebx */ 1693 _cf = 0; 1694 _flag_k = FK_TEST; 1695 MEM32(esi + 0x20) = ebx; /* 0x3611178C: mov dword ptr [esi + 0x20], ebx */ 1696 MEM32(esi + 0x24) = ebx; /* 0x3611178F: mov dword ptr [esi + 0x24], ebx */ 1697 MEM32(esi + 0xA8) = ebx; /* 0x36111792: mov dword ptr [esi + 0xa8], ebx */ 1698 MEM32(esi + 0xB4) = ebx; /* 0x36111798: mov dword ptr [esi + 0xb4], ebx */ 1699 MEM32(esi + 0xB8) = ebx; /* 0x3611179E: mov dword ptr [esi + 0xb8], ebx */ 1700 MEM32(esi + 0xBC) = ebx; /* 0x361117A4: mov dword ptr [esi + 0xbc], ebx */ 1701 ecx = esi; /* 0x361117AA: mov ecx, esi */ 1702 MEM32(ebp + (-0x4)) = ebx; /* 0x361117AC: mov dword ptr [ebp - 4], ebx */ 1703 MEM32(esi) = 0x361769ACu; /* 0x361117AF: mov dword ptr [esi], 0x361769ac */ 1704 RECOMP_ICALL(0x36112140u); /* 0x361117B5: call 0x36112140 */ /* not lifted */ 1705 RECOMP_FLAGS_IN(); 1706 ecx = MEM32(esi + 0x4); /* 0x361117BA: mov ecx, dword ptr [esi + 4] */ 1707 PUSH32(esp, ecx); /* 0x361117BD: push ecx */ 1708 RECOMP_ICALL(0x360F7B00u); /* 0x361117BE: call 0x360f7b00 */ /* not lifted */ 1709 RECOMP_FLAGS_IN(); 1710 ecx = eax; /* 0x361117C3: mov ecx, eax */ 1711 RECOMP_ICALL(0x360FBFF0u); /* 0x361117C5: call 0x360fbff0 */ /* not lifted */ 1712 RECOMP_FLAGS_IN(); 1713 ecx = eax; /* 0x361117CA: mov ecx, eax */ 1714 RECOMP_ICALL(0x361371A0u); /* 0x361117CC: call 0x361371a0 */ /* not lifted */ 1715 RECOMP_FLAGS_IN(); 1716 PUSH32(esp, 0x10Cu); /* 0x361117D1: push 0x10c */ 1717 edi = eax; /* 0x361117D6: mov edi, eax */ 1718 RECOMP_ICALL(0x3615FD6Au); /* 0x361117D8: call 0x3615fd6a */ /* not lifted */ 1719 RECOMP_FLAGS_IN(); 1720 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1722 esp = esp + 4; /* 0x361117DD: add esp, 4 */ 1723 _flag_k = FK_ADD; 1724 MEM32(ebp + 0x8) = eax; /* 0x361117E0: mov dword ptr [ebp + 8], eax */ 1725 /* cmp eax, ebx */ /* 0x361117E3: cmp eax, ebx */ 1726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1728 _flag_k = FK_CMP; 1729 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x361117E5: mov byte ptr [ebp - 4], 1 */ 1730 if (CMP_EQ(_flag_a, _flag_b)) goto L_361117F4; /* 0x361117E9: je 0x361117f4 */ 1731 L_361117EB: 1732 ecx = eax; /* 0x361117EB: mov ecx, eax */ 1733 RECOMP_ICALL(0x36132920u); /* 0x361117ED: call 0x36132920 */ /* not lifted */ 1734 RECOMP_FLAGS_IN(); 1735 goto L_361117F6; /* 0x361117F2: jmp 0x361117f6 */ 1736 L_361117F4: 1737 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1738 eax = 0; /* 0x361117F4: xor eax, eax */ 1739 _cf = 0; 1740 _flag_k = FK_TEST; 1741 L_361117F6: 1742 MEM32(esi + 0x20) = eax; /* 0x361117F6: mov dword ptr [esi + 0x20], eax */ 1743 eax = MEM32(esi + 0x28); /* 0x361117F9: mov eax, dword ptr [esi + 0x28] */ 1744 edx = eax; /* 0x361117FC: mov edx, eax */ 1745 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1746 edx = edx & 2; /* 0x361117FE: and edx, 2 */ 1747 _cf = 0; 1748 _flag_k = FK_TEST; 1749 /* cmp LO8(edx), 2 */ /* 0x36111801: cmp dl, 2 */ 1750 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 1751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1752 _flag_k = FK_NARROW(FK_CMP, 24); 1753 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36111804: sete cl */ 1754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1755 eax = eax & 1; /* 0x36111807: and eax, 1 */ 1756 _cf = 0; 1757 _flag_k = FK_TEST; 1758 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1759 SET_LO8(eax, LO8(eax) - 1); /* 0x3611180A: dec al */ 1760 _flag_k = FK_NARROW(FK_DEC, 24); 1761 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1762 _cf = (LO8(eax)) != 0; 1763 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3611180C: neg al */ 1764 _flag_k = FK_NARROW(FK_CMP, 24); 1765 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611180E: sbb al, al */ 1766 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1767 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1768 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1769 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1770 SET_LO8(eax, LO8(eax) + 1); /* 0x36111810: inc al */ 1771 _flag_k = FK_NARROW(FK_INC, 24); 1772 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36111812: mov byte ptr [ebp - 4], bl */ 1773 PUSH32(esp, ecx); /* 0x36111815: push ecx */ 1774 ecx = edi; /* 0x36111816: mov ecx, edi */ 1775 PUSH32(esp, eax); /* 0x36111818: push eax */ 1776 PUSH32(esp, 7); /* 0x36111819: push 7 */ 1777 RECOMP_ICALL(0x36136FE0u); /* 0x3611181B: call 0x36136fe0 */ /* not lifted */ 1778 RECOMP_FLAGS_IN(); 1779 edx = MEM32(esi + 0x28); /* 0x36111820: mov edx, dword ptr [esi + 0x28] */ 1780 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1781 edx = edx & 4; /* 0x36111823: and edx, 4 */ 1782 _cf = 0; 1783 _flag_k = FK_TEST; 1784 PUSH32(esp, eax); /* 0x36111826: push eax */ 1785 /* cmp LO8(edx), 4 */ /* 0x36111827: cmp dl, 4 */ 1786 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 1787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1788 _flag_k = FK_NARROW(FK_CMP, 24); 1789 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3611182A: sete al */ 1790 ecx = edi; /* 0x3611182D: mov ecx, edi */ 1791 PUSH32(esp, eax); /* 0x3611182F: push eax */ 1792 PUSH32(esp, 6); /* 0x36111830: push 6 */ 1793 RECOMP_ICALL(0x36137010u); /* 0x36111832: call 0x36137010 */ /* not lifted */ 1794 RECOMP_FLAGS_IN(); 1795 PUSH32(esp, ecx); /* 0x36111837: push ecx */ 1796 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111838: fstp dword ptr [esp] */ 1797 PUSH32(esp, 5); /* 0x3611183B: push 5 */ 1798 ecx = edi; /* 0x3611183D: mov ecx, edi */ 1799 RECOMP_ICALL(0x36137010u); /* 0x3611183F: call 0x36137010 */ /* not lifted */ 1800 RECOMP_FLAGS_IN(); 1801 PUSH32(esp, ecx); /* 0x36111844: push ecx */ 1802 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111845: fstp dword ptr [esp] */ 1803 PUSH32(esp, 4); /* 0x36111848: push 4 */ 1804 ecx = edi; /* 0x3611184A: mov ecx, edi */ 1805 RECOMP_ICALL(0x36137010u); /* 0x3611184C: call 0x36137010 */ /* not lifted */ 1806 RECOMP_FLAGS_IN(); 1807 PUSH32(esp, ecx); /* 0x36111851: push ecx */ 1808 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111852: fstp dword ptr [esp] */ 1809 PUSH32(esp, 3); /* 0x36111855: push 3 */ 1810 ecx = edi; /* 0x36111857: mov ecx, edi */ 1811 RECOMP_ICALL(0x36137010u); /* 0x36111859: call 0x36137010 */ /* not lifted */ 1812 RECOMP_FLAGS_IN(); 1813 PUSH32(esp, ecx); /* 0x3611185E: push ecx */ 1814 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611185F: fstp dword ptr [esp] */ 1815 PUSH32(esp, 2); /* 0x36111862: push 2 */ 1816 ecx = edi; /* 0x36111864: mov ecx, edi */ 1817 RECOMP_ICALL(0x36137010u); /* 0x36111866: call 0x36137010 */ /* not lifted */ 1818 RECOMP_FLAGS_IN(); 1819 PUSH32(esp, ecx); /* 0x3611186B: push ecx */ 1820 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611186C: fstp dword ptr [esp] */ 1821 PUSH32(esp, 1); /* 0x3611186F: push 1 */ 1822 ecx = edi; /* 0x36111871: mov ecx, edi */ 1823 RECOMP_ICALL(0x36137010u); /* 0x36111873: call 0x36137010 */ /* not lifted */ 1824 RECOMP_FLAGS_IN(); 1825 PUSH32(esp, ecx); /* 0x36111878: push ecx */ 1826 ecx = MEM32(ebp + 0xC); /* 0x36111879: mov ecx, dword ptr [ebp + 0xc] */ 1827 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611187C: fstp dword ptr [esp] */ 1828 PUSH32(esp, ecx); /* 0x3611187F: push ecx */ 1829 ecx = MEM32(esi + 0x20); /* 0x36111880: mov ecx, dword ptr [esi + 0x20] */ 1830 RECOMP_ICALL(0x36132BA0u); /* 0x36111883: call 0x36132ba0 */ /* not lifted */ 1831 RECOMP_FLAGS_IN(); 1832 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1833 _cf = (LO8(eax)) != 0; 1834 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36111888: neg al */ 1835 _flag_k = FK_NARROW(FK_CMP, 24); 1836 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611188A: sbb al, al */ 1837 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1838 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1839 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1840 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1841 SET_LO8(eax, LO8(eax) + 1); /* 0x3611188C: inc al */ 1842 _flag_k = FK_NARROW(FK_INC, 24); 1843 ecx = esi; /* 0x3611188E: mov ecx, esi */ 1844 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36111890: mov byte ptr [esi + 0x14], al */ 1845 RECOMP_ICALL(0x36112310u); /* 0x36111893: call 0x36112310 */ /* not lifted */ 1846 RECOMP_FLAGS_IN(); 1847 ecx = MEM32(ebp + (-0xC)); /* 0x36111898: mov ecx, dword ptr [ebp - 0xc] */ 1848 edi = POP32_VAL(esp); /* 0x3611189B: pop edi */ 1849 eax = esi; /* 0x3611189C: mov eax, esi */ 1850 esi = POP32_VAL(esp); /* 0x3611189E: pop esi */ 1851 ebx = POP32_VAL(esp); /* 0x3611189F: pop ebx */ 1852 MEM32(FS_BASE + (0)) = ecx; /* 0x361118A0: mov dword ptr fs:[0], ecx */ 1853 esp = ebp; /* 0x361118A7: mov esp, ebp */ 1854 ebp = POP32_VAL(esp); /* 0x361118A9: pop ebp */ 1855 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361118AA: ret 8 */ 1856 RECOMP_REGS_OUT(); 1857 } 1858 1859 void sub_361118B0(void) { 1860 int _fpu_cmp = 0; 1861 uint32_t _cf = 0; 1862 int _df = 1; 1863 uint32_t _flag_k = FK_NONE; 1864 uint32_t _flag_a = 0, _flag_b = 0; 1865 uint32_t _itail_tgt = 0; 1866 RECOMP_REGS_LOCALS 1867 RECOMP_ENTER(0x361118B0u); 1868 1869 L_361118B0: 1870 PUSH32(esp, ebp); /* 0x361118B0: push ebp */ 1871 ebp = esp; /* 0x361118B1: mov ebp, esp */ 1872 PUSH32(esp, 0xFFFFFFFFu); /* 0x361118B3: push -1 */ 1873 PUSH32(esp, 0x3616AC33u); /* 0x361118B5: push 0x3616ac33 */ 1874 eax = MEM32(FS_BASE + (0)); /* 0x361118BA: mov eax, dword ptr fs:[0] */ 1875 PUSH32(esp, eax); /* 0x361118C0: push eax */ 1876 MEM32(FS_BASE + (0)) = esp; /* 0x361118C1: mov dword ptr fs:[0], esp */ 1877 PUSH32(esp, ecx); /* 0x361118C8: push ecx */ 1878 eax = MEM32(ebp + 0x8); /* 0x361118C9: mov eax, dword ptr [ebp + 8] */ 1879 PUSH32(esp, ebx); /* 0x361118CC: push ebx */ 1880 PUSH32(esp, esi); /* 0x361118CD: push esi */ 1881 PUSH32(esp, edi); /* 0x361118CE: push edi */ 1882 esi = ecx; /* 0x361118CF: mov esi, ecx */ 1883 PUSH32(esp, eax); /* 0x361118D1: push eax */ 1884 MEM32(ebp + (-0x10)) = esi; /* 0x361118D2: mov dword ptr [ebp - 0x10], esi */ 1885 RECOMP_ICALL(0x360FC270u); /* 0x361118D5: call 0x360fc270 */ /* not lifted */ 1886 RECOMP_FLAGS_IN(); 1887 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1888 ebx = 0; /* 0x361118DA: xor ebx, ebx */ 1889 _cf = 0; 1890 _flag_k = FK_TEST; 1891 MEM32(esi + 0x20) = ebx; /* 0x361118DC: mov dword ptr [esi + 0x20], ebx */ 1892 MEM32(esi + 0x24) = ebx; /* 0x361118DF: mov dword ptr [esi + 0x24], ebx */ 1893 MEM32(esi + 0xA8) = ebx; /* 0x361118E2: mov dword ptr [esi + 0xa8], ebx */ 1894 MEM32(esi + 0xB4) = ebx; /* 0x361118E8: mov dword ptr [esi + 0xb4], ebx */ 1895 MEM32(esi + 0xB8) = ebx; /* 0x361118EE: mov dword ptr [esi + 0xb8], ebx */ 1896 MEM32(esi + 0xBC) = ebx; /* 0x361118F4: mov dword ptr [esi + 0xbc], ebx */ 1897 ecx = esi; /* 0x361118FA: mov ecx, esi */ 1898 MEM32(ebp + (-0x4)) = ebx; /* 0x361118FC: mov dword ptr [ebp - 4], ebx */ 1899 MEM32(esi) = 0x361769ACu; /* 0x361118FF: mov dword ptr [esi], 0x361769ac */ 1900 RECOMP_ICALL(0x36112140u); /* 0x36111905: call 0x36112140 */ /* not lifted */ 1901 RECOMP_FLAGS_IN(); 1902 ecx = MEM32(esi + 0x4); /* 0x3611190A: mov ecx, dword ptr [esi + 4] */ 1903 PUSH32(esp, ecx); /* 0x3611190D: push ecx */ 1904 RECOMP_ICALL(0x360F7B00u); /* 0x3611190E: call 0x360f7b00 */ /* not lifted */ 1905 RECOMP_FLAGS_IN(); 1906 ecx = eax; /* 0x36111913: mov ecx, eax */ 1907 RECOMP_ICALL(0x360FBFF0u); /* 0x36111915: call 0x360fbff0 */ /* not lifted */ 1908 RECOMP_FLAGS_IN(); 1909 ecx = eax; /* 0x3611191A: mov ecx, eax */ 1910 RECOMP_ICALL(0x361371A0u); /* 0x3611191C: call 0x361371a0 */ /* not lifted */ 1911 RECOMP_FLAGS_IN(); 1912 PUSH32(esp, 0x10Cu); /* 0x36111921: push 0x10c */ 1913 edi = eax; /* 0x36111926: mov edi, eax */ 1914 RECOMP_ICALL(0x3615FD6Au); /* 0x36111928: call 0x3615fd6a */ /* not lifted */ 1915 RECOMP_FLAGS_IN(); 1916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1918 esp = esp + 4; /* 0x3611192D: add esp, 4 */ 1919 _flag_k = FK_ADD; 1920 MEM32(ebp + 0x8) = eax; /* 0x36111930: mov dword ptr [ebp + 8], eax */ 1921 /* cmp eax, ebx */ /* 0x36111933: cmp eax, ebx */ 1922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1924 _flag_k = FK_CMP; 1925 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36111935: mov byte ptr [ebp - 4], 1 */ 1926 if (CMP_EQ(_flag_a, _flag_b)) goto L_36111944; /* 0x36111939: je 0x36111944 */ 1927 L_3611193B: 1928 ecx = eax; /* 0x3611193B: mov ecx, eax */ 1929 RECOMP_ICALL(0x36132920u); /* 0x3611193D: call 0x36132920 */ /* not lifted */ 1930 RECOMP_FLAGS_IN(); 1931 goto L_36111946; /* 0x36111942: jmp 0x36111946 */ 1932 L_36111944: 1933 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1934 eax = 0; /* 0x36111944: xor eax, eax */ 1935 _cf = 0; 1936 _flag_k = FK_TEST; 1937 L_36111946: 1938 MEM32(esi + 0x20) = eax; /* 0x36111946: mov dword ptr [esi + 0x20], eax */ 1939 eax = MEM32(esi + 0x28); /* 0x36111949: mov eax, dword ptr [esi + 0x28] */ 1940 edx = eax; /* 0x3611194C: mov edx, eax */ 1941 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1942 edx = edx & 2; /* 0x3611194E: and edx, 2 */ 1943 _cf = 0; 1944 _flag_k = FK_TEST; 1945 /* cmp LO8(edx), 2 */ /* 0x36111951: cmp dl, 2 */ 1946 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 1947 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1948 _flag_k = FK_NARROW(FK_CMP, 24); 1949 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36111954: sete cl */ 1950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1951 eax = eax & 1; /* 0x36111957: and eax, 1 */ 1952 _cf = 0; 1953 _flag_k = FK_TEST; 1954 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1955 SET_LO8(eax, LO8(eax) - 1); /* 0x3611195A: dec al */ 1956 _flag_k = FK_NARROW(FK_DEC, 24); 1957 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1958 _cf = (LO8(eax)) != 0; 1959 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3611195C: neg al */ 1960 _flag_k = FK_NARROW(FK_CMP, 24); 1961 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611195E: sbb al, al */ 1962 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 1963 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1964 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1965 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1966 SET_LO8(eax, LO8(eax) + 1); /* 0x36111960: inc al */ 1967 _flag_k = FK_NARROW(FK_INC, 24); 1968 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36111962: mov byte ptr [ebp - 4], bl */ 1969 PUSH32(esp, ecx); /* 0x36111965: push ecx */ 1970 ecx = edi; /* 0x36111966: mov ecx, edi */ 1971 PUSH32(esp, eax); /* 0x36111968: push eax */ 1972 PUSH32(esp, 7); /* 0x36111969: push 7 */ 1973 RECOMP_ICALL(0x36136FE0u); /* 0x3611196B: call 0x36136fe0 */ /* not lifted */ 1974 RECOMP_FLAGS_IN(); 1975 edx = MEM32(esi + 0x28); /* 0x36111970: mov edx, dword ptr [esi + 0x28] */ 1976 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1977 edx = edx & 4; /* 0x36111973: and edx, 4 */ 1978 _cf = 0; 1979 _flag_k = FK_TEST; 1980 PUSH32(esp, eax); /* 0x36111976: push eax */ 1981 /* cmp LO8(edx), 4 */ /* 0x36111977: cmp dl, 4 */ 1982 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 1983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1984 _flag_k = FK_NARROW(FK_CMP, 24); 1985 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3611197A: sete al */ 1986 ecx = edi; /* 0x3611197D: mov ecx, edi */ 1987 PUSH32(esp, eax); /* 0x3611197F: push eax */ 1988 PUSH32(esp, 6); /* 0x36111980: push 6 */ 1989 RECOMP_ICALL(0x36137010u); /* 0x36111982: call 0x36137010 */ /* not lifted */ 1990 RECOMP_FLAGS_IN(); 1991 PUSH32(esp, ecx); /* 0x36111987: push ecx */ 1992 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111988: fstp dword ptr [esp] */ 1993 PUSH32(esp, 5); /* 0x3611198B: push 5 */ 1994 ecx = edi; /* 0x3611198D: mov ecx, edi */ 1995 RECOMP_ICALL(0x36137010u); /* 0x3611198F: call 0x36137010 */ /* not lifted */ 1996 RECOMP_FLAGS_IN(); 1997 PUSH32(esp, ecx); /* 0x36111994: push ecx */ 1998 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111995: fstp dword ptr [esp] */ 1999 PUSH32(esp, 4); /* 0x36111998: push 4 */ 2000 ecx = edi; /* 0x3611199A: mov ecx, edi */ 2001 RECOMP_ICALL(0x36137010u); /* 0x3611199C: call 0x36137010 */ /* not lifted */ 2002 RECOMP_FLAGS_IN(); 2003 PUSH32(esp, ecx); /* 0x361119A1: push ecx */ 2004 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361119A2: fstp dword ptr [esp] */ 2005 PUSH32(esp, 3); /* 0x361119A5: push 3 */ 2006 ecx = edi; /* 0x361119A7: mov ecx, edi */ 2007 RECOMP_ICALL(0x36137010u); /* 0x361119A9: call 0x36137010 */ /* not lifted */ 2008 RECOMP_FLAGS_IN(); 2009 PUSH32(esp, ecx); /* 0x361119AE: push ecx */ 2010 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361119AF: fstp dword ptr [esp] */ 2011 PUSH32(esp, 2); /* 0x361119B2: push 2 */ 2012 ecx = edi; /* 0x361119B4: mov ecx, edi */ 2013 RECOMP_ICALL(0x36137010u); /* 0x361119B6: call 0x36137010 */ /* not lifted */ 2014 RECOMP_FLAGS_IN(); 2015 PUSH32(esp, ecx); /* 0x361119BB: push ecx */ 2016 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361119BC: fstp dword ptr [esp] */ 2017 PUSH32(esp, 1); /* 0x361119BF: push 1 */ 2018 ecx = edi; /* 0x361119C1: mov ecx, edi */ 2019 RECOMP_ICALL(0x36137010u); /* 0x361119C3: call 0x36137010 */ /* not lifted */ 2020 RECOMP_FLAGS_IN(); 2021 PUSH32(esp, ecx); /* 0x361119C8: push ecx */ 2022 ecx = MEM32(ebp + 0xC); /* 0x361119C9: mov ecx, dword ptr [ebp + 0xc] */ 2023 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361119CC: fstp dword ptr [esp] */ 2024 PUSH32(esp, ecx); /* 0x361119CF: push ecx */ 2025 ecx = MEM32(esi + 0x20); /* 0x361119D0: mov ecx, dword ptr [esi + 0x20] */ 2026 RECOMP_ICALL(0x36132D20u); /* 0x361119D3: call 0x36132d20 */ /* not lifted */ 2027 RECOMP_FLAGS_IN(); 2028 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2029 _cf = (LO8(eax)) != 0; 2030 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361119D8: neg al */ 2031 _flag_k = FK_NARROW(FK_CMP, 24); 2032 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361119DA: sbb al, al */ 2033 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 2034 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2035 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2036 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2037 SET_LO8(eax, LO8(eax) + 1); /* 0x361119DC: inc al */ 2038 _flag_k = FK_NARROW(FK_INC, 24); 2039 ecx = esi; /* 0x361119DE: mov ecx, esi */ 2040 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x361119E0: mov byte ptr [esi + 0x14], al */ 2041 RECOMP_ICALL(0x36112310u); /* 0x361119E3: call 0x36112310 */ /* not lifted */ 2042 RECOMP_FLAGS_IN(); 2043 ecx = MEM32(ebp + (-0xC)); /* 0x361119E8: mov ecx, dword ptr [ebp - 0xc] */ 2044 edi = POP32_VAL(esp); /* 0x361119EB: pop edi */ 2045 eax = esi; /* 0x361119EC: mov eax, esi */ 2046 esi = POP32_VAL(esp); /* 0x361119EE: pop esi */ 2047 ebx = POP32_VAL(esp); /* 0x361119EF: pop ebx */ 2048 MEM32(FS_BASE + (0)) = ecx; /* 0x361119F0: mov dword ptr fs:[0], ecx */ 2049 esp = ebp; /* 0x361119F7: mov esp, ebp */ 2050 ebp = POP32_VAL(esp); /* 0x361119F9: pop ebp */ 2051 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361119FA: ret 8 */ 2052 RECOMP_REGS_OUT(); 2053 } 2054 2055 void sub_36111A00(void) { 2056 int _fpu_cmp = 0; 2057 uint32_t _cf = 0; 2058 int _df = 1; 2059 uint32_t _flag_k = FK_NONE; 2060 uint32_t _flag_a = 0, _flag_b = 0; 2061 uint32_t _itail_tgt = 0; 2062 RECOMP_REGS_LOCALS 2063 RECOMP_ENTER(0x36111A00u); 2064 2065 L_36111A00: 2066 PUSH32(esp, ebp); /* 0x36111A00: push ebp */ 2067 ebp = esp; /* 0x36111A01: mov ebp, esp */ 2068 PUSH32(esp, 0xFFFFFFFFu); /* 0x36111A03: push -1 */ 2069 PUSH32(esp, 0x3616AC53u); /* 0x36111A05: push 0x3616ac53 */ 2070 eax = MEM32(FS_BASE + (0)); /* 0x36111A0A: mov eax, dword ptr fs:[0] */ 2071 PUSH32(esp, eax); /* 0x36111A10: push eax */ 2072 MEM32(FS_BASE + (0)) = esp; /* 0x36111A11: mov dword ptr fs:[0], esp */ 2073 PUSH32(esp, ecx); /* 0x36111A18: push ecx */ 2074 eax = MEM32(ebp + 0x8); /* 0x36111A19: mov eax, dword ptr [ebp + 8] */ 2075 PUSH32(esp, ebx); /* 0x36111A1C: push ebx */ 2076 PUSH32(esp, esi); /* 0x36111A1D: push esi */ 2077 PUSH32(esp, edi); /* 0x36111A1E: push edi */ 2078 esi = ecx; /* 0x36111A1F: mov esi, ecx */ 2079 PUSH32(esp, eax); /* 0x36111A21: push eax */ 2080 MEM32(ebp + (-0x10)) = esi; /* 0x36111A22: mov dword ptr [ebp - 0x10], esi */ 2081 RECOMP_ICALL(0x360FC270u); /* 0x36111A25: call 0x360fc270 */ /* not lifted */ 2082 RECOMP_FLAGS_IN(); 2083 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2084 ebx = 0; /* 0x36111A2A: xor ebx, ebx */ 2085 _cf = 0; 2086 _flag_k = FK_TEST; 2087 MEM32(esi + 0x20) = ebx; /* 0x36111A2C: mov dword ptr [esi + 0x20], ebx */ 2088 MEM32(esi + 0x24) = ebx; /* 0x36111A2F: mov dword ptr [esi + 0x24], ebx */ 2089 MEM32(esi + 0xA8) = ebx; /* 0x36111A32: mov dword ptr [esi + 0xa8], ebx */ 2090 MEM32(esi + 0xB4) = ebx; /* 0x36111A38: mov dword ptr [esi + 0xb4], ebx */ 2091 MEM32(esi + 0xB8) = ebx; /* 0x36111A3E: mov dword ptr [esi + 0xb8], ebx */ 2092 MEM32(esi + 0xBC) = ebx; /* 0x36111A44: mov dword ptr [esi + 0xbc], ebx */ 2093 ecx = esi; /* 0x36111A4A: mov ecx, esi */ 2094 MEM32(ebp + (-0x4)) = ebx; /* 0x36111A4C: mov dword ptr [ebp - 4], ebx */ 2095 MEM32(esi) = 0x361769ACu; /* 0x36111A4F: mov dword ptr [esi], 0x361769ac */ 2096 RECOMP_ICALL(0x36112140u); /* 0x36111A55: call 0x36112140 */ /* not lifted */ 2097 RECOMP_FLAGS_IN(); 2098 ecx = MEM32(esi + 0x4); /* 0x36111A5A: mov ecx, dword ptr [esi + 4] */ 2099 PUSH32(esp, ecx); /* 0x36111A5D: push ecx */ 2100 RECOMP_ICALL(0x360F7B00u); /* 0x36111A5E: call 0x360f7b00 */ /* not lifted */ 2101 RECOMP_FLAGS_IN(); 2102 ecx = eax; /* 0x36111A63: mov ecx, eax */ 2103 RECOMP_ICALL(0x360FBFF0u); /* 0x36111A65: call 0x360fbff0 */ /* not lifted */ 2104 RECOMP_FLAGS_IN(); 2105 ecx = eax; /* 0x36111A6A: mov ecx, eax */ 2106 RECOMP_ICALL(0x361371A0u); /* 0x36111A6C: call 0x361371a0 */ /* not lifted */ 2107 RECOMP_FLAGS_IN(); 2108 edi = eax; /* 0x36111A71: mov edi, eax */ 2109 eax = MEM32(ebp + 0x10); /* 0x36111A73: mov eax, dword ptr [ebp + 0x10] */ 2110 /* cmp eax, ebx */ /* 0x36111A76: cmp eax, ebx */ 2111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2113 _flag_k = FK_CMP; 2114 if (CMP_NE(_flag_a, _flag_b)) goto L_36111A83; /* 0x36111A78: jne 0x36111a83 */ 2115 L_36111A7A: 2116 PUSH32(esp, 7); /* 0x36111A7A: push 7 */ 2117 ecx = edi; /* 0x36111A7C: mov ecx, edi */ 2118 RECOMP_ICALL(0x36136FE0u); /* 0x36111A7E: call 0x36136fe0 */ /* not lifted */ 2119 RECOMP_FLAGS_IN(); 2120 L_36111A83: 2121 PUSH32(esp, 0x10Cu); /* 0x36111A83: push 0x10c */ 2122 MEM32(ebp + 0x8) = eax; /* 0x36111A88: mov dword ptr [ebp + 8], eax */ 2123 RECOMP_ICALL(0x3615FD6Au); /* 0x36111A8B: call 0x3615fd6a */ /* not lifted */ 2124 RECOMP_FLAGS_IN(); 2125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2127 esp = esp + 4; /* 0x36111A90: add esp, 4 */ 2128 _flag_k = FK_ADD; 2129 MEM32(ebp + 0x10) = eax; /* 0x36111A93: mov dword ptr [ebp + 0x10], eax */ 2130 /* cmp eax, ebx */ /* 0x36111A96: cmp eax, ebx */ 2131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2133 _flag_k = FK_CMP; 2134 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36111A98: mov byte ptr [ebp - 4], 1 */ 2135 if (CMP_EQ(_flag_a, _flag_b)) goto L_36111AA7; /* 0x36111A9C: je 0x36111aa7 */ 2136 L_36111A9E: 2137 ecx = eax; /* 0x36111A9E: mov ecx, eax */ 2138 RECOMP_ICALL(0x36132920u); /* 0x36111AA0: call 0x36132920 */ /* not lifted */ 2139 RECOMP_FLAGS_IN(); 2140 goto L_36111AA9; /* 0x36111AA5: jmp 0x36111aa9 */ 2141 L_36111AA7: 2142 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2143 eax = 0; /* 0x36111AA7: xor eax, eax */ 2144 _cf = 0; 2145 _flag_k = FK_TEST; 2146 L_36111AA9: 2147 MEM32(esi + 0x20) = eax; /* 0x36111AA9: mov dword ptr [esi + 0x20], eax */ 2148 eax = MEM32(esi + 0x28); /* 0x36111AAC: mov eax, dword ptr [esi + 0x28] */ 2149 edx = eax; /* 0x36111AAF: mov edx, eax */ 2150 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 2151 edx = edx & 2; /* 0x36111AB1: and edx, 2 */ 2152 _cf = 0; 2153 _flag_k = FK_TEST; 2154 /* cmp LO8(edx), 2 */ /* 0x36111AB4: cmp dl, 2 */ 2155 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 2156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2157 _flag_k = FK_NARROW(FK_CMP, 24); 2158 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36111AB7: sete cl */ 2159 edx = eax; /* 0x36111ABA: mov edx, eax */ 2160 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2161 edx = edx & 1; /* 0x36111ABC: and edx, 1 */ 2162 _cf = 0; 2163 _flag_k = FK_TEST; 2164 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 2165 SET_LO8(edx, LO8(edx) - 1); /* 0x36111ABF: dec dl */ 2166 _flag_k = FK_NARROW(FK_DEC, 24); 2167 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2168 _cf = (LO8(edx)) != 0; 2169 SET_LO8(edx, (uint32_t)(-(int32_t)LO8(edx))); /* 0x36111AC1: neg dl */ 2170 _flag_k = FK_NARROW(FK_CMP, 24); 2171 { uint32_t _sa = LO8(edx), _sb = LO8(edx), _sc = _cf; /* 0x36111AC3: sbb dl, dl */ 2172 SET_LO8(edx, _sc ? 0xFFFFFFFFu : 0); 2173 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2174 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2175 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 2176 SET_LO8(edx, LO8(edx) + 1); /* 0x36111AC5: inc dl */ 2177 _flag_k = FK_NARROW(FK_INC, 24); 2178 PUSH32(esp, ecx); /* 0x36111AC7: push ecx */ 2179 ecx = MEM32(ebp + 0x8); /* 0x36111AC8: mov ecx, dword ptr [ebp + 8] */ 2180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2181 eax = eax & 4; /* 0x36111ACB: and eax, 4 */ 2182 _cf = 0; 2183 _flag_k = FK_TEST; 2184 /* cmp LO8(eax), 4 */ /* 0x36111ACE: cmp al, 4 */ 2185 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 2186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2187 _flag_k = FK_NARROW(FK_CMP, 24); 2188 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36111AD0: mov byte ptr [ebp - 4], bl */ 2189 PUSH32(esp, edx); /* 0x36111AD3: push edx */ 2190 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36111AD4: sete dl */ 2191 PUSH32(esp, ecx); /* 0x36111AD7: push ecx */ 2192 ecx = edi; /* 0x36111AD8: mov ecx, edi */ 2193 PUSH32(esp, edx); /* 0x36111ADA: push edx */ 2194 PUSH32(esp, 6); /* 0x36111ADB: push 6 */ 2195 RECOMP_ICALL(0x36137010u); /* 0x36111ADD: call 0x36137010 */ /* not lifted */ 2196 RECOMP_FLAGS_IN(); 2197 PUSH32(esp, ecx); /* 0x36111AE2: push ecx */ 2198 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111AE3: fstp dword ptr [esp] */ 2199 PUSH32(esp, 5); /* 0x36111AE6: push 5 */ 2200 ecx = edi; /* 0x36111AE8: mov ecx, edi */ 2201 RECOMP_ICALL(0x36137010u); /* 0x36111AEA: call 0x36137010 */ /* not lifted */ 2202 RECOMP_FLAGS_IN(); 2203 PUSH32(esp, ecx); /* 0x36111AEF: push ecx */ 2204 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111AF0: fstp dword ptr [esp] */ 2205 PUSH32(esp, 4); /* 0x36111AF3: push 4 */ 2206 ecx = edi; /* 0x36111AF5: mov ecx, edi */ 2207 RECOMP_ICALL(0x36137010u); /* 0x36111AF7: call 0x36137010 */ /* not lifted */ 2208 RECOMP_FLAGS_IN(); 2209 PUSH32(esp, ecx); /* 0x36111AFC: push ecx */ 2210 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111AFD: fstp dword ptr [esp] */ 2211 PUSH32(esp, 3); /* 0x36111B00: push 3 */ 2212 ecx = edi; /* 0x36111B02: mov ecx, edi */ 2213 RECOMP_ICALL(0x36137010u); /* 0x36111B04: call 0x36137010 */ /* not lifted */ 2214 RECOMP_FLAGS_IN(); 2215 PUSH32(esp, ecx); /* 0x36111B09: push ecx */ 2216 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111B0A: fstp dword ptr [esp] */ 2217 PUSH32(esp, 2); /* 0x36111B0D: push 2 */ 2218 ecx = edi; /* 0x36111B0F: mov ecx, edi */ 2219 RECOMP_ICALL(0x36137010u); /* 0x36111B11: call 0x36137010 */ /* not lifted */ 2220 RECOMP_FLAGS_IN(); 2221 PUSH32(esp, ecx); /* 0x36111B16: push ecx */ 2222 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111B17: fstp dword ptr [esp] */ 2223 PUSH32(esp, 1); /* 0x36111B1A: push 1 */ 2224 ecx = edi; /* 0x36111B1C: mov ecx, edi */ 2225 RECOMP_ICALL(0x36137010u); /* 0x36111B1E: call 0x36137010 */ /* not lifted */ 2226 RECOMP_FLAGS_IN(); 2227 eax = MEM32(ebp + 0xC); /* 0x36111B23: mov eax, dword ptr [ebp + 0xc] */ 2228 PUSH32(esp, ecx); /* 0x36111B26: push ecx */ 2229 ecx = MEM32(esi + 0x20); /* 0x36111B27: mov ecx, dword ptr [esi + 0x20] */ 2230 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36111B2A: fstp dword ptr [esp] */ 2231 PUSH32(esp, eax); /* 0x36111B2D: push eax */ 2232 RECOMP_ICALL(0x36132EB0u); /* 0x36111B2E: call 0x36132eb0 */ /* not lifted */ 2233 RECOMP_FLAGS_IN(); 2234 /* test LO8(eax), LO8(eax) */ /* 0x36111B33: test al, al */ 2235 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2236 _cf = 0; 2237 _flag_k = FK_NARROW(FK_TEST, 24); 2238 if (TEST_NZ(_flag_a, _flag_b)) goto L_36111B3D; /* 0x36111B35: jne 0x36111b3d */ 2239 L_36111B37: 2240 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36111B37: mov byte ptr [esi + 0x14], 1 */ 2241 goto L_36111B44; /* 0x36111B3B: jmp 0x36111b44 */ 2242 L_36111B3D: 2243 ecx = esi; /* 0x36111B3D: mov ecx, esi */ 2244 RECOMP_ICALL(0x36112310u); /* 0x36111B3F: call 0x36112310 */ /* not lifted */ 2245 RECOMP_FLAGS_IN(); 2246 L_36111B44: 2247 ecx = MEM32(ebp + (-0xC)); /* 0x36111B44: mov ecx, dword ptr [ebp - 0xc] */ 2248 edi = POP32_VAL(esp); /* 0x36111B47: pop edi */ 2249 eax = esi; /* 0x36111B48: mov eax, esi */ 2250 esi = POP32_VAL(esp); /* 0x36111B4A: pop esi */ 2251 ebx = POP32_VAL(esp); /* 0x36111B4B: pop ebx */ 2252 MEM32(FS_BASE + (0)) = ecx; /* 0x36111B4C: mov dword ptr fs:[0], ecx */ 2253 esp = ebp; /* 0x36111B53: mov esp, ebp */ 2254 ebp = POP32_VAL(esp); /* 0x36111B55: pop ebp */ 2255 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36111B56: ret 0xc */ 2256 RECOMP_REGS_OUT(); 2257 } 2258 2259 void sub_36111B60(void) { 2260 int _fpu_cmp = 0; 2261 uint32_t _cf = 0; 2262 int _df = 1; 2263 uint32_t _flag_k = FK_NONE; 2264 uint32_t _flag_a = 0, _flag_b = 0; 2265 uint32_t _itail_tgt = 0; 2266 RECOMP_REGS_LOCALS 2267 RECOMP_ENTER(0x36111B60u); 2268 2269 L_36111B60: 2270 PUSH32(esp, ebp); /* 0x36111B60: push ebp */ 2271 ebp = esp; /* 0x36111B61: mov ebp, esp */ 2272 PUSH32(esp, 0xFFFFFFFFu); /* 0x36111B63: push -1 */ 2273 PUSH32(esp, 0x3616AC68u); /* 0x36111B65: push 0x3616ac68 */ 2274 eax = MEM32(FS_BASE + (0)); /* 0x36111B6A: mov eax, dword ptr fs:[0] */ 2275 PUSH32(esp, eax); /* 0x36111B70: push eax */ 2276 MEM32(FS_BASE + (0)) = esp; /* 0x36111B71: mov dword ptr fs:[0], esp */ 2277 PUSH32(esp, ecx); /* 0x36111B78: push ecx */ 2278 PUSH32(esp, esi); /* 0x36111B79: push esi */ 2279 esi = ecx; /* 0x36111B7A: mov esi, ecx */ 2280 PUSH32(esp, edi); /* 0x36111B7C: push edi */ 2281 MEM32(ebp + (-0x10)) = esi; /* 0x36111B7D: mov dword ptr [ebp - 0x10], esi */ 2282 MEM32(esi) = 0x361769ACu; /* 0x36111B80: mov dword ptr [esi], 0x361769ac */ 2283 edi = MEM32(esi + 0x20); /* 0x36111B86: mov edi, dword ptr [esi + 0x20] */ 2284 /* test edi, edi */ /* 0x36111B89: test edi, edi */ 2285 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2286 _cf = 0; 2287 _flag_k = FK_TEST; 2288 MEM32(ebp + (-0x4)) = 0; /* 0x36111B8B: mov dword ptr [ebp - 4], 0 */ 2289 if (TEST_Z(_flag_a, _flag_b)) goto L_36111BAB; /* 0x36111B92: je 0x36111bab */ 2290 L_36111B94: 2291 ecx = edi; /* 0x36111B94: mov ecx, edi */ 2292 RECOMP_ICALL(0x360E2940u); /* 0x36111B96: call 0x360e2940 */ /* not lifted */ 2293 RECOMP_FLAGS_IN(); 2294 PUSH32(esp, edi); /* 0x36111B9B: push edi */ 2295 RECOMP_ICALL(0x3615FCC4u); /* 0x36111B9C: call 0x3615fcc4 */ /* not lifted */ 2296 RECOMP_FLAGS_IN(); 2297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2299 esp = esp + 4; /* 0x36111BA1: add esp, 4 */ 2300 _flag_k = FK_ADD; 2301 MEM32(esi + 0x20) = 0; /* 0x36111BA4: mov dword ptr [esi + 0x20], 0 */ 2302 L_36111BAB: 2303 ecx = MEM32(esi + 0x24); /* 0x36111BAB: mov ecx, dword ptr [esi + 0x24] */ 2304 /* test ecx, ecx */ /* 0x36111BAE: test ecx, ecx */ 2305 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2306 _cf = 0; 2307 _flag_k = FK_TEST; 2308 if (TEST_Z(_flag_a, _flag_b)) goto L_36111BBF; /* 0x36111BB0: je 0x36111bbf */ 2309 L_36111BB2: 2310 eax = MEM32(ecx); /* 0x36111BB2: mov eax, dword ptr [ecx] */ 2311 PUSH32(esp, 1); /* 0x36111BB4: push 1 */ 2312 RECOMP_ICALL(MEM32(eax)); /* 0x36111BB6: call dword ptr [eax] */ 2313 RECOMP_FLAGS_IN(); 2314 MEM32(esi + 0x24) = 0; /* 0x36111BB8: mov dword ptr [esi + 0x24], 0 */ 2315 L_36111BBF: 2316 ecx = esi; /* 0x36111BBF: mov ecx, esi */ 2317 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36111BC1: mov dword ptr [ebp - 4], 0xffffffff */ 2318 RECOMP_ICALL(0x360FC2F0u); /* 0x36111BC8: call 0x360fc2f0 */ /* not lifted */ 2319 RECOMP_FLAGS_IN(); 2320 ecx = MEM32(ebp + (-0xC)); /* 0x36111BCD: mov ecx, dword ptr [ebp - 0xc] */ 2321 edi = POP32_VAL(esp); /* 0x36111BD0: pop edi */ 2322 esi = POP32_VAL(esp); /* 0x36111BD1: pop esi */ 2323 MEM32(FS_BASE + (0)) = ecx; /* 0x36111BD2: mov dword ptr fs:[0], ecx */ 2324 esp = ebp; /* 0x36111BD9: mov esp, ebp */ 2325 ebp = POP32_VAL(esp); /* 0x36111BDB: pop ebp */ 2326 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36111BDC: ret */ 2327 RECOMP_REGS_OUT(); 2328 } 2329 2330 void sub_36111BE0(void) { 2331 int _fpu_cmp = 0; 2332 uint32_t _cf = 0; 2333 int _df = 1; 2334 uint32_t _flag_k = FK_NONE; 2335 uint32_t _flag_a = 0, _flag_b = 0; 2336 uint32_t _itail_tgt = 0; 2337 RECOMP_REGS_LOCALS 2338 RECOMP_ENTER(0x36111BE0u); 2339 2340 L_36111BE0: 2341 PUSH32(esp, ebp); /* 0x36111BE0: push ebp */ 2342 L_36111BE1: 2343 ebp = esp; /* 0x36111BE1: mov ebp, esp */ 2344 L_36111BE3: 2345 PUSH32(esp, 0xFFFFFFFFu); /* 0x36111BE3: push -1 */ 2346 L_36111BE5: 2347 PUSH32(esp, 0x3616AC89u); /* 0x36111BE5: push 0x3616ac89 */ 2348 L_36111BEA: 2349 eax = MEM32(FS_BASE + (0)); /* 0x36111BEA: mov eax, dword ptr fs:[0] */ 2350 L_36111BF0: 2351 PUSH32(esp, eax); /* 0x36111BF0: push eax */ 2352 L_36111BF1: 2353 MEM32(FS_BASE + (0)) = esp; /* 0x36111BF1: mov dword ptr fs:[0], esp */ 2354 L_36111BF8: 2355 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x74u); 2356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2357 esp = esp - 0x74u; /* 0x36111BF8: sub esp, 0x74 */ 2358 _flag_k = FK_CMP; 2359 L_36111BFB: 2360 PUSH32(esp, esi); /* 0x36111BFB: push esi */ 2361 L_36111BFC: 2362 esi = ecx; /* 0x36111BFC: mov esi, ecx */ 2363 L_36111BFE: 2364 RECOMP_ICALL(0x360FC300u); /* 0x36111BFE: call 0x360fc300 */ /* not lifted */ 2365 RECOMP_FLAGS_IN(); 2366 L_36111C03: 2367 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36111C03: mov al, byte ptr [esi + 0x14] */ 2368 L_36111C06: 2369 /* test LO8(eax), LO8(eax) */ /* 0x36111C06: test al, al */ 2370 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2371 _cf = 0; 2372 _flag_k = FK_NARROW(FK_TEST, 24); 2373 L_36111C08: 2374 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361120FA; /* 0x36111C08: jne 0x361120fa */ 2375 L_36111C0E: 2376 ecx = MEM32(esi + 0x20); /* 0x36111C0E: mov ecx, dword ptr [esi + 0x20] */ 2377 L_36111C11: 2378 RECOMP_ICALL(0x361331E0u); /* 0x36111C11: call 0x361331e0 */ /* not lifted */ 2379 RECOMP_FLAGS_IN(); 2380 L_36111C16: 2381 /* test LO8(eax), LO8(eax) */ /* 0x36111C16: test al, al */ 2382 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2383 _cf = 0; 2384 _flag_k = FK_NARROW(FK_TEST, 24); 2385 L_36111C18: 2386 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111C2C; /* 0x36111C18: jne 0x36111c2c */ 2387 L_36111C1A: 2388 eax = MEM32(esi + 0x20); /* 0x36111C1A: mov eax, dword ptr [esi + 0x20] */ 2389 L_36111C1D: 2390 MEM8(eax) = (uint8_t)(0); /* 0x36111C1D: mov byte ptr [eax], 0 */ 2391 L_36111C20: 2392 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x36111C20: fld dword ptr [esi + 0x94] */ 2393 L_36111C26: 2394 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36111C26: fadd dword ptr [esi + 0xc] */ 2395 L_36111C29: 2396 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36111C29: fstp dword ptr [esi + 0x10] */ 2397 L_36111C2C: 2398 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36111C2C: call dword ptr [0x3616f254] */ 2399 RECOMP_FLAGS_IN(); 2400 L_36111C32: 2401 /* test MEM32(esi + 0x68), eax */ /* 0x36111C32: test dword ptr [esi + 0x68], eax */ 2402 _flag_a = (uint32_t)(MEM32(esi + 0x68)); _flag_b = (uint32_t)(eax); 2403 _cf = 0; 2404 _flag_k = FK_TEST; 2405 L_36111C35: 2406 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111C9B; /* 0x36111C35: jne 0x36111c9b */ 2407 L_36111C37: 2408 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36111C37: fld dword ptr [esi + 0x10] */ 2409 L_36111C3A: 2410 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36111C3A: fcomp dword ptr [0x3617040c] */ 2411 fp_pop(); 2412 L_36111C40: 2413 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111C40: fnstsw ax */ 2414 L_36111C42: 2415 /* test HI8(eax), 1 */ /* 0x36111C42: test ah, 1 */ 2416 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2417 _cf = 0; 2418 _flag_k = FK_NARROW(FK_TEST, 24); 2419 L_36111C45: 2420 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111C5A; /* 0x36111C45: jne 0x36111c5a */ 2421 L_36111C47: 2422 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36111C47: fld dword ptr [esi + 0x10] */ 2423 L_36111C4A: 2424 _st[0] -= (double)*(float*)ADDR(esi + 0x94); /* 0x36111C4A: fsub dword ptr [esi + 0x94] */ 2425 L_36111C50: 2426 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36111C50: fcomp dword ptr [esi + 0xc] */ 2427 fp_pop(); 2428 L_36111C53: 2429 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111C53: fnstsw ax */ 2430 L_36111C55: 2431 /* test HI8(eax), 0x41u */ /* 0x36111C55: test ah, 0x41 */ 2432 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 2433 _cf = 0; 2434 _flag_k = FK_NARROW(FK_TEST, 24); 2435 L_36111C58: 2436 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111C9B; /* 0x36111C58: jne 0x36111c9b */ 2437 L_36111C5A: 2438 ecx = ebp + (-0x3C); /* 0x36111C5A: lea ecx, [ebp - 0x3c] */ 2439 L_36111C5D: 2440 PUSH32(esp, ecx); /* 0x36111C5D: push ecx */ 2441 L_36111C5E: 2442 ecx = MEM32(esi + 0x20); /* 0x36111C5E: mov ecx, dword ptr [esi + 0x20] */ 2443 L_36111C61: 2444 RECOMP_ICALL(0x36133FC0u); /* 0x36111C61: call 0x36133fc0 */ /* not lifted */ 2445 RECOMP_FLAGS_IN(); 2446 L_36111C66: 2447 edx = MEM32(eax); /* 0x36111C66: mov edx, dword ptr [eax] */ 2448 L_36111C68: 2449 ecx = MEM32(eax + 0x4); /* 0x36111C68: mov ecx, dword ptr [eax + 4] */ 2450 L_36111C6B: 2451 MEM32(ebp + (-0x24)) = edx; /* 0x36111C6B: mov dword ptr [ebp - 0x24], edx */ 2452 L_36111C6E: 2453 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36111C6E: fld dword ptr [ebp - 0x24] */ 2454 L_36111C71: 2455 _st[0] -= (double)*(float*)ADDR(esi + 0xB4); /* 0x36111C71: fsub dword ptr [esi + 0xb4] */ 2456 L_36111C77: 2457 edx = MEM32(eax + 0x8); /* 0x36111C77: mov edx, dword ptr [eax + 8] */ 2458 L_36111C7A: 2459 MEM32(ebp + (-0x20)) = ecx; /* 0x36111C7A: mov dword ptr [ebp - 0x20], ecx */ 2460 L_36111C7D: 2461 MEM32(ebp + (-0x1C)) = edx; /* 0x36111C7D: mov dword ptr [ebp - 0x1c], edx */ 2462 L_36111C80: 2463 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36111C80: fstp dword ptr [ebp - 0x24] */ 2464 L_36111C83: 2465 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36111C83: fld dword ptr [ebp - 0x20] */ 2466 L_36111C86: 2467 _st[0] -= (double)*(float*)ADDR(esi + 0xB8); /* 0x36111C86: fsub dword ptr [esi + 0xb8] */ 2468 L_36111C8C: 2469 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36111C8C: fstp dword ptr [ebp - 0x20] */ 2470 L_36111C8F: 2471 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36111C8F: fld dword ptr [ebp - 0x1c] */ 2472 L_36111C92: 2473 _st[0] -= (double)*(float*)ADDR(esi + 0xBC); /* 0x36111C92: fsub dword ptr [esi + 0xbc] */ 2474 L_36111C98: 2475 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36111C98: fstp dword ptr [ebp - 0x1c] */ 2476 L_36111C9B: 2477 eax = MEM32(esi + 0xC0); /* 0x36111C9B: mov eax, dword ptr [esi + 0xc0] */ 2478 L_36111CA1: 2479 /* cmp eax, 4 */ /* 0x36111CA1: cmp eax, 4 */ 2480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2482 _flag_k = FK_CMP; 2483 L_36111CA4: 2484 MEM32(ebp + (-0x18)) = 0; /* 0x36111CA4: mov dword ptr [ebp - 0x18], 0 */ 2485 L_36111CAB: 2486 MEM32(ebp + (-0x14)) = 0; /* 0x36111CAB: mov dword ptr [ebp - 0x14], 0 */ 2487 L_36111CB2: 2488 MEM32(ebp + (-0x10)) = 0; /* 0x36111CB2: mov dword ptr [ebp - 0x10], 0 */ 2489 L_36111CB9: 2490 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36111FF9; /* 0x36111CB9: ja 0x36111ff9 */ 2491 L_36111CBF: 2492 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x3611210C)); goto _ljump; } 2493 L_36111CC6: 2494 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111CC6: fld dword ptr [esi + 0xc] */ 2495 L_36111CC9: 2496 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111CC9: fcomp dword ptr [esi + 0xc4] */ 2497 fp_pop(); 2498 L_36111CCF: 2499 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111CCF: fnstsw ax */ 2500 L_36111CD1: 2501 /* test HI8(eax), 1 */ /* 0x36111CD1: test ah, 1 */ 2502 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2503 _cf = 0; 2504 _flag_k = FK_NARROW(FK_TEST, 24); 2505 L_36111CD4: 2506 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111CD4: jne 0x36111ff9 */ 2507 L_36111CDA: 2508 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111CDA: fld dword ptr [esi + 0xc4] */ 2509 L_36111CE0: 2510 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111CE0: fadd dword ptr [0x36170850] */ 2511 L_36111CE6: 2512 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111CE6: fst dword ptr [esi + 0xc4] */ 2513 L_36111CEC: 2514 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361709E0)); /* 0x36111CEC: fcomp dword ptr [0x361709e0] */ 2515 fp_pop(); 2516 L_36111CF2: 2517 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111CF2: fnstsw ax */ 2518 L_36111CF4: 2519 /* test HI8(eax), 1 */ /* 0x36111CF4: test ah, 1 */ 2520 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2521 _cf = 0; 2522 _flag_k = FK_NARROW(FK_TEST, 24); 2523 L_36111CF7: 2524 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111D0D; /* 0x36111CF7: jne 0x36111d0d */ 2525 L_36111CF9: 2526 MEM32(esi + 0xC4) = 0x3D4CCCCDu; /* 0x36111CF9: mov dword ptr [esi + 0xc4], 0x3d4ccccd */ 2527 L_36111D03: 2528 MEM32(esi + 0xC0) = 1; /* 0x36111D03: mov dword ptr [esi + 0xc0], 1 */ 2529 L_36111D0D: 2530 eax = ebp + (-0x18); /* 0x36111D0D: lea eax, [ebp - 0x18] */ 2531 L_36111D10: 2532 PUSH32(esp, eax); /* 0x36111D10: push eax */ 2533 L_36111D11: 2534 PUSH32(esp, 0x3EAu); /* 0x36111D11: push 0x3ea */ 2535 L_36111D16: 2536 goto L_36111EF9; /* 0x36111D16: jmp 0x36111ef9 */ 2537 L_36111D1B: 2538 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111D1B: fld dword ptr [esi + 0xc] */ 2539 L_36111D1E: 2540 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111D1E: fcomp dword ptr [esi + 0xc4] */ 2541 fp_pop(); 2542 L_36111D24: 2543 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111D24: fnstsw ax */ 2544 L_36111D26: 2545 /* test HI8(eax), 1 */ /* 0x36111D26: test ah, 1 */ 2546 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2547 _cf = 0; 2548 _flag_k = FK_NARROW(FK_TEST, 24); 2549 L_36111D29: 2550 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111D29: jne 0x36111ff9 */ 2551 L_36111D2F: 2552 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111D2F: fld dword ptr [esi + 0xc4] */ 2553 L_36111D35: 2554 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111D35: fadd dword ptr [0x36170850] */ 2555 L_36111D3B: 2556 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111D3B: fst dword ptr [esi + 0xc4] */ 2557 L_36111D41: 2558 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36111D41: fcomp dword ptr [0x36170d68] */ 2559 fp_pop(); 2560 L_36111D47: 2561 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111D47: fnstsw ax */ 2562 L_36111D49: 2563 /* test HI8(eax), 1 */ /* 0x36111D49: test ah, 1 */ 2564 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2565 _cf = 0; 2566 _flag_k = FK_NARROW(FK_TEST, 24); 2567 L_36111D4C: 2568 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111D62; /* 0x36111D4C: jne 0x36111d62 */ 2569 L_36111D4E: 2570 MEM32(esi + 0xC4) = 0x3DCCCCCDu; /* 0x36111D4E: mov dword ptr [esi + 0xc4], 0x3dcccccd */ 2571 L_36111D58: 2572 MEM32(esi + 0xC0) = 2; /* 0x36111D58: mov dword ptr [esi + 0xc0], 2 */ 2573 L_36111D62: 2574 ecx = MEM32(esi + 0x20); /* 0x36111D62: mov ecx, dword ptr [esi + 0x20] */ 2575 L_36111D65: 2576 edx = ebp + (-0x18); /* 0x36111D65: lea edx, [ebp - 0x18] */ 2577 L_36111D68: 2578 PUSH32(esp, edx); /* 0x36111D68: push edx */ 2579 L_36111D69: 2580 PUSH32(esp, 0x3EBu); /* 0x36111D69: push 0x3eb */ 2581 L_36111D6E: 2582 RECOMP_ICALL(0x36133900u); /* 0x36111D6E: call 0x36133900 */ /* not lifted */ 2583 RECOMP_FLAGS_IN(); 2584 L_36111D73: 2585 /* test LO8(eax), LO8(eax) */ /* 0x36111D73: test al, al */ 2586 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2587 _cf = 0; 2588 _flag_k = FK_NARROW(FK_TEST, 24); 2589 L_36111D75: 2590 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111D82; /* 0x36111D75: je 0x36111d82 */ 2591 L_36111D77: 2592 eax = ebp + (-0x18); /* 0x36111D77: lea eax, [ebp - 0x18] */ 2593 L_36111D7A: 2594 PUSH32(esp, eax); /* 0x36111D7A: push eax */ 2595 L_36111D7B: 2596 ecx = esi; /* 0x36111D7B: mov ecx, esi */ 2597 L_36111D7D: 2598 RECOMP_ICALL(0x36111350u); /* 0x36111D7D: call 0x36111350 */ /* not lifted */ 2599 RECOMP_FLAGS_IN(); 2600 L_36111D82: 2601 ecx = ebp + (-0x18); /* 0x36111D82: lea ecx, [ebp - 0x18] */ 2602 L_36111D85: 2603 PUSH32(esp, ecx); /* 0x36111D85: push ecx */ 2604 L_36111D86: 2605 ecx = MEM32(esi + 0x20); /* 0x36111D86: mov ecx, dword ptr [esi + 0x20] */ 2606 L_36111D89: 2607 PUSH32(esp, 0x3E9u); /* 0x36111D89: push 0x3e9 */ 2608 L_36111D8E: 2609 RECOMP_ICALL(0x36133900u); /* 0x36111D8E: call 0x36133900 */ /* not lifted */ 2610 RECOMP_FLAGS_IN(); 2611 L_36111D93: 2612 /* test LO8(eax), LO8(eax) */ /* 0x36111D93: test al, al */ 2613 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2614 _cf = 0; 2615 _flag_k = FK_NARROW(FK_TEST, 24); 2616 L_36111D95: 2617 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111D95: je 0x36111ff9 */ 2618 L_36111D9B: 2619 goto L_36111FEE; /* 0x36111D9B: jmp 0x36111fee */ 2620 L_36111DA0: 2621 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111DA0: fld dword ptr [esi + 0xc] */ 2622 L_36111DA3: 2623 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111DA3: fcomp dword ptr [esi + 0xc4] */ 2624 fp_pop(); 2625 L_36111DA9: 2626 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111DA9: fnstsw ax */ 2627 L_36111DAB: 2628 /* test HI8(eax), 1 */ /* 0x36111DAB: test ah, 1 */ 2629 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2630 _cf = 0; 2631 _flag_k = FK_NARROW(FK_TEST, 24); 2632 L_36111DAE: 2633 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111DAE: jne 0x36111ff9 */ 2634 L_36111DB4: 2635 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111DB4: fld dword ptr [esi + 0xc4] */ 2636 L_36111DBA: 2637 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111DBA: fadd dword ptr [0x36170850] */ 2638 L_36111DC0: 2639 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111DC0: fst dword ptr [esi + 0xc4] */ 2640 L_36111DC6: 2641 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170E94)); /* 0x36111DC6: fcomp dword ptr [0x36170e94] */ 2642 fp_pop(); 2643 L_36111DCC: 2644 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111DCC: fnstsw ax */ 2645 L_36111DCE: 2646 /* test HI8(eax), 1 */ /* 0x36111DCE: test ah, 1 */ 2647 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2648 _cf = 0; 2649 _flag_k = FK_NARROW(FK_TEST, 24); 2650 L_36111DD1: 2651 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111DE7; /* 0x36111DD1: jne 0x36111de7 */ 2652 L_36111DD3: 2653 MEM32(esi + 0xC4) = 0x3E19999Au; /* 0x36111DD3: mov dword ptr [esi + 0xc4], 0x3e19999a */ 2654 L_36111DDD: 2655 MEM32(esi + 0xC0) = 3; /* 0x36111DDD: mov dword ptr [esi + 0xc0], 3 */ 2656 L_36111DE7: 2657 ecx = MEM32(esi + 0x20); /* 0x36111DE7: mov ecx, dword ptr [esi + 0x20] */ 2658 L_36111DEA: 2659 eax = ebp + (-0x18); /* 0x36111DEA: lea eax, [ebp - 0x18] */ 2660 L_36111DED: 2661 PUSH32(esp, eax); /* 0x36111DED: push eax */ 2662 L_36111DEE: 2663 PUSH32(esp, 0x3EBu); /* 0x36111DEE: push 0x3eb */ 2664 L_36111DF3: 2665 RECOMP_ICALL(0x36133900u); /* 0x36111DF3: call 0x36133900 */ /* not lifted */ 2666 RECOMP_FLAGS_IN(); 2667 L_36111DF8: 2668 /* test LO8(eax), LO8(eax) */ /* 0x36111DF8: test al, al */ 2669 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2670 _cf = 0; 2671 _flag_k = FK_NARROW(FK_TEST, 24); 2672 L_36111DFA: 2673 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111E07; /* 0x36111DFA: je 0x36111e07 */ 2674 L_36111DFC: 2675 ecx = ebp + (-0x18); /* 0x36111DFC: lea ecx, [ebp - 0x18] */ 2676 L_36111DFF: 2677 PUSH32(esp, ecx); /* 0x36111DFF: push ecx */ 2678 L_36111E00: 2679 ecx = esi; /* 0x36111E00: mov ecx, esi */ 2680 L_36111E02: 2681 RECOMP_ICALL(0x36111350u); /* 0x36111E02: call 0x36111350 */ /* not lifted */ 2682 RECOMP_FLAGS_IN(); 2683 L_36111E07: 2684 ecx = MEM32(esi + 0x20); /* 0x36111E07: mov ecx, dword ptr [esi + 0x20] */ 2685 L_36111E0A: 2686 edx = ebp + (-0x18); /* 0x36111E0A: lea edx, [ebp - 0x18] */ 2687 L_36111E0D: 2688 PUSH32(esp, edx); /* 0x36111E0D: push edx */ 2689 L_36111E0E: 2690 PUSH32(esp, 0x3E8u); /* 0x36111E0E: push 0x3e8 */ 2691 L_36111E13: 2692 RECOMP_ICALL(0x36133900u); /* 0x36111E13: call 0x36133900 */ /* not lifted */ 2693 RECOMP_FLAGS_IN(); 2694 L_36111E18: 2695 /* test LO8(eax), LO8(eax) */ /* 0x36111E18: test al, al */ 2696 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2697 _cf = 0; 2698 _flag_k = FK_NARROW(FK_TEST, 24); 2699 L_36111E1A: 2700 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111E1A: je 0x36111ff9 */ 2701 L_36111E20: 2702 eax = ebp + (-0x18); /* 0x36111E20: lea eax, [ebp - 0x18] */ 2703 L_36111E23: 2704 PUSH32(esp, eax); /* 0x36111E23: push eax */ 2705 L_36111E24: 2706 goto L_36111FF2; /* 0x36111E24: jmp 0x36111ff2 */ 2707 L_36111E29: 2708 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111E29: fld dword ptr [esi + 0xc] */ 2709 L_36111E2C: 2710 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111E2C: fcomp dword ptr [esi + 0xc4] */ 2711 fp_pop(); 2712 L_36111E32: 2713 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111E32: fnstsw ax */ 2714 L_36111E34: 2715 /* test HI8(eax), 1 */ /* 0x36111E34: test ah, 1 */ 2716 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2717 _cf = 0; 2718 _flag_k = FK_NARROW(FK_TEST, 24); 2719 L_36111E37: 2720 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111E37: jne 0x36111ff9 */ 2721 L_36111E3D: 2722 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111E3D: fld dword ptr [esi + 0xc4] */ 2723 L_36111E43: 2724 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111E43: fadd dword ptr [0x36170850] */ 2725 L_36111E49: 2726 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111E49: fst dword ptr [esi + 0xc4] */ 2727 L_36111E4F: 2728 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170F04)); /* 0x36111E4F: fcomp dword ptr [0x36170f04] */ 2729 fp_pop(); 2730 L_36111E55: 2731 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111E55: fnstsw ax */ 2732 L_36111E57: 2733 /* test HI8(eax), 1 */ /* 0x36111E57: test ah, 1 */ 2734 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2735 _cf = 0; 2736 _flag_k = FK_NARROW(FK_TEST, 24); 2737 L_36111E5A: 2738 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111E70; /* 0x36111E5A: jne 0x36111e70 */ 2739 L_36111E5C: 2740 MEM32(esi + 0xC4) = 0x3E4CCCCDu; /* 0x36111E5C: mov dword ptr [esi + 0xc4], 0x3e4ccccd */ 2741 L_36111E66: 2742 MEM32(esi + 0xC0) = 4; /* 0x36111E66: mov dword ptr [esi + 0xc0], 4 */ 2743 L_36111E70: 2744 ecx = ebp + (-0x18); /* 0x36111E70: lea ecx, [ebp - 0x18] */ 2745 L_36111E73: 2746 PUSH32(esp, ecx); /* 0x36111E73: push ecx */ 2747 L_36111E74: 2748 ecx = MEM32(esi + 0x20); /* 0x36111E74: mov ecx, dword ptr [esi + 0x20] */ 2749 L_36111E77: 2750 PUSH32(esp, 0x3EDu); /* 0x36111E77: push 0x3ed */ 2751 L_36111E7C: 2752 RECOMP_ICALL(0x36133900u); /* 0x36111E7C: call 0x36133900 */ /* not lifted */ 2753 RECOMP_FLAGS_IN(); 2754 L_36111E81: 2755 /* test LO8(eax), LO8(eax) */ /* 0x36111E81: test al, al */ 2756 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2757 _cf = 0; 2758 _flag_k = FK_NARROW(FK_TEST, 24); 2759 L_36111E83: 2760 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111E90; /* 0x36111E83: je 0x36111e90 */ 2761 L_36111E85: 2762 edx = ebp + (-0x18); /* 0x36111E85: lea edx, [ebp - 0x18] */ 2763 L_36111E88: 2764 PUSH32(esp, edx); /* 0x36111E88: push edx */ 2765 L_36111E89: 2766 ecx = esi; /* 0x36111E89: mov ecx, esi */ 2767 L_36111E8B: 2768 RECOMP_ICALL(0x36111350u); /* 0x36111E8B: call 0x36111350 */ /* not lifted */ 2769 RECOMP_FLAGS_IN(); 2770 L_36111E90: 2771 ecx = MEM32(esi + 0x20); /* 0x36111E90: mov ecx, dword ptr [esi + 0x20] */ 2772 L_36111E93: 2773 eax = ebp + (-0x18); /* 0x36111E93: lea eax, [ebp - 0x18] */ 2774 L_36111E96: 2775 PUSH32(esp, eax); /* 0x36111E96: push eax */ 2776 L_36111E97: 2777 PUSH32(esp, 0x3F3u); /* 0x36111E97: push 0x3f3 */ 2778 L_36111E9C: 2779 RECOMP_ICALL(0x36133900u); /* 0x36111E9C: call 0x36133900 */ /* not lifted */ 2780 RECOMP_FLAGS_IN(); 2781 L_36111EA1: 2782 /* test LO8(eax), LO8(eax) */ /* 0x36111EA1: test al, al */ 2783 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2784 _cf = 0; 2785 _flag_k = FK_NARROW(FK_TEST, 24); 2786 L_36111EA3: 2787 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111EB0; /* 0x36111EA3: je 0x36111eb0 */ 2788 L_36111EA5: 2789 ecx = ebp + (-0x18); /* 0x36111EA5: lea ecx, [ebp - 0x18] */ 2790 L_36111EA8: 2791 PUSH32(esp, ecx); /* 0x36111EA8: push ecx */ 2792 L_36111EA9: 2793 ecx = esi; /* 0x36111EA9: mov ecx, esi */ 2794 L_36111EAB: 2795 RECOMP_ICALL(0x36111350u); /* 0x36111EAB: call 0x36111350 */ /* not lifted */ 2796 RECOMP_FLAGS_IN(); 2797 L_36111EB0: 2798 ecx = MEM32(esi + 0x20); /* 0x36111EB0: mov ecx, dword ptr [esi + 0x20] */ 2799 L_36111EB3: 2800 edx = ebp + (-0x18); /* 0x36111EB3: lea edx, [ebp - 0x18] */ 2801 L_36111EB6: 2802 PUSH32(esp, edx); /* 0x36111EB6: push edx */ 2803 L_36111EB7: 2804 PUSH32(esp, 0x3F4u); /* 0x36111EB7: push 0x3f4 */ 2805 L_36111EBC: 2806 RECOMP_ICALL(0x36133900u); /* 0x36111EBC: call 0x36133900 */ /* not lifted */ 2807 RECOMP_FLAGS_IN(); 2808 L_36111EC1: 2809 /* test LO8(eax), LO8(eax) */ /* 0x36111EC1: test al, al */ 2810 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2811 _cf = 0; 2812 _flag_k = FK_NARROW(FK_TEST, 24); 2813 L_36111EC3: 2814 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111ED0; /* 0x36111EC3: je 0x36111ed0 */ 2815 L_36111EC5: 2816 eax = ebp + (-0x18); /* 0x36111EC5: lea eax, [ebp - 0x18] */ 2817 L_36111EC8: 2818 PUSH32(esp, eax); /* 0x36111EC8: push eax */ 2819 L_36111EC9: 2820 ecx = esi; /* 0x36111EC9: mov ecx, esi */ 2821 L_36111ECB: 2822 RECOMP_ICALL(0x36111350u); /* 0x36111ECB: call 0x36111350 */ /* not lifted */ 2823 RECOMP_FLAGS_IN(); 2824 L_36111ED0: 2825 ecx = ebp + (-0x18); /* 0x36111ED0: lea ecx, [ebp - 0x18] */ 2826 L_36111ED3: 2827 PUSH32(esp, ecx); /* 0x36111ED3: push ecx */ 2828 L_36111ED4: 2829 ecx = MEM32(esi + 0x20); /* 0x36111ED4: mov ecx, dword ptr [esi + 0x20] */ 2830 L_36111ED7: 2831 PUSH32(esp, 0x3EFu); /* 0x36111ED7: push 0x3ef */ 2832 L_36111EDC: 2833 RECOMP_ICALL(0x36133900u); /* 0x36111EDC: call 0x36133900 */ /* not lifted */ 2834 RECOMP_FLAGS_IN(); 2835 L_36111EE1: 2836 /* test LO8(eax), LO8(eax) */ /* 0x36111EE1: test al, al */ 2837 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2838 _cf = 0; 2839 _flag_k = FK_NARROW(FK_TEST, 24); 2840 L_36111EE3: 2841 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111EF0; /* 0x36111EE3: je 0x36111ef0 */ 2842 L_36111EE5: 2843 edx = ebp + (-0x18); /* 0x36111EE5: lea edx, [ebp - 0x18] */ 2844 L_36111EE8: 2845 PUSH32(esp, edx); /* 0x36111EE8: push edx */ 2846 L_36111EE9: 2847 ecx = esi; /* 0x36111EE9: mov ecx, esi */ 2848 L_36111EEB: 2849 RECOMP_ICALL(0x36111350u); /* 0x36111EEB: call 0x36111350 */ /* not lifted */ 2850 RECOMP_FLAGS_IN(); 2851 L_36111EF0: 2852 eax = ebp + (-0x18); /* 0x36111EF0: lea eax, [ebp - 0x18] */ 2853 L_36111EF3: 2854 PUSH32(esp, eax); /* 0x36111EF3: push eax */ 2855 L_36111EF4: 2856 PUSH32(esp, 0x3F0u); /* 0x36111EF4: push 0x3f0 */ 2857 L_36111EF9: 2858 ecx = MEM32(esi + 0x20); /* 0x36111EF9: mov ecx, dword ptr [esi + 0x20] */ 2859 L_36111EFC: 2860 RECOMP_ICALL(0x36133900u); /* 0x36111EFC: call 0x36133900 */ /* not lifted */ 2861 RECOMP_FLAGS_IN(); 2862 L_36111F01: 2863 /* test LO8(eax), LO8(eax) */ /* 0x36111F01: test al, al */ 2864 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2865 _cf = 0; 2866 _flag_k = FK_NARROW(FK_TEST, 24); 2867 L_36111F03: 2868 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111F03: je 0x36111ff9 */ 2869 L_36111F09: 2870 ecx = ebp + (-0x18); /* 0x36111F09: lea ecx, [ebp - 0x18] */ 2871 L_36111F0C: 2872 PUSH32(esp, ecx); /* 0x36111F0C: push ecx */ 2873 L_36111F0D: 2874 goto L_36111FF2; /* 0x36111F0D: jmp 0x36111ff2 */ 2875 L_36111F12: 2876 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111F12: fld dword ptr [esi + 0xc] */ 2877 L_36111F15: 2878 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111F15: fcomp dword ptr [esi + 0xc4] */ 2879 fp_pop(); 2880 L_36111F1B: 2881 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111F1B: fnstsw ax */ 2882 L_36111F1D: 2883 /* test HI8(eax), 1 */ /* 0x36111F1D: test ah, 1 */ 2884 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2885 _cf = 0; 2886 _flag_k = FK_NARROW(FK_TEST, 24); 2887 L_36111F20: 2888 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111F20: jne 0x36111ff9 */ 2889 L_36111F26: 2890 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111F26: fld dword ptr [esi + 0xc4] */ 2891 L_36111F2C: 2892 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111F2C: fadd dword ptr [0x36170850] */ 2893 L_36111F32: 2894 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111F32: fst dword ptr [esi + 0xc4] */ 2895 L_36111F38: 2896 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170E78)); /* 0x36111F38: fcomp dword ptr [0x36170e78] */ 2897 fp_pop(); 2898 L_36111F3E: 2899 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111F3E: fnstsw ax */ 2900 L_36111F40: 2901 /* test HI8(eax), 1 */ /* 0x36111F40: test ah, 1 */ 2902 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2903 _cf = 0; 2904 _flag_k = FK_NARROW(FK_TEST, 24); 2905 L_36111F43: 2906 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111F59; /* 0x36111F43: jne 0x36111f59 */ 2907 L_36111F45: 2908 MEM32(esi + 0xC4) = 0x3E800000u; /* 0x36111F45: mov dword ptr [esi + 0xc4], 0x3e800000 */ 2909 L_36111F4F: 2910 MEM32(esi + 0xC0) = 5; /* 0x36111F4F: mov dword ptr [esi + 0xc0], 5 */ 2911 L_36111F59: 2912 ecx = MEM32(esi + 0x20); /* 0x36111F59: mov ecx, dword ptr [esi + 0x20] */ 2913 L_36111F5C: 2914 edx = ebp + (-0x18); /* 0x36111F5C: lea edx, [ebp - 0x18] */ 2915 L_36111F5F: 2916 PUSH32(esp, edx); /* 0x36111F5F: push edx */ 2917 L_36111F60: 2918 PUSH32(esp, 0x3EEu); /* 0x36111F60: push 0x3ee */ 2919 L_36111F65: 2920 RECOMP_ICALL(0x36133900u); /* 0x36111F65: call 0x36133900 */ /* not lifted */ 2921 RECOMP_FLAGS_IN(); 2922 L_36111F6A: 2923 /* test LO8(eax), LO8(eax) */ /* 0x36111F6A: test al, al */ 2924 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2925 _cf = 0; 2926 _flag_k = FK_NARROW(FK_TEST, 24); 2927 L_36111F6C: 2928 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111F79; /* 0x36111F6C: je 0x36111f79 */ 2929 L_36111F6E: 2930 eax = ebp + (-0x18); /* 0x36111F6E: lea eax, [ebp - 0x18] */ 2931 L_36111F71: 2932 PUSH32(esp, eax); /* 0x36111F71: push eax */ 2933 L_36111F72: 2934 ecx = esi; /* 0x36111F72: mov ecx, esi */ 2935 L_36111F74: 2936 RECOMP_ICALL(0x36111350u); /* 0x36111F74: call 0x36111350 */ /* not lifted */ 2937 RECOMP_FLAGS_IN(); 2938 L_36111F79: 2939 ecx = ebp + (-0x18); /* 0x36111F79: lea ecx, [ebp - 0x18] */ 2940 L_36111F7C: 2941 PUSH32(esp, ecx); /* 0x36111F7C: push ecx */ 2942 L_36111F7D: 2943 ecx = MEM32(esi + 0x20); /* 0x36111F7D: mov ecx, dword ptr [esi + 0x20] */ 2944 L_36111F80: 2945 PUSH32(esp, 0x3F5u); /* 0x36111F80: push 0x3f5 */ 2946 L_36111F85: 2947 RECOMP_ICALL(0x36133900u); /* 0x36111F85: call 0x36133900 */ /* not lifted */ 2948 RECOMP_FLAGS_IN(); 2949 L_36111F8A: 2950 /* test LO8(eax), LO8(eax) */ /* 0x36111F8A: test al, al */ 2951 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2952 _cf = 0; 2953 _flag_k = FK_NARROW(FK_TEST, 24); 2954 L_36111F8C: 2955 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111F99; /* 0x36111F8C: je 0x36111f99 */ 2956 L_36111F8E: 2957 edx = ebp + (-0x18); /* 0x36111F8E: lea edx, [ebp - 0x18] */ 2958 L_36111F91: 2959 PUSH32(esp, edx); /* 0x36111F91: push edx */ 2960 L_36111F92: 2961 ecx = esi; /* 0x36111F92: mov ecx, esi */ 2962 L_36111F94: 2963 RECOMP_ICALL(0x36111350u); /* 0x36111F94: call 0x36111350 */ /* not lifted */ 2964 RECOMP_FLAGS_IN(); 2965 L_36111F99: 2966 ecx = MEM32(esi + 0x20); /* 0x36111F99: mov ecx, dword ptr [esi + 0x20] */ 2967 L_36111F9C: 2968 eax = ebp + (-0x18); /* 0x36111F9C: lea eax, [ebp - 0x18] */ 2969 L_36111F9F: 2970 PUSH32(esp, eax); /* 0x36111F9F: push eax */ 2971 L_36111FA0: 2972 PUSH32(esp, 0x3F6u); /* 0x36111FA0: push 0x3f6 */ 2973 L_36111FA5: 2974 RECOMP_ICALL(0x36133900u); /* 0x36111FA5: call 0x36133900 */ /* not lifted */ 2975 RECOMP_FLAGS_IN(); 2976 L_36111FAA: 2977 /* test LO8(eax), LO8(eax) */ /* 0x36111FAA: test al, al */ 2978 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2979 _cf = 0; 2980 _flag_k = FK_NARROW(FK_TEST, 24); 2981 L_36111FAC: 2982 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FB9; /* 0x36111FAC: je 0x36111fb9 */ 2983 L_36111FAE: 2984 ecx = ebp + (-0x18); /* 0x36111FAE: lea ecx, [ebp - 0x18] */ 2985 L_36111FB1: 2986 PUSH32(esp, ecx); /* 0x36111FB1: push ecx */ 2987 L_36111FB2: 2988 ecx = esi; /* 0x36111FB2: mov ecx, esi */ 2989 L_36111FB4: 2990 RECOMP_ICALL(0x36111350u); /* 0x36111FB4: call 0x36111350 */ /* not lifted */ 2991 RECOMP_FLAGS_IN(); 2992 L_36111FB9: 2993 ecx = MEM32(esi + 0x20); /* 0x36111FB9: mov ecx, dword ptr [esi + 0x20] */ 2994 L_36111FBC: 2995 edx = ebp + (-0x18); /* 0x36111FBC: lea edx, [ebp - 0x18] */ 2996 L_36111FBF: 2997 PUSH32(esp, edx); /* 0x36111FBF: push edx */ 2998 L_36111FC0: 2999 PUSH32(esp, 0x3F1u); /* 0x36111FC0: push 0x3f1 */ 3000 L_36111FC5: 3001 RECOMP_ICALL(0x36133900u); /* 0x36111FC5: call 0x36133900 */ /* not lifted */ 3002 RECOMP_FLAGS_IN(); 3003 L_36111FCA: 3004 /* test LO8(eax), LO8(eax) */ /* 0x36111FCA: test al, al */ 3005 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3006 _cf = 0; 3007 _flag_k = FK_NARROW(FK_TEST, 24); 3008 L_36111FCC: 3009 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FD9; /* 0x36111FCC: je 0x36111fd9 */ 3010 L_36111FCE: 3011 eax = ebp + (-0x18); /* 0x36111FCE: lea eax, [ebp - 0x18] */ 3012 L_36111FD1: 3013 PUSH32(esp, eax); /* 0x36111FD1: push eax */ 3014 L_36111FD2: 3015 ecx = esi; /* 0x36111FD2: mov ecx, esi */ 3016 L_36111FD4: 3017 RECOMP_ICALL(0x36111350u); /* 0x36111FD4: call 0x36111350 */ /* not lifted */ 3018 RECOMP_FLAGS_IN(); 3019 L_36111FD9: 3020 ecx = ebp + (-0x18); /* 0x36111FD9: lea ecx, [ebp - 0x18] */ 3021 L_36111FDC: 3022 PUSH32(esp, ecx); /* 0x36111FDC: push ecx */ 3023 L_36111FDD: 3024 ecx = MEM32(esi + 0x20); /* 0x36111FDD: mov ecx, dword ptr [esi + 0x20] */ 3025 L_36111FE0: 3026 PUSH32(esp, 0x3F2u); /* 0x36111FE0: push 0x3f2 */ 3027 L_36111FE5: 3028 RECOMP_ICALL(0x36133900u); /* 0x36111FE5: call 0x36133900 */ /* not lifted */ 3029 RECOMP_FLAGS_IN(); 3030 L_36111FEA: 3031 /* test LO8(eax), LO8(eax) */ /* 0x36111FEA: test al, al */ 3032 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3033 _cf = 0; 3034 _flag_k = FK_NARROW(FK_TEST, 24); 3035 L_36111FEC: 3036 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111FEC: je 0x36111ff9 */ 3037 L_36111FEE: 3038 edx = ebp + (-0x18); /* 0x36111FEE: lea edx, [ebp - 0x18] */ 3039 L_36111FF1: 3040 PUSH32(esp, edx); /* 0x36111FF1: push edx */ 3041 L_36111FF2: 3042 ecx = esi; /* 0x36111FF2: mov ecx, esi */ 3043 L_36111FF4: 3044 RECOMP_ICALL(0x36111350u); /* 0x36111FF4: call 0x36111350 */ /* not lifted */ 3045 RECOMP_FLAGS_IN(); 3046 L_36111FF9: 3047 PUSH32(esp, edi); /* 0x36111FF9: push edi */ 3048 L_36111FFA: 3049 RECOMP_ICALL(0x360F7B00u); /* 0x36111FFA: call 0x360f7b00 */ /* not lifted */ 3050 RECOMP_FLAGS_IN(); 3051 L_36111FFF: 3052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 3053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3054 eax = eax + 0x28u; /* 0x36111FFF: add eax, 0x28 */ 3055 _flag_k = FK_ADD; 3056 L_36112002: 3057 ecx = MEM32(eax); /* 0x36112002: mov ecx, dword ptr [eax] */ 3058 L_36112004: 3059 MEM32(ebp + (-0x30)) = ecx; /* 0x36112004: mov dword ptr [ebp - 0x30], ecx */ 3060 L_36112007: 3061 edx = MEM32(eax + 0x4); /* 0x36112007: mov edx, dword ptr [eax + 4] */ 3062 L_3611200A: 3063 MEM32(ebp + (-0x2C)) = edx; /* 0x3611200A: mov dword ptr [ebp - 0x2c], edx */ 3064 L_3611200D: 3065 edx = MEM32(esi + 0x8); /* 0x3611200D: mov edx, dword ptr [esi + 8] */ 3066 L_36112010: 3067 eax = MEM32(eax + 0x8); /* 0x36112010: mov eax, dword ptr [eax + 8] */ 3068 L_36112013: 3069 ecx = ebp + (-0x30); /* 0x36112013: lea ecx, [ebp - 0x30] */ 3070 L_36112016: 3071 PUSH32(esp, ecx); /* 0x36112016: push ecx */ 3072 L_36112017: 3073 ecx = MEM32(esi + 0x24); /* 0x36112017: mov ecx, dword ptr [esi + 0x24] */ 3074 L_3611201A: 3075 PUSH32(esp, edx); /* 0x3611201A: push edx */ 3076 L_3611201B: 3077 MEM32(ebp + (-0x28)) = eax; /* 0x3611201B: mov dword ptr [ebp - 0x28], eax */ 3078 L_3611201E: 3079 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x3611201E: call dword ptr [0x3616f6c0] */ 3080 RECOMP_FLAGS_IN(); 3081 L_36112024: 3082 ecx = MEM32(esi + 0x20); /* 0x36112024: mov ecx, dword ptr [esi + 0x20] */ 3083 L_36112027: 3084 eax = ebp + (-0x3C); /* 0x36112027: lea eax, [ebp - 0x3c] */ 3085 L_3611202A: 3086 PUSH32(esp, eax); /* 0x3611202A: push eax */ 3087 L_3611202B: 3088 RECOMP_ICALL(0x36133E80u); /* 0x3611202B: call 0x36133e80 */ /* not lifted */ 3089 RECOMP_FLAGS_IN(); 3090 L_36112030: 3091 ecx = MEM32(esi + 0x24); /* 0x36112030: mov ecx, dword ptr [esi + 0x24] */ 3092 L_36112033: 3093 edi = MEM32(eax); /* 0x36112033: mov edi, dword ptr [eax] */ 3094 L_36112035: 3095 edx = ecx + 0x78; /* 0x36112035: lea edx, [ecx + 0x78] */ 3096 L_36112038: 3097 MEM32(edx) = edi; /* 0x36112038: mov dword ptr [edx], edi */ 3098 L_3611203A: 3099 edi = MEM32(eax + 0x4); /* 0x3611203A: mov edi, dword ptr [eax + 4] */ 3100 L_3611203D: 3101 MEM32(edx + 0x4) = edi; /* 0x3611203D: mov dword ptr [edx + 4], edi */ 3102 L_36112040: 3103 eax = MEM32(eax + 0x8); /* 0x36112040: mov eax, dword ptr [eax + 8] */ 3104 L_36112043: 3105 PUSH32(esp, 1); /* 0x36112043: push 1 */ 3106 L_36112045: 3107 MEM32(edx + 0x8) = eax; /* 0x36112045: mov dword ptr [edx + 8], eax */ 3108 L_36112048: 3109 edx = MEM32(ecx); /* 0x36112048: mov edx, dword ptr [ecx] */ 3110 L_3611204A: 3111 PUSH32(esp, 1); /* 0x3611204A: push 1 */ 3112 L_3611204C: 3113 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611204C: call dword ptr [edx + 0x2c] */ 3114 RECOMP_FLAGS_IN(); 3115 L_3611204F: 3116 ecx = MEM32(esi + 0x20); /* 0x3611204F: mov ecx, dword ptr [esi + 0x20] */ 3117 L_36112052: 3118 eax = ebp + (-0x80); /* 0x36112052: lea eax, [ebp - 0x80] */ 3119 L_36112055: 3120 PUSH32(esp, eax); /* 0x36112055: push eax */ 3121 L_36112056: 3122 RECOMP_ICALL(0x36133DC0u); /* 0x36112056: call 0x36133dc0 */ /* not lifted */ 3123 RECOMP_FLAGS_IN(); 3124 L_3611205B: 3125 PUSH32(esp, eax); /* 0x3611205B: push eax */ 3126 L_3611205C: 3127 ecx = ebp + (-0x40); /* 0x3611205C: lea ecx, [ebp - 0x40] */ 3128 L_3611205F: 3129 MEM32(ebp + (-0x4)) = 0; /* 0x3611205F: mov dword ptr [ebp - 4], 0 */ 3130 L_36112066: 3131 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112066: call dword ptr [0x361701a4] */ 3132 RECOMP_FLAGS_IN(); 3133 L_3611206C: 3134 ecx = MEM32(esi + 0x24); /* 0x3611206C: mov ecx, dword ptr [esi + 0x24] */ 3135 L_3611206F: 3136 edi = MEM32(eax); /* 0x3611206F: mov edi, dword ptr [eax] */ 3137 L_36112071: 3138 edx = ecx + 0x84; /* 0x36112071: lea edx, [ecx + 0x84] */ 3139 L_36112077: 3140 MEM32(edx) = edi; /* 0x36112077: mov dword ptr [edx], edi */ 3141 L_36112079: 3142 edi = MEM32(eax + 0x4); /* 0x36112079: mov edi, dword ptr [eax + 4] */ 3143 L_3611207C: 3144 MEM32(edx + 0x4) = edi; /* 0x3611207C: mov dword ptr [edx + 4], edi */ 3145 L_3611207F: 3146 edi = MEM32(eax + 0x8); /* 0x3611207F: mov edi, dword ptr [eax + 8] */ 3147 L_36112082: 3148 MEM32(edx + 0x8) = edi; /* 0x36112082: mov dword ptr [edx + 8], edi */ 3149 L_36112085: 3150 eax = MEM32(eax + 0xC); /* 0x36112085: mov eax, dword ptr [eax + 0xc] */ 3151 L_36112088: 3152 PUSH32(esp, 1); /* 0x36112088: push 1 */ 3153 L_3611208A: 3154 MEM32(edx + 0xC) = eax; /* 0x3611208A: mov dword ptr [edx + 0xc], eax */ 3155 L_3611208D: 3156 edx = MEM32(ecx); /* 0x3611208D: mov edx, dword ptr [ecx] */ 3157 L_3611208F: 3158 PUSH32(esp, 2); /* 0x3611208F: push 2 */ 3159 L_36112091: 3160 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112091: call dword ptr [edx + 0x2c] */ 3161 RECOMP_FLAGS_IN(); 3162 L_36112094: 3163 eax = MEM32(esi + 0x20); /* 0x36112094: mov eax, dword ptr [esi + 0x20] */ 3164 L_36112097: 3165 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x36112097: mov dl, byte ptr [eax + 0x108] */ 3166 L_3611209D: 3167 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3168 ecx = 0; /* 0x3611209D: xor ecx, ecx */ 3169 _cf = 0; 3170 _flag_k = FK_TEST; 3171 L_3611209F: 3172 /* test LO8(edx), LO8(edx) */ /* 0x3611209F: test dl, dl */ 3173 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3174 _cf = 0; 3175 _flag_k = FK_NARROW(FK_TEST, 24); 3176 L_361120A1: 3177 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) ? 1 : 0); /* 0x361120A1: sete cl */ 3178 L_361120A4: 3179 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361120A4: mov dword ptr [ebp - 4], 0xffffffff */ 3180 L_361120AB: 3181 PUSH32(esp, ecx); /* 0x361120AB: push ecx */ 3182 L_361120AC: 3183 ecx = MEM32(esi + 0x24); /* 0x361120AC: mov ecx, dword ptr [esi + 0x24] */ 3184 L_361120AF: 3185 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361120AF: call dword ptr [0x3616f620] */ 3186 RECOMP_FLAGS_IN(); 3187 L_361120B5: 3188 edx = MEM32(esi + 0x28); /* 0x361120B5: mov edx, dword ptr [esi + 0x28] */ 3189 L_361120B8: 3190 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 3191 edx = edx & 0x200u; /* 0x361120B8: and edx, 0x200 */ 3192 _cf = 0; 3193 _flag_k = FK_TEST; 3194 L_361120BE: 3195 /* cmp edx, 0x200u */ /* 0x361120BE: cmp edx, 0x200 */ 3196 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 3197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3198 _flag_k = FK_CMP; 3199 L_361120C4: 3200 edi = POP32_VAL(esp); /* 0x361120C4: pop edi */ 3201 L_361120C5: 3202 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361120D8; /* 0x361120C5: jne 0x361120d8 */ 3203 L_361120C7: 3204 eax = MEM32(esi + 0x24); /* 0x361120C7: mov eax, dword ptr [esi + 0x24] */ 3205 L_361120CA: 3206 ecx = MEM32(eax + 0x27C); /* 0x361120CA: mov ecx, dword ptr [eax + 0x27c] */ 3207 L_361120D0: 3208 /* test ecx, ecx */ /* 0x361120D0: test ecx, ecx */ 3209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3210 _cf = 0; 3211 _flag_k = FK_TEST; 3212 L_361120D2: 3213 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361120D8; /* 0x361120D2: jne 0x361120d8 */ 3214 L_361120D4: 3215 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361120D4: mov byte ptr [esi + 0x14], 1 */ 3216 L_361120D8: 3217 ecx = ebp + (-0x24); /* 0x361120D8: lea ecx, [ebp - 0x24] */ 3218 L_361120DB: 3219 PUSH32(esp, ecx); /* 0x361120DB: push ecx */ 3220 L_361120DC: 3221 ecx = MEM32(esi + 0x20); /* 0x361120DC: mov ecx, dword ptr [esi + 0x20] */ 3222 L_361120DF: 3223 RECOMP_ICALL(0x36133FC0u); /* 0x361120DF: call 0x36133fc0 */ /* not lifted */ 3224 RECOMP_FLAGS_IN(); 3225 L_361120E4: 3226 edx = MEM32(eax); /* 0x361120E4: mov edx, dword ptr [eax] */ 3227 L_361120E6: 3228 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u); 3229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3230 esi = esi + 0xB4u; /* 0x361120E6: add esi, 0xb4 */ 3231 _flag_k = FK_ADD; 3232 L_361120EC: 3233 MEM32(esi) = edx; /* 0x361120EC: mov dword ptr [esi], edx */ 3234 L_361120EE: 3235 ecx = MEM32(eax + 0x4); /* 0x361120EE: mov ecx, dword ptr [eax + 4] */ 3236 L_361120F1: 3237 MEM32(esi + 0x4) = ecx; /* 0x361120F1: mov dword ptr [esi + 4], ecx */ 3238 L_361120F4: 3239 edx = MEM32(eax + 0x8); /* 0x361120F4: mov edx, dword ptr [eax + 8] */ 3240 L_361120F7: 3241 MEM32(esi + 0x8) = edx; /* 0x361120F7: mov dword ptr [esi + 8], edx */ 3242 L_361120FA: 3243 ecx = MEM32(ebp + (-0xC)); /* 0x361120FA: mov ecx, dword ptr [ebp - 0xc] */ 3244 L_361120FD: 3245 esi = POP32_VAL(esp); /* 0x361120FD: pop esi */ 3246 L_361120FE: 3247 MEM32(FS_BASE + (0)) = ecx; /* 0x361120FE: mov dword ptr fs:[0], ecx */ 3248 L_36112105: 3249 esp = ebp; /* 0x36112105: mov esp, ebp */ 3250 L_36112107: 3251 ebp = POP32_VAL(esp); /* 0x36112107: pop ebp */ 3252 L_36112108: 3253 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112108: ret */ 3254 _ljump: 3255 switch (_itail_tgt) { 3256 case 0x36111BE0u: goto L_36111BE0; 3257 case 0x36111BE1u: goto L_36111BE1; 3258 case 0x36111BE3u: goto L_36111BE3; 3259 case 0x36111BE5u: goto L_36111BE5; 3260 case 0x36111BEAu: goto L_36111BEA; 3261 case 0x36111BF0u: goto L_36111BF0; 3262 case 0x36111BF1u: goto L_36111BF1; 3263 case 0x36111BF8u: goto L_36111BF8; 3264 case 0x36111BFBu: goto L_36111BFB; 3265 case 0x36111BFCu: goto L_36111BFC; 3266 case 0x36111BFEu: goto L_36111BFE; 3267 case 0x36111C03u: goto L_36111C03; 3268 case 0x36111C06u: goto L_36111C06; 3269 case 0x36111C08u: goto L_36111C08; 3270 case 0x36111C0Eu: goto L_36111C0E; 3271 case 0x36111C11u: goto L_36111C11; 3272 case 0x36111C16u: goto L_36111C16; 3273 case 0x36111C18u: goto L_36111C18; 3274 case 0x36111C1Au: goto L_36111C1A; 3275 case 0x36111C1Du: goto L_36111C1D; 3276 case 0x36111C20u: goto L_36111C20; 3277 case 0x36111C26u: goto L_36111C26; 3278 case 0x36111C29u: goto L_36111C29; 3279 case 0x36111C2Cu: goto L_36111C2C; 3280 case 0x36111C32u: goto L_36111C32; 3281 case 0x36111C35u: goto L_36111C35; 3282 case 0x36111C37u: goto L_36111C37; 3283 case 0x36111C3Au: goto L_36111C3A; 3284 case 0x36111C40u: goto L_36111C40; 3285 case 0x36111C42u: goto L_36111C42; 3286 case 0x36111C45u: goto L_36111C45; 3287 case 0x36111C47u: goto L_36111C47; 3288 case 0x36111C4Au: goto L_36111C4A; 3289 case 0x36111C50u: goto L_36111C50; 3290 case 0x36111C53u: goto L_36111C53; 3291 case 0x36111C55u: goto L_36111C55; 3292 case 0x36111C58u: goto L_36111C58; 3293 case 0x36111C5Au: goto L_36111C5A; 3294 case 0x36111C5Du: goto L_36111C5D; 3295 case 0x36111C5Eu: goto L_36111C5E; 3296 case 0x36111C61u: goto L_36111C61; 3297 case 0x36111C66u: goto L_36111C66; 3298 case 0x36111C68u: goto L_36111C68; 3299 case 0x36111C6Bu: goto L_36111C6B; 3300 case 0x36111C6Eu: goto L_36111C6E; 3301 case 0x36111C71u: goto L_36111C71; 3302 case 0x36111C77u: goto L_36111C77; 3303 case 0x36111C7Au: goto L_36111C7A; 3304 case 0x36111C7Du: goto L_36111C7D; 3305 case 0x36111C80u: goto L_36111C80; 3306 case 0x36111C83u: goto L_36111C83; 3307 case 0x36111C86u: goto L_36111C86; 3308 case 0x36111C8Cu: goto L_36111C8C; 3309 case 0x36111C8Fu: goto L_36111C8F; 3310 case 0x36111C92u: goto L_36111C92; 3311 case 0x36111C98u: goto L_36111C98; 3312 case 0x36111C9Bu: goto L_36111C9B; 3313 case 0x36111CA1u: goto L_36111CA1; 3314 case 0x36111CA4u: goto L_36111CA4; 3315 case 0x36111CABu: goto L_36111CAB; 3316 case 0x36111CB2u: goto L_36111CB2; 3317 case 0x36111CB9u: goto L_36111CB9; 3318 case 0x36111CBFu: goto L_36111CBF; 3319 case 0x36111CC6u: goto L_36111CC6; 3320 case 0x36111CC9u: goto L_36111CC9; 3321 case 0x36111CCFu: goto L_36111CCF; 3322 case 0x36111CD1u: goto L_36111CD1; 3323 case 0x36111CD4u: goto L_36111CD4; 3324 case 0x36111CDAu: goto L_36111CDA; 3325 case 0x36111CE0u: goto L_36111CE0; 3326 case 0x36111CE6u: goto L_36111CE6; 3327 case 0x36111CECu: goto L_36111CEC; 3328 case 0x36111CF2u: goto L_36111CF2; 3329 case 0x36111CF4u: goto L_36111CF4; 3330 case 0x36111CF7u: goto L_36111CF7; 3331 case 0x36111CF9u: goto L_36111CF9; 3332 case 0x36111D03u: goto L_36111D03; 3333 case 0x36111D0Du: goto L_36111D0D; 3334 case 0x36111D10u: goto L_36111D10; 3335 case 0x36111D11u: goto L_36111D11; 3336 case 0x36111D16u: goto L_36111D16; 3337 case 0x36111D1Bu: goto L_36111D1B; 3338 case 0x36111D1Eu: goto L_36111D1E; 3339 case 0x36111D24u: goto L_36111D24; 3340 case 0x36111D26u: goto L_36111D26; 3341 case 0x36111D29u: goto L_36111D29; 3342 case 0x36111D2Fu: goto L_36111D2F; 3343 case 0x36111D35u: goto L_36111D35; 3344 case 0x36111D3Bu: goto L_36111D3B; 3345 case 0x36111D41u: goto L_36111D41; 3346 case 0x36111D47u: goto L_36111D47; 3347 case 0x36111D49u: goto L_36111D49; 3348 case 0x36111D4Cu: goto L_36111D4C; 3349 case 0x36111D4Eu: goto L_36111D4E; 3350 case 0x36111D58u: goto L_36111D58; 3351 case 0x36111D62u: goto L_36111D62; 3352 case 0x36111D65u: goto L_36111D65; 3353 case 0x36111D68u: goto L_36111D68; 3354 case 0x36111D69u: goto L_36111D69; 3355 case 0x36111D6Eu: goto L_36111D6E; 3356 case 0x36111D73u: goto L_36111D73; 3357 case 0x36111D75u: goto L_36111D75; 3358 case 0x36111D77u: goto L_36111D77; 3359 case 0x36111D7Au: goto L_36111D7A; 3360 case 0x36111D7Bu: goto L_36111D7B; 3361 case 0x36111D7Du: goto L_36111D7D; 3362 case 0x36111D82u: goto L_36111D82; 3363 case 0x36111D85u: goto L_36111D85; 3364 case 0x36111D86u: goto L_36111D86; 3365 case 0x36111D89u: goto L_36111D89; 3366 case 0x36111D8Eu: goto L_36111D8E; 3367 case 0x36111D93u: goto L_36111D93; 3368 case 0x36111D95u: goto L_36111D95; 3369 case 0x36111D9Bu: goto L_36111D9B; 3370 case 0x36111DA0u: goto L_36111DA0; 3371 case 0x36111DA3u: goto L_36111DA3; 3372 case 0x36111DA9u: goto L_36111DA9; 3373 case 0x36111DABu: goto L_36111DAB; 3374 case 0x36111DAEu: goto L_36111DAE; 3375 case 0x36111DB4u: goto L_36111DB4; 3376 case 0x36111DBAu: goto L_36111DBA; 3377 case 0x36111DC0u: goto L_36111DC0; 3378 case 0x36111DC6u: goto L_36111DC6; 3379 case 0x36111DCCu: goto L_36111DCC; 3380 case 0x36111DCEu: goto L_36111DCE; 3381 case 0x36111DD1u: goto L_36111DD1; 3382 case 0x36111DD3u: goto L_36111DD3; 3383 case 0x36111DDDu: goto L_36111DDD; 3384 case 0x36111DE7u: goto L_36111DE7; 3385 case 0x36111DEAu: goto L_36111DEA; 3386 case 0x36111DEDu: goto L_36111DED; 3387 case 0x36111DEEu: goto L_36111DEE; 3388 case 0x36111DF3u: goto L_36111DF3; 3389 case 0x36111DF8u: goto L_36111DF8; 3390 case 0x36111DFAu: goto L_36111DFA; 3391 case 0x36111DFCu: goto L_36111DFC; 3392 case 0x36111DFFu: goto L_36111DFF; 3393 case 0x36111E00u: goto L_36111E00; 3394 case 0x36111E02u: goto L_36111E02; 3395 case 0x36111E07u: goto L_36111E07; 3396 case 0x36111E0Au: goto L_36111E0A; 3397 case 0x36111E0Du: goto L_36111E0D; 3398 case 0x36111E0Eu: goto L_36111E0E; 3399 case 0x36111E13u: goto L_36111E13; 3400 case 0x36111E18u: goto L_36111E18; 3401 case 0x36111E1Au: goto L_36111E1A; 3402 case 0x36111E20u: goto L_36111E20; 3403 case 0x36111E23u: goto L_36111E23; 3404 case 0x36111E24u: goto L_36111E24; 3405 case 0x36111E29u: goto L_36111E29; 3406 case 0x36111E2Cu: goto L_36111E2C; 3407 case 0x36111E32u: goto L_36111E32; 3408 case 0x36111E34u: goto L_36111E34; 3409 case 0x36111E37u: goto L_36111E37; 3410 case 0x36111E3Du: goto L_36111E3D; 3411 case 0x36111E43u: goto L_36111E43; 3412 case 0x36111E49u: goto L_36111E49; 3413 case 0x36111E4Fu: goto L_36111E4F; 3414 case 0x36111E55u: goto L_36111E55; 3415 case 0x36111E57u: goto L_36111E57; 3416 case 0x36111E5Au: goto L_36111E5A; 3417 case 0x36111E5Cu: goto L_36111E5C; 3418 case 0x36111E66u: goto L_36111E66; 3419 case 0x36111E70u: goto L_36111E70; 3420 case 0x36111E73u: goto L_36111E73; 3421 case 0x36111E74u: goto L_36111E74; 3422 case 0x36111E77u: goto L_36111E77; 3423 case 0x36111E7Cu: goto L_36111E7C; 3424 case 0x36111E81u: goto L_36111E81; 3425 case 0x36111E83u: goto L_36111E83; 3426 case 0x36111E85u: goto L_36111E85; 3427 case 0x36111E88u: goto L_36111E88; 3428 case 0x36111E89u: goto L_36111E89; 3429 case 0x36111E8Bu: goto L_36111E8B; 3430 case 0x36111E90u: goto L_36111E90; 3431 case 0x36111E93u: goto L_36111E93; 3432 case 0x36111E96u: goto L_36111E96; 3433 case 0x36111E97u: goto L_36111E97; 3434 case 0x36111E9Cu: goto L_36111E9C; 3435 case 0x36111EA1u: goto L_36111EA1; 3436 case 0x36111EA3u: goto L_36111EA3; 3437 case 0x36111EA5u: goto L_36111EA5; 3438 case 0x36111EA8u: goto L_36111EA8; 3439 case 0x36111EA9u: goto L_36111EA9; 3440 case 0x36111EABu: goto L_36111EAB; 3441 case 0x36111EB0u: goto L_36111EB0; 3442 case 0x36111EB3u: goto L_36111EB3; 3443 case 0x36111EB6u: goto L_36111EB6; 3444 case 0x36111EB7u: goto L_36111EB7; 3445 case 0x36111EBCu: goto L_36111EBC; 3446 case 0x36111EC1u: goto L_36111EC1; 3447 case 0x36111EC3u: goto L_36111EC3; 3448 case 0x36111EC5u: goto L_36111EC5; 3449 case 0x36111EC8u: goto L_36111EC8; 3450 case 0x36111EC9u: goto L_36111EC9; 3451 case 0x36111ECBu: goto L_36111ECB; 3452 case 0x36111ED0u: goto L_36111ED0; 3453 case 0x36111ED3u: goto L_36111ED3; 3454 case 0x36111ED4u: goto L_36111ED4; 3455 case 0x36111ED7u: goto L_36111ED7; 3456 case 0x36111EDCu: goto L_36111EDC; 3457 case 0x36111EE1u: goto L_36111EE1; 3458 case 0x36111EE3u: goto L_36111EE3; 3459 case 0x36111EE5u: goto L_36111EE5; 3460 case 0x36111EE8u: goto L_36111EE8; 3461 case 0x36111EE9u: goto L_36111EE9; 3462 case 0x36111EEBu: goto L_36111EEB; 3463 case 0x36111EF0u: goto L_36111EF0; 3464 case 0x36111EF3u: goto L_36111EF3; 3465 case 0x36111EF4u: goto L_36111EF4; 3466 case 0x36111EF9u: goto L_36111EF9; 3467 case 0x36111EFCu: goto L_36111EFC; 3468 case 0x36111F01u: goto L_36111F01; 3469 case 0x36111F03u: goto L_36111F03; 3470 case 0x36111F09u: goto L_36111F09; 3471 case 0x36111F0Cu: goto L_36111F0C; 3472 case 0x36111F0Du: goto L_36111F0D; 3473 case 0x36111F12u: goto L_36111F12; 3474 case 0x36111F15u: goto L_36111F15; 3475 case 0x36111F1Bu: goto L_36111F1B; 3476 case 0x36111F1Du: goto L_36111F1D; 3477 case 0x36111F20u: goto L_36111F20; 3478 case 0x36111F26u: goto L_36111F26; 3479 case 0x36111F2Cu: goto L_36111F2C; 3480 case 0x36111F32u: goto L_36111F32; 3481 case 0x36111F38u: goto L_36111F38; 3482 case 0x36111F3Eu: goto L_36111F3E; 3483 case 0x36111F40u: goto L_36111F40; 3484 case 0x36111F43u: goto L_36111F43; 3485 case 0x36111F45u: goto L_36111F45; 3486 case 0x36111F4Fu: goto L_36111F4F; 3487 case 0x36111F59u: goto L_36111F59; 3488 case 0x36111F5Cu: goto L_36111F5C; 3489 case 0x36111F5Fu: goto L_36111F5F; 3490 case 0x36111F60u: goto L_36111F60; 3491 case 0x36111F65u: goto L_36111F65; 3492 case 0x36111F6Au: goto L_36111F6A; 3493 case 0x36111F6Cu: goto L_36111F6C; 3494 case 0x36111F6Eu: goto L_36111F6E; 3495 case 0x36111F71u: goto L_36111F71; 3496 case 0x36111F72u: goto L_36111F72; 3497 case 0x36111F74u: goto L_36111F74; 3498 case 0x36111F79u: goto L_36111F79; 3499 case 0x36111F7Cu: goto L_36111F7C; 3500 case 0x36111F7Du: goto L_36111F7D; 3501 case 0x36111F80u: goto L_36111F80; 3502 case 0x36111F85u: goto L_36111F85; 3503 case 0x36111F8Au: goto L_36111F8A; 3504 case 0x36111F8Cu: goto L_36111F8C; 3505 case 0x36111F8Eu: goto L_36111F8E; 3506 case 0x36111F91u: goto L_36111F91; 3507 case 0x36111F92u: goto L_36111F92; 3508 case 0x36111F94u: goto L_36111F94; 3509 case 0x36111F99u: goto L_36111F99; 3510 case 0x36111F9Cu: goto L_36111F9C; 3511 case 0x36111F9Fu: goto L_36111F9F; 3512 case 0x36111FA0u: goto L_36111FA0; 3513 case 0x36111FA5u: goto L_36111FA5; 3514 case 0x36111FAAu: goto L_36111FAA; 3515 case 0x36111FACu: goto L_36111FAC; 3516 case 0x36111FAEu: goto L_36111FAE; 3517 case 0x36111FB1u: goto L_36111FB1; 3518 case 0x36111FB2u: goto L_36111FB2; 3519 case 0x36111FB4u: goto L_36111FB4; 3520 case 0x36111FB9u: goto L_36111FB9; 3521 case 0x36111FBCu: goto L_36111FBC; 3522 case 0x36111FBFu: goto L_36111FBF; 3523 case 0x36111FC0u: goto L_36111FC0; 3524 case 0x36111FC5u: goto L_36111FC5; 3525 case 0x36111FCAu: goto L_36111FCA; 3526 case 0x36111FCCu: goto L_36111FCC; 3527 case 0x36111FCEu: goto L_36111FCE; 3528 case 0x36111FD1u: goto L_36111FD1; 3529 case 0x36111FD2u: goto L_36111FD2; 3530 case 0x36111FD4u: goto L_36111FD4; 3531 case 0x36111FD9u: goto L_36111FD9; 3532 case 0x36111FDCu: goto L_36111FDC; 3533 case 0x36111FDDu: goto L_36111FDD; 3534 case 0x36111FE0u: goto L_36111FE0; 3535 case 0x36111FE5u: goto L_36111FE5; 3536 case 0x36111FEAu: goto L_36111FEA; 3537 case 0x36111FECu: goto L_36111FEC; 3538 case 0x36111FEEu: goto L_36111FEE; 3539 case 0x36111FF1u: goto L_36111FF1; 3540 case 0x36111FF2u: goto L_36111FF2; 3541 case 0x36111FF4u: goto L_36111FF4; 3542 case 0x36111FF9u: goto L_36111FF9; 3543 case 0x36111FFAu: goto L_36111FFA; 3544 case 0x36111FFFu: goto L_36111FFF; 3545 case 0x36112002u: goto L_36112002; 3546 case 0x36112004u: goto L_36112004; 3547 case 0x36112007u: goto L_36112007; 3548 case 0x3611200Au: goto L_3611200A; 3549 case 0x3611200Du: goto L_3611200D; 3550 case 0x36112010u: goto L_36112010; 3551 case 0x36112013u: goto L_36112013; 3552 case 0x36112016u: goto L_36112016; 3553 case 0x36112017u: goto L_36112017; 3554 case 0x3611201Au: goto L_3611201A; 3555 case 0x3611201Bu: goto L_3611201B; 3556 case 0x3611201Eu: goto L_3611201E; 3557 case 0x36112024u: goto L_36112024; 3558 case 0x36112027u: goto L_36112027; 3559 case 0x3611202Au: goto L_3611202A; 3560 case 0x3611202Bu: goto L_3611202B; 3561 case 0x36112030u: goto L_36112030; 3562 case 0x36112033u: goto L_36112033; 3563 case 0x36112035u: goto L_36112035; 3564 case 0x36112038u: goto L_36112038; 3565 case 0x3611203Au: goto L_3611203A; 3566 case 0x3611203Du: goto L_3611203D; 3567 case 0x36112040u: goto L_36112040; 3568 case 0x36112043u: goto L_36112043; 3569 case 0x36112045u: goto L_36112045; 3570 case 0x36112048u: goto L_36112048; 3571 case 0x3611204Au: goto L_3611204A; 3572 case 0x3611204Cu: goto L_3611204C; 3573 case 0x3611204Fu: goto L_3611204F; 3574 case 0x36112052u: goto L_36112052; 3575 case 0x36112055u: goto L_36112055; 3576 case 0x36112056u: goto L_36112056; 3577 case 0x3611205Bu: goto L_3611205B; 3578 case 0x3611205Cu: goto L_3611205C; 3579 case 0x3611205Fu: goto L_3611205F; 3580 case 0x36112066u: goto L_36112066; 3581 case 0x3611206Cu: goto L_3611206C; 3582 case 0x3611206Fu: goto L_3611206F; 3583 case 0x36112071u: goto L_36112071; 3584 case 0x36112077u: goto L_36112077; 3585 case 0x36112079u: goto L_36112079; 3586 case 0x3611207Cu: goto L_3611207C; 3587 case 0x3611207Fu: goto L_3611207F; 3588 case 0x36112082u: goto L_36112082; 3589 case 0x36112085u: goto L_36112085; 3590 case 0x36112088u: goto L_36112088; 3591 case 0x3611208Au: goto L_3611208A; 3592 case 0x3611208Du: goto L_3611208D; 3593 case 0x3611208Fu: goto L_3611208F; 3594 case 0x36112091u: goto L_36112091; 3595 case 0x36112094u: goto L_36112094; 3596 case 0x36112097u: goto L_36112097; 3597 case 0x3611209Du: goto L_3611209D; 3598 case 0x3611209Fu: goto L_3611209F; 3599 case 0x361120A1u: goto L_361120A1; 3600 case 0x361120A4u: goto L_361120A4; 3601 case 0x361120ABu: goto L_361120AB; 3602 case 0x361120ACu: goto L_361120AC; 3603 case 0x361120AFu: goto L_361120AF; 3604 case 0x361120B5u: goto L_361120B5; 3605 case 0x361120B8u: goto L_361120B8; 3606 case 0x361120BEu: goto L_361120BE; 3607 case 0x361120C4u: goto L_361120C4; 3608 case 0x361120C5u: goto L_361120C5; 3609 case 0x361120C7u: goto L_361120C7; 3610 case 0x361120CAu: goto L_361120CA; 3611 case 0x361120D0u: goto L_361120D0; 3612 case 0x361120D2u: goto L_361120D2; 3613 case 0x361120D4u: goto L_361120D4; 3614 case 0x361120D8u: goto L_361120D8; 3615 case 0x361120DBu: goto L_361120DB; 3616 case 0x361120DCu: goto L_361120DC; 3617 case 0x361120DFu: goto L_361120DF; 3618 case 0x361120E4u: goto L_361120E4; 3619 case 0x361120E6u: goto L_361120E6; 3620 case 0x361120ECu: goto L_361120EC; 3621 case 0x361120EEu: goto L_361120EE; 3622 case 0x361120F1u: goto L_361120F1; 3623 case 0x361120F4u: goto L_361120F4; 3624 case 0x361120F7u: goto L_361120F7; 3625 case 0x361120FAu: goto L_361120FA; 3626 case 0x361120FDu: goto L_361120FD; 3627 case 0x361120FEu: goto L_361120FE; 3628 case 0x36112105u: goto L_36112105; 3629 case 0x36112107u: goto L_36112107; 3630 case 0x36112108u: goto L_36112108; 3631 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3632 } 3633 RECOMP_REGS_OUT(); 3634 } 3635 3636 void sub_36111CAB(void) { 3637 int _fpu_cmp = 0; 3638 uint32_t _cf = 0; 3639 int _df = 1; 3640 uint32_t _flag_k = FK_NONE; 3641 uint32_t _flag_a = 0, _flag_b = 0; 3642 uint32_t _itail_tgt = 0; 3643 RECOMP_REGS_LOCALS 3644 RECOMP_ENTER(0x36111CABu); 3645 3646 L_36111CAB: 3647 MEM32(ebp + (-0x14)) = 0; /* 0x36111CAB: mov dword ptr [ebp - 0x14], 0 */ 3648 L_36111CB2: 3649 MEM32(ebp + (-0x10)) = 0; /* 0x36111CB2: mov dword ptr [ebp - 0x10], 0 */ 3650 L_36111CB9: 3651 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36111FF9; /* 0x36111CB9: ja 0x36111ff9 */ 3652 L_36111CBF: 3653 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x3611210C)); goto _ljump; } 3654 L_36111CC6: 3655 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111CC6: fld dword ptr [esi + 0xc] */ 3656 L_36111CC9: 3657 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111CC9: fcomp dword ptr [esi + 0xc4] */ 3658 fp_pop(); 3659 L_36111CCF: 3660 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111CCF: fnstsw ax */ 3661 L_36111CD1: 3662 /* test HI8(eax), 1 */ /* 0x36111CD1: test ah, 1 */ 3663 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3664 _cf = 0; 3665 _flag_k = FK_NARROW(FK_TEST, 24); 3666 L_36111CD4: 3667 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111CD4: jne 0x36111ff9 */ 3668 L_36111CDA: 3669 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111CDA: fld dword ptr [esi + 0xc4] */ 3670 L_36111CE0: 3671 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111CE0: fadd dword ptr [0x36170850] */ 3672 L_36111CE6: 3673 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111CE6: fst dword ptr [esi + 0xc4] */ 3674 L_36111CEC: 3675 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361709E0)); /* 0x36111CEC: fcomp dword ptr [0x361709e0] */ 3676 fp_pop(); 3677 L_36111CF2: 3678 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111CF2: fnstsw ax */ 3679 L_36111CF4: 3680 /* test HI8(eax), 1 */ /* 0x36111CF4: test ah, 1 */ 3681 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3682 _cf = 0; 3683 _flag_k = FK_NARROW(FK_TEST, 24); 3684 L_36111CF7: 3685 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111D0D; /* 0x36111CF7: jne 0x36111d0d */ 3686 L_36111CF9: 3687 MEM32(esi + 0xC4) = 0x3D4CCCCDu; /* 0x36111CF9: mov dword ptr [esi + 0xc4], 0x3d4ccccd */ 3688 L_36111D03: 3689 MEM32(esi + 0xC0) = 1; /* 0x36111D03: mov dword ptr [esi + 0xc0], 1 */ 3690 L_36111D0D: 3691 eax = ebp + (-0x18); /* 0x36111D0D: lea eax, [ebp - 0x18] */ 3692 L_36111D10: 3693 PUSH32(esp, eax); /* 0x36111D10: push eax */ 3694 L_36111D11: 3695 PUSH32(esp, 0x3EAu); /* 0x36111D11: push 0x3ea */ 3696 L_36111D16: 3697 goto L_36111EF9; /* 0x36111D16: jmp 0x36111ef9 */ 3698 L_36111D1B: 3699 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111D1B: fld dword ptr [esi + 0xc] */ 3700 L_36111D1E: 3701 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111D1E: fcomp dword ptr [esi + 0xc4] */ 3702 fp_pop(); 3703 L_36111D24: 3704 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111D24: fnstsw ax */ 3705 L_36111D26: 3706 /* test HI8(eax), 1 */ /* 0x36111D26: test ah, 1 */ 3707 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3708 _cf = 0; 3709 _flag_k = FK_NARROW(FK_TEST, 24); 3710 L_36111D29: 3711 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111D29: jne 0x36111ff9 */ 3712 L_36111D2F: 3713 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111D2F: fld dword ptr [esi + 0xc4] */ 3714 L_36111D35: 3715 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111D35: fadd dword ptr [0x36170850] */ 3716 L_36111D3B: 3717 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111D3B: fst dword ptr [esi + 0xc4] */ 3718 L_36111D41: 3719 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170D68)); /* 0x36111D41: fcomp dword ptr [0x36170d68] */ 3720 fp_pop(); 3721 L_36111D47: 3722 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111D47: fnstsw ax */ 3723 L_36111D49: 3724 /* test HI8(eax), 1 */ /* 0x36111D49: test ah, 1 */ 3725 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3726 _cf = 0; 3727 _flag_k = FK_NARROW(FK_TEST, 24); 3728 L_36111D4C: 3729 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111D62; /* 0x36111D4C: jne 0x36111d62 */ 3730 L_36111D4E: 3731 MEM32(esi + 0xC4) = 0x3DCCCCCDu; /* 0x36111D4E: mov dword ptr [esi + 0xc4], 0x3dcccccd */ 3732 L_36111D58: 3733 MEM32(esi + 0xC0) = 2; /* 0x36111D58: mov dword ptr [esi + 0xc0], 2 */ 3734 L_36111D62: 3735 ecx = MEM32(esi + 0x20); /* 0x36111D62: mov ecx, dword ptr [esi + 0x20] */ 3736 L_36111D65: 3737 edx = ebp + (-0x18); /* 0x36111D65: lea edx, [ebp - 0x18] */ 3738 L_36111D68: 3739 PUSH32(esp, edx); /* 0x36111D68: push edx */ 3740 L_36111D69: 3741 PUSH32(esp, 0x3EBu); /* 0x36111D69: push 0x3eb */ 3742 L_36111D6E: 3743 RECOMP_ICALL(0x36133900u); /* 0x36111D6E: call 0x36133900 */ /* not lifted */ 3744 RECOMP_FLAGS_IN(); 3745 L_36111D73: 3746 /* test LO8(eax), LO8(eax) */ /* 0x36111D73: test al, al */ 3747 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3748 _cf = 0; 3749 _flag_k = FK_NARROW(FK_TEST, 24); 3750 L_36111D75: 3751 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111D82; /* 0x36111D75: je 0x36111d82 */ 3752 L_36111D77: 3753 eax = ebp + (-0x18); /* 0x36111D77: lea eax, [ebp - 0x18] */ 3754 L_36111D7A: 3755 PUSH32(esp, eax); /* 0x36111D7A: push eax */ 3756 L_36111D7B: 3757 ecx = esi; /* 0x36111D7B: mov ecx, esi */ 3758 L_36111D7D: 3759 RECOMP_ICALL(0x36111350u); /* 0x36111D7D: call 0x36111350 */ /* not lifted */ 3760 RECOMP_FLAGS_IN(); 3761 L_36111D82: 3762 ecx = ebp + (-0x18); /* 0x36111D82: lea ecx, [ebp - 0x18] */ 3763 L_36111D85: 3764 PUSH32(esp, ecx); /* 0x36111D85: push ecx */ 3765 L_36111D86: 3766 ecx = MEM32(esi + 0x20); /* 0x36111D86: mov ecx, dword ptr [esi + 0x20] */ 3767 L_36111D89: 3768 PUSH32(esp, 0x3E9u); /* 0x36111D89: push 0x3e9 */ 3769 L_36111D8E: 3770 RECOMP_ICALL(0x36133900u); /* 0x36111D8E: call 0x36133900 */ /* not lifted */ 3771 RECOMP_FLAGS_IN(); 3772 L_36111D93: 3773 /* test LO8(eax), LO8(eax) */ /* 0x36111D93: test al, al */ 3774 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3775 _cf = 0; 3776 _flag_k = FK_NARROW(FK_TEST, 24); 3777 L_36111D95: 3778 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111D95: je 0x36111ff9 */ 3779 L_36111D9B: 3780 goto L_36111FEE; /* 0x36111D9B: jmp 0x36111fee */ 3781 L_36111DA0: 3782 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111DA0: fld dword ptr [esi + 0xc] */ 3783 L_36111DA3: 3784 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111DA3: fcomp dword ptr [esi + 0xc4] */ 3785 fp_pop(); 3786 L_36111DA9: 3787 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111DA9: fnstsw ax */ 3788 L_36111DAB: 3789 /* test HI8(eax), 1 */ /* 0x36111DAB: test ah, 1 */ 3790 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3791 _cf = 0; 3792 _flag_k = FK_NARROW(FK_TEST, 24); 3793 L_36111DAE: 3794 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111DAE: jne 0x36111ff9 */ 3795 L_36111DB4: 3796 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111DB4: fld dword ptr [esi + 0xc4] */ 3797 L_36111DBA: 3798 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111DBA: fadd dword ptr [0x36170850] */ 3799 L_36111DC0: 3800 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111DC0: fst dword ptr [esi + 0xc4] */ 3801 L_36111DC6: 3802 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170E94)); /* 0x36111DC6: fcomp dword ptr [0x36170e94] */ 3803 fp_pop(); 3804 L_36111DCC: 3805 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111DCC: fnstsw ax */ 3806 L_36111DCE: 3807 /* test HI8(eax), 1 */ /* 0x36111DCE: test ah, 1 */ 3808 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3809 _cf = 0; 3810 _flag_k = FK_NARROW(FK_TEST, 24); 3811 L_36111DD1: 3812 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111DE7; /* 0x36111DD1: jne 0x36111de7 */ 3813 L_36111DD3: 3814 MEM32(esi + 0xC4) = 0x3E19999Au; /* 0x36111DD3: mov dword ptr [esi + 0xc4], 0x3e19999a */ 3815 L_36111DDD: 3816 MEM32(esi + 0xC0) = 3; /* 0x36111DDD: mov dword ptr [esi + 0xc0], 3 */ 3817 L_36111DE7: 3818 ecx = MEM32(esi + 0x20); /* 0x36111DE7: mov ecx, dword ptr [esi + 0x20] */ 3819 L_36111DEA: 3820 eax = ebp + (-0x18); /* 0x36111DEA: lea eax, [ebp - 0x18] */ 3821 L_36111DED: 3822 PUSH32(esp, eax); /* 0x36111DED: push eax */ 3823 L_36111DEE: 3824 PUSH32(esp, 0x3EBu); /* 0x36111DEE: push 0x3eb */ 3825 L_36111DF3: 3826 RECOMP_ICALL(0x36133900u); /* 0x36111DF3: call 0x36133900 */ /* not lifted */ 3827 RECOMP_FLAGS_IN(); 3828 L_36111DF8: 3829 /* test LO8(eax), LO8(eax) */ /* 0x36111DF8: test al, al */ 3830 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3831 _cf = 0; 3832 _flag_k = FK_NARROW(FK_TEST, 24); 3833 L_36111DFA: 3834 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111E07; /* 0x36111DFA: je 0x36111e07 */ 3835 L_36111DFC: 3836 ecx = ebp + (-0x18); /* 0x36111DFC: lea ecx, [ebp - 0x18] */ 3837 L_36111DFF: 3838 PUSH32(esp, ecx); /* 0x36111DFF: push ecx */ 3839 L_36111E00: 3840 ecx = esi; /* 0x36111E00: mov ecx, esi */ 3841 L_36111E02: 3842 RECOMP_ICALL(0x36111350u); /* 0x36111E02: call 0x36111350 */ /* not lifted */ 3843 RECOMP_FLAGS_IN(); 3844 L_36111E07: 3845 ecx = MEM32(esi + 0x20); /* 0x36111E07: mov ecx, dword ptr [esi + 0x20] */ 3846 L_36111E0A: 3847 edx = ebp + (-0x18); /* 0x36111E0A: lea edx, [ebp - 0x18] */ 3848 L_36111E0D: 3849 PUSH32(esp, edx); /* 0x36111E0D: push edx */ 3850 L_36111E0E: 3851 PUSH32(esp, 0x3E8u); /* 0x36111E0E: push 0x3e8 */ 3852 L_36111E13: 3853 RECOMP_ICALL(0x36133900u); /* 0x36111E13: call 0x36133900 */ /* not lifted */ 3854 RECOMP_FLAGS_IN(); 3855 L_36111E18: 3856 /* test LO8(eax), LO8(eax) */ /* 0x36111E18: test al, al */ 3857 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3858 _cf = 0; 3859 _flag_k = FK_NARROW(FK_TEST, 24); 3860 L_36111E1A: 3861 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111E1A: je 0x36111ff9 */ 3862 L_36111E20: 3863 eax = ebp + (-0x18); /* 0x36111E20: lea eax, [ebp - 0x18] */ 3864 L_36111E23: 3865 PUSH32(esp, eax); /* 0x36111E23: push eax */ 3866 L_36111E24: 3867 goto L_36111FF2; /* 0x36111E24: jmp 0x36111ff2 */ 3868 L_36111E29: 3869 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111E29: fld dword ptr [esi + 0xc] */ 3870 L_36111E2C: 3871 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111E2C: fcomp dword ptr [esi + 0xc4] */ 3872 fp_pop(); 3873 L_36111E32: 3874 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111E32: fnstsw ax */ 3875 L_36111E34: 3876 /* test HI8(eax), 1 */ /* 0x36111E34: test ah, 1 */ 3877 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3878 _cf = 0; 3879 _flag_k = FK_NARROW(FK_TEST, 24); 3880 L_36111E37: 3881 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111E37: jne 0x36111ff9 */ 3882 L_36111E3D: 3883 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111E3D: fld dword ptr [esi + 0xc4] */ 3884 L_36111E43: 3885 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111E43: fadd dword ptr [0x36170850] */ 3886 L_36111E49: 3887 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111E49: fst dword ptr [esi + 0xc4] */ 3888 L_36111E4F: 3889 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170F04)); /* 0x36111E4F: fcomp dword ptr [0x36170f04] */ 3890 fp_pop(); 3891 L_36111E55: 3892 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111E55: fnstsw ax */ 3893 L_36111E57: 3894 /* test HI8(eax), 1 */ /* 0x36111E57: test ah, 1 */ 3895 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3896 _cf = 0; 3897 _flag_k = FK_NARROW(FK_TEST, 24); 3898 L_36111E5A: 3899 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111E70; /* 0x36111E5A: jne 0x36111e70 */ 3900 L_36111E5C: 3901 MEM32(esi + 0xC4) = 0x3E4CCCCDu; /* 0x36111E5C: mov dword ptr [esi + 0xc4], 0x3e4ccccd */ 3902 L_36111E66: 3903 MEM32(esi + 0xC0) = 4; /* 0x36111E66: mov dword ptr [esi + 0xc0], 4 */ 3904 L_36111E70: 3905 ecx = ebp + (-0x18); /* 0x36111E70: lea ecx, [ebp - 0x18] */ 3906 L_36111E73: 3907 PUSH32(esp, ecx); /* 0x36111E73: push ecx */ 3908 L_36111E74: 3909 ecx = MEM32(esi + 0x20); /* 0x36111E74: mov ecx, dword ptr [esi + 0x20] */ 3910 L_36111E77: 3911 PUSH32(esp, 0x3EDu); /* 0x36111E77: push 0x3ed */ 3912 L_36111E7C: 3913 RECOMP_ICALL(0x36133900u); /* 0x36111E7C: call 0x36133900 */ /* not lifted */ 3914 RECOMP_FLAGS_IN(); 3915 L_36111E81: 3916 /* test LO8(eax), LO8(eax) */ /* 0x36111E81: test al, al */ 3917 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3918 _cf = 0; 3919 _flag_k = FK_NARROW(FK_TEST, 24); 3920 L_36111E83: 3921 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111E90; /* 0x36111E83: je 0x36111e90 */ 3922 L_36111E85: 3923 edx = ebp + (-0x18); /* 0x36111E85: lea edx, [ebp - 0x18] */ 3924 L_36111E88: 3925 PUSH32(esp, edx); /* 0x36111E88: push edx */ 3926 L_36111E89: 3927 ecx = esi; /* 0x36111E89: mov ecx, esi */ 3928 L_36111E8B: 3929 RECOMP_ICALL(0x36111350u); /* 0x36111E8B: call 0x36111350 */ /* not lifted */ 3930 RECOMP_FLAGS_IN(); 3931 L_36111E90: 3932 ecx = MEM32(esi + 0x20); /* 0x36111E90: mov ecx, dword ptr [esi + 0x20] */ 3933 L_36111E93: 3934 eax = ebp + (-0x18); /* 0x36111E93: lea eax, [ebp - 0x18] */ 3935 L_36111E96: 3936 PUSH32(esp, eax); /* 0x36111E96: push eax */ 3937 L_36111E97: 3938 PUSH32(esp, 0x3F3u); /* 0x36111E97: push 0x3f3 */ 3939 L_36111E9C: 3940 RECOMP_ICALL(0x36133900u); /* 0x36111E9C: call 0x36133900 */ /* not lifted */ 3941 RECOMP_FLAGS_IN(); 3942 L_36111EA1: 3943 /* test LO8(eax), LO8(eax) */ /* 0x36111EA1: test al, al */ 3944 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3945 _cf = 0; 3946 _flag_k = FK_NARROW(FK_TEST, 24); 3947 L_36111EA3: 3948 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111EB0; /* 0x36111EA3: je 0x36111eb0 */ 3949 L_36111EA5: 3950 ecx = ebp + (-0x18); /* 0x36111EA5: lea ecx, [ebp - 0x18] */ 3951 L_36111EA8: 3952 PUSH32(esp, ecx); /* 0x36111EA8: push ecx */ 3953 L_36111EA9: 3954 ecx = esi; /* 0x36111EA9: mov ecx, esi */ 3955 L_36111EAB: 3956 RECOMP_ICALL(0x36111350u); /* 0x36111EAB: call 0x36111350 */ /* not lifted */ 3957 RECOMP_FLAGS_IN(); 3958 L_36111EB0: 3959 ecx = MEM32(esi + 0x20); /* 0x36111EB0: mov ecx, dword ptr [esi + 0x20] */ 3960 L_36111EB3: 3961 edx = ebp + (-0x18); /* 0x36111EB3: lea edx, [ebp - 0x18] */ 3962 L_36111EB6: 3963 PUSH32(esp, edx); /* 0x36111EB6: push edx */ 3964 L_36111EB7: 3965 PUSH32(esp, 0x3F4u); /* 0x36111EB7: push 0x3f4 */ 3966 L_36111EBC: 3967 RECOMP_ICALL(0x36133900u); /* 0x36111EBC: call 0x36133900 */ /* not lifted */ 3968 RECOMP_FLAGS_IN(); 3969 L_36111EC1: 3970 /* test LO8(eax), LO8(eax) */ /* 0x36111EC1: test al, al */ 3971 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3972 _cf = 0; 3973 _flag_k = FK_NARROW(FK_TEST, 24); 3974 L_36111EC3: 3975 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111ED0; /* 0x36111EC3: je 0x36111ed0 */ 3976 L_36111EC5: 3977 eax = ebp + (-0x18); /* 0x36111EC5: lea eax, [ebp - 0x18] */ 3978 L_36111EC8: 3979 PUSH32(esp, eax); /* 0x36111EC8: push eax */ 3980 L_36111EC9: 3981 ecx = esi; /* 0x36111EC9: mov ecx, esi */ 3982 L_36111ECB: 3983 RECOMP_ICALL(0x36111350u); /* 0x36111ECB: call 0x36111350 */ /* not lifted */ 3984 RECOMP_FLAGS_IN(); 3985 L_36111ED0: 3986 ecx = ebp + (-0x18); /* 0x36111ED0: lea ecx, [ebp - 0x18] */ 3987 L_36111ED3: 3988 PUSH32(esp, ecx); /* 0x36111ED3: push ecx */ 3989 L_36111ED4: 3990 ecx = MEM32(esi + 0x20); /* 0x36111ED4: mov ecx, dword ptr [esi + 0x20] */ 3991 L_36111ED7: 3992 PUSH32(esp, 0x3EFu); /* 0x36111ED7: push 0x3ef */ 3993 L_36111EDC: 3994 RECOMP_ICALL(0x36133900u); /* 0x36111EDC: call 0x36133900 */ /* not lifted */ 3995 RECOMP_FLAGS_IN(); 3996 L_36111EE1: 3997 /* test LO8(eax), LO8(eax) */ /* 0x36111EE1: test al, al */ 3998 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3999 _cf = 0; 4000 _flag_k = FK_NARROW(FK_TEST, 24); 4001 L_36111EE3: 4002 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111EF0; /* 0x36111EE3: je 0x36111ef0 */ 4003 L_36111EE5: 4004 edx = ebp + (-0x18); /* 0x36111EE5: lea edx, [ebp - 0x18] */ 4005 L_36111EE8: 4006 PUSH32(esp, edx); /* 0x36111EE8: push edx */ 4007 L_36111EE9: 4008 ecx = esi; /* 0x36111EE9: mov ecx, esi */ 4009 L_36111EEB: 4010 RECOMP_ICALL(0x36111350u); /* 0x36111EEB: call 0x36111350 */ /* not lifted */ 4011 RECOMP_FLAGS_IN(); 4012 L_36111EF0: 4013 eax = ebp + (-0x18); /* 0x36111EF0: lea eax, [ebp - 0x18] */ 4014 L_36111EF3: 4015 PUSH32(esp, eax); /* 0x36111EF3: push eax */ 4016 L_36111EF4: 4017 PUSH32(esp, 0x3F0u); /* 0x36111EF4: push 0x3f0 */ 4018 L_36111EF9: 4019 ecx = MEM32(esi + 0x20); /* 0x36111EF9: mov ecx, dword ptr [esi + 0x20] */ 4020 L_36111EFC: 4021 RECOMP_ICALL(0x36133900u); /* 0x36111EFC: call 0x36133900 */ /* not lifted */ 4022 RECOMP_FLAGS_IN(); 4023 L_36111F01: 4024 /* test LO8(eax), LO8(eax) */ /* 0x36111F01: test al, al */ 4025 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4026 _cf = 0; 4027 _flag_k = FK_NARROW(FK_TEST, 24); 4028 L_36111F03: 4029 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111F03: je 0x36111ff9 */ 4030 L_36111F09: 4031 ecx = ebp + (-0x18); /* 0x36111F09: lea ecx, [ebp - 0x18] */ 4032 L_36111F0C: 4033 PUSH32(esp, ecx); /* 0x36111F0C: push ecx */ 4034 L_36111F0D: 4035 goto L_36111FF2; /* 0x36111F0D: jmp 0x36111ff2 */ 4036 L_36111F12: 4037 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36111F12: fld dword ptr [esi + 0xc] */ 4038 L_36111F15: 4039 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC4)); /* 0x36111F15: fcomp dword ptr [esi + 0xc4] */ 4040 fp_pop(); 4041 L_36111F1B: 4042 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111F1B: fnstsw ax */ 4043 L_36111F1D: 4044 /* test HI8(eax), 1 */ /* 0x36111F1D: test ah, 1 */ 4045 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4046 _cf = 0; 4047 _flag_k = FK_NARROW(FK_TEST, 24); 4048 L_36111F20: 4049 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111FF9; /* 0x36111F20: jne 0x36111ff9 */ 4050 L_36111F26: 4051 fp_push(*(float*)&MEM32(esi + 0xC4)); /* 0x36111F26: fld dword ptr [esi + 0xc4] */ 4052 L_36111F2C: 4053 _st[0] += (double)*(float*)ADDR(0x36170850); /* 0x36111F2C: fadd dword ptr [0x36170850] */ 4054 L_36111F32: 4055 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xC4) = _v; } /* 0x36111F32: fst dword ptr [esi + 0xc4] */ 4056 L_36111F38: 4057 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170E78)); /* 0x36111F38: fcomp dword ptr [0x36170e78] */ 4058 fp_pop(); 4059 L_36111F3E: 4060 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36111F3E: fnstsw ax */ 4061 L_36111F40: 4062 /* test HI8(eax), 1 */ /* 0x36111F40: test ah, 1 */ 4063 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4064 _cf = 0; 4065 _flag_k = FK_NARROW(FK_TEST, 24); 4066 L_36111F43: 4067 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36111F59; /* 0x36111F43: jne 0x36111f59 */ 4068 L_36111F45: 4069 MEM32(esi + 0xC4) = 0x3E800000u; /* 0x36111F45: mov dword ptr [esi + 0xc4], 0x3e800000 */ 4070 L_36111F4F: 4071 MEM32(esi + 0xC0) = 5; /* 0x36111F4F: mov dword ptr [esi + 0xc0], 5 */ 4072 L_36111F59: 4073 ecx = MEM32(esi + 0x20); /* 0x36111F59: mov ecx, dword ptr [esi + 0x20] */ 4074 L_36111F5C: 4075 edx = ebp + (-0x18); /* 0x36111F5C: lea edx, [ebp - 0x18] */ 4076 L_36111F5F: 4077 PUSH32(esp, edx); /* 0x36111F5F: push edx */ 4078 L_36111F60: 4079 PUSH32(esp, 0x3EEu); /* 0x36111F60: push 0x3ee */ 4080 L_36111F65: 4081 RECOMP_ICALL(0x36133900u); /* 0x36111F65: call 0x36133900 */ /* not lifted */ 4082 RECOMP_FLAGS_IN(); 4083 L_36111F6A: 4084 /* test LO8(eax), LO8(eax) */ /* 0x36111F6A: test al, al */ 4085 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4086 _cf = 0; 4087 _flag_k = FK_NARROW(FK_TEST, 24); 4088 L_36111F6C: 4089 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111F79; /* 0x36111F6C: je 0x36111f79 */ 4090 L_36111F6E: 4091 eax = ebp + (-0x18); /* 0x36111F6E: lea eax, [ebp - 0x18] */ 4092 L_36111F71: 4093 PUSH32(esp, eax); /* 0x36111F71: push eax */ 4094 L_36111F72: 4095 ecx = esi; /* 0x36111F72: mov ecx, esi */ 4096 L_36111F74: 4097 RECOMP_ICALL(0x36111350u); /* 0x36111F74: call 0x36111350 */ /* not lifted */ 4098 RECOMP_FLAGS_IN(); 4099 L_36111F79: 4100 ecx = ebp + (-0x18); /* 0x36111F79: lea ecx, [ebp - 0x18] */ 4101 L_36111F7C: 4102 PUSH32(esp, ecx); /* 0x36111F7C: push ecx */ 4103 L_36111F7D: 4104 ecx = MEM32(esi + 0x20); /* 0x36111F7D: mov ecx, dword ptr [esi + 0x20] */ 4105 L_36111F80: 4106 PUSH32(esp, 0x3F5u); /* 0x36111F80: push 0x3f5 */ 4107 L_36111F85: 4108 RECOMP_ICALL(0x36133900u); /* 0x36111F85: call 0x36133900 */ /* not lifted */ 4109 RECOMP_FLAGS_IN(); 4110 L_36111F8A: 4111 /* test LO8(eax), LO8(eax) */ /* 0x36111F8A: test al, al */ 4112 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4113 _cf = 0; 4114 _flag_k = FK_NARROW(FK_TEST, 24); 4115 L_36111F8C: 4116 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111F99; /* 0x36111F8C: je 0x36111f99 */ 4117 L_36111F8E: 4118 edx = ebp + (-0x18); /* 0x36111F8E: lea edx, [ebp - 0x18] */ 4119 L_36111F91: 4120 PUSH32(esp, edx); /* 0x36111F91: push edx */ 4121 L_36111F92: 4122 ecx = esi; /* 0x36111F92: mov ecx, esi */ 4123 L_36111F94: 4124 RECOMP_ICALL(0x36111350u); /* 0x36111F94: call 0x36111350 */ /* not lifted */ 4125 RECOMP_FLAGS_IN(); 4126 L_36111F99: 4127 ecx = MEM32(esi + 0x20); /* 0x36111F99: mov ecx, dword ptr [esi + 0x20] */ 4128 L_36111F9C: 4129 eax = ebp + (-0x18); /* 0x36111F9C: lea eax, [ebp - 0x18] */ 4130 L_36111F9F: 4131 PUSH32(esp, eax); /* 0x36111F9F: push eax */ 4132 L_36111FA0: 4133 PUSH32(esp, 0x3F6u); /* 0x36111FA0: push 0x3f6 */ 4134 L_36111FA5: 4135 RECOMP_ICALL(0x36133900u); /* 0x36111FA5: call 0x36133900 */ /* not lifted */ 4136 RECOMP_FLAGS_IN(); 4137 L_36111FAA: 4138 /* test LO8(eax), LO8(eax) */ /* 0x36111FAA: test al, al */ 4139 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4140 _cf = 0; 4141 _flag_k = FK_NARROW(FK_TEST, 24); 4142 L_36111FAC: 4143 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FB9; /* 0x36111FAC: je 0x36111fb9 */ 4144 L_36111FAE: 4145 ecx = ebp + (-0x18); /* 0x36111FAE: lea ecx, [ebp - 0x18] */ 4146 L_36111FB1: 4147 PUSH32(esp, ecx); /* 0x36111FB1: push ecx */ 4148 L_36111FB2: 4149 ecx = esi; /* 0x36111FB2: mov ecx, esi */ 4150 L_36111FB4: 4151 RECOMP_ICALL(0x36111350u); /* 0x36111FB4: call 0x36111350 */ /* not lifted */ 4152 RECOMP_FLAGS_IN(); 4153 L_36111FB9: 4154 ecx = MEM32(esi + 0x20); /* 0x36111FB9: mov ecx, dword ptr [esi + 0x20] */ 4155 L_36111FBC: 4156 edx = ebp + (-0x18); /* 0x36111FBC: lea edx, [ebp - 0x18] */ 4157 L_36111FBF: 4158 PUSH32(esp, edx); /* 0x36111FBF: push edx */ 4159 L_36111FC0: 4160 PUSH32(esp, 0x3F1u); /* 0x36111FC0: push 0x3f1 */ 4161 L_36111FC5: 4162 RECOMP_ICALL(0x36133900u); /* 0x36111FC5: call 0x36133900 */ /* not lifted */ 4163 RECOMP_FLAGS_IN(); 4164 L_36111FCA: 4165 /* test LO8(eax), LO8(eax) */ /* 0x36111FCA: test al, al */ 4166 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4167 _cf = 0; 4168 _flag_k = FK_NARROW(FK_TEST, 24); 4169 L_36111FCC: 4170 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FD9; /* 0x36111FCC: je 0x36111fd9 */ 4171 L_36111FCE: 4172 eax = ebp + (-0x18); /* 0x36111FCE: lea eax, [ebp - 0x18] */ 4173 L_36111FD1: 4174 PUSH32(esp, eax); /* 0x36111FD1: push eax */ 4175 L_36111FD2: 4176 ecx = esi; /* 0x36111FD2: mov ecx, esi */ 4177 L_36111FD4: 4178 RECOMP_ICALL(0x36111350u); /* 0x36111FD4: call 0x36111350 */ /* not lifted */ 4179 RECOMP_FLAGS_IN(); 4180 L_36111FD9: 4181 ecx = ebp + (-0x18); /* 0x36111FD9: lea ecx, [ebp - 0x18] */ 4182 L_36111FDC: 4183 PUSH32(esp, ecx); /* 0x36111FDC: push ecx */ 4184 L_36111FDD: 4185 ecx = MEM32(esi + 0x20); /* 0x36111FDD: mov ecx, dword ptr [esi + 0x20] */ 4186 L_36111FE0: 4187 PUSH32(esp, 0x3F2u); /* 0x36111FE0: push 0x3f2 */ 4188 L_36111FE5: 4189 RECOMP_ICALL(0x36133900u); /* 0x36111FE5: call 0x36133900 */ /* not lifted */ 4190 RECOMP_FLAGS_IN(); 4191 L_36111FEA: 4192 /* test LO8(eax), LO8(eax) */ /* 0x36111FEA: test al, al */ 4193 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4194 _cf = 0; 4195 _flag_k = FK_NARROW(FK_TEST, 24); 4196 L_36111FEC: 4197 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36111FF9; /* 0x36111FEC: je 0x36111ff9 */ 4198 L_36111FEE: 4199 edx = ebp + (-0x18); /* 0x36111FEE: lea edx, [ebp - 0x18] */ 4200 L_36111FF1: 4201 PUSH32(esp, edx); /* 0x36111FF1: push edx */ 4202 L_36111FF2: 4203 ecx = esi; /* 0x36111FF2: mov ecx, esi */ 4204 L_36111FF4: 4205 RECOMP_ICALL(0x36111350u); /* 0x36111FF4: call 0x36111350 */ /* not lifted */ 4206 RECOMP_FLAGS_IN(); 4207 L_36111FF9: 4208 PUSH32(esp, edi); /* 0x36111FF9: push edi */ 4209 L_36111FFA: 4210 RECOMP_ICALL(0x360F7B00u); /* 0x36111FFA: call 0x360f7b00 */ /* not lifted */ 4211 RECOMP_FLAGS_IN(); 4212 L_36111FFF: 4213 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 4214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4215 eax = eax + 0x28u; /* 0x36111FFF: add eax, 0x28 */ 4216 _flag_k = FK_ADD; 4217 L_36112002: 4218 ecx = MEM32(eax); /* 0x36112002: mov ecx, dword ptr [eax] */ 4219 L_36112004: 4220 MEM32(ebp + (-0x30)) = ecx; /* 0x36112004: mov dword ptr [ebp - 0x30], ecx */ 4221 L_36112007: 4222 edx = MEM32(eax + 0x4); /* 0x36112007: mov edx, dword ptr [eax + 4] */ 4223 L_3611200A: 4224 MEM32(ebp + (-0x2C)) = edx; /* 0x3611200A: mov dword ptr [ebp - 0x2c], edx */ 4225 L_3611200D: 4226 edx = MEM32(esi + 0x8); /* 0x3611200D: mov edx, dword ptr [esi + 8] */ 4227 L_36112010: 4228 eax = MEM32(eax + 0x8); /* 0x36112010: mov eax, dword ptr [eax + 8] */ 4229 L_36112013: 4230 ecx = ebp + (-0x30); /* 0x36112013: lea ecx, [ebp - 0x30] */ 4231 L_36112016: 4232 PUSH32(esp, ecx); /* 0x36112016: push ecx */ 4233 L_36112017: 4234 ecx = MEM32(esi + 0x24); /* 0x36112017: mov ecx, dword ptr [esi + 0x24] */ 4235 L_3611201A: 4236 PUSH32(esp, edx); /* 0x3611201A: push edx */ 4237 L_3611201B: 4238 MEM32(ebp + (-0x28)) = eax; /* 0x3611201B: mov dword ptr [ebp - 0x28], eax */ 4239 L_3611201E: 4240 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x3611201E: call dword ptr [0x3616f6c0] */ 4241 RECOMP_FLAGS_IN(); 4242 L_36112024: 4243 ecx = MEM32(esi + 0x20); /* 0x36112024: mov ecx, dword ptr [esi + 0x20] */ 4244 L_36112027: 4245 eax = ebp + (-0x3C); /* 0x36112027: lea eax, [ebp - 0x3c] */ 4246 L_3611202A: 4247 PUSH32(esp, eax); /* 0x3611202A: push eax */ 4248 L_3611202B: 4249 RECOMP_ICALL(0x36133E80u); /* 0x3611202B: call 0x36133e80 */ /* not lifted */ 4250 RECOMP_FLAGS_IN(); 4251 L_36112030: 4252 ecx = MEM32(esi + 0x24); /* 0x36112030: mov ecx, dword ptr [esi + 0x24] */ 4253 L_36112033: 4254 edi = MEM32(eax); /* 0x36112033: mov edi, dword ptr [eax] */ 4255 L_36112035: 4256 edx = ecx + 0x78; /* 0x36112035: lea edx, [ecx + 0x78] */ 4257 L_36112038: 4258 MEM32(edx) = edi; /* 0x36112038: mov dword ptr [edx], edi */ 4259 L_3611203A: 4260 edi = MEM32(eax + 0x4); /* 0x3611203A: mov edi, dword ptr [eax + 4] */ 4261 L_3611203D: 4262 MEM32(edx + 0x4) = edi; /* 0x3611203D: mov dword ptr [edx + 4], edi */ 4263 L_36112040: 4264 eax = MEM32(eax + 0x8); /* 0x36112040: mov eax, dword ptr [eax + 8] */ 4265 L_36112043: 4266 PUSH32(esp, 1); /* 0x36112043: push 1 */ 4267 L_36112045: 4268 MEM32(edx + 0x8) = eax; /* 0x36112045: mov dword ptr [edx + 8], eax */ 4269 L_36112048: 4270 edx = MEM32(ecx); /* 0x36112048: mov edx, dword ptr [ecx] */ 4271 L_3611204A: 4272 PUSH32(esp, 1); /* 0x3611204A: push 1 */ 4273 L_3611204C: 4274 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611204C: call dword ptr [edx + 0x2c] */ 4275 RECOMP_FLAGS_IN(); 4276 L_3611204F: 4277 ecx = MEM32(esi + 0x20); /* 0x3611204F: mov ecx, dword ptr [esi + 0x20] */ 4278 L_36112052: 4279 eax = ebp + (-0x80); /* 0x36112052: lea eax, [ebp - 0x80] */ 4280 L_36112055: 4281 PUSH32(esp, eax); /* 0x36112055: push eax */ 4282 L_36112056: 4283 RECOMP_ICALL(0x36133DC0u); /* 0x36112056: call 0x36133dc0 */ /* not lifted */ 4284 RECOMP_FLAGS_IN(); 4285 L_3611205B: 4286 PUSH32(esp, eax); /* 0x3611205B: push eax */ 4287 L_3611205C: 4288 ecx = ebp + (-0x40); /* 0x3611205C: lea ecx, [ebp - 0x40] */ 4289 L_3611205F: 4290 MEM32(ebp + (-0x4)) = 0; /* 0x3611205F: mov dword ptr [ebp - 4], 0 */ 4291 L_36112066: 4292 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112066: call dword ptr [0x361701a4] */ 4293 RECOMP_FLAGS_IN(); 4294 L_3611206C: 4295 ecx = MEM32(esi + 0x24); /* 0x3611206C: mov ecx, dword ptr [esi + 0x24] */ 4296 L_3611206F: 4297 edi = MEM32(eax); /* 0x3611206F: mov edi, dword ptr [eax] */ 4298 L_36112071: 4299 edx = ecx + 0x84; /* 0x36112071: lea edx, [ecx + 0x84] */ 4300 L_36112077: 4301 MEM32(edx) = edi; /* 0x36112077: mov dword ptr [edx], edi */ 4302 L_36112079: 4303 edi = MEM32(eax + 0x4); /* 0x36112079: mov edi, dword ptr [eax + 4] */ 4304 L_3611207C: 4305 MEM32(edx + 0x4) = edi; /* 0x3611207C: mov dword ptr [edx + 4], edi */ 4306 L_3611207F: 4307 edi = MEM32(eax + 0x8); /* 0x3611207F: mov edi, dword ptr [eax + 8] */ 4308 L_36112082: 4309 MEM32(edx + 0x8) = edi; /* 0x36112082: mov dword ptr [edx + 8], edi */ 4310 L_36112085: 4311 eax = MEM32(eax + 0xC); /* 0x36112085: mov eax, dword ptr [eax + 0xc] */ 4312 L_36112088: 4313 PUSH32(esp, 1); /* 0x36112088: push 1 */ 4314 L_3611208A: 4315 MEM32(edx + 0xC) = eax; /* 0x3611208A: mov dword ptr [edx + 0xc], eax */ 4316 L_3611208D: 4317 edx = MEM32(ecx); /* 0x3611208D: mov edx, dword ptr [ecx] */ 4318 L_3611208F: 4319 PUSH32(esp, 2); /* 0x3611208F: push 2 */ 4320 L_36112091: 4321 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112091: call dword ptr [edx + 0x2c] */ 4322 RECOMP_FLAGS_IN(); 4323 L_36112094: 4324 eax = MEM32(esi + 0x20); /* 0x36112094: mov eax, dword ptr [esi + 0x20] */ 4325 L_36112097: 4326 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x36112097: mov dl, byte ptr [eax + 0x108] */ 4327 L_3611209D: 4328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4329 ecx = 0; /* 0x3611209D: xor ecx, ecx */ 4330 _cf = 0; 4331 _flag_k = FK_TEST; 4332 L_3611209F: 4333 /* test LO8(edx), LO8(edx) */ /* 0x3611209F: test dl, dl */ 4334 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4335 _cf = 0; 4336 _flag_k = FK_NARROW(FK_TEST, 24); 4337 L_361120A1: 4338 SET_LO8(ecx, (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) ? 1 : 0); /* 0x361120A1: sete cl */ 4339 L_361120A4: 4340 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361120A4: mov dword ptr [ebp - 4], 0xffffffff */ 4341 L_361120AB: 4342 PUSH32(esp, ecx); /* 0x361120AB: push ecx */ 4343 L_361120AC: 4344 ecx = MEM32(esi + 0x24); /* 0x361120AC: mov ecx, dword ptr [esi + 0x24] */ 4345 L_361120AF: 4346 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361120AF: call dword ptr [0x3616f620] */ 4347 RECOMP_FLAGS_IN(); 4348 L_361120B5: 4349 edx = MEM32(esi + 0x28); /* 0x361120B5: mov edx, dword ptr [esi + 0x28] */ 4350 L_361120B8: 4351 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 4352 edx = edx & 0x200u; /* 0x361120B8: and edx, 0x200 */ 4353 _cf = 0; 4354 _flag_k = FK_TEST; 4355 L_361120BE: 4356 /* cmp edx, 0x200u */ /* 0x361120BE: cmp edx, 0x200 */ 4357 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 4358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4359 _flag_k = FK_CMP; 4360 L_361120C4: 4361 edi = POP32_VAL(esp); /* 0x361120C4: pop edi */ 4362 L_361120C5: 4363 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361120D8; /* 0x361120C5: jne 0x361120d8 */ 4364 L_361120C7: 4365 eax = MEM32(esi + 0x24); /* 0x361120C7: mov eax, dword ptr [esi + 0x24] */ 4366 L_361120CA: 4367 ecx = MEM32(eax + 0x27C); /* 0x361120CA: mov ecx, dword ptr [eax + 0x27c] */ 4368 L_361120D0: 4369 /* test ecx, ecx */ /* 0x361120D0: test ecx, ecx */ 4370 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4371 _cf = 0; 4372 _flag_k = FK_TEST; 4373 L_361120D2: 4374 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_361120D8; /* 0x361120D2: jne 0x361120d8 */ 4375 L_361120D4: 4376 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361120D4: mov byte ptr [esi + 0x14], 1 */ 4377 L_361120D8: 4378 ecx = ebp + (-0x24); /* 0x361120D8: lea ecx, [ebp - 0x24] */ 4379 L_361120DB: 4380 PUSH32(esp, ecx); /* 0x361120DB: push ecx */ 4381 L_361120DC: 4382 ecx = MEM32(esi + 0x20); /* 0x361120DC: mov ecx, dword ptr [esi + 0x20] */ 4383 L_361120DF: 4384 RECOMP_ICALL(0x36133FC0u); /* 0x361120DF: call 0x36133fc0 */ /* not lifted */ 4385 RECOMP_FLAGS_IN(); 4386 L_361120E4: 4387 edx = MEM32(eax); /* 0x361120E4: mov edx, dword ptr [eax] */ 4388 L_361120E6: 4389 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u); 4390 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4391 esi = esi + 0xB4u; /* 0x361120E6: add esi, 0xb4 */ 4392 _flag_k = FK_ADD; 4393 L_361120EC: 4394 MEM32(esi) = edx; /* 0x361120EC: mov dword ptr [esi], edx */ 4395 L_361120EE: 4396 ecx = MEM32(eax + 0x4); /* 0x361120EE: mov ecx, dword ptr [eax + 4] */ 4397 L_361120F1: 4398 MEM32(esi + 0x4) = ecx; /* 0x361120F1: mov dword ptr [esi + 4], ecx */ 4399 L_361120F4: 4400 edx = MEM32(eax + 0x8); /* 0x361120F4: mov edx, dword ptr [eax + 8] */ 4401 L_361120F7: 4402 MEM32(esi + 0x8) = edx; /* 0x361120F7: mov dword ptr [esi + 8], edx */ 4403 L_361120FA: 4404 ecx = MEM32(ebp + (-0xC)); /* 0x361120FA: mov ecx, dword ptr [ebp - 0xc] */ 4405 L_361120FD: 4406 esi = POP32_VAL(esp); /* 0x361120FD: pop esi */ 4407 L_361120FE: 4408 MEM32(FS_BASE + (0)) = ecx; /* 0x361120FE: mov dword ptr fs:[0], ecx */ 4409 L_36112105: 4410 esp = ebp; /* 0x36112105: mov esp, ebp */ 4411 L_36112107: 4412 ebp = POP32_VAL(esp); /* 0x36112107: pop ebp */ 4413 L_36112108: 4414 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112108: ret */ 4415 _ljump: 4416 switch (_itail_tgt) { 4417 case 0x36111CABu: goto L_36111CAB; 4418 case 0x36111CB2u: goto L_36111CB2; 4419 case 0x36111CB9u: goto L_36111CB9; 4420 case 0x36111CBFu: goto L_36111CBF; 4421 case 0x36111CC6u: goto L_36111CC6; 4422 case 0x36111CC9u: goto L_36111CC9; 4423 case 0x36111CCFu: goto L_36111CCF; 4424 case 0x36111CD1u: goto L_36111CD1; 4425 case 0x36111CD4u: goto L_36111CD4; 4426 case 0x36111CDAu: goto L_36111CDA; 4427 case 0x36111CE0u: goto L_36111CE0; 4428 case 0x36111CE6u: goto L_36111CE6; 4429 case 0x36111CECu: goto L_36111CEC; 4430 case 0x36111CF2u: goto L_36111CF2; 4431 case 0x36111CF4u: goto L_36111CF4; 4432 case 0x36111CF7u: goto L_36111CF7; 4433 case 0x36111CF9u: goto L_36111CF9; 4434 case 0x36111D03u: goto L_36111D03; 4435 case 0x36111D0Du: goto L_36111D0D; 4436 case 0x36111D10u: goto L_36111D10; 4437 case 0x36111D11u: goto L_36111D11; 4438 case 0x36111D16u: goto L_36111D16; 4439 case 0x36111D1Bu: goto L_36111D1B; 4440 case 0x36111D1Eu: goto L_36111D1E; 4441 case 0x36111D24u: goto L_36111D24; 4442 case 0x36111D26u: goto L_36111D26; 4443 case 0x36111D29u: goto L_36111D29; 4444 case 0x36111D2Fu: goto L_36111D2F; 4445 case 0x36111D35u: goto L_36111D35; 4446 case 0x36111D3Bu: goto L_36111D3B; 4447 case 0x36111D41u: goto L_36111D41; 4448 case 0x36111D47u: goto L_36111D47; 4449 case 0x36111D49u: goto L_36111D49; 4450 case 0x36111D4Cu: goto L_36111D4C; 4451 case 0x36111D4Eu: goto L_36111D4E; 4452 case 0x36111D58u: goto L_36111D58; 4453 case 0x36111D62u: goto L_36111D62; 4454 case 0x36111D65u: goto L_36111D65; 4455 case 0x36111D68u: goto L_36111D68; 4456 case 0x36111D69u: goto L_36111D69; 4457 case 0x36111D6Eu: goto L_36111D6E; 4458 case 0x36111D73u: goto L_36111D73; 4459 case 0x36111D75u: goto L_36111D75; 4460 case 0x36111D77u: goto L_36111D77; 4461 case 0x36111D7Au: goto L_36111D7A; 4462 case 0x36111D7Bu: goto L_36111D7B; 4463 case 0x36111D7Du: goto L_36111D7D; 4464 case 0x36111D82u: goto L_36111D82; 4465 case 0x36111D85u: goto L_36111D85; 4466 case 0x36111D86u: goto L_36111D86; 4467 case 0x36111D89u: goto L_36111D89; 4468 case 0x36111D8Eu: goto L_36111D8E; 4469 case 0x36111D93u: goto L_36111D93; 4470 case 0x36111D95u: goto L_36111D95; 4471 case 0x36111D9Bu: goto L_36111D9B; 4472 case 0x36111DA0u: goto L_36111DA0; 4473 case 0x36111DA3u: goto L_36111DA3; 4474 case 0x36111DA9u: goto L_36111DA9; 4475 case 0x36111DABu: goto L_36111DAB; 4476 case 0x36111DAEu: goto L_36111DAE; 4477 case 0x36111DB4u: goto L_36111DB4; 4478 case 0x36111DBAu: goto L_36111DBA; 4479 case 0x36111DC0u: goto L_36111DC0; 4480 case 0x36111DC6u: goto L_36111DC6; 4481 case 0x36111DCCu: goto L_36111DCC; 4482 case 0x36111DCEu: goto L_36111DCE; 4483 case 0x36111DD1u: goto L_36111DD1; 4484 case 0x36111DD3u: goto L_36111DD3; 4485 case 0x36111DDDu: goto L_36111DDD; 4486 case 0x36111DE7u: goto L_36111DE7; 4487 case 0x36111DEAu: goto L_36111DEA; 4488 case 0x36111DEDu: goto L_36111DED; 4489 case 0x36111DEEu: goto L_36111DEE; 4490 case 0x36111DF3u: goto L_36111DF3; 4491 case 0x36111DF8u: goto L_36111DF8; 4492 case 0x36111DFAu: goto L_36111DFA; 4493 case 0x36111DFCu: goto L_36111DFC; 4494 case 0x36111DFFu: goto L_36111DFF; 4495 case 0x36111E00u: goto L_36111E00; 4496 case 0x36111E02u: goto L_36111E02; 4497 case 0x36111E07u: goto L_36111E07; 4498 case 0x36111E0Au: goto L_36111E0A; 4499 case 0x36111E0Du: goto L_36111E0D; 4500 case 0x36111E0Eu: goto L_36111E0E; 4501 case 0x36111E13u: goto L_36111E13; 4502 case 0x36111E18u: goto L_36111E18; 4503 case 0x36111E1Au: goto L_36111E1A; 4504 case 0x36111E20u: goto L_36111E20; 4505 case 0x36111E23u: goto L_36111E23; 4506 case 0x36111E24u: goto L_36111E24; 4507 case 0x36111E29u: goto L_36111E29; 4508 case 0x36111E2Cu: goto L_36111E2C; 4509 case 0x36111E32u: goto L_36111E32; 4510 case 0x36111E34u: goto L_36111E34; 4511 case 0x36111E37u: goto L_36111E37; 4512 case 0x36111E3Du: goto L_36111E3D; 4513 case 0x36111E43u: goto L_36111E43; 4514 case 0x36111E49u: goto L_36111E49; 4515 case 0x36111E4Fu: goto L_36111E4F; 4516 case 0x36111E55u: goto L_36111E55; 4517 case 0x36111E57u: goto L_36111E57; 4518 case 0x36111E5Au: goto L_36111E5A; 4519 case 0x36111E5Cu: goto L_36111E5C; 4520 case 0x36111E66u: goto L_36111E66; 4521 case 0x36111E70u: goto L_36111E70; 4522 case 0x36111E73u: goto L_36111E73; 4523 case 0x36111E74u: goto L_36111E74; 4524 case 0x36111E77u: goto L_36111E77; 4525 case 0x36111E7Cu: goto L_36111E7C; 4526 case 0x36111E81u: goto L_36111E81; 4527 case 0x36111E83u: goto L_36111E83; 4528 case 0x36111E85u: goto L_36111E85; 4529 case 0x36111E88u: goto L_36111E88; 4530 case 0x36111E89u: goto L_36111E89; 4531 case 0x36111E8Bu: goto L_36111E8B; 4532 case 0x36111E90u: goto L_36111E90; 4533 case 0x36111E93u: goto L_36111E93; 4534 case 0x36111E96u: goto L_36111E96; 4535 case 0x36111E97u: goto L_36111E97; 4536 case 0x36111E9Cu: goto L_36111E9C; 4537 case 0x36111EA1u: goto L_36111EA1; 4538 case 0x36111EA3u: goto L_36111EA3; 4539 case 0x36111EA5u: goto L_36111EA5; 4540 case 0x36111EA8u: goto L_36111EA8; 4541 case 0x36111EA9u: goto L_36111EA9; 4542 case 0x36111EABu: goto L_36111EAB; 4543 case 0x36111EB0u: goto L_36111EB0; 4544 case 0x36111EB3u: goto L_36111EB3; 4545 case 0x36111EB6u: goto L_36111EB6; 4546 case 0x36111EB7u: goto L_36111EB7; 4547 case 0x36111EBCu: goto L_36111EBC; 4548 case 0x36111EC1u: goto L_36111EC1; 4549 case 0x36111EC3u: goto L_36111EC3; 4550 case 0x36111EC5u: goto L_36111EC5; 4551 case 0x36111EC8u: goto L_36111EC8; 4552 case 0x36111EC9u: goto L_36111EC9; 4553 case 0x36111ECBu: goto L_36111ECB; 4554 case 0x36111ED0u: goto L_36111ED0; 4555 case 0x36111ED3u: goto L_36111ED3; 4556 case 0x36111ED4u: goto L_36111ED4; 4557 case 0x36111ED7u: goto L_36111ED7; 4558 case 0x36111EDCu: goto L_36111EDC; 4559 case 0x36111EE1u: goto L_36111EE1; 4560 case 0x36111EE3u: goto L_36111EE3; 4561 case 0x36111EE5u: goto L_36111EE5; 4562 case 0x36111EE8u: goto L_36111EE8; 4563 case 0x36111EE9u: goto L_36111EE9; 4564 case 0x36111EEBu: goto L_36111EEB; 4565 case 0x36111EF0u: goto L_36111EF0; 4566 case 0x36111EF3u: goto L_36111EF3; 4567 case 0x36111EF4u: goto L_36111EF4; 4568 case 0x36111EF9u: goto L_36111EF9; 4569 case 0x36111EFCu: goto L_36111EFC; 4570 case 0x36111F01u: goto L_36111F01; 4571 case 0x36111F03u: goto L_36111F03; 4572 case 0x36111F09u: goto L_36111F09; 4573 case 0x36111F0Cu: goto L_36111F0C; 4574 case 0x36111F0Du: goto L_36111F0D; 4575 case 0x36111F12u: goto L_36111F12; 4576 case 0x36111F15u: goto L_36111F15; 4577 case 0x36111F1Bu: goto L_36111F1B; 4578 case 0x36111F1Du: goto L_36111F1D; 4579 case 0x36111F20u: goto L_36111F20; 4580 case 0x36111F26u: goto L_36111F26; 4581 case 0x36111F2Cu: goto L_36111F2C; 4582 case 0x36111F32u: goto L_36111F32; 4583 case 0x36111F38u: goto L_36111F38; 4584 case 0x36111F3Eu: goto L_36111F3E; 4585 case 0x36111F40u: goto L_36111F40; 4586 case 0x36111F43u: goto L_36111F43; 4587 case 0x36111F45u: goto L_36111F45; 4588 case 0x36111F4Fu: goto L_36111F4F; 4589 case 0x36111F59u: goto L_36111F59; 4590 case 0x36111F5Cu: goto L_36111F5C; 4591 case 0x36111F5Fu: goto L_36111F5F; 4592 case 0x36111F60u: goto L_36111F60; 4593 case 0x36111F65u: goto L_36111F65; 4594 case 0x36111F6Au: goto L_36111F6A; 4595 case 0x36111F6Cu: goto L_36111F6C; 4596 case 0x36111F6Eu: goto L_36111F6E; 4597 case 0x36111F71u: goto L_36111F71; 4598 case 0x36111F72u: goto L_36111F72; 4599 case 0x36111F74u: goto L_36111F74; 4600 case 0x36111F79u: goto L_36111F79; 4601 case 0x36111F7Cu: goto L_36111F7C; 4602 case 0x36111F7Du: goto L_36111F7D; 4603 case 0x36111F80u: goto L_36111F80; 4604 case 0x36111F85u: goto L_36111F85; 4605 case 0x36111F8Au: goto L_36111F8A; 4606 case 0x36111F8Cu: goto L_36111F8C; 4607 case 0x36111F8Eu: goto L_36111F8E; 4608 case 0x36111F91u: goto L_36111F91; 4609 case 0x36111F92u: goto L_36111F92; 4610 case 0x36111F94u: goto L_36111F94; 4611 case 0x36111F99u: goto L_36111F99; 4612 case 0x36111F9Cu: goto L_36111F9C; 4613 case 0x36111F9Fu: goto L_36111F9F; 4614 case 0x36111FA0u: goto L_36111FA0; 4615 case 0x36111FA5u: goto L_36111FA5; 4616 case 0x36111FAAu: goto L_36111FAA; 4617 case 0x36111FACu: goto L_36111FAC; 4618 case 0x36111FAEu: goto L_36111FAE; 4619 case 0x36111FB1u: goto L_36111FB1; 4620 case 0x36111FB2u: goto L_36111FB2; 4621 case 0x36111FB4u: goto L_36111FB4; 4622 case 0x36111FB9u: goto L_36111FB9; 4623 case 0x36111FBCu: goto L_36111FBC; 4624 case 0x36111FBFu: goto L_36111FBF; 4625 case 0x36111FC0u: goto L_36111FC0; 4626 case 0x36111FC5u: goto L_36111FC5; 4627 case 0x36111FCAu: goto L_36111FCA; 4628 case 0x36111FCCu: goto L_36111FCC; 4629 case 0x36111FCEu: goto L_36111FCE; 4630 case 0x36111FD1u: goto L_36111FD1; 4631 case 0x36111FD2u: goto L_36111FD2; 4632 case 0x36111FD4u: goto L_36111FD4; 4633 case 0x36111FD9u: goto L_36111FD9; 4634 case 0x36111FDCu: goto L_36111FDC; 4635 case 0x36111FDDu: goto L_36111FDD; 4636 case 0x36111FE0u: goto L_36111FE0; 4637 case 0x36111FE5u: goto L_36111FE5; 4638 case 0x36111FEAu: goto L_36111FEA; 4639 case 0x36111FECu: goto L_36111FEC; 4640 case 0x36111FEEu: goto L_36111FEE; 4641 case 0x36111FF1u: goto L_36111FF1; 4642 case 0x36111FF2u: goto L_36111FF2; 4643 case 0x36111FF4u: goto L_36111FF4; 4644 case 0x36111FF9u: goto L_36111FF9; 4645 case 0x36111FFAu: goto L_36111FFA; 4646 case 0x36111FFFu: goto L_36111FFF; 4647 case 0x36112002u: goto L_36112002; 4648 case 0x36112004u: goto L_36112004; 4649 case 0x36112007u: goto L_36112007; 4650 case 0x3611200Au: goto L_3611200A; 4651 case 0x3611200Du: goto L_3611200D; 4652 case 0x36112010u: goto L_36112010; 4653 case 0x36112013u: goto L_36112013; 4654 case 0x36112016u: goto L_36112016; 4655 case 0x36112017u: goto L_36112017; 4656 case 0x3611201Au: goto L_3611201A; 4657 case 0x3611201Bu: goto L_3611201B; 4658 case 0x3611201Eu: goto L_3611201E; 4659 case 0x36112024u: goto L_36112024; 4660 case 0x36112027u: goto L_36112027; 4661 case 0x3611202Au: goto L_3611202A; 4662 case 0x3611202Bu: goto L_3611202B; 4663 case 0x36112030u: goto L_36112030; 4664 case 0x36112033u: goto L_36112033; 4665 case 0x36112035u: goto L_36112035; 4666 case 0x36112038u: goto L_36112038; 4667 case 0x3611203Au: goto L_3611203A; 4668 case 0x3611203Du: goto L_3611203D; 4669 case 0x36112040u: goto L_36112040; 4670 case 0x36112043u: goto L_36112043; 4671 case 0x36112045u: goto L_36112045; 4672 case 0x36112048u: goto L_36112048; 4673 case 0x3611204Au: goto L_3611204A; 4674 case 0x3611204Cu: goto L_3611204C; 4675 case 0x3611204Fu: goto L_3611204F; 4676 case 0x36112052u: goto L_36112052; 4677 case 0x36112055u: goto L_36112055; 4678 case 0x36112056u: goto L_36112056; 4679 case 0x3611205Bu: goto L_3611205B; 4680 case 0x3611205Cu: goto L_3611205C; 4681 case 0x3611205Fu: goto L_3611205F; 4682 case 0x36112066u: goto L_36112066; 4683 case 0x3611206Cu: goto L_3611206C; 4684 case 0x3611206Fu: goto L_3611206F; 4685 case 0x36112071u: goto L_36112071; 4686 case 0x36112077u: goto L_36112077; 4687 case 0x36112079u: goto L_36112079; 4688 case 0x3611207Cu: goto L_3611207C; 4689 case 0x3611207Fu: goto L_3611207F; 4690 case 0x36112082u: goto L_36112082; 4691 case 0x36112085u: goto L_36112085; 4692 case 0x36112088u: goto L_36112088; 4693 case 0x3611208Au: goto L_3611208A; 4694 case 0x3611208Du: goto L_3611208D; 4695 case 0x3611208Fu: goto L_3611208F; 4696 case 0x36112091u: goto L_36112091; 4697 case 0x36112094u: goto L_36112094; 4698 case 0x36112097u: goto L_36112097; 4699 case 0x3611209Du: goto L_3611209D; 4700 case 0x3611209Fu: goto L_3611209F; 4701 case 0x361120A1u: goto L_361120A1; 4702 case 0x361120A4u: goto L_361120A4; 4703 case 0x361120ABu: goto L_361120AB; 4704 case 0x361120ACu: goto L_361120AC; 4705 case 0x361120AFu: goto L_361120AF; 4706 case 0x361120B5u: goto L_361120B5; 4707 case 0x361120B8u: goto L_361120B8; 4708 case 0x361120BEu: goto L_361120BE; 4709 case 0x361120C4u: goto L_361120C4; 4710 case 0x361120C5u: goto L_361120C5; 4711 case 0x361120C7u: goto L_361120C7; 4712 case 0x361120CAu: goto L_361120CA; 4713 case 0x361120D0u: goto L_361120D0; 4714 case 0x361120D2u: goto L_361120D2; 4715 case 0x361120D4u: goto L_361120D4; 4716 case 0x361120D8u: goto L_361120D8; 4717 case 0x361120DBu: goto L_361120DB; 4718 case 0x361120DCu: goto L_361120DC; 4719 case 0x361120DFu: goto L_361120DF; 4720 case 0x361120E4u: goto L_361120E4; 4721 case 0x361120E6u: goto L_361120E6; 4722 case 0x361120ECu: goto L_361120EC; 4723 case 0x361120EEu: goto L_361120EE; 4724 case 0x361120F1u: goto L_361120F1; 4725 case 0x361120F4u: goto L_361120F4; 4726 case 0x361120F7u: goto L_361120F7; 4727 case 0x361120FAu: goto L_361120FA; 4728 case 0x361120FDu: goto L_361120FD; 4729 case 0x361120FEu: goto L_361120FE; 4730 case 0x36112105u: goto L_36112105; 4731 case 0x36112107u: goto L_36112107; 4732 case 0x36112108u: goto L_36112108; 4733 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4734 } 4735 RECOMP_REGS_OUT(); 4736 } 4737 4738 void sub_36111EF9(void) { 4739 int _fpu_cmp = 0; 4740 uint32_t _cf = 0; 4741 int _df = 1; 4742 uint32_t _flag_k = FK_NONE; 4743 uint32_t _flag_a = 0, _flag_b = 0; 4744 uint32_t _itail_tgt = 0; 4745 RECOMP_REGS_LOCALS 4746 RECOMP_ENTER(0x36111EF9u); 4747 4748 L_36111EF9: 4749 ecx = MEM32(esi + 0x20); /* 0x36111EF9: mov ecx, dword ptr [esi + 0x20] */ 4750 RECOMP_ICALL(0x36133900u); /* 0x36111EFC: call 0x36133900 */ /* not lifted */ 4751 RECOMP_FLAGS_IN(); 4752 /* test LO8(eax), LO8(eax) */ /* 0x36111F01: test al, al */ 4753 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4754 _cf = 0; 4755 _flag_k = FK_NARROW(FK_TEST, 24); 4756 if (TEST_Z(_flag_a, _flag_b)) goto L_36111FF9; /* 0x36111F03: je 0x36111ff9 */ 4757 L_36111F09: 4758 ecx = ebp + (-0x18); /* 0x36111F09: lea ecx, [ebp - 0x18] */ 4759 PUSH32(esp, ecx); /* 0x36111F0C: push ecx */ 4760 goto L_36111FF2; /* 0x36111F0D: jmp 0x36111ff2 */ 4761 L_36111FF2: 4762 ecx = esi; /* 0x36111FF2: mov ecx, esi */ 4763 RECOMP_ICALL(0x36111350u); /* 0x36111FF4: call 0x36111350 */ /* not lifted */ 4764 RECOMP_FLAGS_IN(); 4765 L_36111FF9: 4766 PUSH32(esp, edi); /* 0x36111FF9: push edi */ 4767 RECOMP_ICALL(0x360F7B00u); /* 0x36111FFA: call 0x360f7b00 */ /* not lifted */ 4768 RECOMP_FLAGS_IN(); 4769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 4770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4771 eax = eax + 0x28u; /* 0x36111FFF: add eax, 0x28 */ 4772 _flag_k = FK_ADD; 4773 ecx = MEM32(eax); /* 0x36112002: mov ecx, dword ptr [eax] */ 4774 MEM32(ebp + (-0x30)) = ecx; /* 0x36112004: mov dword ptr [ebp - 0x30], ecx */ 4775 edx = MEM32(eax + 0x4); /* 0x36112007: mov edx, dword ptr [eax + 4] */ 4776 MEM32(ebp + (-0x2C)) = edx; /* 0x3611200A: mov dword ptr [ebp - 0x2c], edx */ 4777 edx = MEM32(esi + 0x8); /* 0x3611200D: mov edx, dword ptr [esi + 8] */ 4778 eax = MEM32(eax + 0x8); /* 0x36112010: mov eax, dword ptr [eax + 8] */ 4779 ecx = ebp + (-0x30); /* 0x36112013: lea ecx, [ebp - 0x30] */ 4780 PUSH32(esp, ecx); /* 0x36112016: push ecx */ 4781 ecx = MEM32(esi + 0x24); /* 0x36112017: mov ecx, dword ptr [esi + 0x24] */ 4782 PUSH32(esp, edx); /* 0x3611201A: push edx */ 4783 MEM32(ebp + (-0x28)) = eax; /* 0x3611201B: mov dword ptr [ebp - 0x28], eax */ 4784 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x3611201E: call dword ptr [0x3616f6c0] */ 4785 RECOMP_FLAGS_IN(); 4786 ecx = MEM32(esi + 0x20); /* 0x36112024: mov ecx, dword ptr [esi + 0x20] */ 4787 eax = ebp + (-0x3C); /* 0x36112027: lea eax, [ebp - 0x3c] */ 4788 PUSH32(esp, eax); /* 0x3611202A: push eax */ 4789 RECOMP_ICALL(0x36133E80u); /* 0x3611202B: call 0x36133e80 */ /* not lifted */ 4790 RECOMP_FLAGS_IN(); 4791 ecx = MEM32(esi + 0x24); /* 0x36112030: mov ecx, dword ptr [esi + 0x24] */ 4792 edi = MEM32(eax); /* 0x36112033: mov edi, dword ptr [eax] */ 4793 edx = ecx + 0x78; /* 0x36112035: lea edx, [ecx + 0x78] */ 4794 MEM32(edx) = edi; /* 0x36112038: mov dword ptr [edx], edi */ 4795 edi = MEM32(eax + 0x4); /* 0x3611203A: mov edi, dword ptr [eax + 4] */ 4796 MEM32(edx + 0x4) = edi; /* 0x3611203D: mov dword ptr [edx + 4], edi */ 4797 eax = MEM32(eax + 0x8); /* 0x36112040: mov eax, dword ptr [eax + 8] */ 4798 PUSH32(esp, 1); /* 0x36112043: push 1 */ 4799 MEM32(edx + 0x8) = eax; /* 0x36112045: mov dword ptr [edx + 8], eax */ 4800 edx = MEM32(ecx); /* 0x36112048: mov edx, dword ptr [ecx] */ 4801 PUSH32(esp, 1); /* 0x3611204A: push 1 */ 4802 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611204C: call dword ptr [edx + 0x2c] */ 4803 RECOMP_FLAGS_IN(); 4804 ecx = MEM32(esi + 0x20); /* 0x3611204F: mov ecx, dword ptr [esi + 0x20] */ 4805 eax = ebp + (-0x80); /* 0x36112052: lea eax, [ebp - 0x80] */ 4806 PUSH32(esp, eax); /* 0x36112055: push eax */ 4807 RECOMP_ICALL(0x36133DC0u); /* 0x36112056: call 0x36133dc0 */ /* not lifted */ 4808 RECOMP_FLAGS_IN(); 4809 PUSH32(esp, eax); /* 0x3611205B: push eax */ 4810 ecx = ebp + (-0x40); /* 0x3611205C: lea ecx, [ebp - 0x40] */ 4811 MEM32(ebp + (-0x4)) = 0; /* 0x3611205F: mov dword ptr [ebp - 4], 0 */ 4812 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112066: call dword ptr [0x361701a4] */ 4813 RECOMP_FLAGS_IN(); 4814 ecx = MEM32(esi + 0x24); /* 0x3611206C: mov ecx, dword ptr [esi + 0x24] */ 4815 edi = MEM32(eax); /* 0x3611206F: mov edi, dword ptr [eax] */ 4816 edx = ecx + 0x84; /* 0x36112071: lea edx, [ecx + 0x84] */ 4817 MEM32(edx) = edi; /* 0x36112077: mov dword ptr [edx], edi */ 4818 edi = MEM32(eax + 0x4); /* 0x36112079: mov edi, dword ptr [eax + 4] */ 4819 MEM32(edx + 0x4) = edi; /* 0x3611207C: mov dword ptr [edx + 4], edi */ 4820 edi = MEM32(eax + 0x8); /* 0x3611207F: mov edi, dword ptr [eax + 8] */ 4821 MEM32(edx + 0x8) = edi; /* 0x36112082: mov dword ptr [edx + 8], edi */ 4822 eax = MEM32(eax + 0xC); /* 0x36112085: mov eax, dword ptr [eax + 0xc] */ 4823 PUSH32(esp, 1); /* 0x36112088: push 1 */ 4824 MEM32(edx + 0xC) = eax; /* 0x3611208A: mov dword ptr [edx + 0xc], eax */ 4825 edx = MEM32(ecx); /* 0x3611208D: mov edx, dword ptr [ecx] */ 4826 PUSH32(esp, 2); /* 0x3611208F: push 2 */ 4827 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112091: call dword ptr [edx + 0x2c] */ 4828 RECOMP_FLAGS_IN(); 4829 eax = MEM32(esi + 0x20); /* 0x36112094: mov eax, dword ptr [esi + 0x20] */ 4830 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x36112097: mov dl, byte ptr [eax + 0x108] */ 4831 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4832 ecx = 0; /* 0x3611209D: xor ecx, ecx */ 4833 _cf = 0; 4834 _flag_k = FK_TEST; 4835 /* test LO8(edx), LO8(edx) */ /* 0x3611209F: test dl, dl */ 4836 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4837 _cf = 0; 4838 _flag_k = FK_NARROW(FK_TEST, 24); 4839 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x361120A1: sete cl */ 4840 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361120A4: mov dword ptr [ebp - 4], 0xffffffff */ 4841 PUSH32(esp, ecx); /* 0x361120AB: push ecx */ 4842 ecx = MEM32(esi + 0x24); /* 0x361120AC: mov ecx, dword ptr [esi + 0x24] */ 4843 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361120AF: call dword ptr [0x3616f620] */ 4844 RECOMP_FLAGS_IN(); 4845 edx = MEM32(esi + 0x28); /* 0x361120B5: mov edx, dword ptr [esi + 0x28] */ 4846 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 4847 edx = edx & 0x200u; /* 0x361120B8: and edx, 0x200 */ 4848 _cf = 0; 4849 _flag_k = FK_TEST; 4850 /* cmp edx, 0x200u */ /* 0x361120BE: cmp edx, 0x200 */ 4851 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 4852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4853 _flag_k = FK_CMP; 4854 edi = POP32_VAL(esp); /* 0x361120C4: pop edi */ 4855 if (CMP_NE(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120C5: jne 0x361120d8 */ 4856 L_361120C7: 4857 eax = MEM32(esi + 0x24); /* 0x361120C7: mov eax, dword ptr [esi + 0x24] */ 4858 ecx = MEM32(eax + 0x27C); /* 0x361120CA: mov ecx, dword ptr [eax + 0x27c] */ 4859 /* test ecx, ecx */ /* 0x361120D0: test ecx, ecx */ 4860 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4861 _cf = 0; 4862 _flag_k = FK_TEST; 4863 if (TEST_NZ(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120D2: jne 0x361120d8 */ 4864 L_361120D4: 4865 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361120D4: mov byte ptr [esi + 0x14], 1 */ 4866 L_361120D8: 4867 ecx = ebp + (-0x24); /* 0x361120D8: lea ecx, [ebp - 0x24] */ 4868 PUSH32(esp, ecx); /* 0x361120DB: push ecx */ 4869 ecx = MEM32(esi + 0x20); /* 0x361120DC: mov ecx, dword ptr [esi + 0x20] */ 4870 RECOMP_ICALL(0x36133FC0u); /* 0x361120DF: call 0x36133fc0 */ /* not lifted */ 4871 RECOMP_FLAGS_IN(); 4872 edx = MEM32(eax); /* 0x361120E4: mov edx, dword ptr [eax] */ 4873 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u); 4874 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4875 esi = esi + 0xB4u; /* 0x361120E6: add esi, 0xb4 */ 4876 _flag_k = FK_ADD; 4877 MEM32(esi) = edx; /* 0x361120EC: mov dword ptr [esi], edx */ 4878 ecx = MEM32(eax + 0x4); /* 0x361120EE: mov ecx, dword ptr [eax + 4] */ 4879 MEM32(esi + 0x4) = ecx; /* 0x361120F1: mov dword ptr [esi + 4], ecx */ 4880 edx = MEM32(eax + 0x8); /* 0x361120F4: mov edx, dword ptr [eax + 8] */ 4881 MEM32(esi + 0x8) = edx; /* 0x361120F7: mov dword ptr [esi + 8], edx */ 4882 ecx = MEM32(ebp + (-0xC)); /* 0x361120FA: mov ecx, dword ptr [ebp - 0xc] */ 4883 esi = POP32_VAL(esp); /* 0x361120FD: pop esi */ 4884 MEM32(FS_BASE + (0)) = ecx; /* 0x361120FE: mov dword ptr fs:[0], ecx */ 4885 esp = ebp; /* 0x36112105: mov esp, ebp */ 4886 ebp = POP32_VAL(esp); /* 0x36112107: pop ebp */ 4887 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112108: ret */ 4888 RECOMP_REGS_OUT(); 4889 } 4890 4891 void sub_36111FEE(void) { 4892 int _fpu_cmp = 0; 4893 uint32_t _cf = 0; 4894 int _df = 1; 4895 uint32_t _flag_k = FK_NONE; 4896 uint32_t _flag_a = 0, _flag_b = 0; 4897 uint32_t _itail_tgt = 0; 4898 RECOMP_REGS_LOCALS 4899 RECOMP_ENTER(0x36111FEEu); 4900 4901 L_36111FEE: 4902 edx = ebp + (-0x18); /* 0x36111FEE: lea edx, [ebp - 0x18] */ 4903 PUSH32(esp, edx); /* 0x36111FF1: push edx */ 4904 ecx = esi; /* 0x36111FF2: mov ecx, esi */ 4905 RECOMP_ICALL(0x36111350u); /* 0x36111FF4: call 0x36111350 */ /* not lifted */ 4906 RECOMP_FLAGS_IN(); 4907 PUSH32(esp, edi); /* 0x36111FF9: push edi */ 4908 RECOMP_ICALL(0x360F7B00u); /* 0x36111FFA: call 0x360f7b00 */ /* not lifted */ 4909 RECOMP_FLAGS_IN(); 4910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 4911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4912 eax = eax + 0x28u; /* 0x36111FFF: add eax, 0x28 */ 4913 _flag_k = FK_ADD; 4914 ecx = MEM32(eax); /* 0x36112002: mov ecx, dword ptr [eax] */ 4915 MEM32(ebp + (-0x30)) = ecx; /* 0x36112004: mov dword ptr [ebp - 0x30], ecx */ 4916 edx = MEM32(eax + 0x4); /* 0x36112007: mov edx, dword ptr [eax + 4] */ 4917 MEM32(ebp + (-0x2C)) = edx; /* 0x3611200A: mov dword ptr [ebp - 0x2c], edx */ 4918 edx = MEM32(esi + 0x8); /* 0x3611200D: mov edx, dword ptr [esi + 8] */ 4919 eax = MEM32(eax + 0x8); /* 0x36112010: mov eax, dword ptr [eax + 8] */ 4920 ecx = ebp + (-0x30); /* 0x36112013: lea ecx, [ebp - 0x30] */ 4921 PUSH32(esp, ecx); /* 0x36112016: push ecx */ 4922 ecx = MEM32(esi + 0x24); /* 0x36112017: mov ecx, dword ptr [esi + 0x24] */ 4923 PUSH32(esp, edx); /* 0x3611201A: push edx */ 4924 MEM32(ebp + (-0x28)) = eax; /* 0x3611201B: mov dword ptr [ebp - 0x28], eax */ 4925 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x3611201E: call dword ptr [0x3616f6c0] */ 4926 RECOMP_FLAGS_IN(); 4927 ecx = MEM32(esi + 0x20); /* 0x36112024: mov ecx, dword ptr [esi + 0x20] */ 4928 eax = ebp + (-0x3C); /* 0x36112027: lea eax, [ebp - 0x3c] */ 4929 PUSH32(esp, eax); /* 0x3611202A: push eax */ 4930 RECOMP_ICALL(0x36133E80u); /* 0x3611202B: call 0x36133e80 */ /* not lifted */ 4931 RECOMP_FLAGS_IN(); 4932 ecx = MEM32(esi + 0x24); /* 0x36112030: mov ecx, dword ptr [esi + 0x24] */ 4933 edi = MEM32(eax); /* 0x36112033: mov edi, dword ptr [eax] */ 4934 edx = ecx + 0x78; /* 0x36112035: lea edx, [ecx + 0x78] */ 4935 MEM32(edx) = edi; /* 0x36112038: mov dword ptr [edx], edi */ 4936 edi = MEM32(eax + 0x4); /* 0x3611203A: mov edi, dword ptr [eax + 4] */ 4937 MEM32(edx + 0x4) = edi; /* 0x3611203D: mov dword ptr [edx + 4], edi */ 4938 eax = MEM32(eax + 0x8); /* 0x36112040: mov eax, dword ptr [eax + 8] */ 4939 PUSH32(esp, 1); /* 0x36112043: push 1 */ 4940 MEM32(edx + 0x8) = eax; /* 0x36112045: mov dword ptr [edx + 8], eax */ 4941 edx = MEM32(ecx); /* 0x36112048: mov edx, dword ptr [ecx] */ 4942 PUSH32(esp, 1); /* 0x3611204A: push 1 */ 4943 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611204C: call dword ptr [edx + 0x2c] */ 4944 RECOMP_FLAGS_IN(); 4945 ecx = MEM32(esi + 0x20); /* 0x3611204F: mov ecx, dword ptr [esi + 0x20] */ 4946 eax = ebp + (-0x80); /* 0x36112052: lea eax, [ebp - 0x80] */ 4947 PUSH32(esp, eax); /* 0x36112055: push eax */ 4948 RECOMP_ICALL(0x36133DC0u); /* 0x36112056: call 0x36133dc0 */ /* not lifted */ 4949 RECOMP_FLAGS_IN(); 4950 PUSH32(esp, eax); /* 0x3611205B: push eax */ 4951 ecx = ebp + (-0x40); /* 0x3611205C: lea ecx, [ebp - 0x40] */ 4952 MEM32(ebp + (-0x4)) = 0; /* 0x3611205F: mov dword ptr [ebp - 4], 0 */ 4953 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112066: call dword ptr [0x361701a4] */ 4954 RECOMP_FLAGS_IN(); 4955 ecx = MEM32(esi + 0x24); /* 0x3611206C: mov ecx, dword ptr [esi + 0x24] */ 4956 edi = MEM32(eax); /* 0x3611206F: mov edi, dword ptr [eax] */ 4957 edx = ecx + 0x84; /* 0x36112071: lea edx, [ecx + 0x84] */ 4958 MEM32(edx) = edi; /* 0x36112077: mov dword ptr [edx], edi */ 4959 edi = MEM32(eax + 0x4); /* 0x36112079: mov edi, dword ptr [eax + 4] */ 4960 MEM32(edx + 0x4) = edi; /* 0x3611207C: mov dword ptr [edx + 4], edi */ 4961 edi = MEM32(eax + 0x8); /* 0x3611207F: mov edi, dword ptr [eax + 8] */ 4962 MEM32(edx + 0x8) = edi; /* 0x36112082: mov dword ptr [edx + 8], edi */ 4963 eax = MEM32(eax + 0xC); /* 0x36112085: mov eax, dword ptr [eax + 0xc] */ 4964 PUSH32(esp, 1); /* 0x36112088: push 1 */ 4965 MEM32(edx + 0xC) = eax; /* 0x3611208A: mov dword ptr [edx + 0xc], eax */ 4966 edx = MEM32(ecx); /* 0x3611208D: mov edx, dword ptr [ecx] */ 4967 PUSH32(esp, 2); /* 0x3611208F: push 2 */ 4968 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112091: call dword ptr [edx + 0x2c] */ 4969 RECOMP_FLAGS_IN(); 4970 eax = MEM32(esi + 0x20); /* 0x36112094: mov eax, dword ptr [esi + 0x20] */ 4971 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x36112097: mov dl, byte ptr [eax + 0x108] */ 4972 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4973 ecx = 0; /* 0x3611209D: xor ecx, ecx */ 4974 _cf = 0; 4975 _flag_k = FK_TEST; 4976 /* test LO8(edx), LO8(edx) */ /* 0x3611209F: test dl, dl */ 4977 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4978 _cf = 0; 4979 _flag_k = FK_NARROW(FK_TEST, 24); 4980 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x361120A1: sete cl */ 4981 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361120A4: mov dword ptr [ebp - 4], 0xffffffff */ 4982 PUSH32(esp, ecx); /* 0x361120AB: push ecx */ 4983 ecx = MEM32(esi + 0x24); /* 0x361120AC: mov ecx, dword ptr [esi + 0x24] */ 4984 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361120AF: call dword ptr [0x3616f620] */ 4985 RECOMP_FLAGS_IN(); 4986 edx = MEM32(esi + 0x28); /* 0x361120B5: mov edx, dword ptr [esi + 0x28] */ 4987 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 4988 edx = edx & 0x200u; /* 0x361120B8: and edx, 0x200 */ 4989 _cf = 0; 4990 _flag_k = FK_TEST; 4991 /* cmp edx, 0x200u */ /* 0x361120BE: cmp edx, 0x200 */ 4992 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 4993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4994 _flag_k = FK_CMP; 4995 edi = POP32_VAL(esp); /* 0x361120C4: pop edi */ 4996 if (CMP_NE(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120C5: jne 0x361120d8 */ 4997 L_361120C7: 4998 eax = MEM32(esi + 0x24); /* 0x361120C7: mov eax, dword ptr [esi + 0x24] */ 4999 ecx = MEM32(eax + 0x27C); /* 0x361120CA: mov ecx, dword ptr [eax + 0x27c] */ 5000 /* test ecx, ecx */ /* 0x361120D0: test ecx, ecx */ 5001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5002 _cf = 0; 5003 _flag_k = FK_TEST; 5004 if (TEST_NZ(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120D2: jne 0x361120d8 */ 5005 L_361120D4: 5006 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361120D4: mov byte ptr [esi + 0x14], 1 */ 5007 L_361120D8: 5008 ecx = ebp + (-0x24); /* 0x361120D8: lea ecx, [ebp - 0x24] */ 5009 PUSH32(esp, ecx); /* 0x361120DB: push ecx */ 5010 ecx = MEM32(esi + 0x20); /* 0x361120DC: mov ecx, dword ptr [esi + 0x20] */ 5011 RECOMP_ICALL(0x36133FC0u); /* 0x361120DF: call 0x36133fc0 */ /* not lifted */ 5012 RECOMP_FLAGS_IN(); 5013 edx = MEM32(eax); /* 0x361120E4: mov edx, dword ptr [eax] */ 5014 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u); 5015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5016 esi = esi + 0xB4u; /* 0x361120E6: add esi, 0xb4 */ 5017 _flag_k = FK_ADD; 5018 MEM32(esi) = edx; /* 0x361120EC: mov dword ptr [esi], edx */ 5019 ecx = MEM32(eax + 0x4); /* 0x361120EE: mov ecx, dword ptr [eax + 4] */ 5020 MEM32(esi + 0x4) = ecx; /* 0x361120F1: mov dword ptr [esi + 4], ecx */ 5021 edx = MEM32(eax + 0x8); /* 0x361120F4: mov edx, dword ptr [eax + 8] */ 5022 MEM32(esi + 0x8) = edx; /* 0x361120F7: mov dword ptr [esi + 8], edx */ 5023 ecx = MEM32(ebp + (-0xC)); /* 0x361120FA: mov ecx, dword ptr [ebp - 0xc] */ 5024 esi = POP32_VAL(esp); /* 0x361120FD: pop esi */ 5025 MEM32(FS_BASE + (0)) = ecx; /* 0x361120FE: mov dword ptr fs:[0], ecx */ 5026 esp = ebp; /* 0x36112105: mov esp, ebp */ 5027 ebp = POP32_VAL(esp); /* 0x36112107: pop ebp */ 5028 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112108: ret */ 5029 RECOMP_REGS_OUT(); 5030 } 5031 5032 void sub_36111FF2(void) { 5033 int _fpu_cmp = 0; 5034 uint32_t _cf = 0; 5035 int _df = 1; 5036 uint32_t _flag_k = FK_NONE; 5037 uint32_t _flag_a = 0, _flag_b = 0; 5038 uint32_t _itail_tgt = 0; 5039 RECOMP_REGS_LOCALS 5040 RECOMP_ENTER(0x36111FF2u); 5041 5042 L_36111FF2: 5043 ecx = esi; /* 0x36111FF2: mov ecx, esi */ 5044 RECOMP_ICALL(0x36111350u); /* 0x36111FF4: call 0x36111350 */ /* not lifted */ 5045 RECOMP_FLAGS_IN(); 5046 PUSH32(esp, edi); /* 0x36111FF9: push edi */ 5047 RECOMP_ICALL(0x360F7B00u); /* 0x36111FFA: call 0x360f7b00 */ /* not lifted */ 5048 RECOMP_FLAGS_IN(); 5049 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 5050 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5051 eax = eax + 0x28u; /* 0x36111FFF: add eax, 0x28 */ 5052 _flag_k = FK_ADD; 5053 ecx = MEM32(eax); /* 0x36112002: mov ecx, dword ptr [eax] */ 5054 MEM32(ebp + (-0x30)) = ecx; /* 0x36112004: mov dword ptr [ebp - 0x30], ecx */ 5055 edx = MEM32(eax + 0x4); /* 0x36112007: mov edx, dword ptr [eax + 4] */ 5056 MEM32(ebp + (-0x2C)) = edx; /* 0x3611200A: mov dword ptr [ebp - 0x2c], edx */ 5057 edx = MEM32(esi + 0x8); /* 0x3611200D: mov edx, dword ptr [esi + 8] */ 5058 eax = MEM32(eax + 0x8); /* 0x36112010: mov eax, dword ptr [eax + 8] */ 5059 ecx = ebp + (-0x30); /* 0x36112013: lea ecx, [ebp - 0x30] */ 5060 PUSH32(esp, ecx); /* 0x36112016: push ecx */ 5061 ecx = MEM32(esi + 0x24); /* 0x36112017: mov ecx, dword ptr [esi + 0x24] */ 5062 PUSH32(esp, edx); /* 0x3611201A: push edx */ 5063 MEM32(ebp + (-0x28)) = eax; /* 0x3611201B: mov dword ptr [ebp - 0x28], eax */ 5064 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x3611201E: call dword ptr [0x3616f6c0] */ 5065 RECOMP_FLAGS_IN(); 5066 ecx = MEM32(esi + 0x20); /* 0x36112024: mov ecx, dword ptr [esi + 0x20] */ 5067 eax = ebp + (-0x3C); /* 0x36112027: lea eax, [ebp - 0x3c] */ 5068 PUSH32(esp, eax); /* 0x3611202A: push eax */ 5069 RECOMP_ICALL(0x36133E80u); /* 0x3611202B: call 0x36133e80 */ /* not lifted */ 5070 RECOMP_FLAGS_IN(); 5071 ecx = MEM32(esi + 0x24); /* 0x36112030: mov ecx, dword ptr [esi + 0x24] */ 5072 edi = MEM32(eax); /* 0x36112033: mov edi, dword ptr [eax] */ 5073 edx = ecx + 0x78; /* 0x36112035: lea edx, [ecx + 0x78] */ 5074 MEM32(edx) = edi; /* 0x36112038: mov dword ptr [edx], edi */ 5075 edi = MEM32(eax + 0x4); /* 0x3611203A: mov edi, dword ptr [eax + 4] */ 5076 MEM32(edx + 0x4) = edi; /* 0x3611203D: mov dword ptr [edx + 4], edi */ 5077 eax = MEM32(eax + 0x8); /* 0x36112040: mov eax, dword ptr [eax + 8] */ 5078 PUSH32(esp, 1); /* 0x36112043: push 1 */ 5079 MEM32(edx + 0x8) = eax; /* 0x36112045: mov dword ptr [edx + 8], eax */ 5080 edx = MEM32(ecx); /* 0x36112048: mov edx, dword ptr [ecx] */ 5081 PUSH32(esp, 1); /* 0x3611204A: push 1 */ 5082 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611204C: call dword ptr [edx + 0x2c] */ 5083 RECOMP_FLAGS_IN(); 5084 ecx = MEM32(esi + 0x20); /* 0x3611204F: mov ecx, dword ptr [esi + 0x20] */ 5085 eax = ebp + (-0x80); /* 0x36112052: lea eax, [ebp - 0x80] */ 5086 PUSH32(esp, eax); /* 0x36112055: push eax */ 5087 RECOMP_ICALL(0x36133DC0u); /* 0x36112056: call 0x36133dc0 */ /* not lifted */ 5088 RECOMP_FLAGS_IN(); 5089 PUSH32(esp, eax); /* 0x3611205B: push eax */ 5090 ecx = ebp + (-0x40); /* 0x3611205C: lea ecx, [ebp - 0x40] */ 5091 MEM32(ebp + (-0x4)) = 0; /* 0x3611205F: mov dword ptr [ebp - 4], 0 */ 5092 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112066: call dword ptr [0x361701a4] */ 5093 RECOMP_FLAGS_IN(); 5094 ecx = MEM32(esi + 0x24); /* 0x3611206C: mov ecx, dword ptr [esi + 0x24] */ 5095 edi = MEM32(eax); /* 0x3611206F: mov edi, dword ptr [eax] */ 5096 edx = ecx + 0x84; /* 0x36112071: lea edx, [ecx + 0x84] */ 5097 MEM32(edx) = edi; /* 0x36112077: mov dword ptr [edx], edi */ 5098 edi = MEM32(eax + 0x4); /* 0x36112079: mov edi, dword ptr [eax + 4] */ 5099 MEM32(edx + 0x4) = edi; /* 0x3611207C: mov dword ptr [edx + 4], edi */ 5100 edi = MEM32(eax + 0x8); /* 0x3611207F: mov edi, dword ptr [eax + 8] */ 5101 MEM32(edx + 0x8) = edi; /* 0x36112082: mov dword ptr [edx + 8], edi */ 5102 eax = MEM32(eax + 0xC); /* 0x36112085: mov eax, dword ptr [eax + 0xc] */ 5103 PUSH32(esp, 1); /* 0x36112088: push 1 */ 5104 MEM32(edx + 0xC) = eax; /* 0x3611208A: mov dword ptr [edx + 0xc], eax */ 5105 edx = MEM32(ecx); /* 0x3611208D: mov edx, dword ptr [ecx] */ 5106 PUSH32(esp, 2); /* 0x3611208F: push 2 */ 5107 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112091: call dword ptr [edx + 0x2c] */ 5108 RECOMP_FLAGS_IN(); 5109 eax = MEM32(esi + 0x20); /* 0x36112094: mov eax, dword ptr [esi + 0x20] */ 5110 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x36112097: mov dl, byte ptr [eax + 0x108] */ 5111 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5112 ecx = 0; /* 0x3611209D: xor ecx, ecx */ 5113 _cf = 0; 5114 _flag_k = FK_TEST; 5115 /* test LO8(edx), LO8(edx) */ /* 0x3611209F: test dl, dl */ 5116 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5117 _cf = 0; 5118 _flag_k = FK_NARROW(FK_TEST, 24); 5119 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x361120A1: sete cl */ 5120 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361120A4: mov dword ptr [ebp - 4], 0xffffffff */ 5121 PUSH32(esp, ecx); /* 0x361120AB: push ecx */ 5122 ecx = MEM32(esi + 0x24); /* 0x361120AC: mov ecx, dword ptr [esi + 0x24] */ 5123 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361120AF: call dword ptr [0x3616f620] */ 5124 RECOMP_FLAGS_IN(); 5125 edx = MEM32(esi + 0x28); /* 0x361120B5: mov edx, dword ptr [esi + 0x28] */ 5126 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 5127 edx = edx & 0x200u; /* 0x361120B8: and edx, 0x200 */ 5128 _cf = 0; 5129 _flag_k = FK_TEST; 5130 /* cmp edx, 0x200u */ /* 0x361120BE: cmp edx, 0x200 */ 5131 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 5132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5133 _flag_k = FK_CMP; 5134 edi = POP32_VAL(esp); /* 0x361120C4: pop edi */ 5135 if (CMP_NE(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120C5: jne 0x361120d8 */ 5136 L_361120C7: 5137 eax = MEM32(esi + 0x24); /* 0x361120C7: mov eax, dword ptr [esi + 0x24] */ 5138 ecx = MEM32(eax + 0x27C); /* 0x361120CA: mov ecx, dword ptr [eax + 0x27c] */ 5139 /* test ecx, ecx */ /* 0x361120D0: test ecx, ecx */ 5140 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5141 _cf = 0; 5142 _flag_k = FK_TEST; 5143 if (TEST_NZ(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120D2: jne 0x361120d8 */ 5144 L_361120D4: 5145 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361120D4: mov byte ptr [esi + 0x14], 1 */ 5146 L_361120D8: 5147 ecx = ebp + (-0x24); /* 0x361120D8: lea ecx, [ebp - 0x24] */ 5148 PUSH32(esp, ecx); /* 0x361120DB: push ecx */ 5149 ecx = MEM32(esi + 0x20); /* 0x361120DC: mov ecx, dword ptr [esi + 0x20] */ 5150 RECOMP_ICALL(0x36133FC0u); /* 0x361120DF: call 0x36133fc0 */ /* not lifted */ 5151 RECOMP_FLAGS_IN(); 5152 edx = MEM32(eax); /* 0x361120E4: mov edx, dword ptr [eax] */ 5153 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u); 5154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5155 esi = esi + 0xB4u; /* 0x361120E6: add esi, 0xb4 */ 5156 _flag_k = FK_ADD; 5157 MEM32(esi) = edx; /* 0x361120EC: mov dword ptr [esi], edx */ 5158 ecx = MEM32(eax + 0x4); /* 0x361120EE: mov ecx, dword ptr [eax + 4] */ 5159 MEM32(esi + 0x4) = ecx; /* 0x361120F1: mov dword ptr [esi + 4], ecx */ 5160 edx = MEM32(eax + 0x8); /* 0x361120F4: mov edx, dword ptr [eax + 8] */ 5161 MEM32(esi + 0x8) = edx; /* 0x361120F7: mov dword ptr [esi + 8], edx */ 5162 ecx = MEM32(ebp + (-0xC)); /* 0x361120FA: mov ecx, dword ptr [ebp - 0xc] */ 5163 esi = POP32_VAL(esp); /* 0x361120FD: pop esi */ 5164 MEM32(FS_BASE + (0)) = ecx; /* 0x361120FE: mov dword ptr fs:[0], ecx */ 5165 esp = ebp; /* 0x36112105: mov esp, ebp */ 5166 ebp = POP32_VAL(esp); /* 0x36112107: pop ebp */ 5167 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112108: ret */ 5168 RECOMP_REGS_OUT(); 5169 } 5170 5171 void sub_36111FF9(void) { 5172 int _fpu_cmp = 0; 5173 uint32_t _cf = 0; 5174 int _df = 1; 5175 uint32_t _flag_k = FK_NONE; 5176 uint32_t _flag_a = 0, _flag_b = 0; 5177 uint32_t _itail_tgt = 0; 5178 RECOMP_REGS_LOCALS 5179 RECOMP_ENTER(0x36111FF9u); 5180 5181 L_36111FF9: 5182 PUSH32(esp, edi); /* 0x36111FF9: push edi */ 5183 RECOMP_ICALL(0x360F7B00u); /* 0x36111FFA: call 0x360f7b00 */ /* not lifted */ 5184 RECOMP_FLAGS_IN(); 5185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 5186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5187 eax = eax + 0x28u; /* 0x36111FFF: add eax, 0x28 */ 5188 _flag_k = FK_ADD; 5189 ecx = MEM32(eax); /* 0x36112002: mov ecx, dword ptr [eax] */ 5190 MEM32(ebp + (-0x30)) = ecx; /* 0x36112004: mov dword ptr [ebp - 0x30], ecx */ 5191 edx = MEM32(eax + 0x4); /* 0x36112007: mov edx, dword ptr [eax + 4] */ 5192 MEM32(ebp + (-0x2C)) = edx; /* 0x3611200A: mov dword ptr [ebp - 0x2c], edx */ 5193 edx = MEM32(esi + 0x8); /* 0x3611200D: mov edx, dword ptr [esi + 8] */ 5194 eax = MEM32(eax + 0x8); /* 0x36112010: mov eax, dword ptr [eax + 8] */ 5195 ecx = ebp + (-0x30); /* 0x36112013: lea ecx, [ebp - 0x30] */ 5196 PUSH32(esp, ecx); /* 0x36112016: push ecx */ 5197 ecx = MEM32(esi + 0x24); /* 0x36112017: mov ecx, dword ptr [esi + 0x24] */ 5198 PUSH32(esp, edx); /* 0x3611201A: push edx */ 5199 MEM32(ebp + (-0x28)) = eax; /* 0x3611201B: mov dword ptr [ebp - 0x28], eax */ 5200 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x3611201E: call dword ptr [0x3616f6c0] */ 5201 RECOMP_FLAGS_IN(); 5202 ecx = MEM32(esi + 0x20); /* 0x36112024: mov ecx, dword ptr [esi + 0x20] */ 5203 eax = ebp + (-0x3C); /* 0x36112027: lea eax, [ebp - 0x3c] */ 5204 PUSH32(esp, eax); /* 0x3611202A: push eax */ 5205 RECOMP_ICALL(0x36133E80u); /* 0x3611202B: call 0x36133e80 */ /* not lifted */ 5206 RECOMP_FLAGS_IN(); 5207 ecx = MEM32(esi + 0x24); /* 0x36112030: mov ecx, dword ptr [esi + 0x24] */ 5208 edi = MEM32(eax); /* 0x36112033: mov edi, dword ptr [eax] */ 5209 edx = ecx + 0x78; /* 0x36112035: lea edx, [ecx + 0x78] */ 5210 MEM32(edx) = edi; /* 0x36112038: mov dword ptr [edx], edi */ 5211 edi = MEM32(eax + 0x4); /* 0x3611203A: mov edi, dword ptr [eax + 4] */ 5212 MEM32(edx + 0x4) = edi; /* 0x3611203D: mov dword ptr [edx + 4], edi */ 5213 eax = MEM32(eax + 0x8); /* 0x36112040: mov eax, dword ptr [eax + 8] */ 5214 PUSH32(esp, 1); /* 0x36112043: push 1 */ 5215 MEM32(edx + 0x8) = eax; /* 0x36112045: mov dword ptr [edx + 8], eax */ 5216 edx = MEM32(ecx); /* 0x36112048: mov edx, dword ptr [ecx] */ 5217 PUSH32(esp, 1); /* 0x3611204A: push 1 */ 5218 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611204C: call dword ptr [edx + 0x2c] */ 5219 RECOMP_FLAGS_IN(); 5220 ecx = MEM32(esi + 0x20); /* 0x3611204F: mov ecx, dword ptr [esi + 0x20] */ 5221 eax = ebp + (-0x80); /* 0x36112052: lea eax, [ebp - 0x80] */ 5222 PUSH32(esp, eax); /* 0x36112055: push eax */ 5223 RECOMP_ICALL(0x36133DC0u); /* 0x36112056: call 0x36133dc0 */ /* not lifted */ 5224 RECOMP_FLAGS_IN(); 5225 PUSH32(esp, eax); /* 0x3611205B: push eax */ 5226 ecx = ebp + (-0x40); /* 0x3611205C: lea ecx, [ebp - 0x40] */ 5227 MEM32(ebp + (-0x4)) = 0; /* 0x3611205F: mov dword ptr [ebp - 4], 0 */ 5228 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112066: call dword ptr [0x361701a4] */ 5229 RECOMP_FLAGS_IN(); 5230 ecx = MEM32(esi + 0x24); /* 0x3611206C: mov ecx, dword ptr [esi + 0x24] */ 5231 edi = MEM32(eax); /* 0x3611206F: mov edi, dword ptr [eax] */ 5232 edx = ecx + 0x84; /* 0x36112071: lea edx, [ecx + 0x84] */ 5233 MEM32(edx) = edi; /* 0x36112077: mov dword ptr [edx], edi */ 5234 edi = MEM32(eax + 0x4); /* 0x36112079: mov edi, dword ptr [eax + 4] */ 5235 MEM32(edx + 0x4) = edi; /* 0x3611207C: mov dword ptr [edx + 4], edi */ 5236 edi = MEM32(eax + 0x8); /* 0x3611207F: mov edi, dword ptr [eax + 8] */ 5237 MEM32(edx + 0x8) = edi; /* 0x36112082: mov dword ptr [edx + 8], edi */ 5238 eax = MEM32(eax + 0xC); /* 0x36112085: mov eax, dword ptr [eax + 0xc] */ 5239 PUSH32(esp, 1); /* 0x36112088: push 1 */ 5240 MEM32(edx + 0xC) = eax; /* 0x3611208A: mov dword ptr [edx + 0xc], eax */ 5241 edx = MEM32(ecx); /* 0x3611208D: mov edx, dword ptr [ecx] */ 5242 PUSH32(esp, 2); /* 0x3611208F: push 2 */ 5243 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112091: call dword ptr [edx + 0x2c] */ 5244 RECOMP_FLAGS_IN(); 5245 eax = MEM32(esi + 0x20); /* 0x36112094: mov eax, dword ptr [esi + 0x20] */ 5246 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x36112097: mov dl, byte ptr [eax + 0x108] */ 5247 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5248 ecx = 0; /* 0x3611209D: xor ecx, ecx */ 5249 _cf = 0; 5250 _flag_k = FK_TEST; 5251 /* test LO8(edx), LO8(edx) */ /* 0x3611209F: test dl, dl */ 5252 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5253 _cf = 0; 5254 _flag_k = FK_NARROW(FK_TEST, 24); 5255 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x361120A1: sete cl */ 5256 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361120A4: mov dword ptr [ebp - 4], 0xffffffff */ 5257 PUSH32(esp, ecx); /* 0x361120AB: push ecx */ 5258 ecx = MEM32(esi + 0x24); /* 0x361120AC: mov ecx, dword ptr [esi + 0x24] */ 5259 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361120AF: call dword ptr [0x3616f620] */ 5260 RECOMP_FLAGS_IN(); 5261 edx = MEM32(esi + 0x28); /* 0x361120B5: mov edx, dword ptr [esi + 0x28] */ 5262 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 5263 edx = edx & 0x200u; /* 0x361120B8: and edx, 0x200 */ 5264 _cf = 0; 5265 _flag_k = FK_TEST; 5266 /* cmp edx, 0x200u */ /* 0x361120BE: cmp edx, 0x200 */ 5267 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 5268 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5269 _flag_k = FK_CMP; 5270 edi = POP32_VAL(esp); /* 0x361120C4: pop edi */ 5271 if (CMP_NE(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120C5: jne 0x361120d8 */ 5272 L_361120C7: 5273 eax = MEM32(esi + 0x24); /* 0x361120C7: mov eax, dword ptr [esi + 0x24] */ 5274 ecx = MEM32(eax + 0x27C); /* 0x361120CA: mov ecx, dword ptr [eax + 0x27c] */ 5275 /* test ecx, ecx */ /* 0x361120D0: test ecx, ecx */ 5276 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5277 _cf = 0; 5278 _flag_k = FK_TEST; 5279 if (TEST_NZ(_flag_a, _flag_b)) goto L_361120D8; /* 0x361120D2: jne 0x361120d8 */ 5280 L_361120D4: 5281 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x361120D4: mov byte ptr [esi + 0x14], 1 */ 5282 L_361120D8: 5283 ecx = ebp + (-0x24); /* 0x361120D8: lea ecx, [ebp - 0x24] */ 5284 PUSH32(esp, ecx); /* 0x361120DB: push ecx */ 5285 ecx = MEM32(esi + 0x20); /* 0x361120DC: mov ecx, dword ptr [esi + 0x20] */ 5286 RECOMP_ICALL(0x36133FC0u); /* 0x361120DF: call 0x36133fc0 */ /* not lifted */ 5287 RECOMP_FLAGS_IN(); 5288 edx = MEM32(eax); /* 0x361120E4: mov edx, dword ptr [eax] */ 5289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB4u); 5290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5291 esi = esi + 0xB4u; /* 0x361120E6: add esi, 0xb4 */ 5292 _flag_k = FK_ADD; 5293 MEM32(esi) = edx; /* 0x361120EC: mov dword ptr [esi], edx */ 5294 ecx = MEM32(eax + 0x4); /* 0x361120EE: mov ecx, dword ptr [eax + 4] */ 5295 MEM32(esi + 0x4) = ecx; /* 0x361120F1: mov dword ptr [esi + 4], ecx */ 5296 edx = MEM32(eax + 0x8); /* 0x361120F4: mov edx, dword ptr [eax + 8] */ 5297 MEM32(esi + 0x8) = edx; /* 0x361120F7: mov dword ptr [esi + 8], edx */ 5298 ecx = MEM32(ebp + (-0xC)); /* 0x361120FA: mov ecx, dword ptr [ebp - 0xc] */ 5299 esi = POP32_VAL(esp); /* 0x361120FD: pop esi */ 5300 MEM32(FS_BASE + (0)) = ecx; /* 0x361120FE: mov dword ptr fs:[0], ecx */ 5301 esp = ebp; /* 0x36112105: mov esp, ebp */ 5302 ebp = POP32_VAL(esp); /* 0x36112107: pop ebp */ 5303 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112108: ret */ 5304 RECOMP_REGS_OUT(); 5305 } 5306 5307 void sub_361120FA(void) { 5308 int _fpu_cmp = 0; 5309 uint32_t _cf = 0; 5310 int _df = 1; 5311 uint32_t _flag_k = FK_NONE; 5312 uint32_t _flag_a = 0, _flag_b = 0; 5313 uint32_t _itail_tgt = 0; 5314 RECOMP_REGS_LOCALS 5315 RECOMP_ENTER(0x361120FAu); 5316 5317 L_361120FA: 5318 ecx = MEM32(ebp + (-0xC)); /* 0x361120FA: mov ecx, dword ptr [ebp - 0xc] */ 5319 esi = POP32_VAL(esp); /* 0x361120FD: pop esi */ 5320 MEM32(FS_BASE + (0)) = ecx; /* 0x361120FE: mov dword ptr fs:[0], ecx */ 5321 esp = ebp; /* 0x36112105: mov esp, ebp */ 5322 ebp = POP32_VAL(esp); /* 0x36112107: pop ebp */ 5323 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112108: ret */ 5324 RECOMP_REGS_OUT(); 5325 } 5326 5327 void sub_36112120(void) { 5328 int _fpu_cmp = 0; 5329 uint32_t _cf = 0; 5330 int _df = 1; 5331 uint32_t _flag_k = FK_NONE; 5332 uint32_t _flag_a = 0, _flag_b = 0; 5333 uint32_t _itail_tgt = 0; 5334 RECOMP_REGS_LOCALS 5335 RECOMP_ENTER(0x36112120u); 5336 5337 L_36112120: 5338 PUSH32(esp, ebp); /* 0x36112120: push ebp */ 5339 ebp = esp; /* 0x36112121: mov ebp, esp */ 5340 eax = MEM32(ebp + 0x8); /* 0x36112123: mov eax, dword ptr [ebp + 8] */ 5341 edx = MEM32(ebp + 0xC); /* 0x36112126: mov edx, dword ptr [ebp + 0xc] */ 5342 MEM32(ecx + 0x58) = eax; /* 0x36112129: mov dword ptr [ecx + 0x58], eax */ 5343 eax = MEM32(ebp + 0x10); /* 0x3611212C: mov eax, dword ptr [ebp + 0x10] */ 5344 MEM32(ecx + 0x5C) = edx; /* 0x3611212F: mov dword ptr [ecx + 0x5c], edx */ 5345 edx = MEM32(ebp + 0x14); /* 0x36112132: mov edx, dword ptr [ebp + 0x14] */ 5346 MEM32(ecx + 0x60) = eax; /* 0x36112135: mov dword ptr [ecx + 0x60], eax */ 5347 MEM32(ecx + 0x64) = edx; /* 0x36112138: mov dword ptr [ecx + 0x64], edx */ 5348 ebp = POP32_VAL(esp); /* 0x3611213B: pop ebp */ 5349 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3611213C: ret 0x10 */ 5350 RECOMP_REGS_OUT(); 5351 } 5352 5353 void sub_36112140(void) { 5354 int _fpu_cmp = 0; 5355 uint32_t _cf = 0; 5356 int _df = 1; 5357 uint32_t _flag_k = FK_NONE; 5358 uint32_t _flag_a = 0, _flag_b = 0; 5359 uint32_t _itail_tgt = 0; 5360 RECOMP_REGS_LOCALS 5361 RECOMP_ENTER(0x36112140u); 5362 5363 L_36112140: 5364 PUSH32(esp, esi); /* 0x36112140: push esi */ 5365 esi = ecx; /* 0x36112141: mov esi, ecx */ 5366 eax = MEM32(esi + 0x4); /* 0x36112143: mov eax, dword ptr [esi + 4] */ 5367 PUSH32(esp, edi); /* 0x36112146: push edi */ 5368 PUSH32(esp, eax); /* 0x36112147: push eax */ 5369 RECOMP_ICALL(0x360F7B00u); /* 0x36112148: call 0x360f7b00 */ /* not lifted */ 5370 RECOMP_FLAGS_IN(); 5371 ecx = eax; /* 0x3611214D: mov ecx, eax */ 5372 RECOMP_ICALL(0x360FBFF0u); /* 0x3611214F: call 0x360fbff0 */ /* not lifted */ 5373 RECOMP_FLAGS_IN(); 5374 ecx = eax; /* 0x36112154: mov ecx, eax */ 5375 RECOMP_ICALL(0x361371A0u); /* 0x36112156: call 0x361371a0 */ /* not lifted */ 5376 RECOMP_FLAGS_IN(); 5377 edi = eax; /* 0x3611215B: mov edi, eax */ 5378 PUSH32(esp, 0); /* 0x3611215D: push 0 */ 5379 ecx = edi; /* 0x3611215F: mov ecx, edi */ 5380 RECOMP_ICALL(0x36136FE0u); /* 0x36112161: call 0x36136fe0 */ /* not lifted */ 5381 RECOMP_FLAGS_IN(); 5382 PUSH32(esp, 8); /* 0x36112166: push 8 */ 5383 ecx = edi; /* 0x36112168: mov ecx, edi */ 5384 MEM32(esi + 0x28) = eax; /* 0x3611216A: mov dword ptr [esi + 0x28], eax */ 5385 RECOMP_ICALL(0x36137010u); /* 0x3611216D: call 0x36137010 */ /* not lifted */ 5386 RECOMP_FLAGS_IN(); 5387 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36112172: fstp dword ptr [esi + 0x10] */ 5388 PUSH32(esp, 9); /* 0x36112175: push 9 */ 5389 ecx = edi; /* 0x36112177: mov ecx, edi */ 5390 RECOMP_ICALL(0x36136FE0u); /* 0x36112179: call 0x36136fe0 */ /* not lifted */ 5391 RECOMP_FLAGS_IN(); 5392 PUSH32(esp, 0xAu); /* 0x3611217E: push 0xa */ 5393 ecx = edi; /* 0x36112180: mov ecx, edi */ 5394 MEM32(esi + 0x2C) = eax; /* 0x36112182: mov dword ptr [esi + 0x2c], eax */ 5395 RECOMP_ICALL(0x36137010u); /* 0x36112185: call 0x36137010 */ /* not lifted */ 5396 RECOMP_FLAGS_IN(); 5397 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x3611218A: fstp dword ptr [esi + 0x30] */ 5398 PUSH32(esp, 0xBu); /* 0x3611218D: push 0xb */ 5399 ecx = edi; /* 0x3611218F: mov ecx, edi */ 5400 RECOMP_ICALL(0x36137010u); /* 0x36112191: call 0x36137010 */ /* not lifted */ 5401 RECOMP_FLAGS_IN(); 5402 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x36112196: fstp dword ptr [esi + 0x34] */ 5403 PUSH32(esp, 0xCu); /* 0x36112199: push 0xc */ 5404 ecx = edi; /* 0x3611219B: mov ecx, edi */ 5405 RECOMP_ICALL(0x36137010u); /* 0x3611219D: call 0x36137010 */ /* not lifted */ 5406 RECOMP_FLAGS_IN(); 5407 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x361121A2: fstp dword ptr [esi + 0x38] */ 5408 PUSH32(esp, 0xDu); /* 0x361121A5: push 0xd */ 5409 ecx = edi; /* 0x361121A7: mov ecx, edi */ 5410 RECOMP_ICALL(0x36137010u); /* 0x361121A9: call 0x36137010 */ /* not lifted */ 5411 RECOMP_FLAGS_IN(); 5412 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x361121AE: fstp dword ptr [esi + 0x3c] */ 5413 PUSH32(esp, 0xEu); /* 0x361121B1: push 0xe */ 5414 ecx = edi; /* 0x361121B3: mov ecx, edi */ 5415 RECOMP_ICALL(0x36137010u); /* 0x361121B5: call 0x36137010 */ /* not lifted */ 5416 RECOMP_FLAGS_IN(); 5417 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x361121BA: fstp dword ptr [esi + 0x40] */ 5418 PUSH32(esp, 0xFu); /* 0x361121BD: push 0xf */ 5419 ecx = edi; /* 0x361121BF: mov ecx, edi */ 5420 RECOMP_ICALL(0x36137010u); /* 0x361121C1: call 0x36137010 */ /* not lifted */ 5421 RECOMP_FLAGS_IN(); 5422 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x44) = _v; } /* 0x361121C6: fstp dword ptr [esi + 0x44] */ 5423 PUSH32(esp, 0x10u); /* 0x361121C9: push 0x10 */ 5424 ecx = edi; /* 0x361121CB: mov ecx, edi */ 5425 RECOMP_ICALL(0x36137010u); /* 0x361121CD: call 0x36137010 */ /* not lifted */ 5426 RECOMP_FLAGS_IN(); 5427 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x48) = _v; } /* 0x361121D2: fstp dword ptr [esi + 0x48] */ 5428 PUSH32(esp, 0x11u); /* 0x361121D5: push 0x11 */ 5429 ecx = edi; /* 0x361121D7: mov ecx, edi */ 5430 RECOMP_ICALL(0x36137010u); /* 0x361121D9: call 0x36137010 */ /* not lifted */ 5431 RECOMP_FLAGS_IN(); 5432 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4C) = _v; } /* 0x361121DE: fstp dword ptr [esi + 0x4c] */ 5433 PUSH32(esp, 0x12u); /* 0x361121E1: push 0x12 */ 5434 ecx = edi; /* 0x361121E3: mov ecx, edi */ 5435 RECOMP_ICALL(0x36137010u); /* 0x361121E5: call 0x36137010 */ /* not lifted */ 5436 RECOMP_FLAGS_IN(); 5437 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x50) = _v; } /* 0x361121EA: fstp dword ptr [esi + 0x50] */ 5438 PUSH32(esp, 0x13u); /* 0x361121ED: push 0x13 */ 5439 ecx = edi; /* 0x361121EF: mov ecx, edi */ 5440 RECOMP_ICALL(0x36137010u); /* 0x361121F1: call 0x36137010 */ /* not lifted */ 5441 RECOMP_FLAGS_IN(); 5442 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x54) = _v; } /* 0x361121F6: fstp dword ptr [esi + 0x54] */ 5443 PUSH32(esp, 0x14u); /* 0x361121F9: push 0x14 */ 5444 ecx = edi; /* 0x361121FB: mov ecx, edi */ 5445 RECOMP_ICALL(0x36137010u); /* 0x361121FD: call 0x36137010 */ /* not lifted */ 5446 RECOMP_FLAGS_IN(); 5447 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x58) = _v; } /* 0x36112202: fstp dword ptr [esi + 0x58] */ 5448 PUSH32(esp, 0x15u); /* 0x36112205: push 0x15 */ 5449 ecx = edi; /* 0x36112207: mov ecx, edi */ 5450 RECOMP_ICALL(0x36137010u); /* 0x36112209: call 0x36137010 */ /* not lifted */ 5451 RECOMP_FLAGS_IN(); 5452 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5C) = _v; } /* 0x3611220E: fstp dword ptr [esi + 0x5c] */ 5453 PUSH32(esp, 0x16u); /* 0x36112211: push 0x16 */ 5454 ecx = edi; /* 0x36112213: mov ecx, edi */ 5455 RECOMP_ICALL(0x36137010u); /* 0x36112215: call 0x36137010 */ /* not lifted */ 5456 RECOMP_FLAGS_IN(); 5457 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x60) = _v; } /* 0x3611221A: fstp dword ptr [esi + 0x60] */ 5458 PUSH32(esp, 0x17u); /* 0x3611221D: push 0x17 */ 5459 ecx = edi; /* 0x3611221F: mov ecx, edi */ 5460 RECOMP_ICALL(0x36137010u); /* 0x36112221: call 0x36137010 */ /* not lifted */ 5461 RECOMP_FLAGS_IN(); 5462 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x64) = _v; } /* 0x36112226: fstp dword ptr [esi + 0x64] */ 5463 PUSH32(esp, 0x18u); /* 0x36112229: push 0x18 */ 5464 ecx = edi; /* 0x3611222B: mov ecx, edi */ 5465 RECOMP_ICALL(0x36136FE0u); /* 0x3611222D: call 0x36136fe0 */ /* not lifted */ 5466 RECOMP_FLAGS_IN(); 5467 PUSH32(esp, 0x19u); /* 0x36112232: push 0x19 */ 5468 ecx = edi; /* 0x36112234: mov ecx, edi */ 5469 MEM32(esi + 0x68) = eax; /* 0x36112236: mov dword ptr [esi + 0x68], eax */ 5470 RECOMP_ICALL(0x36137010u); /* 0x36112239: call 0x36137010 */ /* not lifted */ 5471 RECOMP_FLAGS_IN(); 5472 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x6C) = _v; } /* 0x3611223E: fstp dword ptr [esi + 0x6c] */ 5473 PUSH32(esp, 0x1Au); /* 0x36112241: push 0x1a */ 5474 ecx = edi; /* 0x36112243: mov ecx, edi */ 5475 RECOMP_ICALL(0x36137010u); /* 0x36112245: call 0x36137010 */ /* not lifted */ 5476 RECOMP_FLAGS_IN(); 5477 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x70) = _v; } /* 0x3611224A: fstp dword ptr [esi + 0x70] */ 5478 PUSH32(esp, 0x1Bu); /* 0x3611224D: push 0x1b */ 5479 ecx = edi; /* 0x3611224F: mov ecx, edi */ 5480 RECOMP_ICALL(0x36137010u); /* 0x36112251: call 0x36137010 */ /* not lifted */ 5481 RECOMP_FLAGS_IN(); 5482 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x74) = _v; } /* 0x36112256: fstp dword ptr [esi + 0x74] */ 5483 PUSH32(esp, 0x1Cu); /* 0x36112259: push 0x1c */ 5484 ecx = edi; /* 0x3611225B: mov ecx, edi */ 5485 RECOMP_ICALL(0x36137010u); /* 0x3611225D: call 0x36137010 */ /* not lifted */ 5486 RECOMP_FLAGS_IN(); 5487 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x78) = _v; } /* 0x36112262: fstp dword ptr [esi + 0x78] */ 5488 PUSH32(esp, 0x1Du); /* 0x36112265: push 0x1d */ 5489 ecx = edi; /* 0x36112267: mov ecx, edi */ 5490 RECOMP_ICALL(0x36137010u); /* 0x36112269: call 0x36137010 */ /* not lifted */ 5491 RECOMP_FLAGS_IN(); 5492 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x7C) = _v; } /* 0x3611226E: fstp dword ptr [esi + 0x7c] */ 5493 PUSH32(esp, 0x1Eu); /* 0x36112271: push 0x1e */ 5494 ecx = edi; /* 0x36112273: mov ecx, edi */ 5495 RECOMP_ICALL(0x36137010u); /* 0x36112275: call 0x36137010 */ /* not lifted */ 5496 RECOMP_FLAGS_IN(); 5497 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x80) = _v; } /* 0x3611227A: fstp dword ptr [esi + 0x80] */ 5498 PUSH32(esp, 0x1Fu); /* 0x36112280: push 0x1f */ 5499 ecx = edi; /* 0x36112282: mov ecx, edi */ 5500 RECOMP_ICALL(0x36136FE0u); /* 0x36112284: call 0x36136fe0 */ /* not lifted */ 5501 RECOMP_FLAGS_IN(); 5502 PUSH32(esp, 0x20u); /* 0x36112289: push 0x20 */ 5503 ecx = edi; /* 0x3611228B: mov ecx, edi */ 5504 MEM32(esi + 0x84) = eax; /* 0x3611228D: mov dword ptr [esi + 0x84], eax */ 5505 RECOMP_ICALL(0x36137010u); /* 0x36112293: call 0x36137010 */ /* not lifted */ 5506 RECOMP_FLAGS_IN(); 5507 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x88) = _v; } /* 0x36112298: fstp dword ptr [esi + 0x88] */ 5508 PUSH32(esp, 0x21u); /* 0x3611229E: push 0x21 */ 5509 ecx = edi; /* 0x361122A0: mov ecx, edi */ 5510 RECOMP_ICALL(0x36137010u); /* 0x361122A2: call 0x36137010 */ /* not lifted */ 5511 RECOMP_FLAGS_IN(); 5512 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x8C) = _v; } /* 0x361122A7: fstp dword ptr [esi + 0x8c] */ 5513 PUSH32(esp, 0x22u); /* 0x361122AD: push 0x22 */ 5514 ecx = edi; /* 0x361122AF: mov ecx, edi */ 5515 RECOMP_ICALL(0x36137010u); /* 0x361122B1: call 0x36137010 */ /* not lifted */ 5516 RECOMP_FLAGS_IN(); 5517 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x90) = _v; } /* 0x361122B6: fstp dword ptr [esi + 0x90] */ 5518 PUSH32(esp, 0x23u); /* 0x361122BC: push 0x23 */ 5519 ecx = edi; /* 0x361122BE: mov ecx, edi */ 5520 RECOMP_ICALL(0x36137010u); /* 0x361122C0: call 0x36137010 */ /* not lifted */ 5521 RECOMP_FLAGS_IN(); 5522 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x94) = _v; } /* 0x361122C5: fstp dword ptr [esi + 0x94] */ 5523 PUSH32(esp, 0x23u); /* 0x361122CB: push 0x23 */ 5524 ecx = edi; /* 0x361122CD: mov ecx, edi */ 5525 RECOMP_ICALL(0x36137010u); /* 0x361122CF: call 0x36137010 */ /* not lifted */ 5526 RECOMP_FLAGS_IN(); 5527 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x98) = _v; } /* 0x361122D4: fstp dword ptr [esi + 0x98] */ 5528 PUSH32(esp, 0x24u); /* 0x361122DA: push 0x24 */ 5529 ecx = edi; /* 0x361122DC: mov ecx, edi */ 5530 RECOMP_ICALL(0x36137010u); /* 0x361122DE: call 0x36137010 */ /* not lifted */ 5531 RECOMP_FLAGS_IN(); 5532 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x9C) = _v; } /* 0x361122E3: fstp dword ptr [esi + 0x9c] */ 5533 PUSH32(esp, 0x25u); /* 0x361122E9: push 0x25 */ 5534 ecx = edi; /* 0x361122EB: mov ecx, edi */ 5535 RECOMP_ICALL(0x36136FE0u); /* 0x361122ED: call 0x36136fe0 */ /* not lifted */ 5536 RECOMP_FLAGS_IN(); 5537 PUSH32(esp, 0x26u); /* 0x361122F2: push 0x26 */ 5538 ecx = edi; /* 0x361122F4: mov ecx, edi */ 5539 MEM32(esi + 0xA0) = eax; /* 0x361122F6: mov dword ptr [esi + 0xa0], eax */ 5540 RECOMP_ICALL(0x36137010u); /* 0x361122FC: call 0x36137010 */ /* not lifted */ 5541 RECOMP_FLAGS_IN(); 5542 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xA4) = _v; } /* 0x36112301: fstp dword ptr [esi + 0xa4] */ 5543 edi = POP32_VAL(esp); /* 0x36112307: pop edi */ 5544 esi = POP32_VAL(esp); /* 0x36112308: pop esi */ 5545 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112309: ret */ 5546 RECOMP_REGS_OUT(); 5547 } 5548 5549 void sub_36112310(void) { 5550 int _fpu_cmp = 0; 5551 uint32_t _cf = 0; 5552 int _df = 1; 5553 uint32_t _flag_k = FK_NONE; 5554 uint32_t _flag_a = 0, _flag_b = 0; 5555 uint32_t _itail_tgt = 0; 5556 RECOMP_REGS_LOCALS 5557 RECOMP_ENTER(0x36112310u); 5558 5559 L_36112310: 5560 PUSH32(esp, ebp); /* 0x36112310: push ebp */ 5561 ebp = esp; /* 0x36112311: mov ebp, esp */ 5562 PUSH32(esp, 0xFFFFFFFFu); /* 0x36112313: push -1 */ 5563 PUSH32(esp, 0x3616ACB7u); /* 0x36112315: push 0x3616acb7 */ 5564 eax = MEM32(FS_BASE + (0)); /* 0x3611231A: mov eax, dword ptr fs:[0] */ 5565 PUSH32(esp, eax); /* 0x36112320: push eax */ 5566 MEM32(FS_BASE + (0)) = esp; /* 0x36112321: mov dword ptr fs:[0], esp */ 5567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x98u); 5568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5569 esp = esp - 0x98u; /* 0x36112328: sub esp, 0x98 */ 5570 _flag_k = FK_CMP; 5571 PUSH32(esp, esi); /* 0x3611232E: push esi */ 5572 PUSH32(esp, edi); /* 0x3611232F: push edi */ 5573 PUSH32(esp, 0x284u); /* 0x36112330: push 0x284 */ 5574 esi = ecx; /* 0x36112335: mov esi, ecx */ 5575 RECOMP_ICALL(0x3615FD6Au); /* 0x36112337: call 0x3615fd6a */ /* not lifted */ 5576 RECOMP_FLAGS_IN(); 5577 edi = eax; /* 0x3611233C: mov edi, eax */ 5578 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5580 esp = esp + 4; /* 0x3611233E: add esp, 4 */ 5581 _flag_k = FK_ADD; 5582 MEM32(ebp + (-0x1C)) = edi; /* 0x36112341: mov dword ptr [ebp - 0x1c], edi */ 5583 /* test edi, edi */ /* 0x36112344: test edi, edi */ 5584 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5585 _cf = 0; 5586 _flag_k = FK_TEST; 5587 MEM32(ebp + (-0x4)) = 0; /* 0x36112346: mov dword ptr [ebp - 4], 0 */ 5588 if (TEST_Z(_flag_a, _flag_b)) goto L_361123A4; /* 0x3611234D: je 0x361123a4 */ 5589 L_3611234F: 5590 eax = MEM32(esi + 0x2C); /* 0x3611234F: mov eax, dword ptr [esi + 0x2c] */ 5591 PUSH32(esp, 1); /* 0x36112352: push 1 */ 5592 PUSH32(esp, 0); /* 0x36112354: push 0 */ 5593 PUSH32(esp, eax); /* 0x36112356: push eax */ 5594 RECOMP_ICALL(0x360F7B00u); /* 0x36112357: call 0x360f7b00 */ /* not lifted */ 5595 RECOMP_FLAGS_IN(); 5596 ecx = eax; /* 0x3611235C: mov ecx, eax */ 5597 RECOMP_ICALL(0x360FBE40u); /* 0x3611235E: call 0x360fbe40 */ /* not lifted */ 5598 RECOMP_FLAGS_IN(); 5599 PUSH32(esp, eax); /* 0x36112363: push eax */ 5600 ecx = edi; /* 0x36112364: mov ecx, edi */ 5601 RECOMP_ICALL(MEM32(0x3616F6DC)); /* 0x36112366: call dword ptr [0x3616f6dc] */ 5602 RECOMP_FLAGS_IN(); 5603 MEM32(edi) = 0x361761E4u; /* 0x3611236C: mov dword ptr [edi], 0x361761e4 */ 5604 MEM32(edi + 0x8) = 0x361761D4u; /* 0x36112372: mov dword ptr [edi + 8], 0x361761d4 */ 5605 MEM32(edi + 0x20) = 0x361761C4u; /* 0x36112379: mov dword ptr [edi + 0x20], 0x361761c4 */ 5606 MEM32(edi + 0x38) = 0x361761B4u; /* 0x36112380: mov dword ptr [edi + 0x38], 0x361761b4 */ 5607 MEM32(edi + 0x50) = 0x361761A4u; /* 0x36112387: mov dword ptr [edi + 0x50], 0x361761a4 */ 5608 MEM32(edi + 0x138) = 0x36176194u; /* 0x3611238E: mov dword ptr [edi + 0x138], 0x36176194 */ 5609 MEM32(edi + 0x150) = 0x36176184u; /* 0x36112398: mov dword ptr [edi + 0x150], 0x36176184 */ 5610 goto L_361123A6; /* 0x361123A2: jmp 0x361123a6 */ 5611 L_361123A4: 5612 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5613 edi = 0; /* 0x361123A4: xor edi, edi */ 5614 _cf = 0; 5615 _flag_k = FK_TEST; 5616 L_361123A6: 5617 ecx = MEM32(esi + 0x2C); /* 0x361123A6: mov ecx, dword ptr [esi + 0x2c] */ 5618 PUSH32(esp, ecx); /* 0x361123A9: push ecx */ 5619 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361123AA: mov dword ptr [ebp - 4], 0xffffffff */ 5620 MEM32(esi + 0x24) = edi; /* 0x361123B1: mov dword ptr [esi + 0x24], edi */ 5621 RECOMP_ICALL(0x360F7B00u); /* 0x361123B4: call 0x360f7b00 */ /* not lifted */ 5622 RECOMP_FLAGS_IN(); 5623 ecx = eax; /* 0x361123B9: mov ecx, eax */ 5624 RECOMP_ICALL(0x360FBE60u); /* 0x361123BB: call 0x360fbe60 */ /* not lifted */ 5625 RECOMP_FLAGS_IN(); 5626 ecx = MEM32(esi + 0x24); /* 0x361123C0: mov ecx, dword ptr [esi + 0x24] */ 5627 MEM32(ecx + 0x1E0) = eax; /* 0x361123C3: mov dword ptr [ecx + 0x1e0], eax */ 5628 edx = MEM32(esi + 0x2C); /* 0x361123C9: mov edx, dword ptr [esi + 0x2c] */ 5629 PUSH32(esp, edx); /* 0x361123CC: push edx */ 5630 RECOMP_ICALL(0x360F7B00u); /* 0x361123CD: call 0x360f7b00 */ /* not lifted */ 5631 RECOMP_FLAGS_IN(); 5632 ecx = eax; /* 0x361123D2: mov ecx, eax */ 5633 RECOMP_ICALL(0x360FBEA0u); /* 0x361123D4: call 0x360fbea0 */ /* not lifted */ 5634 RECOMP_FLAGS_IN(); 5635 ecx = MEM32(esi + 0x24); /* 0x361123D9: mov ecx, dword ptr [esi + 0x24] */ 5636 MEM32(ecx + 0x1E4) = eax; /* 0x361123DC: mov dword ptr [ecx + 0x1e4], eax */ 5637 eax = MEM32(esi + 0x2C); /* 0x361123E2: mov eax, dword ptr [esi + 0x2c] */ 5638 PUSH32(esp, eax); /* 0x361123E5: push eax */ 5639 RECOMP_ICALL(0x360F7B00u); /* 0x361123E6: call 0x360f7b00 */ /* not lifted */ 5640 RECOMP_FLAGS_IN(); 5641 ecx = eax; /* 0x361123EB: mov ecx, eax */ 5642 RECOMP_ICALL(0x360FBEE0u); /* 0x361123ED: call 0x360fbee0 */ /* not lifted */ 5643 RECOMP_FLAGS_IN(); 5644 ecx = MEM32(esi + 0x2C); /* 0x361123F2: mov ecx, dword ptr [esi + 0x2c] */ 5645 MEM32(ebp + (-0x14)) = eax; /* 0x361123F5: mov dword ptr [ebp - 0x14], eax */ 5646 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x361123F8: fild dword ptr [ebp - 0x14] */ 5647 PUSH32(esp, ecx); /* 0x361123FB: push ecx */ 5648 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xAC) = _v; } /* 0x361123FC: fstp dword ptr [esi + 0xac] */ 5649 RECOMP_ICALL(0x360F7B00u); /* 0x36112402: call 0x360f7b00 */ /* not lifted */ 5650 RECOMP_FLAGS_IN(); 5651 ecx = eax; /* 0x36112407: mov ecx, eax */ 5652 RECOMP_ICALL(0x360FBF20u); /* 0x36112409: call 0x360fbf20 */ /* not lifted */ 5653 RECOMP_FLAGS_IN(); 5654 ecx = MEM32(esi + 0x20); /* 0x3611240E: mov ecx, dword ptr [esi + 0x20] */ 5655 MEM32(ebp + (-0x14)) = eax; /* 0x36112411: mov dword ptr [ebp - 0x14], eax */ 5656 fp_push((double)(int32_t)MEM32(ebp + (-0x14))); /* 0x36112414: fild dword ptr [ebp - 0x14] */ 5657 edx = ebp + (-0x48); /* 0x36112417: lea edx, [ebp - 0x48] */ 5658 PUSH32(esp, edx); /* 0x3611241A: push edx */ 5659 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xB0) = _v; } /* 0x3611241B: fstp dword ptr [esi + 0xb0] */ 5660 RECOMP_ICALL(0x36133E80u); /* 0x36112421: call 0x36133e80 */ /* not lifted */ 5661 RECOMP_FLAGS_IN(); 5662 ecx = MEM32(esi + 0x24); /* 0x36112426: mov ecx, dword ptr [esi + 0x24] */ 5663 edi = MEM32(eax); /* 0x36112429: mov edi, dword ptr [eax] */ 5664 edx = ecx + 0x78; /* 0x3611242B: lea edx, [ecx + 0x78] */ 5665 MEM32(edx) = edi; /* 0x3611242E: mov dword ptr [edx], edi */ 5666 edi = MEM32(eax + 0x4); /* 0x36112430: mov edi, dword ptr [eax + 4] */ 5667 MEM32(edx + 0x4) = edi; /* 0x36112433: mov dword ptr [edx + 4], edi */ 5668 eax = MEM32(eax + 0x8); /* 0x36112436: mov eax, dword ptr [eax + 8] */ 5669 PUSH32(esp, 1); /* 0x36112439: push 1 */ 5670 MEM32(edx + 0x8) = eax; /* 0x3611243B: mov dword ptr [edx + 8], eax */ 5671 edx = MEM32(ecx); /* 0x3611243E: mov edx, dword ptr [ecx] */ 5672 PUSH32(esp, 1); /* 0x36112440: push 1 */ 5673 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112442: call dword ptr [edx + 0x2c] */ 5674 RECOMP_FLAGS_IN(); 5675 ecx = MEM32(esi + 0x20); /* 0x36112445: mov ecx, dword ptr [esi + 0x20] */ 5676 eax = ebp + (-0xA4); /* 0x36112448: lea eax, [ebp - 0xa4] */ 5677 PUSH32(esp, eax); /* 0x3611244E: push eax */ 5678 RECOMP_ICALL(0x36133DC0u); /* 0x3611244F: call 0x36133dc0 */ /* not lifted */ 5679 RECOMP_FLAGS_IN(); 5680 PUSH32(esp, eax); /* 0x36112454: push eax */ 5681 ecx = ebp + (-0x4C); /* 0x36112455: lea ecx, [ebp - 0x4c] */ 5682 MEM32(ebp + (-0x4)) = 1; /* 0x36112458: mov dword ptr [ebp - 4], 1 */ 5683 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x3611245F: call dword ptr [0x361701a4] */ 5684 RECOMP_FLAGS_IN(); 5685 ecx = MEM32(esi + 0x24); /* 0x36112465: mov ecx, dword ptr [esi + 0x24] */ 5686 edi = MEM32(eax); /* 0x36112468: mov edi, dword ptr [eax] */ 5687 edx = ecx + 0x84; /* 0x3611246A: lea edx, [ecx + 0x84] */ 5688 MEM32(edx) = edi; /* 0x36112470: mov dword ptr [edx], edi */ 5689 edi = MEM32(eax + 0x4); /* 0x36112472: mov edi, dword ptr [eax + 4] */ 5690 MEM32(edx + 0x4) = edi; /* 0x36112475: mov dword ptr [edx + 4], edi */ 5691 edi = MEM32(eax + 0x8); /* 0x36112478: mov edi, dword ptr [eax + 8] */ 5692 MEM32(edx + 0x8) = edi; /* 0x3611247B: mov dword ptr [edx + 8], edi */ 5693 eax = MEM32(eax + 0xC); /* 0x3611247E: mov eax, dword ptr [eax + 0xc] */ 5694 PUSH32(esp, 1); /* 0x36112481: push 1 */ 5695 MEM32(edx + 0xC) = eax; /* 0x36112483: mov dword ptr [edx + 0xc], eax */ 5696 edx = MEM32(ecx); /* 0x36112486: mov edx, dword ptr [ecx] */ 5697 PUSH32(esp, 2); /* 0x36112488: push 2 */ 5698 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611248A: call dword ptr [edx + 0x2c] */ 5699 RECOMP_FLAGS_IN(); 5700 ecx = MEM32(esi + 0x24); /* 0x3611248D: mov ecx, dword ptr [esi + 0x24] */ 5701 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36112490: mov dword ptr [ebp - 4], 0xffffffff */ 5702 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36112497: call dword ptr [0x3616f5f8] */ 5703 RECOMP_FLAGS_IN(); 5704 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3611249D: fld dword ptr [0x36170380] */ 5705 _st[0] /= (double)*(float*)ADDR(esi + 0x94); /* 0x361124A3: fdiv dword ptr [esi + 0x94] */ 5706 eax = MEM32(esi + 0x48); /* 0x361124A9: mov eax, dword ptr [esi + 0x48] */ 5707 ecx = MEM32(esi + 0x4C); /* 0x361124AC: mov ecx, dword ptr [esi + 0x4c] */ 5708 MEM32(ebp + (-0x18)) = eax; /* 0x361124AF: mov dword ptr [ebp - 0x18], eax */ 5709 MEM32(ebp + (-0x24)) = ecx; /* 0x361124B2: mov dword ptr [ebp - 0x24], ecx */ 5710 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361124B5: fstp dword ptr [ebp - 0x10] */ 5711 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x361124B8: fld dword ptr [esi + 0x58] */ 5712 edx = MEM32(esi + 0x50); /* 0x361124BB: mov edx, dword ptr [esi + 0x50] */ 5713 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x361124BE: fsub dword ptr [ebp - 0x18] */ 5714 eax = MEM32(esi + 0x54); /* 0x361124C1: mov eax, dword ptr [esi + 0x54] */ 5715 MEM32(ebp + (-0x2C)) = edx; /* 0x361124C4: mov dword ptr [ebp - 0x2c], edx */ 5716 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361124C7: fmul dword ptr [ebp - 0x10] */ 5717 MEM32(ebp + (-0x30)) = eax; /* 0x361124CA: mov dword ptr [ebp - 0x30], eax */ 5718 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361124CD: fstp dword ptr [ebp - 0x1c] */ 5719 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x361124D0: fld dword ptr [esi + 0x5c] */ 5720 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x361124D3: fsub dword ptr [ebp - 0x24] */ 5721 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361124D6: fmul dword ptr [ebp - 0x10] */ 5722 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x361124D9: fstp dword ptr [ebp - 0x3c] */ 5723 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x361124DC: fld dword ptr [esi + 0x60] */ 5724 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x361124DF: fsub dword ptr [ebp - 0x2c] */ 5725 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361124E2: fmul dword ptr [ebp - 0x10] */ 5726 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x361124E5: fstp dword ptr [ebp - 0x38] */ 5727 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x361124E8: fld dword ptr [esi + 0x64] */ 5728 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x361124EB: fsub dword ptr [ebp - 0x30] */ 5729 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361124EE: fmul dword ptr [ebp - 0x10] */ 5730 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x361124F1: fstp dword ptr [ebp - 0x34] */ 5731 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x361124F4: fld dword ptr [esi + 0x30] */ 5732 _st[0] *= (double)*(float*)ADDR(esi + 0x94); /* 0x361124F7: fmul dword ptr [esi + 0x94] */ 5733 _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x361124FD: fmul dword ptr [0x36174f9c] */ 5734 RECOMP_ICALL(0x3615FD8Cu); /* 0x36112503: call 0x3615fd8c */ /* not lifted */ 5735 RECOMP_FLAGS_IN(); 5736 ecx = MEM32(esi + 0x84); /* 0x36112508: mov ecx, dword ptr [esi + 0x84] */ 5737 /* cmp eax, ecx */ /* 0x3611250E: cmp eax, ecx */ 5738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5740 _flag_k = FK_CMP; 5741 if (CMP_GE(_flag_a, _flag_b)) goto L_36112514; /* 0x36112510: jge 0x36112514 */ 5742 L_36112512: 5743 eax = ecx; /* 0x36112512: mov eax, ecx */ 5744 L_36112514: 5745 ecx = MEM32(esi + 0x24); /* 0x36112514: mov ecx, dword ptr [esi + 0x24] */ 5746 PUSH32(esp, eax); /* 0x36112517: push eax */ 5747 RECOMP_ICALL(MEM32(0x3616F6D8)); /* 0x36112518: call dword ptr [0x3616f6d8] */ 5748 RECOMP_FLAGS_IN(); 5749 fp_push(*(float*)&MEM32(esi + 0xB0)); /* 0x3611251E: fld dword ptr [esi + 0xb0] */ 5750 ecx = MEM32(esi + 0xAC); /* 0x36112524: mov ecx, dword ptr [esi + 0xac] */ 5751 edx = MEM32(esi + 0x40); /* 0x3611252A: mov edx, dword ptr [esi + 0x40] */ 5752 eax = MEM32(esi + 0x38); /* 0x3611252D: mov eax, dword ptr [esi + 0x38] */ 5753 PUSH32(esp, 1); /* 0x36112530: push 1 */ 5754 MEM32(ebp + (-0x28)) = ecx; /* 0x36112532: mov dword ptr [ebp - 0x28], ecx */ 5755 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36112535: fsub dword ptr [ebp - 0x28] */ 5756 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5757 edi = 0; /* 0x36112538: xor edi, edi */ 5758 _cf = 0; 5759 _flag_k = FK_TEST; 5760 PUSH32(esp, edi); /* 0x3611253A: push edi */ 5761 PUSH32(esp, edi); /* 0x3611253B: push edi */ 5762 PUSH32(esp, edi); /* 0x3611253C: push edi */ 5763 PUSH32(esp, edi); /* 0x3611253D: push edi */ 5764 PUSH32(esp, ecx); /* 0x3611253E: push ecx */ 5765 MEM32(ebp + (-0x20)) = edx; /* 0x3611253F: mov dword ptr [ebp - 0x20], edx */ 5766 edx = MEM32(ebp + (-0x34)); /* 0x36112542: mov edx, dword ptr [ebp - 0x34] */ 5767 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36112545: fmul dword ptr [ebp - 0x10] */ 5768 MEM32(ebp + (-0x14)) = eax; /* 0x36112548: mov dword ptr [ebp - 0x14], eax */ 5769 eax = MEM32(ebp + (-0x38)); /* 0x3611254B: mov eax, dword ptr [ebp - 0x38] */ 5770 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611254E: fstp dword ptr [esp] */ 5771 PUSH32(esp, ecx); /* 0x36112551: push ecx */ 5772 ecx = MEM32(ebp + (-0x3C)); /* 0x36112552: mov ecx, dword ptr [ebp - 0x3c] */ 5773 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36112555: fld dword ptr [esi + 0x44] */ 5774 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36112558: fsub dword ptr [ebp - 0x20] */ 5775 PUSH32(esp, edx); /* 0x3611255B: push edx */ 5776 edx = MEM32(ebp + (-0x1C)); /* 0x3611255C: mov edx, dword ptr [ebp - 0x1c] */ 5777 PUSH32(esp, eax); /* 0x3611255F: push eax */ 5778 eax = MEM32(ebp + (-0x30)); /* 0x36112560: mov eax, dword ptr [ebp - 0x30] */ 5779 PUSH32(esp, ecx); /* 0x36112563: push ecx */ 5780 ecx = MEM32(ebp + (-0x2C)); /* 0x36112564: mov ecx, dword ptr [ebp - 0x2c] */ 5781 PUSH32(esp, edx); /* 0x36112567: push edx */ 5782 edx = MEM32(ebp + (-0x24)); /* 0x36112568: mov edx, dword ptr [ebp - 0x24] */ 5783 PUSH32(esp, eax); /* 0x3611256B: push eax */ 5784 eax = MEM32(ebp + (-0x18)); /* 0x3611256C: mov eax, dword ptr [ebp - 0x18] */ 5785 PUSH32(esp, ecx); /* 0x3611256F: push ecx */ 5786 ecx = MEM32(esi + 0x94); /* 0x36112570: mov ecx, dword ptr [esi + 0x94] */ 5787 PUSH32(esp, edx); /* 0x36112576: push edx */ 5788 edx = MEM32(ebp + (-0x20)); /* 0x36112577: mov edx, dword ptr [ebp - 0x20] */ 5789 PUSH32(esp, eax); /* 0x3611257A: push eax */ 5790 eax = MEM32(ebp + (-0x14)); /* 0x3611257B: mov eax, dword ptr [ebp - 0x14] */ 5791 PUSH32(esp, 0xFFFFFFFFu); /* 0x3611257E: push -1 */ 5792 PUSH32(esp, ecx); /* 0x36112580: push ecx */ 5793 PUSH32(esp, ecx); /* 0x36112581: push ecx */ 5794 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36112582: fmul dword ptr [ebp - 0x10] */ 5795 MEM32(ebp + (-0x58)) = 0; /* 0x36112585: mov dword ptr [ebp - 0x58], 0 */ 5796 MEM32(ebp + (-0x54)) = 0; /* 0x3611258C: mov dword ptr [ebp - 0x54], 0 */ 5797 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36112593: fstp dword ptr [esp] */ 5798 PUSH32(esp, ecx); /* 0x36112596: push ecx */ 5799 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36112597: fld dword ptr [esi + 0x3c] */ 5800 ecx = ebp + (-0x58); /* 0x3611259A: lea ecx, [ebp - 0x58] */ 5801 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3611259D: fsub dword ptr [ebp - 0x14] */ 5802 MEM32(ebp + (-0x50)) = 0; /* 0x361125A0: mov dword ptr [ebp - 0x50], 0 */ 5803 MEM32(ebp + (-0x48)) = 0; /* 0x361125A7: mov dword ptr [ebp - 0x48], 0 */ 5804 MEM32(ebp + (-0x44)) = 0; /* 0x361125AE: mov dword ptr [ebp - 0x44], 0 */ 5805 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361125B5: fmul dword ptr [ebp - 0x10] */ 5806 MEM32(ebp + (-0x40)) = 0; /* 0x361125B8: mov dword ptr [ebp - 0x40], 0 */ 5807 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361125BF: fstp dword ptr [esp] */ 5808 PUSH32(esp, edx); /* 0x361125C2: push edx */ 5809 PUSH32(esp, eax); /* 0x361125C3: push eax */ 5810 PUSH32(esp, ecx); /* 0x361125C4: push ecx */ 5811 ecx = MEM32(esi + 0x24); /* 0x361125C5: mov ecx, dword ptr [esi + 0x24] */ 5812 edx = ebp + (-0x48); /* 0x361125C8: lea edx, [ebp - 0x48] */ 5813 PUSH32(esp, edx); /* 0x361125CB: push edx */ 5814 RECOMP_ICALL(MEM32(0x3616F6D4)); /* 0x361125CC: call dword ptr [0x3616f6d4] */ 5815 RECOMP_FLAGS_IN(); 5816 ecx = MEM32(esi + 0x20); /* 0x361125D2: mov ecx, dword ptr [esi + 0x20] */ 5817 eax = ebp + (-0x64); /* 0x361125D5: lea eax, [ebp - 0x64] */ 5818 PUSH32(esp, eax); /* 0x361125D8: push eax */ 5819 RECOMP_ICALL(0x36133FC0u); /* 0x361125D9: call 0x36133fc0 */ /* not lifted */ 5820 RECOMP_FLAGS_IN(); 5821 edx = MEM32(eax); /* 0x361125DE: mov edx, dword ptr [eax] */ 5822 ecx = esi + 0xB4; /* 0x361125E0: lea ecx, [esi + 0xb4] */ 5823 MEM32(ecx) = edx; /* 0x361125E6: mov dword ptr [ecx], edx */ 5824 edx = MEM32(eax + 0x4); /* 0x361125E8: mov edx, dword ptr [eax + 4] */ 5825 MEM32(ecx + 0x4) = edx; /* 0x361125EB: mov dword ptr [ecx + 4], edx */ 5826 eax = MEM32(eax + 0x8); /* 0x361125EE: mov eax, dword ptr [eax + 8] */ 5827 MEM32(ecx + 0x8) = eax; /* 0x361125F1: mov dword ptr [ecx + 8], eax */ 5828 MEM32(esi + 0xC0) = edi; /* 0x361125F4: mov dword ptr [esi + 0xc0], edi */ 5829 ecx = MEM32(ebp + (-0xC)); /* 0x361125FA: mov ecx, dword ptr [ebp - 0xc] */ 5830 MEM32(esi + 0xC4) = edi; /* 0x361125FD: mov dword ptr [esi + 0xc4], edi */ 5831 edi = POP32_VAL(esp); /* 0x36112603: pop edi */ 5832 esi = POP32_VAL(esp); /* 0x36112604: pop esi */ 5833 MEM32(FS_BASE + (0)) = ecx; /* 0x36112605: mov dword ptr fs:[0], ecx */ 5834 esp = ebp; /* 0x3611260C: mov esp, ebp */ 5835 ebp = POP32_VAL(esp); /* 0x3611260E: pop ebp */ 5836 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3611260F: ret */ 5837 RECOMP_REGS_OUT(); 5838 } 5839 5840 void sub_36112610(void) { 5841 int _fpu_cmp = 0; 5842 uint32_t _cf = 0; 5843 int _df = 1; 5844 uint32_t _flag_k = FK_NONE; 5845 uint32_t _flag_a = 0, _flag_b = 0; 5846 uint32_t _itail_tgt = 0; 5847 RECOMP_REGS_LOCALS 5848 RECOMP_ENTER(0x36112610u); 5849 5850 L_36112610: 5851 PUSH32(esp, ebp); /* 0x36112610: push ebp */ 5852 ebp = esp; /* 0x36112611: mov ebp, esp */ 5853 PUSH32(esp, 0xFFFFFFFFu); /* 0x36112613: push -1 */ 5854 PUSH32(esp, 0x3616ACE3u); /* 0x36112615: push 0x3616ace3 */ 5855 eax = MEM32(FS_BASE + (0)); /* 0x3611261A: mov eax, dword ptr fs:[0] */ 5856 PUSH32(esp, eax); /* 0x36112620: push eax */ 5857 MEM32(FS_BASE + (0)) = esp; /* 0x36112621: mov dword ptr fs:[0], esp */ 5858 PUSH32(esp, ecx); /* 0x36112628: push ecx */ 5859 eax = MEM32(ebp + 0x8); /* 0x36112629: mov eax, dword ptr [ebp + 8] */ 5860 PUSH32(esp, ebx); /* 0x3611262C: push ebx */ 5861 PUSH32(esp, esi); /* 0x3611262D: push esi */ 5862 PUSH32(esp, edi); /* 0x3611262E: push edi */ 5863 esi = ecx; /* 0x3611262F: mov esi, ecx */ 5864 PUSH32(esp, eax); /* 0x36112631: push eax */ 5865 MEM32(ebp + (-0x10)) = esi; /* 0x36112632: mov dword ptr [ebp - 0x10], esi */ 5866 RECOMP_ICALL(0x360FC270u); /* 0x36112635: call 0x360fc270 */ /* not lifted */ 5867 RECOMP_FLAGS_IN(); 5868 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5869 ebx = 0; /* 0x3611263A: xor ebx, ebx */ 5870 _cf = 0; 5871 _flag_k = FK_TEST; 5872 ecx = esi; /* 0x3611263C: mov ecx, esi */ 5873 MEM32(ebp + (-0x4)) = ebx; /* 0x3611263E: mov dword ptr [ebp - 4], ebx */ 5874 MEM32(esi + 0x20) = ebx; /* 0x36112641: mov dword ptr [esi + 0x20], ebx */ 5875 MEM32(esi + 0x24) = ebx; /* 0x36112644: mov dword ptr [esi + 0x24], ebx */ 5876 MEM32(esi) = 0x361769F4u; /* 0x36112647: mov dword ptr [esi], 0x361769f4 */ 5877 RECOMP_ICALL(0x36112D20u); /* 0x3611264D: call 0x36112d20 */ /* not lifted */ 5878 RECOMP_FLAGS_IN(); 5879 ecx = MEM32(esi + 0x4); /* 0x36112652: mov ecx, dword ptr [esi + 4] */ 5880 PUSH32(esp, ecx); /* 0x36112655: push ecx */ 5881 RECOMP_ICALL(0x360F7B00u); /* 0x36112656: call 0x360f7b00 */ /* not lifted */ 5882 RECOMP_FLAGS_IN(); 5883 ecx = eax; /* 0x3611265B: mov ecx, eax */ 5884 RECOMP_ICALL(0x360FBFF0u); /* 0x3611265D: call 0x360fbff0 */ /* not lifted */ 5885 RECOMP_FLAGS_IN(); 5886 ecx = eax; /* 0x36112662: mov ecx, eax */ 5887 RECOMP_ICALL(0x361371A0u); /* 0x36112664: call 0x361371a0 */ /* not lifted */ 5888 RECOMP_FLAGS_IN(); 5889 edi = eax; /* 0x36112669: mov edi, eax */ 5890 eax = MEM32(ebp + 0x10); /* 0x3611266B: mov eax, dword ptr [ebp + 0x10] */ 5891 /* cmp eax, ebx */ /* 0x3611266E: cmp eax, ebx */ 5892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5894 _flag_k = FK_CMP; 5895 if (CMP_NE(_flag_a, _flag_b)) goto L_3611267B; /* 0x36112670: jne 0x3611267b */ 5896 L_36112672: 5897 PUSH32(esp, 7); /* 0x36112672: push 7 */ 5898 ecx = edi; /* 0x36112674: mov ecx, edi */ 5899 RECOMP_ICALL(0x36136FE0u); /* 0x36112676: call 0x36136fe0 */ /* not lifted */ 5900 RECOMP_FLAGS_IN(); 5901 L_3611267B: 5902 PUSH32(esp, 0x10Cu); /* 0x3611267B: push 0x10c */ 5903 ebx = eax; /* 0x36112680: mov ebx, eax */ 5904 RECOMP_ICALL(0x3615FD6Au); /* 0x36112682: call 0x3615fd6a */ /* not lifted */ 5905 RECOMP_FLAGS_IN(); 5906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5908 esp = esp + 4; /* 0x36112687: add esp, 4 */ 5909 _flag_k = FK_ADD; 5910 MEM32(ebp + 0x8) = eax; /* 0x3611268A: mov dword ptr [ebp + 8], eax */ 5911 /* test eax, eax */ /* 0x3611268D: test eax, eax */ 5912 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5913 _cf = 0; 5914 _flag_k = FK_TEST; 5915 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3611268F: mov byte ptr [ebp - 4], 1 */ 5916 if (TEST_Z(_flag_a, _flag_b)) goto L_3611269E; /* 0x36112693: je 0x3611269e */ 5917 L_36112695: 5918 ecx = eax; /* 0x36112695: mov ecx, eax */ 5919 RECOMP_ICALL(0x36132920u); /* 0x36112697: call 0x36132920 */ /* not lifted */ 5920 RECOMP_FLAGS_IN(); 5921 goto L_361126A0; /* 0x3611269C: jmp 0x361126a0 */ 5922 L_3611269E: 5923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5924 eax = 0; /* 0x3611269E: xor eax, eax */ 5925 _cf = 0; 5926 _flag_k = FK_TEST; 5927 L_361126A0: 5928 MEM32(esi + 0x20) = eax; /* 0x361126A0: mov dword ptr [esi + 0x20], eax */ 5929 eax = MEM32(esi + 0x28); /* 0x361126A3: mov eax, dword ptr [esi + 0x28] */ 5930 edx = eax; /* 0x361126A6: mov edx, eax */ 5931 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 5932 edx = edx & 2; /* 0x361126A8: and edx, 2 */ 5933 _cf = 0; 5934 _flag_k = FK_TEST; 5935 /* cmp LO8(edx), 2 */ /* 0x361126AB: cmp dl, 2 */ 5936 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 5937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5938 _flag_k = FK_NARROW(FK_CMP, 24); 5939 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361126AE: sete cl */ 5940 edx = eax; /* 0x361126B1: mov edx, eax */ 5941 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5942 edx = edx & 1; /* 0x361126B3: and edx, 1 */ 5943 _cf = 0; 5944 _flag_k = FK_TEST; 5945 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 5946 SET_LO8(edx, LO8(edx) - 1); /* 0x361126B6: dec dl */ 5947 _flag_k = FK_NARROW(FK_DEC, 24); 5948 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5949 _cf = (LO8(edx)) != 0; 5950 SET_LO8(edx, (uint32_t)(-(int32_t)LO8(edx))); /* 0x361126B8: neg dl */ 5951 _flag_k = FK_NARROW(FK_CMP, 24); 5952 { uint32_t _sa = LO8(edx), _sb = LO8(edx), _sc = _cf; /* 0x361126BA: sbb dl, dl */ 5953 SET_LO8(edx, _sc ? 0xFFFFFFFFu : 0); 5954 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5955 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5957 eax = eax & 4; /* 0x361126BC: and eax, 4 */ 5958 _cf = 0; 5959 _flag_k = FK_TEST; 5960 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 5961 SET_LO8(edx, LO8(edx) + 1); /* 0x361126BF: inc dl */ 5962 _flag_k = FK_NARROW(FK_INC, 24); 5963 PUSH32(esp, ecx); /* 0x361126C1: push ecx */ 5964 /* cmp LO8(eax), 4 */ /* 0x361126C2: cmp al, 4 */ 5965 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 5966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5967 _flag_k = FK_NARROW(FK_CMP, 24); 5968 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361126C4: sete al */ 5969 ecx = edi; /* 0x361126C7: mov ecx, edi */ 5970 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x361126C9: mov byte ptr [ebp - 4], 0 */ 5971 PUSH32(esp, edx); /* 0x361126CD: push edx */ 5972 PUSH32(esp, ebx); /* 0x361126CE: push ebx */ 5973 PUSH32(esp, eax); /* 0x361126CF: push eax */ 5974 PUSH32(esp, 6); /* 0x361126D0: push 6 */ 5975 RECOMP_ICALL(0x36137010u); /* 0x361126D2: call 0x36137010 */ /* not lifted */ 5976 RECOMP_FLAGS_IN(); 5977 PUSH32(esp, ecx); /* 0x361126D7: push ecx */ 5978 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361126D8: fstp dword ptr [esp] */ 5979 PUSH32(esp, 5); /* 0x361126DB: push 5 */ 5980 ecx = edi; /* 0x361126DD: mov ecx, edi */ 5981 RECOMP_ICALL(0x36137010u); /* 0x361126DF: call 0x36137010 */ /* not lifted */ 5982 RECOMP_FLAGS_IN(); 5983 PUSH32(esp, ecx); /* 0x361126E4: push ecx */ 5984 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361126E5: fstp dword ptr [esp] */ 5985 PUSH32(esp, 4); /* 0x361126E8: push 4 */ 5986 ecx = edi; /* 0x361126EA: mov ecx, edi */ 5987 RECOMP_ICALL(0x36137010u); /* 0x361126EC: call 0x36137010 */ /* not lifted */ 5988 RECOMP_FLAGS_IN(); 5989 PUSH32(esp, ecx); /* 0x361126F1: push ecx */ 5990 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361126F2: fstp dword ptr [esp] */ 5991 PUSH32(esp, 3); /* 0x361126F5: push 3 */ 5992 ecx = edi; /* 0x361126F7: mov ecx, edi */ 5993 RECOMP_ICALL(0x36137010u); /* 0x361126F9: call 0x36137010 */ /* not lifted */ 5994 RECOMP_FLAGS_IN(); 5995 PUSH32(esp, ecx); /* 0x361126FE: push ecx */ 5996 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361126FF: fstp dword ptr [esp] */ 5997 PUSH32(esp, 2); /* 0x36112702: push 2 */ 5998 ecx = edi; /* 0x36112704: mov ecx, edi */ 5999 RECOMP_ICALL(0x36137010u); /* 0x36112706: call 0x36137010 */ /* not lifted */ 6000 RECOMP_FLAGS_IN(); 6001 PUSH32(esp, ecx); /* 0x3611270B: push ecx */ 6002 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611270C: fstp dword ptr [esp] */ 6003 PUSH32(esp, 1); /* 0x3611270F: push 1 */ 6004 ecx = edi; /* 0x36112711: mov ecx, edi */ 6005 RECOMP_ICALL(0x36137010u); /* 0x36112713: call 0x36137010 */ /* not lifted */ 6006 RECOMP_FLAGS_IN(); 6007 PUSH32(esp, ecx); /* 0x36112718: push ecx */ 6008 ecx = MEM32(ebp + 0xC); /* 0x36112719: mov ecx, dword ptr [ebp + 0xc] */ 6009 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611271C: fstp dword ptr [esp] */ 6010 PUSH32(esp, ecx); /* 0x3611271F: push ecx */ 6011 ecx = MEM32(esi + 0x20); /* 0x36112720: mov ecx, dword ptr [esi + 0x20] */ 6012 RECOMP_ICALL(0x36132EB0u); /* 0x36112723: call 0x36132eb0 */ /* not lifted */ 6013 RECOMP_FLAGS_IN(); 6014 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6015 _cf = (LO8(eax)) != 0; 6016 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36112728: neg al */ 6017 _flag_k = FK_NARROW(FK_CMP, 24); 6018 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611272A: sbb al, al */ 6019 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 6020 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6021 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6022 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6023 SET_LO8(eax, LO8(eax) + 1); /* 0x3611272C: inc al */ 6024 _flag_k = FK_NARROW(FK_INC, 24); 6025 ecx = esi; /* 0x3611272E: mov ecx, esi */ 6026 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36112730: mov byte ptr [esi + 0x14], al */ 6027 RECOMP_ICALL(0x36112DD0u); /* 0x36112733: call 0x36112dd0 */ /* not lifted */ 6028 RECOMP_FLAGS_IN(); 6029 ecx = MEM32(ebp + (-0xC)); /* 0x36112738: mov ecx, dword ptr [ebp - 0xc] */ 6030 edi = POP32_VAL(esp); /* 0x3611273B: pop edi */ 6031 eax = esi; /* 0x3611273C: mov eax, esi */ 6032 esi = POP32_VAL(esp); /* 0x3611273E: pop esi */ 6033 ebx = POP32_VAL(esp); /* 0x3611273F: pop ebx */ 6034 MEM32(FS_BASE + (0)) = ecx; /* 0x36112740: mov dword ptr fs:[0], ecx */ 6035 esp = ebp; /* 0x36112747: mov esp, ebp */ 6036 ebp = POP32_VAL(esp); /* 0x36112749: pop ebp */ 6037 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3611274A: ret 0xc */ 6038 RECOMP_REGS_OUT(); 6039 } 6040 6041 void sub_36112750(void) { 6042 int _fpu_cmp = 0; 6043 uint32_t _cf = 0; 6044 int _df = 1; 6045 uint32_t _flag_k = FK_NONE; 6046 uint32_t _flag_a = 0, _flag_b = 0; 6047 uint32_t _itail_tgt = 0; 6048 RECOMP_REGS_LOCALS 6049 RECOMP_ENTER(0x36112750u); 6050 6051 L_36112750: 6052 PUSH32(esp, ebp); /* 0x36112750: push ebp */ 6053 ebp = esp; /* 0x36112751: mov ebp, esp */ 6054 PUSH32(esp, esi); /* 0x36112753: push esi */ 6055 esi = ecx; /* 0x36112754: mov esi, ecx */ 6056 RECOMP_ICALL(0x36112780u); /* 0x36112756: call 0x36112780 */ /* not lifted */ 6057 RECOMP_FLAGS_IN(); 6058 /* test MEM8(ebp + 0x8), 1 */ /* 0x3611275B: test byte ptr [ebp + 8], 1 */ 6059 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6060 _cf = 0; 6061 _flag_k = FK_NARROW(FK_TEST, 24); 6062 if (TEST_Z(_flag_a, _flag_b)) goto L_3611276A; /* 0x3611275F: je 0x3611276a */ 6063 L_36112761: 6064 PUSH32(esp, esi); /* 0x36112761: push esi */ 6065 RECOMP_ICALL(0x3615FCC4u); /* 0x36112762: call 0x3615fcc4 */ /* not lifted */ 6066 RECOMP_FLAGS_IN(); 6067 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6068 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6069 esp = esp + 4; /* 0x36112767: add esp, 4 */ 6070 _flag_k = FK_ADD; 6071 L_3611276A: 6072 eax = esi; /* 0x3611276A: mov eax, esi */ 6073 esi = POP32_VAL(esp); /* 0x3611276C: pop esi */ 6074 ebp = POP32_VAL(esp); /* 0x3611276D: pop ebp */ 6075 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611276E: ret 4 */ 6076 RECOMP_REGS_OUT(); 6077 } 6078 6079 void sub_36112780(void) { 6080 int _fpu_cmp = 0; 6081 uint32_t _cf = 0; 6082 int _df = 1; 6083 uint32_t _flag_k = FK_NONE; 6084 uint32_t _flag_a = 0, _flag_b = 0; 6085 uint32_t _itail_tgt = 0; 6086 RECOMP_REGS_LOCALS 6087 RECOMP_ENTER(0x36112780u); 6088 6089 L_36112780: 6090 PUSH32(esp, ebp); /* 0x36112780: push ebp */ 6091 ebp = esp; /* 0x36112781: mov ebp, esp */ 6092 PUSH32(esp, 0xFFFFFFFFu); /* 0x36112783: push -1 */ 6093 PUSH32(esp, 0x3616ACF8u); /* 0x36112785: push 0x3616acf8 */ 6094 eax = MEM32(FS_BASE + (0)); /* 0x3611278A: mov eax, dword ptr fs:[0] */ 6095 PUSH32(esp, eax); /* 0x36112790: push eax */ 6096 MEM32(FS_BASE + (0)) = esp; /* 0x36112791: mov dword ptr fs:[0], esp */ 6097 PUSH32(esp, ecx); /* 0x36112798: push ecx */ 6098 PUSH32(esp, esi); /* 0x36112799: push esi */ 6099 esi = ecx; /* 0x3611279A: mov esi, ecx */ 6100 PUSH32(esp, edi); /* 0x3611279C: push edi */ 6101 MEM32(ebp + (-0x10)) = esi; /* 0x3611279D: mov dword ptr [ebp - 0x10], esi */ 6102 MEM32(esi) = 0x361769F4u; /* 0x361127A0: mov dword ptr [esi], 0x361769f4 */ 6103 edi = MEM32(esi + 0x20); /* 0x361127A6: mov edi, dword ptr [esi + 0x20] */ 6104 /* test edi, edi */ /* 0x361127A9: test edi, edi */ 6105 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6106 _cf = 0; 6107 _flag_k = FK_TEST; 6108 MEM32(ebp + (-0x4)) = 0; /* 0x361127AB: mov dword ptr [ebp - 4], 0 */ 6109 if (TEST_Z(_flag_a, _flag_b)) goto L_361127CB; /* 0x361127B2: je 0x361127cb */ 6110 L_361127B4: 6111 ecx = edi; /* 0x361127B4: mov ecx, edi */ 6112 RECOMP_ICALL(0x360E2940u); /* 0x361127B6: call 0x360e2940 */ /* not lifted */ 6113 RECOMP_FLAGS_IN(); 6114 PUSH32(esp, edi); /* 0x361127BB: push edi */ 6115 RECOMP_ICALL(0x3615FCC4u); /* 0x361127BC: call 0x3615fcc4 */ /* not lifted */ 6116 RECOMP_FLAGS_IN(); 6117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6119 esp = esp + 4; /* 0x361127C1: add esp, 4 */ 6120 _flag_k = FK_ADD; 6121 MEM32(esi + 0x20) = 0; /* 0x361127C4: mov dword ptr [esi + 0x20], 0 */ 6122 L_361127CB: 6123 ecx = MEM32(esi + 0x24); /* 0x361127CB: mov ecx, dword ptr [esi + 0x24] */ 6124 /* test ecx, ecx */ /* 0x361127CE: test ecx, ecx */ 6125 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6126 _cf = 0; 6127 _flag_k = FK_TEST; 6128 if (TEST_Z(_flag_a, _flag_b)) goto L_361127DF; /* 0x361127D0: je 0x361127df */ 6129 L_361127D2: 6130 eax = MEM32(ecx); /* 0x361127D2: mov eax, dword ptr [ecx] */ 6131 PUSH32(esp, 1); /* 0x361127D4: push 1 */ 6132 RECOMP_ICALL(MEM32(eax)); /* 0x361127D6: call dword ptr [eax] */ 6133 RECOMP_FLAGS_IN(); 6134 MEM32(esi + 0x24) = 0; /* 0x361127D8: mov dword ptr [esi + 0x24], 0 */ 6135 L_361127DF: 6136 ecx = esi; /* 0x361127DF: mov ecx, esi */ 6137 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361127E1: mov dword ptr [ebp - 4], 0xffffffff */ 6138 RECOMP_ICALL(0x360FC2F0u); /* 0x361127E8: call 0x360fc2f0 */ /* not lifted */ 6139 RECOMP_FLAGS_IN(); 6140 ecx = MEM32(ebp + (-0xC)); /* 0x361127ED: mov ecx, dword ptr [ebp - 0xc] */ 6141 edi = POP32_VAL(esp); /* 0x361127F0: pop edi */ 6142 esi = POP32_VAL(esp); /* 0x361127F1: pop esi */ 6143 MEM32(FS_BASE + (0)) = ecx; /* 0x361127F2: mov dword ptr fs:[0], ecx */ 6144 esp = ebp; /* 0x361127F9: mov esp, ebp */ 6145 ebp = POP32_VAL(esp); /* 0x361127FB: pop ebp */ 6146 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361127FC: ret */ 6147 RECOMP_REGS_OUT(); 6148 } 6149 6150 void sub_36112800(void) { 6151 int _fpu_cmp = 0; 6152 uint32_t _cf = 0; 6153 int _df = 1; 6154 uint32_t _flag_k = FK_NONE; 6155 uint32_t _flag_a = 0, _flag_b = 0; 6156 uint32_t _itail_tgt = 0; 6157 RECOMP_REGS_LOCALS 6158 RECOMP_ENTER(0x36112800u); 6159 6160 L_36112800: 6161 PUSH32(esp, ebp); /* 0x36112800: push ebp */ 6162 ebp = esp; /* 0x36112801: mov ebp, esp */ 6163 PUSH32(esp, 0xFFFFFFFFu); /* 0x36112803: push -1 */ 6164 PUSH32(esp, 0x3616AD1Cu); /* 0x36112805: push 0x3616ad1c */ 6165 eax = MEM32(FS_BASE + (0)); /* 0x3611280A: mov eax, dword ptr fs:[0] */ 6166 PUSH32(esp, eax); /* 0x36112810: push eax */ 6167 MEM32(FS_BASE + (0)) = esp; /* 0x36112811: mov dword ptr fs:[0], esp */ 6168 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xECu); 6169 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6170 esp = esp - 0xECu; /* 0x36112818: sub esp, 0xec */ 6171 _flag_k = FK_CMP; 6172 PUSH32(esp, esi); /* 0x3611281E: push esi */ 6173 PUSH32(esp, edi); /* 0x3611281F: push edi */ 6174 esi = ecx; /* 0x36112820: mov esi, ecx */ 6175 RECOMP_ICALL(0x360FC300u); /* 0x36112822: call 0x360fc300 */ /* not lifted */ 6176 RECOMP_FLAGS_IN(); 6177 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36112827: mov al, byte ptr [esi + 0x14] */ 6178 /* test LO8(eax), LO8(eax) */ /* 0x3611282A: test al, al */ 6179 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6180 _cf = 0; 6181 _flag_k = FK_NARROW(FK_TEST, 24); 6182 if (TEST_NZ(_flag_a, _flag_b)) goto L_36112BDE; /* 0x3611282C: jne 0x36112bde */ 6183 L_36112832: 6184 ecx = MEM32(esi + 0x20); /* 0x36112832: mov ecx, dword ptr [esi + 0x20] */ 6185 RECOMP_ICALL(0x361331E0u); /* 0x36112835: call 0x361331e0 */ /* not lifted */ 6186 RECOMP_FLAGS_IN(); 6187 /* test LO8(eax), LO8(eax) */ /* 0x3611283A: test al, al */ 6188 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6189 _cf = 0; 6190 _flag_k = FK_NARROW(FK_TEST, 24); 6191 if (TEST_NZ(_flag_a, _flag_b)) goto L_3611284A; /* 0x3611283C: jne 0x3611284a */ 6192 L_3611283E: 6193 eax = MEM32(esi + 0x20); /* 0x3611283E: mov eax, dword ptr [esi + 0x20] */ 6194 MEM8(eax) = (uint8_t)(0); /* 0x36112841: mov byte ptr [eax], 0 */ 6195 ecx = MEM32(esi + 0xC); /* 0x36112844: mov ecx, dword ptr [esi + 0xc] */ 6196 MEM32(esi + 0x10) = ecx; /* 0x36112847: mov dword ptr [esi + 0x10], ecx */ 6197 L_3611284A: 6198 ecx = MEM32(esi + 0x20); /* 0x3611284A: mov ecx, dword ptr [esi + 0x20] */ 6199 edx = ebp + (-0x78); /* 0x3611284D: lea edx, [ebp - 0x78] */ 6200 PUSH32(esp, edx); /* 0x36112850: push edx */ 6201 PUSH32(esp, 0x3EEu); /* 0x36112851: push 0x3ee */ 6202 MEM32(ebp + (-0x78)) = 0; /* 0x36112856: mov dword ptr [ebp - 0x78], 0 */ 6203 MEM32(ebp + (-0x74)) = 0; /* 0x3611285D: mov dword ptr [ebp - 0x74], 0 */ 6204 MEM32(ebp + (-0x70)) = 0; /* 0x36112864: mov dword ptr [ebp - 0x70], 0 */ 6205 MEM32(ebp + (-0x60)) = 0; /* 0x3611286B: mov dword ptr [ebp - 0x60], 0 */ 6206 MEM32(ebp + (-0x5C)) = 0; /* 0x36112872: mov dword ptr [ebp - 0x5c], 0 */ 6207 MEM32(ebp + (-0x58)) = 0; /* 0x36112879: mov dword ptr [ebp - 0x58], 0 */ 6208 MEM32(ebp + (-0x48)) = 0; /* 0x36112880: mov dword ptr [ebp - 0x48], 0 */ 6209 MEM32(ebp + (-0x44)) = 0; /* 0x36112887: mov dword ptr [ebp - 0x44], 0 */ 6210 MEM32(ebp + (-0x40)) = 0; /* 0x3611288E: mov dword ptr [ebp - 0x40], 0 */ 6211 MEM32(ebp + (-0x30)) = 0; /* 0x36112895: mov dword ptr [ebp - 0x30], 0 */ 6212 MEM32(ebp + (-0x2C)) = 0; /* 0x3611289C: mov dword ptr [ebp - 0x2c], 0 */ 6213 MEM32(ebp + (-0x28)) = 0; /* 0x361128A3: mov dword ptr [ebp - 0x28], 0 */ 6214 MEM32(ebp + (-0x18)) = 0; /* 0x361128AA: mov dword ptr [ebp - 0x18], 0 */ 6215 MEM32(ebp + (-0x14)) = 0; /* 0x361128B1: mov dword ptr [ebp - 0x14], 0 */ 6216 MEM32(ebp + (-0x10)) = 0; /* 0x361128B8: mov dword ptr [ebp - 0x10], 0 */ 6217 MEM32(ebp + (-0x6C)) = 0; /* 0x361128BF: mov dword ptr [ebp - 0x6c], 0 */ 6218 MEM32(ebp + (-0x68)) = 0; /* 0x361128C6: mov dword ptr [ebp - 0x68], 0 */ 6219 MEM32(ebp + (-0x64)) = 0; /* 0x361128CD: mov dword ptr [ebp - 0x64], 0 */ 6220 MEM32(ebp + (-0x9C)) = 0; /* 0x361128D4: mov dword ptr [ebp - 0x9c], 0 */ 6221 MEM32(ebp + (-0x98)) = 0; /* 0x361128DE: mov dword ptr [ebp - 0x98], 0 */ 6222 MEM32(ebp + (-0x94)) = 0; /* 0x361128E8: mov dword ptr [ebp - 0x94], 0 */ 6223 MEM32(ebp + (-0x54)) = 0; /* 0x361128F2: mov dword ptr [ebp - 0x54], 0 */ 6224 MEM32(ebp + (-0x50)) = 0; /* 0x361128F9: mov dword ptr [ebp - 0x50], 0 */ 6225 MEM32(ebp + (-0x4C)) = 0; /* 0x36112900: mov dword ptr [ebp - 0x4c], 0 */ 6226 MEM32(ebp + (-0x84)) = 0; /* 0x36112907: mov dword ptr [ebp - 0x84], 0 */ 6227 MEM32(ebp + (-0x80)) = 0; /* 0x36112911: mov dword ptr [ebp - 0x80], 0 */ 6228 MEM32(ebp + (-0x7C)) = 0; /* 0x36112918: mov dword ptr [ebp - 0x7c], 0 */ 6229 MEM32(ebp + (-0x3C)) = 0; /* 0x3611291F: mov dword ptr [ebp - 0x3c], 0 */ 6230 MEM32(ebp + (-0x38)) = 0; /* 0x36112926: mov dword ptr [ebp - 0x38], 0 */ 6231 MEM32(ebp + (-0x34)) = 0; /* 0x3611292D: mov dword ptr [ebp - 0x34], 0 */ 6232 MEM32(ebp + (-0x90)) = 0; /* 0x36112934: mov dword ptr [ebp - 0x90], 0 */ 6233 MEM32(ebp + (-0x8C)) = 0; /* 0x3611293E: mov dword ptr [ebp - 0x8c], 0 */ 6234 MEM32(ebp + (-0x88)) = 0; /* 0x36112948: mov dword ptr [ebp - 0x88], 0 */ 6235 MEM32(ebp + (-0x24)) = 0; /* 0x36112952: mov dword ptr [ebp - 0x24], 0 */ 6236 MEM32(ebp + (-0x20)) = 0; /* 0x36112959: mov dword ptr [ebp - 0x20], 0 */ 6237 MEM32(ebp + (-0x1C)) = 0; /* 0x36112960: mov dword ptr [ebp - 0x1c], 0 */ 6238 RECOMP_ICALL(0x36133900u); /* 0x36112967: call 0x36133900 */ /* not lifted */ 6239 RECOMP_FLAGS_IN(); 6240 ecx = MEM32(esi + 0x20); /* 0x3611296C: mov ecx, dword ptr [esi + 0x20] */ 6241 eax = ebp + (-0x60); /* 0x3611296F: lea eax, [ebp - 0x60] */ 6242 PUSH32(esp, eax); /* 0x36112972: push eax */ 6243 PUSH32(esp, 0x3EFu); /* 0x36112973: push 0x3ef */ 6244 RECOMP_ICALL(0x36133900u); /* 0x36112978: call 0x36133900 */ /* not lifted */ 6245 RECOMP_FLAGS_IN(); 6246 ecx = ebp + (-0x48); /* 0x3611297D: lea ecx, [ebp - 0x48] */ 6247 PUSH32(esp, ecx); /* 0x36112980: push ecx */ 6248 ecx = MEM32(esi + 0x20); /* 0x36112981: mov ecx, dword ptr [esi + 0x20] */ 6249 PUSH32(esp, 0x3F0u); /* 0x36112984: push 0x3f0 */ 6250 RECOMP_ICALL(0x36133900u); /* 0x36112989: call 0x36133900 */ /* not lifted */ 6251 RECOMP_FLAGS_IN(); 6252 ecx = MEM32(esi + 0x20); /* 0x3611298E: mov ecx, dword ptr [esi + 0x20] */ 6253 edx = ebp + (-0x30); /* 0x36112991: lea edx, [ebp - 0x30] */ 6254 PUSH32(esp, edx); /* 0x36112994: push edx */ 6255 PUSH32(esp, 0x3F1u); /* 0x36112995: push 0x3f1 */ 6256 RECOMP_ICALL(0x36133900u); /* 0x3611299A: call 0x36133900 */ /* not lifted */ 6257 RECOMP_FLAGS_IN(); 6258 ecx = MEM32(esi + 0x20); /* 0x3611299F: mov ecx, dword ptr [esi + 0x20] */ 6259 eax = ebp + (-0x18); /* 0x361129A2: lea eax, [ebp - 0x18] */ 6260 PUSH32(esp, eax); /* 0x361129A5: push eax */ 6261 PUSH32(esp, 0x3F2u); /* 0x361129A6: push 0x3f2 */ 6262 RECOMP_ICALL(0x36133900u); /* 0x361129AB: call 0x36133900 */ /* not lifted */ 6263 RECOMP_FLAGS_IN(); 6264 ecx = ebp + (-0x6C); /* 0x361129B0: lea ecx, [ebp - 0x6c] */ 6265 PUSH32(esp, ecx); /* 0x361129B3: push ecx */ 6266 ecx = MEM32(esi + 0x20); /* 0x361129B4: mov ecx, dword ptr [esi + 0x20] */ 6267 PUSH32(esp, 0x7D1u); /* 0x361129B7: push 0x7d1 */ 6268 RECOMP_ICALL(0x36133900u); /* 0x361129BC: call 0x36133900 */ /* not lifted */ 6269 RECOMP_FLAGS_IN(); 6270 ecx = MEM32(esi + 0x20); /* 0x361129C1: mov ecx, dword ptr [esi + 0x20] */ 6271 edx = ebp + (-0x9C); /* 0x361129C4: lea edx, [ebp - 0x9c] */ 6272 PUSH32(esp, edx); /* 0x361129CA: push edx */ 6273 PUSH32(esp, 0x7D0u); /* 0x361129CB: push 0x7d0 */ 6274 RECOMP_ICALL(0x36133900u); /* 0x361129D0: call 0x36133900 */ /* not lifted */ 6275 RECOMP_FLAGS_IN(); 6276 ecx = MEM32(esi + 0x20); /* 0x361129D5: mov ecx, dword ptr [esi + 0x20] */ 6277 eax = ebp + (-0x54); /* 0x361129D8: lea eax, [ebp - 0x54] */ 6278 PUSH32(esp, eax); /* 0x361129DB: push eax */ 6279 PUSH32(esp, 0x3F3u); /* 0x361129DC: push 0x3f3 */ 6280 RECOMP_ICALL(0x36133900u); /* 0x361129E1: call 0x36133900 */ /* not lifted */ 6281 RECOMP_FLAGS_IN(); 6282 ecx = ebp + (-0x84); /* 0x361129E6: lea ecx, [ebp - 0x84] */ 6283 PUSH32(esp, ecx); /* 0x361129EC: push ecx */ 6284 ecx = MEM32(esi + 0x20); /* 0x361129ED: mov ecx, dword ptr [esi + 0x20] */ 6285 PUSH32(esp, 0x3F4u); /* 0x361129F0: push 0x3f4 */ 6286 RECOMP_ICALL(0x36133900u); /* 0x361129F5: call 0x36133900 */ /* not lifted */ 6287 RECOMP_FLAGS_IN(); 6288 ecx = MEM32(esi + 0x20); /* 0x361129FA: mov ecx, dword ptr [esi + 0x20] */ 6289 edx = ebp + (-0x3C); /* 0x361129FD: lea edx, [ebp - 0x3c] */ 6290 PUSH32(esp, edx); /* 0x36112A00: push edx */ 6291 PUSH32(esp, 0x3F5u); /* 0x36112A01: push 0x3f5 */ 6292 RECOMP_ICALL(0x36133900u); /* 0x36112A06: call 0x36133900 */ /* not lifted */ 6293 RECOMP_FLAGS_IN(); 6294 ecx = MEM32(esi + 0x20); /* 0x36112A0B: mov ecx, dword ptr [esi + 0x20] */ 6295 eax = ebp + (-0x90); /* 0x36112A0E: lea eax, [ebp - 0x90] */ 6296 PUSH32(esp, eax); /* 0x36112A14: push eax */ 6297 PUSH32(esp, 0x3F6u); /* 0x36112A15: push 0x3f6 */ 6298 RECOMP_ICALL(0x36133900u); /* 0x36112A1A: call 0x36133900 */ /* not lifted */ 6299 RECOMP_FLAGS_IN(); 6300 ecx = ebp + (-0x24); /* 0x36112A1F: lea ecx, [ebp - 0x24] */ 6301 PUSH32(esp, ecx); /* 0x36112A22: push ecx */ 6302 ecx = MEM32(esi + 0x20); /* 0x36112A23: mov ecx, dword ptr [esi + 0x20] */ 6303 PUSH32(esp, 0x3E8u); /* 0x36112A26: push 0x3e8 */ 6304 RECOMP_ICALL(0x36133900u); /* 0x36112A2B: call 0x36133900 */ /* not lifted */ 6305 RECOMP_FLAGS_IN(); 6306 ecx = MEM32(esi + 0x20); /* 0x36112A30: mov ecx, dword ptr [esi + 0x20] */ 6307 edx = ebp + (-0xA8); /* 0x36112A33: lea edx, [ebp - 0xa8] */ 6308 PUSH32(esp, edx); /* 0x36112A39: push edx */ 6309 RECOMP_ICALL(0x36133E80u); /* 0x36112A3A: call 0x36133e80 */ /* not lifted */ 6310 RECOMP_FLAGS_IN(); 6311 ecx = MEM32(esi + 0x24); /* 0x36112A3F: mov ecx, dword ptr [esi + 0x24] */ 6312 edi = MEM32(eax); /* 0x36112A42: mov edi, dword ptr [eax] */ 6313 edx = ecx + 0x78; /* 0x36112A44: lea edx, [ecx + 0x78] */ 6314 MEM32(edx) = edi; /* 0x36112A47: mov dword ptr [edx], edi */ 6315 edi = MEM32(eax + 0x4); /* 0x36112A49: mov edi, dword ptr [eax + 4] */ 6316 MEM32(edx + 0x4) = edi; /* 0x36112A4C: mov dword ptr [edx + 4], edi */ 6317 eax = MEM32(eax + 0x8); /* 0x36112A4F: mov eax, dword ptr [eax + 8] */ 6318 PUSH32(esp, 1); /* 0x36112A52: push 1 */ 6319 MEM32(edx + 0x8) = eax; /* 0x36112A54: mov dword ptr [edx + 8], eax */ 6320 edx = MEM32(ecx); /* 0x36112A57: mov edx, dword ptr [ecx] */ 6321 PUSH32(esp, 1); /* 0x36112A59: push 1 */ 6322 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112A5B: call dword ptr [edx + 0x2c] */ 6323 RECOMP_FLAGS_IN(); 6324 ecx = MEM32(esi + 0x20); /* 0x36112A5E: mov ecx, dword ptr [esi + 0x20] */ 6325 eax = ebp + (-0xF8); /* 0x36112A61: lea eax, [ebp - 0xf8] */ 6326 PUSH32(esp, eax); /* 0x36112A67: push eax */ 6327 RECOMP_ICALL(0x36133DC0u); /* 0x36112A68: call 0x36133dc0 */ /* not lifted */ 6328 RECOMP_FLAGS_IN(); 6329 PUSH32(esp, eax); /* 0x36112A6D: push eax */ 6330 ecx = ebp + (-0xB8); /* 0x36112A6E: lea ecx, [ebp - 0xb8] */ 6331 MEM32(ebp + (-0x4)) = 0; /* 0x36112A74: mov dword ptr [ebp - 4], 0 */ 6332 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112A7B: call dword ptr [0x361701a4] */ 6333 RECOMP_FLAGS_IN(); 6334 ecx = MEM32(esi + 0x24); /* 0x36112A81: mov ecx, dword ptr [esi + 0x24] */ 6335 edi = MEM32(eax); /* 0x36112A84: mov edi, dword ptr [eax] */ 6336 edx = ecx + 0x84; /* 0x36112A86: lea edx, [ecx + 0x84] */ 6337 MEM32(edx) = edi; /* 0x36112A8C: mov dword ptr [edx], edi */ 6338 edi = MEM32(eax + 0x4); /* 0x36112A8E: mov edi, dword ptr [eax + 4] */ 6339 MEM32(edx + 0x4) = edi; /* 0x36112A91: mov dword ptr [edx + 4], edi */ 6340 edi = MEM32(eax + 0x8); /* 0x36112A94: mov edi, dword ptr [eax + 8] */ 6341 MEM32(edx + 0x8) = edi; /* 0x36112A97: mov dword ptr [edx + 8], edi */ 6342 eax = MEM32(eax + 0xC); /* 0x36112A9A: mov eax, dword ptr [eax + 0xc] */ 6343 PUSH32(esp, 1); /* 0x36112A9D: push 1 */ 6344 MEM32(edx + 0xC) = eax; /* 0x36112A9F: mov dword ptr [edx + 0xc], eax */ 6345 edx = MEM32(ecx); /* 0x36112AA2: mov edx, dword ptr [ecx] */ 6346 PUSH32(esp, 2); /* 0x36112AA4: push 2 */ 6347 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112AA6: call dword ptr [edx + 0x2c] */ 6348 RECOMP_FLAGS_IN(); 6349 ecx = MEM32(ebp + (-0x24)); /* 0x36112AA9: mov ecx, dword ptr [ebp - 0x24] */ 6350 edx = MEM32(ebp + (-0x20)); /* 0x36112AAC: mov edx, dword ptr [ebp - 0x20] */ 6351 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6353 esp = esp - 0xCu; /* 0x36112AAF: sub esp, 0xc */ 6354 _flag_k = FK_CMP; 6355 eax = esp; /* 0x36112AB2: mov eax, esp */ 6356 MEM32(eax) = ecx; /* 0x36112AB4: mov dword ptr [eax], ecx */ 6357 ecx = MEM32(ebp + (-0x1C)); /* 0x36112AB6: mov ecx, dword ptr [ebp - 0x1c] */ 6358 MEM32(eax + 0x4) = edx; /* 0x36112AB9: mov dword ptr [eax + 4], edx */ 6359 MEM32(eax + 0x8) = ecx; /* 0x36112ABC: mov dword ptr [eax + 8], ecx */ 6360 eax = MEM32(ebp + (-0x90)); /* 0x36112ABF: mov eax, dword ptr [ebp - 0x90] */ 6361 ecx = MEM32(ebp + (-0x8C)); /* 0x36112AC5: mov ecx, dword ptr [ebp - 0x8c] */ 6362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6364 esp = esp - 0xCu; /* 0x36112ACB: sub esp, 0xc */ 6365 _flag_k = FK_CMP; 6366 edx = esp; /* 0x36112ACE: mov edx, esp */ 6367 MEM32(edx) = eax; /* 0x36112AD0: mov dword ptr [edx], eax */ 6368 eax = MEM32(ebp + (-0x88)); /* 0x36112AD2: mov eax, dword ptr [ebp - 0x88] */ 6369 MEM32(edx + 0x4) = ecx; /* 0x36112AD8: mov dword ptr [edx + 4], ecx */ 6370 MEM32(edx + 0x8) = eax; /* 0x36112ADB: mov dword ptr [edx + 8], eax */ 6371 edx = MEM32(ebp + (-0x3C)); /* 0x36112ADE: mov edx, dword ptr [ebp - 0x3c] */ 6372 eax = MEM32(ebp + (-0x38)); /* 0x36112AE1: mov eax, dword ptr [ebp - 0x38] */ 6373 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6375 esp = esp - 0xCu; /* 0x36112AE4: sub esp, 0xc */ 6376 _flag_k = FK_CMP; 6377 ecx = esp; /* 0x36112AE7: mov ecx, esp */ 6378 MEM32(ecx) = edx; /* 0x36112AE9: mov dword ptr [ecx], edx */ 6379 edx = MEM32(ebp + (-0x34)); /* 0x36112AEB: mov edx, dword ptr [ebp - 0x34] */ 6380 MEM32(ecx + 0x4) = eax; /* 0x36112AEE: mov dword ptr [ecx + 4], eax */ 6381 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6383 esp = esp - 0xCu; /* 0x36112AF1: sub esp, 0xc */ 6384 _flag_k = FK_CMP; 6385 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36112AF4: mov dword ptr [ebp - 4], 0xffffffff */ 6386 MEM32(ecx + 0x8) = edx; /* 0x36112AFB: mov dword ptr [ecx + 8], edx */ 6387 eax = esp; /* 0x36112AFE: mov eax, esp */ 6388 ecx = MEM32(ebp + (-0x84)); /* 0x36112B00: mov ecx, dword ptr [ebp - 0x84] */ 6389 MEM32(eax) = ecx; /* 0x36112B06: mov dword ptr [eax], ecx */ 6390 edx = MEM32(ebp + (-0x80)); /* 0x36112B08: mov edx, dword ptr [ebp - 0x80] */ 6391 MEM32(eax + 0x4) = edx; /* 0x36112B0B: mov dword ptr [eax + 4], edx */ 6392 ecx = MEM32(ebp + (-0x7C)); /* 0x36112B0E: mov ecx, dword ptr [ebp - 0x7c] */ 6393 MEM32(eax + 0x8) = ecx; /* 0x36112B11: mov dword ptr [eax + 8], ecx */ 6394 eax = MEM32(ebp + (-0x54)); /* 0x36112B14: mov eax, dword ptr [ebp - 0x54] */ 6395 ecx = MEM32(ebp + (-0x50)); /* 0x36112B17: mov ecx, dword ptr [ebp - 0x50] */ 6396 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6398 esp = esp - 0xCu; /* 0x36112B1A: sub esp, 0xc */ 6399 _flag_k = FK_CMP; 6400 edx = esp; /* 0x36112B1D: mov edx, esp */ 6401 MEM32(edx) = eax; /* 0x36112B1F: mov dword ptr [edx], eax */ 6402 MEM32(edx + 0x4) = ecx; /* 0x36112B21: mov dword ptr [edx + 4], ecx */ 6403 eax = MEM32(ebp + (-0x4C)); /* 0x36112B24: mov eax, dword ptr [ebp - 0x4c] */ 6404 MEM32(edx + 0x8) = eax; /* 0x36112B27: mov dword ptr [edx + 8], eax */ 6405 edx = MEM32(ebp + (-0x9C)); /* 0x36112B2A: mov edx, dword ptr [ebp - 0x9c] */ 6406 eax = MEM32(ebp + (-0x98)); /* 0x36112B30: mov eax, dword ptr [ebp - 0x98] */ 6407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6409 esp = esp - 0xCu; /* 0x36112B36: sub esp, 0xc */ 6410 _flag_k = FK_CMP; 6411 ecx = esp; /* 0x36112B39: mov ecx, esp */ 6412 MEM32(ecx) = edx; /* 0x36112B3B: mov dword ptr [ecx], edx */ 6413 MEM32(ecx + 0x4) = eax; /* 0x36112B3D: mov dword ptr [ecx + 4], eax */ 6414 edx = MEM32(ebp + (-0x94)); /* 0x36112B40: mov edx, dword ptr [ebp - 0x94] */ 6415 MEM32(ecx + 0x8) = edx; /* 0x36112B46: mov dword ptr [ecx + 8], edx */ 6416 ecx = MEM32(ebp + (-0x6C)); /* 0x36112B49: mov ecx, dword ptr [ebp - 0x6c] */ 6417 edx = MEM32(ebp + (-0x68)); /* 0x36112B4C: mov edx, dword ptr [ebp - 0x68] */ 6418 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6420 esp = esp - 0xCu; /* 0x36112B4F: sub esp, 0xc */ 6421 _flag_k = FK_CMP; 6422 eax = esp; /* 0x36112B52: mov eax, esp */ 6423 MEM32(eax) = ecx; /* 0x36112B54: mov dword ptr [eax], ecx */ 6424 ecx = MEM32(ebp + (-0x64)); /* 0x36112B56: mov ecx, dword ptr [ebp - 0x64] */ 6425 MEM32(eax + 0x4) = edx; /* 0x36112B59: mov dword ptr [eax + 4], edx */ 6426 MEM32(eax + 0x8) = ecx; /* 0x36112B5C: mov dword ptr [eax + 8], ecx */ 6427 eax = MEM32(ebp + (-0x18)); /* 0x36112B5F: mov eax, dword ptr [ebp - 0x18] */ 6428 ecx = MEM32(ebp + (-0x14)); /* 0x36112B62: mov ecx, dword ptr [ebp - 0x14] */ 6429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6431 esp = esp - 0xCu; /* 0x36112B65: sub esp, 0xc */ 6432 _flag_k = FK_CMP; 6433 edx = esp; /* 0x36112B68: mov edx, esp */ 6434 MEM32(edx) = eax; /* 0x36112B6A: mov dword ptr [edx], eax */ 6435 eax = MEM32(ebp + (-0x10)); /* 0x36112B6C: mov eax, dword ptr [ebp - 0x10] */ 6436 MEM32(edx + 0x4) = ecx; /* 0x36112B6F: mov dword ptr [edx + 4], ecx */ 6437 MEM32(edx + 0x8) = eax; /* 0x36112B72: mov dword ptr [edx + 8], eax */ 6438 edx = MEM32(ebp + (-0x30)); /* 0x36112B75: mov edx, dword ptr [ebp - 0x30] */ 6439 eax = MEM32(ebp + (-0x2C)); /* 0x36112B78: mov eax, dword ptr [ebp - 0x2c] */ 6440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6442 esp = esp - 0xCu; /* 0x36112B7B: sub esp, 0xc */ 6443 _flag_k = FK_CMP; 6444 ecx = esp; /* 0x36112B7E: mov ecx, esp */ 6445 MEM32(ecx) = edx; /* 0x36112B80: mov dword ptr [ecx], edx */ 6446 edx = MEM32(ebp + (-0x28)); /* 0x36112B82: mov edx, dword ptr [ebp - 0x28] */ 6447 MEM32(ecx + 0x4) = eax; /* 0x36112B85: mov dword ptr [ecx + 4], eax */ 6448 MEM32(ecx + 0x8) = edx; /* 0x36112B88: mov dword ptr [ecx + 8], edx */ 6449 ecx = MEM32(ebp + (-0x48)); /* 0x36112B8B: mov ecx, dword ptr [ebp - 0x48] */ 6450 edx = MEM32(ebp + (-0x44)); /* 0x36112B8E: mov edx, dword ptr [ebp - 0x44] */ 6451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6453 esp = esp - 0xCu; /* 0x36112B91: sub esp, 0xc */ 6454 _flag_k = FK_CMP; 6455 eax = esp; /* 0x36112B94: mov eax, esp */ 6456 MEM32(eax) = ecx; /* 0x36112B96: mov dword ptr [eax], ecx */ 6457 ecx = MEM32(ebp + (-0x40)); /* 0x36112B98: mov ecx, dword ptr [ebp - 0x40] */ 6458 MEM32(eax + 0x4) = edx; /* 0x36112B9B: mov dword ptr [eax + 4], edx */ 6459 MEM32(eax + 0x8) = ecx; /* 0x36112B9E: mov dword ptr [eax + 8], ecx */ 6460 eax = MEM32(ebp + (-0x60)); /* 0x36112BA1: mov eax, dword ptr [ebp - 0x60] */ 6461 ecx = MEM32(ebp + (-0x5C)); /* 0x36112BA4: mov ecx, dword ptr [ebp - 0x5c] */ 6462 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6464 esp = esp - 0xCu; /* 0x36112BA7: sub esp, 0xc */ 6465 _flag_k = FK_CMP; 6466 edx = esp; /* 0x36112BAA: mov edx, esp */ 6467 MEM32(edx) = eax; /* 0x36112BAC: mov dword ptr [edx], eax */ 6468 eax = MEM32(ebp + (-0x58)); /* 0x36112BAE: mov eax, dword ptr [ebp - 0x58] */ 6469 MEM32(edx + 0x4) = ecx; /* 0x36112BB1: mov dword ptr [edx + 4], ecx */ 6470 MEM32(edx + 0x8) = eax; /* 0x36112BB4: mov dword ptr [edx + 8], eax */ 6471 edx = MEM32(ebp + (-0x78)); /* 0x36112BB7: mov edx, dword ptr [ebp - 0x78] */ 6472 eax = MEM32(ebp + (-0x74)); /* 0x36112BBA: mov eax, dword ptr [ebp - 0x74] */ 6473 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6475 esp = esp - 0xCu; /* 0x36112BBD: sub esp, 0xc */ 6476 _flag_k = FK_CMP; 6477 ecx = esp; /* 0x36112BC0: mov ecx, esp */ 6478 MEM32(ecx) = edx; /* 0x36112BC2: mov dword ptr [ecx], edx */ 6479 edx = MEM32(ebp + (-0x70)); /* 0x36112BC4: mov edx, dword ptr [ebp - 0x70] */ 6480 MEM32(ecx + 0x4) = eax; /* 0x36112BC7: mov dword ptr [ecx + 4], eax */ 6481 eax = MEM32(esi + 0x8); /* 0x36112BCA: mov eax, dword ptr [esi + 8] */ 6482 MEM32(ecx + 0x8) = edx; /* 0x36112BCD: mov dword ptr [ecx + 8], edx */ 6483 ecx = MEM32(esi + 0xC); /* 0x36112BD0: mov ecx, dword ptr [esi + 0xc] */ 6484 PUSH32(esp, eax); /* 0x36112BD3: push eax */ 6485 PUSH32(esp, ecx); /* 0x36112BD4: push ecx */ 6486 ecx = MEM32(esi + 0x24); /* 0x36112BD5: mov ecx, dword ptr [esi + 0x24] */ 6487 RECOMP_ICALL(MEM32(0x3616F7D4)); /* 0x36112BD8: call dword ptr [0x3616f7d4] */ 6488 RECOMP_FLAGS_IN(); 6489 L_36112BDE: 6490 ecx = MEM32(ebp + (-0xC)); /* 0x36112BDE: mov ecx, dword ptr [ebp - 0xc] */ 6491 edi = POP32_VAL(esp); /* 0x36112BE1: pop edi */ 6492 MEM32(FS_BASE + (0)) = ecx; /* 0x36112BE2: mov dword ptr fs:[0], ecx */ 6493 esi = POP32_VAL(esp); /* 0x36112BE9: pop esi */ 6494 esp = ebp; /* 0x36112BEA: mov esp, ebp */ 6495 ebp = POP32_VAL(esp); /* 0x36112BEC: pop ebp */ 6496 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112BED: ret */ 6497 RECOMP_REGS_OUT(); 6498 } 6499 6500 void sub_361128B1(void) { 6501 int _fpu_cmp = 0; 6502 uint32_t _cf = 0; 6503 int _df = 1; 6504 uint32_t _flag_k = FK_NONE; 6505 uint32_t _flag_a = 0, _flag_b = 0; 6506 uint32_t _itail_tgt = 0; 6507 RECOMP_REGS_LOCALS 6508 RECOMP_ENTER(0x361128B1u); 6509 6510 L_361128B1: 6511 MEM32(ebp + (-0x14)) = 0; /* 0x361128B1: mov dword ptr [ebp - 0x14], 0 */ 6512 MEM32(ebp + (-0x10)) = 0; /* 0x361128B8: mov dword ptr [ebp - 0x10], 0 */ 6513 MEM32(ebp + (-0x6C)) = 0; /* 0x361128BF: mov dword ptr [ebp - 0x6c], 0 */ 6514 MEM32(ebp + (-0x68)) = 0; /* 0x361128C6: mov dword ptr [ebp - 0x68], 0 */ 6515 MEM32(ebp + (-0x64)) = 0; /* 0x361128CD: mov dword ptr [ebp - 0x64], 0 */ 6516 MEM32(ebp + (-0x9C)) = 0; /* 0x361128D4: mov dword ptr [ebp - 0x9c], 0 */ 6517 MEM32(ebp + (-0x98)) = 0; /* 0x361128DE: mov dword ptr [ebp - 0x98], 0 */ 6518 MEM32(ebp + (-0x94)) = 0; /* 0x361128E8: mov dword ptr [ebp - 0x94], 0 */ 6519 MEM32(ebp + (-0x54)) = 0; /* 0x361128F2: mov dword ptr [ebp - 0x54], 0 */ 6520 MEM32(ebp + (-0x50)) = 0; /* 0x361128F9: mov dword ptr [ebp - 0x50], 0 */ 6521 MEM32(ebp + (-0x4C)) = 0; /* 0x36112900: mov dword ptr [ebp - 0x4c], 0 */ 6522 MEM32(ebp + (-0x84)) = 0; /* 0x36112907: mov dword ptr [ebp - 0x84], 0 */ 6523 MEM32(ebp + (-0x80)) = 0; /* 0x36112911: mov dword ptr [ebp - 0x80], 0 */ 6524 MEM32(ebp + (-0x7C)) = 0; /* 0x36112918: mov dword ptr [ebp - 0x7c], 0 */ 6525 MEM32(ebp + (-0x3C)) = 0; /* 0x3611291F: mov dword ptr [ebp - 0x3c], 0 */ 6526 MEM32(ebp + (-0x38)) = 0; /* 0x36112926: mov dword ptr [ebp - 0x38], 0 */ 6527 MEM32(ebp + (-0x34)) = 0; /* 0x3611292D: mov dword ptr [ebp - 0x34], 0 */ 6528 MEM32(ebp + (-0x90)) = 0; /* 0x36112934: mov dword ptr [ebp - 0x90], 0 */ 6529 MEM32(ebp + (-0x8C)) = 0; /* 0x3611293E: mov dword ptr [ebp - 0x8c], 0 */ 6530 MEM32(ebp + (-0x88)) = 0; /* 0x36112948: mov dword ptr [ebp - 0x88], 0 */ 6531 MEM32(ebp + (-0x24)) = 0; /* 0x36112952: mov dword ptr [ebp - 0x24], 0 */ 6532 MEM32(ebp + (-0x20)) = 0; /* 0x36112959: mov dword ptr [ebp - 0x20], 0 */ 6533 MEM32(ebp + (-0x1C)) = 0; /* 0x36112960: mov dword ptr [ebp - 0x1c], 0 */ 6534 RECOMP_ICALL(0x36133900u); /* 0x36112967: call 0x36133900 */ /* not lifted */ 6535 RECOMP_FLAGS_IN(); 6536 ecx = MEM32(esi + 0x20); /* 0x3611296C: mov ecx, dword ptr [esi + 0x20] */ 6537 eax = ebp + (-0x60); /* 0x3611296F: lea eax, [ebp - 0x60] */ 6538 PUSH32(esp, eax); /* 0x36112972: push eax */ 6539 PUSH32(esp, 0x3EFu); /* 0x36112973: push 0x3ef */ 6540 RECOMP_ICALL(0x36133900u); /* 0x36112978: call 0x36133900 */ /* not lifted */ 6541 RECOMP_FLAGS_IN(); 6542 ecx = ebp + (-0x48); /* 0x3611297D: lea ecx, [ebp - 0x48] */ 6543 PUSH32(esp, ecx); /* 0x36112980: push ecx */ 6544 ecx = MEM32(esi + 0x20); /* 0x36112981: mov ecx, dword ptr [esi + 0x20] */ 6545 PUSH32(esp, 0x3F0u); /* 0x36112984: push 0x3f0 */ 6546 RECOMP_ICALL(0x36133900u); /* 0x36112989: call 0x36133900 */ /* not lifted */ 6547 RECOMP_FLAGS_IN(); 6548 ecx = MEM32(esi + 0x20); /* 0x3611298E: mov ecx, dword ptr [esi + 0x20] */ 6549 edx = ebp + (-0x30); /* 0x36112991: lea edx, [ebp - 0x30] */ 6550 PUSH32(esp, edx); /* 0x36112994: push edx */ 6551 PUSH32(esp, 0x3F1u); /* 0x36112995: push 0x3f1 */ 6552 RECOMP_ICALL(0x36133900u); /* 0x3611299A: call 0x36133900 */ /* not lifted */ 6553 RECOMP_FLAGS_IN(); 6554 ecx = MEM32(esi + 0x20); /* 0x3611299F: mov ecx, dword ptr [esi + 0x20] */ 6555 eax = ebp + (-0x18); /* 0x361129A2: lea eax, [ebp - 0x18] */ 6556 PUSH32(esp, eax); /* 0x361129A5: push eax */ 6557 PUSH32(esp, 0x3F2u); /* 0x361129A6: push 0x3f2 */ 6558 RECOMP_ICALL(0x36133900u); /* 0x361129AB: call 0x36133900 */ /* not lifted */ 6559 RECOMP_FLAGS_IN(); 6560 ecx = ebp + (-0x6C); /* 0x361129B0: lea ecx, [ebp - 0x6c] */ 6561 PUSH32(esp, ecx); /* 0x361129B3: push ecx */ 6562 ecx = MEM32(esi + 0x20); /* 0x361129B4: mov ecx, dword ptr [esi + 0x20] */ 6563 PUSH32(esp, 0x7D1u); /* 0x361129B7: push 0x7d1 */ 6564 RECOMP_ICALL(0x36133900u); /* 0x361129BC: call 0x36133900 */ /* not lifted */ 6565 RECOMP_FLAGS_IN(); 6566 ecx = MEM32(esi + 0x20); /* 0x361129C1: mov ecx, dword ptr [esi + 0x20] */ 6567 edx = ebp + (-0x9C); /* 0x361129C4: lea edx, [ebp - 0x9c] */ 6568 PUSH32(esp, edx); /* 0x361129CA: push edx */ 6569 PUSH32(esp, 0x7D0u); /* 0x361129CB: push 0x7d0 */ 6570 RECOMP_ICALL(0x36133900u); /* 0x361129D0: call 0x36133900 */ /* not lifted */ 6571 RECOMP_FLAGS_IN(); 6572 ecx = MEM32(esi + 0x20); /* 0x361129D5: mov ecx, dword ptr [esi + 0x20] */ 6573 eax = ebp + (-0x54); /* 0x361129D8: lea eax, [ebp - 0x54] */ 6574 PUSH32(esp, eax); /* 0x361129DB: push eax */ 6575 PUSH32(esp, 0x3F3u); /* 0x361129DC: push 0x3f3 */ 6576 RECOMP_ICALL(0x36133900u); /* 0x361129E1: call 0x36133900 */ /* not lifted */ 6577 RECOMP_FLAGS_IN(); 6578 ecx = ebp + (-0x84); /* 0x361129E6: lea ecx, [ebp - 0x84] */ 6579 PUSH32(esp, ecx); /* 0x361129EC: push ecx */ 6580 ecx = MEM32(esi + 0x20); /* 0x361129ED: mov ecx, dword ptr [esi + 0x20] */ 6581 PUSH32(esp, 0x3F4u); /* 0x361129F0: push 0x3f4 */ 6582 RECOMP_ICALL(0x36133900u); /* 0x361129F5: call 0x36133900 */ /* not lifted */ 6583 RECOMP_FLAGS_IN(); 6584 ecx = MEM32(esi + 0x20); /* 0x361129FA: mov ecx, dword ptr [esi + 0x20] */ 6585 edx = ebp + (-0x3C); /* 0x361129FD: lea edx, [ebp - 0x3c] */ 6586 PUSH32(esp, edx); /* 0x36112A00: push edx */ 6587 PUSH32(esp, 0x3F5u); /* 0x36112A01: push 0x3f5 */ 6588 RECOMP_ICALL(0x36133900u); /* 0x36112A06: call 0x36133900 */ /* not lifted */ 6589 RECOMP_FLAGS_IN(); 6590 ecx = MEM32(esi + 0x20); /* 0x36112A0B: mov ecx, dword ptr [esi + 0x20] */ 6591 eax = ebp + (-0x90); /* 0x36112A0E: lea eax, [ebp - 0x90] */ 6592 PUSH32(esp, eax); /* 0x36112A14: push eax */ 6593 PUSH32(esp, 0x3F6u); /* 0x36112A15: push 0x3f6 */ 6594 RECOMP_ICALL(0x36133900u); /* 0x36112A1A: call 0x36133900 */ /* not lifted */ 6595 RECOMP_FLAGS_IN(); 6596 ecx = ebp + (-0x24); /* 0x36112A1F: lea ecx, [ebp - 0x24] */ 6597 PUSH32(esp, ecx); /* 0x36112A22: push ecx */ 6598 ecx = MEM32(esi + 0x20); /* 0x36112A23: mov ecx, dword ptr [esi + 0x20] */ 6599 PUSH32(esp, 0x3E8u); /* 0x36112A26: push 0x3e8 */ 6600 RECOMP_ICALL(0x36133900u); /* 0x36112A2B: call 0x36133900 */ /* not lifted */ 6601 RECOMP_FLAGS_IN(); 6602 ecx = MEM32(esi + 0x20); /* 0x36112A30: mov ecx, dword ptr [esi + 0x20] */ 6603 edx = ebp + (-0xA8); /* 0x36112A33: lea edx, [ebp - 0xa8] */ 6604 PUSH32(esp, edx); /* 0x36112A39: push edx */ 6605 RECOMP_ICALL(0x36133E80u); /* 0x36112A3A: call 0x36133e80 */ /* not lifted */ 6606 RECOMP_FLAGS_IN(); 6607 ecx = MEM32(esi + 0x24); /* 0x36112A3F: mov ecx, dword ptr [esi + 0x24] */ 6608 edi = MEM32(eax); /* 0x36112A42: mov edi, dword ptr [eax] */ 6609 edx = ecx + 0x78; /* 0x36112A44: lea edx, [ecx + 0x78] */ 6610 MEM32(edx) = edi; /* 0x36112A47: mov dword ptr [edx], edi */ 6611 edi = MEM32(eax + 0x4); /* 0x36112A49: mov edi, dword ptr [eax + 4] */ 6612 MEM32(edx + 0x4) = edi; /* 0x36112A4C: mov dword ptr [edx + 4], edi */ 6613 eax = MEM32(eax + 0x8); /* 0x36112A4F: mov eax, dword ptr [eax + 8] */ 6614 PUSH32(esp, 1); /* 0x36112A52: push 1 */ 6615 MEM32(edx + 0x8) = eax; /* 0x36112A54: mov dword ptr [edx + 8], eax */ 6616 edx = MEM32(ecx); /* 0x36112A57: mov edx, dword ptr [ecx] */ 6617 PUSH32(esp, 1); /* 0x36112A59: push 1 */ 6618 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112A5B: call dword ptr [edx + 0x2c] */ 6619 RECOMP_FLAGS_IN(); 6620 ecx = MEM32(esi + 0x20); /* 0x36112A5E: mov ecx, dword ptr [esi + 0x20] */ 6621 eax = ebp + (-0xF8); /* 0x36112A61: lea eax, [ebp - 0xf8] */ 6622 PUSH32(esp, eax); /* 0x36112A67: push eax */ 6623 RECOMP_ICALL(0x36133DC0u); /* 0x36112A68: call 0x36133dc0 */ /* not lifted */ 6624 RECOMP_FLAGS_IN(); 6625 PUSH32(esp, eax); /* 0x36112A6D: push eax */ 6626 ecx = ebp + (-0xB8); /* 0x36112A6E: lea ecx, [ebp - 0xb8] */ 6627 MEM32(ebp + (-0x4)) = 0; /* 0x36112A74: mov dword ptr [ebp - 4], 0 */ 6628 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112A7B: call dword ptr [0x361701a4] */ 6629 RECOMP_FLAGS_IN(); 6630 ecx = MEM32(esi + 0x24); /* 0x36112A81: mov ecx, dword ptr [esi + 0x24] */ 6631 edi = MEM32(eax); /* 0x36112A84: mov edi, dword ptr [eax] */ 6632 edx = ecx + 0x84; /* 0x36112A86: lea edx, [ecx + 0x84] */ 6633 MEM32(edx) = edi; /* 0x36112A8C: mov dword ptr [edx], edi */ 6634 edi = MEM32(eax + 0x4); /* 0x36112A8E: mov edi, dword ptr [eax + 4] */ 6635 MEM32(edx + 0x4) = edi; /* 0x36112A91: mov dword ptr [edx + 4], edi */ 6636 edi = MEM32(eax + 0x8); /* 0x36112A94: mov edi, dword ptr [eax + 8] */ 6637 MEM32(edx + 0x8) = edi; /* 0x36112A97: mov dword ptr [edx + 8], edi */ 6638 eax = MEM32(eax + 0xC); /* 0x36112A9A: mov eax, dword ptr [eax + 0xc] */ 6639 PUSH32(esp, 1); /* 0x36112A9D: push 1 */ 6640 MEM32(edx + 0xC) = eax; /* 0x36112A9F: mov dword ptr [edx + 0xc], eax */ 6641 edx = MEM32(ecx); /* 0x36112AA2: mov edx, dword ptr [ecx] */ 6642 PUSH32(esp, 2); /* 0x36112AA4: push 2 */ 6643 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112AA6: call dword ptr [edx + 0x2c] */ 6644 RECOMP_FLAGS_IN(); 6645 ecx = MEM32(ebp + (-0x24)); /* 0x36112AA9: mov ecx, dword ptr [ebp - 0x24] */ 6646 edx = MEM32(ebp + (-0x20)); /* 0x36112AAC: mov edx, dword ptr [ebp - 0x20] */ 6647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6649 esp = esp - 0xCu; /* 0x36112AAF: sub esp, 0xc */ 6650 _flag_k = FK_CMP; 6651 eax = esp; /* 0x36112AB2: mov eax, esp */ 6652 MEM32(eax) = ecx; /* 0x36112AB4: mov dword ptr [eax], ecx */ 6653 ecx = MEM32(ebp + (-0x1C)); /* 0x36112AB6: mov ecx, dword ptr [ebp - 0x1c] */ 6654 MEM32(eax + 0x4) = edx; /* 0x36112AB9: mov dword ptr [eax + 4], edx */ 6655 MEM32(eax + 0x8) = ecx; /* 0x36112ABC: mov dword ptr [eax + 8], ecx */ 6656 eax = MEM32(ebp + (-0x90)); /* 0x36112ABF: mov eax, dword ptr [ebp - 0x90] */ 6657 ecx = MEM32(ebp + (-0x8C)); /* 0x36112AC5: mov ecx, dword ptr [ebp - 0x8c] */ 6658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6660 esp = esp - 0xCu; /* 0x36112ACB: sub esp, 0xc */ 6661 _flag_k = FK_CMP; 6662 edx = esp; /* 0x36112ACE: mov edx, esp */ 6663 MEM32(edx) = eax; /* 0x36112AD0: mov dword ptr [edx], eax */ 6664 eax = MEM32(ebp + (-0x88)); /* 0x36112AD2: mov eax, dword ptr [ebp - 0x88] */ 6665 MEM32(edx + 0x4) = ecx; /* 0x36112AD8: mov dword ptr [edx + 4], ecx */ 6666 MEM32(edx + 0x8) = eax; /* 0x36112ADB: mov dword ptr [edx + 8], eax */ 6667 edx = MEM32(ebp + (-0x3C)); /* 0x36112ADE: mov edx, dword ptr [ebp - 0x3c] */ 6668 eax = MEM32(ebp + (-0x38)); /* 0x36112AE1: mov eax, dword ptr [ebp - 0x38] */ 6669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6671 esp = esp - 0xCu; /* 0x36112AE4: sub esp, 0xc */ 6672 _flag_k = FK_CMP; 6673 ecx = esp; /* 0x36112AE7: mov ecx, esp */ 6674 MEM32(ecx) = edx; /* 0x36112AE9: mov dword ptr [ecx], edx */ 6675 edx = MEM32(ebp + (-0x34)); /* 0x36112AEB: mov edx, dword ptr [ebp - 0x34] */ 6676 MEM32(ecx + 0x4) = eax; /* 0x36112AEE: mov dword ptr [ecx + 4], eax */ 6677 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6679 esp = esp - 0xCu; /* 0x36112AF1: sub esp, 0xc */ 6680 _flag_k = FK_CMP; 6681 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36112AF4: mov dword ptr [ebp - 4], 0xffffffff */ 6682 MEM32(ecx + 0x8) = edx; /* 0x36112AFB: mov dword ptr [ecx + 8], edx */ 6683 eax = esp; /* 0x36112AFE: mov eax, esp */ 6684 ecx = MEM32(ebp + (-0x84)); /* 0x36112B00: mov ecx, dword ptr [ebp - 0x84] */ 6685 MEM32(eax) = ecx; /* 0x36112B06: mov dword ptr [eax], ecx */ 6686 edx = MEM32(ebp + (-0x80)); /* 0x36112B08: mov edx, dword ptr [ebp - 0x80] */ 6687 MEM32(eax + 0x4) = edx; /* 0x36112B0B: mov dword ptr [eax + 4], edx */ 6688 ecx = MEM32(ebp + (-0x7C)); /* 0x36112B0E: mov ecx, dword ptr [ebp - 0x7c] */ 6689 MEM32(eax + 0x8) = ecx; /* 0x36112B11: mov dword ptr [eax + 8], ecx */ 6690 eax = MEM32(ebp + (-0x54)); /* 0x36112B14: mov eax, dword ptr [ebp - 0x54] */ 6691 ecx = MEM32(ebp + (-0x50)); /* 0x36112B17: mov ecx, dword ptr [ebp - 0x50] */ 6692 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6694 esp = esp - 0xCu; /* 0x36112B1A: sub esp, 0xc */ 6695 _flag_k = FK_CMP; 6696 edx = esp; /* 0x36112B1D: mov edx, esp */ 6697 MEM32(edx) = eax; /* 0x36112B1F: mov dword ptr [edx], eax */ 6698 MEM32(edx + 0x4) = ecx; /* 0x36112B21: mov dword ptr [edx + 4], ecx */ 6699 eax = MEM32(ebp + (-0x4C)); /* 0x36112B24: mov eax, dword ptr [ebp - 0x4c] */ 6700 MEM32(edx + 0x8) = eax; /* 0x36112B27: mov dword ptr [edx + 8], eax */ 6701 edx = MEM32(ebp + (-0x9C)); /* 0x36112B2A: mov edx, dword ptr [ebp - 0x9c] */ 6702 eax = MEM32(ebp + (-0x98)); /* 0x36112B30: mov eax, dword ptr [ebp - 0x98] */ 6703 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6705 esp = esp - 0xCu; /* 0x36112B36: sub esp, 0xc */ 6706 _flag_k = FK_CMP; 6707 ecx = esp; /* 0x36112B39: mov ecx, esp */ 6708 MEM32(ecx) = edx; /* 0x36112B3B: mov dword ptr [ecx], edx */ 6709 MEM32(ecx + 0x4) = eax; /* 0x36112B3D: mov dword ptr [ecx + 4], eax */ 6710 edx = MEM32(ebp + (-0x94)); /* 0x36112B40: mov edx, dword ptr [ebp - 0x94] */ 6711 MEM32(ecx + 0x8) = edx; /* 0x36112B46: mov dword ptr [ecx + 8], edx */ 6712 ecx = MEM32(ebp + (-0x6C)); /* 0x36112B49: mov ecx, dword ptr [ebp - 0x6c] */ 6713 edx = MEM32(ebp + (-0x68)); /* 0x36112B4C: mov edx, dword ptr [ebp - 0x68] */ 6714 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6715 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6716 esp = esp - 0xCu; /* 0x36112B4F: sub esp, 0xc */ 6717 _flag_k = FK_CMP; 6718 eax = esp; /* 0x36112B52: mov eax, esp */ 6719 MEM32(eax) = ecx; /* 0x36112B54: mov dword ptr [eax], ecx */ 6720 ecx = MEM32(ebp + (-0x64)); /* 0x36112B56: mov ecx, dword ptr [ebp - 0x64] */ 6721 MEM32(eax + 0x4) = edx; /* 0x36112B59: mov dword ptr [eax + 4], edx */ 6722 MEM32(eax + 0x8) = ecx; /* 0x36112B5C: mov dword ptr [eax + 8], ecx */ 6723 eax = MEM32(ebp + (-0x18)); /* 0x36112B5F: mov eax, dword ptr [ebp - 0x18] */ 6724 ecx = MEM32(ebp + (-0x14)); /* 0x36112B62: mov ecx, dword ptr [ebp - 0x14] */ 6725 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6727 esp = esp - 0xCu; /* 0x36112B65: sub esp, 0xc */ 6728 _flag_k = FK_CMP; 6729 edx = esp; /* 0x36112B68: mov edx, esp */ 6730 MEM32(edx) = eax; /* 0x36112B6A: mov dword ptr [edx], eax */ 6731 eax = MEM32(ebp + (-0x10)); /* 0x36112B6C: mov eax, dword ptr [ebp - 0x10] */ 6732 MEM32(edx + 0x4) = ecx; /* 0x36112B6F: mov dword ptr [edx + 4], ecx */ 6733 MEM32(edx + 0x8) = eax; /* 0x36112B72: mov dword ptr [edx + 8], eax */ 6734 edx = MEM32(ebp + (-0x30)); /* 0x36112B75: mov edx, dword ptr [ebp - 0x30] */ 6735 eax = MEM32(ebp + (-0x2C)); /* 0x36112B78: mov eax, dword ptr [ebp - 0x2c] */ 6736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6738 esp = esp - 0xCu; /* 0x36112B7B: sub esp, 0xc */ 6739 _flag_k = FK_CMP; 6740 ecx = esp; /* 0x36112B7E: mov ecx, esp */ 6741 MEM32(ecx) = edx; /* 0x36112B80: mov dword ptr [ecx], edx */ 6742 edx = MEM32(ebp + (-0x28)); /* 0x36112B82: mov edx, dword ptr [ebp - 0x28] */ 6743 MEM32(ecx + 0x4) = eax; /* 0x36112B85: mov dword ptr [ecx + 4], eax */ 6744 MEM32(ecx + 0x8) = edx; /* 0x36112B88: mov dword ptr [ecx + 8], edx */ 6745 ecx = MEM32(ebp + (-0x48)); /* 0x36112B8B: mov ecx, dword ptr [ebp - 0x48] */ 6746 edx = MEM32(ebp + (-0x44)); /* 0x36112B8E: mov edx, dword ptr [ebp - 0x44] */ 6747 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6749 esp = esp - 0xCu; /* 0x36112B91: sub esp, 0xc */ 6750 _flag_k = FK_CMP; 6751 eax = esp; /* 0x36112B94: mov eax, esp */ 6752 MEM32(eax) = ecx; /* 0x36112B96: mov dword ptr [eax], ecx */ 6753 ecx = MEM32(ebp + (-0x40)); /* 0x36112B98: mov ecx, dword ptr [ebp - 0x40] */ 6754 MEM32(eax + 0x4) = edx; /* 0x36112B9B: mov dword ptr [eax + 4], edx */ 6755 MEM32(eax + 0x8) = ecx; /* 0x36112B9E: mov dword ptr [eax + 8], ecx */ 6756 eax = MEM32(ebp + (-0x60)); /* 0x36112BA1: mov eax, dword ptr [ebp - 0x60] */ 6757 ecx = MEM32(ebp + (-0x5C)); /* 0x36112BA4: mov ecx, dword ptr [ebp - 0x5c] */ 6758 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6760 esp = esp - 0xCu; /* 0x36112BA7: sub esp, 0xc */ 6761 _flag_k = FK_CMP; 6762 edx = esp; /* 0x36112BAA: mov edx, esp */ 6763 MEM32(edx) = eax; /* 0x36112BAC: mov dword ptr [edx], eax */ 6764 eax = MEM32(ebp + (-0x58)); /* 0x36112BAE: mov eax, dword ptr [ebp - 0x58] */ 6765 MEM32(edx + 0x4) = ecx; /* 0x36112BB1: mov dword ptr [edx + 4], ecx */ 6766 MEM32(edx + 0x8) = eax; /* 0x36112BB4: mov dword ptr [edx + 8], eax */ 6767 edx = MEM32(ebp + (-0x78)); /* 0x36112BB7: mov edx, dword ptr [ebp - 0x78] */ 6768 eax = MEM32(ebp + (-0x74)); /* 0x36112BBA: mov eax, dword ptr [ebp - 0x74] */ 6769 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6770 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6771 esp = esp - 0xCu; /* 0x36112BBD: sub esp, 0xc */ 6772 _flag_k = FK_CMP; 6773 ecx = esp; /* 0x36112BC0: mov ecx, esp */ 6774 MEM32(ecx) = edx; /* 0x36112BC2: mov dword ptr [ecx], edx */ 6775 edx = MEM32(ebp + (-0x70)); /* 0x36112BC4: mov edx, dword ptr [ebp - 0x70] */ 6776 MEM32(ecx + 0x4) = eax; /* 0x36112BC7: mov dword ptr [ecx + 4], eax */ 6777 eax = MEM32(esi + 0x8); /* 0x36112BCA: mov eax, dword ptr [esi + 8] */ 6778 MEM32(ecx + 0x8) = edx; /* 0x36112BCD: mov dword ptr [ecx + 8], edx */ 6779 ecx = MEM32(esi + 0xC); /* 0x36112BD0: mov ecx, dword ptr [esi + 0xc] */ 6780 PUSH32(esp, eax); /* 0x36112BD3: push eax */ 6781 PUSH32(esp, ecx); /* 0x36112BD4: push ecx */ 6782 ecx = MEM32(esi + 0x24); /* 0x36112BD5: mov ecx, dword ptr [esi + 0x24] */ 6783 RECOMP_ICALL(MEM32(0x3616F7D4)); /* 0x36112BD8: call dword ptr [0x3616f7d4] */ 6784 RECOMP_FLAGS_IN(); 6785 ecx = MEM32(ebp + (-0xC)); /* 0x36112BDE: mov ecx, dword ptr [ebp - 0xc] */ 6786 edi = POP32_VAL(esp); /* 0x36112BE1: pop edi */ 6787 MEM32(FS_BASE + (0)) = ecx; /* 0x36112BE2: mov dword ptr fs:[0], ecx */ 6788 esi = POP32_VAL(esp); /* 0x36112BE9: pop esi */ 6789 esp = ebp; /* 0x36112BEA: mov esp, ebp */ 6790 ebp = POP32_VAL(esp); /* 0x36112BEC: pop ebp */ 6791 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112BED: ret */ 6792 RECOMP_REGS_OUT(); 6793 } 6794 6795 void sub_36112BF0(void) { 6796 int _fpu_cmp = 0; 6797 uint32_t _cf = 0; 6798 int _df = 1; 6799 uint32_t _flag_k = FK_NONE; 6800 uint32_t _flag_a = 0, _flag_b = 0; 6801 uint32_t _itail_tgt = 0; 6802 RECOMP_REGS_LOCALS 6803 RECOMP_ENTER(0x36112BF0u); 6804 6805 L_36112BF0: 6806 eax = MEM32(ecx + 0xC); /* 0x36112BF0: mov eax, dword ptr [ecx + 0xc] */ 6807 MEM32(ecx + 0x10) = eax; /* 0x36112BF3: mov dword ptr [ecx + 0x10], eax */ 6808 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112BF6: ret */ 6809 RECOMP_REGS_OUT(); 6810 } 6811 6812 void sub_36112C00(void) { 6813 int _fpu_cmp = 0; 6814 uint32_t _cf = 0; 6815 int _df = 1; 6816 uint32_t _flag_k = FK_NONE; 6817 uint32_t _flag_a = 0, _flag_b = 0; 6818 uint32_t _itail_tgt = 0; 6819 RECOMP_REGS_LOCALS 6820 RECOMP_ENTER(0x36112C00u); 6821 6822 L_36112C00: 6823 PUSH32(esp, ebp); /* 0x36112C00: push ebp */ 6824 ebp = esp; /* 0x36112C01: mov ebp, esp */ 6825 eax = MEM32(ebp + 0x8); /* 0x36112C03: mov eax, dword ptr [ebp + 8] */ 6826 edx = MEM32(ebp + 0xC); /* 0x36112C06: mov edx, dword ptr [ebp + 0xc] */ 6827 MEM32(ecx + 0x30) = eax; /* 0x36112C09: mov dword ptr [ecx + 0x30], eax */ 6828 eax = MEM32(ebp + 0x10); /* 0x36112C0C: mov eax, dword ptr [ebp + 0x10] */ 6829 MEM32(ecx + 0x34) = edx; /* 0x36112C0F: mov dword ptr [ecx + 0x34], edx */ 6830 edx = MEM32(ebp + 0x14); /* 0x36112C12: mov edx, dword ptr [ebp + 0x14] */ 6831 MEM32(ecx + 0x38) = eax; /* 0x36112C15: mov dword ptr [ecx + 0x38], eax */ 6832 MEM32(ecx + 0x3C) = edx; /* 0x36112C18: mov dword ptr [ecx + 0x3c], edx */ 6833 ebp = POP32_VAL(esp); /* 0x36112C1B: pop ebp */ 6834 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36112C1C: ret 0x10 */ 6835 RECOMP_REGS_OUT(); 6836 } 6837 6838 void sub_36112C20(void) { 6839 int _fpu_cmp = 0; 6840 uint32_t _cf = 0; 6841 int _df = 1; 6842 uint32_t _flag_k = FK_NONE; 6843 uint32_t _flag_a = 0, _flag_b = 0; 6844 uint32_t _itail_tgt = 0; 6845 RECOMP_REGS_LOCALS 6846 RECOMP_ENTER(0x36112C20u); 6847 6848 L_36112C20: 6849 PUSH32(esp, ebp); /* 0x36112C20: push ebp */ 6850 ebp = esp; /* 0x36112C21: mov ebp, esp */ 6851 eax = MEM32(ebp + 0x8); /* 0x36112C23: mov eax, dword ptr [ebp + 8] */ 6852 edx = MEM32(ebp + 0xC); /* 0x36112C26: mov edx, dword ptr [ebp + 0xc] */ 6853 MEM32(ecx + 0x40) = eax; /* 0x36112C29: mov dword ptr [ecx + 0x40], eax */ 6854 eax = MEM32(ebp + 0x10); /* 0x36112C2C: mov eax, dword ptr [ebp + 0x10] */ 6855 MEM32(ecx + 0x44) = edx; /* 0x36112C2F: mov dword ptr [ecx + 0x44], edx */ 6856 edx = MEM32(ebp + 0x14); /* 0x36112C32: mov edx, dword ptr [ebp + 0x14] */ 6857 MEM32(ecx + 0x48) = eax; /* 0x36112C35: mov dword ptr [ecx + 0x48], eax */ 6858 MEM32(ecx + 0x4C) = edx; /* 0x36112C38: mov dword ptr [ecx + 0x4c], edx */ 6859 ebp = POP32_VAL(esp); /* 0x36112C3B: pop ebp */ 6860 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36112C3C: ret 0x10 */ 6861 RECOMP_REGS_OUT(); 6862 } 6863 6864 void sub_36112C40(void) { 6865 int _fpu_cmp = 0; 6866 uint32_t _cf = 0; 6867 int _df = 1; 6868 uint32_t _flag_k = FK_NONE; 6869 uint32_t _flag_a = 0, _flag_b = 0; 6870 uint32_t _itail_tgt = 0; 6871 RECOMP_REGS_LOCALS 6872 RECOMP_ENTER(0x36112C40u); 6873 6874 L_36112C40: 6875 PUSH32(esp, ebp); /* 0x36112C40: push ebp */ 6876 ebp = esp; /* 0x36112C41: mov ebp, esp */ 6877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6879 esp = esp - 8; /* 0x36112C43: sub esp, 8 */ 6880 _flag_k = FK_CMP; 6881 edx = MEM32(ebp + 0x8); /* 0x36112C46: mov edx, dword ptr [ebp + 8] */ 6882 eax = edx; /* 0x36112C49: mov eax, edx */ 6883 if (24u) _cf = (((eax) >> 23) & 1u); /* 0x36112C4B: shr eax, 0x18 */ 6884 if (24u) { _flag_a = recomp_flags_pack((eax >> 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6885 eax = eax >> 24u; /* 0x36112C4B: shr eax, 0x18 */ 6886 PUSH32(esp, esi); /* 0x36112C4E: push esi */ 6887 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6888 esi = 0; /* 0x36112C4F: xor esi, esi */ 6889 _cf = 0; 6890 _flag_k = FK_TEST; 6891 MEM32(ebp + (-0x8)) = eax; /* 0x36112C51: mov dword ptr [ebp - 8], eax */ 6892 MEM32(ebp + (-0x4)) = esi; /* 0x36112C54: mov dword ptr [ebp - 4], esi */ 6893 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36112C57: fild qword ptr [ebp - 8] */ 6894 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x36112C5A: fmul dword ptr [0x36174e98] */ 6895 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36112C60: fcom dword ptr [0x36170380] */ 6896 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36112C66: fnstsw ax */ 6897 /* test HI8(eax), 0x41u */ /* 0x36112C68: test ah, 0x41 */ 6898 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6899 _cf = 0; 6900 _flag_k = FK_NARROW(FK_TEST, 24); 6901 if (TEST_NZ(_flag_a, _flag_b)) goto L_36112C75; /* 0x36112C6B: jne 0x36112c75 */ 6902 L_36112C6D: 6903 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36112C6D: fstp st(0) */ 6904 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36112C6F: fld dword ptr [0x36170380] */ 6905 L_36112C75: 6906 eax = edx; /* 0x36112C75: mov eax, edx */ 6907 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x30) = _v; } /* 0x36112C77: fstp dword ptr [ecx + 0x30] */ 6908 if (16u) _cf = (((eax) >> 15) & 1u); /* 0x36112C7A: shr eax, 0x10 */ 6909 if (16u) { _flag_a = recomp_flags_pack((eax >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6910 eax = eax >> 16u; /* 0x36112C7A: shr eax, 0x10 */ 6911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 6912 eax = eax & 0xFFu; /* 0x36112C7D: and eax, 0xff */ 6913 _cf = 0; 6914 _flag_k = FK_TEST; 6915 MEM32(ebp + (-0x8)) = eax; /* 0x36112C82: mov dword ptr [ebp - 8], eax */ 6916 MEM32(ebp + (-0x4)) = esi; /* 0x36112C85: mov dword ptr [ebp - 4], esi */ 6917 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36112C88: fild qword ptr [ebp - 8] */ 6918 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x36112C8B: fmul dword ptr [0x36174e98] */ 6919 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36112C91: fcom dword ptr [0x36170380] */ 6920 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36112C97: fnstsw ax */ 6921 /* test HI8(eax), 0x41u */ /* 0x36112C99: test ah, 0x41 */ 6922 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6923 _cf = 0; 6924 _flag_k = FK_NARROW(FK_TEST, 24); 6925 if (TEST_NZ(_flag_a, _flag_b)) goto L_36112CA6; /* 0x36112C9C: jne 0x36112ca6 */ 6926 L_36112C9E: 6927 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36112C9E: fstp st(0) */ 6928 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36112CA0: fld dword ptr [0x36170380] */ 6929 L_36112CA6: 6930 eax = edx; /* 0x36112CA6: mov eax, edx */ 6931 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x34) = _v; } /* 0x36112CA8: fst dword ptr [ecx + 0x34] */ 6932 if (8u) _cf = (((eax) >> 7) & 1u); /* 0x36112CAB: shr eax, 8 */ 6933 if (8u) { _flag_a = recomp_flags_pack((eax >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6934 eax = eax >> 8u; /* 0x36112CAB: shr eax, 8 */ 6935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 6936 eax = eax & 0xFFu; /* 0x36112CAE: and eax, 0xff */ 6937 _cf = 0; 6938 _flag_k = FK_TEST; 6939 MEM32(ebp + (-0x8)) = eax; /* 0x36112CB3: mov dword ptr [ebp - 8], eax */ 6940 MEM32(ebp + (-0x4)) = esi; /* 0x36112CB6: mov dword ptr [ebp - 4], esi */ 6941 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36112CB9: fild qword ptr [ebp - 8] */ 6942 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x36112CBC: fmul dword ptr [0x36174e98] */ 6943 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36112CC2: fcom dword ptr [0x36170380] */ 6944 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36112CC8: fnstsw ax */ 6945 /* test HI8(eax), 0x41u */ /* 0x36112CCA: test ah, 0x41 */ 6946 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6947 _cf = 0; 6948 _flag_k = FK_NARROW(FK_TEST, 24); 6949 if (TEST_NZ(_flag_a, _flag_b)) goto L_36112CD7; /* 0x36112CCD: jne 0x36112cd7 */ 6950 L_36112CCF: 6951 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36112CCF: fstp st(0) */ 6952 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36112CD1: fld dword ptr [0x36170380] */ 6953 L_36112CD7: 6954 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 6955 edx = edx & 0xFFu; /* 0x36112CD7: and edx, 0xff */ 6956 _cf = 0; 6957 _flag_k = FK_TEST; 6958 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x38) = _v; } /* 0x36112CDD: fst dword ptr [ecx + 0x38] */ 6959 MEM32(ebp + (-0x8)) = edx; /* 0x36112CE0: mov dword ptr [ebp - 8], edx */ 6960 MEM32(ebp + (-0x4)) = esi; /* 0x36112CE3: mov dword ptr [ebp - 4], esi */ 6961 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36112CE6: fild qword ptr [ebp - 8] */ 6962 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x36112CE9: fmul dword ptr [0x36174e98] */ 6963 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36112CEF: fcom dword ptr [0x36170380] */ 6964 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36112CF5: fnstsw ax */ 6965 /* test HI8(eax), 0x41u */ /* 0x36112CF7: test ah, 0x41 */ 6966 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 6967 _cf = 0; 6968 _flag_k = FK_NARROW(FK_TEST, 24); 6969 if (TEST_NZ(_flag_a, _flag_b)) goto L_36112D04; /* 0x36112CFA: jne 0x36112d04 */ 6970 L_36112CFC: 6971 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36112CFC: fstp st(0) */ 6972 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36112CFE: fld dword ptr [0x36170380] */ 6973 L_36112D04: 6974 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x3C) = _v; } /* 0x36112D04: fst dword ptr [ecx + 0x3c] */ 6975 MEM32(ecx + 0x40) = esi; /* 0x36112D07: mov dword ptr [ecx + 0x40], esi */ 6976 fp_xch(2); /* 0x36112D0A: fxch st(2) */ 6977 esi = POP32_VAL(esp); /* 0x36112D0C: pop esi */ 6978 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x44) = _v; } /* 0x36112D0D: fstp dword ptr [ecx + 0x44] */ 6979 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x48) = _v; } /* 0x36112D10: fstp dword ptr [ecx + 0x48] */ 6980 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x4C) = _v; } /* 0x36112D13: fstp dword ptr [ecx + 0x4c] */ 6981 esp = ebp; /* 0x36112D16: mov esp, ebp */ 6982 ebp = POP32_VAL(esp); /* 0x36112D18: pop ebp */ 6983 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112D19: ret 4 */ 6984 RECOMP_REGS_OUT(); 6985 } 6986 6987 void sub_36112D20(void) { 6988 int _fpu_cmp = 0; 6989 uint32_t _cf = 0; 6990 int _df = 1; 6991 uint32_t _flag_k = FK_NONE; 6992 uint32_t _flag_a = 0, _flag_b = 0; 6993 uint32_t _itail_tgt = 0; 6994 RECOMP_REGS_LOCALS 6995 RECOMP_ENTER(0x36112D20u); 6996 6997 L_36112D20: 6998 PUSH32(esp, esi); /* 0x36112D20: push esi */ 6999 esi = ecx; /* 0x36112D21: mov esi, ecx */ 7000 eax = MEM32(esi + 0x4); /* 0x36112D23: mov eax, dword ptr [esi + 4] */ 7001 PUSH32(esp, edi); /* 0x36112D26: push edi */ 7002 PUSH32(esp, eax); /* 0x36112D27: push eax */ 7003 RECOMP_ICALL(0x360F7B00u); /* 0x36112D28: call 0x360f7b00 */ /* not lifted */ 7004 RECOMP_FLAGS_IN(); 7005 ecx = eax; /* 0x36112D2D: mov ecx, eax */ 7006 RECOMP_ICALL(0x360FBFF0u); /* 0x36112D2F: call 0x360fbff0 */ /* not lifted */ 7007 RECOMP_FLAGS_IN(); 7008 ecx = eax; /* 0x36112D34: mov ecx, eax */ 7009 RECOMP_ICALL(0x361371A0u); /* 0x36112D36: call 0x361371a0 */ /* not lifted */ 7010 RECOMP_FLAGS_IN(); 7011 edi = eax; /* 0x36112D3B: mov edi, eax */ 7012 PUSH32(esp, 0); /* 0x36112D3D: push 0 */ 7013 ecx = edi; /* 0x36112D3F: mov ecx, edi */ 7014 RECOMP_ICALL(0x36136FE0u); /* 0x36112D41: call 0x36136fe0 */ /* not lifted */ 7015 RECOMP_FLAGS_IN(); 7016 PUSH32(esp, 8); /* 0x36112D46: push 8 */ 7017 ecx = edi; /* 0x36112D48: mov ecx, edi */ 7018 MEM32(esi + 0x28) = eax; /* 0x36112D4A: mov dword ptr [esi + 0x28], eax */ 7019 RECOMP_ICALL(0x36137010u); /* 0x36112D4D: call 0x36137010 */ /* not lifted */ 7020 RECOMP_FLAGS_IN(); 7021 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36112D52: fstp dword ptr [esi + 0x10] */ 7022 PUSH32(esp, 9); /* 0x36112D55: push 9 */ 7023 ecx = edi; /* 0x36112D57: mov ecx, edi */ 7024 RECOMP_ICALL(0x36136FE0u); /* 0x36112D59: call 0x36136fe0 */ /* not lifted */ 7025 RECOMP_FLAGS_IN(); 7026 PUSH32(esp, 0xAu); /* 0x36112D5E: push 0xa */ 7027 ecx = edi; /* 0x36112D60: mov ecx, edi */ 7028 MEM32(esi + 0x2C) = eax; /* 0x36112D62: mov dword ptr [esi + 0x2c], eax */ 7029 RECOMP_ICALL(0x36137010u); /* 0x36112D65: call 0x36137010 */ /* not lifted */ 7030 RECOMP_FLAGS_IN(); 7031 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x36112D6A: fstp dword ptr [esi + 0x30] */ 7032 PUSH32(esp, 0xBu); /* 0x36112D6D: push 0xb */ 7033 ecx = edi; /* 0x36112D6F: mov ecx, edi */ 7034 RECOMP_ICALL(0x36137010u); /* 0x36112D71: call 0x36137010 */ /* not lifted */ 7035 RECOMP_FLAGS_IN(); 7036 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x36112D76: fstp dword ptr [esi + 0x34] */ 7037 PUSH32(esp, 0xCu); /* 0x36112D79: push 0xc */ 7038 ecx = edi; /* 0x36112D7B: mov ecx, edi */ 7039 RECOMP_ICALL(0x36137010u); /* 0x36112D7D: call 0x36137010 */ /* not lifted */ 7040 RECOMP_FLAGS_IN(); 7041 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x36112D82: fstp dword ptr [esi + 0x38] */ 7042 PUSH32(esp, 0xDu); /* 0x36112D85: push 0xd */ 7043 ecx = edi; /* 0x36112D87: mov ecx, edi */ 7044 RECOMP_ICALL(0x36137010u); /* 0x36112D89: call 0x36137010 */ /* not lifted */ 7045 RECOMP_FLAGS_IN(); 7046 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x36112D8E: fstp dword ptr [esi + 0x3c] */ 7047 PUSH32(esp, 0xEu); /* 0x36112D91: push 0xe */ 7048 ecx = edi; /* 0x36112D93: mov ecx, edi */ 7049 RECOMP_ICALL(0x36137010u); /* 0x36112D95: call 0x36137010 */ /* not lifted */ 7050 RECOMP_FLAGS_IN(); 7051 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x36112D9A: fstp dword ptr [esi + 0x40] */ 7052 PUSH32(esp, 0xFu); /* 0x36112D9D: push 0xf */ 7053 ecx = edi; /* 0x36112D9F: mov ecx, edi */ 7054 RECOMP_ICALL(0x36137010u); /* 0x36112DA1: call 0x36137010 */ /* not lifted */ 7055 RECOMP_FLAGS_IN(); 7056 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x44) = _v; } /* 0x36112DA6: fstp dword ptr [esi + 0x44] */ 7057 PUSH32(esp, 0x10u); /* 0x36112DA9: push 0x10 */ 7058 ecx = edi; /* 0x36112DAB: mov ecx, edi */ 7059 RECOMP_ICALL(0x36137010u); /* 0x36112DAD: call 0x36137010 */ /* not lifted */ 7060 RECOMP_FLAGS_IN(); 7061 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x48) = _v; } /* 0x36112DB2: fstp dword ptr [esi + 0x48] */ 7062 PUSH32(esp, 0x11u); /* 0x36112DB5: push 0x11 */ 7063 ecx = edi; /* 0x36112DB7: mov ecx, edi */ 7064 RECOMP_ICALL(0x36137010u); /* 0x36112DB9: call 0x36137010 */ /* not lifted */ 7065 RECOMP_FLAGS_IN(); 7066 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x4C) = _v; } /* 0x36112DBE: fstp dword ptr [esi + 0x4c] */ 7067 edi = POP32_VAL(esp); /* 0x36112DC1: pop edi */ 7068 esi = POP32_VAL(esp); /* 0x36112DC2: pop esi */ 7069 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112DC3: ret */ 7070 RECOMP_REGS_OUT(); 7071 } 7072 7073 void sub_36112DD0(void) { 7074 int _fpu_cmp = 0; 7075 uint32_t _cf = 0; 7076 int _df = 1; 7077 uint32_t _flag_k = FK_NONE; 7078 uint32_t _flag_a = 0, _flag_b = 0; 7079 uint32_t _itail_tgt = 0; 7080 RECOMP_REGS_LOCALS 7081 RECOMP_ENTER(0x36112DD0u); 7082 7083 L_36112DD0: 7084 PUSH32(esp, ebp); /* 0x36112DD0: push ebp */ 7085 ebp = esp; /* 0x36112DD1: mov ebp, esp */ 7086 PUSH32(esp, 0xFFFFFFFFu); /* 0x36112DD3: push -1 */ 7087 PUSH32(esp, 0x3616AD44u); /* 0x36112DD5: push 0x3616ad44 */ 7088 eax = MEM32(FS_BASE + (0)); /* 0x36112DDA: mov eax, dword ptr fs:[0] */ 7089 PUSH32(esp, eax); /* 0x36112DE0: push eax */ 7090 MEM32(FS_BASE + (0)) = esp; /* 0x36112DE1: mov dword ptr fs:[0], esp */ 7091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x60u); 7092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7093 esp = esp - 0x60u; /* 0x36112DE8: sub esp, 0x60 */ 7094 _flag_k = FK_CMP; 7095 PUSH32(esp, esi); /* 0x36112DEB: push esi */ 7096 PUSH32(esp, edi); /* 0x36112DEC: push edi */ 7097 PUSH32(esp, 0x1B0Cu); /* 0x36112DED: push 0x1b0c */ 7098 esi = ecx; /* 0x36112DF2: mov esi, ecx */ 7099 RECOMP_ICALL(0x3615FD6Au); /* 0x36112DF4: call 0x3615fd6a */ /* not lifted */ 7100 RECOMP_FLAGS_IN(); 7101 edi = eax; /* 0x36112DF9: mov edi, eax */ 7102 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7104 esp = esp + 4; /* 0x36112DFB: add esp, 4 */ 7105 _flag_k = FK_ADD; 7106 MEM32(ebp + (-0x10)) = edi; /* 0x36112DFE: mov dword ptr [ebp - 0x10], edi */ 7107 /* test edi, edi */ /* 0x36112E01: test edi, edi */ 7108 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7109 _cf = 0; 7110 _flag_k = FK_TEST; 7111 MEM32(ebp + (-0x4)) = 0; /* 0x36112E03: mov dword ptr [ebp - 4], 0 */ 7112 if (TEST_Z(_flag_a, _flag_b)) goto L_36112E61; /* 0x36112E0A: je 0x36112e61 */ 7113 L_36112E0C: 7114 eax = MEM32(esi + 0x2C); /* 0x36112E0C: mov eax, dword ptr [esi + 0x2c] */ 7115 PUSH32(esp, 1); /* 0x36112E0F: push 1 */ 7116 PUSH32(esp, 0); /* 0x36112E11: push 0 */ 7117 PUSH32(esp, eax); /* 0x36112E13: push eax */ 7118 RECOMP_ICALL(0x360F7B00u); /* 0x36112E14: call 0x360f7b00 */ /* not lifted */ 7119 RECOMP_FLAGS_IN(); 7120 ecx = eax; /* 0x36112E19: mov ecx, eax */ 7121 RECOMP_ICALL(0x360FBE40u); /* 0x36112E1B: call 0x360fbe40 */ /* not lifted */ 7122 RECOMP_FLAGS_IN(); 7123 PUSH32(esp, eax); /* 0x36112E20: push eax */ 7124 ecx = edi; /* 0x36112E21: mov ecx, edi */ 7125 RECOMP_ICALL(MEM32(0x3616F7E0)); /* 0x36112E23: call dword ptr [0x3616f7e0] */ 7126 RECOMP_FLAGS_IN(); 7127 MEM32(edi) = 0x36176A9Cu; /* 0x36112E29: mov dword ptr [edi], 0x36176a9c */ 7128 MEM32(edi + 0x8) = 0x36176A8Cu; /* 0x36112E2F: mov dword ptr [edi + 8], 0x36176a8c */ 7129 MEM32(edi + 0x20) = 0x36176A7Cu; /* 0x36112E36: mov dword ptr [edi + 0x20], 0x36176a7c */ 7130 MEM32(edi + 0x38) = 0x36176A6Cu; /* 0x36112E3D: mov dword ptr [edi + 0x38], 0x36176a6c */ 7131 MEM32(edi + 0x50) = 0x36176A5Cu; /* 0x36112E44: mov dword ptr [edi + 0x50], 0x36176a5c */ 7132 MEM32(edi + 0x138) = 0x36176A4Cu; /* 0x36112E4B: mov dword ptr [edi + 0x138], 0x36176a4c */ 7133 MEM32(edi + 0x150) = 0x36176A3Cu; /* 0x36112E55: mov dword ptr [edi + 0x150], 0x36176a3c */ 7134 goto L_36112E63; /* 0x36112E5F: jmp 0x36112e63 */ 7135 L_36112E61: 7136 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7137 edi = 0; /* 0x36112E61: xor edi, edi */ 7138 _cf = 0; 7139 _flag_k = FK_TEST; 7140 L_36112E63: 7141 ecx = MEM32(esi + 0x2C); /* 0x36112E63: mov ecx, dword ptr [esi + 0x2c] */ 7142 PUSH32(esp, ecx); /* 0x36112E66: push ecx */ 7143 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36112E67: mov dword ptr [ebp - 4], 0xffffffff */ 7144 MEM32(esi + 0x24) = edi; /* 0x36112E6E: mov dword ptr [esi + 0x24], edi */ 7145 RECOMP_ICALL(0x360F7B00u); /* 0x36112E71: call 0x360f7b00 */ /* not lifted */ 7146 RECOMP_FLAGS_IN(); 7147 ecx = eax; /* 0x36112E76: mov ecx, eax */ 7148 RECOMP_ICALL(0x360FBE60u); /* 0x36112E78: call 0x360fbe60 */ /* not lifted */ 7149 RECOMP_FLAGS_IN(); 7150 ecx = MEM32(esi + 0x24); /* 0x36112E7D: mov ecx, dword ptr [esi + 0x24] */ 7151 MEM32(ecx + 0x1E0) = eax; /* 0x36112E80: mov dword ptr [ecx + 0x1e0], eax */ 7152 edx = MEM32(esi + 0x2C); /* 0x36112E86: mov edx, dword ptr [esi + 0x2c] */ 7153 PUSH32(esp, edx); /* 0x36112E89: push edx */ 7154 RECOMP_ICALL(0x360F7B00u); /* 0x36112E8A: call 0x360f7b00 */ /* not lifted */ 7155 RECOMP_FLAGS_IN(); 7156 ecx = eax; /* 0x36112E8F: mov ecx, eax */ 7157 RECOMP_ICALL(0x360FBEA0u); /* 0x36112E91: call 0x360fbea0 */ /* not lifted */ 7158 RECOMP_FLAGS_IN(); 7159 ecx = MEM32(esi + 0x24); /* 0x36112E96: mov ecx, dword ptr [esi + 0x24] */ 7160 MEM32(ecx + 0x1E4) = eax; /* 0x36112E99: mov dword ptr [ecx + 0x1e4], eax */ 7161 ecx = MEM32(esi + 0x20); /* 0x36112E9F: mov ecx, dword ptr [esi + 0x20] */ 7162 eax = ebp + (-0x1C); /* 0x36112EA2: lea eax, [ebp - 0x1c] */ 7163 PUSH32(esp, eax); /* 0x36112EA5: push eax */ 7164 RECOMP_ICALL(0x36133E80u); /* 0x36112EA6: call 0x36133e80 */ /* not lifted */ 7165 RECOMP_FLAGS_IN(); 7166 ecx = MEM32(esi + 0x24); /* 0x36112EAB: mov ecx, dword ptr [esi + 0x24] */ 7167 edi = MEM32(eax); /* 0x36112EAE: mov edi, dword ptr [eax] */ 7168 edx = ecx + 0x78; /* 0x36112EB0: lea edx, [ecx + 0x78] */ 7169 MEM32(edx) = edi; /* 0x36112EB3: mov dword ptr [edx], edi */ 7170 edi = MEM32(eax + 0x4); /* 0x36112EB5: mov edi, dword ptr [eax + 4] */ 7171 MEM32(edx + 0x4) = edi; /* 0x36112EB8: mov dword ptr [edx + 4], edi */ 7172 eax = MEM32(eax + 0x8); /* 0x36112EBB: mov eax, dword ptr [eax + 8] */ 7173 PUSH32(esp, 1); /* 0x36112EBE: push 1 */ 7174 MEM32(edx + 0x8) = eax; /* 0x36112EC0: mov dword ptr [edx + 8], eax */ 7175 edx = MEM32(ecx); /* 0x36112EC3: mov edx, dword ptr [ecx] */ 7176 PUSH32(esp, 1); /* 0x36112EC5: push 1 */ 7177 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112EC7: call dword ptr [edx + 0x2c] */ 7178 RECOMP_FLAGS_IN(); 7179 ecx = MEM32(esi + 0x20); /* 0x36112ECA: mov ecx, dword ptr [esi + 0x20] */ 7180 eax = ebp + (-0x6C); /* 0x36112ECD: lea eax, [ebp - 0x6c] */ 7181 PUSH32(esp, eax); /* 0x36112ED0: push eax */ 7182 RECOMP_ICALL(0x36133DC0u); /* 0x36112ED1: call 0x36133dc0 */ /* not lifted */ 7183 RECOMP_FLAGS_IN(); 7184 PUSH32(esp, eax); /* 0x36112ED6: push eax */ 7185 ecx = ebp + (-0x2C); /* 0x36112ED7: lea ecx, [ebp - 0x2c] */ 7186 MEM32(ebp + (-0x4)) = 1; /* 0x36112EDA: mov dword ptr [ebp - 4], 1 */ 7187 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36112EE1: call dword ptr [0x361701a4] */ 7188 RECOMP_FLAGS_IN(); 7189 ecx = MEM32(esi + 0x24); /* 0x36112EE7: mov ecx, dword ptr [esi + 0x24] */ 7190 edi = MEM32(eax); /* 0x36112EEA: mov edi, dword ptr [eax] */ 7191 edx = ecx + 0x84; /* 0x36112EEC: lea edx, [ecx + 0x84] */ 7192 MEM32(edx) = edi; /* 0x36112EF2: mov dword ptr [edx], edi */ 7193 edi = MEM32(eax + 0x4); /* 0x36112EF4: mov edi, dword ptr [eax + 4] */ 7194 MEM32(edx + 0x4) = edi; /* 0x36112EF7: mov dword ptr [edx + 4], edi */ 7195 edi = MEM32(eax + 0x8); /* 0x36112EFA: mov edi, dword ptr [eax + 8] */ 7196 MEM32(edx + 0x8) = edi; /* 0x36112EFD: mov dword ptr [edx + 8], edi */ 7197 eax = MEM32(eax + 0xC); /* 0x36112F00: mov eax, dword ptr [eax + 0xc] */ 7198 PUSH32(esp, 1); /* 0x36112F03: push 1 */ 7199 MEM32(edx + 0xC) = eax; /* 0x36112F05: mov dword ptr [edx + 0xc], eax */ 7200 edx = MEM32(ecx); /* 0x36112F08: mov edx, dword ptr [ecx] */ 7201 PUSH32(esp, 2); /* 0x36112F0A: push 2 */ 7202 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36112F0C: call dword ptr [edx + 0x2c] */ 7203 RECOMP_FLAGS_IN(); 7204 eax = MEM32(esi + 0x20); /* 0x36112F0F: mov eax, dword ptr [esi + 0x20] */ 7205 SET_LO8(edx, MEM8(eax + 0x108)); /* 0x36112F12: mov dl, byte ptr [eax + 0x108] */ 7206 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7207 ecx = 0; /* 0x36112F18: xor ecx, ecx */ 7208 _cf = 0; 7209 _flag_k = FK_TEST; 7210 /* test LO8(edx), LO8(edx) */ /* 0x36112F1A: test dl, dl */ 7211 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 7212 _cf = 0; 7213 _flag_k = FK_NARROW(FK_TEST, 24); 7214 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36112F1C: sete cl */ 7215 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36112F1F: mov dword ptr [ebp - 4], 0xffffffff */ 7216 PUSH32(esp, ecx); /* 0x36112F26: push ecx */ 7217 ecx = MEM32(esi + 0x24); /* 0x36112F27: mov ecx, dword ptr [esi + 0x24] */ 7218 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x36112F2A: call dword ptr [0x3616f620] */ 7219 RECOMP_FLAGS_IN(); 7220 ecx = MEM32(esi + 0x24); /* 0x36112F30: mov ecx, dword ptr [esi + 0x24] */ 7221 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36112F33: call dword ptr [0x3616f5f8] */ 7222 RECOMP_FLAGS_IN(); 7223 ecx = MEM32(ebp + (-0xC)); /* 0x36112F39: mov ecx, dword ptr [ebp - 0xc] */ 7224 edi = POP32_VAL(esp); /* 0x36112F3C: pop edi */ 7225 esi = POP32_VAL(esp); /* 0x36112F3D: pop esi */ 7226 MEM32(FS_BASE + (0)) = ecx; /* 0x36112F3E: mov dword ptr fs:[0], ecx */ 7227 esp = ebp; /* 0x36112F45: mov esp, ebp */ 7228 ebp = POP32_VAL(esp); /* 0x36112F47: pop ebp */ 7229 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36112F48: ret */ 7230 RECOMP_REGS_OUT(); 7231 } 7232 7233 void sub_36112F50(void) { 7234 int _fpu_cmp = 0; 7235 uint32_t _cf = 0; 7236 int _df = 1; 7237 uint32_t _flag_k = FK_NONE; 7238 uint32_t _flag_a = 0, _flag_b = 0; 7239 uint32_t _itail_tgt = 0; 7240 RECOMP_REGS_LOCALS 7241 RECOMP_ENTER(0x36112F50u); 7242 7243 L_36112F50: 7244 PUSH32(esp, ebp); /* 0x36112F50: push ebp */ 7245 ebp = esp; /* 0x36112F51: mov ebp, esp */ 7246 PUSH32(esp, esi); /* 0x36112F53: push esi */ 7247 esi = ecx; /* 0x36112F54: mov esi, ecx */ 7248 RECOMP_ICALL(MEM32(0x3616F7E4)); /* 0x36112F56: call dword ptr [0x3616f7e4] */ 7249 RECOMP_FLAGS_IN(); 7250 /* test MEM8(ebp + 0x8), 1 */ /* 0x36112F5C: test byte ptr [ebp + 8], 1 */ 7251 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7252 _cf = 0; 7253 _flag_k = FK_NARROW(FK_TEST, 24); 7254 if (TEST_Z(_flag_a, _flag_b)) goto L_36112F6B; /* 0x36112F60: je 0x36112f6b */ 7255 L_36112F62: 7256 PUSH32(esp, esi); /* 0x36112F62: push esi */ 7257 RECOMP_ICALL(0x3615FCC4u); /* 0x36112F63: call 0x3615fcc4 */ /* not lifted */ 7258 RECOMP_FLAGS_IN(); 7259 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7261 esp = esp + 4; /* 0x36112F68: add esp, 4 */ 7262 _flag_k = FK_ADD; 7263 L_36112F6B: 7264 eax = esi; /* 0x36112F6B: mov eax, esi */ 7265 esi = POP32_VAL(esp); /* 0x36112F6D: pop esi */ 7266 ebp = POP32_VAL(esp); /* 0x36112F6E: pop ebp */ 7267 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112F6F: ret 4 */ 7268 RECOMP_REGS_OUT(); 7269 } 7270 7271 void sub_36112F80(void) { 7272 int _fpu_cmp = 0; 7273 uint32_t _cf = 0; 7274 int _df = 1; 7275 uint32_t _flag_k = FK_NONE; 7276 uint32_t _flag_a = 0, _flag_b = 0; 7277 uint32_t _itail_tgt = 0; 7278 RECOMP_REGS_LOCALS 7279 RECOMP_ENTER(0x36112F80u); 7280 7281 goto L_36112F80; 7282 L_36112F50: 7283 PUSH32(esp, ebp); /* 0x36112F50: push ebp */ 7284 ebp = esp; /* 0x36112F51: mov ebp, esp */ 7285 PUSH32(esp, esi); /* 0x36112F53: push esi */ 7286 esi = ecx; /* 0x36112F54: mov esi, ecx */ 7287 RECOMP_ICALL(MEM32(0x3616F7E4)); /* 0x36112F56: call dword ptr [0x3616f7e4] */ 7288 RECOMP_FLAGS_IN(); 7289 /* test MEM8(ebp + 0x8), 1 */ /* 0x36112F5C: test byte ptr [ebp + 8], 1 */ 7290 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7291 _cf = 0; 7292 _flag_k = FK_NARROW(FK_TEST, 24); 7293 if (TEST_Z(_flag_a, _flag_b)) goto L_36112F6B; /* 0x36112F60: je 0x36112f6b */ 7294 L_36112F62: 7295 PUSH32(esp, esi); /* 0x36112F62: push esi */ 7296 RECOMP_ICALL(0x3615FCC4u); /* 0x36112F63: call 0x3615fcc4 */ /* not lifted */ 7297 RECOMP_FLAGS_IN(); 7298 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7300 esp = esp + 4; /* 0x36112F68: add esp, 4 */ 7301 _flag_k = FK_ADD; 7302 L_36112F6B: 7303 eax = esi; /* 0x36112F6B: mov eax, esi */ 7304 esi = POP32_VAL(esp); /* 0x36112F6D: pop esi */ 7305 ebp = POP32_VAL(esp); /* 0x36112F6E: pop ebp */ 7306 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112F6F: ret 4 */ 7307 L_36112F80: 7308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 7309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7310 ecx = ecx - 8; /* 0x36112F80: sub ecx, 8 */ 7311 _flag_k = FK_CMP; 7312 RECOMP_BACKEDGE(); 7313 goto L_36112F50; /* 0x36112F83: jmp 0x36112f50 */ 7314 { RECOMP_REGS_OUT(); return; } /* end of function */ 7315 RECOMP_REGS_OUT(); 7316 } 7317 7318 void sub_36112F90(void) { 7319 int _fpu_cmp = 0; 7320 uint32_t _cf = 0; 7321 int _df = 1; 7322 uint32_t _flag_k = FK_NONE; 7323 uint32_t _flag_a = 0, _flag_b = 0; 7324 uint32_t _itail_tgt = 0; 7325 RECOMP_REGS_LOCALS 7326 RECOMP_ENTER(0x36112F90u); 7327 7328 goto L_36112F90; 7329 L_36112F50: 7330 PUSH32(esp, ebp); /* 0x36112F50: push ebp */ 7331 ebp = esp; /* 0x36112F51: mov ebp, esp */ 7332 PUSH32(esp, esi); /* 0x36112F53: push esi */ 7333 esi = ecx; /* 0x36112F54: mov esi, ecx */ 7334 RECOMP_ICALL(MEM32(0x3616F7E4)); /* 0x36112F56: call dword ptr [0x3616f7e4] */ 7335 RECOMP_FLAGS_IN(); 7336 /* test MEM8(ebp + 0x8), 1 */ /* 0x36112F5C: test byte ptr [ebp + 8], 1 */ 7337 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7338 _cf = 0; 7339 _flag_k = FK_NARROW(FK_TEST, 24); 7340 if (TEST_Z(_flag_a, _flag_b)) goto L_36112F6B; /* 0x36112F60: je 0x36112f6b */ 7341 L_36112F62: 7342 PUSH32(esp, esi); /* 0x36112F62: push esi */ 7343 RECOMP_ICALL(0x3615FCC4u); /* 0x36112F63: call 0x3615fcc4 */ /* not lifted */ 7344 RECOMP_FLAGS_IN(); 7345 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7347 esp = esp + 4; /* 0x36112F68: add esp, 4 */ 7348 _flag_k = FK_ADD; 7349 L_36112F6B: 7350 eax = esi; /* 0x36112F6B: mov eax, esi */ 7351 esi = POP32_VAL(esp); /* 0x36112F6D: pop esi */ 7352 ebp = POP32_VAL(esp); /* 0x36112F6E: pop ebp */ 7353 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112F6F: ret 4 */ 7354 L_36112F90: 7355 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 7356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7357 ecx = ecx - 0x20u; /* 0x36112F90: sub ecx, 0x20 */ 7358 _flag_k = FK_CMP; 7359 RECOMP_BACKEDGE(); 7360 goto L_36112F50; /* 0x36112F93: jmp 0x36112f50 */ 7361 { RECOMP_REGS_OUT(); return; } /* end of function */ 7362 RECOMP_REGS_OUT(); 7363 } 7364 7365 void sub_36112FA0(void) { 7366 int _fpu_cmp = 0; 7367 uint32_t _cf = 0; 7368 int _df = 1; 7369 uint32_t _flag_k = FK_NONE; 7370 uint32_t _flag_a = 0, _flag_b = 0; 7371 uint32_t _itail_tgt = 0; 7372 RECOMP_REGS_LOCALS 7373 RECOMP_ENTER(0x36112FA0u); 7374 7375 goto L_36112FA0; 7376 L_36112F50: 7377 PUSH32(esp, ebp); /* 0x36112F50: push ebp */ 7378 ebp = esp; /* 0x36112F51: mov ebp, esp */ 7379 PUSH32(esp, esi); /* 0x36112F53: push esi */ 7380 esi = ecx; /* 0x36112F54: mov esi, ecx */ 7381 RECOMP_ICALL(MEM32(0x3616F7E4)); /* 0x36112F56: call dword ptr [0x3616f7e4] */ 7382 RECOMP_FLAGS_IN(); 7383 /* test MEM8(ebp + 0x8), 1 */ /* 0x36112F5C: test byte ptr [ebp + 8], 1 */ 7384 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7385 _cf = 0; 7386 _flag_k = FK_NARROW(FK_TEST, 24); 7387 if (TEST_Z(_flag_a, _flag_b)) goto L_36112F6B; /* 0x36112F60: je 0x36112f6b */ 7388 L_36112F62: 7389 PUSH32(esp, esi); /* 0x36112F62: push esi */ 7390 RECOMP_ICALL(0x3615FCC4u); /* 0x36112F63: call 0x3615fcc4 */ /* not lifted */ 7391 RECOMP_FLAGS_IN(); 7392 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7393 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7394 esp = esp + 4; /* 0x36112F68: add esp, 4 */ 7395 _flag_k = FK_ADD; 7396 L_36112F6B: 7397 eax = esi; /* 0x36112F6B: mov eax, esi */ 7398 esi = POP32_VAL(esp); /* 0x36112F6D: pop esi */ 7399 ebp = POP32_VAL(esp); /* 0x36112F6E: pop ebp */ 7400 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112F6F: ret 4 */ 7401 L_36112FA0: 7402 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 7403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7404 ecx = ecx - 0x38u; /* 0x36112FA0: sub ecx, 0x38 */ 7405 _flag_k = FK_CMP; 7406 RECOMP_BACKEDGE(); 7407 goto L_36112F50; /* 0x36112FA3: jmp 0x36112f50 */ 7408 { RECOMP_REGS_OUT(); return; } /* end of function */ 7409 RECOMP_REGS_OUT(); 7410 } 7411 7412 void sub_36112FB0(void) { 7413 int _fpu_cmp = 0; 7414 uint32_t _cf = 0; 7415 int _df = 1; 7416 uint32_t _flag_k = FK_NONE; 7417 uint32_t _flag_a = 0, _flag_b = 0; 7418 uint32_t _itail_tgt = 0; 7419 RECOMP_REGS_LOCALS 7420 RECOMP_ENTER(0x36112FB0u); 7421 7422 goto L_36112FB0; 7423 L_36112F50: 7424 PUSH32(esp, ebp); /* 0x36112F50: push ebp */ 7425 ebp = esp; /* 0x36112F51: mov ebp, esp */ 7426 PUSH32(esp, esi); /* 0x36112F53: push esi */ 7427 esi = ecx; /* 0x36112F54: mov esi, ecx */ 7428 RECOMP_ICALL(MEM32(0x3616F7E4)); /* 0x36112F56: call dword ptr [0x3616f7e4] */ 7429 RECOMP_FLAGS_IN(); 7430 /* test MEM8(ebp + 0x8), 1 */ /* 0x36112F5C: test byte ptr [ebp + 8], 1 */ 7431 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7432 _cf = 0; 7433 _flag_k = FK_NARROW(FK_TEST, 24); 7434 if (TEST_Z(_flag_a, _flag_b)) goto L_36112F6B; /* 0x36112F60: je 0x36112f6b */ 7435 L_36112F62: 7436 PUSH32(esp, esi); /* 0x36112F62: push esi */ 7437 RECOMP_ICALL(0x3615FCC4u); /* 0x36112F63: call 0x3615fcc4 */ /* not lifted */ 7438 RECOMP_FLAGS_IN(); 7439 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7440 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7441 esp = esp + 4; /* 0x36112F68: add esp, 4 */ 7442 _flag_k = FK_ADD; 7443 L_36112F6B: 7444 eax = esi; /* 0x36112F6B: mov eax, esi */ 7445 esi = POP32_VAL(esp); /* 0x36112F6D: pop esi */ 7446 ebp = POP32_VAL(esp); /* 0x36112F6E: pop ebp */ 7447 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112F6F: ret 4 */ 7448 L_36112FB0: 7449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 7450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7451 ecx = ecx - 0x50u; /* 0x36112FB0: sub ecx, 0x50 */ 7452 _flag_k = FK_CMP; 7453 RECOMP_BACKEDGE(); 7454 goto L_36112F50; /* 0x36112FB3: jmp 0x36112f50 */ 7455 { RECOMP_REGS_OUT(); return; } /* end of function */ 7456 RECOMP_REGS_OUT(); 7457 } 7458 7459 void sub_36112FC0(void) { 7460 int _fpu_cmp = 0; 7461 uint32_t _cf = 0; 7462 int _df = 1; 7463 uint32_t _flag_k = FK_NONE; 7464 uint32_t _flag_a = 0, _flag_b = 0; 7465 uint32_t _itail_tgt = 0; 7466 RECOMP_REGS_LOCALS 7467 RECOMP_ENTER(0x36112FC0u); 7468 7469 goto L_36112FC0; 7470 L_36112F50: 7471 PUSH32(esp, ebp); /* 0x36112F50: push ebp */ 7472 ebp = esp; /* 0x36112F51: mov ebp, esp */ 7473 PUSH32(esp, esi); /* 0x36112F53: push esi */ 7474 esi = ecx; /* 0x36112F54: mov esi, ecx */ 7475 RECOMP_ICALL(MEM32(0x3616F7E4)); /* 0x36112F56: call dword ptr [0x3616f7e4] */ 7476 RECOMP_FLAGS_IN(); 7477 /* test MEM8(ebp + 0x8), 1 */ /* 0x36112F5C: test byte ptr [ebp + 8], 1 */ 7478 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7479 _cf = 0; 7480 _flag_k = FK_NARROW(FK_TEST, 24); 7481 if (TEST_Z(_flag_a, _flag_b)) goto L_36112F6B; /* 0x36112F60: je 0x36112f6b */ 7482 L_36112F62: 7483 PUSH32(esp, esi); /* 0x36112F62: push esi */ 7484 RECOMP_ICALL(0x3615FCC4u); /* 0x36112F63: call 0x3615fcc4 */ /* not lifted */ 7485 RECOMP_FLAGS_IN(); 7486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7488 esp = esp + 4; /* 0x36112F68: add esp, 4 */ 7489 _flag_k = FK_ADD; 7490 L_36112F6B: 7491 eax = esi; /* 0x36112F6B: mov eax, esi */ 7492 esi = POP32_VAL(esp); /* 0x36112F6D: pop esi */ 7493 ebp = POP32_VAL(esp); /* 0x36112F6E: pop ebp */ 7494 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112F6F: ret 4 */ 7495 L_36112FC0: 7496 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 7497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7498 ecx = ecx - 0x138u; /* 0x36112FC0: sub ecx, 0x138 */ 7499 _flag_k = FK_CMP; 7500 RECOMP_BACKEDGE(); 7501 goto L_36112F50; /* 0x36112FC6: jmp 0x36112f50 */ 7502 { RECOMP_REGS_OUT(); return; } /* end of function */ 7503 RECOMP_REGS_OUT(); 7504 } 7505 7506 void sub_36112FD0(void) { 7507 int _fpu_cmp = 0; 7508 uint32_t _cf = 0; 7509 int _df = 1; 7510 uint32_t _flag_k = FK_NONE; 7511 uint32_t _flag_a = 0, _flag_b = 0; 7512 uint32_t _itail_tgt = 0; 7513 RECOMP_REGS_LOCALS 7514 RECOMP_ENTER(0x36112FD0u); 7515 7516 goto L_36112FD0; 7517 L_36112F50: 7518 PUSH32(esp, ebp); /* 0x36112F50: push ebp */ 7519 ebp = esp; /* 0x36112F51: mov ebp, esp */ 7520 PUSH32(esp, esi); /* 0x36112F53: push esi */ 7521 esi = ecx; /* 0x36112F54: mov esi, ecx */ 7522 RECOMP_ICALL(MEM32(0x3616F7E4)); /* 0x36112F56: call dword ptr [0x3616f7e4] */ 7523 RECOMP_FLAGS_IN(); 7524 /* test MEM8(ebp + 0x8), 1 */ /* 0x36112F5C: test byte ptr [ebp + 8], 1 */ 7525 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7526 _cf = 0; 7527 _flag_k = FK_NARROW(FK_TEST, 24); 7528 if (TEST_Z(_flag_a, _flag_b)) goto L_36112F6B; /* 0x36112F60: je 0x36112f6b */ 7529 L_36112F62: 7530 PUSH32(esp, esi); /* 0x36112F62: push esi */ 7531 RECOMP_ICALL(0x3615FCC4u); /* 0x36112F63: call 0x3615fcc4 */ /* not lifted */ 7532 RECOMP_FLAGS_IN(); 7533 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7535 esp = esp + 4; /* 0x36112F68: add esp, 4 */ 7536 _flag_k = FK_ADD; 7537 L_36112F6B: 7538 eax = esi; /* 0x36112F6B: mov eax, esi */ 7539 esi = POP32_VAL(esp); /* 0x36112F6D: pop esi */ 7540 ebp = POP32_VAL(esp); /* 0x36112F6E: pop ebp */ 7541 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36112F6F: ret 4 */ 7542 L_36112FD0: 7543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 7544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7545 ecx = ecx - 0x150u; /* 0x36112FD0: sub ecx, 0x150 */ 7546 _flag_k = FK_CMP; 7547 RECOMP_BACKEDGE(); 7548 goto L_36112F50; /* 0x36112FD6: jmp 0x36112f50 */ 7549 { RECOMP_REGS_OUT(); return; } /* end of function */ 7550 RECOMP_REGS_OUT(); 7551 } 7552 7553 void sub_36112FE0(void) { 7554 int _fpu_cmp = 0; 7555 uint32_t _cf = 0; 7556 int _df = 1; 7557 uint32_t _flag_k = FK_NONE; 7558 uint32_t _flag_a = 0, _flag_b = 0; 7559 uint32_t _itail_tgt = 0; 7560 RECOMP_REGS_LOCALS 7561 RECOMP_ENTER(0x36112FE0u); 7562 7563 L_36112FE0: 7564 PUSH32(esp, ebp); /* 0x36112FE0: push ebp */ 7565 ebp = esp; /* 0x36112FE1: mov ebp, esp */ 7566 PUSH32(esp, 0xFFFFFFFFu); /* 0x36112FE3: push -1 */ 7567 PUSH32(esp, 0x3616AD63u); /* 0x36112FE5: push 0x3616ad63 */ 7568 eax = MEM32(FS_BASE + (0)); /* 0x36112FEA: mov eax, dword ptr fs:[0] */ 7569 PUSH32(esp, eax); /* 0x36112FF0: push eax */ 7570 MEM32(FS_BASE + (0)) = esp; /* 0x36112FF1: mov dword ptr fs:[0], esp */ 7571 PUSH32(esp, ecx); /* 0x36112FF8: push ecx */ 7572 eax = MEM32(ebp + 0x8); /* 0x36112FF9: mov eax, dword ptr [ebp + 8] */ 7573 PUSH32(esp, ebx); /* 0x36112FFC: push ebx */ 7574 PUSH32(esp, esi); /* 0x36112FFD: push esi */ 7575 PUSH32(esp, edi); /* 0x36112FFE: push edi */ 7576 esi = ecx; /* 0x36112FFF: mov esi, ecx */ 7577 PUSH32(esp, eax); /* 0x36113001: push eax */ 7578 MEM32(ebp + (-0x10)) = esi; /* 0x36113002: mov dword ptr [ebp - 0x10], esi */ 7579 RECOMP_ICALL(0x360FC270u); /* 0x36113005: call 0x360fc270 */ /* not lifted */ 7580 RECOMP_FLAGS_IN(); 7581 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7582 ebx = 0; /* 0x3611300A: xor ebx, ebx */ 7583 _cf = 0; 7584 _flag_k = FK_TEST; 7585 MEM32(esi + 0x20) = ebx; /* 0x3611300C: mov dword ptr [esi + 0x20], ebx */ 7586 MEM32(esi + 0x24) = ebx; /* 0x3611300F: mov dword ptr [esi + 0x24], ebx */ 7587 MEM32(esi + 0xA8) = ebx; /* 0x36113012: mov dword ptr [esi + 0xa8], ebx */ 7588 MEM32(esi + 0xB8) = ebx; /* 0x36113018: mov dword ptr [esi + 0xb8], ebx */ 7589 MEM32(esi + 0xBC) = ebx; /* 0x3611301E: mov dword ptr [esi + 0xbc], ebx */ 7590 MEM32(esi + 0xC0) = ebx; /* 0x36113024: mov dword ptr [esi + 0xc0], ebx */ 7591 ecx = esi; /* 0x3611302A: mov ecx, esi */ 7592 MEM32(ebp + (-0x4)) = ebx; /* 0x3611302C: mov dword ptr [ebp - 4], ebx */ 7593 MEM32(esi) = 0x36176AF4u; /* 0x3611302F: mov dword ptr [esi], 0x36176af4 */ 7594 RECOMP_ICALL(0x36112140u); /* 0x36113035: call 0x36112140 */ /* not lifted */ 7595 RECOMP_FLAGS_IN(); 7596 ecx = MEM32(esi + 0x4); /* 0x3611303A: mov ecx, dword ptr [esi + 4] */ 7597 PUSH32(esp, ecx); /* 0x3611303D: push ecx */ 7598 RECOMP_ICALL(0x360F7B00u); /* 0x3611303E: call 0x360f7b00 */ /* not lifted */ 7599 RECOMP_FLAGS_IN(); 7600 ecx = eax; /* 0x36113043: mov ecx, eax */ 7601 RECOMP_ICALL(0x360FBFF0u); /* 0x36113045: call 0x360fbff0 */ /* not lifted */ 7602 RECOMP_FLAGS_IN(); 7603 ecx = eax; /* 0x3611304A: mov ecx, eax */ 7604 RECOMP_ICALL(0x361371A0u); /* 0x3611304C: call 0x361371a0 */ /* not lifted */ 7605 RECOMP_FLAGS_IN(); 7606 PUSH32(esp, 0x10Cu); /* 0x36113051: push 0x10c */ 7607 edi = eax; /* 0x36113056: mov edi, eax */ 7608 RECOMP_ICALL(0x3615FD6Au); /* 0x36113058: call 0x3615fd6a */ /* not lifted */ 7609 RECOMP_FLAGS_IN(); 7610 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7612 esp = esp + 4; /* 0x3611305D: add esp, 4 */ 7613 _flag_k = FK_ADD; 7614 MEM32(ebp + 0x8) = eax; /* 0x36113060: mov dword ptr [ebp + 8], eax */ 7615 /* cmp eax, ebx */ /* 0x36113063: cmp eax, ebx */ 7616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7618 _flag_k = FK_CMP; 7619 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36113065: mov byte ptr [ebp - 4], 1 */ 7620 if (CMP_EQ(_flag_a, _flag_b)) goto L_36113074; /* 0x36113069: je 0x36113074 */ 7621 L_3611306B: 7622 ecx = eax; /* 0x3611306B: mov ecx, eax */ 7623 RECOMP_ICALL(0x36132920u); /* 0x3611306D: call 0x36132920 */ /* not lifted */ 7624 RECOMP_FLAGS_IN(); 7625 goto L_36113076; /* 0x36113072: jmp 0x36113076 */ 7626 L_36113074: 7627 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7628 eax = 0; /* 0x36113074: xor eax, eax */ 7629 _cf = 0; 7630 _flag_k = FK_TEST; 7631 L_36113076: 7632 MEM32(esi + 0x20) = eax; /* 0x36113076: mov dword ptr [esi + 0x20], eax */ 7633 eax = MEM32(esi + 0x28); /* 0x36113079: mov eax, dword ptr [esi + 0x28] */ 7634 edx = eax; /* 0x3611307C: mov edx, eax */ 7635 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 7636 edx = edx & 2; /* 0x3611307E: and edx, 2 */ 7637 _cf = 0; 7638 _flag_k = FK_TEST; 7639 /* cmp LO8(edx), 2 */ /* 0x36113081: cmp dl, 2 */ 7640 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 7641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7642 _flag_k = FK_NARROW(FK_CMP, 24); 7643 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36113084: sete cl */ 7644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7645 eax = eax & 1; /* 0x36113087: and eax, 1 */ 7646 _cf = 0; 7647 _flag_k = FK_TEST; 7648 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7649 SET_LO8(eax, LO8(eax) - 1); /* 0x3611308A: dec al */ 7650 _flag_k = FK_NARROW(FK_DEC, 24); 7651 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7652 _cf = (LO8(eax)) != 0; 7653 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3611308C: neg al */ 7654 _flag_k = FK_NARROW(FK_CMP, 24); 7655 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611308E: sbb al, al */ 7656 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 7657 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7658 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7659 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7660 SET_LO8(eax, LO8(eax) + 1); /* 0x36113090: inc al */ 7661 _flag_k = FK_NARROW(FK_INC, 24); 7662 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36113092: mov byte ptr [ebp - 4], bl */ 7663 PUSH32(esp, ecx); /* 0x36113095: push ecx */ 7664 ecx = edi; /* 0x36113096: mov ecx, edi */ 7665 PUSH32(esp, eax); /* 0x36113098: push eax */ 7666 PUSH32(esp, 7); /* 0x36113099: push 7 */ 7667 RECOMP_ICALL(0x36136FE0u); /* 0x3611309B: call 0x36136fe0 */ /* not lifted */ 7668 RECOMP_FLAGS_IN(); 7669 edx = MEM32(esi + 0x28); /* 0x361130A0: mov edx, dword ptr [esi + 0x28] */ 7670 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7671 edx = edx & 4; /* 0x361130A3: and edx, 4 */ 7672 _cf = 0; 7673 _flag_k = FK_TEST; 7674 PUSH32(esp, eax); /* 0x361130A6: push eax */ 7675 /* cmp LO8(edx), 4 */ /* 0x361130A7: cmp dl, 4 */ 7676 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 7677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7678 _flag_k = FK_NARROW(FK_CMP, 24); 7679 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361130AA: sete al */ 7680 ecx = edi; /* 0x361130AD: mov ecx, edi */ 7681 PUSH32(esp, eax); /* 0x361130AF: push eax */ 7682 PUSH32(esp, 6); /* 0x361130B0: push 6 */ 7683 RECOMP_ICALL(0x36137010u); /* 0x361130B2: call 0x36137010 */ /* not lifted */ 7684 RECOMP_FLAGS_IN(); 7685 PUSH32(esp, ecx); /* 0x361130B7: push ecx */ 7686 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361130B8: fstp dword ptr [esp] */ 7687 PUSH32(esp, 5); /* 0x361130BB: push 5 */ 7688 ecx = edi; /* 0x361130BD: mov ecx, edi */ 7689 RECOMP_ICALL(0x36137010u); /* 0x361130BF: call 0x36137010 */ /* not lifted */ 7690 RECOMP_FLAGS_IN(); 7691 PUSH32(esp, ecx); /* 0x361130C4: push ecx */ 7692 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361130C5: fstp dword ptr [esp] */ 7693 PUSH32(esp, 4); /* 0x361130C8: push 4 */ 7694 ecx = edi; /* 0x361130CA: mov ecx, edi */ 7695 RECOMP_ICALL(0x36137010u); /* 0x361130CC: call 0x36137010 */ /* not lifted */ 7696 RECOMP_FLAGS_IN(); 7697 PUSH32(esp, ecx); /* 0x361130D1: push ecx */ 7698 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361130D2: fstp dword ptr [esp] */ 7699 PUSH32(esp, 3); /* 0x361130D5: push 3 */ 7700 ecx = edi; /* 0x361130D7: mov ecx, edi */ 7701 RECOMP_ICALL(0x36137010u); /* 0x361130D9: call 0x36137010 */ /* not lifted */ 7702 RECOMP_FLAGS_IN(); 7703 PUSH32(esp, ecx); /* 0x361130DE: push ecx */ 7704 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361130DF: fstp dword ptr [esp] */ 7705 PUSH32(esp, 2); /* 0x361130E2: push 2 */ 7706 ecx = edi; /* 0x361130E4: mov ecx, edi */ 7707 RECOMP_ICALL(0x36137010u); /* 0x361130E6: call 0x36137010 */ /* not lifted */ 7708 RECOMP_FLAGS_IN(); 7709 PUSH32(esp, ecx); /* 0x361130EB: push ecx */ 7710 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361130EC: fstp dword ptr [esp] */ 7711 PUSH32(esp, 1); /* 0x361130EF: push 1 */ 7712 ecx = edi; /* 0x361130F1: mov ecx, edi */ 7713 RECOMP_ICALL(0x36137010u); /* 0x361130F3: call 0x36137010 */ /* not lifted */ 7714 RECOMP_FLAGS_IN(); 7715 PUSH32(esp, ecx); /* 0x361130F8: push ecx */ 7716 ecx = MEM32(ebp + 0xC); /* 0x361130F9: mov ecx, dword ptr [ebp + 0xc] */ 7717 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361130FC: fstp dword ptr [esp] */ 7718 PUSH32(esp, ecx); /* 0x361130FF: push ecx */ 7719 ecx = MEM32(esi + 0x20); /* 0x36113100: mov ecx, dword ptr [esi + 0x20] */ 7720 RECOMP_ICALL(0x36132A30u); /* 0x36113103: call 0x36132a30 */ /* not lifted */ 7721 RECOMP_FLAGS_IN(); 7722 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7723 _cf = (LO8(eax)) != 0; 7724 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36113108: neg al */ 7725 _flag_k = FK_NARROW(FK_CMP, 24); 7726 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611310A: sbb al, al */ 7727 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 7728 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7729 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7730 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7731 SET_LO8(eax, LO8(eax) + 1); /* 0x3611310C: inc al */ 7732 _flag_k = FK_NARROW(FK_INC, 24); 7733 ecx = esi; /* 0x3611310E: mov ecx, esi */ 7734 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36113110: mov byte ptr [esi + 0x14], al */ 7735 RECOMP_ICALL(0x36113990u); /* 0x36113113: call 0x36113990 */ /* not lifted */ 7736 RECOMP_FLAGS_IN(); 7737 ecx = MEM32(ebp + (-0xC)); /* 0x36113118: mov ecx, dword ptr [ebp - 0xc] */ 7738 edi = POP32_VAL(esp); /* 0x3611311B: pop edi */ 7739 eax = esi; /* 0x3611311C: mov eax, esi */ 7740 esi = POP32_VAL(esp); /* 0x3611311E: pop esi */ 7741 ebx = POP32_VAL(esp); /* 0x3611311F: pop ebx */ 7742 MEM32(FS_BASE + (0)) = ecx; /* 0x36113120: mov dword ptr fs:[0], ecx */ 7743 esp = ebp; /* 0x36113127: mov esp, ebp */ 7744 ebp = POP32_VAL(esp); /* 0x36113129: pop ebp */ 7745 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3611312A: ret 8 */ 7746 RECOMP_REGS_OUT(); 7747 } 7748 7749 void sub_36113130(void) { 7750 int _fpu_cmp = 0; 7751 uint32_t _cf = 0; 7752 int _df = 1; 7753 uint32_t _flag_k = FK_NONE; 7754 uint32_t _flag_a = 0, _flag_b = 0; 7755 uint32_t _itail_tgt = 0; 7756 RECOMP_REGS_LOCALS 7757 RECOMP_ENTER(0x36113130u); 7758 7759 L_36113130: 7760 PUSH32(esp, ebp); /* 0x36113130: push ebp */ 7761 ebp = esp; /* 0x36113131: mov ebp, esp */ 7762 PUSH32(esp, esi); /* 0x36113133: push esi */ 7763 esi = ecx; /* 0x36113134: mov esi, ecx */ 7764 RECOMP_ICALL(0x36113560u); /* 0x36113136: call 0x36113560 */ /* not lifted */ 7765 RECOMP_FLAGS_IN(); 7766 /* test MEM8(ebp + 0x8), 1 */ /* 0x3611313B: test byte ptr [ebp + 8], 1 */ 7767 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7768 _cf = 0; 7769 _flag_k = FK_NARROW(FK_TEST, 24); 7770 if (TEST_Z(_flag_a, _flag_b)) goto L_3611314A; /* 0x3611313F: je 0x3611314a */ 7771 L_36113141: 7772 PUSH32(esp, esi); /* 0x36113141: push esi */ 7773 RECOMP_ICALL(0x3615FCC4u); /* 0x36113142: call 0x3615fcc4 */ /* not lifted */ 7774 RECOMP_FLAGS_IN(); 7775 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7777 esp = esp + 4; /* 0x36113147: add esp, 4 */ 7778 _flag_k = FK_ADD; 7779 L_3611314A: 7780 eax = esi; /* 0x3611314A: mov eax, esi */ 7781 esi = POP32_VAL(esp); /* 0x3611314C: pop esi */ 7782 ebp = POP32_VAL(esp); /* 0x3611314D: pop ebp */ 7783 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611314E: ret 4 */ 7784 RECOMP_REGS_OUT(); 7785 } 7786 7787 void sub_36113160(void) { 7788 int _fpu_cmp = 0; 7789 uint32_t _cf = 0; 7790 int _df = 1; 7791 uint32_t _flag_k = FK_NONE; 7792 uint32_t _flag_a = 0, _flag_b = 0; 7793 uint32_t _itail_tgt = 0; 7794 RECOMP_REGS_LOCALS 7795 RECOMP_ENTER(0x36113160u); 7796 7797 L_36113160: 7798 PUSH32(esp, ebp); /* 0x36113160: push ebp */ 7799 ebp = esp; /* 0x36113161: mov ebp, esp */ 7800 PUSH32(esp, 0xFFFFFFFFu); /* 0x36113163: push -1 */ 7801 PUSH32(esp, 0x3616AD83u); /* 0x36113165: push 0x3616ad83 */ 7802 eax = MEM32(FS_BASE + (0)); /* 0x3611316A: mov eax, dword ptr fs:[0] */ 7803 PUSH32(esp, eax); /* 0x36113170: push eax */ 7804 MEM32(FS_BASE + (0)) = esp; /* 0x36113171: mov dword ptr fs:[0], esp */ 7805 PUSH32(esp, ecx); /* 0x36113178: push ecx */ 7806 eax = MEM32(ebp + 0x8); /* 0x36113179: mov eax, dword ptr [ebp + 8] */ 7807 PUSH32(esp, ebx); /* 0x3611317C: push ebx */ 7808 PUSH32(esp, esi); /* 0x3611317D: push esi */ 7809 PUSH32(esp, edi); /* 0x3611317E: push edi */ 7810 esi = ecx; /* 0x3611317F: mov esi, ecx */ 7811 PUSH32(esp, eax); /* 0x36113181: push eax */ 7812 MEM32(ebp + (-0x10)) = esi; /* 0x36113182: mov dword ptr [ebp - 0x10], esi */ 7813 RECOMP_ICALL(0x360FC270u); /* 0x36113185: call 0x360fc270 */ /* not lifted */ 7814 RECOMP_FLAGS_IN(); 7815 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7816 ebx = 0; /* 0x3611318A: xor ebx, ebx */ 7817 _cf = 0; 7818 _flag_k = FK_TEST; 7819 MEM32(esi + 0x20) = ebx; /* 0x3611318C: mov dword ptr [esi + 0x20], ebx */ 7820 MEM32(esi + 0x24) = ebx; /* 0x3611318F: mov dword ptr [esi + 0x24], ebx */ 7821 MEM32(esi + 0xA8) = ebx; /* 0x36113192: mov dword ptr [esi + 0xa8], ebx */ 7822 MEM32(esi + 0xB8) = ebx; /* 0x36113198: mov dword ptr [esi + 0xb8], ebx */ 7823 MEM32(esi + 0xBC) = ebx; /* 0x3611319E: mov dword ptr [esi + 0xbc], ebx */ 7824 MEM32(esi + 0xC0) = ebx; /* 0x361131A4: mov dword ptr [esi + 0xc0], ebx */ 7825 ecx = esi; /* 0x361131AA: mov ecx, esi */ 7826 MEM32(ebp + (-0x4)) = ebx; /* 0x361131AC: mov dword ptr [ebp - 4], ebx */ 7827 MEM32(esi) = 0x36176AF4u; /* 0x361131AF: mov dword ptr [esi], 0x36176af4 */ 7828 RECOMP_ICALL(0x36112140u); /* 0x361131B5: call 0x36112140 */ /* not lifted */ 7829 RECOMP_FLAGS_IN(); 7830 ecx = MEM32(esi + 0x4); /* 0x361131BA: mov ecx, dword ptr [esi + 4] */ 7831 PUSH32(esp, ecx); /* 0x361131BD: push ecx */ 7832 RECOMP_ICALL(0x360F7B00u); /* 0x361131BE: call 0x360f7b00 */ /* not lifted */ 7833 RECOMP_FLAGS_IN(); 7834 ecx = eax; /* 0x361131C3: mov ecx, eax */ 7835 RECOMP_ICALL(0x360FBFF0u); /* 0x361131C5: call 0x360fbff0 */ /* not lifted */ 7836 RECOMP_FLAGS_IN(); 7837 ecx = eax; /* 0x361131CA: mov ecx, eax */ 7838 RECOMP_ICALL(0x361371A0u); /* 0x361131CC: call 0x361371a0 */ /* not lifted */ 7839 RECOMP_FLAGS_IN(); 7840 PUSH32(esp, 0x10Cu); /* 0x361131D1: push 0x10c */ 7841 edi = eax; /* 0x361131D6: mov edi, eax */ 7842 RECOMP_ICALL(0x3615FD6Au); /* 0x361131D8: call 0x3615fd6a */ /* not lifted */ 7843 RECOMP_FLAGS_IN(); 7844 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7845 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7846 esp = esp + 4; /* 0x361131DD: add esp, 4 */ 7847 _flag_k = FK_ADD; 7848 MEM32(ebp + 0x8) = eax; /* 0x361131E0: mov dword ptr [ebp + 8], eax */ 7849 /* cmp eax, ebx */ /* 0x361131E3: cmp eax, ebx */ 7850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7852 _flag_k = FK_CMP; 7853 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x361131E5: mov byte ptr [ebp - 4], 1 */ 7854 if (CMP_EQ(_flag_a, _flag_b)) goto L_361131F4; /* 0x361131E9: je 0x361131f4 */ 7855 L_361131EB: 7856 ecx = eax; /* 0x361131EB: mov ecx, eax */ 7857 RECOMP_ICALL(0x36132920u); /* 0x361131ED: call 0x36132920 */ /* not lifted */ 7858 RECOMP_FLAGS_IN(); 7859 goto L_361131F6; /* 0x361131F2: jmp 0x361131f6 */ 7860 L_361131F4: 7861 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7862 eax = 0; /* 0x361131F4: xor eax, eax */ 7863 _cf = 0; 7864 _flag_k = FK_TEST; 7865 L_361131F6: 7866 MEM32(esi + 0x20) = eax; /* 0x361131F6: mov dword ptr [esi + 0x20], eax */ 7867 eax = MEM32(esi + 0x28); /* 0x361131F9: mov eax, dword ptr [esi + 0x28] */ 7868 edx = eax; /* 0x361131FC: mov edx, eax */ 7869 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 7870 edx = edx & 2; /* 0x361131FE: and edx, 2 */ 7871 _cf = 0; 7872 _flag_k = FK_TEST; 7873 /* cmp LO8(edx), 2 */ /* 0x36113201: cmp dl, 2 */ 7874 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 7875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7876 _flag_k = FK_NARROW(FK_CMP, 24); 7877 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36113204: sete cl */ 7878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7879 eax = eax & 1; /* 0x36113207: and eax, 1 */ 7880 _cf = 0; 7881 _flag_k = FK_TEST; 7882 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7883 SET_LO8(eax, LO8(eax) - 1); /* 0x3611320A: dec al */ 7884 _flag_k = FK_NARROW(FK_DEC, 24); 7885 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7886 _cf = (LO8(eax)) != 0; 7887 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3611320C: neg al */ 7888 _flag_k = FK_NARROW(FK_CMP, 24); 7889 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611320E: sbb al, al */ 7890 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 7891 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7892 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7893 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7894 SET_LO8(eax, LO8(eax) + 1); /* 0x36113210: inc al */ 7895 _flag_k = FK_NARROW(FK_INC, 24); 7896 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36113212: mov byte ptr [ebp - 4], bl */ 7897 PUSH32(esp, ecx); /* 0x36113215: push ecx */ 7898 ecx = edi; /* 0x36113216: mov ecx, edi */ 7899 PUSH32(esp, eax); /* 0x36113218: push eax */ 7900 PUSH32(esp, 7); /* 0x36113219: push 7 */ 7901 RECOMP_ICALL(0x36136FE0u); /* 0x3611321B: call 0x36136fe0 */ /* not lifted */ 7902 RECOMP_FLAGS_IN(); 7903 edx = MEM32(esi + 0x28); /* 0x36113220: mov edx, dword ptr [esi + 0x28] */ 7904 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7905 edx = edx & 4; /* 0x36113223: and edx, 4 */ 7906 _cf = 0; 7907 _flag_k = FK_TEST; 7908 PUSH32(esp, eax); /* 0x36113226: push eax */ 7909 /* cmp LO8(edx), 4 */ /* 0x36113227: cmp dl, 4 */ 7910 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 7911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7912 _flag_k = FK_NARROW(FK_CMP, 24); 7913 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3611322A: sete al */ 7914 ecx = edi; /* 0x3611322D: mov ecx, edi */ 7915 PUSH32(esp, eax); /* 0x3611322F: push eax */ 7916 PUSH32(esp, 6); /* 0x36113230: push 6 */ 7917 RECOMP_ICALL(0x36137010u); /* 0x36113232: call 0x36137010 */ /* not lifted */ 7918 RECOMP_FLAGS_IN(); 7919 PUSH32(esp, ecx); /* 0x36113237: push ecx */ 7920 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113238: fstp dword ptr [esp] */ 7921 PUSH32(esp, 5); /* 0x3611323B: push 5 */ 7922 ecx = edi; /* 0x3611323D: mov ecx, edi */ 7923 RECOMP_ICALL(0x36137010u); /* 0x3611323F: call 0x36137010 */ /* not lifted */ 7924 RECOMP_FLAGS_IN(); 7925 PUSH32(esp, ecx); /* 0x36113244: push ecx */ 7926 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113245: fstp dword ptr [esp] */ 7927 PUSH32(esp, 4); /* 0x36113248: push 4 */ 7928 ecx = edi; /* 0x3611324A: mov ecx, edi */ 7929 RECOMP_ICALL(0x36137010u); /* 0x3611324C: call 0x36137010 */ /* not lifted */ 7930 RECOMP_FLAGS_IN(); 7931 PUSH32(esp, ecx); /* 0x36113251: push ecx */ 7932 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113252: fstp dword ptr [esp] */ 7933 PUSH32(esp, 3); /* 0x36113255: push 3 */ 7934 ecx = edi; /* 0x36113257: mov ecx, edi */ 7935 RECOMP_ICALL(0x36137010u); /* 0x36113259: call 0x36137010 */ /* not lifted */ 7936 RECOMP_FLAGS_IN(); 7937 PUSH32(esp, ecx); /* 0x3611325E: push ecx */ 7938 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611325F: fstp dword ptr [esp] */ 7939 PUSH32(esp, 2); /* 0x36113262: push 2 */ 7940 ecx = edi; /* 0x36113264: mov ecx, edi */ 7941 RECOMP_ICALL(0x36137010u); /* 0x36113266: call 0x36137010 */ /* not lifted */ 7942 RECOMP_FLAGS_IN(); 7943 PUSH32(esp, ecx); /* 0x3611326B: push ecx */ 7944 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611326C: fstp dword ptr [esp] */ 7945 PUSH32(esp, 1); /* 0x3611326F: push 1 */ 7946 ecx = edi; /* 0x36113271: mov ecx, edi */ 7947 RECOMP_ICALL(0x36137010u); /* 0x36113273: call 0x36137010 */ /* not lifted */ 7948 RECOMP_FLAGS_IN(); 7949 PUSH32(esp, ecx); /* 0x36113278: push ecx */ 7950 ecx = MEM32(ebp + 0xC); /* 0x36113279: mov ecx, dword ptr [ebp + 0xc] */ 7951 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611327C: fstp dword ptr [esp] */ 7952 PUSH32(esp, ecx); /* 0x3611327F: push ecx */ 7953 ecx = MEM32(esi + 0x20); /* 0x36113280: mov ecx, dword ptr [esi + 0x20] */ 7954 RECOMP_ICALL(0x36132BA0u); /* 0x36113283: call 0x36132ba0 */ /* not lifted */ 7955 RECOMP_FLAGS_IN(); 7956 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7957 _cf = (LO8(eax)) != 0; 7958 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36113288: neg al */ 7959 _flag_k = FK_NARROW(FK_CMP, 24); 7960 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611328A: sbb al, al */ 7961 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 7962 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7963 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7964 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7965 SET_LO8(eax, LO8(eax) + 1); /* 0x3611328C: inc al */ 7966 _flag_k = FK_NARROW(FK_INC, 24); 7967 ecx = esi; /* 0x3611328E: mov ecx, esi */ 7968 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36113290: mov byte ptr [esi + 0x14], al */ 7969 RECOMP_ICALL(0x36113990u); /* 0x36113293: call 0x36113990 */ /* not lifted */ 7970 RECOMP_FLAGS_IN(); 7971 ecx = MEM32(ebp + (-0xC)); /* 0x36113298: mov ecx, dword ptr [ebp - 0xc] */ 7972 edi = POP32_VAL(esp); /* 0x3611329B: pop edi */ 7973 eax = esi; /* 0x3611329C: mov eax, esi */ 7974 esi = POP32_VAL(esp); /* 0x3611329E: pop esi */ 7975 ebx = POP32_VAL(esp); /* 0x3611329F: pop ebx */ 7976 MEM32(FS_BASE + (0)) = ecx; /* 0x361132A0: mov dword ptr fs:[0], ecx */ 7977 esp = ebp; /* 0x361132A7: mov esp, ebp */ 7978 ebp = POP32_VAL(esp); /* 0x361132A9: pop ebp */ 7979 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361132AA: ret 8 */ 7980 RECOMP_REGS_OUT(); 7981 } 7982 7983 void sub_361132B0(void) { 7984 int _fpu_cmp = 0; 7985 uint32_t _cf = 0; 7986 int _df = 1; 7987 uint32_t _flag_k = FK_NONE; 7988 uint32_t _flag_a = 0, _flag_b = 0; 7989 uint32_t _itail_tgt = 0; 7990 RECOMP_REGS_LOCALS 7991 RECOMP_ENTER(0x361132B0u); 7992 7993 L_361132B0: 7994 PUSH32(esp, ebp); /* 0x361132B0: push ebp */ 7995 ebp = esp; /* 0x361132B1: mov ebp, esp */ 7996 PUSH32(esp, 0xFFFFFFFFu); /* 0x361132B3: push -1 */ 7997 PUSH32(esp, 0x3616ADA3u); /* 0x361132B5: push 0x3616ada3 */ 7998 eax = MEM32(FS_BASE + (0)); /* 0x361132BA: mov eax, dword ptr fs:[0] */ 7999 PUSH32(esp, eax); /* 0x361132C0: push eax */ 8000 MEM32(FS_BASE + (0)) = esp; /* 0x361132C1: mov dword ptr fs:[0], esp */ 8001 PUSH32(esp, ecx); /* 0x361132C8: push ecx */ 8002 eax = MEM32(ebp + 0x8); /* 0x361132C9: mov eax, dword ptr [ebp + 8] */ 8003 PUSH32(esp, ebx); /* 0x361132CC: push ebx */ 8004 PUSH32(esp, esi); /* 0x361132CD: push esi */ 8005 PUSH32(esp, edi); /* 0x361132CE: push edi */ 8006 esi = ecx; /* 0x361132CF: mov esi, ecx */ 8007 PUSH32(esp, eax); /* 0x361132D1: push eax */ 8008 MEM32(ebp + (-0x10)) = esi; /* 0x361132D2: mov dword ptr [ebp - 0x10], esi */ 8009 RECOMP_ICALL(0x360FC270u); /* 0x361132D5: call 0x360fc270 */ /* not lifted */ 8010 RECOMP_FLAGS_IN(); 8011 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8012 ebx = 0; /* 0x361132DA: xor ebx, ebx */ 8013 _cf = 0; 8014 _flag_k = FK_TEST; 8015 MEM32(esi + 0x20) = ebx; /* 0x361132DC: mov dword ptr [esi + 0x20], ebx */ 8016 MEM32(esi + 0x24) = ebx; /* 0x361132DF: mov dword ptr [esi + 0x24], ebx */ 8017 MEM32(esi + 0xA8) = ebx; /* 0x361132E2: mov dword ptr [esi + 0xa8], ebx */ 8018 MEM32(esi + 0xB8) = ebx; /* 0x361132E8: mov dword ptr [esi + 0xb8], ebx */ 8019 MEM32(esi + 0xBC) = ebx; /* 0x361132EE: mov dword ptr [esi + 0xbc], ebx */ 8020 MEM32(esi + 0xC0) = ebx; /* 0x361132F4: mov dword ptr [esi + 0xc0], ebx */ 8021 ecx = esi; /* 0x361132FA: mov ecx, esi */ 8022 MEM32(ebp + (-0x4)) = ebx; /* 0x361132FC: mov dword ptr [ebp - 4], ebx */ 8023 MEM32(esi) = 0x36176AF4u; /* 0x361132FF: mov dword ptr [esi], 0x36176af4 */ 8024 RECOMP_ICALL(0x36112140u); /* 0x36113305: call 0x36112140 */ /* not lifted */ 8025 RECOMP_FLAGS_IN(); 8026 ecx = MEM32(esi + 0x4); /* 0x3611330A: mov ecx, dword ptr [esi + 4] */ 8027 PUSH32(esp, ecx); /* 0x3611330D: push ecx */ 8028 RECOMP_ICALL(0x360F7B00u); /* 0x3611330E: call 0x360f7b00 */ /* not lifted */ 8029 RECOMP_FLAGS_IN(); 8030 ecx = eax; /* 0x36113313: mov ecx, eax */ 8031 RECOMP_ICALL(0x360FBFF0u); /* 0x36113315: call 0x360fbff0 */ /* not lifted */ 8032 RECOMP_FLAGS_IN(); 8033 ecx = eax; /* 0x3611331A: mov ecx, eax */ 8034 RECOMP_ICALL(0x361371A0u); /* 0x3611331C: call 0x361371a0 */ /* not lifted */ 8035 RECOMP_FLAGS_IN(); 8036 PUSH32(esp, 0x10Cu); /* 0x36113321: push 0x10c */ 8037 edi = eax; /* 0x36113326: mov edi, eax */ 8038 RECOMP_ICALL(0x3615FD6Au); /* 0x36113328: call 0x3615fd6a */ /* not lifted */ 8039 RECOMP_FLAGS_IN(); 8040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8042 esp = esp + 4; /* 0x3611332D: add esp, 4 */ 8043 _flag_k = FK_ADD; 8044 MEM32(ebp + 0x8) = eax; /* 0x36113330: mov dword ptr [ebp + 8], eax */ 8045 /* cmp eax, ebx */ /* 0x36113333: cmp eax, ebx */ 8046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8048 _flag_k = FK_CMP; 8049 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36113335: mov byte ptr [ebp - 4], 1 */ 8050 if (CMP_EQ(_flag_a, _flag_b)) goto L_36113344; /* 0x36113339: je 0x36113344 */ 8051 L_3611333B: 8052 ecx = eax; /* 0x3611333B: mov ecx, eax */ 8053 RECOMP_ICALL(0x36132920u); /* 0x3611333D: call 0x36132920 */ /* not lifted */ 8054 RECOMP_FLAGS_IN(); 8055 goto L_36113346; /* 0x36113342: jmp 0x36113346 */ 8056 L_36113344: 8057 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8058 eax = 0; /* 0x36113344: xor eax, eax */ 8059 _cf = 0; 8060 _flag_k = FK_TEST; 8061 L_36113346: 8062 MEM32(esi + 0x20) = eax; /* 0x36113346: mov dword ptr [esi + 0x20], eax */ 8063 eax = MEM32(esi + 0x28); /* 0x36113349: mov eax, dword ptr [esi + 0x28] */ 8064 edx = eax; /* 0x3611334C: mov edx, eax */ 8065 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 8066 edx = edx & 2; /* 0x3611334E: and edx, 2 */ 8067 _cf = 0; 8068 _flag_k = FK_TEST; 8069 /* cmp LO8(edx), 2 */ /* 0x36113351: cmp dl, 2 */ 8070 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 8071 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8072 _flag_k = FK_NARROW(FK_CMP, 24); 8073 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36113354: sete cl */ 8074 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8075 eax = eax & 1; /* 0x36113357: and eax, 1 */ 8076 _cf = 0; 8077 _flag_k = FK_TEST; 8078 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8079 SET_LO8(eax, LO8(eax) - 1); /* 0x3611335A: dec al */ 8080 _flag_k = FK_NARROW(FK_DEC, 24); 8081 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8082 _cf = (LO8(eax)) != 0; 8083 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x3611335C: neg al */ 8084 _flag_k = FK_NARROW(FK_CMP, 24); 8085 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x3611335E: sbb al, al */ 8086 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 8087 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8088 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8089 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8090 SET_LO8(eax, LO8(eax) + 1); /* 0x36113360: inc al */ 8091 _flag_k = FK_NARROW(FK_INC, 24); 8092 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36113362: mov byte ptr [ebp - 4], bl */ 8093 PUSH32(esp, ecx); /* 0x36113365: push ecx */ 8094 ecx = edi; /* 0x36113366: mov ecx, edi */ 8095 PUSH32(esp, eax); /* 0x36113368: push eax */ 8096 PUSH32(esp, 7); /* 0x36113369: push 7 */ 8097 RECOMP_ICALL(0x36136FE0u); /* 0x3611336B: call 0x36136fe0 */ /* not lifted */ 8098 RECOMP_FLAGS_IN(); 8099 edx = MEM32(esi + 0x28); /* 0x36113370: mov edx, dword ptr [esi + 0x28] */ 8100 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 8101 edx = edx & 4; /* 0x36113373: and edx, 4 */ 8102 _cf = 0; 8103 _flag_k = FK_TEST; 8104 PUSH32(esp, eax); /* 0x36113376: push eax */ 8105 /* cmp LO8(edx), 4 */ /* 0x36113377: cmp dl, 4 */ 8106 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 8107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8108 _flag_k = FK_NARROW(FK_CMP, 24); 8109 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3611337A: sete al */ 8110 ecx = edi; /* 0x3611337D: mov ecx, edi */ 8111 PUSH32(esp, eax); /* 0x3611337F: push eax */ 8112 PUSH32(esp, 6); /* 0x36113380: push 6 */ 8113 RECOMP_ICALL(0x36137010u); /* 0x36113382: call 0x36137010 */ /* not lifted */ 8114 RECOMP_FLAGS_IN(); 8115 PUSH32(esp, ecx); /* 0x36113387: push ecx */ 8116 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113388: fstp dword ptr [esp] */ 8117 PUSH32(esp, 5); /* 0x3611338B: push 5 */ 8118 ecx = edi; /* 0x3611338D: mov ecx, edi */ 8119 RECOMP_ICALL(0x36137010u); /* 0x3611338F: call 0x36137010 */ /* not lifted */ 8120 RECOMP_FLAGS_IN(); 8121 PUSH32(esp, ecx); /* 0x36113394: push ecx */ 8122 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113395: fstp dword ptr [esp] */ 8123 PUSH32(esp, 4); /* 0x36113398: push 4 */ 8124 ecx = edi; /* 0x3611339A: mov ecx, edi */ 8125 RECOMP_ICALL(0x36137010u); /* 0x3611339C: call 0x36137010 */ /* not lifted */ 8126 RECOMP_FLAGS_IN(); 8127 PUSH32(esp, ecx); /* 0x361133A1: push ecx */ 8128 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361133A2: fstp dword ptr [esp] */ 8129 PUSH32(esp, 3); /* 0x361133A5: push 3 */ 8130 ecx = edi; /* 0x361133A7: mov ecx, edi */ 8131 RECOMP_ICALL(0x36137010u); /* 0x361133A9: call 0x36137010 */ /* not lifted */ 8132 RECOMP_FLAGS_IN(); 8133 PUSH32(esp, ecx); /* 0x361133AE: push ecx */ 8134 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361133AF: fstp dword ptr [esp] */ 8135 PUSH32(esp, 2); /* 0x361133B2: push 2 */ 8136 ecx = edi; /* 0x361133B4: mov ecx, edi */ 8137 RECOMP_ICALL(0x36137010u); /* 0x361133B6: call 0x36137010 */ /* not lifted */ 8138 RECOMP_FLAGS_IN(); 8139 PUSH32(esp, ecx); /* 0x361133BB: push ecx */ 8140 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361133BC: fstp dword ptr [esp] */ 8141 PUSH32(esp, 1); /* 0x361133BF: push 1 */ 8142 ecx = edi; /* 0x361133C1: mov ecx, edi */ 8143 RECOMP_ICALL(0x36137010u); /* 0x361133C3: call 0x36137010 */ /* not lifted */ 8144 RECOMP_FLAGS_IN(); 8145 PUSH32(esp, ecx); /* 0x361133C8: push ecx */ 8146 ecx = MEM32(ebp + 0xC); /* 0x361133C9: mov ecx, dword ptr [ebp + 0xc] */ 8147 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361133CC: fstp dword ptr [esp] */ 8148 PUSH32(esp, ecx); /* 0x361133CF: push ecx */ 8149 ecx = MEM32(esi + 0x20); /* 0x361133D0: mov ecx, dword ptr [esi + 0x20] */ 8150 RECOMP_ICALL(0x36132D20u); /* 0x361133D3: call 0x36132d20 */ /* not lifted */ 8151 RECOMP_FLAGS_IN(); 8152 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8153 _cf = (LO8(eax)) != 0; 8154 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361133D8: neg al */ 8155 _flag_k = FK_NARROW(FK_CMP, 24); 8156 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361133DA: sbb al, al */ 8157 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 8158 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8159 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8160 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8161 SET_LO8(eax, LO8(eax) + 1); /* 0x361133DC: inc al */ 8162 _flag_k = FK_NARROW(FK_INC, 24); 8163 ecx = esi; /* 0x361133DE: mov ecx, esi */ 8164 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x361133E0: mov byte ptr [esi + 0x14], al */ 8165 RECOMP_ICALL(0x36113990u); /* 0x361133E3: call 0x36113990 */ /* not lifted */ 8166 RECOMP_FLAGS_IN(); 8167 ecx = MEM32(ebp + (-0xC)); /* 0x361133E8: mov ecx, dword ptr [ebp - 0xc] */ 8168 edi = POP32_VAL(esp); /* 0x361133EB: pop edi */ 8169 eax = esi; /* 0x361133EC: mov eax, esi */ 8170 esi = POP32_VAL(esp); /* 0x361133EE: pop esi */ 8171 ebx = POP32_VAL(esp); /* 0x361133EF: pop ebx */ 8172 MEM32(FS_BASE + (0)) = ecx; /* 0x361133F0: mov dword ptr fs:[0], ecx */ 8173 esp = ebp; /* 0x361133F7: mov esp, ebp */ 8174 ebp = POP32_VAL(esp); /* 0x361133F9: pop ebp */ 8175 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x361133FA: ret 8 */ 8176 RECOMP_REGS_OUT(); 8177 } 8178 8179 void sub_36113400(void) { 8180 int _fpu_cmp = 0; 8181 uint32_t _cf = 0; 8182 int _df = 1; 8183 uint32_t _flag_k = FK_NONE; 8184 uint32_t _flag_a = 0, _flag_b = 0; 8185 uint32_t _itail_tgt = 0; 8186 RECOMP_REGS_LOCALS 8187 RECOMP_ENTER(0x36113400u); 8188 8189 L_36113400: 8190 PUSH32(esp, ebp); /* 0x36113400: push ebp */ 8191 ebp = esp; /* 0x36113401: mov ebp, esp */ 8192 PUSH32(esp, 0xFFFFFFFFu); /* 0x36113403: push -1 */ 8193 PUSH32(esp, 0x3616ADC3u); /* 0x36113405: push 0x3616adc3 */ 8194 eax = MEM32(FS_BASE + (0)); /* 0x3611340A: mov eax, dword ptr fs:[0] */ 8195 PUSH32(esp, eax); /* 0x36113410: push eax */ 8196 MEM32(FS_BASE + (0)) = esp; /* 0x36113411: mov dword ptr fs:[0], esp */ 8197 PUSH32(esp, ecx); /* 0x36113418: push ecx */ 8198 eax = MEM32(ebp + 0x8); /* 0x36113419: mov eax, dword ptr [ebp + 8] */ 8199 PUSH32(esp, ebx); /* 0x3611341C: push ebx */ 8200 PUSH32(esp, esi); /* 0x3611341D: push esi */ 8201 PUSH32(esp, edi); /* 0x3611341E: push edi */ 8202 esi = ecx; /* 0x3611341F: mov esi, ecx */ 8203 PUSH32(esp, eax); /* 0x36113421: push eax */ 8204 MEM32(ebp + (-0x10)) = esi; /* 0x36113422: mov dword ptr [ebp - 0x10], esi */ 8205 RECOMP_ICALL(0x360FC270u); /* 0x36113425: call 0x360fc270 */ /* not lifted */ 8206 RECOMP_FLAGS_IN(); 8207 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8208 ebx = 0; /* 0x3611342A: xor ebx, ebx */ 8209 _cf = 0; 8210 _flag_k = FK_TEST; 8211 MEM32(esi + 0x20) = ebx; /* 0x3611342C: mov dword ptr [esi + 0x20], ebx */ 8212 MEM32(esi + 0x24) = ebx; /* 0x3611342F: mov dword ptr [esi + 0x24], ebx */ 8213 MEM32(esi + 0xA8) = ebx; /* 0x36113432: mov dword ptr [esi + 0xa8], ebx */ 8214 MEM32(esi + 0xB8) = ebx; /* 0x36113438: mov dword ptr [esi + 0xb8], ebx */ 8215 MEM32(esi + 0xBC) = ebx; /* 0x3611343E: mov dword ptr [esi + 0xbc], ebx */ 8216 MEM32(esi + 0xC0) = ebx; /* 0x36113444: mov dword ptr [esi + 0xc0], ebx */ 8217 ecx = esi; /* 0x3611344A: mov ecx, esi */ 8218 MEM32(ebp + (-0x4)) = ebx; /* 0x3611344C: mov dword ptr [ebp - 4], ebx */ 8219 MEM32(esi) = 0x36176AF4u; /* 0x3611344F: mov dword ptr [esi], 0x36176af4 */ 8220 RECOMP_ICALL(0x36112140u); /* 0x36113455: call 0x36112140 */ /* not lifted */ 8221 RECOMP_FLAGS_IN(); 8222 ecx = MEM32(esi + 0x4); /* 0x3611345A: mov ecx, dword ptr [esi + 4] */ 8223 PUSH32(esp, ecx); /* 0x3611345D: push ecx */ 8224 RECOMP_ICALL(0x360F7B00u); /* 0x3611345E: call 0x360f7b00 */ /* not lifted */ 8225 RECOMP_FLAGS_IN(); 8226 ecx = eax; /* 0x36113463: mov ecx, eax */ 8227 RECOMP_ICALL(0x360FBFF0u); /* 0x36113465: call 0x360fbff0 */ /* not lifted */ 8228 RECOMP_FLAGS_IN(); 8229 ecx = eax; /* 0x3611346A: mov ecx, eax */ 8230 RECOMP_ICALL(0x361371A0u); /* 0x3611346C: call 0x361371a0 */ /* not lifted */ 8231 RECOMP_FLAGS_IN(); 8232 edi = eax; /* 0x36113471: mov edi, eax */ 8233 eax = MEM32(ebp + 0x10); /* 0x36113473: mov eax, dword ptr [ebp + 0x10] */ 8234 /* cmp eax, ebx */ /* 0x36113476: cmp eax, ebx */ 8235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8237 _flag_k = FK_CMP; 8238 if (CMP_NE(_flag_a, _flag_b)) goto L_36113483; /* 0x36113478: jne 0x36113483 */ 8239 L_3611347A: 8240 PUSH32(esp, 7); /* 0x3611347A: push 7 */ 8241 ecx = edi; /* 0x3611347C: mov ecx, edi */ 8242 RECOMP_ICALL(0x36136FE0u); /* 0x3611347E: call 0x36136fe0 */ /* not lifted */ 8243 RECOMP_FLAGS_IN(); 8244 L_36113483: 8245 PUSH32(esp, 0x10Cu); /* 0x36113483: push 0x10c */ 8246 MEM32(ebp + 0x8) = eax; /* 0x36113488: mov dword ptr [ebp + 8], eax */ 8247 RECOMP_ICALL(0x3615FD6Au); /* 0x3611348B: call 0x3615fd6a */ /* not lifted */ 8248 RECOMP_FLAGS_IN(); 8249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8251 esp = esp + 4; /* 0x36113490: add esp, 4 */ 8252 _flag_k = FK_ADD; 8253 MEM32(ebp + 0x10) = eax; /* 0x36113493: mov dword ptr [ebp + 0x10], eax */ 8254 /* cmp eax, ebx */ /* 0x36113496: cmp eax, ebx */ 8255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8257 _flag_k = FK_CMP; 8258 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36113498: mov byte ptr [ebp - 4], 1 */ 8259 if (CMP_EQ(_flag_a, _flag_b)) goto L_361134A7; /* 0x3611349C: je 0x361134a7 */ 8260 L_3611349E: 8261 ecx = eax; /* 0x3611349E: mov ecx, eax */ 8262 RECOMP_ICALL(0x36132920u); /* 0x361134A0: call 0x36132920 */ /* not lifted */ 8263 RECOMP_FLAGS_IN(); 8264 goto L_361134A9; /* 0x361134A5: jmp 0x361134a9 */ 8265 L_361134A7: 8266 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8267 eax = 0; /* 0x361134A7: xor eax, eax */ 8268 _cf = 0; 8269 _flag_k = FK_TEST; 8270 L_361134A9: 8271 MEM32(esi + 0x20) = eax; /* 0x361134A9: mov dword ptr [esi + 0x20], eax */ 8272 eax = MEM32(esi + 0x28); /* 0x361134AC: mov eax, dword ptr [esi + 0x28] */ 8273 edx = eax; /* 0x361134AF: mov edx, eax */ 8274 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 8275 edx = edx & 2; /* 0x361134B1: and edx, 2 */ 8276 _cf = 0; 8277 _flag_k = FK_TEST; 8278 /* cmp LO8(edx), 2 */ /* 0x361134B4: cmp dl, 2 */ 8279 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 8280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8281 _flag_k = FK_NARROW(FK_CMP, 24); 8282 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361134B7: sete cl */ 8283 edx = eax; /* 0x361134BA: mov edx, eax */ 8284 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 8285 edx = edx & 1; /* 0x361134BC: and edx, 1 */ 8286 _cf = 0; 8287 _flag_k = FK_TEST; 8288 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 8289 SET_LO8(edx, LO8(edx) - 1); /* 0x361134BF: dec dl */ 8290 _flag_k = FK_NARROW(FK_DEC, 24); 8291 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 8292 _cf = (LO8(edx)) != 0; 8293 SET_LO8(edx, (uint32_t)(-(int32_t)LO8(edx))); /* 0x361134C1: neg dl */ 8294 _flag_k = FK_NARROW(FK_CMP, 24); 8295 { uint32_t _sa = LO8(edx), _sb = LO8(edx), _sc = _cf; /* 0x361134C3: sbb dl, dl */ 8296 SET_LO8(edx, _sc ? 0xFFFFFFFFu : 0); 8297 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8298 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8299 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 8300 SET_LO8(edx, LO8(edx) + 1); /* 0x361134C5: inc dl */ 8301 _flag_k = FK_NARROW(FK_INC, 24); 8302 PUSH32(esp, ecx); /* 0x361134C7: push ecx */ 8303 ecx = MEM32(ebp + 0x8); /* 0x361134C8: mov ecx, dword ptr [ebp + 8] */ 8304 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 8305 eax = eax & 4; /* 0x361134CB: and eax, 4 */ 8306 _cf = 0; 8307 _flag_k = FK_TEST; 8308 /* cmp LO8(eax), 4 */ /* 0x361134CE: cmp al, 4 */ 8309 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 8310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8311 _flag_k = FK_NARROW(FK_CMP, 24); 8312 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x361134D0: mov byte ptr [ebp - 4], bl */ 8313 PUSH32(esp, edx); /* 0x361134D3: push edx */ 8314 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361134D4: sete dl */ 8315 PUSH32(esp, ecx); /* 0x361134D7: push ecx */ 8316 ecx = edi; /* 0x361134D8: mov ecx, edi */ 8317 PUSH32(esp, edx); /* 0x361134DA: push edx */ 8318 PUSH32(esp, 6); /* 0x361134DB: push 6 */ 8319 RECOMP_ICALL(0x36137010u); /* 0x361134DD: call 0x36137010 */ /* not lifted */ 8320 RECOMP_FLAGS_IN(); 8321 PUSH32(esp, ecx); /* 0x361134E2: push ecx */ 8322 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361134E3: fstp dword ptr [esp] */ 8323 PUSH32(esp, 5); /* 0x361134E6: push 5 */ 8324 ecx = edi; /* 0x361134E8: mov ecx, edi */ 8325 RECOMP_ICALL(0x36137010u); /* 0x361134EA: call 0x36137010 */ /* not lifted */ 8326 RECOMP_FLAGS_IN(); 8327 PUSH32(esp, ecx); /* 0x361134EF: push ecx */ 8328 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361134F0: fstp dword ptr [esp] */ 8329 PUSH32(esp, 4); /* 0x361134F3: push 4 */ 8330 ecx = edi; /* 0x361134F5: mov ecx, edi */ 8331 RECOMP_ICALL(0x36137010u); /* 0x361134F7: call 0x36137010 */ /* not lifted */ 8332 RECOMP_FLAGS_IN(); 8333 PUSH32(esp, ecx); /* 0x361134FC: push ecx */ 8334 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361134FD: fstp dword ptr [esp] */ 8335 PUSH32(esp, 3); /* 0x36113500: push 3 */ 8336 ecx = edi; /* 0x36113502: mov ecx, edi */ 8337 RECOMP_ICALL(0x36137010u); /* 0x36113504: call 0x36137010 */ /* not lifted */ 8338 RECOMP_FLAGS_IN(); 8339 PUSH32(esp, ecx); /* 0x36113509: push ecx */ 8340 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611350A: fstp dword ptr [esp] */ 8341 PUSH32(esp, 2); /* 0x3611350D: push 2 */ 8342 ecx = edi; /* 0x3611350F: mov ecx, edi */ 8343 RECOMP_ICALL(0x36137010u); /* 0x36113511: call 0x36137010 */ /* not lifted */ 8344 RECOMP_FLAGS_IN(); 8345 PUSH32(esp, ecx); /* 0x36113516: push ecx */ 8346 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113517: fstp dword ptr [esp] */ 8347 PUSH32(esp, 1); /* 0x3611351A: push 1 */ 8348 ecx = edi; /* 0x3611351C: mov ecx, edi */ 8349 RECOMP_ICALL(0x36137010u); /* 0x3611351E: call 0x36137010 */ /* not lifted */ 8350 RECOMP_FLAGS_IN(); 8351 eax = MEM32(ebp + 0xC); /* 0x36113523: mov eax, dword ptr [ebp + 0xc] */ 8352 PUSH32(esp, ecx); /* 0x36113526: push ecx */ 8353 ecx = MEM32(esi + 0x20); /* 0x36113527: mov ecx, dword ptr [esi + 0x20] */ 8354 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611352A: fstp dword ptr [esp] */ 8355 PUSH32(esp, eax); /* 0x3611352D: push eax */ 8356 RECOMP_ICALL(0x36132EB0u); /* 0x3611352E: call 0x36132eb0 */ /* not lifted */ 8357 RECOMP_FLAGS_IN(); 8358 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8359 _cf = (LO8(eax)) != 0; 8360 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36113533: neg al */ 8361 _flag_k = FK_NARROW(FK_CMP, 24); 8362 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36113535: sbb al, al */ 8363 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 8364 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8365 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8366 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8367 SET_LO8(eax, LO8(eax) + 1); /* 0x36113537: inc al */ 8368 _flag_k = FK_NARROW(FK_INC, 24); 8369 ecx = esi; /* 0x36113539: mov ecx, esi */ 8370 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x3611353B: mov byte ptr [esi + 0x14], al */ 8371 RECOMP_ICALL(0x36113990u); /* 0x3611353E: call 0x36113990 */ /* not lifted */ 8372 RECOMP_FLAGS_IN(); 8373 ecx = MEM32(ebp + (-0xC)); /* 0x36113543: mov ecx, dword ptr [ebp - 0xc] */ 8374 edi = POP32_VAL(esp); /* 0x36113546: pop edi */ 8375 eax = esi; /* 0x36113547: mov eax, esi */ 8376 esi = POP32_VAL(esp); /* 0x36113549: pop esi */ 8377 ebx = POP32_VAL(esp); /* 0x3611354A: pop ebx */ 8378 MEM32(FS_BASE + (0)) = ecx; /* 0x3611354B: mov dword ptr fs:[0], ecx */ 8379 esp = ebp; /* 0x36113552: mov esp, ebp */ 8380 ebp = POP32_VAL(esp); /* 0x36113554: pop ebp */ 8381 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36113555: ret 0xc */ 8382 RECOMP_REGS_OUT(); 8383 } 8384 8385 void sub_36113560(void) { 8386 int _fpu_cmp = 0; 8387 uint32_t _cf = 0; 8388 int _df = 1; 8389 uint32_t _flag_k = FK_NONE; 8390 uint32_t _flag_a = 0, _flag_b = 0; 8391 uint32_t _itail_tgt = 0; 8392 RECOMP_REGS_LOCALS 8393 RECOMP_ENTER(0x36113560u); 8394 8395 L_36113560: 8396 PUSH32(esp, ebp); /* 0x36113560: push ebp */ 8397 ebp = esp; /* 0x36113561: mov ebp, esp */ 8398 PUSH32(esp, 0xFFFFFFFFu); /* 0x36113563: push -1 */ 8399 PUSH32(esp, 0x3616ADD8u); /* 0x36113565: push 0x3616add8 */ 8400 eax = MEM32(FS_BASE + (0)); /* 0x3611356A: mov eax, dword ptr fs:[0] */ 8401 PUSH32(esp, eax); /* 0x36113570: push eax */ 8402 MEM32(FS_BASE + (0)) = esp; /* 0x36113571: mov dword ptr fs:[0], esp */ 8403 PUSH32(esp, ecx); /* 0x36113578: push ecx */ 8404 PUSH32(esp, esi); /* 0x36113579: push esi */ 8405 esi = ecx; /* 0x3611357A: mov esi, ecx */ 8406 PUSH32(esp, edi); /* 0x3611357C: push edi */ 8407 MEM32(ebp + (-0x10)) = esi; /* 0x3611357D: mov dword ptr [ebp - 0x10], esi */ 8408 MEM32(esi) = 0x36176AF4u; /* 0x36113580: mov dword ptr [esi], 0x36176af4 */ 8409 edi = MEM32(esi + 0x20); /* 0x36113586: mov edi, dword ptr [esi + 0x20] */ 8410 /* test edi, edi */ /* 0x36113589: test edi, edi */ 8411 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8412 _cf = 0; 8413 _flag_k = FK_TEST; 8414 MEM32(ebp + (-0x4)) = 0; /* 0x3611358B: mov dword ptr [ebp - 4], 0 */ 8415 if (TEST_Z(_flag_a, _flag_b)) goto L_361135AB; /* 0x36113592: je 0x361135ab */ 8416 L_36113594: 8417 ecx = edi; /* 0x36113594: mov ecx, edi */ 8418 RECOMP_ICALL(0x360E2940u); /* 0x36113596: call 0x360e2940 */ /* not lifted */ 8419 RECOMP_FLAGS_IN(); 8420 PUSH32(esp, edi); /* 0x3611359B: push edi */ 8421 RECOMP_ICALL(0x3615FCC4u); /* 0x3611359C: call 0x3615fcc4 */ /* not lifted */ 8422 RECOMP_FLAGS_IN(); 8423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8425 esp = esp + 4; /* 0x361135A1: add esp, 4 */ 8426 _flag_k = FK_ADD; 8427 MEM32(esi + 0x20) = 0; /* 0x361135A4: mov dword ptr [esi + 0x20], 0 */ 8428 L_361135AB: 8429 ecx = MEM32(esi + 0x24); /* 0x361135AB: mov ecx, dword ptr [esi + 0x24] */ 8430 /* test ecx, ecx */ /* 0x361135AE: test ecx, ecx */ 8431 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8432 _cf = 0; 8433 _flag_k = FK_TEST; 8434 if (TEST_Z(_flag_a, _flag_b)) goto L_361135BF; /* 0x361135B0: je 0x361135bf */ 8435 L_361135B2: 8436 eax = MEM32(ecx); /* 0x361135B2: mov eax, dword ptr [ecx] */ 8437 PUSH32(esp, 1); /* 0x361135B4: push 1 */ 8438 RECOMP_ICALL(MEM32(eax)); /* 0x361135B6: call dword ptr [eax] */ 8439 RECOMP_FLAGS_IN(); 8440 MEM32(esi + 0x24) = 0; /* 0x361135B8: mov dword ptr [esi + 0x24], 0 */ 8441 L_361135BF: 8442 ecx = esi; /* 0x361135BF: mov ecx, esi */ 8443 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361135C1: mov dword ptr [ebp - 4], 0xffffffff */ 8444 RECOMP_ICALL(0x360FC2F0u); /* 0x361135C8: call 0x360fc2f0 */ /* not lifted */ 8445 RECOMP_FLAGS_IN(); 8446 ecx = MEM32(ebp + (-0xC)); /* 0x361135CD: mov ecx, dword ptr [ebp - 0xc] */ 8447 edi = POP32_VAL(esp); /* 0x361135D0: pop edi */ 8448 esi = POP32_VAL(esp); /* 0x361135D1: pop esi */ 8449 MEM32(FS_BASE + (0)) = ecx; /* 0x361135D2: mov dword ptr fs:[0], ecx */ 8450 esp = ebp; /* 0x361135D9: mov esp, ebp */ 8451 ebp = POP32_VAL(esp); /* 0x361135DB: pop ebp */ 8452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361135DC: ret */ 8453 RECOMP_REGS_OUT(); 8454 } 8455 8456 void sub_361135E0(void) { 8457 int _fpu_cmp = 0; 8458 uint32_t _cf = 0; 8459 int _df = 1; 8460 uint32_t _flag_k = FK_NONE; 8461 uint32_t _flag_a = 0, _flag_b = 0; 8462 uint32_t _itail_tgt = 0; 8463 RECOMP_REGS_LOCALS 8464 RECOMP_ENTER(0x361135E0u); 8465 8466 L_361135E0: 8467 PUSH32(esp, ebp); /* 0x361135E0: push ebp */ 8468 ebp = esp; /* 0x361135E1: mov ebp, esp */ 8469 PUSH32(esp, 0xFFFFFFFFu); /* 0x361135E3: push -1 */ 8470 PUSH32(esp, 0x3616ADFCu); /* 0x361135E5: push 0x3616adfc */ 8471 eax = MEM32(FS_BASE + (0)); /* 0x361135EA: mov eax, dword ptr fs:[0] */ 8472 PUSH32(esp, eax); /* 0x361135F0: push eax */ 8473 MEM32(FS_BASE + (0)) = esp; /* 0x361135F1: mov dword ptr fs:[0], esp */ 8474 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xA8u); 8475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8476 esp = esp - 0xA8u; /* 0x361135F8: sub esp, 0xa8 */ 8477 _flag_k = FK_CMP; 8478 PUSH32(esp, esi); /* 0x361135FE: push esi */ 8479 esi = ecx; /* 0x361135FF: mov esi, ecx */ 8480 RECOMP_ICALL(0x360FC300u); /* 0x36113601: call 0x360fc300 */ /* not lifted */ 8481 RECOMP_FLAGS_IN(); 8482 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36113606: mov al, byte ptr [esi + 0x14] */ 8483 /* test LO8(eax), LO8(eax) */ /* 0x36113609: test al, al */ 8484 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8485 _cf = 0; 8486 _flag_k = FK_NARROW(FK_TEST, 24); 8487 if (TEST_NZ(_flag_a, _flag_b)) goto L_36113978; /* 0x3611360B: jne 0x36113978 */ 8488 L_36113611: 8489 ecx = MEM32(esi + 0x20); /* 0x36113611: mov ecx, dword ptr [esi + 0x20] */ 8490 RECOMP_ICALL(0x361331E0u); /* 0x36113614: call 0x361331e0 */ /* not lifted */ 8491 RECOMP_FLAGS_IN(); 8492 /* test LO8(eax), LO8(eax) */ /* 0x36113619: test al, al */ 8493 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8494 _cf = 0; 8495 _flag_k = FK_NARROW(FK_TEST, 24); 8496 if (TEST_NZ(_flag_a, _flag_b)) goto L_3611362F; /* 0x3611361B: jne 0x3611362f */ 8497 L_3611361D: 8498 eax = MEM32(esi + 0x20); /* 0x3611361D: mov eax, dword ptr [esi + 0x20] */ 8499 MEM8(eax) = (uint8_t)(0); /* 0x36113620: mov byte ptr [eax], 0 */ 8500 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x36113623: fld dword ptr [esi + 0x94] */ 8501 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36113629: fadd dword ptr [esi + 0xc] */ 8502 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x3611362C: fstp dword ptr [esi + 0x10] */ 8503 L_3611362F: 8504 PUSH32(esp, ebx); /* 0x3611362F: push ebx */ 8505 PUSH32(esp, edi); /* 0x36113630: push edi */ 8506 RECOMP_ICALL(MEM32(0x3616F254)); /* 0x36113631: call dword ptr [0x3616f254] */ 8507 RECOMP_FLAGS_IN(); 8508 /* test MEM32(esi + 0x68), eax */ /* 0x36113637: test dword ptr [esi + 0x68], eax */ 8509 _flag_a = (uint32_t)(MEM32(esi + 0x68)); _flag_b = (uint32_t)(eax); 8510 _cf = 0; 8511 _flag_k = FK_TEST; 8512 if (TEST_NZ(_flag_a, _flag_b)) goto L_36113874; /* 0x3611363A: jne 0x36113874 */ 8513 L_36113640: 8514 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36113640: fld dword ptr [esi + 0x10] */ 8515 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36113643: fcomp dword ptr [0x3617040c] */ 8516 fp_pop(); 8517 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36113649: fnstsw ax */ 8518 /* test HI8(eax), 1 */ /* 0x3611364B: test ah, 1 */ 8519 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8520 _cf = 0; 8521 _flag_k = FK_NARROW(FK_TEST, 24); 8522 if (TEST_NZ(_flag_a, _flag_b)) goto L_36113667; /* 0x3611364E: jne 0x36113667 */ 8523 L_36113650: 8524 fp_push(*(float*)&MEM32(esi + 0x10)); /* 0x36113650: fld dword ptr [esi + 0x10] */ 8525 _st[0] -= (double)*(float*)ADDR(esi + 0x94); /* 0x36113653: fsub dword ptr [esi + 0x94] */ 8526 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(esi + 0xC)); /* 0x36113659: fcomp dword ptr [esi + 0xc] */ 8527 fp_pop(); 8528 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3611365C: fnstsw ax */ 8529 /* test HI8(eax), 0x41u */ /* 0x3611365E: test ah, 0x41 */ 8530 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8531 _cf = 0; 8532 _flag_k = FK_NARROW(FK_TEST, 24); 8533 if (TEST_NZ(_flag_a, _flag_b)) goto L_36113874; /* 0x36113661: jne 0x36113874 */ 8534 L_36113667: 8535 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36113667: fld dword ptr [esi + 0x30] */ 8536 _st[0] *= (double)*(float*)ADDR(esi + 0xC); /* 0x3611366A: fmul dword ptr [esi + 0xc] */ 8537 RECOMP_ICALL(0x3615FD8Cu); /* 0x3611366D: call 0x3615fd8c */ /* not lifted */ 8538 RECOMP_FLAGS_IN(); 8539 ecx = ebp + (-0x58); /* 0x36113672: lea ecx, [ebp - 0x58] */ 8540 edi = eax; /* 0x36113675: mov edi, eax */ 8541 PUSH32(esp, ecx); /* 0x36113677: push ecx */ 8542 ecx = MEM32(esi + 0x20); /* 0x36113678: mov ecx, dword ptr [esi + 0x20] */ 8543 MEM32(ebp + (-0x48)) = edi; /* 0x3611367B: mov dword ptr [ebp - 0x48], edi */ 8544 ebx = esi + 0xB8; /* 0x3611367E: lea ebx, [esi + 0xb8] */ 8545 RECOMP_ICALL(0x36133FC0u); /* 0x36113684: call 0x36133fc0 */ /* not lifted */ 8546 RECOMP_FLAGS_IN(); 8547 edx = MEM32(eax); /* 0x36113689: mov edx, dword ptr [eax] */ 8548 ecx = MEM32(eax + 0x4); /* 0x3611368B: mov ecx, dword ptr [eax + 4] */ 8549 MEM32(ebp + (-0x18)) = edx; /* 0x3611368E: mov dword ptr [ebp - 0x18], edx */ 8550 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36113691: fld dword ptr [ebp - 0x18] */ 8551 _st[0] -= (double)*(float*)ADDR(ebx); /* 0x36113694: fsub dword ptr [ebx] */ 8552 edx = MEM32(eax + 0x8); /* 0x36113696: mov edx, dword ptr [eax + 8] */ 8553 MEM32(ebp + (-0x14)) = ecx; /* 0x36113699: mov dword ptr [ebp - 0x14], ecx */ 8554 MEM32(ebp + (-0x10)) = edx; /* 0x3611369C: mov dword ptr [ebp - 0x10], edx */ 8555 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3611369F: fst dword ptr [ebp - 0x18] */ 8556 eax = MEM32(ebp + (-0x18)); /* 0x361136A2: mov eax, dword ptr [ebp - 0x18] */ 8557 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361136A5: fld dword ptr [ebp - 0x14] */ 8558 MEM32(ebp + (-0x44)) = eax; /* 0x361136A8: mov dword ptr [ebp - 0x44], eax */ 8559 _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x361136AB: fsub dword ptr [ebx + 4] */ 8560 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361136AE: fstp dword ptr [ebp - 0x14] */ 8561 ecx = MEM32(ebp + (-0x14)); /* 0x361136B1: mov ecx, dword ptr [ebp - 0x14] */ 8562 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361136B4: fld dword ptr [ebp - 0x10] */ 8563 MEM32(ebp + (-0x40)) = ecx; /* 0x361136B7: mov dword ptr [ebp - 0x40], ecx */ 8564 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x361136BA: fsub dword ptr [ebx + 8] */ 8565 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361136BD: fstp dword ptr [ebp - 0x10] */ 8566 edx = MEM32(ebp + (-0x10)); /* 0x361136C0: mov edx, dword ptr [ebp - 0x10] */ 8567 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361136C3: fld dword ptr [ebp - 0x10] */ 8568 MEM32(ebp + (-0x3C)) = edx; /* 0x361136C6: mov dword ptr [ebp - 0x3c], edx */ 8569 _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x361136C9: fmul dword ptr [ebp - 0x10] */ 8570 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361136CC: fld dword ptr [ebp - 0x14] */ 8571 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x361136CF: fmul dword ptr [ebp - 0x14] */ 8572 { double _v = fp_pop(); _st[0] += _v; } /* 0x361136D2: faddp st(1) */ 8573 fp_push(_st[1]); /* 0x361136D4: fld st(1) */ 8574 _st[0] *= _st[2]; /* 0x361136D6: fmul st(2) */ 8575 { double _v = fp_pop(); _st[0] += _v; } /* 0x361136D8: faddp st(1) */ 8576 _st[0] = sqrt(_st[0]); /* 0x361136DA: fsqrt */ 8577 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x361136DC: fst dword ptr [ebp - 0x1c] */ 8578 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x361136DF: fstp dword ptr [ebp - 0x20] */ 8579 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361136E2: fcomp dword ptr [0x3617040c] */ 8580 fp_pop(); 8581 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361136E8: fnstsw ax */ 8582 /* test HI8(eax), 0x40u */ /* 0x361136EA: test ah, 0x40 */ 8583 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8584 _cf = 0; 8585 _flag_k = FK_NARROW(FK_TEST, 24); 8586 if (TEST_Z(_flag_a, _flag_b)) goto L_3611370F; /* 0x361136ED: je 0x3611370f */ 8587 L_361136EF: 8588 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x361136EF: fld dword ptr [ebp - 0x14] */ 8589 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x361136F2: fcomp dword ptr [0x3617040c] */ 8590 fp_pop(); 8591 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361136F8: fnstsw ax */ 8592 /* test HI8(eax), 0x40u */ /* 0x361136FA: test ah, 0x40 */ 8593 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8594 _cf = 0; 8595 _flag_k = FK_NARROW(FK_TEST, 24); 8596 if (TEST_Z(_flag_a, _flag_b)) goto L_3611370F; /* 0x361136FD: je 0x3611370f */ 8597 L_361136FF: 8598 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361136FF: fld dword ptr [ebp - 0x10] */ 8599 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x36113702: fcomp dword ptr [0x3617040c] */ 8600 fp_pop(); 8601 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36113708: fnstsw ax */ 8602 /* test HI8(eax), 0x40u */ /* 0x3611370A: test ah, 0x40 */ 8603 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8604 _cf = 0; 8605 _flag_k = FK_NARROW(FK_TEST, 24); 8606 if (TEST_NZ(_flag_a, _flag_b)) goto L_36113725; /* 0x3611370D: jne 0x36113725 */ 8607 L_3611370F: 8608 fp_push(*(float*)&MEM32(0x36170380)); /* 0x3611370F: fld dword ptr [0x36170380] */ 8609 PUSH32(esp, ecx); /* 0x36113715: push ecx */ 8610 _st[0] /= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36113716: fdiv dword ptr [ebp - 0x1c] */ 8611 ecx = ebp + (-0x44); /* 0x36113719: lea ecx, [ebp - 0x44] */ 8612 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611371C: fstp dword ptr [esp] */ 8613 RECOMP_ICALL(MEM32(0x36170184)); /* 0x3611371F: call dword ptr [0x36170184] */ 8614 RECOMP_FLAGS_IN(); 8615 L_36113725: 8616 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0xA8)); 8617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8618 edi = edi - MEM32(esi + 0xA8); /* 0x36113725: sub edi, dword ptr [esi + 0xa8] */ 8619 _flag_k = FK_CMP; 8620 /* test edi, edi */ /* 0x3611372B: test edi, edi */ 8621 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8622 _cf = 0; 8623 _flag_k = FK_TEST; 8624 MEM32(ebp + (-0x1C)) = edi; /* 0x3611372D: mov dword ptr [ebp - 0x1c], edi */ 8625 if (TEST_LE(_flag_a, _flag_b)) goto L_3611373B; /* 0x36113730: jle 0x3611373b */ 8626 L_36113732: 8627 fp_push((double)(int32_t)MEM32(ebp + (-0x1C))); /* 0x36113732: fild dword ptr [ebp - 0x1c] */ 8628 _st[0] = (double)*(float*)ADDR(ebp + (-0x20)) / _st[0]; /* 0x36113735: fdivr dword ptr [ebp - 0x20] */ 8629 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36113738: fstp dword ptr [ebp - 0x20] */ 8630 L_3611373B: 8631 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x3611373B: fld dword ptr [esi + 8] */ 8632 eax = MEM32(ebp + (-0x20)); /* 0x3611373E: mov eax, dword ptr [ebp - 0x20] */ 8633 _st[0] *= (double)*(float*)ADDR(0x36170EB8); /* 0x36113741: fmul dword ptr [0x36170eb8] */ 8634 MEM32(ebp + (-0x1C)) = eax; /* 0x36113747: mov dword ptr [ebp - 0x1c], eax */ 8635 _st[0] += (double)*(float*)ADDR(esi + 0xB4); /* 0x3611374A: fadd dword ptr [esi + 0xb4] */ 8636 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0xB4) = _v; } /* 0x36113750: fst dword ptr [esi + 0xb4] */ 8637 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170BA8)); /* 0x36113756: fcomp dword ptr [0x36170ba8] */ 8638 fp_pop(); 8639 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3611375C: fnstsw ax */ 8640 /* test HI8(eax), 0x41u */ /* 0x3611375E: test ah, 0x41 */ 8641 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8642 _cf = 0; 8643 _flag_k = FK_NARROW(FK_TEST, 24); 8644 if (TEST_NZ(_flag_a, _flag_b)) goto L_3611376D; /* 0x36113761: jne 0x3611376d */ 8645 L_36113763: 8646 MEM32(esi + 0xB4) = 0x40000000u; /* 0x36113763: mov dword ptr [esi + 0xb4], 0x40000000 */ 8647 L_3611376D: 8648 ecx = 0x3630DBB8u; /* 0x3611376D: mov ecx, 0x3630dbb8 */ 8649 RECOMP_ICALL(0x3615BCE0u); /* 0x36113772: call 0x3615bce0 */ /* not lifted */ 8650 RECOMP_FLAGS_IN(); 8651 _st[0] += (double)*(float*)ADDR(0x36170EA4); /* 0x36113777: fadd dword ptr [0x36170ea4] */ 8652 /* test edi, edi */ /* 0x3611377D: test edi, edi */ 8653 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8654 _cf = 0; 8655 _flag_k = FK_TEST; 8656 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xB4) = _v; } /* 0x3611377F: fstp dword ptr [esi + 0xb4] */ 8657 if (TEST_LE(_flag_a, _flag_b)) goto L_3611386B; /* 0x36113785: jle 0x3611386b */ 8658 L_3611378B: 8659 ecx = 0x3630DBB8u; /* 0x3611378B: mov ecx, 0x3630dbb8 */ 8660 RECOMP_ICALL(0x3615BCE0u); /* 0x36113790: call 0x3615bce0 */ /* not lifted */ 8661 RECOMP_FLAGS_IN(); 8662 _st[0] *= (double)*(float*)ADDR(0x36175884); /* 0x36113795: fmul dword ptr [0x36175884] */ 8663 edx = MEM32(ebp + (-0x40)); /* 0x3611379B: mov edx, dword ptr [ebp - 0x40] */ 8664 eax = MEM32(ebp + (-0x3C)); /* 0x3611379E: mov eax, dword ptr [ebp - 0x3c] */ 8665 fp_push(_st[0]); /* 0x361137A1: fld st(0) */ 8666 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x361137A3: fcos */ 8667 ecx = MEM32(ebp + (-0x44)); /* 0x361137A5: mov ecx, dword ptr [ebp - 0x44] */ 8668 MEM32(ebp + (-0x34)) = edx; /* 0x361137A8: mov dword ptr [ebp - 0x34], edx */ 8669 MEM32(ebp + (-0x38)) = ecx; /* 0x361137AB: mov dword ptr [ebp - 0x38], ecx */ 8670 MEM32(ebp + (-0x30)) = eax; /* 0x361137AE: mov dword ptr [ebp - 0x30], eax */ 8671 ecx = ebx; /* 0x361137B1: mov ecx, ebx */ 8672 edx = MEM32(ecx); /* 0x361137B3: mov edx, dword ptr [ecx] */ 8673 eax = MEM32(ecx + 0x4); /* 0x361137B5: mov eax, dword ptr [ecx + 4] */ 8674 ecx = MEM32(ecx + 0x8); /* 0x361137B8: mov ecx, dword ptr [ecx + 8] */ 8675 MEM32(ebp + (-0x18)) = edx; /* 0x361137BB: mov dword ptr [ebp - 0x18], edx */ 8676 MEM32(ebp + (-0x14)) = eax; /* 0x361137BE: mov dword ptr [ebp - 0x14], eax */ 8677 MEM32(ebp + (-0x10)) = ecx; /* 0x361137C1: mov dword ptr [ebp - 0x10], ecx */ 8678 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x361137C4: fstp dword ptr [ebp - 0x4c] */ 8679 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361137C7: fsin */ 8680 _st[0] *= (double)*(float*)ADDR(esi + 0xB4); /* 0x361137C9: fmul dword ptr [esi + 0xb4] */ 8681 fp_push(*(float*)&MEM32(ebp + (-0x4C))); /* 0x361137CF: fld dword ptr [ebp - 0x4c] */ 8682 _st[0] *= (double)*(float*)ADDR(esi + 0xB4); /* 0x361137D2: fmul dword ptr [esi + 0xb4] */ 8683 fp_push(*(float*)&MEM32(ebp + (-0x44))); /* 0x361137D8: fld dword ptr [ebp - 0x44] */ 8684 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x361137DB: fmul dword ptr [ebp - 0x1c] */ 8685 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x361137DE: fld dword ptr [ebp - 0x34] */ 8686 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x361137E1: fmul dword ptr [ebp - 0x1c] */ 8687 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x361137E4: fstp dword ptr [ebp - 0x34] */ 8688 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x361137E7: fld dword ptr [ebp - 0x30] */ 8689 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x361137EA: fmul dword ptr [ebp - 0x1c] */ 8690 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x361137ED: fstp dword ptr [ebp - 0x30] */ 8691 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361137F0: fld dword ptr [ebp - 0x18] */ 8692 _st[0] += _st[1]; /* 0x361137F3: fadd st(1) */ 8693 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361137F5: fstp dword ptr [ebp - 0x18] */ 8694 edx = MEM32(ebp + (-0x18)); /* 0x361137F8: mov edx, dword ptr [ebp - 0x18] */ 8695 MEM32(ebp + (-0x2C)) = edx; /* 0x361137FB: mov dword ptr [ebp - 0x2c], edx */ 8696 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361137FE: fstp st(0) */ 8697 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36113800: fld dword ptr [ebp - 0x14] */ 8698 _st[0] += (double)*(float*)ADDR(ebp + (-0x34)); /* 0x36113803: fadd dword ptr [ebp - 0x34] */ 8699 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36113806: fstp dword ptr [ebp - 0x14] */ 8700 eax = MEM32(ebp + (-0x14)); /* 0x36113809: mov eax, dword ptr [ebp - 0x14] */ 8701 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3611380C: fld dword ptr [ebp - 0x10] */ 8702 MEM32(ebp + (-0x28)) = eax; /* 0x3611380F: mov dword ptr [ebp - 0x28], eax */ 8703 _st[0] += (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36113812: fadd dword ptr [ebp - 0x30] */ 8704 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36113815: fstp dword ptr [ebp - 0x10] */ 8705 ecx = MEM32(ebp + (-0x10)); /* 0x36113818: mov ecx, dword ptr [ebp - 0x10] */ 8706 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3611381B: fld dword ptr [ebp - 0x18] */ 8707 MEM32(ebp + (-0x24)) = ecx; /* 0x3611381E: mov dword ptr [ebp - 0x24], ecx */ 8708 _st[0] += _st[1]; /* 0x36113821: fadd st(1) */ 8709 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36113823: fstp dword ptr [ebp - 0x2c] */ 8710 edx = MEM32(ebp + (-0x2C)); /* 0x36113826: mov edx, dword ptr [ebp - 0x2c] */ 8711 MEM32(ebp + (-0x58)) = edx; /* 0x36113829: mov dword ptr [ebp - 0x58], edx */ 8712 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3611382C: fstp st(0) */ 8713 edx = ebp + (-0x58); /* 0x3611382E: lea edx, [ebp - 0x58] */ 8714 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36113831: fld dword ptr [ebp - 0x28] */ 8715 PUSH32(esp, edx); /* 0x36113834: push edx */ 8716 _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x36113835: fadd dword ptr [0x36170380] */ 8717 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x3611383B: fstp dword ptr [ebp - 0x28] */ 8718 eax = MEM32(ebp + (-0x28)); /* 0x3611383E: mov eax, dword ptr [ebp - 0x28] */ 8719 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36113841: fld dword ptr [ebp - 0x24] */ 8720 MEM32(ebp + (-0x54)) = eax; /* 0x36113844: mov dword ptr [ebp - 0x54], eax */ 8721 _st[0] += _st[1]; /* 0x36113847: fadd st(1) */ 8722 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36113849: fstp dword ptr [ebp - 0x24] */ 8723 ecx = MEM32(ebp + (-0x24)); /* 0x3611384C: mov ecx, dword ptr [ebp - 0x24] */ 8724 MEM32(ebp + (-0x50)) = ecx; /* 0x3611384F: mov dword ptr [ebp - 0x50], ecx */ 8725 ecx = esi; /* 0x36113852: mov ecx, esi */ 8726 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36113854: fstp st(0) */ 8727 RECOMP_ICALL(0x36111350u); /* 0x36113856: call 0x36111350 */ /* not lifted */ 8728 RECOMP_FLAGS_IN(); 8729 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3611385B: fld dword ptr [ebp - 0x1c] */ 8730 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8731 edi = edi - 1; /* 0x3611385E: dec edi */ 8732 _flag_k = FK_DEC; 8733 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3611385F: fadd dword ptr [ebp - 0x20] */ 8734 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36113862: fstp dword ptr [ebp - 0x1c] */ 8735 RECOMP_BACKEDGE(); 8736 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3611378B; /* 0x36113865: jne 0x3611378b */ 8737 L_3611386B: 8738 eax = MEM32(ebp + (-0x48)); /* 0x3611386B: mov eax, dword ptr [ebp - 0x48] */ 8739 MEM32(esi + 0xA8) = eax; /* 0x3611386E: mov dword ptr [esi + 0xa8], eax */ 8740 L_36113874: 8741 RECOMP_ICALL(0x360F7B00u); /* 0x36113874: call 0x360f7b00 */ /* not lifted */ 8742 RECOMP_FLAGS_IN(); 8743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x28u); 8744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8745 eax = eax + 0x28u; /* 0x36113879: add eax, 0x28 */ 8746 _flag_k = FK_ADD; 8747 ecx = MEM32(eax); /* 0x3611387C: mov ecx, dword ptr [eax] */ 8748 MEM32(ebp + (-0x68)) = ecx; /* 0x3611387E: mov dword ptr [ebp - 0x68], ecx */ 8749 edx = MEM32(eax + 0x4); /* 0x36113881: mov edx, dword ptr [eax + 4] */ 8750 MEM32(ebp + (-0x64)) = edx; /* 0x36113884: mov dword ptr [ebp - 0x64], edx */ 8751 edx = MEM32(esi + 0x8); /* 0x36113887: mov edx, dword ptr [esi + 8] */ 8752 eax = MEM32(eax + 0x8); /* 0x3611388A: mov eax, dword ptr [eax + 8] */ 8753 ecx = ebp + (-0x68); /* 0x3611388D: lea ecx, [ebp - 0x68] */ 8754 PUSH32(esp, ecx); /* 0x36113890: push ecx */ 8755 ecx = MEM32(esi + 0x24); /* 0x36113891: mov ecx, dword ptr [esi + 0x24] */ 8756 PUSH32(esp, edx); /* 0x36113894: push edx */ 8757 MEM32(ebp + (-0x60)) = eax; /* 0x36113895: mov dword ptr [ebp - 0x60], eax */ 8758 RECOMP_ICALL(MEM32(0x3616F6C0)); /* 0x36113898: call dword ptr [0x3616f6c0] */ 8759 RECOMP_FLAGS_IN(); 8760 ecx = MEM32(esi + 0x20); /* 0x3611389E: mov ecx, dword ptr [esi + 0x20] */ 8761 eax = ebp + (-0x58); /* 0x361138A1: lea eax, [ebp - 0x58] */ 8762 PUSH32(esp, eax); /* 0x361138A4: push eax */ 8763 RECOMP_ICALL(0x36133E80u); /* 0x361138A5: call 0x36133e80 */ /* not lifted */ 8764 RECOMP_FLAGS_IN(); 8765 ecx = MEM32(esi + 0x24); /* 0x361138AA: mov ecx, dword ptr [esi + 0x24] */ 8766 edi = MEM32(eax); /* 0x361138AD: mov edi, dword ptr [eax] */ 8767 edx = ecx + 0x78; /* 0x361138AF: lea edx, [ecx + 0x78] */ 8768 MEM32(edx) = edi; /* 0x361138B2: mov dword ptr [edx], edi */ 8769 edi = MEM32(eax + 0x4); /* 0x361138B4: mov edi, dword ptr [eax + 4] */ 8770 MEM32(edx + 0x4) = edi; /* 0x361138B7: mov dword ptr [edx + 4], edi */ 8771 eax = MEM32(eax + 0x8); /* 0x361138BA: mov eax, dword ptr [eax + 8] */ 8772 PUSH32(esp, 1); /* 0x361138BD: push 1 */ 8773 MEM32(edx + 0x8) = eax; /* 0x361138BF: mov dword ptr [edx + 8], eax */ 8774 edx = MEM32(ecx); /* 0x361138C2: mov edx, dword ptr [ecx] */ 8775 PUSH32(esp, 1); /* 0x361138C4: push 1 */ 8776 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x361138C6: call dword ptr [edx + 0x2c] */ 8777 RECOMP_FLAGS_IN(); 8778 ecx = MEM32(esi + 0x20); /* 0x361138C9: mov ecx, dword ptr [esi + 0x20] */ 8779 eax = ebp + (-0xB4); /* 0x361138CC: lea eax, [ebp - 0xb4] */ 8780 PUSH32(esp, eax); /* 0x361138D2: push eax */ 8781 RECOMP_ICALL(0x36133DC0u); /* 0x361138D3: call 0x36133dc0 */ /* not lifted */ 8782 RECOMP_FLAGS_IN(); 8783 PUSH32(esp, eax); /* 0x361138D8: push eax */ 8784 ecx = ebp + (-0x5C); /* 0x361138D9: lea ecx, [ebp - 0x5c] */ 8785 MEM32(ebp + (-0x4)) = 0; /* 0x361138DC: mov dword ptr [ebp - 4], 0 */ 8786 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x361138E3: call dword ptr [0x361701a4] */ 8787 RECOMP_FLAGS_IN(); 8788 ecx = MEM32(esi + 0x24); /* 0x361138E9: mov ecx, dword ptr [esi + 0x24] */ 8789 edi = MEM32(eax); /* 0x361138EC: mov edi, dword ptr [eax] */ 8790 edx = ecx + 0x84; /* 0x361138EE: lea edx, [ecx + 0x84] */ 8791 MEM32(edx) = edi; /* 0x361138F4: mov dword ptr [edx], edi */ 8792 edi = MEM32(eax + 0x4); /* 0x361138F6: mov edi, dword ptr [eax + 4] */ 8793 MEM32(edx + 0x4) = edi; /* 0x361138F9: mov dword ptr [edx + 4], edi */ 8794 edi = MEM32(eax + 0x8); /* 0x361138FC: mov edi, dword ptr [eax + 8] */ 8795 MEM32(edx + 0x8) = edi; /* 0x361138FF: mov dword ptr [edx + 8], edi */ 8796 eax = MEM32(eax + 0xC); /* 0x36113902: mov eax, dword ptr [eax + 0xc] */ 8797 PUSH32(esp, 1); /* 0x36113905: push 1 */ 8798 MEM32(edx + 0xC) = eax; /* 0x36113907: mov dword ptr [edx + 0xc], eax */ 8799 edx = MEM32(ecx); /* 0x3611390A: mov edx, dword ptr [ecx] */ 8800 PUSH32(esp, 2); /* 0x3611390C: push 2 */ 8801 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3611390E: call dword ptr [edx + 0x2c] */ 8802 RECOMP_FLAGS_IN(); 8803 eax = MEM32(esi + 0x20); /* 0x36113911: mov eax, dword ptr [esi + 0x20] */ 8804 SET_LO8(ebx, MEM8(eax + 0x108)); /* 0x36113914: mov bl, byte ptr [eax + 0x108] */ 8805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8806 ecx = 0; /* 0x3611391A: xor ecx, ecx */ 8807 _cf = 0; 8808 _flag_k = FK_TEST; 8809 /* test LO8(ebx), LO8(ebx) */ /* 0x3611391C: test bl, bl */ 8810 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8811 _cf = 0; 8812 _flag_k = FK_NARROW(FK_TEST, 24); 8813 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x3611391E: sete cl */ 8814 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36113921: mov dword ptr [ebp - 4], 0xffffffff */ 8815 PUSH32(esp, ecx); /* 0x36113928: push ecx */ 8816 ecx = MEM32(esi + 0x24); /* 0x36113929: mov ecx, dword ptr [esi + 0x24] */ 8817 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x3611392C: call dword ptr [0x3616f620] */ 8818 RECOMP_FLAGS_IN(); 8819 edx = MEM32(esi + 0x28); /* 0x36113932: mov edx, dword ptr [esi + 0x28] */ 8820 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 8821 edx = edx & 0x200u; /* 0x36113935: and edx, 0x200 */ 8822 _cf = 0; 8823 _flag_k = FK_TEST; 8824 /* cmp edx, 0x200u */ /* 0x3611393B: cmp edx, 0x200 */ 8825 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x200u); 8826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8827 _flag_k = FK_CMP; 8828 edi = POP32_VAL(esp); /* 0x36113941: pop edi */ 8829 ebx = POP32_VAL(esp); /* 0x36113942: pop ebx */ 8830 if (CMP_NE(_flag_a, _flag_b)) goto L_36113956; /* 0x36113943: jne 0x36113956 */ 8831 L_36113945: 8832 eax = MEM32(esi + 0x24); /* 0x36113945: mov eax, dword ptr [esi + 0x24] */ 8833 ecx = MEM32(eax + 0x27C); /* 0x36113948: mov ecx, dword ptr [eax + 0x27c] */ 8834 /* test ecx, ecx */ /* 0x3611394E: test ecx, ecx */ 8835 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8836 _cf = 0; 8837 _flag_k = FK_TEST; 8838 if (TEST_NZ(_flag_a, _flag_b)) goto L_36113956; /* 0x36113950: jne 0x36113956 */ 8839 L_36113952: 8840 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36113952: mov byte ptr [esi + 0x14], 1 */ 8841 L_36113956: 8842 ecx = ebp + (-0x74); /* 0x36113956: lea ecx, [ebp - 0x74] */ 8843 PUSH32(esp, ecx); /* 0x36113959: push ecx */ 8844 ecx = MEM32(esi + 0x20); /* 0x3611395A: mov ecx, dword ptr [esi + 0x20] */ 8845 RECOMP_ICALL(0x36133FC0u); /* 0x3611395D: call 0x36133fc0 */ /* not lifted */ 8846 RECOMP_FLAGS_IN(); 8847 edx = MEM32(eax); /* 0x36113962: mov edx, dword ptr [eax] */ 8848 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xB8u); 8849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8850 esi = esi + 0xB8u; /* 0x36113964: add esi, 0xb8 */ 8851 _flag_k = FK_ADD; 8852 MEM32(esi) = edx; /* 0x3611396A: mov dword ptr [esi], edx */ 8853 ecx = MEM32(eax + 0x4); /* 0x3611396C: mov ecx, dword ptr [eax + 4] */ 8854 MEM32(esi + 0x4) = ecx; /* 0x3611396F: mov dword ptr [esi + 4], ecx */ 8855 edx = MEM32(eax + 0x8); /* 0x36113972: mov edx, dword ptr [eax + 8] */ 8856 MEM32(esi + 0x8) = edx; /* 0x36113975: mov dword ptr [esi + 8], edx */ 8857 L_36113978: 8858 ecx = MEM32(ebp + (-0xC)); /* 0x36113978: mov ecx, dword ptr [ebp - 0xc] */ 8859 esi = POP32_VAL(esp); /* 0x3611397B: pop esi */ 8860 MEM32(FS_BASE + (0)) = ecx; /* 0x3611397C: mov dword ptr fs:[0], ecx */ 8861 esp = ebp; /* 0x36113983: mov esp, ebp */ 8862 ebp = POP32_VAL(esp); /* 0x36113985: pop ebp */ 8863 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36113986: ret */ 8864 RECOMP_REGS_OUT(); 8865 } 8866 8867 void sub_36113990(void) { 8868 int _fpu_cmp = 0; 8869 uint32_t _cf = 0; 8870 int _df = 1; 8871 uint32_t _flag_k = FK_NONE; 8872 uint32_t _flag_a = 0, _flag_b = 0; 8873 uint32_t _itail_tgt = 0; 8874 RECOMP_REGS_LOCALS 8875 RECOMP_ENTER(0x36113990u); 8876 8877 L_36113990: 8878 PUSH32(esp, ebp); /* 0x36113990: push ebp */ 8879 ebp = esp; /* 0x36113991: mov ebp, esp */ 8880 PUSH32(esp, 0xFFFFFFFFu); /* 0x36113993: push -1 */ 8881 PUSH32(esp, 0x3616AE27u); /* 0x36113995: push 0x3616ae27 */ 8882 eax = MEM32(FS_BASE + (0)); /* 0x3611399A: mov eax, dword ptr fs:[0] */ 8883 PUSH32(esp, eax); /* 0x361139A0: push eax */ 8884 MEM32(FS_BASE + (0)) = esp; /* 0x361139A1: mov dword ptr fs:[0], esp */ 8885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x98u); 8886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8887 esp = esp - 0x98u; /* 0x361139A8: sub esp, 0x98 */ 8888 _flag_k = FK_CMP; 8889 PUSH32(esp, esi); /* 0x361139AE: push esi */ 8890 esi = ecx; /* 0x361139AF: mov esi, ecx */ 8891 eax = MEM32(esi + 0x28); /* 0x361139B1: mov eax, dword ptr [esi + 0x28] */ 8892 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x800u); 8893 eax = eax & 0x800u; /* 0x361139B4: and eax, 0x800 */ 8894 _cf = 0; 8895 _flag_k = FK_TEST; 8896 /* cmp eax, 0x800u */ /* 0x361139B9: cmp eax, 0x800 */ 8897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x800u); 8898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8899 _flag_k = FK_CMP; 8900 PUSH32(esp, edi); /* 0x361139BE: push edi */ 8901 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x361139BF: setne cl */ 8902 PUSH32(esp, 0x284u); /* 0x361139C2: push 0x284 */ 8903 MEM32(esi + 0xB4) = 0; /* 0x361139C7: mov dword ptr [esi + 0xb4], 0 */ 8904 MEM8(ebp + (-0x10)) = (uint8_t)(LO8(ecx)); /* 0x361139D1: mov byte ptr [ebp - 0x10], cl */ 8905 RECOMP_ICALL(0x3615FD6Au); /* 0x361139D4: call 0x3615fd6a */ /* not lifted */ 8906 RECOMP_FLAGS_IN(); 8907 edi = eax; /* 0x361139D9: mov edi, eax */ 8908 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8909 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8910 esp = esp + 4; /* 0x361139DB: add esp, 4 */ 8911 _flag_k = FK_ADD; 8912 MEM32(ebp + (-0x24)) = edi; /* 0x361139DE: mov dword ptr [ebp - 0x24], edi */ 8913 /* test edi, edi */ /* 0x361139E1: test edi, edi */ 8914 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8915 _cf = 0; 8916 _flag_k = FK_TEST; 8917 MEM32(ebp + (-0x4)) = 0; /* 0x361139E3: mov dword ptr [ebp - 4], 0 */ 8918 if (TEST_Z(_flag_a, _flag_b)) goto L_36113A43; /* 0x361139EA: je 0x36113a43 */ 8919 L_361139EC: 8920 edx = MEM32(ebp + (-0x10)); /* 0x361139EC: mov edx, dword ptr [ebp - 0x10] */ 8921 eax = MEM32(esi + 0x2C); /* 0x361139EF: mov eax, dword ptr [esi + 0x2c] */ 8922 PUSH32(esp, edx); /* 0x361139F2: push edx */ 8923 PUSH32(esp, 0); /* 0x361139F3: push 0 */ 8924 PUSH32(esp, eax); /* 0x361139F5: push eax */ 8925 RECOMP_ICALL(0x360F7B00u); /* 0x361139F6: call 0x360f7b00 */ /* not lifted */ 8926 RECOMP_FLAGS_IN(); 8927 ecx = eax; /* 0x361139FB: mov ecx, eax */ 8928 RECOMP_ICALL(0x360FBE40u); /* 0x361139FD: call 0x360fbe40 */ /* not lifted */ 8929 RECOMP_FLAGS_IN(); 8930 PUSH32(esp, eax); /* 0x36113A02: push eax */ 8931 ecx = edi; /* 0x36113A03: mov ecx, edi */ 8932 RECOMP_ICALL(MEM32(0x3616F6DC)); /* 0x36113A05: call dword ptr [0x3616f6dc] */ 8933 RECOMP_FLAGS_IN(); 8934 MEM32(edi) = 0x361761E4u; /* 0x36113A0B: mov dword ptr [edi], 0x361761e4 */ 8935 MEM32(edi + 0x8) = 0x361761D4u; /* 0x36113A11: mov dword ptr [edi + 8], 0x361761d4 */ 8936 MEM32(edi + 0x20) = 0x361761C4u; /* 0x36113A18: mov dword ptr [edi + 0x20], 0x361761c4 */ 8937 MEM32(edi + 0x38) = 0x361761B4u; /* 0x36113A1F: mov dword ptr [edi + 0x38], 0x361761b4 */ 8938 MEM32(edi + 0x50) = 0x361761A4u; /* 0x36113A26: mov dword ptr [edi + 0x50], 0x361761a4 */ 8939 MEM32(edi + 0x138) = 0x36176194u; /* 0x36113A2D: mov dword ptr [edi + 0x138], 0x36176194 */ 8940 MEM32(edi + 0x150) = 0x36176184u; /* 0x36113A37: mov dword ptr [edi + 0x150], 0x36176184 */ 8941 goto L_36113A45; /* 0x36113A41: jmp 0x36113a45 */ 8942 L_36113A43: 8943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8944 edi = 0; /* 0x36113A43: xor edi, edi */ 8945 _cf = 0; 8946 _flag_k = FK_TEST; 8947 L_36113A45: 8948 ecx = MEM32(esi + 0x2C); /* 0x36113A45: mov ecx, dword ptr [esi + 0x2c] */ 8949 PUSH32(esp, ecx); /* 0x36113A48: push ecx */ 8950 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36113A49: mov dword ptr [ebp - 4], 0xffffffff */ 8951 MEM32(esi + 0x24) = edi; /* 0x36113A50: mov dword ptr [esi + 0x24], edi */ 8952 RECOMP_ICALL(0x360F7B00u); /* 0x36113A53: call 0x360f7b00 */ /* not lifted */ 8953 RECOMP_FLAGS_IN(); 8954 ecx = eax; /* 0x36113A58: mov ecx, eax */ 8955 RECOMP_ICALL(0x360FBE60u); /* 0x36113A5A: call 0x360fbe60 */ /* not lifted */ 8956 RECOMP_FLAGS_IN(); 8957 ecx = MEM32(esi + 0x24); /* 0x36113A5F: mov ecx, dword ptr [esi + 0x24] */ 8958 MEM32(ecx + 0x1E0) = eax; /* 0x36113A62: mov dword ptr [ecx + 0x1e0], eax */ 8959 edx = MEM32(esi + 0x2C); /* 0x36113A68: mov edx, dword ptr [esi + 0x2c] */ 8960 PUSH32(esp, edx); /* 0x36113A6B: push edx */ 8961 RECOMP_ICALL(0x360F7B00u); /* 0x36113A6C: call 0x360f7b00 */ /* not lifted */ 8962 RECOMP_FLAGS_IN(); 8963 ecx = eax; /* 0x36113A71: mov ecx, eax */ 8964 RECOMP_ICALL(0x360FBEA0u); /* 0x36113A73: call 0x360fbea0 */ /* not lifted */ 8965 RECOMP_FLAGS_IN(); 8966 ecx = MEM32(esi + 0x24); /* 0x36113A78: mov ecx, dword ptr [esi + 0x24] */ 8967 MEM32(ecx + 0x1E4) = eax; /* 0x36113A7B: mov dword ptr [ecx + 0x1e4], eax */ 8968 eax = MEM32(esi + 0x2C); /* 0x36113A81: mov eax, dword ptr [esi + 0x2c] */ 8969 PUSH32(esp, eax); /* 0x36113A84: push eax */ 8970 RECOMP_ICALL(0x360F7B00u); /* 0x36113A85: call 0x360f7b00 */ /* not lifted */ 8971 RECOMP_FLAGS_IN(); 8972 ecx = eax; /* 0x36113A8A: mov ecx, eax */ 8973 RECOMP_ICALL(0x360FBEE0u); /* 0x36113A8C: call 0x360fbee0 */ /* not lifted */ 8974 RECOMP_FLAGS_IN(); 8975 ecx = MEM32(esi + 0x2C); /* 0x36113A91: mov ecx, dword ptr [esi + 0x2c] */ 8976 MEM32(ebp + (-0x10)) = eax; /* 0x36113A94: mov dword ptr [ebp - 0x10], eax */ 8977 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36113A97: fild dword ptr [ebp - 0x10] */ 8978 PUSH32(esp, ecx); /* 0x36113A9A: push ecx */ 8979 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xAC) = _v; } /* 0x36113A9B: fstp dword ptr [esi + 0xac] */ 8980 RECOMP_ICALL(0x360F7B00u); /* 0x36113AA1: call 0x360f7b00 */ /* not lifted */ 8981 RECOMP_FLAGS_IN(); 8982 ecx = eax; /* 0x36113AA6: mov ecx, eax */ 8983 RECOMP_ICALL(0x360FBF20u); /* 0x36113AA8: call 0x360fbf20 */ /* not lifted */ 8984 RECOMP_FLAGS_IN(); 8985 ecx = MEM32(esi + 0x20); /* 0x36113AAD: mov ecx, dword ptr [esi + 0x20] */ 8986 MEM32(ebp + (-0x10)) = eax; /* 0x36113AB0: mov dword ptr [ebp - 0x10], eax */ 8987 fp_push((double)(int32_t)MEM32(ebp + (-0x10))); /* 0x36113AB3: fild dword ptr [ebp - 0x10] */ 8988 edx = ebp + (-0x48); /* 0x36113AB6: lea edx, [ebp - 0x48] */ 8989 PUSH32(esp, edx); /* 0x36113AB9: push edx */ 8990 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0xB0) = _v; } /* 0x36113ABA: fstp dword ptr [esi + 0xb0] */ 8991 RECOMP_ICALL(0x36133E80u); /* 0x36113AC0: call 0x36133e80 */ /* not lifted */ 8992 RECOMP_FLAGS_IN(); 8993 ecx = MEM32(esi + 0x24); /* 0x36113AC5: mov ecx, dword ptr [esi + 0x24] */ 8994 edi = MEM32(eax); /* 0x36113AC8: mov edi, dword ptr [eax] */ 8995 edx = ecx + 0x78; /* 0x36113ACA: lea edx, [ecx + 0x78] */ 8996 MEM32(edx) = edi; /* 0x36113ACD: mov dword ptr [edx], edi */ 8997 edi = MEM32(eax + 0x4); /* 0x36113ACF: mov edi, dword ptr [eax + 4] */ 8998 MEM32(edx + 0x4) = edi; /* 0x36113AD2: mov dword ptr [edx + 4], edi */ 8999 eax = MEM32(eax + 0x8); /* 0x36113AD5: mov eax, dword ptr [eax + 8] */ 9000 PUSH32(esp, 1); /* 0x36113AD8: push 1 */ 9001 MEM32(edx + 0x8) = eax; /* 0x36113ADA: mov dword ptr [edx + 8], eax */ 9002 edx = MEM32(ecx); /* 0x36113ADD: mov edx, dword ptr [ecx] */ 9003 PUSH32(esp, 1); /* 0x36113ADF: push 1 */ 9004 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36113AE1: call dword ptr [edx + 0x2c] */ 9005 RECOMP_FLAGS_IN(); 9006 ecx = MEM32(esi + 0x20); /* 0x36113AE4: mov ecx, dword ptr [esi + 0x20] */ 9007 eax = ebp + (-0xA4); /* 0x36113AE7: lea eax, [ebp - 0xa4] */ 9008 PUSH32(esp, eax); /* 0x36113AED: push eax */ 9009 RECOMP_ICALL(0x36133DC0u); /* 0x36113AEE: call 0x36133dc0 */ /* not lifted */ 9010 RECOMP_FLAGS_IN(); 9011 PUSH32(esp, eax); /* 0x36113AF3: push eax */ 9012 ecx = ebp + (-0x4C); /* 0x36113AF4: lea ecx, [ebp - 0x4c] */ 9013 MEM32(ebp + (-0x4)) = 1; /* 0x36113AF7: mov dword ptr [ebp - 4], 1 */ 9014 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x36113AFE: call dword ptr [0x361701a4] */ 9015 RECOMP_FLAGS_IN(); 9016 ecx = MEM32(esi + 0x24); /* 0x36113B04: mov ecx, dword ptr [esi + 0x24] */ 9017 edi = MEM32(eax); /* 0x36113B07: mov edi, dword ptr [eax] */ 9018 edx = ecx + 0x84; /* 0x36113B09: lea edx, [ecx + 0x84] */ 9019 MEM32(edx) = edi; /* 0x36113B0F: mov dword ptr [edx], edi */ 9020 edi = MEM32(eax + 0x4); /* 0x36113B11: mov edi, dword ptr [eax + 4] */ 9021 MEM32(edx + 0x4) = edi; /* 0x36113B14: mov dword ptr [edx + 4], edi */ 9022 edi = MEM32(eax + 0x8); /* 0x36113B17: mov edi, dword ptr [eax + 8] */ 9023 MEM32(edx + 0x8) = edi; /* 0x36113B1A: mov dword ptr [edx + 8], edi */ 9024 eax = MEM32(eax + 0xC); /* 0x36113B1D: mov eax, dword ptr [eax + 0xc] */ 9025 PUSH32(esp, 1); /* 0x36113B20: push 1 */ 9026 MEM32(edx + 0xC) = eax; /* 0x36113B22: mov dword ptr [edx + 0xc], eax */ 9027 edx = MEM32(ecx); /* 0x36113B25: mov edx, dword ptr [ecx] */ 9028 PUSH32(esp, 2); /* 0x36113B27: push 2 */ 9029 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x36113B29: call dword ptr [edx + 0x2c] */ 9030 RECOMP_FLAGS_IN(); 9031 ecx = MEM32(esi + 0x24); /* 0x36113B2C: mov ecx, dword ptr [esi + 0x24] */ 9032 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36113B2F: mov dword ptr [ebp - 4], 0xffffffff */ 9033 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36113B36: call dword ptr [0x3616f5f8] */ 9034 RECOMP_FLAGS_IN(); 9035 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36113B3C: fld dword ptr [0x36170380] */ 9036 _st[0] /= (double)*(float*)ADDR(esi + 0x94); /* 0x36113B42: fdiv dword ptr [esi + 0x94] */ 9037 eax = MEM32(esi + 0x48); /* 0x36113B48: mov eax, dword ptr [esi + 0x48] */ 9038 ecx = MEM32(esi + 0x4C); /* 0x36113B4B: mov ecx, dword ptr [esi + 0x4c] */ 9039 MEM32(ebp + (-0x1C)) = eax; /* 0x36113B4E: mov dword ptr [ebp - 0x1c], eax */ 9040 MEM32(ebp + (-0x18)) = ecx; /* 0x36113B51: mov dword ptr [ebp - 0x18], ecx */ 9041 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36113B54: fstp dword ptr [ebp - 0x14] */ 9042 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x36113B57: fld dword ptr [esi + 0x58] */ 9043 edx = MEM32(esi + 0x50); /* 0x36113B5A: mov edx, dword ptr [esi + 0x50] */ 9044 _st[0] -= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36113B5D: fsub dword ptr [ebp - 0x1c] */ 9045 eax = MEM32(esi + 0x54); /* 0x36113B60: mov eax, dword ptr [esi + 0x54] */ 9046 MEM32(ebp + (-0x2C)) = edx; /* 0x36113B63: mov dword ptr [ebp - 0x2c], edx */ 9047 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113B66: fmul dword ptr [ebp - 0x14] */ 9048 MEM32(ebp + (-0x28)) = eax; /* 0x36113B69: mov dword ptr [ebp - 0x28], eax */ 9049 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36113B6C: fstp dword ptr [ebp - 0x24] */ 9050 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x36113B6F: fld dword ptr [esi + 0x5c] */ 9051 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36113B72: fsub dword ptr [ebp - 0x18] */ 9052 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113B75: fmul dword ptr [ebp - 0x14] */ 9053 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36113B78: fstp dword ptr [ebp - 0x3c] */ 9054 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x36113B7B: fld dword ptr [esi + 0x60] */ 9055 _st[0] -= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36113B7E: fsub dword ptr [ebp - 0x2c] */ 9056 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113B81: fmul dword ptr [ebp - 0x14] */ 9057 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36113B84: fstp dword ptr [ebp - 0x38] */ 9058 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x36113B87: fld dword ptr [esi + 0x64] */ 9059 _st[0] -= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36113B8A: fsub dword ptr [ebp - 0x28] */ 9060 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113B8D: fmul dword ptr [ebp - 0x14] */ 9061 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36113B90: fstp dword ptr [ebp - 0x34] */ 9062 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36113B93: fld dword ptr [esi + 0x30] */ 9063 _st[0] *= (double)*(float*)ADDR(esi + 0x94); /* 0x36113B96: fmul dword ptr [esi + 0x94] */ 9064 _st[0] *= (double)*(float*)ADDR(0x36174F9C); /* 0x36113B9C: fmul dword ptr [0x36174f9c] */ 9065 RECOMP_ICALL(0x3615FD8Cu); /* 0x36113BA2: call 0x3615fd8c */ /* not lifted */ 9066 RECOMP_FLAGS_IN(); 9067 ecx = MEM32(esi + 0x84); /* 0x36113BA7: mov ecx, dword ptr [esi + 0x84] */ 9068 /* cmp eax, ecx */ /* 0x36113BAD: cmp eax, ecx */ 9069 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9071 _flag_k = FK_CMP; 9072 if (CMP_GE(_flag_a, _flag_b)) goto L_36113BB3; /* 0x36113BAF: jge 0x36113bb3 */ 9073 L_36113BB1: 9074 eax = ecx; /* 0x36113BB1: mov eax, ecx */ 9075 L_36113BB3: 9076 ecx = MEM32(esi + 0x24); /* 0x36113BB3: mov ecx, dword ptr [esi + 0x24] */ 9077 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36113BB6: shl eax, 4 */ 9078 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9079 eax = eax << 4u; /* 0x36113BB6: shl eax, 4 */ 9080 PUSH32(esp, eax); /* 0x36113BB9: push eax */ 9081 RECOMP_ICALL(MEM32(0x3616F6D8)); /* 0x36113BBA: call dword ptr [0x3616f6d8] */ 9082 RECOMP_FLAGS_IN(); 9083 fp_push(*(float*)&MEM32(esi + 0xB0)); /* 0x36113BC0: fld dword ptr [esi + 0xb0] */ 9084 ecx = MEM32(esi + 0xAC); /* 0x36113BC6: mov ecx, dword ptr [esi + 0xac] */ 9085 edx = MEM32(esi + 0x40); /* 0x36113BCC: mov edx, dword ptr [esi + 0x40] */ 9086 eax = MEM32(esi + 0x38); /* 0x36113BCF: mov eax, dword ptr [esi + 0x38] */ 9087 PUSH32(esp, 1); /* 0x36113BD2: push 1 */ 9088 PUSH32(esp, 0); /* 0x36113BD4: push 0 */ 9089 PUSH32(esp, 0); /* 0x36113BD6: push 0 */ 9090 PUSH32(esp, 0); /* 0x36113BD8: push 0 */ 9091 PUSH32(esp, 0); /* 0x36113BDA: push 0 */ 9092 PUSH32(esp, ecx); /* 0x36113BDC: push ecx */ 9093 MEM32(ebp + (-0x30)) = ecx; /* 0x36113BDD: mov dword ptr [ebp - 0x30], ecx */ 9094 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36113BE0: fsub dword ptr [ebp - 0x30] */ 9095 MEM32(ebp + (-0x20)) = edx; /* 0x36113BE3: mov dword ptr [ebp - 0x20], edx */ 9096 edx = MEM32(ebp + (-0x34)); /* 0x36113BE6: mov edx, dword ptr [ebp - 0x34] */ 9097 MEM32(ebp + (-0x10)) = eax; /* 0x36113BE9: mov dword ptr [ebp - 0x10], eax */ 9098 eax = MEM32(ebp + (-0x38)); /* 0x36113BEC: mov eax, dword ptr [ebp - 0x38] */ 9099 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113BEF: fmul dword ptr [ebp - 0x14] */ 9100 MEM32(ebp + (-0x58)) = 0; /* 0x36113BF2: mov dword ptr [ebp - 0x58], 0 */ 9101 MEM32(ebp + (-0x54)) = 0; /* 0x36113BF9: mov dword ptr [ebp - 0x54], 0 */ 9102 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113C00: fstp dword ptr [esp] */ 9103 PUSH32(esp, ecx); /* 0x36113C03: push ecx */ 9104 ecx = MEM32(ebp + (-0x3C)); /* 0x36113C04: mov ecx, dword ptr [ebp - 0x3c] */ 9105 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36113C07: fld dword ptr [esi + 0x44] */ 9106 _st[0] -= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36113C0A: fsub dword ptr [ebp - 0x20] */ 9107 PUSH32(esp, edx); /* 0x36113C0D: push edx */ 9108 edx = MEM32(ebp + (-0x24)); /* 0x36113C0E: mov edx, dword ptr [ebp - 0x24] */ 9109 PUSH32(esp, eax); /* 0x36113C11: push eax */ 9110 eax = MEM32(ebp + (-0x28)); /* 0x36113C12: mov eax, dword ptr [ebp - 0x28] */ 9111 PUSH32(esp, ecx); /* 0x36113C15: push ecx */ 9112 ecx = MEM32(ebp + (-0x2C)); /* 0x36113C16: mov ecx, dword ptr [ebp - 0x2c] */ 9113 PUSH32(esp, edx); /* 0x36113C19: push edx */ 9114 edx = MEM32(ebp + (-0x18)); /* 0x36113C1A: mov edx, dword ptr [ebp - 0x18] */ 9115 PUSH32(esp, eax); /* 0x36113C1D: push eax */ 9116 eax = MEM32(ebp + (-0x1C)); /* 0x36113C1E: mov eax, dword ptr [ebp - 0x1c] */ 9117 PUSH32(esp, ecx); /* 0x36113C21: push ecx */ 9118 ecx = MEM32(esi + 0x94); /* 0x36113C22: mov ecx, dword ptr [esi + 0x94] */ 9119 PUSH32(esp, edx); /* 0x36113C28: push edx */ 9120 edx = MEM32(ebp + (-0x20)); /* 0x36113C29: mov edx, dword ptr [ebp - 0x20] */ 9121 PUSH32(esp, eax); /* 0x36113C2C: push eax */ 9122 eax = MEM32(ebp + (-0x10)); /* 0x36113C2D: mov eax, dword ptr [ebp - 0x10] */ 9123 PUSH32(esp, 0xFFFFFFFFu); /* 0x36113C30: push -1 */ 9124 PUSH32(esp, ecx); /* 0x36113C32: push ecx */ 9125 PUSH32(esp, ecx); /* 0x36113C33: push ecx */ 9126 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113C34: fmul dword ptr [ebp - 0x14] */ 9127 MEM32(ebp + (-0x50)) = 0; /* 0x36113C37: mov dword ptr [ebp - 0x50], 0 */ 9128 MEM32(ebp + (-0x48)) = 0; /* 0x36113C3E: mov dword ptr [ebp - 0x48], 0 */ 9129 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113C45: fstp dword ptr [esp] */ 9130 PUSH32(esp, ecx); /* 0x36113C48: push ecx */ 9131 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36113C49: fld dword ptr [esi + 0x3c] */ 9132 ecx = ebp + (-0x58); /* 0x36113C4C: lea ecx, [ebp - 0x58] */ 9133 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36113C4F: fsub dword ptr [ebp - 0x10] */ 9134 MEM32(ebp + (-0x44)) = 0; /* 0x36113C52: mov dword ptr [ebp - 0x44], 0 */ 9135 MEM32(ebp + (-0x40)) = 0; /* 0x36113C59: mov dword ptr [ebp - 0x40], 0 */ 9136 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113C60: fmul dword ptr [ebp - 0x14] */ 9137 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113C63: fstp dword ptr [esp] */ 9138 PUSH32(esp, edx); /* 0x36113C66: push edx */ 9139 PUSH32(esp, eax); /* 0x36113C67: push eax */ 9140 PUSH32(esp, ecx); /* 0x36113C68: push ecx */ 9141 ecx = MEM32(esi + 0x24); /* 0x36113C69: mov ecx, dword ptr [esi + 0x24] */ 9142 edx = ebp + (-0x48); /* 0x36113C6C: lea edx, [ebp - 0x48] */ 9143 PUSH32(esp, edx); /* 0x36113C6F: push edx */ 9144 RECOMP_ICALL(MEM32(0x3616F6D4)); /* 0x36113C70: call dword ptr [0x3616f6d4] */ 9145 RECOMP_FLAGS_IN(); 9146 ecx = MEM32(esi + 0x20); /* 0x36113C76: mov ecx, dword ptr [esi + 0x20] */ 9147 eax = ebp + (-0x64); /* 0x36113C79: lea eax, [ebp - 0x64] */ 9148 PUSH32(esp, eax); /* 0x36113C7C: push eax */ 9149 RECOMP_ICALL(0x36133FC0u); /* 0x36113C7D: call 0x36133fc0 */ /* not lifted */ 9150 RECOMP_FLAGS_IN(); 9151 edx = MEM32(eax); /* 0x36113C82: mov edx, dword ptr [eax] */ 9152 ecx = esi + 0xB8; /* 0x36113C84: lea ecx, [esi + 0xb8] */ 9153 MEM32(ecx) = edx; /* 0x36113C8A: mov dword ptr [ecx], edx */ 9154 edx = MEM32(eax + 0x4); /* 0x36113C8C: mov edx, dword ptr [eax + 4] */ 9155 MEM32(ecx + 0x4) = edx; /* 0x36113C8F: mov dword ptr [ecx + 4], edx */ 9156 eax = MEM32(eax + 0x8); /* 0x36113C92: mov eax, dword ptr [eax + 8] */ 9157 MEM32(ecx + 0x8) = eax; /* 0x36113C95: mov dword ptr [ecx + 8], eax */ 9158 eax = MEM32(esi + 0x84); /* 0x36113C98: mov eax, dword ptr [esi + 0x84] */ 9159 /* test eax, eax */ /* 0x36113C9E: test eax, eax */ 9160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9161 _cf = 0; 9162 _flag_k = FK_TEST; 9163 if (TEST_LE(_flag_a, _flag_b)) goto L_36113CBA; /* 0x36113CA0: jle 0x36113cba */ 9164 L_36113CA2: 9165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9166 eax = eax - 1; /* 0x36113CA2: dec eax */ 9167 _flag_k = FK_DEC; 9168 ecx = esi; /* 0x36113CA3: mov ecx, esi */ 9169 MEM32(esi + 0x84) = eax; /* 0x36113CA5: mov dword ptr [esi + 0x84], eax */ 9170 RECOMP_ICALL(0x36113CD0u); /* 0x36113CAB: call 0x36113cd0 */ /* not lifted */ 9171 RECOMP_FLAGS_IN(); 9172 eax = MEM32(esi + 0x84); /* 0x36113CB0: mov eax, dword ptr [esi + 0x84] */ 9173 /* test eax, eax */ /* 0x36113CB6: test eax, eax */ 9174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9175 _cf = 0; 9176 _flag_k = FK_TEST; 9177 RECOMP_BACKEDGE(); 9178 if (TEST_G(_flag_a, _flag_b)) goto L_36113CA2; /* 0x36113CB8: jg 0x36113ca2 */ 9179 L_36113CBA: 9180 ecx = MEM32(ebp + (-0xC)); /* 0x36113CBA: mov ecx, dword ptr [ebp - 0xc] */ 9181 edi = POP32_VAL(esp); /* 0x36113CBD: pop edi */ 9182 esi = POP32_VAL(esp); /* 0x36113CBE: pop esi */ 9183 MEM32(FS_BASE + (0)) = ecx; /* 0x36113CBF: mov dword ptr fs:[0], ecx */ 9184 esp = ebp; /* 0x36113CC6: mov esp, ebp */ 9185 ebp = POP32_VAL(esp); /* 0x36113CC8: pop ebp */ 9186 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36113CC9: ret */ 9187 RECOMP_REGS_OUT(); 9188 } 9189 9190 void sub_36113CD0(void) { 9191 int _fpu_cmp = 0; 9192 uint32_t _cf = 0; 9193 int _df = 1; 9194 uint32_t _flag_k = FK_NONE; 9195 uint32_t _flag_a = 0, _flag_b = 0; 9196 uint32_t _itail_tgt = 0; 9197 RECOMP_REGS_LOCALS 9198 RECOMP_ENTER(0x36113CD0u); 9199 9200 L_36113CD0: 9201 PUSH32(esp, ebp); /* 0x36113CD0: push ebp */ 9202 ebp = esp; /* 0x36113CD1: mov ebp, esp */ 9203 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x94u); 9204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9205 esp = esp - 0x94u; /* 0x36113CD3: sub esp, 0x94 */ 9206 _flag_k = FK_CMP; 9207 PUSH32(esp, esi); /* 0x36113CD9: push esi */ 9208 esi = ecx; /* 0x36113CDA: mov esi, ecx */ 9209 ecx = 0x3630DBB8u; /* 0x36113CDC: mov ecx, 0x3630dbb8 */ 9210 RECOMP_ICALL(0x3615BCE0u); /* 0x36113CE1: call 0x3615bce0 */ /* not lifted */ 9211 RECOMP_FLAGS_IN(); 9212 fp_push(*(float*)&MEM32(esi + 0x70)); /* 0x36113CE6: fld dword ptr [esi + 0x70] */ 9213 _st[0] -= (double)*(float*)ADDR(esi + 0x6C); /* 0x36113CE9: fsub dword ptr [esi + 0x6c] */ 9214 ecx = 0x3630DBB8u; /* 0x36113CEC: mov ecx, 0x3630dbb8 */ 9215 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36113CF1: fmulp st(1) */ 9216 _st[0] += (double)*(float*)ADDR(esi + 0x6C); /* 0x36113CF3: fadd dword ptr [esi + 0x6c] */ 9217 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36113CF6: fstp dword ptr [ebp - 4] */ 9218 RECOMP_ICALL(0x3615BCE0u); /* 0x36113CF9: call 0x3615bce0 */ /* not lifted */ 9219 RECOMP_FLAGS_IN(); 9220 fp_push(*(float*)&MEM32(esi + 0x78)); /* 0x36113CFE: fld dword ptr [esi + 0x78] */ 9221 _st[0] -= (double)*(float*)ADDR(esi + 0x74); /* 0x36113D01: fsub dword ptr [esi + 0x74] */ 9222 ecx = 0x3630DBB8u; /* 0x36113D04: mov ecx, 0x3630dbb8 */ 9223 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36113D09: fmulp st(1) */ 9224 _st[0] += (double)*(float*)ADDR(esi + 0x74); /* 0x36113D0B: fadd dword ptr [esi + 0x74] */ 9225 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36113D0E: fstp dword ptr [ebp - 8] */ 9226 RECOMP_ICALL(0x3615BCE0u); /* 0x36113D11: call 0x3615bce0 */ /* not lifted */ 9227 RECOMP_FLAGS_IN(); 9228 fp_push(*(float*)&MEM32(esi + 0x80)); /* 0x36113D16: fld dword ptr [esi + 0x80] */ 9229 _st[0] -= (double)*(float*)ADDR(esi + 0x7C); /* 0x36113D1C: fsub dword ptr [esi + 0x7c] */ 9230 ecx = MEM32(esi + 0x20); /* 0x36113D1F: mov ecx, dword ptr [esi + 0x20] */ 9231 eax = ebp + (-0x3C); /* 0x36113D22: lea eax, [ebp - 0x3c] */ 9232 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36113D25: fmulp st(1) */ 9233 PUSH32(esp, eax); /* 0x36113D27: push eax */ 9234 _st[0] += (double)*(float*)ADDR(esi + 0x7C); /* 0x36113D28: fadd dword ptr [esi + 0x7c] */ 9235 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36113D2B: fld dword ptr [ebp - 8] */ 9236 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36113D2E: fcos */ 9237 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36113D30: fld dword ptr [ebp - 4] */ 9238 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36113D33: fcos */ 9239 _st[0] *= _st[1]; /* 0x36113D35: fmul st(1) */ 9240 _st[0] *= _st[2]; /* 0x36113D37: fmul st(2) */ 9241 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x36113D39: fstp dword ptr [ebp - 0x24] */ 9242 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36113D3C: fld dword ptr [ebp - 8] */ 9243 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36113D3F: fsin */ 9244 _st[0] *= _st[2]; /* 0x36113D41: fmul st(2) */ 9245 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36113D43: fstp dword ptr [ebp - 8] */ 9246 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36113D46: fld dword ptr [ebp - 4] */ 9247 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x36113D49: fsin */ 9248 _st[0] *= _st[1]; /* 0x36113D4B: fmul st(1) */ 9249 _st[0] *= _st[2]; /* 0x36113D4D: fmul st(2) */ 9250 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36113D4F: fstp dword ptr [ebp - 4] */ 9251 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36113D52: fstp st(0) */ 9252 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36113D54: fstp st(0) */ 9253 RECOMP_ICALL(0x361340B0u); /* 0x36113D56: call 0x361340b0 */ /* not lifted */ 9254 RECOMP_FLAGS_IN(); 9255 ecx = MEM32(eax); /* 0x36113D5B: mov ecx, dword ptr [eax] */ 9256 edx = MEM32(eax + 0x4); /* 0x36113D5D: mov edx, dword ptr [eax + 4] */ 9257 eax = MEM32(eax + 0x8); /* 0x36113D60: mov eax, dword ptr [eax + 8] */ 9258 MEM32(ebp + (-0x14)) = ecx; /* 0x36113D63: mov dword ptr [ebp - 0x14], ecx */ 9259 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x36113D66: fld dword ptr [ebp - 0x14] */ 9260 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113D69: fmul dword ptr [ebp - 4] */ 9261 MEM32(ebp + (-0x10)) = edx; /* 0x36113D6C: mov dword ptr [ebp - 0x10], edx */ 9262 MEM32(ebp + (-0xC)) = eax; /* 0x36113D6F: mov dword ptr [ebp - 0xc], eax */ 9263 ecx = ebp + (-0x94); /* 0x36113D72: lea ecx, [ebp - 0x94] */ 9264 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36113D78: fstp dword ptr [ebp - 0x14] */ 9265 PUSH32(esp, ecx); /* 0x36113D7B: push ecx */ 9266 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36113D7C: fld dword ptr [ebp - 0x10] */ 9267 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113D7F: fmul dword ptr [ebp - 4] */ 9268 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36113D82: fstp dword ptr [ebp - 0x10] */ 9269 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36113D85: fld dword ptr [ebp - 0xc] */ 9270 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113D88: fmul dword ptr [ebp - 4] */ 9271 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36113D8B: fstp dword ptr [ebp - 0xc] */ 9272 ecx = MEM32(esi + 0x20); /* 0x36113D8E: mov ecx, dword ptr [esi + 0x20] */ 9273 RECOMP_ICALL(0x36134060u); /* 0x36113D91: call 0x36134060 */ /* not lifted */ 9274 RECOMP_FLAGS_IN(); 9275 edx = MEM32(eax); /* 0x36113D96: mov edx, dword ptr [eax] */ 9276 ecx = MEM32(eax + 0x4); /* 0x36113D98: mov ecx, dword ptr [eax + 4] */ 9277 MEM32(ebp + (-0x20)) = edx; /* 0x36113D9B: mov dword ptr [ebp - 0x20], edx */ 9278 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36113D9E: fld dword ptr [ebp - 0x20] */ 9279 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36113DA1: fmul dword ptr [ebp - 8] */ 9280 edx = MEM32(eax + 0x8); /* 0x36113DA4: mov edx, dword ptr [eax + 8] */ 9281 MEM32(ebp + (-0x1C)) = ecx; /* 0x36113DA7: mov dword ptr [ebp - 0x1c], ecx */ 9282 ecx = MEM32(esi + 0x20); /* 0x36113DAA: mov ecx, dword ptr [esi + 0x20] */ 9283 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36113DAD: fstp dword ptr [ebp - 0x20] */ 9284 MEM32(ebp + (-0x18)) = edx; /* 0x36113DB0: mov dword ptr [ebp - 0x18], edx */ 9285 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36113DB3: fld dword ptr [ebp - 0x1c] */ 9286 eax = ebp + (-0x88); /* 0x36113DB6: lea eax, [ebp - 0x88] */ 9287 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36113DBC: fmul dword ptr [ebp - 8] */ 9288 PUSH32(esp, eax); /* 0x36113DBF: push eax */ 9289 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36113DC0: fstp dword ptr [ebp - 0x1c] */ 9290 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36113DC3: fld dword ptr [ebp - 0x18] */ 9291 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36113DC6: fmul dword ptr [ebp - 8] */ 9292 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36113DC9: fstp dword ptr [ebp - 0x18] */ 9293 RECOMP_ICALL(0x36134010u); /* 0x36113DCC: call 0x36134010 */ /* not lifted */ 9294 RECOMP_FLAGS_IN(); 9295 ecx = MEM32(eax); /* 0x36113DD1: mov ecx, dword ptr [eax] */ 9296 edx = MEM32(eax + 0x4); /* 0x36113DD3: mov edx, dword ptr [eax + 4] */ 9297 eax = MEM32(eax + 0x8); /* 0x36113DD6: mov eax, dword ptr [eax + 8] */ 9298 MEM32(ebp + (-0x30)) = ecx; /* 0x36113DD9: mov dword ptr [ebp - 0x30], ecx */ 9299 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36113DDC: fld dword ptr [ebp - 0x30] */ 9300 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36113DDF: fmul dword ptr [ebp - 0x24] */ 9301 MEM32(ebp + (-0x2C)) = edx; /* 0x36113DE2: mov dword ptr [ebp - 0x2c], edx */ 9302 MEM32(ebp + (-0x28)) = eax; /* 0x36113DE5: mov dword ptr [ebp - 0x28], eax */ 9303 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36113DE8: fstp dword ptr [ebp - 0x30] */ 9304 ecx = MEM32(ebp + (-0x30)); /* 0x36113DEB: mov ecx, dword ptr [ebp - 0x30] */ 9305 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x36113DEE: fld dword ptr [ebp - 0x2c] */ 9306 MEM32(ebp + (-0x3C)) = ecx; /* 0x36113DF1: mov dword ptr [ebp - 0x3c], ecx */ 9307 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36113DF4: fmul dword ptr [ebp - 0x24] */ 9308 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x36113DF7: fstp dword ptr [ebp - 0x2c] */ 9309 edx = MEM32(ebp + (-0x2C)); /* 0x36113DFA: mov edx, dword ptr [ebp - 0x2c] */ 9310 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x36113DFD: fld dword ptr [ebp - 0x28] */ 9311 MEM32(ebp + (-0x38)) = edx; /* 0x36113E00: mov dword ptr [ebp - 0x38], edx */ 9312 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36113E03: fmul dword ptr [ebp - 0x24] */ 9313 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36113E06: fstp dword ptr [ebp - 0x28] */ 9314 eax = MEM32(ebp + (-0x28)); /* 0x36113E09: mov eax, dword ptr [ebp - 0x28] */ 9315 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36113E0C: fld dword ptr [ebp - 0x30] */ 9316 MEM32(ebp + (-0x34)) = eax; /* 0x36113E0F: mov dword ptr [ebp - 0x34], eax */ 9317 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x36113E12: fadd dword ptr [ebp - 0x20] */ 9318 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x3C)) = _v; } /* 0x36113E15: fstp dword ptr [ebp - 0x3c] */ 9319 ecx = MEM32(ebp + (-0x3C)); /* 0x36113E18: mov ecx, dword ptr [ebp - 0x3c] */ 9320 fp_push(*(float*)&MEM32(ebp + (-0x38))); /* 0x36113E1B: fld dword ptr [ebp - 0x38] */ 9321 MEM32(ebp + (-0x20)) = ecx; /* 0x36113E1E: mov dword ptr [ebp - 0x20], ecx */ 9322 _st[0] += (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x36113E21: fadd dword ptr [ebp - 0x1c] */ 9323 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x38)) = _v; } /* 0x36113E24: fstp dword ptr [ebp - 0x38] */ 9324 edx = MEM32(ebp + (-0x38)); /* 0x36113E27: mov edx, dword ptr [ebp - 0x38] */ 9325 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x36113E2A: fld dword ptr [ebp - 0x34] */ 9326 MEM32(ebp + (-0x1C)) = edx; /* 0x36113E2D: mov dword ptr [ebp - 0x1c], edx */ 9327 _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36113E30: fadd dword ptr [ebp - 0x18] */ 9328 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36113E33: fstp dword ptr [ebp - 0x34] */ 9329 eax = MEM32(ebp + (-0x34)); /* 0x36113E36: mov eax, dword ptr [ebp - 0x34] */ 9330 fp_push(*(float*)&MEM32(ebp + (-0x3C))); /* 0x36113E39: fld dword ptr [ebp - 0x3c] */ 9331 MEM32(ebp + (-0x18)) = eax; /* 0x36113E3C: mov dword ptr [ebp - 0x18], eax */ 9332 _st[0] += (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36113E3F: fadd dword ptr [ebp - 0x14] */ 9333 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36113E42: fstp dword ptr [ebp - 0x20] */ 9334 ecx = MEM32(ebp + (-0x20)); /* 0x36113E45: mov ecx, dword ptr [ebp - 0x20] */ 9335 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36113E48: fld dword ptr [ebp - 0x1c] */ 9336 MEM32(ebp + (-0x48)) = ecx; /* 0x36113E4B: mov dword ptr [ebp - 0x48], ecx */ 9337 _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36113E4E: fadd dword ptr [ebp - 0x10] */ 9338 ecx = ebp + (-0x88); /* 0x36113E51: lea ecx, [ebp - 0x88] */ 9339 PUSH32(esp, ecx); /* 0x36113E57: push ecx */ 9340 ecx = MEM32(esi + 0x20); /* 0x36113E58: mov ecx, dword ptr [esi + 0x20] */ 9341 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x36113E5B: fstp dword ptr [ebp - 0x1c] */ 9342 edx = MEM32(ebp + (-0x1C)); /* 0x36113E5E: mov edx, dword ptr [ebp - 0x1c] */ 9343 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36113E61: fld dword ptr [ebp - 0x18] */ 9344 MEM32(ebp + (-0x44)) = edx; /* 0x36113E64: mov dword ptr [ebp - 0x44], edx */ 9345 _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36113E67: fadd dword ptr [ebp - 0xc] */ 9346 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x36113E6A: fstp dword ptr [ebp - 0x18] */ 9347 eax = MEM32(ebp + (-0x18)); /* 0x36113E6D: mov eax, dword ptr [ebp - 0x18] */ 9348 MEM32(ebp + (-0x40)) = eax; /* 0x36113E70: mov dword ptr [ebp - 0x40], eax */ 9349 RECOMP_ICALL(0x36133FC0u); /* 0x36113E73: call 0x36133fc0 */ /* not lifted */ 9350 RECOMP_FLAGS_IN(); 9351 edx = MEM32(eax); /* 0x36113E78: mov edx, dword ptr [eax] */ 9352 MEM32(ebp + (-0x74)) = edx; /* 0x36113E7A: mov dword ptr [ebp - 0x74], edx */ 9353 ecx = MEM32(eax + 0x4); /* 0x36113E7D: mov ecx, dword ptr [eax + 4] */ 9354 MEM32(ebp + (-0x70)) = ecx; /* 0x36113E80: mov dword ptr [ebp - 0x70], ecx */ 9355 edx = MEM32(eax + 0x8); /* 0x36113E83: mov edx, dword ptr [eax + 8] */ 9356 fp_push(*(float*)&MEM32(esi + 0x88)); /* 0x36113E86: fld dword ptr [esi + 0x88] */ 9357 eax = MEM32(ebp + (-0x48)); /* 0x36113E8C: mov eax, dword ptr [ebp - 0x48] */ 9358 fp_push(*(float*)&MEM32(ebp + (-0x48))); /* 0x36113E8F: fld dword ptr [ebp - 0x48] */ 9359 ecx = MEM32(ebp + (-0x44)); /* 0x36113E92: mov ecx, dword ptr [ebp - 0x44] */ 9360 _st[0] *= _st[1]; /* 0x36113E95: fmul st(1) */ 9361 MEM32(ebp + (-0x10)) = ecx; /* 0x36113E97: mov dword ptr [ebp - 0x10], ecx */ 9362 MEM32(ebp + (-0x14)) = eax; /* 0x36113E9A: mov dword ptr [ebp - 0x14], eax */ 9363 MEM32(ebp + (-0x6C)) = edx; /* 0x36113E9D: mov dword ptr [ebp - 0x6c], edx */ 9364 edx = MEM32(ebp + (-0x40)); /* 0x36113EA0: mov edx, dword ptr [ebp - 0x40] */ 9365 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x36113EA3: fstp dword ptr [ebp - 0x14] */ 9366 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36113EA6: fld dword ptr [ebp - 0x10] */ 9367 eax = MEM32(ebp + (-0x14)); /* 0x36113EA9: mov eax, dword ptr [ebp - 0x14] */ 9368 _st[0] *= _st[1]; /* 0x36113EAC: fmul st(1) */ 9369 MEM32(ebp + (-0xC)) = edx; /* 0x36113EAE: mov dword ptr [ebp - 0xc], edx */ 9370 MEM32(ebp + (-0x48)) = eax; /* 0x36113EB1: mov dword ptr [ebp - 0x48], eax */ 9371 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36113EB4: fstp dword ptr [ebp - 0x10] */ 9372 ecx = MEM32(ebp + (-0x10)); /* 0x36113EB7: mov ecx, dword ptr [ebp - 0x10] */ 9373 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36113EBA: fld dword ptr [ebp - 0xc] */ 9374 MEM32(ebp + (-0x44)) = ecx; /* 0x36113EBD: mov dword ptr [ebp - 0x44], ecx */ 9375 _st[0] *= _st[1]; /* 0x36113EC0: fmul st(1) */ 9376 ecx = 0x3630DBB8u; /* 0x36113EC2: mov ecx, 0x3630dbb8 */ 9377 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36113EC7: fstp dword ptr [ebp - 0xc] */ 9378 edx = MEM32(ebp + (-0xC)); /* 0x36113ECA: mov edx, dword ptr [ebp - 0xc] */ 9379 MEM32(ebp + (-0x40)) = edx; /* 0x36113ECD: mov dword ptr [ebp - 0x40], edx */ 9380 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36113ED0: fstp st(0) */ 9381 RECOMP_ICALL(0x3615BCE0u); /* 0x36113ED2: call 0x3615bce0 */ /* not lifted */ 9382 RECOMP_FLAGS_IN(); 9383 fp_push(*(float*)&MEM32(esi + 0x94)); /* 0x36113ED7: fld dword ptr [esi + 0x94] */ 9384 eax = MEM32(esi + 0x48); /* 0x36113EDD: mov eax, dword ptr [esi + 0x48] */ 9385 _st[0] -= (double)*(float*)ADDR(esi + 0x90); /* 0x36113EE0: fsub dword ptr [esi + 0x90] */ 9386 ecx = MEM32(esi + 0x4C); /* 0x36113EE6: mov ecx, dword ptr [esi + 0x4c] */ 9387 edx = MEM32(esi + 0x50); /* 0x36113EE9: mov edx, dword ptr [esi + 0x50] */ 9388 { double _v = fp_pop(); _st[0] *= _v; } /* 0x36113EEC: fmulp st(1) */ 9389 MEM32(ebp + (-0x5C)) = eax; /* 0x36113EEE: mov dword ptr [ebp - 0x5c], eax */ 9390 eax = MEM32(esi + 0x54); /* 0x36113EF1: mov eax, dword ptr [esi + 0x54] */ 9391 _st[0] += (double)*(float*)ADDR(esi + 0x90); /* 0x36113EF4: fadd dword ptr [esi + 0x90] */ 9392 MEM32(ebp + (-0x54)) = ecx; /* 0x36113EFA: mov dword ptr [ebp - 0x54], ecx */ 9393 ecx = MEM32(esi + 0xAC); /* 0x36113EFD: mov ecx, dword ptr [esi + 0xac] */ 9394 MEM32(ebp + (-0x50)) = edx; /* 0x36113F03: mov dword ptr [ebp - 0x50], edx */ 9395 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4C)) = _v; } /* 0x36113F06: fstp dword ptr [ebp - 0x4c] */ 9396 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36113F09: fld dword ptr [0x36170380] */ 9397 edx = MEM32(esi + 0x40); /* 0x36113F0F: mov edx, dword ptr [esi + 0x40] */ 9398 _st[0] /= (double)*(float*)ADDR(ebp + (-0x4C)); /* 0x36113F12: fdiv dword ptr [ebp - 0x4c] */ 9399 MEM32(ebp + (-0x8)) = eax; /* 0x36113F15: mov dword ptr [ebp - 8], eax */ 9400 eax = MEM32(esi + 0x38); /* 0x36113F18: mov eax, dword ptr [esi + 0x38] */ 9401 MEM32(ebp + (-0x24)) = ecx; /* 0x36113F1B: mov dword ptr [ebp - 0x24], ecx */ 9402 PUSH32(esp, 1); /* 0x36113F1E: push 1 */ 9403 ecx = 0x3630DBB8u; /* 0x36113F20: mov ecx, 0x3630dbb8 */ 9404 MEM32(ebp + (-0x58)) = edx; /* 0x36113F25: mov dword ptr [ebp - 0x58], edx */ 9405 MEM32(ebp + (-0x60)) = eax; /* 0x36113F28: mov dword ptr [ebp - 0x60], eax */ 9406 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36113F2B: fstp dword ptr [ebp - 4] */ 9407 fp_push(*(float*)&MEM32(esi + 0x58)); /* 0x36113F2E: fld dword ptr [esi + 0x58] */ 9408 _st[0] -= (double)*(float*)ADDR(ebp + (-0x5C)); /* 0x36113F31: fsub dword ptr [ebp - 0x5c] */ 9409 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113F34: fmul dword ptr [ebp - 4] */ 9410 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x7C)) = _v; } /* 0x36113F37: fstp dword ptr [ebp - 0x7c] */ 9411 fp_push(*(float*)&MEM32(esi + 0x5C)); /* 0x36113F3A: fld dword ptr [esi + 0x5c] */ 9412 _st[0] -= (double)*(float*)ADDR(ebp + (-0x54)); /* 0x36113F3D: fsub dword ptr [ebp - 0x54] */ 9413 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113F40: fmul dword ptr [ebp - 4] */ 9414 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x68)) = _v; } /* 0x36113F43: fstp dword ptr [ebp - 0x68] */ 9415 fp_push(*(float*)&MEM32(esi + 0x60)); /* 0x36113F46: fld dword ptr [esi + 0x60] */ 9416 _st[0] -= (double)*(float*)ADDR(ebp + (-0x50)); /* 0x36113F49: fsub dword ptr [ebp - 0x50] */ 9417 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113F4C: fmul dword ptr [ebp - 4] */ 9418 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x64)) = _v; } /* 0x36113F4F: fstp dword ptr [ebp - 0x64] */ 9419 fp_push(*(float*)&MEM32(esi + 0x64)); /* 0x36113F52: fld dword ptr [esi + 0x64] */ 9420 _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36113F55: fsub dword ptr [ebp - 8] */ 9421 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113F58: fmul dword ptr [ebp - 4] */ 9422 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x78)) = _v; } /* 0x36113F5B: fstp dword ptr [ebp - 0x78] */ 9423 RECOMP_ICALL(0x3615BCE0u); /* 0x36113F5E: call 0x3615bce0 */ /* not lifted */ 9424 RECOMP_FLAGS_IN(); 9425 _st[0] *= (double)*(float*)ADDR(0x36170824); /* 0x36113F63: fmul dword ptr [0x36170824] */ 9426 _st[0] += (double)*(float*)ADDR(0x36170D68); /* 0x36113F69: fadd dword ptr [0x36170d68] */ 9427 PUSH32(esp, ecx); /* 0x36113F6F: push ecx */ 9428 edx = MEM32(ebp + (-0x24)); /* 0x36113F70: mov edx, dword ptr [ebp - 0x24] */ 9429 eax = MEM32(ebp + (-0x78)); /* 0x36113F73: mov eax, dword ptr [ebp - 0x78] */ 9430 _st[0] *= (double)*(float*)ADDR(esi + 0xA4); /* 0x36113F76: fmul dword ptr [esi + 0xa4] */ 9431 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113F7C: fstp dword ptr [esp] */ 9432 PUSH32(esp, ecx); /* 0x36113F7F: push ecx */ 9433 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36113F80: fld dword ptr [ebp - 0x70] */ 9434 _st[0] += (double)*(float*)ADDR(esi + 0x9C); /* 0x36113F83: fadd dword ptr [esi + 0x9c] */ 9435 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113F89: fstp dword ptr [esp] */ 9436 PUSH32(esp, ecx); /* 0x36113F8C: push ecx */ 9437 fp_push(*(float*)&MEM32(ebp + (-0x70))); /* 0x36113F8D: fld dword ptr [ebp - 0x70] */ 9438 ecx = MEM32(esi + 0xA0); /* 0x36113F90: mov ecx, dword ptr [esi + 0xa0] */ 9439 _st[0] += (double)*(float*)ADDR(esi + 0x98); /* 0x36113F96: fadd dword ptr [esi + 0x98] */ 9440 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113F9C: fstp dword ptr [esp] */ 9441 PUSH32(esp, ecx); /* 0x36113F9F: push ecx */ 9442 fp_push(*(float*)&MEM32(esi + 0xB0)); /* 0x36113FA0: fld dword ptr [esi + 0xb0] */ 9443 PUSH32(esp, ecx); /* 0x36113FA6: push ecx */ 9444 _st[0] -= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36113FA7: fsub dword ptr [ebp - 0x24] */ 9445 ecx = MEM32(ebp + (-0x64)); /* 0x36113FAA: mov ecx, dword ptr [ebp - 0x64] */ 9446 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113FAD: fmul dword ptr [ebp - 4] */ 9447 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113FB0: fstp dword ptr [esp] */ 9448 PUSH32(esp, edx); /* 0x36113FB3: push edx */ 9449 edx = MEM32(ebp + (-0x68)); /* 0x36113FB4: mov edx, dword ptr [ebp - 0x68] */ 9450 fp_push(*(float*)&MEM32(esi + 0x44)); /* 0x36113FB7: fld dword ptr [esi + 0x44] */ 9451 _st[0] -= (double)*(float*)ADDR(ebp + (-0x58)); /* 0x36113FBA: fsub dword ptr [ebp - 0x58] */ 9452 PUSH32(esp, eax); /* 0x36113FBD: push eax */ 9453 eax = MEM32(ebp + (-0x7C)); /* 0x36113FBE: mov eax, dword ptr [ebp - 0x7c] */ 9454 PUSH32(esp, ecx); /* 0x36113FC1: push ecx */ 9455 ecx = MEM32(ebp + (-0x8)); /* 0x36113FC2: mov ecx, dword ptr [ebp - 8] */ 9456 PUSH32(esp, edx); /* 0x36113FC5: push edx */ 9457 edx = MEM32(ebp + (-0x50)); /* 0x36113FC6: mov edx, dword ptr [ebp - 0x50] */ 9458 PUSH32(esp, eax); /* 0x36113FC9: push eax */ 9459 eax = MEM32(ebp + (-0x54)); /* 0x36113FCA: mov eax, dword ptr [ebp - 0x54] */ 9460 PUSH32(esp, ecx); /* 0x36113FCD: push ecx */ 9461 ecx = MEM32(ebp + (-0x5C)); /* 0x36113FCE: mov ecx, dword ptr [ebp - 0x5c] */ 9462 PUSH32(esp, edx); /* 0x36113FD1: push edx */ 9463 edx = MEM32(ebp + (-0x4C)); /* 0x36113FD2: mov edx, dword ptr [ebp - 0x4c] */ 9464 PUSH32(esp, eax); /* 0x36113FD5: push eax */ 9465 eax = MEM32(ebp + (-0x58)); /* 0x36113FD6: mov eax, dword ptr [ebp - 0x58] */ 9466 PUSH32(esp, ecx); /* 0x36113FD9: push ecx */ 9467 PUSH32(esp, 0xFFFFFFFFu); /* 0x36113FDA: push -1 */ 9468 PUSH32(esp, edx); /* 0x36113FDC: push edx */ 9469 PUSH32(esp, ecx); /* 0x36113FDD: push ecx */ 9470 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113FDE: fmul dword ptr [ebp - 4] */ 9471 edx = ebp + (-0x48); /* 0x36113FE1: lea edx, [ebp - 0x48] */ 9472 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113FE4: fstp dword ptr [esp] */ 9473 PUSH32(esp, ecx); /* 0x36113FE7: push ecx */ 9474 fp_push(*(float*)&MEM32(esi + 0x3C)); /* 0x36113FE8: fld dword ptr [esi + 0x3c] */ 9475 ecx = MEM32(ebp + (-0x60)); /* 0x36113FEB: mov ecx, dword ptr [ebp - 0x60] */ 9476 _st[0] -= (double)*(float*)ADDR(ebp + (-0x60)); /* 0x36113FEE: fsub dword ptr [ebp - 0x60] */ 9477 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36113FF1: fmul dword ptr [ebp - 4] */ 9478 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36113FF4: fstp dword ptr [esp] */ 9479 PUSH32(esp, eax); /* 0x36113FF7: push eax */ 9480 PUSH32(esp, ecx); /* 0x36113FF8: push ecx */ 9481 ecx = MEM32(esi + 0x24); /* 0x36113FF9: mov ecx, dword ptr [esi + 0x24] */ 9482 PUSH32(esp, edx); /* 0x36113FFC: push edx */ 9483 eax = ebp + (-0x74); /* 0x36113FFD: lea eax, [ebp - 0x74] */ 9484 PUSH32(esp, eax); /* 0x36114000: push eax */ 9485 RECOMP_ICALL(MEM32(0x3616F7D0)); /* 0x36114001: call dword ptr [0x3616f7d0] */ 9486 RECOMP_FLAGS_IN(); 9487 esi = POP32_VAL(esp); /* 0x36114007: pop esi */ 9488 esp = ebp; /* 0x36114008: mov esp, ebp */ 9489 ebp = POP32_VAL(esp); /* 0x3611400A: pop ebp */ 9490 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3611400B: ret */ 9491 RECOMP_REGS_OUT(); 9492 } 9493 9494 void sub_36114010(void) { 9495 int _fpu_cmp = 0; 9496 uint32_t _cf = 0; 9497 int _df = 1; 9498 uint32_t _flag_k = FK_NONE; 9499 uint32_t _flag_a = 0, _flag_b = 0; 9500 uint32_t _itail_tgt = 0; 9501 RECOMP_REGS_LOCALS 9502 RECOMP_ENTER(0x36114010u); 9503 9504 L_36114010: 9505 PUSH32(esp, ebp); /* 0x36114010: push ebp */ 9506 ebp = esp; /* 0x36114011: mov ebp, esp */ 9507 PUSH32(esp, 0xFFFFFFFFu); /* 0x36114013: push -1 */ 9508 PUSH32(esp, 0x3616AE48u); /* 0x36114015: push 0x3616ae48 */ 9509 eax = MEM32(FS_BASE + (0)); /* 0x3611401A: mov eax, dword ptr fs:[0] */ 9510 PUSH32(esp, eax); /* 0x36114020: push eax */ 9511 MEM32(FS_BASE + (0)) = esp; /* 0x36114021: mov dword ptr fs:[0], esp */ 9512 PUSH32(esp, ecx); /* 0x36114028: push ecx */ 9513 eax = MEM32(ebp + 0x8); /* 0x36114029: mov eax, dword ptr [ebp + 8] */ 9514 PUSH32(esp, esi); /* 0x3611402C: push esi */ 9515 esi = ecx; /* 0x3611402D: mov esi, ecx */ 9516 PUSH32(esp, eax); /* 0x3611402F: push eax */ 9517 MEM32(ebp + (-0x10)) = esi; /* 0x36114030: mov dword ptr [ebp - 0x10], esi */ 9518 RECOMP_ICALL(0x360FC270u); /* 0x36114033: call 0x360fc270 */ /* not lifted */ 9519 RECOMP_FLAGS_IN(); 9520 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9521 eax = 0; /* 0x36114038: xor eax, eax */ 9522 _cf = 0; 9523 _flag_k = FK_TEST; 9524 ecx = esi; /* 0x3611403A: mov ecx, esi */ 9525 MEM32(ebp + (-0x4)) = eax; /* 0x3611403C: mov dword ptr [ebp - 4], eax */ 9526 MEM32(esi + 0x20) = eax; /* 0x3611403F: mov dword ptr [esi + 0x20], eax */ 9527 MEM32(esi + 0x24) = eax; /* 0x36114042: mov dword ptr [esi + 0x24], eax */ 9528 MEM32(esi) = 0x36176B3Cu; /* 0x36114045: mov dword ptr [esi], 0x36176b3c */ 9529 RECOMP_ICALL(0x36114140u); /* 0x3611404B: call 0x36114140 */ /* not lifted */ 9530 RECOMP_FLAGS_IN(); 9531 ecx = esi; /* 0x36114050: mov ecx, esi */ 9532 RECOMP_ICALL(0x361141B0u); /* 0x36114052: call 0x361141b0 */ /* not lifted */ 9533 RECOMP_FLAGS_IN(); 9534 ecx = MEM32(ebp + (-0xC)); /* 0x36114057: mov ecx, dword ptr [ebp - 0xc] */ 9535 MEM32(esi + 0x10) = 0xBF800000u; /* 0x3611405A: mov dword ptr [esi + 0x10], 0xbf800000 */ 9536 eax = esi; /* 0x36114061: mov eax, esi */ 9537 esi = POP32_VAL(esp); /* 0x36114063: pop esi */ 9538 MEM32(FS_BASE + (0)) = ecx; /* 0x36114064: mov dword ptr fs:[0], ecx */ 9539 esp = ebp; /* 0x3611406B: mov esp, ebp */ 9540 ebp = POP32_VAL(esp); /* 0x3611406D: pop ebp */ 9541 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611406E: ret 4 */ 9542 RECOMP_REGS_OUT(); 9543 } 9544 9545 void sub_36114080(void) { 9546 int _fpu_cmp = 0; 9547 uint32_t _cf = 0; 9548 int _df = 1; 9549 uint32_t _flag_k = FK_NONE; 9550 uint32_t _flag_a = 0, _flag_b = 0; 9551 uint32_t _itail_tgt = 0; 9552 RECOMP_REGS_LOCALS 9553 RECOMP_ENTER(0x36114080u); 9554 9555 L_36114080: 9556 PUSH32(esp, ebp); /* 0x36114080: push ebp */ 9557 ebp = esp; /* 0x36114081: mov ebp, esp */ 9558 PUSH32(esp, esi); /* 0x36114083: push esi */ 9559 esi = ecx; /* 0x36114084: mov esi, ecx */ 9560 RECOMP_ICALL(0x361140B0u); /* 0x36114086: call 0x361140b0 */ /* not lifted */ 9561 RECOMP_FLAGS_IN(); 9562 /* test MEM8(ebp + 0x8), 1 */ /* 0x3611408B: test byte ptr [ebp + 8], 1 */ 9563 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9564 _cf = 0; 9565 _flag_k = FK_NARROW(FK_TEST, 24); 9566 if (TEST_Z(_flag_a, _flag_b)) goto L_3611409A; /* 0x3611408F: je 0x3611409a */ 9567 L_36114091: 9568 PUSH32(esp, esi); /* 0x36114091: push esi */ 9569 RECOMP_ICALL(0x3615FCC4u); /* 0x36114092: call 0x3615fcc4 */ /* not lifted */ 9570 RECOMP_FLAGS_IN(); 9571 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9573 esp = esp + 4; /* 0x36114097: add esp, 4 */ 9574 _flag_k = FK_ADD; 9575 L_3611409A: 9576 eax = esi; /* 0x3611409A: mov eax, esi */ 9577 esi = POP32_VAL(esp); /* 0x3611409C: pop esi */ 9578 ebp = POP32_VAL(esp); /* 0x3611409D: pop ebp */ 9579 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611409E: ret 4 */ 9580 RECOMP_REGS_OUT(); 9581 } 9582 9583 void sub_361140B0(void) { 9584 int _fpu_cmp = 0; 9585 uint32_t _cf = 0; 9586 int _df = 1; 9587 uint32_t _flag_k = FK_NONE; 9588 uint32_t _flag_a = 0, _flag_b = 0; 9589 uint32_t _itail_tgt = 0; 9590 RECOMP_REGS_LOCALS 9591 RECOMP_ENTER(0x361140B0u); 9592 9593 L_361140B0: 9594 PUSH32(esp, ebp); /* 0x361140B0: push ebp */ 9595 ebp = esp; /* 0x361140B1: mov ebp, esp */ 9596 PUSH32(esp, 0xFFFFFFFFu); /* 0x361140B3: push -1 */ 9597 PUSH32(esp, 0x3616AE68u); /* 0x361140B5: push 0x3616ae68 */ 9598 eax = MEM32(FS_BASE + (0)); /* 0x361140BA: mov eax, dword ptr fs:[0] */ 9599 PUSH32(esp, eax); /* 0x361140C0: push eax */ 9600 MEM32(FS_BASE + (0)) = esp; /* 0x361140C1: mov dword ptr fs:[0], esp */ 9601 PUSH32(esp, ecx); /* 0x361140C8: push ecx */ 9602 PUSH32(esp, esi); /* 0x361140C9: push esi */ 9603 esi = ecx; /* 0x361140CA: mov esi, ecx */ 9604 MEM32(ebp + (-0x10)) = esi; /* 0x361140CC: mov dword ptr [ebp - 0x10], esi */ 9605 MEM32(esi) = 0x36176B3Cu; /* 0x361140CF: mov dword ptr [esi], 0x36176b3c */ 9606 ecx = MEM32(esi + 0x20); /* 0x361140D5: mov ecx, dword ptr [esi + 0x20] */ 9607 /* test ecx, ecx */ /* 0x361140D8: test ecx, ecx */ 9608 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9609 _cf = 0; 9610 _flag_k = FK_TEST; 9611 MEM32(ebp + (-0x4)) = 0; /* 0x361140DA: mov dword ptr [ebp - 4], 0 */ 9612 if (TEST_Z(_flag_a, _flag_b)) goto L_361140F0; /* 0x361140E1: je 0x361140f0 */ 9613 L_361140E3: 9614 eax = MEM32(ecx); /* 0x361140E3: mov eax, dword ptr [ecx] */ 9615 PUSH32(esp, 1); /* 0x361140E5: push 1 */ 9616 RECOMP_ICALL(MEM32(eax)); /* 0x361140E7: call dword ptr [eax] */ 9617 RECOMP_FLAGS_IN(); 9618 MEM32(esi + 0x20) = 0; /* 0x361140E9: mov dword ptr [esi + 0x20], 0 */ 9619 L_361140F0: 9620 ecx = MEM32(esi + 0x24); /* 0x361140F0: mov ecx, dword ptr [esi + 0x24] */ 9621 /* test ecx, ecx */ /* 0x361140F3: test ecx, ecx */ 9622 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9623 _cf = 0; 9624 _flag_k = FK_TEST; 9625 if (TEST_Z(_flag_a, _flag_b)) goto L_36114104; /* 0x361140F5: je 0x36114104 */ 9626 L_361140F7: 9627 edx = MEM32(ecx); /* 0x361140F7: mov edx, dword ptr [ecx] */ 9628 PUSH32(esp, 1); /* 0x361140F9: push 1 */ 9629 RECOMP_ICALL(MEM32(edx)); /* 0x361140FB: call dword ptr [edx] */ 9630 RECOMP_FLAGS_IN(); 9631 MEM32(esi + 0x24) = 0; /* 0x361140FD: mov dword ptr [esi + 0x24], 0 */ 9632 L_36114104: 9633 ecx = esi; /* 0x36114104: mov ecx, esi */ 9634 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36114106: mov dword ptr [ebp - 4], 0xffffffff */ 9635 RECOMP_ICALL(0x360FC2F0u); /* 0x3611410D: call 0x360fc2f0 */ /* not lifted */ 9636 RECOMP_FLAGS_IN(); 9637 ecx = MEM32(ebp + (-0xC)); /* 0x36114112: mov ecx, dword ptr [ebp - 0xc] */ 9638 esi = POP32_VAL(esp); /* 0x36114115: pop esi */ 9639 MEM32(FS_BASE + (0)) = ecx; /* 0x36114116: mov dword ptr fs:[0], ecx */ 9640 esp = ebp; /* 0x3611411D: mov esp, ebp */ 9641 ebp = POP32_VAL(esp); /* 0x3611411F: pop ebp */ 9642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36114120: ret */ 9643 RECOMP_REGS_OUT(); 9644 } 9645 9646 void sub_36114130(void) { 9647 int _fpu_cmp = 0; 9648 uint32_t _cf = 0; 9649 int _df = 1; 9650 uint32_t _flag_k = FK_NONE; 9651 uint32_t _flag_a = 0, _flag_b = 0; 9652 uint32_t _itail_tgt = 0; 9653 RECOMP_REGS_LOCALS 9654 RECOMP_ENTER(0x36114130u); 9655 9656 goto L_36114130; 9657 L_360FC300: 9658 edx = MEM32(ecx + 0x18); /* 0x360FC300: mov edx, dword ptr [ecx + 0x18] */ 9659 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9660 eax = 0; /* 0x360FC303: xor eax, eax */ 9661 _cf = 0; 9662 _flag_k = FK_TEST; 9663 /* cmp edx, eax */ /* 0x360FC305: cmp edx, eax */ 9664 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9666 _flag_k = FK_CMP; 9667 if (CMP_NE(_flag_a, _flag_b)) goto L_360FC317; /* 0x360FC307: jne 0x360fc317 */ 9668 L_360FC309: 9669 MEM32(ecx + 0x8) = eax; /* 0x360FC309: mov dword ptr [ecx + 8], eax */ 9670 MEM32(ecx + 0xC) = eax; /* 0x360FC30C: mov dword ptr [ecx + 0xc], eax */ 9671 MEM32(ecx + 0x18) = 1; /* 0x360FC30F: mov dword ptr [ecx + 0x18], 1 */ 9672 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360FC316: ret */ 9673 L_360FC317: 9674 edx = MEM32(0x3616FF74); /* 0x360FC317: mov edx, dword ptr [0x3616ff74] */ 9675 edx = MEM32(edx); /* 0x360FC31D: mov edx, dword ptr [edx] */ 9676 fp_push(*(float*)&MEM32(edx + 0x64)); /* 0x360FC31F: fld dword ptr [edx + 0x64] */ 9677 edx = MEM32(ecx + 0x1C); /* 0x360FC322: mov edx, dword ptr [ecx + 0x1c] */ 9678 /* cmp edx, eax */ /* 0x360FC325: cmp edx, eax */ 9679 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 9680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9681 _flag_k = FK_CMP; 9682 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x8) = _v; } /* 0x360FC327: fst dword ptr [ecx + 8] */ 9683 if (CMP_NE(_flag_a, _flag_b)) goto L_360FC342; /* 0x360FC32A: jne 0x360fc342 */ 9684 L_360FC32C: 9685 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36175530)); /* 0x360FC32C: fcomp dword ptr [0x36175530] */ 9686 fp_pop(); 9687 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360FC332: fnstsw ax */ 9688 /* test HI8(eax), 0x41u */ /* 0x360FC334: test ah, 0x41 */ 9689 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9690 _cf = 0; 9691 _flag_k = FK_NARROW(FK_TEST, 24); 9692 if (TEST_NZ(_flag_a, _flag_b)) goto L_360FC344; /* 0x360FC337: jne 0x360fc344 */ 9693 L_360FC339: 9694 MEM32(ecx + 0x8) = 0x3D072B02u; /* 0x360FC339: mov dword ptr [ecx + 8], 0x3d072b02 */ 9695 goto L_360FC344; /* 0x360FC340: jmp 0x360fc344 */ 9696 L_360FC342: 9697 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360FC342: fstp st(0) */ 9698 L_360FC344: 9699 fp_push(*(float*)&MEM32(ecx + 0xC)); /* 0x360FC344: fld dword ptr [ecx + 0xc] */ 9700 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9701 edx = edx + 1; /* 0x360FC347: inc edx */ 9702 _flag_k = FK_INC; 9703 _st[0] += (double)*(float*)ADDR(ecx + 0x8); /* 0x360FC348: fadd dword ptr [ecx + 8] */ 9704 MEM32(ecx + 0x1C) = edx; /* 0x360FC34B: mov dword ptr [ecx + 0x1c], edx */ 9705 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0xC) = _v; } /* 0x360FC34E: fst dword ptr [ecx + 0xc] */ 9706 fp_push(*(float*)&MEM32(ecx + 0x10)); /* 0x360FC351: fld dword ptr [ecx + 0x10] */ 9707 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x360FC354: fcomp dword ptr [0x3617040c] */ 9708 fp_pop(); 9709 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360FC35A: fnstsw ax */ 9710 /* test HI8(eax), 1 */ /* 0x360FC35C: test ah, 1 */ 9711 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9712 _cf = 0; 9713 _flag_k = FK_NARROW(FK_TEST, 24); 9714 if (TEST_NZ(_flag_a, _flag_b)) goto L_360FC370; /* 0x360FC35F: jne 0x360fc370 */ 9715 L_360FC361: 9716 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ecx + 0x10)); /* 0x360FC361: fcomp dword ptr [ecx + 0x10] */ 9717 fp_pop(); 9718 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x360FC364: fnstsw ax */ 9719 /* test HI8(eax), 0x41u */ /* 0x360FC366: test ah, 0x41 */ 9720 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 9721 _cf = 0; 9722 _flag_k = FK_NARROW(FK_TEST, 24); 9723 if (TEST_NZ(_flag_a, _flag_b)) goto L_360FC372; /* 0x360FC369: jne 0x360fc372 */ 9724 L_360FC36B: 9725 MEM8(ecx + 0x14) = (uint8_t)(1); /* 0x360FC36B: mov byte ptr [ecx + 0x14], 1 */ 9726 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360FC36F: ret */ 9727 L_360FC370: 9728 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x360FC370: fstp st(0) */ 9729 L_360FC372: 9730 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360FC372: ret */ 9731 L_36114130: 9732 RECOMP_BACKEDGE(); 9733 goto L_360FC300; /* 0x36114130: jmp 0x360fc300 */ 9734 { RECOMP_REGS_OUT(); return; } /* end of function */ 9735 RECOMP_REGS_OUT(); 9736 } 9737 9738 void sub_36114140(void) { 9739 int _fpu_cmp = 0; 9740 uint32_t _cf = 0; 9741 int _df = 1; 9742 uint32_t _flag_k = FK_NONE; 9743 uint32_t _flag_a = 0, _flag_b = 0; 9744 uint32_t _itail_tgt = 0; 9745 RECOMP_REGS_LOCALS 9746 RECOMP_ENTER(0x36114140u); 9747 9748 L_36114140: 9749 PUSH32(esp, esi); /* 0x36114140: push esi */ 9750 esi = ecx; /* 0x36114141: mov esi, ecx */ 9751 eax = MEM32(esi + 0x4); /* 0x36114143: mov eax, dword ptr [esi + 4] */ 9752 PUSH32(esp, edi); /* 0x36114146: push edi */ 9753 PUSH32(esp, eax); /* 0x36114147: push eax */ 9754 RECOMP_ICALL(0x360F7B00u); /* 0x36114148: call 0x360f7b00 */ /* not lifted */ 9755 RECOMP_FLAGS_IN(); 9756 ecx = eax; /* 0x3611414D: mov ecx, eax */ 9757 RECOMP_ICALL(0x360FBFF0u); /* 0x3611414F: call 0x360fbff0 */ /* not lifted */ 9758 RECOMP_FLAGS_IN(); 9759 ecx = eax; /* 0x36114154: mov ecx, eax */ 9760 RECOMP_ICALL(0x361371A0u); /* 0x36114156: call 0x361371a0 */ /* not lifted */ 9761 RECOMP_FLAGS_IN(); 9762 edi = eax; /* 0x3611415B: mov edi, eax */ 9763 PUSH32(esp, 0); /* 0x3611415D: push 0 */ 9764 ecx = edi; /* 0x3611415F: mov ecx, edi */ 9765 RECOMP_ICALL(0x36137010u); /* 0x36114161: call 0x36137010 */ /* not lifted */ 9766 RECOMP_FLAGS_IN(); 9767 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x28) = _v; } /* 0x36114166: fstp dword ptr [esi + 0x28] */ 9768 PUSH32(esp, 1); /* 0x36114169: push 1 */ 9769 ecx = edi; /* 0x3611416B: mov ecx, edi */ 9770 RECOMP_ICALL(0x36137010u); /* 0x3611416D: call 0x36137010 */ /* not lifted */ 9771 RECOMP_FLAGS_IN(); 9772 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x2C) = _v; } /* 0x36114172: fstp dword ptr [esi + 0x2c] */ 9773 PUSH32(esp, 2); /* 0x36114175: push 2 */ 9774 ecx = edi; /* 0x36114177: mov ecx, edi */ 9775 RECOMP_ICALL(0x36137010u); /* 0x36114179: call 0x36137010 */ /* not lifted */ 9776 RECOMP_FLAGS_IN(); 9777 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x3611417E: fstp dword ptr [esi + 0x30] */ 9778 PUSH32(esp, 3); /* 0x36114181: push 3 */ 9779 ecx = edi; /* 0x36114183: mov ecx, edi */ 9780 RECOMP_ICALL(0x36137010u); /* 0x36114185: call 0x36137010 */ /* not lifted */ 9781 RECOMP_FLAGS_IN(); 9782 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x3611418A: fstp dword ptr [esi + 0x34] */ 9783 PUSH32(esp, 4); /* 0x3611418D: push 4 */ 9784 ecx = edi; /* 0x3611418F: mov ecx, edi */ 9785 RECOMP_ICALL(0x36136FE0u); /* 0x36114191: call 0x36136fe0 */ /* not lifted */ 9786 RECOMP_FLAGS_IN(); 9787 PUSH32(esp, 5); /* 0x36114196: push 5 */ 9788 ecx = edi; /* 0x36114198: mov ecx, edi */ 9789 MEM32(esi + 0x38) = eax; /* 0x3611419A: mov dword ptr [esi + 0x38], eax */ 9790 RECOMP_ICALL(0x36136FE0u); /* 0x3611419D: call 0x36136fe0 */ /* not lifted */ 9791 RECOMP_FLAGS_IN(); 9792 edi = POP32_VAL(esp); /* 0x361141A2: pop edi */ 9793 MEM32(esi + 0x3C) = eax; /* 0x361141A3: mov dword ptr [esi + 0x3c], eax */ 9794 esi = POP32_VAL(esp); /* 0x361141A6: pop esi */ 9795 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361141A7: ret */ 9796 RECOMP_REGS_OUT(); 9797 } 9798 9799 void sub_361141B0(void) { 9800 int _fpu_cmp = 0; 9801 uint32_t _cf = 0; 9802 int _df = 1; 9803 uint32_t _flag_k = FK_NONE; 9804 uint32_t _flag_a = 0, _flag_b = 0; 9805 uint32_t _itail_tgt = 0; 9806 RECOMP_REGS_LOCALS 9807 RECOMP_ENTER(0x361141B0u); 9808 9809 L_361141B0: 9810 PUSH32(esp, ebp); /* 0x361141B0: push ebp */ 9811 ebp = esp; /* 0x361141B1: mov ebp, esp */ 9812 PUSH32(esp, 0xFFFFFFFFu); /* 0x361141B3: push -1 */ 9813 PUSH32(esp, 0x3616AE96u); /* 0x361141B5: push 0x3616ae96 */ 9814 eax = MEM32(FS_BASE + (0)); /* 0x361141BA: mov eax, dword ptr fs:[0] */ 9815 PUSH32(esp, eax); /* 0x361141C0: push eax */ 9816 MEM32(FS_BASE + (0)) = esp; /* 0x361141C1: mov dword ptr fs:[0], esp */ 9817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9819 esp = esp - 0x14u; /* 0x361141C8: sub esp, 0x14 */ 9820 _flag_k = FK_CMP; 9821 PUSH32(esp, ebx); /* 0x361141CB: push ebx */ 9822 PUSH32(esp, esi); /* 0x361141CC: push esi */ 9823 PUSH32(esp, edi); /* 0x361141CD: push edi */ 9824 PUSH32(esp, 0xDCu); /* 0x361141CE: push 0xdc */ 9825 MEM32(ebp + (-0x10)) = ecx; /* 0x361141D3: mov dword ptr [ebp - 0x10], ecx */ 9826 RECOMP_ICALL(0x3615FD6Au); /* 0x361141D6: call 0x3615fd6a */ /* not lifted */ 9827 RECOMP_FLAGS_IN(); 9828 esi = eax; /* 0x361141DB: mov esi, eax */ 9829 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9831 esp = esp + 4; /* 0x361141DD: add esp, 4 */ 9832 _flag_k = FK_ADD; 9833 MEM32(ebp + (-0x20)) = esi; /* 0x361141E0: mov dword ptr [ebp - 0x20], esi */ 9834 /* test esi, esi */ /* 0x361141E3: test esi, esi */ 9835 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9836 _cf = 0; 9837 _flag_k = FK_TEST; 9838 MEM32(ebp + (-0x4)) = 0; /* 0x361141E5: mov dword ptr [ebp - 4], 0 */ 9839 if (TEST_Z(_flag_a, _flag_b)) goto L_36114203; /* 0x361141EC: je 0x36114203 */ 9840 L_361141EE: 9841 PUSH32(esp, 0x361BF504u); /* 0x361141EE: push 0x361bf504 */ 9842 ecx = esi; /* 0x361141F3: mov ecx, esi */ 9843 RECOMP_ICALL(MEM32(0x3616F9DC)); /* 0x361141F5: call dword ptr [0x3616f9dc] */ 9844 RECOMP_FLAGS_IN(); 9845 MEM32(esi) = 0x3617568Cu; /* 0x361141FB: mov dword ptr [esi], 0x3617568c */ 9846 goto L_36114205; /* 0x36114201: jmp 0x36114205 */ 9847 L_36114203: 9848 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9849 esi = 0; /* 0x36114203: xor esi, esi */ 9850 _cf = 0; 9851 _flag_k = FK_TEST; 9852 L_36114205: 9853 edi = MEM32(0x3616F604); /* 0x36114205: mov edi, dword ptr [0x3616f604] */ 9854 PUSH32(esp, 1); /* 0x3611420B: push 1 */ 9855 PUSH32(esp, 0x88u); /* 0x3611420D: push 0x88 */ 9856 ecx = esi; /* 0x36114212: mov ecx, esi */ 9857 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36114214: mov dword ptr [ebp - 4], 0xffffffff */ 9858 RECOMP_ICALL(edi); /* 0x3611421B: call edi */ 9859 RECOMP_FLAGS_IN(); 9860 PUSH32(esp, 0); /* 0x3611421D: push 0 */ 9861 PUSH32(esp, 0x89u); /* 0x3611421F: push 0x89 */ 9862 ecx = esi; /* 0x36114224: mov ecx, esi */ 9863 RECOMP_ICALL(edi); /* 0x36114226: call edi */ 9864 RECOMP_FLAGS_IN(); 9865 PUSH32(esp, 8); /* 0x36114228: push 8 */ 9866 PUSH32(esp, 0x17u); /* 0x3611422A: push 0x17 */ 9867 ecx = esi; /* 0x3611422C: mov ecx, esi */ 9868 RECOMP_ICALL(edi); /* 0x3611422E: call edi */ 9869 RECOMP_FLAGS_IN(); 9870 PUSH32(esp, 0); /* 0x36114230: push 0 */ 9871 PUSH32(esp, 0xEu); /* 0x36114232: push 0xe */ 9872 ecx = esi; /* 0x36114234: mov ecx, esi */ 9873 RECOMP_ICALL(edi); /* 0x36114236: call edi */ 9874 RECOMP_FLAGS_IN(); 9875 PUSH32(esp, 1); /* 0x36114238: push 1 */ 9876 PUSH32(esp, 0x8Du); /* 0x3611423A: push 0x8d */ 9877 ecx = esi; /* 0x3611423F: mov ecx, esi */ 9878 RECOMP_ICALL(edi); /* 0x36114241: call edi */ 9879 RECOMP_FLAGS_IN(); 9880 PUSH32(esp, 1); /* 0x36114243: push 1 */ 9881 PUSH32(esp, 0x16u); /* 0x36114245: push 0x16 */ 9882 ecx = esi; /* 0x36114247: mov ecx, esi */ 9883 RECOMP_ICALL(edi); /* 0x36114249: call edi */ 9884 RECOMP_FLAGS_IN(); 9885 PUSH32(esp, 1); /* 0x3611424B: push 1 */ 9886 PUSH32(esp, 0x94u); /* 0x3611424D: push 0x94 */ 9887 ecx = esi; /* 0x36114252: mov ecx, esi */ 9888 RECOMP_ICALL(edi); /* 0x36114254: call edi */ 9889 RECOMP_FLAGS_IN(); 9890 ebx = MEM32(0x3616F600); /* 0x36114256: mov ebx, dword ptr [0x3616f600] */ 9891 PUSH32(esp, 2); /* 0x3611425C: push 2 */ 9892 PUSH32(esp, 1); /* 0x3611425E: push 1 */ 9893 PUSH32(esp, 0); /* 0x36114260: push 0 */ 9894 ecx = esi; /* 0x36114262: mov ecx, esi */ 9895 RECOMP_ICALL(ebx); /* 0x36114264: call ebx */ 9896 RECOMP_FLAGS_IN(); 9897 PUSH32(esp, 0); /* 0x36114266: push 0 */ 9898 PUSH32(esp, 2); /* 0x36114268: push 2 */ 9899 PUSH32(esp, 0); /* 0x3611426A: push 0 */ 9900 ecx = esi; /* 0x3611426C: mov ecx, esi */ 9901 RECOMP_ICALL(ebx); /* 0x3611426E: call ebx */ 9902 RECOMP_FLAGS_IN(); 9903 PUSH32(esp, 2); /* 0x36114270: push 2 */ 9904 PUSH32(esp, 4); /* 0x36114272: push 4 */ 9905 PUSH32(esp, 0); /* 0x36114274: push 0 */ 9906 ecx = esi; /* 0x36114276: mov ecx, esi */ 9907 RECOMP_ICALL(ebx); /* 0x36114278: call ebx */ 9908 RECOMP_FLAGS_IN(); 9909 PUSH32(esp, 0); /* 0x3611427A: push 0 */ 9910 PUSH32(esp, 5); /* 0x3611427C: push 5 */ 9911 PUSH32(esp, 0); /* 0x3611427E: push 0 */ 9912 ecx = esi; /* 0x36114280: mov ecx, esi */ 9913 RECOMP_ICALL(ebx); /* 0x36114282: call ebx */ 9914 RECOMP_FLAGS_IN(); 9915 PUSH32(esp, 1); /* 0x36114284: push 1 */ 9916 PUSH32(esp, 0x1Bu); /* 0x36114286: push 0x1b */ 9917 ecx = esi; /* 0x36114288: mov ecx, esi */ 9918 RECOMP_ICALL(edi); /* 0x3611428A: call edi */ 9919 RECOMP_FLAGS_IN(); 9920 ebx = MEM32(ebp + (-0x10)); /* 0x3611428C: mov ebx, dword ptr [ebp - 0x10] */ 9921 eax = MEM32(ebx + 0x3C); /* 0x3611428F: mov eax, dword ptr [ebx + 0x3c] */ 9922 /* test eax, eax */ /* 0x36114292: test eax, eax */ 9923 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9924 _cf = 0; 9925 _flag_k = FK_TEST; 9926 if (TEST_NZ(_flag_a, _flag_b)) goto L_361142A2; /* 0x36114294: jne 0x361142a2 */ 9927 L_36114296: 9928 PUSH32(esp, 9); /* 0x36114296: push 9 */ 9929 PUSH32(esp, 0x13u); /* 0x36114298: push 0x13 */ 9930 ecx = esi; /* 0x3611429A: mov ecx, esi */ 9931 RECOMP_ICALL(edi); /* 0x3611429C: call edi */ 9932 RECOMP_FLAGS_IN(); 9933 PUSH32(esp, 3); /* 0x3611429E: push 3 */ 9934 goto L_361142C2; /* 0x361142A0: jmp 0x361142c2 */ 9935 L_361142A2: 9936 /* cmp eax, 1 */ /* 0x361142A2: cmp eax, 1 */ 9937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9938 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9939 _flag_k = FK_CMP; 9940 if (CMP_NE(_flag_a, _flag_b)) goto L_361142B3; /* 0x361142A5: jne 0x361142b3 */ 9941 L_361142A7: 9942 PUSH32(esp, 0xAu); /* 0x361142A7: push 0xa */ 9943 PUSH32(esp, 0x13u); /* 0x361142A9: push 0x13 */ 9944 ecx = esi; /* 0x361142AB: mov ecx, esi */ 9945 RECOMP_ICALL(edi); /* 0x361142AD: call edi */ 9946 RECOMP_FLAGS_IN(); 9947 PUSH32(esp, 1); /* 0x361142AF: push 1 */ 9948 goto L_361142C2; /* 0x361142B1: jmp 0x361142c2 */ 9949 L_361142B3: 9950 /* cmp eax, 2 */ /* 0x361142B3: cmp eax, 2 */ 9951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9953 _flag_k = FK_CMP; 9954 if (CMP_NE(_flag_a, _flag_b)) goto L_361142C8; /* 0x361142B6: jne 0x361142c8 */ 9955 L_361142B8: 9956 PUSH32(esp, 0xAu); /* 0x361142B8: push 0xa */ 9957 PUSH32(esp, 0x13u); /* 0x361142BA: push 0x13 */ 9958 ecx = esi; /* 0x361142BC: mov ecx, esi */ 9959 RECOMP_ICALL(edi); /* 0x361142BE: call edi */ 9960 RECOMP_FLAGS_IN(); 9961 PUSH32(esp, 4); /* 0x361142C0: push 4 */ 9962 L_361142C2: 9963 PUSH32(esp, 0x14u); /* 0x361142C2: push 0x14 */ 9964 ecx = esi; /* 0x361142C4: mov ecx, esi */ 9965 RECOMP_ICALL(edi); /* 0x361142C6: call edi */ 9966 RECOMP_FLAGS_IN(); 9967 L_361142C8: 9968 PUSH32(esp, 0x220u); /* 0x361142C8: push 0x220 */ 9969 RECOMP_ICALL(0x3615FD6Au); /* 0x361142CD: call 0x3615fd6a */ /* not lifted */ 9970 RECOMP_FLAGS_IN(); 9971 edi = eax; /* 0x361142D2: mov edi, eax */ 9972 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9973 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9974 esp = esp + 4; /* 0x361142D4: add esp, 4 */ 9975 _flag_k = FK_ADD; 9976 MEM32(ebp + (-0x20)) = edi; /* 0x361142D7: mov dword ptr [ebp - 0x20], edi */ 9977 /* test edi, edi */ /* 0x361142DA: test edi, edi */ 9978 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9979 _cf = 0; 9980 _flag_k = FK_TEST; 9981 MEM32(ebp + (-0x4)) = 1; /* 0x361142DC: mov dword ptr [ebp - 4], 1 */ 9982 if (TEST_Z(_flag_a, _flag_b)) goto L_36114328; /* 0x361142E3: je 0x36114328 */ 9983 L_361142E5: 9984 PUSH32(esp, esi); /* 0x361142E5: push esi */ 9985 PUSH32(esp, 0); /* 0x361142E6: push 0 */ 9986 ecx = edi; /* 0x361142E8: mov ecx, edi */ 9987 RECOMP_ICALL(MEM32(0x3616F5FC)); /* 0x361142EA: call dword ptr [0x3616f5fc] */ 9988 RECOMP_FLAGS_IN(); 9989 MEM32(edi) = 0x36175634u; /* 0x361142F0: mov dword ptr [edi], 0x36175634 */ 9990 MEM32(edi + 0x8) = 0x36175624u; /* 0x361142F6: mov dword ptr [edi + 8], 0x36175624 */ 9991 MEM32(edi + 0x20) = 0x36175614u; /* 0x361142FD: mov dword ptr [edi + 0x20], 0x36175614 */ 9992 MEM32(edi + 0x38) = 0x36175604u; /* 0x36114304: mov dword ptr [edi + 0x38], 0x36175604 */ 9993 MEM32(edi + 0x50) = 0x361755F4u; /* 0x3611430B: mov dword ptr [edi + 0x50], 0x361755f4 */ 9994 MEM32(edi + 0x138) = 0x361755E4u; /* 0x36114312: mov dword ptr [edi + 0x138], 0x361755e4 */ 9995 MEM32(edi + 0x150) = 0x361755D4u; /* 0x3611431C: mov dword ptr [edi + 0x150], 0x361755d4 */ 9996 goto L_3611432A; /* 0x36114326: jmp 0x3611432a */ 9997 L_36114328: 9998 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9999 edi = 0; /* 0x36114328: xor edi, edi */ 10000 _cf = 0; 10001 _flag_k = FK_TEST; 10002 L_3611432A: 10003 ecx = edi; /* 0x3611432A: mov ecx, edi */ 10004 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3611432C: mov dword ptr [ebp - 4], 0xffffffff */ 10005 MEM32(ebx + 0x20) = edi; /* 0x36114333: mov dword ptr [ebx + 0x20], edi */ 10006 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36114336: call dword ptr [0x3616f5f8] */ 10007 RECOMP_FLAGS_IN(); 10008 eax = MEM32(ebx + 0x20); /* 0x3611433C: mov eax, dword ptr [ebx + 0x20] */ 10009 ecx = MEM32(ebx + 0x38); /* 0x3611433F: mov ecx, dword ptr [ebx + 0x38] */ 10010 MEM32(eax + 0x1FC) = ecx; /* 0x36114342: mov dword ptr [eax + 0x1fc], ecx */ 10011 fp_push(*(float*)&MEM32(ebx + 0x28)); /* 0x36114348: fld dword ptr [ebx + 0x28] */ 10012 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x3611434B: fmul dword ptr [0x36174f7c] */ 10013 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36114351: fstp dword ptr [ebp - 0x10] */ 10014 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36114354: fld dword ptr [ebp - 0x10] */ 10015 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114357: fsub qword ptr [0x361755c8] */ 10016 MEM32(ebp + (-0x14)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x3611435D: fistp dword ptr [ebp - 0x14] */ 10017 fp_push(*(float*)&MEM32(ebx + 0x2C)); /* 0x36114360: fld dword ptr [ebx + 0x2c] */ 10018 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114363: fmul dword ptr [0x36174f7c] */ 10019 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36114369: fstp dword ptr [ebp - 0x10] */ 10020 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3611436C: fld dword ptr [ebp - 0x10] */ 10021 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x3611436F: fsub qword ptr [0x361755c8] */ 10022 MEM32(ebp + (-0x18)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114375: fistp dword ptr [ebp - 0x18] */ 10023 fp_push(*(float*)&MEM32(ebx + 0x30)); /* 0x36114378: fld dword ptr [ebx + 0x30] */ 10024 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x3611437B: fmul dword ptr [0x36174f7c] */ 10025 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36114381: fstp dword ptr [ebp - 0x10] */ 10026 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x36114384: fld dword ptr [ebp - 0x10] */ 10027 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114387: fsub qword ptr [0x361755c8] */ 10028 MEM32(ebp + (-0x1C)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x3611438D: fistp dword ptr [ebp - 0x1c] */ 10029 fp_push(*(float*)&MEM32(ebx + 0x34)); /* 0x36114390: fld dword ptr [ebx + 0x34] */ 10030 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114393: fmul dword ptr [0x36174f7c] */ 10031 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36114399: fstp dword ptr [ebp - 0x10] */ 10032 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3611439C: fld dword ptr [ebp - 0x10] */ 10033 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x3611439F: fsub qword ptr [0x361755c8] */ 10034 MEM32(ebp + (-0x20)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x361143A5: fistp dword ptr [ebp - 0x20] */ 10035 ecx = MEM32(ebx + 0x20); /* 0x361143A8: mov ecx, dword ptr [ebx + 0x20] */ 10036 eax = MEM32(ebp + (-0x14)); /* 0x361143AB: mov eax, dword ptr [ebp - 0x14] */ 10037 ebx = MEM32(ebp + (-0x18)); /* 0x361143AE: mov ebx, dword ptr [ebp - 0x18] */ 10038 esi = MEM32(ebp + (-0x1C)); /* 0x361143B1: mov esi, dword ptr [ebp - 0x1c] */ 10039 edi = MEM32(ebp + (-0x20)); /* 0x361143B4: mov edi, dword ptr [ebp - 0x20] */ 10040 edx = MEM32(ecx); /* 0x361143B7: mov edx, dword ptr [ecx] */ 10041 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x361143B9: shl eax, 8 */ 10042 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10043 eax = eax << 8u; /* 0x361143B9: shl eax, 8 */ 10044 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 10045 eax = eax | ebx; /* 0x361143BC: or eax, ebx */ 10046 _cf = 0; 10047 _flag_k = FK_TEST; 10048 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x361143BE: shl eax, 8 */ 10049 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10050 eax = eax << 8u; /* 0x361143BE: shl eax, 8 */ 10051 _flag_a = (uint32_t)((eax | esi)); _flag_b = (uint32_t)((eax | esi)); 10052 eax = eax | esi; /* 0x361143C1: or eax, esi */ 10053 _cf = 0; 10054 _flag_k = FK_TEST; 10055 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x361143C3: shl eax, 8 */ 10056 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10057 eax = eax << 8u; /* 0x361143C3: shl eax, 8 */ 10058 _flag_a = (uint32_t)((eax | edi)); _flag_b = (uint32_t)((eax | edi)); 10059 eax = eax | edi; /* 0x361143C6: or eax, edi */ 10060 _cf = 0; 10061 _flag_k = FK_TEST; 10062 PUSH32(esp, eax); /* 0x361143C8: push eax */ 10063 RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x361143C9: call dword ptr [edx + 0x50] */ 10064 RECOMP_FLAGS_IN(); 10065 ecx = MEM32(ebp + (-0xC)); /* 0x361143CC: mov ecx, dword ptr [ebp - 0xc] */ 10066 edi = POP32_VAL(esp); /* 0x361143CF: pop edi */ 10067 esi = POP32_VAL(esp); /* 0x361143D0: pop esi */ 10068 ebx = POP32_VAL(esp); /* 0x361143D1: pop ebx */ 10069 MEM32(FS_BASE + (0)) = ecx; /* 0x361143D2: mov dword ptr fs:[0], ecx */ 10070 esp = ebp; /* 0x361143D9: mov esp, ebp */ 10071 ebp = POP32_VAL(esp); /* 0x361143DB: pop ebp */ 10072 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361143DC: ret */ 10073 RECOMP_REGS_OUT(); 10074 } 10075 10076 void sub_361143E0(void) { 10077 int _fpu_cmp = 0; 10078 uint32_t _cf = 0; 10079 int _df = 1; 10080 uint32_t _flag_k = FK_NONE; 10081 uint32_t _flag_a = 0, _flag_b = 0; 10082 uint32_t _itail_tgt = 0; 10083 RECOMP_REGS_LOCALS 10084 RECOMP_ENTER(0x361143E0u); 10085 10086 L_361143E0: 10087 PUSH32(esp, ebp); /* 0x361143E0: push ebp */ 10088 ebp = esp; /* 0x361143E1: mov ebp, esp */ 10089 PUSH32(esp, 0xFFFFFFFFu); /* 0x361143E3: push -1 */ 10090 PUSH32(esp, 0x3616AEA8u); /* 0x361143E5: push 0x3616aea8 */ 10091 eax = MEM32(FS_BASE + (0)); /* 0x361143EA: mov eax, dword ptr fs:[0] */ 10092 PUSH32(esp, eax); /* 0x361143F0: push eax */ 10093 MEM32(FS_BASE + (0)) = esp; /* 0x361143F1: mov dword ptr fs:[0], esp */ 10094 PUSH32(esp, ecx); /* 0x361143F8: push ecx */ 10095 eax = MEM32(ebp + 0x8); /* 0x361143F9: mov eax, dword ptr [ebp + 8] */ 10096 PUSH32(esp, esi); /* 0x361143FC: push esi */ 10097 esi = ecx; /* 0x361143FD: mov esi, ecx */ 10098 PUSH32(esp, eax); /* 0x361143FF: push eax */ 10099 MEM32(ebp + (-0x10)) = esi; /* 0x36114400: mov dword ptr [ebp - 0x10], esi */ 10100 RECOMP_ICALL(0x360FC270u); /* 0x36114403: call 0x360fc270 */ /* not lifted */ 10101 RECOMP_FLAGS_IN(); 10102 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10103 eax = 0; /* 0x36114408: xor eax, eax */ 10104 _cf = 0; 10105 _flag_k = FK_TEST; 10106 ecx = esi; /* 0x3611440A: mov ecx, esi */ 10107 MEM32(ebp + (-0x4)) = eax; /* 0x3611440C: mov dword ptr [ebp - 4], eax */ 10108 MEM32(esi + 0x20) = eax; /* 0x3611440F: mov dword ptr [esi + 0x20], eax */ 10109 MEM32(esi + 0x24) = eax; /* 0x36114412: mov dword ptr [esi + 0x24], eax */ 10110 MEM32(esi + 0x28) = eax; /* 0x36114415: mov dword ptr [esi + 0x28], eax */ 10111 MEM32(esi + 0x2C) = eax; /* 0x36114418: mov dword ptr [esi + 0x2c], eax */ 10112 MEM32(esi + 0x98) = eax; /* 0x3611441B: mov dword ptr [esi + 0x98], eax */ 10113 MEM32(esi) = 0x36176B84u; /* 0x36114421: mov dword ptr [esi], 0x36176b84 */ 10114 RECOMP_ICALL(0x36114580u); /* 0x36114427: call 0x36114580 */ /* not lifted */ 10115 RECOMP_FLAGS_IN(); 10116 ecx = esi; /* 0x3611442C: mov ecx, esi */ 10117 RECOMP_ICALL(0x361146F0u); /* 0x3611442E: call 0x361146f0 */ /* not lifted */ 10118 RECOMP_FLAGS_IN(); 10119 ecx = MEM32(ebp + (-0xC)); /* 0x36114433: mov ecx, dword ptr [ebp - 0xc] */ 10120 MEM32(esi + 0x10) = 0xBF800000u; /* 0x36114436: mov dword ptr [esi + 0x10], 0xbf800000 */ 10121 eax = esi; /* 0x3611443D: mov eax, esi */ 10122 esi = POP32_VAL(esp); /* 0x3611443F: pop esi */ 10123 MEM32(FS_BASE + (0)) = ecx; /* 0x36114440: mov dword ptr fs:[0], ecx */ 10124 esp = ebp; /* 0x36114447: mov esp, ebp */ 10125 ebp = POP32_VAL(esp); /* 0x36114449: pop ebp */ 10126 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611444A: ret 4 */ 10127 RECOMP_REGS_OUT(); 10128 } 10129 10130 void sub_36114450(void) { 10131 int _fpu_cmp = 0; 10132 uint32_t _cf = 0; 10133 int _df = 1; 10134 uint32_t _flag_k = FK_NONE; 10135 uint32_t _flag_a = 0, _flag_b = 0; 10136 uint32_t _itail_tgt = 0; 10137 RECOMP_REGS_LOCALS 10138 RECOMP_ENTER(0x36114450u); 10139 10140 L_36114450: 10141 PUSH32(esp, ebp); /* 0x36114450: push ebp */ 10142 ebp = esp; /* 0x36114451: mov ebp, esp */ 10143 PUSH32(esp, esi); /* 0x36114453: push esi */ 10144 esi = ecx; /* 0x36114454: mov esi, ecx */ 10145 RECOMP_ICALL(0x36114480u); /* 0x36114456: call 0x36114480 */ /* not lifted */ 10146 RECOMP_FLAGS_IN(); 10147 /* test MEM8(ebp + 0x8), 1 */ /* 0x3611445B: test byte ptr [ebp + 8], 1 */ 10148 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10149 _cf = 0; 10150 _flag_k = FK_NARROW(FK_TEST, 24); 10151 if (TEST_Z(_flag_a, _flag_b)) goto L_3611446A; /* 0x3611445F: je 0x3611446a */ 10152 L_36114461: 10153 PUSH32(esp, esi); /* 0x36114461: push esi */ 10154 RECOMP_ICALL(0x3615FCC4u); /* 0x36114462: call 0x3615fcc4 */ /* not lifted */ 10155 RECOMP_FLAGS_IN(); 10156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10158 esp = esp + 4; /* 0x36114467: add esp, 4 */ 10159 _flag_k = FK_ADD; 10160 L_3611446A: 10161 eax = esi; /* 0x3611446A: mov eax, esi */ 10162 esi = POP32_VAL(esp); /* 0x3611446C: pop esi */ 10163 ebp = POP32_VAL(esp); /* 0x3611446D: pop ebp */ 10164 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611446E: ret 4 */ 10165 RECOMP_REGS_OUT(); 10166 } 10167 10168 void sub_36114480(void) { 10169 int _fpu_cmp = 0; 10170 uint32_t _cf = 0; 10171 int _df = 1; 10172 uint32_t _flag_k = FK_NONE; 10173 uint32_t _flag_a = 0, _flag_b = 0; 10174 uint32_t _itail_tgt = 0; 10175 RECOMP_REGS_LOCALS 10176 RECOMP_ENTER(0x36114480u); 10177 10178 L_36114480: 10179 PUSH32(esp, ebp); /* 0x36114480: push ebp */ 10180 ebp = esp; /* 0x36114481: mov ebp, esp */ 10181 PUSH32(esp, 0xFFFFFFFFu); /* 0x36114483: push -1 */ 10182 PUSH32(esp, 0x3616AEC8u); /* 0x36114485: push 0x3616aec8 */ 10183 eax = MEM32(FS_BASE + (0)); /* 0x3611448A: mov eax, dword ptr fs:[0] */ 10184 PUSH32(esp, eax); /* 0x36114490: push eax */ 10185 MEM32(FS_BASE + (0)) = esp; /* 0x36114491: mov dword ptr fs:[0], esp */ 10186 PUSH32(esp, ecx); /* 0x36114498: push ecx */ 10187 PUSH32(esp, esi); /* 0x36114499: push esi */ 10188 esi = ecx; /* 0x3611449A: mov esi, ecx */ 10189 PUSH32(esp, edi); /* 0x3611449C: push edi */ 10190 MEM32(ebp + (-0x10)) = esi; /* 0x3611449D: mov dword ptr [ebp - 0x10], esi */ 10191 MEM32(esi) = 0x36176B84u; /* 0x361144A0: mov dword ptr [esi], 0x36176b84 */ 10192 ecx = MEM32(esi + 0x20); /* 0x361144A6: mov ecx, dword ptr [esi + 0x20] */ 10193 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10194 edi = 0; /* 0x361144A9: xor edi, edi */ 10195 _cf = 0; 10196 _flag_k = FK_TEST; 10197 /* cmp ecx, edi */ /* 0x361144AB: cmp ecx, edi */ 10198 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10199 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10200 _flag_k = FK_CMP; 10201 MEM32(ebp + (-0x4)) = edi; /* 0x361144AD: mov dword ptr [ebp - 4], edi */ 10202 if (CMP_EQ(_flag_a, _flag_b)) goto L_361144BB; /* 0x361144B0: je 0x361144bb */ 10203 L_361144B2: 10204 eax = MEM32(ecx); /* 0x361144B2: mov eax, dword ptr [ecx] */ 10205 PUSH32(esp, 1); /* 0x361144B4: push 1 */ 10206 RECOMP_ICALL(MEM32(eax)); /* 0x361144B6: call dword ptr [eax] */ 10207 RECOMP_FLAGS_IN(); 10208 MEM32(esi + 0x20) = edi; /* 0x361144B8: mov dword ptr [esi + 0x20], edi */ 10209 L_361144BB: 10210 ecx = MEM32(esi + 0x24); /* 0x361144BB: mov ecx, dword ptr [esi + 0x24] */ 10211 /* cmp ecx, edi */ /* 0x361144BE: cmp ecx, edi */ 10212 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10214 _flag_k = FK_CMP; 10215 if (CMP_EQ(_flag_a, _flag_b)) goto L_361144CB; /* 0x361144C0: je 0x361144cb */ 10216 L_361144C2: 10217 edx = MEM32(ecx); /* 0x361144C2: mov edx, dword ptr [ecx] */ 10218 PUSH32(esp, 1); /* 0x361144C4: push 1 */ 10219 RECOMP_ICALL(MEM32(edx)); /* 0x361144C6: call dword ptr [edx] */ 10220 RECOMP_FLAGS_IN(); 10221 MEM32(esi + 0x24) = edi; /* 0x361144C8: mov dword ptr [esi + 0x24], edi */ 10222 L_361144CB: 10223 ecx = MEM32(esi + 0x28); /* 0x361144CB: mov ecx, dword ptr [esi + 0x28] */ 10224 /* cmp ecx, edi */ /* 0x361144CE: cmp ecx, edi */ 10225 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10227 _flag_k = FK_CMP; 10228 if (CMP_EQ(_flag_a, _flag_b)) goto L_361144DB; /* 0x361144D0: je 0x361144db */ 10229 L_361144D2: 10230 eax = MEM32(ecx); /* 0x361144D2: mov eax, dword ptr [ecx] */ 10231 PUSH32(esp, 1); /* 0x361144D4: push 1 */ 10232 RECOMP_ICALL(MEM32(eax)); /* 0x361144D6: call dword ptr [eax] */ 10233 RECOMP_FLAGS_IN(); 10234 MEM32(esi + 0x28) = edi; /* 0x361144D8: mov dword ptr [esi + 0x28], edi */ 10235 L_361144DB: 10236 ecx = MEM32(esi + 0x2C); /* 0x361144DB: mov ecx, dword ptr [esi + 0x2c] */ 10237 /* cmp ecx, edi */ /* 0x361144DE: cmp ecx, edi */ 10238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 10239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10240 _flag_k = FK_CMP; 10241 if (CMP_EQ(_flag_a, _flag_b)) goto L_361144EB; /* 0x361144E0: je 0x361144eb */ 10242 L_361144E2: 10243 edx = MEM32(ecx); /* 0x361144E2: mov edx, dword ptr [ecx] */ 10244 PUSH32(esp, 1); /* 0x361144E4: push 1 */ 10245 RECOMP_ICALL(MEM32(edx)); /* 0x361144E6: call dword ptr [edx] */ 10246 RECOMP_FLAGS_IN(); 10247 MEM32(esi + 0x2C) = edi; /* 0x361144E8: mov dword ptr [esi + 0x2c], edi */ 10248 L_361144EB: 10249 edi = MEM32(0x3616F3CC); /* 0x361144EB: mov edi, dword ptr [0x3616f3cc] */ 10250 RECOMP_ICALL(edi); /* 0x361144F1: call edi */ 10251 RECOMP_FLAGS_IN(); 10252 /* test eax, eax */ /* 0x361144F3: test eax, eax */ 10253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10254 _cf = 0; 10255 _flag_k = FK_TEST; 10256 if (TEST_Z(_flag_a, _flag_b)) goto L_36114508; /* 0x361144F5: je 0x36114508 */ 10257 L_361144F7: 10258 eax = MEM32(esi + 0x98); /* 0x361144F7: mov eax, dword ptr [esi + 0x98] */ 10259 PUSH32(esp, eax); /* 0x361144FD: push eax */ 10260 RECOMP_ICALL(edi); /* 0x361144FE: call edi */ 10261 RECOMP_FLAGS_IN(); 10262 ecx = eax; /* 0x36114500: mov ecx, eax */ 10263 RECOMP_ICALL(MEM32(0x3616F7E8)); /* 0x36114502: call dword ptr [0x3616f7e8] */ 10264 RECOMP_FLAGS_IN(); 10265 L_36114508: 10266 ecx = esi; /* 0x36114508: mov ecx, esi */ 10267 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3611450A: mov dword ptr [ebp - 4], 0xffffffff */ 10268 RECOMP_ICALL(0x360FC2F0u); /* 0x36114511: call 0x360fc2f0 */ /* not lifted */ 10269 RECOMP_FLAGS_IN(); 10270 ecx = MEM32(ebp + (-0xC)); /* 0x36114516: mov ecx, dword ptr [ebp - 0xc] */ 10271 edi = POP32_VAL(esp); /* 0x36114519: pop edi */ 10272 esi = POP32_VAL(esp); /* 0x3611451A: pop esi */ 10273 MEM32(FS_BASE + (0)) = ecx; /* 0x3611451B: mov dword ptr fs:[0], ecx */ 10274 esp = ebp; /* 0x36114522: mov esp, ebp */ 10275 ebp = POP32_VAL(esp); /* 0x36114524: pop ebp */ 10276 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36114525: ret */ 10277 RECOMP_REGS_OUT(); 10278 } 10279 10280 void sub_36114530(void) { 10281 int _fpu_cmp = 0; 10282 uint32_t _cf = 0; 10283 int _df = 1; 10284 uint32_t _flag_k = FK_NONE; 10285 uint32_t _flag_a = 0, _flag_b = 0; 10286 uint32_t _itail_tgt = 0; 10287 RECOMP_REGS_LOCALS 10288 RECOMP_ENTER(0x36114530u); 10289 10290 L_36114530: 10291 PUSH32(esp, ebx); /* 0x36114530: push ebx */ 10292 PUSH32(esp, esi); /* 0x36114531: push esi */ 10293 PUSH32(esp, edi); /* 0x36114532: push edi */ 10294 edi = ecx; /* 0x36114533: mov edi, ecx */ 10295 RECOMP_ICALL(0x360FC300u); /* 0x36114535: call 0x360fc300 */ /* not lifted */ 10296 RECOMP_FLAGS_IN(); 10297 esi = MEM32(0x3616F3CC); /* 0x3611453A: mov esi, dword ptr [0x3616f3cc] */ 10298 RECOMP_ICALL(esi); /* 0x36114540: call esi */ 10299 RECOMP_FLAGS_IN(); 10300 /* test eax, eax */ /* 0x36114542: test eax, eax */ 10301 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10302 _cf = 0; 10303 _flag_k = FK_TEST; 10304 if (TEST_Z(_flag_a, _flag_b)) goto L_3611456E; /* 0x36114544: je 0x3611456e */ 10305 L_36114546: 10306 RECOMP_ICALL(esi); /* 0x36114546: call esi */ 10307 RECOMP_FLAGS_IN(); 10308 ebx = MEM32(0x3616F7EC); /* 0x36114548: mov ebx, dword ptr [0x3616f7ec] */ 10309 ecx = eax; /* 0x3611454E: mov ecx, eax */ 10310 RECOMP_ICALL(ebx); /* 0x36114550: call ebx */ 10311 RECOMP_FLAGS_IN(); 10312 /* test eax, eax */ /* 0x36114552: test eax, eax */ 10313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10314 _cf = 0; 10315 _flag_k = FK_TEST; 10316 if (TEST_Z(_flag_a, _flag_b)) goto L_3611456E; /* 0x36114554: je 0x3611456e */ 10317 L_36114556: 10318 RECOMP_ICALL(esi); /* 0x36114556: call esi */ 10319 RECOMP_FLAGS_IN(); 10320 ecx = eax; /* 0x36114558: mov ecx, eax */ 10321 RECOMP_ICALL(ebx); /* 0x3611455A: call ebx */ 10322 RECOMP_FLAGS_IN(); 10323 PUSH32(esp, 0); /* 0x3611455C: push 0 */ 10324 MEM32(edi + 0x98) = eax; /* 0x3611455E: mov dword ptr [edi + 0x98], eax */ 10325 RECOMP_ICALL(esi); /* 0x36114564: call esi */ 10326 RECOMP_FLAGS_IN(); 10327 ecx = eax; /* 0x36114566: mov ecx, eax */ 10328 RECOMP_ICALL(MEM32(0x3616F7E8)); /* 0x36114568: call dword ptr [0x3616f7e8] */ 10329 RECOMP_FLAGS_IN(); 10330 L_3611456E: 10331 edi = POP32_VAL(esp); /* 0x3611456E: pop edi */ 10332 esi = POP32_VAL(esp); /* 0x3611456F: pop esi */ 10333 ebx = POP32_VAL(esp); /* 0x36114570: pop ebx */ 10334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36114571: ret */ 10335 RECOMP_REGS_OUT(); 10336 } 10337 10338 void sub_36114580(void) { 10339 int _fpu_cmp = 0; 10340 uint32_t _cf = 0; 10341 int _df = 1; 10342 uint32_t _flag_k = FK_NONE; 10343 uint32_t _flag_a = 0, _flag_b = 0; 10344 uint32_t _itail_tgt = 0; 10345 RECOMP_REGS_LOCALS 10346 RECOMP_ENTER(0x36114580u); 10347 10348 L_36114580: 10349 PUSH32(esp, esi); /* 0x36114580: push esi */ 10350 esi = ecx; /* 0x36114581: mov esi, ecx */ 10351 eax = MEM32(esi + 0x4); /* 0x36114583: mov eax, dword ptr [esi + 4] */ 10352 PUSH32(esp, edi); /* 0x36114586: push edi */ 10353 PUSH32(esp, eax); /* 0x36114587: push eax */ 10354 RECOMP_ICALL(0x360F7B00u); /* 0x36114588: call 0x360f7b00 */ /* not lifted */ 10355 RECOMP_FLAGS_IN(); 10356 ecx = eax; /* 0x3611458D: mov ecx, eax */ 10357 RECOMP_ICALL(0x360FBFF0u); /* 0x3611458F: call 0x360fbff0 */ /* not lifted */ 10358 RECOMP_FLAGS_IN(); 10359 ecx = eax; /* 0x36114594: mov ecx, eax */ 10360 RECOMP_ICALL(0x361371A0u); /* 0x36114596: call 0x361371a0 */ /* not lifted */ 10361 RECOMP_FLAGS_IN(); 10362 edi = eax; /* 0x3611459B: mov edi, eax */ 10363 PUSH32(esp, 0); /* 0x3611459D: push 0 */ 10364 ecx = edi; /* 0x3611459F: mov ecx, edi */ 10365 RECOMP_ICALL(0x36136FE0u); /* 0x361145A1: call 0x36136fe0 */ /* not lifted */ 10366 RECOMP_FLAGS_IN(); 10367 PUSH32(esp, 1); /* 0x361145A6: push 1 */ 10368 ecx = edi; /* 0x361145A8: mov ecx, edi */ 10369 MEM32(esi + 0x30) = eax; /* 0x361145AA: mov dword ptr [esi + 0x30], eax */ 10370 RECOMP_ICALL(0x36137010u); /* 0x361145AD: call 0x36137010 */ /* not lifted */ 10371 RECOMP_FLAGS_IN(); 10372 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x34) = _v; } /* 0x361145B2: fstp dword ptr [esi + 0x34] */ 10373 PUSH32(esp, 2); /* 0x361145B5: push 2 */ 10374 ecx = edi; /* 0x361145B7: mov ecx, edi */ 10375 RECOMP_ICALL(0x36137010u); /* 0x361145B9: call 0x36137010 */ /* not lifted */ 10376 RECOMP_FLAGS_IN(); 10377 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x38) = _v; } /* 0x361145BE: fstp dword ptr [esi + 0x38] */ 10378 PUSH32(esp, 3); /* 0x361145C1: push 3 */ 10379 ecx = edi; /* 0x361145C3: mov ecx, edi */ 10380 RECOMP_ICALL(0x36137010u); /* 0x361145C5: call 0x36137010 */ /* not lifted */ 10381 RECOMP_FLAGS_IN(); 10382 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x3C) = _v; } /* 0x361145CA: fstp dword ptr [esi + 0x3c] */ 10383 PUSH32(esp, 4); /* 0x361145CD: push 4 */ 10384 ecx = edi; /* 0x361145CF: mov ecx, edi */ 10385 RECOMP_ICALL(0x36137010u); /* 0x361145D1: call 0x36137010 */ /* not lifted */ 10386 RECOMP_FLAGS_IN(); 10387 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x40) = _v; } /* 0x361145D6: fstp dword ptr [esi + 0x40] */ 10388 PUSH32(esp, 5); /* 0x361145D9: push 5 */ 10389 ecx = edi; /* 0x361145DB: mov ecx, edi */ 10390 RECOMP_ICALL(0x36136FE0u); /* 0x361145DD: call 0x36136fe0 */ /* not lifted */ 10391 RECOMP_FLAGS_IN(); 10392 PUSH32(esp, 6); /* 0x361145E2: push 6 */ 10393 ecx = edi; /* 0x361145E4: mov ecx, edi */ 10394 MEM32(esi + 0x44) = eax; /* 0x361145E6: mov dword ptr [esi + 0x44], eax */ 10395 RECOMP_ICALL(0x36136FE0u); /* 0x361145E9: call 0x36136fe0 */ /* not lifted */ 10396 RECOMP_FLAGS_IN(); 10397 PUSH32(esp, 7); /* 0x361145EE: push 7 */ 10398 ecx = edi; /* 0x361145F0: mov ecx, edi */ 10399 MEM32(esi + 0x48) = eax; /* 0x361145F2: mov dword ptr [esi + 0x48], eax */ 10400 RECOMP_ICALL(0x36136FE0u); /* 0x361145F5: call 0x36136fe0 */ /* not lifted */ 10401 RECOMP_FLAGS_IN(); 10402 PUSH32(esp, 8); /* 0x361145FA: push 8 */ 10403 ecx = edi; /* 0x361145FC: mov ecx, edi */ 10404 MEM32(esi + 0x4C) = eax; /* 0x361145FE: mov dword ptr [esi + 0x4c], eax */ 10405 RECOMP_ICALL(0x36137010u); /* 0x36114601: call 0x36137010 */ /* not lifted */ 10406 RECOMP_FLAGS_IN(); 10407 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x50) = _v; } /* 0x36114606: fstp dword ptr [esi + 0x50] */ 10408 PUSH32(esp, 9); /* 0x36114609: push 9 */ 10409 ecx = edi; /* 0x3611460B: mov ecx, edi */ 10410 RECOMP_ICALL(0x36137010u); /* 0x3611460D: call 0x36137010 */ /* not lifted */ 10411 RECOMP_FLAGS_IN(); 10412 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x54) = _v; } /* 0x36114612: fstp dword ptr [esi + 0x54] */ 10413 PUSH32(esp, 0xAu); /* 0x36114615: push 0xa */ 10414 ecx = edi; /* 0x36114617: mov ecx, edi */ 10415 RECOMP_ICALL(0x36137010u); /* 0x36114619: call 0x36137010 */ /* not lifted */ 10416 RECOMP_FLAGS_IN(); 10417 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x58) = _v; } /* 0x3611461E: fstp dword ptr [esi + 0x58] */ 10418 PUSH32(esp, 0xBu); /* 0x36114621: push 0xb */ 10419 ecx = edi; /* 0x36114623: mov ecx, edi */ 10420 RECOMP_ICALL(0x36137010u); /* 0x36114625: call 0x36137010 */ /* not lifted */ 10421 RECOMP_FLAGS_IN(); 10422 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x5C) = _v; } /* 0x3611462A: fstp dword ptr [esi + 0x5c] */ 10423 PUSH32(esp, 0xCu); /* 0x3611462D: push 0xc */ 10424 ecx = edi; /* 0x3611462F: mov ecx, edi */ 10425 RECOMP_ICALL(0x36136FE0u); /* 0x36114631: call 0x36136fe0 */ /* not lifted */ 10426 RECOMP_FLAGS_IN(); 10427 PUSH32(esp, 0xDu); /* 0x36114636: push 0xd */ 10428 ecx = edi; /* 0x36114638: mov ecx, edi */ 10429 MEM32(esi + 0x60) = eax; /* 0x3611463A: mov dword ptr [esi + 0x60], eax */ 10430 RECOMP_ICALL(0x36136FE0u); /* 0x3611463D: call 0x36136fe0 */ /* not lifted */ 10431 RECOMP_FLAGS_IN(); 10432 PUSH32(esp, 0xEu); /* 0x36114642: push 0xe */ 10433 ecx = edi; /* 0x36114644: mov ecx, edi */ 10434 MEM32(esi + 0x64) = eax; /* 0x36114646: mov dword ptr [esi + 0x64], eax */ 10435 RECOMP_ICALL(0x36136FE0u); /* 0x36114649: call 0x36136fe0 */ /* not lifted */ 10436 RECOMP_FLAGS_IN(); 10437 PUSH32(esp, 0xFu); /* 0x3611464E: push 0xf */ 10438 ecx = edi; /* 0x36114650: mov ecx, edi */ 10439 MEM32(esi + 0x68) = eax; /* 0x36114652: mov dword ptr [esi + 0x68], eax */ 10440 RECOMP_ICALL(0x36137010u); /* 0x36114655: call 0x36137010 */ /* not lifted */ 10441 RECOMP_FLAGS_IN(); 10442 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x6C) = _v; } /* 0x3611465A: fstp dword ptr [esi + 0x6c] */ 10443 PUSH32(esp, 0x10u); /* 0x3611465D: push 0x10 */ 10444 ecx = edi; /* 0x3611465F: mov ecx, edi */ 10445 RECOMP_ICALL(0x36137010u); /* 0x36114661: call 0x36137010 */ /* not lifted */ 10446 RECOMP_FLAGS_IN(); 10447 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x70) = _v; } /* 0x36114666: fstp dword ptr [esi + 0x70] */ 10448 PUSH32(esp, 0x11u); /* 0x36114669: push 0x11 */ 10449 ecx = edi; /* 0x3611466B: mov ecx, edi */ 10450 RECOMP_ICALL(0x36137010u); /* 0x3611466D: call 0x36137010 */ /* not lifted */ 10451 RECOMP_FLAGS_IN(); 10452 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x74) = _v; } /* 0x36114672: fstp dword ptr [esi + 0x74] */ 10453 PUSH32(esp, 0x12u); /* 0x36114675: push 0x12 */ 10454 ecx = edi; /* 0x36114677: mov ecx, edi */ 10455 RECOMP_ICALL(0x36137010u); /* 0x36114679: call 0x36137010 */ /* not lifted */ 10456 RECOMP_FLAGS_IN(); 10457 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x78) = _v; } /* 0x3611467E: fstp dword ptr [esi + 0x78] */ 10458 PUSH32(esp, 0x13u); /* 0x36114681: push 0x13 */ 10459 ecx = edi; /* 0x36114683: mov ecx, edi */ 10460 RECOMP_ICALL(0x36136FE0u); /* 0x36114685: call 0x36136fe0 */ /* not lifted */ 10461 RECOMP_FLAGS_IN(); 10462 PUSH32(esp, 0x14u); /* 0x3611468A: push 0x14 */ 10463 ecx = edi; /* 0x3611468C: mov ecx, edi */ 10464 MEM32(esi + 0x7C) = eax; /* 0x3611468E: mov dword ptr [esi + 0x7c], eax */ 10465 RECOMP_ICALL(0x36136FE0u); /* 0x36114691: call 0x36136fe0 */ /* not lifted */ 10466 RECOMP_FLAGS_IN(); 10467 PUSH32(esp, 0x15u); /* 0x36114696: push 0x15 */ 10468 ecx = edi; /* 0x36114698: mov ecx, edi */ 10469 MEM32(esi + 0x80) = eax; /* 0x3611469A: mov dword ptr [esi + 0x80], eax */ 10470 RECOMP_ICALL(0x36136FE0u); /* 0x361146A0: call 0x36136fe0 */ /* not lifted */ 10471 RECOMP_FLAGS_IN(); 10472 PUSH32(esp, 0x16u); /* 0x361146A5: push 0x16 */ 10473 ecx = edi; /* 0x361146A7: mov ecx, edi */ 10474 MEM32(esi + 0x84) = eax; /* 0x361146A9: mov dword ptr [esi + 0x84], eax */ 10475 RECOMP_ICALL(0x36136FE0u); /* 0x361146AF: call 0x36136fe0 */ /* not lifted */ 10476 RECOMP_FLAGS_IN(); 10477 PUSH32(esp, 0x17u); /* 0x361146B4: push 0x17 */ 10478 ecx = edi; /* 0x361146B6: mov ecx, edi */ 10479 MEM32(esi + 0x88) = eax; /* 0x361146B8: mov dword ptr [esi + 0x88], eax */ 10480 RECOMP_ICALL(0x36136FE0u); /* 0x361146BE: call 0x36136fe0 */ /* not lifted */ 10481 RECOMP_FLAGS_IN(); 10482 PUSH32(esp, 0x18u); /* 0x361146C3: push 0x18 */ 10483 ecx = edi; /* 0x361146C5: mov ecx, edi */ 10484 MEM32(esi + 0x8C) = eax; /* 0x361146C7: mov dword ptr [esi + 0x8c], eax */ 10485 RECOMP_ICALL(0x36137010u); /* 0x361146CD: call 0x36137010 */ /* not lifted */ 10486 RECOMP_FLAGS_IN(); 10487 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x90) = _v; } /* 0x361146D2: fstp dword ptr [esi + 0x90] */ 10488 PUSH32(esp, 0x19u); /* 0x361146D8: push 0x19 */ 10489 ecx = edi; /* 0x361146DA: mov ecx, edi */ 10490 RECOMP_ICALL(0x36137010u); /* 0x361146DC: call 0x36137010 */ /* not lifted */ 10491 RECOMP_FLAGS_IN(); 10492 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x94) = _v; } /* 0x361146E1: fstp dword ptr [esi + 0x94] */ 10493 edi = POP32_VAL(esp); /* 0x361146E7: pop edi */ 10494 esi = POP32_VAL(esp); /* 0x361146E8: pop esi */ 10495 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361146E9: ret */ 10496 RECOMP_REGS_OUT(); 10497 } 10498 10499 void sub_361146F0(void) { 10500 int _fpu_cmp = 0; 10501 uint32_t _cf = 0; 10502 int _df = 1; 10503 uint32_t _flag_k = FK_NONE; 10504 uint32_t _flag_a = 0, _flag_b = 0; 10505 uint32_t _itail_tgt = 0; 10506 RECOMP_REGS_LOCALS 10507 RECOMP_ENTER(0x361146F0u); 10508 10509 L_361146F0: 10510 PUSH32(esp, ebp); /* 0x361146F0: push ebp */ 10511 ebp = esp; /* 0x361146F1: mov ebp, esp */ 10512 PUSH32(esp, 0xFFFFFFFFu); /* 0x361146F3: push -1 */ 10513 PUSH32(esp, 0x3616AF2Du); /* 0x361146F5: push 0x3616af2d */ 10514 eax = MEM32(FS_BASE + (0)); /* 0x361146FA: mov eax, dword ptr fs:[0] */ 10515 PUSH32(esp, eax); /* 0x36114700: push eax */ 10516 MEM32(FS_BASE + (0)) = esp; /* 0x36114701: mov dword ptr fs:[0], esp */ 10517 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10519 esp = esp - 0x14u; /* 0x36114708: sub esp, 0x14 */ 10520 _flag_k = FK_CMP; 10521 PUSH32(esp, ebx); /* 0x3611470B: push ebx */ 10522 PUSH32(esp, esi); /* 0x3611470C: push esi */ 10523 esi = MEM32(0x3616F604); /* 0x3611470D: mov esi, dword ptr [0x3616f604] */ 10524 PUSH32(esp, edi); /* 0x36114713: push edi */ 10525 edi = ecx; /* 0x36114714: mov edi, ecx */ 10526 /* cmp MEM32(edi + 0x30), 1 */ /* 0x36114716: cmp dword ptr [edi + 0x30], 1 */ 10527 _flag_a = (uint32_t)(MEM32(edi + 0x30)); _flag_b = (uint32_t)(1); 10528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10529 _flag_k = FK_CMP; 10530 if (CMP_L(_flag_a, _flag_b)) goto L_36114926; /* 0x3611471A: jl 0x36114926 */ 10531 L_36114720: 10532 PUSH32(esp, 0xDCu); /* 0x36114720: push 0xdc */ 10533 RECOMP_ICALL(0x3615FD6Au); /* 0x36114725: call 0x3615fd6a */ /* not lifted */ 10534 RECOMP_FLAGS_IN(); 10535 ebx = eax; /* 0x3611472A: mov ebx, eax */ 10536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10538 esp = esp + 4; /* 0x3611472C: add esp, 4 */ 10539 _flag_k = FK_ADD; 10540 MEM32(ebp + (-0x20)) = ebx; /* 0x3611472F: mov dword ptr [ebp - 0x20], ebx */ 10541 /* test ebx, ebx */ /* 0x36114732: test ebx, ebx */ 10542 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10543 _cf = 0; 10544 _flag_k = FK_TEST; 10545 MEM32(ebp + (-0x4)) = 0; /* 0x36114734: mov dword ptr [ebp - 4], 0 */ 10546 if (TEST_Z(_flag_a, _flag_b)) goto L_36114752; /* 0x3611473B: je 0x36114752 */ 10547 L_3611473D: 10548 PUSH32(esp, 0x361BF504u); /* 0x3611473D: push 0x361bf504 */ 10549 ecx = ebx; /* 0x36114742: mov ecx, ebx */ 10550 RECOMP_ICALL(MEM32(0x3616F9DC)); /* 0x36114744: call dword ptr [0x3616f9dc] */ 10551 RECOMP_FLAGS_IN(); 10552 MEM32(ebx) = 0x3617568Cu; /* 0x3611474A: mov dword ptr [ebx], 0x3617568c */ 10553 goto L_36114754; /* 0x36114750: jmp 0x36114754 */ 10554 L_36114752: 10555 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10556 ebx = 0; /* 0x36114752: xor ebx, ebx */ 10557 _cf = 0; 10558 _flag_k = FK_TEST; 10559 L_36114754: 10560 PUSH32(esp, 1); /* 0x36114754: push 1 */ 10561 PUSH32(esp, 0x88u); /* 0x36114756: push 0x88 */ 10562 ecx = ebx; /* 0x3611475B: mov ecx, ebx */ 10563 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3611475D: mov dword ptr [ebp - 4], 0xffffffff */ 10564 RECOMP_ICALL(esi); /* 0x36114764: call esi */ 10565 RECOMP_FLAGS_IN(); 10566 PUSH32(esp, 0); /* 0x36114766: push 0 */ 10567 PUSH32(esp, 0x89u); /* 0x36114768: push 0x89 */ 10568 ecx = ebx; /* 0x3611476D: mov ecx, ebx */ 10569 RECOMP_ICALL(esi); /* 0x3611476F: call esi */ 10570 RECOMP_FLAGS_IN(); 10571 PUSH32(esp, 8); /* 0x36114771: push 8 */ 10572 PUSH32(esp, 0x17u); /* 0x36114773: push 0x17 */ 10573 ecx = ebx; /* 0x36114775: mov ecx, ebx */ 10574 RECOMP_ICALL(esi); /* 0x36114777: call esi */ 10575 RECOMP_FLAGS_IN(); 10576 PUSH32(esp, 0); /* 0x36114779: push 0 */ 10577 PUSH32(esp, 0xEu); /* 0x3611477B: push 0xe */ 10578 ecx = ebx; /* 0x3611477D: mov ecx, ebx */ 10579 RECOMP_ICALL(esi); /* 0x3611477F: call esi */ 10580 RECOMP_FLAGS_IN(); 10581 PUSH32(esp, 1); /* 0x36114781: push 1 */ 10582 PUSH32(esp, 0x8Du); /* 0x36114783: push 0x8d */ 10583 ecx = ebx; /* 0x36114788: mov ecx, ebx */ 10584 RECOMP_ICALL(esi); /* 0x3611478A: call esi */ 10585 RECOMP_FLAGS_IN(); 10586 PUSH32(esp, 1); /* 0x3611478C: push 1 */ 10587 PUSH32(esp, 0x16u); /* 0x3611478E: push 0x16 */ 10588 ecx = ebx; /* 0x36114790: mov ecx, ebx */ 10589 RECOMP_ICALL(esi); /* 0x36114792: call esi */ 10590 RECOMP_FLAGS_IN(); 10591 PUSH32(esp, 1); /* 0x36114794: push 1 */ 10592 PUSH32(esp, 0x94u); /* 0x36114796: push 0x94 */ 10593 ecx = ebx; /* 0x3611479B: mov ecx, ebx */ 10594 RECOMP_ICALL(esi); /* 0x3611479D: call esi */ 10595 RECOMP_FLAGS_IN(); 10596 PUSH32(esp, 2); /* 0x3611479F: push 2 */ 10597 PUSH32(esp, 1); /* 0x361147A1: push 1 */ 10598 PUSH32(esp, 0); /* 0x361147A3: push 0 */ 10599 ecx = ebx; /* 0x361147A5: mov ecx, ebx */ 10600 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361147A7: call dword ptr [0x3616f600] */ 10601 RECOMP_FLAGS_IN(); 10602 PUSH32(esp, 0); /* 0x361147AD: push 0 */ 10603 PUSH32(esp, 2); /* 0x361147AF: push 2 */ 10604 PUSH32(esp, 0); /* 0x361147B1: push 0 */ 10605 ecx = ebx; /* 0x361147B3: mov ecx, ebx */ 10606 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361147B5: call dword ptr [0x3616f600] */ 10607 RECOMP_FLAGS_IN(); 10608 PUSH32(esp, 2); /* 0x361147BB: push 2 */ 10609 PUSH32(esp, 4); /* 0x361147BD: push 4 */ 10610 PUSH32(esp, 0); /* 0x361147BF: push 0 */ 10611 ecx = ebx; /* 0x361147C1: mov ecx, ebx */ 10612 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361147C3: call dword ptr [0x3616f600] */ 10613 RECOMP_FLAGS_IN(); 10614 PUSH32(esp, 0); /* 0x361147C9: push 0 */ 10615 PUSH32(esp, 5); /* 0x361147CB: push 5 */ 10616 PUSH32(esp, 0); /* 0x361147CD: push 0 */ 10617 ecx = ebx; /* 0x361147CF: mov ecx, ebx */ 10618 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361147D1: call dword ptr [0x3616f600] */ 10619 RECOMP_FLAGS_IN(); 10620 PUSH32(esp, 1); /* 0x361147D7: push 1 */ 10621 PUSH32(esp, 0x1Bu); /* 0x361147D9: push 0x1b */ 10622 ecx = ebx; /* 0x361147DB: mov ecx, ebx */ 10623 RECOMP_ICALL(esi); /* 0x361147DD: call esi */ 10624 RECOMP_FLAGS_IN(); 10625 eax = MEM32(edi + 0x48); /* 0x361147DF: mov eax, dword ptr [edi + 0x48] */ 10626 PUSH32(esp, eax); /* 0x361147E2: push eax */ 10627 PUSH32(esp, 0x13u); /* 0x361147E3: push 0x13 */ 10628 ecx = ebx; /* 0x361147E5: mov ecx, ebx */ 10629 RECOMP_ICALL(esi); /* 0x361147E7: call esi */ 10630 RECOMP_FLAGS_IN(); 10631 ecx = MEM32(edi + 0x4C); /* 0x361147E9: mov ecx, dword ptr [edi + 0x4c] */ 10632 PUSH32(esp, ecx); /* 0x361147EC: push ecx */ 10633 PUSH32(esp, 0x14u); /* 0x361147ED: push 0x14 */ 10634 ecx = ebx; /* 0x361147EF: mov ecx, ebx */ 10635 RECOMP_ICALL(esi); /* 0x361147F1: call esi */ 10636 RECOMP_FLAGS_IN(); 10637 RECOMP_ICALL(MEM32(0x3616F3CC)); /* 0x361147F3: call dword ptr [0x3616f3cc] */ 10638 RECOMP_FLAGS_IN(); 10639 /* test eax, eax */ /* 0x361147F9: test eax, eax */ 10640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10641 _cf = 0; 10642 _flag_k = FK_TEST; 10643 if (TEST_Z(_flag_a, _flag_b)) goto L_36114821; /* 0x361147FB: je 0x36114821 */ 10644 L_361147FD: 10645 RECOMP_ICALL(MEM32(0x3616F3CC)); /* 0x361147FD: call dword ptr [0x3616f3cc] */ 10646 RECOMP_FLAGS_IN(); 10647 ecx = eax; /* 0x36114803: mov ecx, eax */ 10648 RECOMP_ICALL(MEM32(0x3616F7EC)); /* 0x36114805: call dword ptr [0x3616f7ec] */ 10649 RECOMP_FLAGS_IN(); 10650 PUSH32(esp, 0); /* 0x3611480B: push 0 */ 10651 MEM32(edi + 0x98) = eax; /* 0x3611480D: mov dword ptr [edi + 0x98], eax */ 10652 RECOMP_ICALL(MEM32(0x3616F3CC)); /* 0x36114813: call dword ptr [0x3616f3cc] */ 10653 RECOMP_FLAGS_IN(); 10654 ecx = eax; /* 0x36114819: mov ecx, eax */ 10655 RECOMP_ICALL(MEM32(0x3616F7E8)); /* 0x3611481B: call dword ptr [0x3616f7e8] */ 10656 RECOMP_FLAGS_IN(); 10657 L_36114821: 10658 PUSH32(esp, 0x220u); /* 0x36114821: push 0x220 */ 10659 RECOMP_ICALL(0x3615FD6Au); /* 0x36114826: call 0x3615fd6a */ /* not lifted */ 10660 RECOMP_FLAGS_IN(); 10661 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10663 esp = esp + 4; /* 0x3611482B: add esp, 4 */ 10664 _flag_k = FK_ADD; 10665 MEM32(ebp + (-0x10)) = eax; /* 0x3611482E: mov dword ptr [ebp - 0x10], eax */ 10666 /* test eax, eax */ /* 0x36114831: test eax, eax */ 10667 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10668 _cf = 0; 10669 _flag_k = FK_TEST; 10670 MEM32(ebp + (-0x4)) = 1; /* 0x36114833: mov dword ptr [ebp - 4], 1 */ 10671 if (TEST_Z(_flag_a, _flag_b)) goto L_36114882; /* 0x3611483A: je 0x36114882 */ 10672 L_3611483C: 10673 PUSH32(esp, ebx); /* 0x3611483C: push ebx */ 10674 PUSH32(esp, 0); /* 0x3611483D: push 0 */ 10675 ecx = eax; /* 0x3611483F: mov ecx, eax */ 10676 RECOMP_ICALL(MEM32(0x3616F5FC)); /* 0x36114841: call dword ptr [0x3616f5fc] */ 10677 RECOMP_FLAGS_IN(); 10678 eax = MEM32(ebp + (-0x10)); /* 0x36114847: mov eax, dword ptr [ebp - 0x10] */ 10679 MEM32(eax) = 0x36175634u; /* 0x3611484A: mov dword ptr [eax], 0x36175634 */ 10680 MEM32(eax + 0x8) = 0x36175624u; /* 0x36114850: mov dword ptr [eax + 8], 0x36175624 */ 10681 MEM32(eax + 0x20) = 0x36175614u; /* 0x36114857: mov dword ptr [eax + 0x20], 0x36175614 */ 10682 MEM32(eax + 0x38) = 0x36175604u; /* 0x3611485E: mov dword ptr [eax + 0x38], 0x36175604 */ 10683 MEM32(eax + 0x50) = 0x361755F4u; /* 0x36114865: mov dword ptr [eax + 0x50], 0x361755f4 */ 10684 MEM32(eax + 0x138) = 0x361755E4u; /* 0x3611486C: mov dword ptr [eax + 0x138], 0x361755e4 */ 10685 MEM32(eax + 0x150) = 0x361755D4u; /* 0x36114876: mov dword ptr [eax + 0x150], 0x361755d4 */ 10686 goto L_36114884; /* 0x36114880: jmp 0x36114884 */ 10687 L_36114882: 10688 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10689 eax = 0; /* 0x36114882: xor eax, eax */ 10690 _cf = 0; 10691 _flag_k = FK_TEST; 10692 L_36114884: 10693 ecx = eax; /* 0x36114884: mov ecx, eax */ 10694 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36114886: mov dword ptr [ebp - 4], 0xffffffff */ 10695 MEM32(edi + 0x20) = eax; /* 0x3611488D: mov dword ptr [edi + 0x20], eax */ 10696 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36114890: call dword ptr [0x3616f5f8] */ 10697 RECOMP_FLAGS_IN(); 10698 eax = MEM32(edi + 0x44); /* 0x36114896: mov eax, dword ptr [edi + 0x44] */ 10699 ecx = MEM32(edi + 0x20); /* 0x36114899: mov ecx, dword ptr [edi + 0x20] */ 10700 MEM32(ecx + 0x1FC) = eax; /* 0x3611489C: mov dword ptr [ecx + 0x1fc], eax */ 10701 fp_push(*(float*)&MEM32(edi + 0x34)); /* 0x361148A2: fld dword ptr [edi + 0x34] */ 10702 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x361148A5: fmul dword ptr [0x36174f7c] */ 10703 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361148AB: fstp dword ptr [ebp - 0x10] */ 10704 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361148AE: fld dword ptr [ebp - 0x10] */ 10705 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x361148B1: fsub qword ptr [0x361755c8] */ 10706 MEM32(ebp + (-0x14)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x361148B7: fistp dword ptr [ebp - 0x14] */ 10707 fp_push(*(float*)&MEM32(edi + 0x38)); /* 0x361148BA: fld dword ptr [edi + 0x38] */ 10708 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x361148BD: fmul dword ptr [0x36174f7c] */ 10709 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361148C3: fstp dword ptr [ebp - 0x10] */ 10710 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361148C6: fld dword ptr [ebp - 0x10] */ 10711 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x361148C9: fsub qword ptr [0x361755c8] */ 10712 MEM32(ebp + (-0x18)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x361148CF: fistp dword ptr [ebp - 0x18] */ 10713 fp_push(*(float*)&MEM32(edi + 0x3C)); /* 0x361148D2: fld dword ptr [edi + 0x3c] */ 10714 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x361148D5: fmul dword ptr [0x36174f7c] */ 10715 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361148DB: fstp dword ptr [ebp - 0x10] */ 10716 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361148DE: fld dword ptr [ebp - 0x10] */ 10717 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x361148E1: fsub qword ptr [0x361755c8] */ 10718 MEM32(ebp + (-0x1C)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x361148E7: fistp dword ptr [ebp - 0x1c] */ 10719 fp_push(*(float*)&MEM32(edi + 0x40)); /* 0x361148EA: fld dword ptr [edi + 0x40] */ 10720 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x361148ED: fmul dword ptr [0x36174f7c] */ 10721 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x361148F3: fstp dword ptr [ebp - 0x10] */ 10722 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x361148F6: fld dword ptr [ebp - 0x10] */ 10723 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x361148F9: fsub qword ptr [0x361755c8] */ 10724 MEM32(ebp + (-0x20)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x361148FF: fistp dword ptr [ebp - 0x20] */ 10725 eax = MEM32(ebp + (-0x14)); /* 0x36114902: mov eax, dword ptr [ebp - 0x14] */ 10726 ebx = MEM32(ebp + (-0x18)); /* 0x36114905: mov ebx, dword ptr [ebp - 0x18] */ 10727 ecx = MEM32(edi + 0x20); /* 0x36114908: mov ecx, dword ptr [edi + 0x20] */ 10728 edx = MEM32(ecx); /* 0x3611490B: mov edx, dword ptr [ecx] */ 10729 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x3611490D: shl eax, 8 */ 10730 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10731 eax = eax << 8u; /* 0x3611490D: shl eax, 8 */ 10732 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 10733 eax = eax | ebx; /* 0x36114910: or eax, ebx */ 10734 _cf = 0; 10735 _flag_k = FK_TEST; 10736 ebx = MEM32(ebp + (-0x1C)); /* 0x36114912: mov ebx, dword ptr [ebp - 0x1c] */ 10737 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x36114915: shl eax, 8 */ 10738 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10739 eax = eax << 8u; /* 0x36114915: shl eax, 8 */ 10740 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 10741 eax = eax | ebx; /* 0x36114918: or eax, ebx */ 10742 _cf = 0; 10743 _flag_k = FK_TEST; 10744 ebx = MEM32(ebp + (-0x20)); /* 0x3611491A: mov ebx, dword ptr [ebp - 0x20] */ 10745 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x3611491D: shl eax, 8 */ 10746 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10747 eax = eax << 8u; /* 0x3611491D: shl eax, 8 */ 10748 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 10749 eax = eax | ebx; /* 0x36114920: or eax, ebx */ 10750 _cf = 0; 10751 _flag_k = FK_TEST; 10752 PUSH32(esp, eax); /* 0x36114922: push eax */ 10753 RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x36114923: call dword ptr [edx + 0x50] */ 10754 RECOMP_FLAGS_IN(); 10755 L_36114926: 10756 /* cmp MEM32(edi + 0x30), 2 */ /* 0x36114926: cmp dword ptr [edi + 0x30], 2 */ 10757 _flag_a = (uint32_t)(MEM32(edi + 0x30)); _flag_b = (uint32_t)(2); 10758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10759 _flag_k = FK_CMP; 10760 if (CMP_L(_flag_a, _flag_b)) goto L_36114B08; /* 0x3611492A: jl 0x36114b08 */ 10761 L_36114930: 10762 PUSH32(esp, 0xDCu); /* 0x36114930: push 0xdc */ 10763 RECOMP_ICALL(0x3615FD6Au); /* 0x36114935: call 0x3615fd6a */ /* not lifted */ 10764 RECOMP_FLAGS_IN(); 10765 ebx = eax; /* 0x3611493A: mov ebx, eax */ 10766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10768 esp = esp + 4; /* 0x3611493C: add esp, 4 */ 10769 _flag_k = FK_ADD; 10770 MEM32(ebp + (-0x20)) = ebx; /* 0x3611493F: mov dword ptr [ebp - 0x20], ebx */ 10771 /* test ebx, ebx */ /* 0x36114942: test ebx, ebx */ 10772 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10773 _cf = 0; 10774 _flag_k = FK_TEST; 10775 MEM32(ebp + (-0x4)) = 2; /* 0x36114944: mov dword ptr [ebp - 4], 2 */ 10776 if (TEST_Z(_flag_a, _flag_b)) goto L_36114962; /* 0x3611494B: je 0x36114962 */ 10777 L_3611494D: 10778 PUSH32(esp, 0x361BF504u); /* 0x3611494D: push 0x361bf504 */ 10779 ecx = ebx; /* 0x36114952: mov ecx, ebx */ 10780 RECOMP_ICALL(MEM32(0x3616F9DC)); /* 0x36114954: call dword ptr [0x3616f9dc] */ 10781 RECOMP_FLAGS_IN(); 10782 MEM32(ebx) = 0x3617568Cu; /* 0x3611495A: mov dword ptr [ebx], 0x3617568c */ 10783 goto L_36114964; /* 0x36114960: jmp 0x36114964 */ 10784 L_36114962: 10785 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10786 ebx = 0; /* 0x36114962: xor ebx, ebx */ 10787 _cf = 0; 10788 _flag_k = FK_TEST; 10789 L_36114964: 10790 PUSH32(esp, 1); /* 0x36114964: push 1 */ 10791 PUSH32(esp, 0x88u); /* 0x36114966: push 0x88 */ 10792 ecx = ebx; /* 0x3611496B: mov ecx, ebx */ 10793 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3611496D: mov dword ptr [ebp - 4], 0xffffffff */ 10794 RECOMP_ICALL(esi); /* 0x36114974: call esi */ 10795 RECOMP_FLAGS_IN(); 10796 PUSH32(esp, 0); /* 0x36114976: push 0 */ 10797 PUSH32(esp, 0x89u); /* 0x36114978: push 0x89 */ 10798 ecx = ebx; /* 0x3611497D: mov ecx, ebx */ 10799 RECOMP_ICALL(esi); /* 0x3611497F: call esi */ 10800 RECOMP_FLAGS_IN(); 10801 PUSH32(esp, 8); /* 0x36114981: push 8 */ 10802 PUSH32(esp, 0x17u); /* 0x36114983: push 0x17 */ 10803 ecx = ebx; /* 0x36114985: mov ecx, ebx */ 10804 RECOMP_ICALL(esi); /* 0x36114987: call esi */ 10805 RECOMP_FLAGS_IN(); 10806 PUSH32(esp, 0); /* 0x36114989: push 0 */ 10807 PUSH32(esp, 0xEu); /* 0x3611498B: push 0xe */ 10808 ecx = ebx; /* 0x3611498D: mov ecx, ebx */ 10809 RECOMP_ICALL(esi); /* 0x3611498F: call esi */ 10810 RECOMP_FLAGS_IN(); 10811 PUSH32(esp, 1); /* 0x36114991: push 1 */ 10812 PUSH32(esp, 0x8Du); /* 0x36114993: push 0x8d */ 10813 ecx = ebx; /* 0x36114998: mov ecx, ebx */ 10814 RECOMP_ICALL(esi); /* 0x3611499A: call esi */ 10815 RECOMP_FLAGS_IN(); 10816 PUSH32(esp, 1); /* 0x3611499C: push 1 */ 10817 PUSH32(esp, 0x16u); /* 0x3611499E: push 0x16 */ 10818 ecx = ebx; /* 0x361149A0: mov ecx, ebx */ 10819 RECOMP_ICALL(esi); /* 0x361149A2: call esi */ 10820 RECOMP_FLAGS_IN(); 10821 PUSH32(esp, 1); /* 0x361149A4: push 1 */ 10822 PUSH32(esp, 0x94u); /* 0x361149A6: push 0x94 */ 10823 ecx = ebx; /* 0x361149AB: mov ecx, ebx */ 10824 RECOMP_ICALL(esi); /* 0x361149AD: call esi */ 10825 RECOMP_FLAGS_IN(); 10826 PUSH32(esp, 2); /* 0x361149AF: push 2 */ 10827 PUSH32(esp, 1); /* 0x361149B1: push 1 */ 10828 PUSH32(esp, 0); /* 0x361149B3: push 0 */ 10829 ecx = ebx; /* 0x361149B5: mov ecx, ebx */ 10830 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361149B7: call dword ptr [0x3616f600] */ 10831 RECOMP_FLAGS_IN(); 10832 PUSH32(esp, 0); /* 0x361149BD: push 0 */ 10833 PUSH32(esp, 2); /* 0x361149BF: push 2 */ 10834 PUSH32(esp, 0); /* 0x361149C1: push 0 */ 10835 ecx = ebx; /* 0x361149C3: mov ecx, ebx */ 10836 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361149C5: call dword ptr [0x3616f600] */ 10837 RECOMP_FLAGS_IN(); 10838 PUSH32(esp, 2); /* 0x361149CB: push 2 */ 10839 PUSH32(esp, 4); /* 0x361149CD: push 4 */ 10840 PUSH32(esp, 0); /* 0x361149CF: push 0 */ 10841 ecx = ebx; /* 0x361149D1: mov ecx, ebx */ 10842 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361149D3: call dword ptr [0x3616f600] */ 10843 RECOMP_FLAGS_IN(); 10844 PUSH32(esp, 0); /* 0x361149D9: push 0 */ 10845 PUSH32(esp, 5); /* 0x361149DB: push 5 */ 10846 PUSH32(esp, 0); /* 0x361149DD: push 0 */ 10847 ecx = ebx; /* 0x361149DF: mov ecx, ebx */ 10848 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x361149E1: call dword ptr [0x3616f600] */ 10849 RECOMP_FLAGS_IN(); 10850 PUSH32(esp, 1); /* 0x361149E7: push 1 */ 10851 PUSH32(esp, 0x1Bu); /* 0x361149E9: push 0x1b */ 10852 ecx = ebx; /* 0x361149EB: mov ecx, ebx */ 10853 RECOMP_ICALL(esi); /* 0x361149ED: call esi */ 10854 RECOMP_FLAGS_IN(); 10855 ecx = MEM32(edi + 0x64); /* 0x361149EF: mov ecx, dword ptr [edi + 0x64] */ 10856 PUSH32(esp, ecx); /* 0x361149F2: push ecx */ 10857 PUSH32(esp, 0x13u); /* 0x361149F3: push 0x13 */ 10858 ecx = ebx; /* 0x361149F5: mov ecx, ebx */ 10859 RECOMP_ICALL(esi); /* 0x361149F7: call esi */ 10860 RECOMP_FLAGS_IN(); 10861 edx = MEM32(edi + 0x68); /* 0x361149F9: mov edx, dword ptr [edi + 0x68] */ 10862 PUSH32(esp, edx); /* 0x361149FC: push edx */ 10863 PUSH32(esp, 0x14u); /* 0x361149FD: push 0x14 */ 10864 ecx = ebx; /* 0x361149FF: mov ecx, ebx */ 10865 RECOMP_ICALL(esi); /* 0x36114A01: call esi */ 10866 RECOMP_FLAGS_IN(); 10867 PUSH32(esp, 0x220u); /* 0x36114A03: push 0x220 */ 10868 RECOMP_ICALL(0x3615FD6Au); /* 0x36114A08: call 0x3615fd6a */ /* not lifted */ 10869 RECOMP_FLAGS_IN(); 10870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10872 esp = esp + 4; /* 0x36114A0D: add esp, 4 */ 10873 _flag_k = FK_ADD; 10874 MEM32(ebp + (-0x20)) = eax; /* 0x36114A10: mov dword ptr [ebp - 0x20], eax */ 10875 /* test eax, eax */ /* 0x36114A13: test eax, eax */ 10876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10877 _cf = 0; 10878 _flag_k = FK_TEST; 10879 MEM32(ebp + (-0x4)) = 3; /* 0x36114A15: mov dword ptr [ebp - 4], 3 */ 10880 if (TEST_Z(_flag_a, _flag_b)) goto L_36114A64; /* 0x36114A1C: je 0x36114a64 */ 10881 L_36114A1E: 10882 PUSH32(esp, ebx); /* 0x36114A1E: push ebx */ 10883 PUSH32(esp, 0); /* 0x36114A1F: push 0 */ 10884 ecx = eax; /* 0x36114A21: mov ecx, eax */ 10885 RECOMP_ICALL(MEM32(0x3616F5FC)); /* 0x36114A23: call dword ptr [0x3616f5fc] */ 10886 RECOMP_FLAGS_IN(); 10887 eax = MEM32(ebp + (-0x20)); /* 0x36114A29: mov eax, dword ptr [ebp - 0x20] */ 10888 MEM32(eax) = 0x36175634u; /* 0x36114A2C: mov dword ptr [eax], 0x36175634 */ 10889 MEM32(eax + 0x8) = 0x36175624u; /* 0x36114A32: mov dword ptr [eax + 8], 0x36175624 */ 10890 MEM32(eax + 0x20) = 0x36175614u; /* 0x36114A39: mov dword ptr [eax + 0x20], 0x36175614 */ 10891 MEM32(eax + 0x38) = 0x36175604u; /* 0x36114A40: mov dword ptr [eax + 0x38], 0x36175604 */ 10892 MEM32(eax + 0x50) = 0x361755F4u; /* 0x36114A47: mov dword ptr [eax + 0x50], 0x361755f4 */ 10893 MEM32(eax + 0x138) = 0x361755E4u; /* 0x36114A4E: mov dword ptr [eax + 0x138], 0x361755e4 */ 10894 MEM32(eax + 0x150) = 0x361755D4u; /* 0x36114A58: mov dword ptr [eax + 0x150], 0x361755d4 */ 10895 goto L_36114A66; /* 0x36114A62: jmp 0x36114a66 */ 10896 L_36114A64: 10897 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10898 eax = 0; /* 0x36114A64: xor eax, eax */ 10899 _cf = 0; 10900 _flag_k = FK_TEST; 10901 L_36114A66: 10902 ecx = eax; /* 0x36114A66: mov ecx, eax */ 10903 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36114A68: mov dword ptr [ebp - 4], 0xffffffff */ 10904 MEM32(edi + 0x24) = eax; /* 0x36114A6F: mov dword ptr [edi + 0x24], eax */ 10905 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36114A72: call dword ptr [0x3616f5f8] */ 10906 RECOMP_FLAGS_IN(); 10907 eax = MEM32(edi + 0x60); /* 0x36114A78: mov eax, dword ptr [edi + 0x60] */ 10908 ecx = MEM32(edi + 0x24); /* 0x36114A7B: mov ecx, dword ptr [edi + 0x24] */ 10909 MEM32(ecx + 0x1FC) = eax; /* 0x36114A7E: mov dword ptr [ecx + 0x1fc], eax */ 10910 fp_push(*(float*)&MEM32(edi + 0x50)); /* 0x36114A84: fld dword ptr [edi + 0x50] */ 10911 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114A87: fmul dword ptr [0x36174f7c] */ 10912 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114A8D: fstp dword ptr [ebp - 0x20] */ 10913 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114A90: fld dword ptr [ebp - 0x20] */ 10914 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114A93: fsub qword ptr [0x361755c8] */ 10915 MEM32(ebp + (-0x1C)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114A99: fistp dword ptr [ebp - 0x1c] */ 10916 fp_push(*(float*)&MEM32(edi + 0x54)); /* 0x36114A9C: fld dword ptr [edi + 0x54] */ 10917 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114A9F: fmul dword ptr [0x36174f7c] */ 10918 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114AA5: fstp dword ptr [ebp - 0x20] */ 10919 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114AA8: fld dword ptr [ebp - 0x20] */ 10920 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114AAB: fsub qword ptr [0x361755c8] */ 10921 MEM32(ebp + (-0x18)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114AB1: fistp dword ptr [ebp - 0x18] */ 10922 fp_push(*(float*)&MEM32(edi + 0x58)); /* 0x36114AB4: fld dword ptr [edi + 0x58] */ 10923 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114AB7: fmul dword ptr [0x36174f7c] */ 10924 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114ABD: fstp dword ptr [ebp - 0x20] */ 10925 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114AC0: fld dword ptr [ebp - 0x20] */ 10926 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114AC3: fsub qword ptr [0x361755c8] */ 10927 MEM32(ebp + (-0x14)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114AC9: fistp dword ptr [ebp - 0x14] */ 10928 fp_push(*(float*)&MEM32(edi + 0x5C)); /* 0x36114ACC: fld dword ptr [edi + 0x5c] */ 10929 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114ACF: fmul dword ptr [0x36174f7c] */ 10930 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114AD5: fstp dword ptr [ebp - 0x20] */ 10931 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114AD8: fld dword ptr [ebp - 0x20] */ 10932 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114ADB: fsub qword ptr [0x361755c8] */ 10933 MEM32(ebp + (-0x10)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114AE1: fistp dword ptr [ebp - 0x10] */ 10934 edx = MEM32(ebp + (-0x1C)); /* 0x36114AE4: mov edx, dword ptr [ebp - 0x1c] */ 10935 ebx = MEM32(ebp + (-0x18)); /* 0x36114AE7: mov ebx, dword ptr [ebp - 0x18] */ 10936 ecx = MEM32(edi + 0x24); /* 0x36114AEA: mov ecx, dword ptr [edi + 0x24] */ 10937 eax = MEM32(ecx); /* 0x36114AED: mov eax, dword ptr [ecx] */ 10938 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x36114AEF: shl edx, 8 */ 10939 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10940 edx = edx << 8u; /* 0x36114AEF: shl edx, 8 */ 10941 _flag_a = (uint32_t)((edx | ebx)); _flag_b = (uint32_t)((edx | ebx)); 10942 edx = edx | ebx; /* 0x36114AF2: or edx, ebx */ 10943 _cf = 0; 10944 _flag_k = FK_TEST; 10945 ebx = MEM32(ebp + (-0x14)); /* 0x36114AF4: mov ebx, dword ptr [ebp - 0x14] */ 10946 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x36114AF7: shl edx, 8 */ 10947 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10948 edx = edx << 8u; /* 0x36114AF7: shl edx, 8 */ 10949 _flag_a = (uint32_t)((edx | ebx)); _flag_b = (uint32_t)((edx | ebx)); 10950 edx = edx | ebx; /* 0x36114AFA: or edx, ebx */ 10951 _cf = 0; 10952 _flag_k = FK_TEST; 10953 ebx = MEM32(ebp + (-0x10)); /* 0x36114AFC: mov ebx, dword ptr [ebp - 0x10] */ 10954 if (8u) _cf = (((edx) >> 24) & 1u); /* 0x36114AFF: shl edx, 8 */ 10955 if (8u) { _flag_a = recomp_flags_pack((edx << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10956 edx = edx << 8u; /* 0x36114AFF: shl edx, 8 */ 10957 _flag_a = (uint32_t)((edx | ebx)); _flag_b = (uint32_t)((edx | ebx)); 10958 edx = edx | ebx; /* 0x36114B02: or edx, ebx */ 10959 _cf = 0; 10960 _flag_k = FK_TEST; 10961 PUSH32(esp, edx); /* 0x36114B04: push edx */ 10962 RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x36114B05: call dword ptr [eax + 0x50] */ 10963 RECOMP_FLAGS_IN(); 10964 L_36114B08: 10965 /* cmp MEM32(edi + 0x30), 3 */ /* 0x36114B08: cmp dword ptr [edi + 0x30], 3 */ 10966 _flag_a = (uint32_t)(MEM32(edi + 0x30)); _flag_b = (uint32_t)(3); 10967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10968 _flag_k = FK_CMP; 10969 if (CMP_L(_flag_a, _flag_b)) goto L_36114CEF; /* 0x36114B0C: jl 0x36114cef */ 10970 L_36114B12: 10971 PUSH32(esp, 0xDCu); /* 0x36114B12: push 0xdc */ 10972 RECOMP_ICALL(0x3615FD6Au); /* 0x36114B17: call 0x3615fd6a */ /* not lifted */ 10973 RECOMP_FLAGS_IN(); 10974 ebx = eax; /* 0x36114B1C: mov ebx, eax */ 10975 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10977 esp = esp + 4; /* 0x36114B1E: add esp, 4 */ 10978 _flag_k = FK_ADD; 10979 MEM32(ebp + (-0x20)) = ebx; /* 0x36114B21: mov dword ptr [ebp - 0x20], ebx */ 10980 /* test ebx, ebx */ /* 0x36114B24: test ebx, ebx */ 10981 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 10982 _cf = 0; 10983 _flag_k = FK_TEST; 10984 MEM32(ebp + (-0x4)) = 4; /* 0x36114B26: mov dword ptr [ebp - 4], 4 */ 10985 if (TEST_Z(_flag_a, _flag_b)) goto L_36114B44; /* 0x36114B2D: je 0x36114b44 */ 10986 L_36114B2F: 10987 PUSH32(esp, 0x361BF504u); /* 0x36114B2F: push 0x361bf504 */ 10988 ecx = ebx; /* 0x36114B34: mov ecx, ebx */ 10989 RECOMP_ICALL(MEM32(0x3616F9DC)); /* 0x36114B36: call dword ptr [0x3616f9dc] */ 10990 RECOMP_FLAGS_IN(); 10991 MEM32(ebx) = 0x3617568Cu; /* 0x36114B3C: mov dword ptr [ebx], 0x3617568c */ 10992 goto L_36114B46; /* 0x36114B42: jmp 0x36114b46 */ 10993 L_36114B44: 10994 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10995 ebx = 0; /* 0x36114B44: xor ebx, ebx */ 10996 _cf = 0; 10997 _flag_k = FK_TEST; 10998 L_36114B46: 10999 PUSH32(esp, 1); /* 0x36114B46: push 1 */ 11000 PUSH32(esp, 0x88u); /* 0x36114B48: push 0x88 */ 11001 ecx = ebx; /* 0x36114B4D: mov ecx, ebx */ 11002 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36114B4F: mov dword ptr [ebp - 4], 0xffffffff */ 11003 RECOMP_ICALL(esi); /* 0x36114B56: call esi */ 11004 RECOMP_FLAGS_IN(); 11005 PUSH32(esp, 0); /* 0x36114B58: push 0 */ 11006 PUSH32(esp, 0x89u); /* 0x36114B5A: push 0x89 */ 11007 ecx = ebx; /* 0x36114B5F: mov ecx, ebx */ 11008 RECOMP_ICALL(esi); /* 0x36114B61: call esi */ 11009 RECOMP_FLAGS_IN(); 11010 PUSH32(esp, 8); /* 0x36114B63: push 8 */ 11011 PUSH32(esp, 0x17u); /* 0x36114B65: push 0x17 */ 11012 ecx = ebx; /* 0x36114B67: mov ecx, ebx */ 11013 RECOMP_ICALL(esi); /* 0x36114B69: call esi */ 11014 RECOMP_FLAGS_IN(); 11015 PUSH32(esp, 0); /* 0x36114B6B: push 0 */ 11016 PUSH32(esp, 0xEu); /* 0x36114B6D: push 0xe */ 11017 ecx = ebx; /* 0x36114B6F: mov ecx, ebx */ 11018 RECOMP_ICALL(esi); /* 0x36114B71: call esi */ 11019 RECOMP_FLAGS_IN(); 11020 PUSH32(esp, 1); /* 0x36114B73: push 1 */ 11021 PUSH32(esp, 0x8Du); /* 0x36114B75: push 0x8d */ 11022 ecx = ebx; /* 0x36114B7A: mov ecx, ebx */ 11023 RECOMP_ICALL(esi); /* 0x36114B7C: call esi */ 11024 RECOMP_FLAGS_IN(); 11025 PUSH32(esp, 1); /* 0x36114B7E: push 1 */ 11026 PUSH32(esp, 0x16u); /* 0x36114B80: push 0x16 */ 11027 ecx = ebx; /* 0x36114B82: mov ecx, ebx */ 11028 RECOMP_ICALL(esi); /* 0x36114B84: call esi */ 11029 RECOMP_FLAGS_IN(); 11030 PUSH32(esp, 1); /* 0x36114B86: push 1 */ 11031 PUSH32(esp, 0x94u); /* 0x36114B88: push 0x94 */ 11032 ecx = ebx; /* 0x36114B8D: mov ecx, ebx */ 11033 RECOMP_ICALL(esi); /* 0x36114B8F: call esi */ 11034 RECOMP_FLAGS_IN(); 11035 PUSH32(esp, 2); /* 0x36114B91: push 2 */ 11036 PUSH32(esp, 1); /* 0x36114B93: push 1 */ 11037 PUSH32(esp, 0); /* 0x36114B95: push 0 */ 11038 ecx = ebx; /* 0x36114B97: mov ecx, ebx */ 11039 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x36114B99: call dword ptr [0x3616f600] */ 11040 RECOMP_FLAGS_IN(); 11041 PUSH32(esp, 0); /* 0x36114B9F: push 0 */ 11042 PUSH32(esp, 2); /* 0x36114BA1: push 2 */ 11043 PUSH32(esp, 0); /* 0x36114BA3: push 0 */ 11044 ecx = ebx; /* 0x36114BA5: mov ecx, ebx */ 11045 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x36114BA7: call dword ptr [0x3616f600] */ 11046 RECOMP_FLAGS_IN(); 11047 PUSH32(esp, 2); /* 0x36114BAD: push 2 */ 11048 PUSH32(esp, 4); /* 0x36114BAF: push 4 */ 11049 PUSH32(esp, 0); /* 0x36114BB1: push 0 */ 11050 ecx = ebx; /* 0x36114BB3: mov ecx, ebx */ 11051 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x36114BB5: call dword ptr [0x3616f600] */ 11052 RECOMP_FLAGS_IN(); 11053 PUSH32(esp, 0); /* 0x36114BBB: push 0 */ 11054 PUSH32(esp, 5); /* 0x36114BBD: push 5 */ 11055 PUSH32(esp, 0); /* 0x36114BBF: push 0 */ 11056 ecx = ebx; /* 0x36114BC1: mov ecx, ebx */ 11057 RECOMP_ICALL(MEM32(0x3616F600)); /* 0x36114BC3: call dword ptr [0x3616f600] */ 11058 RECOMP_FLAGS_IN(); 11059 PUSH32(esp, 1); /* 0x36114BC9: push 1 */ 11060 PUSH32(esp, 0x1Bu); /* 0x36114BCB: push 0x1b */ 11061 ecx = ebx; /* 0x36114BCD: mov ecx, ebx */ 11062 RECOMP_ICALL(esi); /* 0x36114BCF: call esi */ 11063 RECOMP_FLAGS_IN(); 11064 eax = MEM32(edi + 0x80); /* 0x36114BD1: mov eax, dword ptr [edi + 0x80] */ 11065 PUSH32(esp, eax); /* 0x36114BD7: push eax */ 11066 PUSH32(esp, 0x13u); /* 0x36114BD8: push 0x13 */ 11067 ecx = ebx; /* 0x36114BDA: mov ecx, ebx */ 11068 RECOMP_ICALL(esi); /* 0x36114BDC: call esi */ 11069 RECOMP_FLAGS_IN(); 11070 ecx = MEM32(edi + 0x84); /* 0x36114BDE: mov ecx, dword ptr [edi + 0x84] */ 11071 PUSH32(esp, ecx); /* 0x36114BE4: push ecx */ 11072 PUSH32(esp, 0x14u); /* 0x36114BE5: push 0x14 */ 11073 ecx = ebx; /* 0x36114BE7: mov ecx, ebx */ 11074 RECOMP_ICALL(esi); /* 0x36114BE9: call esi */ 11075 RECOMP_FLAGS_IN(); 11076 PUSH32(esp, 0x220u); /* 0x36114BEB: push 0x220 */ 11077 RECOMP_ICALL(0x3615FD6Au); /* 0x36114BF0: call 0x3615fd6a */ /* not lifted */ 11078 RECOMP_FLAGS_IN(); 11079 esi = eax; /* 0x36114BF5: mov esi, eax */ 11080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11081 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11082 esp = esp + 4; /* 0x36114BF7: add esp, 4 */ 11083 _flag_k = FK_ADD; 11084 MEM32(ebp + (-0x20)) = esi; /* 0x36114BFA: mov dword ptr [ebp - 0x20], esi */ 11085 /* test esi, esi */ /* 0x36114BFD: test esi, esi */ 11086 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11087 _cf = 0; 11088 _flag_k = FK_TEST; 11089 MEM32(ebp + (-0x4)) = 5; /* 0x36114BFF: mov dword ptr [ebp - 4], 5 */ 11090 if (TEST_Z(_flag_a, _flag_b)) goto L_36114C4D; /* 0x36114C06: je 0x36114c4d */ 11091 L_36114C08: 11092 PUSH32(esp, ebx); /* 0x36114C08: push ebx */ 11093 PUSH32(esp, 0); /* 0x36114C09: push 0 */ 11094 ecx = esi; /* 0x36114C0B: mov ecx, esi */ 11095 RECOMP_ICALL(MEM32(0x3616F5FC)); /* 0x36114C0D: call dword ptr [0x3616f5fc] */ 11096 RECOMP_FLAGS_IN(); 11097 MEM32(esi) = 0x36175634u; /* 0x36114C13: mov dword ptr [esi], 0x36175634 */ 11098 MEM32(esi + 0x8) = 0x36175624u; /* 0x36114C19: mov dword ptr [esi + 8], 0x36175624 */ 11099 MEM32(esi + 0x20) = 0x36175614u; /* 0x36114C20: mov dword ptr [esi + 0x20], 0x36175614 */ 11100 MEM32(esi + 0x38) = 0x36175604u; /* 0x36114C27: mov dword ptr [esi + 0x38], 0x36175604 */ 11101 MEM32(esi + 0x50) = 0x361755F4u; /* 0x36114C2E: mov dword ptr [esi + 0x50], 0x361755f4 */ 11102 MEM32(esi + 0x138) = 0x361755E4u; /* 0x36114C35: mov dword ptr [esi + 0x138], 0x361755e4 */ 11103 MEM32(esi + 0x150) = 0x361755D4u; /* 0x36114C3F: mov dword ptr [esi + 0x150], 0x361755d4 */ 11104 ecx = esi; /* 0x36114C49: mov ecx, esi */ 11105 goto L_36114C4F; /* 0x36114C4B: jmp 0x36114c4f */ 11106 L_36114C4D: 11107 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11108 ecx = 0; /* 0x36114C4D: xor ecx, ecx */ 11109 _cf = 0; 11110 _flag_k = FK_TEST; 11111 L_36114C4F: 11112 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36114C4F: mov dword ptr [ebp - 4], 0xffffffff */ 11113 MEM32(edi + 0x28) = ecx; /* 0x36114C56: mov dword ptr [edi + 0x28], ecx */ 11114 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36114C59: call dword ptr [0x3616f5f8] */ 11115 RECOMP_FLAGS_IN(); 11116 eax = MEM32(edi + 0x7C); /* 0x36114C5F: mov eax, dword ptr [edi + 0x7c] */ 11117 ecx = MEM32(edi + 0x28); /* 0x36114C62: mov ecx, dword ptr [edi + 0x28] */ 11118 MEM32(ecx + 0x1FC) = eax; /* 0x36114C65: mov dword ptr [ecx + 0x1fc], eax */ 11119 fp_push(*(float*)&MEM32(edi + 0x6C)); /* 0x36114C6B: fld dword ptr [edi + 0x6c] */ 11120 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114C6E: fmul dword ptr [0x36174f7c] */ 11121 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114C74: fstp dword ptr [ebp - 0x20] */ 11122 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114C77: fld dword ptr [ebp - 0x20] */ 11123 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114C7A: fsub qword ptr [0x361755c8] */ 11124 MEM32(ebp + (-0x1C)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114C80: fistp dword ptr [ebp - 0x1c] */ 11125 fp_push(*(float*)&MEM32(edi + 0x70)); /* 0x36114C83: fld dword ptr [edi + 0x70] */ 11126 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114C86: fmul dword ptr [0x36174f7c] */ 11127 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114C8C: fstp dword ptr [ebp - 0x20] */ 11128 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114C8F: fld dword ptr [ebp - 0x20] */ 11129 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114C92: fsub qword ptr [0x361755c8] */ 11130 MEM32(ebp + (-0x18)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114C98: fistp dword ptr [ebp - 0x18] */ 11131 fp_push(*(float*)&MEM32(edi + 0x74)); /* 0x36114C9B: fld dword ptr [edi + 0x74] */ 11132 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114C9E: fmul dword ptr [0x36174f7c] */ 11133 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114CA4: fstp dword ptr [ebp - 0x20] */ 11134 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114CA7: fld dword ptr [ebp - 0x20] */ 11135 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114CAA: fsub qword ptr [0x361755c8] */ 11136 MEM32(ebp + (-0x14)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114CB0: fistp dword ptr [ebp - 0x14] */ 11137 fp_push(*(float*)&MEM32(edi + 0x78)); /* 0x36114CB3: fld dword ptr [edi + 0x78] */ 11138 _st[0] *= (double)*(float*)ADDR(0x36174F7C); /* 0x36114CB6: fmul dword ptr [0x36174f7c] */ 11139 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x36114CBC: fstp dword ptr [ebp - 0x20] */ 11140 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36114CBF: fld dword ptr [ebp - 0x20] */ 11141 _st[0] -= *(double*)ADDR(0x361755C8); /* 0x36114CC2: fsub qword ptr [0x361755c8] */ 11142 MEM32(ebp + (-0x10)) = (uint32_t)(int32_t)fp_to_int(fp_pop()); /* 0x36114CC8: fistp dword ptr [ebp - 0x10] */ 11143 eax = MEM32(ebp + (-0x1C)); /* 0x36114CCB: mov eax, dword ptr [ebp - 0x1c] */ 11144 ebx = MEM32(ebp + (-0x18)); /* 0x36114CCE: mov ebx, dword ptr [ebp - 0x18] */ 11145 ecx = MEM32(edi + 0x28); /* 0x36114CD1: mov ecx, dword ptr [edi + 0x28] */ 11146 edx = MEM32(ecx); /* 0x36114CD4: mov edx, dword ptr [ecx] */ 11147 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x36114CD6: shl eax, 8 */ 11148 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11149 eax = eax << 8u; /* 0x36114CD6: shl eax, 8 */ 11150 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 11151 eax = eax | ebx; /* 0x36114CD9: or eax, ebx */ 11152 _cf = 0; 11153 _flag_k = FK_TEST; 11154 ebx = MEM32(ebp + (-0x14)); /* 0x36114CDB: mov ebx, dword ptr [ebp - 0x14] */ 11155 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x36114CDE: shl eax, 8 */ 11156 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11157 eax = eax << 8u; /* 0x36114CDE: shl eax, 8 */ 11158 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 11159 eax = eax | ebx; /* 0x36114CE1: or eax, ebx */ 11160 _cf = 0; 11161 _flag_k = FK_TEST; 11162 ebx = MEM32(ebp + (-0x10)); /* 0x36114CE3: mov ebx, dword ptr [ebp - 0x10] */ 11163 if (8u) _cf = (((eax) >> 24) & 1u); /* 0x36114CE6: shl eax, 8 */ 11164 if (8u) { _flag_a = recomp_flags_pack((eax << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11165 eax = eax << 8u; /* 0x36114CE6: shl eax, 8 */ 11166 _flag_a = (uint32_t)((eax | ebx)); _flag_b = (uint32_t)((eax | ebx)); 11167 eax = eax | ebx; /* 0x36114CE9: or eax, ebx */ 11168 _cf = 0; 11169 _flag_k = FK_TEST; 11170 PUSH32(esp, eax); /* 0x36114CEB: push eax */ 11171 RECOMP_ICALL(MEM32(edx + 0x50)); /* 0x36114CEC: call dword ptr [edx + 0x50] */ 11172 RECOMP_FLAGS_IN(); 11173 L_36114CEF: 11174 eax = MEM32(edi + 0x88); /* 0x36114CEF: mov eax, dword ptr [edi + 0x88] */ 11175 /* test eax, eax */ /* 0x36114CF5: test eax, eax */ 11176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11177 _cf = 0; 11178 _flag_k = FK_TEST; 11179 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DAC; /* 0x36114CF7: je 0x36114dac */ 11180 L_36114CFD: 11181 PUSH32(esp, 0x208u); /* 0x36114CFD: push 0x208 */ 11182 RECOMP_ICALL(0x3615FD6Au); /* 0x36114D02: call 0x3615fd6a */ /* not lifted */ 11183 RECOMP_FLAGS_IN(); 11184 esi = eax; /* 0x36114D07: mov esi, eax */ 11185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11187 esp = esp + 4; /* 0x36114D09: add esp, 4 */ 11188 _flag_k = FK_ADD; 11189 MEM32(ebp + (-0x20)) = esi; /* 0x36114D0C: mov dword ptr [ebp - 0x20], esi */ 11190 /* test esi, esi */ /* 0x36114D0F: test esi, esi */ 11191 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11192 _cf = 0; 11193 _flag_k = FK_TEST; 11194 MEM32(ebp + (-0x4)) = 6; /* 0x36114D11: mov dword ptr [ebp - 4], 6 */ 11195 if (TEST_Z(_flag_a, _flag_b)) goto L_36114D6D; /* 0x36114D18: je 0x36114d6d */ 11196 L_36114D1A: 11197 PUSH32(esp, 0x10u); /* 0x36114D1A: push 0x10 */ 11198 PUSH32(esp, 0x40C90FDBu); /* 0x36114D1C: push 0x40c90fdb */ 11199 PUSH32(esp, 0); /* 0x36114D21: push 0 */ 11200 PUSH32(esp, 0); /* 0x36114D23: push 0 */ 11201 PUSH32(esp, 0); /* 0x36114D25: push 0 */ 11202 PUSH32(esp, 1); /* 0x36114D27: push 1 */ 11203 PUSH32(esp, 0); /* 0x36114D29: push 0 */ 11204 ecx = esi; /* 0x36114D2B: mov ecx, esi */ 11205 RECOMP_ICALL(MEM32(0x3616F7F8)); /* 0x36114D2D: call dword ptr [0x3616f7f8] */ 11206 RECOMP_FLAGS_IN(); 11207 MEM32(esi) = 0x36176C2Cu; /* 0x36114D33: mov dword ptr [esi], 0x36176c2c */ 11208 MEM32(esi + 0x8) = 0x36176C1Cu; /* 0x36114D39: mov dword ptr [esi + 8], 0x36176c1c */ 11209 MEM32(esi + 0x20) = 0x36176C0Cu; /* 0x36114D40: mov dword ptr [esi + 0x20], 0x36176c0c */ 11210 MEM32(esi + 0x38) = 0x36176BFCu; /* 0x36114D47: mov dword ptr [esi + 0x38], 0x36176bfc */ 11211 MEM32(esi + 0x50) = 0x36176BECu; /* 0x36114D4E: mov dword ptr [esi + 0x50], 0x36176bec */ 11212 MEM32(esi + 0x138) = 0x36176BDCu; /* 0x36114D55: mov dword ptr [esi + 0x138], 0x36176bdc */ 11213 MEM32(esi + 0x150) = 0x36176BCCu; /* 0x36114D5F: mov dword ptr [esi + 0x150], 0x36176bcc */ 11214 ecx = esi; /* 0x36114D69: mov ecx, esi */ 11215 goto L_36114D6F; /* 0x36114D6B: jmp 0x36114d6f */ 11216 L_36114D6D: 11217 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11218 ecx = 0; /* 0x36114D6D: xor ecx, ecx */ 11219 _cf = 0; 11220 _flag_k = FK_TEST; 11221 L_36114D6F: 11222 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36114D6F: mov dword ptr [ebp - 4], 0xffffffff */ 11223 MEM32(edi + 0x2C) = ecx; /* 0x36114D76: mov dword ptr [edi + 0x2c], ecx */ 11224 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36114D79: call dword ptr [0x3616f5f8] */ 11225 RECOMP_FLAGS_IN(); 11226 ecx = MEM32(edi + 0x2C); /* 0x36114D7F: mov ecx, dword ptr [edi + 0x2c] */ 11227 edx = MEM32(edi + 0x8C); /* 0x36114D82: mov edx, dword ptr [edi + 0x8c] */ 11228 MEM32(ecx + 0x1FC) = edx; /* 0x36114D88: mov dword ptr [ecx + 0x1fc], edx */ 11229 fp_push(*(float*)&MEM32(edi + 0x90)); /* 0x36114D8E: fld dword ptr [edi + 0x90] */ 11230 eax = MEM32(edi + 0x2C); /* 0x36114D94: mov eax, dword ptr [edi + 0x2c] */ 11231 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x200) = _v; } /* 0x36114D97: fstp dword ptr [eax + 0x200] */ 11232 fp_push(*(float*)&MEM32(edi + 0x94)); /* 0x36114D9D: fld dword ptr [edi + 0x94] */ 11233 ecx = MEM32(edi + 0x2C); /* 0x36114DA3: mov ecx, dword ptr [edi + 0x2c] */ 11234 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x204) = _v; } /* 0x36114DA6: fstp dword ptr [ecx + 0x204] */ 11235 L_36114DAC: 11236 ecx = MEM32(ebp + (-0xC)); /* 0x36114DAC: mov ecx, dword ptr [ebp - 0xc] */ 11237 edi = POP32_VAL(esp); /* 0x36114DAF: pop edi */ 11238 esi = POP32_VAL(esp); /* 0x36114DB0: pop esi */ 11239 ebx = POP32_VAL(esp); /* 0x36114DB1: pop ebx */ 11240 MEM32(FS_BASE + (0)) = ecx; /* 0x36114DB2: mov dword ptr fs:[0], ecx */ 11241 esp = ebp; /* 0x36114DB9: mov esp, ebp */ 11242 ebp = POP32_VAL(esp); /* 0x36114DBB: pop ebp */ 11243 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36114DBC: ret */ 11244 RECOMP_REGS_OUT(); 11245 } 11246 11247 void sub_36114DC0(void) { 11248 int _fpu_cmp = 0; 11249 uint32_t _cf = 0; 11250 int _df = 1; 11251 uint32_t _flag_k = FK_NONE; 11252 uint32_t _flag_a = 0, _flag_b = 0; 11253 uint32_t _itail_tgt = 0; 11254 RECOMP_REGS_LOCALS 11255 RECOMP_ENTER(0x36114DC0u); 11256 11257 L_36114DC0: 11258 PUSH32(esp, ebp); /* 0x36114DC0: push ebp */ 11259 ebp = esp; /* 0x36114DC1: mov ebp, esp */ 11260 PUSH32(esp, esi); /* 0x36114DC3: push esi */ 11261 esi = ecx; /* 0x36114DC4: mov esi, ecx */ 11262 RECOMP_ICALL(MEM32(0x3616F7FC)); /* 0x36114DC6: call dword ptr [0x3616f7fc] */ 11263 RECOMP_FLAGS_IN(); 11264 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114DCC: test byte ptr [ebp + 8], 1 */ 11265 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11266 _cf = 0; 11267 _flag_k = FK_NARROW(FK_TEST, 24); 11268 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DDB; /* 0x36114DD0: je 0x36114ddb */ 11269 L_36114DD2: 11270 PUSH32(esp, esi); /* 0x36114DD2: push esi */ 11271 RECOMP_ICALL(0x3615FCC4u); /* 0x36114DD3: call 0x3615fcc4 */ /* not lifted */ 11272 RECOMP_FLAGS_IN(); 11273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11275 esp = esp + 4; /* 0x36114DD8: add esp, 4 */ 11276 _flag_k = FK_ADD; 11277 L_36114DDB: 11278 eax = esi; /* 0x36114DDB: mov eax, esi */ 11279 esi = POP32_VAL(esp); /* 0x36114DDD: pop esi */ 11280 ebp = POP32_VAL(esp); /* 0x36114DDE: pop ebp */ 11281 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114DDF: ret 4 */ 11282 RECOMP_REGS_OUT(); 11283 } 11284 11285 void sub_36114DF0(void) { 11286 int _fpu_cmp = 0; 11287 uint32_t _cf = 0; 11288 int _df = 1; 11289 uint32_t _flag_k = FK_NONE; 11290 uint32_t _flag_a = 0, _flag_b = 0; 11291 uint32_t _itail_tgt = 0; 11292 RECOMP_REGS_LOCALS 11293 RECOMP_ENTER(0x36114DF0u); 11294 11295 goto L_36114DF0; 11296 L_36114DC0: 11297 PUSH32(esp, ebp); /* 0x36114DC0: push ebp */ 11298 ebp = esp; /* 0x36114DC1: mov ebp, esp */ 11299 PUSH32(esp, esi); /* 0x36114DC3: push esi */ 11300 esi = ecx; /* 0x36114DC4: mov esi, ecx */ 11301 RECOMP_ICALL(MEM32(0x3616F7FC)); /* 0x36114DC6: call dword ptr [0x3616f7fc] */ 11302 RECOMP_FLAGS_IN(); 11303 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114DCC: test byte ptr [ebp + 8], 1 */ 11304 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11305 _cf = 0; 11306 _flag_k = FK_NARROW(FK_TEST, 24); 11307 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DDB; /* 0x36114DD0: je 0x36114ddb */ 11308 L_36114DD2: 11309 PUSH32(esp, esi); /* 0x36114DD2: push esi */ 11310 RECOMP_ICALL(0x3615FCC4u); /* 0x36114DD3: call 0x3615fcc4 */ /* not lifted */ 11311 RECOMP_FLAGS_IN(); 11312 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11314 esp = esp + 4; /* 0x36114DD8: add esp, 4 */ 11315 _flag_k = FK_ADD; 11316 L_36114DDB: 11317 eax = esi; /* 0x36114DDB: mov eax, esi */ 11318 esi = POP32_VAL(esp); /* 0x36114DDD: pop esi */ 11319 ebp = POP32_VAL(esp); /* 0x36114DDE: pop ebp */ 11320 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114DDF: ret 4 */ 11321 L_36114DF0: 11322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11324 ecx = ecx - 8; /* 0x36114DF0: sub ecx, 8 */ 11325 _flag_k = FK_CMP; 11326 RECOMP_BACKEDGE(); 11327 goto L_36114DC0; /* 0x36114DF3: jmp 0x36114dc0 */ 11328 { RECOMP_REGS_OUT(); return; } /* end of function */ 11329 RECOMP_REGS_OUT(); 11330 } 11331 11332 void sub_36114E00(void) { 11333 int _fpu_cmp = 0; 11334 uint32_t _cf = 0; 11335 int _df = 1; 11336 uint32_t _flag_k = FK_NONE; 11337 uint32_t _flag_a = 0, _flag_b = 0; 11338 uint32_t _itail_tgt = 0; 11339 RECOMP_REGS_LOCALS 11340 RECOMP_ENTER(0x36114E00u); 11341 11342 goto L_36114E00; 11343 L_36114DC0: 11344 PUSH32(esp, ebp); /* 0x36114DC0: push ebp */ 11345 ebp = esp; /* 0x36114DC1: mov ebp, esp */ 11346 PUSH32(esp, esi); /* 0x36114DC3: push esi */ 11347 esi = ecx; /* 0x36114DC4: mov esi, ecx */ 11348 RECOMP_ICALL(MEM32(0x3616F7FC)); /* 0x36114DC6: call dword ptr [0x3616f7fc] */ 11349 RECOMP_FLAGS_IN(); 11350 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114DCC: test byte ptr [ebp + 8], 1 */ 11351 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11352 _cf = 0; 11353 _flag_k = FK_NARROW(FK_TEST, 24); 11354 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DDB; /* 0x36114DD0: je 0x36114ddb */ 11355 L_36114DD2: 11356 PUSH32(esp, esi); /* 0x36114DD2: push esi */ 11357 RECOMP_ICALL(0x3615FCC4u); /* 0x36114DD3: call 0x3615fcc4 */ /* not lifted */ 11358 RECOMP_FLAGS_IN(); 11359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11361 esp = esp + 4; /* 0x36114DD8: add esp, 4 */ 11362 _flag_k = FK_ADD; 11363 L_36114DDB: 11364 eax = esi; /* 0x36114DDB: mov eax, esi */ 11365 esi = POP32_VAL(esp); /* 0x36114DDD: pop esi */ 11366 ebp = POP32_VAL(esp); /* 0x36114DDE: pop ebp */ 11367 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114DDF: ret 4 */ 11368 L_36114E00: 11369 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 11370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11371 ecx = ecx - 0x20u; /* 0x36114E00: sub ecx, 0x20 */ 11372 _flag_k = FK_CMP; 11373 RECOMP_BACKEDGE(); 11374 goto L_36114DC0; /* 0x36114E03: jmp 0x36114dc0 */ 11375 { RECOMP_REGS_OUT(); return; } /* end of function */ 11376 RECOMP_REGS_OUT(); 11377 } 11378 11379 void sub_36114E10(void) { 11380 int _fpu_cmp = 0; 11381 uint32_t _cf = 0; 11382 int _df = 1; 11383 uint32_t _flag_k = FK_NONE; 11384 uint32_t _flag_a = 0, _flag_b = 0; 11385 uint32_t _itail_tgt = 0; 11386 RECOMP_REGS_LOCALS 11387 RECOMP_ENTER(0x36114E10u); 11388 11389 goto L_36114E10; 11390 L_36114DC0: 11391 PUSH32(esp, ebp); /* 0x36114DC0: push ebp */ 11392 ebp = esp; /* 0x36114DC1: mov ebp, esp */ 11393 PUSH32(esp, esi); /* 0x36114DC3: push esi */ 11394 esi = ecx; /* 0x36114DC4: mov esi, ecx */ 11395 RECOMP_ICALL(MEM32(0x3616F7FC)); /* 0x36114DC6: call dword ptr [0x3616f7fc] */ 11396 RECOMP_FLAGS_IN(); 11397 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114DCC: test byte ptr [ebp + 8], 1 */ 11398 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11399 _cf = 0; 11400 _flag_k = FK_NARROW(FK_TEST, 24); 11401 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DDB; /* 0x36114DD0: je 0x36114ddb */ 11402 L_36114DD2: 11403 PUSH32(esp, esi); /* 0x36114DD2: push esi */ 11404 RECOMP_ICALL(0x3615FCC4u); /* 0x36114DD3: call 0x3615fcc4 */ /* not lifted */ 11405 RECOMP_FLAGS_IN(); 11406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11408 esp = esp + 4; /* 0x36114DD8: add esp, 4 */ 11409 _flag_k = FK_ADD; 11410 L_36114DDB: 11411 eax = esi; /* 0x36114DDB: mov eax, esi */ 11412 esi = POP32_VAL(esp); /* 0x36114DDD: pop esi */ 11413 ebp = POP32_VAL(esp); /* 0x36114DDE: pop ebp */ 11414 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114DDF: ret 4 */ 11415 L_36114E10: 11416 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 11417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11418 ecx = ecx - 0x38u; /* 0x36114E10: sub ecx, 0x38 */ 11419 _flag_k = FK_CMP; 11420 RECOMP_BACKEDGE(); 11421 goto L_36114DC0; /* 0x36114E13: jmp 0x36114dc0 */ 11422 { RECOMP_REGS_OUT(); return; } /* end of function */ 11423 RECOMP_REGS_OUT(); 11424 } 11425 11426 void sub_36114E20(void) { 11427 int _fpu_cmp = 0; 11428 uint32_t _cf = 0; 11429 int _df = 1; 11430 uint32_t _flag_k = FK_NONE; 11431 uint32_t _flag_a = 0, _flag_b = 0; 11432 uint32_t _itail_tgt = 0; 11433 RECOMP_REGS_LOCALS 11434 RECOMP_ENTER(0x36114E20u); 11435 11436 goto L_36114E20; 11437 L_36114DC0: 11438 PUSH32(esp, ebp); /* 0x36114DC0: push ebp */ 11439 ebp = esp; /* 0x36114DC1: mov ebp, esp */ 11440 PUSH32(esp, esi); /* 0x36114DC3: push esi */ 11441 esi = ecx; /* 0x36114DC4: mov esi, ecx */ 11442 RECOMP_ICALL(MEM32(0x3616F7FC)); /* 0x36114DC6: call dword ptr [0x3616f7fc] */ 11443 RECOMP_FLAGS_IN(); 11444 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114DCC: test byte ptr [ebp + 8], 1 */ 11445 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11446 _cf = 0; 11447 _flag_k = FK_NARROW(FK_TEST, 24); 11448 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DDB; /* 0x36114DD0: je 0x36114ddb */ 11449 L_36114DD2: 11450 PUSH32(esp, esi); /* 0x36114DD2: push esi */ 11451 RECOMP_ICALL(0x3615FCC4u); /* 0x36114DD3: call 0x3615fcc4 */ /* not lifted */ 11452 RECOMP_FLAGS_IN(); 11453 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11455 esp = esp + 4; /* 0x36114DD8: add esp, 4 */ 11456 _flag_k = FK_ADD; 11457 L_36114DDB: 11458 eax = esi; /* 0x36114DDB: mov eax, esi */ 11459 esi = POP32_VAL(esp); /* 0x36114DDD: pop esi */ 11460 ebp = POP32_VAL(esp); /* 0x36114DDE: pop ebp */ 11461 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114DDF: ret 4 */ 11462 L_36114E20: 11463 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 11464 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11465 ecx = ecx - 0x50u; /* 0x36114E20: sub ecx, 0x50 */ 11466 _flag_k = FK_CMP; 11467 RECOMP_BACKEDGE(); 11468 goto L_36114DC0; /* 0x36114E23: jmp 0x36114dc0 */ 11469 { RECOMP_REGS_OUT(); return; } /* end of function */ 11470 RECOMP_REGS_OUT(); 11471 } 11472 11473 void sub_36114E30(void) { 11474 int _fpu_cmp = 0; 11475 uint32_t _cf = 0; 11476 int _df = 1; 11477 uint32_t _flag_k = FK_NONE; 11478 uint32_t _flag_a = 0, _flag_b = 0; 11479 uint32_t _itail_tgt = 0; 11480 RECOMP_REGS_LOCALS 11481 RECOMP_ENTER(0x36114E30u); 11482 11483 goto L_36114E30; 11484 L_36114DC0: 11485 PUSH32(esp, ebp); /* 0x36114DC0: push ebp */ 11486 ebp = esp; /* 0x36114DC1: mov ebp, esp */ 11487 PUSH32(esp, esi); /* 0x36114DC3: push esi */ 11488 esi = ecx; /* 0x36114DC4: mov esi, ecx */ 11489 RECOMP_ICALL(MEM32(0x3616F7FC)); /* 0x36114DC6: call dword ptr [0x3616f7fc] */ 11490 RECOMP_FLAGS_IN(); 11491 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114DCC: test byte ptr [ebp + 8], 1 */ 11492 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11493 _cf = 0; 11494 _flag_k = FK_NARROW(FK_TEST, 24); 11495 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DDB; /* 0x36114DD0: je 0x36114ddb */ 11496 L_36114DD2: 11497 PUSH32(esp, esi); /* 0x36114DD2: push esi */ 11498 RECOMP_ICALL(0x3615FCC4u); /* 0x36114DD3: call 0x3615fcc4 */ /* not lifted */ 11499 RECOMP_FLAGS_IN(); 11500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11502 esp = esp + 4; /* 0x36114DD8: add esp, 4 */ 11503 _flag_k = FK_ADD; 11504 L_36114DDB: 11505 eax = esi; /* 0x36114DDB: mov eax, esi */ 11506 esi = POP32_VAL(esp); /* 0x36114DDD: pop esi */ 11507 ebp = POP32_VAL(esp); /* 0x36114DDE: pop ebp */ 11508 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114DDF: ret 4 */ 11509 L_36114E30: 11510 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 11511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11512 ecx = ecx - 0x138u; /* 0x36114E30: sub ecx, 0x138 */ 11513 _flag_k = FK_CMP; 11514 RECOMP_BACKEDGE(); 11515 goto L_36114DC0; /* 0x36114E36: jmp 0x36114dc0 */ 11516 { RECOMP_REGS_OUT(); return; } /* end of function */ 11517 RECOMP_REGS_OUT(); 11518 } 11519 11520 void sub_36114E40(void) { 11521 int _fpu_cmp = 0; 11522 uint32_t _cf = 0; 11523 int _df = 1; 11524 uint32_t _flag_k = FK_NONE; 11525 uint32_t _flag_a = 0, _flag_b = 0; 11526 uint32_t _itail_tgt = 0; 11527 RECOMP_REGS_LOCALS 11528 RECOMP_ENTER(0x36114E40u); 11529 11530 goto L_36114E40; 11531 L_36114DC0: 11532 PUSH32(esp, ebp); /* 0x36114DC0: push ebp */ 11533 ebp = esp; /* 0x36114DC1: mov ebp, esp */ 11534 PUSH32(esp, esi); /* 0x36114DC3: push esi */ 11535 esi = ecx; /* 0x36114DC4: mov esi, ecx */ 11536 RECOMP_ICALL(MEM32(0x3616F7FC)); /* 0x36114DC6: call dword ptr [0x3616f7fc] */ 11537 RECOMP_FLAGS_IN(); 11538 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114DCC: test byte ptr [ebp + 8], 1 */ 11539 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11540 _cf = 0; 11541 _flag_k = FK_NARROW(FK_TEST, 24); 11542 if (TEST_Z(_flag_a, _flag_b)) goto L_36114DDB; /* 0x36114DD0: je 0x36114ddb */ 11543 L_36114DD2: 11544 PUSH32(esp, esi); /* 0x36114DD2: push esi */ 11545 RECOMP_ICALL(0x3615FCC4u); /* 0x36114DD3: call 0x3615fcc4 */ /* not lifted */ 11546 RECOMP_FLAGS_IN(); 11547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11549 esp = esp + 4; /* 0x36114DD8: add esp, 4 */ 11550 _flag_k = FK_ADD; 11551 L_36114DDB: 11552 eax = esi; /* 0x36114DDB: mov eax, esi */ 11553 esi = POP32_VAL(esp); /* 0x36114DDD: pop esi */ 11554 ebp = POP32_VAL(esp); /* 0x36114DDE: pop ebp */ 11555 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114DDF: ret 4 */ 11556 L_36114E40: 11557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 11558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11559 ecx = ecx - 0x150u; /* 0x36114E40: sub ecx, 0x150 */ 11560 _flag_k = FK_CMP; 11561 RECOMP_BACKEDGE(); 11562 goto L_36114DC0; /* 0x36114E46: jmp 0x36114dc0 */ 11563 { RECOMP_REGS_OUT(); return; } /* end of function */ 11564 RECOMP_REGS_OUT(); 11565 } 11566 11567 void sub_36114E50(void) { 11568 int _fpu_cmp = 0; 11569 uint32_t _cf = 0; 11570 int _df = 1; 11571 uint32_t _flag_k = FK_NONE; 11572 uint32_t _flag_a = 0, _flag_b = 0; 11573 uint32_t _itail_tgt = 0; 11574 RECOMP_REGS_LOCALS 11575 RECOMP_ENTER(0x36114E50u); 11576 11577 L_36114E50: 11578 PUSH32(esp, ebp); /* 0x36114E50: push ebp */ 11579 ebp = esp; /* 0x36114E51: mov ebp, esp */ 11580 PUSH32(esp, 0xFFFFFFFFu); /* 0x36114E53: push -1 */ 11581 PUSH32(esp, 0x3616AF54u); /* 0x36114E55: push 0x3616af54 */ 11582 eax = MEM32(FS_BASE + (0)); /* 0x36114E5A: mov eax, dword ptr fs:[0] */ 11583 PUSH32(esp, eax); /* 0x36114E60: push eax */ 11584 MEM32(FS_BASE + (0)) = esp; /* 0x36114E61: mov dword ptr fs:[0], esp */ 11585 PUSH32(esp, ecx); /* 0x36114E68: push ecx */ 11586 eax = MEM32(ebp + 0x8); /* 0x36114E69: mov eax, dword ptr [ebp + 8] */ 11587 PUSH32(esp, esi); /* 0x36114E6C: push esi */ 11588 esi = ecx; /* 0x36114E6D: mov esi, ecx */ 11589 PUSH32(esp, eax); /* 0x36114E6F: push eax */ 11590 MEM32(ebp + (-0x10)) = esi; /* 0x36114E70: mov dword ptr [ebp - 0x10], esi */ 11591 RECOMP_ICALL(0x360FC270u); /* 0x36114E73: call 0x360fc270 */ /* not lifted */ 11592 RECOMP_FLAGS_IN(); 11593 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11594 eax = 0; /* 0x36114E78: xor eax, eax */ 11595 _cf = 0; 11596 _flag_k = FK_TEST; 11597 MEM32(esi + 0x24) = eax; /* 0x36114E7A: mov dword ptr [esi + 0x24], eax */ 11598 MEM32(esi + 0x28) = eax; /* 0x36114E7D: mov dword ptr [esi + 0x28], eax */ 11599 MEM32(esi + 0x2C) = eax; /* 0x36114E80: mov dword ptr [esi + 0x2c], eax */ 11600 ecx = 0x3F800000u; /* 0x36114E83: mov ecx, 0x3f800000 */ 11601 MEM32(ebp + (-0x4)) = eax; /* 0x36114E88: mov dword ptr [ebp - 4], eax */ 11602 MEM32(esi + 0x34) = ecx; /* 0x36114E8B: mov dword ptr [esi + 0x34], ecx */ 11603 MEM32(esi + 0x38) = eax; /* 0x36114E8E: mov dword ptr [esi + 0x38], eax */ 11604 MEM32(esi + 0x3C) = eax; /* 0x36114E91: mov dword ptr [esi + 0x3c], eax */ 11605 MEM32(esi + 0x40) = eax; /* 0x36114E94: mov dword ptr [esi + 0x40], eax */ 11606 MEM32(esi + 0x44) = eax; /* 0x36114E97: mov dword ptr [esi + 0x44], eax */ 11607 MEM32(esi + 0x48) = ecx; /* 0x36114E9A: mov dword ptr [esi + 0x48], ecx */ 11608 MEM32(esi + 0x4C) = eax; /* 0x36114E9D: mov dword ptr [esi + 0x4c], eax */ 11609 MEM32(esi + 0x50) = eax; /* 0x36114EA0: mov dword ptr [esi + 0x50], eax */ 11610 MEM32(esi + 0x54) = eax; /* 0x36114EA3: mov dword ptr [esi + 0x54], eax */ 11611 MEM32(esi + 0x58) = eax; /* 0x36114EA6: mov dword ptr [esi + 0x58], eax */ 11612 MEM32(esi + 0x5C) = ecx; /* 0x36114EA9: mov dword ptr [esi + 0x5c], ecx */ 11613 MEM32(esi + 0x60) = eax; /* 0x36114EAC: mov dword ptr [esi + 0x60], eax */ 11614 MEM32(esi + 0x64) = eax; /* 0x36114EAF: mov dword ptr [esi + 0x64], eax */ 11615 MEM32(esi + 0x68) = eax; /* 0x36114EB2: mov dword ptr [esi + 0x68], eax */ 11616 MEM32(esi + 0x6C) = eax; /* 0x36114EB5: mov dword ptr [esi + 0x6c], eax */ 11617 MEM32(esi + 0x70) = ecx; /* 0x36114EB8: mov dword ptr [esi + 0x70], ecx */ 11618 ecx = esi; /* 0x36114EBB: mov ecx, esi */ 11619 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36114EBD: mov byte ptr [ebp - 4], 1 */ 11620 MEM32(esi) = 0x36176C84u; /* 0x36114EC1: mov dword ptr [esi], 0x36176c84 */ 11621 RECOMP_ICALL(0x36115490u); /* 0x36114EC7: call 0x36115490 */ /* not lifted */ 11622 RECOMP_FLAGS_IN(); 11623 ecx = MEM32(ebp + 0xC); /* 0x36114ECC: mov ecx, dword ptr [ebp + 0xc] */ 11624 edx = MEM32(ecx); /* 0x36114ECF: mov edx, dword ptr [ecx] */ 11625 MEM32(esi + 0x24) = edx; /* 0x36114ED1: mov dword ptr [esi + 0x24], edx */ 11626 eax = MEM32(ecx + 0x4); /* 0x36114ED4: mov eax, dword ptr [ecx + 4] */ 11627 MEM32(esi + 0x28) = eax; /* 0x36114ED7: mov dword ptr [esi + 0x28], eax */ 11628 ecx = MEM32(ecx + 0x8); /* 0x36114EDA: mov ecx, dword ptr [ecx + 8] */ 11629 MEM32(esi + 0x2C) = ecx; /* 0x36114EDD: mov dword ptr [esi + 0x2c], ecx */ 11630 ecx = esi; /* 0x36114EE0: mov ecx, esi */ 11631 RECOMP_ICALL(0x361154C0u); /* 0x36114EE2: call 0x361154c0 */ /* not lifted */ 11632 RECOMP_FLAGS_IN(); 11633 ecx = MEM32(ebp + (-0xC)); /* 0x36114EE7: mov ecx, dword ptr [ebp - 0xc] */ 11634 eax = esi; /* 0x36114EEA: mov eax, esi */ 11635 esi = POP32_VAL(esp); /* 0x36114EEC: pop esi */ 11636 MEM32(FS_BASE + (0)) = ecx; /* 0x36114EED: mov dword ptr fs:[0], ecx */ 11637 esp = ebp; /* 0x36114EF4: mov esp, ebp */ 11638 ebp = POP32_VAL(esp); /* 0x36114EF6: pop ebp */ 11639 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36114EF7: ret 8 */ 11640 RECOMP_REGS_OUT(); 11641 } 11642 11643 void sub_36114F00(void) { 11644 int _fpu_cmp = 0; 11645 uint32_t _cf = 0; 11646 int _df = 1; 11647 uint32_t _flag_k = FK_NONE; 11648 uint32_t _flag_a = 0, _flag_b = 0; 11649 uint32_t _itail_tgt = 0; 11650 RECOMP_REGS_LOCALS 11651 RECOMP_ENTER(0x36114F00u); 11652 11653 L_36114F00: 11654 PUSH32(esp, ebp); /* 0x36114F00: push ebp */ 11655 ebp = esp; /* 0x36114F01: mov ebp, esp */ 11656 PUSH32(esp, esi); /* 0x36114F03: push esi */ 11657 esi = ecx; /* 0x36114F04: mov esi, ecx */ 11658 RECOMP_ICALL(0x361150A0u); /* 0x36114F06: call 0x361150a0 */ /* not lifted */ 11659 RECOMP_FLAGS_IN(); 11660 /* test MEM8(ebp + 0x8), 1 */ /* 0x36114F0B: test byte ptr [ebp + 8], 1 */ 11661 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11662 _cf = 0; 11663 _flag_k = FK_NARROW(FK_TEST, 24); 11664 if (TEST_Z(_flag_a, _flag_b)) goto L_36114F1A; /* 0x36114F0F: je 0x36114f1a */ 11665 L_36114F11: 11666 PUSH32(esp, esi); /* 0x36114F11: push esi */ 11667 RECOMP_ICALL(0x3615FCC4u); /* 0x36114F12: call 0x3615fcc4 */ /* not lifted */ 11668 RECOMP_FLAGS_IN(); 11669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11671 esp = esp + 4; /* 0x36114F17: add esp, 4 */ 11672 _flag_k = FK_ADD; 11673 L_36114F1A: 11674 eax = esi; /* 0x36114F1A: mov eax, esi */ 11675 esi = POP32_VAL(esp); /* 0x36114F1C: pop esi */ 11676 ebp = POP32_VAL(esp); /* 0x36114F1D: pop ebp */ 11677 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36114F1E: ret 4 */ 11678 RECOMP_REGS_OUT(); 11679 } 11680 11681 void sub_36114F30(void) { 11682 int _fpu_cmp = 0; 11683 uint32_t _cf = 0; 11684 int _df = 1; 11685 uint32_t _flag_k = FK_NONE; 11686 uint32_t _flag_a = 0, _flag_b = 0; 11687 uint32_t _itail_tgt = 0; 11688 RECOMP_REGS_LOCALS 11689 RECOMP_ENTER(0x36114F30u); 11690 11691 L_36114F30: 11692 PUSH32(esp, ebp); /* 0x36114F30: push ebp */ 11693 ebp = esp; /* 0x36114F31: mov ebp, esp */ 11694 PUSH32(esp, 0xFFFFFFFFu); /* 0x36114F33: push -1 */ 11695 PUSH32(esp, 0x3616AF74u); /* 0x36114F35: push 0x3616af74 */ 11696 eax = MEM32(FS_BASE + (0)); /* 0x36114F3A: mov eax, dword ptr fs:[0] */ 11697 PUSH32(esp, eax); /* 0x36114F40: push eax */ 11698 MEM32(FS_BASE + (0)) = esp; /* 0x36114F41: mov dword ptr fs:[0], esp */ 11699 PUSH32(esp, ecx); /* 0x36114F48: push ecx */ 11700 eax = MEM32(ebp + 0x8); /* 0x36114F49: mov eax, dword ptr [ebp + 8] */ 11701 PUSH32(esp, ebx); /* 0x36114F4C: push ebx */ 11702 PUSH32(esp, esi); /* 0x36114F4D: push esi */ 11703 PUSH32(esp, edi); /* 0x36114F4E: push edi */ 11704 ebx = ecx; /* 0x36114F4F: mov ebx, ecx */ 11705 PUSH32(esp, eax); /* 0x36114F51: push eax */ 11706 MEM32(ebp + (-0x10)) = ebx; /* 0x36114F52: mov dword ptr [ebp - 0x10], ebx */ 11707 RECOMP_ICALL(0x360FC270u); /* 0x36114F55: call 0x360fc270 */ /* not lifted */ 11708 RECOMP_FLAGS_IN(); 11709 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11710 eax = 0; /* 0x36114F5A: xor eax, eax */ 11711 _cf = 0; 11712 _flag_k = FK_TEST; 11713 edi = ebx + 0x34; /* 0x36114F5C: lea edi, [ebx + 0x34] */ 11714 MEM32(ebx + 0x24) = eax; /* 0x36114F5F: mov dword ptr [ebx + 0x24], eax */ 11715 MEM32(ebx + 0x28) = eax; /* 0x36114F62: mov dword ptr [ebx + 0x28], eax */ 11716 MEM32(ebx + 0x2C) = eax; /* 0x36114F65: mov dword ptr [ebx + 0x2c], eax */ 11717 ecx = 0x3F800000u; /* 0x36114F68: mov ecx, 0x3f800000 */ 11718 MEM32(ebp + (-0x4)) = eax; /* 0x36114F6D: mov dword ptr [ebp - 4], eax */ 11719 MEM32(edi) = ecx; /* 0x36114F70: mov dword ptr [edi], ecx */ 11720 MEM32(edi + 0x4) = eax; /* 0x36114F72: mov dword ptr [edi + 4], eax */ 11721 MEM32(edi + 0x8) = eax; /* 0x36114F75: mov dword ptr [edi + 8], eax */ 11722 MEM32(edi + 0xC) = eax; /* 0x36114F78: mov dword ptr [edi + 0xc], eax */ 11723 MEM32(edi + 0x10) = eax; /* 0x36114F7B: mov dword ptr [edi + 0x10], eax */ 11724 MEM32(edi + 0x14) = ecx; /* 0x36114F7E: mov dword ptr [edi + 0x14], ecx */ 11725 MEM32(edi + 0x18) = eax; /* 0x36114F81: mov dword ptr [edi + 0x18], eax */ 11726 MEM32(edi + 0x1C) = eax; /* 0x36114F84: mov dword ptr [edi + 0x1c], eax */ 11727 MEM32(edi + 0x20) = eax; /* 0x36114F87: mov dword ptr [edi + 0x20], eax */ 11728 MEM32(edi + 0x24) = eax; /* 0x36114F8A: mov dword ptr [edi + 0x24], eax */ 11729 MEM32(edi + 0x28) = ecx; /* 0x36114F8D: mov dword ptr [edi + 0x28], ecx */ 11730 MEM32(edi + 0x2C) = eax; /* 0x36114F90: mov dword ptr [edi + 0x2c], eax */ 11731 MEM32(edi + 0x30) = eax; /* 0x36114F93: mov dword ptr [edi + 0x30], eax */ 11732 MEM32(edi + 0x34) = eax; /* 0x36114F96: mov dword ptr [edi + 0x34], eax */ 11733 MEM32(edi + 0x38) = eax; /* 0x36114F99: mov dword ptr [edi + 0x38], eax */ 11734 MEM32(edi + 0x3C) = ecx; /* 0x36114F9C: mov dword ptr [edi + 0x3c], ecx */ 11735 ecx = ebx; /* 0x36114F9F: mov ecx, ebx */ 11736 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36114FA1: mov byte ptr [ebp - 4], 1 */ 11737 MEM32(ebx) = 0x36176C84u; /* 0x36114FA5: mov dword ptr [ebx], 0x36176c84 */ 11738 RECOMP_ICALL(0x36115490u); /* 0x36114FAB: call 0x36115490 */ /* not lifted */ 11739 RECOMP_FLAGS_IN(); 11740 ecx = MEM32(ebp + 0xC); /* 0x36114FB0: mov ecx, dword ptr [ebp + 0xc] */ 11741 edx = MEM32(ecx); /* 0x36114FB3: mov edx, dword ptr [ecx] */ 11742 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36114FB5: call dword ptr [edx + 8] */ 11743 RECOMP_FLAGS_IN(); 11744 esi = eax; /* 0x36114FB8: mov esi, eax */ 11745 ecx = 0x10u; /* 0x36114FBA: mov ecx, 0x10 */ 11746 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36114FBF: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 11747 ecx = MEM32(ebp + 0xC); /* 0x36114FC1: mov ecx, dword ptr [ebp + 0xc] */ 11748 eax = MEM32(ecx); /* 0x36114FC4: mov eax, dword ptr [ecx] */ 11749 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36114FC6: call dword ptr [eax + 8] */ 11750 RECOMP_FLAGS_IN(); 11751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 11752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11753 eax = eax + 0x30u; /* 0x36114FC9: add eax, 0x30 */ 11754 _flag_k = FK_ADD; 11755 ecx = MEM32(eax); /* 0x36114FCC: mov ecx, dword ptr [eax] */ 11756 MEM32(ebx + 0x24) = ecx; /* 0x36114FCE: mov dword ptr [ebx + 0x24], ecx */ 11757 edx = MEM32(eax + 0x4); /* 0x36114FD1: mov edx, dword ptr [eax + 4] */ 11758 MEM32(ebx + 0x28) = edx; /* 0x36114FD4: mov dword ptr [ebx + 0x28], edx */ 11759 eax = MEM32(eax + 0x8); /* 0x36114FD7: mov eax, dword ptr [eax + 8] */ 11760 ecx = ebx; /* 0x36114FDA: mov ecx, ebx */ 11761 MEM32(ebx + 0x2C) = eax; /* 0x36114FDC: mov dword ptr [ebx + 0x2c], eax */ 11762 RECOMP_ICALL(0x361154C0u); /* 0x36114FDF: call 0x361154c0 */ /* not lifted */ 11763 RECOMP_FLAGS_IN(); 11764 ecx = MEM32(ebp + (-0xC)); /* 0x36114FE4: mov ecx, dword ptr [ebp - 0xc] */ 11765 edi = POP32_VAL(esp); /* 0x36114FE7: pop edi */ 11766 esi = POP32_VAL(esp); /* 0x36114FE8: pop esi */ 11767 eax = ebx; /* 0x36114FE9: mov eax, ebx */ 11768 ebx = POP32_VAL(esp); /* 0x36114FEB: pop ebx */ 11769 MEM32(FS_BASE + (0)) = ecx; /* 0x36114FEC: mov dword ptr fs:[0], ecx */ 11770 esp = ebp; /* 0x36114FF3: mov esp, ebp */ 11771 ebp = POP32_VAL(esp); /* 0x36114FF5: pop ebp */ 11772 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36114FF6: ret 8 */ 11773 RECOMP_REGS_OUT(); 11774 } 11775 11776 void sub_36114F96(void) { 11777 int _fpu_cmp = 0; 11778 uint32_t _cf = 0; 11779 int _df = 1; 11780 uint32_t _flag_k = FK_NONE; 11781 uint32_t _flag_a = 0, _flag_b = 0; 11782 uint32_t _itail_tgt = 0; 11783 RECOMP_REGS_LOCALS 11784 RECOMP_ENTER(0x36114F96u); 11785 11786 L_36114F96: 11787 MEM32(edi + 0x34) = eax; /* 0x36114F96: mov dword ptr [edi + 0x34], eax */ 11788 MEM32(edi + 0x38) = eax; /* 0x36114F99: mov dword ptr [edi + 0x38], eax */ 11789 MEM32(edi + 0x3C) = ecx; /* 0x36114F9C: mov dword ptr [edi + 0x3c], ecx */ 11790 ecx = ebx; /* 0x36114F9F: mov ecx, ebx */ 11791 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36114FA1: mov byte ptr [ebp - 4], 1 */ 11792 MEM32(ebx) = 0x36176C84u; /* 0x36114FA5: mov dword ptr [ebx], 0x36176c84 */ 11793 RECOMP_ICALL(0x36115490u); /* 0x36114FAB: call 0x36115490 */ /* not lifted */ 11794 RECOMP_FLAGS_IN(); 11795 ecx = MEM32(ebp + 0xC); /* 0x36114FB0: mov ecx, dword ptr [ebp + 0xc] */ 11796 edx = MEM32(ecx); /* 0x36114FB3: mov edx, dword ptr [ecx] */ 11797 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36114FB5: call dword ptr [edx + 8] */ 11798 RECOMP_FLAGS_IN(); 11799 esi = eax; /* 0x36114FB8: mov esi, eax */ 11800 ecx = 0x10u; /* 0x36114FBA: mov ecx, 0x10 */ 11801 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36114FBF: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 11802 ecx = MEM32(ebp + 0xC); /* 0x36114FC1: mov ecx, dword ptr [ebp + 0xc] */ 11803 eax = MEM32(ecx); /* 0x36114FC4: mov eax, dword ptr [ecx] */ 11804 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36114FC6: call dword ptr [eax + 8] */ 11805 RECOMP_FLAGS_IN(); 11806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 11807 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11808 eax = eax + 0x30u; /* 0x36114FC9: add eax, 0x30 */ 11809 _flag_k = FK_ADD; 11810 ecx = MEM32(eax); /* 0x36114FCC: mov ecx, dword ptr [eax] */ 11811 MEM32(ebx + 0x24) = ecx; /* 0x36114FCE: mov dword ptr [ebx + 0x24], ecx */ 11812 edx = MEM32(eax + 0x4); /* 0x36114FD1: mov edx, dword ptr [eax + 4] */ 11813 MEM32(ebx + 0x28) = edx; /* 0x36114FD4: mov dword ptr [ebx + 0x28], edx */ 11814 eax = MEM32(eax + 0x8); /* 0x36114FD7: mov eax, dword ptr [eax + 8] */ 11815 ecx = ebx; /* 0x36114FDA: mov ecx, ebx */ 11816 MEM32(ebx + 0x2C) = eax; /* 0x36114FDC: mov dword ptr [ebx + 0x2c], eax */ 11817 RECOMP_ICALL(0x361154C0u); /* 0x36114FDF: call 0x361154c0 */ /* not lifted */ 11818 RECOMP_FLAGS_IN(); 11819 ecx = MEM32(ebp + (-0xC)); /* 0x36114FE4: mov ecx, dword ptr [ebp - 0xc] */ 11820 edi = POP32_VAL(esp); /* 0x36114FE7: pop edi */ 11821 esi = POP32_VAL(esp); /* 0x36114FE8: pop esi */ 11822 eax = ebx; /* 0x36114FE9: mov eax, ebx */ 11823 ebx = POP32_VAL(esp); /* 0x36114FEB: pop ebx */ 11824 MEM32(FS_BASE + (0)) = ecx; /* 0x36114FEC: mov dword ptr fs:[0], ecx */ 11825 esp = ebp; /* 0x36114FF3: mov esp, ebp */ 11826 ebp = POP32_VAL(esp); /* 0x36114FF5: pop ebp */ 11827 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36114FF6: ret 8 */ 11828 RECOMP_REGS_OUT(); 11829 } 11830 11831 void sub_36115000(void) { 11832 int _fpu_cmp = 0; 11833 uint32_t _cf = 0; 11834 int _df = 1; 11835 uint32_t _flag_k = FK_NONE; 11836 uint32_t _flag_a = 0, _flag_b = 0; 11837 uint32_t _itail_tgt = 0; 11838 RECOMP_REGS_LOCALS 11839 RECOMP_ENTER(0x36115000u); 11840 11841 L_36115000: 11842 PUSH32(esp, ebp); /* 0x36115000: push ebp */ 11843 ebp = esp; /* 0x36115001: mov ebp, esp */ 11844 PUSH32(esp, 0xFFFFFFFFu); /* 0x36115003: push -1 */ 11845 PUSH32(esp, 0x3616AF94u); /* 0x36115005: push 0x3616af94 */ 11846 eax = MEM32(FS_BASE + (0)); /* 0x3611500A: mov eax, dword ptr fs:[0] */ 11847 PUSH32(esp, eax); /* 0x36115010: push eax */ 11848 MEM32(FS_BASE + (0)) = esp; /* 0x36115011: mov dword ptr fs:[0], esp */ 11849 PUSH32(esp, ecx); /* 0x36115018: push ecx */ 11850 eax = MEM32(ebp + 0x8); /* 0x36115019: mov eax, dword ptr [ebp + 8] */ 11851 PUSH32(esp, esi); /* 0x3611501C: push esi */ 11852 esi = ecx; /* 0x3611501D: mov esi, ecx */ 11853 PUSH32(esp, eax); /* 0x3611501F: push eax */ 11854 MEM32(ebp + (-0x10)) = esi; /* 0x36115020: mov dword ptr [ebp - 0x10], esi */ 11855 RECOMP_ICALL(0x360FC270u); /* 0x36115023: call 0x360fc270 */ /* not lifted */ 11856 RECOMP_FLAGS_IN(); 11857 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11858 eax = 0; /* 0x36115028: xor eax, eax */ 11859 _cf = 0; 11860 _flag_k = FK_TEST; 11861 MEM32(esi + 0x24) = eax; /* 0x3611502A: mov dword ptr [esi + 0x24], eax */ 11862 MEM32(esi + 0x28) = eax; /* 0x3611502D: mov dword ptr [esi + 0x28], eax */ 11863 MEM32(esi + 0x2C) = eax; /* 0x36115030: mov dword ptr [esi + 0x2c], eax */ 11864 ecx = 0x3F800000u; /* 0x36115033: mov ecx, 0x3f800000 */ 11865 MEM32(ebp + (-0x4)) = eax; /* 0x36115038: mov dword ptr [ebp - 4], eax */ 11866 MEM32(esi + 0x34) = ecx; /* 0x3611503B: mov dword ptr [esi + 0x34], ecx */ 11867 MEM32(esi + 0x38) = eax; /* 0x3611503E: mov dword ptr [esi + 0x38], eax */ 11868 MEM32(esi + 0x3C) = eax; /* 0x36115041: mov dword ptr [esi + 0x3c], eax */ 11869 MEM32(esi + 0x40) = eax; /* 0x36115044: mov dword ptr [esi + 0x40], eax */ 11870 MEM32(esi + 0x44) = eax; /* 0x36115047: mov dword ptr [esi + 0x44], eax */ 11871 MEM32(esi + 0x48) = ecx; /* 0x3611504A: mov dword ptr [esi + 0x48], ecx */ 11872 MEM32(esi + 0x4C) = eax; /* 0x3611504D: mov dword ptr [esi + 0x4c], eax */ 11873 MEM32(esi + 0x50) = eax; /* 0x36115050: mov dword ptr [esi + 0x50], eax */ 11874 MEM32(esi + 0x54) = eax; /* 0x36115053: mov dword ptr [esi + 0x54], eax */ 11875 MEM32(esi + 0x58) = eax; /* 0x36115056: mov dword ptr [esi + 0x58], eax */ 11876 MEM32(esi + 0x5C) = ecx; /* 0x36115059: mov dword ptr [esi + 0x5c], ecx */ 11877 MEM32(esi + 0x60) = eax; /* 0x3611505C: mov dword ptr [esi + 0x60], eax */ 11878 MEM32(esi + 0x64) = eax; /* 0x3611505F: mov dword ptr [esi + 0x64], eax */ 11879 MEM32(esi + 0x68) = eax; /* 0x36115062: mov dword ptr [esi + 0x68], eax */ 11880 MEM32(esi + 0x6C) = eax; /* 0x36115065: mov dword ptr [esi + 0x6c], eax */ 11881 MEM32(esi + 0x70) = ecx; /* 0x36115068: mov dword ptr [esi + 0x70], ecx */ 11882 ecx = esi; /* 0x3611506B: mov ecx, esi */ 11883 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3611506D: mov byte ptr [ebp - 4], 1 */ 11884 MEM32(esi) = 0x36176C84u; /* 0x36115071: mov dword ptr [esi], 0x36176c84 */ 11885 RECOMP_ICALL(0x36115490u); /* 0x36115077: call 0x36115490 */ /* not lifted */ 11886 RECOMP_FLAGS_IN(); 11887 ecx = esi; /* 0x3611507C: mov ecx, esi */ 11888 RECOMP_ICALL(0x361154C0u); /* 0x3611507E: call 0x361154c0 */ /* not lifted */ 11889 RECOMP_FLAGS_IN(); 11890 ecx = MEM32(ebp + (-0xC)); /* 0x36115083: mov ecx, dword ptr [ebp - 0xc] */ 11891 eax = esi; /* 0x36115086: mov eax, esi */ 11892 esi = POP32_VAL(esp); /* 0x36115088: pop esi */ 11893 MEM32(FS_BASE + (0)) = ecx; /* 0x36115089: mov dword ptr fs:[0], ecx */ 11894 esp = ebp; /* 0x36115090: mov esp, ebp */ 11895 ebp = POP32_VAL(esp); /* 0x36115092: pop ebp */ 11896 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36115093: ret 0xc */ 11897 RECOMP_REGS_OUT(); 11898 } 11899 11900 void sub_361150A0(void) { 11901 int _fpu_cmp = 0; 11902 uint32_t _cf = 0; 11903 int _df = 1; 11904 uint32_t _flag_k = FK_NONE; 11905 uint32_t _flag_a = 0, _flag_b = 0; 11906 uint32_t _itail_tgt = 0; 11907 RECOMP_REGS_LOCALS 11908 RECOMP_ENTER(0x361150A0u); 11909 11910 L_361150A0: 11911 PUSH32(esp, ebp); /* 0x361150A0: push ebp */ 11912 ebp = esp; /* 0x361150A1: mov ebp, esp */ 11913 PUSH32(esp, 0xFFFFFFFFu); /* 0x361150A3: push -1 */ 11914 PUSH32(esp, 0x3616AFB4u); /* 0x361150A5: push 0x3616afb4 */ 11915 eax = MEM32(FS_BASE + (0)); /* 0x361150AA: mov eax, dword ptr fs:[0] */ 11916 PUSH32(esp, eax); /* 0x361150B0: push eax */ 11917 MEM32(FS_BASE + (0)) = esp; /* 0x361150B1: mov dword ptr fs:[0], esp */ 11918 PUSH32(esp, ecx); /* 0x361150B8: push ecx */ 11919 PUSH32(esp, esi); /* 0x361150B9: push esi */ 11920 esi = ecx; /* 0x361150BA: mov esi, ecx */ 11921 MEM32(ebp + (-0x10)) = esi; /* 0x361150BC: mov dword ptr [ebp - 0x10], esi */ 11922 MEM32(esi) = 0x36176C84u; /* 0x361150BF: mov dword ptr [esi], 0x36176c84 */ 11923 ecx = MEM32(esi + 0x80); /* 0x361150C5: mov ecx, dword ptr [esi + 0x80] */ 11924 /* test ecx, ecx */ /* 0x361150CB: test ecx, ecx */ 11925 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11926 _cf = 0; 11927 _flag_k = FK_TEST; 11928 MEM32(ebp + (-0x4)) = 1; /* 0x361150CD: mov dword ptr [ebp - 4], 1 */ 11929 if (TEST_Z(_flag_a, _flag_b)) goto L_361150DC; /* 0x361150D4: je 0x361150dc */ 11930 L_361150D6: 11931 eax = MEM32(ecx); /* 0x361150D6: mov eax, dword ptr [ecx] */ 11932 PUSH32(esp, 1); /* 0x361150D8: push 1 */ 11933 RECOMP_ICALL(MEM32(eax)); /* 0x361150DA: call dword ptr [eax] */ 11934 RECOMP_FLAGS_IN(); 11935 L_361150DC: 11936 ecx = esi; /* 0x361150DC: mov ecx, esi */ 11937 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361150DE: mov dword ptr [ebp - 4], 0xffffffff */ 11938 RECOMP_ICALL(0x360FC2F0u); /* 0x361150E5: call 0x360fc2f0 */ /* not lifted */ 11939 RECOMP_FLAGS_IN(); 11940 ecx = MEM32(ebp + (-0xC)); /* 0x361150EA: mov ecx, dword ptr [ebp - 0xc] */ 11941 esi = POP32_VAL(esp); /* 0x361150ED: pop esi */ 11942 MEM32(FS_BASE + (0)) = ecx; /* 0x361150EE: mov dword ptr fs:[0], ecx */ 11943 esp = ebp; /* 0x361150F5: mov esp, ebp */ 11944 ebp = POP32_VAL(esp); /* 0x361150F7: pop ebp */ 11945 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361150F8: ret */ 11946 RECOMP_REGS_OUT(); 11947 } 11948 11949 void sub_36115100(void) { 11950 int _fpu_cmp = 0; 11951 uint32_t _cf = 0; 11952 int _df = 1; 11953 uint32_t _flag_k = FK_NONE; 11954 uint32_t _flag_a = 0, _flag_b = 0; 11955 uint32_t _itail_tgt = 0; 11956 RECOMP_REGS_LOCALS 11957 RECOMP_ENTER(0x36115100u); 11958 11959 L_36115100: 11960 PUSH32(esp, ebp); /* 0x36115100: push ebp */ 11961 ebp = esp; /* 0x36115101: mov ebp, esp */ 11962 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 11963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11964 esp = esp - 0x18u; /* 0x36115103: sub esp, 0x18 */ 11965 _flag_k = FK_CMP; 11966 PUSH32(esp, ebx); /* 0x36115106: push ebx */ 11967 PUSH32(esp, esi); /* 0x36115107: push esi */ 11968 PUSH32(esp, edi); /* 0x36115108: push edi */ 11969 esi = ecx; /* 0x36115109: mov esi, ecx */ 11970 RECOMP_ICALL(0x360FC300u); /* 0x3611510B: call 0x360fc300 */ /* not lifted */ 11971 RECOMP_FLAGS_IN(); 11972 fp_push(*(float*)&MEM32(esi + 0x8)); /* 0x36115110: fld dword ptr [esi + 8] */ 11973 _st[0] += _st[0]; /* 0x36115113: fadd st(0), st(0) */ 11974 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 11975 SET_LO8(ebx, 0); /* 0x36115115: xor bl, bl */ 11976 _cf = 0; 11977 _flag_k = FK_NARROW(FK_TEST, 24); 11978 _st[0] += (double)*(float*)ADDR(esi + 0x30); /* 0x36115117: fadd dword ptr [esi + 0x30] */ 11979 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x3611511A: fcom dword ptr [0x36170380] */ 11980 { float _v = (float)_st[0]; *(float*)ADDR(esi + 0x30) = _v; } /* 0x36115120: fst dword ptr [esi + 0x30] */ 11981 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36115123: fnstsw ax */ 11982 /* test HI8(eax), 0x41u */ /* 0x36115125: test ah, 0x41 */ 11983 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 11984 _cf = 0; 11985 _flag_k = FK_NARROW(FK_TEST, 24); 11986 if (TEST_NZ(_flag_a, _flag_b)) goto L_36115137; /* 0x36115128: jne 0x36115137 */ 11987 L_3611512A: 11988 _st[0] -= (double)*(float*)ADDR(0x36170380); /* 0x3611512A: fsub dword ptr [0x36170380] */ 11989 SET_LO8(ebx, 1); /* 0x36115130: mov bl, 1 */ 11990 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x30) = _v; } /* 0x36115132: fstp dword ptr [esi + 0x30] */ 11991 goto L_36115139; /* 0x36115135: jmp 0x36115139 */ 11992 L_36115137: 11993 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36115137: fstp st(0) */ 11994 L_36115139: 11995 RECOMP_ICALL(0x3600C230u); /* 0x36115139: call 0x3600c230 */ /* not lifted */ 11996 RECOMP_FLAGS_IN(); 11997 ecx = eax; /* 0x3611513E: mov ecx, eax */ 11998 RECOMP_ICALL(0x3600C2B0u); /* 0x36115140: call 0x3600c2b0 */ /* not lifted */ 11999 RECOMP_FLAGS_IN(); 12000 edi = MEM32(esi + 0x7C); /* 0x36115145: mov edi, dword ptr [esi + 0x7c] */ 12001 ecx = MEM32(esi + 0x20); /* 0x36115148: mov ecx, dword ptr [esi + 0x20] */ 12002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12004 eax = eax + edi; /* 0x3611514B: add eax, edi */ 12005 _flag_k = FK_ADD; 12006 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0); 12007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12008 ecx = ecx - 0; /* 0x3611514D: sub ecx, 0 */ 12009 _flag_k = FK_CMP; 12010 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_361151D9; /* 0x36115150: je 0x361151d9 */ 12011 L_36115156: 12012 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12013 ecx = ecx - 1; /* 0x36115156: dec ecx */ 12014 _flag_k = FK_DEC; 12015 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36115480; /* 0x36115157: jne 0x36115480 */ 12016 L_3611515D: 12017 /* test LO8(ebx), LO8(ebx) */ /* 0x3611515D: test bl, bl */ 12018 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 12019 _cf = 0; 12020 _flag_k = FK_NARROW(FK_TEST, 24); 12021 if (TEST_Z(_flag_a, _flag_b)) goto L_36115480; /* 0x3611515F: je 0x36115480 */ 12022 L_36115165: 12023 RECOMP_ICALL(0x3601C590u); /* 0x36115165: call 0x3601c590 */ /* not lifted */ 12024 RECOMP_FLAGS_IN(); 12025 edi = eax; /* 0x3611516A: mov edi, eax */ 12026 PUSH32(esp, 0x362E5678u); /* 0x3611516C: push 0x362e5678 */ 12027 ecx = edi; /* 0x36115171: mov ecx, edi */ 12028 RECOMP_ICALL(0x3601CBC0u); /* 0x36115173: call 0x3601cbc0 */ /* not lifted */ 12029 RECOMP_FLAGS_IN(); 12030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12032 esp = esp - 0xCu; /* 0x36115178: sub esp, 0xc */ 12033 _flag_k = FK_CMP; 12034 ecx = esp; /* 0x3611517B: mov ecx, esp */ 12035 PUSH32(esp, 1); /* 0x3611517D: push 1 */ 12036 PUSH32(esp, 0x64u); /* 0x3611517F: push 0x64 */ 12037 PUSH32(esp, 0); /* 0x36115181: push 0 */ 12038 PUSH32(esp, 0); /* 0x36115183: push 0 */ 12039 MEM32(ebp + (-0xC)) = 0; /* 0x36115185: mov dword ptr [ebp - 0xc], 0 */ 12040 edx = MEM32(ebp + (-0xC)); /* 0x3611518C: mov edx, dword ptr [ebp - 0xc] */ 12041 MEM32(ecx) = edx; /* 0x3611518F: mov dword ptr [ecx], edx */ 12042 PUSH32(esp, 0x3F800000u); /* 0x36115191: push 0x3f800000 */ 12043 MEM32(ebp + (-0x8)) = 0; /* 0x36115196: mov dword ptr [ebp - 8], 0 */ 12044 edx = MEM32(ebp + (-0x8)); /* 0x3611519D: mov edx, dword ptr [ebp - 8] */ 12045 MEM32(ecx + 0x4) = edx; /* 0x361151A0: mov dword ptr [ecx + 4], edx */ 12046 PUSH32(esp, 0); /* 0x361151A3: push 0 */ 12047 MEM32(ebp + (-0x4)) = 0; /* 0x361151A5: mov dword ptr [ebp - 4], 0 */ 12048 edx = MEM32(ebp + (-0x4)); /* 0x361151AC: mov edx, dword ptr [ebp - 4] */ 12049 MEM32(ecx + 0x8) = edx; /* 0x361151AF: mov dword ptr [ecx + 8], edx */ 12050 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 12051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12052 esi = esi + 0x24u; /* 0x361151B2: add esi, 0x24 */ 12053 _flag_k = FK_ADD; 12054 edx = MEM32(esi); /* 0x361151B5: mov edx, dword ptr [esi] */ 12055 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12057 esp = esp - 0xCu; /* 0x361151B7: sub esp, 0xc */ 12058 _flag_k = FK_CMP; 12059 ecx = esp; /* 0x361151BA: mov ecx, esp */ 12060 MEM32(ecx) = edx; /* 0x361151BC: mov dword ptr [ecx], edx */ 12061 edx = MEM32(esi + 0x4); /* 0x361151BE: mov edx, dword ptr [esi + 4] */ 12062 MEM32(ecx + 0x4) = edx; /* 0x361151C1: mov dword ptr [ecx + 4], edx */ 12063 edx = MEM32(esi + 0x8); /* 0x361151C4: mov edx, dword ptr [esi + 8] */ 12064 MEM32(ecx + 0x8) = edx; /* 0x361151C7: mov dword ptr [ecx + 8], edx */ 12065 PUSH32(esp, eax); /* 0x361151CA: push eax */ 12066 ecx = edi; /* 0x361151CB: mov ecx, edi */ 12067 RECOMP_ICALL(0x3601CBF0u); /* 0x361151CD: call 0x3601cbf0 */ /* not lifted */ 12068 RECOMP_FLAGS_IN(); 12069 edi = POP32_VAL(esp); /* 0x361151D2: pop edi */ 12070 esi = POP32_VAL(esp); /* 0x361151D3: pop esi */ 12071 ebx = POP32_VAL(esp); /* 0x361151D4: pop ebx */ 12072 esp = ebp; /* 0x361151D5: mov esp, ebp */ 12073 ebp = POP32_VAL(esp); /* 0x361151D7: pop ebp */ 12074 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361151D8: ret */ 12075 L_361151D9: 12076 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x361151D9: cdq */ 12077 ecx = 0x10Eu; /* 0x361151DA: mov ecx, 0x10e */ 12078 { int64_t _dividend = ((int64_t)(int32_t)edx << 32) | eax; int32_t _dv = (int32_t)ecx; /* 0x361151DF: idiv ecx */ 12079 if (_dv && !(_dv == -1 && _dividend == INT64_MIN)) { eax = (uint32_t)((int32_t)(_dividend / _dv)); edx = (uint32_t)((int32_t)(_dividend % _dv)); } 12080 else { eax = 0; edx = 0; } } 12081 /* cmp edx, MEM32(esi + 0x78) */ /* 0x361151E1: cmp edx, dword ptr [esi + 0x78] */ 12082 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x78)); 12083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12084 _flag_k = FK_CMP; 12085 MEM32(esi + 0x74) = edx; /* 0x361151E4: mov dword ptr [esi + 0x74], edx */ 12086 if (CMP_GE(_flag_a, _flag_b)) goto L_36115336; /* 0x361151E7: jge 0x36115336 */ 12087 L_361151ED: 12088 edx = MEM32(0x3616FF74); /* 0x361151ED: mov edx, dword ptr [0x3616ff74] */ 12089 ecx = MEM32(edx); /* 0x361151F3: mov ecx, dword ptr [edx] */ 12090 eax = MEM32(ecx); /* 0x361151F5: mov eax, dword ptr [ecx] */ 12091 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x361151F7: call dword ptr [eax + 0x10] */ 12092 RECOMP_FLAGS_IN(); 12093 ecx = eax; /* 0x361151FA: mov ecx, eax */ 12094 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x361151FC: call dword ptr [0x3616ffb0] */ 12095 RECOMP_FLAGS_IN(); 12096 ecx = eax; /* 0x36115202: mov ecx, eax */ 12097 ebx = MEM32(ecx); /* 0x36115204: mov ebx, dword ptr [ecx] */ 12098 edx = MEM32(ecx + 0x4); /* 0x36115206: mov edx, dword ptr [ecx + 4] */ 12099 ecx = MEM32(ecx + 0x8); /* 0x36115209: mov ecx, dword ptr [ecx + 8] */ 12100 MEM32(ebp + (-0x14)) = edx; /* 0x3611520C: mov dword ptr [ebp - 0x14], edx */ 12101 edx = MEM32(eax); /* 0x3611520F: mov edx, dword ptr [eax] */ 12102 MEM32(ebp + (-0xC)) = edx; /* 0x36115211: mov dword ptr [ebp - 0xc], edx */ 12103 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36115214: fld dword ptr [ebp - 0xc] */ 12104 _st[0] -= (double)*(float*)ADDR(esi + 0x24); /* 0x36115217: fsub dword ptr [esi + 0x24] */ 12105 edx = MEM32(eax + 0x8); /* 0x3611521A: mov edx, dword ptr [eax + 8] */ 12106 MEM32(ebp + (-0x10)) = ecx; /* 0x3611521D: mov dword ptr [ebp - 0x10], ecx */ 12107 ecx = MEM32(eax + 0x4); /* 0x36115220: mov ecx, dword ptr [eax + 4] */ 12108 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36115223: fstp dword ptr [ebp - 0xc] */ 12109 MEM32(ebp + (-0x8)) = ecx; /* 0x36115226: mov dword ptr [ebp - 8], ecx */ 12110 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36115229: fld dword ptr [ebp - 8] */ 12111 MEM32(ebp + (-0x4)) = edx; /* 0x3611522C: mov dword ptr [ebp - 4], edx */ 12112 _st[0] -= (double)*(float*)ADDR(esi + 0x28); /* 0x3611522F: fsub dword ptr [esi + 0x28] */ 12113 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36115232: fstp dword ptr [ebp - 8] */ 12114 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36115235: fld dword ptr [ebp - 4] */ 12115 _st[0] -= (double)*(float*)ADDR(esi + 0x2C); /* 0x36115238: fsub dword ptr [esi + 0x2c] */ 12116 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3611523B: fstp dword ptr [ebp - 4] */ 12117 RECOMP_ICALL(0x3601C590u); /* 0x3611523E: call 0x3601c590 */ /* not lifted */ 12118 RECOMP_FLAGS_IN(); 12119 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36115243: fld dword ptr [ebp - 4] */ 12120 edi = eax; /* 0x36115246: mov edi, eax */ 12121 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36115248: fmul dword ptr [ebp - 4] */ 12122 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3611524B: fld dword ptr [ebp - 8] */ 12123 _st[0] *= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3611524E: fmul dword ptr [ebp - 8] */ 12124 { double _v = fp_pop(); _st[0] += _v; } /* 0x36115251: faddp st(1) */ 12125 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36115253: fld dword ptr [ebp - 0xc] */ 12126 _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x36115256: fmul dword ptr [ebp - 0xc] */ 12127 { double _v = fp_pop(); _st[0] += _v; } /* 0x36115259: faddp st(1) */ 12128 _st[0] = sqrt(_st[0]); /* 0x3611525B: fsqrt */ 12129 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36176CC8)); /* 0x3611525D: fcomp qword ptr [0x36176cc8] */ 12130 fp_pop(); 12131 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36115263: fnstsw ax */ 12132 /* test HI8(eax), 1 */ /* 0x36115265: test ah, 1 */ 12133 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12134 _cf = 0; 12135 _flag_k = FK_NARROW(FK_TEST, 24); 12136 if (TEST_Z(_flag_a, _flag_b)) goto L_36115271; /* 0x36115268: je 0x36115271 */ 12137 L_3611526A: 12138 PUSH32(esp, 0x362E5654u); /* 0x3611526A: push 0x362e5654 */ 12139 goto L_36115276; /* 0x3611526F: jmp 0x36115276 */ 12140 L_36115271: 12141 PUSH32(esp, 0x362E5630u); /* 0x36115271: push 0x362e5630 */ 12142 L_36115276: 12143 ecx = edi; /* 0x36115276: mov ecx, edi */ 12144 RECOMP_ICALL(0x3601CBC0u); /* 0x36115278: call 0x3601cbc0 */ /* not lifted */ 12145 RECOMP_FLAGS_IN(); 12146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12148 esp = esp - 0xCu; /* 0x3611527D: sub esp, 0xc */ 12149 _flag_k = FK_CMP; 12150 ecx = esp; /* 0x36115280: mov ecx, esp */ 12151 PUSH32(esp, 1); /* 0x36115282: push 1 */ 12152 PUSH32(esp, 0x64u); /* 0x36115284: push 0x64 */ 12153 PUSH32(esp, 0); /* 0x36115286: push 0 */ 12154 PUSH32(esp, 0); /* 0x36115288: push 0 */ 12155 MEM32(ebp + (-0xC)) = 0; /* 0x3611528A: mov dword ptr [ebp - 0xc], 0 */ 12156 edx = MEM32(ebp + (-0xC)); /* 0x36115291: mov edx, dword ptr [ebp - 0xc] */ 12157 MEM32(ecx) = edx; /* 0x36115294: mov dword ptr [ecx], edx */ 12158 PUSH32(esp, 0x3F800000u); /* 0x36115296: push 0x3f800000 */ 12159 MEM32(ebp + (-0x8)) = 0; /* 0x3611529B: mov dword ptr [ebp - 8], 0 */ 12160 edx = MEM32(ebp + (-0x8)); /* 0x361152A2: mov edx, dword ptr [ebp - 8] */ 12161 MEM32(ecx + 0x4) = edx; /* 0x361152A5: mov dword ptr [ecx + 4], edx */ 12162 PUSH32(esp, 0); /* 0x361152A8: push 0 */ 12163 MEM32(ebp + (-0x4)) = 0; /* 0x361152AA: mov dword ptr [ebp - 4], 0 */ 12164 edx = MEM32(ebp + (-0x4)); /* 0x361152B1: mov edx, dword ptr [ebp - 4] */ 12165 MEM32(ecx + 0x8) = edx; /* 0x361152B4: mov dword ptr [ecx + 8], edx */ 12166 edx = MEM32(esi + 0x24); /* 0x361152B7: mov edx, dword ptr [esi + 0x24] */ 12167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12169 esp = esp - 0xCu; /* 0x361152BA: sub esp, 0xc */ 12170 _flag_k = FK_CMP; 12171 ecx = esp; /* 0x361152BD: mov ecx, esp */ 12172 MEM32(ecx) = edx; /* 0x361152BF: mov dword ptr [ecx], edx */ 12173 edx = MEM32(esi + 0x28); /* 0x361152C1: mov edx, dword ptr [esi + 0x28] */ 12174 MEM32(ecx + 0x4) = edx; /* 0x361152C4: mov dword ptr [ecx + 4], edx */ 12175 edx = MEM32(esi + 0x2C); /* 0x361152C7: mov edx, dword ptr [esi + 0x2c] */ 12176 MEM32(ecx + 0x8) = edx; /* 0x361152CA: mov dword ptr [ecx + 8], edx */ 12177 PUSH32(esp, eax); /* 0x361152CD: push eax */ 12178 ecx = edi; /* 0x361152CE: mov ecx, edi */ 12179 RECOMP_ICALL(0x3601CBF0u); /* 0x361152D0: call 0x3601cbf0 */ /* not lifted */ 12180 RECOMP_FLAGS_IN(); 12181 PUSH32(esp, 0x362E560Cu); /* 0x361152D5: push 0x362e560c */ 12182 ecx = edi; /* 0x361152DA: mov ecx, edi */ 12183 RECOMP_ICALL(0x3601CBC0u); /* 0x361152DC: call 0x3601cbc0 */ /* not lifted */ 12184 RECOMP_FLAGS_IN(); 12185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12187 esp = esp - 0xCu; /* 0x361152E1: sub esp, 0xc */ 12188 _flag_k = FK_CMP; 12189 ecx = esp; /* 0x361152E4: mov ecx, esp */ 12190 PUSH32(esp, 1); /* 0x361152E6: push 1 */ 12191 PUSH32(esp, 0x64u); /* 0x361152E8: push 0x64 */ 12192 PUSH32(esp, 0); /* 0x361152EA: push 0 */ 12193 PUSH32(esp, 0); /* 0x361152EC: push 0 */ 12194 MEM32(ebp + (-0xC)) = 0; /* 0x361152EE: mov dword ptr [ebp - 0xc], 0 */ 12195 edx = MEM32(ebp + (-0xC)); /* 0x361152F5: mov edx, dword ptr [ebp - 0xc] */ 12196 MEM32(ecx) = edx; /* 0x361152F8: mov dword ptr [ecx], edx */ 12197 PUSH32(esp, 0x3F800000u); /* 0x361152FA: push 0x3f800000 */ 12198 MEM32(ebp + (-0x8)) = 0; /* 0x361152FF: mov dword ptr [ebp - 8], 0 */ 12199 edx = MEM32(ebp + (-0x8)); /* 0x36115306: mov edx, dword ptr [ebp - 8] */ 12200 MEM32(ecx + 0x4) = edx; /* 0x36115309: mov dword ptr [ecx + 4], edx */ 12201 PUSH32(esp, 0); /* 0x3611530C: push 0 */ 12202 MEM32(ebp + (-0x4)) = 0; /* 0x3611530E: mov dword ptr [ebp - 4], 0 */ 12203 edx = MEM32(ebp + (-0x4)); /* 0x36115315: mov edx, dword ptr [ebp - 4] */ 12204 MEM32(ecx + 0x8) = edx; /* 0x36115318: mov dword ptr [ecx + 8], edx */ 12205 edx = MEM32(ebp + (-0x14)); /* 0x3611531B: mov edx, dword ptr [ebp - 0x14] */ 12206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12208 esp = esp - 0xCu; /* 0x3611531E: sub esp, 0xc */ 12209 _flag_k = FK_CMP; 12210 ecx = esp; /* 0x36115321: mov ecx, esp */ 12211 MEM32(ecx) = ebx; /* 0x36115323: mov dword ptr [ecx], ebx */ 12212 MEM32(ecx + 0x4) = edx; /* 0x36115325: mov dword ptr [ecx + 4], edx */ 12213 edx = MEM32(ebp + (-0x10)); /* 0x36115328: mov edx, dword ptr [ebp - 0x10] */ 12214 MEM32(ecx + 0x8) = edx; /* 0x3611532B: mov dword ptr [ecx + 8], edx */ 12215 PUSH32(esp, eax); /* 0x3611532E: push eax */ 12216 ecx = edi; /* 0x3611532F: mov ecx, edi */ 12217 RECOMP_ICALL(0x3601CBF0u); /* 0x36115331: call 0x3601cbf0 */ /* not lifted */ 12218 RECOMP_FLAGS_IN(); 12219 L_36115336: 12220 eax = MEM32(esi + 0x74); /* 0x36115336: mov eax, dword ptr [esi + 0x74] */ 12221 PUSH32(esp, 0); /* 0x36115339: push 0 */ 12222 ecx = esi + 0x24; /* 0x3611533B: lea ecx, [esi + 0x24] */ 12223 PUSH32(esp, ecx); /* 0x3611533E: push ecx */ 12224 ecx = MEM32(esi + 0x80); /* 0x3611533F: mov ecx, dword ptr [esi + 0x80] */ 12225 MEM32(esi + 0x78) = eax; /* 0x36115345: mov dword ptr [esi + 0x78], eax */ 12226 RECOMP_ICALL(MEM32(0x3616F648)); /* 0x36115348: call dword ptr [0x3616f648] */ 12227 RECOMP_FLAGS_IN(); 12228 eax = MEM32(esi + 0x80); /* 0x3611534E: mov eax, dword ptr [esi + 0x80] */ 12229 MEM32(eax + 0x224) = 0xFFFFFFFFu; /* 0x36115354: mov dword ptr [eax + 0x224], 0xffffffff */ 12230 MEM8(eax + 0x23C) = (uint8_t)(1); /* 0x3611535E: mov byte ptr [eax + 0x23c], 1 */ 12231 eax = MEM32(esi + 0x80); /* 0x36115365: mov eax, dword ptr [esi + 0x80] */ 12232 MEM32(eax + 0x228) = 0x22FFFFFFu; /* 0x3611536B: mov dword ptr [eax + 0x228], 0x22ffffff */ 12233 MEM8(eax + 0x23C) = (uint8_t)(1); /* 0x36115375: mov byte ptr [eax + 0x23c], 1 */ 12234 eax = MEM32(esi + 0x80); /* 0x3611537C: mov eax, dword ptr [esi + 0x80] */ 12235 MEM32(eax + 0x21C) = 0x3F800000u; /* 0x36115382: mov dword ptr [eax + 0x21c], 0x3f800000 */ 12236 MEM8(eax + 0x23C) = (uint8_t)(1); /* 0x3611538C: mov byte ptr [eax + 0x23c], 1 */ 12237 eax = MEM32(esi + 0x74); /* 0x36115393: mov eax, dword ptr [esi + 0x74] */ 12238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0); 12239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12240 eax = eax - 0; /* 0x36115396: sub eax, 0 */ 12241 _flag_k = FK_CMP; 12242 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3611543A; /* 0x36115399: je 0x3611543a */ 12243 L_3611539F: 12244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12245 eax = eax - 1; /* 0x3611539F: dec eax */ 12246 _flag_k = FK_DEC; 12247 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_361153F9; /* 0x361153A0: je 0x361153f9 */ 12248 L_361153A2: 12249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12250 eax = eax - 1; /* 0x361153A2: dec eax */ 12251 _flag_k = FK_DEC; 12252 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_361153BA; /* 0x361153A3: je 0x361153ba */ 12253 L_361153A5: 12254 ecx = MEM32(esi + 0x80); /* 0x361153A5: mov ecx, dword ptr [esi + 0x80] */ 12255 PUSH32(esp, 1); /* 0x361153AB: push 1 */ 12256 RECOMP_ICALL(MEM32(0x3616F620)); /* 0x361153AD: call dword ptr [0x3616f620] */ 12257 RECOMP_FLAGS_IN(); 12258 edi = POP32_VAL(esp); /* 0x361153B3: pop edi */ 12259 esi = POP32_VAL(esp); /* 0x361153B4: pop esi */ 12260 ebx = POP32_VAL(esp); /* 0x361153B5: pop ebx */ 12261 esp = ebp; /* 0x361153B6: mov esp, ebp */ 12262 ebp = POP32_VAL(esp); /* 0x361153B8: pop ebp */ 12263 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361153B9: ret */ 12264 L_361153BA: 12265 ecx = MEM32(esi + 0x80); /* 0x361153BA: mov ecx, dword ptr [esi + 0x80] */ 12266 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x361153C0: call dword ptr [0x3616f5f8] */ 12267 RECOMP_FLAGS_IN(); 12268 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361153C6: fld dword ptr [0x36170380] */ 12269 _st[0] -= (double)*(float*)ADDR(esi + 0x30); /* 0x361153CC: fsub dword ptr [esi + 0x30] */ 12270 eax = MEM32(esi + 0x80); /* 0x361153CF: mov eax, dword ptr [esi + 0x80] */ 12271 MEM8(eax + 0x23C) = (uint8_t)(1); /* 0x361153D5: mov byte ptr [eax + 0x23c], 1 */ 12272 _st[0] *= (double)*(float*)ADDR(0x36174E9C); /* 0x361153DC: fmul dword ptr [0x36174e9c] */ 12273 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x218) = _v; } /* 0x361153E2: fstp dword ptr [eax + 0x218] */ 12274 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361153E8: fld dword ptr [0x36170380] */ 12275 eax = MEM32(esi + 0x80); /* 0x361153EE: mov eax, dword ptr [esi + 0x80] */ 12276 _st[0] -= (double)*(float*)ADDR(esi + 0x30); /* 0x361153F4: fsub dword ptr [esi + 0x30] */ 12277 goto L_3611546B; /* 0x361153F7: jmp 0x3611546b */ 12278 L_361153F9: 12279 ecx = MEM32(esi + 0x80); /* 0x361153F9: mov ecx, dword ptr [esi + 0x80] */ 12280 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x361153FF: call dword ptr [0x3616f5f8] */ 12281 RECOMP_FLAGS_IN(); 12282 eax = MEM32(esi + 0x80); /* 0x36115405: mov eax, dword ptr [esi + 0x80] */ 12283 MEM32(eax + 0x218) = 0x43480000u; /* 0x3611540B: mov dword ptr [eax + 0x218], 0x43480000 */ 12284 MEM8(eax + 0x23C) = (uint8_t)(1); /* 0x36115415: mov byte ptr [eax + 0x23c], 1 */ 12285 esi = MEM32(esi + 0x80); /* 0x3611541C: mov esi, dword ptr [esi + 0x80] */ 12286 MEM32(esi + 0x220) = 0x40400000u; /* 0x36115422: mov dword ptr [esi + 0x220], 0x40400000 */ 12287 MEM8(esi + 0x23C) = (uint8_t)(1); /* 0x3611542C: mov byte ptr [esi + 0x23c], 1 */ 12288 edi = POP32_VAL(esp); /* 0x36115433: pop edi */ 12289 esi = POP32_VAL(esp); /* 0x36115434: pop esi */ 12290 ebx = POP32_VAL(esp); /* 0x36115435: pop ebx */ 12291 esp = ebp; /* 0x36115436: mov esp, ebp */ 12292 ebp = POP32_VAL(esp); /* 0x36115438: pop ebp */ 12293 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115439: ret */ 12294 L_3611543A: 12295 ecx = MEM32(esi + 0x80); /* 0x3611543A: mov ecx, dword ptr [esi + 0x80] */ 12296 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36115440: call dword ptr [0x3616f5f8] */ 12297 RECOMP_FLAGS_IN(); 12298 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36115446: fld dword ptr [esi + 0x30] */ 12299 eax = MEM32(esi + 0x80); /* 0x36115449: mov eax, dword ptr [esi + 0x80] */ 12300 _st[0] *= (double)*(float*)ADDR(0x36174E9C); /* 0x3611544F: fmul dword ptr [0x36174e9c] */ 12301 MEM8(eax + 0x23C) = (uint8_t)(1); /* 0x36115455: mov byte ptr [eax + 0x23c], 1 */ 12302 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x218) = _v; } /* 0x3611545C: fstp dword ptr [eax + 0x218] */ 12303 eax = MEM32(esi + 0x80); /* 0x36115462: mov eax, dword ptr [esi + 0x80] */ 12304 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x36115468: fld dword ptr [esi + 0x30] */ 12305 L_3611546B: 12306 _st[0] += _st[0]; /* 0x3611546B: fadd st(0), st(0) */ 12307 _st[0] += (double)*(float*)ADDR(0x36170380); /* 0x3611546D: fadd dword ptr [0x36170380] */ 12308 { float _v = (float)fp_pop(); *(float*)ADDR(eax + 0x220) = _v; } /* 0x36115473: fstp dword ptr [eax + 0x220] */ 12309 MEM8(eax + 0x23C) = (uint8_t)(1); /* 0x36115479: mov byte ptr [eax + 0x23c], 1 */ 12310 L_36115480: 12311 edi = POP32_VAL(esp); /* 0x36115480: pop edi */ 12312 esi = POP32_VAL(esp); /* 0x36115481: pop esi */ 12313 ebx = POP32_VAL(esp); /* 0x36115482: pop ebx */ 12314 esp = ebp; /* 0x36115483: mov esp, ebp */ 12315 ebp = POP32_VAL(esp); /* 0x36115485: pop ebp */ 12316 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115486: ret */ 12317 RECOMP_REGS_OUT(); 12318 } 12319 12320 void sub_36115490(void) { 12321 int _fpu_cmp = 0; 12322 uint32_t _cf = 0; 12323 int _df = 1; 12324 uint32_t _flag_k = FK_NONE; 12325 uint32_t _flag_a = 0, _flag_b = 0; 12326 uint32_t _itail_tgt = 0; 12327 RECOMP_REGS_LOCALS 12328 RECOMP_ENTER(0x36115490u); 12329 12330 L_36115490: 12331 PUSH32(esp, esi); /* 0x36115490: push esi */ 12332 esi = ecx; /* 0x36115491: mov esi, ecx */ 12333 eax = MEM32(esi + 0x4); /* 0x36115493: mov eax, dword ptr [esi + 4] */ 12334 PUSH32(esp, eax); /* 0x36115496: push eax */ 12335 RECOMP_ICALL(0x360F7B00u); /* 0x36115497: call 0x360f7b00 */ /* not lifted */ 12336 RECOMP_FLAGS_IN(); 12337 ecx = eax; /* 0x3611549C: mov ecx, eax */ 12338 RECOMP_ICALL(0x360FBFF0u); /* 0x3611549E: call 0x360fbff0 */ /* not lifted */ 12339 RECOMP_FLAGS_IN(); 12340 ecx = eax; /* 0x361154A3: mov ecx, eax */ 12341 RECOMP_ICALL(0x361371A0u); /* 0x361154A5: call 0x361371a0 */ /* not lifted */ 12342 RECOMP_FLAGS_IN(); 12343 PUSH32(esp, 0); /* 0x361154AA: push 0 */ 12344 ecx = eax; /* 0x361154AC: mov ecx, eax */ 12345 RECOMP_ICALL(0x36136FE0u); /* 0x361154AE: call 0x36136fe0 */ /* not lifted */ 12346 RECOMP_FLAGS_IN(); 12347 MEM32(esi + 0x20) = eax; /* 0x361154B3: mov dword ptr [esi + 0x20], eax */ 12348 MEM32(esi + 0x10) = 0xBF800000u; /* 0x361154B6: mov dword ptr [esi + 0x10], 0xbf800000 */ 12349 esi = POP32_VAL(esp); /* 0x361154BD: pop esi */ 12350 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361154BE: ret */ 12351 RECOMP_REGS_OUT(); 12352 } 12353 12354 void sub_361154C0(void) { 12355 int _fpu_cmp = 0; 12356 uint32_t _cf = 0; 12357 int _df = 1; 12358 uint32_t _flag_k = FK_NONE; 12359 uint32_t _flag_a = 0, _flag_b = 0; 12360 uint32_t _itail_tgt = 0; 12361 RECOMP_REGS_LOCALS 12362 RECOMP_ENTER(0x361154C0u); 12363 12364 L_361154C0: 12365 PUSH32(esp, ebp); /* 0x361154C0: push ebp */ 12366 ebp = esp; /* 0x361154C1: mov ebp, esp */ 12367 PUSH32(esp, 0xFFFFFFFFu); /* 0x361154C3: push -1 */ 12368 PUSH32(esp, 0x3616AFCBu); /* 0x361154C5: push 0x3616afcb */ 12369 eax = MEM32(FS_BASE + (0)); /* 0x361154CA: mov eax, dword ptr fs:[0] */ 12370 PUSH32(esp, eax); /* 0x361154D0: push eax */ 12371 MEM32(FS_BASE + (0)) = esp; /* 0x361154D1: mov dword ptr fs:[0], esp */ 12372 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 12373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12374 esp = esp - 0x48u; /* 0x361154D8: sub esp, 0x48 */ 12375 _flag_k = FK_CMP; 12376 PUSH32(esp, ebx); /* 0x361154DB: push ebx */ 12377 PUSH32(esp, esi); /* 0x361154DC: push esi */ 12378 esi = ecx; /* 0x361154DD: mov esi, ecx */ 12379 fp_push(*(float*)&MEM32(esi + 0x24)); /* 0x361154DF: fld dword ptr [esi + 0x24] */ 12380 PUSH32(esp, edi); /* 0x361154E2: push edi */ 12381 _st[0] *= (double)*(float*)ADDR(0x36170E78); /* 0x361154E3: fmul dword ptr [0x36170e78] */ 12382 edi = esi + 0x24; /* 0x361154E9: lea edi, [esi + 0x24] */ 12383 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12384 ebx = 0; /* 0x361154EC: xor ebx, ebx */ 12385 _cf = 0; 12386 _flag_k = FK_TEST; 12387 MEM32(esi + 0x30) = ebx; /* 0x361154EE: mov dword ptr [esi + 0x30], ebx */ 12388 MEM32(esi + 0x74) = ebx; /* 0x361154F1: mov dword ptr [esi + 0x74], ebx */ 12389 MEM32(esi + 0x80) = ebx; /* 0x361154F4: mov dword ptr [esi + 0x80], ebx */ 12390 MEM32(esi + 0x78) = ebx; /* 0x361154FA: mov dword ptr [esi + 0x78], ebx */ 12391 RECOMP_ICALL(0x3615FD8Cu); /* 0x361154FD: call 0x3615fd8c */ /* not lifted */ 12392 RECOMP_FLAGS_IN(); 12393 MEM32(esi + 0x7C) = eax; /* 0x36115502: mov dword ptr [esi + 0x7c], eax */ 12394 eax = MEM32(esi + 0x20); /* 0x36115505: mov eax, dword ptr [esi + 0x20] */ 12395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12397 eax = eax - ebx; /* 0x36115508: sub eax, ebx */ 12398 _flag_k = FK_CMP; 12399 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_36115578; /* 0x3611550A: je 0x36115578 */ 12400 L_3611550C: 12401 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12402 eax = eax - 1; /* 0x3611550C: dec eax */ 12403 _flag_k = FK_DEC; 12404 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36115706; /* 0x3611550D: jne 0x36115706 */ 12405 L_36115513: 12406 RECOMP_ICALL(0x3601C590u); /* 0x36115513: call 0x3601c590 */ /* not lifted */ 12407 RECOMP_FLAGS_IN(); 12408 esi = eax; /* 0x36115518: mov esi, eax */ 12409 PUSH32(esp, 0x362E5678u); /* 0x3611551A: push 0x362e5678 */ 12410 ecx = esi; /* 0x3611551F: mov ecx, esi */ 12411 RECOMP_ICALL(0x3601CBC0u); /* 0x36115521: call 0x3601cbc0 */ /* not lifted */ 12412 RECOMP_FLAGS_IN(); 12413 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12415 esp = esp - 0xCu; /* 0x36115526: sub esp, 0xc */ 12416 _flag_k = FK_CMP; 12417 ecx = esp; /* 0x36115529: mov ecx, esp */ 12418 PUSH32(esp, 1); /* 0x3611552B: push 1 */ 12419 PUSH32(esp, 0x64u); /* 0x3611552D: push 0x64 */ 12420 PUSH32(esp, ebx); /* 0x3611552F: push ebx */ 12421 PUSH32(esp, ebx); /* 0x36115530: push ebx */ 12422 edx = ebx; /* 0x36115531: mov edx, ebx */ 12423 MEM32(ecx) = edx; /* 0x36115533: mov dword ptr [ecx], edx */ 12424 MEM32(ecx + 0x4) = edx; /* 0x36115535: mov dword ptr [ecx + 4], edx */ 12425 MEM32(ecx + 0x8) = edx; /* 0x36115538: mov dword ptr [ecx + 8], edx */ 12426 edx = MEM32(edi); /* 0x3611553B: mov edx, dword ptr [edi] */ 12427 PUSH32(esp, 0x3F800000u); /* 0x3611553D: push 0x3f800000 */ 12428 PUSH32(esp, ebx); /* 0x36115542: push ebx */ 12429 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12431 esp = esp - 0xCu; /* 0x36115543: sub esp, 0xc */ 12432 _flag_k = FK_CMP; 12433 ecx = esp; /* 0x36115546: mov ecx, esp */ 12434 MEM32(ecx) = edx; /* 0x36115548: mov dword ptr [ecx], edx */ 12435 edx = MEM32(edi + 0x4); /* 0x3611554A: mov edx, dword ptr [edi + 4] */ 12436 MEM32(ecx + 0x4) = edx; /* 0x3611554D: mov dword ptr [ecx + 4], edx */ 12437 edx = MEM32(edi + 0x8); /* 0x36115550: mov edx, dword ptr [edi + 8] */ 12438 MEM32(ecx + 0x8) = edx; /* 0x36115553: mov dword ptr [ecx + 8], edx */ 12439 PUSH32(esp, eax); /* 0x36115556: push eax */ 12440 ecx = esi; /* 0x36115557: mov ecx, esi */ 12441 MEM32(ebp + (-0x20)) = ebx; /* 0x36115559: mov dword ptr [ebp - 0x20], ebx */ 12442 MEM32(ebp + (-0x1C)) = ebx; /* 0x3611555C: mov dword ptr [ebp - 0x1c], ebx */ 12443 MEM32(ebp + (-0x18)) = ebx; /* 0x3611555F: mov dword ptr [ebp - 0x18], ebx */ 12444 RECOMP_ICALL(0x3601CBF0u); /* 0x36115562: call 0x3601cbf0 */ /* not lifted */ 12445 RECOMP_FLAGS_IN(); 12446 ecx = MEM32(ebp + (-0xC)); /* 0x36115567: mov ecx, dword ptr [ebp - 0xc] */ 12447 MEM32(FS_BASE + (0)) = ecx; /* 0x3611556A: mov dword ptr fs:[0], ecx */ 12448 edi = POP32_VAL(esp); /* 0x36115571: pop edi */ 12449 esi = POP32_VAL(esp); /* 0x36115572: pop esi */ 12450 ebx = POP32_VAL(esp); /* 0x36115573: pop ebx */ 12451 esp = ebp; /* 0x36115574: mov esp, ebp */ 12452 ebp = POP32_VAL(esp); /* 0x36115576: pop ebp */ 12453 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115577: ret */ 12454 L_36115578: 12455 PUSH32(esp, 0x240u); /* 0x36115578: push 0x240 */ 12456 RECOMP_ICALL(0x3615FD6Au); /* 0x3611557D: call 0x3615fd6a */ /* not lifted */ 12457 RECOMP_FLAGS_IN(); 12458 edi = eax; /* 0x36115582: mov edi, eax */ 12459 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12461 esp = esp + 4; /* 0x36115584: add esp, 4 */ 12462 _flag_k = FK_ADD; 12463 MEM32(ebp + (-0x14)) = edi; /* 0x36115587: mov dword ptr [ebp - 0x14], edi */ 12464 /* cmp edi, ebx */ /* 0x3611558A: cmp edi, ebx */ 12465 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 12466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12467 _flag_k = FK_CMP; 12468 MEM32(ebp + (-0x4)) = ebx; /* 0x3611558C: mov dword ptr [ebp - 4], ebx */ 12469 if (CMP_EQ(_flag_a, _flag_b)) goto L_361155F2; /* 0x3611558F: je 0x361155f2 */ 12470 L_36115591: 12471 PUSH32(esp, ebx); /* 0x36115591: push ebx */ 12472 PUSH32(esp, ebx); /* 0x36115592: push ebx */ 12473 PUSH32(esp, ebx); /* 0x36115593: push ebx */ 12474 PUSH32(esp, 1); /* 0x36115594: push 1 */ 12475 PUSH32(esp, 0xDu); /* 0x36115596: push 0xd */ 12476 RECOMP_ICALL(0x360F7B00u); /* 0x36115598: call 0x360f7b00 */ /* not lifted */ 12477 RECOMP_FLAGS_IN(); 12478 ecx = eax; /* 0x3611559D: mov ecx, eax */ 12479 RECOMP_ICALL(0x360FBE40u); /* 0x3611559F: call 0x360fbe40 */ /* not lifted */ 12480 RECOMP_FLAGS_IN(); 12481 PUSH32(esp, eax); /* 0x361155A4: push eax */ 12482 PUSH32(esp, ebx); /* 0x361155A5: push ebx */ 12483 PUSH32(esp, 0x3F800000u); /* 0x361155A6: push 0x3f800000 */ 12484 PUSH32(esp, 0x3F800000u); /* 0x361155AB: push 0x3f800000 */ 12485 PUSH32(esp, 8); /* 0x361155B0: push 8 */ 12486 ecx = edi; /* 0x361155B2: mov ecx, edi */ 12487 RECOMP_ICALL(MEM32(0x3616F9B0)); /* 0x361155B4: call dword ptr [0x3616f9b0] */ 12488 RECOMP_FLAGS_IN(); 12489 MEM32(edi) = 0x361758ECu; /* 0x361155BA: mov dword ptr [edi], 0x361758ec */ 12490 MEM32(edi + 0x8) = 0x361758DCu; /* 0x361155C0: mov dword ptr [edi + 8], 0x361758dc */ 12491 MEM32(edi + 0x20) = 0x361758CCu; /* 0x361155C7: mov dword ptr [edi + 0x20], 0x361758cc */ 12492 MEM32(edi + 0x38) = 0x361758BCu; /* 0x361155CE: mov dword ptr [edi + 0x38], 0x361758bc */ 12493 MEM32(edi + 0x50) = 0x361758ACu; /* 0x361155D5: mov dword ptr [edi + 0x50], 0x361758ac */ 12494 MEM32(edi + 0x138) = 0x3617589Cu; /* 0x361155DC: mov dword ptr [edi + 0x138], 0x3617589c */ 12495 MEM32(edi + 0x150) = 0x3617588Cu; /* 0x361155E6: mov dword ptr [edi + 0x150], 0x3617588c */ 12496 goto L_361155F4; /* 0x361155F0: jmp 0x361155f4 */ 12497 L_361155F2: 12498 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12499 edi = 0; /* 0x361155F2: xor edi, edi */ 12500 _cf = 0; 12501 _flag_k = FK_TEST; 12502 L_361155F4: 12503 fp_push(*(double*)ADDR(0x36176CD0)); /* 0x361155F4: fld qword ptr [0x36176cd0] */ 12504 eax = esi + 0x34; /* 0x361155FA: lea eax, [esi + 0x34] */ 12505 _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x361155FD: fsin */ 12506 PUSH32(esp, eax); /* 0x361155FF: push eax */ 12507 ecx = ebp + (-0x54); /* 0x36115600: lea ecx, [ebp - 0x54] */ 12508 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36115603: mov dword ptr [ebp - 4], 0xffffffff */ 12509 MEM32(esi + 0x80) = edi; /* 0x3611560A: mov dword ptr [esi + 0x80], edi */ 12510 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x34)) = _v; } /* 0x36115610: fstp dword ptr [ebp - 0x34] */ 12511 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x36115613: fld dword ptr [0x3617040c] */ 12512 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x30)) = _v; } /* 0x36115619: fst dword ptr [ebp - 0x30] */ 12513 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x2C)) = _v; } /* 0x3611561C: fstp dword ptr [ebp - 0x2c] */ 12514 fp_push(*(double*)ADDR(0x36176CD0)); /* 0x3611561F: fld qword ptr [0x36176cd0] */ 12515 _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x36115625: fcos */ 12516 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x36115627: fstp dword ptr [ebp - 0x28] */ 12517 RECOMP_ICALL(MEM32(0x361701A4)); /* 0x3611562A: call dword ptr [0x361701a4] */ 12518 RECOMP_FLAGS_IN(); 12519 ecx = MEM32(eax); /* 0x36115630: mov ecx, dword ptr [eax] */ 12520 edx = MEM32(eax + 0x4); /* 0x36115632: mov edx, dword ptr [eax + 4] */ 12521 MEM32(ebp + (-0x24)) = ecx; /* 0x36115635: mov dword ptr [ebp - 0x24], ecx */ 12522 ecx = MEM32(eax + 0x8); /* 0x36115638: mov ecx, dword ptr [eax + 8] */ 12523 MEM32(ebp + (-0x20)) = edx; /* 0x3611563B: mov dword ptr [ebp - 0x20], edx */ 12524 edx = MEM32(eax + 0xC); /* 0x3611563E: mov edx, dword ptr [eax + 0xc] */ 12525 MEM32(ebp + (-0x1C)) = ecx; /* 0x36115641: mov dword ptr [ebp - 0x1c], ecx */ 12526 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x36115644: fld dword ptr [ebp - 0x1c] */ 12527 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36115647: fmul dword ptr [ebp - 0x30] */ 12528 MEM32(ebp + (-0x18)) = edx; /* 0x3611564A: mov dword ptr [ebp - 0x18], edx */ 12529 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3611564D: fld dword ptr [ebp - 0x18] */ 12530 _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x36115650: fmul dword ptr [ebp - 0x34] */ 12531 { double _v = fp_pop(); _st[0] += _v; } /* 0x36115653: faddp st(1) */ 12532 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36115655: fld dword ptr [ebp - 0x20] */ 12533 _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x36115658: fmul dword ptr [ebp - 0x2c] */ 12534 { double _v = fp_pop(); _st[0] -= _v; } /* 0x3611565B: fsubp st(1) */ 12535 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3611565D: fld dword ptr [ebp - 0x28] */ 12536 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36115660: fmul dword ptr [ebp - 0x24] */ 12537 { double _v = fp_pop(); _st[0] += _v; } /* 0x36115663: faddp st(1) */ 12538 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36115665: fld dword ptr [ebp - 0x20] */ 12539 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x36115668: fmul dword ptr [ebp - 0x28] */ 12540 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3611566B: fld dword ptr [ebp - 0x1c] */ 12541 _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3611566E: fmul dword ptr [ebp - 0x34] */ 12542 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36115671: fsubp st(1) */ 12543 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x36115673: fld dword ptr [ebp - 0x18] */ 12544 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x36115676: fmul dword ptr [ebp - 0x30] */ 12545 { double _v = fp_pop(); _st[0] += _v; } /* 0x36115679: faddp st(1) */ 12546 fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x3611567B: fld dword ptr [ebp - 0x2c] */ 12547 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3611567E: fmul dword ptr [ebp - 0x24] */ 12548 { double _v = fp_pop(); _st[0] += _v; } /* 0x36115681: faddp st(1) */ 12549 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x36115683: fstp dword ptr [ebp - 0x10] */ 12550 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x36115686: fld dword ptr [ebp - 0x20] */ 12551 eax = MEM32(ebp + (-0x10)); /* 0x36115689: mov eax, dword ptr [ebp - 0x10] */ 12552 _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x3611568C: fmul dword ptr [ebp - 0x34] */ 12553 MEM32(ebp + (-0x40)) = eax; /* 0x3611568F: mov dword ptr [ebp - 0x40], eax */ 12554 fp_push(*(float*)&MEM32(ebp + (-0x30))); /* 0x36115692: fld dword ptr [ebp - 0x30] */ 12555 _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x36115695: fmul dword ptr [ebp - 0x24] */ 12556 { double _v = fp_pop(); _st[0] -= _v; } /* 0x36115698: fsubp st(1) */ 12557 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3611569A: fld dword ptr [ebp - 0x1c] */ 12558 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x3611569D: fmul dword ptr [ebp - 0x28] */ 12559 { double _v = fp_pop(); _st[0] += _v; } /* 0x361156A0: faddp st(1) */ 12560 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361156A2: fld dword ptr [ebp - 0x18] */ 12561 _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x361156A5: fmul dword ptr [ebp - 0x2c] */ 12562 { double _v = fp_pop(); _st[0] += _v; } /* 0x361156A8: faddp st(1) */ 12563 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x361156AA: fstp dword ptr [ebp - 0x14] */ 12564 ecx = MEM32(ebp + (-0x14)); /* 0x361156AD: mov ecx, dword ptr [ebp - 0x14] */ 12565 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x361156B0: fld dword ptr [ebp - 0x18] */ 12566 MEM32(ebp + (-0x3C)) = ecx; /* 0x361156B3: mov dword ptr [ebp - 0x3c], ecx */ 12567 _st[0] *= (double)*(float*)ADDR(ebp + (-0x28)); /* 0x361156B6: fmul dword ptr [ebp - 0x28] */ 12568 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x361156B9: fld dword ptr [ebp - 0x1c] */ 12569 MEM32(ebp + (-0x1C)) = ecx; /* 0x361156BC: mov dword ptr [ebp - 0x1c], ecx */ 12570 _st[0] *= (double)*(float*)ADDR(ebp + (-0x2C)); /* 0x361156BF: fmul dword ptr [ebp - 0x2c] */ 12571 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x361156C2: fld dword ptr [ebp - 0x20] */ 12572 MEM32(ebp + (-0x20)) = eax; /* 0x361156C5: mov dword ptr [ebp - 0x20], eax */ 12573 _st[0] *= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x361156C8: fmul dword ptr [ebp - 0x30] */ 12574 { double _v = fp_pop(); _st[0] += _v; } /* 0x361156CB: faddp st(1) */ 12575 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x361156CD: fld dword ptr [ebp - 0x24] */ 12576 _st[0] *= (double)*(float*)ADDR(ebp + (-0x34)); /* 0x361156D0: fmul dword ptr [ebp - 0x34] */ 12577 { double _v = fp_pop(); _st[0] += _v; } /* 0x361156D3: faddp st(1) */ 12578 { double _v = fp_pop(); _st[0] -= _v; } /* 0x361156D5: fsubp st(1) */ 12579 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x361156D7: fstp dword ptr [ebp - 0x18] */ 12580 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x361156DA: fstp dword ptr [ebp - 0x24] */ 12581 edx = MEM32(ebp + (-0x24)); /* 0x361156DD: mov edx, dword ptr [ebp - 0x24] */ 12582 MEM32(ebp + (-0x44)) = edx; /* 0x361156E0: mov dword ptr [ebp - 0x44], edx */ 12583 edx = MEM32(ebp + (-0x18)); /* 0x361156E3: mov edx, dword ptr [ebp - 0x18] */ 12584 MEM32(ebp + (-0x38)) = edx; /* 0x361156E6: mov dword ptr [ebp - 0x38], edx */ 12585 ecx = MEM32(esi + 0x80); /* 0x361156E9: mov ecx, dword ptr [esi + 0x80] */ 12586 PUSH32(esp, ebx); /* 0x361156EF: push ebx */ 12587 eax = ebp + (-0x44); /* 0x361156F0: lea eax, [ebp - 0x44] */ 12588 PUSH32(esp, eax); /* 0x361156F3: push eax */ 12589 RECOMP_ICALL(MEM32(0x3616F9AC)); /* 0x361156F4: call dword ptr [0x3616f9ac] */ 12590 RECOMP_FLAGS_IN(); 12591 ecx = MEM32(esi + 0x80); /* 0x361156FA: mov ecx, dword ptr [esi + 0x80] */ 12592 RECOMP_ICALL(MEM32(0x3616F5F8)); /* 0x36115700: call dword ptr [0x3616f5f8] */ 12593 RECOMP_FLAGS_IN(); 12594 L_36115706: 12595 ecx = MEM32(ebp + (-0xC)); /* 0x36115706: mov ecx, dword ptr [ebp - 0xc] */ 12596 edi = POP32_VAL(esp); /* 0x36115709: pop edi */ 12597 esi = POP32_VAL(esp); /* 0x3611570A: pop esi */ 12598 MEM32(FS_BASE + (0)) = ecx; /* 0x3611570B: mov dword ptr fs:[0], ecx */ 12599 ebx = POP32_VAL(esp); /* 0x36115712: pop ebx */ 12600 esp = ebp; /* 0x36115713: mov esp, ebp */ 12601 ebp = POP32_VAL(esp); /* 0x36115715: pop ebp */ 12602 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115716: ret */ 12603 RECOMP_REGS_OUT(); 12604 } 12605 12606 void sub_36115720(void) { 12607 int _fpu_cmp = 0; 12608 uint32_t _cf = 0; 12609 int _df = 1; 12610 uint32_t _flag_k = FK_NONE; 12611 uint32_t _flag_a = 0, _flag_b = 0; 12612 uint32_t _itail_tgt = 0; 12613 RECOMP_REGS_LOCALS 12614 RECOMP_ENTER(0x36115720u); 12615 12616 L_36115720: 12617 PUSH32(esp, ebp); /* 0x36115720: push ebp */ 12618 ebp = esp; /* 0x36115721: mov ebp, esp */ 12619 PUSH32(esp, 0xFFFFFFFFu); /* 0x36115723: push -1 */ 12620 PUSH32(esp, 0x3616AFF3u); /* 0x36115725: push 0x3616aff3 */ 12621 eax = MEM32(FS_BASE + (0)); /* 0x3611572A: mov eax, dword ptr fs:[0] */ 12622 PUSH32(esp, eax); /* 0x36115730: push eax */ 12623 MEM32(FS_BASE + (0)) = esp; /* 0x36115731: mov dword ptr fs:[0], esp */ 12624 PUSH32(esp, ecx); /* 0x36115738: push ecx */ 12625 eax = MEM32(ebp + 0x8); /* 0x36115739: mov eax, dword ptr [ebp + 8] */ 12626 PUSH32(esp, ebx); /* 0x3611573C: push ebx */ 12627 PUSH32(esp, esi); /* 0x3611573D: push esi */ 12628 PUSH32(esp, edi); /* 0x3611573E: push edi */ 12629 esi = ecx; /* 0x3611573F: mov esi, ecx */ 12630 PUSH32(esp, eax); /* 0x36115741: push eax */ 12631 MEM32(ebp + (-0x10)) = esi; /* 0x36115742: mov dword ptr [ebp - 0x10], esi */ 12632 RECOMP_ICALL(0x360FC270u); /* 0x36115745: call 0x360fc270 */ /* not lifted */ 12633 RECOMP_FLAGS_IN(); 12634 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12635 ebx = 0; /* 0x3611574A: xor ebx, ebx */ 12636 _cf = 0; 12637 _flag_k = FK_TEST; 12638 ecx = esi; /* 0x3611574C: mov ecx, esi */ 12639 MEM32(ebp + (-0x4)) = ebx; /* 0x3611574E: mov dword ptr [ebp - 4], ebx */ 12640 MEM32(esi + 0x20) = ebx; /* 0x36115751: mov dword ptr [esi + 0x20], ebx */ 12641 MEM32(esi + 0x88) = ebx; /* 0x36115754: mov dword ptr [esi + 0x88], ebx */ 12642 MEM32(esi) = 0x36176CDCu; /* 0x3611575A: mov dword ptr [esi], 0x36176cdc */ 12643 RECOMP_ICALL(0x361083B0u); /* 0x36115760: call 0x361083b0 */ /* not lifted */ 12644 RECOMP_FLAGS_IN(); 12645 ecx = MEM32(esi + 0x4); /* 0x36115765: mov ecx, dword ptr [esi + 4] */ 12646 PUSH32(esp, ecx); /* 0x36115768: push ecx */ 12647 RECOMP_ICALL(0x360F7B00u); /* 0x36115769: call 0x360f7b00 */ /* not lifted */ 12648 RECOMP_FLAGS_IN(); 12649 ecx = eax; /* 0x3611576E: mov ecx, eax */ 12650 RECOMP_ICALL(0x360FBFF0u); /* 0x36115770: call 0x360fbff0 */ /* not lifted */ 12651 RECOMP_FLAGS_IN(); 12652 ecx = eax; /* 0x36115775: mov ecx, eax */ 12653 RECOMP_ICALL(0x361371A0u); /* 0x36115777: call 0x361371a0 */ /* not lifted */ 12654 RECOMP_FLAGS_IN(); 12655 PUSH32(esp, 0x10Cu); /* 0x3611577C: push 0x10c */ 12656 edi = eax; /* 0x36115781: mov edi, eax */ 12657 RECOMP_ICALL(0x3615FD6Au); /* 0x36115783: call 0x3615fd6a */ /* not lifted */ 12658 RECOMP_FLAGS_IN(); 12659 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12660 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12661 esp = esp + 4; /* 0x36115788: add esp, 4 */ 12662 _flag_k = FK_ADD; 12663 MEM32(ebp + 0x8) = eax; /* 0x3611578B: mov dword ptr [ebp + 8], eax */ 12664 /* cmp eax, ebx */ /* 0x3611578E: cmp eax, ebx */ 12665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12667 _flag_k = FK_CMP; 12668 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36115790: mov byte ptr [ebp - 4], 1 */ 12669 if (CMP_EQ(_flag_a, _flag_b)) goto L_3611579F; /* 0x36115794: je 0x3611579f */ 12670 L_36115796: 12671 ecx = eax; /* 0x36115796: mov ecx, eax */ 12672 RECOMP_ICALL(0x36132920u); /* 0x36115798: call 0x36132920 */ /* not lifted */ 12673 RECOMP_FLAGS_IN(); 12674 goto L_361157A1; /* 0x3611579D: jmp 0x361157a1 */ 12675 L_3611579F: 12676 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12677 eax = 0; /* 0x3611579F: xor eax, eax */ 12678 _cf = 0; 12679 _flag_k = FK_TEST; 12680 L_361157A1: 12681 MEM32(esi + 0x20) = eax; /* 0x361157A1: mov dword ptr [esi + 0x20], eax */ 12682 eax = MEM32(esi + 0x28); /* 0x361157A4: mov eax, dword ptr [esi + 0x28] */ 12683 edx = eax; /* 0x361157A7: mov edx, eax */ 12684 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 12685 edx = edx & 2; /* 0x361157A9: and edx, 2 */ 12686 _cf = 0; 12687 _flag_k = FK_TEST; 12688 /* cmp LO8(edx), 2 */ /* 0x361157AC: cmp dl, 2 */ 12689 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(2) << 24; 12690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12691 _flag_k = FK_NARROW(FK_CMP, 24); 12692 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361157AF: sete cl */ 12693 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12694 eax = eax & 1; /* 0x361157B2: and eax, 1 */ 12695 _cf = 0; 12696 _flag_k = FK_TEST; 12697 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12698 SET_LO8(eax, LO8(eax) - 1); /* 0x361157B5: dec al */ 12699 _flag_k = FK_NARROW(FK_DEC, 24); 12700 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12701 _cf = (LO8(eax)) != 0; 12702 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x361157B7: neg al */ 12703 _flag_k = FK_NARROW(FK_CMP, 24); 12704 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x361157B9: sbb al, al */ 12705 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 12706 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 12707 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 12708 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12709 SET_LO8(eax, LO8(eax) + 1); /* 0x361157BB: inc al */ 12710 _flag_k = FK_NARROW(FK_INC, 24); 12711 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x361157BD: mov byte ptr [ebp - 4], bl */ 12712 PUSH32(esp, ecx); /* 0x361157C0: push ecx */ 12713 ecx = edi; /* 0x361157C1: mov ecx, edi */ 12714 PUSH32(esp, eax); /* 0x361157C3: push eax */ 12715 PUSH32(esp, 7); /* 0x361157C4: push 7 */ 12716 RECOMP_ICALL(0x36136FE0u); /* 0x361157C6: call 0x36136fe0 */ /* not lifted */ 12717 RECOMP_FLAGS_IN(); 12718 edx = MEM32(esi + 0x28); /* 0x361157CB: mov edx, dword ptr [esi + 0x28] */ 12719 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 12720 edx = edx & 4; /* 0x361157CE: and edx, 4 */ 12721 _cf = 0; 12722 _flag_k = FK_TEST; 12723 PUSH32(esp, eax); /* 0x361157D1: push eax */ 12724 /* cmp LO8(edx), 4 */ /* 0x361157D2: cmp dl, 4 */ 12725 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(4) << 24; 12726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12727 _flag_k = FK_NARROW(FK_CMP, 24); 12728 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361157D5: sete al */ 12729 ecx = edi; /* 0x361157D8: mov ecx, edi */ 12730 PUSH32(esp, eax); /* 0x361157DA: push eax */ 12731 PUSH32(esp, 6); /* 0x361157DB: push 6 */ 12732 RECOMP_ICALL(0x36137010u); /* 0x361157DD: call 0x36137010 */ /* not lifted */ 12733 RECOMP_FLAGS_IN(); 12734 PUSH32(esp, ecx); /* 0x361157E2: push ecx */ 12735 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361157E3: fstp dword ptr [esp] */ 12736 PUSH32(esp, 5); /* 0x361157E6: push 5 */ 12737 ecx = edi; /* 0x361157E8: mov ecx, edi */ 12738 RECOMP_ICALL(0x36137010u); /* 0x361157EA: call 0x36137010 */ /* not lifted */ 12739 RECOMP_FLAGS_IN(); 12740 PUSH32(esp, ecx); /* 0x361157EF: push ecx */ 12741 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361157F0: fstp dword ptr [esp] */ 12742 PUSH32(esp, 4); /* 0x361157F3: push 4 */ 12743 ecx = edi; /* 0x361157F5: mov ecx, edi */ 12744 RECOMP_ICALL(0x36137010u); /* 0x361157F7: call 0x36137010 */ /* not lifted */ 12745 RECOMP_FLAGS_IN(); 12746 PUSH32(esp, ecx); /* 0x361157FC: push ecx */ 12747 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x361157FD: fstp dword ptr [esp] */ 12748 PUSH32(esp, 3); /* 0x36115800: push 3 */ 12749 ecx = edi; /* 0x36115802: mov ecx, edi */ 12750 RECOMP_ICALL(0x36137010u); /* 0x36115804: call 0x36137010 */ /* not lifted */ 12751 RECOMP_FLAGS_IN(); 12752 PUSH32(esp, ecx); /* 0x36115809: push ecx */ 12753 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x3611580A: fstp dword ptr [esp] */ 12754 PUSH32(esp, 2); /* 0x3611580D: push 2 */ 12755 ecx = edi; /* 0x3611580F: mov ecx, edi */ 12756 RECOMP_ICALL(0x36137010u); /* 0x36115811: call 0x36137010 */ /* not lifted */ 12757 RECOMP_FLAGS_IN(); 12758 PUSH32(esp, ecx); /* 0x36115816: push ecx */ 12759 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115817: fstp dword ptr [esp] */ 12760 PUSH32(esp, 1); /* 0x3611581A: push 1 */ 12761 ecx = edi; /* 0x3611581C: mov ecx, edi */ 12762 RECOMP_ICALL(0x36137010u); /* 0x3611581E: call 0x36137010 */ /* not lifted */ 12763 RECOMP_FLAGS_IN(); 12764 PUSH32(esp, ecx); /* 0x36115823: push ecx */ 12765 ecx = MEM32(ebp + 0xC); /* 0x36115824: mov ecx, dword ptr [ebp + 0xc] */ 12766 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115827: fstp dword ptr [esp] */ 12767 PUSH32(esp, ecx); /* 0x3611582A: push ecx */ 12768 ecx = MEM32(esi + 0x20); /* 0x3611582B: mov ecx, dword ptr [esi + 0x20] */ 12769 RECOMP_ICALL(0x36132A30u); /* 0x3611582E: call 0x36132a30 */ /* not lifted */ 12770 RECOMP_FLAGS_IN(); 12771 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12772 _cf = (LO8(eax)) != 0; 12773 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115833: neg al */ 12774 _flag_k = FK_NARROW(FK_CMP, 24); 12775 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115835: sbb al, al */ 12776 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 12777 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 12778 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 12779 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 12780 SET_LO8(eax, LO8(eax) + 1); /* 0x36115837: inc al */ 12781 _flag_k = FK_NARROW(FK_INC, 24); 12782 ecx = esi; /* 0x36115839: mov ecx, esi */ 12783 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x3611583B: mov byte ptr [esi + 0x14], al */ 12784 RECOMP_ICALL(0x36115A70u); /* 0x3611583E: call 0x36115a70 */ /* not lifted */ 12785 RECOMP_FLAGS_IN(); 12786 ecx = MEM32(ebp + (-0xC)); /* 0x36115843: mov ecx, dword ptr [ebp - 0xc] */ 12787 edi = POP32_VAL(esp); /* 0x36115846: pop edi */ 12788 eax = esi; /* 0x36115847: mov eax, esi */ 12789 esi = POP32_VAL(esp); /* 0x36115849: pop esi */ 12790 ebx = POP32_VAL(esp); /* 0x3611584A: pop ebx */ 12791 MEM32(FS_BASE + (0)) = ecx; /* 0x3611584B: mov dword ptr fs:[0], ecx */ 12792 esp = ebp; /* 0x36115852: mov esp, ebp */ 12793 ebp = POP32_VAL(esp); /* 0x36115854: pop ebp */ 12794 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36115855: ret 8 */ 12795 RECOMP_REGS_OUT(); 12796 } 12797 12798 void sub_36115860(void) { 12799 int _fpu_cmp = 0; 12800 uint32_t _cf = 0; 12801 int _df = 1; 12802 uint32_t _flag_k = FK_NONE; 12803 uint32_t _flag_a = 0, _flag_b = 0; 12804 uint32_t _itail_tgt = 0; 12805 RECOMP_REGS_LOCALS 12806 RECOMP_ENTER(0x36115860u); 12807 12808 L_36115860: 12809 PUSH32(esp, ebp); /* 0x36115860: push ebp */ 12810 ebp = esp; /* 0x36115861: mov ebp, esp */ 12811 PUSH32(esp, esi); /* 0x36115863: push esi */ 12812 esi = ecx; /* 0x36115864: mov esi, ecx */ 12813 RECOMP_ICALL(0x36115890u); /* 0x36115866: call 0x36115890 */ /* not lifted */ 12814 RECOMP_FLAGS_IN(); 12815 /* test MEM8(ebp + 0x8), 1 */ /* 0x3611586B: test byte ptr [ebp + 8], 1 */ 12816 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 12817 _cf = 0; 12818 _flag_k = FK_NARROW(FK_TEST, 24); 12819 if (TEST_Z(_flag_a, _flag_b)) goto L_3611587A; /* 0x3611586F: je 0x3611587a */ 12820 L_36115871: 12821 PUSH32(esp, esi); /* 0x36115871: push esi */ 12822 RECOMP_ICALL(0x3615FCC4u); /* 0x36115872: call 0x3615fcc4 */ /* not lifted */ 12823 RECOMP_FLAGS_IN(); 12824 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12825 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12826 esp = esp + 4; /* 0x36115877: add esp, 4 */ 12827 _flag_k = FK_ADD; 12828 L_3611587A: 12829 eax = esi; /* 0x3611587A: mov eax, esi */ 12830 esi = POP32_VAL(esp); /* 0x3611587C: pop esi */ 12831 ebp = POP32_VAL(esp); /* 0x3611587D: pop ebp */ 12832 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3611587E: ret 4 */ 12833 RECOMP_REGS_OUT(); 12834 } 12835 12836 void sub_36115890(void) { 12837 int _fpu_cmp = 0; 12838 uint32_t _cf = 0; 12839 int _df = 1; 12840 uint32_t _flag_k = FK_NONE; 12841 uint32_t _flag_a = 0, _flag_b = 0; 12842 uint32_t _itail_tgt = 0; 12843 RECOMP_REGS_LOCALS 12844 RECOMP_ENTER(0x36115890u); 12845 12846 L_36115890: 12847 PUSH32(esp, ebp); /* 0x36115890: push ebp */ 12848 ebp = esp; /* 0x36115891: mov ebp, esp */ 12849 PUSH32(esp, 0xFFFFFFFFu); /* 0x36115893: push -1 */ 12850 PUSH32(esp, 0x3616B008u); /* 0x36115895: push 0x3616b008 */ 12851 eax = MEM32(FS_BASE + (0)); /* 0x3611589A: mov eax, dword ptr fs:[0] */ 12852 PUSH32(esp, eax); /* 0x361158A0: push eax */ 12853 MEM32(FS_BASE + (0)) = esp; /* 0x361158A1: mov dword ptr fs:[0], esp */ 12854 PUSH32(esp, ecx); /* 0x361158A8: push ecx */ 12855 PUSH32(esp, esi); /* 0x361158A9: push esi */ 12856 esi = ecx; /* 0x361158AA: mov esi, ecx */ 12857 PUSH32(esp, edi); /* 0x361158AC: push edi */ 12858 MEM32(ebp + (-0x10)) = esi; /* 0x361158AD: mov dword ptr [ebp - 0x10], esi */ 12859 MEM32(esi) = 0x36176CDCu; /* 0x361158B0: mov dword ptr [esi], 0x36176cdc */ 12860 edi = MEM32(esi + 0x20); /* 0x361158B6: mov edi, dword ptr [esi + 0x20] */ 12861 /* test edi, edi */ /* 0x361158B9: test edi, edi */ 12862 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 12863 _cf = 0; 12864 _flag_k = FK_TEST; 12865 MEM32(ebp + (-0x4)) = 0; /* 0x361158BB: mov dword ptr [ebp - 4], 0 */ 12866 if (TEST_Z(_flag_a, _flag_b)) goto L_361158DB; /* 0x361158C2: je 0x361158db */ 12867 L_361158C4: 12868 ecx = edi; /* 0x361158C4: mov ecx, edi */ 12869 RECOMP_ICALL(0x360E2940u); /* 0x361158C6: call 0x360e2940 */ /* not lifted */ 12870 RECOMP_FLAGS_IN(); 12871 PUSH32(esp, edi); /* 0x361158CB: push edi */ 12872 RECOMP_ICALL(0x3615FCC4u); /* 0x361158CC: call 0x3615fcc4 */ /* not lifted */ 12873 RECOMP_FLAGS_IN(); 12874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12876 esp = esp + 4; /* 0x361158D1: add esp, 4 */ 12877 _flag_k = FK_ADD; 12878 MEM32(esi + 0x20) = 0; /* 0x361158D4: mov dword ptr [esi + 0x20], 0 */ 12879 L_361158DB: 12880 ecx = MEM32(esi + 0x24); /* 0x361158DB: mov ecx, dword ptr [esi + 0x24] */ 12881 /* test ecx, ecx */ /* 0x361158DE: test ecx, ecx */ 12882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12883 _cf = 0; 12884 _flag_k = FK_TEST; 12885 if (TEST_Z(_flag_a, _flag_b)) goto L_361158E8; /* 0x361158E0: je 0x361158e8 */ 12886 L_361158E2: 12887 eax = MEM32(ecx); /* 0x361158E2: mov eax, dword ptr [ecx] */ 12888 PUSH32(esp, 1); /* 0x361158E4: push 1 */ 12889 RECOMP_ICALL(MEM32(eax)); /* 0x361158E6: call dword ptr [eax] */ 12890 RECOMP_FLAGS_IN(); 12891 L_361158E8: 12892 ecx = esi; /* 0x361158E8: mov ecx, esi */ 12893 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x361158EA: mov dword ptr [ebp - 4], 0xffffffff */ 12894 RECOMP_ICALL(0x360FC2F0u); /* 0x361158F1: call 0x360fc2f0 */ /* not lifted */ 12895 RECOMP_FLAGS_IN(); 12896 ecx = MEM32(ebp + (-0xC)); /* 0x361158F6: mov ecx, dword ptr [ebp - 0xc] */ 12897 edi = POP32_VAL(esp); /* 0x361158F9: pop edi */ 12898 esi = POP32_VAL(esp); /* 0x361158FA: pop esi */ 12899 MEM32(FS_BASE + (0)) = ecx; /* 0x361158FB: mov dword ptr fs:[0], ecx */ 12900 esp = ebp; /* 0x36115902: mov esp, ebp */ 12901 ebp = POP32_VAL(esp); /* 0x36115904: pop ebp */ 12902 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115905: ret */ 12903 RECOMP_REGS_OUT(); 12904 } 12905 12906 void sub_36115910(void) { 12907 int _fpu_cmp = 0; 12908 uint32_t _cf = 0; 12909 int _df = 1; 12910 uint32_t _flag_k = FK_NONE; 12911 uint32_t _flag_a = 0, _flag_b = 0; 12912 uint32_t _itail_tgt = 0; 12913 RECOMP_REGS_LOCALS 12914 RECOMP_ENTER(0x36115910u); 12915 12916 L_36115910: 12917 PUSH32(esp, esi); /* 0x36115910: push esi */ 12918 esi = ecx; /* 0x36115911: mov esi, ecx */ 12919 RECOMP_ICALL(0x360FC300u); /* 0x36115913: call 0x360fc300 */ /* not lifted */ 12920 RECOMP_FLAGS_IN(); 12921 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36115918: mov al, byte ptr [esi + 0x14] */ 12922 /* test LO8(eax), LO8(eax) */ /* 0x3611591B: test al, al */ 12923 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12924 _cf = 0; 12925 _flag_k = FK_NARROW(FK_TEST, 24); 12926 if (TEST_NZ(_flag_a, _flag_b)) goto L_36115943; /* 0x3611591D: jne 0x36115943 */ 12927 L_3611591F: 12928 ecx = MEM32(esi + 0x20); /* 0x3611591F: mov ecx, dword ptr [esi + 0x20] */ 12929 RECOMP_ICALL(0x361331E0u); /* 0x36115922: call 0x361331e0 */ /* not lifted */ 12930 RECOMP_FLAGS_IN(); 12931 /* test LO8(eax), LO8(eax) */ /* 0x36115927: test al, al */ 12932 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12933 _cf = 0; 12934 _flag_k = FK_NARROW(FK_TEST, 24); 12935 if (TEST_NZ(_flag_a, _flag_b)) goto L_3611593A; /* 0x36115929: jne 0x3611593a */ 12936 L_3611592B: 12937 eax = MEM32(esi + 0x20); /* 0x3611592B: mov eax, dword ptr [esi + 0x20] */ 12938 MEM8(eax) = (uint8_t)(0); /* 0x3611592E: mov byte ptr [eax], 0 */ 12939 fp_push(*(float*)&MEM32(esi + 0x70)); /* 0x36115931: fld dword ptr [esi + 0x70] */ 12940 _st[0] += (double)*(float*)ADDR(esi + 0xC); /* 0x36115934: fadd dword ptr [esi + 0xc] */ 12941 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x10) = _v; } /* 0x36115937: fstp dword ptr [esi + 0x10] */ 12942 L_3611593A: 12943 ecx = MEM32(esi + 0x24); /* 0x3611593A: mov ecx, dword ptr [esi + 0x24] */ 12944 RECOMP_ICALL(MEM32(0x3616F800)); /* 0x3611593D: call dword ptr [0x3616f800] */ 12945 RECOMP_FLAGS_IN(); 12946 L_36115943: 12947 esi = POP32_VAL(esp); /* 0x36115943: pop esi */ 12948 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115944: ret */ 12949 RECOMP_REGS_OUT(); 12950 } 12951 12952 void sub_36115950(void) { 12953 int _fpu_cmp = 0; 12954 uint32_t _cf = 0; 12955 int _df = 1; 12956 uint32_t _flag_k = FK_NONE; 12957 uint32_t _flag_a = 0, _flag_b = 0; 12958 uint32_t _itail_tgt = 0; 12959 RECOMP_REGS_LOCALS 12960 RECOMP_ENTER(0x36115950u); 12961 12962 L_36115950: 12963 PUSH32(esp, ebp); /* 0x36115950: push ebp */ 12964 ebp = esp; /* 0x36115951: mov ebp, esp */ 12965 eax = MEM32(ebp + 0x8); /* 0x36115953: mov eax, dword ptr [ebp + 8] */ 12966 edx = MEM32(ebp + 0xC); /* 0x36115956: mov edx, dword ptr [ebp + 0xc] */ 12967 MEM32(ecx + 0x50) = eax; /* 0x36115959: mov dword ptr [ecx + 0x50], eax */ 12968 eax = MEM32(ebp + 0x10); /* 0x3611595C: mov eax, dword ptr [ebp + 0x10] */ 12969 MEM32(ecx + 0x54) = edx; /* 0x3611595F: mov dword ptr [ecx + 0x54], edx */ 12970 edx = MEM32(ebp + 0x14); /* 0x36115962: mov edx, dword ptr [ebp + 0x14] */ 12971 MEM32(ecx + 0x58) = eax; /* 0x36115965: mov dword ptr [ecx + 0x58], eax */ 12972 MEM32(ecx + 0x5C) = edx; /* 0x36115968: mov dword ptr [ecx + 0x5c], edx */ 12973 ebp = POP32_VAL(esp); /* 0x3611596B: pop ebp */ 12974 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3611596C: ret 0x10 */ 12975 RECOMP_REGS_OUT(); 12976 } 12977 12978 void sub_36115970(void) { 12979 int _fpu_cmp = 0; 12980 uint32_t _cf = 0; 12981 int _df = 1; 12982 uint32_t _flag_k = FK_NONE; 12983 uint32_t _flag_a = 0, _flag_b = 0; 12984 uint32_t _itail_tgt = 0; 12985 RECOMP_REGS_LOCALS 12986 RECOMP_ENTER(0x36115970u); 12987 12988 L_36115970: 12989 PUSH32(esp, ebp); /* 0x36115970: push ebp */ 12990 ebp = esp; /* 0x36115971: mov ebp, esp */ 12991 eax = MEM32(ebp + 0x8); /* 0x36115973: mov eax, dword ptr [ebp + 8] */ 12992 edx = MEM32(ebp + 0xC); /* 0x36115976: mov edx, dword ptr [ebp + 0xc] */ 12993 MEM32(ecx + 0x60) = eax; /* 0x36115979: mov dword ptr [ecx + 0x60], eax */ 12994 eax = MEM32(ebp + 0x10); /* 0x3611597C: mov eax, dword ptr [ebp + 0x10] */ 12995 MEM32(ecx + 0x64) = edx; /* 0x3611597F: mov dword ptr [ecx + 0x64], edx */ 12996 edx = MEM32(ebp + 0x14); /* 0x36115982: mov edx, dword ptr [ebp + 0x14] */ 12997 MEM32(ecx + 0x68) = eax; /* 0x36115985: mov dword ptr [ecx + 0x68], eax */ 12998 MEM32(ecx + 0x6C) = edx; /* 0x36115988: mov dword ptr [ecx + 0x6c], edx */ 12999 ebp = POP32_VAL(esp); /* 0x3611598B: pop ebp */ 13000 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3611598C: ret 0x10 */ 13001 RECOMP_REGS_OUT(); 13002 } 13003 13004 void sub_36115990(void) { 13005 int _fpu_cmp = 0; 13006 uint32_t _cf = 0; 13007 int _df = 1; 13008 uint32_t _flag_k = FK_NONE; 13009 uint32_t _flag_a = 0, _flag_b = 0; 13010 uint32_t _itail_tgt = 0; 13011 RECOMP_REGS_LOCALS 13012 RECOMP_ENTER(0x36115990u); 13013 13014 L_36115990: 13015 PUSH32(esp, ebp); /* 0x36115990: push ebp */ 13016 ebp = esp; /* 0x36115991: mov ebp, esp */ 13017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13019 esp = esp - 8; /* 0x36115993: sub esp, 8 */ 13020 _flag_k = FK_CMP; 13021 edx = MEM32(ebp + 0x8); /* 0x36115996: mov edx, dword ptr [ebp + 8] */ 13022 eax = edx; /* 0x36115999: mov eax, edx */ 13023 if (24u) _cf = (((eax) >> 23) & 1u); /* 0x3611599B: shr eax, 0x18 */ 13024 if (24u) { _flag_a = recomp_flags_pack((eax >> 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13025 eax = eax >> 24u; /* 0x3611599B: shr eax, 0x18 */ 13026 PUSH32(esp, esi); /* 0x3611599E: push esi */ 13027 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13028 esi = 0; /* 0x3611599F: xor esi, esi */ 13029 _cf = 0; 13030 _flag_k = FK_TEST; 13031 MEM32(ebp + (-0x8)) = eax; /* 0x361159A1: mov dword ptr [ebp - 8], eax */ 13032 MEM32(ebp + (-0x4)) = esi; /* 0x361159A4: mov dword ptr [ebp - 4], esi */ 13033 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x361159A7: fild qword ptr [ebp - 8] */ 13034 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x361159AA: fmul dword ptr [0x36174e98] */ 13035 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361159B0: fcom dword ptr [0x36170380] */ 13036 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361159B6: fnstsw ax */ 13037 /* test HI8(eax), 0x41u */ /* 0x361159B8: test ah, 0x41 */ 13038 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13039 _cf = 0; 13040 _flag_k = FK_NARROW(FK_TEST, 24); 13041 if (TEST_NZ(_flag_a, _flag_b)) goto L_361159C5; /* 0x361159BB: jne 0x361159c5 */ 13042 L_361159BD: 13043 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361159BD: fstp st(0) */ 13044 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361159BF: fld dword ptr [0x36170380] */ 13045 L_361159C5: 13046 eax = edx; /* 0x361159C5: mov eax, edx */ 13047 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x50) = _v; } /* 0x361159C7: fstp dword ptr [ecx + 0x50] */ 13048 if (16u) _cf = (((eax) >> 15) & 1u); /* 0x361159CA: shr eax, 0x10 */ 13049 if (16u) { _flag_a = recomp_flags_pack((eax >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13050 eax = eax >> 16u; /* 0x361159CA: shr eax, 0x10 */ 13051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 13052 eax = eax & 0xFFu; /* 0x361159CD: and eax, 0xff */ 13053 _cf = 0; 13054 _flag_k = FK_TEST; 13055 MEM32(ebp + (-0x8)) = eax; /* 0x361159D2: mov dword ptr [ebp - 8], eax */ 13056 MEM32(ebp + (-0x4)) = esi; /* 0x361159D5: mov dword ptr [ebp - 4], esi */ 13057 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x361159D8: fild qword ptr [ebp - 8] */ 13058 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x361159DB: fmul dword ptr [0x36174e98] */ 13059 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x361159E1: fcom dword ptr [0x36170380] */ 13060 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x361159E7: fnstsw ax */ 13061 /* test HI8(eax), 0x41u */ /* 0x361159E9: test ah, 0x41 */ 13062 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13063 _cf = 0; 13064 _flag_k = FK_NARROW(FK_TEST, 24); 13065 if (TEST_NZ(_flag_a, _flag_b)) goto L_361159F6; /* 0x361159EC: jne 0x361159f6 */ 13066 L_361159EE: 13067 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x361159EE: fstp st(0) */ 13068 fp_push(*(float*)&MEM32(0x36170380)); /* 0x361159F0: fld dword ptr [0x36170380] */ 13069 L_361159F6: 13070 eax = edx; /* 0x361159F6: mov eax, edx */ 13071 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x54) = _v; } /* 0x361159F8: fst dword ptr [ecx + 0x54] */ 13072 if (8u) _cf = (((eax) >> 7) & 1u); /* 0x361159FB: shr eax, 8 */ 13073 if (8u) { _flag_a = recomp_flags_pack((eax >> 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13074 eax = eax >> 8u; /* 0x361159FB: shr eax, 8 */ 13075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 13076 eax = eax & 0xFFu; /* 0x361159FE: and eax, 0xff */ 13077 _cf = 0; 13078 _flag_k = FK_TEST; 13079 MEM32(ebp + (-0x8)) = eax; /* 0x36115A03: mov dword ptr [ebp - 8], eax */ 13080 MEM32(ebp + (-0x4)) = esi; /* 0x36115A06: mov dword ptr [ebp - 4], esi */ 13081 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36115A09: fild qword ptr [ebp - 8] */ 13082 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x36115A0C: fmul dword ptr [0x36174e98] */ 13083 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36115A12: fcom dword ptr [0x36170380] */ 13084 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36115A18: fnstsw ax */ 13085 /* test HI8(eax), 0x41u */ /* 0x36115A1A: test ah, 0x41 */ 13086 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13087 _cf = 0; 13088 _flag_k = FK_NARROW(FK_TEST, 24); 13089 if (TEST_NZ(_flag_a, _flag_b)) goto L_36115A27; /* 0x36115A1D: jne 0x36115a27 */ 13090 L_36115A1F: 13091 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36115A1F: fstp st(0) */ 13092 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36115A21: fld dword ptr [0x36170380] */ 13093 L_36115A27: 13094 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFu); 13095 edx = edx & 0xFFu; /* 0x36115A27: and edx, 0xff */ 13096 _cf = 0; 13097 _flag_k = FK_TEST; 13098 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x58) = _v; } /* 0x36115A2D: fst dword ptr [ecx + 0x58] */ 13099 MEM32(ebp + (-0x8)) = edx; /* 0x36115A30: mov dword ptr [ebp - 8], edx */ 13100 MEM32(ebp + (-0x4)) = esi; /* 0x36115A33: mov dword ptr [ebp - 4], esi */ 13101 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x36115A36: fild qword ptr [ebp - 8] */ 13102 _st[0] *= (double)*(float*)ADDR(0x36174E98); /* 0x36115A39: fmul dword ptr [0x36174e98] */ 13103 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36115A3F: fcom dword ptr [0x36170380] */ 13104 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36115A45: fnstsw ax */ 13105 /* test HI8(eax), 0x41u */ /* 0x36115A47: test ah, 0x41 */ 13106 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 13107 _cf = 0; 13108 _flag_k = FK_NARROW(FK_TEST, 24); 13109 if (TEST_NZ(_flag_a, _flag_b)) goto L_36115A54; /* 0x36115A4A: jne 0x36115a54 */ 13110 L_36115A4C: 13111 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36115A4C: fstp st(0) */ 13112 fp_push(*(float*)&MEM32(0x36170380)); /* 0x36115A4E: fld dword ptr [0x36170380] */ 13113 L_36115A54: 13114 { float _v = (float)_st[0]; *(float*)ADDR(ecx + 0x5C) = _v; } /* 0x36115A54: fst dword ptr [ecx + 0x5c] */ 13115 MEM32(ecx + 0x60) = esi; /* 0x36115A57: mov dword ptr [ecx + 0x60], esi */ 13116 fp_xch(2); /* 0x36115A5A: fxch st(2) */ 13117 esi = POP32_VAL(esp); /* 0x36115A5C: pop esi */ 13118 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x64) = _v; } /* 0x36115A5D: fstp dword ptr [ecx + 0x64] */ 13119 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x68) = _v; } /* 0x36115A60: fstp dword ptr [ecx + 0x68] */ 13120 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x6C) = _v; } /* 0x36115A63: fstp dword ptr [ecx + 0x6c] */ 13121 esp = ebp; /* 0x36115A66: mov esp, ebp */ 13122 ebp = POP32_VAL(esp); /* 0x36115A68: pop ebp */ 13123 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115A69: ret 4 */ 13124 RECOMP_REGS_OUT(); 13125 } 13126 13127 void sub_36115A70(void) { 13128 int _fpu_cmp = 0; 13129 uint32_t _cf = 0; 13130 int _df = 1; 13131 uint32_t _flag_k = FK_NONE; 13132 uint32_t _flag_a = 0, _flag_b = 0; 13133 uint32_t _itail_tgt = 0; 13134 RECOMP_REGS_LOCALS 13135 RECOMP_ENTER(0x36115A70u); 13136 13137 L_36115A70: 13138 PUSH32(esp, ebp); /* 0x36115A70: push ebp */ 13139 ebp = esp; /* 0x36115A71: mov ebp, esp */ 13140 PUSH32(esp, 0xFFFFFFFFu); /* 0x36115A73: push -1 */ 13141 PUSH32(esp, 0x3616B02Bu); /* 0x36115A75: push 0x3616b02b */ 13142 eax = MEM32(FS_BASE + (0)); /* 0x36115A7A: mov eax, dword ptr fs:[0] */ 13143 PUSH32(esp, eax); /* 0x36115A80: push eax */ 13144 MEM32(FS_BASE + (0)) = esp; /* 0x36115A81: mov dword ptr fs:[0], esp */ 13145 PUSH32(esp, ecx); /* 0x36115A88: push ecx */ 13146 PUSH32(esp, esi); /* 0x36115A89: push esi */ 13147 PUSH32(esp, edi); /* 0x36115A8A: push edi */ 13148 edi = ecx; /* 0x36115A8B: mov edi, ecx */ 13149 eax = MEM32(edi + 0x2C); /* 0x36115A8D: mov eax, dword ptr [edi + 0x2c] */ 13150 PUSH32(esp, eax); /* 0x36115A90: push eax */ 13151 RECOMP_ICALL(0x360F7B00u); /* 0x36115A91: call 0x360f7b00 */ /* not lifted */ 13152 RECOMP_FLAGS_IN(); 13153 ecx = eax; /* 0x36115A96: mov ecx, eax */ 13154 RECOMP_ICALL(0x360FBEE0u); /* 0x36115A98: call 0x360fbee0 */ /* not lifted */ 13155 RECOMP_FLAGS_IN(); 13156 ecx = MEM32(edi + 0x2C); /* 0x36115A9D: mov ecx, dword ptr [edi + 0x2c] */ 13157 PUSH32(esp, ecx); /* 0x36115AA0: push ecx */ 13158 RECOMP_ICALL(0x360F7B00u); /* 0x36115AA1: call 0x360f7b00 */ /* not lifted */ 13159 RECOMP_FLAGS_IN(); 13160 ecx = eax; /* 0x36115AA6: mov ecx, eax */ 13161 RECOMP_ICALL(0x360FBF20u); /* 0x36115AA8: call 0x360fbf20 */ /* not lifted */ 13162 RECOMP_FLAGS_IN(); 13163 PUSH32(esp, 0x2C0u); /* 0x36115AAD: push 0x2c0 */ 13164 RECOMP_ICALL(0x3615FD6Au); /* 0x36115AB2: call 0x3615fd6a */ /* not lifted */ 13165 RECOMP_FLAGS_IN(); 13166 esi = eax; /* 0x36115AB7: mov esi, eax */ 13167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13168 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13169 esp = esp + 4; /* 0x36115AB9: add esp, 4 */ 13170 _flag_k = FK_ADD; 13171 MEM32(ebp + (-0x10)) = esi; /* 0x36115ABC: mov dword ptr [ebp - 0x10], esi */ 13172 /* test esi, esi */ /* 0x36115ABF: test esi, esi */ 13173 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 13174 _cf = 0; 13175 _flag_k = FK_TEST; 13176 MEM32(ebp + (-0x4)) = 0; /* 0x36115AC1: mov dword ptr [ebp - 4], 0 */ 13177 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B13; /* 0x36115AC8: je 0x36115b13 */ 13178 L_36115ACA: 13179 PUSH32(esp, 0); /* 0x36115ACA: push 0 */ 13180 PUSH32(esp, 0); /* 0x36115ACC: push 0 */ 13181 PUSH32(esp, 0x1F4u); /* 0x36115ACE: push 0x1f4 */ 13182 ecx = esi; /* 0x36115AD3: mov ecx, esi */ 13183 RECOMP_ICALL(MEM32(0x3616F810)); /* 0x36115AD5: call dword ptr [0x3616f810] */ 13184 RECOMP_FLAGS_IN(); 13185 MEM32(esi) = 0x36176D84u; /* 0x36115ADB: mov dword ptr [esi], 0x36176d84 */ 13186 MEM32(esi + 0x8) = 0x36176D74u; /* 0x36115AE1: mov dword ptr [esi + 8], 0x36176d74 */ 13187 MEM32(esi + 0x20) = 0x36176D64u; /* 0x36115AE8: mov dword ptr [esi + 0x20], 0x36176d64 */ 13188 MEM32(esi + 0x38) = 0x36176D54u; /* 0x36115AEF: mov dword ptr [esi + 0x38], 0x36176d54 */ 13189 MEM32(esi + 0x50) = 0x36176D44u; /* 0x36115AF6: mov dword ptr [esi + 0x50], 0x36176d44 */ 13190 MEM32(esi + 0x138) = 0x36176D34u; /* 0x36115AFD: mov dword ptr [esi + 0x138], 0x36176d34 */ 13191 MEM32(esi + 0x150) = 0x36176D24u; /* 0x36115B07: mov dword ptr [esi + 0x150], 0x36176d24 */ 13192 goto L_36115B15; /* 0x36115B11: jmp 0x36115b15 */ 13193 L_36115B13: 13194 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13195 esi = 0; /* 0x36115B13: xor esi, esi */ 13196 _cf = 0; 13197 _flag_k = FK_TEST; 13198 L_36115B15: 13199 PUSH32(esp, esi); /* 0x36115B15: push esi */ 13200 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36115B16: mov dword ptr [ebp - 4], 0xffffffff */ 13201 MEM32(edi + 0x24) = esi; /* 0x36115B1D: mov dword ptr [edi + 0x24], esi */ 13202 RECOMP_ICALL(MEM32(0x3616F738)); /* 0x36115B20: call dword ptr [0x3616f738] */ 13203 RECOMP_FLAGS_IN(); 13204 ecx = eax; /* 0x36115B26: mov ecx, eax */ 13205 RECOMP_ICALL(MEM32(0x3616F80C)); /* 0x36115B28: call dword ptr [0x3616f80c] */ 13206 RECOMP_FLAGS_IN(); 13207 ecx = MEM32(ebp + (-0xC)); /* 0x36115B2E: mov ecx, dword ptr [ebp - 0xc] */ 13208 edi = POP32_VAL(esp); /* 0x36115B31: pop edi */ 13209 esi = POP32_VAL(esp); /* 0x36115B32: pop esi */ 13210 MEM32(FS_BASE + (0)) = ecx; /* 0x36115B33: mov dword ptr fs:[0], ecx */ 13211 esp = ebp; /* 0x36115B3A: mov esp, ebp */ 13212 ebp = POP32_VAL(esp); /* 0x36115B3C: pop ebp */ 13213 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115B3D: ret */ 13214 RECOMP_REGS_OUT(); 13215 } 13216 13217 void sub_36115B40(void) { 13218 int _fpu_cmp = 0; 13219 uint32_t _cf = 0; 13220 int _df = 1; 13221 uint32_t _flag_k = FK_NONE; 13222 uint32_t _flag_a = 0, _flag_b = 0; 13223 uint32_t _itail_tgt = 0; 13224 RECOMP_REGS_LOCALS 13225 RECOMP_ENTER(0x36115B40u); 13226 13227 L_36115B40: 13228 PUSH32(esp, ebp); /* 0x36115B40: push ebp */ 13229 ebp = esp; /* 0x36115B41: mov ebp, esp */ 13230 PUSH32(esp, esi); /* 0x36115B43: push esi */ 13231 esi = ecx; /* 0x36115B44: mov esi, ecx */ 13232 RECOMP_ICALL(MEM32(0x3616F814)); /* 0x36115B46: call dword ptr [0x3616f814] */ 13233 RECOMP_FLAGS_IN(); 13234 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115B4C: test byte ptr [ebp + 8], 1 */ 13235 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 13236 _cf = 0; 13237 _flag_k = FK_NARROW(FK_TEST, 24); 13238 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B5B; /* 0x36115B50: je 0x36115b5b */ 13239 L_36115B52: 13240 PUSH32(esp, esi); /* 0x36115B52: push esi */ 13241 RECOMP_ICALL(0x3615FCC4u); /* 0x36115B53: call 0x3615fcc4 */ /* not lifted */ 13242 RECOMP_FLAGS_IN(); 13243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13245 esp = esp + 4; /* 0x36115B58: add esp, 4 */ 13246 _flag_k = FK_ADD; 13247 L_36115B5B: 13248 eax = esi; /* 0x36115B5B: mov eax, esi */ 13249 esi = POP32_VAL(esp); /* 0x36115B5D: pop esi */ 13250 ebp = POP32_VAL(esp); /* 0x36115B5E: pop ebp */ 13251 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115B5F: ret 4 */ 13252 RECOMP_REGS_OUT(); 13253 } 13254 13255 void sub_36115B70(void) { 13256 int _fpu_cmp = 0; 13257 uint32_t _cf = 0; 13258 int _df = 1; 13259 uint32_t _flag_k = FK_NONE; 13260 uint32_t _flag_a = 0, _flag_b = 0; 13261 uint32_t _itail_tgt = 0; 13262 RECOMP_REGS_LOCALS 13263 RECOMP_ENTER(0x36115B70u); 13264 13265 goto L_36115B70; 13266 L_36115B40: 13267 PUSH32(esp, ebp); /* 0x36115B40: push ebp */ 13268 ebp = esp; /* 0x36115B41: mov ebp, esp */ 13269 PUSH32(esp, esi); /* 0x36115B43: push esi */ 13270 esi = ecx; /* 0x36115B44: mov esi, ecx */ 13271 RECOMP_ICALL(MEM32(0x3616F814)); /* 0x36115B46: call dword ptr [0x3616f814] */ 13272 RECOMP_FLAGS_IN(); 13273 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115B4C: test byte ptr [ebp + 8], 1 */ 13274 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 13275 _cf = 0; 13276 _flag_k = FK_NARROW(FK_TEST, 24); 13277 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B5B; /* 0x36115B50: je 0x36115b5b */ 13278 L_36115B52: 13279 PUSH32(esp, esi); /* 0x36115B52: push esi */ 13280 RECOMP_ICALL(0x3615FCC4u); /* 0x36115B53: call 0x3615fcc4 */ /* not lifted */ 13281 RECOMP_FLAGS_IN(); 13282 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13284 esp = esp + 4; /* 0x36115B58: add esp, 4 */ 13285 _flag_k = FK_ADD; 13286 L_36115B5B: 13287 eax = esi; /* 0x36115B5B: mov eax, esi */ 13288 esi = POP32_VAL(esp); /* 0x36115B5D: pop esi */ 13289 ebp = POP32_VAL(esp); /* 0x36115B5E: pop ebp */ 13290 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115B5F: ret 4 */ 13291 L_36115B70: 13292 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 13293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13294 ecx = ecx - 8; /* 0x36115B70: sub ecx, 8 */ 13295 _flag_k = FK_CMP; 13296 RECOMP_BACKEDGE(); 13297 goto L_36115B40; /* 0x36115B73: jmp 0x36115b40 */ 13298 { RECOMP_REGS_OUT(); return; } /* end of function */ 13299 RECOMP_REGS_OUT(); 13300 } 13301 13302 void sub_36115B80(void) { 13303 int _fpu_cmp = 0; 13304 uint32_t _cf = 0; 13305 int _df = 1; 13306 uint32_t _flag_k = FK_NONE; 13307 uint32_t _flag_a = 0, _flag_b = 0; 13308 uint32_t _itail_tgt = 0; 13309 RECOMP_REGS_LOCALS 13310 RECOMP_ENTER(0x36115B80u); 13311 13312 goto L_36115B80; 13313 L_36115B40: 13314 PUSH32(esp, ebp); /* 0x36115B40: push ebp */ 13315 ebp = esp; /* 0x36115B41: mov ebp, esp */ 13316 PUSH32(esp, esi); /* 0x36115B43: push esi */ 13317 esi = ecx; /* 0x36115B44: mov esi, ecx */ 13318 RECOMP_ICALL(MEM32(0x3616F814)); /* 0x36115B46: call dword ptr [0x3616f814] */ 13319 RECOMP_FLAGS_IN(); 13320 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115B4C: test byte ptr [ebp + 8], 1 */ 13321 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 13322 _cf = 0; 13323 _flag_k = FK_NARROW(FK_TEST, 24); 13324 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B5B; /* 0x36115B50: je 0x36115b5b */ 13325 L_36115B52: 13326 PUSH32(esp, esi); /* 0x36115B52: push esi */ 13327 RECOMP_ICALL(0x3615FCC4u); /* 0x36115B53: call 0x3615fcc4 */ /* not lifted */ 13328 RECOMP_FLAGS_IN(); 13329 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13331 esp = esp + 4; /* 0x36115B58: add esp, 4 */ 13332 _flag_k = FK_ADD; 13333 L_36115B5B: 13334 eax = esi; /* 0x36115B5B: mov eax, esi */ 13335 esi = POP32_VAL(esp); /* 0x36115B5D: pop esi */ 13336 ebp = POP32_VAL(esp); /* 0x36115B5E: pop ebp */ 13337 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115B5F: ret 4 */ 13338 L_36115B80: 13339 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 13340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13341 ecx = ecx - 0x20u; /* 0x36115B80: sub ecx, 0x20 */ 13342 _flag_k = FK_CMP; 13343 RECOMP_BACKEDGE(); 13344 goto L_36115B40; /* 0x36115B83: jmp 0x36115b40 */ 13345 { RECOMP_REGS_OUT(); return; } /* end of function */ 13346 RECOMP_REGS_OUT(); 13347 } 13348 13349 void sub_36115B90(void) { 13350 int _fpu_cmp = 0; 13351 uint32_t _cf = 0; 13352 int _df = 1; 13353 uint32_t _flag_k = FK_NONE; 13354 uint32_t _flag_a = 0, _flag_b = 0; 13355 uint32_t _itail_tgt = 0; 13356 RECOMP_REGS_LOCALS 13357 RECOMP_ENTER(0x36115B90u); 13358 13359 goto L_36115B90; 13360 L_36115B40: 13361 PUSH32(esp, ebp); /* 0x36115B40: push ebp */ 13362 ebp = esp; /* 0x36115B41: mov ebp, esp */ 13363 PUSH32(esp, esi); /* 0x36115B43: push esi */ 13364 esi = ecx; /* 0x36115B44: mov esi, ecx */ 13365 RECOMP_ICALL(MEM32(0x3616F814)); /* 0x36115B46: call dword ptr [0x3616f814] */ 13366 RECOMP_FLAGS_IN(); 13367 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115B4C: test byte ptr [ebp + 8], 1 */ 13368 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 13369 _cf = 0; 13370 _flag_k = FK_NARROW(FK_TEST, 24); 13371 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B5B; /* 0x36115B50: je 0x36115b5b */ 13372 L_36115B52: 13373 PUSH32(esp, esi); /* 0x36115B52: push esi */ 13374 RECOMP_ICALL(0x3615FCC4u); /* 0x36115B53: call 0x3615fcc4 */ /* not lifted */ 13375 RECOMP_FLAGS_IN(); 13376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13378 esp = esp + 4; /* 0x36115B58: add esp, 4 */ 13379 _flag_k = FK_ADD; 13380 L_36115B5B: 13381 eax = esi; /* 0x36115B5B: mov eax, esi */ 13382 esi = POP32_VAL(esp); /* 0x36115B5D: pop esi */ 13383 ebp = POP32_VAL(esp); /* 0x36115B5E: pop ebp */ 13384 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115B5F: ret 4 */ 13385 L_36115B90: 13386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x38u); 13387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13388 ecx = ecx - 0x38u; /* 0x36115B90: sub ecx, 0x38 */ 13389 _flag_k = FK_CMP; 13390 RECOMP_BACKEDGE(); 13391 goto L_36115B40; /* 0x36115B93: jmp 0x36115b40 */ 13392 { RECOMP_REGS_OUT(); return; } /* end of function */ 13393 RECOMP_REGS_OUT(); 13394 } 13395 13396 void sub_36115BA0(void) { 13397 int _fpu_cmp = 0; 13398 uint32_t _cf = 0; 13399 int _df = 1; 13400 uint32_t _flag_k = FK_NONE; 13401 uint32_t _flag_a = 0, _flag_b = 0; 13402 uint32_t _itail_tgt = 0; 13403 RECOMP_REGS_LOCALS 13404 RECOMP_ENTER(0x36115BA0u); 13405 13406 goto L_36115BA0; 13407 L_36115B40: 13408 PUSH32(esp, ebp); /* 0x36115B40: push ebp */ 13409 ebp = esp; /* 0x36115B41: mov ebp, esp */ 13410 PUSH32(esp, esi); /* 0x36115B43: push esi */ 13411 esi = ecx; /* 0x36115B44: mov esi, ecx */ 13412 RECOMP_ICALL(MEM32(0x3616F814)); /* 0x36115B46: call dword ptr [0x3616f814] */ 13413 RECOMP_FLAGS_IN(); 13414 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115B4C: test byte ptr [ebp + 8], 1 */ 13415 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 13416 _cf = 0; 13417 _flag_k = FK_NARROW(FK_TEST, 24); 13418 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B5B; /* 0x36115B50: je 0x36115b5b */ 13419 L_36115B52: 13420 PUSH32(esp, esi); /* 0x36115B52: push esi */ 13421 RECOMP_ICALL(0x3615FCC4u); /* 0x36115B53: call 0x3615fcc4 */ /* not lifted */ 13422 RECOMP_FLAGS_IN(); 13423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13425 esp = esp + 4; /* 0x36115B58: add esp, 4 */ 13426 _flag_k = FK_ADD; 13427 L_36115B5B: 13428 eax = esi; /* 0x36115B5B: mov eax, esi */ 13429 esi = POP32_VAL(esp); /* 0x36115B5D: pop esi */ 13430 ebp = POP32_VAL(esp); /* 0x36115B5E: pop ebp */ 13431 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115B5F: ret 4 */ 13432 L_36115BA0: 13433 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x50u); 13434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13435 ecx = ecx - 0x50u; /* 0x36115BA0: sub ecx, 0x50 */ 13436 _flag_k = FK_CMP; 13437 RECOMP_BACKEDGE(); 13438 goto L_36115B40; /* 0x36115BA3: jmp 0x36115b40 */ 13439 { RECOMP_REGS_OUT(); return; } /* end of function */ 13440 RECOMP_REGS_OUT(); 13441 } 13442 13443 void sub_36115BB0(void) { 13444 int _fpu_cmp = 0; 13445 uint32_t _cf = 0; 13446 int _df = 1; 13447 uint32_t _flag_k = FK_NONE; 13448 uint32_t _flag_a = 0, _flag_b = 0; 13449 uint32_t _itail_tgt = 0; 13450 RECOMP_REGS_LOCALS 13451 RECOMP_ENTER(0x36115BB0u); 13452 13453 goto L_36115BB0; 13454 L_36115B40: 13455 PUSH32(esp, ebp); /* 0x36115B40: push ebp */ 13456 ebp = esp; /* 0x36115B41: mov ebp, esp */ 13457 PUSH32(esp, esi); /* 0x36115B43: push esi */ 13458 esi = ecx; /* 0x36115B44: mov esi, ecx */ 13459 RECOMP_ICALL(MEM32(0x3616F814)); /* 0x36115B46: call dword ptr [0x3616f814] */ 13460 RECOMP_FLAGS_IN(); 13461 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115B4C: test byte ptr [ebp + 8], 1 */ 13462 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 13463 _cf = 0; 13464 _flag_k = FK_NARROW(FK_TEST, 24); 13465 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B5B; /* 0x36115B50: je 0x36115b5b */ 13466 L_36115B52: 13467 PUSH32(esp, esi); /* 0x36115B52: push esi */ 13468 RECOMP_ICALL(0x3615FCC4u); /* 0x36115B53: call 0x3615fcc4 */ /* not lifted */ 13469 RECOMP_FLAGS_IN(); 13470 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13471 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13472 esp = esp + 4; /* 0x36115B58: add esp, 4 */ 13473 _flag_k = FK_ADD; 13474 L_36115B5B: 13475 eax = esi; /* 0x36115B5B: mov eax, esi */ 13476 esi = POP32_VAL(esp); /* 0x36115B5D: pop esi */ 13477 ebp = POP32_VAL(esp); /* 0x36115B5E: pop ebp */ 13478 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115B5F: ret 4 */ 13479 L_36115BB0: 13480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x138u); 13481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13482 ecx = ecx - 0x138u; /* 0x36115BB0: sub ecx, 0x138 */ 13483 _flag_k = FK_CMP; 13484 RECOMP_BACKEDGE(); 13485 goto L_36115B40; /* 0x36115BB6: jmp 0x36115b40 */ 13486 { RECOMP_REGS_OUT(); return; } /* end of function */ 13487 RECOMP_REGS_OUT(); 13488 } 13489 13490 void sub_36115BC0(void) { 13491 int _fpu_cmp = 0; 13492 uint32_t _cf = 0; 13493 int _df = 1; 13494 uint32_t _flag_k = FK_NONE; 13495 uint32_t _flag_a = 0, _flag_b = 0; 13496 uint32_t _itail_tgt = 0; 13497 RECOMP_REGS_LOCALS 13498 RECOMP_ENTER(0x36115BC0u); 13499 13500 goto L_36115BC0; 13501 L_36115B40: 13502 PUSH32(esp, ebp); /* 0x36115B40: push ebp */ 13503 ebp = esp; /* 0x36115B41: mov ebp, esp */ 13504 PUSH32(esp, esi); /* 0x36115B43: push esi */ 13505 esi = ecx; /* 0x36115B44: mov esi, ecx */ 13506 RECOMP_ICALL(MEM32(0x3616F814)); /* 0x36115B46: call dword ptr [0x3616f814] */ 13507 RECOMP_FLAGS_IN(); 13508 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115B4C: test byte ptr [ebp + 8], 1 */ 13509 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 13510 _cf = 0; 13511 _flag_k = FK_NARROW(FK_TEST, 24); 13512 if (TEST_Z(_flag_a, _flag_b)) goto L_36115B5B; /* 0x36115B50: je 0x36115b5b */ 13513 L_36115B52: 13514 PUSH32(esp, esi); /* 0x36115B52: push esi */ 13515 RECOMP_ICALL(0x3615FCC4u); /* 0x36115B53: call 0x3615fcc4 */ /* not lifted */ 13516 RECOMP_FLAGS_IN(); 13517 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13518 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13519 esp = esp + 4; /* 0x36115B58: add esp, 4 */ 13520 _flag_k = FK_ADD; 13521 L_36115B5B: 13522 eax = esi; /* 0x36115B5B: mov eax, esi */ 13523 esi = POP32_VAL(esp); /* 0x36115B5D: pop esi */ 13524 ebp = POP32_VAL(esp); /* 0x36115B5E: pop ebp */ 13525 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115B5F: ret 4 */ 13526 L_36115BC0: 13527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x150u); 13528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13529 ecx = ecx - 0x150u; /* 0x36115BC0: sub ecx, 0x150 */ 13530 _flag_k = FK_CMP; 13531 RECOMP_BACKEDGE(); 13532 goto L_36115B40; /* 0x36115BC6: jmp 0x36115b40 */ 13533 { RECOMP_REGS_OUT(); return; } /* end of function */ 13534 RECOMP_REGS_OUT(); 13535 } 13536 13537 void sub_36115BD0(void) { 13538 int _fpu_cmp = 0; 13539 uint32_t _cf = 0; 13540 int _df = 1; 13541 uint32_t _flag_k = FK_NONE; 13542 uint32_t _flag_a = 0, _flag_b = 0; 13543 uint32_t _itail_tgt = 0; 13544 RECOMP_REGS_LOCALS 13545 RECOMP_ENTER(0x36115BD0u); 13546 13547 L_36115BD0: 13548 PUSH32(esp, ebp); /* 0x36115BD0: push ebp */ 13549 ebp = esp; /* 0x36115BD1: mov ebp, esp */ 13550 PUSH32(esp, 0xFFFFFFFFu); /* 0x36115BD3: push -1 */ 13551 PUSH32(esp, 0x3616B067u); /* 0x36115BD5: push 0x3616b067 */ 13552 eax = MEM32(FS_BASE + (0)); /* 0x36115BDA: mov eax, dword ptr fs:[0] */ 13553 PUSH32(esp, eax); /* 0x36115BE0: push eax */ 13554 MEM32(FS_BASE + (0)) = esp; /* 0x36115BE1: mov dword ptr fs:[0], esp */ 13555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 13556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13557 esp = esp - 0x44u; /* 0x36115BE8: sub esp, 0x44 */ 13558 _flag_k = FK_CMP; 13559 eax = MEM32(ebp + 0x8); /* 0x36115BEB: mov eax, dword ptr [ebp + 8] */ 13560 PUSH32(esp, esi); /* 0x36115BEE: push esi */ 13561 PUSH32(esp, edi); /* 0x36115BEF: push edi */ 13562 esi = ecx; /* 0x36115BF0: mov esi, ecx */ 13563 PUSH32(esp, eax); /* 0x36115BF2: push eax */ 13564 MEM32(ebp + (-0x10)) = esi; /* 0x36115BF3: mov dword ptr [ebp - 0x10], esi */ 13565 RECOMP_ICALL(0x360FC270u); /* 0x36115BF6: call 0x360fc270 */ /* not lifted */ 13566 RECOMP_FLAGS_IN(); 13567 ecx = esi + 0x34; /* 0x36115BFB: lea ecx, [esi + 0x34] */ 13568 MEM32(ebp + (-0x4)) = 0; /* 0x36115BFE: mov dword ptr [ebp - 4], 0 */ 13569 RECOMP_ICALL(0x36137CC0u); /* 0x36115C05: call 0x36137cc0 */ /* not lifted */ 13570 RECOMP_FLAGS_IN(); 13571 ecx = esi; /* 0x36115C0A: mov ecx, esi */ 13572 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36115C0C: mov byte ptr [ebp - 4], 1 */ 13573 MEM32(esi) = 0x36176DDCu; /* 0x36115C10: mov dword ptr [esi], 0x36176ddc */ 13574 RECOMP_ICALL(0x36115FC0u); /* 0x36115C16: call 0x36115fc0 */ /* not lifted */ 13575 RECOMP_FLAGS_IN(); 13576 ecx = MEM32(esi + 0x4); /* 0x36115C1B: mov ecx, dword ptr [esi + 4] */ 13577 PUSH32(esp, ecx); /* 0x36115C1E: push ecx */ 13578 RECOMP_ICALL(0x360F7B00u); /* 0x36115C1F: call 0x360f7b00 */ /* not lifted */ 13579 RECOMP_FLAGS_IN(); 13580 ecx = eax; /* 0x36115C24: mov ecx, eax */ 13581 RECOMP_ICALL(0x360FBFF0u); /* 0x36115C26: call 0x360fbff0 */ /* not lifted */ 13582 RECOMP_FLAGS_IN(); 13583 ecx = eax; /* 0x36115C2B: mov ecx, eax */ 13584 RECOMP_ICALL(0x361371A0u); /* 0x36115C2D: call 0x361371a0 */ /* not lifted */ 13585 RECOMP_FLAGS_IN(); 13586 edx = MEM32(ebp + 0xC); /* 0x36115C32: mov edx, dword ptr [ebp + 0xc] */ 13587 edi = eax; /* 0x36115C35: mov edi, eax */ 13588 MEM32(esi + 0x28) = edx; /* 0x36115C37: mov dword ptr [esi + 0x28], edx */ 13589 MEM32(ebp + (-0x50)) = 0x3F800000u; /* 0x36115C3A: mov dword ptr [ebp - 0x50], 0x3f800000 */ 13590 MEM32(ebp + (-0x4C)) = 0; /* 0x36115C41: mov dword ptr [ebp - 0x4c], 0 */ 13591 MEM32(ebp + (-0x48)) = 0; /* 0x36115C48: mov dword ptr [ebp - 0x48], 0 */ 13592 MEM32(ebp + (-0x44)) = 0; /* 0x36115C4F: mov dword ptr [ebp - 0x44], 0 */ 13593 MEM32(ebp + (-0x40)) = 0; /* 0x36115C56: mov dword ptr [ebp - 0x40], 0 */ 13594 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x36115C5D: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 13595 MEM32(ebp + (-0x38)) = 0; /* 0x36115C64: mov dword ptr [ebp - 0x38], 0 */ 13596 MEM32(ebp + (-0x34)) = 0; /* 0x36115C6B: mov dword ptr [ebp - 0x34], 0 */ 13597 MEM32(ebp + (-0x30)) = 0; /* 0x36115C72: mov dword ptr [ebp - 0x30], 0 */ 13598 MEM32(ebp + (-0x2C)) = 0; /* 0x36115C79: mov dword ptr [ebp - 0x2c], 0 */ 13599 MEM32(ebp + (-0x28)) = 0x3F800000u; /* 0x36115C80: mov dword ptr [ebp - 0x28], 0x3f800000 */ 13600 MEM32(ebp + (-0x24)) = 0; /* 0x36115C87: mov dword ptr [ebp - 0x24], 0 */ 13601 MEM32(ebp + (-0x20)) = 0; /* 0x36115C8E: mov dword ptr [ebp - 0x20], 0 */ 13602 MEM32(ebp + (-0x1C)) = 0; /* 0x36115C95: mov dword ptr [ebp - 0x1c], 0 */ 13603 MEM32(ebp + (-0x18)) = 0; /* 0x36115C9C: mov dword ptr [ebp - 0x18], 0 */ 13604 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x36115CA3: mov dword ptr [ebp - 0x14], 0x3f800000 */ 13605 PUSH32(esp, 0x10Cu); /* 0x36115CAA: push 0x10c */ 13606 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36115CAF: mov byte ptr [ebp - 4], 2 */ 13607 RECOMP_ICALL(0x3615FD6Au); /* 0x36115CB3: call 0x3615fd6a */ /* not lifted */ 13608 RECOMP_FLAGS_IN(); 13609 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13610 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13611 esp = esp + 4; /* 0x36115CB8: add esp, 4 */ 13612 _flag_k = FK_ADD; 13613 MEM32(ebp + 0x8) = eax; /* 0x36115CBB: mov dword ptr [ebp + 8], eax */ 13614 /* test eax, eax */ /* 0x36115CBE: test eax, eax */ 13615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13616 _cf = 0; 13617 _flag_k = FK_TEST; 13618 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36115CC0: mov byte ptr [ebp - 4], 3 */ 13619 if (TEST_Z(_flag_a, _flag_b)) goto L_36115CCF; /* 0x36115CC4: je 0x36115ccf */ 13620 L_36115CC6: 13621 ecx = eax; /* 0x36115CC6: mov ecx, eax */ 13622 RECOMP_ICALL(0x36132920u); /* 0x36115CC8: call 0x36132920 */ /* not lifted */ 13623 RECOMP_FLAGS_IN(); 13624 goto L_36115CD1; /* 0x36115CCD: jmp 0x36115cd1 */ 13625 L_36115CCF: 13626 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13627 eax = 0; /* 0x36115CCF: xor eax, eax */ 13628 _cf = 0; 13629 _flag_k = FK_TEST; 13630 L_36115CD1: 13631 MEM32(esi + 0x20) = eax; /* 0x36115CD1: mov dword ptr [esi + 0x20], eax */ 13632 eax = MEM32(esi + 0x2C); /* 0x36115CD4: mov eax, dword ptr [esi + 0x2c] */ 13633 ecx = eax; /* 0x36115CD7: mov ecx, eax */ 13634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 13635 ecx = ecx & 2; /* 0x36115CD9: and ecx, 2 */ 13636 _cf = 0; 13637 _flag_k = FK_TEST; 13638 /* cmp LO8(ecx), 2 */ /* 0x36115CDC: cmp cl, 2 */ 13639 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(2) << 24; 13640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13641 _flag_k = FK_NARROW(FK_CMP, 24); 13642 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36115CDF: sete dl */ 13643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13644 eax = eax & 1; /* 0x36115CE2: and eax, 1 */ 13645 _cf = 0; 13646 _flag_k = FK_TEST; 13647 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13648 SET_LO8(eax, LO8(eax) - 1); /* 0x36115CE5: dec al */ 13649 _flag_k = FK_NARROW(FK_DEC, 24); 13650 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13651 _cf = (LO8(eax)) != 0; 13652 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115CE7: neg al */ 13653 _flag_k = FK_NARROW(FK_CMP, 24); 13654 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115CE9: sbb al, al */ 13655 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 13656 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13657 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13658 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13659 SET_LO8(eax, LO8(eax) + 1); /* 0x36115CEB: inc al */ 13660 _flag_k = FK_NARROW(FK_INC, 24); 13661 ecx = edi; /* 0x36115CED: mov ecx, edi */ 13662 PUSH32(esp, edx); /* 0x36115CEF: push edx */ 13663 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36115CF0: mov byte ptr [ebp - 4], 2 */ 13664 PUSH32(esp, eax); /* 0x36115CF4: push eax */ 13665 PUSH32(esp, 7); /* 0x36115CF5: push 7 */ 13666 RECOMP_ICALL(0x36136FE0u); /* 0x36115CF7: call 0x36136fe0 */ /* not lifted */ 13667 RECOMP_FLAGS_IN(); 13668 PUSH32(esp, eax); /* 0x36115CFC: push eax */ 13669 eax = MEM32(esi + 0x2C); /* 0x36115CFD: mov eax, dword ptr [esi + 0x2c] */ 13670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 13671 eax = eax & 4; /* 0x36115D00: and eax, 4 */ 13672 _cf = 0; 13673 _flag_k = FK_TEST; 13674 /* cmp LO8(eax), 4 */ /* 0x36115D03: cmp al, 4 */ 13675 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 13676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13677 _flag_k = FK_NARROW(FK_CMP, 24); 13678 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36115D05: sete cl */ 13679 PUSH32(esp, ecx); /* 0x36115D08: push ecx */ 13680 PUSH32(esp, 6); /* 0x36115D09: push 6 */ 13681 ecx = edi; /* 0x36115D0B: mov ecx, edi */ 13682 RECOMP_ICALL(0x36137010u); /* 0x36115D0D: call 0x36137010 */ /* not lifted */ 13683 RECOMP_FLAGS_IN(); 13684 PUSH32(esp, ecx); /* 0x36115D12: push ecx */ 13685 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D13: fstp dword ptr [esp] */ 13686 PUSH32(esp, 5); /* 0x36115D16: push 5 */ 13687 ecx = edi; /* 0x36115D18: mov ecx, edi */ 13688 RECOMP_ICALL(0x36137010u); /* 0x36115D1A: call 0x36137010 */ /* not lifted */ 13689 RECOMP_FLAGS_IN(); 13690 PUSH32(esp, ecx); /* 0x36115D1F: push ecx */ 13691 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D20: fstp dword ptr [esp] */ 13692 PUSH32(esp, 4); /* 0x36115D23: push 4 */ 13693 ecx = edi; /* 0x36115D25: mov ecx, edi */ 13694 RECOMP_ICALL(0x36137010u); /* 0x36115D27: call 0x36137010 */ /* not lifted */ 13695 RECOMP_FLAGS_IN(); 13696 PUSH32(esp, ecx); /* 0x36115D2C: push ecx */ 13697 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D2D: fstp dword ptr [esp] */ 13698 PUSH32(esp, 3); /* 0x36115D30: push 3 */ 13699 ecx = edi; /* 0x36115D32: mov ecx, edi */ 13700 RECOMP_ICALL(0x36137010u); /* 0x36115D34: call 0x36137010 */ /* not lifted */ 13701 RECOMP_FLAGS_IN(); 13702 PUSH32(esp, ecx); /* 0x36115D39: push ecx */ 13703 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D3A: fstp dword ptr [esp] */ 13704 PUSH32(esp, 2); /* 0x36115D3D: push 2 */ 13705 ecx = edi; /* 0x36115D3F: mov ecx, edi */ 13706 RECOMP_ICALL(0x36137010u); /* 0x36115D41: call 0x36137010 */ /* not lifted */ 13707 RECOMP_FLAGS_IN(); 13708 PUSH32(esp, ecx); /* 0x36115D46: push ecx */ 13709 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D47: fstp dword ptr [esp] */ 13710 PUSH32(esp, 1); /* 0x36115D4A: push 1 */ 13711 ecx = edi; /* 0x36115D4C: mov ecx, edi */ 13712 RECOMP_ICALL(0x36137010u); /* 0x36115D4E: call 0x36137010 */ /* not lifted */ 13713 RECOMP_FLAGS_IN(); 13714 PUSH32(esp, ecx); /* 0x36115D53: push ecx */ 13715 ecx = MEM32(esi + 0x20); /* 0x36115D54: mov ecx, dword ptr [esi + 0x20] */ 13716 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D57: fstp dword ptr [esp] */ 13717 edx = ebp + (-0x50); /* 0x36115D5A: lea edx, [ebp - 0x50] */ 13718 PUSH32(esp, edx); /* 0x36115D5D: push edx */ 13719 RECOMP_ICALL(0x36132BA0u); /* 0x36115D5E: call 0x36132ba0 */ /* not lifted */ 13720 RECOMP_FLAGS_IN(); 13721 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13722 _cf = (LO8(eax)) != 0; 13723 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115D63: neg al */ 13724 _flag_k = FK_NARROW(FK_CMP, 24); 13725 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115D65: sbb al, al */ 13726 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 13727 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13728 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13729 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13730 SET_LO8(eax, LO8(eax) + 1); /* 0x36115D67: inc al */ 13731 _flag_k = FK_NARROW(FK_INC, 24); 13732 ecx = esi; /* 0x36115D69: mov ecx, esi */ 13733 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36115D6B: mov byte ptr [esi + 0x14], al */ 13734 RECOMP_ICALL(0x36116020u); /* 0x36115D6E: call 0x36116020 */ /* not lifted */ 13735 RECOMP_FLAGS_IN(); 13736 ecx = MEM32(ebp + (-0xC)); /* 0x36115D73: mov ecx, dword ptr [ebp - 0xc] */ 13737 edi = POP32_VAL(esp); /* 0x36115D76: pop edi */ 13738 eax = esi; /* 0x36115D77: mov eax, esi */ 13739 esi = POP32_VAL(esp); /* 0x36115D79: pop esi */ 13740 MEM32(FS_BASE + (0)) = ecx; /* 0x36115D7A: mov dword ptr fs:[0], ecx */ 13741 esp = ebp; /* 0x36115D81: mov esp, ebp */ 13742 ebp = POP32_VAL(esp); /* 0x36115D83: pop ebp */ 13743 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36115D84: ret 8 */ 13744 RECOMP_REGS_OUT(); 13745 } 13746 13747 void sub_36115CA3(void) { 13748 int _fpu_cmp = 0; 13749 uint32_t _cf = 0; 13750 int _df = 1; 13751 uint32_t _flag_k = FK_NONE; 13752 uint32_t _flag_a = 0, _flag_b = 0; 13753 uint32_t _itail_tgt = 0; 13754 RECOMP_REGS_LOCALS 13755 RECOMP_ENTER(0x36115CA3u); 13756 13757 L_36115CA3: 13758 MEM32(ebp + (-0x14)) = 0x3F800000u; /* 0x36115CA3: mov dword ptr [ebp - 0x14], 0x3f800000 */ 13759 PUSH32(esp, 0x10Cu); /* 0x36115CAA: push 0x10c */ 13760 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36115CAF: mov byte ptr [ebp - 4], 2 */ 13761 RECOMP_ICALL(0x3615FD6Au); /* 0x36115CB3: call 0x3615fd6a */ /* not lifted */ 13762 RECOMP_FLAGS_IN(); 13763 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13764 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13765 esp = esp + 4; /* 0x36115CB8: add esp, 4 */ 13766 _flag_k = FK_ADD; 13767 MEM32(ebp + 0x8) = eax; /* 0x36115CBB: mov dword ptr [ebp + 8], eax */ 13768 /* test eax, eax */ /* 0x36115CBE: test eax, eax */ 13769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13770 _cf = 0; 13771 _flag_k = FK_TEST; 13772 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36115CC0: mov byte ptr [ebp - 4], 3 */ 13773 if (TEST_Z(_flag_a, _flag_b)) goto L_36115CCF; /* 0x36115CC4: je 0x36115ccf */ 13774 L_36115CC6: 13775 ecx = eax; /* 0x36115CC6: mov ecx, eax */ 13776 RECOMP_ICALL(0x36132920u); /* 0x36115CC8: call 0x36132920 */ /* not lifted */ 13777 RECOMP_FLAGS_IN(); 13778 goto L_36115CD1; /* 0x36115CCD: jmp 0x36115cd1 */ 13779 L_36115CCF: 13780 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13781 eax = 0; /* 0x36115CCF: xor eax, eax */ 13782 _cf = 0; 13783 _flag_k = FK_TEST; 13784 L_36115CD1: 13785 MEM32(esi + 0x20) = eax; /* 0x36115CD1: mov dword ptr [esi + 0x20], eax */ 13786 eax = MEM32(esi + 0x2C); /* 0x36115CD4: mov eax, dword ptr [esi + 0x2c] */ 13787 ecx = eax; /* 0x36115CD7: mov ecx, eax */ 13788 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 13789 ecx = ecx & 2; /* 0x36115CD9: and ecx, 2 */ 13790 _cf = 0; 13791 _flag_k = FK_TEST; 13792 /* cmp LO8(ecx), 2 */ /* 0x36115CDC: cmp cl, 2 */ 13793 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(2) << 24; 13794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13795 _flag_k = FK_NARROW(FK_CMP, 24); 13796 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36115CDF: sete dl */ 13797 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13798 eax = eax & 1; /* 0x36115CE2: and eax, 1 */ 13799 _cf = 0; 13800 _flag_k = FK_TEST; 13801 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13802 SET_LO8(eax, LO8(eax) - 1); /* 0x36115CE5: dec al */ 13803 _flag_k = FK_NARROW(FK_DEC, 24); 13804 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13805 _cf = (LO8(eax)) != 0; 13806 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115CE7: neg al */ 13807 _flag_k = FK_NARROW(FK_CMP, 24); 13808 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115CE9: sbb al, al */ 13809 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 13810 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13811 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13812 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13813 SET_LO8(eax, LO8(eax) + 1); /* 0x36115CEB: inc al */ 13814 _flag_k = FK_NARROW(FK_INC, 24); 13815 ecx = edi; /* 0x36115CED: mov ecx, edi */ 13816 PUSH32(esp, edx); /* 0x36115CEF: push edx */ 13817 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36115CF0: mov byte ptr [ebp - 4], 2 */ 13818 PUSH32(esp, eax); /* 0x36115CF4: push eax */ 13819 PUSH32(esp, 7); /* 0x36115CF5: push 7 */ 13820 RECOMP_ICALL(0x36136FE0u); /* 0x36115CF7: call 0x36136fe0 */ /* not lifted */ 13821 RECOMP_FLAGS_IN(); 13822 PUSH32(esp, eax); /* 0x36115CFC: push eax */ 13823 eax = MEM32(esi + 0x2C); /* 0x36115CFD: mov eax, dword ptr [esi + 0x2c] */ 13824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 13825 eax = eax & 4; /* 0x36115D00: and eax, 4 */ 13826 _cf = 0; 13827 _flag_k = FK_TEST; 13828 /* cmp LO8(eax), 4 */ /* 0x36115D03: cmp al, 4 */ 13829 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 13830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13831 _flag_k = FK_NARROW(FK_CMP, 24); 13832 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36115D05: sete cl */ 13833 PUSH32(esp, ecx); /* 0x36115D08: push ecx */ 13834 PUSH32(esp, 6); /* 0x36115D09: push 6 */ 13835 ecx = edi; /* 0x36115D0B: mov ecx, edi */ 13836 RECOMP_ICALL(0x36137010u); /* 0x36115D0D: call 0x36137010 */ /* not lifted */ 13837 RECOMP_FLAGS_IN(); 13838 PUSH32(esp, ecx); /* 0x36115D12: push ecx */ 13839 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D13: fstp dword ptr [esp] */ 13840 PUSH32(esp, 5); /* 0x36115D16: push 5 */ 13841 ecx = edi; /* 0x36115D18: mov ecx, edi */ 13842 RECOMP_ICALL(0x36137010u); /* 0x36115D1A: call 0x36137010 */ /* not lifted */ 13843 RECOMP_FLAGS_IN(); 13844 PUSH32(esp, ecx); /* 0x36115D1F: push ecx */ 13845 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D20: fstp dword ptr [esp] */ 13846 PUSH32(esp, 4); /* 0x36115D23: push 4 */ 13847 ecx = edi; /* 0x36115D25: mov ecx, edi */ 13848 RECOMP_ICALL(0x36137010u); /* 0x36115D27: call 0x36137010 */ /* not lifted */ 13849 RECOMP_FLAGS_IN(); 13850 PUSH32(esp, ecx); /* 0x36115D2C: push ecx */ 13851 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D2D: fstp dword ptr [esp] */ 13852 PUSH32(esp, 3); /* 0x36115D30: push 3 */ 13853 ecx = edi; /* 0x36115D32: mov ecx, edi */ 13854 RECOMP_ICALL(0x36137010u); /* 0x36115D34: call 0x36137010 */ /* not lifted */ 13855 RECOMP_FLAGS_IN(); 13856 PUSH32(esp, ecx); /* 0x36115D39: push ecx */ 13857 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D3A: fstp dword ptr [esp] */ 13858 PUSH32(esp, 2); /* 0x36115D3D: push 2 */ 13859 ecx = edi; /* 0x36115D3F: mov ecx, edi */ 13860 RECOMP_ICALL(0x36137010u); /* 0x36115D41: call 0x36137010 */ /* not lifted */ 13861 RECOMP_FLAGS_IN(); 13862 PUSH32(esp, ecx); /* 0x36115D46: push ecx */ 13863 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D47: fstp dword ptr [esp] */ 13864 PUSH32(esp, 1); /* 0x36115D4A: push 1 */ 13865 ecx = edi; /* 0x36115D4C: mov ecx, edi */ 13866 RECOMP_ICALL(0x36137010u); /* 0x36115D4E: call 0x36137010 */ /* not lifted */ 13867 RECOMP_FLAGS_IN(); 13868 PUSH32(esp, ecx); /* 0x36115D53: push ecx */ 13869 ecx = MEM32(esi + 0x20); /* 0x36115D54: mov ecx, dword ptr [esi + 0x20] */ 13870 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D57: fstp dword ptr [esp] */ 13871 edx = ebp + (-0x50); /* 0x36115D5A: lea edx, [ebp - 0x50] */ 13872 PUSH32(esp, edx); /* 0x36115D5D: push edx */ 13873 RECOMP_ICALL(0x36132BA0u); /* 0x36115D5E: call 0x36132ba0 */ /* not lifted */ 13874 RECOMP_FLAGS_IN(); 13875 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13876 _cf = (LO8(eax)) != 0; 13877 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115D63: neg al */ 13878 _flag_k = FK_NARROW(FK_CMP, 24); 13879 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115D65: sbb al, al */ 13880 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 13881 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13882 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13883 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13884 SET_LO8(eax, LO8(eax) + 1); /* 0x36115D67: inc al */ 13885 _flag_k = FK_NARROW(FK_INC, 24); 13886 ecx = esi; /* 0x36115D69: mov ecx, esi */ 13887 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36115D6B: mov byte ptr [esi + 0x14], al */ 13888 RECOMP_ICALL(0x36116020u); /* 0x36115D6E: call 0x36116020 */ /* not lifted */ 13889 RECOMP_FLAGS_IN(); 13890 ecx = MEM32(ebp + (-0xC)); /* 0x36115D73: mov ecx, dword ptr [ebp - 0xc] */ 13891 edi = POP32_VAL(esp); /* 0x36115D76: pop edi */ 13892 eax = esi; /* 0x36115D77: mov eax, esi */ 13893 esi = POP32_VAL(esp); /* 0x36115D79: pop esi */ 13894 MEM32(FS_BASE + (0)) = ecx; /* 0x36115D7A: mov dword ptr fs:[0], ecx */ 13895 esp = ebp; /* 0x36115D81: mov esp, ebp */ 13896 ebp = POP32_VAL(esp); /* 0x36115D83: pop ebp */ 13897 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36115D84: ret 8 */ 13898 RECOMP_REGS_OUT(); 13899 } 13900 13901 void sub_36115CD1(void) { 13902 int _fpu_cmp = 0; 13903 uint32_t _cf = 0; 13904 int _df = 1; 13905 uint32_t _flag_k = FK_NONE; 13906 uint32_t _flag_a = 0, _flag_b = 0; 13907 uint32_t _itail_tgt = 0; 13908 RECOMP_REGS_LOCALS 13909 RECOMP_ENTER(0x36115CD1u); 13910 13911 L_36115CD1: 13912 MEM32(esi + 0x20) = eax; /* 0x36115CD1: mov dword ptr [esi + 0x20], eax */ 13913 eax = MEM32(esi + 0x2C); /* 0x36115CD4: mov eax, dword ptr [esi + 0x2c] */ 13914 ecx = eax; /* 0x36115CD7: mov ecx, eax */ 13915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(2); 13916 ecx = ecx & 2; /* 0x36115CD9: and ecx, 2 */ 13917 _cf = 0; 13918 _flag_k = FK_TEST; 13919 /* cmp LO8(ecx), 2 */ /* 0x36115CDC: cmp cl, 2 */ 13920 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(2) << 24; 13921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13922 _flag_k = FK_NARROW(FK_CMP, 24); 13923 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36115CDF: sete dl */ 13924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13925 eax = eax & 1; /* 0x36115CE2: and eax, 1 */ 13926 _cf = 0; 13927 _flag_k = FK_TEST; 13928 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13929 SET_LO8(eax, LO8(eax) - 1); /* 0x36115CE5: dec al */ 13930 _flag_k = FK_NARROW(FK_DEC, 24); 13931 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13932 _cf = (LO8(eax)) != 0; 13933 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115CE7: neg al */ 13934 _flag_k = FK_NARROW(FK_CMP, 24); 13935 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115CE9: sbb al, al */ 13936 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 13937 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13938 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13939 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 13940 SET_LO8(eax, LO8(eax) + 1); /* 0x36115CEB: inc al */ 13941 _flag_k = FK_NARROW(FK_INC, 24); 13942 ecx = edi; /* 0x36115CED: mov ecx, edi */ 13943 PUSH32(esp, edx); /* 0x36115CEF: push edx */ 13944 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36115CF0: mov byte ptr [ebp - 4], 2 */ 13945 PUSH32(esp, eax); /* 0x36115CF4: push eax */ 13946 PUSH32(esp, 7); /* 0x36115CF5: push 7 */ 13947 RECOMP_ICALL(0x36136FE0u); /* 0x36115CF7: call 0x36136fe0 */ /* not lifted */ 13948 RECOMP_FLAGS_IN(); 13949 PUSH32(esp, eax); /* 0x36115CFC: push eax */ 13950 eax = MEM32(esi + 0x2C); /* 0x36115CFD: mov eax, dword ptr [esi + 0x2c] */ 13951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 13952 eax = eax & 4; /* 0x36115D00: and eax, 4 */ 13953 _cf = 0; 13954 _flag_k = FK_TEST; 13955 /* cmp LO8(eax), 4 */ /* 0x36115D03: cmp al, 4 */ 13956 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 13957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13958 _flag_k = FK_NARROW(FK_CMP, 24); 13959 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36115D05: sete cl */ 13960 PUSH32(esp, ecx); /* 0x36115D08: push ecx */ 13961 PUSH32(esp, 6); /* 0x36115D09: push 6 */ 13962 ecx = edi; /* 0x36115D0B: mov ecx, edi */ 13963 RECOMP_ICALL(0x36137010u); /* 0x36115D0D: call 0x36137010 */ /* not lifted */ 13964 RECOMP_FLAGS_IN(); 13965 PUSH32(esp, ecx); /* 0x36115D12: push ecx */ 13966 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D13: fstp dword ptr [esp] */ 13967 PUSH32(esp, 5); /* 0x36115D16: push 5 */ 13968 ecx = edi; /* 0x36115D18: mov ecx, edi */ 13969 RECOMP_ICALL(0x36137010u); /* 0x36115D1A: call 0x36137010 */ /* not lifted */ 13970 RECOMP_FLAGS_IN(); 13971 PUSH32(esp, ecx); /* 0x36115D1F: push ecx */ 13972 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D20: fstp dword ptr [esp] */ 13973 PUSH32(esp, 4); /* 0x36115D23: push 4 */ 13974 ecx = edi; /* 0x36115D25: mov ecx, edi */ 13975 RECOMP_ICALL(0x36137010u); /* 0x36115D27: call 0x36137010 */ /* not lifted */ 13976 RECOMP_FLAGS_IN(); 13977 PUSH32(esp, ecx); /* 0x36115D2C: push ecx */ 13978 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D2D: fstp dword ptr [esp] */ 13979 PUSH32(esp, 3); /* 0x36115D30: push 3 */ 13980 ecx = edi; /* 0x36115D32: mov ecx, edi */ 13981 RECOMP_ICALL(0x36137010u); /* 0x36115D34: call 0x36137010 */ /* not lifted */ 13982 RECOMP_FLAGS_IN(); 13983 PUSH32(esp, ecx); /* 0x36115D39: push ecx */ 13984 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D3A: fstp dword ptr [esp] */ 13985 PUSH32(esp, 2); /* 0x36115D3D: push 2 */ 13986 ecx = edi; /* 0x36115D3F: mov ecx, edi */ 13987 RECOMP_ICALL(0x36137010u); /* 0x36115D41: call 0x36137010 */ /* not lifted */ 13988 RECOMP_FLAGS_IN(); 13989 PUSH32(esp, ecx); /* 0x36115D46: push ecx */ 13990 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D47: fstp dword ptr [esp] */ 13991 PUSH32(esp, 1); /* 0x36115D4A: push 1 */ 13992 ecx = edi; /* 0x36115D4C: mov ecx, edi */ 13993 RECOMP_ICALL(0x36137010u); /* 0x36115D4E: call 0x36137010 */ /* not lifted */ 13994 RECOMP_FLAGS_IN(); 13995 PUSH32(esp, ecx); /* 0x36115D53: push ecx */ 13996 ecx = MEM32(esi + 0x20); /* 0x36115D54: mov ecx, dword ptr [esi + 0x20] */ 13997 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D57: fstp dword ptr [esp] */ 13998 edx = ebp + (-0x50); /* 0x36115D5A: lea edx, [ebp - 0x50] */ 13999 PUSH32(esp, edx); /* 0x36115D5D: push edx */ 14000 RECOMP_ICALL(0x36132BA0u); /* 0x36115D5E: call 0x36132ba0 */ /* not lifted */ 14001 RECOMP_FLAGS_IN(); 14002 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14003 _cf = (LO8(eax)) != 0; 14004 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115D63: neg al */ 14005 _flag_k = FK_NARROW(FK_CMP, 24); 14006 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115D65: sbb al, al */ 14007 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 14008 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 14009 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 14010 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 14011 SET_LO8(eax, LO8(eax) + 1); /* 0x36115D67: inc al */ 14012 _flag_k = FK_NARROW(FK_INC, 24); 14013 ecx = esi; /* 0x36115D69: mov ecx, esi */ 14014 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36115D6B: mov byte ptr [esi + 0x14], al */ 14015 RECOMP_ICALL(0x36116020u); /* 0x36115D6E: call 0x36116020 */ /* not lifted */ 14016 RECOMP_FLAGS_IN(); 14017 ecx = MEM32(ebp + (-0xC)); /* 0x36115D73: mov ecx, dword ptr [ebp - 0xc] */ 14018 edi = POP32_VAL(esp); /* 0x36115D76: pop edi */ 14019 eax = esi; /* 0x36115D77: mov eax, esi */ 14020 esi = POP32_VAL(esp); /* 0x36115D79: pop esi */ 14021 MEM32(FS_BASE + (0)) = ecx; /* 0x36115D7A: mov dword ptr fs:[0], ecx */ 14022 esp = ebp; /* 0x36115D81: mov esp, ebp */ 14023 ebp = POP32_VAL(esp); /* 0x36115D83: pop ebp */ 14024 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36115D84: ret 8 */ 14025 RECOMP_REGS_OUT(); 14026 } 14027 14028 void sub_36115D16(void) { 14029 int _fpu_cmp = 0; 14030 uint32_t _cf = 0; 14031 int _df = 1; 14032 uint32_t _flag_k = FK_NONE; 14033 uint32_t _flag_a = 0, _flag_b = 0; 14034 uint32_t _itail_tgt = 0; 14035 RECOMP_REGS_LOCALS 14036 RECOMP_ENTER(0x36115D16u); 14037 14038 L_36115D16: 14039 PUSH32(esp, 5); /* 0x36115D16: push 5 */ 14040 ecx = edi; /* 0x36115D18: mov ecx, edi */ 14041 RECOMP_ICALL(0x36137010u); /* 0x36115D1A: call 0x36137010 */ /* not lifted */ 14042 RECOMP_FLAGS_IN(); 14043 PUSH32(esp, ecx); /* 0x36115D1F: push ecx */ 14044 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D20: fstp dword ptr [esp] */ 14045 PUSH32(esp, 4); /* 0x36115D23: push 4 */ 14046 ecx = edi; /* 0x36115D25: mov ecx, edi */ 14047 RECOMP_ICALL(0x36137010u); /* 0x36115D27: call 0x36137010 */ /* not lifted */ 14048 RECOMP_FLAGS_IN(); 14049 PUSH32(esp, ecx); /* 0x36115D2C: push ecx */ 14050 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D2D: fstp dword ptr [esp] */ 14051 PUSH32(esp, 3); /* 0x36115D30: push 3 */ 14052 ecx = edi; /* 0x36115D32: mov ecx, edi */ 14053 RECOMP_ICALL(0x36137010u); /* 0x36115D34: call 0x36137010 */ /* not lifted */ 14054 RECOMP_FLAGS_IN(); 14055 PUSH32(esp, ecx); /* 0x36115D39: push ecx */ 14056 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D3A: fstp dword ptr [esp] */ 14057 PUSH32(esp, 2); /* 0x36115D3D: push 2 */ 14058 ecx = edi; /* 0x36115D3F: mov ecx, edi */ 14059 RECOMP_ICALL(0x36137010u); /* 0x36115D41: call 0x36137010 */ /* not lifted */ 14060 RECOMP_FLAGS_IN(); 14061 PUSH32(esp, ecx); /* 0x36115D46: push ecx */ 14062 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D47: fstp dword ptr [esp] */ 14063 PUSH32(esp, 1); /* 0x36115D4A: push 1 */ 14064 ecx = edi; /* 0x36115D4C: mov ecx, edi */ 14065 RECOMP_ICALL(0x36137010u); /* 0x36115D4E: call 0x36137010 */ /* not lifted */ 14066 RECOMP_FLAGS_IN(); 14067 PUSH32(esp, ecx); /* 0x36115D53: push ecx */ 14068 ecx = MEM32(esi + 0x20); /* 0x36115D54: mov ecx, dword ptr [esi + 0x20] */ 14069 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115D57: fstp dword ptr [esp] */ 14070 edx = ebp + (-0x50); /* 0x36115D5A: lea edx, [ebp - 0x50] */ 14071 PUSH32(esp, edx); /* 0x36115D5D: push edx */ 14072 RECOMP_ICALL(0x36132BA0u); /* 0x36115D5E: call 0x36132ba0 */ /* not lifted */ 14073 RECOMP_FLAGS_IN(); 14074 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14075 _cf = (LO8(eax)) != 0; 14076 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36115D63: neg al */ 14077 _flag_k = FK_NARROW(FK_CMP, 24); 14078 { uint32_t _sa = LO8(eax), _sb = LO8(eax), _sc = _cf; /* 0x36115D65: sbb al, al */ 14079 SET_LO8(eax, _sc ? 0xFFFFFFFFu : 0); 14080 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 14081 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 14082 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 14083 SET_LO8(eax, LO8(eax) + 1); /* 0x36115D67: inc al */ 14084 _flag_k = FK_NARROW(FK_INC, 24); 14085 ecx = esi; /* 0x36115D69: mov ecx, esi */ 14086 MEM8(esi + 0x14) = (uint8_t)(LO8(eax)); /* 0x36115D6B: mov byte ptr [esi + 0x14], al */ 14087 RECOMP_ICALL(0x36116020u); /* 0x36115D6E: call 0x36116020 */ /* not lifted */ 14088 RECOMP_FLAGS_IN(); 14089 ecx = MEM32(ebp + (-0xC)); /* 0x36115D73: mov ecx, dword ptr [ebp - 0xc] */ 14090 edi = POP32_VAL(esp); /* 0x36115D76: pop edi */ 14091 eax = esi; /* 0x36115D77: mov eax, esi */ 14092 esi = POP32_VAL(esp); /* 0x36115D79: pop esi */ 14093 MEM32(FS_BASE + (0)) = ecx; /* 0x36115D7A: mov dword ptr fs:[0], ecx */ 14094 esp = ebp; /* 0x36115D81: mov esp, ebp */ 14095 ebp = POP32_VAL(esp); /* 0x36115D83: pop ebp */ 14096 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36115D84: ret 8 */ 14097 RECOMP_REGS_OUT(); 14098 } 14099 14100 void sub_36115D90(void) { 14101 int _fpu_cmp = 0; 14102 uint32_t _cf = 0; 14103 int _df = 1; 14104 uint32_t _flag_k = FK_NONE; 14105 uint32_t _flag_a = 0, _flag_b = 0; 14106 uint32_t _itail_tgt = 0; 14107 RECOMP_REGS_LOCALS 14108 RECOMP_ENTER(0x36115D90u); 14109 14110 L_36115D90: 14111 PUSH32(esp, ebp); /* 0x36115D90: push ebp */ 14112 ebp = esp; /* 0x36115D91: mov ebp, esp */ 14113 PUSH32(esp, esi); /* 0x36115D93: push esi */ 14114 esi = ecx; /* 0x36115D94: mov esi, ecx */ 14115 RECOMP_ICALL(0x36115DC0u); /* 0x36115D96: call 0x36115dc0 */ /* not lifted */ 14116 RECOMP_FLAGS_IN(); 14117 /* test MEM8(ebp + 0x8), 1 */ /* 0x36115D9B: test byte ptr [ebp + 8], 1 */ 14118 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 14119 _cf = 0; 14120 _flag_k = FK_NARROW(FK_TEST, 24); 14121 if (TEST_Z(_flag_a, _flag_b)) goto L_36115DAA; /* 0x36115D9F: je 0x36115daa */ 14122 L_36115DA1: 14123 PUSH32(esp, esi); /* 0x36115DA1: push esi */ 14124 RECOMP_ICALL(0x3615FCC4u); /* 0x36115DA2: call 0x3615fcc4 */ /* not lifted */ 14125 RECOMP_FLAGS_IN(); 14126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14128 esp = esp + 4; /* 0x36115DA7: add esp, 4 */ 14129 _flag_k = FK_ADD; 14130 L_36115DAA: 14131 eax = esi; /* 0x36115DAA: mov eax, esi */ 14132 esi = POP32_VAL(esp); /* 0x36115DAC: pop esi */ 14133 ebp = POP32_VAL(esp); /* 0x36115DAD: pop ebp */ 14134 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36115DAE: ret 4 */ 14135 RECOMP_REGS_OUT(); 14136 } 14137 14138 void sub_36115DC0(void) { 14139 int _fpu_cmp = 0; 14140 uint32_t _cf = 0; 14141 int _df = 1; 14142 uint32_t _flag_k = FK_NONE; 14143 uint32_t _flag_a = 0, _flag_b = 0; 14144 uint32_t _itail_tgt = 0; 14145 RECOMP_REGS_LOCALS 14146 RECOMP_ENTER(0x36115DC0u); 14147 14148 L_36115DC0: 14149 PUSH32(esp, ebp); /* 0x36115DC0: push ebp */ 14150 ebp = esp; /* 0x36115DC1: mov ebp, esp */ 14151 PUSH32(esp, 0xFFFFFFFFu); /* 0x36115DC3: push -1 */ 14152 PUSH32(esp, 0x3616B093u); /* 0x36115DC5: push 0x3616b093 */ 14153 eax = MEM32(FS_BASE + (0)); /* 0x36115DCA: mov eax, dword ptr fs:[0] */ 14154 PUSH32(esp, eax); /* 0x36115DD0: push eax */ 14155 MEM32(FS_BASE + (0)) = esp; /* 0x36115DD1: mov dword ptr fs:[0], esp */ 14156 PUSH32(esp, ecx); /* 0x36115DD8: push ecx */ 14157 PUSH32(esp, esi); /* 0x36115DD9: push esi */ 14158 esi = ecx; /* 0x36115DDA: mov esi, ecx */ 14159 PUSH32(esp, edi); /* 0x36115DDC: push edi */ 14160 MEM32(ebp + (-0x10)) = esi; /* 0x36115DDD: mov dword ptr [ebp - 0x10], esi */ 14161 MEM32(esi) = 0x36176DDCu; /* 0x36115DE0: mov dword ptr [esi], 0x36176ddc */ 14162 edi = MEM32(esi + 0x20); /* 0x36115DE6: mov edi, dword ptr [esi + 0x20] */ 14163 /* test edi, edi */ /* 0x36115DE9: test edi, edi */ 14164 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 14165 _cf = 0; 14166 _flag_k = FK_TEST; 14167 MEM32(ebp + (-0x4)) = 1; /* 0x36115DEB: mov dword ptr [ebp - 4], 1 */ 14168 if (TEST_Z(_flag_a, _flag_b)) goto L_36115E0B; /* 0x36115DF2: je 0x36115e0b */ 14169 L_36115DF4: 14170 ecx = edi; /* 0x36115DF4: mov ecx, edi */ 14171 RECOMP_ICALL(0x360E2940u); /* 0x36115DF6: call 0x360e2940 */ /* not lifted */ 14172 RECOMP_FLAGS_IN(); 14173 PUSH32(esp, edi); /* 0x36115DFB: push edi */ 14174 RECOMP_ICALL(0x3615FCC4u); /* 0x36115DFC: call 0x3615fcc4 */ /* not lifted */ 14175 RECOMP_FLAGS_IN(); 14176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 14177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14178 esp = esp + 4; /* 0x36115E01: add esp, 4 */ 14179 _flag_k = FK_ADD; 14180 MEM32(esi + 0x20) = 0; /* 0x36115E04: mov dword ptr [esi + 0x20], 0 */ 14181 L_36115E0B: 14182 ecx = MEM32(esi + 0x24); /* 0x36115E0B: mov ecx, dword ptr [esi + 0x24] */ 14183 /* test ecx, ecx */ /* 0x36115E0E: test ecx, ecx */ 14184 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 14185 _cf = 0; 14186 _flag_k = FK_TEST; 14187 if (TEST_Z(_flag_a, _flag_b)) goto L_36115E18; /* 0x36115E10: je 0x36115e18 */ 14188 L_36115E12: 14189 eax = MEM32(ecx); /* 0x36115E12: mov eax, dword ptr [ecx] */ 14190 PUSH32(esp, 1); /* 0x36115E14: push 1 */ 14191 RECOMP_ICALL(MEM32(eax)); /* 0x36115E16: call dword ptr [eax] */ 14192 RECOMP_FLAGS_IN(); 14193 L_36115E18: 14194 ecx = esi + 0x34; /* 0x36115E18: lea ecx, [esi + 0x34] */ 14195 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36115E1B: mov byte ptr [ebp - 4], 0 */ 14196 RECOMP_ICALL(0x360E2940u); /* 0x36115E1F: call 0x360e2940 */ /* not lifted */ 14197 RECOMP_FLAGS_IN(); 14198 ecx = esi; /* 0x36115E24: mov ecx, esi */ 14199 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36115E26: mov dword ptr [ebp - 4], 0xffffffff */ 14200 RECOMP_ICALL(0x360FC2F0u); /* 0x36115E2D: call 0x360fc2f0 */ /* not lifted */ 14201 RECOMP_FLAGS_IN(); 14202 ecx = MEM32(ebp + (-0xC)); /* 0x36115E32: mov ecx, dword ptr [ebp - 0xc] */ 14203 edi = POP32_VAL(esp); /* 0x36115E35: pop edi */ 14204 esi = POP32_VAL(esp); /* 0x36115E36: pop esi */ 14205 MEM32(FS_BASE + (0)) = ecx; /* 0x36115E37: mov dword ptr fs:[0], ecx */ 14206 esp = ebp; /* 0x36115E3E: mov esp, ebp */ 14207 ebp = POP32_VAL(esp); /* 0x36115E40: pop ebp */ 14208 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115E41: ret */ 14209 RECOMP_REGS_OUT(); 14210 } 14211 14212 void sub_36115E50(void) { 14213 int _fpu_cmp = 0; 14214 uint32_t _cf = 0; 14215 int _df = 1; 14216 uint32_t _flag_k = FK_NONE; 14217 uint32_t _flag_a = 0, _flag_b = 0; 14218 uint32_t _itail_tgt = 0; 14219 RECOMP_REGS_LOCALS 14220 RECOMP_ENTER(0x36115E50u); 14221 14222 L_36115E50: 14223 PUSH32(esp, ebp); /* 0x36115E50: push ebp */ 14224 ebp = esp; /* 0x36115E51: mov ebp, esp */ 14225 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 14226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 14227 esp = esp - 0x24u; /* 0x36115E53: sub esp, 0x24 */ 14228 _flag_k = FK_CMP; 14229 PUSH32(esp, esi); /* 0x36115E56: push esi */ 14230 PUSH32(esp, edi); /* 0x36115E57: push edi */ 14231 esi = ecx; /* 0x36115E58: mov esi, ecx */ 14232 RECOMP_ICALL(0x360FC300u); /* 0x36115E5A: call 0x360fc300 */ /* not lifted */ 14233 RECOMP_FLAGS_IN(); 14234 SET_LO8(eax, MEM8(esi + 0x14)); /* 0x36115E5F: mov al, byte ptr [esi + 0x14] */ 14235 /* test LO8(eax), LO8(eax) */ /* 0x36115E62: test al, al */ 14236 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14237 _cf = 0; 14238 _flag_k = FK_NARROW(FK_TEST, 24); 14239 if (TEST_NZ(_flag_a, _flag_b)) goto L_36115F46; /* 0x36115E64: jne 0x36115f46 */ 14240 L_36115E6A: 14241 ecx = MEM32(esi + 0x20); /* 0x36115E6A: mov ecx, dword ptr [esi + 0x20] */ 14242 RECOMP_ICALL(0x361331E0u); /* 0x36115E6D: call 0x361331e0 */ /* not lifted */ 14243 RECOMP_FLAGS_IN(); 14244 /* test LO8(eax), LO8(eax) */ /* 0x36115E72: test al, al */ 14245 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 14246 _cf = 0; 14247 _flag_k = FK_NARROW(FK_TEST, 24); 14248 if (TEST_NZ(_flag_a, _flag_b)) goto L_36115E7C; /* 0x36115E74: jne 0x36115e7c */ 14249 L_36115E76: 14250 eax = MEM32(esi + 0x20); /* 0x36115E76: mov eax, dword ptr [esi + 0x20] */ 14251 MEM8(eax) = (uint8_t)(0); /* 0x36115E79: mov byte ptr [eax], 0 */ 14252 L_36115E7C: 14253 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36115E7C: fld dword ptr [esi + 0xc] */ 14254 ecx = MEM32(esi + 0x24); /* 0x36115E7F: mov ecx, dword ptr [esi + 0x24] */ 14255 { float _v = (float)fp_pop(); *(float*)ADDR(ecx + 0x228) = _v; } /* 0x36115E82: fstp dword ptr [ecx + 0x228] */ 14256 fp_push(*(float*)&MEM32(esi + 0xC)); /* 0x36115E88: fld dword ptr [esi + 0xc] */ 14257 edx = MEM32(esi + 0x24); /* 0x36115E8B: mov edx, dword ptr [esi + 0x24] */ 14258 _st[0] /= (double)*(float*)ADDR(esi + 0x10); /* 0x36115E8E: fdiv dword ptr [esi + 0x10] */ 14259 edi = MEM32(edx); /* 0x36115E91: mov edi, dword ptr [edx] */ 14260 PUSH32(esp, ecx); /* 0x36115E93: push ecx */ 14261 ecx = esi + 0x34; /* 0x36115E94: lea ecx, [esi + 0x34] */ 14262 { float _v = (float)fp_pop(); *(float*)ADDR(esp) = _v; } /* 0x36115E97: fstp dword ptr [esp] */ 14263 RECOMP_ICALL(0x36137D80u); /* 0x36115E9A: call 0x36137d80 */ /* not lifted */ 14264 RECOMP_FLAGS_IN(); 14265 ecx = MEM32(esi + 0x24); /* 0x36115E9F: mov ecx, dword ptr [esi + 0x24] */ 14266 PUSH32(esp, eax); /* 0x36115EA2: push eax */ 14267 RECOMP_ICALL(MEM32(edi + 0x50)); /* 0x36115EA3: call dword ptr [edi + 0x50] */ 14268 RECOMP_FLAGS_IN(); 14269 RECOMP_ICALL(0x360F7B00u); /* 0x36115EA6: call 0x360f7b00 */ /* not lifted */ 14270 RECOMP_FLAGS_IN(); 14271 ecx = MEM32(esi + 0x28); /* 0x36115EAB: mov ecx, dword ptr [esi + 0x28] */ 14272 PUSH32(esp, ecx); /* 0x36115EAE: push ecx */ 14273 ecx = eax; /* 0x36115EAF: mov ecx, eax */ 14274 RECOMP_ICALL(0x360FBF90u); /* 0x36115EB1: call 0x360fbf90 */ /* not lifted */ 14275 RECOMP_FLAGS_IN(); 14276 edi = eax; /* 0x36115EB6: mov edi, eax */ 14277 /* test edi, edi */ /* 0x36115EB8: test edi, edi */ 14278 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 14279 _cf = 0; 14280 _flag_k = FK_TEST; 14281 if (TEST_Z(_flag_a, _flag_b)) goto L_36115F42; /* 0x36115EBA: je 0x36115f42 */ 14282 L_36115EC0: 14283 edx = ebp + (-0xC); /* 0x36115EC0: lea edx, [ebp - 0xc] */ 14284 PUSH32(esp, edx); /* 0x36115EC3: push edx */ 14285 ecx = edi; /* 0x36115EC4: mov ecx, edi */ 14286 RECOMP_ICALL(0x36131BB0u); /* 0x36115EC6: call 0x36131bb0 */ /* not lifted */ 14287 RECOMP_FLAGS_IN(); 14288 ecx = MEM32(eax); /* 0x36115ECB: mov ecx, dword ptr [eax] */ 14289 MEM32(ebp + (-0x18)) = ecx; /* 0x36115ECD: mov dword ptr [ebp - 0x18], ecx */ 14290 edx = MEM32(eax + 0x4); /* 0x36115ED0: mov edx, dword ptr [eax + 4] */ 14291 ecx = ebp + (-0x24); /* 0x36115ED3: lea ecx, [ebp - 0x24] */ 14292 MEM32(ebp + (-0x14)) = edx; /* 0x36115ED6: mov dword ptr [ebp - 0x14], edx */ 14293 eax = MEM32(eax + 0x8); /* 0x36115ED9: mov eax, dword ptr [eax + 8] */ 14294 PUSH32(esp, ecx); /* 0x36115EDC: push ecx */ 14295 ecx = edi; /* 0x36115EDD: mov ecx, edi */ 14296 MEM32(ebp + (-0x10)) = eax; /* 0x36115EDF: mov dword ptr [ebp - 0x10], eax */ 14297 RECOMP_ICALL(0x36131C00u); /* 0x36115EE2: call 0x36131c00 */ /* not lifted */ 14298 RECOMP_FLAGS_IN(); 14299 edx = MEM32(eax); /* 0x36115EE7: mov edx, dword ptr [eax] */ 14300 ecx = MEM32(eax + 0x4); /* 0x36115EE9: mov ecx, dword ptr [eax + 4] */ 14301 MEM32(ebp + (-0xC)) = edx; /* 0x36115EEC: mov dword ptr [ebp - 0xc], edx */ 14302 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x36115EEF: fld dword ptr [ebp - 0xc] */ 14303 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x36115EF2: fsub dword ptr [ebp - 0x18] */ 14304 edx = MEM32(eax + 0x8); /* 0x36115EF5: mov edx, dword ptr [eax + 8] */ 14305 MEM32(ebp + (-0x8)) = ecx; /* 0x36115EF8: mov dword ptr [ebp - 8], ecx */ 14306 ecx = MEM32(esi + 0x24); /* 0x36115EFB: mov ecx, dword ptr [esi + 0x24] */ 14307 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x36115EFE: fstp dword ptr [ebp - 0xc] */ 14308 MEM32(ebp + (-0x4)) = edx; /* 0x36115F01: mov dword ptr [ebp - 4], edx */ 14309 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x36115F04: fld dword ptr [ebp - 8] */ 14310 PUSH32(esp, 0); /* 0x36115F07: push 0 */ 14311 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x36115F09: fsub dword ptr [ebp - 0x14] */ 14312 eax = ebp + (-0x18); /* 0x36115F0C: lea eax, [ebp - 0x18] */ 14313 PUSH32(esp, eax); /* 0x36115F0F: push eax */ 14314 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36115F10: fstp dword ptr [ebp - 8] */ 14315 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x36115F13: fld dword ptr [ebp - 4] */ 14316 _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x36115F16: fsub dword ptr [ebp - 0x10] */ 14317 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x36115F19: fstp dword ptr [ebp - 4] */ 14318 RECOMP_ICALL(MEM32(0x3616F648)); /* 0x36115F1C: call dword ptr [0x3616f648] */ 14319 RECOMP_FLAGS_IN(); 14320 ecx = MEM32(esi + 0x24); /* 0x36115F22: mov ecx, dword ptr [esi + 0x24] */ 14321 edx = MEM32(ebp + (-0xC)); /* 0x36115F25: mov edx, dword ptr [ebp - 0xc] */ 14322 eax = MEM32(ebp + (-0x8)); /* 0x36115F28: mov eax, dword ptr [ebp - 8] */ 14323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x21Cu); 14324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 14325 ecx = ecx + 0x21Cu; /* 0x36115F2B: add ecx, 0x21c */ 14326 _flag_k = FK_ADD; 14327 MEM32(ecx) = edx; /* 0x36115F31: mov dword ptr [ecx], edx */ 14328 edx = MEM32(ebp + (-0x4)); /* 0x36115F33: mov edx, dword ptr [ebp - 4] */ 14329 MEM32(ecx + 0x4) = eax; /* 0x36115F36: mov dword ptr [ecx + 4], eax */ 14330 edi = POP32_VAL(esp); /* 0x36115F39: pop edi */ 14331 MEM32(ecx + 0x8) = edx; /* 0x36115F3A: mov dword ptr [ecx + 8], edx */ 14332 esi = POP32_VAL(esp); /* 0x36115F3D: pop esi */ 14333 esp = ebp; /* 0x36115F3E: mov esp, ebp */ 14334 ebp = POP32_VAL(esp); /* 0x36115F40: pop ebp */ 14335 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115F41: ret */ 14336 L_36115F42: 14337 MEM8(esi + 0x14) = (uint8_t)(1); /* 0x36115F42: mov byte ptr [esi + 0x14], 1 */ 14338 L_36115F46: 14339 edi = POP32_VAL(esp); /* 0x36115F46: pop edi */ 14340 esi = POP32_VAL(esp); /* 0x36115F47: pop esi */ 14341 esp = ebp; /* 0x36115F48: mov esp, ebp */ 14342 ebp = POP32_VAL(esp); /* 0x36115F4A: pop ebp */ 14343 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36115F4B: ret */ 14344 RECOMP_REGS_OUT(); 14345 }