client/game/kkr.dll/lifted-0042.c (470952B)
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_3608E010(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(0x3608E010u); 17 18 L_3608E010: 19 PUSH32(esp, esi); /* 0x3608E010: push esi */ 20 esi = ecx; /* 0x3608E011: mov esi, ecx */ 21 PUSH32(esp, edi); /* 0x3608E013: push edi */ 22 ecx = esi + 0x8C; /* 0x3608E014: lea ecx, [esi + 0x8c] */ 23 RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x3608E01A: call dword ptr [0x3616ffac] */ 24 RECOMP_FLAGS_IN(); 25 ecx = eax; /* 0x3608E020: mov ecx, eax */ 26 RECOMP_ICALL(0x3614D440u); /* 0x3608E022: call 0x3614d440 */ /* not lifted */ 27 RECOMP_FLAGS_IN(); 28 edi = eax; /* 0x3608E027: mov edi, eax */ 29 /* test edi, edi */ /* 0x3608E029: test edi, edi */ 30 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 31 _cf = 0; 32 _flag_k = FK_TEST; 33 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E048; /* 0x3608E02B: je 0x3608e048 */ 34 L_3608E02D: 35 ecx = MEM32(esi + 0xEC); /* 0x3608E02D: mov ecx, dword ptr [esi + 0xec] */ 36 eax = MEM32(esi + 0x1C0); /* 0x3608E033: mov eax, dword ptr [esi + 0x1c0] */ 37 edx = MEM32(ecx); /* 0x3608E039: mov edx, dword ptr [ecx] */ 38 PUSH32(esp, eax); /* 0x3608E03B: push eax */ 39 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608E03C: call dword ptr [edx + 4] */ 40 RECOMP_FLAGS_IN(); 41 PUSH32(esp, eax); /* 0x3608E03F: push eax */ 42 ecx = edi; /* 0x3608E040: mov ecx, edi */ 43 RECOMP_ICALL(MEM32(0x3616FD58)); /* 0x3608E042: call dword ptr [0x3616fd58] */ 44 RECOMP_FLAGS_IN(); 45 L_3608E048: 46 edi = POP32_VAL(esp); /* 0x3608E048: pop edi */ 47 esi = POP32_VAL(esp); /* 0x3608E049: pop esi */ 48 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E04A: ret */ 49 RECOMP_REGS_OUT(); 50 } 51 52 void sub_3608E050(void) { 53 int _fpu_cmp = 0; 54 uint32_t _cf = 0; 55 int _df = 1; 56 uint32_t _flag_k = FK_NONE; 57 uint32_t _flag_a = 0, _flag_b = 0; 58 uint32_t _itail_tgt = 0; 59 RECOMP_REGS_LOCALS 60 RECOMP_ENTER(0x3608E050u); 61 62 L_3608E050: 63 PUSH32(esp, esi); /* 0x3608E050: push esi */ 64 esi = ecx; /* 0x3608E051: mov esi, ecx */ 65 PUSH32(esp, edi); /* 0x3608E053: push edi */ 66 ecx = esi + 0x8C; /* 0x3608E054: lea ecx, [esi + 0x8c] */ 67 RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x3608E05A: call dword ptr [0x3616ffac] */ 68 RECOMP_FLAGS_IN(); 69 ecx = eax; /* 0x3608E060: mov ecx, eax */ 70 RECOMP_ICALL(0x3614D440u); /* 0x3608E062: call 0x3614d440 */ /* not lifted */ 71 RECOMP_FLAGS_IN(); 72 edi = eax; /* 0x3608E067: mov edi, eax */ 73 /* test edi, edi */ /* 0x3608E069: test edi, edi */ 74 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 75 _cf = 0; 76 _flag_k = FK_TEST; 77 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E088; /* 0x3608E06B: je 0x3608e088 */ 78 L_3608E06D: 79 ecx = MEM32(esi + 0xEC); /* 0x3608E06D: mov ecx, dword ptr [esi + 0xec] */ 80 eax = MEM32(esi + 0x1C0); /* 0x3608E073: mov eax, dword ptr [esi + 0x1c0] */ 81 edx = MEM32(ecx); /* 0x3608E079: mov edx, dword ptr [ecx] */ 82 PUSH32(esp, eax); /* 0x3608E07B: push eax */ 83 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608E07C: call dword ptr [edx + 4] */ 84 RECOMP_FLAGS_IN(); 85 PUSH32(esp, eax); /* 0x3608E07F: push eax */ 86 ecx = edi; /* 0x3608E080: mov ecx, edi */ 87 RECOMP_ICALL(MEM32(0x3616FD5C)); /* 0x3608E082: call dword ptr [0x3616fd5c] */ 88 RECOMP_FLAGS_IN(); 89 L_3608E088: 90 edi = POP32_VAL(esp); /* 0x3608E088: pop edi */ 91 esi = POP32_VAL(esp); /* 0x3608E089: pop esi */ 92 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E08A: ret */ 93 RECOMP_REGS_OUT(); 94 } 95 96 void sub_3608E090(void) { 97 int _fpu_cmp = 0; 98 uint32_t _cf = 0; 99 int _df = 1; 100 uint32_t _flag_k = FK_NONE; 101 uint32_t _flag_a = 0, _flag_b = 0; 102 uint32_t _itail_tgt = 0; 103 RECOMP_REGS_LOCALS 104 RECOMP_ENTER(0x3608E090u); 105 106 L_3608E090: 107 PUSH32(esp, ebp); /* 0x3608E090: push ebp */ 108 ebp = esp; /* 0x3608E091: mov ebp, esp */ 109 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 111 esp = esp - 0xCu; /* 0x3608E093: sub esp, 0xc */ 112 _flag_k = FK_CMP; 113 PUSH32(esp, ebx); /* 0x3608E096: push ebx */ 114 PUSH32(esp, esi); /* 0x3608E097: push esi */ 115 esi = ecx; /* 0x3608E098: mov esi, ecx */ 116 PUSH32(esp, edi); /* 0x3608E09A: push edi */ 117 ebx = esi + 0x4C; /* 0x3608E09B: lea ebx, [esi + 0x4c] */ 118 PUSH32(esp, 0x83u); /* 0x3608E09E: push 0x83 */ 119 ecx = ebx; /* 0x3608E0A3: mov ecx, ebx */ 120 RECOMP_ICALL(0x3608ABF0u); /* 0x3608E0A5: call 0x3608abf0 */ /* not lifted */ 121 RECOMP_FLAGS_IN(); 122 edi = eax; /* 0x3608E0AA: mov edi, eax */ 123 /* test edi, edi */ /* 0x3608E0AC: test edi, edi */ 124 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 125 _cf = 0; 126 _flag_k = FK_TEST; 127 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608E0BB; /* 0x3608E0AE: jne 0x3608e0bb */ 128 L_3608E0B0: 129 PUSH32(esp, 0x64u); /* 0x3608E0B0: push 0x64 */ 130 ecx = ebx; /* 0x3608E0B2: mov ecx, ebx */ 131 RECOMP_ICALL(0x3608ABF0u); /* 0x3608E0B4: call 0x3608abf0 */ /* not lifted */ 132 RECOMP_FLAGS_IN(); 133 edi = eax; /* 0x3608E0B9: mov edi, eax */ 134 L_3608E0BB: 135 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 136 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 137 esp = esp - 0xCu; /* 0x3608E0BB: sub esp, 0xc */ 138 _flag_k = FK_CMP; 139 eax = esp; /* 0x3608E0BE: mov eax, esp */ 140 PUSH32(esp, 1); /* 0x3608E0C0: push 1 */ 141 PUSH32(esp, 0x64u); /* 0x3608E0C2: push 0x64 */ 142 PUSH32(esp, 0); /* 0x3608E0C4: push 0 */ 143 MEM32(ebp + (-0xC)) = 0; /* 0x3608E0C6: mov dword ptr [ebp - 0xc], 0 */ 144 ecx = MEM32(ebp + (-0xC)); /* 0x3608E0CD: mov ecx, dword ptr [ebp - 0xc] */ 145 MEM32(eax) = ecx; /* 0x3608E0D0: mov dword ptr [eax], ecx */ 146 MEM32(ebp + (-0x8)) = 0; /* 0x3608E0D2: mov dword ptr [ebp - 8], 0 */ 147 edx = MEM32(ebp + (-0x8)); /* 0x3608E0D9: mov edx, dword ptr [ebp - 8] */ 148 PUSH32(esp, 0); /* 0x3608E0DC: push 0 */ 149 MEM32(ebp + (-0x4)) = 0; /* 0x3608E0DE: mov dword ptr [ebp - 4], 0 */ 150 ecx = MEM32(ebp + (-0x4)); /* 0x3608E0E5: mov ecx, dword ptr [ebp - 4] */ 151 MEM32(eax + 0x4) = edx; /* 0x3608E0E8: mov dword ptr [eax + 4], edx */ 152 PUSH32(esp, 0x3F800000u); /* 0x3608E0EB: push 0x3f800000 */ 153 MEM32(eax + 0x8) = ecx; /* 0x3608E0F0: mov dword ptr [eax + 8], ecx */ 154 PUSH32(esp, 0); /* 0x3608E0F3: push 0 */ 155 ecx = esi + 0x8C; /* 0x3608E0F5: lea ecx, [esi + 0x8c] */ 156 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608E0FB: call dword ptr [0x3616ffb0] */ 157 RECOMP_FLAGS_IN(); 158 ecx = MEM32(eax); /* 0x3608E101: mov ecx, dword ptr [eax] */ 159 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 160 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 161 esp = esp - 0xCu; /* 0x3608E103: sub esp, 0xc */ 162 _flag_k = FK_CMP; 163 edx = esp; /* 0x3608E106: mov edx, esp */ 164 MEM32(edx) = ecx; /* 0x3608E108: mov dword ptr [edx], ecx */ 165 ecx = MEM32(eax + 0x4); /* 0x3608E10A: mov ecx, dword ptr [eax + 4] */ 166 eax = MEM32(eax + 0x8); /* 0x3608E10D: mov eax, dword ptr [eax + 8] */ 167 MEM32(edx + 0x4) = ecx; /* 0x3608E110: mov dword ptr [edx + 4], ecx */ 168 PUSH32(esp, edi); /* 0x3608E113: push edi */ 169 MEM32(edx + 0x8) = eax; /* 0x3608E114: mov dword ptr [edx + 8], eax */ 170 RECOMP_ICALL(0x3601C590u); /* 0x3608E117: call 0x3601c590 */ /* not lifted */ 171 RECOMP_FLAGS_IN(); 172 ecx = eax; /* 0x3608E11C: mov ecx, eax */ 173 RECOMP_ICALL(0x3601CBF0u); /* 0x3608E11E: call 0x3601cbf0 */ /* not lifted */ 174 RECOMP_FLAGS_IN(); 175 ecx = esi; /* 0x3608E123: mov ecx, esi */ 176 RECOMP_ICALL(0x3608E010u); /* 0x3608E125: call 0x3608e010 */ /* not lifted */ 177 RECOMP_FLAGS_IN(); 178 ecx = MEM32(ebp + 0x8); /* 0x3608E12A: mov ecx, dword ptr [ebp + 8] */ 179 PUSH32(esp, ecx); /* 0x3608E12D: push ecx */ 180 ecx = esi; /* 0x3608E12E: mov ecx, esi */ 181 RECOMP_ICALL(0x36097780u); /* 0x3608E130: call 0x36097780 */ /* not lifted */ 182 RECOMP_FLAGS_IN(); 183 edi = POP32_VAL(esp); /* 0x3608E135: pop edi */ 184 esi = POP32_VAL(esp); /* 0x3608E136: pop esi */ 185 ebx = POP32_VAL(esp); /* 0x3608E137: pop ebx */ 186 esp = ebp; /* 0x3608E138: mov esp, ebp */ 187 ebp = POP32_VAL(esp); /* 0x3608E13A: pop ebp */ 188 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608E13B: ret 4 */ 189 RECOMP_REGS_OUT(); 190 } 191 192 void sub_3608E140(void) { 193 int _fpu_cmp = 0; 194 uint32_t _cf = 0; 195 int _df = 1; 196 uint32_t _flag_k = FK_NONE; 197 uint32_t _flag_a = 0, _flag_b = 0; 198 uint32_t _itail_tgt = 0; 199 RECOMP_REGS_LOCALS 200 RECOMP_ENTER(0x3608E140u); 201 202 L_3608E140: 203 PUSH32(esp, ebp); /* 0x3608E140: push ebp */ 204 ebp = esp; /* 0x3608E141: mov ebp, esp */ 205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 207 esp = esp - 0xCu; /* 0x3608E143: sub esp, 0xc */ 208 _flag_k = FK_CMP; 209 PUSH32(esp, ebx); /* 0x3608E146: push ebx */ 210 PUSH32(esp, esi); /* 0x3608E147: push esi */ 211 PUSH32(esp, edi); /* 0x3608E148: push edi */ 212 esi = ecx; /* 0x3608E149: mov esi, ecx */ 213 eax = MEM32(esi); /* 0x3608E14B: mov eax, dword ptr [esi] */ 214 PUSH32(esp, 2); /* 0x3608E14D: push 2 */ 215 PUSH32(esp, 0x103u); /* 0x3608E14F: push 0x103 */ 216 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608E154: call dword ptr [eax + 4] */ 217 RECOMP_FLAGS_IN(); 218 /* test LO8(eax), 0x40u */ /* 0x3608E157: test al, 0x40 */ 219 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 220 _cf = 0; 221 _flag_k = FK_NARROW(FK_TEST, 24); 222 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608E20D; /* 0x3608E159: jne 0x3608e20d */ 223 L_3608E15F: 224 edx = MEM32(esi); /* 0x3608E15F: mov edx, dword ptr [esi] */ 225 PUSH32(esp, 2); /* 0x3608E161: push 2 */ 226 PUSH32(esp, 0x14Fu); /* 0x3608E163: push 0x14f */ 227 ecx = esi; /* 0x3608E168: mov ecx, esi */ 228 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608E16A: call dword ptr [edx + 4] */ 229 RECOMP_FLAGS_IN(); 230 ebx = esi + 0x4C; /* 0x3608E16D: lea ebx, [esi + 0x4c] */ 231 PUSH32(esp, 0x84u); /* 0x3608E170: push 0x84 */ 232 ecx = ebx; /* 0x3608E175: mov ecx, ebx */ 233 MEM32(esi + 0x1C8) = eax; /* 0x3608E177: mov dword ptr [esi + 0x1c8], eax */ 234 RECOMP_ICALL(0x3608ABF0u); /* 0x3608E17D: call 0x3608abf0 */ /* not lifted */ 235 RECOMP_FLAGS_IN(); 236 edi = eax; /* 0x3608E182: mov edi, eax */ 237 /* test edi, edi */ /* 0x3608E184: test edi, edi */ 238 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 239 _cf = 0; 240 _flag_k = FK_TEST; 241 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608E193; /* 0x3608E186: jne 0x3608e193 */ 242 L_3608E188: 243 PUSH32(esp, 0x66u); /* 0x3608E188: push 0x66 */ 244 ecx = ebx; /* 0x3608E18A: mov ecx, ebx */ 245 RECOMP_ICALL(0x3608ABF0u); /* 0x3608E18C: call 0x3608abf0 */ /* not lifted */ 246 RECOMP_FLAGS_IN(); 247 edi = eax; /* 0x3608E191: mov edi, eax */ 248 L_3608E193: 249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 251 esp = esp - 0xCu; /* 0x3608E193: sub esp, 0xc */ 252 _flag_k = FK_CMP; 253 eax = esp; /* 0x3608E196: mov eax, esp */ 254 PUSH32(esp, 1); /* 0x3608E198: push 1 */ 255 PUSH32(esp, 0x64u); /* 0x3608E19A: push 0x64 */ 256 PUSH32(esp, 0); /* 0x3608E19C: push 0 */ 257 MEM32(ebp + (-0xC)) = 0; /* 0x3608E19E: mov dword ptr [ebp - 0xc], 0 */ 258 ecx = MEM32(ebp + (-0xC)); /* 0x3608E1A5: mov ecx, dword ptr [ebp - 0xc] */ 259 MEM32(eax) = ecx; /* 0x3608E1A8: mov dword ptr [eax], ecx */ 260 MEM32(ebp + (-0x8)) = 0; /* 0x3608E1AA: mov dword ptr [ebp - 8], 0 */ 261 edx = MEM32(ebp + (-0x8)); /* 0x3608E1B1: mov edx, dword ptr [ebp - 8] */ 262 PUSH32(esp, 0); /* 0x3608E1B4: push 0 */ 263 MEM32(ebp + (-0x4)) = 0; /* 0x3608E1B6: mov dword ptr [ebp - 4], 0 */ 264 ecx = MEM32(ebp + (-0x4)); /* 0x3608E1BD: mov ecx, dword ptr [ebp - 4] */ 265 MEM32(eax + 0x4) = edx; /* 0x3608E1C0: mov dword ptr [eax + 4], edx */ 266 PUSH32(esp, 0x3F800000u); /* 0x3608E1C3: push 0x3f800000 */ 267 MEM32(eax + 0x8) = ecx; /* 0x3608E1C8: mov dword ptr [eax + 8], ecx */ 268 PUSH32(esp, 0); /* 0x3608E1CB: push 0 */ 269 ecx = esi + 0x8C; /* 0x3608E1CD: lea ecx, [esi + 0x8c] */ 270 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608E1D3: call dword ptr [0x3616ffb0] */ 271 RECOMP_FLAGS_IN(); 272 ecx = MEM32(eax); /* 0x3608E1D9: mov ecx, dword ptr [eax] */ 273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 275 esp = esp - 0xCu; /* 0x3608E1DB: sub esp, 0xc */ 276 _flag_k = FK_CMP; 277 edx = esp; /* 0x3608E1DE: mov edx, esp */ 278 MEM32(edx) = ecx; /* 0x3608E1E0: mov dword ptr [edx], ecx */ 279 ecx = MEM32(eax + 0x4); /* 0x3608E1E2: mov ecx, dword ptr [eax + 4] */ 280 eax = MEM32(eax + 0x8); /* 0x3608E1E5: mov eax, dword ptr [eax + 8] */ 281 MEM32(edx + 0x4) = ecx; /* 0x3608E1E8: mov dword ptr [edx + 4], ecx */ 282 PUSH32(esp, edi); /* 0x3608E1EB: push edi */ 283 MEM32(edx + 0x8) = eax; /* 0x3608E1EC: mov dword ptr [edx + 8], eax */ 284 RECOMP_ICALL(0x3601C590u); /* 0x3608E1EF: call 0x3601c590 */ /* not lifted */ 285 RECOMP_FLAGS_IN(); 286 ecx = eax; /* 0x3608E1F4: mov ecx, eax */ 287 RECOMP_ICALL(0x3601CBF0u); /* 0x3608E1F6: call 0x3601cbf0 */ /* not lifted */ 288 RECOMP_FLAGS_IN(); 289 ecx = esi; /* 0x3608E1FB: mov ecx, esi */ 290 RECOMP_ICALL(0x3608E050u); /* 0x3608E1FD: call 0x3608e050 */ /* not lifted */ 291 RECOMP_FLAGS_IN(); 292 ecx = MEM32(ebp + 0x8); /* 0x3608E202: mov ecx, dword ptr [ebp + 8] */ 293 PUSH32(esp, ecx); /* 0x3608E205: push ecx */ 294 ecx = esi; /* 0x3608E206: mov ecx, esi */ 295 RECOMP_ICALL(0x360977E0u); /* 0x3608E208: call 0x360977e0 */ /* not lifted */ 296 RECOMP_FLAGS_IN(); 297 L_3608E20D: 298 edi = POP32_VAL(esp); /* 0x3608E20D: pop edi */ 299 esi = POP32_VAL(esp); /* 0x3608E20E: pop esi */ 300 ebx = POP32_VAL(esp); /* 0x3608E20F: pop ebx */ 301 esp = ebp; /* 0x3608E210: mov esp, ebp */ 302 ebp = POP32_VAL(esp); /* 0x3608E212: pop ebp */ 303 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608E213: ret 4 */ 304 RECOMP_REGS_OUT(); 305 } 306 307 void sub_3608E220(void) { 308 int _fpu_cmp = 0; 309 uint32_t _cf = 0; 310 int _df = 1; 311 uint32_t _flag_k = FK_NONE; 312 uint32_t _flag_a = 0, _flag_b = 0; 313 uint32_t _itail_tgt = 0; 314 RECOMP_REGS_LOCALS 315 RECOMP_ENTER(0x3608E220u); 316 317 L_3608E220: 318 eax = MEM32(ecx); /* 0x3608E220: mov eax, dword ptr [ecx] */ 319 PUSH32(esp, 0x80u); /* 0x3608E222: push 0x80 */ 320 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x3608E227: call dword ptr [eax + 0x1c] */ 321 RECOMP_FLAGS_IN(); 322 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E22A: ret */ 323 RECOMP_REGS_OUT(); 324 } 325 326 void sub_3608E230(void) { 327 int _fpu_cmp = 0; 328 uint32_t _cf = 0; 329 int _df = 1; 330 uint32_t _flag_k = FK_NONE; 331 uint32_t _flag_a = 0, _flag_b = 0; 332 uint32_t _itail_tgt = 0; 333 RECOMP_REGS_LOCALS 334 RECOMP_ENTER(0x3608E230u); 335 336 L_3608E230: 337 PUSH32(esp, ebp); /* 0x3608E230: push ebp */ 338 ebp = esp; /* 0x3608E231: mov ebp, esp */ 339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 341 esp = esp - 0x5Cu; /* 0x3608E233: sub esp, 0x5c */ 342 _flag_k = FK_CMP; 343 PUSH32(esp, ebx); /* 0x3608E236: push ebx */ 344 PUSH32(esp, esi); /* 0x3608E237: push esi */ 345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu); 346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 347 ecx = ecx + 0x8Cu; /* 0x3608E238: add ecx, 0x8c */ 348 _flag_k = FK_ADD; 349 PUSH32(esp, edi); /* 0x3608E23E: push edi */ 350 MEM32(ebp + (-0x4)) = ecx; /* 0x3608E23F: mov dword ptr [ebp - 4], ecx */ 351 RECOMP_ICALL(MEM32(0x3616FFAC)); /* 0x3608E242: call dword ptr [0x3616ffac] */ 352 RECOMP_FLAGS_IN(); 353 ecx = eax; /* 0x3608E248: mov ecx, eax */ 354 RECOMP_ICALL(MEM32(0x361700D8)); /* 0x3608E24A: call dword ptr [0x361700d8] */ 355 RECOMP_FLAGS_IN(); 356 /* test LO8(eax), LO8(eax) */ /* 0x3608E250: test al, al */ 357 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 358 _cf = 0; 359 _flag_k = FK_NARROW(FK_TEST, 24); 360 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E50E; /* 0x3608E252: je 0x3608e50e */ 361 L_3608E258: 362 ecx = MEM32(ebp + 0x8); /* 0x3608E258: mov ecx, dword ptr [ebp + 8] */ 363 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608E25B: call dword ptr [0x3616ffb0] */ 364 RECOMP_FLAGS_IN(); 365 esi = MEM32(eax); /* 0x3608E261: mov esi, dword ptr [eax] */ 366 edi = MEM32(eax + 0x4); /* 0x3608E263: mov edi, dword ptr [eax + 4] */ 367 ebx = MEM32(eax + 0x8); /* 0x3608E266: mov ebx, dword ptr [eax + 8] */ 368 eax = MEM32(ebp + 0x8); /* 0x3608E269: mov eax, dword ptr [ebp + 8] */ 369 ecx = MEM32(eax + 0x60); /* 0x3608E26C: mov ecx, dword ptr [eax + 0x60] */ 370 MEM32(ebp + (-0x34)) = esi; /* 0x3608E26F: mov dword ptr [ebp - 0x34], esi */ 371 MEM32(ebp + (-0x30)) = edi; /* 0x3608E272: mov dword ptr [ebp - 0x30], edi */ 372 RECOMP_ICALL(MEM32(0x361702E8)); /* 0x3608E275: call dword ptr [0x361702e8] */ 373 RECOMP_FLAGS_IN(); 374 ecx = MEM32(ebp + (-0x4)); /* 0x3608E27B: mov ecx, dword ptr [ebp - 4] */ 375 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608E27E: call dword ptr [0x3616ffb0] */ 376 RECOMP_FLAGS_IN(); 377 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3608E284: fld dword ptr [ebp - 0x34] */ 378 ecx = MEM32(eax); /* 0x3608E287: mov ecx, dword ptr [eax] */ 379 edx = MEM32(eax + 0x4); /* 0x3608E289: mov edx, dword ptr [eax + 4] */ 380 eax = MEM32(eax + 0x8); /* 0x3608E28C: mov eax, dword ptr [eax + 8] */ 381 MEM32(ebp + (-0x40)) = ecx; /* 0x3608E28F: mov dword ptr [ebp - 0x40], ecx */ 382 _st[0] -= (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3608E292: fsub dword ptr [ebp - 0x40] */ 383 MEM32(ebp + (-0x1C)) = esi; /* 0x3608E295: mov dword ptr [ebp - 0x1c], esi */ 384 MEM32(ebp + (-0x18)) = edi; /* 0x3608E298: mov dword ptr [ebp - 0x18], edi */ 385 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3608E29B: fstp dword ptr [ebp - 0x1c] */ 386 MEM32(ebp + (-0x14)) = ebx; /* 0x3608E29E: mov dword ptr [ebp - 0x14], ebx */ 387 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608E2A1: fld dword ptr [ebp - 0x18] */ 388 MEM32(ebp + (-0x38)) = eax; /* 0x3608E2A4: mov dword ptr [ebp - 0x38], eax */ 389 _st[0] -= (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3608E2A7: fsub dword ptr [ebp - 0x30] */ 390 ecx = ebp + (-0x5C); /* 0x3608E2AA: lea ecx, [ebp - 0x5c] */ 391 PUSH32(esp, ecx); /* 0x3608E2AD: push ecx */ 392 ecx = MEM32(ebp + (-0x4)); /* 0x3608E2AE: mov ecx, dword ptr [ebp - 4] */ 393 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3608E2B1: fstp dword ptr [ebp - 0x18] */ 394 MEM32(ebp + (-0x3C)) = edx; /* 0x3608E2B4: mov dword ptr [ebp - 0x3c], edx */ 395 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3608E2B7: fld dword ptr [ebp - 0x14] */ 396 MEM32(ebp + (-0x28)) = 0; /* 0x3608E2BA: mov dword ptr [ebp - 0x28], 0 */ 397 _st[0] -= (double)*(float*)ADDR(ebp + (-0x38)); /* 0x3608E2C1: fsub dword ptr [ebp - 0x38] */ 398 MEM32(ebp + (-0x24)) = 0; /* 0x3608E2C4: mov dword ptr [ebp - 0x24], 0 */ 399 MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x3608E2CB: mov dword ptr [ebp - 0x20], 0x3f800000 */ 400 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3608E2D2: fstp dword ptr [ebp - 0x14] */ 401 RECOMP_ICALL(MEM32(0x36170048)); /* 0x3608E2D5: call dword ptr [0x36170048] */ 402 RECOMP_FLAGS_IN(); 403 edx = MEM32(ebp + (-0x28)); /* 0x3608E2DB: mov edx, dword ptr [ebp - 0x28] */ 404 ecx = MEM32(ebp + (-0x24)); /* 0x3608E2DE: mov ecx, dword ptr [ebp - 0x24] */ 405 MEM32(ebp + (-0x4C)) = edx; /* 0x3608E2E1: mov dword ptr [ebp - 0x4c], edx */ 406 edx = MEM32(ebp + (-0x20)); /* 0x3608E2E4: mov edx, dword ptr [ebp - 0x20] */ 407 MEM32(ebp + (-0x48)) = ecx; /* 0x3608E2E7: mov dword ptr [ebp - 0x48], ecx */ 408 PUSH32(esp, eax); /* 0x3608E2EA: push eax */ 409 ecx = ebp + (-0x4C); /* 0x3608E2EB: lea ecx, [ebp - 0x4c] */ 410 MEM32(ebp + (-0x44)) = edx; /* 0x3608E2EE: mov dword ptr [ebp - 0x44], edx */ 411 RECOMP_ICALL(MEM32(0x361701A0)); /* 0x3608E2F1: call dword ptr [0x361701a0] */ 412 RECOMP_FLAGS_IN(); 413 ecx = eax; /* 0x3608E2F7: mov ecx, eax */ 414 edx = MEM32(eax); /* 0x3608E2F9: mov edx, dword ptr [eax] */ 415 MEM32(ebp + (-0x10)) = edx; /* 0x3608E2FB: mov dword ptr [ebp - 0x10], edx */ 416 edx = MEM32(eax + 0x4); /* 0x3608E2FE: mov edx, dword ptr [eax + 4] */ 417 eax = MEM32(eax + 0x8); /* 0x3608E301: mov eax, dword ptr [eax + 8] */ 418 MEM32(ebp + (-0x8)) = eax; /* 0x3608E304: mov dword ptr [ebp - 8], eax */ 419 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3608E307: fld dword ptr [ebp - 8] */ 420 _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3608E30A: fmul dword ptr [ebp - 0x14] */ 421 MEM32(ebp + (-0xC)) = edx; /* 0x3608E30D: mov dword ptr [ebp - 0xc], edx */ 422 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3608E310: fld dword ptr [ebp - 0xc] */ 423 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 424 SET_LO8(edx, 0); /* 0x3608E313: xor dl, dl */ 425 _cf = 0; 426 _flag_k = FK_NARROW(FK_TEST, 24); 427 _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3608E315: fmul dword ptr [ebp - 0x18] */ 428 { double _v = fp_pop(); _st[0] += _v; } /* 0x3608E318: faddp st(1) */ 429 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3608E31A: fld dword ptr [ebp - 0x10] */ 430 _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x3608E31D: fmul dword ptr [ebp - 0x1c] */ 431 { double _v = fp_pop(); _st[0] += _v; } /* 0x3608E320: faddp st(1) */ 432 { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x3608E322: fst dword ptr [ebp - 4] */ 433 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170430)); /* 0x3608E325: fcomp qword ptr [0x36170430] */ 434 fp_pop(); 435 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608E32B: fnstsw ax */ 436 /* test HI8(eax), 1 */ /* 0x3608E32D: test ah, 1 */ 437 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 438 _cf = 0; 439 _flag_k = FK_NARROW(FK_TEST, 24); 440 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E334; /* 0x3608E330: je 0x3608e334 */ 441 L_3608E332: 442 SET_LO8(edx, 1); /* 0x3608E332: mov dl, 1 */ 443 L_3608E334: 444 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x3608E334: fld dword ptr [ebp - 4] */ 445 _st[0] = fabs(_st[0]); /* 0x3608E337: fabs */ 446 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361729D0)); /* 0x3608E339: fcomp dword ptr [0x361729d0] */ 447 fp_pop(); 448 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3608E33F: fnstsw ax */ 449 /* test HI8(eax), 1 */ /* 0x3608E341: test ah, 1 */ 450 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 451 _cf = 0; 452 _flag_k = FK_NARROW(FK_TEST, 24); 453 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E50E; /* 0x3608E344: je 0x3608e50e */ 454 L_3608E34A: 455 /* test LO8(edx), LO8(edx) */ /* 0x3608E34A: test dl, dl */ 456 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 457 _cf = 0; 458 _flag_k = FK_NARROW(FK_TEST, 24); 459 eax = MEM32(ecx); /* 0x3608E34C: mov eax, dword ptr [ecx] */ 460 MEM32(ebp + (-0x1C)) = eax; /* 0x3608E34E: mov dword ptr [ebp - 0x1c], eax */ 461 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3608E351: fld dword ptr [ebp - 0x1c] */ 462 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3608E354: fmul dword ptr [ebp - 4] */ 463 eax = MEM32(ecx + 0x4); /* 0x3608E357: mov eax, dword ptr [ecx + 4] */ 464 ecx = MEM32(ecx + 0x8); /* 0x3608E35A: mov ecx, dword ptr [ecx + 8] */ 465 MEM32(ebp + (-0x18)) = eax; /* 0x3608E35D: mov dword ptr [ebp - 0x18], eax */ 466 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608E360: fld dword ptr [ebp - 0x18] */ 467 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3608E363: fmul dword ptr [ebp - 4] */ 468 MEM32(ebp + (-0x14)) = ecx; /* 0x3608E366: mov dword ptr [ebp - 0x14], ecx */ 469 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3608E369: fstp dword ptr [ebp - 0x18] */ 470 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3608E36C: fld dword ptr [ebp - 0x14] */ 471 _st[0] *= (double)*(float*)ADDR(ebp + (-0x4)); /* 0x3608E36F: fmul dword ptr [ebp - 4] */ 472 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3608E372: fstp dword ptr [ebp - 0x14] */ 473 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E39B; /* 0x3608E375: je 0x3608e39b */ 474 L_3608E377: 475 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3608E377: fld dword ptr [ebp - 0x10] */ 476 _st[0] *= (double)*(float*)ADDR(0x36170444); /* 0x3608E37A: fmul dword ptr [0x36170444] */ 477 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3608E380: fstp dword ptr [ebp - 0x10] */ 478 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3608E383: fld dword ptr [ebp - 0xc] */ 479 _st[0] *= (double)*(float*)ADDR(0x36170444); /* 0x3608E386: fmul dword ptr [0x36170444] */ 480 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3608E38C: fstp dword ptr [ebp - 0xc] */ 481 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3608E38F: fld dword ptr [ebp - 8] */ 482 _st[0] *= (double)*(float*)ADDR(0x36170444); /* 0x3608E392: fmul dword ptr [0x36170444] */ 483 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3608E398: fstp dword ptr [ebp - 8] */ 484 L_3608E39B: 485 eax = MEM32(ebp + (-0xC)); /* 0x3608E39B: mov eax, dword ptr [ebp - 0xc] */ 486 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3608E39E: fld dword ptr [ebp - 0x10] */ 487 _st[0] *= (double)*(float*)ADDR(0x361729CC); /* 0x3608E3A1: fmul dword ptr [0x361729cc] */ 488 ecx = MEM32(ebp + (-0x8)); /* 0x3608E3A7: mov ecx, dword ptr [ebp - 8] */ 489 edx = MEM32(ebp + (-0x10)); /* 0x3608E3AA: mov edx, dword ptr [ebp - 0x10] */ 490 MEM32(ebp + (-0x24)) = eax; /* 0x3608E3AD: mov dword ptr [ebp - 0x24], eax */ 491 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3608E3B0: fld dword ptr [ebp - 0x24] */ 492 _st[0] *= (double)*(float*)ADDR(0x361729CC); /* 0x3608E3B3: fmul dword ptr [0x361729cc] */ 493 MEM32(ebp + (-0x20)) = ecx; /* 0x3608E3B9: mov dword ptr [ebp - 0x20], ecx */ 494 MEM32(ebp + (-0x10)) = esi; /* 0x3608E3BC: mov dword ptr [ebp - 0x10], esi */ 495 MEM32(ebp + (-0xC)) = edi; /* 0x3608E3BF: mov dword ptr [ebp - 0xc], edi */ 496 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3608E3C2: fstp dword ptr [ebp - 0x24] */ 497 MEM32(ebp + (-0x8)) = ebx; /* 0x3608E3C5: mov dword ptr [ebp - 8], ebx */ 498 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3608E3C8: fld dword ptr [ebp - 0x20] */ 499 MEM32(ebp + (-0x28)) = edx; /* 0x3608E3CB: mov dword ptr [ebp - 0x28], edx */ 500 _st[0] *= (double)*(float*)ADDR(0x361729CC); /* 0x3608E3CE: fmul dword ptr [0x361729cc] */ 501 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3608E3D4: fstp dword ptr [ebp - 0x20] */ 502 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3608E3D7: fld dword ptr [ebp - 0x34] */ 503 _st[0] -= _st[2]; /* 0x3608E3DA: fsub st(2) */ 504 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3608E3DC: fstp dword ptr [ebp - 0x10] */ 505 edx = MEM32(ebp + (-0x10)); /* 0x3608E3DF: mov edx, dword ptr [ebp - 0x10] */ 506 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3608E3E2: fld dword ptr [ebp - 0xc] */ 507 MEM32(ebp + (-0x1C)) = edx; /* 0x3608E3E5: mov dword ptr [ebp - 0x1c], edx */ 508 _st[0] -= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x3608E3E8: fsub dword ptr [ebp - 0x18] */ 509 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3608E3EB: fstp dword ptr [ebp - 0xc] */ 510 eax = MEM32(ebp + (-0xC)); /* 0x3608E3EE: mov eax, dword ptr [ebp - 0xc] */ 511 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3608E3F1: fld dword ptr [ebp - 8] */ 512 MEM32(ebp + (-0x18)) = eax; /* 0x3608E3F4: mov dword ptr [ebp - 0x18], eax */ 513 _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3608E3F7: fsub dword ptr [ebp - 0x14] */ 514 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3608E3FA: fstp dword ptr [ebp - 8] */ 515 ecx = MEM32(ebp + (-0x8)); /* 0x3608E3FD: mov ecx, dword ptr [ebp - 8] */ 516 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3608E400: fld dword ptr [ebp - 0x10] */ 517 MEM32(ebp + (-0x14)) = ecx; /* 0x3608E403: mov dword ptr [ebp - 0x14], ecx */ 518 _st[0] += _st[1]; /* 0x3608E406: fadd st(1) */ 519 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3608E408: fstp dword ptr [ebp - 0x1c] */ 520 edx = MEM32(ebp + (-0x1C)); /* 0x3608E40B: mov edx, dword ptr [ebp - 0x1c] */ 521 MEM32(ebp + (-0x4C)) = edx; /* 0x3608E40E: mov dword ptr [ebp - 0x4c], edx */ 522 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3608E411: fstp st(0) */ 523 edx = ebp + (-0x4C); /* 0x3608E413: lea edx, [ebp - 0x4c] */ 524 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3608E416: fstp st(0) */ 525 PUSH32(esp, edx); /* 0x3608E418: push edx */ 526 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608E419: fld dword ptr [ebp - 0x18] */ 527 _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x3608E41C: fadd dword ptr [ebp - 0x24] */ 528 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3608E41F: fstp dword ptr [ebp - 0x18] */ 529 eax = MEM32(ebp + (-0x18)); /* 0x3608E422: mov eax, dword ptr [ebp - 0x18] */ 530 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3608E425: fld dword ptr [ebp - 0x14] */ 531 MEM32(ebp + (-0x48)) = eax; /* 0x3608E428: mov dword ptr [ebp - 0x48], eax */ 532 _st[0] += (double)*(float*)ADDR(ebp + (-0x20)); /* 0x3608E42B: fadd dword ptr [ebp - 0x20] */ 533 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3608E42E: fstp dword ptr [ebp - 0x14] */ 534 ecx = MEM32(ebp + (-0x14)); /* 0x3608E431: mov ecx, dword ptr [ebp - 0x14] */ 535 MEM32(ebp + (-0x44)) = ecx; /* 0x3608E434: mov dword ptr [ebp - 0x44], ecx */ 536 ecx = MEM32(ebp + 0x8); /* 0x3608E437: mov ecx, dword ptr [ebp + 8] */ 537 RECOMP_ICALL(MEM32(0x3616FC28)); /* 0x3608E43A: call dword ptr [0x3616fc28] */ 538 RECOMP_FLAGS_IN(); 539 RECOMP_ICALL(0x360F7B00u); /* 0x3608E440: call 0x360f7b00 */ /* not lifted */ 540 RECOMP_FLAGS_IN(); 541 fp_push(*(float*)&MEM32(ebp + (-0x34))); /* 0x3608E445: fld dword ptr [ebp - 0x34] */ 542 _st[0] += (double)*(float*)ADDR(ebp + (-0x40)); /* 0x3608E448: fadd dword ptr [ebp - 0x40] */ 543 MEM32(ebp + (-0x10)) = esi; /* 0x3608E44B: mov dword ptr [ebp - 0x10], esi */ 544 MEM32(ebp + (-0xC)) = edi; /* 0x3608E44E: mov dword ptr [ebp - 0xc], edi */ 545 MEM32(ebp + (-0x8)) = ebx; /* 0x3608E451: mov dword ptr [ebp - 8], ebx */ 546 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x3608E454: fstp dword ptr [ebp - 0x10] */ 547 MEM32(ebp + 0x8) = eax; /* 0x3608E457: mov dword ptr [ebp + 8], eax */ 548 fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x3608E45A: fld dword ptr [ebp - 0xc] */ 549 MEM32(eax + 0x54) = 0x20u; /* 0x3608E45D: mov dword ptr [eax + 0x54], 0x20 */ 550 _st[0] += (double)*(float*)ADDR(ebp + (-0x30)); /* 0x3608E464: fadd dword ptr [ebp - 0x30] */ 551 eax = MEM32(ebp + (-0x10)); /* 0x3608E467: mov eax, dword ptr [ebp - 0x10] */ 552 MEM32(ebp + (-0x1C)) = eax; /* 0x3608E46A: mov dword ptr [ebp - 0x1c], eax */ 553 MEM32(ebp + (-0x4C)) = 0; /* 0x3608E46D: mov dword ptr [ebp - 0x4c], 0 */ 554 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3608E474: fstp dword ptr [ebp - 0xc] */ 555 ecx = MEM32(ebp + (-0xC)); /* 0x3608E477: mov ecx, dword ptr [ebp - 0xc] */ 556 fp_push(*(float*)&MEM32(ebp + (-0x8))); /* 0x3608E47A: fld dword ptr [ebp - 8] */ 557 MEM32(ebp + (-0x18)) = ecx; /* 0x3608E47D: mov dword ptr [ebp - 0x18], ecx */ 558 _st[0] += (double)*(float*)ADDR(ebp + (-0x38)); /* 0x3608E480: fadd dword ptr [ebp - 0x38] */ 559 MEM32(ebp + (-0x48)) = 0x3F800000u; /* 0x3608E483: mov dword ptr [ebp - 0x48], 0x3f800000 */ 560 MEM32(ebp + (-0x44)) = 0; /* 0x3608E48A: mov dword ptr [ebp - 0x44], 0 */ 561 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x3608E491: fstp dword ptr [ebp - 8] */ 562 edx = MEM32(ebp + (-0x8)); /* 0x3608E494: mov edx, dword ptr [ebp - 8] */ 563 fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x3608E497: fld dword ptr [ebp - 0x10] */ 564 MEM32(ebp + (-0x14)) = edx; /* 0x3608E49A: mov dword ptr [ebp - 0x14], edx */ 565 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3608E49D: fmul dword ptr [0x36170464] */ 566 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x3608E4A3: fstp dword ptr [ebp - 0x1c] */ 567 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3608E4A6: fld dword ptr [ebp - 0x18] */ 568 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3608E4A9: fmul dword ptr [0x36170464] */ 569 eax = MEM32(ebp + (-0x1C)); /* 0x3608E4AF: mov eax, dword ptr [ebp - 0x1c] */ 570 MEM32(ebp + (-0x40)) = eax; /* 0x3608E4B2: mov dword ptr [ebp - 0x40], eax */ 571 eax = ebp + (-0x4C); /* 0x3608E4B5: lea eax, [ebp - 0x4c] */ 572 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x3608E4B8: fstp dword ptr [ebp - 0x18] */ 573 ecx = MEM32(ebp + (-0x18)); /* 0x3608E4BB: mov ecx, dword ptr [ebp - 0x18] */ 574 fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x3608E4BE: fld dword ptr [ebp - 0x14] */ 575 MEM32(ebp + (-0x3C)) = ecx; /* 0x3608E4C1: mov dword ptr [ebp - 0x3c], ecx */ 576 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x3608E4C4: fmul dword ptr [0x36170464] */ 577 PUSH32(esp, eax); /* 0x3608E4CA: push eax */ 578 ecx = ebp + (-0x40); /* 0x3608E4CB: lea ecx, [ebp - 0x40] */ 579 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x3608E4CE: fstp dword ptr [ebp - 0x14] */ 580 edx = MEM32(ebp + (-0x14)); /* 0x3608E4D1: mov edx, dword ptr [ebp - 0x14] */ 581 MEM32(ebp + (-0x38)) = edx; /* 0x3608E4D4: mov dword ptr [ebp - 0x38], edx */ 582 RECOMP_ICALL(MEM32(0x36170178)); /* 0x3608E4D7: call dword ptr [0x36170178] */ 583 RECOMP_FLAGS_IN(); 584 ecx = MEM32(eax); /* 0x3608E4DD: mov ecx, dword ptr [eax] */ 585 esi = MEM32(ebp + 0x8); /* 0x3608E4DF: mov esi, dword ptr [ebp + 8] */ 586 MEM32(ebp + (-0x34)) = ecx; /* 0x3608E4E2: mov dword ptr [ebp - 0x34], ecx */ 587 edx = MEM32(eax + 0x4); /* 0x3608E4E5: mov edx, dword ptr [eax + 4] */ 588 ecx = ebp + (-0x34); /* 0x3608E4E8: lea ecx, [ebp - 0x34] */ 589 PUSH32(esp, ecx); /* 0x3608E4EB: push ecx */ 590 MEM32(ebp + (-0x30)) = edx; /* 0x3608E4EC: mov dword ptr [ebp - 0x30], edx */ 591 eax = MEM32(eax + 0x8); /* 0x3608E4EF: mov eax, dword ptr [eax + 8] */ 592 PUSH32(esp, 0x7D0u); /* 0x3608E4F2: push 0x7d0 */ 593 ecx = esi; /* 0x3608E4F7: mov ecx, esi */ 594 MEM32(ebp + (-0x2C)) = eax; /* 0x3608E4F9: mov dword ptr [ebp - 0x2c], eax */ 595 RECOMP_ICALL(0x360F80C0u); /* 0x3608E4FC: call 0x360f80c0 */ /* not lifted */ 596 RECOMP_FLAGS_IN(); 597 PUSH32(esp, 0xFF402020u); /* 0x3608E501: push 0xff402020 */ 598 PUSH32(esp, eax); /* 0x3608E506: push eax */ 599 ecx = esi; /* 0x3608E507: mov ecx, esi */ 600 RECOMP_ICALL(0x360FB800u); /* 0x3608E509: call 0x360fb800 */ /* not lifted */ 601 RECOMP_FLAGS_IN(); 602 L_3608E50E: 603 edi = POP32_VAL(esp); /* 0x3608E50E: pop edi */ 604 esi = POP32_VAL(esp); /* 0x3608E50F: pop esi */ 605 ebx = POP32_VAL(esp); /* 0x3608E510: pop ebx */ 606 esp = ebp; /* 0x3608E511: mov esp, ebp */ 607 ebp = POP32_VAL(esp); /* 0x3608E513: pop ebp */ 608 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608E514: ret 4 */ 609 RECOMP_REGS_OUT(); 610 } 611 612 void sub_3608E520(void) { 613 int _fpu_cmp = 0; 614 uint32_t _cf = 0; 615 int _df = 1; 616 uint32_t _flag_k = FK_NONE; 617 uint32_t _flag_a = 0, _flag_b = 0; 618 uint32_t _itail_tgt = 0; 619 RECOMP_REGS_LOCALS 620 RECOMP_ENTER(0x3608E520u); 621 622 goto L_3608E520; 623 L_3608CB10: 624 PUSH32(esp, ebp); /* 0x3608CB10: push ebp */ 625 ebp = esp; /* 0x3608CB11: mov ebp, esp */ 626 PUSH32(esp, esi); /* 0x3608CB13: push esi */ 627 esi = ecx; /* 0x3608CB14: mov esi, ecx */ 628 RECOMP_ICALL(0x3608CCB0u); /* 0x3608CB16: call 0x3608ccb0 */ /* not lifted */ 629 RECOMP_FLAGS_IN(); 630 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608CB1B: test byte ptr [ebp + 8], 1 */ 631 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 632 _cf = 0; 633 _flag_k = FK_NARROW(FK_TEST, 24); 634 if (TEST_Z(_flag_a, _flag_b)) goto L_3608CB2A; /* 0x3608CB1F: je 0x3608cb2a */ 635 L_3608CB21: 636 PUSH32(esp, esi); /* 0x3608CB21: push esi */ 637 RECOMP_ICALL(0x3615FCC4u); /* 0x3608CB22: call 0x3615fcc4 */ /* not lifted */ 638 RECOMP_FLAGS_IN(); 639 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 641 esp = esp + 4; /* 0x3608CB27: add esp, 4 */ 642 _flag_k = FK_ADD; 643 L_3608CB2A: 644 eax = esi; /* 0x3608CB2A: mov eax, esi */ 645 esi = POP32_VAL(esp); /* 0x3608CB2C: pop esi */ 646 ebp = POP32_VAL(esp); /* 0x3608CB2D: pop ebp */ 647 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608CB2E: ret 4 */ 648 L_3608E520: 649 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 651 ecx = ecx - 8; /* 0x3608E520: sub ecx, 8 */ 652 _flag_k = FK_CMP; 653 RECOMP_BACKEDGE(); 654 goto L_3608CB10; /* 0x3608E523: jmp 0x3608cb10 */ 655 { RECOMP_REGS_OUT(); return; } /* end of function */ 656 RECOMP_REGS_OUT(); 657 } 658 659 void sub_3608E530(void) { 660 int _fpu_cmp = 0; 661 uint32_t _cf = 0; 662 int _df = 1; 663 uint32_t _flag_k = FK_NONE; 664 uint32_t _flag_a = 0, _flag_b = 0; 665 uint32_t _itail_tgt = 0; 666 RECOMP_REGS_LOCALS 667 RECOMP_ENTER(0x3608E530u); 668 669 goto L_3608E530; 670 L_3608CB10: 671 PUSH32(esp, ebp); /* 0x3608CB10: push ebp */ 672 ebp = esp; /* 0x3608CB11: mov ebp, esp */ 673 PUSH32(esp, esi); /* 0x3608CB13: push esi */ 674 esi = ecx; /* 0x3608CB14: mov esi, ecx */ 675 RECOMP_ICALL(0x3608CCB0u); /* 0x3608CB16: call 0x3608ccb0 */ /* not lifted */ 676 RECOMP_FLAGS_IN(); 677 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608CB1B: test byte ptr [ebp + 8], 1 */ 678 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 679 _cf = 0; 680 _flag_k = FK_NARROW(FK_TEST, 24); 681 if (TEST_Z(_flag_a, _flag_b)) goto L_3608CB2A; /* 0x3608CB1F: je 0x3608cb2a */ 682 L_3608CB21: 683 PUSH32(esp, esi); /* 0x3608CB21: push esi */ 684 RECOMP_ICALL(0x3615FCC4u); /* 0x3608CB22: call 0x3615fcc4 */ /* not lifted */ 685 RECOMP_FLAGS_IN(); 686 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 688 esp = esp + 4; /* 0x3608CB27: add esp, 4 */ 689 _flag_k = FK_ADD; 690 L_3608CB2A: 691 eax = esi; /* 0x3608CB2A: mov eax, esi */ 692 esi = POP32_VAL(esp); /* 0x3608CB2C: pop esi */ 693 ebp = POP32_VAL(esp); /* 0x3608CB2D: pop ebp */ 694 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608CB2E: ret 4 */ 695 L_3608E530: 696 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 698 ecx = ecx - 0x40u; /* 0x3608E530: sub ecx, 0x40 */ 699 _flag_k = FK_CMP; 700 RECOMP_BACKEDGE(); 701 goto L_3608CB10; /* 0x3608E533: jmp 0x3608cb10 */ 702 { RECOMP_REGS_OUT(); return; } /* end of function */ 703 RECOMP_REGS_OUT(); 704 } 705 706 void sub_3608E540(void) { 707 int _fpu_cmp = 0; 708 uint32_t _cf = 0; 709 int _df = 1; 710 uint32_t _flag_k = FK_NONE; 711 uint32_t _flag_a = 0, _flag_b = 0; 712 uint32_t _itail_tgt = 0; 713 RECOMP_REGS_LOCALS 714 RECOMP_ENTER(0x3608E540u); 715 716 goto L_3608E540; 717 L_3608CB10: 718 PUSH32(esp, ebp); /* 0x3608CB10: push ebp */ 719 ebp = esp; /* 0x3608CB11: mov ebp, esp */ 720 PUSH32(esp, esi); /* 0x3608CB13: push esi */ 721 esi = ecx; /* 0x3608CB14: mov esi, ecx */ 722 RECOMP_ICALL(0x3608CCB0u); /* 0x3608CB16: call 0x3608ccb0 */ /* not lifted */ 723 RECOMP_FLAGS_IN(); 724 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608CB1B: test byte ptr [ebp + 8], 1 */ 725 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 726 _cf = 0; 727 _flag_k = FK_NARROW(FK_TEST, 24); 728 if (TEST_Z(_flag_a, _flag_b)) goto L_3608CB2A; /* 0x3608CB1F: je 0x3608cb2a */ 729 L_3608CB21: 730 PUSH32(esp, esi); /* 0x3608CB21: push esi */ 731 RECOMP_ICALL(0x3615FCC4u); /* 0x3608CB22: call 0x3615fcc4 */ /* not lifted */ 732 RECOMP_FLAGS_IN(); 733 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 734 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 735 esp = esp + 4; /* 0x3608CB27: add esp, 4 */ 736 _flag_k = FK_ADD; 737 L_3608CB2A: 738 eax = esi; /* 0x3608CB2A: mov eax, esi */ 739 esi = POP32_VAL(esp); /* 0x3608CB2C: pop esi */ 740 ebp = POP32_VAL(esp); /* 0x3608CB2D: pop ebp */ 741 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608CB2E: ret 4 */ 742 L_3608E540: 743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 745 ecx = ecx - 0x4Cu; /* 0x3608E540: sub ecx, 0x4c */ 746 _flag_k = FK_CMP; 747 RECOMP_BACKEDGE(); 748 goto L_3608CB10; /* 0x3608E543: jmp 0x3608cb10 */ 749 { RECOMP_REGS_OUT(); return; } /* end of function */ 750 RECOMP_REGS_OUT(); 751 } 752 753 void sub_3608E550(void) { 754 int _fpu_cmp = 0; 755 uint32_t _cf = 0; 756 int _df = 1; 757 uint32_t _flag_k = FK_NONE; 758 uint32_t _flag_a = 0, _flag_b = 0; 759 uint32_t _itail_tgt = 0; 760 RECOMP_REGS_LOCALS 761 RECOMP_ENTER(0x3608E550u); 762 763 goto L_3608E550; 764 L_3608CB10: 765 PUSH32(esp, ebp); /* 0x3608CB10: push ebp */ 766 ebp = esp; /* 0x3608CB11: mov ebp, esp */ 767 PUSH32(esp, esi); /* 0x3608CB13: push esi */ 768 esi = ecx; /* 0x3608CB14: mov esi, ecx */ 769 RECOMP_ICALL(0x3608CCB0u); /* 0x3608CB16: call 0x3608ccb0 */ /* not lifted */ 770 RECOMP_FLAGS_IN(); 771 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608CB1B: test byte ptr [ebp + 8], 1 */ 772 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 773 _cf = 0; 774 _flag_k = FK_NARROW(FK_TEST, 24); 775 if (TEST_Z(_flag_a, _flag_b)) goto L_3608CB2A; /* 0x3608CB1F: je 0x3608cb2a */ 776 L_3608CB21: 777 PUSH32(esp, esi); /* 0x3608CB21: push esi */ 778 RECOMP_ICALL(0x3615FCC4u); /* 0x3608CB22: call 0x3615fcc4 */ /* not lifted */ 779 RECOMP_FLAGS_IN(); 780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 782 esp = esp + 4; /* 0x3608CB27: add esp, 4 */ 783 _flag_k = FK_ADD; 784 L_3608CB2A: 785 eax = esi; /* 0x3608CB2A: mov eax, esi */ 786 esi = POP32_VAL(esp); /* 0x3608CB2C: pop esi */ 787 ebp = POP32_VAL(esp); /* 0x3608CB2D: pop ebp */ 788 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608CB2E: ret 4 */ 789 L_3608E550: 790 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u); 791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 792 ecx = ecx - 0x80u; /* 0x3608E550: sub ecx, 0x80 */ 793 _flag_k = FK_CMP; 794 RECOMP_BACKEDGE(); 795 goto L_3608CB10; /* 0x3608E556: jmp 0x3608cb10 */ 796 { RECOMP_REGS_OUT(); return; } /* end of function */ 797 RECOMP_REGS_OUT(); 798 } 799 800 void sub_3608E560(void) { 801 int _fpu_cmp = 0; 802 uint32_t _cf = 0; 803 int _df = 1; 804 uint32_t _flag_k = FK_NONE; 805 uint32_t _flag_a = 0, _flag_b = 0; 806 uint32_t _itail_tgt = 0; 807 RECOMP_REGS_LOCALS 808 RECOMP_ENTER(0x3608E560u); 809 810 goto L_3608E560; 811 L_3608CB10: 812 PUSH32(esp, ebp); /* 0x3608CB10: push ebp */ 813 ebp = esp; /* 0x3608CB11: mov ebp, esp */ 814 PUSH32(esp, esi); /* 0x3608CB13: push esi */ 815 esi = ecx; /* 0x3608CB14: mov esi, ecx */ 816 RECOMP_ICALL(0x3608CCB0u); /* 0x3608CB16: call 0x3608ccb0 */ /* not lifted */ 817 RECOMP_FLAGS_IN(); 818 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608CB1B: test byte ptr [ebp + 8], 1 */ 819 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 820 _cf = 0; 821 _flag_k = FK_NARROW(FK_TEST, 24); 822 if (TEST_Z(_flag_a, _flag_b)) goto L_3608CB2A; /* 0x3608CB1F: je 0x3608cb2a */ 823 L_3608CB21: 824 PUSH32(esp, esi); /* 0x3608CB21: push esi */ 825 RECOMP_ICALL(0x3615FCC4u); /* 0x3608CB22: call 0x3615fcc4 */ /* not lifted */ 826 RECOMP_FLAGS_IN(); 827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 829 esp = esp + 4; /* 0x3608CB27: add esp, 4 */ 830 _flag_k = FK_ADD; 831 L_3608CB2A: 832 eax = esi; /* 0x3608CB2A: mov eax, esi */ 833 esi = POP32_VAL(esp); /* 0x3608CB2C: pop esi */ 834 ebp = POP32_VAL(esp); /* 0x3608CB2D: pop ebp */ 835 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608CB2E: ret 4 */ 836 L_3608E560: 837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu); 838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 839 ecx = ecx - 0x8Cu; /* 0x3608E560: sub ecx, 0x8c */ 840 _flag_k = FK_CMP; 841 RECOMP_BACKEDGE(); 842 goto L_3608CB10; /* 0x3608E566: jmp 0x3608cb10 */ 843 { RECOMP_REGS_OUT(); return; } /* end of function */ 844 RECOMP_REGS_OUT(); 845 } 846 847 void sub_3608E570(void) { 848 int _fpu_cmp = 0; 849 uint32_t _cf = 0; 850 int _df = 1; 851 uint32_t _flag_k = FK_NONE; 852 uint32_t _flag_a = 0, _flag_b = 0; 853 uint32_t _itail_tgt = 0; 854 RECOMP_REGS_LOCALS 855 RECOMP_ENTER(0x3608E570u); 856 857 goto L_3608E570; 858 L_3608CB10: 859 PUSH32(esp, ebp); /* 0x3608CB10: push ebp */ 860 ebp = esp; /* 0x3608CB11: mov ebp, esp */ 861 PUSH32(esp, esi); /* 0x3608CB13: push esi */ 862 esi = ecx; /* 0x3608CB14: mov esi, ecx */ 863 RECOMP_ICALL(0x3608CCB0u); /* 0x3608CB16: call 0x3608ccb0 */ /* not lifted */ 864 RECOMP_FLAGS_IN(); 865 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608CB1B: test byte ptr [ebp + 8], 1 */ 866 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 867 _cf = 0; 868 _flag_k = FK_NARROW(FK_TEST, 24); 869 if (TEST_Z(_flag_a, _flag_b)) goto L_3608CB2A; /* 0x3608CB1F: je 0x3608cb2a */ 870 L_3608CB21: 871 PUSH32(esp, esi); /* 0x3608CB21: push esi */ 872 RECOMP_ICALL(0x3615FCC4u); /* 0x3608CB22: call 0x3615fcc4 */ /* not lifted */ 873 RECOMP_FLAGS_IN(); 874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 876 esp = esp + 4; /* 0x3608CB27: add esp, 4 */ 877 _flag_k = FK_ADD; 878 L_3608CB2A: 879 eax = esi; /* 0x3608CB2A: mov eax, esi */ 880 esi = POP32_VAL(esp); /* 0x3608CB2C: pop esi */ 881 ebp = POP32_VAL(esp); /* 0x3608CB2D: pop ebp */ 882 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608CB2E: ret 4 */ 883 L_3608E570: 884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xACu); 885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 886 ecx = ecx - 0xACu; /* 0x3608E570: sub ecx, 0xac */ 887 _flag_k = FK_CMP; 888 RECOMP_BACKEDGE(); 889 goto L_3608CB10; /* 0x3608E576: jmp 0x3608cb10 */ 890 { RECOMP_REGS_OUT(); return; } /* end of function */ 891 RECOMP_REGS_OUT(); 892 } 893 894 void sub_3608E580(void) { 895 int _fpu_cmp = 0; 896 uint32_t _cf = 0; 897 int _df = 1; 898 uint32_t _flag_k = FK_NONE; 899 uint32_t _flag_a = 0, _flag_b = 0; 900 uint32_t _itail_tgt = 0; 901 RECOMP_REGS_LOCALS 902 RECOMP_ENTER(0x3608E580u); 903 904 L_3608E580: 905 goto L_3608E590; /* 0x3608E580: jmp 0x3608e590 */ 906 L_3608E590: 907 MEM32(0x36306B58) = 0x361B2FF4u; /* 0x3608E590: mov dword ptr [0x36306b58], 0x361b2ff4 */ 908 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E59A: ret */ 909 RECOMP_REGS_OUT(); 910 } 911 912 void sub_3608E590(void) { 913 int _fpu_cmp = 0; 914 uint32_t _cf = 0; 915 int _df = 1; 916 uint32_t _flag_k = FK_NONE; 917 uint32_t _flag_a = 0, _flag_b = 0; 918 uint32_t _itail_tgt = 0; 919 RECOMP_REGS_LOCALS 920 RECOMP_ENTER(0x3608E590u); 921 922 L_3608E590: 923 MEM32(0x36306B58) = 0x361B2FF4u; /* 0x3608E590: mov dword ptr [0x36306b58], 0x361b2ff4 */ 924 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E59A: ret */ 925 RECOMP_REGS_OUT(); 926 } 927 928 void sub_3608E5A0(void) { 929 int _fpu_cmp = 0; 930 uint32_t _cf = 0; 931 int _df = 1; 932 uint32_t _flag_k = FK_NONE; 933 uint32_t _flag_a = 0, _flag_b = 0; 934 uint32_t _itail_tgt = 0; 935 RECOMP_REGS_LOCALS 936 RECOMP_ENTER(0x3608E5A0u); 937 938 L_3608E5A0: 939 goto L_3608E5B0; /* 0x3608E5A0: jmp 0x3608e5b0 */ 940 L_3608E5B0: 941 MEM32(0x36306B54) = 0x361B3028u; /* 0x3608E5B0: mov dword ptr [0x36306b54], 0x361b3028 */ 942 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E5BA: ret */ 943 RECOMP_REGS_OUT(); 944 } 945 946 void sub_3608E5B0(void) { 947 int _fpu_cmp = 0; 948 uint32_t _cf = 0; 949 int _df = 1; 950 uint32_t _flag_k = FK_NONE; 951 uint32_t _flag_a = 0, _flag_b = 0; 952 uint32_t _itail_tgt = 0; 953 RECOMP_REGS_LOCALS 954 RECOMP_ENTER(0x3608E5B0u); 955 956 L_3608E5B0: 957 MEM32(0x36306B54) = 0x361B3028u; /* 0x3608E5B0: mov dword ptr [0x36306b54], 0x361b3028 */ 958 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E5BA: ret */ 959 RECOMP_REGS_OUT(); 960 } 961 962 void sub_3608E5C0(void) { 963 int _fpu_cmp = 0; 964 uint32_t _cf = 0; 965 int _df = 1; 966 uint32_t _flag_k = FK_NONE; 967 uint32_t _flag_a = 0, _flag_b = 0; 968 uint32_t _itail_tgt = 0; 969 RECOMP_REGS_LOCALS 970 RECOMP_ENTER(0x3608E5C0u); 971 972 L_3608E5C0: 973 goto L_3608E5D0; /* 0x3608E5C0: jmp 0x3608e5d0 */ 974 L_3608E5D0: 975 MEM32(0x36306B50) = 0x361B3064u; /* 0x3608E5D0: mov dword ptr [0x36306b50], 0x361b3064 */ 976 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E5DA: ret */ 977 RECOMP_REGS_OUT(); 978 } 979 980 void sub_3608E5D0(void) { 981 int _fpu_cmp = 0; 982 uint32_t _cf = 0; 983 int _df = 1; 984 uint32_t _flag_k = FK_NONE; 985 uint32_t _flag_a = 0, _flag_b = 0; 986 uint32_t _itail_tgt = 0; 987 RECOMP_REGS_LOCALS 988 RECOMP_ENTER(0x3608E5D0u); 989 990 L_3608E5D0: 991 MEM32(0x36306B50) = 0x361B3064u; /* 0x3608E5D0: mov dword ptr [0x36306b50], 0x361b3064 */ 992 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E5DA: ret */ 993 RECOMP_REGS_OUT(); 994 } 995 996 void sub_3608E5E0(void) { 997 int _fpu_cmp = 0; 998 uint32_t _cf = 0; 999 int _df = 1; 1000 uint32_t _flag_k = FK_NONE; 1001 uint32_t _flag_a = 0, _flag_b = 0; 1002 uint32_t _itail_tgt = 0; 1003 RECOMP_REGS_LOCALS 1004 RECOMP_ENTER(0x3608E5E0u); 1005 1006 L_3608E5E0: 1007 goto L_3608E5F0; /* 0x3608E5E0: jmp 0x3608e5f0 */ 1008 L_3608E5F0: 1009 MEM32(0x36306B4C) = 0x361B3098u; /* 0x3608E5F0: mov dword ptr [0x36306b4c], 0x361b3098 */ 1010 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E5FA: ret */ 1011 RECOMP_REGS_OUT(); 1012 } 1013 1014 void sub_3608E5F0(void) { 1015 int _fpu_cmp = 0; 1016 uint32_t _cf = 0; 1017 int _df = 1; 1018 uint32_t _flag_k = FK_NONE; 1019 uint32_t _flag_a = 0, _flag_b = 0; 1020 uint32_t _itail_tgt = 0; 1021 RECOMP_REGS_LOCALS 1022 RECOMP_ENTER(0x3608E5F0u); 1023 1024 L_3608E5F0: 1025 MEM32(0x36306B4C) = 0x361B3098u; /* 0x3608E5F0: mov dword ptr [0x36306b4c], 0x361b3098 */ 1026 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E5FA: ret */ 1027 RECOMP_REGS_OUT(); 1028 } 1029 1030 void sub_3608E600(void) { 1031 int _fpu_cmp = 0; 1032 uint32_t _cf = 0; 1033 int _df = 1; 1034 uint32_t _flag_k = FK_NONE; 1035 uint32_t _flag_a = 0, _flag_b = 0; 1036 uint32_t _itail_tgt = 0; 1037 RECOMP_REGS_LOCALS 1038 RECOMP_ENTER(0x3608E600u); 1039 1040 L_3608E600: 1041 goto L_3608E610; /* 0x3608E600: jmp 0x3608e610 */ 1042 L_3608E610: 1043 MEM32(0x36306B48) = 0x361B30CCu; /* 0x3608E610: mov dword ptr [0x36306b48], 0x361b30cc */ 1044 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E61A: ret */ 1045 RECOMP_REGS_OUT(); 1046 } 1047 1048 void sub_3608E610(void) { 1049 int _fpu_cmp = 0; 1050 uint32_t _cf = 0; 1051 int _df = 1; 1052 uint32_t _flag_k = FK_NONE; 1053 uint32_t _flag_a = 0, _flag_b = 0; 1054 uint32_t _itail_tgt = 0; 1055 RECOMP_REGS_LOCALS 1056 RECOMP_ENTER(0x3608E610u); 1057 1058 L_3608E610: 1059 MEM32(0x36306B48) = 0x361B30CCu; /* 0x3608E610: mov dword ptr [0x36306b48], 0x361b30cc */ 1060 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E61A: ret */ 1061 RECOMP_REGS_OUT(); 1062 } 1063 1064 void sub_3608E620(void) { 1065 int _fpu_cmp = 0; 1066 uint32_t _cf = 0; 1067 int _df = 1; 1068 uint32_t _flag_k = FK_NONE; 1069 uint32_t _flag_a = 0, _flag_b = 0; 1070 uint32_t _itail_tgt = 0; 1071 RECOMP_REGS_LOCALS 1072 RECOMP_ENTER(0x3608E620u); 1073 1074 L_3608E620: 1075 goto L_3608E630; /* 0x3608E620: jmp 0x3608e630 */ 1076 L_3608E630: 1077 MEM32(0x36306B44) = 0x361B3100u; /* 0x3608E630: mov dword ptr [0x36306b44], 0x361b3100 */ 1078 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E63A: ret */ 1079 RECOMP_REGS_OUT(); 1080 } 1081 1082 void sub_3608E630(void) { 1083 int _fpu_cmp = 0; 1084 uint32_t _cf = 0; 1085 int _df = 1; 1086 uint32_t _flag_k = FK_NONE; 1087 uint32_t _flag_a = 0, _flag_b = 0; 1088 uint32_t _itail_tgt = 0; 1089 RECOMP_REGS_LOCALS 1090 RECOMP_ENTER(0x3608E630u); 1091 1092 L_3608E630: 1093 MEM32(0x36306B44) = 0x361B3100u; /* 0x3608E630: mov dword ptr [0x36306b44], 0x361b3100 */ 1094 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E63A: ret */ 1095 RECOMP_REGS_OUT(); 1096 } 1097 1098 void sub_3608E640(void) { 1099 int _fpu_cmp = 0; 1100 uint32_t _cf = 0; 1101 int _df = 1; 1102 uint32_t _flag_k = FK_NONE; 1103 uint32_t _flag_a = 0, _flag_b = 0; 1104 uint32_t _itail_tgt = 0; 1105 RECOMP_REGS_LOCALS 1106 RECOMP_ENTER(0x3608E640u); 1107 1108 L_3608E640: 1109 goto L_3608E650; /* 0x3608E640: jmp 0x3608e650 */ 1110 L_3608E650: 1111 MEM32(0x36306B40) = 0x361B3138u; /* 0x3608E650: mov dword ptr [0x36306b40], 0x361b3138 */ 1112 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E65A: ret */ 1113 RECOMP_REGS_OUT(); 1114 } 1115 1116 void sub_3608E650(void) { 1117 int _fpu_cmp = 0; 1118 uint32_t _cf = 0; 1119 int _df = 1; 1120 uint32_t _flag_k = FK_NONE; 1121 uint32_t _flag_a = 0, _flag_b = 0; 1122 uint32_t _itail_tgt = 0; 1123 RECOMP_REGS_LOCALS 1124 RECOMP_ENTER(0x3608E650u); 1125 1126 L_3608E650: 1127 MEM32(0x36306B40) = 0x361B3138u; /* 0x3608E650: mov dword ptr [0x36306b40], 0x361b3138 */ 1128 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E65A: ret */ 1129 RECOMP_REGS_OUT(); 1130 } 1131 1132 void sub_3608E660(void) { 1133 int _fpu_cmp = 0; 1134 uint32_t _cf = 0; 1135 int _df = 1; 1136 uint32_t _flag_k = FK_NONE; 1137 uint32_t _flag_a = 0, _flag_b = 0; 1138 uint32_t _itail_tgt = 0; 1139 RECOMP_REGS_LOCALS 1140 RECOMP_ENTER(0x3608E660u); 1141 1142 L_3608E660: 1143 goto L_3608E670; /* 0x3608E660: jmp 0x3608e670 */ 1144 L_3608E670: 1145 MEM32(0x36306B3C) = 0x361B57A8u; /* 0x3608E670: mov dword ptr [0x36306b3c], 0x361b57a8 */ 1146 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E67A: ret */ 1147 RECOMP_REGS_OUT(); 1148 } 1149 1150 void sub_3608E670(void) { 1151 int _fpu_cmp = 0; 1152 uint32_t _cf = 0; 1153 int _df = 1; 1154 uint32_t _flag_k = FK_NONE; 1155 uint32_t _flag_a = 0, _flag_b = 0; 1156 uint32_t _itail_tgt = 0; 1157 RECOMP_REGS_LOCALS 1158 RECOMP_ENTER(0x3608E670u); 1159 1160 L_3608E670: 1161 MEM32(0x36306B3C) = 0x361B57A8u; /* 0x3608E670: mov dword ptr [0x36306b3c], 0x361b57a8 */ 1162 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E67A: ret */ 1163 RECOMP_REGS_OUT(); 1164 } 1165 1166 void sub_3608E680(void) { 1167 int _fpu_cmp = 0; 1168 uint32_t _cf = 0; 1169 int _df = 1; 1170 uint32_t _flag_k = FK_NONE; 1171 uint32_t _flag_a = 0, _flag_b = 0; 1172 uint32_t _itail_tgt = 0; 1173 RECOMP_REGS_LOCALS 1174 RECOMP_ENTER(0x3608E680u); 1175 1176 L_3608E680: 1177 goto L_3608E690; /* 0x3608E680: jmp 0x3608e690 */ 1178 L_3608E690: 1179 MEM32(0x36306B38) = 0x361B57E0u; /* 0x3608E690: mov dword ptr [0x36306b38], 0x361b57e0 */ 1180 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E69A: ret */ 1181 RECOMP_REGS_OUT(); 1182 } 1183 1184 void sub_3608E690(void) { 1185 int _fpu_cmp = 0; 1186 uint32_t _cf = 0; 1187 int _df = 1; 1188 uint32_t _flag_k = FK_NONE; 1189 uint32_t _flag_a = 0, _flag_b = 0; 1190 uint32_t _itail_tgt = 0; 1191 RECOMP_REGS_LOCALS 1192 RECOMP_ENTER(0x3608E690u); 1193 1194 L_3608E690: 1195 MEM32(0x36306B38) = 0x361B57E0u; /* 0x3608E690: mov dword ptr [0x36306b38], 0x361b57e0 */ 1196 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E69A: ret */ 1197 RECOMP_REGS_OUT(); 1198 } 1199 1200 void sub_3608E6A0(void) { 1201 int _fpu_cmp = 0; 1202 uint32_t _cf = 0; 1203 int _df = 1; 1204 uint32_t _flag_k = FK_NONE; 1205 uint32_t _flag_a = 0, _flag_b = 0; 1206 uint32_t _itail_tgt = 0; 1207 RECOMP_REGS_LOCALS 1208 RECOMP_ENTER(0x3608E6A0u); 1209 1210 L_3608E6A0: 1211 goto L_3608E6B0; /* 0x3608E6A0: jmp 0x3608e6b0 */ 1212 L_3608E6B0: 1213 MEM32(0x36306B34) = 0x361B5814u; /* 0x3608E6B0: mov dword ptr [0x36306b34], 0x361b5814 */ 1214 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E6BA: ret */ 1215 RECOMP_REGS_OUT(); 1216 } 1217 1218 void sub_3608E6B0(void) { 1219 int _fpu_cmp = 0; 1220 uint32_t _cf = 0; 1221 int _df = 1; 1222 uint32_t _flag_k = FK_NONE; 1223 uint32_t _flag_a = 0, _flag_b = 0; 1224 uint32_t _itail_tgt = 0; 1225 RECOMP_REGS_LOCALS 1226 RECOMP_ENTER(0x3608E6B0u); 1227 1228 L_3608E6B0: 1229 MEM32(0x36306B34) = 0x361B5814u; /* 0x3608E6B0: mov dword ptr [0x36306b34], 0x361b5814 */ 1230 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E6BA: ret */ 1231 RECOMP_REGS_OUT(); 1232 } 1233 1234 void sub_3608E6C0(void) { 1235 int _fpu_cmp = 0; 1236 uint32_t _cf = 0; 1237 int _df = 1; 1238 uint32_t _flag_k = FK_NONE; 1239 uint32_t _flag_a = 0, _flag_b = 0; 1240 uint32_t _itail_tgt = 0; 1241 RECOMP_REGS_LOCALS 1242 RECOMP_ENTER(0x3608E6C0u); 1243 1244 L_3608E6C0: 1245 goto L_3608E6D0; /* 0x3608E6C0: jmp 0x3608e6d0 */ 1246 L_3608E6D0: 1247 MEM32(0x36306B30) = 0x361B5850u; /* 0x3608E6D0: mov dword ptr [0x36306b30], 0x361b5850 */ 1248 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E6DA: ret */ 1249 RECOMP_REGS_OUT(); 1250 } 1251 1252 void sub_3608E6D0(void) { 1253 int _fpu_cmp = 0; 1254 uint32_t _cf = 0; 1255 int _df = 1; 1256 uint32_t _flag_k = FK_NONE; 1257 uint32_t _flag_a = 0, _flag_b = 0; 1258 uint32_t _itail_tgt = 0; 1259 RECOMP_REGS_LOCALS 1260 RECOMP_ENTER(0x3608E6D0u); 1261 1262 L_3608E6D0: 1263 MEM32(0x36306B30) = 0x361B5850u; /* 0x3608E6D0: mov dword ptr [0x36306b30], 0x361b5850 */ 1264 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E6DA: ret */ 1265 RECOMP_REGS_OUT(); 1266 } 1267 1268 void sub_3608E6E0(void) { 1269 int _fpu_cmp = 0; 1270 uint32_t _cf = 0; 1271 int _df = 1; 1272 uint32_t _flag_k = FK_NONE; 1273 uint32_t _flag_a = 0, _flag_b = 0; 1274 uint32_t _itail_tgt = 0; 1275 RECOMP_REGS_LOCALS 1276 RECOMP_ENTER(0x3608E6E0u); 1277 1278 L_3608E6E0: 1279 goto L_3608E6F0; /* 0x3608E6E0: jmp 0x3608e6f0 */ 1280 L_3608E6F0: 1281 MEM32(0x36306B2C) = 0x361B5888u; /* 0x3608E6F0: mov dword ptr [0x36306b2c], 0x361b5888 */ 1282 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E6FA: ret */ 1283 RECOMP_REGS_OUT(); 1284 } 1285 1286 void sub_3608E6F0(void) { 1287 int _fpu_cmp = 0; 1288 uint32_t _cf = 0; 1289 int _df = 1; 1290 uint32_t _flag_k = FK_NONE; 1291 uint32_t _flag_a = 0, _flag_b = 0; 1292 uint32_t _itail_tgt = 0; 1293 RECOMP_REGS_LOCALS 1294 RECOMP_ENTER(0x3608E6F0u); 1295 1296 L_3608E6F0: 1297 MEM32(0x36306B2C) = 0x361B5888u; /* 0x3608E6F0: mov dword ptr [0x36306b2c], 0x361b5888 */ 1298 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E6FA: ret */ 1299 RECOMP_REGS_OUT(); 1300 } 1301 1302 void sub_3608E700(void) { 1303 int _fpu_cmp = 0; 1304 uint32_t _cf = 0; 1305 int _df = 1; 1306 uint32_t _flag_k = FK_NONE; 1307 uint32_t _flag_a = 0, _flag_b = 0; 1308 uint32_t _itail_tgt = 0; 1309 RECOMP_REGS_LOCALS 1310 RECOMP_ENTER(0x3608E700u); 1311 1312 L_3608E700: 1313 goto L_3608E710; /* 0x3608E700: jmp 0x3608e710 */ 1314 L_3608E710: 1315 MEM32(0x36306B28) = 0x361B5908u; /* 0x3608E710: mov dword ptr [0x36306b28], 0x361b5908 */ 1316 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E71A: ret */ 1317 RECOMP_REGS_OUT(); 1318 } 1319 1320 void sub_3608E710(void) { 1321 int _fpu_cmp = 0; 1322 uint32_t _cf = 0; 1323 int _df = 1; 1324 uint32_t _flag_k = FK_NONE; 1325 uint32_t _flag_a = 0, _flag_b = 0; 1326 uint32_t _itail_tgt = 0; 1327 RECOMP_REGS_LOCALS 1328 RECOMP_ENTER(0x3608E710u); 1329 1330 L_3608E710: 1331 MEM32(0x36306B28) = 0x361B5908u; /* 0x3608E710: mov dword ptr [0x36306b28], 0x361b5908 */ 1332 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E71A: ret */ 1333 RECOMP_REGS_OUT(); 1334 } 1335 1336 void sub_3608E720(void) { 1337 int _fpu_cmp = 0; 1338 uint32_t _cf = 0; 1339 int _df = 1; 1340 uint32_t _flag_k = FK_NONE; 1341 uint32_t _flag_a = 0, _flag_b = 0; 1342 uint32_t _itail_tgt = 0; 1343 RECOMP_REGS_LOCALS 1344 RECOMP_ENTER(0x3608E720u); 1345 1346 L_3608E720: 1347 goto L_3608E730; /* 0x3608E720: jmp 0x3608e730 */ 1348 L_3608E730: 1349 MEM32(0x36306B24) = 0x361B5944u; /* 0x3608E730: mov dword ptr [0x36306b24], 0x361b5944 */ 1350 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E73A: ret */ 1351 RECOMP_REGS_OUT(); 1352 } 1353 1354 void sub_3608E730(void) { 1355 int _fpu_cmp = 0; 1356 uint32_t _cf = 0; 1357 int _df = 1; 1358 uint32_t _flag_k = FK_NONE; 1359 uint32_t _flag_a = 0, _flag_b = 0; 1360 uint32_t _itail_tgt = 0; 1361 RECOMP_REGS_LOCALS 1362 RECOMP_ENTER(0x3608E730u); 1363 1364 L_3608E730: 1365 MEM32(0x36306B24) = 0x361B5944u; /* 0x3608E730: mov dword ptr [0x36306b24], 0x361b5944 */ 1366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E73A: ret */ 1367 RECOMP_REGS_OUT(); 1368 } 1369 1370 void sub_3608E740(void) { 1371 int _fpu_cmp = 0; 1372 uint32_t _cf = 0; 1373 int _df = 1; 1374 uint32_t _flag_k = FK_NONE; 1375 uint32_t _flag_a = 0, _flag_b = 0; 1376 uint32_t _itail_tgt = 0; 1377 RECOMP_REGS_LOCALS 1378 RECOMP_ENTER(0x3608E740u); 1379 1380 L_3608E740: 1381 goto L_3608E750; /* 0x3608E740: jmp 0x3608e750 */ 1382 L_3608E750: 1383 MEM32(0x36306B20) = 0x361B5978u; /* 0x3608E750: mov dword ptr [0x36306b20], 0x361b5978 */ 1384 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E75A: ret */ 1385 RECOMP_REGS_OUT(); 1386 } 1387 1388 void sub_3608E750(void) { 1389 int _fpu_cmp = 0; 1390 uint32_t _cf = 0; 1391 int _df = 1; 1392 uint32_t _flag_k = FK_NONE; 1393 uint32_t _flag_a = 0, _flag_b = 0; 1394 uint32_t _itail_tgt = 0; 1395 RECOMP_REGS_LOCALS 1396 RECOMP_ENTER(0x3608E750u); 1397 1398 L_3608E750: 1399 MEM32(0x36306B20) = 0x361B5978u; /* 0x3608E750: mov dword ptr [0x36306b20], 0x361b5978 */ 1400 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E75A: ret */ 1401 RECOMP_REGS_OUT(); 1402 } 1403 1404 void sub_3608E760(void) { 1405 int _fpu_cmp = 0; 1406 uint32_t _cf = 0; 1407 int _df = 1; 1408 uint32_t _flag_k = FK_NONE; 1409 uint32_t _flag_a = 0, _flag_b = 0; 1410 uint32_t _itail_tgt = 0; 1411 RECOMP_REGS_LOCALS 1412 RECOMP_ENTER(0x3608E760u); 1413 1414 L_3608E760: 1415 goto L_3608E770; /* 0x3608E760: jmp 0x3608e770 */ 1416 L_3608E770: 1417 MEM32(0x36306B1C) = 0x361B59ACu; /* 0x3608E770: mov dword ptr [0x36306b1c], 0x361b59ac */ 1418 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E77A: ret */ 1419 RECOMP_REGS_OUT(); 1420 } 1421 1422 void sub_3608E770(void) { 1423 int _fpu_cmp = 0; 1424 uint32_t _cf = 0; 1425 int _df = 1; 1426 uint32_t _flag_k = FK_NONE; 1427 uint32_t _flag_a = 0, _flag_b = 0; 1428 uint32_t _itail_tgt = 0; 1429 RECOMP_REGS_LOCALS 1430 RECOMP_ENTER(0x3608E770u); 1431 1432 L_3608E770: 1433 MEM32(0x36306B1C) = 0x361B59ACu; /* 0x3608E770: mov dword ptr [0x36306b1c], 0x361b59ac */ 1434 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E77A: ret */ 1435 RECOMP_REGS_OUT(); 1436 } 1437 1438 void sub_3608E780(void) { 1439 int _fpu_cmp = 0; 1440 uint32_t _cf = 0; 1441 int _df = 1; 1442 uint32_t _flag_k = FK_NONE; 1443 uint32_t _flag_a = 0, _flag_b = 0; 1444 uint32_t _itail_tgt = 0; 1445 RECOMP_REGS_LOCALS 1446 RECOMP_ENTER(0x3608E780u); 1447 1448 L_3608E780: 1449 PUSH32(esp, ebp); /* 0x3608E780: push ebp */ 1450 ebp = esp; /* 0x3608E781: mov ebp, esp */ 1451 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608E783: push -1 */ 1452 PUSH32(esp, 0x361660DEu); /* 0x3608E785: push 0x361660de */ 1453 eax = MEM32(FS_BASE + (0)); /* 0x3608E78A: mov eax, dword ptr fs:[0] */ 1454 PUSH32(esp, eax); /* 0x3608E790: push eax */ 1455 MEM32(FS_BASE + (0)) = esp; /* 0x3608E791: mov dword ptr fs:[0], esp */ 1456 PUSH32(esp, ecx); /* 0x3608E798: push ecx */ 1457 PUSH32(esp, ebx); /* 0x3608E799: push ebx */ 1458 PUSH32(esp, esi); /* 0x3608E79A: push esi */ 1459 esi = ecx; /* 0x3608E79B: mov esi, ecx */ 1460 PUSH32(esp, edi); /* 0x3608E79D: push edi */ 1461 MEM32(ebp + (-0x10)) = esi; /* 0x3608E79E: mov dword ptr [ebp - 0x10], esi */ 1462 RECOMP_ICALL(0x36001ED0u); /* 0x3608E7A1: call 0x36001ed0 */ /* not lifted */ 1463 RECOMP_FLAGS_IN(); 1464 edi = esi + 0x40; /* 0x3608E7A6: lea edi, [esi + 0x40] */ 1465 ecx = edi; /* 0x3608E7A9: mov ecx, edi */ 1466 MEM32(ebp + (-0x4)) = 0; /* 0x3608E7AB: mov dword ptr [ebp - 4], 0 */ 1467 RECOMP_ICALL(0x3608A3D0u); /* 0x3608E7B2: call 0x3608a3d0 */ /* not lifted */ 1468 RECOMP_FLAGS_IN(); 1469 ebx = esi + 0x4C; /* 0x3608E7B7: lea ebx, [esi + 0x4c] */ 1470 ecx = ebx; /* 0x3608E7BA: mov ecx, ebx */ 1471 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608E7BC: mov byte ptr [ebp - 4], 1 */ 1472 RECOMP_ICALL(0x3608AA50u); /* 0x3608E7C0: call 0x3608aa50 */ /* not lifted */ 1473 RECOMP_FLAGS_IN(); 1474 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1475 eax = 0; /* 0x3608E7C5: xor eax, eax */ 1476 _cf = 0; 1477 _flag_k = FK_TEST; 1478 MEM32(esi + 0x70) = eax; /* 0x3608E7C7: mov dword ptr [esi + 0x70], eax */ 1479 MEM32(esi + 0x74) = eax; /* 0x3608E7CA: mov dword ptr [esi + 0x74], eax */ 1480 ecx = esi; /* 0x3608E7CD: mov ecx, esi */ 1481 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3608E7CF: mov byte ptr [ebp - 4], 2 */ 1482 MEM32(esi) = 0x361729F8u; /* 0x3608E7D3: mov dword ptr [esi], 0x361729f8 */ 1483 MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608E7D9: mov dword ptr [esi + 8], 0x361729e8 */ 1484 MEM32(edi) = 0x361729E0u; /* 0x3608E7E0: mov dword ptr [edi], 0x361729e0 */ 1485 MEM32(ebx) = 0x361729D8u; /* 0x3608E7E6: mov dword ptr [ebx], 0x361729d8 */ 1486 RECOMP_ICALL(0x3608E840u); /* 0x3608E7EC: call 0x3608e840 */ /* not lifted */ 1487 RECOMP_FLAGS_IN(); 1488 ecx = MEM32(ebp + (-0xC)); /* 0x3608E7F1: mov ecx, dword ptr [ebp - 0xc] */ 1489 edi = POP32_VAL(esp); /* 0x3608E7F4: pop edi */ 1490 eax = esi; /* 0x3608E7F5: mov eax, esi */ 1491 esi = POP32_VAL(esp); /* 0x3608E7F7: pop esi */ 1492 ebx = POP32_VAL(esp); /* 0x3608E7F8: pop ebx */ 1493 MEM32(FS_BASE + (0)) = ecx; /* 0x3608E7F9: mov dword ptr fs:[0], ecx */ 1494 esp = ebp; /* 0x3608E800: mov esp, ebp */ 1495 ebp = POP32_VAL(esp); /* 0x3608E802: pop ebp */ 1496 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608E803: ret */ 1497 RECOMP_REGS_OUT(); 1498 } 1499 1500 void sub_3608E810(void) { 1501 int _fpu_cmp = 0; 1502 uint32_t _cf = 0; 1503 int _df = 1; 1504 uint32_t _flag_k = FK_NONE; 1505 uint32_t _flag_a = 0, _flag_b = 0; 1506 uint32_t _itail_tgt = 0; 1507 RECOMP_REGS_LOCALS 1508 RECOMP_ENTER(0x3608E810u); 1509 1510 L_3608E810: 1511 PUSH32(esp, ebp); /* 0x3608E810: push ebp */ 1512 ebp = esp; /* 0x3608E811: mov ebp, esp */ 1513 PUSH32(esp, esi); /* 0x3608E813: push esi */ 1514 esi = ecx; /* 0x3608E814: mov esi, ecx */ 1515 RECOMP_ICALL(0x3608EA50u); /* 0x3608E816: call 0x3608ea50 */ /* not lifted */ 1516 RECOMP_FLAGS_IN(); 1517 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608E81B: test byte ptr [ebp + 8], 1 */ 1518 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1519 _cf = 0; 1520 _flag_k = FK_NARROW(FK_TEST, 24); 1521 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E82A; /* 0x3608E81F: je 0x3608e82a */ 1522 L_3608E821: 1523 PUSH32(esp, esi); /* 0x3608E821: push esi */ 1524 RECOMP_ICALL(0x3615FCC4u); /* 0x3608E822: call 0x3615fcc4 */ /* not lifted */ 1525 RECOMP_FLAGS_IN(); 1526 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1528 esp = esp + 4; /* 0x3608E827: add esp, 4 */ 1529 _flag_k = FK_ADD; 1530 L_3608E82A: 1531 eax = esi; /* 0x3608E82A: mov eax, esi */ 1532 esi = POP32_VAL(esp); /* 0x3608E82C: pop esi */ 1533 ebp = POP32_VAL(esp); /* 0x3608E82D: pop ebp */ 1534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608E82E: ret 4 */ 1535 RECOMP_REGS_OUT(); 1536 } 1537 1538 void sub_3608E840(void) { 1539 int _fpu_cmp = 0; 1540 uint32_t _cf = 0; 1541 int _df = 1; 1542 uint32_t _flag_k = FK_NONE; 1543 uint32_t _flag_a = 0, _flag_b = 0; 1544 uint32_t _itail_tgt = 0; 1545 RECOMP_REGS_LOCALS 1546 RECOMP_ENTER(0x3608E840u); 1547 1548 L_3608E840: 1549 PUSH32(esp, ebp); /* 0x3608E840: push ebp */ 1550 ebp = esp; /* 0x3608E841: mov ebp, esp */ 1551 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608E843: push -1 */ 1552 PUSH32(esp, 0x36166111u); /* 0x3608E845: push 0x36166111 */ 1553 eax = MEM32(FS_BASE + (0)); /* 0x3608E84A: mov eax, dword ptr fs:[0] */ 1554 PUSH32(esp, eax); /* 0x3608E850: push eax */ 1555 MEM32(FS_BASE + (0)) = esp; /* 0x3608E851: mov dword ptr fs:[0], esp */ 1556 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1558 esp = esp - 8; /* 0x3608E858: sub esp, 8 */ 1559 _flag_k = FK_CMP; 1560 PUSH32(esp, ebx); /* 0x3608E85B: push ebx */ 1561 PUSH32(esp, esi); /* 0x3608E85C: push esi */ 1562 PUSH32(esp, edi); /* 0x3608E85D: push edi */ 1563 esi = ecx; /* 0x3608E85E: mov esi, ecx */ 1564 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1565 ebx = 0; /* 0x3608E860: xor ebx, ebx */ 1566 _cf = 0; 1567 _flag_k = FK_TEST; 1568 PUSH32(esp, 0xCu); /* 0x3608E862: push 0xc */ 1569 MEM32(esi + 0x68) = ebx; /* 0x3608E864: mov dword ptr [esi + 0x68], ebx */ 1570 RECOMP_ICALL(0x3615FD6Au); /* 0x3608E867: call 0x3615fd6a */ /* not lifted */ 1571 RECOMP_FLAGS_IN(); 1572 edi = eax; /* 0x3608E86C: mov edi, eax */ 1573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1575 esp = esp + 4; /* 0x3608E86E: add esp, 4 */ 1576 _flag_k = FK_ADD; 1577 MEM32(ebp + (-0x14)) = edi; /* 0x3608E871: mov dword ptr [ebp - 0x14], edi */ 1578 /* cmp edi, ebx */ /* 0x3608E874: cmp edi, ebx */ 1579 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1581 _flag_k = FK_CMP; 1582 MEM32(ebp + (-0x4)) = ebx; /* 0x3608E876: mov dword ptr [ebp - 4], ebx */ 1583 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608E897; /* 0x3608E879: je 0x3608e897 */ 1584 L_3608E87B: 1585 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3608E87B: mov al, byte ptr [ebp - 0xd] */ 1586 PUSH32(esp, 0x10u); /* 0x3608E87E: push 0x10 */ 1587 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3608E880: mov byte ptr [edi], al */ 1588 RECOMP_ICALL(0x3615FD6Au); /* 0x3608E882: call 0x3615fd6a */ /* not lifted */ 1589 RECOMP_FLAGS_IN(); 1590 MEM32(eax) = eax; /* 0x3608E887: mov dword ptr [eax], eax */ 1591 MEM32(eax + 0x4) = eax; /* 0x3608E889: mov dword ptr [eax + 4], eax */ 1592 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1593 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1594 esp = esp + 4; /* 0x3608E88C: add esp, 4 */ 1595 _flag_k = FK_ADD; 1596 MEM32(edi + 0x4) = eax; /* 0x3608E88F: mov dword ptr [edi + 4], eax */ 1597 MEM32(edi + 0x8) = ebx; /* 0x3608E892: mov dword ptr [edi + 8], ebx */ 1598 goto L_3608E899; /* 0x3608E895: jmp 0x3608e899 */ 1599 L_3608E897: 1600 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1601 edi = 0; /* 0x3608E897: xor edi, edi */ 1602 _cf = 0; 1603 _flag_k = FK_TEST; 1604 L_3608E899: 1605 PUSH32(esp, 0x14u); /* 0x3608E899: push 0x14 */ 1606 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608E89B: mov dword ptr [ebp - 4], 0xffffffff */ 1607 MEM32(esi + 0x58) = edi; /* 0x3608E8A2: mov dword ptr [esi + 0x58], edi */ 1608 RECOMP_ICALL(0x3615FD6Au); /* 0x3608E8A5: call 0x3615fd6a */ /* not lifted */ 1609 RECOMP_FLAGS_IN(); 1610 edi = eax; /* 0x3608E8AA: mov edi, eax */ 1611 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1612 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1613 esp = esp + 4; /* 0x3608E8AC: add esp, 4 */ 1614 _flag_k = FK_ADD; 1615 MEM32(ebp + (-0x14)) = edi; /* 0x3608E8AF: mov dword ptr [ebp - 0x14], edi */ 1616 /* cmp edi, ebx */ /* 0x3608E8B2: cmp edi, ebx */ 1617 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1619 _flag_k = FK_CMP; 1620 MEM32(ebp + (-0x4)) = 1; /* 0x3608E8B4: mov dword ptr [ebp - 4], 1 */ 1621 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608E8D4; /* 0x3608E8BB: je 0x3608e8d4 */ 1622 L_3608E8BD: 1623 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3608E8BD: mov cl, byte ptr [ebp - 0xd] */ 1624 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3608E8C0: mov dl, byte ptr [ebp - 0xd] */ 1625 MEM8(edi) = (uint8_t)(LO8(ecx)); /* 0x3608E8C3: mov byte ptr [edi], cl */ 1626 ecx = edi; /* 0x3608E8C5: mov ecx, edi */ 1627 MEM8(edi + 0x1) = (uint8_t)(LO8(edx)); /* 0x3608E8C7: mov byte ptr [edi + 1], dl */ 1628 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3608E8CA: mov byte ptr [edi + 0xc], bl */ 1629 RECOMP_ICALL(0x36068320u); /* 0x3608E8CD: call 0x36068320 */ /* not lifted */ 1630 RECOMP_FLAGS_IN(); 1631 goto L_3608E8D6; /* 0x3608E8D2: jmp 0x3608e8d6 */ 1632 L_3608E8D4: 1633 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1634 edi = 0; /* 0x3608E8D4: xor edi, edi */ 1635 _cf = 0; 1636 _flag_k = FK_TEST; 1637 L_3608E8D6: 1638 PUSH32(esp, 3); /* 0x3608E8D6: push 3 */ 1639 ecx = esi; /* 0x3608E8D8: mov ecx, esi */ 1640 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608E8DA: mov dword ptr [ebp - 4], 0xffffffff */ 1641 MEM32(esi + 0x6C) = edi; /* 0x3608E8E1: mov dword ptr [esi + 0x6c], edi */ 1642 RECOMP_ICALL(0x3608FAC0u); /* 0x3608E8E4: call 0x3608fac0 */ /* not lifted */ 1643 RECOMP_FLAGS_IN(); 1644 PUSH32(esp, 5); /* 0x3608E8E9: push 5 */ 1645 ecx = esi; /* 0x3608E8EB: mov ecx, esi */ 1646 RECOMP_ICALL(0x3608FAC0u); /* 0x3608E8ED: call 0x3608fac0 */ /* not lifted */ 1647 RECOMP_FLAGS_IN(); 1648 PUSH32(esp, 0x14u); /* 0x3608E8F2: push 0x14 */ 1649 RECOMP_ICALL(0x3615FD6Au); /* 0x3608E8F4: call 0x3615fd6a */ /* not lifted */ 1650 RECOMP_FLAGS_IN(); 1651 edi = eax; /* 0x3608E8F9: mov edi, eax */ 1652 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1654 esp = esp + 4; /* 0x3608E8FB: add esp, 4 */ 1655 _flag_k = FK_ADD; 1656 MEM32(ebp + (-0x14)) = edi; /* 0x3608E8FE: mov dword ptr [ebp - 0x14], edi */ 1657 /* cmp edi, ebx */ /* 0x3608E901: cmp edi, ebx */ 1658 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1660 _flag_k = FK_CMP; 1661 MEM32(ebp + (-0x4)) = 2; /* 0x3608E903: mov dword ptr [ebp - 4], 2 */ 1662 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608E923; /* 0x3608E90A: je 0x3608e923 */ 1663 L_3608E90C: 1664 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3608E90C: mov cl, byte ptr [ebp - 0xd] */ 1665 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3608E90F: mov al, byte ptr [ebp - 0xd] */ 1666 MEM8(edi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3608E912: mov byte ptr [edi + 1], cl */ 1667 ecx = edi; /* 0x3608E915: mov ecx, edi */ 1668 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3608E917: mov byte ptr [edi], al */ 1669 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3608E919: mov byte ptr [edi + 0xc], bl */ 1670 RECOMP_ICALL(0x36068320u); /* 0x3608E91C: call 0x36068320 */ /* not lifted */ 1671 RECOMP_FLAGS_IN(); 1672 goto L_3608E925; /* 0x3608E921: jmp 0x3608e925 */ 1673 L_3608E923: 1674 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1675 edi = 0; /* 0x3608E923: xor edi, edi */ 1676 _cf = 0; 1677 _flag_k = FK_TEST; 1678 L_3608E925: 1679 PUSH32(esp, 0x10u); /* 0x3608E925: push 0x10 */ 1680 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608E927: mov dword ptr [ebp - 4], 0xffffffff */ 1681 MEM32(esi + 0x54) = edi; /* 0x3608E92E: mov dword ptr [esi + 0x54], edi */ 1682 RECOMP_ICALL(0x3615FD6Au); /* 0x3608E931: call 0x3615fd6a */ /* not lifted */ 1683 RECOMP_FLAGS_IN(); 1684 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1686 esp = esp + 4; /* 0x3608E936: add esp, 4 */ 1687 _flag_k = FK_ADD; 1688 /* cmp eax, ebx */ /* 0x3608E939: cmp eax, ebx */ 1689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1691 _flag_k = FK_CMP; 1692 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608E94D; /* 0x3608E93B: je 0x3608e94d */ 1693 L_3608E93D: 1694 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3608E93D: mov dl, byte ptr [ebp - 0xd] */ 1695 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3608E940: mov byte ptr [eax], dl */ 1696 MEM32(eax + 0x4) = ebx; /* 0x3608E942: mov dword ptr [eax + 4], ebx */ 1697 MEM32(eax + 0x8) = ebx; /* 0x3608E945: mov dword ptr [eax + 8], ebx */ 1698 MEM32(eax + 0xC) = ebx; /* 0x3608E948: mov dword ptr [eax + 0xc], ebx */ 1699 goto L_3608E94F; /* 0x3608E94B: jmp 0x3608e94f */ 1700 L_3608E94D: 1701 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1702 eax = 0; /* 0x3608E94D: xor eax, eax */ 1703 _cf = 0; 1704 _flag_k = FK_TEST; 1705 L_3608E94F: 1706 PUSH32(esp, 0x10u); /* 0x3608E94F: push 0x10 */ 1707 MEM32(esi + 0x5C) = eax; /* 0x3608E951: mov dword ptr [esi + 0x5c], eax */ 1708 RECOMP_ICALL(0x3615FD6Au); /* 0x3608E954: call 0x3615fd6a */ /* not lifted */ 1709 RECOMP_FLAGS_IN(); 1710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1712 esp = esp + 4; /* 0x3608E959: add esp, 4 */ 1713 _flag_k = FK_ADD; 1714 /* cmp eax, ebx */ /* 0x3608E95C: cmp eax, ebx */ 1715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1716 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1717 _flag_k = FK_CMP; 1718 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608E970; /* 0x3608E95E: je 0x3608e970 */ 1719 L_3608E960: 1720 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3608E960: mov cl, byte ptr [ebp - 0xd] */ 1721 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3608E963: mov byte ptr [eax], cl */ 1722 MEM32(eax + 0x4) = ebx; /* 0x3608E965: mov dword ptr [eax + 4], ebx */ 1723 MEM32(eax + 0x8) = ebx; /* 0x3608E968: mov dword ptr [eax + 8], ebx */ 1724 MEM32(eax + 0xC) = ebx; /* 0x3608E96B: mov dword ptr [eax + 0xc], ebx */ 1725 goto L_3608E972; /* 0x3608E96E: jmp 0x3608e972 */ 1726 L_3608E970: 1727 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1728 eax = 0; /* 0x3608E970: xor eax, eax */ 1729 _cf = 0; 1730 _flag_k = FK_TEST; 1731 L_3608E972: 1732 PUSH32(esp, 0x10u); /* 0x3608E972: push 0x10 */ 1733 MEM32(esi + 0x60) = eax; /* 0x3608E974: mov dword ptr [esi + 0x60], eax */ 1734 RECOMP_ICALL(0x3615FD6Au); /* 0x3608E977: call 0x3615fd6a */ /* not lifted */ 1735 RECOMP_FLAGS_IN(); 1736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1738 esp = esp + 4; /* 0x3608E97C: add esp, 4 */ 1739 _flag_k = FK_ADD; 1740 /* cmp eax, ebx */ /* 0x3608E97F: cmp eax, ebx */ 1741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1743 _flag_k = FK_CMP; 1744 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608E993; /* 0x3608E981: je 0x3608e993 */ 1745 L_3608E983: 1746 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3608E983: mov dl, byte ptr [ebp - 0xd] */ 1747 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3608E986: mov byte ptr [eax], dl */ 1748 MEM32(eax + 0x4) = ebx; /* 0x3608E988: mov dword ptr [eax + 4], ebx */ 1749 MEM32(eax + 0x8) = ebx; /* 0x3608E98B: mov dword ptr [eax + 8], ebx */ 1750 MEM32(eax + 0xC) = ebx; /* 0x3608E98E: mov dword ptr [eax + 0xc], ebx */ 1751 goto L_3608E995; /* 0x3608E991: jmp 0x3608e995 */ 1752 L_3608E993: 1753 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1754 eax = 0; /* 0x3608E993: xor eax, eax */ 1755 _cf = 0; 1756 _flag_k = FK_TEST; 1757 L_3608E995: 1758 PUSH32(esp, 0x72u); /* 0x3608E995: push 0x72 */ 1759 edi = esi + 0x40; /* 0x3608E997: lea edi, [esi + 0x40] */ 1760 PUSH32(esp, 1); /* 0x3608E99A: push 1 */ 1761 ecx = edi; /* 0x3608E99C: mov ecx, edi */ 1762 MEM32(esi + 0x64) = eax; /* 0x3608E99E: mov dword ptr [esi + 0x64], eax */ 1763 RECOMP_ICALL(0x3608A630u); /* 0x3608E9A1: call 0x3608a630 */ /* not lifted */ 1764 RECOMP_FLAGS_IN(); 1765 PUSH32(esp, 0x74u); /* 0x3608E9A6: push 0x74 */ 1766 PUSH32(esp, 2); /* 0x3608E9A8: push 2 */ 1767 ecx = edi; /* 0x3608E9AA: mov ecx, edi */ 1768 RECOMP_ICALL(0x3608A630u); /* 0x3608E9AC: call 0x3608a630 */ /* not lifted */ 1769 RECOMP_FLAGS_IN(); 1770 PUSH32(esp, 0x6Bu); /* 0x3608E9B1: push 0x6b */ 1771 PUSH32(esp, 3); /* 0x3608E9B3: push 3 */ 1772 ecx = edi; /* 0x3608E9B5: mov ecx, edi */ 1773 RECOMP_ICALL(0x3608A630u); /* 0x3608E9B7: call 0x3608a630 */ /* not lifted */ 1774 RECOMP_FLAGS_IN(); 1775 PUSH32(esp, 0x6Cu); /* 0x3608E9BC: push 0x6c */ 1776 PUSH32(esp, 4); /* 0x3608E9BE: push 4 */ 1777 ecx = edi; /* 0x3608E9C0: mov ecx, edi */ 1778 RECOMP_ICALL(0x3608A630u); /* 0x3608E9C2: call 0x3608a630 */ /* not lifted */ 1779 RECOMP_FLAGS_IN(); 1780 PUSH32(esp, 0x73u); /* 0x3608E9C7: push 0x73 */ 1781 PUSH32(esp, 5); /* 0x3608E9C9: push 5 */ 1782 ecx = edi; /* 0x3608E9CB: mov ecx, edi */ 1783 RECOMP_ICALL(0x3608A630u); /* 0x3608E9CD: call 0x3608a630 */ /* not lifted */ 1784 RECOMP_FLAGS_IN(); 1785 PUSH32(esp, 0x70u); /* 0x3608E9D2: push 0x70 */ 1786 PUSH32(esp, 6); /* 0x3608E9D4: push 6 */ 1787 ecx = edi; /* 0x3608E9D6: mov ecx, edi */ 1788 RECOMP_ICALL(0x3608A630u); /* 0x3608E9D8: call 0x3608a630 */ /* not lifted */ 1789 RECOMP_FLAGS_IN(); 1790 PUSH32(esp, 0x71u); /* 0x3608E9DD: push 0x71 */ 1791 PUSH32(esp, 7); /* 0x3608E9DF: push 7 */ 1792 ecx = edi; /* 0x3608E9E1: mov ecx, edi */ 1793 RECOMP_ICALL(0x3608A630u); /* 0x3608E9E3: call 0x3608a630 */ /* not lifted */ 1794 RECOMP_FLAGS_IN(); 1795 PUSH32(esp, 0x6Du); /* 0x3608E9E8: push 0x6d */ 1796 PUSH32(esp, 8); /* 0x3608E9EA: push 8 */ 1797 ecx = edi; /* 0x3608E9EC: mov ecx, edi */ 1798 RECOMP_ICALL(0x3608A630u); /* 0x3608E9EE: call 0x3608a630 */ /* not lifted */ 1799 RECOMP_FLAGS_IN(); 1800 PUSH32(esp, 0x6Du); /* 0x3608E9F3: push 0x6d */ 1801 PUSH32(esp, 9); /* 0x3608E9F5: push 9 */ 1802 ecx = edi; /* 0x3608E9F7: mov ecx, edi */ 1803 RECOMP_ICALL(0x3608A630u); /* 0x3608E9F9: call 0x3608a630 */ /* not lifted */ 1804 RECOMP_FLAGS_IN(); 1805 eax = MEM32(esi); /* 0x3608E9FE: mov eax, dword ptr [esi] */ 1806 PUSH32(esp, 0xAu); /* 0x3608EA00: push 0xa */ 1807 PUSH32(esp, 0x126u); /* 0x3608EA02: push 0x126 */ 1808 ecx = esi; /* 0x3608EA07: mov ecx, esi */ 1809 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3608EA09: call dword ptr [eax + 0xc] */ 1810 RECOMP_FLAGS_IN(); 1811 edx = MEM32(esi); /* 0x3608EA0C: mov edx, dword ptr [esi] */ 1812 PUSH32(esp, 0xAu); /* 0x3608EA0E: push 0xa */ 1813 PUSH32(esp, 0xD2u); /* 0x3608EA10: push 0xd2 */ 1814 ecx = esi; /* 0x3608EA15: mov ecx, esi */ 1815 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3608EA17: call dword ptr [edx + 0xc] */ 1816 RECOMP_FLAGS_IN(); 1817 eax = MEM32(esi); /* 0x3608EA1A: mov eax, dword ptr [esi] */ 1818 PUSH32(esp, 0xAu); /* 0x3608EA1C: push 0xa */ 1819 PUSH32(esp, 0xD3u); /* 0x3608EA1E: push 0xd3 */ 1820 ecx = esi; /* 0x3608EA23: mov ecx, esi */ 1821 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3608EA25: call dword ptr [eax + 0xc] */ 1822 RECOMP_FLAGS_IN(); 1823 edx = MEM32(esi); /* 0x3608EA28: mov edx, dword ptr [esi] */ 1824 PUSH32(esp, 0x3E8u); /* 0x3608EA2A: push 0x3e8 */ 1825 PUSH32(esp, 2); /* 0x3608EA2F: push 2 */ 1826 ecx = esi; /* 0x3608EA31: mov ecx, esi */ 1827 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3608EA33: call dword ptr [edx + 0xc] */ 1828 RECOMP_FLAGS_IN(); 1829 ecx = MEM32(ebp + (-0xC)); /* 0x3608EA36: mov ecx, dword ptr [ebp - 0xc] */ 1830 MEM32(esi + 0x78) = ebx; /* 0x3608EA39: mov dword ptr [esi + 0x78], ebx */ 1831 MEM32(esi + 0x7C) = ebx; /* 0x3608EA3C: mov dword ptr [esi + 0x7c], ebx */ 1832 edi = POP32_VAL(esp); /* 0x3608EA3F: pop edi */ 1833 esi = POP32_VAL(esp); /* 0x3608EA40: pop esi */ 1834 ebx = POP32_VAL(esp); /* 0x3608EA41: pop ebx */ 1835 MEM32(FS_BASE + (0)) = ecx; /* 0x3608EA42: mov dword ptr fs:[0], ecx */ 1836 esp = ebp; /* 0x3608EA49: mov esp, ebp */ 1837 ebp = POP32_VAL(esp); /* 0x3608EA4B: pop ebp */ 1838 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608EA4C: ret */ 1839 RECOMP_REGS_OUT(); 1840 } 1841 1842 void sub_3608EA50(void) { 1843 int _fpu_cmp = 0; 1844 uint32_t _cf = 0; 1845 int _df = 1; 1846 uint32_t _flag_k = FK_NONE; 1847 uint32_t _flag_a = 0, _flag_b = 0; 1848 uint32_t _itail_tgt = 0; 1849 RECOMP_REGS_LOCALS 1850 RECOMP_ENTER(0x3608EA50u); 1851 1852 L_3608EA50: 1853 PUSH32(esp, ebp); /* 0x3608EA50: push ebp */ 1854 ebp = esp; /* 0x3608EA51: mov ebp, esp */ 1855 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608EA53: push -1 */ 1856 PUSH32(esp, 0x36166176u); /* 0x3608EA55: push 0x36166176 */ 1857 eax = MEM32(FS_BASE + (0)); /* 0x3608EA5A: mov eax, dword ptr fs:[0] */ 1858 PUSH32(esp, eax); /* 0x3608EA60: push eax */ 1859 MEM32(FS_BASE + (0)) = esp; /* 0x3608EA61: mov dword ptr fs:[0], esp */ 1860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1862 esp = esp - 0x18u; /* 0x3608EA68: sub esp, 0x18 */ 1863 _flag_k = FK_CMP; 1864 PUSH32(esp, ebx); /* 0x3608EA6B: push ebx */ 1865 PUSH32(esp, esi); /* 0x3608EA6C: push esi */ 1866 esi = ecx; /* 0x3608EA6D: mov esi, ecx */ 1867 PUSH32(esp, edi); /* 0x3608EA6F: push edi */ 1868 MEM32(ebp + (-0x1C)) = esi; /* 0x3608EA70: mov dword ptr [ebp - 0x1c], esi */ 1869 MEM32(esi) = 0x361729F8u; /* 0x3608EA73: mov dword ptr [esi], 0x361729f8 */ 1870 MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608EA79: mov dword ptr [esi + 8], 0x361729e8 */ 1871 MEM32(esi + 0x40) = 0x361729E0u; /* 0x3608EA80: mov dword ptr [esi + 0x40], 0x361729e0 */ 1872 MEM32(esi + 0x4C) = 0x361729D8u; /* 0x3608EA87: mov dword ptr [esi + 0x4c], 0x361729d8 */ 1873 eax = MEM32(esi + 0x6C); /* 0x3608EA8E: mov eax, dword ptr [esi + 0x6c] */ 1874 ecx = MEM32(eax + 0x4); /* 0x3608EA91: mov ecx, dword ptr [eax + 4] */ 1875 ecx = MEM32(ecx); /* 0x3608EA94: mov ecx, dword ptr [ecx] */ 1876 MEM32(ebp + (-0x10)) = ecx; /* 0x3608EA96: mov dword ptr [ebp - 0x10], ecx */ 1877 eax = MEM32(eax + 0x4); /* 0x3608EA99: mov eax, dword ptr [eax + 4] */ 1878 /* cmp ecx, eax */ /* 0x3608EA9C: cmp ecx, eax */ 1879 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1881 _flag_k = FK_CMP; 1882 MEM32(ebp + (-0x4)) = 2; /* 0x3608EA9E: mov dword ptr [ebp - 4], 2 */ 1883 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAD7; /* 0x3608EAA5: je 0x3608ead7 */ 1884 L_3608EAA7: 1885 edi = MEM32(ecx + 0x10); /* 0x3608EAA7: mov edi, dword ptr [ecx + 0x10] */ 1886 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1887 ebx = 0; /* 0x3608EAAA: xor ebx, ebx */ 1888 _cf = 0; 1889 _flag_k = FK_TEST; 1890 /* cmp edi, ebx */ /* 0x3608EAAC: cmp edi, ebx */ 1891 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1893 _flag_k = FK_CMP; 1894 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAC0; /* 0x3608EAAE: je 0x3608eac0 */ 1895 L_3608EAB0: 1896 ecx = edi; /* 0x3608EAB0: mov ecx, edi */ 1897 RECOMP_ICALL(0x360055D0u); /* 0x3608EAB2: call 0x360055d0 */ /* not lifted */ 1898 RECOMP_FLAGS_IN(); 1899 PUSH32(esp, edi); /* 0x3608EAB7: push edi */ 1900 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAB8: call 0x3615fcc4 */ /* not lifted */ 1901 RECOMP_FLAGS_IN(); 1902 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1904 esp = esp + 4; /* 0x3608EABD: add esp, 4 */ 1905 _flag_k = FK_ADD; 1906 L_3608EAC0: 1907 ecx = ebp + (-0x10); /* 0x3608EAC0: lea ecx, [ebp - 0x10] */ 1908 RECOMP_ICALL(0x36064140u); /* 0x3608EAC3: call 0x36064140 */ /* not lifted */ 1909 RECOMP_FLAGS_IN(); 1910 eax = MEM32(esi + 0x6C); /* 0x3608EAC8: mov eax, dword ptr [esi + 0x6c] */ 1911 eax = MEM32(eax + 0x4); /* 0x3608EACB: mov eax, dword ptr [eax + 4] */ 1912 ecx = MEM32(ebp + (-0x10)); /* 0x3608EACE: mov ecx, dword ptr [ebp - 0x10] */ 1913 /* cmp ecx, eax */ /* 0x3608EAD1: cmp ecx, eax */ 1914 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1916 _flag_k = FK_CMP; 1917 RECOMP_BACKEDGE(); 1918 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EAA7; /* 0x3608EAD3: jne 0x3608eaa7 */ 1919 L_3608EAD5: 1920 goto L_3608EAD9; /* 0x3608EAD5: jmp 0x3608ead9 */ 1921 L_3608EAD7: 1922 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1923 ebx = 0; /* 0x3608EAD7: xor ebx, ebx */ 1924 _cf = 0; 1925 _flag_k = FK_TEST; 1926 L_3608EAD9: 1927 edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */ 1928 /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */ 1929 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1931 _flag_k = FK_CMP; 1932 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */ 1933 L_3608EAE0: 1934 ecx = edi; /* 0x3608EAE0: mov ecx, edi */ 1935 RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */ 1936 RECOMP_FLAGS_IN(); 1937 PUSH32(esp, edi); /* 0x3608EAE7: push edi */ 1938 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */ 1939 RECOMP_FLAGS_IN(); 1940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1942 esp = esp + 4; /* 0x3608EAED: add esp, 4 */ 1943 _flag_k = FK_ADD; 1944 L_3608EAF0: 1945 edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */ 1946 /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */ 1947 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1949 _flag_k = FK_CMP; 1950 MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */ 1951 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */ 1952 L_3608EAFA: 1953 ecx = edi; /* 0x3608EAFA: mov ecx, edi */ 1954 RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 PUSH32(esp, edi); /* 0x3608EB01: push edi */ 1957 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */ 1958 RECOMP_FLAGS_IN(); 1959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1961 esp = esp + 4; /* 0x3608EB07: add esp, 4 */ 1962 _flag_k = FK_ADD; 1963 L_3608EB0A: 1964 edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */ 1965 /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */ 1966 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1968 _flag_k = FK_CMP; 1969 MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */ 1970 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */ 1971 L_3608EB14: 1972 ecx = edi; /* 0x3608EB14: mov ecx, edi */ 1973 RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */ 1974 RECOMP_FLAGS_IN(); 1975 PUSH32(esp, edi); /* 0x3608EB1B: push edi */ 1976 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */ 1977 RECOMP_FLAGS_IN(); 1978 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1980 esp = esp + 4; /* 0x3608EB21: add esp, 4 */ 1981 _flag_k = FK_ADD; 1982 L_3608EB24: 1983 edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */ 1984 /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */ 1985 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1987 _flag_k = FK_CMP; 1988 MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */ 1989 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */ 1990 L_3608EB2E: 1991 ecx = edi; /* 0x3608EB2E: mov ecx, edi */ 1992 RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */ 1993 RECOMP_FLAGS_IN(); 1994 PUSH32(esp, edi); /* 0x3608EB35: push edi */ 1995 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */ 1996 RECOMP_FLAGS_IN(); 1997 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1998 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1999 esp = esp + 4; /* 0x3608EB3B: add esp, 4 */ 2000 _flag_k = FK_ADD; 2001 L_3608EB3E: 2002 edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */ 2003 /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */ 2004 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2006 _flag_k = FK_CMP; 2007 MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */ 2008 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */ 2009 L_3608EB48: 2010 ecx = edi; /* 0x3608EB48: mov ecx, edi */ 2011 RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */ 2012 RECOMP_FLAGS_IN(); 2013 PUSH32(esp, edi); /* 0x3608EB4F: push edi */ 2014 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */ 2015 RECOMP_FLAGS_IN(); 2016 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2018 esp = esp + 4; /* 0x3608EB55: add esp, 4 */ 2019 _flag_k = FK_ADD; 2020 L_3608EB58: 2021 eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */ 2022 MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */ 2023 ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */ 2024 eax = ecx; /* 0x3608EB61: mov eax, ecx */ 2025 ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */ 2026 /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */ 2027 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 2028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2029 _flag_k = FK_CMP; 2030 MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */ 2031 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */ 2032 L_3608EB70: 2033 eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */ 2034 /* test eax, eax */ /* 0x3608EB73: test eax, eax */ 2035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2036 _cf = 0; 2037 _flag_k = FK_TEST; 2038 MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */ 2039 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */ 2040 L_3608EB7A: 2041 ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */ 2042 edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */ 2043 /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */ 2044 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2046 _flag_k = FK_CMP; 2047 MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */ 2048 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */ 2049 L_3608EB87: 2050 PUSH32(esp, 0); /* 0x3608EB87: push 0 */ 2051 ecx = edi; /* 0x3608EB89: mov ecx, edi */ 2052 RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */ 2053 RECOMP_FLAGS_IN(); 2054 eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */ 2055 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2057 edi = edi + 8; /* 0x3608EB93: add edi, 8 */ 2058 _flag_k = FK_ADD; 2059 /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */ 2060 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2062 _flag_k = FK_CMP; 2063 RECOMP_BACKEDGE(); 2064 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */ 2065 L_3608EB9A: 2066 eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */ 2067 L_3608EB9D: 2068 eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */ 2069 PUSH32(esp, eax); /* 0x3608EBA0: push eax */ 2070 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */ 2071 RECOMP_FLAGS_IN(); 2072 eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */ 2073 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2074 ecx = 0; /* 0x3608EBA9: xor ecx, ecx */ 2075 _cf = 0; 2076 _flag_k = FK_TEST; 2077 PUSH32(esp, eax); /* 0x3608EBAB: push eax */ 2078 MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */ 2079 MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */ 2080 MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */ 2081 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */ 2082 RECOMP_FLAGS_IN(); 2083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2085 esp = esp + 8; /* 0x3608EBBA: add esp, 8 */ 2086 _flag_k = FK_ADD; 2087 L_3608EBBD: 2088 eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */ 2089 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */ 2090 /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */ 2091 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2092 _cf = 0; 2093 _flag_k = FK_NARROW(FK_TEST, 24); 2094 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */ 2095 L_3608EBC7: 2096 PUSH32(esp, eax); /* 0x3608EBC7: push eax */ 2097 RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */ 2098 RECOMP_FLAGS_IN(); 2099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2101 esp = esp + 4; /* 0x3608EBCD: add esp, 4 */ 2102 _flag_k = FK_ADD; 2103 goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */ 2104 L_3608EBD2: 2105 eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */ 2106 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */ 2107 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2109 _flag_k = FK_CMP; 2110 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */ 2111 L_3608EBDA: 2112 ebx = eax; /* 0x3608EBDA: mov ebx, eax */ 2113 eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */ 2114 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */ 2115 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2117 _flag_k = FK_CMP; 2118 RECOMP_BACKEDGE(); 2119 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */ 2120 L_3608EBE4: 2121 /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */ 2122 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax); 2123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2124 _flag_k = FK_CMP; 2125 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */ 2126 L_3608EBE9: 2127 ebx = eax; /* 0x3608EBE9: mov ebx, eax */ 2128 L_3608EBEB: 2129 /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */ 2130 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 2131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2132 _flag_k = FK_CMP; 2133 RECOMP_BACKEDGE(); 2134 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */ 2135 L_3608EBF0: 2136 ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */ 2137 eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */ 2138 edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */ 2139 PUSH32(esp, eax); /* 0x3608EBF8: push eax */ 2140 PUSH32(esp, edx); /* 0x3608EBF9: push edx */ 2141 eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */ 2142 PUSH32(esp, eax); /* 0x3608EBFD: push eax */ 2143 RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */ 2144 RECOMP_FLAGS_IN(); 2145 edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */ 2146 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2147 ebx = 0; /* 0x3608EC06: xor ebx, ebx */ 2148 _cf = 0; 2149 _flag_k = FK_TEST; 2150 /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */ 2151 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2153 _flag_k = FK_CMP; 2154 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */ 2155 L_3608EC0C: 2156 eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */ 2157 ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */ 2158 PUSH32(esp, eax); /* 0x3608EC11: push eax */ 2159 PUSH32(esp, ecx); /* 0x3608EC12: push ecx */ 2160 ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */ 2161 PUSH32(esp, ecx); /* 0x3608EC16: push ecx */ 2162 ecx = edi; /* 0x3608EC17: mov ecx, edi */ 2163 RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */ 2164 RECOMP_FLAGS_IN(); 2165 eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */ 2166 PUSH32(esp, eax); /* 0x3608EC21: push eax */ 2167 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */ 2168 RECOMP_FLAGS_IN(); 2169 eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */ 2170 PUSH32(esp, eax); /* 0x3608EC2A: push eax */ 2171 MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */ 2172 MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */ 2173 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */ 2174 RECOMP_FLAGS_IN(); 2175 PUSH32(esp, edi); /* 0x3608EC36: push edi */ 2176 MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */ 2177 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */ 2178 RECOMP_FLAGS_IN(); 2179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2181 esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */ 2182 _flag_k = FK_ADD; 2183 L_3608EC42: 2184 eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */ 2185 /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */ 2186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2188 _flag_k = FK_CMP; 2189 edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */ 2190 MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */ 2191 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */ 2192 L_3608EC52: 2193 PUSH32(esp, eax); /* 0x3608EC52: push eax */ 2194 RECOMP_ICALL(edi); /* 0x3608EC53: call edi */ 2195 RECOMP_FLAGS_IN(); 2196 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2197 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2198 esp = esp + 4; /* 0x3608EC55: add esp, 4 */ 2199 _flag_k = FK_ADD; 2200 MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */ 2201 L_3608EC5B: 2202 eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */ 2203 /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */ 2204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2205 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2206 _flag_k = FK_CMP; 2207 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */ 2208 L_3608EC62: 2209 PUSH32(esp, eax); /* 0x3608EC62: push eax */ 2210 RECOMP_ICALL(edi); /* 0x3608EC63: call edi */ 2211 RECOMP_FLAGS_IN(); 2212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2214 esp = esp + 4; /* 0x3608EC65: add esp, 4 */ 2215 _flag_k = FK_ADD; 2216 MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */ 2217 L_3608EC6B: 2218 ecx = esi; /* 0x3608EC6B: mov ecx, esi */ 2219 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2220 _cf = (ecx) != 0; 2221 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */ 2222 _flag_k = FK_CMP; 2223 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */ 2224 ecx = _sc ? 0xFFFFFFFFu : 0; 2225 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2226 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2227 eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */ 2228 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2229 ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */ 2230 _cf = 0; 2231 _flag_k = FK_TEST; 2232 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */ 2233 RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */ 2234 RECOMP_FLAGS_IN(); 2235 ecx = esi; /* 0x3608EC7F: mov ecx, esi */ 2236 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2237 _cf = (ecx) != 0; 2238 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */ 2239 _flag_k = FK_CMP; 2240 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */ 2241 ecx = _sc ? 0xFFFFFFFFu : 0; 2242 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2243 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2244 eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */ 2245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2246 ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */ 2247 _cf = 0; 2248 _flag_k = FK_TEST; 2249 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */ 2250 RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */ 2251 RECOMP_FLAGS_IN(); 2252 ecx = esi; /* 0x3608EC93: mov ecx, esi */ 2253 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */ 2254 RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */ 2255 RECOMP_FLAGS_IN(); 2256 ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */ 2257 edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */ 2258 esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */ 2259 ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */ 2260 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */ 2261 esp = ebp; /* 0x3608ECAE: mov esp, ebp */ 2262 ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */ 2263 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret */ 2264 RECOMP_REGS_OUT(); 2265 } 2266 2267 void sub_3608EAD9(void) { 2268 int _fpu_cmp = 0; 2269 uint32_t _cf = 0; 2270 int _df = 1; 2271 uint32_t _flag_k = FK_NONE; 2272 uint32_t _flag_a = 0, _flag_b = 0; 2273 uint32_t _itail_tgt = 0; 2274 RECOMP_REGS_LOCALS 2275 RECOMP_ENTER(0x3608EAD9u); 2276 2277 L_3608EAD9: 2278 edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */ 2279 /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */ 2280 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2281 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2282 _flag_k = FK_CMP; 2283 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */ 2284 L_3608EAE0: 2285 ecx = edi; /* 0x3608EAE0: mov ecx, edi */ 2286 RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */ 2287 RECOMP_FLAGS_IN(); 2288 PUSH32(esp, edi); /* 0x3608EAE7: push edi */ 2289 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */ 2290 RECOMP_FLAGS_IN(); 2291 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2293 esp = esp + 4; /* 0x3608EAED: add esp, 4 */ 2294 _flag_k = FK_ADD; 2295 L_3608EAF0: 2296 edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */ 2297 /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */ 2298 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2300 _flag_k = FK_CMP; 2301 MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */ 2302 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */ 2303 L_3608EAFA: 2304 ecx = edi; /* 0x3608EAFA: mov ecx, edi */ 2305 RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */ 2306 RECOMP_FLAGS_IN(); 2307 PUSH32(esp, edi); /* 0x3608EB01: push edi */ 2308 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */ 2309 RECOMP_FLAGS_IN(); 2310 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2311 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2312 esp = esp + 4; /* 0x3608EB07: add esp, 4 */ 2313 _flag_k = FK_ADD; 2314 L_3608EB0A: 2315 edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */ 2316 /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */ 2317 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2319 _flag_k = FK_CMP; 2320 MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */ 2321 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */ 2322 L_3608EB14: 2323 ecx = edi; /* 0x3608EB14: mov ecx, edi */ 2324 RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */ 2325 RECOMP_FLAGS_IN(); 2326 PUSH32(esp, edi); /* 0x3608EB1B: push edi */ 2327 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */ 2328 RECOMP_FLAGS_IN(); 2329 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2331 esp = esp + 4; /* 0x3608EB21: add esp, 4 */ 2332 _flag_k = FK_ADD; 2333 L_3608EB24: 2334 edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */ 2335 /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */ 2336 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2338 _flag_k = FK_CMP; 2339 MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */ 2340 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */ 2341 L_3608EB2E: 2342 ecx = edi; /* 0x3608EB2E: mov ecx, edi */ 2343 RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */ 2344 RECOMP_FLAGS_IN(); 2345 PUSH32(esp, edi); /* 0x3608EB35: push edi */ 2346 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */ 2347 RECOMP_FLAGS_IN(); 2348 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2349 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2350 esp = esp + 4; /* 0x3608EB3B: add esp, 4 */ 2351 _flag_k = FK_ADD; 2352 L_3608EB3E: 2353 edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */ 2354 /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */ 2355 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2357 _flag_k = FK_CMP; 2358 MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */ 2359 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */ 2360 L_3608EB48: 2361 ecx = edi; /* 0x3608EB48: mov ecx, edi */ 2362 RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */ 2363 RECOMP_FLAGS_IN(); 2364 PUSH32(esp, edi); /* 0x3608EB4F: push edi */ 2365 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */ 2366 RECOMP_FLAGS_IN(); 2367 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2369 esp = esp + 4; /* 0x3608EB55: add esp, 4 */ 2370 _flag_k = FK_ADD; 2371 L_3608EB58: 2372 eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */ 2373 MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */ 2374 ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */ 2375 eax = ecx; /* 0x3608EB61: mov eax, ecx */ 2376 ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */ 2377 /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */ 2378 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 2379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2380 _flag_k = FK_CMP; 2381 MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */ 2382 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */ 2383 L_3608EB70: 2384 eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */ 2385 /* test eax, eax */ /* 0x3608EB73: test eax, eax */ 2386 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2387 _cf = 0; 2388 _flag_k = FK_TEST; 2389 MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */ 2390 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */ 2391 L_3608EB7A: 2392 ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */ 2393 edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */ 2394 /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */ 2395 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2397 _flag_k = FK_CMP; 2398 MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */ 2399 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */ 2400 L_3608EB87: 2401 PUSH32(esp, 0); /* 0x3608EB87: push 0 */ 2402 ecx = edi; /* 0x3608EB89: mov ecx, edi */ 2403 RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */ 2404 RECOMP_FLAGS_IN(); 2405 eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */ 2406 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2408 edi = edi + 8; /* 0x3608EB93: add edi, 8 */ 2409 _flag_k = FK_ADD; 2410 /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */ 2411 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2413 _flag_k = FK_CMP; 2414 RECOMP_BACKEDGE(); 2415 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */ 2416 L_3608EB9A: 2417 eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */ 2418 L_3608EB9D: 2419 eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */ 2420 PUSH32(esp, eax); /* 0x3608EBA0: push eax */ 2421 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */ 2422 RECOMP_FLAGS_IN(); 2423 eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */ 2424 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2425 ecx = 0; /* 0x3608EBA9: xor ecx, ecx */ 2426 _cf = 0; 2427 _flag_k = FK_TEST; 2428 PUSH32(esp, eax); /* 0x3608EBAB: push eax */ 2429 MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */ 2430 MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */ 2431 MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */ 2432 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */ 2433 RECOMP_FLAGS_IN(); 2434 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2436 esp = esp + 8; /* 0x3608EBBA: add esp, 8 */ 2437 _flag_k = FK_ADD; 2438 L_3608EBBD: 2439 eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */ 2440 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */ 2441 /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */ 2442 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2443 _cf = 0; 2444 _flag_k = FK_NARROW(FK_TEST, 24); 2445 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */ 2446 L_3608EBC7: 2447 PUSH32(esp, eax); /* 0x3608EBC7: push eax */ 2448 RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */ 2449 RECOMP_FLAGS_IN(); 2450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2452 esp = esp + 4; /* 0x3608EBCD: add esp, 4 */ 2453 _flag_k = FK_ADD; 2454 goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */ 2455 L_3608EBD2: 2456 eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */ 2457 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */ 2458 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2460 _flag_k = FK_CMP; 2461 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */ 2462 L_3608EBDA: 2463 ebx = eax; /* 0x3608EBDA: mov ebx, eax */ 2464 eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */ 2465 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */ 2466 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2468 _flag_k = FK_CMP; 2469 RECOMP_BACKEDGE(); 2470 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */ 2471 L_3608EBE4: 2472 /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */ 2473 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax); 2474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2475 _flag_k = FK_CMP; 2476 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */ 2477 L_3608EBE9: 2478 ebx = eax; /* 0x3608EBE9: mov ebx, eax */ 2479 L_3608EBEB: 2480 /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */ 2481 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 2482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2483 _flag_k = FK_CMP; 2484 RECOMP_BACKEDGE(); 2485 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */ 2486 L_3608EBF0: 2487 ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */ 2488 eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */ 2489 edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */ 2490 PUSH32(esp, eax); /* 0x3608EBF8: push eax */ 2491 PUSH32(esp, edx); /* 0x3608EBF9: push edx */ 2492 eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */ 2493 PUSH32(esp, eax); /* 0x3608EBFD: push eax */ 2494 RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */ 2495 RECOMP_FLAGS_IN(); 2496 edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */ 2497 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2498 ebx = 0; /* 0x3608EC06: xor ebx, ebx */ 2499 _cf = 0; 2500 _flag_k = FK_TEST; 2501 /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */ 2502 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2504 _flag_k = FK_CMP; 2505 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */ 2506 L_3608EC0C: 2507 eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */ 2508 ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */ 2509 PUSH32(esp, eax); /* 0x3608EC11: push eax */ 2510 PUSH32(esp, ecx); /* 0x3608EC12: push ecx */ 2511 ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */ 2512 PUSH32(esp, ecx); /* 0x3608EC16: push ecx */ 2513 ecx = edi; /* 0x3608EC17: mov ecx, edi */ 2514 RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */ 2515 RECOMP_FLAGS_IN(); 2516 eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */ 2517 PUSH32(esp, eax); /* 0x3608EC21: push eax */ 2518 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */ 2519 RECOMP_FLAGS_IN(); 2520 eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */ 2521 PUSH32(esp, eax); /* 0x3608EC2A: push eax */ 2522 MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */ 2523 MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */ 2524 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */ 2525 RECOMP_FLAGS_IN(); 2526 PUSH32(esp, edi); /* 0x3608EC36: push edi */ 2527 MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */ 2528 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */ 2529 RECOMP_FLAGS_IN(); 2530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2531 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2532 esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */ 2533 _flag_k = FK_ADD; 2534 L_3608EC42: 2535 eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */ 2536 /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */ 2537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2539 _flag_k = FK_CMP; 2540 edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */ 2541 MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */ 2542 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */ 2543 L_3608EC52: 2544 PUSH32(esp, eax); /* 0x3608EC52: push eax */ 2545 RECOMP_ICALL(edi); /* 0x3608EC53: call edi */ 2546 RECOMP_FLAGS_IN(); 2547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2549 esp = esp + 4; /* 0x3608EC55: add esp, 4 */ 2550 _flag_k = FK_ADD; 2551 MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */ 2552 L_3608EC5B: 2553 eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */ 2554 /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */ 2555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2557 _flag_k = FK_CMP; 2558 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */ 2559 L_3608EC62: 2560 PUSH32(esp, eax); /* 0x3608EC62: push eax */ 2561 RECOMP_ICALL(edi); /* 0x3608EC63: call edi */ 2562 RECOMP_FLAGS_IN(); 2563 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2565 esp = esp + 4; /* 0x3608EC65: add esp, 4 */ 2566 _flag_k = FK_ADD; 2567 MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */ 2568 L_3608EC6B: 2569 ecx = esi; /* 0x3608EC6B: mov ecx, esi */ 2570 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2571 _cf = (ecx) != 0; 2572 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */ 2573 _flag_k = FK_CMP; 2574 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */ 2575 ecx = _sc ? 0xFFFFFFFFu : 0; 2576 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2577 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2578 eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */ 2579 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2580 ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */ 2581 _cf = 0; 2582 _flag_k = FK_TEST; 2583 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */ 2584 RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */ 2585 RECOMP_FLAGS_IN(); 2586 ecx = esi; /* 0x3608EC7F: mov ecx, esi */ 2587 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2588 _cf = (ecx) != 0; 2589 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */ 2590 _flag_k = FK_CMP; 2591 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */ 2592 ecx = _sc ? 0xFFFFFFFFu : 0; 2593 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2594 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2595 eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */ 2596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2597 ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */ 2598 _cf = 0; 2599 _flag_k = FK_TEST; 2600 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */ 2601 RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */ 2602 RECOMP_FLAGS_IN(); 2603 ecx = esi; /* 0x3608EC93: mov ecx, esi */ 2604 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */ 2605 RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */ 2606 RECOMP_FLAGS_IN(); 2607 ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */ 2608 edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */ 2609 esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */ 2610 ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */ 2611 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */ 2612 esp = ebp; /* 0x3608ECAE: mov esp, ebp */ 2613 ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */ 2614 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret */ 2615 RECOMP_REGS_OUT(); 2616 } 2617 2618 void sub_3608EB70(void) { 2619 int _fpu_cmp = 0; 2620 uint32_t _cf = 0; 2621 int _df = 1; 2622 uint32_t _flag_k = FK_NONE; 2623 uint32_t _flag_a = 0, _flag_b = 0; 2624 uint32_t _itail_tgt = 0; 2625 RECOMP_REGS_LOCALS 2626 RECOMP_ENTER(0x3608EB70u); 2627 2628 L_3608EB70: 2629 eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */ 2630 /* test eax, eax */ /* 0x3608EB73: test eax, eax */ 2631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2632 _cf = 0; 2633 _flag_k = FK_TEST; 2634 MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */ 2635 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */ 2636 L_3608EB7A: 2637 ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */ 2638 edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */ 2639 /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */ 2640 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2642 _flag_k = FK_CMP; 2643 MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */ 2644 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */ 2645 L_3608EB87: 2646 PUSH32(esp, 0); /* 0x3608EB87: push 0 */ 2647 ecx = edi; /* 0x3608EB89: mov ecx, edi */ 2648 RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */ 2649 RECOMP_FLAGS_IN(); 2650 eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */ 2651 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2653 edi = edi + 8; /* 0x3608EB93: add edi, 8 */ 2654 _flag_k = FK_ADD; 2655 /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */ 2656 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2658 _flag_k = FK_CMP; 2659 RECOMP_BACKEDGE(); 2660 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */ 2661 L_3608EB9A: 2662 eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */ 2663 L_3608EB9D: 2664 eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */ 2665 PUSH32(esp, eax); /* 0x3608EBA0: push eax */ 2666 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */ 2667 RECOMP_FLAGS_IN(); 2668 eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */ 2669 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2670 ecx = 0; /* 0x3608EBA9: xor ecx, ecx */ 2671 _cf = 0; 2672 _flag_k = FK_TEST; 2673 PUSH32(esp, eax); /* 0x3608EBAB: push eax */ 2674 MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */ 2675 MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */ 2676 MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */ 2677 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */ 2678 RECOMP_FLAGS_IN(); 2679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2680 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2681 esp = esp + 8; /* 0x3608EBBA: add esp, 8 */ 2682 _flag_k = FK_ADD; 2683 L_3608EBBD: 2684 eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */ 2685 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */ 2686 /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */ 2687 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2688 _cf = 0; 2689 _flag_k = FK_NARROW(FK_TEST, 24); 2690 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */ 2691 L_3608EBC7: 2692 PUSH32(esp, eax); /* 0x3608EBC7: push eax */ 2693 RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */ 2694 RECOMP_FLAGS_IN(); 2695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2697 esp = esp + 4; /* 0x3608EBCD: add esp, 4 */ 2698 _flag_k = FK_ADD; 2699 goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */ 2700 L_3608EBD2: 2701 eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */ 2702 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */ 2703 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2705 _flag_k = FK_CMP; 2706 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */ 2707 L_3608EBDA: 2708 ebx = eax; /* 0x3608EBDA: mov ebx, eax */ 2709 eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */ 2710 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */ 2711 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2713 _flag_k = FK_CMP; 2714 RECOMP_BACKEDGE(); 2715 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */ 2716 L_3608EBE4: 2717 /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */ 2718 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax); 2719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2720 _flag_k = FK_CMP; 2721 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */ 2722 L_3608EBE9: 2723 ebx = eax; /* 0x3608EBE9: mov ebx, eax */ 2724 L_3608EBEB: 2725 /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */ 2726 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 2727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2728 _flag_k = FK_CMP; 2729 RECOMP_BACKEDGE(); 2730 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */ 2731 L_3608EBF0: 2732 ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */ 2733 eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */ 2734 edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */ 2735 PUSH32(esp, eax); /* 0x3608EBF8: push eax */ 2736 PUSH32(esp, edx); /* 0x3608EBF9: push edx */ 2737 eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */ 2738 PUSH32(esp, eax); /* 0x3608EBFD: push eax */ 2739 RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */ 2740 RECOMP_FLAGS_IN(); 2741 edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */ 2742 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2743 ebx = 0; /* 0x3608EC06: xor ebx, ebx */ 2744 _cf = 0; 2745 _flag_k = FK_TEST; 2746 /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */ 2747 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2749 _flag_k = FK_CMP; 2750 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */ 2751 L_3608EC0C: 2752 eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */ 2753 ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */ 2754 PUSH32(esp, eax); /* 0x3608EC11: push eax */ 2755 PUSH32(esp, ecx); /* 0x3608EC12: push ecx */ 2756 ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */ 2757 PUSH32(esp, ecx); /* 0x3608EC16: push ecx */ 2758 ecx = edi; /* 0x3608EC17: mov ecx, edi */ 2759 RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */ 2760 RECOMP_FLAGS_IN(); 2761 eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */ 2762 PUSH32(esp, eax); /* 0x3608EC21: push eax */ 2763 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */ 2764 RECOMP_FLAGS_IN(); 2765 eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */ 2766 PUSH32(esp, eax); /* 0x3608EC2A: push eax */ 2767 MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */ 2768 MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */ 2769 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */ 2770 RECOMP_FLAGS_IN(); 2771 PUSH32(esp, edi); /* 0x3608EC36: push edi */ 2772 MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */ 2773 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */ 2774 RECOMP_FLAGS_IN(); 2775 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2777 esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */ 2778 _flag_k = FK_ADD; 2779 L_3608EC42: 2780 eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */ 2781 /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */ 2782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2784 _flag_k = FK_CMP; 2785 edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */ 2786 MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */ 2787 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */ 2788 L_3608EC52: 2789 PUSH32(esp, eax); /* 0x3608EC52: push eax */ 2790 RECOMP_ICALL(edi); /* 0x3608EC53: call edi */ 2791 RECOMP_FLAGS_IN(); 2792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2793 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2794 esp = esp + 4; /* 0x3608EC55: add esp, 4 */ 2795 _flag_k = FK_ADD; 2796 MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */ 2797 L_3608EC5B: 2798 eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */ 2799 /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */ 2800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2802 _flag_k = FK_CMP; 2803 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */ 2804 L_3608EC62: 2805 PUSH32(esp, eax); /* 0x3608EC62: push eax */ 2806 RECOMP_ICALL(edi); /* 0x3608EC63: call edi */ 2807 RECOMP_FLAGS_IN(); 2808 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2809 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2810 esp = esp + 4; /* 0x3608EC65: add esp, 4 */ 2811 _flag_k = FK_ADD; 2812 MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */ 2813 L_3608EC6B: 2814 ecx = esi; /* 0x3608EC6B: mov ecx, esi */ 2815 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2816 _cf = (ecx) != 0; 2817 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */ 2818 _flag_k = FK_CMP; 2819 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */ 2820 ecx = _sc ? 0xFFFFFFFFu : 0; 2821 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2822 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2823 eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */ 2824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2825 ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */ 2826 _cf = 0; 2827 _flag_k = FK_TEST; 2828 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */ 2829 RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */ 2830 RECOMP_FLAGS_IN(); 2831 ecx = esi; /* 0x3608EC7F: mov ecx, esi */ 2832 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2833 _cf = (ecx) != 0; 2834 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */ 2835 _flag_k = FK_CMP; 2836 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */ 2837 ecx = _sc ? 0xFFFFFFFFu : 0; 2838 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2839 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2840 eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */ 2841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2842 ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */ 2843 _cf = 0; 2844 _flag_k = FK_TEST; 2845 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */ 2846 RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */ 2847 RECOMP_FLAGS_IN(); 2848 ecx = esi; /* 0x3608EC93: mov ecx, esi */ 2849 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */ 2850 RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */ 2851 RECOMP_FLAGS_IN(); 2852 ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */ 2853 edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */ 2854 esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */ 2855 ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */ 2856 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */ 2857 esp = ebp; /* 0x3608ECAE: mov esp, ebp */ 2858 ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */ 2859 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret */ 2860 RECOMP_REGS_OUT(); 2861 } 2862 2863 void sub_3608EBE9(void) { 2864 int _fpu_cmp = 0; 2865 uint32_t _cf = 0; 2866 int _df = 1; 2867 uint32_t _flag_k = FK_NONE; 2868 uint32_t _flag_a = 0, _flag_b = 0; 2869 uint32_t _itail_tgt = 0; 2870 RECOMP_REGS_LOCALS 2871 RECOMP_ENTER(0x3608EBE9u); 2872 2873 goto L_3608EBE9; 2874 L_3608EB70: 2875 eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */ 2876 /* test eax, eax */ /* 0x3608EB73: test eax, eax */ 2877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2878 _cf = 0; 2879 _flag_k = FK_TEST; 2880 MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */ 2881 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */ 2882 L_3608EB7A: 2883 ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */ 2884 edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */ 2885 /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */ 2886 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2888 _flag_k = FK_CMP; 2889 MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */ 2890 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */ 2891 L_3608EB87: 2892 PUSH32(esp, 0); /* 0x3608EB87: push 0 */ 2893 ecx = edi; /* 0x3608EB89: mov ecx, edi */ 2894 RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */ 2895 RECOMP_FLAGS_IN(); 2896 eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */ 2897 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2899 edi = edi + 8; /* 0x3608EB93: add edi, 8 */ 2900 _flag_k = FK_ADD; 2901 /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */ 2902 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2904 _flag_k = FK_CMP; 2905 RECOMP_BACKEDGE(); 2906 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */ 2907 L_3608EB9A: 2908 eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */ 2909 L_3608EB9D: 2910 eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */ 2911 PUSH32(esp, eax); /* 0x3608EBA0: push eax */ 2912 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */ 2913 RECOMP_FLAGS_IN(); 2914 eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */ 2915 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2916 ecx = 0; /* 0x3608EBA9: xor ecx, ecx */ 2917 _cf = 0; 2918 _flag_k = FK_TEST; 2919 PUSH32(esp, eax); /* 0x3608EBAB: push eax */ 2920 MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */ 2921 MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */ 2922 MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */ 2923 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */ 2924 RECOMP_FLAGS_IN(); 2925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2926 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2927 esp = esp + 8; /* 0x3608EBBA: add esp, 8 */ 2928 _flag_k = FK_ADD; 2929 L_3608EBBD: 2930 eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */ 2931 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */ 2932 /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */ 2933 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2934 _cf = 0; 2935 _flag_k = FK_NARROW(FK_TEST, 24); 2936 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */ 2937 L_3608EBC7: 2938 PUSH32(esp, eax); /* 0x3608EBC7: push eax */ 2939 RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */ 2940 RECOMP_FLAGS_IN(); 2941 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2943 esp = esp + 4; /* 0x3608EBCD: add esp, 4 */ 2944 _flag_k = FK_ADD; 2945 goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */ 2946 L_3608EBD2: 2947 eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */ 2948 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */ 2949 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2951 _flag_k = FK_CMP; 2952 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */ 2953 L_3608EBDA: 2954 ebx = eax; /* 0x3608EBDA: mov ebx, eax */ 2955 eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */ 2956 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */ 2957 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2959 _flag_k = FK_CMP; 2960 RECOMP_BACKEDGE(); 2961 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */ 2962 L_3608EBE4: 2963 /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */ 2964 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax); 2965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2966 _flag_k = FK_CMP; 2967 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */ 2968 L_3608EBE9: 2969 ebx = eax; /* 0x3608EBE9: mov ebx, eax */ 2970 L_3608EBEB: 2971 /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */ 2972 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 2973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2974 _flag_k = FK_CMP; 2975 RECOMP_BACKEDGE(); 2976 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */ 2977 L_3608EBF0: 2978 ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */ 2979 eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */ 2980 edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */ 2981 PUSH32(esp, eax); /* 0x3608EBF8: push eax */ 2982 PUSH32(esp, edx); /* 0x3608EBF9: push edx */ 2983 eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */ 2984 PUSH32(esp, eax); /* 0x3608EBFD: push eax */ 2985 RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */ 2986 RECOMP_FLAGS_IN(); 2987 edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */ 2988 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2989 ebx = 0; /* 0x3608EC06: xor ebx, ebx */ 2990 _cf = 0; 2991 _flag_k = FK_TEST; 2992 /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */ 2993 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2995 _flag_k = FK_CMP; 2996 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */ 2997 L_3608EC0C: 2998 eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */ 2999 ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */ 3000 PUSH32(esp, eax); /* 0x3608EC11: push eax */ 3001 PUSH32(esp, ecx); /* 0x3608EC12: push ecx */ 3002 ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */ 3003 PUSH32(esp, ecx); /* 0x3608EC16: push ecx */ 3004 ecx = edi; /* 0x3608EC17: mov ecx, edi */ 3005 RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */ 3006 RECOMP_FLAGS_IN(); 3007 eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */ 3008 PUSH32(esp, eax); /* 0x3608EC21: push eax */ 3009 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */ 3010 RECOMP_FLAGS_IN(); 3011 eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */ 3012 PUSH32(esp, eax); /* 0x3608EC2A: push eax */ 3013 MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */ 3014 MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */ 3015 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */ 3016 RECOMP_FLAGS_IN(); 3017 PUSH32(esp, edi); /* 0x3608EC36: push edi */ 3018 MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */ 3019 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */ 3020 RECOMP_FLAGS_IN(); 3021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3023 esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */ 3024 _flag_k = FK_ADD; 3025 L_3608EC42: 3026 eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */ 3027 /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */ 3028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3030 _flag_k = FK_CMP; 3031 edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */ 3032 MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */ 3033 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */ 3034 L_3608EC52: 3035 PUSH32(esp, eax); /* 0x3608EC52: push eax */ 3036 RECOMP_ICALL(edi); /* 0x3608EC53: call edi */ 3037 RECOMP_FLAGS_IN(); 3038 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3040 esp = esp + 4; /* 0x3608EC55: add esp, 4 */ 3041 _flag_k = FK_ADD; 3042 MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */ 3043 L_3608EC5B: 3044 eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */ 3045 /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */ 3046 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3048 _flag_k = FK_CMP; 3049 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */ 3050 L_3608EC62: 3051 PUSH32(esp, eax); /* 0x3608EC62: push eax */ 3052 RECOMP_ICALL(edi); /* 0x3608EC63: call edi */ 3053 RECOMP_FLAGS_IN(); 3054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3056 esp = esp + 4; /* 0x3608EC65: add esp, 4 */ 3057 _flag_k = FK_ADD; 3058 MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */ 3059 L_3608EC6B: 3060 ecx = esi; /* 0x3608EC6B: mov ecx, esi */ 3061 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 3062 _cf = (ecx) != 0; 3063 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */ 3064 _flag_k = FK_CMP; 3065 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */ 3066 ecx = _sc ? 0xFFFFFFFFu : 0; 3067 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3068 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3069 eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */ 3070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3071 ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */ 3072 _cf = 0; 3073 _flag_k = FK_TEST; 3074 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */ 3075 RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */ 3076 RECOMP_FLAGS_IN(); 3077 ecx = esi; /* 0x3608EC7F: mov ecx, esi */ 3078 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 3079 _cf = (ecx) != 0; 3080 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */ 3081 _flag_k = FK_CMP; 3082 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */ 3083 ecx = _sc ? 0xFFFFFFFFu : 0; 3084 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3085 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3086 eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */ 3087 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3088 ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */ 3089 _cf = 0; 3090 _flag_k = FK_TEST; 3091 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */ 3092 RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */ 3093 RECOMP_FLAGS_IN(); 3094 ecx = esi; /* 0x3608EC93: mov ecx, esi */ 3095 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */ 3096 RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */ 3097 RECOMP_FLAGS_IN(); 3098 ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */ 3099 edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */ 3100 esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */ 3101 ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */ 3102 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */ 3103 esp = ebp; /* 0x3608ECAE: mov esp, ebp */ 3104 ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */ 3105 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret */ 3106 RECOMP_REGS_OUT(); 3107 } 3108 3109 void sub_3608EBEB(void) { 3110 int _fpu_cmp = 0; 3111 uint32_t _cf = 0; 3112 int _df = 1; 3113 uint32_t _flag_k = FK_NONE; 3114 uint32_t _flag_a = 0, _flag_b = 0; 3115 uint32_t _itail_tgt = 0; 3116 RECOMP_REGS_LOCALS 3117 RECOMP_ENTER(0x3608EBEBu); 3118 3119 goto L_3608EBEB; 3120 L_3608EB70: 3121 eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */ 3122 /* test eax, eax */ /* 0x3608EB73: test eax, eax */ 3123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3124 _cf = 0; 3125 _flag_k = FK_TEST; 3126 MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */ 3127 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */ 3128 L_3608EB7A: 3129 ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */ 3130 edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */ 3131 /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */ 3132 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3134 _flag_k = FK_CMP; 3135 MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */ 3136 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */ 3137 L_3608EB87: 3138 PUSH32(esp, 0); /* 0x3608EB87: push 0 */ 3139 ecx = edi; /* 0x3608EB89: mov ecx, edi */ 3140 RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */ 3141 RECOMP_FLAGS_IN(); 3142 eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */ 3143 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 3144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3145 edi = edi + 8; /* 0x3608EB93: add edi, 8 */ 3146 _flag_k = FK_ADD; 3147 /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */ 3148 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3150 _flag_k = FK_CMP; 3151 RECOMP_BACKEDGE(); 3152 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */ 3153 L_3608EB9A: 3154 eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */ 3155 L_3608EB9D: 3156 eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */ 3157 PUSH32(esp, eax); /* 0x3608EBA0: push eax */ 3158 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */ 3159 RECOMP_FLAGS_IN(); 3160 eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */ 3161 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3162 ecx = 0; /* 0x3608EBA9: xor ecx, ecx */ 3163 _cf = 0; 3164 _flag_k = FK_TEST; 3165 PUSH32(esp, eax); /* 0x3608EBAB: push eax */ 3166 MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */ 3167 MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */ 3168 MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */ 3169 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */ 3170 RECOMP_FLAGS_IN(); 3171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3173 esp = esp + 8; /* 0x3608EBBA: add esp, 8 */ 3174 _flag_k = FK_ADD; 3175 L_3608EBBD: 3176 eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */ 3177 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */ 3178 /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */ 3179 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 3180 _cf = 0; 3181 _flag_k = FK_NARROW(FK_TEST, 24); 3182 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */ 3183 L_3608EBC7: 3184 PUSH32(esp, eax); /* 0x3608EBC7: push eax */ 3185 RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */ 3186 RECOMP_FLAGS_IN(); 3187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3189 esp = esp + 4; /* 0x3608EBCD: add esp, 4 */ 3190 _flag_k = FK_ADD; 3191 goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */ 3192 L_3608EBD2: 3193 eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */ 3194 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */ 3195 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3197 _flag_k = FK_CMP; 3198 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */ 3199 L_3608EBDA: 3200 ebx = eax; /* 0x3608EBDA: mov ebx, eax */ 3201 eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */ 3202 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */ 3203 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3205 _flag_k = FK_CMP; 3206 RECOMP_BACKEDGE(); 3207 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */ 3208 L_3608EBE4: 3209 /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */ 3210 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax); 3211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3212 _flag_k = FK_CMP; 3213 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */ 3214 L_3608EBE9: 3215 ebx = eax; /* 0x3608EBE9: mov ebx, eax */ 3216 L_3608EBEB: 3217 /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */ 3218 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 3219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3220 _flag_k = FK_CMP; 3221 RECOMP_BACKEDGE(); 3222 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */ 3223 L_3608EBF0: 3224 ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */ 3225 eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */ 3226 edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */ 3227 PUSH32(esp, eax); /* 0x3608EBF8: push eax */ 3228 PUSH32(esp, edx); /* 0x3608EBF9: push edx */ 3229 eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */ 3230 PUSH32(esp, eax); /* 0x3608EBFD: push eax */ 3231 RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */ 3232 RECOMP_FLAGS_IN(); 3233 edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */ 3234 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3235 ebx = 0; /* 0x3608EC06: xor ebx, ebx */ 3236 _cf = 0; 3237 _flag_k = FK_TEST; 3238 /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */ 3239 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3241 _flag_k = FK_CMP; 3242 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */ 3243 L_3608EC0C: 3244 eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */ 3245 ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */ 3246 PUSH32(esp, eax); /* 0x3608EC11: push eax */ 3247 PUSH32(esp, ecx); /* 0x3608EC12: push ecx */ 3248 ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */ 3249 PUSH32(esp, ecx); /* 0x3608EC16: push ecx */ 3250 ecx = edi; /* 0x3608EC17: mov ecx, edi */ 3251 RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */ 3252 RECOMP_FLAGS_IN(); 3253 eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */ 3254 PUSH32(esp, eax); /* 0x3608EC21: push eax */ 3255 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */ 3256 RECOMP_FLAGS_IN(); 3257 eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */ 3258 PUSH32(esp, eax); /* 0x3608EC2A: push eax */ 3259 MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */ 3260 MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */ 3261 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */ 3262 RECOMP_FLAGS_IN(); 3263 PUSH32(esp, edi); /* 0x3608EC36: push edi */ 3264 MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */ 3265 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */ 3266 RECOMP_FLAGS_IN(); 3267 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3269 esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */ 3270 _flag_k = FK_ADD; 3271 L_3608EC42: 3272 eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */ 3273 /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */ 3274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3276 _flag_k = FK_CMP; 3277 edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */ 3278 MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */ 3279 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */ 3280 L_3608EC52: 3281 PUSH32(esp, eax); /* 0x3608EC52: push eax */ 3282 RECOMP_ICALL(edi); /* 0x3608EC53: call edi */ 3283 RECOMP_FLAGS_IN(); 3284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3286 esp = esp + 4; /* 0x3608EC55: add esp, 4 */ 3287 _flag_k = FK_ADD; 3288 MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */ 3289 L_3608EC5B: 3290 eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */ 3291 /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */ 3292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3294 _flag_k = FK_CMP; 3295 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */ 3296 L_3608EC62: 3297 PUSH32(esp, eax); /* 0x3608EC62: push eax */ 3298 RECOMP_ICALL(edi); /* 0x3608EC63: call edi */ 3299 RECOMP_FLAGS_IN(); 3300 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3301 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3302 esp = esp + 4; /* 0x3608EC65: add esp, 4 */ 3303 _flag_k = FK_ADD; 3304 MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */ 3305 L_3608EC6B: 3306 ecx = esi; /* 0x3608EC6B: mov ecx, esi */ 3307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 3308 _cf = (ecx) != 0; 3309 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */ 3310 _flag_k = FK_CMP; 3311 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */ 3312 ecx = _sc ? 0xFFFFFFFFu : 0; 3313 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3314 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3315 eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */ 3316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3317 ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */ 3318 _cf = 0; 3319 _flag_k = FK_TEST; 3320 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */ 3321 RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */ 3322 RECOMP_FLAGS_IN(); 3323 ecx = esi; /* 0x3608EC7F: mov ecx, esi */ 3324 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 3325 _cf = (ecx) != 0; 3326 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */ 3327 _flag_k = FK_CMP; 3328 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */ 3329 ecx = _sc ? 0xFFFFFFFFu : 0; 3330 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3331 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3332 eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */ 3333 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3334 ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */ 3335 _cf = 0; 3336 _flag_k = FK_TEST; 3337 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */ 3338 RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */ 3339 RECOMP_FLAGS_IN(); 3340 ecx = esi; /* 0x3608EC93: mov ecx, esi */ 3341 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */ 3342 RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */ 3343 RECOMP_FLAGS_IN(); 3344 ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */ 3345 edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */ 3346 esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */ 3347 ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */ 3348 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */ 3349 esp = ebp; /* 0x3608ECAE: mov esp, ebp */ 3350 ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */ 3351 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret */ 3352 RECOMP_REGS_OUT(); 3353 } 3354 3355 void sub_3608ECC0(void) { 3356 int _fpu_cmp = 0; 3357 uint32_t _cf = 0; 3358 int _df = 1; 3359 uint32_t _flag_k = FK_NONE; 3360 uint32_t _flag_a = 0, _flag_b = 0; 3361 uint32_t _itail_tgt = 0; 3362 RECOMP_REGS_LOCALS 3363 RECOMP_ENTER(0x3608ECC0u); 3364 3365 L_3608ECC0: 3366 PUSH32(esp, ebp); /* 0x3608ECC0: push ebp */ 3367 ebp = esp; /* 0x3608ECC1: mov ebp, esp */ 3368 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608ECC3: push -1 */ 3369 PUSH32(esp, 0x36166188u); /* 0x3608ECC5: push 0x36166188 */ 3370 eax = MEM32(FS_BASE + (0)); /* 0x3608ECCA: mov eax, dword ptr fs:[0] */ 3371 PUSH32(esp, eax); /* 0x3608ECD0: push eax */ 3372 MEM32(FS_BASE + (0)) = esp; /* 0x3608ECD1: mov dword ptr fs:[0], esp */ 3373 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3375 esp = esp - 8; /* 0x3608ECD8: sub esp, 8 */ 3376 _flag_k = FK_CMP; 3377 PUSH32(esp, esi); /* 0x3608ECDB: push esi */ 3378 PUSH32(esp, edi); /* 0x3608ECDC: push edi */ 3379 edi = MEM32(ebp + 0x8); /* 0x3608ECDD: mov edi, dword ptr [ebp + 8] */ 3380 esi = ecx; /* 0x3608ECE0: mov esi, ecx */ 3381 eax = MEM32(esi); /* 0x3608ECE2: mov eax, dword ptr [esi] */ 3382 PUSH32(esp, 2); /* 0x3608ECE4: push 2 */ 3383 PUSH32(esp, edi); /* 0x3608ECE6: push edi */ 3384 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608ECE7: call dword ptr [eax + 4] */ 3385 RECOMP_FLAGS_IN(); 3386 PUSH32(esp, eax); /* 0x3608ECEA: push eax */ 3387 PUSH32(esp, edi); /* 0x3608ECEB: push edi */ 3388 ecx = ebp + (-0x14); /* 0x3608ECEC: lea ecx, [ebp - 0x14] */ 3389 RECOMP_ICALL(0x3602F280u); /* 0x3608ECEF: call 0x3602f280 */ /* not lifted */ 3390 RECOMP_FLAGS_IN(); 3391 ecx = MEM32(esi + 0x5C); /* 0x3608ECF4: mov ecx, dword ptr [esi + 0x5c] */ 3392 PUSH32(esp, eax); /* 0x3608ECF7: push eax */ 3393 MEM32(ebp + (-0x4)) = 0; /* 0x3608ECF8: mov dword ptr [ebp - 4], 0 */ 3394 RECOMP_ICALL(0x3602FED0u); /* 0x3608ECFF: call 0x3602fed0 */ /* not lifted */ 3395 RECOMP_FLAGS_IN(); 3396 ecx = ebp + (-0x14); /* 0x3608ED04: lea ecx, [ebp - 0x14] */ 3397 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608ED07: mov dword ptr [ebp - 4], 0xffffffff */ 3398 RECOMP_ICALL(0x360E2940u); /* 0x3608ED0E: call 0x360e2940 */ /* not lifted */ 3399 RECOMP_FLAGS_IN(); 3400 ecx = MEM32(ebp + (-0xC)); /* 0x3608ED13: mov ecx, dword ptr [ebp - 0xc] */ 3401 edi = POP32_VAL(esp); /* 0x3608ED16: pop edi */ 3402 esi = POP32_VAL(esp); /* 0x3608ED17: pop esi */ 3403 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ED18: mov dword ptr fs:[0], ecx */ 3404 esp = ebp; /* 0x3608ED1F: mov esp, ebp */ 3405 ebp = POP32_VAL(esp); /* 0x3608ED21: pop ebp */ 3406 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608ED22: ret 4 */ 3407 RECOMP_REGS_OUT(); 3408 } 3409 3410 void sub_3608ED30(void) { 3411 int _fpu_cmp = 0; 3412 uint32_t _cf = 0; 3413 int _df = 1; 3414 uint32_t _flag_k = FK_NONE; 3415 uint32_t _flag_a = 0, _flag_b = 0; 3416 uint32_t _itail_tgt = 0; 3417 RECOMP_REGS_LOCALS 3418 RECOMP_ENTER(0x3608ED30u); 3419 3420 L_3608ED30: 3421 PUSH32(esp, ebp); /* 0x3608ED30: push ebp */ 3422 ebp = esp; /* 0x3608ED31: mov ebp, esp */ 3423 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608ED33: push -1 */ 3424 PUSH32(esp, 0x361661A8u); /* 0x3608ED35: push 0x361661a8 */ 3425 eax = MEM32(FS_BASE + (0)); /* 0x3608ED3A: mov eax, dword ptr fs:[0] */ 3426 PUSH32(esp, eax); /* 0x3608ED40: push eax */ 3427 MEM32(FS_BASE + (0)) = esp; /* 0x3608ED41: mov dword ptr fs:[0], esp */ 3428 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3430 esp = esp - 8; /* 0x3608ED48: sub esp, 8 */ 3431 _flag_k = FK_CMP; 3432 PUSH32(esp, esi); /* 0x3608ED4B: push esi */ 3433 PUSH32(esp, edi); /* 0x3608ED4C: push edi */ 3434 edi = MEM32(ebp + 0x8); /* 0x3608ED4D: mov edi, dword ptr [ebp + 8] */ 3435 esi = ecx; /* 0x3608ED50: mov esi, ecx */ 3436 eax = MEM32(esi); /* 0x3608ED52: mov eax, dword ptr [esi] */ 3437 PUSH32(esp, 2); /* 0x3608ED54: push 2 */ 3438 PUSH32(esp, edi); /* 0x3608ED56: push edi */ 3439 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608ED57: call dword ptr [eax + 4] */ 3440 RECOMP_FLAGS_IN(); 3441 PUSH32(esp, eax); /* 0x3608ED5A: push eax */ 3442 PUSH32(esp, edi); /* 0x3608ED5B: push edi */ 3443 ecx = ebp + (-0x14); /* 0x3608ED5C: lea ecx, [ebp - 0x14] */ 3444 RECOMP_ICALL(0x3602F280u); /* 0x3608ED5F: call 0x3602f280 */ /* not lifted */ 3445 RECOMP_FLAGS_IN(); 3446 ecx = MEM32(esi + 0x60); /* 0x3608ED64: mov ecx, dword ptr [esi + 0x60] */ 3447 PUSH32(esp, eax); /* 0x3608ED67: push eax */ 3448 MEM32(ebp + (-0x4)) = 0; /* 0x3608ED68: mov dword ptr [ebp - 4], 0 */ 3449 RECOMP_ICALL(0x3602FED0u); /* 0x3608ED6F: call 0x3602fed0 */ /* not lifted */ 3450 RECOMP_FLAGS_IN(); 3451 ecx = ebp + (-0x14); /* 0x3608ED74: lea ecx, [ebp - 0x14] */ 3452 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608ED77: mov dword ptr [ebp - 4], 0xffffffff */ 3453 RECOMP_ICALL(0x360E2940u); /* 0x3608ED7E: call 0x360e2940 */ /* not lifted */ 3454 RECOMP_FLAGS_IN(); 3455 ecx = MEM32(ebp + (-0xC)); /* 0x3608ED83: mov ecx, dword ptr [ebp - 0xc] */ 3456 edi = POP32_VAL(esp); /* 0x3608ED86: pop edi */ 3457 esi = POP32_VAL(esp); /* 0x3608ED87: pop esi */ 3458 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ED88: mov dword ptr fs:[0], ecx */ 3459 esp = ebp; /* 0x3608ED8F: mov esp, ebp */ 3460 ebp = POP32_VAL(esp); /* 0x3608ED91: pop ebp */ 3461 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608ED92: ret 4 */ 3462 RECOMP_REGS_OUT(); 3463 } 3464 3465 void sub_3608EDA0(void) { 3466 int _fpu_cmp = 0; 3467 uint32_t _cf = 0; 3468 int _df = 1; 3469 uint32_t _flag_k = FK_NONE; 3470 uint32_t _flag_a = 0, _flag_b = 0; 3471 uint32_t _itail_tgt = 0; 3472 RECOMP_REGS_LOCALS 3473 RECOMP_ENTER(0x3608EDA0u); 3474 3475 L_3608EDA0: 3476 PUSH32(esp, ebp); /* 0x3608EDA0: push ebp */ 3477 ebp = esp; /* 0x3608EDA1: mov ebp, esp */ 3478 PUSH32(esp, esi); /* 0x3608EDA3: push esi */ 3479 esi = MEM32(ebp + 0x8); /* 0x3608EDA4: mov esi, dword ptr [ebp + 8] */ 3480 /* test esi, esi */ /* 0x3608EDA7: test esi, esi */ 3481 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3482 _cf = 0; 3483 _flag_k = FK_TEST; 3484 if (TEST_S(_flag_a, _flag_b)) goto L_3608EDCF; /* 0x3608EDA9: jl 0x3608edcf */ 3485 L_3608EDAB: 3486 /* cmp esi, 0x10u */ /* 0x3608EDAB: cmp esi, 0x10 */ 3487 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3489 _flag_k = FK_CMP; 3490 if (CMP_G(_flag_a, _flag_b)) goto L_3608EDCF; /* 0x3608EDAE: jg 0x3608edcf */ 3491 L_3608EDB0: 3492 eax = MEM32(ecx); /* 0x3608EDB0: mov eax, dword ptr [ecx] */ 3493 PUSH32(esp, 2); /* 0x3608EDB2: push 2 */ 3494 PUSH32(esp, 0x12Au); /* 0x3608EDB4: push 0x12a */ 3495 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608EDB9: call dword ptr [eax + 4] */ 3496 RECOMP_FLAGS_IN(); 3497 ecx = esi; /* 0x3608EDBC: mov ecx, esi */ 3498 edx = 1; /* 0x3608EDBE: mov edx, 1 */ 3499 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3608EDC3: shl edx, cl */ 3500 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3501 edx = edx << ((LO8(ecx)) & 31); /* 0x3608EDC3: shl edx, cl */ 3502 esi = POP32_VAL(esp); /* 0x3608EDC5: pop esi */ 3503 /* test edx, eax */ /* 0x3608EDC6: test edx, eax */ 3504 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3505 _cf = 0; 3506 _flag_k = FK_TEST; 3507 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3608EDC8: setne al */ 3508 ebp = POP32_VAL(esp); /* 0x3608EDCB: pop ebp */ 3509 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608EDCC: ret 4 */ 3510 L_3608EDCF: 3511 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3512 SET_LO8(eax, 0); /* 0x3608EDCF: xor al, al */ 3513 _cf = 0; 3514 _flag_k = FK_NARROW(FK_TEST, 24); 3515 esi = POP32_VAL(esp); /* 0x3608EDD1: pop esi */ 3516 ebp = POP32_VAL(esp); /* 0x3608EDD2: pop ebp */ 3517 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608EDD3: ret 4 */ 3518 RECOMP_REGS_OUT(); 3519 } 3520 3521 void sub_3608EDE0(void) { 3522 int _fpu_cmp = 0; 3523 uint32_t _cf = 0; 3524 int _df = 1; 3525 uint32_t _flag_k = FK_NONE; 3526 uint32_t _flag_a = 0, _flag_b = 0; 3527 uint32_t _itail_tgt = 0; 3528 RECOMP_REGS_LOCALS 3529 RECOMP_ENTER(0x3608EDE0u); 3530 3531 L_3608EDE0: 3532 PUSH32(esp, ebp); /* 0x3608EDE0: push ebp */ 3533 ebp = esp; /* 0x3608EDE1: mov ebp, esp */ 3534 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 3535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3536 esp = esp - 0x44u; /* 0x3608EDE3: sub esp, 0x44 */ 3537 _flag_k = FK_CMP; 3538 PUSH32(esp, ebx); /* 0x3608EDE6: push ebx */ 3539 PUSH32(esp, esi); /* 0x3608EDE7: push esi */ 3540 esi = MEM32(ebp + 0x8); /* 0x3608EDE8: mov esi, dword ptr [ebp + 8] */ 3541 PUSH32(esp, edi); /* 0x3608EDEB: push edi */ 3542 eax = ebp + (-0x14); /* 0x3608EDEC: lea eax, [ebp - 0x14] */ 3543 PUSH32(esp, eax); /* 0x3608EDEF: push eax */ 3544 ebx = ecx; /* 0x3608EDF0: mov ebx, ecx */ 3545 edi = MEM32(ebx); /* 0x3608EDF2: mov edi, dword ptr [ebx] */ 3546 PUSH32(esp, 0); /* 0x3608EDF4: push 0 */ 3547 PUSH32(esp, ebx); /* 0x3608EDF6: push ebx */ 3548 PUSH32(esp, esi); /* 0x3608EDF7: push esi */ 3549 MEM32(ebp + (-0x8)) = ebx; /* 0x3608EDF8: mov dword ptr [ebp - 8], ebx */ 3550 RECOMP_ICALL(0x3602E2B0u); /* 0x3608EDFB: call 0x3602e2b0 */ /* not lifted */ 3551 RECOMP_FLAGS_IN(); 3552 ecx = ebx; /* 0x3608EE00: mov ecx, ebx */ 3553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 3554 eax = eax & 0xFFu; /* 0x3608EE02: and eax, 0xff */ 3555 _cf = 0; 3556 _flag_k = FK_TEST; 3557 PUSH32(esp, eax); /* 0x3608EE07: push eax */ 3558 PUSH32(esp, 0x3E7u); /* 0x3608EE08: push 0x3e7 */ 3559 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x3608EE0D: call dword ptr [edi + 8] */ 3560 RECOMP_FLAGS_IN(); 3561 ecx = MEM32(ebp + (-0x14)); /* 0x3608EE10: mov ecx, dword ptr [ebp - 0x14] */ 3562 MEM32(ebx + 0x70) = ecx; /* 0x3608EE13: mov dword ptr [ebx + 0x70], ecx */ 3563 ecx = esi; /* 0x3608EE16: mov ecx, esi */ 3564 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3608EE18: call dword ptr [0x3616fadc] */ 3565 RECOMP_FLAGS_IN(); 3566 /* test eax, eax */ /* 0x3608EE1E: test eax, eax */ 3567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3568 _cf = 0; 3569 _flag_k = FK_TEST; 3570 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EE2F; /* 0x3608EE20: jne 0x3608ee2f */ 3571 L_3608EE22: 3572 edx = MEM32(ebx); /* 0x3608EE22: mov edx, dword ptr [ebx] */ 3573 PUSH32(esp, eax); /* 0x3608EE24: push eax */ 3574 PUSH32(esp, 0x3E7u); /* 0x3608EE25: push 0x3e7 */ 3575 ecx = ebx; /* 0x3608EE2A: mov ecx, ebx */ 3576 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608EE2C: call dword ptr [edx + 8] */ 3577 RECOMP_FLAGS_IN(); 3578 L_3608EE2F: 3579 ecx = ebx; /* 0x3608EE2F: mov ecx, ebx */ 3580 RECOMP_ICALL(0x3608FD00u); /* 0x3608EE31: call 0x3608fd00 */ /* not lifted */ 3581 RECOMP_FLAGS_IN(); 3582 eax = MEM32(ebx); /* 0x3608EE36: mov eax, dword ptr [ebx] */ 3583 PUSH32(esp, 2); /* 0x3608EE38: push 2 */ 3584 PUSH32(esp, 0x17u); /* 0x3608EE3A: push 0x17 */ 3585 ecx = ebx; /* 0x3608EE3C: mov ecx, ebx */ 3586 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608EE3E: call dword ptr [eax + 4] */ 3587 RECOMP_FLAGS_IN(); 3588 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3589 esi = 0; /* 0x3608EE41: xor esi, esi */ 3590 _cf = 0; 3591 _flag_k = FK_TEST; 3592 MEM32(ebp + (-0x10)) = eax; /* 0x3608EE43: mov dword ptr [ebp - 0x10], eax */ 3593 MEM8(ebp + 0xB) = (uint8_t)(0); /* 0x3608EE46: mov byte ptr [ebp + 0xb], 0 */ 3594 MEM32(ebp + (-0xC)) = esi; /* 0x3608EE4A: mov dword ptr [ebp - 0xc], esi */ 3595 L_3608EE4D: 3596 PUSH32(esp, esi); /* 0x3608EE4D: push esi */ 3597 ecx = ebx; /* 0x3608EE4E: mov ecx, ebx */ 3598 RECOMP_ICALL(0x360020C0u); /* 0x3608EE50: call 0x360020c0 */ /* not lifted */ 3599 RECOMP_FLAGS_IN(); 3600 /* test eax, eax */ /* 0x3608EE55: test eax, eax */ 3601 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3602 _cf = 0; 3603 _flag_k = FK_TEST; 3604 MEM32(ebp + (-0x4)) = eax; /* 0x3608EE57: mov dword ptr [ebp - 4], eax */ 3605 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EF29; /* 0x3608EE5A: je 0x3608ef29 */ 3606 L_3608EE60: 3607 ecx = ebp + (-0x44); /* 0x3608EE60: lea ecx, [ebp - 0x44] */ 3608 PUSH32(esp, ecx); /* 0x3608EE63: push ecx */ 3609 ecx = eax; /* 0x3608EE64: mov ecx, eax */ 3610 RECOMP_ICALL(0x360C02D0u); /* 0x3608EE66: call 0x360c02d0 */ /* not lifted */ 3611 RECOMP_FLAGS_IN(); 3612 edx = MEM32(eax); /* 0x3608EE6B: mov edx, dword ptr [eax] */ 3613 ecx = MEM32(eax + 0x4); /* 0x3608EE6D: mov ecx, dword ptr [eax + 4] */ 3614 edi = MEM32(eax + 0x8); /* 0x3608EE70: mov edi, dword ptr [eax + 8] */ 3615 MEM32(ebp + (-0x24)) = edx; /* 0x3608EE73: mov dword ptr [ebp - 0x24], edx */ 3616 edx = MEM32(eax + 0xC); /* 0x3608EE76: mov edx, dword ptr [eax + 0xc] */ 3617 eax = ebp + (-0x34); /* 0x3608EE79: lea eax, [ebp - 0x34] */ 3618 MEM32(ebp + (-0x20)) = ecx; /* 0x3608EE7C: mov dword ptr [ebp - 0x20], ecx */ 3619 ecx = MEM32(ebp + (-0x4)); /* 0x3608EE7F: mov ecx, dword ptr [ebp - 4] */ 3620 PUSH32(esp, eax); /* 0x3608EE82: push eax */ 3621 MEM32(ebp + (-0x18)) = edx; /* 0x3608EE83: mov dword ptr [ebp - 0x18], edx */ 3622 esi = edi; /* 0x3608EE86: mov esi, edi */ 3623 RECOMP_ICALL(0x360C0300u); /* 0x3608EE88: call 0x360c0300 */ /* not lifted */ 3624 RECOMP_FLAGS_IN(); 3625 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608EE8D: cmp esi, dword ptr [eax + 8] */ 3626 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3628 _flag_k = FK_CMP; 3629 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EF26; /* 0x3608EE90: je 0x3608ef26 */ 3630 L_3608EE96: 3631 esi = MEM32(esi); /* 0x3608EE96: mov esi, dword ptr [esi] */ 3632 ecx = MEM32(ebp + (-0x10)); /* 0x3608EE98: mov ecx, dword ptr [ebp - 0x10] */ 3633 MEM32(esi + 0x4) = ecx; /* 0x3608EE9B: mov dword ptr [esi + 4], ecx */ 3634 PUSH32(esp, 0x3E7u); /* 0x3608EE9E: push 0x3e7 */ 3635 ecx = esi; /* 0x3608EEA3: mov ecx, esi */ 3636 RECOMP_ICALL(0x360BD190u); /* 0x3608EEA5: call 0x360bd190 */ /* not lifted */ 3637 RECOMP_FLAGS_IN(); 3638 eax = MEM32(esi); /* 0x3608EEAA: mov eax, dword ptr [esi] */ 3639 /* cmp eax, 0xCF3Eu */ /* 0x3608EEAC: cmp eax, 0xcf3e */ 3640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCF3Eu); 3641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3642 _flag_k = FK_CMP; 3643 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EEB7; /* 0x3608EEB1: jne 0x3608eeb7 */ 3644 L_3608EEB3: 3645 MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x3608EEB3: mov byte ptr [ebp + 0xb], 1 */ 3646 L_3608EEB7: 3647 /* cmp eax, 0xCF2Fu */ /* 0x3608EEB7: cmp eax, 0xcf2f */ 3648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCF2Fu); 3649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3650 _flag_k = FK_CMP; 3651 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EEE4; /* 0x3608EEBC: jne 0x3608eee4 */ 3652 L_3608EEBE: 3653 PUSH32(esp, 0x38u); /* 0x3608EEBE: push 0x38 */ 3654 ecx = esi; /* 0x3608EEC0: mov ecx, esi */ 3655 RECOMP_ICALL(0x360BD190u); /* 0x3608EEC2: call 0x360bd190 */ /* not lifted */ 3656 RECOMP_FLAGS_IN(); 3657 /* test eax, eax */ /* 0x3608EEC7: test eax, eax */ 3658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3659 _cf = 0; 3660 _flag_k = FK_TEST; 3661 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EED9; /* 0x3608EEC9: je 0x3608eed9 */ 3662 L_3608EECB: 3663 PUSH32(esp, 0x38u); /* 0x3608EECB: push 0x38 */ 3664 ecx = esi; /* 0x3608EECD: mov ecx, esi */ 3665 RECOMP_ICALL(0x360BD190u); /* 0x3608EECF: call 0x360bd190 */ /* not lifted */ 3666 RECOMP_FLAGS_IN(); 3667 /* cmp eax, 2 */ /* 0x3608EED4: cmp eax, 2 */ 3668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 3669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3670 _flag_k = FK_CMP; 3671 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EEE4; /* 0x3608EED7: jne 0x3608eee4 */ 3672 L_3608EED9: 3673 PUSH32(esp, 2); /* 0x3608EED9: push 2 */ 3674 PUSH32(esp, 0x27u); /* 0x3608EEDB: push 0x27 */ 3675 ecx = esi; /* 0x3608EEDD: mov ecx, esi */ 3676 RECOMP_ICALL(0x360BD280u); /* 0x3608EEDF: call 0x360bd280 */ /* not lifted */ 3677 RECOMP_FLAGS_IN(); 3678 L_3608EEE4: 3679 eax = MEM32(ebp + (-0x20)); /* 0x3608EEE4: mov eax, dword ptr [ebp - 0x20] */ 3680 /* cmp edi, eax */ /* 0x3608EEE7: cmp edi, eax */ 3681 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3683 _flag_k = FK_CMP; 3684 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EF0F; /* 0x3608EEE9: je 0x3608ef0f */ 3685 L_3608EEEB: 3686 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3687 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3688 edi = edi + 4; /* 0x3608EEEB: add edi, 4 */ 3689 _flag_k = FK_ADD; 3690 /* cmp edi, eax */ /* 0x3608EEEE: cmp edi, eax */ 3691 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3693 _flag_k = FK_CMP; 3694 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EF0F; /* 0x3608EEF0: jne 0x3608ef0f */ 3695 L_3608EEF2: 3696 eax = MEM32(ebp + (-0x18)); /* 0x3608EEF2: mov eax, dword ptr [ebp - 0x18] */ 3697 ecx = MEM32(eax + 0x4); /* 0x3608EEF5: mov ecx, dword ptr [eax + 4] */ 3698 /* test ecx, ecx */ /* 0x3608EEF8: test ecx, ecx */ 3699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3700 _cf = 0; 3701 _flag_k = FK_TEST; 3702 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EF0F; /* 0x3608EEFA: je 0x3608ef0f */ 3703 L_3608EEFC: 3704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3706 eax = eax + 4; /* 0x3608EEFC: add eax, 4 */ 3707 _flag_k = FK_ADD; 3708 MEM32(ebp + (-0x18)) = eax; /* 0x3608EEFF: mov dword ptr [ebp - 0x18], eax */ 3709 eax = MEM32(eax); /* 0x3608EF02: mov eax, dword ptr [eax] */ 3710 edx = eax + 0x1000; /* 0x3608EF04: lea edx, [eax + 0x1000] */ 3711 MEM32(ebp + (-0x20)) = edx; /* 0x3608EF0A: mov dword ptr [ebp - 0x20], edx */ 3712 edi = eax; /* 0x3608EF0D: mov edi, eax */ 3713 L_3608EF0F: 3714 ecx = MEM32(ebp + (-0x4)); /* 0x3608EF0F: mov ecx, dword ptr [ebp - 4] */ 3715 eax = ebp + (-0x34); /* 0x3608EF12: lea eax, [ebp - 0x34] */ 3716 PUSH32(esp, eax); /* 0x3608EF15: push eax */ 3717 esi = edi; /* 0x3608EF16: mov esi, edi */ 3718 RECOMP_ICALL(0x360C0300u); /* 0x3608EF18: call 0x360c0300 */ /* not lifted */ 3719 RECOMP_FLAGS_IN(); 3720 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608EF1D: cmp esi, dword ptr [eax + 8] */ 3721 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3723 _flag_k = FK_CMP; 3724 RECOMP_BACKEDGE(); 3725 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EE96; /* 0x3608EF20: jne 0x3608ee96 */ 3726 L_3608EF26: 3727 esi = MEM32(ebp + (-0xC)); /* 0x3608EF26: mov esi, dword ptr [ebp - 0xc] */ 3728 L_3608EF29: 3729 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3730 esi = esi + 1; /* 0x3608EF29: inc esi */ 3731 _flag_k = FK_INC; 3732 /* cmp esi, 0x1Bu */ /* 0x3608EF2A: cmp esi, 0x1b */ 3733 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Bu); 3734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3735 _flag_k = FK_CMP; 3736 MEM32(ebp + (-0xC)) = esi; /* 0x3608EF2D: mov dword ptr [ebp - 0xc], esi */ 3737 RECOMP_BACKEDGE(); 3738 if (CMP_L(_flag_a, _flag_b)) goto L_3608EE4D; /* 0x3608EF30: jl 0x3608ee4d */ 3739 L_3608EF36: 3740 edx = MEM32(ebx); /* 0x3608EF36: mov edx, dword ptr [ebx] */ 3741 PUSH32(esp, 0); /* 0x3608EF38: push 0 */ 3742 ecx = ebx; /* 0x3608EF3A: mov ecx, ebx */ 3743 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3608EF3C: call dword ptr [edx + 0x10] */ 3744 RECOMP_FLAGS_IN(); 3745 /* test LO8(eax), LO8(eax) */ /* 0x3608EF3F: test al, al */ 3746 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3747 _cf = 0; 3748 _flag_k = FK_NARROW(FK_TEST, 24); 3749 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EF5B; /* 0x3608EF41: je 0x3608ef5b */ 3750 L_3608EF43: 3751 eax = MEM32(ebx); /* 0x3608EF43: mov eax, dword ptr [ebx] */ 3752 PUSH32(esp, 2); /* 0x3608EF45: push 2 */ 3753 PUSH32(esp, 0); /* 0x3608EF47: push 0 */ 3754 ecx = ebx; /* 0x3608EF49: mov ecx, ebx */ 3755 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608EF4B: call dword ptr [eax + 4] */ 3756 RECOMP_FLAGS_IN(); 3757 edx = MEM32(ebx); /* 0x3608EF4E: mov edx, dword ptr [ebx] */ 3758 PUSH32(esp, eax); /* 0x3608EF50: push eax */ 3759 PUSH32(esp, 0); /* 0x3608EF51: push 0 */ 3760 ecx = ebx; /* 0x3608EF53: mov ecx, ebx */ 3761 MEM32(ebx + 0x34) = eax; /* 0x3608EF55: mov dword ptr [ebx + 0x34], eax */ 3762 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608EF58: call dword ptr [edx + 8] */ 3763 RECOMP_FLAGS_IN(); 3764 L_3608EF5B: 3765 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3608EF5B: mov al, byte ptr [ebp + 0xb] */ 3766 /* test LO8(eax), LO8(eax) */ /* 0x3608EF5E: test al, al */ 3767 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3768 _cf = 0; 3769 _flag_k = FK_NARROW(FK_TEST, 24); 3770 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EFF9; /* 0x3608EF60: je 0x3608eff9 */ 3771 L_3608EF66: 3772 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3773 esi = 0; /* 0x3608EF66: xor esi, esi */ 3774 _cf = 0; 3775 _flag_k = FK_TEST; 3776 MEM32(ebp + 0x8) = esi; /* 0x3608EF68: mov dword ptr [ebp + 8], esi */ 3777 L_3608EF6B: 3778 PUSH32(esp, esi); /* 0x3608EF6B: push esi */ 3779 ecx = ebx; /* 0x3608EF6C: mov ecx, ebx */ 3780 RECOMP_ICALL(0x360020C0u); /* 0x3608EF6E: call 0x360020c0 */ /* not lifted */ 3781 RECOMP_FLAGS_IN(); 3782 /* test eax, eax */ /* 0x3608EF73: test eax, eax */ 3783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3784 _cf = 0; 3785 _flag_k = FK_TEST; 3786 MEM32(ebp + (-0x4)) = eax; /* 0x3608EF75: mov dword ptr [ebp - 4], eax */ 3787 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EFEC; /* 0x3608EF78: je 0x3608efec */ 3788 L_3608EF7A: 3789 ecx = ebp + (-0x44); /* 0x3608EF7A: lea ecx, [ebp - 0x44] */ 3790 PUSH32(esp, ecx); /* 0x3608EF7D: push ecx */ 3791 ecx = eax; /* 0x3608EF7E: mov ecx, eax */ 3792 RECOMP_ICALL(0x360C02D0u); /* 0x3608EF80: call 0x360c02d0 */ /* not lifted */ 3793 RECOMP_FLAGS_IN(); 3794 edx = MEM32(eax); /* 0x3608EF85: mov edx, dword ptr [eax] */ 3795 ebx = MEM32(eax + 0x4); /* 0x3608EF87: mov ebx, dword ptr [eax + 4] */ 3796 esi = MEM32(eax + 0x8); /* 0x3608EF8A: mov esi, dword ptr [eax + 8] */ 3797 edi = MEM32(eax + 0xC); /* 0x3608EF8D: mov edi, dword ptr [eax + 0xc] */ 3798 ecx = MEM32(ebp + (-0x4)); /* 0x3608EF90: mov ecx, dword ptr [ebp - 4] */ 3799 eax = ebp + (-0x34); /* 0x3608EF93: lea eax, [ebp - 0x34] */ 3800 PUSH32(esp, eax); /* 0x3608EF96: push eax */ 3801 MEM32(ebp + (-0x24)) = edx; /* 0x3608EF97: mov dword ptr [ebp - 0x24], edx */ 3802 RECOMP_ICALL(0x360C0300u); /* 0x3608EF9A: call 0x360c0300 */ /* not lifted */ 3803 RECOMP_FLAGS_IN(); 3804 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608EF9F: cmp esi, dword ptr [eax + 8] */ 3805 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3807 _flag_k = FK_CMP; 3808 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EFE6; /* 0x3608EFA2: je 0x3608efe6 */ 3809 L_3608EFA4: 3810 ecx = MEM32(esi); /* 0x3608EFA4: mov ecx, dword ptr [esi] */ 3811 /* cmp MEM32(ecx), 0xCF2Fu */ /* 0x3608EFA6: cmp dword ptr [ecx], 0xcf2f */ 3812 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(0xCF2Fu); 3813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3814 _flag_k = FK_CMP; 3815 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EFB7; /* 0x3608EFAC: jne 0x3608efb7 */ 3816 L_3608EFAE: 3817 PUSH32(esp, 1); /* 0x3608EFAE: push 1 */ 3818 PUSH32(esp, 0x27u); /* 0x3608EFB0: push 0x27 */ 3819 RECOMP_ICALL(0x360BD280u); /* 0x3608EFB2: call 0x360bd280 */ /* not lifted */ 3820 RECOMP_FLAGS_IN(); 3821 L_3608EFB7: 3822 /* cmp esi, ebx */ /* 0x3608EFB7: cmp esi, ebx */ 3823 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3825 _flag_k = FK_CMP; 3826 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EFD5; /* 0x3608EFB9: je 0x3608efd5 */ 3827 L_3608EFBB: 3828 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3830 esi = esi + 4; /* 0x3608EFBB: add esi, 4 */ 3831 _flag_k = FK_ADD; 3832 /* cmp esi, ebx */ /* 0x3608EFBE: cmp esi, ebx */ 3833 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3835 _flag_k = FK_CMP; 3836 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EFD5; /* 0x3608EFC0: jne 0x3608efd5 */ 3837 L_3608EFC2: 3838 eax = MEM32(edi + 0x4); /* 0x3608EFC2: mov eax, dword ptr [edi + 4] */ 3839 /* test eax, eax */ /* 0x3608EFC5: test eax, eax */ 3840 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3841 _cf = 0; 3842 _flag_k = FK_TEST; 3843 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EFD5; /* 0x3608EFC7: je 0x3608efd5 */ 3844 L_3608EFC9: 3845 esi = MEM32(edi + 0x4); /* 0x3608EFC9: mov esi, dword ptr [edi + 4] */ 3846 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3847 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3848 edi = edi + 4; /* 0x3608EFCC: add edi, 4 */ 3849 _flag_k = FK_ADD; 3850 ebx = esi + 0x1000; /* 0x3608EFCF: lea ebx, [esi + 0x1000] */ 3851 L_3608EFD5: 3852 ecx = ebp + (-0x34); /* 0x3608EFD5: lea ecx, [ebp - 0x34] */ 3853 PUSH32(esp, ecx); /* 0x3608EFD8: push ecx */ 3854 ecx = MEM32(ebp + (-0x4)); /* 0x3608EFD9: mov ecx, dword ptr [ebp - 4] */ 3855 RECOMP_ICALL(0x360C0300u); /* 0x3608EFDC: call 0x360c0300 */ /* not lifted */ 3856 RECOMP_FLAGS_IN(); 3857 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608EFE1: cmp esi, dword ptr [eax + 8] */ 3858 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3860 _flag_k = FK_CMP; 3861 RECOMP_BACKEDGE(); 3862 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EFA4; /* 0x3608EFE4: jne 0x3608efa4 */ 3863 L_3608EFE6: 3864 esi = MEM32(ebp + 0x8); /* 0x3608EFE6: mov esi, dword ptr [ebp + 8] */ 3865 ebx = MEM32(ebp + (-0x8)); /* 0x3608EFE9: mov ebx, dword ptr [ebp - 8] */ 3866 L_3608EFEC: 3867 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3868 esi = esi + 1; /* 0x3608EFEC: inc esi */ 3869 _flag_k = FK_INC; 3870 /* cmp esi, 0x1Bu */ /* 0x3608EFED: cmp esi, 0x1b */ 3871 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1Bu); 3872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3873 _flag_k = FK_CMP; 3874 MEM32(ebp + 0x8) = esi; /* 0x3608EFF0: mov dword ptr [ebp + 8], esi */ 3875 RECOMP_BACKEDGE(); 3876 if (CMP_L(_flag_a, _flag_b)) goto L_3608EF6B; /* 0x3608EFF3: jl 0x3608ef6b */ 3877 L_3608EFF9: 3878 edx = MEM32(ebx); /* 0x3608EFF9: mov edx, dword ptr [ebx] */ 3879 PUSH32(esp, 0x173u); /* 0x3608EFFB: push 0x173 */ 3880 ecx = ebx; /* 0x3608F000: mov ecx, ebx */ 3881 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3608F002: call dword ptr [edx + 0x10] */ 3882 RECOMP_FLAGS_IN(); 3883 /* test LO8(eax), LO8(eax) */ /* 0x3608F005: test al, al */ 3884 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3885 _cf = 0; 3886 _flag_k = FK_NARROW(FK_TEST, 24); 3887 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F0D9; /* 0x3608F007: je 0x3608f0d9 */ 3888 L_3608F00D: 3889 eax = MEM32(ebx); /* 0x3608F00D: mov eax, dword ptr [ebx] */ 3890 PUSH32(esp, 2); /* 0x3608F00F: push 2 */ 3891 PUSH32(esp, 0x173u); /* 0x3608F011: push 0x173 */ 3892 ecx = ebx; /* 0x3608F016: mov ecx, ebx */ 3893 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608F018: call dword ptr [eax + 4] */ 3894 RECOMP_FLAGS_IN(); 3895 /* test eax, eax */ /* 0x3608F01B: test eax, eax */ 3896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3897 _cf = 0; 3898 _flag_k = FK_TEST; 3899 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F0D9; /* 0x3608F01D: je 0x3608f0d9 */ 3900 L_3608F023: 3901 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3902 eax = 0; /* 0x3608F023: xor eax, eax */ 3903 _cf = 0; 3904 _flag_k = FK_TEST; 3905 MEM32(ebp + 0x8) = eax; /* 0x3608F025: mov dword ptr [ebp + 8], eax */ 3906 L_3608F028: 3907 PUSH32(esp, eax); /* 0x3608F028: push eax */ 3908 ecx = ebx; /* 0x3608F029: mov ecx, ebx */ 3909 RECOMP_ICALL(0x360020C0u); /* 0x3608F02B: call 0x360020c0 */ /* not lifted */ 3910 RECOMP_FLAGS_IN(); 3911 edi = eax; /* 0x3608F030: mov edi, eax */ 3912 /* test edi, edi */ /* 0x3608F032: test edi, edi */ 3913 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3914 _cf = 0; 3915 _flag_k = FK_TEST; 3916 MEM32(ebp + (-0x4)) = edi; /* 0x3608F034: mov dword ptr [ebp - 4], edi */ 3917 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F0C4; /* 0x3608F037: je 0x3608f0c4 */ 3918 L_3608F03D: 3919 ecx = ebp + (-0x44); /* 0x3608F03D: lea ecx, [ebp - 0x44] */ 3920 PUSH32(esp, ecx); /* 0x3608F040: push ecx */ 3921 ecx = edi; /* 0x3608F041: mov ecx, edi */ 3922 RECOMP_ICALL(0x360C02D0u); /* 0x3608F043: call 0x360c02d0 */ /* not lifted */ 3923 RECOMP_FLAGS_IN(); 3924 edx = MEM32(eax); /* 0x3608F048: mov edx, dword ptr [eax] */ 3925 ecx = MEM32(eax + 0x4); /* 0x3608F04A: mov ecx, dword ptr [eax + 4] */ 3926 esi = MEM32(eax + 0x8); /* 0x3608F04D: mov esi, dword ptr [eax + 8] */ 3927 ebx = MEM32(eax + 0xC); /* 0x3608F050: mov ebx, dword ptr [eax + 0xc] */ 3928 MEM32(ebp + (-0x24)) = edx; /* 0x3608F053: mov dword ptr [ebp - 0x24], edx */ 3929 edx = ebp + (-0x34); /* 0x3608F056: lea edx, [ebp - 0x34] */ 3930 MEM32(ebp + (-0x20)) = ecx; /* 0x3608F059: mov dword ptr [ebp - 0x20], ecx */ 3931 PUSH32(esp, edx); /* 0x3608F05C: push edx */ 3932 ecx = edi; /* 0x3608F05D: mov ecx, edi */ 3933 RECOMP_ICALL(0x360C0300u); /* 0x3608F05F: call 0x360c0300 */ /* not lifted */ 3934 RECOMP_FLAGS_IN(); 3935 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F064: cmp esi, dword ptr [eax + 8] */ 3936 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 3937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3938 _flag_k = FK_CMP; 3939 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F0C1; /* 0x3608F067: je 0x3608f0c1 */ 3940 L_3608F069: 3941 edi = MEM32(esi); /* 0x3608F069: mov edi, dword ptr [esi] */ 3942 /* cmp MEM32(edi), 0xCF29u */ /* 0x3608F06B: cmp dword ptr [edi], 0xcf29 */ 3943 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0xCF29u); 3944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3945 _flag_k = FK_CMP; 3946 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F08C; /* 0x3608F071: jne 0x3608f08c */ 3947 L_3608F073: 3948 PUSH32(esp, 0x20u); /* 0x3608F073: push 0x20 */ 3949 ecx = edi; /* 0x3608F075: mov ecx, edi */ 3950 RECOMP_ICALL(0x360BD190u); /* 0x3608F077: call 0x360bd190 */ /* not lifted */ 3951 RECOMP_FLAGS_IN(); 3952 /* cmp eax, 3 */ /* 0x3608F07C: cmp eax, 3 */ 3953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 3954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3955 _flag_k = FK_CMP; 3956 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F08C; /* 0x3608F07F: je 0x3608f08c */ 3957 L_3608F081: 3958 PUSH32(esp, 3); /* 0x3608F081: push 3 */ 3959 PUSH32(esp, 0x20u); /* 0x3608F083: push 0x20 */ 3960 ecx = edi; /* 0x3608F085: mov ecx, edi */ 3961 RECOMP_ICALL(0x360BD280u); /* 0x3608F087: call 0x360bd280 */ /* not lifted */ 3962 RECOMP_FLAGS_IN(); 3963 L_3608F08C: 3964 eax = MEM32(ebp + (-0x20)); /* 0x3608F08C: mov eax, dword ptr [ebp - 0x20] */ 3965 /* cmp esi, eax */ /* 0x3608F08F: cmp esi, eax */ 3966 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3968 _flag_k = FK_CMP; 3969 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F0B0; /* 0x3608F091: je 0x3608f0b0 */ 3970 L_3608F093: 3971 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 3972 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3973 esi = esi + 4; /* 0x3608F093: add esi, 4 */ 3974 _flag_k = FK_ADD; 3975 /* cmp esi, eax */ /* 0x3608F096: cmp esi, eax */ 3976 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3978 _flag_k = FK_CMP; 3979 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F0B0; /* 0x3608F098: jne 0x3608f0b0 */ 3980 L_3608F09A: 3981 eax = MEM32(ebx + 0x4); /* 0x3608F09A: mov eax, dword ptr [ebx + 4] */ 3982 /* test eax, eax */ /* 0x3608F09D: test eax, eax */ 3983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3984 _cf = 0; 3985 _flag_k = FK_TEST; 3986 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F0B0; /* 0x3608F09F: je 0x3608f0b0 */ 3987 L_3608F0A1: 3988 esi = MEM32(ebx + 0x4); /* 0x3608F0A1: mov esi, dword ptr [ebx + 4] */ 3989 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3991 ebx = ebx + 4; /* 0x3608F0A4: add ebx, 4 */ 3992 _flag_k = FK_ADD; 3993 eax = esi + 0x1000; /* 0x3608F0A7: lea eax, [esi + 0x1000] */ 3994 MEM32(ebp + (-0x20)) = eax; /* 0x3608F0AD: mov dword ptr [ebp - 0x20], eax */ 3995 L_3608F0B0: 3996 ecx = ebp + (-0x34); /* 0x3608F0B0: lea ecx, [ebp - 0x34] */ 3997 PUSH32(esp, ecx); /* 0x3608F0B3: push ecx */ 3998 ecx = MEM32(ebp + (-0x4)); /* 0x3608F0B4: mov ecx, dword ptr [ebp - 4] */ 3999 RECOMP_ICALL(0x360C0300u); /* 0x3608F0B7: call 0x360c0300 */ /* not lifted */ 4000 RECOMP_FLAGS_IN(); 4001 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F0BC: cmp esi, dword ptr [eax + 8] */ 4002 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4004 _flag_k = FK_CMP; 4005 RECOMP_BACKEDGE(); 4006 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F069; /* 0x3608F0BF: jne 0x3608f069 */ 4007 L_3608F0C1: 4008 ebx = MEM32(ebp + (-0x8)); /* 0x3608F0C1: mov ebx, dword ptr [ebp - 8] */ 4009 L_3608F0C4: 4010 eax = MEM32(ebp + 0x8); /* 0x3608F0C4: mov eax, dword ptr [ebp + 8] */ 4011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4012 eax = eax + 1; /* 0x3608F0C7: inc eax */ 4013 _flag_k = FK_INC; 4014 /* cmp eax, 0x1Bu */ /* 0x3608F0C8: cmp eax, 0x1b */ 4015 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Bu); 4016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4017 _flag_k = FK_CMP; 4018 MEM32(ebp + 0x8) = eax; /* 0x3608F0CB: mov dword ptr [ebp + 8], eax */ 4019 RECOMP_BACKEDGE(); 4020 if (CMP_L(_flag_a, _flag_b)) goto L_3608F028; /* 0x3608F0CE: jl 0x3608f028 */ 4021 L_3608F0D4: 4022 goto L_3608F18A; /* 0x3608F0D4: jmp 0x3608f18a */ 4023 L_3608F0D9: 4024 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4025 eax = 0; /* 0x3608F0D9: xor eax, eax */ 4026 _cf = 0; 4027 _flag_k = FK_TEST; 4028 MEM32(ebp + 0x8) = eax; /* 0x3608F0DB: mov dword ptr [ebp + 8], eax */ 4029 L_3608F0DE: 4030 PUSH32(esp, eax); /* 0x3608F0DE: push eax */ 4031 ecx = ebx; /* 0x3608F0DF: mov ecx, ebx */ 4032 RECOMP_ICALL(0x360020C0u); /* 0x3608F0E1: call 0x360020c0 */ /* not lifted */ 4033 RECOMP_FLAGS_IN(); 4034 edi = eax; /* 0x3608F0E6: mov edi, eax */ 4035 /* test edi, edi */ /* 0x3608F0E8: test edi, edi */ 4036 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4037 _cf = 0; 4038 _flag_k = FK_TEST; 4039 MEM32(ebp + (-0x4)) = edi; /* 0x3608F0EA: mov dword ptr [ebp - 4], edi */ 4040 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F17A; /* 0x3608F0ED: je 0x3608f17a */ 4041 L_3608F0F3: 4042 edx = ebp + (-0x44); /* 0x3608F0F3: lea edx, [ebp - 0x44] */ 4043 PUSH32(esp, edx); /* 0x3608F0F6: push edx */ 4044 ecx = edi; /* 0x3608F0F7: mov ecx, edi */ 4045 RECOMP_ICALL(0x360C02D0u); /* 0x3608F0F9: call 0x360c02d0 */ /* not lifted */ 4046 RECOMP_FLAGS_IN(); 4047 ecx = MEM32(eax); /* 0x3608F0FE: mov ecx, dword ptr [eax] */ 4048 edx = MEM32(eax + 0x4); /* 0x3608F100: mov edx, dword ptr [eax + 4] */ 4049 esi = MEM32(eax + 0x8); /* 0x3608F103: mov esi, dword ptr [eax + 8] */ 4050 ebx = MEM32(eax + 0xC); /* 0x3608F106: mov ebx, dword ptr [eax + 0xc] */ 4051 eax = ebp + (-0x34); /* 0x3608F109: lea eax, [ebp - 0x34] */ 4052 MEM32(ebp + (-0x24)) = ecx; /* 0x3608F10C: mov dword ptr [ebp - 0x24], ecx */ 4053 PUSH32(esp, eax); /* 0x3608F10F: push eax */ 4054 ecx = edi; /* 0x3608F110: mov ecx, edi */ 4055 MEM32(ebp + (-0x20)) = edx; /* 0x3608F112: mov dword ptr [ebp - 0x20], edx */ 4056 RECOMP_ICALL(0x360C0300u); /* 0x3608F115: call 0x360c0300 */ /* not lifted */ 4057 RECOMP_FLAGS_IN(); 4058 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F11A: cmp esi, dword ptr [eax + 8] */ 4059 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4061 _flag_k = FK_CMP; 4062 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F177; /* 0x3608F11D: je 0x3608f177 */ 4063 L_3608F11F: 4064 edi = MEM32(esi); /* 0x3608F11F: mov edi, dword ptr [esi] */ 4065 /* cmp MEM32(edi), 0xCF29u */ /* 0x3608F121: cmp dword ptr [edi], 0xcf29 */ 4066 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0xCF29u); 4067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4068 _flag_k = FK_CMP; 4069 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F142; /* 0x3608F127: jne 0x3608f142 */ 4070 L_3608F129: 4071 PUSH32(esp, 0x20u); /* 0x3608F129: push 0x20 */ 4072 ecx = edi; /* 0x3608F12B: mov ecx, edi */ 4073 RECOMP_ICALL(0x360BD190u); /* 0x3608F12D: call 0x360bd190 */ /* not lifted */ 4074 RECOMP_FLAGS_IN(); 4075 /* cmp eax, 2 */ /* 0x3608F132: cmp eax, 2 */ 4076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 4077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4078 _flag_k = FK_CMP; 4079 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F142; /* 0x3608F135: je 0x3608f142 */ 4080 L_3608F137: 4081 PUSH32(esp, 2); /* 0x3608F137: push 2 */ 4082 PUSH32(esp, 0x20u); /* 0x3608F139: push 0x20 */ 4083 ecx = edi; /* 0x3608F13B: mov ecx, edi */ 4084 RECOMP_ICALL(0x360BD280u); /* 0x3608F13D: call 0x360bd280 */ /* not lifted */ 4085 RECOMP_FLAGS_IN(); 4086 L_3608F142: 4087 eax = MEM32(ebp + (-0x20)); /* 0x3608F142: mov eax, dword ptr [ebp - 0x20] */ 4088 /* cmp esi, eax */ /* 0x3608F145: cmp esi, eax */ 4089 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4091 _flag_k = FK_CMP; 4092 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F166; /* 0x3608F147: je 0x3608f166 */ 4093 L_3608F149: 4094 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 4095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4096 esi = esi + 4; /* 0x3608F149: add esi, 4 */ 4097 _flag_k = FK_ADD; 4098 /* cmp esi, eax */ /* 0x3608F14C: cmp esi, eax */ 4099 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4101 _flag_k = FK_CMP; 4102 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F166; /* 0x3608F14E: jne 0x3608f166 */ 4103 L_3608F150: 4104 eax = MEM32(ebx + 0x4); /* 0x3608F150: mov eax, dword ptr [ebx + 4] */ 4105 /* test eax, eax */ /* 0x3608F153: test eax, eax */ 4106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4107 _cf = 0; 4108 _flag_k = FK_TEST; 4109 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F166; /* 0x3608F155: je 0x3608f166 */ 4110 L_3608F157: 4111 esi = MEM32(ebx + 0x4); /* 0x3608F157: mov esi, dword ptr [ebx + 4] */ 4112 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4114 ebx = ebx + 4; /* 0x3608F15A: add ebx, 4 */ 4115 _flag_k = FK_ADD; 4116 ecx = esi + 0x1000; /* 0x3608F15D: lea ecx, [esi + 0x1000] */ 4117 MEM32(ebp + (-0x20)) = ecx; /* 0x3608F163: mov dword ptr [ebp - 0x20], ecx */ 4118 L_3608F166: 4119 ecx = MEM32(ebp + (-0x4)); /* 0x3608F166: mov ecx, dword ptr [ebp - 4] */ 4120 edx = ebp + (-0x34); /* 0x3608F169: lea edx, [ebp - 0x34] */ 4121 PUSH32(esp, edx); /* 0x3608F16C: push edx */ 4122 RECOMP_ICALL(0x360C0300u); /* 0x3608F16D: call 0x360c0300 */ /* not lifted */ 4123 RECOMP_FLAGS_IN(); 4124 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F172: cmp esi, dword ptr [eax + 8] */ 4125 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4127 _flag_k = FK_CMP; 4128 RECOMP_BACKEDGE(); 4129 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F11F; /* 0x3608F175: jne 0x3608f11f */ 4130 L_3608F177: 4131 ebx = MEM32(ebp + (-0x8)); /* 0x3608F177: mov ebx, dword ptr [ebp - 8] */ 4132 L_3608F17A: 4133 eax = MEM32(ebp + 0x8); /* 0x3608F17A: mov eax, dword ptr [ebp + 8] */ 4134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4135 eax = eax + 1; /* 0x3608F17D: inc eax */ 4136 _flag_k = FK_INC; 4137 /* cmp eax, 0x1Bu */ /* 0x3608F17E: cmp eax, 0x1b */ 4138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Bu); 4139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4140 _flag_k = FK_CMP; 4141 MEM32(ebp + 0x8) = eax; /* 0x3608F181: mov dword ptr [ebp + 8], eax */ 4142 RECOMP_BACKEDGE(); 4143 if (CMP_L(_flag_a, _flag_b)) goto L_3608F0DE; /* 0x3608F184: jl 0x3608f0de */ 4144 L_3608F18A: 4145 PUSH32(esp, 0xAu); /* 0x3608F18A: push 0xa */ 4146 ecx = ebx; /* 0x3608F18C: mov ecx, ebx */ 4147 RECOMP_ICALL(0x36002160u); /* 0x3608F18E: call 0x36002160 */ /* not lifted */ 4148 RECOMP_FLAGS_IN(); 4149 /* test LO8(eax), LO8(eax) */ /* 0x3608F193: test al, al */ 4150 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4151 _cf = 0; 4152 _flag_k = FK_NARROW(FK_TEST, 24); 4153 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F1A8; /* 0x3608F195: je 0x3608f1a8 */ 4154 L_3608F197: 4155 eax = MEM32(ebx); /* 0x3608F197: mov eax, dword ptr [ebx] */ 4156 PUSH32(esp, 0x362EA510u); /* 0x3608F199: push 0x362ea510 */ 4157 PUSH32(esp, 0); /* 0x3608F19E: push 0 */ 4158 PUSH32(esp, ebx); /* 0x3608F1A0: push ebx */ 4159 PUSH32(esp, 0xAu); /* 0x3608F1A1: push 0xa */ 4160 ecx = ebx; /* 0x3608F1A3: mov ecx, ebx */ 4161 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x3608F1A5: call dword ptr [eax + 0x30] */ 4162 RECOMP_FLAGS_IN(); 4163 L_3608F1A8: 4164 eax = MEM32(ebp + (-0x10)); /* 0x3608F1A8: mov eax, dword ptr [ebp - 0x10] */ 4165 /* cmp eax, 0x0001785Eu */ /* 0x3608F1AB: cmp eax, 0x1785e */ 4166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x0001785Eu); 4167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4168 _flag_k = FK_CMP; 4169 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F1B9; /* 0x3608F1B0: je 0x3608f1b9 */ 4170 L_3608F1B2: 4171 /* cmp eax, 0x0001785Du */ /* 0x3608F1B2: cmp eax, 0x1785d */ 4172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x0001785Du); 4173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4174 _flag_k = FK_CMP; 4175 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F1C5; /* 0x3608F1B7: jne 0x3608f1c5 */ 4176 L_3608F1B9: 4177 edx = MEM32(ebx); /* 0x3608F1B9: mov edx, dword ptr [ebx] */ 4178 PUSH32(esp, 0x08000000u); /* 0x3608F1BB: push 0x8000000 */ 4179 ecx = ebx; /* 0x3608F1C0: mov ecx, ebx */ 4180 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3608F1C2: call dword ptr [edx + 0x18] */ 4181 RECOMP_FLAGS_IN(); 4182 L_3608F1C5: 4183 edi = POP32_VAL(esp); /* 0x3608F1C5: pop edi */ 4184 esi = POP32_VAL(esp); /* 0x3608F1C6: pop esi */ 4185 ebx = POP32_VAL(esp); /* 0x3608F1C7: pop ebx */ 4186 esp = ebp; /* 0x3608F1C8: mov esp, ebp */ 4187 ebp = POP32_VAL(esp); /* 0x3608F1CA: pop ebp */ 4188 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F1CB: ret 4 */ 4189 RECOMP_REGS_OUT(); 4190 } 4191 4192 void sub_3608F18A(void) { 4193 int _fpu_cmp = 0; 4194 uint32_t _cf = 0; 4195 int _df = 1; 4196 uint32_t _flag_k = FK_NONE; 4197 uint32_t _flag_a = 0, _flag_b = 0; 4198 uint32_t _itail_tgt = 0; 4199 RECOMP_REGS_LOCALS 4200 RECOMP_ENTER(0x3608F18Au); 4201 4202 L_3608F18A: 4203 PUSH32(esp, 0xAu); /* 0x3608F18A: push 0xa */ 4204 ecx = ebx; /* 0x3608F18C: mov ecx, ebx */ 4205 RECOMP_ICALL(0x36002160u); /* 0x3608F18E: call 0x36002160 */ /* not lifted */ 4206 RECOMP_FLAGS_IN(); 4207 /* test LO8(eax), LO8(eax) */ /* 0x3608F193: test al, al */ 4208 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4209 _cf = 0; 4210 _flag_k = FK_NARROW(FK_TEST, 24); 4211 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F1A8; /* 0x3608F195: je 0x3608f1a8 */ 4212 L_3608F197: 4213 eax = MEM32(ebx); /* 0x3608F197: mov eax, dword ptr [ebx] */ 4214 PUSH32(esp, 0x362EA510u); /* 0x3608F199: push 0x362ea510 */ 4215 PUSH32(esp, 0); /* 0x3608F19E: push 0 */ 4216 PUSH32(esp, ebx); /* 0x3608F1A0: push ebx */ 4217 PUSH32(esp, 0xAu); /* 0x3608F1A1: push 0xa */ 4218 ecx = ebx; /* 0x3608F1A3: mov ecx, ebx */ 4219 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x3608F1A5: call dword ptr [eax + 0x30] */ 4220 RECOMP_FLAGS_IN(); 4221 L_3608F1A8: 4222 eax = MEM32(ebp + (-0x10)); /* 0x3608F1A8: mov eax, dword ptr [ebp - 0x10] */ 4223 /* cmp eax, 0x0001785Eu */ /* 0x3608F1AB: cmp eax, 0x1785e */ 4224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x0001785Eu); 4225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4226 _flag_k = FK_CMP; 4227 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F1B9; /* 0x3608F1B0: je 0x3608f1b9 */ 4228 L_3608F1B2: 4229 /* cmp eax, 0x0001785Du */ /* 0x3608F1B2: cmp eax, 0x1785d */ 4230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x0001785Du); 4231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4232 _flag_k = FK_CMP; 4233 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F1C5; /* 0x3608F1B7: jne 0x3608f1c5 */ 4234 L_3608F1B9: 4235 edx = MEM32(ebx); /* 0x3608F1B9: mov edx, dword ptr [ebx] */ 4236 PUSH32(esp, 0x08000000u); /* 0x3608F1BB: push 0x8000000 */ 4237 ecx = ebx; /* 0x3608F1C0: mov ecx, ebx */ 4238 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3608F1C2: call dword ptr [edx + 0x18] */ 4239 RECOMP_FLAGS_IN(); 4240 L_3608F1C5: 4241 edi = POP32_VAL(esp); /* 0x3608F1C5: pop edi */ 4242 esi = POP32_VAL(esp); /* 0x3608F1C6: pop esi */ 4243 ebx = POP32_VAL(esp); /* 0x3608F1C7: pop ebx */ 4244 esp = ebp; /* 0x3608F1C8: mov esp, ebp */ 4245 ebp = POP32_VAL(esp); /* 0x3608F1CA: pop ebp */ 4246 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F1CB: ret 4 */ 4247 RECOMP_REGS_OUT(); 4248 } 4249 4250 void sub_3608F1D0(void) { 4251 int _fpu_cmp = 0; 4252 uint32_t _cf = 0; 4253 int _df = 1; 4254 uint32_t _flag_k = FK_NONE; 4255 uint32_t _flag_a = 0, _flag_b = 0; 4256 uint32_t _itail_tgt = 0; 4257 RECOMP_REGS_LOCALS 4258 RECOMP_ENTER(0x3608F1D0u); 4259 4260 L_3608F1D0: 4261 PUSH32(esp, ebp); /* 0x3608F1D0: push ebp */ 4262 ebp = esp; /* 0x3608F1D1: mov ebp, esp */ 4263 PUSH32(esp, esi); /* 0x3608F1D3: push esi */ 4264 esi = ecx; /* 0x3608F1D4: mov esi, ecx */ 4265 RECOMP_ICALL(0x3608FD60u); /* 0x3608F1D6: call 0x3608fd60 */ /* not lifted */ 4266 RECOMP_FLAGS_IN(); 4267 eax = MEM32(ebp + 0x8); /* 0x3608F1DB: mov eax, dword ptr [ebp + 8] */ 4268 PUSH32(esp, 0); /* 0x3608F1DE: push 0 */ 4269 PUSH32(esp, esi); /* 0x3608F1E0: push esi */ 4270 PUSH32(esp, eax); /* 0x3608F1E1: push eax */ 4271 ecx = esi; /* 0x3608F1E2: mov ecx, esi */ 4272 RECOMP_ICALL(0x3602E940u); /* 0x3608F1E4: call 0x3602e940 */ /* not lifted */ 4273 RECOMP_FLAGS_IN(); 4274 esi = POP32_VAL(esp); /* 0x3608F1E9: pop esi */ 4275 ebp = POP32_VAL(esp); /* 0x3608F1EA: pop ebp */ 4276 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F1EB: ret 4 */ 4277 RECOMP_REGS_OUT(); 4278 } 4279 4280 void sub_3608F1F0(void) { 4281 int _fpu_cmp = 0; 4282 uint32_t _cf = 0; 4283 int _df = 1; 4284 uint32_t _flag_k = FK_NONE; 4285 uint32_t _flag_a = 0, _flag_b = 0; 4286 uint32_t _itail_tgt = 0; 4287 RECOMP_REGS_LOCALS 4288 RECOMP_ENTER(0x3608F1F0u); 4289 4290 L_3608F1F0: 4291 PUSH32(esp, ebp); /* 0x3608F1F0: push ebp */ 4292 ebp = esp; /* 0x3608F1F1: mov ebp, esp */ 4293 PUSH32(esp, ecx); /* 0x3608F1F3: push ecx */ 4294 PUSH32(esp, ebx); /* 0x3608F1F4: push ebx */ 4295 PUSH32(esp, esi); /* 0x3608F1F5: push esi */ 4296 PUSH32(esp, edi); /* 0x3608F1F6: push edi */ 4297 edi = MEM32(ebp + 0x8); /* 0x3608F1F7: mov edi, dword ptr [ebp + 8] */ 4298 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4299 esi = 0; /* 0x3608F1FA: xor esi, esi */ 4300 _cf = 0; 4301 _flag_k = FK_TEST; 4302 /* cmp edi, esi */ /* 0x3608F1FC: cmp edi, esi */ 4303 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4305 _flag_k = FK_CMP; 4306 ebx = ecx; /* 0x3608F1FE: mov ebx, ecx */ 4307 MEM32(ebp + (-0x4)) = esi; /* 0x3608F200: mov dword ptr [ebp - 4], esi */ 4308 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F210; /* 0x3608F203: jne 0x3608f210 */ 4309 L_3608F205: 4310 edi = POP32_VAL(esp); /* 0x3608F205: pop edi */ 4311 esi = POP32_VAL(esp); /* 0x3608F206: pop esi */ 4312 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4313 eax = 0; /* 0x3608F207: xor eax, eax */ 4314 _cf = 0; 4315 _flag_k = FK_TEST; 4316 ebx = POP32_VAL(esp); /* 0x3608F209: pop ebx */ 4317 esp = ebp; /* 0x3608F20A: mov esp, ebp */ 4318 ebp = POP32_VAL(esp); /* 0x3608F20C: pop ebp */ 4319 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F20D: ret 4 */ 4320 L_3608F210: 4321 SET_LO8(eax, MEM8(edi + 0x1B4)); /* 0x3608F210: mov al, byte ptr [edi + 0x1b4] */ 4322 /* test LO8(eax), LO8(eax) */ /* 0x3608F216: test al, al */ 4323 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4324 _cf = 0; 4325 _flag_k = FK_NARROW(FK_TEST, 24); 4326 MEM32(ebp + 0x8) = esi; /* 0x3608F218: mov dword ptr [ebp + 8], esi */ 4327 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F224; /* 0x3608F21B: je 0x3608f224 */ 4328 L_3608F21D: 4329 MEM32(ebp + 0x8) = 2; /* 0x3608F21D: mov dword ptr [ebp + 8], 2 */ 4330 L_3608F224: 4331 PUSH32(esp, 0xCu); /* 0x3608F224: push 0xc */ 4332 ecx = ebx; /* 0x3608F226: mov ecx, ebx */ 4333 RECOMP_ICALL(0x3608F810u); /* 0x3608F228: call 0x3608f810 */ /* not lifted */ 4334 RECOMP_FLAGS_IN(); 4335 ecx = MEM32(eax + 0x4); /* 0x3608F22D: mov ecx, dword ptr [eax + 4] */ 4336 /* cmp ecx, esi */ /* 0x3608F230: cmp ecx, esi */ 4337 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 4338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4339 _flag_k = FK_CMP; 4340 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F240; /* 0x3608F232: je 0x3608f240 */ 4341 L_3608F234: 4342 eax = MEM32(eax + 0x8); /* 0x3608F234: mov eax, dword ptr [eax + 8] */ 4343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4345 eax = eax - ecx; /* 0x3608F237: sub eax, ecx */ 4346 _flag_k = FK_CMP; 4347 /* test eax, 0xFFFFFFF8u */ /* 0x3608F239: test eax, 0xfffffff8 */ 4348 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u); 4349 _cf = 0; 4350 _flag_k = FK_TEST; 4351 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F25F; /* 0x3608F23E: jne 0x3608f25f */ 4352 L_3608F240: 4353 esi = 1; /* 0x3608F240: mov esi, 1 */ 4354 L_3608F245: 4355 PUSH32(esp, esi); /* 0x3608F245: push esi */ 4356 ecx = ebx; /* 0x3608F246: mov ecx, ebx */ 4357 RECOMP_ICALL(0x3608F8E0u); /* 0x3608F248: call 0x3608f8e0 */ /* not lifted */ 4358 RECOMP_FLAGS_IN(); 4359 /* test LO8(eax), LO8(eax) */ /* 0x3608F24D: test al, al */ 4360 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4361 _cf = 0; 4362 _flag_k = FK_NARROW(FK_TEST, 24); 4363 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F259; /* 0x3608F24F: je 0x3608f259 */ 4364 L_3608F251: 4365 PUSH32(esp, esi); /* 0x3608F251: push esi */ 4366 ecx = ebx; /* 0x3608F252: mov ecx, ebx */ 4367 RECOMP_ICALL(0x3608F810u); /* 0x3608F254: call 0x3608f810 */ /* not lifted */ 4368 RECOMP_FLAGS_IN(); 4369 L_3608F259: 4370 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4371 esi = esi + 1; /* 0x3608F259: inc esi */ 4372 _flag_k = FK_INC; 4373 /* cmp esi, 0x24u */ /* 0x3608F25A: cmp esi, 0x24 */ 4374 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 4375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4376 _flag_k = FK_CMP; 4377 RECOMP_BACKEDGE(); 4378 if (CMP_L(_flag_a, _flag_b)) goto L_3608F245; /* 0x3608F25D: jl 0x3608f245 */ 4379 L_3608F25F: 4380 PUSH32(esp, 0xCu); /* 0x3608F25F: push 0xc */ 4381 ecx = ebx; /* 0x3608F261: mov ecx, ebx */ 4382 RECOMP_ICALL(0x3608F810u); /* 0x3608F263: call 0x3608f810 */ /* not lifted */ 4383 RECOMP_FLAGS_IN(); 4384 esi = MEM32(eax + 0x4); /* 0x3608F268: mov esi, dword ptr [eax + 4] */ 4385 PUSH32(esp, 0xCu); /* 0x3608F26B: push 0xc */ 4386 ecx = ebx; /* 0x3608F26D: mov ecx, ebx */ 4387 RECOMP_ICALL(0x3608F810u); /* 0x3608F26F: call 0x3608f810 */ /* not lifted */ 4388 RECOMP_FLAGS_IN(); 4389 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F274: cmp esi, dword ptr [eax + 8] */ 4390 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4392 _flag_k = FK_CMP; 4393 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F2D5; /* 0x3608F277: je 0x3608f2d5 */ 4394 L_3608F279: 4395 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xE4u); 4396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4397 edi = edi + 0xE4u; /* 0x3608F279: add edi, 0xe4 */ 4398 _flag_k = FK_ADD; 4399 L_3608F27F: 4400 eax = MEM32(ebp + 0x8); /* 0x3608F27F: mov eax, dword ptr [ebp + 8] */ 4401 ecx = MEM32(esi); /* 0x3608F282: mov ecx, dword ptr [esi] */ 4402 edx = MEM32(edi); /* 0x3608F284: mov edx, dword ptr [edi] */ 4403 PUSH32(esp, eax); /* 0x3608F286: push eax */ 4404 PUSH32(esp, ecx); /* 0x3608F287: push ecx */ 4405 ecx = edi; /* 0x3608F288: mov ecx, edi */ 4406 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608F28A: call dword ptr [edx + 4] */ 4407 RECOMP_FLAGS_IN(); 4408 ecx = eax; /* 0x3608F28D: mov ecx, eax */ 4409 ecx = (uint32_t)((int32_t)ecx * (int32_t)MEM32(esi + 0x4)); /* 0x3608F28F: imul ecx, dword ptr [esi + 4] */ 4410 eax = 0x51EB851Fu; /* 0x3608F293: mov eax, 0x51eb851f */ 4411 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3608F298: imul ecx */ 4412 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4413 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4414 ecx = MEM32(ebp + (-0x4)); /* 0x3608F29A: mov ecx, dword ptr [ebp - 4] */ 4415 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3608F29D: sar edx, 5 */ 4416 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4417 edx = (uint32_t)((int32_t)edx >> 5u); 4418 eax = edx; /* 0x3608F2A0: mov eax, edx */ 4419 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3608F2A2: shr eax, 0x1f */ 4420 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4421 eax = eax >> 31u; /* 0x3608F2A2: shr eax, 0x1f */ 4422 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4424 edx = edx + eax; /* 0x3608F2A5: add edx, eax */ 4425 _flag_k = FK_ADD; 4426 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4428 ecx = ecx + edx; /* 0x3608F2A7: add ecx, edx */ 4429 _flag_k = FK_ADD; 4430 MEM32(ebp + (-0x4)) = ecx; /* 0x3608F2A9: mov dword ptr [ebp - 4], ecx */ 4431 PUSH32(esp, 0xCu); /* 0x3608F2AC: push 0xc */ 4432 ecx = ebx; /* 0x3608F2AE: mov ecx, ebx */ 4433 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4435 esi = esi + 8; /* 0x3608F2B0: add esi, 8 */ 4436 _flag_k = FK_ADD; 4437 RECOMP_ICALL(0x3608F810u); /* 0x3608F2B3: call 0x3608f810 */ /* not lifted */ 4438 RECOMP_FLAGS_IN(); 4439 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F2B8: cmp esi, dword ptr [eax + 8] */ 4440 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4442 _flag_k = FK_CMP; 4443 RECOMP_BACKEDGE(); 4444 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F27F; /* 0x3608F2BB: jne 0x3608f27f */ 4445 L_3608F2BD: 4446 eax = MEM32(ebp + (-0x4)); /* 0x3608F2BD: mov eax, dword ptr [ebp - 4] */ 4447 /* test eax, eax */ /* 0x3608F2C0: test eax, eax */ 4448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4449 _cf = 0; 4450 _flag_k = FK_TEST; 4451 if (TEST_LE(_flag_a, _flag_b)) goto L_3608F2D5; /* 0x3608F2C2: jle 0x3608f2d5 */ 4452 L_3608F2C4: 4453 edx = MEM32(edi); /* 0x3608F2C4: mov edx, dword ptr [edi] */ 4454 PUSH32(esp, 0); /* 0x3608F2C6: push 0 */ 4455 PUSH32(esp, 0x114u); /* 0x3608F2C8: push 0x114 */ 4456 ecx = edi; /* 0x3608F2CD: mov ecx, edi */ 4457 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608F2CF: call dword ptr [edx + 4] */ 4458 RECOMP_FLAGS_IN(); 4459 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(eax); 4460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4461 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + eax; /* 0x3608F2D2: add dword ptr [ebp - 4], eax */ 4462 _flag_k = FK_ADD; 4463 L_3608F2D5: 4464 eax = MEM32(ebp + (-0x4)); /* 0x3608F2D5: mov eax, dword ptr [ebp - 4] */ 4465 edi = POP32_VAL(esp); /* 0x3608F2D8: pop edi */ 4466 esi = POP32_VAL(esp); /* 0x3608F2D9: pop esi */ 4467 ebx = POP32_VAL(esp); /* 0x3608F2DA: pop ebx */ 4468 esp = ebp; /* 0x3608F2DB: mov esp, ebp */ 4469 ebp = POP32_VAL(esp); /* 0x3608F2DD: pop ebp */ 4470 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F2DE: ret 4 */ 4471 RECOMP_REGS_OUT(); 4472 } 4473 4474 void sub_3608F2F0(void) { 4475 int _fpu_cmp = 0; 4476 uint32_t _cf = 0; 4477 int _df = 1; 4478 uint32_t _flag_k = FK_NONE; 4479 uint32_t _flag_a = 0, _flag_b = 0; 4480 uint32_t _itail_tgt = 0; 4481 RECOMP_REGS_LOCALS 4482 RECOMP_ENTER(0x3608F2F0u); 4483 4484 L_3608F2F0: 4485 PUSH32(esp, ebp); /* 0x3608F2F0: push ebp */ 4486 ebp = esp; /* 0x3608F2F1: mov ebp, esp */ 4487 PUSH32(esp, ecx); /* 0x3608F2F3: push ecx */ 4488 PUSH32(esp, ebx); /* 0x3608F2F4: push ebx */ 4489 PUSH32(esp, edi); /* 0x3608F2F5: push edi */ 4490 edi = MEM32(ebp + 0x8); /* 0x3608F2F6: mov edi, dword ptr [ebp + 8] */ 4491 /* test edi, edi */ /* 0x3608F2F9: test edi, edi */ 4492 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4493 _cf = 0; 4494 _flag_k = FK_TEST; 4495 ebx = ecx; /* 0x3608F2FB: mov ebx, ecx */ 4496 MEM32(ebp + (-0x4)) = 0; /* 0x3608F2FD: mov dword ptr [ebp - 4], 0 */ 4497 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F310; /* 0x3608F304: jne 0x3608f310 */ 4498 L_3608F306: 4499 edi = POP32_VAL(esp); /* 0x3608F306: pop edi */ 4500 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4501 eax = 0; /* 0x3608F307: xor eax, eax */ 4502 _cf = 0; 4503 _flag_k = FK_TEST; 4504 ebx = POP32_VAL(esp); /* 0x3608F309: pop ebx */ 4505 esp = ebp; /* 0x3608F30A: mov esp, ebp */ 4506 ebp = POP32_VAL(esp); /* 0x3608F30C: pop ebp */ 4507 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F30D: ret 4 */ 4508 L_3608F310: 4509 PUSH32(esp, esi); /* 0x3608F310: push esi */ 4510 PUSH32(esp, 0xDu); /* 0x3608F311: push 0xd */ 4511 ecx = ebx; /* 0x3608F313: mov ecx, ebx */ 4512 RECOMP_ICALL(0x3608F810u); /* 0x3608F315: call 0x3608f810 */ /* not lifted */ 4513 RECOMP_FLAGS_IN(); 4514 ecx = MEM32(eax + 0x4); /* 0x3608F31A: mov ecx, dword ptr [eax + 4] */ 4515 /* test ecx, ecx */ /* 0x3608F31D: test ecx, ecx */ 4516 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4517 _cf = 0; 4518 _flag_k = FK_TEST; 4519 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F32D; /* 0x3608F31F: je 0x3608f32d */ 4520 L_3608F321: 4521 eax = MEM32(eax + 0x8); /* 0x3608F321: mov eax, dword ptr [eax + 8] */ 4522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4524 eax = eax - ecx; /* 0x3608F324: sub eax, ecx */ 4525 _flag_k = FK_CMP; 4526 /* test eax, 0xFFFFFFF8u */ /* 0x3608F326: test eax, 0xfffffff8 */ 4527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u); 4528 _cf = 0; 4529 _flag_k = FK_TEST; 4530 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F34C; /* 0x3608F32B: jne 0x3608f34c */ 4531 L_3608F32D: 4532 esi = 1; /* 0x3608F32D: mov esi, 1 */ 4533 L_3608F332: 4534 PUSH32(esp, esi); /* 0x3608F332: push esi */ 4535 ecx = ebx; /* 0x3608F333: mov ecx, ebx */ 4536 RECOMP_ICALL(0x3608F8E0u); /* 0x3608F335: call 0x3608f8e0 */ /* not lifted */ 4537 RECOMP_FLAGS_IN(); 4538 /* test LO8(eax), LO8(eax) */ /* 0x3608F33A: test al, al */ 4539 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4540 _cf = 0; 4541 _flag_k = FK_NARROW(FK_TEST, 24); 4542 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F346; /* 0x3608F33C: je 0x3608f346 */ 4543 L_3608F33E: 4544 PUSH32(esp, esi); /* 0x3608F33E: push esi */ 4545 ecx = ebx; /* 0x3608F33F: mov ecx, ebx */ 4546 RECOMP_ICALL(0x3608F810u); /* 0x3608F341: call 0x3608f810 */ /* not lifted */ 4547 RECOMP_FLAGS_IN(); 4548 L_3608F346: 4549 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4550 esi = esi + 1; /* 0x3608F346: inc esi */ 4551 _flag_k = FK_INC; 4552 /* cmp esi, 0x24u */ /* 0x3608F347: cmp esi, 0x24 */ 4553 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 4554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4555 _flag_k = FK_CMP; 4556 RECOMP_BACKEDGE(); 4557 if (CMP_L(_flag_a, _flag_b)) goto L_3608F332; /* 0x3608F34A: jl 0x3608f332 */ 4558 L_3608F34C: 4559 SET_LO8(eax, MEM8(edi + 0x1B4)); /* 0x3608F34C: mov al, byte ptr [edi + 0x1b4] */ 4560 /* test LO8(eax), LO8(eax) */ /* 0x3608F352: test al, al */ 4561 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4562 _cf = 0; 4563 _flag_k = FK_NARROW(FK_TEST, 24); 4564 MEM32(ebp + 0x8) = 0; /* 0x3608F354: mov dword ptr [ebp + 8], 0 */ 4565 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F364; /* 0x3608F35B: je 0x3608f364 */ 4566 L_3608F35D: 4567 MEM32(ebp + 0x8) = 2; /* 0x3608F35D: mov dword ptr [ebp + 8], 2 */ 4568 L_3608F364: 4569 PUSH32(esp, 0xDu); /* 0x3608F364: push 0xd */ 4570 ecx = ebx; /* 0x3608F366: mov ecx, ebx */ 4571 RECOMP_ICALL(0x3608F810u); /* 0x3608F368: call 0x3608f810 */ /* not lifted */ 4572 RECOMP_FLAGS_IN(); 4573 esi = MEM32(eax + 0x4); /* 0x3608F36D: mov esi, dword ptr [eax + 4] */ 4574 PUSH32(esp, 0xDu); /* 0x3608F370: push 0xd */ 4575 ecx = ebx; /* 0x3608F372: mov ecx, ebx */ 4576 RECOMP_ICALL(0x3608F810u); /* 0x3608F374: call 0x3608f810 */ /* not lifted */ 4577 RECOMP_FLAGS_IN(); 4578 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F379: cmp esi, dword ptr [eax + 8] */ 4579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4581 _flag_k = FK_CMP; 4582 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F3DA; /* 0x3608F37C: je 0x3608f3da */ 4583 L_3608F37E: 4584 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xE4u); 4585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4586 edi = edi + 0xE4u; /* 0x3608F37E: add edi, 0xe4 */ 4587 _flag_k = FK_ADD; 4588 L_3608F384: 4589 eax = MEM32(ebp + 0x8); /* 0x3608F384: mov eax, dword ptr [ebp + 8] */ 4590 ecx = MEM32(esi); /* 0x3608F387: mov ecx, dword ptr [esi] */ 4591 edx = MEM32(edi); /* 0x3608F389: mov edx, dword ptr [edi] */ 4592 PUSH32(esp, eax); /* 0x3608F38B: push eax */ 4593 PUSH32(esp, ecx); /* 0x3608F38C: push ecx */ 4594 ecx = edi; /* 0x3608F38D: mov ecx, edi */ 4595 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608F38F: call dword ptr [edx + 4] */ 4596 RECOMP_FLAGS_IN(); 4597 ecx = eax; /* 0x3608F392: mov ecx, eax */ 4598 ecx = (uint32_t)((int32_t)ecx * (int32_t)MEM32(esi + 0x4)); /* 0x3608F394: imul ecx, dword ptr [esi + 4] */ 4599 eax = 0x51EB851Fu; /* 0x3608F398: mov eax, 0x51eb851f */ 4600 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3608F39D: imul ecx */ 4601 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 4602 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 4603 ecx = MEM32(ebp + (-0x4)); /* 0x3608F39F: mov ecx, dword ptr [ebp - 4] */ 4604 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x3608F3A2: sar edx, 5 */ 4605 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4606 edx = (uint32_t)((int32_t)edx >> 5u); 4607 eax = edx; /* 0x3608F3A5: mov eax, edx */ 4608 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3608F3A7: shr eax, 0x1f */ 4609 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4610 eax = eax >> 31u; /* 0x3608F3A7: shr eax, 0x1f */ 4611 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4612 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4613 edx = edx + eax; /* 0x3608F3AA: add edx, eax */ 4614 _flag_k = FK_ADD; 4615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4617 ecx = ecx + edx; /* 0x3608F3AC: add ecx, edx */ 4618 _flag_k = FK_ADD; 4619 MEM32(ebp + (-0x4)) = ecx; /* 0x3608F3AE: mov dword ptr [ebp - 4], ecx */ 4620 PUSH32(esp, 0xDu); /* 0x3608F3B1: push 0xd */ 4621 ecx = ebx; /* 0x3608F3B3: mov ecx, ebx */ 4622 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4624 esi = esi + 8; /* 0x3608F3B5: add esi, 8 */ 4625 _flag_k = FK_ADD; 4626 RECOMP_ICALL(0x3608F810u); /* 0x3608F3B8: call 0x3608f810 */ /* not lifted */ 4627 RECOMP_FLAGS_IN(); 4628 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608F3BD: cmp esi, dword ptr [eax + 8] */ 4629 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 4630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4631 _flag_k = FK_CMP; 4632 RECOMP_BACKEDGE(); 4633 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F384; /* 0x3608F3C0: jne 0x3608f384 */ 4634 L_3608F3C2: 4635 eax = MEM32(ebp + (-0x4)); /* 0x3608F3C2: mov eax, dword ptr [ebp - 4] */ 4636 /* test eax, eax */ /* 0x3608F3C5: test eax, eax */ 4637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4638 _cf = 0; 4639 _flag_k = FK_TEST; 4640 if (TEST_LE(_flag_a, _flag_b)) goto L_3608F3DA; /* 0x3608F3C7: jle 0x3608f3da */ 4641 L_3608F3C9: 4642 edx = MEM32(edi); /* 0x3608F3C9: mov edx, dword ptr [edi] */ 4643 PUSH32(esp, 0); /* 0x3608F3CB: push 0 */ 4644 PUSH32(esp, 0x115u); /* 0x3608F3CD: push 0x115 */ 4645 ecx = edi; /* 0x3608F3D2: mov ecx, edi */ 4646 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608F3D4: call dword ptr [edx + 4] */ 4647 RECOMP_FLAGS_IN(); 4648 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(eax); 4649 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4650 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + eax; /* 0x3608F3D7: add dword ptr [ebp - 4], eax */ 4651 _flag_k = FK_ADD; 4652 L_3608F3DA: 4653 eax = MEM32(ebp + (-0x4)); /* 0x3608F3DA: mov eax, dword ptr [ebp - 4] */ 4654 esi = POP32_VAL(esp); /* 0x3608F3DD: pop esi */ 4655 edi = POP32_VAL(esp); /* 0x3608F3DE: pop edi */ 4656 ebx = POP32_VAL(esp); /* 0x3608F3DF: pop ebx */ 4657 esp = ebp; /* 0x3608F3E0: mov esp, ebp */ 4658 ebp = POP32_VAL(esp); /* 0x3608F3E2: pop ebp */ 4659 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F3E3: ret 4 */ 4660 RECOMP_REGS_OUT(); 4661 } 4662 4663 void sub_3608F3F0(void) { 4664 int _fpu_cmp = 0; 4665 uint32_t _cf = 0; 4666 int _df = 1; 4667 uint32_t _flag_k = FK_NONE; 4668 uint32_t _flag_a = 0, _flag_b = 0; 4669 uint32_t _itail_tgt = 0; 4670 RECOMP_REGS_LOCALS 4671 RECOMP_ENTER(0x3608F3F0u); 4672 4673 L_3608F3F0: 4674 PUSH32(esp, ebp); /* 0x3608F3F0: push ebp */ 4675 ebp = esp; /* 0x3608F3F1: mov ebp, esp */ 4676 PUSH32(esp, esi); /* 0x3608F3F3: push esi */ 4677 esi = ecx; /* 0x3608F3F4: mov esi, ecx */ 4678 ecx = MEM32(ebp + 0x8); /* 0x3608F3F6: mov ecx, dword ptr [ebp + 8] */ 4679 eax = MEM32(esi); /* 0x3608F3F9: mov eax, dword ptr [esi] */ 4680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4682 ecx = ecx + 4; /* 0x3608F3FB: add ecx, 4 */ 4683 _flag_k = FK_ADD; 4684 PUSH32(esp, ecx); /* 0x3608F3FE: push ecx */ 4685 ecx = esi; /* 0x3608F3FF: mov ecx, esi */ 4686 RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x3608F401: call dword ptr [eax + 0x24] */ 4687 RECOMP_FLAGS_IN(); 4688 eax = MEM32(ebp + 0xC); /* 0x3608F404: mov eax, dword ptr [ebp + 0xc] */ 4689 /* test eax, eax */ /* 0x3608F407: test eax, eax */ 4690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4691 _cf = 0; 4692 _flag_k = FK_TEST; 4693 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F412; /* 0x3608F409: je 0x3608f412 */ 4694 L_3608F40B: 4695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 4696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4697 eax = eax + 0xE4u; /* 0x3608F40B: add eax, 0xe4 */ 4698 _flag_k = FK_ADD; 4699 goto L_3608F414; /* 0x3608F410: jmp 0x3608f414 */ 4700 L_3608F412: 4701 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4702 eax = 0; /* 0x3608F412: xor eax, eax */ 4703 _cf = 0; 4704 _flag_k = FK_TEST; 4705 L_3608F414: 4706 edx = MEM32(esi); /* 0x3608F414: mov edx, dword ptr [esi] */ 4707 PUSH32(esp, 0x362EA510u); /* 0x3608F416: push 0x362ea510 */ 4708 PUSH32(esp, 0); /* 0x3608F41B: push 0 */ 4709 PUSH32(esp, eax); /* 0x3608F41D: push eax */ 4710 PUSH32(esp, 0); /* 0x3608F41E: push 0 */ 4711 ecx = esi; /* 0x3608F420: mov ecx, esi */ 4712 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x3608F422: call dword ptr [edx + 0x30] */ 4713 RECOMP_FLAGS_IN(); 4714 SET_LO8(eax, 1); /* 0x3608F425: mov al, 1 */ 4715 esi = POP32_VAL(esp); /* 0x3608F427: pop esi */ 4716 ebp = POP32_VAL(esp); /* 0x3608F428: pop ebp */ 4717 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608F429: ret 8 */ 4718 RECOMP_REGS_OUT(); 4719 } 4720 4721 void sub_3608F430(void) { 4722 int _fpu_cmp = 0; 4723 uint32_t _cf = 0; 4724 int _df = 1; 4725 uint32_t _flag_k = FK_NONE; 4726 uint32_t _flag_a = 0, _flag_b = 0; 4727 uint32_t _itail_tgt = 0; 4728 RECOMP_REGS_LOCALS 4729 RECOMP_ENTER(0x3608F430u); 4730 4731 L_3608F430: 4732 PUSH32(esp, ebp); /* 0x3608F430: push ebp */ 4733 ebp = esp; /* 0x3608F431: mov ebp, esp */ 4734 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4736 esp = esp - 8; /* 0x3608F433: sub esp, 8 */ 4737 _flag_k = FK_CMP; 4738 eax = MEM32(0x3616FF74); /* 0x3608F436: mov eax, dword ptr [0x3616ff74] */ 4739 PUSH32(esp, ebx); /* 0x3608F43B: push ebx */ 4740 ebx = MEM32(eax); /* 0x3608F43C: mov ebx, dword ptr [eax] */ 4741 PUSH32(esp, esi); /* 0x3608F43E: push esi */ 4742 PUSH32(esp, edi); /* 0x3608F43F: push edi */ 4743 esi = ecx; /* 0x3608F440: mov esi, ecx */ 4744 edx = MEM32(esi); /* 0x3608F442: mov edx, dword ptr [esi] */ 4745 PUSH32(esp, 2); /* 0x3608F444: push 2 */ 4746 PUSH32(esp, 0x17u); /* 0x3608F446: push 0x17 */ 4747 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608F448: call dword ptr [edx + 4] */ 4748 RECOMP_FLAGS_IN(); 4749 /* test eax, eax */ /* 0x3608F44B: test eax, eax */ 4750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4751 _cf = 0; 4752 _flag_k = FK_TEST; 4753 MEM32(ebp + (-0x8)) = 0x000F4254u; /* 0x3608F44D: mov dword ptr [ebp - 8], 0xf4254 */ 4754 MEM32(ebp + (-0x4)) = eax; /* 0x3608F454: mov dword ptr [ebp - 4], eax */ 4755 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F462; /* 0x3608F457: jne 0x3608f462 */ 4756 L_3608F459: 4757 edi = POP32_VAL(esp); /* 0x3608F459: pop edi */ 4758 esi = POP32_VAL(esp); /* 0x3608F45A: pop esi */ 4759 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 4760 SET_LO8(eax, 0); /* 0x3608F45B: xor al, al */ 4761 _cf = 0; 4762 _flag_k = FK_NARROW(FK_TEST, 24); 4763 ebx = POP32_VAL(esp); /* 0x3608F45D: pop ebx */ 4764 esp = ebp; /* 0x3608F45E: mov esp, ebp */ 4765 ebp = POP32_VAL(esp); /* 0x3608F460: pop ebp */ 4766 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608F461: ret */ 4767 L_3608F462: 4768 RECOMP_ICALL(0x3603F480u); /* 0x3608F462: call 0x3603f480 */ /* not lifted */ 4769 RECOMP_FLAGS_IN(); 4770 ecx = eax; /* 0x3608F467: mov ecx, eax */ 4771 RECOMP_ICALL(0x360E2940u); /* 0x3608F469: call 0x360e2940 */ /* not lifted */ 4772 RECOMP_FLAGS_IN(); 4773 eax = ebp + (-0x8); /* 0x3608F46E: lea eax, [ebp - 8] */ 4774 PUSH32(esp, eax); /* 0x3608F471: push eax */ 4775 RECOMP_ICALL(0x3603F480u); /* 0x3608F472: call 0x3603f480 */ /* not lifted */ 4776 RECOMP_FLAGS_IN(); 4777 ecx = eax; /* 0x3608F477: mov ecx, eax */ 4778 RECOMP_ICALL(0x3603F560u); /* 0x3608F479: call 0x3603f560 */ /* not lifted */ 4779 RECOMP_FLAGS_IN(); 4780 edi = eax; /* 0x3608F47E: mov edi, eax */ 4781 /* test edi, edi */ /* 0x3608F480: test edi, edi */ 4782 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4783 _cf = 0; 4784 _flag_k = FK_TEST; 4785 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F4AC; /* 0x3608F482: jne 0x3608f4ac */ 4786 L_3608F484: 4787 ecx = MEM32(ebx + 0x60); /* 0x3608F484: mov ecx, dword ptr [ebx + 0x60] */ 4788 /* test ecx, ecx */ /* 0x3608F487: test ecx, ecx */ 4789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4790 _cf = 0; 4791 _flag_k = FK_TEST; 4792 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F4B7; /* 0x3608F489: je 0x3608f4b7 */ 4793 L_3608F48B: 4794 edx = ebp + (-0x8); /* 0x3608F48B: lea edx, [ebp - 8] */ 4795 PUSH32(esp, edx); /* 0x3608F48E: push edx */ 4796 RECOMP_ICALL(MEM32(0x3616FB18)); /* 0x3608F48F: call dword ptr [0x3616fb18] */ 4797 RECOMP_FLAGS_IN(); 4798 edi = eax; /* 0x3608F495: mov edi, eax */ 4799 /* test edi, edi */ /* 0x3608F497: test edi, edi */ 4800 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4801 _cf = 0; 4802 _flag_k = FK_TEST; 4803 RECOMP_BACKEDGE(); 4804 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F459; /* 0x3608F499: je 0x3608f459 */ 4805 L_3608F49B: 4806 eax = ebp + (-0x8); /* 0x3608F49B: lea eax, [ebp - 8] */ 4807 PUSH32(esp, edi); /* 0x3608F49E: push edi */ 4808 PUSH32(esp, eax); /* 0x3608F49F: push eax */ 4809 RECOMP_ICALL(0x3603F480u); /* 0x3608F4A0: call 0x3603f480 */ /* not lifted */ 4810 RECOMP_FLAGS_IN(); 4811 ecx = eax; /* 0x3608F4A5: mov ecx, eax */ 4812 RECOMP_ICALL(0x3603F5F0u); /* 0x3608F4A7: call 0x3603f5f0 */ /* not lifted */ 4813 RECOMP_FLAGS_IN(); 4814 L_3608F4AC: 4815 edx = MEM32(esi); /* 0x3608F4AC: mov edx, dword ptr [esi] */ 4816 PUSH32(esp, edi); /* 0x3608F4AE: push edi */ 4817 ecx = esi; /* 0x3608F4AF: mov ecx, esi */ 4818 RECOMP_ICALL(MEM32(edx + 0x8C)); /* 0x3608F4B1: call dword ptr [edx + 0x8c] */ 4819 RECOMP_FLAGS_IN(); 4820 L_3608F4B7: 4821 eax = MEM32(esi); /* 0x3608F4B7: mov eax, dword ptr [esi] */ 4822 PUSH32(esp, 2); /* 0x3608F4B9: push 2 */ 4823 PUSH32(esp, 0x126u); /* 0x3608F4BB: push 0x126 */ 4824 ecx = esi; /* 0x3608F4C0: mov ecx, esi */ 4825 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608F4C2: call dword ptr [eax + 4] */ 4826 RECOMP_FLAGS_IN(); 4827 /* test eax, eax */ /* 0x3608F4C5: test eax, eax */ 4828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4829 _cf = 0; 4830 _flag_k = FK_TEST; 4831 if (TEST_NS(_flag_a, _flag_b)) goto L_3608F4E4; /* 0x3608F4C7: jge 0x3608f4e4 */ 4832 L_3608F4C9: 4833 edi = MEM32(esi); /* 0x3608F4C9: mov edi, dword ptr [esi] */ 4834 PUSH32(esp, 2); /* 0x3608F4CB: push 2 */ 4835 PUSH32(esp, 0x126u); /* 0x3608F4CD: push 0x126 */ 4836 ecx = esi; /* 0x3608F4D2: mov ecx, esi */ 4837 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x3608F4D4: call dword ptr [edi + 4] */ 4838 RECOMP_FLAGS_IN(); 4839 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4840 _cf = (eax) != 0; 4841 eax = (uint32_t)(-(int32_t)eax); /* 0x3608F4D7: neg eax */ 4842 _flag_k = FK_CMP; 4843 PUSH32(esp, eax); /* 0x3608F4D9: push eax */ 4844 PUSH32(esp, 0x126u); /* 0x3608F4DA: push 0x126 */ 4845 ecx = esi; /* 0x3608F4DF: mov ecx, esi */ 4846 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x3608F4E1: call dword ptr [edi + 8] */ 4847 RECOMP_FLAGS_IN(); 4848 L_3608F4E4: 4849 edx = MEM32(esi); /* 0x3608F4E4: mov edx, dword ptr [esi] */ 4850 PUSH32(esp, 2); /* 0x3608F4E6: push 2 */ 4851 PUSH32(esp, 0xD2u); /* 0x3608F4E8: push 0xd2 */ 4852 ecx = esi; /* 0x3608F4ED: mov ecx, esi */ 4853 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608F4EF: call dword ptr [edx + 4] */ 4854 RECOMP_FLAGS_IN(); 4855 /* test eax, eax */ /* 0x3608F4F2: test eax, eax */ 4856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4857 _cf = 0; 4858 _flag_k = FK_TEST; 4859 if (TEST_NS(_flag_a, _flag_b)) goto L_3608F511; /* 0x3608F4F4: jge 0x3608f511 */ 4860 L_3608F4F6: 4861 edi = MEM32(esi); /* 0x3608F4F6: mov edi, dword ptr [esi] */ 4862 PUSH32(esp, 2); /* 0x3608F4F8: push 2 */ 4863 PUSH32(esp, 0xD2u); /* 0x3608F4FA: push 0xd2 */ 4864 ecx = esi; /* 0x3608F4FF: mov ecx, esi */ 4865 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x3608F501: call dword ptr [edi + 4] */ 4866 RECOMP_FLAGS_IN(); 4867 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4868 _cf = (eax) != 0; 4869 eax = (uint32_t)(-(int32_t)eax); /* 0x3608F504: neg eax */ 4870 _flag_k = FK_CMP; 4871 PUSH32(esp, eax); /* 0x3608F506: push eax */ 4872 PUSH32(esp, 0xD2u); /* 0x3608F507: push 0xd2 */ 4873 ecx = esi; /* 0x3608F50C: mov ecx, esi */ 4874 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x3608F50E: call dword ptr [edi + 8] */ 4875 RECOMP_FLAGS_IN(); 4876 L_3608F511: 4877 eax = MEM32(esi); /* 0x3608F511: mov eax, dword ptr [esi] */ 4878 PUSH32(esp, 2); /* 0x3608F513: push 2 */ 4879 PUSH32(esp, 0xD3u); /* 0x3608F515: push 0xd3 */ 4880 ecx = esi; /* 0x3608F51A: mov ecx, esi */ 4881 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608F51C: call dword ptr [eax + 4] */ 4882 RECOMP_FLAGS_IN(); 4883 /* test eax, eax */ /* 0x3608F51F: test eax, eax */ 4884 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4885 _cf = 0; 4886 _flag_k = FK_TEST; 4887 if (TEST_NS(_flag_a, _flag_b)) goto L_3608F53E; /* 0x3608F521: jge 0x3608f53e */ 4888 L_3608F523: 4889 edi = MEM32(esi); /* 0x3608F523: mov edi, dword ptr [esi] */ 4890 PUSH32(esp, 2); /* 0x3608F525: push 2 */ 4891 PUSH32(esp, 0xD3u); /* 0x3608F527: push 0xd3 */ 4892 ecx = esi; /* 0x3608F52C: mov ecx, esi */ 4893 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x3608F52E: call dword ptr [edi + 4] */ 4894 RECOMP_FLAGS_IN(); 4895 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 4896 _cf = (eax) != 0; 4897 eax = (uint32_t)(-(int32_t)eax); /* 0x3608F531: neg eax */ 4898 _flag_k = FK_CMP; 4899 PUSH32(esp, eax); /* 0x3608F533: push eax */ 4900 PUSH32(esp, 0xD3u); /* 0x3608F534: push 0xd3 */ 4901 ecx = esi; /* 0x3608F539: mov ecx, esi */ 4902 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x3608F53B: call dword ptr [edi + 8] */ 4903 RECOMP_FLAGS_IN(); 4904 L_3608F53E: 4905 eax = MEM32(esi + 0x70); /* 0x3608F53E: mov eax, dword ptr [esi + 0x70] */ 4906 /* cmp eax, 0xC73Du */ /* 0x3608F541: cmp eax, 0xc73d */ 4907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC73Du); 4908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4909 _flag_k = FK_CMP; 4910 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F574; /* 0x3608F546: je 0x3608f574 */ 4911 L_3608F548: 4912 /* cmp eax, 0xC74Au */ /* 0x3608F548: cmp eax, 0xc74a */ 4913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC74Au); 4914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4915 _flag_k = FK_CMP; 4916 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F574; /* 0x3608F54D: je 0x3608f574 */ 4917 L_3608F54F: 4918 /* cmp eax, 0xC74Eu */ /* 0x3608F54F: cmp eax, 0xc74e */ 4919 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC74Eu); 4920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4921 _flag_k = FK_CMP; 4922 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F574; /* 0x3608F554: je 0x3608f574 */ 4923 L_3608F556: 4924 edx = MEM32(esi + 0x34); /* 0x3608F556: mov edx, dword ptr [esi + 0x34] */ 4925 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFF7u); 4926 edx = edx & 0xFFFFFFF7u; /* 0x3608F559: and edx, 0xfffffff7 */ 4927 _cf = 0; 4928 _flag_k = FK_TEST; 4929 eax = edx; /* 0x3608F55C: mov eax, edx */ 4930 PUSH32(esp, eax); /* 0x3608F55E: push eax */ 4931 MEM32(esi + 0x34) = edx; /* 0x3608F55F: mov dword ptr [esi + 0x34], edx */ 4932 edx = MEM32(esi); /* 0x3608F562: mov edx, dword ptr [esi] */ 4933 PUSH32(esp, 0); /* 0x3608F564: push 0 */ 4934 ecx = esi; /* 0x3608F566: mov ecx, esi */ 4935 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608F568: call dword ptr [edx + 8] */ 4936 RECOMP_FLAGS_IN(); 4937 edi = POP32_VAL(esp); /* 0x3608F56B: pop edi */ 4938 esi = POP32_VAL(esp); /* 0x3608F56C: pop esi */ 4939 SET_LO8(eax, 1); /* 0x3608F56D: mov al, 1 */ 4940 ebx = POP32_VAL(esp); /* 0x3608F56F: pop ebx */ 4941 esp = ebp; /* 0x3608F570: mov esp, ebp */ 4942 ebp = POP32_VAL(esp); /* 0x3608F572: pop ebp */ 4943 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608F573: ret */ 4944 L_3608F574: 4945 eax = MEM32(esi); /* 0x3608F574: mov eax, dword ptr [esi] */ 4946 PUSH32(esp, 8); /* 0x3608F576: push 8 */ 4947 ecx = esi; /* 0x3608F578: mov ecx, esi */ 4948 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x3608F57A: call dword ptr [eax + 0x18] */ 4949 RECOMP_FLAGS_IN(); 4950 edi = POP32_VAL(esp); /* 0x3608F57D: pop edi */ 4951 esi = POP32_VAL(esp); /* 0x3608F57E: pop esi */ 4952 SET_LO8(eax, 1); /* 0x3608F57F: mov al, 1 */ 4953 ebx = POP32_VAL(esp); /* 0x3608F581: pop ebx */ 4954 esp = ebp; /* 0x3608F582: mov esp, ebp */ 4955 ebp = POP32_VAL(esp); /* 0x3608F584: pop ebp */ 4956 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608F585: ret */ 4957 RECOMP_REGS_OUT(); 4958 } 4959 4960 void sub_3608F590(void) { 4961 int _fpu_cmp = 0; 4962 uint32_t _cf = 0; 4963 int _df = 1; 4964 uint32_t _flag_k = FK_NONE; 4965 uint32_t _flag_a = 0, _flag_b = 0; 4966 uint32_t _itail_tgt = 0; 4967 RECOMP_REGS_LOCALS 4968 RECOMP_ENTER(0x3608F590u); 4969 4970 L_3608F590: 4971 PUSH32(esp, ebp); /* 0x3608F590: push ebp */ 4972 ebp = esp; /* 0x3608F591: mov ebp, esp */ 4973 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608F593: push -1 */ 4974 PUSH32(esp, 0x361661C8u); /* 0x3608F595: push 0x361661c8 */ 4975 eax = MEM32(FS_BASE + (0)); /* 0x3608F59A: mov eax, dword ptr fs:[0] */ 4976 PUSH32(esp, eax); /* 0x3608F5A0: push eax */ 4977 MEM32(FS_BASE + (0)) = esp; /* 0x3608F5A1: mov dword ptr fs:[0], esp */ 4978 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4980 esp = esp - 0xCu; /* 0x3608F5A8: sub esp, 0xc */ 4981 _flag_k = FK_CMP; 4982 PUSH32(esp, ebx); /* 0x3608F5AB: push ebx */ 4983 PUSH32(esp, esi); /* 0x3608F5AC: push esi */ 4984 PUSH32(esp, edi); /* 0x3608F5AD: push edi */ 4985 edi = MEM32(ebp + 0x8); /* 0x3608F5AE: mov edi, dword ptr [ebp + 8] */ 4986 esi = ecx; /* 0x3608F5B1: mov esi, ecx */ 4987 PUSH32(esp, edi); /* 0x3608F5B3: push edi */ 4988 RECOMP_ICALL(0x3608F810u); /* 0x3608F5B4: call 0x3608f810 */ /* not lifted */ 4989 RECOMP_FLAGS_IN(); 4990 ebx = MEM32(eax + 0x8); /* 0x3608F5B9: mov ebx, dword ptr [eax + 8] */ 4991 PUSH32(esp, edi); /* 0x3608F5BC: push edi */ 4992 ecx = esi; /* 0x3608F5BD: mov ecx, esi */ 4993 RECOMP_ICALL(0x3608F810u); /* 0x3608F5BF: call 0x3608f810 */ /* not lifted */ 4994 RECOMP_FLAGS_IN(); 4995 eax = MEM32(eax + 0x4); /* 0x3608F5C4: mov eax, dword ptr [eax + 4] */ 4996 /* cmp eax, ebx */ /* 0x3608F5C7: cmp eax, ebx */ 4997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4999 _flag_k = FK_CMP; 5000 ecx = MEM32(ebp + 0xC); /* 0x3608F5C9: mov ecx, dword ptr [ebp + 0xc] */ 5001 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F5D9; /* 0x3608F5CC: je 0x3608f5d9 */ 5002 L_3608F5CE: 5003 /* cmp MEM32(eax), ecx */ /* 0x3608F5CE: cmp dword ptr [eax], ecx */ 5004 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ecx); 5005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5006 _flag_k = FK_CMP; 5007 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F632; /* 0x3608F5D0: je 0x3608f632 */ 5008 L_3608F5D2: 5009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5011 eax = eax + 8; /* 0x3608F5D2: add eax, 8 */ 5012 _flag_k = FK_ADD; 5013 /* cmp eax, ebx */ /* 0x3608F5D5: cmp eax, ebx */ 5014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5016 _flag_k = FK_CMP; 5017 RECOMP_BACKEDGE(); 5018 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F5CE; /* 0x3608F5D7: jne 0x3608f5ce */ 5019 L_3608F5D9: 5020 edx = MEM32(ebp + 0x10); /* 0x3608F5D9: mov edx, dword ptr [ebp + 0x10] */ 5021 PUSH32(esp, edx); /* 0x3608F5DC: push edx */ 5022 PUSH32(esp, ecx); /* 0x3608F5DD: push ecx */ 5023 ecx = ebp + (-0x18); /* 0x3608F5DE: lea ecx, [ebp - 0x18] */ 5024 RECOMP_ICALL(0x3602F280u); /* 0x3608F5E1: call 0x3602f280 */ /* not lifted */ 5025 RECOMP_FLAGS_IN(); 5026 ebx = eax; /* 0x3608F5E6: mov ebx, eax */ 5027 MEM32(ebp + 0x8) = ebx; /* 0x3608F5E8: mov dword ptr [ebp + 8], ebx */ 5028 PUSH32(esp, edi); /* 0x3608F5EB: push edi */ 5029 ecx = esi; /* 0x3608F5EC: mov ecx, esi */ 5030 MEM32(ebp + (-0x4)) = 0; /* 0x3608F5EE: mov dword ptr [ebp - 4], 0 */ 5031 RECOMP_ICALL(0x3608F810u); /* 0x3608F5F5: call 0x3608f810 */ /* not lifted */ 5032 RECOMP_FLAGS_IN(); 5033 esi = eax; /* 0x3608F5FA: mov esi, eax */ 5034 eax = MEM32(esi + 0x8); /* 0x3608F5FC: mov eax, dword ptr [esi + 8] */ 5035 ecx = MEM32(esi + 0xC); /* 0x3608F5FF: mov ecx, dword ptr [esi + 0xc] */ 5036 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5038 ecx = ecx - eax; /* 0x3608F602: sub ecx, eax */ 5039 _flag_k = FK_CMP; 5040 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3608F604: sar ecx, 3 */ 5041 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5042 ecx = (uint32_t)((int32_t)ecx >> 3u); 5043 /* cmp ecx, 1 */ /* 0x3608F607: cmp ecx, 1 */ 5044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5046 _flag_k = FK_CMP; 5047 edi = eax; /* 0x3608F60A: mov edi, eax */ 5048 if (CMP_AE(_flag_a, _flag_b)) goto L_3608F70A; /* 0x3608F60C: jae 0x3608f70a */ 5049 L_3608F612: 5050 edx = MEM32(esi + 0x4); /* 0x3608F612: mov edx, dword ptr [esi + 4] */ 5051 /* test edx, edx */ /* 0x3608F615: test edx, edx */ 5052 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5053 _cf = 0; 5054 _flag_k = FK_TEST; 5055 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F625; /* 0x3608F617: je 0x3608f625 */ 5056 L_3608F619: 5057 ecx = eax; /* 0x3608F619: mov ecx, eax */ 5058 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5060 ecx = ecx - edx; /* 0x3608F61B: sub ecx, edx */ 5061 _flag_k = FK_CMP; 5062 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3608F61D: sar ecx, 3 */ 5063 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5064 ecx = (uint32_t)((int32_t)ecx >> 3u); 5065 /* cmp ecx, 1 */ /* 0x3608F620: cmp ecx, 1 */ 5066 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5068 _flag_k = FK_CMP; 5069 if (CMP_A(_flag_a, _flag_b)) goto L_3608F62A; /* 0x3608F623: ja 0x3608f62a */ 5070 L_3608F625: 5071 ecx = 1; /* 0x3608F625: mov ecx, 1 */ 5072 L_3608F62A: 5073 /* test edx, edx */ /* 0x3608F62A: test edx, edx */ 5074 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5075 _cf = 0; 5076 _flag_k = FK_TEST; 5077 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F64B; /* 0x3608F62C: jne 0x3608f64b */ 5078 L_3608F62E: 5079 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5080 eax = 0; /* 0x3608F62E: xor eax, eax */ 5081 _cf = 0; 5082 _flag_k = FK_TEST; 5083 goto L_3608F650; /* 0x3608F630: jmp 0x3608f650 */ 5084 L_3608F632: 5085 ecx = MEM32(ebp + 0x10); /* 0x3608F632: mov ecx, dword ptr [ebp + 0x10] */ 5086 edi = POP32_VAL(esp); /* 0x3608F635: pop edi */ 5087 esi = POP32_VAL(esp); /* 0x3608F636: pop esi */ 5088 MEM32(eax + 0x4) = ecx; /* 0x3608F637: mov dword ptr [eax + 4], ecx */ 5089 ebx = POP32_VAL(esp); /* 0x3608F63A: pop ebx */ 5090 ecx = MEM32(ebp + (-0xC)); /* 0x3608F63B: mov ecx, dword ptr [ebp - 0xc] */ 5091 MEM32(FS_BASE + (0)) = ecx; /* 0x3608F63E: mov dword ptr fs:[0], ecx */ 5092 esp = ebp; /* 0x3608F645: mov esp, ebp */ 5093 ebp = POP32_VAL(esp); /* 0x3608F647: pop ebp */ 5094 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608F648: ret 0xc */ 5095 L_3608F64B: 5096 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5098 eax = eax - edx; /* 0x3608F64B: sub eax, edx */ 5099 _flag_k = FK_CMP; 5100 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3608F64D: sar eax, 3 */ 5101 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5102 eax = (uint32_t)((int32_t)eax >> 3u); 5103 L_3608F650: 5104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5106 eax = eax + ecx; /* 0x3608F650: add eax, ecx */ 5107 _flag_k = FK_ADD; 5108 /* test eax, eax */ /* 0x3608F652: test eax, eax */ 5109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5110 _cf = 0; 5111 _flag_k = FK_TEST; 5112 MEM32(ebp + (-0x10)) = eax; /* 0x3608F654: mov dword ptr [ebp - 0x10], eax */ 5113 if (TEST_NS(_flag_a, _flag_b)) goto L_3608F65B; /* 0x3608F657: jge 0x3608f65b */ 5114 L_3608F659: 5115 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5116 eax = 0; /* 0x3608F659: xor eax, eax */ 5117 _cf = 0; 5118 _flag_k = FK_TEST; 5119 L_3608F65B: 5120 edx = eax * 8; /* 0x3608F65B: lea edx, [eax*8] */ 5121 PUSH32(esp, edx); /* 0x3608F662: push edx */ 5122 RECOMP_ICALL(0x3615FD6Au); /* 0x3608F663: call 0x3615fd6a */ /* not lifted */ 5123 RECOMP_FLAGS_IN(); 5124 MEM32(ebp + 0xC) = eax; /* 0x3608F668: mov dword ptr [ebp + 0xc], eax */ 5125 ebx = eax; /* 0x3608F66B: mov ebx, eax */ 5126 eax = MEM32(esi + 0x4); /* 0x3608F66D: mov eax, dword ptr [esi + 4] */ 5127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5129 esp = esp + 4; /* 0x3608F670: add esp, 4 */ 5130 _flag_k = FK_ADD; 5131 /* cmp eax, edi */ /* 0x3608F673: cmp eax, edi */ 5132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5134 _flag_k = FK_CMP; 5135 MEM32(ebp + 0x10) = eax; /* 0x3608F675: mov dword ptr [ebp + 0x10], eax */ 5136 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F699; /* 0x3608F678: je 0x3608f699 */ 5137 L_3608F67A: 5138 goto L_3608F67F; /* 0x3608F67A: jmp 0x3608f67f */ 5139 L_3608F67C: 5140 eax = MEM32(ebp + 0x10); /* 0x3608F67C: mov eax, dword ptr [ebp + 0x10] */ 5141 L_3608F67F: 5142 PUSH32(esp, eax); /* 0x3608F67F: push eax */ 5143 PUSH32(esp, ebx); /* 0x3608F680: push ebx */ 5144 RECOMP_ICALL(0x36030490u); /* 0x3608F681: call 0x36030490 */ /* not lifted */ 5145 RECOMP_FLAGS_IN(); 5146 eax = MEM32(ebp + 0x10); /* 0x3608F686: mov eax, dword ptr [ebp + 0x10] */ 5147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5149 eax = eax + 8; /* 0x3608F689: add eax, 8 */ 5150 _flag_k = FK_ADD; 5151 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5152 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5153 esp = esp + 8; /* 0x3608F68C: add esp, 8 */ 5154 _flag_k = FK_ADD; 5155 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 5156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5157 ebx = ebx + 8; /* 0x3608F68F: add ebx, 8 */ 5158 _flag_k = FK_ADD; 5159 /* cmp eax, edi */ /* 0x3608F692: cmp eax, edi */ 5160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5162 _flag_k = FK_CMP; 5163 MEM32(ebp + 0x10) = eax; /* 0x3608F694: mov dword ptr [ebp + 0x10], eax */ 5164 RECOMP_BACKEDGE(); 5165 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F67C; /* 0x3608F697: jne 0x3608f67c */ 5166 L_3608F699: 5167 eax = MEM32(ebp + 0x8); /* 0x3608F699: mov eax, dword ptr [ebp + 8] */ 5168 PUSH32(esp, eax); /* 0x3608F69C: push eax */ 5169 PUSH32(esp, 1); /* 0x3608F69D: push 1 */ 5170 PUSH32(esp, ebx); /* 0x3608F69F: push ebx */ 5171 ecx = esi; /* 0x3608F6A0: mov ecx, esi */ 5172 RECOMP_ICALL(0x36030420u); /* 0x3608F6A2: call 0x36030420 */ /* not lifted */ 5173 RECOMP_FLAGS_IN(); 5174 ecx = MEM32(esi + 0x8); /* 0x3608F6A7: mov ecx, dword ptr [esi + 8] */ 5175 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 5176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5177 ebx = ebx + 8; /* 0x3608F6AA: add ebx, 8 */ 5178 _flag_k = FK_ADD; 5179 PUSH32(esp, ebx); /* 0x3608F6AD: push ebx */ 5180 PUSH32(esp, ecx); /* 0x3608F6AE: push ecx */ 5181 PUSH32(esp, edi); /* 0x3608F6AF: push edi */ 5182 ecx = esi; /* 0x3608F6B0: mov ecx, esi */ 5183 RECOMP_ICALL(0x360303E0u); /* 0x3608F6B2: call 0x360303e0 */ /* not lifted */ 5184 RECOMP_FLAGS_IN(); 5185 edx = MEM32(esi + 0x8); /* 0x3608F6B7: mov edx, dword ptr [esi + 8] */ 5186 eax = MEM32(esi + 0x4); /* 0x3608F6BA: mov eax, dword ptr [esi + 4] */ 5187 PUSH32(esp, edx); /* 0x3608F6BD: push edx */ 5188 PUSH32(esp, eax); /* 0x3608F6BE: push eax */ 5189 ecx = esi; /* 0x3608F6BF: mov ecx, esi */ 5190 RECOMP_ICALL(0x36030CF0u); /* 0x3608F6C1: call 0x36030cf0 */ /* not lifted */ 5191 RECOMP_FLAGS_IN(); 5192 eax = MEM32(esi + 0x4); /* 0x3608F6C6: mov eax, dword ptr [esi + 4] */ 5193 PUSH32(esp, eax); /* 0x3608F6C9: push eax */ 5194 RECOMP_ICALL(0x3615FCC4u); /* 0x3608F6CA: call 0x3615fcc4 */ /* not lifted */ 5195 RECOMP_FLAGS_IN(); 5196 edx = MEM32(ebp + 0xC); /* 0x3608F6CF: mov edx, dword ptr [ebp + 0xc] */ 5197 ecx = MEM32(ebp + (-0x10)); /* 0x3608F6D2: mov ecx, dword ptr [ebp - 0x10] */ 5198 eax = edx + ecx * 8; /* 0x3608F6D5: lea eax, [edx + ecx*8] */ 5199 MEM32(esi + 0xC) = eax; /* 0x3608F6D8: mov dword ptr [esi + 0xc], eax */ 5200 eax = MEM32(esi + 0x4); /* 0x3608F6DB: mov eax, dword ptr [esi + 4] */ 5201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5203 esp = esp + 4; /* 0x3608F6DE: add esp, 4 */ 5204 _flag_k = FK_ADD; 5205 /* test eax, eax */ /* 0x3608F6E1: test eax, eax */ 5206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5207 _cf = 0; 5208 _flag_k = FK_TEST; 5209 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F6F6; /* 0x3608F6E3: jne 0x3608f6f6 */ 5210 L_3608F6E5: 5211 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5212 ecx = 0; /* 0x3608F6E5: xor ecx, ecx */ 5213 _cf = 0; 5214 _flag_k = FK_TEST; 5215 ecx = edx + ecx * 8 + 0x8; /* 0x3608F6E7: lea ecx, [edx + ecx*8 + 8] */ 5216 MEM32(esi + 0x8) = ecx; /* 0x3608F6EB: mov dword ptr [esi + 8], ecx */ 5217 MEM32(esi + 0x4) = edx; /* 0x3608F6EE: mov dword ptr [esi + 4], edx */ 5218 goto L_3608F77B; /* 0x3608F6F1: jmp 0x3608f77b */ 5219 L_3608F6F6: 5220 ecx = MEM32(esi + 0x8); /* 0x3608F6F6: mov ecx, dword ptr [esi + 8] */ 5221 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5223 ecx = ecx - eax; /* 0x3608F6F9: sub ecx, eax */ 5224 _flag_k = FK_CMP; 5225 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3608F6FB: sar ecx, 3 */ 5226 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5227 ecx = (uint32_t)((int32_t)ecx >> 3u); 5228 ecx = edx + ecx * 8 + 0x8; /* 0x3608F6FE: lea ecx, [edx + ecx*8 + 8] */ 5229 MEM32(esi + 0x8) = ecx; /* 0x3608F702: mov dword ptr [esi + 8], ecx */ 5230 MEM32(esi + 0x4) = edx; /* 0x3608F705: mov dword ptr [esi + 4], edx */ 5231 goto L_3608F77B; /* 0x3608F708: jmp 0x3608f77b */ 5232 L_3608F70A: 5233 edx = eax; /* 0x3608F70A: mov edx, eax */ 5234 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5236 edx = edx - edi; /* 0x3608F70C: sub edx, edi */ 5237 _flag_k = FK_CMP; 5238 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3608F70E: sar edx, 3 */ 5239 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5240 edx = (uint32_t)((int32_t)edx >> 3u); 5241 /* cmp edx, 1 */ /* 0x3608F711: cmp edx, 1 */ 5242 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5244 _flag_k = FK_CMP; 5245 if (CMP_AE(_flag_a, _flag_b)) goto L_3608F74E; /* 0x3608F714: jae 0x3608f74e */ 5246 L_3608F716: 5247 ecx = edi + 0x8; /* 0x3608F716: lea ecx, [edi + 8] */ 5248 PUSH32(esp, ecx); /* 0x3608F719: push ecx */ 5249 PUSH32(esp, eax); /* 0x3608F71A: push eax */ 5250 PUSH32(esp, edi); /* 0x3608F71B: push edi */ 5251 ecx = esi; /* 0x3608F71C: mov ecx, esi */ 5252 RECOMP_ICALL(0x360303E0u); /* 0x3608F71E: call 0x360303e0 */ /* not lifted */ 5253 RECOMP_FLAGS_IN(); 5254 eax = MEM32(esi + 0x8); /* 0x3608F723: mov eax, dword ptr [esi + 8] */ 5255 edx = eax; /* 0x3608F726: mov edx, eax */ 5256 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5258 edx = edx - edi; /* 0x3608F728: sub edx, edi */ 5259 _flag_k = FK_CMP; 5260 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3608F72A: sar edx, 3 */ 5261 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5262 edx = (uint32_t)((int32_t)edx >> 3u); 5263 PUSH32(esp, ebx); /* 0x3608F72D: push ebx */ 5264 ecx = 1; /* 0x3608F72E: mov ecx, 1 */ 5265 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5267 ecx = ecx - edx; /* 0x3608F733: sub ecx, edx */ 5268 _flag_k = FK_CMP; 5269 PUSH32(esp, ecx); /* 0x3608F735: push ecx */ 5270 PUSH32(esp, eax); /* 0x3608F736: push eax */ 5271 ecx = esi; /* 0x3608F737: mov ecx, esi */ 5272 RECOMP_ICALL(0x36030420u); /* 0x3608F739: call 0x36030420 */ /* not lifted */ 5273 RECOMP_FLAGS_IN(); 5274 edx = MEM32(esi + 0x8); /* 0x3608F73E: mov edx, dword ptr [esi + 8] */ 5275 PUSH32(esp, ebx); /* 0x3608F741: push ebx */ 5276 PUSH32(esp, edx); /* 0x3608F742: push edx */ 5277 PUSH32(esp, edi); /* 0x3608F743: push edi */ 5278 RECOMP_ICALL(0x3602F720u); /* 0x3608F744: call 0x3602f720 */ /* not lifted */ 5279 RECOMP_FLAGS_IN(); 5280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5282 esp = esp + 0xCu; /* 0x3608F749: add esp, 0xc */ 5283 _flag_k = FK_ADD; 5284 goto L_3608F777; /* 0x3608F74C: jmp 0x3608f777 */ 5285 L_3608F74E: 5286 PUSH32(esp, eax); /* 0x3608F74E: push eax */ 5287 PUSH32(esp, eax); /* 0x3608F74F: push eax */ 5288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u); 5289 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5290 eax = eax + 0xFFFFFFF8u; /* 0x3608F750: add eax, -8 */ 5291 _flag_k = FK_ADD; 5292 PUSH32(esp, eax); /* 0x3608F753: push eax */ 5293 ecx = esi; /* 0x3608F754: mov ecx, esi */ 5294 RECOMP_ICALL(0x360303E0u); /* 0x3608F756: call 0x360303e0 */ /* not lifted */ 5295 RECOMP_FLAGS_IN(); 5296 eax = MEM32(esi + 0x8); /* 0x3608F75B: mov eax, dword ptr [esi + 8] */ 5297 PUSH32(esp, eax); /* 0x3608F75E: push eax */ 5298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u); 5299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5300 eax = eax + 0xFFFFFFF8u; /* 0x3608F75F: add eax, -8 */ 5301 _flag_k = FK_ADD; 5302 PUSH32(esp, eax); /* 0x3608F762: push eax */ 5303 PUSH32(esp, edi); /* 0x3608F763: push edi */ 5304 RECOMP_ICALL(0x36030450u); /* 0x3608F764: call 0x36030450 */ /* not lifted */ 5305 RECOMP_FLAGS_IN(); 5306 PUSH32(esp, ebx); /* 0x3608F769: push ebx */ 5307 eax = edi + 0x8; /* 0x3608F76A: lea eax, [edi + 8] */ 5308 PUSH32(esp, eax); /* 0x3608F76D: push eax */ 5309 PUSH32(esp, edi); /* 0x3608F76E: push edi */ 5310 RECOMP_ICALL(0x3602F720u); /* 0x3608F76F: call 0x3602f720 */ /* not lifted */ 5311 RECOMP_FLAGS_IN(); 5312 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5314 esp = esp + 0x18u; /* 0x3608F774: add esp, 0x18 */ 5315 _flag_k = FK_ADD; 5316 L_3608F777: 5317 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(8); 5318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5319 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 8; /* 0x3608F777: add dword ptr [esi + 8], 8 */ 5320 _flag_k = FK_ADD; 5321 L_3608F77B: 5322 ecx = ebp + (-0x18); /* 0x3608F77B: lea ecx, [ebp - 0x18] */ 5323 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608F77E: mov dword ptr [ebp - 4], 0xffffffff */ 5324 RECOMP_ICALL(0x360E2940u); /* 0x3608F785: call 0x360e2940 */ /* not lifted */ 5325 RECOMP_FLAGS_IN(); 5326 ecx = MEM32(ebp + (-0xC)); /* 0x3608F78A: mov ecx, dword ptr [ebp - 0xc] */ 5327 edi = POP32_VAL(esp); /* 0x3608F78D: pop edi */ 5328 esi = POP32_VAL(esp); /* 0x3608F78E: pop esi */ 5329 ebx = POP32_VAL(esp); /* 0x3608F78F: pop ebx */ 5330 MEM32(FS_BASE + (0)) = ecx; /* 0x3608F790: mov dword ptr fs:[0], ecx */ 5331 esp = ebp; /* 0x3608F797: mov esp, ebp */ 5332 ebp = POP32_VAL(esp); /* 0x3608F799: pop ebp */ 5333 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608F79A: ret 0xc */ 5334 RECOMP_REGS_OUT(); 5335 } 5336 5337 void sub_3608F77B(void) { 5338 int _fpu_cmp = 0; 5339 uint32_t _cf = 0; 5340 int _df = 1; 5341 uint32_t _flag_k = FK_NONE; 5342 uint32_t _flag_a = 0, _flag_b = 0; 5343 uint32_t _itail_tgt = 0; 5344 RECOMP_REGS_LOCALS 5345 RECOMP_ENTER(0x3608F77Bu); 5346 5347 L_3608F77B: 5348 ecx = ebp + (-0x18); /* 0x3608F77B: lea ecx, [ebp - 0x18] */ 5349 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608F77E: mov dword ptr [ebp - 4], 0xffffffff */ 5350 RECOMP_ICALL(0x360E2940u); /* 0x3608F785: call 0x360e2940 */ /* not lifted */ 5351 RECOMP_FLAGS_IN(); 5352 ecx = MEM32(ebp + (-0xC)); /* 0x3608F78A: mov ecx, dword ptr [ebp - 0xc] */ 5353 edi = POP32_VAL(esp); /* 0x3608F78D: pop edi */ 5354 esi = POP32_VAL(esp); /* 0x3608F78E: pop esi */ 5355 ebx = POP32_VAL(esp); /* 0x3608F78F: pop ebx */ 5356 MEM32(FS_BASE + (0)) = ecx; /* 0x3608F790: mov dword ptr fs:[0], ecx */ 5357 esp = ebp; /* 0x3608F797: mov esp, ebp */ 5358 ebp = POP32_VAL(esp); /* 0x3608F799: pop ebp */ 5359 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608F79A: ret 0xc */ 5360 RECOMP_REGS_OUT(); 5361 } 5362 5363 void sub_3608F7A0(void) { 5364 int _fpu_cmp = 0; 5365 uint32_t _cf = 0; 5366 int _df = 1; 5367 uint32_t _flag_k = FK_NONE; 5368 uint32_t _flag_a = 0, _flag_b = 0; 5369 uint32_t _itail_tgt = 0; 5370 RECOMP_REGS_LOCALS 5371 RECOMP_ENTER(0x3608F7A0u); 5372 5373 L_3608F7A0: 5374 PUSH32(esp, ebp); /* 0x3608F7A0: push ebp */ 5375 ebp = esp; /* 0x3608F7A1: mov ebp, esp */ 5376 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5378 esp = esp - 8; /* 0x3608F7A3: sub esp, 8 */ 5379 _flag_k = FK_CMP; 5380 eax = MEM32(ebp + 0x8); /* 0x3608F7A6: mov eax, dword ptr [ebp + 8] */ 5381 edx = MEM32(ebp + 0xC); /* 0x3608F7A9: mov edx, dword ptr [ebp + 0xc] */ 5382 PUSH32(esp, ebx); /* 0x3608F7AC: push ebx */ 5383 PUSH32(esp, esi); /* 0x3608F7AD: push esi */ 5384 PUSH32(esp, edi); /* 0x3608F7AE: push edi */ 5385 edi = MEM32(ecx + 0x58); /* 0x3608F7AF: mov edi, dword ptr [ecx + 0x58] */ 5386 MEM32(ebp + (-0x8)) = eax; /* 0x3608F7B2: mov dword ptr [ebp - 8], eax */ 5387 MEM32(ebp + (-0x4)) = edx; /* 0x3608F7B5: mov dword ptr [ebp - 4], edx */ 5388 eax = MEM32(edi + 0x4); /* 0x3608F7B8: mov eax, dword ptr [edi + 4] */ 5389 esi = MEM32(eax); /* 0x3608F7BB: mov esi, dword ptr [eax] */ 5390 ebx = MEM32(esi + 0x4); /* 0x3608F7BD: mov ebx, dword ptr [esi + 4] */ 5391 PUSH32(esp, 0x10u); /* 0x3608F7C0: push 0x10 */ 5392 RECOMP_ICALL(0x3615FD6Au); /* 0x3608F7C2: call 0x3615fd6a */ /* not lifted */ 5393 RECOMP_FLAGS_IN(); 5394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5396 esp = esp + 4; /* 0x3608F7C7: add esp, 4 */ 5397 _flag_k = FK_ADD; 5398 /* test esi, esi */ /* 0x3608F7CA: test esi, esi */ 5399 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5400 _cf = 0; 5401 _flag_k = FK_TEST; 5402 ecx = esi; /* 0x3608F7CC: mov ecx, esi */ 5403 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F7D2; /* 0x3608F7CE: jne 0x3608f7d2 */ 5404 L_3608F7D0: 5405 ecx = eax; /* 0x3608F7D0: mov ecx, eax */ 5406 L_3608F7D2: 5407 /* test ebx, ebx */ /* 0x3608F7D2: test ebx, ebx */ 5408 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5409 _cf = 0; 5410 _flag_k = FK_TEST; 5411 MEM32(eax) = ecx; /* 0x3608F7D4: mov dword ptr [eax], ecx */ 5412 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608F7DA; /* 0x3608F7D6: jne 0x3608f7da */ 5413 L_3608F7D8: 5414 ebx = eax; /* 0x3608F7D8: mov ebx, eax */ 5415 L_3608F7DA: 5416 MEM32(eax + 0x4) = ebx; /* 0x3608F7DA: mov dword ptr [eax + 4], ebx */ 5417 MEM32(esi + 0x4) = eax; /* 0x3608F7DD: mov dword ptr [esi + 4], eax */ 5418 ecx = MEM32(eax + 0x4); /* 0x3608F7E0: mov ecx, dword ptr [eax + 4] */ 5419 edx = ebp + (-0x8); /* 0x3608F7E3: lea edx, [ebp - 8] */ 5420 MEM32(ecx) = eax; /* 0x3608F7E6: mov dword ptr [ecx], eax */ 5421 PUSH32(esp, edx); /* 0x3608F7E8: push edx */ 5422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5424 eax = eax + 8; /* 0x3608F7E9: add eax, 8 */ 5425 _flag_k = FK_ADD; 5426 PUSH32(esp, eax); /* 0x3608F7EC: push eax */ 5427 RECOMP_ICALL(0x360180C0u); /* 0x3608F7ED: call 0x360180c0 */ /* not lifted */ 5428 RECOMP_FLAGS_IN(); 5429 eax = MEM32(edi + 0x8); /* 0x3608F7F2: mov eax, dword ptr [edi + 8] */ 5430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5432 esp = esp + 8; /* 0x3608F7F5: add esp, 8 */ 5433 _flag_k = FK_ADD; 5434 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5435 eax = eax + 1; /* 0x3608F7F8: inc eax */ 5436 _flag_k = FK_INC; 5437 MEM32(edi + 0x8) = eax; /* 0x3608F7F9: mov dword ptr [edi + 8], eax */ 5438 edi = POP32_VAL(esp); /* 0x3608F7FC: pop edi */ 5439 esi = POP32_VAL(esp); /* 0x3608F7FD: pop esi */ 5440 ebx = POP32_VAL(esp); /* 0x3608F7FE: pop ebx */ 5441 esp = ebp; /* 0x3608F7FF: mov esp, ebp */ 5442 ebp = POP32_VAL(esp); /* 0x3608F801: pop ebp */ 5443 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608F802: ret 8 */ 5444 RECOMP_REGS_OUT(); 5445 } 5446 5447 void sub_3608F810(void) { 5448 int _fpu_cmp = 0; 5449 uint32_t _cf = 0; 5450 int _df = 1; 5451 uint32_t _flag_k = FK_NONE; 5452 uint32_t _flag_a = 0, _flag_b = 0; 5453 uint32_t _itail_tgt = 0; 5454 RECOMP_REGS_LOCALS 5455 RECOMP_ENTER(0x3608F810u); 5456 5457 L_3608F810: 5458 PUSH32(esp, ebp); /* 0x3608F810: push ebp */ 5459 ebp = esp; /* 0x3608F811: mov ebp, esp */ 5460 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5462 esp = esp - 0x18u; /* 0x3608F813: sub esp, 0x18 */ 5463 _flag_k = FK_CMP; 5464 PUSH32(esp, ebx); /* 0x3608F816: push ebx */ 5465 ebx = MEM32(ebp + 0x8); /* 0x3608F817: mov ebx, dword ptr [ebp + 8] */ 5466 /* test ebx, ebx */ /* 0x3608F81A: test ebx, ebx */ 5467 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5468 _cf = 0; 5469 _flag_k = FK_TEST; 5470 PUSH32(esp, esi); /* 0x3608F81C: push esi */ 5471 PUSH32(esp, edi); /* 0x3608F81D: push edi */ 5472 edi = ecx; /* 0x3608F81E: mov edi, ecx */ 5473 if (TEST_LE(_flag_a, _flag_b)) goto L_3608F8C8; /* 0x3608F820: jle 0x3608f8c8 */ 5474 L_3608F826: 5475 /* cmp ebx, 0xC8u */ /* 0x3608F826: cmp ebx, 0xc8 */ 5476 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xC8u); 5477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5478 _flag_k = FK_CMP; 5479 if (CMP_GE(_flag_a, _flag_b)) goto L_3608F8C8; /* 0x3608F82C: jge 0x3608f8c8 */ 5480 L_3608F832: 5481 esi = MEM32(edi + 0x54); /* 0x3608F832: mov esi, dword ptr [edi + 0x54] */ 5482 eax = ebp + 0x8; /* 0x3608F835: lea eax, [ebp + 8] */ 5483 PUSH32(esp, eax); /* 0x3608F838: push eax */ 5484 ecx = esi; /* 0x3608F839: mov ecx, esi */ 5485 MEM32(ebp + 0x8) = ebx; /* 0x3608F83B: mov dword ptr [ebp + 8], ebx */ 5486 RECOMP_ICALL(0x36076670u); /* 0x3608F83E: call 0x36076670 */ /* not lifted */ 5487 RECOMP_FLAGS_IN(); 5488 esi = MEM32(esi + 0x4); /* 0x3608F843: mov esi, dword ptr [esi + 4] */ 5489 /* cmp eax, esi */ /* 0x3608F846: cmp eax, esi */ 5490 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5492 _flag_k = FK_CMP; 5493 MEM32(ebp + (-0x4)) = eax; /* 0x3608F848: mov dword ptr [ebp - 4], eax */ 5494 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F85A; /* 0x3608F84B: je 0x3608f85a */ 5495 L_3608F84D: 5496 ecx = MEM32(ebp + 0x8); /* 0x3608F84D: mov ecx, dword ptr [ebp + 8] */ 5497 /* cmp ecx, MEM32(eax + 0xC) */ /* 0x3608F850: cmp ecx, dword ptr [eax + 0xc] */ 5498 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 5499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5500 _flag_k = FK_CMP; 5501 if (CMP_L(_flag_a, _flag_b)) goto L_3608F85A; /* 0x3608F853: jl 0x3608f85a */ 5502 L_3608F855: 5503 eax = ebp + (-0x4); /* 0x3608F855: lea eax, [ebp - 4] */ 5504 goto L_3608F860; /* 0x3608F858: jmp 0x3608f860 */ 5505 L_3608F85A: 5506 MEM32(ebp + (-0xC)) = esi; /* 0x3608F85A: mov dword ptr [ebp - 0xc], esi */ 5507 eax = ebp + (-0xC); /* 0x3608F85D: lea eax, [ebp - 0xc] */ 5508 L_3608F860: 5509 edx = MEM32(edi + 0x54); /* 0x3608F860: mov edx, dword ptr [edi + 0x54] */ 5510 eax = MEM32(eax); /* 0x3608F863: mov eax, dword ptr [eax] */ 5511 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3608F865: cmp eax, dword ptr [edx + 4] */ 5512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 5513 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5514 _flag_k = FK_CMP; 5515 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F8BC; /* 0x3608F868: jne 0x3608f8bc */ 5516 L_3608F86A: 5517 PUSH32(esp, 0x10u); /* 0x3608F86A: push 0x10 */ 5518 RECOMP_ICALL(0x3615FD6Au); /* 0x3608F86C: call 0x3615fd6a */ /* not lifted */ 5519 RECOMP_FLAGS_IN(); 5520 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5521 edx = 0; /* 0x3608F871: xor edx, edx */ 5522 _cf = 0; 5523 _flag_k = FK_TEST; 5524 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5525 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5526 esp = esp + 4; /* 0x3608F873: add esp, 4 */ 5527 _flag_k = FK_ADD; 5528 /* cmp eax, edx */ /* 0x3608F876: cmp eax, edx */ 5529 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5531 _flag_k = FK_CMP; 5532 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F88C; /* 0x3608F878: je 0x3608f88c */ 5533 L_3608F87A: 5534 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3608F87A: mov cl, byte ptr [ebp + 0xb] */ 5535 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3608F87D: mov byte ptr [eax], cl */ 5536 MEM32(eax + 0x4) = edx; /* 0x3608F87F: mov dword ptr [eax + 4], edx */ 5537 MEM32(eax + 0x8) = edx; /* 0x3608F882: mov dword ptr [eax + 8], edx */ 5538 MEM32(eax + 0xC) = edx; /* 0x3608F885: mov dword ptr [eax + 0xc], edx */ 5539 esi = eax; /* 0x3608F888: mov esi, eax */ 5540 goto L_3608F88E; /* 0x3608F88A: jmp 0x3608f88e */ 5541 L_3608F88C: 5542 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5543 esi = 0; /* 0x3608F88C: xor esi, esi */ 5544 _cf = 0; 5545 _flag_k = FK_TEST; 5546 L_3608F88E: 5547 ecx = MEM32(edi + 0x54); /* 0x3608F88E: mov ecx, dword ptr [edi + 0x54] */ 5548 MEM32(ebp + (-0xC)) = edx; /* 0x3608F891: mov dword ptr [ebp - 0xc], edx */ 5549 edx = ebp + (-0x10); /* 0x3608F894: lea edx, [ebp - 0x10] */ 5550 PUSH32(esp, edx); /* 0x3608F897: push edx */ 5551 eax = ebp + (-0x8); /* 0x3608F898: lea eax, [ebp - 8] */ 5552 PUSH32(esp, eax); /* 0x3608F89B: push eax */ 5553 MEM32(ebp + (-0x10)) = ebx; /* 0x3608F89C: mov dword ptr [ebp - 0x10], ebx */ 5554 RECOMP_ICALL(0x3603E790u); /* 0x3608F89F: call 0x3603e790 */ /* not lifted */ 5555 RECOMP_FLAGS_IN(); 5556 ecx = eax; /* 0x3608F8A4: mov ecx, eax */ 5557 eax = MEM32(ecx); /* 0x3608F8A6: mov eax, dword ptr [ecx] */ 5558 edx = MEM32(ecx + 0x4); /* 0x3608F8A8: mov edx, dword ptr [ecx + 4] */ 5559 MEM32(eax + 0x10) = esi; /* 0x3608F8AB: mov dword ptr [eax + 0x10], esi */ 5560 edi = POP32_VAL(esp); /* 0x3608F8AE: pop edi */ 5561 eax = esi; /* 0x3608F8AF: mov eax, esi */ 5562 esi = POP32_VAL(esp); /* 0x3608F8B1: pop esi */ 5563 MEM32(ebp + (-0x14)) = edx; /* 0x3608F8B2: mov dword ptr [ebp - 0x14], edx */ 5564 ebx = POP32_VAL(esp); /* 0x3608F8B5: pop ebx */ 5565 esp = ebp; /* 0x3608F8B6: mov esp, ebp */ 5566 ebp = POP32_VAL(esp); /* 0x3608F8B8: pop ebp */ 5567 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F8B9: ret 4 */ 5568 L_3608F8BC: 5569 eax = MEM32(eax + 0x10); /* 0x3608F8BC: mov eax, dword ptr [eax + 0x10] */ 5570 edi = POP32_VAL(esp); /* 0x3608F8BF: pop edi */ 5571 esi = POP32_VAL(esp); /* 0x3608F8C0: pop esi */ 5572 ebx = POP32_VAL(esp); /* 0x3608F8C1: pop ebx */ 5573 esp = ebp; /* 0x3608F8C2: mov esp, ebp */ 5574 ebp = POP32_VAL(esp); /* 0x3608F8C4: pop ebp */ 5575 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F8C5: ret 4 */ 5576 L_3608F8C8: 5577 edi = POP32_VAL(esp); /* 0x3608F8C8: pop edi */ 5578 esi = POP32_VAL(esp); /* 0x3608F8C9: pop esi */ 5579 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5580 eax = 0; /* 0x3608F8CA: xor eax, eax */ 5581 _cf = 0; 5582 _flag_k = FK_TEST; 5583 ebx = POP32_VAL(esp); /* 0x3608F8CC: pop ebx */ 5584 esp = ebp; /* 0x3608F8CD: mov esp, ebp */ 5585 ebp = POP32_VAL(esp); /* 0x3608F8CF: pop ebp */ 5586 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F8D0: ret 4 */ 5587 RECOMP_REGS_OUT(); 5588 } 5589 5590 void sub_3608F8E0(void) { 5591 int _fpu_cmp = 0; 5592 uint32_t _cf = 0; 5593 int _df = 1; 5594 uint32_t _flag_k = FK_NONE; 5595 uint32_t _flag_a = 0, _flag_b = 0; 5596 uint32_t _itail_tgt = 0; 5597 RECOMP_REGS_LOCALS 5598 RECOMP_ENTER(0x3608F8E0u); 5599 5600 L_3608F8E0: 5601 PUSH32(esp, ebp); /* 0x3608F8E0: push ebp */ 5602 ebp = esp; /* 0x3608F8E1: mov ebp, esp */ 5603 PUSH32(esp, ecx); /* 0x3608F8E3: push ecx */ 5604 eax = MEM32(ebp + 0x8); /* 0x3608F8E4: mov eax, dword ptr [ebp + 8] */ 5605 PUSH32(esp, esi); /* 0x3608F8E7: push esi */ 5606 PUSH32(esp, edi); /* 0x3608F8E8: push edi */ 5607 edi = ecx; /* 0x3608F8E9: mov edi, ecx */ 5608 esi = MEM32(edi + 0x54); /* 0x3608F8EB: mov esi, dword ptr [edi + 0x54] */ 5609 ecx = ebp + 0x8; /* 0x3608F8EE: lea ecx, [ebp + 8] */ 5610 PUSH32(esp, ecx); /* 0x3608F8F1: push ecx */ 5611 ecx = esi; /* 0x3608F8F2: mov ecx, esi */ 5612 MEM32(ebp + 0x8) = eax; /* 0x3608F8F4: mov dword ptr [ebp + 8], eax */ 5613 RECOMP_ICALL(0x36076670u); /* 0x3608F8F7: call 0x36076670 */ /* not lifted */ 5614 RECOMP_FLAGS_IN(); 5615 esi = MEM32(esi + 0x4); /* 0x3608F8FC: mov esi, dword ptr [esi + 4] */ 5616 /* cmp eax, esi */ /* 0x3608F8FF: cmp eax, esi */ 5617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5619 _flag_k = FK_CMP; 5620 MEM32(ebp + (-0x4)) = eax; /* 0x3608F901: mov dword ptr [ebp - 4], eax */ 5621 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F913; /* 0x3608F904: je 0x3608f913 */ 5622 L_3608F906: 5623 edx = MEM32(ebp + 0x8); /* 0x3608F906: mov edx, dword ptr [ebp + 8] */ 5624 /* cmp edx, MEM32(eax + 0xC) */ /* 0x3608F909: cmp edx, dword ptr [eax + 0xc] */ 5625 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 5626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5627 _flag_k = FK_CMP; 5628 if (CMP_L(_flag_a, _flag_b)) goto L_3608F913; /* 0x3608F90C: jl 0x3608f913 */ 5629 L_3608F90E: 5630 eax = ebp + (-0x4); /* 0x3608F90E: lea eax, [ebp - 4] */ 5631 goto L_3608F919; /* 0x3608F911: jmp 0x3608f919 */ 5632 L_3608F913: 5633 MEM32(ebp + 0x8) = esi; /* 0x3608F913: mov dword ptr [ebp + 8], esi */ 5634 eax = ebp + 0x8; /* 0x3608F916: lea eax, [ebp + 8] */ 5635 L_3608F919: 5636 ecx = MEM32(edi + 0x54); /* 0x3608F919: mov ecx, dword ptr [edi + 0x54] */ 5637 eax = MEM32(eax); /* 0x3608F91C: mov eax, dword ptr [eax] */ 5638 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3608F91E: cmp eax, dword ptr [ecx + 4] */ 5639 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5641 _flag_k = FK_CMP; 5642 edi = POP32_VAL(esp); /* 0x3608F921: pop edi */ 5643 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x3608F922: setne al */ 5644 esi = POP32_VAL(esp); /* 0x3608F925: pop esi */ 5645 esp = ebp; /* 0x3608F926: mov esp, ebp */ 5646 ebp = POP32_VAL(esp); /* 0x3608F928: pop ebp */ 5647 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608F929: ret 4 */ 5648 RECOMP_REGS_OUT(); 5649 } 5650 5651 void sub_3608F930(void) { 5652 int _fpu_cmp = 0; 5653 uint32_t _cf = 0; 5654 int _df = 1; 5655 uint32_t _flag_k = FK_NONE; 5656 uint32_t _flag_a = 0, _flag_b = 0; 5657 uint32_t _itail_tgt = 0; 5658 RECOMP_REGS_LOCALS 5659 RECOMP_ENTER(0x3608F930u); 5660 5661 L_3608F930: 5662 PUSH32(esp, ebp); /* 0x3608F930: push ebp */ 5663 ebp = esp; /* 0x3608F931: mov ebp, esp */ 5664 eax = MEM32(ebp + 0xC); /* 0x3608F933: mov eax, dword ptr [ebp + 0xc] */ 5665 PUSH32(esp, eax); /* 0x3608F936: push eax */ 5666 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 5667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5668 ecx = ecx + 0x40u; /* 0x3608F937: add ecx, 0x40 */ 5669 _flag_k = FK_ADD; 5670 RECOMP_ICALL(0x3608A770u); /* 0x3608F93A: call 0x3608a770 */ /* not lifted */ 5671 RECOMP_FLAGS_IN(); 5672 /* test eax, eax */ /* 0x3608F93F: test eax, eax */ 5673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5674 _cf = 0; 5675 _flag_k = FK_TEST; 5676 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F94A; /* 0x3608F941: je 0x3608f94a */ 5677 L_3608F943: 5678 /* cmp eax, 0x7D0u */ /* 0x3608F943: cmp eax, 0x7d0 */ 5679 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x7D0u); 5680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5681 _flag_k = FK_CMP; 5682 if (CMP_LE(_flag_a, _flag_b)) goto L_3608F94F; /* 0x3608F948: jle 0x3608f94f */ 5683 L_3608F94A: 5684 eax = 0x6Du; /* 0x3608F94A: mov eax, 0x6d */ 5685 L_3608F94F: 5686 ecx = MEM32(ebp + 0x8); /* 0x3608F94F: mov ecx, dword ptr [ebp + 8] */ 5687 ecx = MEM32(ecx + 0x174); /* 0x3608F952: mov ecx, dword ptr [ecx + 0x174] */ 5688 edx = MEM32(ecx); /* 0x3608F958: mov edx, dword ptr [ecx] */ 5689 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608F95A: push -1 */ 5690 PUSH32(esp, 0); /* 0x3608F95C: push 0 */ 5691 PUSH32(esp, 1); /* 0x3608F95E: push 1 */ 5692 PUSH32(esp, 1); /* 0x3608F960: push 1 */ 5693 PUSH32(esp, 0); /* 0x3608F962: push 0 */ 5694 PUSH32(esp, 1); /* 0x3608F964: push 1 */ 5695 PUSH32(esp, 0); /* 0x3608F966: push 0 */ 5696 PUSH32(esp, 0); /* 0x3608F968: push 0 */ 5697 PUSH32(esp, 0x3F800000u); /* 0x3608F96A: push 0x3f800000 */ 5698 PUSH32(esp, eax); /* 0x3608F96F: push eax */ 5699 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x3608F970: call dword ptr [edx + 0x14] */ 5700 RECOMP_FLAGS_IN(); 5701 ebp = POP32_VAL(esp); /* 0x3608F973: pop ebp */ 5702 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3608F974: ret 8 */ 5703 RECOMP_REGS_OUT(); 5704 } 5705 5706 void sub_3608F980(void) { 5707 int _fpu_cmp = 0; 5708 uint32_t _cf = 0; 5709 int _df = 1; 5710 uint32_t _flag_k = FK_NONE; 5711 uint32_t _flag_a = 0, _flag_b = 0; 5712 uint32_t _itail_tgt = 0; 5713 RECOMP_REGS_LOCALS 5714 RECOMP_ENTER(0x3608F980u); 5715 5716 L_3608F980: 5717 eax = MEM32(ecx + 0x68); /* 0x3608F980: mov eax, dword ptr [ecx + 0x68] */ 5718 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608F983: ret */ 5719 RECOMP_REGS_OUT(); 5720 } 5721 5722 void sub_3608F990(void) { 5723 int _fpu_cmp = 0; 5724 uint32_t _cf = 0; 5725 int _df = 1; 5726 uint32_t _flag_k = FK_NONE; 5727 uint32_t _flag_a = 0, _flag_b = 0; 5728 uint32_t _itail_tgt = 0; 5729 RECOMP_REGS_LOCALS 5730 RECOMP_ENTER(0x3608F990u); 5731 5732 L_3608F990: 5733 PUSH32(esp, ebp); /* 0x3608F990: push ebp */ 5734 ebp = esp; /* 0x3608F991: mov ebp, esp */ 5735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x58u); 5736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5737 esp = esp - 0x58u; /* 0x3608F993: sub esp, 0x58 */ 5738 _flag_k = FK_CMP; 5739 edx = MEM32(ebp + 0x8); /* 0x3608F996: mov edx, dword ptr [ebp + 8] */ 5740 PUSH32(esp, ebx); /* 0x3608F999: push ebx */ 5741 PUSH32(esp, esi); /* 0x3608F99A: push esi */ 5742 PUSH32(esp, edi); /* 0x3608F99B: push edi */ 5743 edi = MEM32(ecx + 0x6C); /* 0x3608F99C: mov edi, dword ptr [ecx + 0x6c] */ 5744 ebx = MEM32(edi + 0x4); /* 0x3608F99F: mov ebx, dword ptr [edi + 4] */ 5745 ecx = MEM32(edi + 0x8); /* 0x3608F9A2: mov ecx, dword ptr [edi + 8] */ 5746 MEM32(ebp + (-0x20)) = edx; /* 0x3608F9A5: mov dword ptr [ebp - 0x20], edx */ 5747 MEM32(ebp + (-0x1C)) = 0; /* 0x3608F9A8: mov dword ptr [ebp - 0x1c], 0 */ 5748 esi = MEM32(ebx + 0x4); /* 0x3608F9AF: mov esi, dword ptr [ebx + 4] */ 5749 /* cmp esi, ecx */ /* 0x3608F9B2: cmp esi, ecx */ 5750 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 5751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5752 _flag_k = FK_CMP; 5753 SET_LO8(eax, 1); /* 0x3608F9B4: mov al, 1 */ 5754 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608F9CF; /* 0x3608F9B6: je 0x3608f9cf */ 5755 L_3608F9B8: 5756 /* cmp edx, MEM32(esi + 0xC) */ /* 0x3608F9B8: cmp edx, dword ptr [esi + 0xc] */ 5757 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 5758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5759 _flag_k = FK_CMP; 5760 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x3608F9BB: setl al */ 5761 /* test LO8(eax), LO8(eax) */ /* 0x3608F9BE: test al, al */ 5762 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5763 _cf = 0; 5764 _flag_k = FK_NARROW(FK_TEST, 24); 5765 ebx = esi; /* 0x3608F9C0: mov ebx, esi */ 5766 if (TEST_Z(_flag_a, _flag_b)) goto L_3608F9C8; /* 0x3608F9C2: je 0x3608f9c8 */ 5767 L_3608F9C4: 5768 esi = MEM32(esi); /* 0x3608F9C4: mov esi, dword ptr [esi] */ 5769 goto L_3608F9CB; /* 0x3608F9C6: jmp 0x3608f9cb */ 5770 L_3608F9C8: 5771 esi = MEM32(esi + 0x8); /* 0x3608F9C8: mov esi, dword ptr [esi + 8] */ 5772 L_3608F9CB: 5773 /* cmp esi, ecx */ /* 0x3608F9CB: cmp esi, ecx */ 5774 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 5775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5776 _flag_k = FK_CMP; 5777 RECOMP_BACKEDGE(); 5778 if (CMP_NE(_flag_a, _flag_b)) goto L_3608F9B8; /* 0x3608F9CD: jne 0x3608f9b8 */ 5779 L_3608F9CF: 5780 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x3608F9CF: mov cl, byte ptr [edi + 0xc] */ 5781 /* test LO8(ecx), LO8(ecx) */ /* 0x3608F9D2: test cl, cl */ 5782 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 5783 _cf = 0; 5784 _flag_k = FK_NARROW(FK_TEST, 24); 5785 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FA04; /* 0x3608F9D4: je 0x3608fa04 */ 5786 L_3608F9D6: 5787 eax = ebp + 0xB; /* 0x3608F9D6: lea eax, [ebp + 0xb] */ 5788 PUSH32(esp, eax); /* 0x3608F9D9: push eax */ 5789 ecx = ebp + (-0x20); /* 0x3608F9DA: lea ecx, [ebp - 0x20] */ 5790 PUSH32(esp, ecx); /* 0x3608F9DD: push ecx */ 5791 PUSH32(esp, ebx); /* 0x3608F9DE: push ebx */ 5792 PUSH32(esp, esi); /* 0x3608F9DF: push esi */ 5793 edx = ebp + (-0xC); /* 0x3608F9E0: lea edx, [ebp - 0xc] */ 5794 PUSH32(esp, edx); /* 0x3608F9E3: push edx */ 5795 ecx = edi; /* 0x3608F9E4: mov ecx, edi */ 5796 MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x3608F9E6: mov byte ptr [ebp + 0xb], 1 */ 5797 RECOMP_ICALL(0x360912C0u); /* 0x3608F9EA: call 0x360912c0 */ /* not lifted */ 5798 RECOMP_FLAGS_IN(); 5799 PUSH32(esp, eax); /* 0x3608F9EF: push eax */ 5800 ecx = ebp + (-0x30); /* 0x3608F9F0: lea ecx, [ebp - 0x30] */ 5801 RECOMP_ICALL(0x3614FCB0u); /* 0x3608F9F3: call 0x3614fcb0 */ /* not lifted */ 5802 RECOMP_FLAGS_IN(); 5803 ecx = eax; /* 0x3608F9F8: mov ecx, eax */ 5804 eax = MEM32(ecx); /* 0x3608F9FA: mov eax, dword ptr [ecx] */ 5805 ecx = MEM32(ecx + 0x4); /* 0x3608F9FC: mov ecx, dword ptr [ecx + 4] */ 5806 goto L_3608FA89; /* 0x3608F9FF: jmp 0x3608fa89 */ 5807 L_3608FA04: 5808 /* test LO8(eax), LO8(eax) */ /* 0x3608FA04: test al, al */ 5809 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5810 _cf = 0; 5811 _flag_k = FK_NARROW(FK_TEST, 24); 5812 MEM32(ebp + (-0x8)) = ebx; /* 0x3608FA06: mov dword ptr [ebp - 8], ebx */ 5813 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FA44; /* 0x3608FA09: je 0x3608fa44 */ 5814 L_3608FA0B: 5815 edx = ebp + (-0x10); /* 0x3608FA0B: lea edx, [ebp - 0x10] */ 5816 PUSH32(esp, edx); /* 0x3608FA0E: push edx */ 5817 ecx = edi; /* 0x3608FA0F: mov ecx, edi */ 5818 RECOMP_ICALL(0x3614FC30u); /* 0x3608FA11: call 0x3614fc30 */ /* not lifted */ 5819 RECOMP_FLAGS_IN(); 5820 ecx = MEM32(ebp + (-0x8)); /* 0x3608FA16: mov ecx, dword ptr [ebp - 8] */ 5821 /* cmp ecx, MEM32(eax) */ /* 0x3608FA19: cmp ecx, dword ptr [eax] */ 5822 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 5823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5824 _flag_k = FK_CMP; 5825 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FA3C; /* 0x3608FA1B: jne 0x3608fa3c */ 5826 L_3608FA1D: 5827 edx = ebp + (-0x1); /* 0x3608FA1D: lea edx, [ebp - 1] */ 5828 PUSH32(esp, edx); /* 0x3608FA20: push edx */ 5829 eax = ebp + (-0x20); /* 0x3608FA21: lea eax, [ebp - 0x20] */ 5830 PUSH32(esp, eax); /* 0x3608FA24: push eax */ 5831 PUSH32(esp, ebx); /* 0x3608FA25: push ebx */ 5832 PUSH32(esp, esi); /* 0x3608FA26: push esi */ 5833 ecx = ebp + (-0x14); /* 0x3608FA27: lea ecx, [ebp - 0x14] */ 5834 PUSH32(esp, ecx); /* 0x3608FA2A: push ecx */ 5835 ecx = edi; /* 0x3608FA2B: mov ecx, edi */ 5836 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x3608FA2D: mov byte ptr [ebp - 1], 1 */ 5837 RECOMP_ICALL(0x360912C0u); /* 0x3608FA31: call 0x360912c0 */ /* not lifted */ 5838 RECOMP_FLAGS_IN(); 5839 PUSH32(esp, eax); /* 0x3608FA36: push eax */ 5840 ecx = ebp + (-0x38); /* 0x3608FA37: lea ecx, [ebp - 0x38] */ 5841 goto L_3608FA7D; /* 0x3608FA3A: jmp 0x3608fa7d */ 5842 L_3608FA3C: 5843 ecx = ebp + (-0x8); /* 0x3608FA3C: lea ecx, [ebp - 8] */ 5844 RECOMP_ICALL(0x3614FCD0u); /* 0x3608FA3F: call 0x3614fcd0 */ /* not lifted */ 5845 RECOMP_FLAGS_IN(); 5846 L_3608FA44: 5847 eax = MEM32(ebp + (-0x8)); /* 0x3608FA44: mov eax, dword ptr [ebp - 8] */ 5848 ecx = MEM32(eax + 0xC); /* 0x3608FA47: mov ecx, dword ptr [eax + 0xc] */ 5849 /* cmp ecx, MEM32(ebp + (-0x20)) */ /* 0x3608FA4A: cmp ecx, dword ptr [ebp - 0x20] */ 5850 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x20))); 5851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5852 _flag_k = FK_CMP; 5853 if (CMP_GE(_flag_a, _flag_b)) goto L_3608FA6E; /* 0x3608FA4D: jge 0x3608fa6e */ 5854 L_3608FA4F: 5855 edx = ebp + (-0x2); /* 0x3608FA4F: lea edx, [ebp - 2] */ 5856 PUSH32(esp, edx); /* 0x3608FA52: push edx */ 5857 eax = ebp + (-0x20); /* 0x3608FA53: lea eax, [ebp - 0x20] */ 5858 PUSH32(esp, eax); /* 0x3608FA56: push eax */ 5859 PUSH32(esp, ebx); /* 0x3608FA57: push ebx */ 5860 PUSH32(esp, esi); /* 0x3608FA58: push esi */ 5861 ecx = ebp + (-0x18); /* 0x3608FA59: lea ecx, [ebp - 0x18] */ 5862 PUSH32(esp, ecx); /* 0x3608FA5C: push ecx */ 5863 ecx = edi; /* 0x3608FA5D: mov ecx, edi */ 5864 MEM8(ebp + (-0x2)) = (uint8_t)(1); /* 0x3608FA5F: mov byte ptr [ebp - 2], 1 */ 5865 RECOMP_ICALL(0x360912C0u); /* 0x3608FA63: call 0x360912c0 */ /* not lifted */ 5866 RECOMP_FLAGS_IN(); 5867 PUSH32(esp, eax); /* 0x3608FA68: push eax */ 5868 ecx = ebp + (-0x40); /* 0x3608FA69: lea ecx, [ebp - 0x40] */ 5869 goto L_3608FA7D; /* 0x3608FA6C: jmp 0x3608fa7d */ 5870 L_3608FA6E: 5871 eax = ebp + (-0x3); /* 0x3608FA6E: lea eax, [ebp - 3] */ 5872 ecx = ebp + (-0x8); /* 0x3608FA71: lea ecx, [ebp - 8] */ 5873 PUSH32(esp, eax); /* 0x3608FA74: push eax */ 5874 PUSH32(esp, ecx); /* 0x3608FA75: push ecx */ 5875 MEM8(ebp + (-0x3)) = (uint8_t)(0); /* 0x3608FA76: mov byte ptr [ebp - 3], 0 */ 5876 ecx = ebp + (-0x48); /* 0x3608FA7A: lea ecx, [ebp - 0x48] */ 5877 L_3608FA7D: 5878 RECOMP_ICALL(0x3614FCB0u); /* 0x3608FA7D: call 0x3614fcb0 */ /* not lifted */ 5879 RECOMP_FLAGS_IN(); 5880 edx = eax; /* 0x3608FA82: mov edx, eax */ 5881 eax = MEM32(edx); /* 0x3608FA84: mov eax, dword ptr [edx] */ 5882 ecx = MEM32(edx + 0x4); /* 0x3608FA86: mov ecx, dword ptr [edx + 4] */ 5883 L_3608FA89: 5884 MEM32(ebp + (-0x28)) = eax; /* 0x3608FA89: mov dword ptr [ebp - 0x28], eax */ 5885 MEM32(ebp + (-0x24)) = ecx; /* 0x3608FA8C: mov dword ptr [ebp - 0x24], ecx */ 5886 eax = ebp + (-0x24); /* 0x3608FA8F: lea eax, [ebp - 0x24] */ 5887 PUSH32(esp, eax); /* 0x3608FA92: push eax */ 5888 ecx = ebp + (-0x28); /* 0x3608FA93: lea ecx, [ebp - 0x28] */ 5889 PUSH32(esp, ecx); /* 0x3608FA96: push ecx */ 5890 ecx = ebp + (-0x50); /* 0x3608FA97: lea ecx, [ebp - 0x50] */ 5891 RECOMP_ICALL(0x3614FCB0u); /* 0x3608FA9A: call 0x3614fcb0 */ /* not lifted */ 5892 RECOMP_FLAGS_IN(); 5893 edx = eax; /* 0x3608FA9F: mov edx, eax */ 5894 eax = MEM32(edx); /* 0x3608FAA1: mov eax, dword ptr [edx] */ 5895 ecx = MEM32(edx + 0x4); /* 0x3608FAA3: mov ecx, dword ptr [edx + 4] */ 5896 eax = MEM32(eax + 0x10); /* 0x3608FAA6: mov eax, dword ptr [eax + 0x10] */ 5897 edi = POP32_VAL(esp); /* 0x3608FAA9: pop edi */ 5898 esi = POP32_VAL(esp); /* 0x3608FAAA: pop esi */ 5899 MEM32(ebp + (-0x54)) = ecx; /* 0x3608FAAB: mov dword ptr [ebp - 0x54], ecx */ 5900 ebx = POP32_VAL(esp); /* 0x3608FAAE: pop ebx */ 5901 esp = ebp; /* 0x3608FAAF: mov esp, ebp */ 5902 ebp = POP32_VAL(esp); /* 0x3608FAB1: pop ebp */ 5903 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FAB2: ret 4 */ 5904 RECOMP_REGS_OUT(); 5905 } 5906 5907 void sub_3608FA89(void) { 5908 int _fpu_cmp = 0; 5909 uint32_t _cf = 0; 5910 int _df = 1; 5911 uint32_t _flag_k = FK_NONE; 5912 uint32_t _flag_a = 0, _flag_b = 0; 5913 uint32_t _itail_tgt = 0; 5914 RECOMP_REGS_LOCALS 5915 RECOMP_ENTER(0x3608FA89u); 5916 5917 L_3608FA89: 5918 MEM32(ebp + (-0x28)) = eax; /* 0x3608FA89: mov dword ptr [ebp - 0x28], eax */ 5919 MEM32(ebp + (-0x24)) = ecx; /* 0x3608FA8C: mov dword ptr [ebp - 0x24], ecx */ 5920 eax = ebp + (-0x24); /* 0x3608FA8F: lea eax, [ebp - 0x24] */ 5921 PUSH32(esp, eax); /* 0x3608FA92: push eax */ 5922 ecx = ebp + (-0x28); /* 0x3608FA93: lea ecx, [ebp - 0x28] */ 5923 PUSH32(esp, ecx); /* 0x3608FA96: push ecx */ 5924 ecx = ebp + (-0x50); /* 0x3608FA97: lea ecx, [ebp - 0x50] */ 5925 RECOMP_ICALL(0x3614FCB0u); /* 0x3608FA9A: call 0x3614fcb0 */ /* not lifted */ 5926 RECOMP_FLAGS_IN(); 5927 edx = eax; /* 0x3608FA9F: mov edx, eax */ 5928 eax = MEM32(edx); /* 0x3608FAA1: mov eax, dword ptr [edx] */ 5929 ecx = MEM32(edx + 0x4); /* 0x3608FAA3: mov ecx, dword ptr [edx + 4] */ 5930 eax = MEM32(eax + 0x10); /* 0x3608FAA6: mov eax, dword ptr [eax + 0x10] */ 5931 edi = POP32_VAL(esp); /* 0x3608FAA9: pop edi */ 5932 esi = POP32_VAL(esp); /* 0x3608FAAA: pop esi */ 5933 MEM32(ebp + (-0x54)) = ecx; /* 0x3608FAAB: mov dword ptr [ebp - 0x54], ecx */ 5934 ebx = POP32_VAL(esp); /* 0x3608FAAE: pop ebx */ 5935 esp = ebp; /* 0x3608FAAF: mov esp, ebp */ 5936 ebp = POP32_VAL(esp); /* 0x3608FAB1: pop ebp */ 5937 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FAB2: ret 4 */ 5938 RECOMP_REGS_OUT(); 5939 } 5940 5941 void sub_3608FAC0(void) { 5942 int _fpu_cmp = 0; 5943 uint32_t _cf = 0; 5944 int _df = 1; 5945 uint32_t _flag_k = FK_NONE; 5946 uint32_t _flag_a = 0, _flag_b = 0; 5947 uint32_t _itail_tgt = 0; 5948 RECOMP_REGS_LOCALS 5949 RECOMP_ENTER(0x3608FAC0u); 5950 5951 L_3608FAC0: 5952 PUSH32(esp, ebp); /* 0x3608FAC0: push ebp */ 5953 ebp = esp; /* 0x3608FAC1: mov ebp, esp */ 5954 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608FAC3: push -1 */ 5955 PUSH32(esp, 0x361661EBu); /* 0x3608FAC5: push 0x361661eb */ 5956 eax = MEM32(FS_BASE + (0)); /* 0x3608FACA: mov eax, dword ptr fs:[0] */ 5957 PUSH32(esp, eax); /* 0x3608FAD0: push eax */ 5958 MEM32(FS_BASE + (0)) = esp; /* 0x3608FAD1: mov dword ptr fs:[0], esp */ 5959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x5Cu); 5960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5961 esp = esp - 0x5Cu; /* 0x3608FAD8: sub esp, 0x5c */ 5962 _flag_k = FK_CMP; 5963 PUSH32(esp, ebx); /* 0x3608FADB: push ebx */ 5964 PUSH32(esp, esi); /* 0x3608FADC: push esi */ 5965 PUSH32(esp, edi); /* 0x3608FADD: push edi */ 5966 PUSH32(esp, 8); /* 0x3608FADE: push 8 */ 5967 esi = ecx; /* 0x3608FAE0: mov esi, ecx */ 5968 RECOMP_ICALL(0x3615FD6Au); /* 0x3608FAE2: call 0x3615fd6a */ /* not lifted */ 5969 RECOMP_FLAGS_IN(); 5970 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5971 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5972 esp = esp + 4; /* 0x3608FAE7: add esp, 4 */ 5973 _flag_k = FK_ADD; 5974 MEM32(ebp + (-0x18)) = eax; /* 0x3608FAEA: mov dword ptr [ebp - 0x18], eax */ 5975 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5976 ebx = 0; /* 0x3608FAED: xor ebx, ebx */ 5977 _cf = 0; 5978 _flag_k = FK_TEST; 5979 /* cmp eax, ebx */ /* 0x3608FAEF: cmp eax, ebx */ 5980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5982 _flag_k = FK_CMP; 5983 MEM32(ebp + (-0x4)) = ebx; /* 0x3608FAF1: mov dword ptr [ebp - 4], ebx */ 5984 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FB02; /* 0x3608FAF4: je 0x3608fb02 */ 5985 L_3608FAF6: 5986 ecx = eax; /* 0x3608FAF6: mov ecx, eax */ 5987 RECOMP_ICALL(0x36005570u); /* 0x3608FAF8: call 0x36005570 */ /* not lifted */ 5988 RECOMP_FLAGS_IN(); 5989 MEM32(ebp + (-0x18)) = eax; /* 0x3608FAFD: mov dword ptr [ebp - 0x18], eax */ 5990 goto L_3608FB05; /* 0x3608FB00: jmp 0x3608fb05 */ 5991 L_3608FB02: 5992 MEM32(ebp + (-0x18)) = ebx; /* 0x3608FB02: mov dword ptr [ebp - 0x18], ebx */ 5993 L_3608FB05: 5994 edi = MEM32(esi + 0x6C); /* 0x3608FB05: mov edi, dword ptr [esi + 0x6c] */ 5995 edx = MEM32(ebp + 0x8); /* 0x3608FB08: mov edx, dword ptr [ebp + 8] */ 5996 ecx = MEM32(edi + 0x8); /* 0x3608FB0B: mov ecx, dword ptr [edi + 8] */ 5997 MEM32(ebp + (-0x2C)) = ebx; /* 0x3608FB0E: mov dword ptr [ebp - 0x2c], ebx */ 5998 ebx = MEM32(edi + 0x4); /* 0x3608FB11: mov ebx, dword ptr [edi + 4] */ 5999 MEM32(ebp + (-0x30)) = edx; /* 0x3608FB14: mov dword ptr [ebp - 0x30], edx */ 6000 esi = MEM32(ebx + 0x4); /* 0x3608FB17: mov esi, dword ptr [ebx + 4] */ 6001 /* cmp esi, ecx */ /* 0x3608FB1A: cmp esi, ecx */ 6002 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6004 _flag_k = FK_CMP; 6005 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608FB1C: mov dword ptr [ebp - 4], 0xffffffff */ 6006 SET_LO8(eax, 1); /* 0x3608FB23: mov al, 1 */ 6007 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FB3E; /* 0x3608FB25: je 0x3608fb3e */ 6008 L_3608FB27: 6009 /* cmp edx, MEM32(esi + 0xC) */ /* 0x3608FB27: cmp edx, dword ptr [esi + 0xc] */ 6010 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 6011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6012 _flag_k = FK_CMP; 6013 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x3608FB2A: setl al */ 6014 /* test LO8(eax), LO8(eax) */ /* 0x3608FB2D: test al, al */ 6015 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6016 _cf = 0; 6017 _flag_k = FK_NARROW(FK_TEST, 24); 6018 ebx = esi; /* 0x3608FB2F: mov ebx, esi */ 6019 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FB37; /* 0x3608FB31: je 0x3608fb37 */ 6020 L_3608FB33: 6021 esi = MEM32(esi); /* 0x3608FB33: mov esi, dword ptr [esi] */ 6022 goto L_3608FB3A; /* 0x3608FB35: jmp 0x3608fb3a */ 6023 L_3608FB37: 6024 esi = MEM32(esi + 0x8); /* 0x3608FB37: mov esi, dword ptr [esi + 8] */ 6025 L_3608FB3A: 6026 /* cmp esi, ecx */ /* 0x3608FB3A: cmp esi, ecx */ 6027 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 6028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6029 _flag_k = FK_CMP; 6030 RECOMP_BACKEDGE(); 6031 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FB27; /* 0x3608FB3C: jne 0x3608fb27 */ 6032 L_3608FB3E: 6033 SET_LO8(ecx, MEM8(edi + 0xC)); /* 0x3608FB3E: mov cl, byte ptr [edi + 0xc] */ 6034 /* test LO8(ecx), LO8(ecx) */ /* 0x3608FB41: test cl, cl */ 6035 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6036 _cf = 0; 6037 _flag_k = FK_NARROW(FK_TEST, 24); 6038 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FB73; /* 0x3608FB43: je 0x3608fb73 */ 6039 L_3608FB45: 6040 eax = ebp + 0xB; /* 0x3608FB45: lea eax, [ebp + 0xb] */ 6041 PUSH32(esp, eax); /* 0x3608FB48: push eax */ 6042 ecx = ebp + (-0x30); /* 0x3608FB49: lea ecx, [ebp - 0x30] */ 6043 PUSH32(esp, ecx); /* 0x3608FB4C: push ecx */ 6044 PUSH32(esp, ebx); /* 0x3608FB4D: push ebx */ 6045 PUSH32(esp, esi); /* 0x3608FB4E: push esi */ 6046 edx = ebp + (-0x1C); /* 0x3608FB4F: lea edx, [ebp - 0x1c] */ 6047 PUSH32(esp, edx); /* 0x3608FB52: push edx */ 6048 ecx = edi; /* 0x3608FB53: mov ecx, edi */ 6049 MEM8(ebp + 0xB) = (uint8_t)(1); /* 0x3608FB55: mov byte ptr [ebp + 0xb], 1 */ 6050 RECOMP_ICALL(0x360912C0u); /* 0x3608FB59: call 0x360912c0 */ /* not lifted */ 6051 RECOMP_FLAGS_IN(); 6052 PUSH32(esp, eax); /* 0x3608FB5E: push eax */ 6053 ecx = ebp + (-0x40); /* 0x3608FB5F: lea ecx, [ebp - 0x40] */ 6054 RECOMP_ICALL(0x3614FCB0u); /* 0x3608FB62: call 0x3614fcb0 */ /* not lifted */ 6055 RECOMP_FLAGS_IN(); 6056 ecx = eax; /* 0x3608FB67: mov ecx, eax */ 6057 eax = MEM32(ecx); /* 0x3608FB69: mov eax, dword ptr [ecx] */ 6058 ecx = MEM32(ecx + 0x4); /* 0x3608FB6B: mov ecx, dword ptr [ecx + 4] */ 6059 goto L_3608FBF8; /* 0x3608FB6E: jmp 0x3608fbf8 */ 6060 L_3608FB73: 6061 /* test LO8(eax), LO8(eax) */ /* 0x3608FB73: test al, al */ 6062 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6063 _cf = 0; 6064 _flag_k = FK_NARROW(FK_TEST, 24); 6065 MEM32(ebp + (-0x14)) = ebx; /* 0x3608FB75: mov dword ptr [ebp - 0x14], ebx */ 6066 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FBB3; /* 0x3608FB78: je 0x3608fbb3 */ 6067 L_3608FB7A: 6068 edx = ebp + (-0x20); /* 0x3608FB7A: lea edx, [ebp - 0x20] */ 6069 PUSH32(esp, edx); /* 0x3608FB7D: push edx */ 6070 ecx = edi; /* 0x3608FB7E: mov ecx, edi */ 6071 RECOMP_ICALL(0x3614FC30u); /* 0x3608FB80: call 0x3614fc30 */ /* not lifted */ 6072 RECOMP_FLAGS_IN(); 6073 ecx = MEM32(ebp + (-0x14)); /* 0x3608FB85: mov ecx, dword ptr [ebp - 0x14] */ 6074 /* cmp ecx, MEM32(eax) */ /* 0x3608FB88: cmp ecx, dword ptr [eax] */ 6075 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 6076 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6077 _flag_k = FK_CMP; 6078 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FBAB; /* 0x3608FB8A: jne 0x3608fbab */ 6079 L_3608FB8C: 6080 edx = ebp + (-0xD); /* 0x3608FB8C: lea edx, [ebp - 0xd] */ 6081 PUSH32(esp, edx); /* 0x3608FB8F: push edx */ 6082 eax = ebp + (-0x30); /* 0x3608FB90: lea eax, [ebp - 0x30] */ 6083 PUSH32(esp, eax); /* 0x3608FB93: push eax */ 6084 PUSH32(esp, ebx); /* 0x3608FB94: push ebx */ 6085 PUSH32(esp, esi); /* 0x3608FB95: push esi */ 6086 ecx = ebp + (-0x24); /* 0x3608FB96: lea ecx, [ebp - 0x24] */ 6087 PUSH32(esp, ecx); /* 0x3608FB99: push ecx */ 6088 ecx = edi; /* 0x3608FB9A: mov ecx, edi */ 6089 MEM8(ebp + (-0xD)) = (uint8_t)(1); /* 0x3608FB9C: mov byte ptr [ebp - 0xd], 1 */ 6090 RECOMP_ICALL(0x360912C0u); /* 0x3608FBA0: call 0x360912c0 */ /* not lifted */ 6091 RECOMP_FLAGS_IN(); 6092 PUSH32(esp, eax); /* 0x3608FBA5: push eax */ 6093 ecx = ebp + (-0x48); /* 0x3608FBA6: lea ecx, [ebp - 0x48] */ 6094 goto L_3608FBEC; /* 0x3608FBA9: jmp 0x3608fbec */ 6095 L_3608FBAB: 6096 ecx = ebp + (-0x14); /* 0x3608FBAB: lea ecx, [ebp - 0x14] */ 6097 RECOMP_ICALL(0x3614FCD0u); /* 0x3608FBAE: call 0x3614fcd0 */ /* not lifted */ 6098 RECOMP_FLAGS_IN(); 6099 L_3608FBB3: 6100 eax = MEM32(ebp + (-0x14)); /* 0x3608FBB3: mov eax, dword ptr [ebp - 0x14] */ 6101 ecx = MEM32(eax + 0xC); /* 0x3608FBB6: mov ecx, dword ptr [eax + 0xc] */ 6102 /* cmp ecx, MEM32(ebp + (-0x30)) */ /* 0x3608FBB9: cmp ecx, dword ptr [ebp - 0x30] */ 6103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x30))); 6104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6105 _flag_k = FK_CMP; 6106 if (CMP_GE(_flag_a, _flag_b)) goto L_3608FBDD; /* 0x3608FBBC: jge 0x3608fbdd */ 6107 L_3608FBBE: 6108 edx = ebp + (-0xE); /* 0x3608FBBE: lea edx, [ebp - 0xe] */ 6109 PUSH32(esp, edx); /* 0x3608FBC1: push edx */ 6110 eax = ebp + (-0x30); /* 0x3608FBC2: lea eax, [ebp - 0x30] */ 6111 PUSH32(esp, eax); /* 0x3608FBC5: push eax */ 6112 PUSH32(esp, ebx); /* 0x3608FBC6: push ebx */ 6113 PUSH32(esp, esi); /* 0x3608FBC7: push esi */ 6114 ecx = ebp + (-0x28); /* 0x3608FBC8: lea ecx, [ebp - 0x28] */ 6115 PUSH32(esp, ecx); /* 0x3608FBCB: push ecx */ 6116 ecx = edi; /* 0x3608FBCC: mov ecx, edi */ 6117 MEM8(ebp + (-0xE)) = (uint8_t)(1); /* 0x3608FBCE: mov byte ptr [ebp - 0xe], 1 */ 6118 RECOMP_ICALL(0x360912C0u); /* 0x3608FBD2: call 0x360912c0 */ /* not lifted */ 6119 RECOMP_FLAGS_IN(); 6120 PUSH32(esp, eax); /* 0x3608FBD7: push eax */ 6121 ecx = ebp + (-0x50); /* 0x3608FBD8: lea ecx, [ebp - 0x50] */ 6122 goto L_3608FBEC; /* 0x3608FBDB: jmp 0x3608fbec */ 6123 L_3608FBDD: 6124 eax = ebp + (-0xF); /* 0x3608FBDD: lea eax, [ebp - 0xf] */ 6125 ecx = ebp + (-0x14); /* 0x3608FBE0: lea ecx, [ebp - 0x14] */ 6126 PUSH32(esp, eax); /* 0x3608FBE3: push eax */ 6127 PUSH32(esp, ecx); /* 0x3608FBE4: push ecx */ 6128 MEM8(ebp + (-0xF)) = (uint8_t)(0); /* 0x3608FBE5: mov byte ptr [ebp - 0xf], 0 */ 6129 ecx = ebp + (-0x58); /* 0x3608FBE9: lea ecx, [ebp - 0x58] */ 6130 L_3608FBEC: 6131 RECOMP_ICALL(0x3614FCB0u); /* 0x3608FBEC: call 0x3614fcb0 */ /* not lifted */ 6132 RECOMP_FLAGS_IN(); 6133 edx = eax; /* 0x3608FBF1: mov edx, eax */ 6134 eax = MEM32(edx); /* 0x3608FBF3: mov eax, dword ptr [edx] */ 6135 ecx = MEM32(edx + 0x4); /* 0x3608FBF5: mov ecx, dword ptr [edx + 4] */ 6136 L_3608FBF8: 6137 MEM32(ebp + (-0x38)) = eax; /* 0x3608FBF8: mov dword ptr [ebp - 0x38], eax */ 6138 MEM32(ebp + (-0x34)) = ecx; /* 0x3608FBFB: mov dword ptr [ebp - 0x34], ecx */ 6139 eax = ebp + (-0x34); /* 0x3608FBFE: lea eax, [ebp - 0x34] */ 6140 PUSH32(esp, eax); /* 0x3608FC01: push eax */ 6141 ecx = ebp + (-0x38); /* 0x3608FC02: lea ecx, [ebp - 0x38] */ 6142 PUSH32(esp, ecx); /* 0x3608FC05: push ecx */ 6143 ecx = ebp + (-0x60); /* 0x3608FC06: lea ecx, [ebp - 0x60] */ 6144 RECOMP_ICALL(0x3614FCB0u); /* 0x3608FC09: call 0x3614fcb0 */ /* not lifted */ 6145 RECOMP_FLAGS_IN(); 6146 edx = eax; /* 0x3608FC0E: mov edx, eax */ 6147 eax = MEM32(edx); /* 0x3608FC10: mov eax, dword ptr [edx] */ 6148 ecx = MEM32(edx + 0x4); /* 0x3608FC12: mov ecx, dword ptr [edx + 4] */ 6149 edx = MEM32(ebp + (-0x18)); /* 0x3608FC15: mov edx, dword ptr [ebp - 0x18] */ 6150 edi = POP32_VAL(esp); /* 0x3608FC18: pop edi */ 6151 MEM32(ebp + (-0x64)) = ecx; /* 0x3608FC19: mov dword ptr [ebp - 0x64], ecx */ 6152 ecx = MEM32(ebp + (-0xC)); /* 0x3608FC1C: mov ecx, dword ptr [ebp - 0xc] */ 6153 esi = POP32_VAL(esp); /* 0x3608FC1F: pop esi */ 6154 MEM32(eax + 0x10) = edx; /* 0x3608FC20: mov dword ptr [eax + 0x10], edx */ 6155 ebx = POP32_VAL(esp); /* 0x3608FC23: pop ebx */ 6156 MEM32(FS_BASE + (0)) = ecx; /* 0x3608FC24: mov dword ptr fs:[0], ecx */ 6157 esp = ebp; /* 0x3608FC2B: mov esp, ebp */ 6158 ebp = POP32_VAL(esp); /* 0x3608FC2D: pop ebp */ 6159 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FC2E: ret 4 */ 6160 RECOMP_REGS_OUT(); 6161 } 6162 6163 void sub_3608FBF8(void) { 6164 int _fpu_cmp = 0; 6165 uint32_t _cf = 0; 6166 int _df = 1; 6167 uint32_t _flag_k = FK_NONE; 6168 uint32_t _flag_a = 0, _flag_b = 0; 6169 uint32_t _itail_tgt = 0; 6170 RECOMP_REGS_LOCALS 6171 RECOMP_ENTER(0x3608FBF8u); 6172 6173 L_3608FBF8: 6174 MEM32(ebp + (-0x38)) = eax; /* 0x3608FBF8: mov dword ptr [ebp - 0x38], eax */ 6175 MEM32(ebp + (-0x34)) = ecx; /* 0x3608FBFB: mov dword ptr [ebp - 0x34], ecx */ 6176 eax = ebp + (-0x34); /* 0x3608FBFE: lea eax, [ebp - 0x34] */ 6177 PUSH32(esp, eax); /* 0x3608FC01: push eax */ 6178 ecx = ebp + (-0x38); /* 0x3608FC02: lea ecx, [ebp - 0x38] */ 6179 PUSH32(esp, ecx); /* 0x3608FC05: push ecx */ 6180 ecx = ebp + (-0x60); /* 0x3608FC06: lea ecx, [ebp - 0x60] */ 6181 RECOMP_ICALL(0x3614FCB0u); /* 0x3608FC09: call 0x3614fcb0 */ /* not lifted */ 6182 RECOMP_FLAGS_IN(); 6183 edx = eax; /* 0x3608FC0E: mov edx, eax */ 6184 eax = MEM32(edx); /* 0x3608FC10: mov eax, dword ptr [edx] */ 6185 ecx = MEM32(edx + 0x4); /* 0x3608FC12: mov ecx, dword ptr [edx + 4] */ 6186 edx = MEM32(ebp + (-0x18)); /* 0x3608FC15: mov edx, dword ptr [ebp - 0x18] */ 6187 edi = POP32_VAL(esp); /* 0x3608FC18: pop edi */ 6188 MEM32(ebp + (-0x64)) = ecx; /* 0x3608FC19: mov dword ptr [ebp - 0x64], ecx */ 6189 ecx = MEM32(ebp + (-0xC)); /* 0x3608FC1C: mov ecx, dword ptr [ebp - 0xc] */ 6190 esi = POP32_VAL(esp); /* 0x3608FC1F: pop esi */ 6191 MEM32(eax + 0x10) = edx; /* 0x3608FC20: mov dword ptr [eax + 0x10], edx */ 6192 ebx = POP32_VAL(esp); /* 0x3608FC23: pop ebx */ 6193 MEM32(FS_BASE + (0)) = ecx; /* 0x3608FC24: mov dword ptr fs:[0], ecx */ 6194 esp = ebp; /* 0x3608FC2B: mov esp, ebp */ 6195 ebp = POP32_VAL(esp); /* 0x3608FC2D: pop ebp */ 6196 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FC2E: ret 4 */ 6197 RECOMP_REGS_OUT(); 6198 } 6199 6200 void sub_3608FC40(void) { 6201 int _fpu_cmp = 0; 6202 uint32_t _cf = 0; 6203 int _df = 1; 6204 uint32_t _flag_k = FK_NONE; 6205 uint32_t _flag_a = 0, _flag_b = 0; 6206 uint32_t _itail_tgt = 0; 6207 RECOMP_REGS_LOCALS 6208 RECOMP_ENTER(0x3608FC40u); 6209 6210 L_3608FC40: 6211 PUSH32(esp, ebp); /* 0x3608FC40: push ebp */ 6212 ebp = esp; /* 0x3608FC41: mov ebp, esp */ 6213 eax = MEM32(ebp + 0x8); /* 0x3608FC43: mov eax, dword ptr [ebp + 8] */ 6214 PUSH32(esp, esi); /* 0x3608FC46: push esi */ 6215 PUSH32(esp, edi); /* 0x3608FC47: push edi */ 6216 esi = ecx; /* 0x3608FC48: mov esi, ecx */ 6217 PUSH32(esp, eax); /* 0x3608FC4A: push eax */ 6218 RECOMP_ICALL(0x3608F990u); /* 0x3608FC4B: call 0x3608f990 */ /* not lifted */ 6219 RECOMP_FLAGS_IN(); 6220 edi = eax; /* 0x3608FC50: mov edi, eax */ 6221 /* test edi, edi */ /* 0x3608FC52: test edi, edi */ 6222 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6223 _cf = 0; 6224 _flag_k = FK_TEST; 6225 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FC88; /* 0x3608FC54: je 0x3608fc88 */ 6226 L_3608FC56: 6227 edx = MEM32(esi); /* 0x3608FC56: mov edx, dword ptr [esi] */ 6228 PUSH32(esp, 2); /* 0x3608FC58: push 2 */ 6229 PUSH32(esp, 0x17u); /* 0x3608FC5A: push 0x17 */ 6230 ecx = esi; /* 0x3608FC5C: mov ecx, esi */ 6231 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608FC5E: call dword ptr [edx + 4] */ 6232 RECOMP_FLAGS_IN(); 6233 PUSH32(esp, eax); /* 0x3608FC61: push eax */ 6234 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6236 esp = esp - 8; /* 0x3608FC62: sub esp, 8 */ 6237 _flag_k = FK_CMP; 6238 ecx = esp; /* 0x3608FC65: mov ecx, esp */ 6239 PUSH32(esp, 0x362EA510u); /* 0x3608FC67: push 0x362ea510 */ 6240 RECOMP_ICALL(0x360056C0u); /* 0x3608FC6C: call 0x360056c0 */ /* not lifted */ 6241 RECOMP_FLAGS_IN(); 6242 eax = MEM32(ebp + 0x10); /* 0x3608FC71: mov eax, dword ptr [ebp + 0x10] */ 6243 ecx = MEM32(ebp + 0xC); /* 0x3608FC74: mov ecx, dword ptr [ebp + 0xc] */ 6244 PUSH32(esp, eax); /* 0x3608FC77: push eax */ 6245 PUSH32(esp, 1); /* 0x3608FC78: push 1 */ 6246 PUSH32(esp, ecx); /* 0x3608FC7A: push ecx */ 6247 ecx = edi; /* 0x3608FC7B: mov ecx, edi */ 6248 RECOMP_ICALL(0x36005680u); /* 0x3608FC7D: call 0x36005680 */ /* not lifted */ 6249 RECOMP_FLAGS_IN(); 6250 edi = POP32_VAL(esp); /* 0x3608FC82: pop edi */ 6251 esi = POP32_VAL(esp); /* 0x3608FC83: pop esi */ 6252 ebp = POP32_VAL(esp); /* 0x3608FC84: pop ebp */ 6253 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608FC85: ret 0xc */ 6254 L_3608FC88: 6255 edi = POP32_VAL(esp); /* 0x3608FC88: pop edi */ 6256 SET_LO8(eax, 1); /* 0x3608FC89: mov al, 1 */ 6257 esi = POP32_VAL(esp); /* 0x3608FC8B: pop esi */ 6258 ebp = POP32_VAL(esp); /* 0x3608FC8C: pop ebp */ 6259 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3608FC8D: ret 0xc */ 6260 RECOMP_REGS_OUT(); 6261 } 6262 6263 void sub_3608FC90(void) { 6264 int _fpu_cmp = 0; 6265 uint32_t _cf = 0; 6266 int _df = 1; 6267 uint32_t _flag_k = FK_NONE; 6268 uint32_t _flag_a = 0, _flag_b = 0; 6269 uint32_t _itail_tgt = 0; 6270 RECOMP_REGS_LOCALS 6271 RECOMP_ENTER(0x3608FC90u); 6272 6273 L_3608FC90: 6274 PUSH32(esp, ebp); /* 0x3608FC90: push ebp */ 6275 ebp = esp; /* 0x3608FC91: mov ebp, esp */ 6276 PUSH32(esp, ecx); /* 0x3608FC93: push ecx */ 6277 PUSH32(esp, esi); /* 0x3608FC94: push esi */ 6278 PUSH32(esp, edi); /* 0x3608FC95: push edi */ 6279 esi = ecx; /* 0x3608FC96: mov esi, ecx */ 6280 eax = MEM32(esi); /* 0x3608FC98: mov eax, dword ptr [esi] */ 6281 PUSH32(esp, 2); /* 0x3608FC9A: push 2 */ 6282 PUSH32(esp, 0x17u); /* 0x3608FC9C: push 0x17 */ 6283 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608FC9E: call dword ptr [eax + 4] */ 6284 RECOMP_FLAGS_IN(); 6285 eax = MEM32(esi + 0x60); /* 0x3608FCA1: mov eax, dword ptr [esi + 0x60] */ 6286 edi = MEM32(eax + 0x4); /* 0x3608FCA4: mov edi, dword ptr [eax + 4] */ 6287 /* cmp edi, MEM32(eax + 0x8) */ /* 0x3608FCA7: cmp edi, dword ptr [eax + 8] */ 6288 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6290 _flag_k = FK_CMP; 6291 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FCF0; /* 0x3608FCAA: je 0x3608fcf0 */ 6292 L_3608FCAC: 6293 PUSH32(esp, ebx); /* 0x3608FCAC: push ebx */ 6294 L_3608FCAD: 6295 ecx = MEM32(edi + 0x4); /* 0x3608FCAD: mov ecx, dword ptr [edi + 4] */ 6296 ebx = MEM32(edi); /* 0x3608FCB0: mov ebx, dword ptr [edi] */ 6297 edx = MEM32(esi); /* 0x3608FCB2: mov edx, dword ptr [esi] */ 6298 MEM32(ebp + (-0x4)) = ecx; /* 0x3608FCB4: mov dword ptr [ebp - 4], ecx */ 6299 PUSH32(esp, ebx); /* 0x3608FCB7: push ebx */ 6300 ecx = esi; /* 0x3608FCB8: mov ecx, esi */ 6301 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3608FCBA: call dword ptr [edx + 0x10] */ 6302 RECOMP_FLAGS_IN(); 6303 /* test LO8(eax), LO8(eax) */ /* 0x3608FCBD: test al, al */ 6304 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6305 _cf = 0; 6306 _flag_k = FK_NARROW(FK_TEST, 24); 6307 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608FCCD; /* 0x3608FCBF: jne 0x3608fccd */ 6308 L_3608FCC1: 6309 ecx = MEM32(ebp + (-0x4)); /* 0x3608FCC1: mov ecx, dword ptr [ebp - 4] */ 6310 eax = MEM32(esi); /* 0x3608FCC4: mov eax, dword ptr [esi] */ 6311 PUSH32(esp, ecx); /* 0x3608FCC6: push ecx */ 6312 PUSH32(esp, ebx); /* 0x3608FCC7: push ebx */ 6313 ecx = esi; /* 0x3608FCC8: mov ecx, esi */ 6314 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3608FCCA: call dword ptr [eax + 0xc] */ 6315 RECOMP_FLAGS_IN(); 6316 L_3608FCCD: 6317 eax = MEM32(edi + 0x4); /* 0x3608FCCD: mov eax, dword ptr [edi + 4] */ 6318 /* cmp eax, 0x499602D2u */ /* 0x3608FCD0: cmp eax, 0x499602d2 */ 6319 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x499602D2u); 6320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6321 _flag_k = FK_CMP; 6322 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FCE2; /* 0x3608FCD5: je 0x3608fce2 */ 6323 L_3608FCD7: 6324 edx = MEM32(esi); /* 0x3608FCD7: mov edx, dword ptr [esi] */ 6325 PUSH32(esp, eax); /* 0x3608FCD9: push eax */ 6326 eax = MEM32(edi); /* 0x3608FCDA: mov eax, dword ptr [edi] */ 6327 PUSH32(esp, eax); /* 0x3608FCDC: push eax */ 6328 ecx = esi; /* 0x3608FCDD: mov ecx, esi */ 6329 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608FCDF: call dword ptr [edx + 8] */ 6330 RECOMP_FLAGS_IN(); 6331 L_3608FCE2: 6332 ecx = MEM32(esi + 0x60); /* 0x3608FCE2: mov ecx, dword ptr [esi + 0x60] */ 6333 eax = MEM32(ecx + 0x8); /* 0x3608FCE5: mov eax, dword ptr [ecx + 8] */ 6334 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 6335 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6336 edi = edi + 8; /* 0x3608FCE8: add edi, 8 */ 6337 _flag_k = FK_ADD; 6338 /* cmp edi, eax */ /* 0x3608FCEB: cmp edi, eax */ 6339 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6341 _flag_k = FK_CMP; 6342 RECOMP_BACKEDGE(); 6343 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FCAD; /* 0x3608FCED: jne 0x3608fcad */ 6344 L_3608FCEF: 6345 ebx = POP32_VAL(esp); /* 0x3608FCEF: pop ebx */ 6346 L_3608FCF0: 6347 edi = POP32_VAL(esp); /* 0x3608FCF0: pop edi */ 6348 esi = POP32_VAL(esp); /* 0x3608FCF1: pop esi */ 6349 esp = ebp; /* 0x3608FCF2: mov esp, ebp */ 6350 ebp = POP32_VAL(esp); /* 0x3608FCF4: pop ebp */ 6351 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608FCF5: ret */ 6352 RECOMP_REGS_OUT(); 6353 } 6354 6355 void sub_3608FD00(void) { 6356 int _fpu_cmp = 0; 6357 uint32_t _cf = 0; 6358 int _df = 1; 6359 uint32_t _flag_k = FK_NONE; 6360 uint32_t _flag_a = 0, _flag_b = 0; 6361 uint32_t _itail_tgt = 0; 6362 RECOMP_REGS_LOCALS 6363 RECOMP_ENTER(0x3608FD00u); 6364 6365 L_3608FD00: 6366 PUSH32(esp, ebp); /* 0x3608FD00: push ebp */ 6367 ebp = esp; /* 0x3608FD01: mov ebp, esp */ 6368 PUSH32(esp, ecx); /* 0x3608FD03: push ecx */ 6369 PUSH32(esp, esi); /* 0x3608FD04: push esi */ 6370 PUSH32(esp, edi); /* 0x3608FD05: push edi */ 6371 esi = ecx; /* 0x3608FD06: mov esi, ecx */ 6372 eax = MEM32(esi); /* 0x3608FD08: mov eax, dword ptr [esi] */ 6373 PUSH32(esp, 2); /* 0x3608FD0A: push 2 */ 6374 PUSH32(esp, 0x17u); /* 0x3608FD0C: push 0x17 */ 6375 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608FD0E: call dword ptr [eax + 4] */ 6376 RECOMP_FLAGS_IN(); 6377 eax = MEM32(esi + 0x5C); /* 0x3608FD11: mov eax, dword ptr [esi + 0x5c] */ 6378 edi = MEM32(eax + 0x4); /* 0x3608FD14: mov edi, dword ptr [eax + 4] */ 6379 /* cmp edi, MEM32(eax + 0x8) */ /* 0x3608FD17: cmp edi, dword ptr [eax + 8] */ 6380 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6382 _flag_k = FK_CMP; 6383 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FD59; /* 0x3608FD1A: je 0x3608fd59 */ 6384 L_3608FD1C: 6385 PUSH32(esp, ebx); /* 0x3608FD1C: push ebx */ 6386 L_3608FD1D: 6387 ecx = MEM32(edi + 0x4); /* 0x3608FD1D: mov ecx, dword ptr [edi + 4] */ 6388 ebx = MEM32(edi); /* 0x3608FD20: mov ebx, dword ptr [edi] */ 6389 edx = MEM32(esi); /* 0x3608FD22: mov edx, dword ptr [esi] */ 6390 MEM32(ebp + (-0x4)) = ecx; /* 0x3608FD24: mov dword ptr [ebp - 4], ecx */ 6391 PUSH32(esp, ebx); /* 0x3608FD27: push ebx */ 6392 ecx = esi; /* 0x3608FD28: mov ecx, esi */ 6393 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3608FD2A: call dword ptr [edx + 0x10] */ 6394 RECOMP_FLAGS_IN(); 6395 /* test LO8(eax), LO8(eax) */ /* 0x3608FD2D: test al, al */ 6396 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6397 _cf = 0; 6398 _flag_k = FK_NARROW(FK_TEST, 24); 6399 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608FD3D; /* 0x3608FD2F: jne 0x3608fd3d */ 6400 L_3608FD31: 6401 ecx = MEM32(ebp + (-0x4)); /* 0x3608FD31: mov ecx, dword ptr [ebp - 4] */ 6402 eax = MEM32(esi); /* 0x3608FD34: mov eax, dword ptr [esi] */ 6403 PUSH32(esp, ecx); /* 0x3608FD36: push ecx */ 6404 PUSH32(esp, ebx); /* 0x3608FD37: push ebx */ 6405 ecx = esi; /* 0x3608FD38: mov ecx, esi */ 6406 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3608FD3A: call dword ptr [eax + 0xc] */ 6407 RECOMP_FLAGS_IN(); 6408 L_3608FD3D: 6409 eax = MEM32(edi + 0x4); /* 0x3608FD3D: mov eax, dword ptr [edi + 4] */ 6410 ecx = MEM32(edi); /* 0x3608FD40: mov ecx, dword ptr [edi] */ 6411 edx = MEM32(esi); /* 0x3608FD42: mov edx, dword ptr [esi] */ 6412 PUSH32(esp, eax); /* 0x3608FD44: push eax */ 6413 PUSH32(esp, ecx); /* 0x3608FD45: push ecx */ 6414 ecx = esi; /* 0x3608FD46: mov ecx, esi */ 6415 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608FD48: call dword ptr [edx + 8] */ 6416 RECOMP_FLAGS_IN(); 6417 edx = MEM32(esi + 0x5C); /* 0x3608FD4B: mov edx, dword ptr [esi + 0x5c] */ 6418 eax = MEM32(edx + 0x8); /* 0x3608FD4E: mov eax, dword ptr [edx + 8] */ 6419 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 6420 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6421 edi = edi + 8; /* 0x3608FD51: add edi, 8 */ 6422 _flag_k = FK_ADD; 6423 /* cmp edi, eax */ /* 0x3608FD54: cmp edi, eax */ 6424 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6426 _flag_k = FK_CMP; 6427 RECOMP_BACKEDGE(); 6428 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FD1D; /* 0x3608FD56: jne 0x3608fd1d */ 6429 L_3608FD58: 6430 ebx = POP32_VAL(esp); /* 0x3608FD58: pop ebx */ 6431 L_3608FD59: 6432 edi = POP32_VAL(esp); /* 0x3608FD59: pop edi */ 6433 esi = POP32_VAL(esp); /* 0x3608FD5A: pop esi */ 6434 esp = ebp; /* 0x3608FD5B: mov esp, ebp */ 6435 ebp = POP32_VAL(esp); /* 0x3608FD5D: pop ebp */ 6436 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608FD5E: ret */ 6437 RECOMP_REGS_OUT(); 6438 } 6439 6440 void sub_3608FD60(void) { 6441 int _fpu_cmp = 0; 6442 uint32_t _cf = 0; 6443 int _df = 1; 6444 uint32_t _flag_k = FK_NONE; 6445 uint32_t _flag_a = 0, _flag_b = 0; 6446 uint32_t _itail_tgt = 0; 6447 RECOMP_REGS_LOCALS 6448 RECOMP_ENTER(0x3608FD60u); 6449 6450 L_3608FD60: 6451 PUSH32(esp, esi); /* 0x3608FD60: push esi */ 6452 PUSH32(esp, edi); /* 0x3608FD61: push edi */ 6453 edi = ecx; /* 0x3608FD62: mov edi, ecx */ 6454 eax = MEM32(edi + 0x5C); /* 0x3608FD64: mov eax, dword ptr [edi + 0x5c] */ 6455 esi = MEM32(eax + 0x4); /* 0x3608FD67: mov esi, dword ptr [eax + 4] */ 6456 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608FD6A: cmp esi, dword ptr [eax + 8] */ 6457 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6458 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6459 _flag_k = FK_CMP; 6460 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FD97; /* 0x3608FD6D: je 0x3608fd97 */ 6461 L_3608FD6F: 6462 ecx = MEM32(esi); /* 0x3608FD6F: mov ecx, dword ptr [esi] */ 6463 eax = MEM32(edi); /* 0x3608FD71: mov eax, dword ptr [edi] */ 6464 PUSH32(esp, 2); /* 0x3608FD73: push 2 */ 6465 PUSH32(esp, ecx); /* 0x3608FD75: push ecx */ 6466 ecx = edi; /* 0x3608FD76: mov ecx, edi */ 6467 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608FD78: call dword ptr [eax + 4] */ 6468 RECOMP_FLAGS_IN(); 6469 eax = MEM32(esi); /* 0x3608FD7B: mov eax, dword ptr [esi] */ 6470 edx = MEM32(edi); /* 0x3608FD7D: mov edx, dword ptr [edi] */ 6471 PUSH32(esp, 2); /* 0x3608FD7F: push 2 */ 6472 PUSH32(esp, eax); /* 0x3608FD81: push eax */ 6473 ecx = edi; /* 0x3608FD82: mov ecx, edi */ 6474 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608FD84: call dword ptr [edx + 4] */ 6475 RECOMP_FLAGS_IN(); 6476 MEM32(esi + 0x4) = eax; /* 0x3608FD87: mov dword ptr [esi + 4], eax */ 6477 ecx = MEM32(edi + 0x5C); /* 0x3608FD8A: mov ecx, dword ptr [edi + 0x5c] */ 6478 eax = MEM32(ecx + 0x8); /* 0x3608FD8D: mov eax, dword ptr [ecx + 8] */ 6479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 6480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6481 esi = esi + 8; /* 0x3608FD90: add esi, 8 */ 6482 _flag_k = FK_ADD; 6483 /* cmp esi, eax */ /* 0x3608FD93: cmp esi, eax */ 6484 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6486 _flag_k = FK_CMP; 6487 RECOMP_BACKEDGE(); 6488 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FD6F; /* 0x3608FD95: jne 0x3608fd6f */ 6489 L_3608FD97: 6490 edi = POP32_VAL(esp); /* 0x3608FD97: pop edi */ 6491 esi = POP32_VAL(esp); /* 0x3608FD98: pop esi */ 6492 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608FD99: ret */ 6493 RECOMP_REGS_OUT(); 6494 } 6495 6496 void sub_3608FDA0(void) { 6497 int _fpu_cmp = 0; 6498 uint32_t _cf = 0; 6499 int _df = 1; 6500 uint32_t _flag_k = FK_NONE; 6501 uint32_t _flag_a = 0, _flag_b = 0; 6502 uint32_t _itail_tgt = 0; 6503 RECOMP_REGS_LOCALS 6504 RECOMP_ENTER(0x3608FDA0u); 6505 6506 L_3608FDA0: 6507 PUSH32(esp, ebp); /* 0x3608FDA0: push ebp */ 6508 ebp = esp; /* 0x3608FDA1: mov ebp, esp */ 6509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 6510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6511 esp = esp - 0x24u; /* 0x3608FDA3: sub esp, 0x24 */ 6512 _flag_k = FK_CMP; 6513 PUSH32(esp, ebx); /* 0x3608FDA6: push ebx */ 6514 PUSH32(esp, esi); /* 0x3608FDA7: push esi */ 6515 esi = MEM32(ebp + 0x8); /* 0x3608FDA8: mov esi, dword ptr [ebp + 8] */ 6516 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6517 ebx = 0; /* 0x3608FDAB: xor ebx, ebx */ 6518 _cf = 0; 6519 _flag_k = FK_TEST; 6520 /* cmp esi, ebx */ /* 0x3608FDAD: cmp esi, ebx */ 6521 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6523 _flag_k = FK_CMP; 6524 PUSH32(esp, edi); /* 0x3608FDAF: push edi */ 6525 edi = ecx; /* 0x3608FDB0: mov edi, ecx */ 6526 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FDBF; /* 0x3608FDB2: jne 0x3608fdbf */ 6527 L_3608FDB4: 6528 edi = POP32_VAL(esp); /* 0x3608FDB4: pop edi */ 6529 esi = POP32_VAL(esp); /* 0x3608FDB5: pop esi */ 6530 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6531 eax = 0; /* 0x3608FDB6: xor eax, eax */ 6532 _cf = 0; 6533 _flag_k = FK_TEST; 6534 ebx = POP32_VAL(esp); /* 0x3608FDB8: pop ebx */ 6535 esp = ebp; /* 0x3608FDB9: mov esp, ebp */ 6536 ebp = POP32_VAL(esp); /* 0x3608FDBB: pop ebp */ 6537 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FDBC: ret 4 */ 6538 L_3608FDBF: 6539 eax = MEM32(edi); /* 0x3608FDBF: mov eax, dword ptr [edi] */ 6540 PUSH32(esp, 2); /* 0x3608FDC1: push 2 */ 6541 PUSH32(esp, 0x1Eu); /* 0x3608FDC3: push 0x1e */ 6542 ecx = edi; /* 0x3608FDC5: mov ecx, edi */ 6543 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3608FDC7: call dword ptr [eax + 4] */ 6544 RECOMP_FLAGS_IN(); 6545 /* test eax, 0x00800000u */ /* 0x3608FDCA: test eax, 0x800000 */ 6546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00800000u); 6547 _cf = 0; 6548 _flag_k = FK_TEST; 6549 MEM32(ebp + (-0x10)) = eax; /* 0x3608FDCF: mov dword ptr [ebp - 0x10], eax */ 6550 MEM32(ebp + (-0x18)) = ebx; /* 0x3608FDD2: mov dword ptr [ebp - 0x18], ebx */ 6551 MEM32(ebp + (-0x14)) = ebx; /* 0x3608FDD5: mov dword ptr [ebp - 0x14], ebx */ 6552 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FE27; /* 0x3608FDD8: je 0x3608fe27 */ 6553 L_3608FDDA: 6554 ecx = MEM32(esi + 0x4); /* 0x3608FDDA: mov ecx, dword ptr [esi + 4] */ 6555 edx = MEM32(esi + 0x8); /* 0x3608FDDD: mov edx, dword ptr [esi + 8] */ 6556 MEM32(ebp + (-0x18)) = ecx; /* 0x3608FDE0: mov dword ptr [ebp - 0x18], ecx */ 6557 ecx = esi; /* 0x3608FDE3: mov ecx, esi */ 6558 MEM32(ebp + (-0x14)) = edx; /* 0x3608FDE5: mov dword ptr [ebp - 0x14], edx */ 6559 RECOMP_ICALL(0x36072000u); /* 0x3608FDE8: call 0x36072000 */ /* not lifted */ 6560 RECOMP_FLAGS_IN(); 6561 ecx = MEM32(eax + 0x74); /* 0x3608FDED: mov ecx, dword ptr [eax + 0x74] */ 6562 edx = MEM32(esi + 0x8); /* 0x3608FDF0: mov edx, dword ptr [esi + 8] */ 6563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u); 6564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6565 eax = eax + 0x70u; /* 0x3608FDF3: add eax, 0x70 */ 6566 _flag_k = FK_ADD; 6567 /* cmp ecx, edx */ /* 0x3608FDF6: cmp ecx, edx */ 6568 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6570 _flag_k = FK_CMP; 6571 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FE05; /* 0x3608FDF8: jne 0x3608fe05 */ 6572 L_3608FDFA: 6573 edx = MEM32(eax); /* 0x3608FDFA: mov edx, dword ptr [eax] */ 6574 /* cmp edx, MEM32(esi + 0x4) */ /* 0x3608FDFC: cmp edx, dword ptr [esi + 4] */ 6575 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6577 _flag_k = FK_CMP; 6578 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FF6E; /* 0x3608FDFF: je 0x3608ff6e */ 6579 L_3608FE05: 6580 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x3608FE05: mov al, byte ptr [esi + 0x128] */ 6581 /* test LO8(eax), LO8(eax) */ /* 0x3608FE0B: test al, al */ 6582 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6583 _cf = 0; 6584 _flag_k = FK_NARROW(FK_TEST, 24); 6585 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FE1C; /* 0x3608FE0D: je 0x3608fe1c */ 6586 L_3608FE0F: 6587 PUSH32(esp, 0x361C5D10u); /* 0x3608FE0F: push 0x361c5d10 */ 6588 PUSH32(esp, esi); /* 0x3608FE14: push esi */ 6589 ecx = edi; /* 0x3608FE15: mov ecx, edi */ 6590 RECOMP_ICALL(0x360028F0u); /* 0x3608FE17: call 0x360028f0 */ /* not lifted */ 6591 RECOMP_FLAGS_IN(); 6592 L_3608FE1C: 6593 edi = POP32_VAL(esp); /* 0x3608FE1C: pop edi */ 6594 esi = POP32_VAL(esp); /* 0x3608FE1D: pop esi */ 6595 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6596 eax = 0; /* 0x3608FE1E: xor eax, eax */ 6597 _cf = 0; 6598 _flag_k = FK_TEST; 6599 ebx = POP32_VAL(esp); /* 0x3608FE20: pop ebx */ 6600 esp = ebp; /* 0x3608FE21: mov esp, ebp */ 6601 ebp = POP32_VAL(esp); /* 0x3608FE23: pop ebp */ 6602 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FE24: ret 4 */ 6603 L_3608FE27: 6604 /* test eax, 0x00200000u */ /* 0x3608FE27: test eax, 0x200000 */ 6605 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00200000u); 6606 _cf = 0; 6607 _flag_k = FK_TEST; 6608 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FE7C; /* 0x3608FE2C: je 0x3608fe7c */ 6609 L_3608FE2E: 6610 ecx = esi; /* 0x3608FE2E: mov ecx, esi */ 6611 RECOMP_ICALL(0x36072000u); /* 0x3608FE30: call 0x36072000 */ /* not lifted */ 6612 RECOMP_FLAGS_IN(); 6613 ecx = MEM32(eax + 0x70); /* 0x3608FE35: mov ecx, dword ptr [eax + 0x70] */ 6614 MEM32(ebp + (-0x18)) = ecx; /* 0x3608FE38: mov dword ptr [ebp - 0x18], ecx */ 6615 edx = MEM32(eax + 0x74); /* 0x3608FE3B: mov edx, dword ptr [eax + 0x74] */ 6616 ecx = MEM32(esi + 0x16C); /* 0x3608FE3E: mov ecx, dword ptr [esi + 0x16c] */ 6617 PUSH32(esp, ebx); /* 0x3608FE44: push ebx */ 6618 PUSH32(esp, ebx); /* 0x3608FE45: push ebx */ 6619 eax = ebp + (-0x18); /* 0x3608FE46: lea eax, [ebp - 0x18] */ 6620 PUSH32(esp, eax); /* 0x3608FE49: push eax */ 6621 MEM32(ebp + (-0x14)) = edx; /* 0x3608FE4A: mov dword ptr [ebp - 0x14], edx */ 6622 RECOMP_ICALL(0x36079880u); /* 0x3608FE4D: call 0x36079880 */ /* not lifted */ 6623 RECOMP_FLAGS_IN(); 6624 /* test LO8(eax), LO8(eax) */ /* 0x3608FE52: test al, al */ 6625 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6626 _cf = 0; 6627 _flag_k = FK_NARROW(FK_TEST, 24); 6628 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FF6E; /* 0x3608FE54: je 0x3608ff6e */ 6629 L_3608FE5A: 6630 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x3608FE5A: mov al, byte ptr [esi + 0x128] */ 6631 /* test LO8(eax), LO8(eax) */ /* 0x3608FE60: test al, al */ 6632 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6633 _cf = 0; 6634 _flag_k = FK_NARROW(FK_TEST, 24); 6635 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FE71; /* 0x3608FE62: je 0x3608fe71 */ 6636 L_3608FE64: 6637 PUSH32(esp, 0x361C5CE0u); /* 0x3608FE64: push 0x361c5ce0 */ 6638 PUSH32(esp, esi); /* 0x3608FE69: push esi */ 6639 ecx = edi; /* 0x3608FE6A: mov ecx, edi */ 6640 RECOMP_ICALL(0x360028F0u); /* 0x3608FE6C: call 0x360028f0 */ /* not lifted */ 6641 RECOMP_FLAGS_IN(); 6642 L_3608FE71: 6643 edi = POP32_VAL(esp); /* 0x3608FE71: pop edi */ 6644 esi = POP32_VAL(esp); /* 0x3608FE72: pop esi */ 6645 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6646 eax = 0; /* 0x3608FE73: xor eax, eax */ 6647 _cf = 0; 6648 _flag_k = FK_TEST; 6649 ebx = POP32_VAL(esp); /* 0x3608FE75: pop ebx */ 6650 esp = ebp; /* 0x3608FE76: mov esp, ebp */ 6651 ebp = POP32_VAL(esp); /* 0x3608FE78: pop ebp */ 6652 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FE79: ret 4 */ 6653 L_3608FE7C: 6654 /* test eax, 0x00400000u */ /* 0x3608FE7C: test eax, 0x400000 */ 6655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00400000u); 6656 _cf = 0; 6657 _flag_k = FK_TEST; 6658 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FF10; /* 0x3608FE81: je 0x3608ff10 */ 6659 L_3608FE87: 6660 ecx = esi; /* 0x3608FE87: mov ecx, esi */ 6661 RECOMP_ICALL(0x36072000u); /* 0x3608FE89: call 0x36072000 */ /* not lifted */ 6662 RECOMP_FLAGS_IN(); 6663 ecx = eax; /* 0x3608FE8E: mov ecx, eax */ 6664 eax = MEM32(ecx + 0x70); /* 0x3608FE90: mov eax, dword ptr [ecx + 0x70] */ 6665 /* cmp eax, ebx */ /* 0x3608FE93: cmp eax, ebx */ 6666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6668 _flag_k = FK_CMP; 6669 MEM32(ebp + (-0x18)) = eax; /* 0x3608FE95: mov dword ptr [ebp - 0x18], eax */ 6670 ecx = MEM32(ecx + 0x74); /* 0x3608FE98: mov ecx, dword ptr [ecx + 0x74] */ 6671 MEM32(ebp + (-0x14)) = ecx; /* 0x3608FE9B: mov dword ptr [ebp - 0x14], ecx */ 6672 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FEC6; /* 0x3608FE9E: jne 0x3608fec6 */ 6673 L_3608FEA0: 6674 /* cmp ecx, ebx */ /* 0x3608FEA0: cmp ecx, ebx */ 6675 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6677 _flag_k = FK_CMP; 6678 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FEC6; /* 0x3608FEA2: jne 0x3608fec6 */ 6679 L_3608FEA4: 6680 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x3608FEA4: mov al, byte ptr [esi + 0x128] */ 6681 /* test LO8(eax), LO8(eax) */ /* 0x3608FEAA: test al, al */ 6682 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6683 _cf = 0; 6684 _flag_k = FK_NARROW(FK_TEST, 24); 6685 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FEBB; /* 0x3608FEAC: je 0x3608febb */ 6686 L_3608FEAE: 6687 PUSH32(esp, 0x361C5CA4u); /* 0x3608FEAE: push 0x361c5ca4 */ 6688 PUSH32(esp, esi); /* 0x3608FEB3: push esi */ 6689 ecx = edi; /* 0x3608FEB4: mov ecx, edi */ 6690 RECOMP_ICALL(0x360028F0u); /* 0x3608FEB6: call 0x360028f0 */ /* not lifted */ 6691 RECOMP_FLAGS_IN(); 6692 L_3608FEBB: 6693 edi = POP32_VAL(esp); /* 0x3608FEBB: pop edi */ 6694 esi = POP32_VAL(esp); /* 0x3608FEBC: pop esi */ 6695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6696 eax = 0; /* 0x3608FEBD: xor eax, eax */ 6697 _cf = 0; 6698 _flag_k = FK_TEST; 6699 ebx = POP32_VAL(esp); /* 0x3608FEBF: pop ebx */ 6700 esp = ebp; /* 0x3608FEC0: mov esp, ebp */ 6701 ebp = POP32_VAL(esp); /* 0x3608FEC2: pop ebp */ 6702 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FEC3: ret 4 */ 6703 L_3608FEC6: 6704 ecx = MEM32(esi + 0x188); /* 0x3608FEC6: mov ecx, dword ptr [esi + 0x188] */ 6705 PUSH32(esp, 2); /* 0x3608FECC: push 2 */ 6706 RECOMP_ICALL(0x36059BA0u); /* 0x3608FECE: call 0x36059ba0 */ /* not lifted */ 6707 RECOMP_FLAGS_IN(); 6708 /* test LO8(eax), LO8(eax) */ /* 0x3608FED3: test al, al */ 6709 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6710 _cf = 0; 6711 _flag_k = FK_NARROW(FK_TEST, 24); 6712 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608FEEF; /* 0x3608FED5: jne 0x3608feef */ 6713 L_3608FED7: 6714 PUSH32(esp, 0x361C5C84u); /* 0x3608FED7: push 0x361c5c84 */ 6715 PUSH32(esp, esi); /* 0x3608FEDC: push esi */ 6716 ecx = edi; /* 0x3608FEDD: mov ecx, edi */ 6717 RECOMP_ICALL(0x360028F0u); /* 0x3608FEDF: call 0x360028f0 */ /* not lifted */ 6718 RECOMP_FLAGS_IN(); 6719 edi = POP32_VAL(esp); /* 0x3608FEE4: pop edi */ 6720 esi = POP32_VAL(esp); /* 0x3608FEE5: pop esi */ 6721 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6722 eax = 0; /* 0x3608FEE6: xor eax, eax */ 6723 _cf = 0; 6724 _flag_k = FK_TEST; 6725 ebx = POP32_VAL(esp); /* 0x3608FEE8: pop ebx */ 6726 esp = ebp; /* 0x3608FEE9: mov esp, ebp */ 6727 ebp = POP32_VAL(esp); /* 0x3608FEEB: pop ebp */ 6728 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FEEC: ret 4 */ 6729 L_3608FEEF: 6730 ecx = MEM32(esi + 0x16C); /* 0x3608FEEF: mov ecx, dword ptr [esi + 0x16c] */ 6731 PUSH32(esp, ebx); /* 0x3608FEF5: push ebx */ 6732 PUSH32(esp, 1); /* 0x3608FEF6: push 1 */ 6733 edx = ebp + (-0x18); /* 0x3608FEF8: lea edx, [ebp - 0x18] */ 6734 PUSH32(esp, edx); /* 0x3608FEFB: push edx */ 6735 RECOMP_ICALL(0x36079880u); /* 0x3608FEFC: call 0x36079880 */ /* not lifted */ 6736 RECOMP_FLAGS_IN(); 6737 /* test LO8(eax), LO8(eax) */ /* 0x3608FF01: test al, al */ 6738 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6739 _cf = 0; 6740 _flag_k = FK_NARROW(FK_TEST, 24); 6741 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608FF6E; /* 0x3608FF03: jne 0x3608ff6e */ 6742 L_3608FF05: 6743 edi = POP32_VAL(esp); /* 0x3608FF05: pop edi */ 6744 esi = POP32_VAL(esp); /* 0x3608FF06: pop esi */ 6745 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6746 eax = 0; /* 0x3608FF07: xor eax, eax */ 6747 _cf = 0; 6748 _flag_k = FK_TEST; 6749 ebx = POP32_VAL(esp); /* 0x3608FF09: pop ebx */ 6750 esp = ebp; /* 0x3608FF0A: mov esp, ebp */ 6751 ebp = POP32_VAL(esp); /* 0x3608FF0C: pop ebp */ 6752 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FF0D: ret 4 */ 6753 L_3608FF10: 6754 /* test eax, 0x80000000u */ /* 0x3608FF10: test eax, 0x80000000 */ 6755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80000000u); 6756 _cf = 0; 6757 _flag_k = FK_TEST; 6758 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FF6E; /* 0x3608FF15: je 0x3608ff6e */ 6759 L_3608FF17: 6760 ecx = MEM32(esi + 0x16C); /* 0x3608FF17: mov ecx, dword ptr [esi + 0x16c] */ 6761 eax = MEM32(ecx + 0x58); /* 0x3608FF1D: mov eax, dword ptr [ecx + 0x58] */ 6762 /* cmp eax, ebx */ /* 0x3608FF20: cmp eax, ebx */ 6763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6765 _flag_k = FK_CMP; 6766 MEM32(ebp + (-0x18)) = eax; /* 0x3608FF22: mov dword ptr [ebp - 0x18], eax */ 6767 edx = MEM32(ecx + 0x5C); /* 0x3608FF25: mov edx, dword ptr [ecx + 0x5c] */ 6768 MEM32(ebp + (-0x14)) = edx; /* 0x3608FF28: mov dword ptr [ebp - 0x14], edx */ 6769 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FF53; /* 0x3608FF2B: jne 0x3608ff53 */ 6770 L_3608FF2D: 6771 /* cmp edx, ebx */ /* 0x3608FF2D: cmp edx, ebx */ 6772 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 6773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6774 _flag_k = FK_CMP; 6775 if (CMP_NE(_flag_a, _flag_b)) goto L_3608FF53; /* 0x3608FF2F: jne 0x3608ff53 */ 6776 L_3608FF31: 6777 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x3608FF31: mov al, byte ptr [esi + 0x128] */ 6778 /* test LO8(eax), LO8(eax) */ /* 0x3608FF37: test al, al */ 6779 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6780 _cf = 0; 6781 _flag_k = FK_NARROW(FK_TEST, 24); 6782 if (TEST_Z(_flag_a, _flag_b)) goto L_3608FF48; /* 0x3608FF39: je 0x3608ff48 */ 6783 L_3608FF3B: 6784 PUSH32(esp, 0x361C5C4Cu); /* 0x3608FF3B: push 0x361c5c4c */ 6785 PUSH32(esp, esi); /* 0x3608FF40: push esi */ 6786 ecx = edi; /* 0x3608FF41: mov ecx, edi */ 6787 RECOMP_ICALL(0x360028F0u); /* 0x3608FF43: call 0x360028f0 */ /* not lifted */ 6788 RECOMP_FLAGS_IN(); 6789 L_3608FF48: 6790 edi = POP32_VAL(esp); /* 0x3608FF48: pop edi */ 6791 esi = POP32_VAL(esp); /* 0x3608FF49: pop esi */ 6792 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6793 eax = 0; /* 0x3608FF4A: xor eax, eax */ 6794 _cf = 0; 6795 _flag_k = FK_TEST; 6796 ebx = POP32_VAL(esp); /* 0x3608FF4C: pop ebx */ 6797 esp = ebp; /* 0x3608FF4D: mov esp, ebp */ 6798 ebp = POP32_VAL(esp); /* 0x3608FF4F: pop ebp */ 6799 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FF50: ret 4 */ 6800 L_3608FF53: 6801 PUSH32(esp, ebx); /* 0x3608FF53: push ebx */ 6802 PUSH32(esp, 1); /* 0x3608FF54: push 1 */ 6803 eax = ebp + (-0x18); /* 0x3608FF56: lea eax, [ebp - 0x18] */ 6804 PUSH32(esp, eax); /* 0x3608FF59: push eax */ 6805 RECOMP_ICALL(0x36079880u); /* 0x3608FF5A: call 0x36079880 */ /* not lifted */ 6806 RECOMP_FLAGS_IN(); 6807 /* test LO8(eax), LO8(eax) */ /* 0x3608FF5F: test al, al */ 6808 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6809 _cf = 0; 6810 _flag_k = FK_NARROW(FK_TEST, 24); 6811 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608FF6E; /* 0x3608FF61: jne 0x3608ff6e */ 6812 L_3608FF63: 6813 edi = POP32_VAL(esp); /* 0x3608FF63: pop edi */ 6814 esi = POP32_VAL(esp); /* 0x3608FF64: pop esi */ 6815 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6816 eax = 0; /* 0x3608FF65: xor eax, eax */ 6817 _cf = 0; 6818 _flag_k = FK_TEST; 6819 ebx = POP32_VAL(esp); /* 0x3608FF67: pop ebx */ 6820 esp = ebp; /* 0x3608FF68: mov esp, ebp */ 6821 ebp = POP32_VAL(esp); /* 0x3608FF6A: pop ebp */ 6822 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FF6B: ret 4 */ 6823 L_3608FF6E: 6824 ecx = esi; /* 0x3608FF6E: mov ecx, esi */ 6825 RECOMP_ICALL(0x36071DD0u); /* 0x3608FF70: call 0x36071dd0 */ /* not lifted */ 6826 RECOMP_FLAGS_IN(); 6827 /* cmp MEM32(eax + 0x10), 0xFFFFFFFFu */ /* 0x3608FF75: cmp dword ptr [eax + 0x10], -1 */ 6828 _flag_a = (uint32_t)(MEM32(eax + 0x10)); _flag_b = (uint32_t)(0xFFFFFFFFu); 6829 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6830 _flag_k = FK_CMP; 6831 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608FFA6; /* 0x3608FF79: je 0x3608ffa6 */ 6832 L_3608FF7B: 6833 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x3608FF7B: mov al, byte ptr [esi + 0x128] */ 6834 /* test LO8(eax), LO8(eax) */ /* 0x3608FF81: test al, al */ 6835 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6836 _cf = 0; 6837 _flag_k = FK_NARROW(FK_TEST, 24); 6838 if (TEST_Z(_flag_a, _flag_b)) goto L_36090126; /* 0x3608FF83: je 0x36090126 */ 6839 L_3608FF89: 6840 PUSH32(esp, ebx); /* 0x3608FF89: push ebx */ 6841 PUSH32(esp, 0x361C5C34u); /* 0x3608FF8A: push 0x361c5c34 */ 6842 RECOMP_ICALL(0x3601C590u); /* 0x3608FF8F: call 0x3601c590 */ /* not lifted */ 6843 RECOMP_FLAGS_IN(); 6844 ecx = eax; /* 0x3608FF94: mov ecx, eax */ 6845 RECOMP_ICALL(0x3601C8C0u); /* 0x3608FF96: call 0x3601c8c0 */ /* not lifted */ 6846 RECOMP_FLAGS_IN(); 6847 edi = POP32_VAL(esp); /* 0x3608FF9B: pop edi */ 6848 esi = POP32_VAL(esp); /* 0x3608FF9C: pop esi */ 6849 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6850 eax = 0; /* 0x3608FF9D: xor eax, eax */ 6851 _cf = 0; 6852 _flag_k = FK_TEST; 6853 ebx = POP32_VAL(esp); /* 0x3608FF9F: pop ebx */ 6854 esp = ebp; /* 0x3608FFA0: mov esp, ebp */ 6855 ebp = POP32_VAL(esp); /* 0x3608FFA2: pop ebp */ 6856 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608FFA3: ret 4 */ 6857 L_3608FFA6: 6858 edx = MEM32(edi); /* 0x3608FFA6: mov edx, dword ptr [edi] */ 6859 PUSH32(esp, 0x11Fu); /* 0x3608FFA8: push 0x11f */ 6860 ecx = edi; /* 0x3608FFAD: mov ecx, edi */ 6861 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3608FFAF: call dword ptr [edx + 0x10] */ 6862 RECOMP_FLAGS_IN(); 6863 /* test LO8(eax), LO8(eax) */ /* 0x3608FFB2: test al, al */ 6864 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6865 _cf = 0; 6866 _flag_k = FK_NARROW(FK_TEST, 24); 6867 if (TEST_Z(_flag_a, _flag_b)) goto L_360900A2; /* 0x3608FFB4: je 0x360900a2 */ 6868 L_3608FFBA: 6869 PUSH32(esp, ebx); /* 0x3608FFBA: push ebx */ 6870 PUSH32(esp, 0x361B2CD8u); /* 0x3608FFBB: push 0x361b2cd8 */ 6871 PUSH32(esp, 0x361B2CC0u); /* 0x3608FFC0: push 0x361b2cc0 */ 6872 eax = ebp + (-0x18); /* 0x3608FFC5: lea eax, [ebp - 0x18] */ 6873 PUSH32(esp, ebx); /* 0x3608FFC8: push ebx */ 6874 PUSH32(esp, eax); /* 0x3608FFC9: push eax */ 6875 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3608FFCA: call dword ptr [0x3616ff70] */ 6876 RECOMP_FLAGS_IN(); 6877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6879 esp = esp + 4; /* 0x3608FFD0: add esp, 4 */ 6880 _flag_k = FK_ADD; 6881 PUSH32(esp, eax); /* 0x3608FFD3: push eax */ 6882 RECOMP_ICALL(0x3615FD86u); /* 0x3608FFD4: call 0x3615fd86 */ /* not lifted */ 6883 RECOMP_FLAGS_IN(); 6884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6886 esp = esp + 0x14u; /* 0x3608FFD9: add esp, 0x14 */ 6887 _flag_k = FK_ADD; 6888 /* cmp eax, ebx */ /* 0x3608FFDC: cmp eax, ebx */ 6889 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6891 _flag_k = FK_CMP; 6892 MEM32(ebp + 0x8) = eax; /* 0x3608FFDE: mov dword ptr [ebp + 8], eax */ 6893 if (CMP_EQ(_flag_a, _flag_b)) goto L_360900A2; /* 0x3608FFE1: je 0x360900a2 */ 6894 L_3608FFE7: 6895 ecx = esi; /* 0x3608FFE7: mov ecx, esi */ 6896 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608FFE9: call dword ptr [0x3616ffb0] */ 6897 RECOMP_FLAGS_IN(); 6898 ecx = MEM32(ebp + 0x8); /* 0x3608FFEF: mov ecx, dword ptr [ebp + 8] */ 6899 ebx = eax; /* 0x3608FFF2: mov ebx, eax */ 6900 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3608FFF4: call dword ptr [0x3616ffb0] */ 6901 RECOMP_FLAGS_IN(); 6902 ecx = MEM32(eax); /* 0x3608FFFA: mov ecx, dword ptr [eax] */ 6903 edx = MEM32(eax + 0x4); /* 0x3608FFFC: mov edx, dword ptr [eax + 4] */ 6904 eax = MEM32(eax + 0x8); /* 0x3608FFFF: mov eax, dword ptr [eax + 8] */ 6905 MEM32(ebp + (-0x24)) = ecx; /* 0x36090002: mov dword ptr [ebp - 0x24], ecx */ 6906 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x36090005: fld dword ptr [ebp - 0x24] */ 6907 _st[0] -= (double)*(float*)ADDR(ebx); /* 0x36090008: fsub dword ptr [ebx] */ 6908 MEM32(ebp + (-0x20)) = edx; /* 0x3609000A: mov dword ptr [ebp - 0x20], edx */ 6909 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3609000D: fld dword ptr [ebp - 0x20] */ 6910 MEM32(ebp + (-0x1C)) = eax; /* 0x36090010: mov dword ptr [ebp - 0x1c], eax */ 6911 _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x36090013: fsub dword ptr [ebx + 4] */ 6912 ecx = MEM32(esi + 0x188); /* 0x36090016: mov ecx, dword ptr [esi + 0x188] */ 6913 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3609001C: fld dword ptr [ebp - 0x1c] */ 6914 edx = MEM32(ecx + 0x30); /* 0x3609001F: mov edx, dword ptr [ecx + 0x30] */ 6915 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x36090022: fsub dword ptr [ebx + 8] */ 6916 eax = MEM32(ebp + 0x8); /* 0x36090025: mov eax, dword ptr [ebp + 8] */ 6917 ecx = MEM32(eax + 0x188); /* 0x36090028: mov ecx, dword ptr [eax + 0x188] */ 6918 eax = MEM32(edi); /* 0x3609002E: mov eax, dword ptr [edi] */ 6919 fp_push(_st[0]); /* 0x36090030: fld st(0) */ 6920 MEM32(ebp + (-0x8)) = edx; /* 0x36090032: mov dword ptr [ebp - 8], edx */ 6921 _st[0] *= _st[1]; /* 0x36090035: fmul st(1) */ 6922 edx = MEM32(ecx + 0x30); /* 0x36090037: mov edx, dword ptr [ecx + 0x30] */ 6923 fp_push(_st[2]); /* 0x3609003A: fld st(2) */ 6924 PUSH32(esp, 2); /* 0x3609003C: push 2 */ 6925 _st[0] *= _st[3]; /* 0x3609003E: fmul st(3) */ 6926 PUSH32(esp, 0x11Fu); /* 0x36090040: push 0x11f */ 6927 ecx = edi; /* 0x36090045: mov ecx, edi */ 6928 MEM32(ebp + (-0x4)) = edx; /* 0x36090047: mov dword ptr [ebp - 4], edx */ 6929 { double _v = fp_pop(); _st[0] += _v; } /* 0x3609004A: faddp st(1) */ 6930 fp_push(_st[3]); /* 0x3609004C: fld st(3) */ 6931 _st[0] *= _st[4]; /* 0x3609004E: fmul st(4) */ 6932 { double _v = fp_pop(); _st[0] += _v; } /* 0x36090050: faddp st(1) */ 6933 _st[0] = sqrt(_st[0]); /* 0x36090052: fsqrt */ 6934 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x36090054: fstp st(3) */ 6935 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36090056: fstp st(0) */ 6936 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36090058: fstp st(0) */ 6937 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x3609005A: fstp dword ptr [ebp - 0xc] */ 6938 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3609005D: call dword ptr [eax + 4] */ 6939 RECOMP_FLAGS_IN(); 6940 MEM32(ebp + 0x8) = eax; /* 0x36090060: mov dword ptr [ebp + 8], eax */ 6941 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36090063: fild dword ptr [ebp + 8] */ 6942 _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x36090066: fadd dword ptr [ebp - 4] */ 6943 _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x36090069: fadd dword ptr [ebp - 8] */ 6944 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(ebp + (-0xC))); /* 0x3609006C: fcomp dword ptr [ebp - 0xc] */ 6945 fp_pop(); 6946 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3609006F: fnstsw ax */ 6947 /* test HI8(eax), 1 */ /* 0x36090071: test ah, 1 */ 6948 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6949 _cf = 0; 6950 _flag_k = FK_NARROW(FK_TEST, 24); 6951 if (TEST_Z(_flag_a, _flag_b)) goto L_360900A2; /* 0x36090074: je 0x360900a2 */ 6952 L_36090076: 6953 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x36090076: mov al, byte ptr [esi + 0x128] */ 6954 /* test LO8(eax), LO8(eax) */ /* 0x3609007C: test al, al */ 6955 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6956 _cf = 0; 6957 _flag_k = FK_NARROW(FK_TEST, 24); 6958 if (TEST_Z(_flag_a, _flag_b)) goto L_36090126; /* 0x3609007E: je 0x36090126 */ 6959 L_36090084: 6960 PUSH32(esp, 0); /* 0x36090084: push 0 */ 6961 PUSH32(esp, 0x361C3334u); /* 0x36090086: push 0x361c3334 */ 6962 RECOMP_ICALL(0x3601C590u); /* 0x3609008B: call 0x3601c590 */ /* not lifted */ 6963 RECOMP_FLAGS_IN(); 6964 ecx = eax; /* 0x36090090: mov ecx, eax */ 6965 RECOMP_ICALL(0x3601C8C0u); /* 0x36090092: call 0x3601c8c0 */ /* not lifted */ 6966 RECOMP_FLAGS_IN(); 6967 edi = POP32_VAL(esp); /* 0x36090097: pop edi */ 6968 esi = POP32_VAL(esp); /* 0x36090098: pop esi */ 6969 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6970 eax = 0; /* 0x36090099: xor eax, eax */ 6971 _cf = 0; 6972 _flag_k = FK_TEST; 6973 ebx = POP32_VAL(esp); /* 0x3609009B: pop ebx */ 6974 esp = ebp; /* 0x3609009C: mov esp, ebp */ 6975 ebp = POP32_VAL(esp); /* 0x3609009E: pop ebp */ 6976 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609009F: ret 4 */ 6977 L_360900A2: 6978 /* test MEM8(ebp + (-0x10)), 8 */ /* 0x360900A2: test byte ptr [ebp - 0x10], 8 */ 6979 _flag_a = (uint32_t)(MEM8(ebp + (-0x10))) << 24; _flag_b = (uint32_t)(8) << 24; 6980 _cf = 0; 6981 _flag_k = FK_NARROW(FK_TEST, 24); 6982 if (TEST_NZ(_flag_a, _flag_b)) goto L_360900B3; /* 0x360900A6: jne 0x360900b3 */ 6983 L_360900A8: 6984 edi = POP32_VAL(esp); /* 0x360900A8: pop edi */ 6985 esi = POP32_VAL(esp); /* 0x360900A9: pop esi */ 6986 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6987 eax = 0; /* 0x360900AA: xor eax, eax */ 6988 _cf = 0; 6989 _flag_k = FK_TEST; 6990 ebx = POP32_VAL(esp); /* 0x360900AC: pop ebx */ 6991 esp = ebp; /* 0x360900AD: mov esp, ebp */ 6992 ebp = POP32_VAL(esp); /* 0x360900AF: pop ebp */ 6993 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360900B0: ret 4 */ 6994 L_360900B3: 6995 PUSH32(esp, 0); /* 0x360900B3: push 0 */ 6996 ebx = esi + 0xE4; /* 0x360900B5: lea ebx, [esi + 0xe4] */ 6997 PUSH32(esp, ebx); /* 0x360900BB: push ebx */ 6998 PUSH32(esp, 3); /* 0x360900BC: push 3 */ 6999 ecx = edi; /* 0x360900BE: mov ecx, edi */ 7000 RECOMP_ICALL(0x3608FC40u); /* 0x360900C0: call 0x3608fc40 */ /* not lifted */ 7001 RECOMP_FLAGS_IN(); 7002 /* test LO8(eax), LO8(eax) */ /* 0x360900C5: test al, al */ 7003 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7004 _cf = 0; 7005 _flag_k = FK_NARROW(FK_TEST, 24); 7006 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090131; /* 0x360900C7: jne 0x36090131 */ 7007 L_360900C9: 7008 ecx = MEM32(esi + 0x150); /* 0x360900C9: mov ecx, dword ptr [esi + 0x150] */ 7009 edx = MEM32(0x362EA510); /* 0x360900CF: mov edx, dword ptr [0x362ea510] */ 7010 MEM32(ecx + 0xE4) = edx; /* 0x360900D5: mov dword ptr [ecx + 0xe4], edx */ 7011 eax = MEM32(0x362EA514); /* 0x360900DB: mov eax, dword ptr [0x362ea514] */ 7012 MEM32(ecx + 0xE8) = eax; /* 0x360900E0: mov dword ptr [ecx + 0xe8], eax */ 7013 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x360900E6: mov al, byte ptr [esi + 0x128] */ 7014 /* test LO8(eax), LO8(eax) */ /* 0x360900EC: test al, al */ 7015 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7016 _cf = 0; 7017 _flag_k = FK_NARROW(FK_TEST, 24); 7018 if (TEST_Z(_flag_a, _flag_b)) goto L_36090126; /* 0x360900EE: je 0x36090126 */ 7019 L_360900F0: 7020 PUSH32(esp, 0); /* 0x360900F0: push 0 */ 7021 PUSH32(esp, 0x361C5BF8u); /* 0x360900F2: push 0x361c5bf8 */ 7022 RECOMP_ICALL(0x3601C590u); /* 0x360900F7: call 0x3601c590 */ /* not lifted */ 7023 RECOMP_FLAGS_IN(); 7024 ecx = eax; /* 0x360900FC: mov ecx, eax */ 7025 RECOMP_ICALL(0x3601C8C0u); /* 0x360900FE: call 0x3601c8c0 */ /* not lifted */ 7026 RECOMP_FLAGS_IN(); 7027 edx = MEM32(ebx); /* 0x36090103: mov edx, dword ptr [ebx] */ 7028 PUSH32(esp, 2); /* 0x36090105: push 2 */ 7029 PUSH32(esp, 0x36u); /* 0x36090107: push 0x36 */ 7030 ecx = ebx; /* 0x36090109: mov ecx, ebx */ 7031 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609010B: call dword ptr [edx + 4] */ 7032 RECOMP_FLAGS_IN(); 7033 /* cmp eax, 2 */ /* 0x3609010E: cmp eax, 2 */ 7034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7036 _flag_k = FK_CMP; 7037 if (CMP_GE(_flag_a, _flag_b)) goto L_36090126; /* 0x36090111: jge 0x36090126 */ 7038 L_36090113: 7039 PUSH32(esp, 0); /* 0x36090113: push 0 */ 7040 PUSH32(esp, 0x361C5B48u); /* 0x36090115: push 0x361c5b48 */ 7041 RECOMP_ICALL(0x3601C590u); /* 0x3609011A: call 0x3601c590 */ /* not lifted */ 7042 RECOMP_FLAGS_IN(); 7043 ecx = eax; /* 0x3609011F: mov ecx, eax */ 7044 RECOMP_ICALL(0x3601C8C0u); /* 0x36090121: call 0x3601c8c0 */ /* not lifted */ 7045 RECOMP_FLAGS_IN(); 7046 L_36090126: 7047 edi = POP32_VAL(esp); /* 0x36090126: pop edi */ 7048 esi = POP32_VAL(esp); /* 0x36090127: pop esi */ 7049 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7050 eax = 0; /* 0x36090128: xor eax, eax */ 7051 _cf = 0; 7052 _flag_k = FK_TEST; 7053 ebx = POP32_VAL(esp); /* 0x3609012A: pop ebx */ 7054 esp = ebp; /* 0x3609012B: mov esp, ebp */ 7055 ebp = POP32_VAL(esp); /* 0x3609012D: pop ebp */ 7056 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609012E: ret 4 */ 7057 L_36090131: 7058 eax = MEM32(edi); /* 0x36090131: mov eax, dword ptr [edi] */ 7059 PUSH32(esp, 2); /* 0x36090133: push 2 */ 7060 PUSH32(esp, 0x1Au); /* 0x36090135: push 0x1a */ 7061 ecx = edi; /* 0x36090137: mov ecx, edi */ 7062 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090139: call dword ptr [eax + 4] */ 7063 RECOMP_FLAGS_IN(); 7064 /* cmp eax, 0xFFFFFFFFu */ /* 0x3609013C: cmp eax, -1 */ 7065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7067 _flag_k = FK_CMP; 7068 if (CMP_EQ(_flag_a, _flag_b)) goto L_36090168; /* 0x3609013F: je 0x36090168 */ 7069 L_36090141: 7070 edx = MEM32(edi); /* 0x36090141: mov edx, dword ptr [edi] */ 7071 PUSH32(esp, 2); /* 0x36090143: push 2 */ 7072 PUSH32(esp, 0x1Au); /* 0x36090145: push 0x1a */ 7073 ecx = edi; /* 0x36090147: mov ecx, edi */ 7074 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36090149: call dword ptr [edx + 4] */ 7075 RECOMP_FLAGS_IN(); 7076 /* test eax, eax */ /* 0x3609014C: test eax, eax */ 7077 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7078 _cf = 0; 7079 _flag_k = FK_TEST; 7080 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090168; /* 0x3609014E: jne 0x36090168 */ 7081 L_36090150: 7082 PUSH32(esp, 0x361C5B2Cu); /* 0x36090150: push 0x361c5b2c */ 7083 PUSH32(esp, esi); /* 0x36090155: push esi */ 7084 ecx = edi; /* 0x36090156: mov ecx, edi */ 7085 RECOMP_ICALL(0x360028F0u); /* 0x36090158: call 0x360028f0 */ /* not lifted */ 7086 RECOMP_FLAGS_IN(); 7087 edi = POP32_VAL(esp); /* 0x3609015D: pop edi */ 7088 esi = POP32_VAL(esp); /* 0x3609015E: pop esi */ 7089 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7090 eax = 0; /* 0x3609015F: xor eax, eax */ 7091 _cf = 0; 7092 _flag_k = FK_TEST; 7093 ebx = POP32_VAL(esp); /* 0x36090161: pop ebx */ 7094 esp = ebp; /* 0x36090162: mov esp, ebp */ 7095 ebp = POP32_VAL(esp); /* 0x36090164: pop ebp */ 7096 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090165: ret 4 */ 7097 L_36090168: 7098 edi = POP32_VAL(esp); /* 0x36090168: pop edi */ 7099 esi = POP32_VAL(esp); /* 0x36090169: pop esi */ 7100 eax = 2; /* 0x3609016A: mov eax, 2 */ 7101 ebx = POP32_VAL(esp); /* 0x3609016F: pop ebx */ 7102 esp = ebp; /* 0x36090170: mov esp, ebp */ 7103 ebp = POP32_VAL(esp); /* 0x36090172: pop ebp */ 7104 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090173: ret 4 */ 7105 RECOMP_REGS_OUT(); 7106 } 7107 7108 void sub_36090180(void) { 7109 int _fpu_cmp = 0; 7110 uint32_t _cf = 0; 7111 int _df = 1; 7112 uint32_t _flag_k = FK_NONE; 7113 uint32_t _flag_a = 0, _flag_b = 0; 7114 uint32_t _itail_tgt = 0; 7115 RECOMP_REGS_LOCALS 7116 RECOMP_ENTER(0x36090180u); 7117 7118 L_36090180: 7119 PUSH32(esp, ebp); /* 0x36090180: push ebp */ 7120 ebp = esp; /* 0x36090181: mov ebp, esp */ 7121 PUSH32(esp, ebx); /* 0x36090183: push ebx */ 7122 ebx = MEM32(ebp + 0xC); /* 0x36090184: mov ebx, dword ptr [ebp + 0xc] */ 7123 /* test ebx, ebx */ /* 0x36090187: test ebx, ebx */ 7124 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7125 _cf = 0; 7126 _flag_k = FK_TEST; 7127 PUSH32(esp, esi); /* 0x36090189: push esi */ 7128 PUSH32(esp, edi); /* 0x3609018A: push edi */ 7129 if (TEST_Z(_flag_a, _flag_b)) goto L_360901C5; /* 0x3609018B: je 0x360901c5 */ 7130 L_3609018D: 7131 edi = MEM32(ebp + 0x8); /* 0x3609018D: mov edi, dword ptr [ebp + 8] */ 7132 /* test edi, edi */ /* 0x36090190: test edi, edi */ 7133 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7134 _cf = 0; 7135 _flag_k = FK_TEST; 7136 if (TEST_Z(_flag_a, _flag_b)) goto L_360901C5; /* 0x36090192: je 0x360901c5 */ 7137 L_36090194: 7138 PUSH32(esp, 0); /* 0x36090194: push 0 */ 7139 esi = edi + 0xE4; /* 0x36090196: lea esi, [edi + 0xe4] */ 7140 PUSH32(esp, esi); /* 0x3609019C: push esi */ 7141 PUSH32(esp, 5); /* 0x3609019D: push 5 */ 7142 RECOMP_ICALL(0x3608FC40u); /* 0x3609019F: call 0x3608fc40 */ /* not lifted */ 7143 RECOMP_FLAGS_IN(); 7144 /* test LO8(eax), LO8(eax) */ /* 0x360901A4: test al, al */ 7145 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7146 _cf = 0; 7147 _flag_k = FK_NARROW(FK_TEST, 24); 7148 if (TEST_NZ(_flag_a, _flag_b)) goto L_360901CE; /* 0x360901A6: jne 0x360901ce */ 7149 L_360901A8: 7150 SET_LO8(eax, MEM8(edi + 0x128)); /* 0x360901A8: mov al, byte ptr [edi + 0x128] */ 7151 /* test LO8(eax), LO8(eax) */ /* 0x360901AE: test al, al */ 7152 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7153 _cf = 0; 7154 _flag_k = FK_NARROW(FK_TEST, 24); 7155 if (TEST_Z(_flag_a, _flag_b)) goto L_360901C5; /* 0x360901B0: je 0x360901c5 */ 7156 L_360901B2: 7157 PUSH32(esp, 0); /* 0x360901B2: push 0 */ 7158 PUSH32(esp, 0x361C5D50u); /* 0x360901B4: push 0x361c5d50 */ 7159 L_360901B9: 7160 RECOMP_ICALL(0x3601C590u); /* 0x360901B9: call 0x3601c590 */ /* not lifted */ 7161 RECOMP_FLAGS_IN(); 7162 ecx = eax; /* 0x360901BE: mov ecx, eax */ 7163 RECOMP_ICALL(0x3601C8C0u); /* 0x360901C0: call 0x3601c8c0 */ /* not lifted */ 7164 RECOMP_FLAGS_IN(); 7165 L_360901C5: 7166 edi = POP32_VAL(esp); /* 0x360901C5: pop edi */ 7167 esi = POP32_VAL(esp); /* 0x360901C6: pop esi */ 7168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7169 eax = 0; /* 0x360901C7: xor eax, eax */ 7170 _cf = 0; 7171 _flag_k = FK_TEST; 7172 ebx = POP32_VAL(esp); /* 0x360901C9: pop ebx */ 7173 ebp = POP32_VAL(esp); /* 0x360901CA: pop ebp */ 7174 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360901CB: ret 8 */ 7175 L_360901CE: 7176 eax = MEM32(ebx); /* 0x360901CE: mov eax, dword ptr [ebx] */ 7177 PUSH32(esp, 2); /* 0x360901D0: push 2 */ 7178 PUSH32(esp, 0x12Bu); /* 0x360901D2: push 0x12b */ 7179 ecx = ebx; /* 0x360901D7: mov ecx, ebx */ 7180 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360901D9: call dword ptr [eax + 4] */ 7181 RECOMP_FLAGS_IN(); 7182 /* cmp eax, 0xFFFFFFFFu */ /* 0x360901DC: cmp eax, -1 */ 7183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7185 _flag_k = FK_CMP; 7186 PUSH32(esp, 0); /* 0x360901DF: push 0 */ 7187 if (CMP_NE(_flag_a, _flag_b)) goto L_360901EA; /* 0x360901E1: jne 0x360901ea */ 7188 L_360901E3: 7189 PUSH32(esp, 0x361C5D34u); /* 0x360901E3: push 0x361c5d34 */ 7190 RECOMP_BACKEDGE(); 7191 goto L_360901B9; /* 0x360901E8: jmp 0x360901b9 */ 7192 L_360901EA: 7193 PUSH32(esp, esi); /* 0x360901EA: push esi */ 7194 PUSH32(esp, 5); /* 0x360901EB: push 5 */ 7195 ecx = ebx; /* 0x360901ED: mov ecx, ebx */ 7196 RECOMP_ICALL(0x3608FC40u); /* 0x360901EF: call 0x3608fc40 */ /* not lifted */ 7197 RECOMP_FLAGS_IN(); 7198 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7199 _cf = (LO8(eax)) != 0; 7200 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x360901F4: neg al */ 7201 _flag_k = FK_NARROW(FK_CMP, 24); 7202 edi = POP32_VAL(esp); /* 0x360901F6: pop edi */ 7203 esi = POP32_VAL(esp); /* 0x360901F7: pop esi */ 7204 ebx = POP32_VAL(esp); /* 0x360901F8: pop ebx */ 7205 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360901F9: sbb eax, eax */ 7206 eax = _sc ? 0xFFFFFFFFu : 0; 7207 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7208 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7210 eax = eax & 2; /* 0x360901FB: and eax, 2 */ 7211 _cf = 0; 7212 _flag_k = FK_TEST; 7213 ebp = POP32_VAL(esp); /* 0x360901FE: pop ebp */ 7214 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360901FF: ret 8 */ 7215 RECOMP_REGS_OUT(); 7216 } 7217 7218 void sub_36090210(void) { 7219 int _fpu_cmp = 0; 7220 uint32_t _cf = 0; 7221 int _df = 1; 7222 uint32_t _flag_k = FK_NONE; 7223 uint32_t _flag_a = 0, _flag_b = 0; 7224 uint32_t _itail_tgt = 0; 7225 RECOMP_REGS_LOCALS 7226 RECOMP_ENTER(0x36090210u); 7227 7228 L_36090210: 7229 PUSH32(esp, ebp); /* 0x36090210: push ebp */ 7230 ebp = esp; /* 0x36090211: mov ebp, esp */ 7231 PUSH32(esp, ecx); /* 0x36090213: push ecx */ 7232 PUSH32(esp, ebx); /* 0x36090214: push ebx */ 7233 ebx = MEM32(ebp + 0xC); /* 0x36090215: mov ebx, dword ptr [ebp + 0xc] */ 7234 /* test ebx, ebx */ /* 0x36090218: test ebx, ebx */ 7235 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7236 _cf = 0; 7237 _flag_k = FK_TEST; 7238 PUSH32(esp, esi); /* 0x3609021A: push esi */ 7239 esi = ecx; /* 0x3609021B: mov esi, ecx */ 7240 PUSH32(esp, edi); /* 0x3609021D: push edi */ 7241 MEM32(ebp + (-0x4)) = esi; /* 0x3609021E: mov dword ptr [ebp - 4], esi */ 7242 if (TEST_NZ(_flag_a, _flag_b)) goto L_3609022E; /* 0x36090221: jne 0x3609022e */ 7243 L_36090223: 7244 edi = POP32_VAL(esp); /* 0x36090223: pop edi */ 7245 esi = POP32_VAL(esp); /* 0x36090224: pop esi */ 7246 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7247 eax = 0; /* 0x36090225: xor eax, eax */ 7248 _cf = 0; 7249 _flag_k = FK_TEST; 7250 ebx = POP32_VAL(esp); /* 0x36090227: pop ebx */ 7251 esp = ebp; /* 0x36090228: mov esp, ebp */ 7252 ebp = POP32_VAL(esp); /* 0x3609022A: pop ebp */ 7253 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609022B: ret 8 */ 7254 L_3609022E: 7255 ecx = MEM32(ebx + 0x154); /* 0x3609022E: mov ecx, dword ptr [ebx + 0x154] */ 7256 RECOMP_ICALL(0x3615A7F0u); /* 0x36090234: call 0x3615a7f0 */ /* not lifted */ 7257 RECOMP_FLAGS_IN(); 7258 /* test LO8(eax), LO8(eax) */ /* 0x36090239: test al, al */ 7259 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7260 _cf = 0; 7261 _flag_k = FK_NARROW(FK_TEST, 24); 7262 if (TEST_Z(_flag_a, _flag_b)) goto L_36090279; /* 0x3609023B: je 0x36090279 */ 7263 L_3609023D: 7264 PUSH32(esp, 0x20u); /* 0x3609023D: push 0x20 */ 7265 ecx = esi; /* 0x3609023F: mov ecx, esi */ 7266 RECOMP_ICALL(0x3608F8E0u); /* 0x36090241: call 0x3608f8e0 */ /* not lifted */ 7267 RECOMP_FLAGS_IN(); 7268 /* test LO8(eax), LO8(eax) */ /* 0x36090246: test al, al */ 7269 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7270 _cf = 0; 7271 _flag_k = FK_NARROW(FK_TEST, 24); 7272 if (TEST_Z(_flag_a, _flag_b)) goto L_36090279; /* 0x36090248: je 0x36090279 */ 7273 L_3609024A: 7274 PUSH32(esp, 0x20u); /* 0x3609024A: push 0x20 */ 7275 ecx = esi; /* 0x3609024C: mov ecx, esi */ 7276 RECOMP_ICALL(0x3608F810u); /* 0x3609024E: call 0x3608f810 */ /* not lifted */ 7277 RECOMP_FLAGS_IN(); 7278 edi = eax; /* 0x36090253: mov edi, eax */ 7279 esi = MEM32(edi + 0x4); /* 0x36090255: mov esi, dword ptr [edi + 4] */ 7280 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36090258: cmp esi, dword ptr [edi + 8] */ 7281 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7283 _flag_k = FK_CMP; 7284 if (CMP_EQ(_flag_a, _flag_b)) goto L_36090279; /* 0x3609025B: je 0x36090279 */ 7285 L_3609025D: 7286 eax = MEM32(esi); /* 0x3609025D: mov eax, dword ptr [esi] */ 7287 ecx = MEM32(ebx + 0x154); /* 0x3609025F: mov ecx, dword ptr [ebx + 0x154] */ 7288 PUSH32(esp, eax); /* 0x36090265: push eax */ 7289 RECOMP_ICALL(0x360738E0u); /* 0x36090266: call 0x360738e0 */ /* not lifted */ 7290 RECOMP_FLAGS_IN(); 7291 /* test LO8(eax), LO8(eax) */ /* 0x3609026B: test al, al */ 7292 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7293 _cf = 0; 7294 _flag_k = FK_NARROW(FK_TEST, 24); 7295 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090287; /* 0x3609026D: jne 0x36090287 */ 7296 L_3609026F: 7297 eax = MEM32(edi + 0x8); /* 0x3609026F: mov eax, dword ptr [edi + 8] */ 7298 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 7299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7300 esi = esi + 8; /* 0x36090272: add esi, 8 */ 7301 _flag_k = FK_ADD; 7302 /* cmp esi, eax */ /* 0x36090275: cmp esi, eax */ 7303 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7305 _flag_k = FK_CMP; 7306 RECOMP_BACKEDGE(); 7307 if (CMP_NE(_flag_a, _flag_b)) goto L_3609025D; /* 0x36090277: jne 0x3609025d */ 7308 L_36090279: 7309 edi = POP32_VAL(esp); /* 0x36090279: pop edi */ 7310 esi = POP32_VAL(esp); /* 0x3609027A: pop esi */ 7311 eax = 2; /* 0x3609027B: mov eax, 2 */ 7312 ebx = POP32_VAL(esp); /* 0x36090280: pop ebx */ 7313 esp = ebp; /* 0x36090281: mov esp, ebp */ 7314 ebp = POP32_VAL(esp); /* 0x36090283: pop ebp */ 7315 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090284: ret 8 */ 7316 L_36090287: 7317 eax = MEM32(ebp + 0x8); /* 0x36090287: mov eax, dword ptr [ebp + 8] */ 7318 ecx = MEM32(ebp + (-0x4)); /* 0x3609028A: mov ecx, dword ptr [ebp - 4] */ 7319 PUSH32(esp, 0x361C5D78u); /* 0x3609028D: push 0x361c5d78 */ 7320 PUSH32(esp, eax); /* 0x36090292: push eax */ 7321 RECOMP_ICALL(0x360028F0u); /* 0x36090293: call 0x360028f0 */ /* not lifted */ 7322 RECOMP_FLAGS_IN(); 7323 edi = POP32_VAL(esp); /* 0x36090298: pop edi */ 7324 esi = POP32_VAL(esp); /* 0x36090299: pop esi */ 7325 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7326 eax = 0; /* 0x3609029A: xor eax, eax */ 7327 _cf = 0; 7328 _flag_k = FK_TEST; 7329 ebx = POP32_VAL(esp); /* 0x3609029C: pop ebx */ 7330 esp = ebp; /* 0x3609029D: mov esp, ebp */ 7331 ebp = POP32_VAL(esp); /* 0x3609029F: pop ebp */ 7332 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360902A0: ret 8 */ 7333 RECOMP_REGS_OUT(); 7334 } 7335 7336 void sub_360902B0(void) { 7337 int _fpu_cmp = 0; 7338 uint32_t _cf = 0; 7339 int _df = 1; 7340 uint32_t _flag_k = FK_NONE; 7341 uint32_t _flag_a = 0, _flag_b = 0; 7342 uint32_t _itail_tgt = 0; 7343 RECOMP_REGS_LOCALS 7344 RECOMP_ENTER(0x360902B0u); 7345 7346 L_360902B0: 7347 PUSH32(esp, ebp); /* 0x360902B0: push ebp */ 7348 ebp = esp; /* 0x360902B1: mov ebp, esp */ 7349 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 7350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7351 esp = esp - 0x18u; /* 0x360902B3: sub esp, 0x18 */ 7352 _flag_k = FK_CMP; 7353 PUSH32(esp, esi); /* 0x360902B6: push esi */ 7354 PUSH32(esp, edi); /* 0x360902B7: push edi */ 7355 esi = ecx; /* 0x360902B8: mov esi, ecx */ 7356 eax = MEM32(esi); /* 0x360902BA: mov eax, dword ptr [esi] */ 7357 PUSH32(esp, 2); /* 0x360902BC: push 2 */ 7358 PUSH32(esp, 0x1Au); /* 0x360902BE: push 0x1a */ 7359 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360902C0: call dword ptr [eax + 4] */ 7360 RECOMP_FLAGS_IN(); 7361 /* cmp eax, 0xFFFFFFFFu */ /* 0x360902C3: cmp eax, -1 */ 7362 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7364 _flag_k = FK_CMP; 7365 if (CMP_EQ(_flag_a, _flag_b)) goto L_36090371; /* 0x360902C6: je 0x36090371 */ 7366 L_360902CC: 7367 /* test eax, eax */ /* 0x360902CC: test eax, eax */ 7368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7369 _cf = 0; 7370 _flag_k = FK_TEST; 7371 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090371; /* 0x360902CE: jne 0x36090371 */ 7372 L_360902D4: 7373 eax = MEM32(ebp + 0x8); /* 0x360902D4: mov eax, dword ptr [ebp + 8] */ 7374 /* test eax, eax */ /* 0x360902D7: test eax, eax */ 7375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7376 _cf = 0; 7377 _flag_k = FK_TEST; 7378 if (TEST_Z(_flag_a, _flag_b)) goto L_360904A1; /* 0x360902D9: je 0x360904a1 */ 7379 L_360902DF: 7380 SET_LO8(ecx, MEM8(eax + 0x128)); /* 0x360902DF: mov cl, byte ptr [eax + 0x128] */ 7381 /* test LO8(ecx), LO8(ecx) */ /* 0x360902E5: test cl, cl */ 7382 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 7383 _cf = 0; 7384 _flag_k = FK_NARROW(FK_TEST, 24); 7385 if (TEST_Z(_flag_a, _flag_b)) goto L_360904A1; /* 0x360902E7: je 0x360904a1 */ 7386 L_360902ED: 7387 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7389 esp = esp - 0xCu; /* 0x360902ED: sub esp, 0xc */ 7390 _flag_k = FK_CMP; 7391 ecx = esp; /* 0x360902F0: mov ecx, esp */ 7392 PUSH32(esp, 1); /* 0x360902F2: push 1 */ 7393 PUSH32(esp, 0x64u); /* 0x360902F4: push 0x64 */ 7394 PUSH32(esp, 0); /* 0x360902F6: push 0 */ 7395 PUSH32(esp, 0); /* 0x360902F8: push 0 */ 7396 PUSH32(esp, 0x3F800000u); /* 0x360902FA: push 0x3f800000 */ 7397 MEM32(ebp + (-0xC)) = 0; /* 0x360902FF: mov dword ptr [ebp - 0xc], 0 */ 7398 edx = MEM32(ebp + (-0xC)); /* 0x36090306: mov edx, dword ptr [ebp - 0xc] */ 7399 MEM32(ecx) = edx; /* 0x36090309: mov dword ptr [ecx], edx */ 7400 MEM32(ebp + (-0x8)) = 0; /* 0x3609030B: mov dword ptr [ebp - 8], 0 */ 7401 eax = MEM32(ebp + (-0x8)); /* 0x36090312: mov eax, dword ptr [ebp - 8] */ 7402 MEM32(ecx + 0x4) = eax; /* 0x36090315: mov dword ptr [ecx + 4], eax */ 7403 PUSH32(esp, 0); /* 0x36090318: push 0 */ 7404 MEM32(ebp + (-0x4)) = 0; /* 0x3609031A: mov dword ptr [ebp - 4], 0 */ 7405 edx = MEM32(ebp + (-0x4)); /* 0x36090321: mov edx, dword ptr [ebp - 4] */ 7406 MEM32(ecx + 0x8) = edx; /* 0x36090324: mov dword ptr [ecx + 8], edx */ 7407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7409 esp = esp - 0xCu; /* 0x36090327: sub esp, 0xc */ 7410 _flag_k = FK_CMP; 7411 eax = esp; /* 0x3609032A: mov eax, esp */ 7412 MEM32(ebp + (-0x18)) = 0; /* 0x3609032C: mov dword ptr [ebp - 0x18], 0 */ 7413 ecx = MEM32(ebp + (-0x18)); /* 0x36090333: mov ecx, dword ptr [ebp - 0x18] */ 7414 MEM32(eax) = ecx; /* 0x36090336: mov dword ptr [eax], ecx */ 7415 MEM32(ebp + (-0x14)) = 0; /* 0x36090338: mov dword ptr [ebp - 0x14], 0 */ 7416 edx = MEM32(ebp + (-0x14)); /* 0x3609033F: mov edx, dword ptr [ebp - 0x14] */ 7417 MEM32(ebp + (-0x10)) = 0; /* 0x36090342: mov dword ptr [ebp - 0x10], 0 */ 7418 ecx = MEM32(ebp + (-0x10)); /* 0x36090349: mov ecx, dword ptr [ebp - 0x10] */ 7419 MEM32(eax + 0x4) = edx; /* 0x3609034C: mov dword ptr [eax + 4], edx */ 7420 MEM32(eax + 0x8) = ecx; /* 0x3609034F: mov dword ptr [eax + 8], ecx */ 7421 PUSH32(esp, 0x32u); /* 0x36090352: push 0x32 */ 7422 ecx = esi + 0x4C; /* 0x36090354: lea ecx, [esi + 0x4c] */ 7423 RECOMP_ICALL(0x3608ABF0u); /* 0x36090357: call 0x3608abf0 */ /* not lifted */ 7424 RECOMP_FLAGS_IN(); 7425 PUSH32(esp, eax); /* 0x3609035C: push eax */ 7426 RECOMP_ICALL(0x3601C590u); /* 0x3609035D: call 0x3601c590 */ /* not lifted */ 7427 RECOMP_FLAGS_IN(); 7428 ecx = eax; /* 0x36090362: mov ecx, eax */ 7429 RECOMP_ICALL(0x3601CBF0u); /* 0x36090364: call 0x3601cbf0 */ /* not lifted */ 7430 RECOMP_FLAGS_IN(); 7431 edi = POP32_VAL(esp); /* 0x36090369: pop edi */ 7432 esi = POP32_VAL(esp); /* 0x3609036A: pop esi */ 7433 esp = ebp; /* 0x3609036B: mov esp, ebp */ 7434 ebp = POP32_VAL(esp); /* 0x3609036D: pop ebp */ 7435 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609036E: ret 4 */ 7436 L_36090371: 7437 edi = MEM32(ebp + 0x8); /* 0x36090371: mov edi, dword ptr [ebp + 8] */ 7438 /* test edi, edi */ /* 0x36090374: test edi, edi */ 7439 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7440 _cf = 0; 7441 _flag_k = FK_TEST; 7442 if (TEST_Z(_flag_a, _flag_b)) goto L_360903F7; /* 0x36090376: je 0x360903f7 */ 7443 L_36090378: 7444 edx = MEM32(0x3616FF74); /* 0x36090378: mov edx, dword ptr [0x3616ff74] */ 7445 ecx = MEM32(edx); /* 0x3609037E: mov ecx, dword ptr [edx] */ 7446 eax = MEM32(ecx); /* 0x36090380: mov eax, dword ptr [ecx] */ 7447 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x36090382: call dword ptr [eax + 0x10] */ 7448 RECOMP_FLAGS_IN(); 7449 /* cmp edi, eax */ /* 0x36090385: cmp edi, eax */ 7450 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7452 _flag_k = FK_CMP; 7453 if (CMP_NE(_flag_a, _flag_b)) goto L_360903F7; /* 0x36090387: jne 0x360903f7 */ 7454 L_36090389: 7455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7457 esp = esp - 0xCu; /* 0x36090389: sub esp, 0xc */ 7458 _flag_k = FK_CMP; 7459 ecx = esp; /* 0x3609038C: mov ecx, esp */ 7460 PUSH32(esp, 1); /* 0x3609038E: push 1 */ 7461 PUSH32(esp, 0x64u); /* 0x36090390: push 0x64 */ 7462 PUSH32(esp, 0); /* 0x36090392: push 0 */ 7463 MEM32(ebp + (-0x18)) = 0; /* 0x36090394: mov dword ptr [ebp - 0x18], 0 */ 7464 edx = MEM32(ebp + (-0x18)); /* 0x3609039B: mov edx, dword ptr [ebp - 0x18] */ 7465 MEM32(ecx) = edx; /* 0x3609039E: mov dword ptr [ecx], edx */ 7466 MEM32(ebp + (-0x14)) = 0; /* 0x360903A0: mov dword ptr [ebp - 0x14], 0 */ 7467 eax = MEM32(ebp + (-0x14)); /* 0x360903A7: mov eax, dword ptr [ebp - 0x14] */ 7468 PUSH32(esp, 0); /* 0x360903AA: push 0 */ 7469 MEM32(ecx + 0x4) = eax; /* 0x360903AC: mov dword ptr [ecx + 4], eax */ 7470 MEM32(ebp + (-0x10)) = 0; /* 0x360903AF: mov dword ptr [ebp - 0x10], 0 */ 7471 edx = MEM32(ebp + (-0x10)); /* 0x360903B6: mov edx, dword ptr [ebp - 0x10] */ 7472 PUSH32(esp, 0x3F800000u); /* 0x360903B9: push 0x3f800000 */ 7473 MEM32(ecx + 0x8) = edx; /* 0x360903BE: mov dword ptr [ecx + 8], edx */ 7474 PUSH32(esp, 0); /* 0x360903C1: push 0 */ 7475 ecx = edi; /* 0x360903C3: mov ecx, edi */ 7476 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360903C5: call dword ptr [0x3616ffb0] */ 7477 RECOMP_FLAGS_IN(); 7478 edx = MEM32(eax); /* 0x360903CB: mov edx, dword ptr [eax] */ 7479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7481 esp = esp - 0xCu; /* 0x360903CD: sub esp, 0xc */ 7482 _flag_k = FK_CMP; 7483 ecx = esp; /* 0x360903D0: mov ecx, esp */ 7484 MEM32(ecx) = edx; /* 0x360903D2: mov dword ptr [ecx], edx */ 7485 edx = MEM32(eax + 0x4); /* 0x360903D4: mov edx, dword ptr [eax + 4] */ 7486 eax = MEM32(eax + 0x8); /* 0x360903D7: mov eax, dword ptr [eax + 8] */ 7487 MEM32(ecx + 0x4) = edx; /* 0x360903DA: mov dword ptr [ecx + 4], edx */ 7488 MEM32(ecx + 0x8) = eax; /* 0x360903DD: mov dword ptr [ecx + 8], eax */ 7489 PUSH32(esp, 3); /* 0x360903E0: push 3 */ 7490 ecx = esi + 0x4C; /* 0x360903E2: lea ecx, [esi + 0x4c] */ 7491 RECOMP_ICALL(0x3608ABF0u); /* 0x360903E5: call 0x3608abf0 */ /* not lifted */ 7492 RECOMP_FLAGS_IN(); 7493 PUSH32(esp, eax); /* 0x360903EA: push eax */ 7494 RECOMP_ICALL(0x3601C590u); /* 0x360903EB: call 0x3601c590 */ /* not lifted */ 7495 RECOMP_FLAGS_IN(); 7496 ecx = eax; /* 0x360903F0: mov ecx, eax */ 7497 RECOMP_ICALL(0x3601CBF0u); /* 0x360903F2: call 0x3601cbf0 */ /* not lifted */ 7498 RECOMP_FLAGS_IN(); 7499 L_360903F7: 7500 edx = MEM32(esi); /* 0x360903F7: mov edx, dword ptr [esi] */ 7501 eax = edi + 0x4; /* 0x360903F9: lea eax, [edi + 4] */ 7502 PUSH32(esp, eax); /* 0x360903FC: push eax */ 7503 ecx = esi; /* 0x360903FD: mov ecx, esi */ 7504 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360903FF: call dword ptr [edx + 0x24] */ 7505 RECOMP_FLAGS_IN(); 7506 eax = MEM32(esi + 0x70); /* 0x36090402: mov eax, dword ptr [esi + 0x70] */ 7507 edx = MEM32(esi); /* 0x36090405: mov edx, dword ptr [esi] */ 7508 PUSH32(esp, eax); /* 0x36090407: push eax */ 7509 PUSH32(esp, 0x50u); /* 0x36090408: push 0x50 */ 7510 ecx = esi; /* 0x3609040A: mov ecx, esi */ 7511 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609040C: call dword ptr [edx + 8] */ 7512 RECOMP_FLAGS_IN(); 7513 eax = MEM32(esi + 0x74); /* 0x3609040F: mov eax, dword ptr [esi + 0x74] */ 7514 edx = MEM32(esi); /* 0x36090412: mov edx, dword ptr [esi] */ 7515 PUSH32(esp, eax); /* 0x36090414: push eax */ 7516 PUSH32(esp, 0x51u); /* 0x36090415: push 0x51 */ 7517 ecx = esi; /* 0x36090417: mov ecx, esi */ 7518 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36090419: call dword ptr [edx + 8] */ 7519 RECOMP_FLAGS_IN(); 7520 PUSH32(esp, 0); /* 0x3609041C: push 0 */ 7521 ecx = esi; /* 0x3609041E: mov ecx, esi */ 7522 RECOMP_ICALL(0x36002180u); /* 0x36090420: call 0x36002180 */ /* not lifted */ 7523 RECOMP_FLAGS_IN(); 7524 /* test LO8(eax), LO8(eax) */ /* 0x36090425: test al, al */ 7525 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7526 _cf = 0; 7527 _flag_k = FK_NARROW(FK_TEST, 24); 7528 if (TEST_Z(_flag_a, _flag_b)) goto L_360904A1; /* 0x36090427: je 0x360904a1 */ 7529 L_36090429: 7530 edx = MEM32(esi); /* 0x36090429: mov edx, dword ptr [esi] */ 7531 PUSH32(esp, 2); /* 0x3609042B: push 2 */ 7532 PUSH32(esp, 0x1Eu); /* 0x3609042D: push 0x1e */ 7533 ecx = esi; /* 0x3609042F: mov ecx, esi */ 7534 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36090431: call dword ptr [edx + 4] */ 7535 RECOMP_FLAGS_IN(); 7536 /* test eax, 0x00800000u */ /* 0x36090434: test eax, 0x800000 */ 7537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00800000u); 7538 _cf = 0; 7539 _flag_k = FK_TEST; 7540 if (TEST_NZ(_flag_a, _flag_b)) goto L_3609047B; /* 0x36090439: jne 0x3609047b */ 7541 L_3609043B: 7542 PUSH32(esp, 0); /* 0x3609043B: push 0 */ 7543 PUSH32(esp, 0x361B2CD8u); /* 0x3609043D: push 0x361b2cd8 */ 7544 PUSH32(esp, 0x361B2CC0u); /* 0x36090442: push 0x361b2cc0 */ 7545 PUSH32(esp, 0); /* 0x36090447: push 0 */ 7546 ecx = edi; /* 0x36090449: mov ecx, edi */ 7547 RECOMP_ICALL(0x36071DD0u); /* 0x3609044B: call 0x36071dd0 */ /* not lifted */ 7548 RECOMP_FLAGS_IN(); 7549 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 7550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7551 eax = eax + 0x14u; /* 0x36090450: add eax, 0x14 */ 7552 _flag_k = FK_ADD; 7553 PUSH32(esp, eax); /* 0x36090453: push eax */ 7554 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36090454: call dword ptr [0x3616ff70] */ 7555 RECOMP_FLAGS_IN(); 7556 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7557 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7558 esp = esp + 4; /* 0x3609045A: add esp, 4 */ 7559 _flag_k = FK_ADD; 7560 PUSH32(esp, eax); /* 0x3609045D: push eax */ 7561 RECOMP_ICALL(0x3615FD86u); /* 0x3609045E: call 0x3615fd86 */ /* not lifted */ 7562 RECOMP_FLAGS_IN(); 7563 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7565 esp = esp + 0x14u; /* 0x36090463: add esp, 0x14 */ 7566 _flag_k = FK_ADD; 7567 /* test eax, eax */ /* 0x36090466: test eax, eax */ 7568 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7569 _cf = 0; 7570 _flag_k = FK_TEST; 7571 if (TEST_Z(_flag_a, _flag_b)) goto L_3609047B; /* 0x36090468: je 0x3609047b */ 7572 L_3609046A: 7573 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 7574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7575 eax = eax + 0xE4u; /* 0x3609046A: add eax, 0xe4 */ 7576 _flag_k = FK_ADD; 7577 /* test eax, eax */ /* 0x3609046F: test eax, eax */ 7578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7579 _cf = 0; 7580 _flag_k = FK_TEST; 7581 if (TEST_Z(_flag_a, _flag_b)) goto L_3609047B; /* 0x36090471: je 0x3609047b */ 7582 L_36090473: 7583 edi = MEM32(esi); /* 0x36090473: mov edi, dword ptr [esi] */ 7584 ecx = esi + 0x24; /* 0x36090475: lea ecx, [esi + 0x24] */ 7585 PUSH32(esp, ecx); /* 0x36090478: push ecx */ 7586 goto L_3609048F; /* 0x36090479: jmp 0x3609048f */ 7587 L_3609047B: 7588 /* test edi, edi */ /* 0x3609047B: test edi, edi */ 7589 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7590 _cf = 0; 7591 _flag_k = FK_TEST; 7592 if (TEST_Z(_flag_a, _flag_b)) goto L_36090487; /* 0x3609047D: je 0x36090487 */ 7593 L_3609047F: 7594 eax = edi + 0xE4; /* 0x3609047F: lea eax, [edi + 0xe4] */ 7595 goto L_36090489; /* 0x36090485: jmp 0x36090489 */ 7596 L_36090487: 7597 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7598 eax = 0; /* 0x36090487: xor eax, eax */ 7599 _cf = 0; 7600 _flag_k = FK_TEST; 7601 L_36090489: 7602 edi = MEM32(esi); /* 0x36090489: mov edi, dword ptr [esi] */ 7603 edx = esi + 0x24; /* 0x3609048B: lea edx, [esi + 0x24] */ 7604 PUSH32(esp, edx); /* 0x3609048E: push edx */ 7605 L_3609048F: 7606 PUSH32(esp, 0); /* 0x3609048F: push 0 */ 7607 PUSH32(esp, eax); /* 0x36090491: push eax */ 7608 PUSH32(esp, 0); /* 0x36090492: push 0 */ 7609 ecx = esi; /* 0x36090494: mov ecx, esi */ 7610 RECOMP_ICALL(0x360020C0u); /* 0x36090496: call 0x360020c0 */ /* not lifted */ 7611 RECOMP_FLAGS_IN(); 7612 PUSH32(esp, eax); /* 0x3609049B: push eax */ 7613 ecx = esi; /* 0x3609049C: mov ecx, esi */ 7614 RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x3609049E: call dword ptr [edi + 0x34] */ 7615 RECOMP_FLAGS_IN(); 7616 L_360904A1: 7617 edi = POP32_VAL(esp); /* 0x360904A1: pop edi */ 7618 esi = POP32_VAL(esp); /* 0x360904A2: pop esi */ 7619 esp = ebp; /* 0x360904A3: mov esp, ebp */ 7620 ebp = POP32_VAL(esp); /* 0x360904A5: pop ebp */ 7621 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360904A6: ret 4 */ 7622 RECOMP_REGS_OUT(); 7623 } 7624 7625 void sub_36090333(void) { 7626 int _fpu_cmp = 0; 7627 uint32_t _cf = 0; 7628 int _df = 1; 7629 uint32_t _flag_k = FK_NONE; 7630 uint32_t _flag_a = 0, _flag_b = 0; 7631 uint32_t _itail_tgt = 0; 7632 RECOMP_REGS_LOCALS 7633 RECOMP_ENTER(0x36090333u); 7634 7635 L_36090333: 7636 ecx = MEM32(ebp + (-0x18)); /* 0x36090333: mov ecx, dword ptr [ebp - 0x18] */ 7637 MEM32(eax) = ecx; /* 0x36090336: mov dword ptr [eax], ecx */ 7638 MEM32(ebp + (-0x14)) = 0; /* 0x36090338: mov dword ptr [ebp - 0x14], 0 */ 7639 edx = MEM32(ebp + (-0x14)); /* 0x3609033F: mov edx, dword ptr [ebp - 0x14] */ 7640 MEM32(ebp + (-0x10)) = 0; /* 0x36090342: mov dword ptr [ebp - 0x10], 0 */ 7641 ecx = MEM32(ebp + (-0x10)); /* 0x36090349: mov ecx, dword ptr [ebp - 0x10] */ 7642 MEM32(eax + 0x4) = edx; /* 0x3609034C: mov dword ptr [eax + 4], edx */ 7643 MEM32(eax + 0x8) = ecx; /* 0x3609034F: mov dword ptr [eax + 8], ecx */ 7644 PUSH32(esp, 0x32u); /* 0x36090352: push 0x32 */ 7645 ecx = esi + 0x4C; /* 0x36090354: lea ecx, [esi + 0x4c] */ 7646 RECOMP_ICALL(0x3608ABF0u); /* 0x36090357: call 0x3608abf0 */ /* not lifted */ 7647 RECOMP_FLAGS_IN(); 7648 PUSH32(esp, eax); /* 0x3609035C: push eax */ 7649 RECOMP_ICALL(0x3601C590u); /* 0x3609035D: call 0x3601c590 */ /* not lifted */ 7650 RECOMP_FLAGS_IN(); 7651 ecx = eax; /* 0x36090362: mov ecx, eax */ 7652 RECOMP_ICALL(0x3601CBF0u); /* 0x36090364: call 0x3601cbf0 */ /* not lifted */ 7653 RECOMP_FLAGS_IN(); 7654 edi = POP32_VAL(esp); /* 0x36090369: pop edi */ 7655 esi = POP32_VAL(esp); /* 0x3609036A: pop esi */ 7656 esp = ebp; /* 0x3609036B: mov esp, ebp */ 7657 ebp = POP32_VAL(esp); /* 0x3609036D: pop ebp */ 7658 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609036E: ret 4 */ 7659 RECOMP_REGS_OUT(); 7660 } 7661 7662 void sub_3609039B(void) { 7663 int _fpu_cmp = 0; 7664 uint32_t _cf = 0; 7665 int _df = 1; 7666 uint32_t _flag_k = FK_NONE; 7667 uint32_t _flag_a = 0, _flag_b = 0; 7668 uint32_t _itail_tgt = 0; 7669 RECOMP_REGS_LOCALS 7670 RECOMP_ENTER(0x3609039Bu); 7671 7672 L_3609039B: 7673 edx = MEM32(ebp + (-0x18)); /* 0x3609039B: mov edx, dword ptr [ebp - 0x18] */ 7674 MEM32(ecx) = edx; /* 0x3609039E: mov dword ptr [ecx], edx */ 7675 MEM32(ebp + (-0x14)) = 0; /* 0x360903A0: mov dword ptr [ebp - 0x14], 0 */ 7676 eax = MEM32(ebp + (-0x14)); /* 0x360903A7: mov eax, dword ptr [ebp - 0x14] */ 7677 PUSH32(esp, 0); /* 0x360903AA: push 0 */ 7678 MEM32(ecx + 0x4) = eax; /* 0x360903AC: mov dword ptr [ecx + 4], eax */ 7679 MEM32(ebp + (-0x10)) = 0; /* 0x360903AF: mov dword ptr [ebp - 0x10], 0 */ 7680 edx = MEM32(ebp + (-0x10)); /* 0x360903B6: mov edx, dword ptr [ebp - 0x10] */ 7681 PUSH32(esp, 0x3F800000u); /* 0x360903B9: push 0x3f800000 */ 7682 MEM32(ecx + 0x8) = edx; /* 0x360903BE: mov dword ptr [ecx + 8], edx */ 7683 PUSH32(esp, 0); /* 0x360903C1: push 0 */ 7684 ecx = edi; /* 0x360903C3: mov ecx, edi */ 7685 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x360903C5: call dword ptr [0x3616ffb0] */ 7686 RECOMP_FLAGS_IN(); 7687 edx = MEM32(eax); /* 0x360903CB: mov edx, dword ptr [eax] */ 7688 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7690 esp = esp - 0xCu; /* 0x360903CD: sub esp, 0xc */ 7691 _flag_k = FK_CMP; 7692 ecx = esp; /* 0x360903D0: mov ecx, esp */ 7693 MEM32(ecx) = edx; /* 0x360903D2: mov dword ptr [ecx], edx */ 7694 edx = MEM32(eax + 0x4); /* 0x360903D4: mov edx, dword ptr [eax + 4] */ 7695 eax = MEM32(eax + 0x8); /* 0x360903D7: mov eax, dword ptr [eax + 8] */ 7696 MEM32(ecx + 0x4) = edx; /* 0x360903DA: mov dword ptr [ecx + 4], edx */ 7697 MEM32(ecx + 0x8) = eax; /* 0x360903DD: mov dword ptr [ecx + 8], eax */ 7698 PUSH32(esp, 3); /* 0x360903E0: push 3 */ 7699 ecx = esi + 0x4C; /* 0x360903E2: lea ecx, [esi + 0x4c] */ 7700 RECOMP_ICALL(0x3608ABF0u); /* 0x360903E5: call 0x3608abf0 */ /* not lifted */ 7701 RECOMP_FLAGS_IN(); 7702 PUSH32(esp, eax); /* 0x360903EA: push eax */ 7703 RECOMP_ICALL(0x3601C590u); /* 0x360903EB: call 0x3601c590 */ /* not lifted */ 7704 RECOMP_FLAGS_IN(); 7705 ecx = eax; /* 0x360903F0: mov ecx, eax */ 7706 RECOMP_ICALL(0x3601CBF0u); /* 0x360903F2: call 0x3601cbf0 */ /* not lifted */ 7707 RECOMP_FLAGS_IN(); 7708 edx = MEM32(esi); /* 0x360903F7: mov edx, dword ptr [esi] */ 7709 eax = edi + 0x4; /* 0x360903F9: lea eax, [edi + 4] */ 7710 PUSH32(esp, eax); /* 0x360903FC: push eax */ 7711 ecx = esi; /* 0x360903FD: mov ecx, esi */ 7712 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360903FF: call dword ptr [edx + 0x24] */ 7713 RECOMP_FLAGS_IN(); 7714 eax = MEM32(esi + 0x70); /* 0x36090402: mov eax, dword ptr [esi + 0x70] */ 7715 edx = MEM32(esi); /* 0x36090405: mov edx, dword ptr [esi] */ 7716 PUSH32(esp, eax); /* 0x36090407: push eax */ 7717 PUSH32(esp, 0x50u); /* 0x36090408: push 0x50 */ 7718 ecx = esi; /* 0x3609040A: mov ecx, esi */ 7719 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609040C: call dword ptr [edx + 8] */ 7720 RECOMP_FLAGS_IN(); 7721 eax = MEM32(esi + 0x74); /* 0x3609040F: mov eax, dword ptr [esi + 0x74] */ 7722 edx = MEM32(esi); /* 0x36090412: mov edx, dword ptr [esi] */ 7723 PUSH32(esp, eax); /* 0x36090414: push eax */ 7724 PUSH32(esp, 0x51u); /* 0x36090415: push 0x51 */ 7725 ecx = esi; /* 0x36090417: mov ecx, esi */ 7726 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36090419: call dword ptr [edx + 8] */ 7727 RECOMP_FLAGS_IN(); 7728 PUSH32(esp, 0); /* 0x3609041C: push 0 */ 7729 ecx = esi; /* 0x3609041E: mov ecx, esi */ 7730 RECOMP_ICALL(0x36002180u); /* 0x36090420: call 0x36002180 */ /* not lifted */ 7731 RECOMP_FLAGS_IN(); 7732 /* test LO8(eax), LO8(eax) */ /* 0x36090425: test al, al */ 7733 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7734 _cf = 0; 7735 _flag_k = FK_NARROW(FK_TEST, 24); 7736 if (TEST_Z(_flag_a, _flag_b)) goto L_360904A1; /* 0x36090427: je 0x360904a1 */ 7737 L_36090429: 7738 edx = MEM32(esi); /* 0x36090429: mov edx, dword ptr [esi] */ 7739 PUSH32(esp, 2); /* 0x3609042B: push 2 */ 7740 PUSH32(esp, 0x1Eu); /* 0x3609042D: push 0x1e */ 7741 ecx = esi; /* 0x3609042F: mov ecx, esi */ 7742 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36090431: call dword ptr [edx + 4] */ 7743 RECOMP_FLAGS_IN(); 7744 /* test eax, 0x00800000u */ /* 0x36090434: test eax, 0x800000 */ 7745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00800000u); 7746 _cf = 0; 7747 _flag_k = FK_TEST; 7748 if (TEST_NZ(_flag_a, _flag_b)) goto L_3609047B; /* 0x36090439: jne 0x3609047b */ 7749 L_3609043B: 7750 PUSH32(esp, 0); /* 0x3609043B: push 0 */ 7751 PUSH32(esp, 0x361B2CD8u); /* 0x3609043D: push 0x361b2cd8 */ 7752 PUSH32(esp, 0x361B2CC0u); /* 0x36090442: push 0x361b2cc0 */ 7753 PUSH32(esp, 0); /* 0x36090447: push 0 */ 7754 ecx = edi; /* 0x36090449: mov ecx, edi */ 7755 RECOMP_ICALL(0x36071DD0u); /* 0x3609044B: call 0x36071dd0 */ /* not lifted */ 7756 RECOMP_FLAGS_IN(); 7757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 7758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7759 eax = eax + 0x14u; /* 0x36090450: add eax, 0x14 */ 7760 _flag_k = FK_ADD; 7761 PUSH32(esp, eax); /* 0x36090453: push eax */ 7762 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36090454: call dword ptr [0x3616ff70] */ 7763 RECOMP_FLAGS_IN(); 7764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7766 esp = esp + 4; /* 0x3609045A: add esp, 4 */ 7767 _flag_k = FK_ADD; 7768 PUSH32(esp, eax); /* 0x3609045D: push eax */ 7769 RECOMP_ICALL(0x3615FD86u); /* 0x3609045E: call 0x3615fd86 */ /* not lifted */ 7770 RECOMP_FLAGS_IN(); 7771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7773 esp = esp + 0x14u; /* 0x36090463: add esp, 0x14 */ 7774 _flag_k = FK_ADD; 7775 /* test eax, eax */ /* 0x36090466: test eax, eax */ 7776 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7777 _cf = 0; 7778 _flag_k = FK_TEST; 7779 if (TEST_Z(_flag_a, _flag_b)) goto L_3609047B; /* 0x36090468: je 0x3609047b */ 7780 L_3609046A: 7781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xE4u); 7782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7783 eax = eax + 0xE4u; /* 0x3609046A: add eax, 0xe4 */ 7784 _flag_k = FK_ADD; 7785 /* test eax, eax */ /* 0x3609046F: test eax, eax */ 7786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7787 _cf = 0; 7788 _flag_k = FK_TEST; 7789 if (TEST_Z(_flag_a, _flag_b)) goto L_3609047B; /* 0x36090471: je 0x3609047b */ 7790 L_36090473: 7791 edi = MEM32(esi); /* 0x36090473: mov edi, dword ptr [esi] */ 7792 ecx = esi + 0x24; /* 0x36090475: lea ecx, [esi + 0x24] */ 7793 PUSH32(esp, ecx); /* 0x36090478: push ecx */ 7794 goto L_3609048F; /* 0x36090479: jmp 0x3609048f */ 7795 L_3609047B: 7796 /* test edi, edi */ /* 0x3609047B: test edi, edi */ 7797 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7798 _cf = 0; 7799 _flag_k = FK_TEST; 7800 if (TEST_Z(_flag_a, _flag_b)) goto L_36090487; /* 0x3609047D: je 0x36090487 */ 7801 L_3609047F: 7802 eax = edi + 0xE4; /* 0x3609047F: lea eax, [edi + 0xe4] */ 7803 goto L_36090489; /* 0x36090485: jmp 0x36090489 */ 7804 L_36090487: 7805 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7806 eax = 0; /* 0x36090487: xor eax, eax */ 7807 _cf = 0; 7808 _flag_k = FK_TEST; 7809 L_36090489: 7810 edi = MEM32(esi); /* 0x36090489: mov edi, dword ptr [esi] */ 7811 edx = esi + 0x24; /* 0x3609048B: lea edx, [esi + 0x24] */ 7812 PUSH32(esp, edx); /* 0x3609048E: push edx */ 7813 L_3609048F: 7814 PUSH32(esp, 0); /* 0x3609048F: push 0 */ 7815 PUSH32(esp, eax); /* 0x36090491: push eax */ 7816 PUSH32(esp, 0); /* 0x36090492: push 0 */ 7817 ecx = esi; /* 0x36090494: mov ecx, esi */ 7818 RECOMP_ICALL(0x360020C0u); /* 0x36090496: call 0x360020c0 */ /* not lifted */ 7819 RECOMP_FLAGS_IN(); 7820 PUSH32(esp, eax); /* 0x3609049B: push eax */ 7821 ecx = esi; /* 0x3609049C: mov ecx, esi */ 7822 RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x3609049E: call dword ptr [edi + 0x34] */ 7823 RECOMP_FLAGS_IN(); 7824 L_360904A1: 7825 edi = POP32_VAL(esp); /* 0x360904A1: pop edi */ 7826 esi = POP32_VAL(esp); /* 0x360904A2: pop esi */ 7827 esp = ebp; /* 0x360904A3: mov esp, ebp */ 7828 ebp = POP32_VAL(esp); /* 0x360904A5: pop ebp */ 7829 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360904A6: ret 4 */ 7830 RECOMP_REGS_OUT(); 7831 } 7832 7833 void sub_36090489(void) { 7834 int _fpu_cmp = 0; 7835 uint32_t _cf = 0; 7836 int _df = 1; 7837 uint32_t _flag_k = FK_NONE; 7838 uint32_t _flag_a = 0, _flag_b = 0; 7839 uint32_t _itail_tgt = 0; 7840 RECOMP_REGS_LOCALS 7841 RECOMP_ENTER(0x36090489u); 7842 7843 L_36090489: 7844 edi = MEM32(esi); /* 0x36090489: mov edi, dword ptr [esi] */ 7845 edx = esi + 0x24; /* 0x3609048B: lea edx, [esi + 0x24] */ 7846 PUSH32(esp, edx); /* 0x3609048E: push edx */ 7847 PUSH32(esp, 0); /* 0x3609048F: push 0 */ 7848 PUSH32(esp, eax); /* 0x36090491: push eax */ 7849 PUSH32(esp, 0); /* 0x36090492: push 0 */ 7850 ecx = esi; /* 0x36090494: mov ecx, esi */ 7851 RECOMP_ICALL(0x360020C0u); /* 0x36090496: call 0x360020c0 */ /* not lifted */ 7852 RECOMP_FLAGS_IN(); 7853 PUSH32(esp, eax); /* 0x3609049B: push eax */ 7854 ecx = esi; /* 0x3609049C: mov ecx, esi */ 7855 RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x3609049E: call dword ptr [edi + 0x34] */ 7856 RECOMP_FLAGS_IN(); 7857 edi = POP32_VAL(esp); /* 0x360904A1: pop edi */ 7858 esi = POP32_VAL(esp); /* 0x360904A2: pop esi */ 7859 esp = ebp; /* 0x360904A3: mov esp, ebp */ 7860 ebp = POP32_VAL(esp); /* 0x360904A5: pop ebp */ 7861 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360904A6: ret 4 */ 7862 RECOMP_REGS_OUT(); 7863 } 7864 7865 void sub_3609048F(void) { 7866 int _fpu_cmp = 0; 7867 uint32_t _cf = 0; 7868 int _df = 1; 7869 uint32_t _flag_k = FK_NONE; 7870 uint32_t _flag_a = 0, _flag_b = 0; 7871 uint32_t _itail_tgt = 0; 7872 RECOMP_REGS_LOCALS 7873 RECOMP_ENTER(0x3609048Fu); 7874 7875 L_3609048F: 7876 PUSH32(esp, 0); /* 0x3609048F: push 0 */ 7877 PUSH32(esp, eax); /* 0x36090491: push eax */ 7878 PUSH32(esp, 0); /* 0x36090492: push 0 */ 7879 ecx = esi; /* 0x36090494: mov ecx, esi */ 7880 RECOMP_ICALL(0x360020C0u); /* 0x36090496: call 0x360020c0 */ /* not lifted */ 7881 RECOMP_FLAGS_IN(); 7882 PUSH32(esp, eax); /* 0x3609049B: push eax */ 7883 ecx = esi; /* 0x3609049C: mov ecx, esi */ 7884 RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x3609049E: call dword ptr [edi + 0x34] */ 7885 RECOMP_FLAGS_IN(); 7886 edi = POP32_VAL(esp); /* 0x360904A1: pop edi */ 7887 esi = POP32_VAL(esp); /* 0x360904A2: pop esi */ 7888 esp = ebp; /* 0x360904A3: mov esp, ebp */ 7889 ebp = POP32_VAL(esp); /* 0x360904A5: pop ebp */ 7890 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360904A6: ret 4 */ 7891 RECOMP_REGS_OUT(); 7892 } 7893 7894 void sub_360904B0(void) { 7895 int _fpu_cmp = 0; 7896 uint32_t _cf = 0; 7897 int _df = 1; 7898 uint32_t _flag_k = FK_NONE; 7899 uint32_t _flag_a = 0, _flag_b = 0; 7900 uint32_t _itail_tgt = 0; 7901 RECOMP_REGS_LOCALS 7902 RECOMP_ENTER(0x360904B0u); 7903 7904 L_360904B0: 7905 PUSH32(esp, ebp); /* 0x360904B0: push ebp */ 7906 ebp = esp; /* 0x360904B1: mov ebp, esp */ 7907 PUSH32(esp, esi); /* 0x360904B3: push esi */ 7908 PUSH32(esp, edi); /* 0x360904B4: push edi */ 7909 edi = MEM32(ebp + 0xC); /* 0x360904B5: mov edi, dword ptr [ebp + 0xc] */ 7910 /* test edi, edi */ /* 0x360904B8: test edi, edi */ 7911 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7912 _cf = 0; 7913 _flag_k = FK_TEST; 7914 esi = ecx; /* 0x360904BA: mov esi, ecx */ 7915 if (TEST_Z(_flag_a, _flag_b)) goto L_3609058A; /* 0x360904BC: je 0x3609058a */ 7916 L_360904C2: 7917 /* cmp esi, edi */ /* 0x360904C2: cmp esi, edi */ 7918 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 7919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7920 _flag_k = FK_CMP; 7921 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609058A; /* 0x360904C4: je 0x3609058a */ 7922 L_360904CA: 7923 eax = MEM32(esi); /* 0x360904CA: mov eax, dword ptr [esi] */ 7924 PUSH32(esp, ebx); /* 0x360904CC: push ebx */ 7925 PUSH32(esp, 5); /* 0x360904CD: push 5 */ 7926 PUSH32(esp, 0x62u); /* 0x360904CF: push 0x62 */ 7927 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360904D1: call dword ptr [eax + 8] */ 7928 RECOMP_FLAGS_IN(); 7929 eax = MEM32(ebp + 0x8); /* 0x360904D4: mov eax, dword ptr [ebp + 8] */ 7930 edx = MEM32(esi); /* 0x360904D7: mov edx, dword ptr [esi] */ 7931 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7932 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7933 eax = eax + 4; /* 0x360904D9: add eax, 4 */ 7934 _flag_k = FK_ADD; 7935 PUSH32(esp, eax); /* 0x360904DC: push eax */ 7936 ecx = esi; /* 0x360904DD: mov ecx, esi */ 7937 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360904DF: call dword ptr [edx + 0x24] */ 7938 RECOMP_FLAGS_IN(); 7939 eax = MEM32(esi + 0x70); /* 0x360904E2: mov eax, dword ptr [esi + 0x70] */ 7940 edx = MEM32(esi); /* 0x360904E5: mov edx, dword ptr [esi] */ 7941 PUSH32(esp, eax); /* 0x360904E7: push eax */ 7942 PUSH32(esp, 0x50u); /* 0x360904E8: push 0x50 */ 7943 ecx = esi; /* 0x360904EA: mov ecx, esi */ 7944 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360904EC: call dword ptr [edx + 8] */ 7945 RECOMP_FLAGS_IN(); 7946 eax = MEM32(esi + 0x74); /* 0x360904EF: mov eax, dword ptr [esi + 0x74] */ 7947 edx = MEM32(esi); /* 0x360904F2: mov edx, dword ptr [esi] */ 7948 PUSH32(esp, eax); /* 0x360904F4: push eax */ 7949 PUSH32(esp, 0x51u); /* 0x360904F5: push 0x51 */ 7950 ecx = esi; /* 0x360904F7: mov ecx, esi */ 7951 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360904F9: call dword ptr [edx + 8] */ 7952 RECOMP_FLAGS_IN(); 7953 eax = MEM32(edi + 0x70); /* 0x360904FC: mov eax, dword ptr [edi + 0x70] */ 7954 edx = MEM32(esi); /* 0x360904FF: mov edx, dword ptr [esi] */ 7955 PUSH32(esp, eax); /* 0x36090501: push eax */ 7956 PUSH32(esp, 0x52u); /* 0x36090502: push 0x52 */ 7957 ecx = esi; /* 0x36090504: mov ecx, esi */ 7958 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36090506: call dword ptr [edx + 8] */ 7959 RECOMP_FLAGS_IN(); 7960 ebx = MEM32(esi); /* 0x36090509: mov ebx, dword ptr [esi] */ 7961 PUSH32(esp, 2); /* 0x3609050B: push 2 */ 7962 PUSH32(esp, 0x17u); /* 0x3609050D: push 0x17 */ 7963 ecx = esi; /* 0x3609050F: mov ecx, esi */ 7964 RECOMP_ICALL(MEM32(ebx + 0x4)); /* 0x36090511: call dword ptr [ebx + 4] */ 7965 RECOMP_FLAGS_IN(); 7966 PUSH32(esp, eax); /* 0x36090514: push eax */ 7967 PUSH32(esp, 0x111u); /* 0x36090515: push 0x111 */ 7968 ecx = esi; /* 0x3609051A: mov ecx, esi */ 7969 RECOMP_ICALL(MEM32(ebx + 0x8)); /* 0x3609051C: call dword ptr [ebx + 8] */ 7970 RECOMP_FLAGS_IN(); 7971 ecx = MEM32(ebp + 0x8); /* 0x3609051F: mov ecx, dword ptr [ebp + 8] */ 7972 edx = MEM32(edi); /* 0x36090522: mov edx, dword ptr [edi] */ 7973 ebx = MEM32(ecx + 0xE4); /* 0x36090524: mov ebx, dword ptr [ecx + 0xe4] */ 7974 eax = ecx + 0xE4; /* 0x3609052A: lea eax, [ecx + 0xe4] */ 7975 PUSH32(esp, 2); /* 0x36090530: push 2 */ 7976 PUSH32(esp, 0x2BEu); /* 0x36090532: push 0x2be */ 7977 ecx = edi; /* 0x36090537: mov ecx, edi */ 7978 MEM32(ebp + 0x8) = eax; /* 0x36090539: mov dword ptr [ebp + 8], eax */ 7979 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609053C: call dword ptr [edx + 4] */ 7980 RECOMP_FLAGS_IN(); 7981 ecx = MEM32(ebp + 0x8); /* 0x3609053F: mov ecx, dword ptr [ebp + 8] */ 7982 PUSH32(esp, eax); /* 0x36090542: push eax */ 7983 PUSH32(esp, 0x111u); /* 0x36090543: push 0x111 */ 7984 RECOMP_ICALL(MEM32(ebx + 0x8)); /* 0x36090548: call dword ptr [ebx + 8] */ 7985 RECOMP_FLAGS_IN(); 7986 eax = MEM32(edi + 0x70); /* 0x3609054B: mov eax, dword ptr [edi + 0x70] */ 7987 MEM32(esi + 0x2C) = eax; /* 0x3609054E: mov dword ptr [esi + 0x2c], eax */ 7988 ecx = MEM32(edi + 0x74); /* 0x36090551: mov ecx, dword ptr [edi + 0x74] */ 7989 MEM32(esi + 0x30) = ecx; /* 0x36090554: mov dword ptr [esi + 0x30], ecx */ 7990 PUSH32(esp, 4); /* 0x36090557: push 4 */ 7991 ecx = esi; /* 0x36090559: mov ecx, esi */ 7992 RECOMP_ICALL(0x36002180u); /* 0x3609055B: call 0x36002180 */ /* not lifted */ 7993 RECOMP_FLAGS_IN(); 7994 /* test LO8(eax), LO8(eax) */ /* 0x36090560: test al, al */ 7995 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7996 _cf = 0; 7997 _flag_k = FK_NARROW(FK_TEST, 24); 7998 ebx = POP32_VAL(esp); /* 0x36090562: pop ebx */ 7999 if (TEST_Z(_flag_a, _flag_b)) goto L_3609057E; /* 0x36090563: je 0x3609057e */ 8000 L_36090565: 8001 edi = MEM32(esi); /* 0x36090565: mov edi, dword ptr [esi] */ 8002 PUSH32(esp, 0x362EA510u); /* 0x36090567: push 0x362ea510 */ 8003 PUSH32(esp, 0); /* 0x3609056C: push 0 */ 8004 PUSH32(esp, esi); /* 0x3609056E: push esi */ 8005 PUSH32(esp, 4); /* 0x3609056F: push 4 */ 8006 ecx = esi; /* 0x36090571: mov ecx, esi */ 8007 RECOMP_ICALL(0x360020C0u); /* 0x36090573: call 0x360020c0 */ /* not lifted */ 8008 RECOMP_FLAGS_IN(); 8009 PUSH32(esp, eax); /* 0x36090578: push eax */ 8010 ecx = esi; /* 0x36090579: mov ecx, esi */ 8011 RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x3609057B: call dword ptr [edi + 0x34] */ 8012 RECOMP_FLAGS_IN(); 8013 L_3609057E: 8014 edx = MEM32(esi); /* 0x3609057E: mov edx, dword ptr [esi] */ 8015 PUSH32(esp, 0x362EA510u); /* 0x36090580: push 0x362ea510 */ 8016 ecx = esi; /* 0x36090585: mov ecx, esi */ 8017 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x36090587: call dword ptr [edx + 0x24] */ 8018 RECOMP_FLAGS_IN(); 8019 L_3609058A: 8020 edi = POP32_VAL(esp); /* 0x3609058A: pop edi */ 8021 esi = POP32_VAL(esp); /* 0x3609058B: pop esi */ 8022 ebp = POP32_VAL(esp); /* 0x3609058C: pop ebp */ 8023 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609058D: ret 8 */ 8024 RECOMP_REGS_OUT(); 8025 } 8026 8027 void sub_36090590(void) { 8028 int _fpu_cmp = 0; 8029 uint32_t _cf = 0; 8030 int _df = 1; 8031 uint32_t _flag_k = FK_NONE; 8032 uint32_t _flag_a = 0, _flag_b = 0; 8033 uint32_t _itail_tgt = 0; 8034 RECOMP_REGS_LOCALS 8035 RECOMP_ENTER(0x36090590u); 8036 8037 L_36090590: 8038 PUSH32(esp, ebp); /* 0x36090590: push ebp */ 8039 ebp = esp; /* 0x36090591: mov ebp, esp */ 8040 PUSH32(esp, ebx); /* 0x36090593: push ebx */ 8041 ebx = MEM32(ebp + 0x8); /* 0x36090594: mov ebx, dword ptr [ebp + 8] */ 8042 /* test ebx, ebx */ /* 0x36090597: test ebx, ebx */ 8043 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8044 _cf = 0; 8045 _flag_k = FK_TEST; 8046 PUSH32(esp, esi); /* 0x36090599: push esi */ 8047 PUSH32(esp, edi); /* 0x3609059A: push edi */ 8048 esi = ecx; /* 0x3609059B: mov esi, ecx */ 8049 if (TEST_Z(_flag_a, _flag_b)) goto L_36090636; /* 0x3609059D: je 0x36090636 */ 8050 L_360905A3: 8051 edi = MEM32(ebp + 0xC); /* 0x360905A3: mov edi, dword ptr [ebp + 0xc] */ 8052 /* test edi, edi */ /* 0x360905A6: test edi, edi */ 8053 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8054 _cf = 0; 8055 _flag_k = FK_TEST; 8056 if (TEST_Z(_flag_a, _flag_b)) goto L_36090636; /* 0x360905A8: je 0x36090636 */ 8057 L_360905AE: 8058 eax = MEM32(esi); /* 0x360905AE: mov eax, dword ptr [esi] */ 8059 PUSH32(esp, 5); /* 0x360905B0: push 5 */ 8060 PUSH32(esp, 0x62u); /* 0x360905B2: push 0x62 */ 8061 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360905B4: call dword ptr [eax + 8] */ 8062 RECOMP_FLAGS_IN(); 8063 edx = MEM32(esi); /* 0x360905B7: mov edx, dword ptr [esi] */ 8064 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 8065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8066 ebx = ebx + 4; /* 0x360905B9: add ebx, 4 */ 8067 _flag_k = FK_ADD; 8068 PUSH32(esp, ebx); /* 0x360905BC: push ebx */ 8069 ecx = esi; /* 0x360905BD: mov ecx, esi */ 8070 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360905BF: call dword ptr [edx + 0x24] */ 8071 RECOMP_FLAGS_IN(); 8072 ecx = MEM32(esi + 0x70); /* 0x360905C2: mov ecx, dword ptr [esi + 0x70] */ 8073 eax = MEM32(esi); /* 0x360905C5: mov eax, dword ptr [esi] */ 8074 PUSH32(esp, ecx); /* 0x360905C7: push ecx */ 8075 PUSH32(esp, 0x50u); /* 0x360905C8: push 0x50 */ 8076 ecx = esi; /* 0x360905CA: mov ecx, esi */ 8077 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360905CC: call dword ptr [eax + 8] */ 8078 RECOMP_FLAGS_IN(); 8079 eax = MEM32(esi + 0x74); /* 0x360905CF: mov eax, dword ptr [esi + 0x74] */ 8080 edx = MEM32(esi); /* 0x360905D2: mov edx, dword ptr [esi] */ 8081 PUSH32(esp, eax); /* 0x360905D4: push eax */ 8082 PUSH32(esp, 0x51u); /* 0x360905D5: push 0x51 */ 8083 ecx = esi; /* 0x360905D7: mov ecx, esi */ 8084 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360905D9: call dword ptr [edx + 8] */ 8085 RECOMP_FLAGS_IN(); 8086 eax = MEM32(edi + 0x4); /* 0x360905DC: mov eax, dword ptr [edi + 4] */ 8087 edx = MEM32(esi); /* 0x360905DF: mov edx, dword ptr [esi] */ 8088 PUSH32(esp, eax); /* 0x360905E1: push eax */ 8089 PUSH32(esp, 0x52u); /* 0x360905E2: push 0x52 */ 8090 ecx = esi; /* 0x360905E4: mov ecx, esi */ 8091 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360905E6: call dword ptr [edx + 8] */ 8092 RECOMP_FLAGS_IN(); 8093 eax = MEM32(edi + 0x8); /* 0x360905E9: mov eax, dword ptr [edi + 8] */ 8094 edx = MEM32(esi); /* 0x360905EC: mov edx, dword ptr [esi] */ 8095 PUSH32(esp, eax); /* 0x360905EE: push eax */ 8096 PUSH32(esp, 0x53u); /* 0x360905EF: push 0x53 */ 8097 ecx = esi; /* 0x360905F1: mov ecx, esi */ 8098 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360905F3: call dword ptr [edx + 8] */ 8099 RECOMP_FLAGS_IN(); 8100 ecx = MEM32(edi + 0x4); /* 0x360905F6: mov ecx, dword ptr [edi + 4] */ 8101 MEM32(esi + 0x2C) = ecx; /* 0x360905F9: mov dword ptr [esi + 0x2c], ecx */ 8102 edx = MEM32(edi + 0x8); /* 0x360905FC: mov edx, dword ptr [edi + 8] */ 8103 PUSH32(esp, 4); /* 0x360905FF: push 4 */ 8104 ecx = esi; /* 0x36090601: mov ecx, esi */ 8105 MEM32(esi + 0x30) = edx; /* 0x36090603: mov dword ptr [esi + 0x30], edx */ 8106 RECOMP_ICALL(0x36002180u); /* 0x36090606: call 0x36002180 */ /* not lifted */ 8107 RECOMP_FLAGS_IN(); 8108 /* test LO8(eax), LO8(eax) */ /* 0x3609060B: test al, al */ 8109 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8110 _cf = 0; 8111 _flag_k = FK_NARROW(FK_TEST, 24); 8112 if (TEST_Z(_flag_a, _flag_b)) goto L_36090628; /* 0x3609060D: je 0x36090628 */ 8113 L_3609060F: 8114 edi = MEM32(esi); /* 0x3609060F: mov edi, dword ptr [esi] */ 8115 PUSH32(esp, 0x362EA510u); /* 0x36090611: push 0x362ea510 */ 8116 PUSH32(esp, 0); /* 0x36090616: push 0 */ 8117 PUSH32(esp, esi); /* 0x36090618: push esi */ 8118 PUSH32(esp, 4); /* 0x36090619: push 4 */ 8119 ecx = esi; /* 0x3609061B: mov ecx, esi */ 8120 RECOMP_ICALL(0x360020C0u); /* 0x3609061D: call 0x360020c0 */ /* not lifted */ 8121 RECOMP_FLAGS_IN(); 8122 PUSH32(esp, eax); /* 0x36090622: push eax */ 8123 ecx = esi; /* 0x36090623: mov ecx, esi */ 8124 RECOMP_ICALL(MEM32(edi + 0x34)); /* 0x36090625: call dword ptr [edi + 0x34] */ 8125 RECOMP_FLAGS_IN(); 8126 L_36090628: 8127 PUSH32(esp, 1); /* 0x36090628: push 1 */ 8128 RECOMP_ICALL(0x3601C590u); /* 0x3609062A: call 0x3601c590 */ /* not lifted */ 8129 RECOMP_FLAGS_IN(); 8130 ecx = eax; /* 0x3609062F: mov ecx, eax */ 8131 RECOMP_ICALL(0x3601C880u); /* 0x36090631: call 0x3601c880 */ /* not lifted */ 8132 RECOMP_FLAGS_IN(); 8133 L_36090636: 8134 edi = POP32_VAL(esp); /* 0x36090636: pop edi */ 8135 esi = POP32_VAL(esp); /* 0x36090637: pop esi */ 8136 ebx = POP32_VAL(esp); /* 0x36090638: pop ebx */ 8137 ebp = POP32_VAL(esp); /* 0x36090639: pop ebp */ 8138 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609063A: ret 8 */ 8139 RECOMP_REGS_OUT(); 8140 } 8141 8142 void sub_36090640(void) { 8143 int _fpu_cmp = 0; 8144 uint32_t _cf = 0; 8145 int _df = 1; 8146 uint32_t _flag_k = FK_NONE; 8147 uint32_t _flag_a = 0, _flag_b = 0; 8148 uint32_t _itail_tgt = 0; 8149 RECOMP_REGS_LOCALS 8150 RECOMP_ENTER(0x36090640u); 8151 8152 L_36090640: 8153 PUSH32(esp, ebp); /* 0x36090640: push ebp */ 8154 ebp = esp; /* 0x36090641: mov ebp, esp */ 8155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 8156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8157 esp = esp - 0x24u; /* 0x36090643: sub esp, 0x24 */ 8158 _flag_k = FK_CMP; 8159 PUSH32(esp, ebx); /* 0x36090646: push ebx */ 8160 PUSH32(esp, esi); /* 0x36090647: push esi */ 8161 PUSH32(esp, edi); /* 0x36090648: push edi */ 8162 esi = ecx; /* 0x36090649: mov esi, ecx */ 8163 eax = MEM32(esi); /* 0x3609064B: mov eax, dword ptr [esi] */ 8164 PUSH32(esp, 0x04000000u); /* 0x3609064D: push 0x4000000 */ 8165 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x36090652: call dword ptr [eax + 0x1c] */ 8166 RECOMP_FLAGS_IN(); 8167 edx = MEM32(esi); /* 0x36090655: mov edx, dword ptr [esi] */ 8168 PUSH32(esp, 6); /* 0x36090657: push 6 */ 8169 PUSH32(esp, 0x62u); /* 0x36090659: push 0x62 */ 8170 ecx = esi; /* 0x3609065B: mov ecx, esi */ 8171 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609065D: call dword ptr [edx + 8] */ 8172 RECOMP_FLAGS_IN(); 8173 eax = MEM32(esi); /* 0x36090660: mov eax, dword ptr [esi] */ 8174 PUSH32(esp, 2); /* 0x36090662: push 2 */ 8175 PUSH32(esp, 0x1Eu); /* 0x36090664: push 0x1e */ 8176 ecx = esi; /* 0x36090666: mov ecx, esi */ 8177 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090668: call dword ptr [eax + 4] */ 8178 RECOMP_FLAGS_IN(); 8179 edx = MEM32(esi); /* 0x3609066B: mov edx, dword ptr [esi] */ 8180 PUSH32(esp, 0x100u); /* 0x3609066D: push 0x100 */ 8181 ecx = esi; /* 0x36090672: mov ecx, esi */ 8182 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36090674: call dword ptr [edx + 0x1c] */ 8183 RECOMP_FLAGS_IN(); 8184 /* test LO8(eax), LO8(eax) */ /* 0x36090677: test al, al */ 8185 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8186 _cf = 0; 8187 _flag_k = FK_NARROW(FK_TEST, 24); 8188 ebx = MEM32(ebp + 0x8); /* 0x36090679: mov ebx, dword ptr [ebp + 8] */ 8189 if (TEST_Z(_flag_a, _flag_b)) goto L_3609068F; /* 0x3609067C: je 0x3609068f */ 8190 L_3609067E: 8191 eax = MEM32(ebx + 0xE4); /* 0x3609067E: mov eax, dword ptr [ebx + 0xe4] */ 8192 ecx = ebx + 0xE4; /* 0x36090684: lea ecx, [ebx + 0xe4] */ 8193 PUSH32(esp, 2); /* 0x3609068A: push 2 */ 8194 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x3609068C: call dword ptr [eax + 0x20] */ 8195 RECOMP_FLAGS_IN(); 8196 L_3609068F: 8197 edx = MEM32(esi); /* 0x3609068F: mov edx, dword ptr [esi] */ 8198 PUSH32(esp, 0x8000u); /* 0x36090691: push 0x8000 */ 8199 ecx = esi; /* 0x36090696: mov ecx, esi */ 8200 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36090698: call dword ptr [edx + 0x1c] */ 8201 RECOMP_FLAGS_IN(); 8202 /* test LO8(eax), LO8(eax) */ /* 0x3609069B: test al, al */ 8203 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8204 _cf = 0; 8205 _flag_k = FK_NARROW(FK_TEST, 24); 8206 if (TEST_Z(_flag_a, _flag_b)) goto L_360906B3; /* 0x3609069D: je 0x360906b3 */ 8207 L_3609069F: 8208 eax = MEM32(ebx + 0xE4); /* 0x3609069F: mov eax, dword ptr [ebx + 0xe4] */ 8209 ecx = ebx + 0xE4; /* 0x360906A5: lea ecx, [ebx + 0xe4] */ 8210 PUSH32(esp, 0x8000u); /* 0x360906AB: push 0x8000 */ 8211 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x360906B0: call dword ptr [eax + 0x18] */ 8212 RECOMP_FLAGS_IN(); 8213 L_360906B3: 8214 edx = MEM32(esi); /* 0x360906B3: mov edx, dword ptr [esi] */ 8215 eax = ebx + 0x4; /* 0x360906B5: lea eax, [ebx + 4] */ 8216 PUSH32(esp, eax); /* 0x360906B8: push eax */ 8217 ecx = esi; /* 0x360906B9: mov ecx, esi */ 8218 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360906BB: call dword ptr [edx + 0x24] */ 8219 RECOMP_FLAGS_IN(); 8220 edx = MEM32(ebx + 0xE4); /* 0x360906BE: mov edx, dword ptr [ebx + 0xe4] */ 8221 edi = ebx + 0xE4; /* 0x360906C4: lea edi, [ebx + 0xe4] */ 8222 eax = ebx + 0x4; /* 0x360906CA: lea eax, [ebx + 4] */ 8223 PUSH32(esp, eax); /* 0x360906CD: push eax */ 8224 ecx = edi; /* 0x360906CE: mov ecx, edi */ 8225 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x360906D0: call dword ptr [edx + 0x24] */ 8226 RECOMP_FLAGS_IN(); 8227 edx = MEM32(esi); /* 0x360906D3: mov edx, dword ptr [esi] */ 8228 eax = ebx; /* 0x360906D5: mov eax, ebx */ 8229 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8230 _cf = (eax) != 0; 8231 eax = (uint32_t)(-(int32_t)eax); /* 0x360906D7: neg eax */ 8232 _flag_k = FK_CMP; 8233 PUSH32(esp, 0x362EA510u); /* 0x360906D9: push 0x362ea510 */ 8234 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360906DE: sbb eax, eax */ 8235 eax = _sc ? 0xFFFFFFFFu : 0; 8236 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8237 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8238 PUSH32(esp, 0); /* 0x360906E0: push 0 */ 8239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8240 eax = eax & edi; /* 0x360906E2: and eax, edi */ 8241 _cf = 0; 8242 _flag_k = FK_TEST; 8243 PUSH32(esp, eax); /* 0x360906E4: push eax */ 8244 PUSH32(esp, 0xEu); /* 0x360906E5: push 0xe */ 8245 ecx = esi; /* 0x360906E7: mov ecx, esi */ 8246 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x360906E9: call dword ptr [edx + 0x30] */ 8247 RECOMP_FLAGS_IN(); 8248 PUSH32(esp, 0xEu); /* 0x360906EC: push 0xe */ 8249 ecx = esi; /* 0x360906EE: mov ecx, esi */ 8250 RECOMP_ICALL(0x360020C0u); /* 0x360906F0: call 0x360020c0 */ /* not lifted */ 8251 RECOMP_FLAGS_IN(); 8252 /* test eax, eax */ /* 0x360906F5: test eax, eax */ 8253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8254 _cf = 0; 8255 _flag_k = FK_TEST; 8256 MEM32(ebp + (-0x4)) = eax; /* 0x360906F7: mov dword ptr [ebp - 4], eax */ 8257 if (TEST_Z(_flag_a, _flag_b)) goto L_360907A3; /* 0x360906FA: je 0x360907a3 */ 8258 L_36090700: 8259 ecx = ebp + (-0x24); /* 0x36090700: lea ecx, [ebp - 0x24] */ 8260 PUSH32(esp, ecx); /* 0x36090703: push ecx */ 8261 ecx = eax; /* 0x36090704: mov ecx, eax */ 8262 RECOMP_ICALL(0x360C02D0u); /* 0x36090706: call 0x360c02d0 */ /* not lifted */ 8263 RECOMP_FLAGS_IN(); 8264 edx = MEM32(eax); /* 0x3609070B: mov edx, dword ptr [eax] */ 8265 ecx = MEM32(eax + 0x4); /* 0x3609070D: mov ecx, dword ptr [eax + 4] */ 8266 ebx = MEM32(eax + 0x8); /* 0x36090710: mov ebx, dword ptr [eax + 8] */ 8267 MEM32(ebp + (-0x14)) = edx; /* 0x36090713: mov dword ptr [ebp - 0x14], edx */ 8268 edx = MEM32(eax + 0xC); /* 0x36090716: mov edx, dword ptr [eax + 0xc] */ 8269 eax = ebp + (-0x24); /* 0x36090719: lea eax, [ebp - 0x24] */ 8270 MEM32(ebp + (-0x10)) = ecx; /* 0x3609071C: mov dword ptr [ebp - 0x10], ecx */ 8271 ecx = MEM32(ebp + (-0x4)); /* 0x3609071F: mov ecx, dword ptr [ebp - 4] */ 8272 PUSH32(esp, eax); /* 0x36090722: push eax */ 8273 MEM32(ebp + (-0x8)) = edx; /* 0x36090723: mov dword ptr [ebp - 8], edx */ 8274 esi = ebx; /* 0x36090726: mov esi, ebx */ 8275 RECOMP_ICALL(0x360C0300u); /* 0x36090728: call 0x360c0300 */ /* not lifted */ 8276 RECOMP_FLAGS_IN(); 8277 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3609072D: cmp esi, dword ptr [eax + 8] */ 8278 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 8279 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8280 _flag_k = FK_CMP; 8281 if (CMP_EQ(_flag_a, _flag_b)) goto L_360907A0; /* 0x36090730: je 0x360907a0 */ 8282 L_36090732: 8283 ecx = MEM32(esi); /* 0x36090732: mov ecx, dword ptr [esi] */ 8284 PUSH32(esp, 3); /* 0x36090734: push 3 */ 8285 RECOMP_ICALL(0x360BD190u); /* 0x36090736: call 0x360bd190 */ /* not lifted */ 8286 RECOMP_FLAGS_IN(); 8287 /* cmp eax, 0xFFFFFFFFu */ /* 0x3609073B: cmp eax, -1 */ 8288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8290 _flag_k = FK_CMP; 8291 if (CMP_NE(_flag_a, _flag_b)) goto L_36090763; /* 0x3609073E: jne 0x36090763 */ 8292 L_36090740: 8293 ecx = MEM32(esi); /* 0x36090740: mov ecx, dword ptr [esi] */ 8294 RECOMP_ICALL(0x360BFC30u); /* 0x36090742: call 0x360bfc30 */ /* not lifted */ 8295 RECOMP_FLAGS_IN(); 8296 esi = eax; /* 0x36090747: mov esi, eax */ 8297 edx = MEM32(esi + 0x1C); /* 0x36090749: mov edx, dword ptr [esi + 0x1c] */ 8298 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFEu); 8299 edx = edx & 0xFFFFFFFEu; /* 0x3609074C: and edx, 0xfffffffe */ 8300 _cf = 0; 8301 _flag_k = FK_TEST; 8302 ecx = esi; /* 0x3609074F: mov ecx, esi */ 8303 MEM32(esi + 0x1C) = edx; /* 0x36090751: mov dword ptr [esi + 0x1c], edx */ 8304 RECOMP_ICALL(0x360BD340u); /* 0x36090754: call 0x360bd340 */ /* not lifted */ 8305 RECOMP_FLAGS_IN(); 8306 PUSH32(esp, esi); /* 0x36090759: push esi */ 8307 PUSH32(esp, 9); /* 0x3609075A: push 9 */ 8308 ecx = edi; /* 0x3609075C: mov ecx, edi */ 8309 RECOMP_ICALL(0x360027E0u); /* 0x3609075E: call 0x360027e0 */ /* not lifted */ 8310 RECOMP_FLAGS_IN(); 8311 L_36090763: 8312 eax = MEM32(ebp + (-0x10)); /* 0x36090763: mov eax, dword ptr [ebp - 0x10] */ 8313 /* cmp ebx, eax */ /* 0x36090766: cmp ebx, eax */ 8314 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 8315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8316 _flag_k = FK_CMP; 8317 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609078D; /* 0x36090768: je 0x3609078d */ 8318 L_3609076A: 8319 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 8320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8321 ebx = ebx + 4; /* 0x3609076A: add ebx, 4 */ 8322 _flag_k = FK_ADD; 8323 /* cmp ebx, eax */ /* 0x3609076D: cmp ebx, eax */ 8324 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 8325 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8326 _flag_k = FK_CMP; 8327 if (CMP_NE(_flag_a, _flag_b)) goto L_3609078D; /* 0x3609076F: jne 0x3609078d */ 8328 L_36090771: 8329 eax = MEM32(ebp + (-0x8)); /* 0x36090771: mov eax, dword ptr [ebp - 8] */ 8330 ecx = MEM32(eax + 0x4); /* 0x36090774: mov ecx, dword ptr [eax + 4] */ 8331 /* test ecx, ecx */ /* 0x36090777: test ecx, ecx */ 8332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8333 _cf = 0; 8334 _flag_k = FK_TEST; 8335 if (TEST_Z(_flag_a, _flag_b)) goto L_3609078D; /* 0x36090779: je 0x3609078d */ 8336 L_3609077B: 8337 ebx = MEM32(eax + 0x4); /* 0x3609077B: mov ebx, dword ptr [eax + 4] */ 8338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 8339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8340 eax = eax + 4; /* 0x3609077E: add eax, 4 */ 8341 _flag_k = FK_ADD; 8342 ecx = ebx + 0x1000; /* 0x36090781: lea ecx, [ebx + 0x1000] */ 8343 MEM32(ebp + (-0x8)) = eax; /* 0x36090787: mov dword ptr [ebp - 8], eax */ 8344 MEM32(ebp + (-0x10)) = ecx; /* 0x3609078A: mov dword ptr [ebp - 0x10], ecx */ 8345 L_3609078D: 8346 ecx = MEM32(ebp + (-0x4)); /* 0x3609078D: mov ecx, dword ptr [ebp - 4] */ 8347 edx = ebp + (-0x24); /* 0x36090790: lea edx, [ebp - 0x24] */ 8348 PUSH32(esp, edx); /* 0x36090793: push edx */ 8349 esi = ebx; /* 0x36090794: mov esi, ebx */ 8350 RECOMP_ICALL(0x360C0300u); /* 0x36090796: call 0x360c0300 */ /* not lifted */ 8351 RECOMP_FLAGS_IN(); 8352 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3609079B: cmp esi, dword ptr [eax + 8] */ 8353 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 8354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8355 _flag_k = FK_CMP; 8356 RECOMP_BACKEDGE(); 8357 if (CMP_NE(_flag_a, _flag_b)) goto L_36090732; /* 0x3609079E: jne 0x36090732 */ 8358 L_360907A0: 8359 ebx = MEM32(ebp + 0x8); /* 0x360907A0: mov ebx, dword ptr [ebp + 8] */ 8360 L_360907A3: 8361 /* test MEM8(ebx + 0x11C), 0x40u */ /* 0x360907A3: test byte ptr [ebx + 0x11c], 0x40 */ 8362 _flag_a = (uint32_t)(MEM8(ebx + 0x11C)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8363 _cf = 0; 8364 _flag_k = FK_NARROW(FK_TEST, 24); 8365 if (TEST_Z(_flag_a, _flag_b)) goto L_360907C1; /* 0x360907AA: je 0x360907c1 */ 8366 L_360907AC: 8367 ecx = MEM32(ebx + 0x154); /* 0x360907AC: mov ecx, dword ptr [ebx + 0x154] */ 8368 PUSH32(esp, 0); /* 0x360907B2: push 0 */ 8369 PUSH32(esp, 0); /* 0x360907B4: push 0 */ 8370 PUSH32(esp, 0); /* 0x360907B6: push 0 */ 8371 RECOMP_ICALL(0x36075910u); /* 0x360907B8: call 0x36075910 */ /* not lifted */ 8372 RECOMP_FLAGS_IN(); 8373 _flag_a = (uint32_t)(MEM32(edi + 0x38)); _flag_b = (uint32_t)(0xFFFFFFBFu); 8374 MEM32(edi + 0x38) = MEM32(edi + 0x38) & 0xFFFFFFBFu; /* 0x360907BD: and dword ptr [edi + 0x38], 0xffffffbf */ 8375 _cf = 0; 8376 _flag_k = FK_TEST; 8377 L_360907C1: 8378 /* test MEM8(ebx + 0x11C), 0x80u */ /* 0x360907C1: test byte ptr [ebx + 0x11c], 0x80 */ 8379 _flag_a = (uint32_t)(MEM8(ebx + 0x11C)) << 24; _flag_b = (uint32_t)(0x80u) << 24; 8380 _cf = 0; 8381 _flag_k = FK_NARROW(FK_TEST, 24); 8382 if (TEST_Z(_flag_a, _flag_b)) goto L_360907DE; /* 0x360907C8: je 0x360907de */ 8383 L_360907CA: 8384 ecx = MEM32(ebx + 0x154); /* 0x360907CA: mov ecx, dword ptr [ebx + 0x154] */ 8385 PUSH32(esp, 0x64u); /* 0x360907D0: push 0x64 */ 8386 RECOMP_ICALL(0x36074560u); /* 0x360907D2: call 0x36074560 */ /* not lifted */ 8387 RECOMP_FLAGS_IN(); 8388 _flag_a = (uint32_t)(MEM32(edi + 0x38)); _flag_b = (uint32_t)(0xFFFFFF7Fu); 8389 MEM32(edi + 0x38) = MEM32(edi + 0x38) & 0xFFFFFF7Fu; /* 0x360907D7: and dword ptr [edi + 0x38], 0xffffff7f */ 8390 _cf = 0; 8391 _flag_k = FK_TEST; 8392 L_360907DE: 8393 edi = POP32_VAL(esp); /* 0x360907DE: pop edi */ 8394 esi = POP32_VAL(esp); /* 0x360907DF: pop esi */ 8395 ebx = POP32_VAL(esp); /* 0x360907E0: pop ebx */ 8396 esp = ebp; /* 0x360907E1: mov esp, ebp */ 8397 ebp = POP32_VAL(esp); /* 0x360907E3: pop ebp */ 8398 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360907E4: ret 8 */ 8399 RECOMP_REGS_OUT(); 8400 } 8401 8402 void sub_360907F0(void) { 8403 int _fpu_cmp = 0; 8404 uint32_t _cf = 0; 8405 int _df = 1; 8406 uint32_t _flag_k = FK_NONE; 8407 uint32_t _flag_a = 0, _flag_b = 0; 8408 uint32_t _itail_tgt = 0; 8409 RECOMP_REGS_LOCALS 8410 RECOMP_ENTER(0x360907F0u); 8411 8412 L_360907F0: 8413 PUSH32(esp, ebp); /* 0x360907F0: push ebp */ 8414 ebp = esp; /* 0x360907F1: mov ebp, esp */ 8415 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 8416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8417 esp = esp - 0x28u; /* 0x360907F3: sub esp, 0x28 */ 8418 _flag_k = FK_CMP; 8419 PUSH32(esp, esi); /* 0x360907F6: push esi */ 8420 esi = MEM32(ebp + 0x8); /* 0x360907F7: mov esi, dword ptr [ebp + 8] */ 8421 PUSH32(esp, edi); /* 0x360907FA: push edi */ 8422 edi = ecx; /* 0x360907FB: mov edi, ecx */ 8423 eax = MEM32(edi); /* 0x360907FD: mov eax, dword ptr [edi] */ 8424 ecx = esi + 0x4; /* 0x360907FF: lea ecx, [esi + 4] */ 8425 PUSH32(esp, ecx); /* 0x36090802: push ecx */ 8426 ecx = edi; /* 0x36090803: mov ecx, edi */ 8427 MEM32(ebp + (-0x8)) = edi; /* 0x36090805: mov dword ptr [ebp - 8], edi */ 8428 RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36090808: call dword ptr [eax + 0x24] */ 8429 RECOMP_FLAGS_IN(); 8430 /* test esi, esi */ /* 0x3609080B: test esi, esi */ 8431 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8432 _cf = 0; 8433 _flag_k = FK_TEST; 8434 if (TEST_Z(_flag_a, _flag_b)) goto L_36090817; /* 0x3609080D: je 0x36090817 */ 8435 L_3609080F: 8436 eax = esi + 0xE4; /* 0x3609080F: lea eax, [esi + 0xe4] */ 8437 goto L_36090819; /* 0x36090815: jmp 0x36090819 */ 8438 L_36090817: 8439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8440 eax = 0; /* 0x36090817: xor eax, eax */ 8441 _cf = 0; 8442 _flag_k = FK_TEST; 8443 L_36090819: 8444 edx = MEM32(edi); /* 0x36090819: mov edx, dword ptr [edi] */ 8445 PUSH32(esp, ebx); /* 0x3609081B: push ebx */ 8446 PUSH32(esp, 0x362EA510u); /* 0x3609081C: push 0x362ea510 */ 8447 PUSH32(esp, 1); /* 0x36090821: push 1 */ 8448 PUSH32(esp, eax); /* 0x36090823: push eax */ 8449 PUSH32(esp, 0xEu); /* 0x36090824: push 0xe */ 8450 ecx = edi; /* 0x36090826: mov ecx, edi */ 8451 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x36090828: call dword ptr [edx + 0x30] */ 8452 RECOMP_FLAGS_IN(); 8453 PUSH32(esp, 0xEu); /* 0x3609082B: push 0xe */ 8454 ecx = edi; /* 0x3609082D: mov ecx, edi */ 8455 RECOMP_ICALL(0x360020C0u); /* 0x3609082F: call 0x360020c0 */ /* not lifted */ 8456 RECOMP_FLAGS_IN(); 8457 /* test eax, eax */ /* 0x36090834: test eax, eax */ 8458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8459 _cf = 0; 8460 _flag_k = FK_TEST; 8461 MEM32(ebp + (-0x4)) = eax; /* 0x36090836: mov dword ptr [ebp - 4], eax */ 8462 if (TEST_Z(_flag_a, _flag_b)) goto L_360908C8; /* 0x36090839: je 0x360908c8 */ 8463 L_3609083F: 8464 ecx = ebp + (-0x28); /* 0x3609083F: lea ecx, [ebp - 0x28] */ 8465 PUSH32(esp, ecx); /* 0x36090842: push ecx */ 8466 ecx = eax; /* 0x36090843: mov ecx, eax */ 8467 RECOMP_ICALL(0x360C02D0u); /* 0x36090845: call 0x360c02d0 */ /* not lifted */ 8468 RECOMP_FLAGS_IN(); 8469 edx = MEM32(eax); /* 0x3609084A: mov edx, dword ptr [eax] */ 8470 ecx = MEM32(eax + 0x4); /* 0x3609084C: mov ecx, dword ptr [eax + 4] */ 8471 esi = MEM32(eax + 0x8); /* 0x3609084F: mov esi, dword ptr [eax + 8] */ 8472 ebx = MEM32(eax + 0xC); /* 0x36090852: mov ebx, dword ptr [eax + 0xc] */ 8473 MEM32(ebp + (-0x18)) = edx; /* 0x36090855: mov dword ptr [ebp - 0x18], edx */ 8474 edx = ebp + (-0x28); /* 0x36090858: lea edx, [ebp - 0x28] */ 8475 MEM32(ebp + (-0x14)) = ecx; /* 0x3609085B: mov dword ptr [ebp - 0x14], ecx */ 8476 ecx = MEM32(ebp + (-0x4)); /* 0x3609085E: mov ecx, dword ptr [ebp - 4] */ 8477 PUSH32(esp, edx); /* 0x36090861: push edx */ 8478 RECOMP_ICALL(0x360C0300u); /* 0x36090862: call 0x360c0300 */ /* not lifted */ 8479 RECOMP_FLAGS_IN(); 8480 /* cmp esi, MEM32(eax + 0x8) */ /* 0x36090867: cmp esi, dword ptr [eax + 8] */ 8481 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 8482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8483 _flag_k = FK_CMP; 8484 if (CMP_EQ(_flag_a, _flag_b)) goto L_360908C5; /* 0x3609086A: je 0x360908c5 */ 8485 L_3609086C: 8486 edi = MEM32(esi); /* 0x3609086C: mov edi, dword ptr [esi] */ 8487 PUSH32(esp, 3); /* 0x3609086E: push 3 */ 8488 ecx = edi; /* 0x36090870: mov ecx, edi */ 8489 RECOMP_ICALL(0x360BD190u); /* 0x36090872: call 0x360bd190 */ /* not lifted */ 8490 RECOMP_FLAGS_IN(); 8491 /* cmp eax, 0xFFFFFFFFu */ /* 0x36090877: cmp eax, -1 */ 8492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 8493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8494 _flag_k = FK_CMP; 8495 if (CMP_NE(_flag_a, _flag_b)) goto L_3609088D; /* 0x3609087A: jne 0x3609088d */ 8496 L_3609087C: 8497 eax = MEM32(ebp + 0x8); /* 0x3609087C: mov eax, dword ptr [ebp + 8] */ 8498 PUSH32(esp, edi); /* 0x3609087F: push edi */ 8499 PUSH32(esp, 9); /* 0x36090880: push 9 */ 8500 ecx = eax + 0xE4; /* 0x36090882: lea ecx, [eax + 0xe4] */ 8501 RECOMP_ICALL(0x36002800u); /* 0x36090888: call 0x36002800 */ /* not lifted */ 8502 RECOMP_FLAGS_IN(); 8503 L_3609088D: 8504 eax = MEM32(ebp + (-0x14)); /* 0x3609088D: mov eax, dword ptr [ebp - 0x14] */ 8505 /* cmp esi, eax */ /* 0x36090890: cmp esi, eax */ 8506 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 8507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8508 _flag_k = FK_CMP; 8509 if (CMP_EQ(_flag_a, _flag_b)) goto L_360908B1; /* 0x36090892: je 0x360908b1 */ 8510 L_36090894: 8511 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 8512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8513 esi = esi + 4; /* 0x36090894: add esi, 4 */ 8514 _flag_k = FK_ADD; 8515 /* cmp esi, eax */ /* 0x36090897: cmp esi, eax */ 8516 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 8517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8518 _flag_k = FK_CMP; 8519 if (CMP_NE(_flag_a, _flag_b)) goto L_360908B1; /* 0x36090899: jne 0x360908b1 */ 8520 L_3609089B: 8521 eax = MEM32(ebx + 0x4); /* 0x3609089B: mov eax, dword ptr [ebx + 4] */ 8522 /* test eax, eax */ /* 0x3609089E: test eax, eax */ 8523 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8524 _cf = 0; 8525 _flag_k = FK_TEST; 8526 if (TEST_Z(_flag_a, _flag_b)) goto L_360908B1; /* 0x360908A0: je 0x360908b1 */ 8527 L_360908A2: 8528 esi = MEM32(ebx + 0x4); /* 0x360908A2: mov esi, dword ptr [ebx + 4] */ 8529 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 8530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8531 ebx = ebx + 4; /* 0x360908A5: add ebx, 4 */ 8532 _flag_k = FK_ADD; 8533 ecx = esi + 0x1000; /* 0x360908A8: lea ecx, [esi + 0x1000] */ 8534 MEM32(ebp + (-0x14)) = ecx; /* 0x360908AE: mov dword ptr [ebp - 0x14], ecx */ 8535 L_360908B1: 8536 ecx = MEM32(ebp + (-0x4)); /* 0x360908B1: mov ecx, dword ptr [ebp - 4] */ 8537 edx = ebp + (-0x28); /* 0x360908B4: lea edx, [ebp - 0x28] */ 8538 PUSH32(esp, edx); /* 0x360908B7: push edx */ 8539 RECOMP_ICALL(0x360C0300u); /* 0x360908B8: call 0x360c0300 */ /* not lifted */ 8540 RECOMP_FLAGS_IN(); 8541 /* cmp esi, MEM32(eax + 0x8) */ /* 0x360908BD: cmp esi, dword ptr [eax + 8] */ 8542 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 8543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8544 _flag_k = FK_CMP; 8545 RECOMP_BACKEDGE(); 8546 if (CMP_NE(_flag_a, _flag_b)) goto L_3609086C; /* 0x360908C0: jne 0x3609086c */ 8547 L_360908C2: 8548 edi = MEM32(ebp + (-0x8)); /* 0x360908C2: mov edi, dword ptr [ebp - 8] */ 8549 L_360908C5: 8550 esi = MEM32(ebp + 0x8); /* 0x360908C5: mov esi, dword ptr [ebp + 8] */ 8551 L_360908C8: 8552 eax = MEM32(edi); /* 0x360908C8: mov eax, dword ptr [edi] */ 8553 PUSH32(esp, 0x100u); /* 0x360908CA: push 0x100 */ 8554 ecx = edi; /* 0x360908CF: mov ecx, edi */ 8555 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x360908D1: call dword ptr [eax + 0x1c] */ 8556 RECOMP_FLAGS_IN(); 8557 /* test LO8(eax), LO8(eax) */ /* 0x360908D4: test al, al */ 8558 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8559 _cf = 0; 8560 _flag_k = FK_NARROW(FK_TEST, 24); 8561 ebx = POP32_VAL(esp); /* 0x360908D6: pop ebx */ 8562 if (TEST_Z(_flag_a, _flag_b)) goto L_360908E0; /* 0x360908D7: je 0x360908e0 */ 8563 L_360908D9: 8564 _flag_a = (uint32_t)(MEM32(esi + 0x11C)); _flag_b = (uint32_t)(0xFFFFFFFDu); 8565 MEM32(esi + 0x11C) = MEM32(esi + 0x11C) & 0xFFFFFFFDu; /* 0x360908D9: and dword ptr [esi + 0x11c], 0xfffffffd */ 8566 _cf = 0; 8567 _flag_k = FK_TEST; 8568 L_360908E0: 8569 edx = MEM32(edi); /* 0x360908E0: mov edx, dword ptr [edi] */ 8570 PUSH32(esp, 0x8000u); /* 0x360908E2: push 0x8000 */ 8571 ecx = edi; /* 0x360908E7: mov ecx, edi */ 8572 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x360908E9: call dword ptr [edx + 0x1c] */ 8573 RECOMP_FLAGS_IN(); 8574 /* test LO8(eax), LO8(eax) */ /* 0x360908EC: test al, al */ 8575 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8576 _cf = 0; 8577 _flag_k = FK_NARROW(FK_TEST, 24); 8578 if (TEST_Z(_flag_a, _flag_b)) goto L_36090910; /* 0x360908EE: je 0x36090910 */ 8579 L_360908F0: 8580 eax = MEM32(esi + 0x118); /* 0x360908F0: mov eax, dword ptr [esi + 0x118] */ 8581 edx = MEM32(esi + 0xE4); /* 0x360908F6: mov edx, dword ptr [esi + 0xe4] */ 8582 ecx = esi + 0xE4; /* 0x360908FC: lea ecx, [esi + 0xe4] */ 8583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFF7FFFu); 8584 eax = eax & 0xFFFF7FFFu; /* 0x36090902: and eax, 0xffff7fff */ 8585 _cf = 0; 8586 _flag_k = FK_TEST; 8587 PUSH32(esp, eax); /* 0x36090907: push eax */ 8588 PUSH32(esp, 0); /* 0x36090908: push 0 */ 8589 MEM32(ecx + 0x34) = eax; /* 0x3609090A: mov dword ptr [ecx + 0x34], eax */ 8590 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609090D: call dword ptr [edx + 8] */ 8591 RECOMP_FLAGS_IN(); 8592 L_36090910: 8593 eax = MEM32(edi); /* 0x36090910: mov eax, dword ptr [edi] */ 8594 PUSH32(esp, 7); /* 0x36090912: push 7 */ 8595 PUSH32(esp, 0x62u); /* 0x36090914: push 0x62 */ 8596 ecx = edi; /* 0x36090916: mov ecx, edi */ 8597 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36090918: call dword ptr [eax + 8] */ 8598 RECOMP_FLAGS_IN(); 8599 /* test MEM8(esi + 0x11C), 0x40u */ /* 0x3609091B: test byte ptr [esi + 0x11c], 0x40 */ 8600 _flag_a = (uint32_t)(MEM8(esi + 0x11C)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 8601 _cf = 0; 8602 _flag_k = FK_NARROW(FK_TEST, 24); 8603 if (TEST_Z(_flag_a, _flag_b)) goto L_3609093C; /* 0x36090922: je 0x3609093c */ 8604 L_36090924: 8605 ecx = MEM32(esi + 0x154); /* 0x36090924: mov ecx, dword ptr [esi + 0x154] */ 8606 PUSH32(esp, 0); /* 0x3609092A: push 0 */ 8607 PUSH32(esp, 0); /* 0x3609092C: push 0 */ 8608 PUSH32(esp, 0); /* 0x3609092E: push 0 */ 8609 RECOMP_ICALL(0x36075910u); /* 0x36090930: call 0x36075910 */ /* not lifted */ 8610 RECOMP_FLAGS_IN(); 8611 _flag_a = (uint32_t)(MEM32(esi + 0x11C)); _flag_b = (uint32_t)(0xFFFFFFBFu); 8612 MEM32(esi + 0x11C) = MEM32(esi + 0x11C) & 0xFFFFFFBFu; /* 0x36090935: and dword ptr [esi + 0x11c], 0xffffffbf */ 8613 _cf = 0; 8614 _flag_k = FK_TEST; 8615 L_3609093C: 8616 /* test MEM8(esi + 0x11C), 0x80u */ /* 0x3609093C: test byte ptr [esi + 0x11c], 0x80 */ 8617 _flag_a = (uint32_t)(MEM8(esi + 0x11C)) << 24; _flag_b = (uint32_t)(0x80u) << 24; 8618 _cf = 0; 8619 _flag_k = FK_NARROW(FK_TEST, 24); 8620 if (TEST_Z(_flag_a, _flag_b)) goto L_3609095C; /* 0x36090943: je 0x3609095c */ 8621 L_36090945: 8622 ecx = MEM32(esi + 0x154); /* 0x36090945: mov ecx, dword ptr [esi + 0x154] */ 8623 PUSH32(esp, 0x64u); /* 0x3609094B: push 0x64 */ 8624 RECOMP_ICALL(0x36074560u); /* 0x3609094D: call 0x36074560 */ /* not lifted */ 8625 RECOMP_FLAGS_IN(); 8626 _flag_a = (uint32_t)(MEM32(esi + 0x11C)); _flag_b = (uint32_t)(0xFFFFFF7Fu); 8627 MEM32(esi + 0x11C) = MEM32(esi + 0x11C) & 0xFFFFFF7Fu; /* 0x36090952: and dword ptr [esi + 0x11c], 0xffffff7f */ 8628 _cf = 0; 8629 _flag_k = FK_TEST; 8630 L_3609095C: 8631 edi = POP32_VAL(esp); /* 0x3609095C: pop edi */ 8632 esi = POP32_VAL(esp); /* 0x3609095D: pop esi */ 8633 esp = ebp; /* 0x3609095E: mov esp, ebp */ 8634 ebp = POP32_VAL(esp); /* 0x36090960: pop ebp */ 8635 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090961: ret 4 */ 8636 RECOMP_REGS_OUT(); 8637 } 8638 8639 void sub_36090970(void) { 8640 int _fpu_cmp = 0; 8641 uint32_t _cf = 0; 8642 int _df = 1; 8643 uint32_t _flag_k = FK_NONE; 8644 uint32_t _flag_a = 0, _flag_b = 0; 8645 uint32_t _itail_tgt = 0; 8646 RECOMP_REGS_LOCALS 8647 RECOMP_ENTER(0x36090970u); 8648 8649 L_36090970: 8650 PUSH32(esp, ebp); /* 0x36090970: push ebp */ 8651 ebp = esp; /* 0x36090971: mov ebp, esp */ 8652 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8654 esp = esp - 0x10u; /* 0x36090973: sub esp, 0x10 */ 8655 _flag_k = FK_CMP; 8656 PUSH32(esp, ebx); /* 0x36090976: push ebx */ 8657 PUSH32(esp, esi); /* 0x36090977: push esi */ 8658 PUSH32(esp, edi); /* 0x36090978: push edi */ 8659 ebx = ecx; /* 0x36090979: mov ebx, ecx */ 8660 eax = MEM32(ebx); /* 0x3609097B: mov eax, dword ptr [ebx] */ 8661 PUSH32(esp, 2); /* 0x3609097D: push 2 */ 8662 PUSH32(esp, 0x1Eu); /* 0x3609097F: push 0x1e */ 8663 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090981: call dword ptr [eax + 4] */ 8664 RECOMP_FLAGS_IN(); 8665 /* test LO8(eax), 4 */ /* 0x36090984: test al, 4 */ 8666 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 8667 _cf = 0; 8668 _flag_k = FK_NARROW(FK_TEST, 24); 8669 MEM32(ebp + (-0x8)) = eax; /* 0x36090986: mov dword ptr [ebp - 8], eax */ 8670 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090996; /* 0x36090989: jne 0x36090996 */ 8671 L_3609098B: 8672 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8673 eax = 0; /* 0x3609098B: xor eax, eax */ 8674 _cf = 0; 8675 _flag_k = FK_TEST; 8676 edi = POP32_VAL(esp); /* 0x3609098D: pop edi */ 8677 esi = POP32_VAL(esp); /* 0x3609098E: pop esi */ 8678 ebx = POP32_VAL(esp); /* 0x3609098F: pop ebx */ 8679 esp = ebp; /* 0x36090990: mov esp, ebp */ 8680 ebp = POP32_VAL(esp); /* 0x36090992: pop ebp */ 8681 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090993: ret 8 */ 8682 L_36090996: 8683 edx = MEM32(ebx); /* 0x36090996: mov edx, dword ptr [ebx] */ 8684 PUSH32(esp, 2); /* 0x36090998: push 2 */ 8685 PUSH32(esp, 0x4Cu); /* 0x3609099A: push 0x4c */ 8686 ecx = ebx; /* 0x3609099C: mov ecx, ebx */ 8687 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609099E: call dword ptr [edx + 4] */ 8688 RECOMP_FLAGS_IN(); 8689 esi = MEM32(ebp + 0x8); /* 0x360909A1: mov esi, dword ptr [ebp + 8] */ 8690 /* test MEM8(esi + 0x11C), 2 */ /* 0x360909A4: test byte ptr [esi + 0x11c], 2 */ 8691 _flag_a = (uint32_t)(MEM8(esi + 0x11C)) << 24; _flag_b = (uint32_t)(2) << 24; 8692 _cf = 0; 8693 _flag_k = FK_NARROW(FK_TEST, 24); 8694 if (TEST_Z(_flag_a, _flag_b)) goto L_360909F2; /* 0x360909AB: je 0x360909f2 */ 8695 L_360909AD: 8696 /* test MEM32(ebp + (-0x8)), 0x10000000u */ /* 0x360909AD: test dword ptr [ebp - 8], 0x10000000 */ 8697 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(0x10000000u); 8698 _cf = 0; 8699 _flag_k = FK_TEST; 8700 if (TEST_NZ(_flag_a, _flag_b)) goto L_360909F2; /* 0x360909B4: jne 0x360909f2 */ 8701 L_360909B6: 8702 /* cmp eax, 3 */ /* 0x360909B6: cmp eax, 3 */ 8703 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8705 _flag_k = FK_CMP; 8706 if (CMP_EQ(_flag_a, _flag_b)) goto L_360909F2; /* 0x360909B9: je 0x360909f2 */ 8707 L_360909BB: 8708 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x360909BB: mov al, byte ptr [esi + 0x128] */ 8709 /* test LO8(eax), LO8(eax) */ /* 0x360909C1: test al, al */ 8710 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8711 _cf = 0; 8712 _flag_k = FK_NARROW(FK_TEST, 24); 8713 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B34; /* 0x360909C3: je 0x36090b34 */ 8714 L_360909C9: 8715 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x360909C9: mov al, byte ptr [ebp + 0xc] */ 8716 /* test LO8(eax), LO8(eax) */ /* 0x360909CC: test al, al */ 8717 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8718 _cf = 0; 8719 _flag_k = FK_NARROW(FK_TEST, 24); 8720 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B34; /* 0x360909CE: je 0x36090b34 */ 8721 L_360909D4: 8722 PUSH32(esp, 0); /* 0x360909D4: push 0 */ 8723 PUSH32(esp, 0x361C5DF0u); /* 0x360909D6: push 0x361c5df0 */ 8724 RECOMP_ICALL(0x3601C590u); /* 0x360909DB: call 0x3601c590 */ /* not lifted */ 8725 RECOMP_FLAGS_IN(); 8726 ecx = eax; /* 0x360909E0: mov ecx, eax */ 8727 RECOMP_ICALL(0x3601C8C0u); /* 0x360909E2: call 0x3601c8c0 */ /* not lifted */ 8728 RECOMP_FLAGS_IN(); 8729 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8730 eax = 0; /* 0x360909E7: xor eax, eax */ 8731 _cf = 0; 8732 _flag_k = FK_TEST; 8733 edi = POP32_VAL(esp); /* 0x360909E9: pop edi */ 8734 esi = POP32_VAL(esp); /* 0x360909EA: pop esi */ 8735 ebx = POP32_VAL(esp); /* 0x360909EB: pop ebx */ 8736 esp = ebp; /* 0x360909EC: mov esp, ebp */ 8737 ebp = POP32_VAL(esp); /* 0x360909EE: pop ebp */ 8738 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360909EF: ret 8 */ 8739 L_360909F2: 8740 PUSH32(esp, 6); /* 0x360909F2: push 6 */ 8741 ecx = ebx; /* 0x360909F4: mov ecx, ebx */ 8742 RECOMP_ICALL(0x3608F990u); /* 0x360909F6: call 0x3608f990 */ /* not lifted */ 8743 RECOMP_FLAGS_IN(); 8744 edi = eax; /* 0x360909FB: mov edi, eax */ 8745 /* test edi, edi */ /* 0x360909FD: test edi, edi */ 8746 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8747 _cf = 0; 8748 _flag_k = FK_TEST; 8749 if (TEST_Z(_flag_a, _flag_b)) goto L_36090A90; /* 0x360909FF: je 0x36090a90 */ 8750 L_36090A05: 8751 ecx = edi; /* 0x36090A05: mov ecx, edi */ 8752 RECOMP_ICALL(0x36008320u); /* 0x36090A07: call 0x36008320 */ /* not lifted */ 8753 RECOMP_FLAGS_IN(); 8754 eax = MEM32(eax); /* 0x36090A0C: mov eax, dword ptr [eax] */ 8755 ecx = MEM32(eax + 0x8); /* 0x36090A0E: mov ecx, dword ptr [eax + 8] */ 8756 /* test ecx, ecx */ /* 0x36090A11: test ecx, ecx */ 8757 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8758 _cf = 0; 8759 _flag_k = FK_TEST; 8760 if (TEST_Z(_flag_a, _flag_b)) goto L_36090A90; /* 0x36090A13: je 0x36090a90 */ 8761 L_36090A15: 8762 /* test esi, esi */ /* 0x36090A15: test esi, esi */ 8763 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8764 _cf = 0; 8765 _flag_k = FK_TEST; 8766 if (TEST_Z(_flag_a, _flag_b)) goto L_36090A24; /* 0x36090A17: je 0x36090a24 */ 8767 L_36090A19: 8768 eax = esi + 0xE4; /* 0x36090A19: lea eax, [esi + 0xe4] */ 8769 MEM32(ebp + (-0x8)) = eax; /* 0x36090A1F: mov dword ptr [ebp - 8], eax */ 8770 goto L_36090A2B; /* 0x36090A22: jmp 0x36090a2b */ 8771 L_36090A24: 8772 MEM32(ebp + (-0x8)) = 0; /* 0x36090A24: mov dword ptr [ebp - 8], 0 */ 8773 L_36090A2B: 8774 PUSH32(esp, 0xFFFFFFFFu); /* 0x36090A2B: push -1 */ 8775 PUSH32(esp, 0); /* 0x36090A2D: push 0 */ 8776 PUSH32(esp, 0); /* 0x36090A2F: push 0 */ 8777 ecx = ebp + (-0x10); /* 0x36090A31: lea ecx, [ebp - 0x10] */ 8778 RECOMP_ICALL(0x36090B50u); /* 0x36090A34: call 0x36090b50 */ /* not lifted */ 8779 RECOMP_FLAGS_IN(); 8780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8782 esp = esp - 8; /* 0x36090A39: sub esp, 8 */ 8783 _flag_k = FK_CMP; 8784 ecx = esp; /* 0x36090A3C: mov ecx, esp */ 8785 PUSH32(esp, eax); /* 0x36090A3E: push eax */ 8786 RECOMP_ICALL(0x360056C0u); /* 0x36090A3F: call 0x360056c0 */ /* not lifted */ 8787 RECOMP_FLAGS_IN(); 8788 ecx = MEM32(ebp + 0xC); /* 0x36090A44: mov ecx, dword ptr [ebp + 0xc] */ 8789 edx = MEM32(ebp + (-0x8)); /* 0x36090A47: mov edx, dword ptr [ebp - 8] */ 8790 PUSH32(esp, 0); /* 0x36090A4A: push 0 */ 8791 PUSH32(esp, ecx); /* 0x36090A4C: push ecx */ 8792 PUSH32(esp, edx); /* 0x36090A4D: push edx */ 8793 ecx = edi; /* 0x36090A4E: mov ecx, edi */ 8794 RECOMP_ICALL(0x36005680u); /* 0x36090A50: call 0x36005680 */ /* not lifted */ 8795 RECOMP_FLAGS_IN(); 8796 /* test LO8(eax), LO8(eax) */ /* 0x36090A55: test al, al */ 8797 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8798 _cf = 0; 8799 _flag_k = FK_NARROW(FK_TEST, 24); 8800 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090A90; /* 0x36090A57: jne 0x36090a90 */ 8801 L_36090A59: 8802 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x36090A59: mov al, byte ptr [esi + 0x128] */ 8803 /* test LO8(eax), LO8(eax) */ /* 0x36090A5F: test al, al */ 8804 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8805 _cf = 0; 8806 _flag_k = FK_NARROW(FK_TEST, 24); 8807 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B34; /* 0x36090A61: je 0x36090b34 */ 8808 L_36090A67: 8809 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x36090A67: mov al, byte ptr [ebp + 0xc] */ 8810 /* test LO8(eax), LO8(eax) */ /* 0x36090A6A: test al, al */ 8811 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8812 _cf = 0; 8813 _flag_k = FK_NARROW(FK_TEST, 24); 8814 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B34; /* 0x36090A6C: je 0x36090b34 */ 8815 L_36090A72: 8816 PUSH32(esp, 0); /* 0x36090A72: push 0 */ 8817 PUSH32(esp, 0x361C5DCCu); /* 0x36090A74: push 0x361c5dcc */ 8818 RECOMP_ICALL(0x3601C590u); /* 0x36090A79: call 0x3601c590 */ /* not lifted */ 8819 RECOMP_FLAGS_IN(); 8820 ecx = eax; /* 0x36090A7E: mov ecx, eax */ 8821 RECOMP_ICALL(0x3601C8C0u); /* 0x36090A80: call 0x3601c8c0 */ /* not lifted */ 8822 RECOMP_FLAGS_IN(); 8823 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8824 eax = 0; /* 0x36090A85: xor eax, eax */ 8825 _cf = 0; 8826 _flag_k = FK_TEST; 8827 edi = POP32_VAL(esp); /* 0x36090A87: pop edi */ 8828 esi = POP32_VAL(esp); /* 0x36090A88: pop esi */ 8829 ebx = POP32_VAL(esp); /* 0x36090A89: pop ebx */ 8830 esp = ebp; /* 0x36090A8A: mov esp, ebp */ 8831 ebp = POP32_VAL(esp); /* 0x36090A8C: pop ebp */ 8832 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090A8D: ret 8 */ 8833 L_36090A90: 8834 eax = MEM32(ebx); /* 0x36090A90: mov eax, dword ptr [ebx] */ 8835 PUSH32(esp, 0x100u); /* 0x36090A92: push 0x100 */ 8836 ecx = ebx; /* 0x36090A97: mov ecx, ebx */ 8837 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x36090A99: call dword ptr [eax + 0x1c] */ 8838 RECOMP_FLAGS_IN(); 8839 /* test LO8(eax), LO8(eax) */ /* 0x36090A9C: test al, al */ 8840 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8841 _cf = 0; 8842 _flag_k = FK_NARROW(FK_TEST, 24); 8843 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B3F; /* 0x36090A9E: je 0x36090b3f */ 8844 L_36090AA4: 8845 MEM8(ebp + (-0x1)) = (uint8_t)(1); /* 0x36090AA4: mov byte ptr [ebp - 1], 1 */ 8846 edi = 0x11u; /* 0x36090AA8: mov edi, 0x11 */ 8847 L_36090AAD: 8848 ecx = MEM32(esi + 0x150); /* 0x36090AAD: mov ecx, dword ptr [esi + 0x150] */ 8849 PUSH32(esp, edi); /* 0x36090AB3: push edi */ 8850 RECOMP_ICALL(0x3605EF70u); /* 0x36090AB4: call 0x3605ef70 */ /* not lifted */ 8851 RECOMP_FLAGS_IN(); 8852 /* test LO8(eax), LO8(eax) */ /* 0x36090AB9: test al, al */ 8853 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8854 _cf = 0; 8855 _flag_k = FK_NARROW(FK_TEST, 24); 8856 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090AEB; /* 0x36090ABB: jne 0x36090aeb */ 8857 L_36090ABD: 8858 ecx = MEM32(esi + 0x150); /* 0x36090ABD: mov ecx, dword ptr [esi + 0x150] */ 8859 ecx = MEM32(ecx + 0xC); /* 0x36090AC3: mov ecx, dword ptr [ecx + 0xc] */ 8860 PUSH32(esp, edi); /* 0x36090AC6: push edi */ 8861 RECOMP_ICALL(0x3602D330u); /* 0x36090AC7: call 0x3602d330 */ /* not lifted */ 8862 RECOMP_FLAGS_IN(); 8863 esi = eax; /* 0x36090ACC: mov esi, eax */ 8864 /* test esi, esi */ /* 0x36090ACE: test esi, esi */ 8865 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8866 _cf = 0; 8867 _flag_k = FK_TEST; 8868 if (TEST_Z(_flag_a, _flag_b)) goto L_36090AE8; /* 0x36090AD0: je 0x36090ae8 */ 8869 L_36090AD2: 8870 edx = MEM32(esi); /* 0x36090AD2: mov edx, dword ptr [esi] */ 8871 PUSH32(esp, 2); /* 0x36090AD4: push 2 */ 8872 PUSH32(esp, 0x1Eu); /* 0x36090AD6: push 0x1e */ 8873 ecx = esi; /* 0x36090AD8: mov ecx, esi */ 8874 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36090ADA: call dword ptr [edx + 4] */ 8875 RECOMP_FLAGS_IN(); 8876 /* cmp esi, ebx */ /* 0x36090ADD: cmp esi, ebx */ 8877 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8879 _flag_k = FK_CMP; 8880 if (CMP_EQ(_flag_a, _flag_b)) goto L_36090AE8; /* 0x36090ADF: je 0x36090ae8 */ 8881 L_36090AE1: 8882 /* test eax, 0x10000000u */ /* 0x36090AE1: test eax, 0x10000000 */ 8883 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10000000u); 8884 _cf = 0; 8885 _flag_k = FK_TEST; 8886 if (TEST_Z(_flag_a, _flag_b)) goto L_36090AF6; /* 0x36090AE6: je 0x36090af6 */ 8887 L_36090AE8: 8888 esi = MEM32(ebp + 0x8); /* 0x36090AE8: mov esi, dword ptr [ebp + 8] */ 8889 L_36090AEB: 8890 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 8891 edi = edi + 1; /* 0x36090AEB: inc edi */ 8892 _flag_k = FK_INC; 8893 /* cmp edi, 0x20u */ /* 0x36090AEC: cmp edi, 0x20 */ 8894 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 8895 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8896 _flag_k = FK_CMP; 8897 RECOMP_BACKEDGE(); 8898 if (CMP_L(_flag_a, _flag_b)) goto L_36090AAD; /* 0x36090AEF: jl 0x36090aad */ 8899 L_36090AF1: 8900 SET_LO8(ebx, MEM8(ebp + (-0x1))); /* 0x36090AF1: mov bl, byte ptr [ebp - 1] */ 8901 goto L_36090AFB; /* 0x36090AF4: jmp 0x36090afb */ 8902 L_36090AF6: 8903 esi = MEM32(ebp + 0x8); /* 0x36090AF6: mov esi, dword ptr [ebp + 8] */ 8904 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 8905 SET_LO8(ebx, 0); /* 0x36090AF9: xor bl, bl */ 8906 _cf = 0; 8907 _flag_k = FK_NARROW(FK_TEST, 24); 8908 L_36090AFB: 8909 ecx = MEM32(esi + 0x150); /* 0x36090AFB: mov ecx, dword ptr [esi + 0x150] */ 8910 PUSH32(esp, 0x1Eu); /* 0x36090B01: push 0x1e */ 8911 RECOMP_ICALL(0x3605EF70u); /* 0x36090B03: call 0x3605ef70 */ /* not lifted */ 8912 RECOMP_FLAGS_IN(); 8913 /* test LO8(eax), LO8(eax) */ /* 0x36090B08: test al, al */ 8914 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8915 _cf = 0; 8916 _flag_k = FK_NARROW(FK_TEST, 24); 8917 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B10; /* 0x36090B0A: je 0x36090b10 */ 8918 L_36090B0C: 8919 /* test LO8(ebx), LO8(ebx) */ /* 0x36090B0C: test bl, bl */ 8920 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 8921 _cf = 0; 8922 _flag_k = FK_NARROW(FK_TEST, 24); 8923 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090B3F; /* 0x36090B0E: jne 0x36090b3f */ 8924 L_36090B10: 8925 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x36090B10: mov al, byte ptr [esi + 0x128] */ 8926 /* test LO8(eax), LO8(eax) */ /* 0x36090B16: test al, al */ 8927 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8928 _cf = 0; 8929 _flag_k = FK_NARROW(FK_TEST, 24); 8930 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B34; /* 0x36090B18: je 0x36090b34 */ 8931 L_36090B1A: 8932 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x36090B1A: mov al, byte ptr [ebp + 0xc] */ 8933 /* test LO8(eax), LO8(eax) */ /* 0x36090B1D: test al, al */ 8934 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8935 _cf = 0; 8936 _flag_k = FK_NARROW(FK_TEST, 24); 8937 if (TEST_Z(_flag_a, _flag_b)) goto L_36090B34; /* 0x36090B1F: je 0x36090b34 */ 8938 L_36090B21: 8939 PUSH32(esp, 0); /* 0x36090B21: push 0 */ 8940 PUSH32(esp, 0x361C5D98u); /* 0x36090B23: push 0x361c5d98 */ 8941 RECOMP_ICALL(0x3601C590u); /* 0x36090B28: call 0x3601c590 */ /* not lifted */ 8942 RECOMP_FLAGS_IN(); 8943 ecx = eax; /* 0x36090B2D: mov ecx, eax */ 8944 RECOMP_ICALL(0x3601C8C0u); /* 0x36090B2F: call 0x3601c8c0 */ /* not lifted */ 8945 RECOMP_FLAGS_IN(); 8946 L_36090B34: 8947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8948 eax = 0; /* 0x36090B34: xor eax, eax */ 8949 _cf = 0; 8950 _flag_k = FK_TEST; 8951 edi = POP32_VAL(esp); /* 0x36090B36: pop edi */ 8952 esi = POP32_VAL(esp); /* 0x36090B37: pop esi */ 8953 ebx = POP32_VAL(esp); /* 0x36090B38: pop ebx */ 8954 esp = ebp; /* 0x36090B39: mov esp, ebp */ 8955 ebp = POP32_VAL(esp); /* 0x36090B3B: pop ebp */ 8956 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090B3C: ret 8 */ 8957 L_36090B3F: 8958 edi = POP32_VAL(esp); /* 0x36090B3F: pop edi */ 8959 esi = POP32_VAL(esp); /* 0x36090B40: pop esi */ 8960 eax = 2; /* 0x36090B41: mov eax, 2 */ 8961 ebx = POP32_VAL(esp); /* 0x36090B46: pop ebx */ 8962 esp = ebp; /* 0x36090B47: mov esp, ebp */ 8963 ebp = POP32_VAL(esp); /* 0x36090B49: pop ebp */ 8964 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090B4A: ret 8 */ 8965 RECOMP_REGS_OUT(); 8966 } 8967 8968 void sub_36090B50(void) { 8969 int _fpu_cmp = 0; 8970 uint32_t _cf = 0; 8971 int _df = 1; 8972 uint32_t _flag_k = FK_NONE; 8973 uint32_t _flag_a = 0, _flag_b = 0; 8974 uint32_t _itail_tgt = 0; 8975 RECOMP_REGS_LOCALS 8976 RECOMP_ENTER(0x36090B50u); 8977 8978 L_36090B50: 8979 PUSH32(esp, ebp); /* 0x36090B50: push ebp */ 8980 ebp = esp; /* 0x36090B51: mov ebp, esp */ 8981 edx = MEM32(ebp + 0xC); /* 0x36090B53: mov edx, dword ptr [ebp + 0xc] */ 8982 eax = ecx; /* 0x36090B56: mov eax, ecx */ 8983 ecx = MEM32(ebp + 0x8); /* 0x36090B58: mov ecx, dword ptr [ebp + 8] */ 8984 MEM32(eax) = ecx; /* 0x36090B5B: mov dword ptr [eax], ecx */ 8985 MEM32(eax + 0x4) = edx; /* 0x36090B5D: mov dword ptr [eax + 4], edx */ 8986 ebp = POP32_VAL(esp); /* 0x36090B60: pop ebp */ 8987 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090B61: ret 8 */ 8988 RECOMP_REGS_OUT(); 8989 } 8990 8991 void sub_36090B70(void) { 8992 int _fpu_cmp = 0; 8993 uint32_t _cf = 0; 8994 int _df = 1; 8995 uint32_t _flag_k = FK_NONE; 8996 uint32_t _flag_a = 0, _flag_b = 0; 8997 uint32_t _itail_tgt = 0; 8998 RECOMP_REGS_LOCALS 8999 RECOMP_ENTER(0x36090B70u); 9000 9001 L_36090B70: 9002 PUSH32(esp, ebp); /* 0x36090B70: push ebp */ 9003 ebp = esp; /* 0x36090B71: mov ebp, esp */ 9004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9006 esp = esp - 8; /* 0x36090B73: sub esp, 8 */ 9007 _flag_k = FK_CMP; 9008 PUSH32(esp, ebx); /* 0x36090B76: push ebx */ 9009 PUSH32(esp, esi); /* 0x36090B77: push esi */ 9010 PUSH32(esp, edi); /* 0x36090B78: push edi */ 9011 esi = ecx; /* 0x36090B79: mov esi, ecx */ 9012 eax = MEM32(esi); /* 0x36090B7B: mov eax, dword ptr [esi] */ 9013 PUSH32(esp, 2); /* 0x36090B7D: push 2 */ 9014 PUSH32(esp, 0x1Eu); /* 0x36090B7F: push 0x1e */ 9015 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090B81: call dword ptr [eax + 4] */ 9016 RECOMP_FLAGS_IN(); 9017 /* test LO8(eax), 4 */ /* 0x36090B84: test al, 4 */ 9018 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(4) << 24; 9019 _cf = 0; 9020 _flag_k = FK_NARROW(FK_TEST, 24); 9021 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090B93; /* 0x36090B86: jne 0x36090b93 */ 9022 L_36090B88: 9023 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9024 eax = 0; /* 0x36090B88: xor eax, eax */ 9025 _cf = 0; 9026 _flag_k = FK_TEST; 9027 edi = POP32_VAL(esp); /* 0x36090B8A: pop edi */ 9028 esi = POP32_VAL(esp); /* 0x36090B8B: pop esi */ 9029 ebx = POP32_VAL(esp); /* 0x36090B8C: pop ebx */ 9030 esp = ebp; /* 0x36090B8D: mov esp, ebp */ 9031 ebp = POP32_VAL(esp); /* 0x36090B8F: pop ebp */ 9032 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090B90: ret 8 */ 9033 L_36090B93: 9034 edi = MEM32(ebp + 0x8); /* 0x36090B93: mov edi, dword ptr [ebp + 8] */ 9035 ecx = MEM32(edi + 0x188); /* 0x36090B96: mov ecx, dword ptr [edi + 0x188] */ 9036 PUSH32(esp, 0x800u); /* 0x36090B9C: push 0x800 */ 9037 RECOMP_ICALL(0x36059BA0u); /* 0x36090BA1: call 0x36059ba0 */ /* not lifted */ 9038 RECOMP_FLAGS_IN(); 9039 /* test LO8(eax), LO8(eax) */ /* 0x36090BA6: test al, al */ 9040 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9041 _cf = 0; 9042 _flag_k = FK_NARROW(FK_TEST, 24); 9043 if (TEST_Z(_flag_a, _flag_b)) goto L_36090BD6; /* 0x36090BA8: je 0x36090bd6 */ 9044 L_36090BAA: 9045 SET_LO8(eax, MEM8(edi + 0x128)); /* 0x36090BAA: mov al, byte ptr [edi + 0x128] */ 9046 /* test LO8(eax), LO8(eax) */ /* 0x36090BB0: test al, al */ 9047 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9048 _cf = 0; 9049 _flag_k = FK_NARROW(FK_TEST, 24); 9050 if (TEST_Z(_flag_a, _flag_b)) goto L_36090C52; /* 0x36090BB2: je 0x36090c52 */ 9051 L_36090BB8: 9052 PUSH32(esp, 0); /* 0x36090BB8: push 0 */ 9053 PUSH32(esp, 0x361C5E44u); /* 0x36090BBA: push 0x361c5e44 */ 9054 RECOMP_ICALL(0x3601C590u); /* 0x36090BBF: call 0x3601c590 */ /* not lifted */ 9055 RECOMP_FLAGS_IN(); 9056 ecx = eax; /* 0x36090BC4: mov ecx, eax */ 9057 RECOMP_ICALL(0x3601C8C0u); /* 0x36090BC6: call 0x3601c8c0 */ /* not lifted */ 9058 RECOMP_FLAGS_IN(); 9059 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9060 eax = 0; /* 0x36090BCB: xor eax, eax */ 9061 _cf = 0; 9062 _flag_k = FK_TEST; 9063 edi = POP32_VAL(esp); /* 0x36090BCD: pop edi */ 9064 esi = POP32_VAL(esp); /* 0x36090BCE: pop esi */ 9065 ebx = POP32_VAL(esp); /* 0x36090BCF: pop ebx */ 9066 esp = ebp; /* 0x36090BD0: mov esp, ebp */ 9067 ebp = POP32_VAL(esp); /* 0x36090BD2: pop ebp */ 9068 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090BD3: ret 8 */ 9069 L_36090BD6: 9070 PUSH32(esp, 7); /* 0x36090BD6: push 7 */ 9071 ecx = esi; /* 0x36090BD8: mov ecx, esi */ 9072 RECOMP_ICALL(0x3608F990u); /* 0x36090BDA: call 0x3608f990 */ /* not lifted */ 9073 RECOMP_FLAGS_IN(); 9074 esi = eax; /* 0x36090BDF: mov esi, eax */ 9075 /* test esi, esi */ /* 0x36090BE1: test esi, esi */ 9076 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9077 _cf = 0; 9078 _flag_k = FK_TEST; 9079 if (TEST_Z(_flag_a, _flag_b)) goto L_36090C5D; /* 0x36090BE3: je 0x36090c5d */ 9080 L_36090BE5: 9081 ecx = esi; /* 0x36090BE5: mov ecx, esi */ 9082 RECOMP_ICALL(0x36008320u); /* 0x36090BE7: call 0x36008320 */ /* not lifted */ 9083 RECOMP_FLAGS_IN(); 9084 eax = MEM32(eax); /* 0x36090BEC: mov eax, dword ptr [eax] */ 9085 ecx = MEM32(eax + 0x8); /* 0x36090BEE: mov ecx, dword ptr [eax + 8] */ 9086 /* test ecx, ecx */ /* 0x36090BF1: test ecx, ecx */ 9087 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9088 _cf = 0; 9089 _flag_k = FK_TEST; 9090 if (TEST_Z(_flag_a, _flag_b)) goto L_36090C5D; /* 0x36090BF3: je 0x36090c5d */ 9091 L_36090BF5: 9092 /* test edi, edi */ /* 0x36090BF5: test edi, edi */ 9093 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9094 _cf = 0; 9095 _flag_k = FK_TEST; 9096 if (TEST_Z(_flag_a, _flag_b)) goto L_36090C01; /* 0x36090BF7: je 0x36090c01 */ 9097 L_36090BF9: 9098 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xE4u); 9099 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9100 edi = edi + 0xE4u; /* 0x36090BF9: add edi, 0xe4 */ 9101 _flag_k = FK_ADD; 9102 goto L_36090C03; /* 0x36090BFF: jmp 0x36090c03 */ 9103 L_36090C01: 9104 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9105 edi = 0; /* 0x36090C01: xor edi, edi */ 9106 _cf = 0; 9107 _flag_k = FK_TEST; 9108 L_36090C03: 9109 PUSH32(esp, 0xFFFFFFFFu); /* 0x36090C03: push -1 */ 9110 PUSH32(esp, 0); /* 0x36090C05: push 0 */ 9111 PUSH32(esp, 0); /* 0x36090C07: push 0 */ 9112 ecx = ebp + (-0x8); /* 0x36090C09: lea ecx, [ebp - 8] */ 9113 RECOMP_ICALL(0x36090B50u); /* 0x36090C0C: call 0x36090b50 */ /* not lifted */ 9114 RECOMP_FLAGS_IN(); 9115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9117 esp = esp - 8; /* 0x36090C11: sub esp, 8 */ 9118 _flag_k = FK_CMP; 9119 ecx = esp; /* 0x36090C14: mov ecx, esp */ 9120 PUSH32(esp, eax); /* 0x36090C16: push eax */ 9121 RECOMP_ICALL(0x360056C0u); /* 0x36090C17: call 0x360056c0 */ /* not lifted */ 9122 RECOMP_FLAGS_IN(); 9123 ebx = MEM32(ebp + 0xC); /* 0x36090C1C: mov ebx, dword ptr [ebp + 0xc] */ 9124 PUSH32(esp, 0); /* 0x36090C1F: push 0 */ 9125 PUSH32(esp, ebx); /* 0x36090C21: push ebx */ 9126 PUSH32(esp, edi); /* 0x36090C22: push edi */ 9127 ecx = esi; /* 0x36090C23: mov ecx, esi */ 9128 RECOMP_ICALL(0x36005680u); /* 0x36090C25: call 0x36005680 */ /* not lifted */ 9129 RECOMP_FLAGS_IN(); 9130 /* test LO8(eax), LO8(eax) */ /* 0x36090C2A: test al, al */ 9131 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9132 _cf = 0; 9133 _flag_k = FK_NARROW(FK_TEST, 24); 9134 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090C5D; /* 0x36090C2C: jne 0x36090c5d */ 9135 L_36090C2E: 9136 ecx = MEM32(ebp + 0x8); /* 0x36090C2E: mov ecx, dword ptr [ebp + 8] */ 9137 SET_LO8(eax, MEM8(ecx + 0x128)); /* 0x36090C31: mov al, byte ptr [ecx + 0x128] */ 9138 /* test LO8(eax), LO8(eax) */ /* 0x36090C37: test al, al */ 9139 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9140 _cf = 0; 9141 _flag_k = FK_NARROW(FK_TEST, 24); 9142 if (TEST_Z(_flag_a, _flag_b)) goto L_36090C52; /* 0x36090C39: je 0x36090c52 */ 9143 L_36090C3B: 9144 /* test LO8(ebx), LO8(ebx) */ /* 0x36090C3B: test bl, bl */ 9145 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9146 _cf = 0; 9147 _flag_k = FK_NARROW(FK_TEST, 24); 9148 if (TEST_Z(_flag_a, _flag_b)) goto L_36090C52; /* 0x36090C3D: je 0x36090c52 */ 9149 L_36090C3F: 9150 PUSH32(esp, 0); /* 0x36090C3F: push 0 */ 9151 PUSH32(esp, 0x361C5E20u); /* 0x36090C41: push 0x361c5e20 */ 9152 RECOMP_ICALL(0x3601C590u); /* 0x36090C46: call 0x3601c590 */ /* not lifted */ 9153 RECOMP_FLAGS_IN(); 9154 ecx = eax; /* 0x36090C4B: mov ecx, eax */ 9155 RECOMP_ICALL(0x3601C8C0u); /* 0x36090C4D: call 0x3601c8c0 */ /* not lifted */ 9156 RECOMP_FLAGS_IN(); 9157 L_36090C52: 9158 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9159 eax = 0; /* 0x36090C52: xor eax, eax */ 9160 _cf = 0; 9161 _flag_k = FK_TEST; 9162 edi = POP32_VAL(esp); /* 0x36090C54: pop edi */ 9163 esi = POP32_VAL(esp); /* 0x36090C55: pop esi */ 9164 ebx = POP32_VAL(esp); /* 0x36090C56: pop ebx */ 9165 esp = ebp; /* 0x36090C57: mov esp, ebp */ 9166 ebp = POP32_VAL(esp); /* 0x36090C59: pop ebp */ 9167 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090C5A: ret 8 */ 9168 L_36090C5D: 9169 edi = POP32_VAL(esp); /* 0x36090C5D: pop edi */ 9170 esi = POP32_VAL(esp); /* 0x36090C5E: pop esi */ 9171 eax = 2; /* 0x36090C5F: mov eax, 2 */ 9172 ebx = POP32_VAL(esp); /* 0x36090C64: pop ebx */ 9173 esp = ebp; /* 0x36090C65: mov esp, ebp */ 9174 ebp = POP32_VAL(esp); /* 0x36090C67: pop ebp */ 9175 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090C68: ret 8 */ 9176 RECOMP_REGS_OUT(); 9177 } 9178 9179 void sub_36090C70(void) { 9180 int _fpu_cmp = 0; 9181 uint32_t _cf = 0; 9182 int _df = 1; 9183 uint32_t _flag_k = FK_NONE; 9184 uint32_t _flag_a = 0, _flag_b = 0; 9185 uint32_t _itail_tgt = 0; 9186 RECOMP_REGS_LOCALS 9187 RECOMP_ENTER(0x36090C70u); 9188 9189 L_36090C70: 9190 PUSH32(esp, ebp); /* 0x36090C70: push ebp */ 9191 ebp = esp; /* 0x36090C71: mov ebp, esp */ 9192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9194 esp = esp - 8; /* 0x36090C73: sub esp, 8 */ 9195 _flag_k = FK_CMP; 9196 PUSH32(esp, esi); /* 0x36090C76: push esi */ 9197 PUSH32(esp, edi); /* 0x36090C77: push edi */ 9198 esi = ecx; /* 0x36090C78: mov esi, ecx */ 9199 PUSH32(esp, 8); /* 0x36090C7A: push 8 */ 9200 RECOMP_ICALL(0x3608F990u); /* 0x36090C7C: call 0x3608f990 */ /* not lifted */ 9201 RECOMP_FLAGS_IN(); 9202 edi = eax; /* 0x36090C81: mov edi, eax */ 9203 /* test edi, edi */ /* 0x36090C83: test edi, edi */ 9204 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9205 _cf = 0; 9206 _flag_k = FK_TEST; 9207 if (TEST_Z(_flag_a, _flag_b)) goto L_36090CEB; /* 0x36090C85: je 0x36090ceb */ 9208 L_36090C87: 9209 ecx = edi; /* 0x36090C87: mov ecx, edi */ 9210 RECOMP_ICALL(0x36008320u); /* 0x36090C89: call 0x36008320 */ /* not lifted */ 9211 RECOMP_FLAGS_IN(); 9212 eax = MEM32(eax); /* 0x36090C8E: mov eax, dword ptr [eax] */ 9213 ecx = MEM32(eax + 0x8); /* 0x36090C90: mov ecx, dword ptr [eax + 8] */ 9214 /* test ecx, ecx */ /* 0x36090C93: test ecx, ecx */ 9215 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9216 _cf = 0; 9217 _flag_k = FK_TEST; 9218 if (TEST_Z(_flag_a, _flag_b)) goto L_36090CDE; /* 0x36090C95: je 0x36090cde */ 9219 L_36090C97: 9220 eax = MEM32(ebp + 0x8); /* 0x36090C97: mov eax, dword ptr [ebp + 8] */ 9221 /* test eax, eax */ /* 0x36090C9A: test eax, eax */ 9222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9223 _cf = 0; 9224 _flag_k = FK_TEST; 9225 if (TEST_Z(_flag_a, _flag_b)) goto L_36090CA6; /* 0x36090C9C: je 0x36090ca6 */ 9226 L_36090C9E: 9227 esi = eax + 0xE4; /* 0x36090C9E: lea esi, [eax + 0xe4] */ 9228 goto L_36090CA8; /* 0x36090CA4: jmp 0x36090ca8 */ 9229 L_36090CA6: 9230 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9231 esi = 0; /* 0x36090CA6: xor esi, esi */ 9232 _cf = 0; 9233 _flag_k = FK_TEST; 9234 L_36090CA8: 9235 PUSH32(esp, 0xFFFFFFFFu); /* 0x36090CA8: push -1 */ 9236 PUSH32(esp, 0); /* 0x36090CAA: push 0 */ 9237 PUSH32(esp, 0); /* 0x36090CAC: push 0 */ 9238 ecx = ebp + (-0x8); /* 0x36090CAE: lea ecx, [ebp - 8] */ 9239 RECOMP_ICALL(0x36090B50u); /* 0x36090CB1: call 0x36090b50 */ /* not lifted */ 9240 RECOMP_FLAGS_IN(); 9241 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9243 esp = esp - 8; /* 0x36090CB6: sub esp, 8 */ 9244 _flag_k = FK_CMP; 9245 ecx = esp; /* 0x36090CB9: mov ecx, esp */ 9246 PUSH32(esp, eax); /* 0x36090CBB: push eax */ 9247 RECOMP_ICALL(0x360056C0u); /* 0x36090CBC: call 0x360056c0 */ /* not lifted */ 9248 RECOMP_FLAGS_IN(); 9249 eax = MEM32(ebp + 0xC); /* 0x36090CC1: mov eax, dword ptr [ebp + 0xc] */ 9250 PUSH32(esp, 0); /* 0x36090CC4: push 0 */ 9251 PUSH32(esp, eax); /* 0x36090CC6: push eax */ 9252 PUSH32(esp, esi); /* 0x36090CC7: push esi */ 9253 ecx = edi; /* 0x36090CC8: mov ecx, edi */ 9254 RECOMP_ICALL(0x36005680u); /* 0x36090CCA: call 0x36005680 */ /* not lifted */ 9255 RECOMP_FLAGS_IN(); 9256 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9257 _cf = (LO8(eax)) != 0; 9258 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36090CCF: neg al */ 9259 _flag_k = FK_NARROW(FK_CMP, 24); 9260 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36090CD1: sbb eax, eax */ 9261 eax = _sc ? 0xFFFFFFFFu : 0; 9262 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9263 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9264 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9265 eax = eax & 2; /* 0x36090CD3: and eax, 2 */ 9266 _cf = 0; 9267 _flag_k = FK_TEST; 9268 edi = POP32_VAL(esp); /* 0x36090CD6: pop edi */ 9269 esi = POP32_VAL(esp); /* 0x36090CD7: pop esi */ 9270 esp = ebp; /* 0x36090CD8: mov esp, ebp */ 9271 ebp = POP32_VAL(esp); /* 0x36090CDA: pop ebp */ 9272 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090CDB: ret 8 */ 9273 L_36090CDE: 9274 eax = 2; /* 0x36090CDE: mov eax, 2 */ 9275 edi = POP32_VAL(esp); /* 0x36090CE3: pop edi */ 9276 esi = POP32_VAL(esp); /* 0x36090CE4: pop esi */ 9277 esp = ebp; /* 0x36090CE5: mov esp, ebp */ 9278 ebp = POP32_VAL(esp); /* 0x36090CE7: pop ebp */ 9279 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090CE8: ret 8 */ 9280 L_36090CEB: 9281 edx = MEM32(esi); /* 0x36090CEB: mov edx, dword ptr [esi] */ 9282 PUSH32(esp, 2); /* 0x36090CED: push 2 */ 9283 PUSH32(esp, 0x4Cu); /* 0x36090CEF: push 0x4c */ 9284 ecx = esi; /* 0x36090CF1: mov ecx, esi */ 9285 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36090CF3: call dword ptr [edx + 4] */ 9286 RECOMP_FLAGS_IN(); 9287 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9288 eax = eax - 1; /* 0x36090CF6: dec eax */ 9289 _flag_k = FK_DEC; 9290 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 9291 _cf = (eax) != 0; 9292 eax = (uint32_t)(-(int32_t)eax); /* 0x36090CF7: neg eax */ 9293 _flag_k = FK_CMP; 9294 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36090CF9: sbb eax, eax */ 9295 eax = _sc ? 0xFFFFFFFFu : 0; 9296 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9297 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu); 9299 eax = eax & 0xFFFFFFFEu; /* 0x36090CFB: and eax, 0xfffffffe */ 9300 _cf = 0; 9301 _flag_k = FK_TEST; 9302 edi = POP32_VAL(esp); /* 0x36090CFE: pop edi */ 9303 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9304 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9305 eax = eax + 2; /* 0x36090CFF: add eax, 2 */ 9306 _flag_k = FK_ADD; 9307 esi = POP32_VAL(esp); /* 0x36090D02: pop esi */ 9308 esp = ebp; /* 0x36090D03: mov esp, ebp */ 9309 ebp = POP32_VAL(esp); /* 0x36090D05: pop ebp */ 9310 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090D06: ret 8 */ 9311 RECOMP_REGS_OUT(); 9312 } 9313 9314 void sub_36090D10(void) { 9315 int _fpu_cmp = 0; 9316 uint32_t _cf = 0; 9317 int _df = 1; 9318 uint32_t _flag_k = FK_NONE; 9319 uint32_t _flag_a = 0, _flag_b = 0; 9320 uint32_t _itail_tgt = 0; 9321 RECOMP_REGS_LOCALS 9322 RECOMP_ENTER(0x36090D10u); 9323 9324 L_36090D10: 9325 PUSH32(esp, ebp); /* 0x36090D10: push ebp */ 9326 ebp = esp; /* 0x36090D11: mov ebp, esp */ 9327 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9329 esp = esp - 8; /* 0x36090D13: sub esp, 8 */ 9330 _flag_k = FK_CMP; 9331 PUSH32(esp, esi); /* 0x36090D16: push esi */ 9332 PUSH32(esp, edi); /* 0x36090D17: push edi */ 9333 PUSH32(esp, 9); /* 0x36090D18: push 9 */ 9334 RECOMP_ICALL(0x3608F990u); /* 0x36090D1A: call 0x3608f990 */ /* not lifted */ 9335 RECOMP_FLAGS_IN(); 9336 esi = eax; /* 0x36090D1F: mov esi, eax */ 9337 /* test esi, esi */ /* 0x36090D21: test esi, esi */ 9338 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9339 _cf = 0; 9340 _flag_k = FK_TEST; 9341 if (TEST_Z(_flag_a, _flag_b)) goto L_36090D7B; /* 0x36090D23: je 0x36090d7b */ 9342 L_36090D25: 9343 ecx = esi; /* 0x36090D25: mov ecx, esi */ 9344 RECOMP_ICALL(0x36008320u); /* 0x36090D27: call 0x36008320 */ /* not lifted */ 9345 RECOMP_FLAGS_IN(); 9346 eax = MEM32(eax); /* 0x36090D2C: mov eax, dword ptr [eax] */ 9347 ecx = MEM32(eax + 0x8); /* 0x36090D2E: mov ecx, dword ptr [eax + 8] */ 9348 /* test ecx, ecx */ /* 0x36090D31: test ecx, ecx */ 9349 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9350 _cf = 0; 9351 _flag_k = FK_TEST; 9352 if (TEST_Z(_flag_a, _flag_b)) goto L_36090D7B; /* 0x36090D33: je 0x36090d7b */ 9353 L_36090D35: 9354 eax = MEM32(ebp + 0x8); /* 0x36090D35: mov eax, dword ptr [ebp + 8] */ 9355 /* test eax, eax */ /* 0x36090D38: test eax, eax */ 9356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9357 _cf = 0; 9358 _flag_k = FK_TEST; 9359 if (TEST_Z(_flag_a, _flag_b)) goto L_36090D44; /* 0x36090D3A: je 0x36090d44 */ 9360 L_36090D3C: 9361 edi = eax + 0xE4; /* 0x36090D3C: lea edi, [eax + 0xe4] */ 9362 goto L_36090D46; /* 0x36090D42: jmp 0x36090d46 */ 9363 L_36090D44: 9364 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9365 edi = 0; /* 0x36090D44: xor edi, edi */ 9366 _cf = 0; 9367 _flag_k = FK_TEST; 9368 L_36090D46: 9369 PUSH32(esp, 0xFFFFFFFFu); /* 0x36090D46: push -1 */ 9370 PUSH32(esp, 0); /* 0x36090D48: push 0 */ 9371 PUSH32(esp, 0); /* 0x36090D4A: push 0 */ 9372 ecx = ebp + (-0x8); /* 0x36090D4C: lea ecx, [ebp - 8] */ 9373 RECOMP_ICALL(0x36090B50u); /* 0x36090D4F: call 0x36090b50 */ /* not lifted */ 9374 RECOMP_FLAGS_IN(); 9375 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9377 esp = esp - 8; /* 0x36090D54: sub esp, 8 */ 9378 _flag_k = FK_CMP; 9379 ecx = esp; /* 0x36090D57: mov ecx, esp */ 9380 PUSH32(esp, eax); /* 0x36090D59: push eax */ 9381 RECOMP_ICALL(0x360056C0u); /* 0x36090D5A: call 0x360056c0 */ /* not lifted */ 9382 RECOMP_FLAGS_IN(); 9383 eax = MEM32(ebp + 0xC); /* 0x36090D5F: mov eax, dword ptr [ebp + 0xc] */ 9384 PUSH32(esp, 0); /* 0x36090D62: push 0 */ 9385 PUSH32(esp, eax); /* 0x36090D64: push eax */ 9386 PUSH32(esp, edi); /* 0x36090D65: push edi */ 9387 ecx = esi; /* 0x36090D66: mov ecx, esi */ 9388 RECOMP_ICALL(0x36005680u); /* 0x36090D68: call 0x36005680 */ /* not lifted */ 9389 RECOMP_FLAGS_IN(); 9390 /* test LO8(eax), LO8(eax) */ /* 0x36090D6D: test al, al */ 9391 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9392 _cf = 0; 9393 _flag_k = FK_NARROW(FK_TEST, 24); 9394 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090D7B; /* 0x36090D6F: jne 0x36090d7b */ 9395 L_36090D71: 9396 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9397 eax = 0; /* 0x36090D71: xor eax, eax */ 9398 _cf = 0; 9399 _flag_k = FK_TEST; 9400 edi = POP32_VAL(esp); /* 0x36090D73: pop edi */ 9401 esi = POP32_VAL(esp); /* 0x36090D74: pop esi */ 9402 esp = ebp; /* 0x36090D75: mov esp, ebp */ 9403 ebp = POP32_VAL(esp); /* 0x36090D77: pop ebp */ 9404 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090D78: ret 8 */ 9405 L_36090D7B: 9406 edi = POP32_VAL(esp); /* 0x36090D7B: pop edi */ 9407 eax = 2; /* 0x36090D7C: mov eax, 2 */ 9408 esi = POP32_VAL(esp); /* 0x36090D81: pop esi */ 9409 esp = ebp; /* 0x36090D82: mov esp, ebp */ 9410 ebp = POP32_VAL(esp); /* 0x36090D84: pop ebp */ 9411 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090D85: ret 8 */ 9412 RECOMP_REGS_OUT(); 9413 } 9414 9415 void sub_36090D90(void) { 9416 int _fpu_cmp = 0; 9417 uint32_t _cf = 0; 9418 int _df = 1; 9419 uint32_t _flag_k = FK_NONE; 9420 uint32_t _flag_a = 0, _flag_b = 0; 9421 uint32_t _itail_tgt = 0; 9422 RECOMP_REGS_LOCALS 9423 RECOMP_ENTER(0x36090D90u); 9424 9425 L_36090D90: 9426 PUSH32(esp, ebp); /* 0x36090D90: push ebp */ 9427 ebp = esp; /* 0x36090D91: mov ebp, esp */ 9428 PUSH32(esp, esi); /* 0x36090D93: push esi */ 9429 esi = ecx; /* 0x36090D94: mov esi, ecx */ 9430 eax = MEM32(esi + 0x78); /* 0x36090D96: mov eax, dword ptr [esi + 0x78] */ 9431 /* test eax, eax */ /* 0x36090D99: test eax, eax */ 9432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9433 _cf = 0; 9434 _flag_k = FK_TEST; 9435 if (TEST_Z(_flag_a, _flag_b)) goto L_36090DB2; /* 0x36090D9B: je 0x36090db2 */ 9436 L_36090D9D: 9437 PUSH32(esp, eax); /* 0x36090D9D: push eax */ 9438 RECOMP_ICALL(MEM32(0x3616F1A4)); /* 0x36090D9E: call dword ptr [0x3616f1a4] */ 9439 RECOMP_FLAGS_IN(); 9440 eax = MEM32(ebp + 0x8); /* 0x36090DA4: mov eax, dword ptr [ebp + 8] */ 9441 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9443 esp = esp + 4; /* 0x36090DA7: add esp, 4 */ 9444 _flag_k = FK_ADD; 9445 MEM32(esi + 0x78) = eax; /* 0x36090DAA: mov dword ptr [esi + 0x78], eax */ 9446 esi = POP32_VAL(esp); /* 0x36090DAD: pop esi */ 9447 ebp = POP32_VAL(esp); /* 0x36090DAE: pop ebp */ 9448 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090DAF: ret 4 */ 9449 L_36090DB2: 9450 ecx = MEM32(ebp + 0x8); /* 0x36090DB2: mov ecx, dword ptr [ebp + 8] */ 9451 MEM32(esi + 0x78) = ecx; /* 0x36090DB5: mov dword ptr [esi + 0x78], ecx */ 9452 esi = POP32_VAL(esp); /* 0x36090DB8: pop esi */ 9453 ebp = POP32_VAL(esp); /* 0x36090DB9: pop ebp */ 9454 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090DBA: ret 4 */ 9455 RECOMP_REGS_OUT(); 9456 } 9457 9458 void sub_36090DC0(void) { 9459 int _fpu_cmp = 0; 9460 uint32_t _cf = 0; 9461 int _df = 1; 9462 uint32_t _flag_k = FK_NONE; 9463 uint32_t _flag_a = 0, _flag_b = 0; 9464 uint32_t _itail_tgt = 0; 9465 RECOMP_REGS_LOCALS 9466 RECOMP_ENTER(0x36090DC0u); 9467 9468 L_36090DC0: 9469 PUSH32(esp, ebp); /* 0x36090DC0: push ebp */ 9470 ebp = esp; /* 0x36090DC1: mov ebp, esp */ 9471 PUSH32(esp, esi); /* 0x36090DC3: push esi */ 9472 esi = ecx; /* 0x36090DC4: mov esi, ecx */ 9473 eax = MEM32(esi + 0x7C); /* 0x36090DC6: mov eax, dword ptr [esi + 0x7c] */ 9474 /* test eax, eax */ /* 0x36090DC9: test eax, eax */ 9475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9476 _cf = 0; 9477 _flag_k = FK_TEST; 9478 if (TEST_Z(_flag_a, _flag_b)) goto L_36090DE2; /* 0x36090DCB: je 0x36090de2 */ 9479 L_36090DCD: 9480 PUSH32(esp, eax); /* 0x36090DCD: push eax */ 9481 RECOMP_ICALL(MEM32(0x3616F1A4)); /* 0x36090DCE: call dword ptr [0x3616f1a4] */ 9482 RECOMP_FLAGS_IN(); 9483 eax = MEM32(ebp + 0x8); /* 0x36090DD4: mov eax, dword ptr [ebp + 8] */ 9484 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9485 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9486 esp = esp + 4; /* 0x36090DD7: add esp, 4 */ 9487 _flag_k = FK_ADD; 9488 MEM32(esi + 0x7C) = eax; /* 0x36090DDA: mov dword ptr [esi + 0x7c], eax */ 9489 esi = POP32_VAL(esp); /* 0x36090DDD: pop esi */ 9490 ebp = POP32_VAL(esp); /* 0x36090DDE: pop ebp */ 9491 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090DDF: ret 4 */ 9492 L_36090DE2: 9493 ecx = MEM32(ebp + 0x8); /* 0x36090DE2: mov ecx, dword ptr [ebp + 8] */ 9494 MEM32(esi + 0x7C) = ecx; /* 0x36090DE5: mov dword ptr [esi + 0x7c], ecx */ 9495 esi = POP32_VAL(esp); /* 0x36090DE8: pop esi */ 9496 ebp = POP32_VAL(esp); /* 0x36090DE9: pop ebp */ 9497 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090DEA: ret 4 */ 9498 RECOMP_REGS_OUT(); 9499 } 9500 9501 void sub_36090DF0(void) { 9502 int _fpu_cmp = 0; 9503 uint32_t _cf = 0; 9504 int _df = 1; 9505 uint32_t _flag_k = FK_NONE; 9506 uint32_t _flag_a = 0, _flag_b = 0; 9507 uint32_t _itail_tgt = 0; 9508 RECOMP_REGS_LOCALS 9509 RECOMP_ENTER(0x36090DF0u); 9510 9511 L_36090DF0: 9512 PUSH32(esp, ebp); /* 0x36090DF0: push ebp */ 9513 ebp = esp; /* 0x36090DF1: mov ebp, esp */ 9514 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9516 esp = esp - 8; /* 0x36090DF3: sub esp, 8 */ 9517 _flag_k = FK_CMP; 9518 eax = MEM32(ecx + 0x78); /* 0x36090DF6: mov eax, dword ptr [ecx + 0x78] */ 9519 /* test eax, eax */ /* 0x36090DF9: test eax, eax */ 9520 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9521 _cf = 0; 9522 _flag_k = FK_TEST; 9523 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090E3E; /* 0x36090DFB: jne 0x36090e3e */ 9524 L_36090DFD: 9525 eax = MEM32(ecx); /* 0x36090DFD: mov eax, dword ptr [ecx] */ 9526 PUSH32(esp, 2); /* 0x36090DFF: push 2 */ 9527 PUSH32(esp, 0x1BEu); /* 0x36090E01: push 0x1be */ 9528 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090E06: call dword ptr [eax + 4] */ 9529 RECOMP_FLAGS_IN(); 9530 /* cmp eax, 0x499602D2u */ /* 0x36090E09: cmp eax, 0x499602d2 */ 9531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x499602D2u); 9532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9533 _flag_k = FK_CMP; 9534 if (CMP_EQ(_flag_a, _flag_b)) goto L_36090E39; /* 0x36090E0E: je 0x36090e39 */ 9535 L_36090E10: 9536 ecx = ebp + (-0x8); /* 0x36090E10: lea ecx, [ebp - 8] */ 9537 PUSH32(esp, ecx); /* 0x36090E13: push ecx */ 9538 MEM32(ebp + (-0x8)) = 0x000F4254u; /* 0x36090E14: mov dword ptr [ebp - 8], 0xf4254 */ 9539 MEM32(ebp + (-0x4)) = eax; /* 0x36090E1B: mov dword ptr [ebp - 4], eax */ 9540 RECOMP_ICALL(0x360936A0u); /* 0x36090E1E: call 0x360936a0 */ /* not lifted */ 9541 RECOMP_FLAGS_IN(); 9542 ecx = eax; /* 0x36090E23: mov ecx, eax */ 9543 RECOMP_ICALL(0x360930F0u); /* 0x36090E25: call 0x360930f0 */ /* not lifted */ 9544 RECOMP_FLAGS_IN(); 9545 /* test eax, eax */ /* 0x36090E2A: test eax, eax */ 9546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9547 _cf = 0; 9548 _flag_k = FK_TEST; 9549 if (TEST_Z(_flag_a, _flag_b)) goto L_36090E39; /* 0x36090E2C: je 0x36090e39 */ 9550 L_36090E2E: 9551 edx = MEM32(eax); /* 0x36090E2E: mov edx, dword ptr [eax] */ 9552 ecx = eax; /* 0x36090E30: mov ecx, eax */ 9553 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x36090E32: call dword ptr [edx + 0x3c] */ 9554 RECOMP_FLAGS_IN(); 9555 /* test eax, eax */ /* 0x36090E35: test eax, eax */ 9556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9557 _cf = 0; 9558 _flag_k = FK_TEST; 9559 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090E3E; /* 0x36090E37: jne 0x36090e3e */ 9560 L_36090E39: 9561 eax = MEM32(0x361C5B1C); /* 0x36090E39: mov eax, dword ptr [0x361c5b1c] */ 9562 L_36090E3E: 9563 esp = ebp; /* 0x36090E3E: mov esp, ebp */ 9564 ebp = POP32_VAL(esp); /* 0x36090E40: pop ebp */ 9565 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36090E41: ret */ 9566 RECOMP_REGS_OUT(); 9567 } 9568 9569 void sub_36090E50(void) { 9570 int _fpu_cmp = 0; 9571 uint32_t _cf = 0; 9572 int _df = 1; 9573 uint32_t _flag_k = FK_NONE; 9574 uint32_t _flag_a = 0, _flag_b = 0; 9575 uint32_t _itail_tgt = 0; 9576 RECOMP_REGS_LOCALS 9577 RECOMP_ENTER(0x36090E50u); 9578 9579 L_36090E50: 9580 PUSH32(esp, ebp); /* 0x36090E50: push ebp */ 9581 ebp = esp; /* 0x36090E51: mov ebp, esp */ 9582 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9584 esp = esp - 8; /* 0x36090E53: sub esp, 8 */ 9585 _flag_k = FK_CMP; 9586 PUSH32(esp, esi); /* 0x36090E56: push esi */ 9587 esi = MEM32(ecx + 0x7C); /* 0x36090E57: mov esi, dword ptr [ecx + 0x7c] */ 9588 /* test esi, esi */ /* 0x36090E5A: test esi, esi */ 9589 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9590 _cf = 0; 9591 _flag_k = FK_TEST; 9592 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090E9B; /* 0x36090E5C: jne 0x36090e9b */ 9593 L_36090E5E: 9594 eax = MEM32(ecx); /* 0x36090E5E: mov eax, dword ptr [ecx] */ 9595 PUSH32(esp, 2); /* 0x36090E60: push 2 */ 9596 PUSH32(esp, 0x1BEu); /* 0x36090E62: push 0x1be */ 9597 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090E67: call dword ptr [eax + 4] */ 9598 RECOMP_FLAGS_IN(); 9599 /* cmp eax, 0x499602D2u */ /* 0x36090E6A: cmp eax, 0x499602d2 */ 9600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x499602D2u); 9601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9602 _flag_k = FK_CMP; 9603 if (CMP_EQ(_flag_a, _flag_b)) goto L_36090E9B; /* 0x36090E6F: je 0x36090e9b */ 9604 L_36090E71: 9605 ecx = ebp + (-0x8); /* 0x36090E71: lea ecx, [ebp - 8] */ 9606 PUSH32(esp, ecx); /* 0x36090E74: push ecx */ 9607 MEM32(ebp + (-0x8)) = 0x000F4254u; /* 0x36090E75: mov dword ptr [ebp - 8], 0xf4254 */ 9608 MEM32(ebp + (-0x4)) = eax; /* 0x36090E7C: mov dword ptr [ebp - 4], eax */ 9609 RECOMP_ICALL(0x360936A0u); /* 0x36090E7F: call 0x360936a0 */ /* not lifted */ 9610 RECOMP_FLAGS_IN(); 9611 ecx = eax; /* 0x36090E84: mov ecx, eax */ 9612 RECOMP_ICALL(0x360930F0u); /* 0x36090E86: call 0x360930f0 */ /* not lifted */ 9613 RECOMP_FLAGS_IN(); 9614 /* test eax, eax */ /* 0x36090E8B: test eax, eax */ 9615 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9616 _cf = 0; 9617 _flag_k = FK_TEST; 9618 if (TEST_Z(_flag_a, _flag_b)) goto L_36090E9B; /* 0x36090E8D: je 0x36090e9b */ 9619 L_36090E8F: 9620 edx = MEM32(eax); /* 0x36090E8F: mov edx, dword ptr [eax] */ 9621 ecx = eax; /* 0x36090E91: mov ecx, eax */ 9622 RECOMP_ICALL(MEM32(edx + 0x40)); /* 0x36090E93: call dword ptr [edx + 0x40] */ 9623 RECOMP_FLAGS_IN(); 9624 esi = POP32_VAL(esp); /* 0x36090E96: pop esi */ 9625 esp = ebp; /* 0x36090E97: mov esp, ebp */ 9626 ebp = POP32_VAL(esp); /* 0x36090E99: pop ebp */ 9627 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36090E9A: ret */ 9628 L_36090E9B: 9629 eax = esi; /* 0x36090E9B: mov eax, esi */ 9630 esi = POP32_VAL(esp); /* 0x36090E9D: pop esi */ 9631 esp = ebp; /* 0x36090E9E: mov esp, ebp */ 9632 ebp = POP32_VAL(esp); /* 0x36090EA0: pop ebp */ 9633 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36090EA1: ret */ 9634 RECOMP_REGS_OUT(); 9635 } 9636 9637 void sub_36090EB0(void) { 9638 int _fpu_cmp = 0; 9639 uint32_t _cf = 0; 9640 int _df = 1; 9641 uint32_t _flag_k = FK_NONE; 9642 uint32_t _flag_a = 0, _flag_b = 0; 9643 uint32_t _itail_tgt = 0; 9644 RECOMP_REGS_LOCALS 9645 RECOMP_ENTER(0x36090EB0u); 9646 9647 L_36090EB0: 9648 PUSH32(esp, ebp); /* 0x36090EB0: push ebp */ 9649 ebp = esp; /* 0x36090EB1: mov ebp, esp */ 9650 PUSH32(esp, ebx); /* 0x36090EB3: push ebx */ 9651 PUSH32(esp, esi); /* 0x36090EB4: push esi */ 9652 PUSH32(esp, edi); /* 0x36090EB5: push edi */ 9653 esi = ecx; /* 0x36090EB6: mov esi, ecx */ 9654 eax = MEM32(esi); /* 0x36090EB8: mov eax, dword ptr [esi] */ 9655 PUSH32(esp, 2); /* 0x36090EBA: push 2 */ 9656 PUSH32(esp, 0x2BDu); /* 0x36090EBC: push 0x2bd */ 9657 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090EC1: call dword ptr [eax + 4] */ 9658 RECOMP_FLAGS_IN(); 9659 edx = MEM32(esi); /* 0x36090EC4: mov edx, dword ptr [esi] */ 9660 PUSH32(esp, 2); /* 0x36090EC6: push 2 */ 9661 PUSH32(esp, 0x2BFu); /* 0x36090EC8: push 0x2bf */ 9662 ecx = esi; /* 0x36090ECD: mov ecx, esi */ 9663 edi = eax; /* 0x36090ECF: mov edi, eax */ 9664 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36090ED1: call dword ptr [edx + 4] */ 9665 RECOMP_FLAGS_IN(); 9666 PUSH32(esp, 2); /* 0x36090ED4: push 2 */ 9667 ebx = eax; /* 0x36090ED6: mov ebx, eax */ 9668 eax = MEM32(esi); /* 0x36090ED8: mov eax, dword ptr [esi] */ 9669 PUSH32(esp, 0x2BEu); /* 0x36090EDA: push 0x2be */ 9670 ecx = esi; /* 0x36090EDF: mov ecx, esi */ 9671 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36090EE1: call dword ptr [eax + 4] */ 9672 RECOMP_FLAGS_IN(); 9673 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 9674 edi = edi & 0xFFFFu; /* 0x36090EE4: and edi, 0xffff */ 9675 _cf = 0; 9676 _flag_k = FK_TEST; 9677 /* test ebx, ebx */ /* 0x36090EEA: test ebx, ebx */ 9678 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9679 _cf = 0; 9680 _flag_k = FK_TEST; 9681 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090EF0; /* 0x36090EEC: jne 0x36090ef0 */ 9682 L_36090EEE: 9683 ebx = eax; /* 0x36090EEE: mov ebx, eax */ 9684 L_36090EF0: 9685 ecx = MEM32(ebp + 0x8); /* 0x36090EF0: mov ecx, dword ptr [ebp + 8] */ 9686 edx = ecx; /* 0x36090EF3: mov edx, ecx */ 9687 MEM32(edx) = edi; /* 0x36090EF5: mov dword ptr [edx], edi */ 9688 edi = POP32_VAL(esp); /* 0x36090EF7: pop edi */ 9689 MEM32(edx + 0x4) = eax; /* 0x36090EF8: mov dword ptr [edx + 4], eax */ 9690 esi = POP32_VAL(esp); /* 0x36090EFB: pop esi */ 9691 MEM32(edx + 0x8) = ebx; /* 0x36090EFC: mov dword ptr [edx + 8], ebx */ 9692 eax = ecx; /* 0x36090EFF: mov eax, ecx */ 9693 ebx = POP32_VAL(esp); /* 0x36090F01: pop ebx */ 9694 ebp = POP32_VAL(esp); /* 0x36090F02: pop ebp */ 9695 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36090F03: ret 4 */ 9696 RECOMP_REGS_OUT(); 9697 } 9698 9699 void sub_36090F10(void) { 9700 int _fpu_cmp = 0; 9701 uint32_t _cf = 0; 9702 int _df = 1; 9703 uint32_t _flag_k = FK_NONE; 9704 uint32_t _flag_a = 0, _flag_b = 0; 9705 uint32_t _itail_tgt = 0; 9706 RECOMP_REGS_LOCALS 9707 RECOMP_ENTER(0x36090F10u); 9708 9709 L_36090F10: 9710 PUSH32(esp, ebp); /* 0x36090F10: push ebp */ 9711 ebp = esp; /* 0x36090F11: mov ebp, esp */ 9712 PUSH32(esp, ecx); /* 0x36090F13: push ecx */ 9713 eax = MEM32(ebp + 0x8); /* 0x36090F14: mov eax, dword ptr [ebp + 8] */ 9714 PUSH32(esp, edi); /* 0x36090F17: push edi */ 9715 PUSH32(esp, eax); /* 0x36090F18: push eax */ 9716 RECOMP_ICALL(0x3608F990u); /* 0x36090F19: call 0x3608f990 */ /* not lifted */ 9717 RECOMP_FLAGS_IN(); 9718 edi = eax; /* 0x36090F1E: mov edi, eax */ 9719 /* test edi, edi */ /* 0x36090F20: test edi, edi */ 9720 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9721 _cf = 0; 9722 _flag_k = FK_TEST; 9723 if (TEST_NZ(_flag_a, _flag_b)) goto L_36090F2B; /* 0x36090F22: jne 0x36090f2b */ 9724 L_36090F24: 9725 edi = POP32_VAL(esp); /* 0x36090F24: pop edi */ 9726 esp = ebp; /* 0x36090F25: mov esp, ebp */ 9727 ebp = POP32_VAL(esp); /* 0x36090F27: pop ebp */ 9728 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090F28: ret 8 */ 9729 L_36090F2B: 9730 PUSH32(esp, ebx); /* 0x36090F2B: push ebx */ 9731 PUSH32(esp, esi); /* 0x36090F2C: push esi */ 9732 ecx = edi; /* 0x36090F2D: mov ecx, edi */ 9733 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9734 ebx = 0; /* 0x36090F2F: xor ebx, ebx */ 9735 _cf = 0; 9736 _flag_k = FK_TEST; 9737 RECOMP_ICALL(0x36008320u); /* 0x36090F31: call 0x36008320 */ /* not lifted */ 9738 RECOMP_FLAGS_IN(); 9739 eax = MEM32(eax); /* 0x36090F36: mov eax, dword ptr [eax] */ 9740 ecx = MEM32(eax + 0x4); /* 0x36090F38: mov ecx, dword ptr [eax + 4] */ 9741 esi = MEM32(ecx); /* 0x36090F3B: mov esi, dword ptr [ecx] */ 9742 ecx = edi; /* 0x36090F3D: mov ecx, edi */ 9743 RECOMP_ICALL(0x36008320u); /* 0x36090F3F: call 0x36008320 */ /* not lifted */ 9744 RECOMP_FLAGS_IN(); 9745 eax = MEM32(eax); /* 0x36090F44: mov eax, dword ptr [eax] */ 9746 /* cmp esi, MEM32(eax + 0x4) */ /* 0x36090F46: cmp esi, dword ptr [eax + 4] */ 9747 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 9748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9749 _flag_k = FK_CMP; 9750 if (CMP_EQ(_flag_a, _flag_b)) goto L_36090FD5; /* 0x36090F49: je 0x36090fd5 */ 9751 L_36090F4F: 9752 /* cmp MEM32(esi + 0x10), 2 */ /* 0x36090F4F: cmp dword ptr [esi + 0x10], 2 */ 9753 _flag_a = (uint32_t)(MEM32(esi + 0x10)); _flag_b = (uint32_t)(2); 9754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9755 _flag_k = FK_CMP; 9756 edx = MEM32(esi + 0xC); /* 0x36090F53: mov edx, dword ptr [esi + 0xc] */ 9757 eax = MEM32(esi + 0x8); /* 0x36090F56: mov eax, dword ptr [esi + 8] */ 9758 MEM32(ebp + (-0x4)) = edx; /* 0x36090F59: mov dword ptr [ebp - 4], edx */ 9759 if (CMP_NE(_flag_a, _flag_b)) goto L_36090FAA; /* 0x36090F5C: jne 0x36090faa */ 9760 L_36090F5E: 9761 ecx = MEM32(ebp + 0xC); /* 0x36090F5E: mov ecx, dword ptr [ebp + 0xc] */ 9762 edx = MEM32(ecx + 0xE4); /* 0x36090F61: mov edx, dword ptr [ecx + 0xe4] */ 9763 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 9764 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9765 ecx = ecx + 0xE4u; /* 0x36090F67: add ecx, 0xe4 */ 9766 _flag_k = FK_ADD; 9767 PUSH32(esp, 0); /* 0x36090F6D: push 0 */ 9768 PUSH32(esp, eax); /* 0x36090F6F: push eax */ 9769 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36090F70: call dword ptr [edx + 4] */ 9770 RECOMP_FLAGS_IN(); 9771 MEM32(ebp + 0x8) = eax; /* 0x36090F73: mov dword ptr [ebp + 8], eax */ 9772 fp_push((double)(int32_t)MEM32(ebp + 0x8)); /* 0x36090F76: fild dword ptr [ebp + 8] */ 9773 _st[0] = _st[0] / (double)(int32_t)MEM32(ebp + (-0x4)); /* 0x36090F79: fidiv dword ptr [ebp - 4] */ 9774 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170380)); /* 0x36090F7C: fcom dword ptr [0x36170380] */ 9775 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36090F82: fnstsw ax */ 9776 /* test HI8(eax), 1 */ /* 0x36090F84: test ah, 1 */ 9777 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9778 _cf = 0; 9779 _flag_k = FK_NARROW(FK_TEST, 24); 9780 if (TEST_Z(_flag_a, _flag_b)) goto L_36090FA8; /* 0x36090F87: je 0x36090fa8 */ 9781 L_36090F89: 9782 _st[0] *= (double)*(float*)ADDR(0x361709C0); /* 0x36090F89: fmul dword ptr [0x361709c0] */ 9783 _st[0] = (double)*(float*)ADDR(0x361709C0) - _st[0]; /* 0x36090F8F: fsubr dword ptr [0x361709c0] */ 9784 _st[0] *= (double)*(float*)ADDR(0x36170464); /* 0x36090F95: fmul dword ptr [0x36170464] */ 9785 RECOMP_ICALL(0x3615FD8Cu); /* 0x36090F9B: call 0x3615fd8c */ /* not lifted */ 9786 RECOMP_FLAGS_IN(); 9787 /* cmp eax, ebx */ /* 0x36090FA0: cmp eax, ebx */ 9788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9790 _flag_k = FK_CMP; 9791 if (CMP_LE(_flag_a, _flag_b)) goto L_36090FAA; /* 0x36090FA2: jle 0x36090faa */ 9792 L_36090FA4: 9793 ebx = eax; /* 0x36090FA4: mov ebx, eax */ 9794 goto L_36090FAA; /* 0x36090FA6: jmp 0x36090faa */ 9795 L_36090FA8: 9796 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x36090FA8: fstp st(0) */ 9797 L_36090FAA: 9798 esi = MEM32(esi); /* 0x36090FAA: mov esi, dword ptr [esi] */ 9799 ecx = edi; /* 0x36090FAC: mov ecx, edi */ 9800 RECOMP_ICALL(0x36008320u); /* 0x36090FAE: call 0x36008320 */ /* not lifted */ 9801 RECOMP_FLAGS_IN(); 9802 eax = MEM32(eax); /* 0x36090FB3: mov eax, dword ptr [eax] */ 9803 /* cmp esi, MEM32(eax + 0x4) */ /* 0x36090FB5: cmp esi, dword ptr [eax + 4] */ 9804 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 9805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9806 _flag_k = FK_CMP; 9807 RECOMP_BACKEDGE(); 9808 if (CMP_NE(_flag_a, _flag_b)) goto L_36090F4F; /* 0x36090FB8: jne 0x36090f4f */ 9809 L_36090FBA: 9810 /* cmp ebx, 4 */ /* 0x36090FBA: cmp ebx, 4 */ 9811 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 9812 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9813 _flag_k = FK_CMP; 9814 if (CMP_LE(_flag_a, _flag_b)) goto L_36090FCF; /* 0x36090FBD: jle 0x36090fcf */ 9815 L_36090FBF: 9816 ebx = 4; /* 0x36090FBF: mov ebx, 4 */ 9817 esi = POP32_VAL(esp); /* 0x36090FC4: pop esi */ 9818 eax = ebx; /* 0x36090FC5: mov eax, ebx */ 9819 ebx = POP32_VAL(esp); /* 0x36090FC7: pop ebx */ 9820 edi = POP32_VAL(esp); /* 0x36090FC8: pop edi */ 9821 esp = ebp; /* 0x36090FC9: mov esp, ebp */ 9822 ebp = POP32_VAL(esp); /* 0x36090FCB: pop ebp */ 9823 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090FCC: ret 8 */ 9824 L_36090FCF: 9825 /* test ebx, ebx */ /* 0x36090FCF: test ebx, ebx */ 9826 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9827 _cf = 0; 9828 _flag_k = FK_TEST; 9829 if (TEST_NS(_flag_a, _flag_b)) goto L_36090FD5; /* 0x36090FD1: jge 0x36090fd5 */ 9830 L_36090FD3: 9831 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9832 ebx = 0; /* 0x36090FD3: xor ebx, ebx */ 9833 _cf = 0; 9834 _flag_k = FK_TEST; 9835 L_36090FD5: 9836 esi = POP32_VAL(esp); /* 0x36090FD5: pop esi */ 9837 eax = ebx; /* 0x36090FD6: mov eax, ebx */ 9838 ebx = POP32_VAL(esp); /* 0x36090FD8: pop ebx */ 9839 edi = POP32_VAL(esp); /* 0x36090FD9: pop edi */ 9840 esp = ebp; /* 0x36090FDA: mov esp, ebp */ 9841 ebp = POP32_VAL(esp); /* 0x36090FDC: pop ebp */ 9842 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36090FDD: ret 8 */ 9843 RECOMP_REGS_OUT(); 9844 }