client/game/kkr.dll/lifted-0095.c (210165B)
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_3614B98D(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(0x3614B98Du); 17 18 L_3614B98D: 19 edx = MEM32(esi + 0x4); /* 0x3614B98D: mov edx, dword ptr [esi + 4] */ 20 eax = MEM32(edx + 0x4); /* 0x3614B990: mov eax, dword ptr [edx + 4] */ 21 ecx = MEM32(ebp + (-0x4)); /* 0x3614B993: mov ecx, dword ptr [ebp - 4] */ 22 MEM8(eax + 0x20) = (uint8_t)(LO8(ebx)); /* 0x3614B996: mov byte ptr [eax + 0x20], bl */ 23 eax = MEM32(ebp + 0x8); /* 0x3614B999: mov eax, dword ptr [ebp + 8] */ 24 edi = POP32_VAL(esp); /* 0x3614B99C: pop edi */ 25 esi = POP32_VAL(esp); /* 0x3614B99D: pop esi */ 26 MEM32(eax) = ecx; /* 0x3614B99E: mov dword ptr [eax], ecx */ 27 ebx = POP32_VAL(esp); /* 0x3614B9A0: pop ebx */ 28 esp = ebp; /* 0x3614B9A1: mov esp, ebp */ 29 ebp = POP32_VAL(esp); /* 0x3614B9A3: pop ebp */ 30 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3614B9A4: ret 0x10 */ 31 RECOMP_REGS_OUT(); 32 } 33 34 void sub_3614B9B0(void) { 35 int _fpu_cmp = 0; 36 uint32_t _cf = 0; 37 int _df = 1; 38 uint32_t _flag_k = FK_NONE; 39 uint32_t _flag_a = 0, _flag_b = 0; 40 uint32_t _itail_tgt = 0; 41 RECOMP_REGS_LOCALS 42 RECOMP_ENTER(0x3614B9B0u); 43 44 L_3614B9B0: 45 PUSH32(esp, ebp); /* 0x3614B9B0: push ebp */ 46 ebp = esp; /* 0x3614B9B1: mov ebp, esp */ 47 PUSH32(esp, 0x24u); /* 0x3614B9B3: push 0x24 */ 48 RECOMP_ICALL(0x3615FD6Au); /* 0x3614B9B5: call 0x3615fd6a */ /* not lifted */ 49 RECOMP_FLAGS_IN(); 50 ecx = MEM32(ebp + 0x8); /* 0x3614B9BA: mov ecx, dword ptr [ebp + 8] */ 51 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x3614B9BD: mov dl, byte ptr [ebp + 0xc] */ 52 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 53 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 54 esp = esp + 4; /* 0x3614B9C0: add esp, 4 */ 55 _flag_k = FK_ADD; 56 MEM32(eax + 0x4) = ecx; /* 0x3614B9C3: mov dword ptr [eax + 4], ecx */ 57 MEM8(eax + 0x20) = (uint8_t)(LO8(edx)); /* 0x3614B9C6: mov byte ptr [eax + 0x20], dl */ 58 MEM8(eax + 0x21) = (uint8_t)(0); /* 0x3614B9C9: mov byte ptr [eax + 0x21], 0 */ 59 ebp = POP32_VAL(esp); /* 0x3614B9CD: pop ebp */ 60 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614B9CE: ret 8 */ 61 RECOMP_REGS_OUT(); 62 } 63 64 void sub_3614B9E0(void) { 65 int _fpu_cmp = 0; 66 uint32_t _cf = 0; 67 int _df = 1; 68 uint32_t _flag_k = FK_NONE; 69 uint32_t _flag_a = 0, _flag_b = 0; 70 uint32_t _itail_tgt = 0; 71 RECOMP_REGS_LOCALS 72 RECOMP_ENTER(0x3614B9E0u); 73 74 L_3614B9E0: 75 PUSH32(esp, ebp); /* 0x3614B9E0: push ebp */ 76 ebp = esp; /* 0x3614B9E1: mov ebp, esp */ 77 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614B9E3: push -1 */ 78 PUSH32(esp, 0x3616D1C2u); /* 0x3614B9E5: push 0x3616d1c2 */ 79 eax = MEM32(FS_BASE + (0)); /* 0x3614B9EA: mov eax, dword ptr fs:[0] */ 80 PUSH32(esp, eax); /* 0x3614B9F0: push eax */ 81 MEM32(FS_BASE + (0)) = esp; /* 0x3614B9F1: mov dword ptr fs:[0], esp */ 82 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 83 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 84 esp = esp - 0x10u; /* 0x3614B9F8: sub esp, 0x10 */ 85 _flag_k = FK_CMP; 86 PUSH32(esp, ebx); /* 0x3614B9FB: push ebx */ 87 ebx = MEM32(ebp + 0x8); /* 0x3614B9FC: mov ebx, dword ptr [ebp + 8] */ 88 MEM32(ebp + (-0x18)) = ebx; /* 0x3614B9FF: mov dword ptr [ebp - 0x18], ebx */ 89 /* test ebx, ebx */ /* 0x3614BA02: test ebx, ebx */ 90 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 91 _cf = 0; 92 _flag_k = FK_TEST; 93 MEM32(ebp + (-0x4)) = 0; /* 0x3614BA04: mov dword ptr [ebp - 4], 0 */ 94 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BBC4; /* 0x3614BA0B: je 0x3614bbc4 */ 95 L_3614BA11: 96 PUSH32(esp, esi); /* 0x3614BA11: push esi */ 97 PUSH32(esp, edi); /* 0x3614BA12: push edi */ 98 edi = MEM32(ebp + 0xC); /* 0x3614BA13: mov edi, dword ptr [ebp + 0xc] */ 99 eax = MEM32(edi); /* 0x3614BA16: mov eax, dword ptr [edi] */ 100 MEM32(ebx) = eax; /* 0x3614BA18: mov dword ptr [ebx], eax */ 101 SET_LO8(ecx, MEM8(edi + 0x4)); /* 0x3614BA1A: mov cl, byte ptr [edi + 4] */ 102 MEM8(ebx + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3614BA1D: mov byte ptr [ebx + 4], cl */ 103 eax = MEM32(edi + 0x8); /* 0x3614BA20: mov eax, dword ptr [edi + 8] */ 104 /* test eax, eax */ /* 0x3614BA23: test eax, eax */ 105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 106 _cf = 0; 107 _flag_k = FK_TEST; 108 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BA3F; /* 0x3614BA25: je 0x3614ba3f */ 109 L_3614BA27: 110 ecx = MEM32(edi + 0xC); /* 0x3614BA27: mov ecx, dword ptr [edi + 0xc] */ 111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 113 ecx = ecx - eax; /* 0x3614BA2A: sub ecx, eax */ 114 _flag_k = FK_CMP; 115 eax = 0x38E38E39u; /* 0x3614BA2C: mov eax, 0x38e38e39 */ 116 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614BA31: imul ecx */ 117 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 118 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 119 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3614BA33: sar edx, 3 */ 120 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 121 edx = (uint32_t)((int32_t)edx >> 3u); 122 eax = edx; /* 0x3614BA36: mov eax, edx */ 123 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3614BA38: shr eax, 0x1f */ 124 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 125 eax = eax >> 31u; /* 0x3614BA38: shr eax, 0x1f */ 126 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 128 edx = edx + eax; /* 0x3614BA3B: add edx, eax */ 129 _flag_k = FK_ADD; 130 eax = edx; /* 0x3614BA3D: mov eax, edx */ 131 L_3614BA3F: 132 /* test eax, eax */ /* 0x3614BA3F: test eax, eax */ 133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 134 _cf = 0; 135 _flag_k = FK_TEST; 136 if (TEST_NS(_flag_a, _flag_b)) goto L_3614BA45; /* 0x3614BA41: jge 0x3614ba45 */ 137 L_3614BA43: 138 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 139 eax = 0; /* 0x3614BA43: xor eax, eax */ 140 _cf = 0; 141 _flag_k = FK_TEST; 142 L_3614BA45: 143 ecx = eax + eax * 8; /* 0x3614BA45: lea ecx, [eax + eax*8] */ 144 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x3614BA48: shl ecx, 2 */ 145 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 146 ecx = ecx << 2u; /* 0x3614BA48: shl ecx, 2 */ 147 PUSH32(esp, ecx); /* 0x3614BA4B: push ecx */ 148 RECOMP_ICALL(0x3615FD6Au); /* 0x3614BA4C: call 0x3615fd6a */ /* not lifted */ 149 RECOMP_FLAGS_IN(); 150 MEM32(ebx + 0x8) = eax; /* 0x3614BA51: mov dword ptr [ebx + 8], eax */ 151 ecx = MEM32(edi + 0xC); /* 0x3614BA54: mov ecx, dword ptr [edi + 0xc] */ 152 edi = MEM32(edi + 0x8); /* 0x3614BA57: mov edi, dword ptr [edi + 8] */ 153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 155 esp = esp + 4; /* 0x3614BA5A: add esp, 4 */ 156 _flag_k = FK_ADD; 157 /* cmp edi, ecx */ /* 0x3614BA5D: cmp edi, ecx */ 158 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 159 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 160 _flag_k = FK_CMP; 161 esi = eax; /* 0x3614BA5F: mov esi, eax */ 162 MEM32(ebp + (-0x14)) = ecx; /* 0x3614BA61: mov dword ptr [ebp - 0x14], ecx */ 163 MEM32(ebp + 0xC) = esi; /* 0x3614BA64: mov dword ptr [ebp + 0xc], esi */ 164 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BBBC; /* 0x3614BA67: je 0x3614bbbc */ 165 L_3614BA6D: 166 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 167 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 168 edi = edi + 4; /* 0x3614BA6D: add edi, 4 */ 169 _flag_k = FK_ADD; 170 L_3614BA70: 171 MEM32(ebp + (-0x1C)) = esi; /* 0x3614BA70: mov dword ptr [ebp - 0x1c], esi */ 172 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 173 eax = 0; /* 0x3614BA73: xor eax, eax */ 174 _cf = 0; 175 _flag_k = FK_TEST; 176 /* cmp esi, eax */ /* 0x3614BA75: cmp esi, eax */ 177 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 179 _flag_k = FK_CMP; 180 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3614BA77: mov byte ptr [ebp - 4], 1 */ 181 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BBA4; /* 0x3614BA7B: je 0x3614bba4 */ 182 L_3614BA81: 183 edx = MEM32(edi + (-0x4)); /* 0x3614BA81: mov edx, dword ptr [edi - 4] */ 184 MEM32(esi) = edx; /* 0x3614BA84: mov dword ptr [esi], edx */ 185 SET_LO8(ecx, MEM8(edi)); /* 0x3614BA86: mov cl, byte ptr [edi] */ 186 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 188 esi = esi + 4; /* 0x3614BA88: add esi, 4 */ 189 _flag_k = FK_ADD; 190 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3614BA8B: mov byte ptr [esi], cl */ 191 MEM32(esi + 0x4) = eax; /* 0x3614BA8D: mov dword ptr [esi + 4], eax */ 192 MEM32(esi + 0x8) = eax; /* 0x3614BA90: mov dword ptr [esi + 8], eax */ 193 MEM32(esi + 0xC) = eax; /* 0x3614BA93: mov dword ptr [esi + 0xc], eax */ 194 edx = MEM32(0x3616F010); /* 0x3614BA96: mov edx, dword ptr [0x3616f010] */ 195 eax = MEM32(edx); /* 0x3614BA9C: mov eax, dword ptr [edx] */ 196 ecx = edi; /* 0x3614BA9E: mov ecx, edi */ 197 MEM32(ebp + (-0x10)) = eax; /* 0x3614BAA0: mov dword ptr [ebp - 0x10], eax */ 198 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAA3: call dword ptr [0x3616f06c] */ 199 RECOMP_FLAGS_IN(); 200 ecx = edi; /* 0x3614BAA9: mov ecx, edi */ 201 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAAB: call dword ptr [0x3616f06c] */ 202 RECOMP_FLAGS_IN(); 203 ebx = eax; /* 0x3614BAB1: mov ebx, eax */ 204 eax = MEM32(ebp + (-0x10)); /* 0x3614BAB3: mov eax, dword ptr [ebp - 0x10] */ 205 /* cmp eax, ebx */ /* 0x3614BAB6: cmp eax, ebx */ 206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 208 _flag_k = FK_CMP; 209 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BABC; /* 0x3614BAB8: jae 0x3614babc */ 210 L_3614BABA: 211 ebx = eax; /* 0x3614BABA: mov ebx, eax */ 212 L_3614BABC: 213 /* cmp esi, edi */ /* 0x3614BABC: cmp esi, edi */ 214 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 216 _flag_k = FK_CMP; 217 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BAE3; /* 0x3614BABE: jne 0x3614bae3 */ 218 L_3614BAC0: 219 ecx = MEM32(0x3616F010); /* 0x3614BAC0: mov ecx, dword ptr [0x3616f010] */ 220 edx = MEM32(ecx); /* 0x3614BAC6: mov edx, dword ptr [ecx] */ 221 PUSH32(esp, edx); /* 0x3614BAC8: push edx */ 222 PUSH32(esp, ebx); /* 0x3614BAC9: push ebx */ 223 ecx = esi; /* 0x3614BACA: mov ecx, esi */ 224 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BACC: call dword ptr [0x3616f15c] */ 225 RECOMP_FLAGS_IN(); 226 PUSH32(esp, 0); /* 0x3614BAD2: push 0 */ 227 PUSH32(esp, 0); /* 0x3614BAD4: push 0 */ 228 ecx = esi; /* 0x3614BAD6: mov ecx, esi */ 229 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BAD8: call dword ptr [0x3616f15c] */ 230 RECOMP_FLAGS_IN(); 231 goto L_3614BB81; /* 0x3614BADE: jmp 0x3614bb81 */ 232 L_3614BAE3: 233 /* test ebx, ebx */ /* 0x3614BAE3: test ebx, ebx */ 234 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 235 _cf = 0; 236 _flag_k = FK_TEST; 237 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAE5: jbe 0x3614bb52 */ 238 L_3614BAE7: 239 ecx = edi; /* 0x3614BAE7: mov ecx, edi */ 240 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAE9: call dword ptr [0x3616f06c] */ 241 RECOMP_FLAGS_IN(); 242 /* cmp ebx, eax */ /* 0x3614BAEF: cmp ebx, eax */ 243 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 245 _flag_k = FK_CMP; 246 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAF1: jne 0x3614bb52 */ 247 L_3614BAF3: 248 ecx = edi; /* 0x3614BAF3: mov ecx, edi */ 249 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BAF5: call dword ptr [0x3616f11c] */ 250 RECOMP_FLAGS_IN(); 251 PUSH32(esp, eax); /* 0x3614BAFB: push eax */ 252 ecx = esi; /* 0x3614BAFC: mov ecx, esi */ 253 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BAFE: call dword ptr [0x3616f158] */ 254 RECOMP_FLAGS_IN(); 255 /* cmp MEM8(eax), 0xFEu */ /* 0x3614BB04: cmp byte ptr [eax], 0xfe */ 256 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 258 _flag_k = FK_NARROW(FK_CMP, 24); 259 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB07: jae 0x3614bb52 */ 260 L_3614BB09: 261 PUSH32(esp, edi); /* 0x3614BB09: push edi */ 262 PUSH32(esp, esi); /* 0x3614BB0A: push esi */ 263 RECOMP_ICALL(0x360C6B20u); /* 0x3614BB0B: call 0x360c6b20 */ /* not lifted */ 264 RECOMP_FLAGS_IN(); 265 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 267 esp = esp + 8; /* 0x3614BB10: add esp, 8 */ 268 _flag_k = FK_ADD; 269 /* test LO8(eax), LO8(eax) */ /* 0x3614BB13: test al, al */ 270 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 271 _cf = 0; 272 _flag_k = FK_NARROW(FK_TEST, 24); 273 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB15: je 0x3614bb52 */ 274 L_3614BB17: 275 PUSH32(esp, 1); /* 0x3614BB17: push 1 */ 276 ecx = esi; /* 0x3614BB19: mov ecx, esi */ 277 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614BB1B: call dword ptr [0x3616f100] */ 278 RECOMP_FLAGS_IN(); 279 ecx = edi; /* 0x3614BB21: mov ecx, edi */ 280 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB23: call dword ptr [0x3616f11c] */ 281 RECOMP_FLAGS_IN(); 282 ecx = edi; /* 0x3614BB29: mov ecx, edi */ 283 MEM32(esi + 0x4) = eax; /* 0x3614BB2B: mov dword ptr [esi + 4], eax */ 284 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BB2E: call dword ptr [0x3616f06c] */ 285 RECOMP_FLAGS_IN(); 286 ecx = edi; /* 0x3614BB34: mov ecx, edi */ 287 MEM32(esi + 0x8) = eax; /* 0x3614BB36: mov dword ptr [esi + 8], eax */ 288 RECOMP_ICALL(MEM32(0x3616F068)); /* 0x3614BB39: call dword ptr [0x3616f068] */ 289 RECOMP_FLAGS_IN(); 290 MEM32(esi + 0xC) = eax; /* 0x3614BB3F: mov dword ptr [esi + 0xc], eax */ 291 eax = MEM32(esi + 0x4); /* 0x3614BB42: mov eax, dword ptr [esi + 4] */ 292 PUSH32(esp, eax); /* 0x3614BB45: push eax */ 293 ecx = esi; /* 0x3614BB46: mov ecx, esi */ 294 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BB48: call dword ptr [0x3616f158] */ 295 RECOMP_FLAGS_IN(); 296 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 297 MEM8(eax) = (uint8_t)(MEM8(eax) + 1); /* 0x3614BB4E: inc byte ptr [eax] */ 298 _flag_k = FK_NARROW(FK_INC, 24); 299 goto L_3614BB81; /* 0x3614BB50: jmp 0x3614bb81 */ 300 L_3614BB52: 301 PUSH32(esp, 1); /* 0x3614BB52: push 1 */ 302 PUSH32(esp, ebx); /* 0x3614BB54: push ebx */ 303 ecx = esi; /* 0x3614BB55: mov ecx, esi */ 304 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614BB57: call dword ptr [0x3616f00c] */ 305 RECOMP_FLAGS_IN(); 306 /* test LO8(eax), LO8(eax) */ /* 0x3614BB5D: test al, al */ 307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 308 _cf = 0; 309 _flag_k = FK_NARROW(FK_TEST, 24); 310 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB81; /* 0x3614BB5F: je 0x3614bb81 */ 311 L_3614BB61: 312 PUSH32(esp, ebx); /* 0x3614BB61: push ebx */ 313 ecx = edi; /* 0x3614BB62: mov ecx, edi */ 314 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB64: call dword ptr [0x3616f11c] */ 315 RECOMP_FLAGS_IN(); 316 ecx = MEM32(esi + 0x4); /* 0x3614BB6A: mov ecx, dword ptr [esi + 4] */ 317 PUSH32(esp, eax); /* 0x3614BB6D: push eax */ 318 PUSH32(esp, ecx); /* 0x3614BB6E: push ecx */ 319 RECOMP_ICALL(MEM32(0x3616F064)); /* 0x3614BB6F: call dword ptr [0x3616f064] */ 320 RECOMP_FLAGS_IN(); 321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 323 esp = esp + 0xCu; /* 0x3614BB75: add esp, 0xc */ 324 _flag_k = FK_ADD; 325 PUSH32(esp, ebx); /* 0x3614BB78: push ebx */ 326 ecx = esi; /* 0x3614BB79: mov ecx, esi */ 327 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x3614BB7B: call dword ptr [0x3616f044] */ 328 RECOMP_FLAGS_IN(); 329 L_3614BB81: 330 edx = MEM32(edi + 0x10); /* 0x3614BB81: mov edx, dword ptr [edi + 0x10] */ 331 eax = MEM32(ebp + 0xC); /* 0x3614BB84: mov eax, dword ptr [ebp + 0xc] */ 332 ebx = MEM32(ebp + 0x8); /* 0x3614BB87: mov ebx, dword ptr [ebp + 8] */ 333 MEM32(eax + 0x14) = edx; /* 0x3614BB8A: mov dword ptr [eax + 0x14], edx */ 334 ecx = MEM32(edi + 0x14); /* 0x3614BB8D: mov ecx, dword ptr [edi + 0x14] */ 335 MEM32(eax + 0x18) = ecx; /* 0x3614BB90: mov dword ptr [eax + 0x18], ecx */ 336 edx = MEM32(edi + 0x18); /* 0x3614BB93: mov edx, dword ptr [edi + 0x18] */ 337 MEM32(eax + 0x1C) = edx; /* 0x3614BB96: mov dword ptr [eax + 0x1c], edx */ 338 SET_LO8(ecx, MEM8(edi + 0x1C)); /* 0x3614BB99: mov cl, byte ptr [edi + 0x1c] */ 339 MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614BB9C: mov byte ptr [eax + 0x20], cl */ 340 ecx = MEM32(ebp + (-0x14)); /* 0x3614BB9F: mov ecx, dword ptr [ebp - 0x14] */ 341 esi = eax; /* 0x3614BBA2: mov esi, eax */ 342 L_3614BBA4: 343 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 345 edi = edi + 0x24u; /* 0x3614BBA4: add edi, 0x24 */ 346 _flag_k = FK_ADD; 347 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 349 esi = esi + 0x24u; /* 0x3614BBA7: add esi, 0x24 */ 350 _flag_k = FK_ADD; 351 edx = edi + (-0x4); /* 0x3614BBAA: lea edx, [edi - 4] */ 352 /* cmp edx, ecx */ /* 0x3614BBAD: cmp edx, ecx */ 353 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 355 _flag_k = FK_CMP; 356 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3614BBAF: mov byte ptr [ebp - 4], 0 */ 357 MEM32(ebp + 0xC) = esi; /* 0x3614BBB3: mov dword ptr [ebp + 0xc], esi */ 358 RECOMP_BACKEDGE(); 359 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BA70; /* 0x3614BBB6: jne 0x3614ba70 */ 360 L_3614BBBC: 361 edi = POP32_VAL(esp); /* 0x3614BBBC: pop edi */ 362 MEM32(ebx + 0xC) = esi; /* 0x3614BBBD: mov dword ptr [ebx + 0xc], esi */ 363 MEM32(ebx + 0x10) = esi; /* 0x3614BBC0: mov dword ptr [ebx + 0x10], esi */ 364 esi = POP32_VAL(esp); /* 0x3614BBC3: pop esi */ 365 L_3614BBC4: 366 ecx = MEM32(ebp + (-0xC)); /* 0x3614BBC4: mov ecx, dword ptr [ebp - 0xc] */ 367 ebx = POP32_VAL(esp); /* 0x3614BBC7: pop ebx */ 368 MEM32(FS_BASE + (0)) = ecx; /* 0x3614BBC8: mov dword ptr fs:[0], ecx */ 369 esp = ebp; /* 0x3614BBCF: mov esp, ebp */ 370 ebp = POP32_VAL(esp); /* 0x3614BBD1: pop ebp */ 371 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BBD2: ret */ 372 RECOMP_REGS_OUT(); 373 } 374 375 void sub_3614BA70(void) { 376 int _fpu_cmp = 0; 377 uint32_t _cf = 0; 378 int _df = 1; 379 uint32_t _flag_k = FK_NONE; 380 uint32_t _flag_a = 0, _flag_b = 0; 381 uint32_t _itail_tgt = 0; 382 RECOMP_REGS_LOCALS 383 RECOMP_ENTER(0x3614BA70u); 384 385 L_3614BA70: 386 MEM32(ebp + (-0x1C)) = esi; /* 0x3614BA70: mov dword ptr [ebp - 0x1c], esi */ 387 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 388 eax = 0; /* 0x3614BA73: xor eax, eax */ 389 _cf = 0; 390 _flag_k = FK_TEST; 391 /* cmp esi, eax */ /* 0x3614BA75: cmp esi, eax */ 392 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 394 _flag_k = FK_CMP; 395 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3614BA77: mov byte ptr [ebp - 4], 1 */ 396 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BBA4; /* 0x3614BA7B: je 0x3614bba4 */ 397 L_3614BA81: 398 edx = MEM32(edi + (-0x4)); /* 0x3614BA81: mov edx, dword ptr [edi - 4] */ 399 MEM32(esi) = edx; /* 0x3614BA84: mov dword ptr [esi], edx */ 400 SET_LO8(ecx, MEM8(edi)); /* 0x3614BA86: mov cl, byte ptr [edi] */ 401 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 403 esi = esi + 4; /* 0x3614BA88: add esi, 4 */ 404 _flag_k = FK_ADD; 405 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3614BA8B: mov byte ptr [esi], cl */ 406 MEM32(esi + 0x4) = eax; /* 0x3614BA8D: mov dword ptr [esi + 4], eax */ 407 MEM32(esi + 0x8) = eax; /* 0x3614BA90: mov dword ptr [esi + 8], eax */ 408 MEM32(esi + 0xC) = eax; /* 0x3614BA93: mov dword ptr [esi + 0xc], eax */ 409 edx = MEM32(0x3616F010); /* 0x3614BA96: mov edx, dword ptr [0x3616f010] */ 410 eax = MEM32(edx); /* 0x3614BA9C: mov eax, dword ptr [edx] */ 411 ecx = edi; /* 0x3614BA9E: mov ecx, edi */ 412 MEM32(ebp + (-0x10)) = eax; /* 0x3614BAA0: mov dword ptr [ebp - 0x10], eax */ 413 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAA3: call dword ptr [0x3616f06c] */ 414 RECOMP_FLAGS_IN(); 415 ecx = edi; /* 0x3614BAA9: mov ecx, edi */ 416 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAAB: call dword ptr [0x3616f06c] */ 417 RECOMP_FLAGS_IN(); 418 ebx = eax; /* 0x3614BAB1: mov ebx, eax */ 419 eax = MEM32(ebp + (-0x10)); /* 0x3614BAB3: mov eax, dword ptr [ebp - 0x10] */ 420 /* cmp eax, ebx */ /* 0x3614BAB6: cmp eax, ebx */ 421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 423 _flag_k = FK_CMP; 424 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BABC; /* 0x3614BAB8: jae 0x3614babc */ 425 L_3614BABA: 426 ebx = eax; /* 0x3614BABA: mov ebx, eax */ 427 L_3614BABC: 428 /* cmp esi, edi */ /* 0x3614BABC: cmp esi, edi */ 429 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 431 _flag_k = FK_CMP; 432 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BAE3; /* 0x3614BABE: jne 0x3614bae3 */ 433 L_3614BAC0: 434 ecx = MEM32(0x3616F010); /* 0x3614BAC0: mov ecx, dword ptr [0x3616f010] */ 435 edx = MEM32(ecx); /* 0x3614BAC6: mov edx, dword ptr [ecx] */ 436 PUSH32(esp, edx); /* 0x3614BAC8: push edx */ 437 PUSH32(esp, ebx); /* 0x3614BAC9: push ebx */ 438 ecx = esi; /* 0x3614BACA: mov ecx, esi */ 439 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BACC: call dword ptr [0x3616f15c] */ 440 RECOMP_FLAGS_IN(); 441 PUSH32(esp, 0); /* 0x3614BAD2: push 0 */ 442 PUSH32(esp, 0); /* 0x3614BAD4: push 0 */ 443 ecx = esi; /* 0x3614BAD6: mov ecx, esi */ 444 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BAD8: call dword ptr [0x3616f15c] */ 445 RECOMP_FLAGS_IN(); 446 goto L_3614BB81; /* 0x3614BADE: jmp 0x3614bb81 */ 447 L_3614BAE3: 448 /* test ebx, ebx */ /* 0x3614BAE3: test ebx, ebx */ 449 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 450 _cf = 0; 451 _flag_k = FK_TEST; 452 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAE5: jbe 0x3614bb52 */ 453 L_3614BAE7: 454 ecx = edi; /* 0x3614BAE7: mov ecx, edi */ 455 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAE9: call dword ptr [0x3616f06c] */ 456 RECOMP_FLAGS_IN(); 457 /* cmp ebx, eax */ /* 0x3614BAEF: cmp ebx, eax */ 458 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 460 _flag_k = FK_CMP; 461 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAF1: jne 0x3614bb52 */ 462 L_3614BAF3: 463 ecx = edi; /* 0x3614BAF3: mov ecx, edi */ 464 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BAF5: call dword ptr [0x3616f11c] */ 465 RECOMP_FLAGS_IN(); 466 PUSH32(esp, eax); /* 0x3614BAFB: push eax */ 467 ecx = esi; /* 0x3614BAFC: mov ecx, esi */ 468 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BAFE: call dword ptr [0x3616f158] */ 469 RECOMP_FLAGS_IN(); 470 /* cmp MEM8(eax), 0xFEu */ /* 0x3614BB04: cmp byte ptr [eax], 0xfe */ 471 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 473 _flag_k = FK_NARROW(FK_CMP, 24); 474 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB07: jae 0x3614bb52 */ 475 L_3614BB09: 476 PUSH32(esp, edi); /* 0x3614BB09: push edi */ 477 PUSH32(esp, esi); /* 0x3614BB0A: push esi */ 478 RECOMP_ICALL(0x360C6B20u); /* 0x3614BB0B: call 0x360c6b20 */ /* not lifted */ 479 RECOMP_FLAGS_IN(); 480 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 482 esp = esp + 8; /* 0x3614BB10: add esp, 8 */ 483 _flag_k = FK_ADD; 484 /* test LO8(eax), LO8(eax) */ /* 0x3614BB13: test al, al */ 485 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 486 _cf = 0; 487 _flag_k = FK_NARROW(FK_TEST, 24); 488 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB15: je 0x3614bb52 */ 489 L_3614BB17: 490 PUSH32(esp, 1); /* 0x3614BB17: push 1 */ 491 ecx = esi; /* 0x3614BB19: mov ecx, esi */ 492 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614BB1B: call dword ptr [0x3616f100] */ 493 RECOMP_FLAGS_IN(); 494 ecx = edi; /* 0x3614BB21: mov ecx, edi */ 495 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB23: call dword ptr [0x3616f11c] */ 496 RECOMP_FLAGS_IN(); 497 ecx = edi; /* 0x3614BB29: mov ecx, edi */ 498 MEM32(esi + 0x4) = eax; /* 0x3614BB2B: mov dword ptr [esi + 4], eax */ 499 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BB2E: call dword ptr [0x3616f06c] */ 500 RECOMP_FLAGS_IN(); 501 ecx = edi; /* 0x3614BB34: mov ecx, edi */ 502 MEM32(esi + 0x8) = eax; /* 0x3614BB36: mov dword ptr [esi + 8], eax */ 503 RECOMP_ICALL(MEM32(0x3616F068)); /* 0x3614BB39: call dword ptr [0x3616f068] */ 504 RECOMP_FLAGS_IN(); 505 MEM32(esi + 0xC) = eax; /* 0x3614BB3F: mov dword ptr [esi + 0xc], eax */ 506 eax = MEM32(esi + 0x4); /* 0x3614BB42: mov eax, dword ptr [esi + 4] */ 507 PUSH32(esp, eax); /* 0x3614BB45: push eax */ 508 ecx = esi; /* 0x3614BB46: mov ecx, esi */ 509 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BB48: call dword ptr [0x3616f158] */ 510 RECOMP_FLAGS_IN(); 511 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 512 MEM8(eax) = (uint8_t)(MEM8(eax) + 1); /* 0x3614BB4E: inc byte ptr [eax] */ 513 _flag_k = FK_NARROW(FK_INC, 24); 514 goto L_3614BB81; /* 0x3614BB50: jmp 0x3614bb81 */ 515 L_3614BB52: 516 PUSH32(esp, 1); /* 0x3614BB52: push 1 */ 517 PUSH32(esp, ebx); /* 0x3614BB54: push ebx */ 518 ecx = esi; /* 0x3614BB55: mov ecx, esi */ 519 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614BB57: call dword ptr [0x3616f00c] */ 520 RECOMP_FLAGS_IN(); 521 /* test LO8(eax), LO8(eax) */ /* 0x3614BB5D: test al, al */ 522 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 523 _cf = 0; 524 _flag_k = FK_NARROW(FK_TEST, 24); 525 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB81; /* 0x3614BB5F: je 0x3614bb81 */ 526 L_3614BB61: 527 PUSH32(esp, ebx); /* 0x3614BB61: push ebx */ 528 ecx = edi; /* 0x3614BB62: mov ecx, edi */ 529 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB64: call dword ptr [0x3616f11c] */ 530 RECOMP_FLAGS_IN(); 531 ecx = MEM32(esi + 0x4); /* 0x3614BB6A: mov ecx, dword ptr [esi + 4] */ 532 PUSH32(esp, eax); /* 0x3614BB6D: push eax */ 533 PUSH32(esp, ecx); /* 0x3614BB6E: push ecx */ 534 RECOMP_ICALL(MEM32(0x3616F064)); /* 0x3614BB6F: call dword ptr [0x3616f064] */ 535 RECOMP_FLAGS_IN(); 536 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 537 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 538 esp = esp + 0xCu; /* 0x3614BB75: add esp, 0xc */ 539 _flag_k = FK_ADD; 540 PUSH32(esp, ebx); /* 0x3614BB78: push ebx */ 541 ecx = esi; /* 0x3614BB79: mov ecx, esi */ 542 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x3614BB7B: call dword ptr [0x3616f044] */ 543 RECOMP_FLAGS_IN(); 544 L_3614BB81: 545 edx = MEM32(edi + 0x10); /* 0x3614BB81: mov edx, dword ptr [edi + 0x10] */ 546 eax = MEM32(ebp + 0xC); /* 0x3614BB84: mov eax, dword ptr [ebp + 0xc] */ 547 ebx = MEM32(ebp + 0x8); /* 0x3614BB87: mov ebx, dword ptr [ebp + 8] */ 548 MEM32(eax + 0x14) = edx; /* 0x3614BB8A: mov dword ptr [eax + 0x14], edx */ 549 ecx = MEM32(edi + 0x14); /* 0x3614BB8D: mov ecx, dword ptr [edi + 0x14] */ 550 MEM32(eax + 0x18) = ecx; /* 0x3614BB90: mov dword ptr [eax + 0x18], ecx */ 551 edx = MEM32(edi + 0x18); /* 0x3614BB93: mov edx, dword ptr [edi + 0x18] */ 552 MEM32(eax + 0x1C) = edx; /* 0x3614BB96: mov dword ptr [eax + 0x1c], edx */ 553 SET_LO8(ecx, MEM8(edi + 0x1C)); /* 0x3614BB99: mov cl, byte ptr [edi + 0x1c] */ 554 MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614BB9C: mov byte ptr [eax + 0x20], cl */ 555 ecx = MEM32(ebp + (-0x14)); /* 0x3614BB9F: mov ecx, dword ptr [ebp - 0x14] */ 556 esi = eax; /* 0x3614BBA2: mov esi, eax */ 557 L_3614BBA4: 558 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 560 edi = edi + 0x24u; /* 0x3614BBA4: add edi, 0x24 */ 561 _flag_k = FK_ADD; 562 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 564 esi = esi + 0x24u; /* 0x3614BBA7: add esi, 0x24 */ 565 _flag_k = FK_ADD; 566 edx = edi + (-0x4); /* 0x3614BBAA: lea edx, [edi - 4] */ 567 /* cmp edx, ecx */ /* 0x3614BBAD: cmp edx, ecx */ 568 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 570 _flag_k = FK_CMP; 571 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3614BBAF: mov byte ptr [ebp - 4], 0 */ 572 MEM32(ebp + 0xC) = esi; /* 0x3614BBB3: mov dword ptr [ebp + 0xc], esi */ 573 RECOMP_BACKEDGE(); 574 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BA70; /* 0x3614BBB6: jne 0x3614ba70 */ 575 L_3614BBBC: 576 edi = POP32_VAL(esp); /* 0x3614BBBC: pop edi */ 577 MEM32(ebx + 0xC) = esi; /* 0x3614BBBD: mov dword ptr [ebx + 0xc], esi */ 578 MEM32(ebx + 0x10) = esi; /* 0x3614BBC0: mov dword ptr [ebx + 0x10], esi */ 579 esi = POP32_VAL(esp); /* 0x3614BBC3: pop esi */ 580 ecx = MEM32(ebp + (-0xC)); /* 0x3614BBC4: mov ecx, dword ptr [ebp - 0xc] */ 581 ebx = POP32_VAL(esp); /* 0x3614BBC7: pop ebx */ 582 MEM32(FS_BASE + (0)) = ecx; /* 0x3614BBC8: mov dword ptr fs:[0], ecx */ 583 esp = ebp; /* 0x3614BBCF: mov esp, ebp */ 584 ebp = POP32_VAL(esp); /* 0x3614BBD1: pop ebp */ 585 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BBD2: ret */ 586 RECOMP_REGS_OUT(); 587 } 588 589 void sub_3614BB81(void) { 590 int _fpu_cmp = 0; 591 uint32_t _cf = 0; 592 int _df = 1; 593 uint32_t _flag_k = FK_NONE; 594 uint32_t _flag_a = 0, _flag_b = 0; 595 uint32_t _itail_tgt = 0; 596 RECOMP_REGS_LOCALS 597 RECOMP_ENTER(0x3614BB81u); 598 599 goto L_3614BB81; 600 L_3614BA70: 601 MEM32(ebp + (-0x1C)) = esi; /* 0x3614BA70: mov dword ptr [ebp - 0x1c], esi */ 602 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 603 eax = 0; /* 0x3614BA73: xor eax, eax */ 604 _cf = 0; 605 _flag_k = FK_TEST; 606 /* cmp esi, eax */ /* 0x3614BA75: cmp esi, eax */ 607 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 609 _flag_k = FK_CMP; 610 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3614BA77: mov byte ptr [ebp - 4], 1 */ 611 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BBA4; /* 0x3614BA7B: je 0x3614bba4 */ 612 L_3614BA81: 613 edx = MEM32(edi + (-0x4)); /* 0x3614BA81: mov edx, dword ptr [edi - 4] */ 614 MEM32(esi) = edx; /* 0x3614BA84: mov dword ptr [esi], edx */ 615 SET_LO8(ecx, MEM8(edi)); /* 0x3614BA86: mov cl, byte ptr [edi] */ 616 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 618 esi = esi + 4; /* 0x3614BA88: add esi, 4 */ 619 _flag_k = FK_ADD; 620 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3614BA8B: mov byte ptr [esi], cl */ 621 MEM32(esi + 0x4) = eax; /* 0x3614BA8D: mov dword ptr [esi + 4], eax */ 622 MEM32(esi + 0x8) = eax; /* 0x3614BA90: mov dword ptr [esi + 8], eax */ 623 MEM32(esi + 0xC) = eax; /* 0x3614BA93: mov dword ptr [esi + 0xc], eax */ 624 edx = MEM32(0x3616F010); /* 0x3614BA96: mov edx, dword ptr [0x3616f010] */ 625 eax = MEM32(edx); /* 0x3614BA9C: mov eax, dword ptr [edx] */ 626 ecx = edi; /* 0x3614BA9E: mov ecx, edi */ 627 MEM32(ebp + (-0x10)) = eax; /* 0x3614BAA0: mov dword ptr [ebp - 0x10], eax */ 628 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAA3: call dword ptr [0x3616f06c] */ 629 RECOMP_FLAGS_IN(); 630 ecx = edi; /* 0x3614BAA9: mov ecx, edi */ 631 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAAB: call dword ptr [0x3616f06c] */ 632 RECOMP_FLAGS_IN(); 633 ebx = eax; /* 0x3614BAB1: mov ebx, eax */ 634 eax = MEM32(ebp + (-0x10)); /* 0x3614BAB3: mov eax, dword ptr [ebp - 0x10] */ 635 /* cmp eax, ebx */ /* 0x3614BAB6: cmp eax, ebx */ 636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 638 _flag_k = FK_CMP; 639 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BABC; /* 0x3614BAB8: jae 0x3614babc */ 640 L_3614BABA: 641 ebx = eax; /* 0x3614BABA: mov ebx, eax */ 642 L_3614BABC: 643 /* cmp esi, edi */ /* 0x3614BABC: cmp esi, edi */ 644 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 646 _flag_k = FK_CMP; 647 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BAE3; /* 0x3614BABE: jne 0x3614bae3 */ 648 L_3614BAC0: 649 ecx = MEM32(0x3616F010); /* 0x3614BAC0: mov ecx, dword ptr [0x3616f010] */ 650 edx = MEM32(ecx); /* 0x3614BAC6: mov edx, dword ptr [ecx] */ 651 PUSH32(esp, edx); /* 0x3614BAC8: push edx */ 652 PUSH32(esp, ebx); /* 0x3614BAC9: push ebx */ 653 ecx = esi; /* 0x3614BACA: mov ecx, esi */ 654 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BACC: call dword ptr [0x3616f15c] */ 655 RECOMP_FLAGS_IN(); 656 PUSH32(esp, 0); /* 0x3614BAD2: push 0 */ 657 PUSH32(esp, 0); /* 0x3614BAD4: push 0 */ 658 ecx = esi; /* 0x3614BAD6: mov ecx, esi */ 659 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BAD8: call dword ptr [0x3616f15c] */ 660 RECOMP_FLAGS_IN(); 661 goto L_3614BB81; /* 0x3614BADE: jmp 0x3614bb81 */ 662 L_3614BAE3: 663 /* test ebx, ebx */ /* 0x3614BAE3: test ebx, ebx */ 664 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 665 _cf = 0; 666 _flag_k = FK_TEST; 667 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAE5: jbe 0x3614bb52 */ 668 L_3614BAE7: 669 ecx = edi; /* 0x3614BAE7: mov ecx, edi */ 670 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAE9: call dword ptr [0x3616f06c] */ 671 RECOMP_FLAGS_IN(); 672 /* cmp ebx, eax */ /* 0x3614BAEF: cmp ebx, eax */ 673 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 675 _flag_k = FK_CMP; 676 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAF1: jne 0x3614bb52 */ 677 L_3614BAF3: 678 ecx = edi; /* 0x3614BAF3: mov ecx, edi */ 679 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BAF5: call dword ptr [0x3616f11c] */ 680 RECOMP_FLAGS_IN(); 681 PUSH32(esp, eax); /* 0x3614BAFB: push eax */ 682 ecx = esi; /* 0x3614BAFC: mov ecx, esi */ 683 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BAFE: call dword ptr [0x3616f158] */ 684 RECOMP_FLAGS_IN(); 685 /* cmp MEM8(eax), 0xFEu */ /* 0x3614BB04: cmp byte ptr [eax], 0xfe */ 686 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 688 _flag_k = FK_NARROW(FK_CMP, 24); 689 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB07: jae 0x3614bb52 */ 690 L_3614BB09: 691 PUSH32(esp, edi); /* 0x3614BB09: push edi */ 692 PUSH32(esp, esi); /* 0x3614BB0A: push esi */ 693 RECOMP_ICALL(0x360C6B20u); /* 0x3614BB0B: call 0x360c6b20 */ /* not lifted */ 694 RECOMP_FLAGS_IN(); 695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 697 esp = esp + 8; /* 0x3614BB10: add esp, 8 */ 698 _flag_k = FK_ADD; 699 /* test LO8(eax), LO8(eax) */ /* 0x3614BB13: test al, al */ 700 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 701 _cf = 0; 702 _flag_k = FK_NARROW(FK_TEST, 24); 703 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB15: je 0x3614bb52 */ 704 L_3614BB17: 705 PUSH32(esp, 1); /* 0x3614BB17: push 1 */ 706 ecx = esi; /* 0x3614BB19: mov ecx, esi */ 707 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614BB1B: call dword ptr [0x3616f100] */ 708 RECOMP_FLAGS_IN(); 709 ecx = edi; /* 0x3614BB21: mov ecx, edi */ 710 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB23: call dword ptr [0x3616f11c] */ 711 RECOMP_FLAGS_IN(); 712 ecx = edi; /* 0x3614BB29: mov ecx, edi */ 713 MEM32(esi + 0x4) = eax; /* 0x3614BB2B: mov dword ptr [esi + 4], eax */ 714 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BB2E: call dword ptr [0x3616f06c] */ 715 RECOMP_FLAGS_IN(); 716 ecx = edi; /* 0x3614BB34: mov ecx, edi */ 717 MEM32(esi + 0x8) = eax; /* 0x3614BB36: mov dword ptr [esi + 8], eax */ 718 RECOMP_ICALL(MEM32(0x3616F068)); /* 0x3614BB39: call dword ptr [0x3616f068] */ 719 RECOMP_FLAGS_IN(); 720 MEM32(esi + 0xC) = eax; /* 0x3614BB3F: mov dword ptr [esi + 0xc], eax */ 721 eax = MEM32(esi + 0x4); /* 0x3614BB42: mov eax, dword ptr [esi + 4] */ 722 PUSH32(esp, eax); /* 0x3614BB45: push eax */ 723 ecx = esi; /* 0x3614BB46: mov ecx, esi */ 724 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BB48: call dword ptr [0x3616f158] */ 725 RECOMP_FLAGS_IN(); 726 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 727 MEM8(eax) = (uint8_t)(MEM8(eax) + 1); /* 0x3614BB4E: inc byte ptr [eax] */ 728 _flag_k = FK_NARROW(FK_INC, 24); 729 goto L_3614BB81; /* 0x3614BB50: jmp 0x3614bb81 */ 730 L_3614BB52: 731 PUSH32(esp, 1); /* 0x3614BB52: push 1 */ 732 PUSH32(esp, ebx); /* 0x3614BB54: push ebx */ 733 ecx = esi; /* 0x3614BB55: mov ecx, esi */ 734 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614BB57: call dword ptr [0x3616f00c] */ 735 RECOMP_FLAGS_IN(); 736 /* test LO8(eax), LO8(eax) */ /* 0x3614BB5D: test al, al */ 737 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 738 _cf = 0; 739 _flag_k = FK_NARROW(FK_TEST, 24); 740 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB81; /* 0x3614BB5F: je 0x3614bb81 */ 741 L_3614BB61: 742 PUSH32(esp, ebx); /* 0x3614BB61: push ebx */ 743 ecx = edi; /* 0x3614BB62: mov ecx, edi */ 744 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB64: call dword ptr [0x3616f11c] */ 745 RECOMP_FLAGS_IN(); 746 ecx = MEM32(esi + 0x4); /* 0x3614BB6A: mov ecx, dword ptr [esi + 4] */ 747 PUSH32(esp, eax); /* 0x3614BB6D: push eax */ 748 PUSH32(esp, ecx); /* 0x3614BB6E: push ecx */ 749 RECOMP_ICALL(MEM32(0x3616F064)); /* 0x3614BB6F: call dword ptr [0x3616f064] */ 750 RECOMP_FLAGS_IN(); 751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 753 esp = esp + 0xCu; /* 0x3614BB75: add esp, 0xc */ 754 _flag_k = FK_ADD; 755 PUSH32(esp, ebx); /* 0x3614BB78: push ebx */ 756 ecx = esi; /* 0x3614BB79: mov ecx, esi */ 757 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x3614BB7B: call dword ptr [0x3616f044] */ 758 RECOMP_FLAGS_IN(); 759 L_3614BB81: 760 edx = MEM32(edi + 0x10); /* 0x3614BB81: mov edx, dword ptr [edi + 0x10] */ 761 eax = MEM32(ebp + 0xC); /* 0x3614BB84: mov eax, dword ptr [ebp + 0xc] */ 762 ebx = MEM32(ebp + 0x8); /* 0x3614BB87: mov ebx, dword ptr [ebp + 8] */ 763 MEM32(eax + 0x14) = edx; /* 0x3614BB8A: mov dword ptr [eax + 0x14], edx */ 764 ecx = MEM32(edi + 0x14); /* 0x3614BB8D: mov ecx, dword ptr [edi + 0x14] */ 765 MEM32(eax + 0x18) = ecx; /* 0x3614BB90: mov dword ptr [eax + 0x18], ecx */ 766 edx = MEM32(edi + 0x18); /* 0x3614BB93: mov edx, dword ptr [edi + 0x18] */ 767 MEM32(eax + 0x1C) = edx; /* 0x3614BB96: mov dword ptr [eax + 0x1c], edx */ 768 SET_LO8(ecx, MEM8(edi + 0x1C)); /* 0x3614BB99: mov cl, byte ptr [edi + 0x1c] */ 769 MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614BB9C: mov byte ptr [eax + 0x20], cl */ 770 ecx = MEM32(ebp + (-0x14)); /* 0x3614BB9F: mov ecx, dword ptr [ebp - 0x14] */ 771 esi = eax; /* 0x3614BBA2: mov esi, eax */ 772 L_3614BBA4: 773 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 774 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 775 edi = edi + 0x24u; /* 0x3614BBA4: add edi, 0x24 */ 776 _flag_k = FK_ADD; 777 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 778 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 779 esi = esi + 0x24u; /* 0x3614BBA7: add esi, 0x24 */ 780 _flag_k = FK_ADD; 781 edx = edi + (-0x4); /* 0x3614BBAA: lea edx, [edi - 4] */ 782 /* cmp edx, ecx */ /* 0x3614BBAD: cmp edx, ecx */ 783 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 785 _flag_k = FK_CMP; 786 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3614BBAF: mov byte ptr [ebp - 4], 0 */ 787 MEM32(ebp + 0xC) = esi; /* 0x3614BBB3: mov dword ptr [ebp + 0xc], esi */ 788 RECOMP_BACKEDGE(); 789 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BA70; /* 0x3614BBB6: jne 0x3614ba70 */ 790 L_3614BBBC: 791 edi = POP32_VAL(esp); /* 0x3614BBBC: pop edi */ 792 MEM32(ebx + 0xC) = esi; /* 0x3614BBBD: mov dword ptr [ebx + 0xc], esi */ 793 MEM32(ebx + 0x10) = esi; /* 0x3614BBC0: mov dword ptr [ebx + 0x10], esi */ 794 esi = POP32_VAL(esp); /* 0x3614BBC3: pop esi */ 795 ecx = MEM32(ebp + (-0xC)); /* 0x3614BBC4: mov ecx, dword ptr [ebp - 0xc] */ 796 ebx = POP32_VAL(esp); /* 0x3614BBC7: pop ebx */ 797 MEM32(FS_BASE + (0)) = ecx; /* 0x3614BBC8: mov dword ptr fs:[0], ecx */ 798 esp = ebp; /* 0x3614BBCF: mov esp, ebp */ 799 ebp = POP32_VAL(esp); /* 0x3614BBD1: pop ebp */ 800 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BBD2: ret */ 801 RECOMP_REGS_OUT(); 802 } 803 804 void sub_3614BBA4(void) { 805 int _fpu_cmp = 0; 806 uint32_t _cf = 0; 807 int _df = 1; 808 uint32_t _flag_k = FK_NONE; 809 uint32_t _flag_a = 0, _flag_b = 0; 810 uint32_t _itail_tgt = 0; 811 RECOMP_REGS_LOCALS 812 RECOMP_ENTER(0x3614BBA4u); 813 814 goto L_3614BBA4; 815 L_3614BA70: 816 MEM32(ebp + (-0x1C)) = esi; /* 0x3614BA70: mov dword ptr [ebp - 0x1c], esi */ 817 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 818 eax = 0; /* 0x3614BA73: xor eax, eax */ 819 _cf = 0; 820 _flag_k = FK_TEST; 821 /* cmp esi, eax */ /* 0x3614BA75: cmp esi, eax */ 822 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 824 _flag_k = FK_CMP; 825 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3614BA77: mov byte ptr [ebp - 4], 1 */ 826 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BBA4; /* 0x3614BA7B: je 0x3614bba4 */ 827 L_3614BA81: 828 edx = MEM32(edi + (-0x4)); /* 0x3614BA81: mov edx, dword ptr [edi - 4] */ 829 MEM32(esi) = edx; /* 0x3614BA84: mov dword ptr [esi], edx */ 830 SET_LO8(ecx, MEM8(edi)); /* 0x3614BA86: mov cl, byte ptr [edi] */ 831 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 832 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 833 esi = esi + 4; /* 0x3614BA88: add esi, 4 */ 834 _flag_k = FK_ADD; 835 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x3614BA8B: mov byte ptr [esi], cl */ 836 MEM32(esi + 0x4) = eax; /* 0x3614BA8D: mov dword ptr [esi + 4], eax */ 837 MEM32(esi + 0x8) = eax; /* 0x3614BA90: mov dword ptr [esi + 8], eax */ 838 MEM32(esi + 0xC) = eax; /* 0x3614BA93: mov dword ptr [esi + 0xc], eax */ 839 edx = MEM32(0x3616F010); /* 0x3614BA96: mov edx, dword ptr [0x3616f010] */ 840 eax = MEM32(edx); /* 0x3614BA9C: mov eax, dword ptr [edx] */ 841 ecx = edi; /* 0x3614BA9E: mov ecx, edi */ 842 MEM32(ebp + (-0x10)) = eax; /* 0x3614BAA0: mov dword ptr [ebp - 0x10], eax */ 843 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAA3: call dword ptr [0x3616f06c] */ 844 RECOMP_FLAGS_IN(); 845 ecx = edi; /* 0x3614BAA9: mov ecx, edi */ 846 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAAB: call dword ptr [0x3616f06c] */ 847 RECOMP_FLAGS_IN(); 848 ebx = eax; /* 0x3614BAB1: mov ebx, eax */ 849 eax = MEM32(ebp + (-0x10)); /* 0x3614BAB3: mov eax, dword ptr [ebp - 0x10] */ 850 /* cmp eax, ebx */ /* 0x3614BAB6: cmp eax, ebx */ 851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 853 _flag_k = FK_CMP; 854 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BABC; /* 0x3614BAB8: jae 0x3614babc */ 855 L_3614BABA: 856 ebx = eax; /* 0x3614BABA: mov ebx, eax */ 857 L_3614BABC: 858 /* cmp esi, edi */ /* 0x3614BABC: cmp esi, edi */ 859 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 861 _flag_k = FK_CMP; 862 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BAE3; /* 0x3614BABE: jne 0x3614bae3 */ 863 L_3614BAC0: 864 ecx = MEM32(0x3616F010); /* 0x3614BAC0: mov ecx, dword ptr [0x3616f010] */ 865 edx = MEM32(ecx); /* 0x3614BAC6: mov edx, dword ptr [ecx] */ 866 PUSH32(esp, edx); /* 0x3614BAC8: push edx */ 867 PUSH32(esp, ebx); /* 0x3614BAC9: push ebx */ 868 ecx = esi; /* 0x3614BACA: mov ecx, esi */ 869 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BACC: call dword ptr [0x3616f15c] */ 870 RECOMP_FLAGS_IN(); 871 PUSH32(esp, 0); /* 0x3614BAD2: push 0 */ 872 PUSH32(esp, 0); /* 0x3614BAD4: push 0 */ 873 ecx = esi; /* 0x3614BAD6: mov ecx, esi */ 874 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x3614BAD8: call dword ptr [0x3616f15c] */ 875 RECOMP_FLAGS_IN(); 876 goto L_3614BB81; /* 0x3614BADE: jmp 0x3614bb81 */ 877 L_3614BAE3: 878 /* test ebx, ebx */ /* 0x3614BAE3: test ebx, ebx */ 879 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 880 _cf = 0; 881 _flag_k = FK_TEST; 882 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAE5: jbe 0x3614bb52 */ 883 L_3614BAE7: 884 ecx = edi; /* 0x3614BAE7: mov ecx, edi */ 885 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BAE9: call dword ptr [0x3616f06c] */ 886 RECOMP_FLAGS_IN(); 887 /* cmp ebx, eax */ /* 0x3614BAEF: cmp ebx, eax */ 888 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 890 _flag_k = FK_CMP; 891 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BAF1: jne 0x3614bb52 */ 892 L_3614BAF3: 893 ecx = edi; /* 0x3614BAF3: mov ecx, edi */ 894 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BAF5: call dword ptr [0x3616f11c] */ 895 RECOMP_FLAGS_IN(); 896 PUSH32(esp, eax); /* 0x3614BAFB: push eax */ 897 ecx = esi; /* 0x3614BAFC: mov ecx, esi */ 898 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BAFE: call dword ptr [0x3616f158] */ 899 RECOMP_FLAGS_IN(); 900 /* cmp MEM8(eax), 0xFEu */ /* 0x3614BB04: cmp byte ptr [eax], 0xfe */ 901 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 903 _flag_k = FK_NARROW(FK_CMP, 24); 904 if (CMP_AE(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB07: jae 0x3614bb52 */ 905 L_3614BB09: 906 PUSH32(esp, edi); /* 0x3614BB09: push edi */ 907 PUSH32(esp, esi); /* 0x3614BB0A: push esi */ 908 RECOMP_ICALL(0x360C6B20u); /* 0x3614BB0B: call 0x360c6b20 */ /* not lifted */ 909 RECOMP_FLAGS_IN(); 910 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 912 esp = esp + 8; /* 0x3614BB10: add esp, 8 */ 913 _flag_k = FK_ADD; 914 /* test LO8(eax), LO8(eax) */ /* 0x3614BB13: test al, al */ 915 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 916 _cf = 0; 917 _flag_k = FK_NARROW(FK_TEST, 24); 918 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB52; /* 0x3614BB15: je 0x3614bb52 */ 919 L_3614BB17: 920 PUSH32(esp, 1); /* 0x3614BB17: push 1 */ 921 ecx = esi; /* 0x3614BB19: mov ecx, esi */ 922 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614BB1B: call dword ptr [0x3616f100] */ 923 RECOMP_FLAGS_IN(); 924 ecx = edi; /* 0x3614BB21: mov ecx, edi */ 925 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB23: call dword ptr [0x3616f11c] */ 926 RECOMP_FLAGS_IN(); 927 ecx = edi; /* 0x3614BB29: mov ecx, edi */ 928 MEM32(esi + 0x4) = eax; /* 0x3614BB2B: mov dword ptr [esi + 4], eax */ 929 RECOMP_ICALL(MEM32(0x3616F06C)); /* 0x3614BB2E: call dword ptr [0x3616f06c] */ 930 RECOMP_FLAGS_IN(); 931 ecx = edi; /* 0x3614BB34: mov ecx, edi */ 932 MEM32(esi + 0x8) = eax; /* 0x3614BB36: mov dword ptr [esi + 8], eax */ 933 RECOMP_ICALL(MEM32(0x3616F068)); /* 0x3614BB39: call dword ptr [0x3616f068] */ 934 RECOMP_FLAGS_IN(); 935 MEM32(esi + 0xC) = eax; /* 0x3614BB3F: mov dword ptr [esi + 0xc], eax */ 936 eax = MEM32(esi + 0x4); /* 0x3614BB42: mov eax, dword ptr [esi + 4] */ 937 PUSH32(esp, eax); /* 0x3614BB45: push eax */ 938 ecx = esi; /* 0x3614BB46: mov ecx, esi */ 939 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3614BB48: call dword ptr [0x3616f158] */ 940 RECOMP_FLAGS_IN(); 941 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 942 MEM8(eax) = (uint8_t)(MEM8(eax) + 1); /* 0x3614BB4E: inc byte ptr [eax] */ 943 _flag_k = FK_NARROW(FK_INC, 24); 944 goto L_3614BB81; /* 0x3614BB50: jmp 0x3614bb81 */ 945 L_3614BB52: 946 PUSH32(esp, 1); /* 0x3614BB52: push 1 */ 947 PUSH32(esp, ebx); /* 0x3614BB54: push ebx */ 948 ecx = esi; /* 0x3614BB55: mov ecx, esi */ 949 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614BB57: call dword ptr [0x3616f00c] */ 950 RECOMP_FLAGS_IN(); 951 /* test LO8(eax), LO8(eax) */ /* 0x3614BB5D: test al, al */ 952 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 953 _cf = 0; 954 _flag_k = FK_NARROW(FK_TEST, 24); 955 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BB81; /* 0x3614BB5F: je 0x3614bb81 */ 956 L_3614BB61: 957 PUSH32(esp, ebx); /* 0x3614BB61: push ebx */ 958 ecx = edi; /* 0x3614BB62: mov ecx, edi */ 959 RECOMP_ICALL(MEM32(0x3616F11C)); /* 0x3614BB64: call dword ptr [0x3616f11c] */ 960 RECOMP_FLAGS_IN(); 961 ecx = MEM32(esi + 0x4); /* 0x3614BB6A: mov ecx, dword ptr [esi + 4] */ 962 PUSH32(esp, eax); /* 0x3614BB6D: push eax */ 963 PUSH32(esp, ecx); /* 0x3614BB6E: push ecx */ 964 RECOMP_ICALL(MEM32(0x3616F064)); /* 0x3614BB6F: call dword ptr [0x3616f064] */ 965 RECOMP_FLAGS_IN(); 966 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 967 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 968 esp = esp + 0xCu; /* 0x3614BB75: add esp, 0xc */ 969 _flag_k = FK_ADD; 970 PUSH32(esp, ebx); /* 0x3614BB78: push ebx */ 971 ecx = esi; /* 0x3614BB79: mov ecx, esi */ 972 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x3614BB7B: call dword ptr [0x3616f044] */ 973 RECOMP_FLAGS_IN(); 974 L_3614BB81: 975 edx = MEM32(edi + 0x10); /* 0x3614BB81: mov edx, dword ptr [edi + 0x10] */ 976 eax = MEM32(ebp + 0xC); /* 0x3614BB84: mov eax, dword ptr [ebp + 0xc] */ 977 ebx = MEM32(ebp + 0x8); /* 0x3614BB87: mov ebx, dword ptr [ebp + 8] */ 978 MEM32(eax + 0x14) = edx; /* 0x3614BB8A: mov dword ptr [eax + 0x14], edx */ 979 ecx = MEM32(edi + 0x14); /* 0x3614BB8D: mov ecx, dword ptr [edi + 0x14] */ 980 MEM32(eax + 0x18) = ecx; /* 0x3614BB90: mov dword ptr [eax + 0x18], ecx */ 981 edx = MEM32(edi + 0x18); /* 0x3614BB93: mov edx, dword ptr [edi + 0x18] */ 982 MEM32(eax + 0x1C) = edx; /* 0x3614BB96: mov dword ptr [eax + 0x1c], edx */ 983 SET_LO8(ecx, MEM8(edi + 0x1C)); /* 0x3614BB99: mov cl, byte ptr [edi + 0x1c] */ 984 MEM8(eax + 0x20) = (uint8_t)(LO8(ecx)); /* 0x3614BB9C: mov byte ptr [eax + 0x20], cl */ 985 ecx = MEM32(ebp + (-0x14)); /* 0x3614BB9F: mov ecx, dword ptr [ebp - 0x14] */ 986 esi = eax; /* 0x3614BBA2: mov esi, eax */ 987 L_3614BBA4: 988 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 989 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 990 edi = edi + 0x24u; /* 0x3614BBA4: add edi, 0x24 */ 991 _flag_k = FK_ADD; 992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 994 esi = esi + 0x24u; /* 0x3614BBA7: add esi, 0x24 */ 995 _flag_k = FK_ADD; 996 edx = edi + (-0x4); /* 0x3614BBAA: lea edx, [edi - 4] */ 997 /* cmp edx, ecx */ /* 0x3614BBAD: cmp edx, ecx */ 998 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1000 _flag_k = FK_CMP; 1001 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3614BBAF: mov byte ptr [ebp - 4], 0 */ 1002 MEM32(ebp + 0xC) = esi; /* 0x3614BBB3: mov dword ptr [ebp + 0xc], esi */ 1003 RECOMP_BACKEDGE(); 1004 if (CMP_NE(_flag_a, _flag_b)) goto L_3614BA70; /* 0x3614BBB6: jne 0x3614ba70 */ 1005 L_3614BBBC: 1006 edi = POP32_VAL(esp); /* 0x3614BBBC: pop edi */ 1007 MEM32(ebx + 0xC) = esi; /* 0x3614BBBD: mov dword ptr [ebx + 0xc], esi */ 1008 MEM32(ebx + 0x10) = esi; /* 0x3614BBC0: mov dword ptr [ebx + 0x10], esi */ 1009 esi = POP32_VAL(esp); /* 0x3614BBC3: pop esi */ 1010 ecx = MEM32(ebp + (-0xC)); /* 0x3614BBC4: mov ecx, dword ptr [ebp - 0xc] */ 1011 ebx = POP32_VAL(esp); /* 0x3614BBC7: pop ebx */ 1012 MEM32(FS_BASE + (0)) = ecx; /* 0x3614BBC8: mov dword ptr fs:[0], ecx */ 1013 esp = ebp; /* 0x3614BBCF: mov esp, ebp */ 1014 ebp = POP32_VAL(esp); /* 0x3614BBD1: pop ebp */ 1015 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BBD2: ret */ 1016 RECOMP_REGS_OUT(); 1017 } 1018 1019 void sub_3614BBE0(void) { 1020 int _fpu_cmp = 0; 1021 uint32_t _cf = 0; 1022 int _df = 1; 1023 uint32_t _flag_k = FK_NONE; 1024 uint32_t _flag_a = 0, _flag_b = 0; 1025 uint32_t _itail_tgt = 0; 1026 RECOMP_REGS_LOCALS 1027 RECOMP_ENTER(0x3614BBE0u); 1028 1029 L_3614BBE0: 1030 PUSH32(esp, ebp); /* 0x3614BBE0: push ebp */ 1031 ebp = esp; /* 0x3614BBE1: mov ebp, esp */ 1032 PUSH32(esp, esi); /* 0x3614BBE3: push esi */ 1033 esi = ecx; /* 0x3614BBE4: mov esi, ecx */ 1034 RECOMP_ICALL(0x3614AFC0u); /* 0x3614BBE6: call 0x3614afc0 */ /* not lifted */ 1035 RECOMP_FLAGS_IN(); 1036 /* test MEM8(ebp + 0x8), 1 */ /* 0x3614BBEB: test byte ptr [ebp + 8], 1 */ 1037 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1038 _cf = 0; 1039 _flag_k = FK_NARROW(FK_TEST, 24); 1040 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BBFA; /* 0x3614BBEF: je 0x3614bbfa */ 1041 L_3614BBF1: 1042 PUSH32(esp, esi); /* 0x3614BBF1: push esi */ 1043 RECOMP_ICALL(0x3615FCC4u); /* 0x3614BBF2: call 0x3615fcc4 */ /* not lifted */ 1044 RECOMP_FLAGS_IN(); 1045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1047 esp = esp + 4; /* 0x3614BBF7: add esp, 4 */ 1048 _flag_k = FK_ADD; 1049 L_3614BBFA: 1050 eax = esi; /* 0x3614BBFA: mov eax, esi */ 1051 esi = POP32_VAL(esp); /* 0x3614BBFC: pop esi */ 1052 ebp = POP32_VAL(esp); /* 0x3614BBFD: pop ebp */ 1053 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614BBFE: ret 4 */ 1054 RECOMP_REGS_OUT(); 1055 } 1056 1057 void sub_3614BC10(void) { 1058 int _fpu_cmp = 0; 1059 uint32_t _cf = 0; 1060 int _df = 1; 1061 uint32_t _flag_k = FK_NONE; 1062 uint32_t _flag_a = 0, _flag_b = 0; 1063 uint32_t _itail_tgt = 0; 1064 RECOMP_REGS_LOCALS 1065 RECOMP_ENTER(0x3614BC10u); 1066 1067 L_3614BC10: 1068 RECOMP_ICALL(0x3614BC20u); /* 0x3614BC10: call 0x3614bc20 */ /* not lifted */ 1069 RECOMP_FLAGS_IN(); 1070 goto L_3614BC30; /* 0x3614BC15: jmp 0x3614bc30 */ 1071 L_3614BC30: 1072 PUSH32(esp, 0x3614BC40u); /* 0x3614BC30: push 0x3614bc40 */ 1073 RECOMP_ICALL(0x3615FEB2u); /* 0x3614BC35: call 0x3615feb2 */ /* not lifted */ 1074 RECOMP_FLAGS_IN(); 1075 ecx = POP32_VAL(esp); /* 0x3614BC3A: pop ecx */ 1076 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BC3B: ret */ 1077 RECOMP_REGS_OUT(); 1078 } 1079 1080 void sub_3614BC20(void) { 1081 int _fpu_cmp = 0; 1082 uint32_t _cf = 0; 1083 int _df = 1; 1084 uint32_t _flag_k = FK_NONE; 1085 uint32_t _flag_a = 0, _flag_b = 0; 1086 uint32_t _itail_tgt = 0; 1087 RECOMP_REGS_LOCALS 1088 RECOMP_ENTER(0x3614BC20u); 1089 1090 L_3614BC20: 1091 ecx = 0x3630DA5Du; /* 0x3614BC20: mov ecx, 0x3630da5d */ 1092 L_3614BC25: 1093 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 1094 { RECOMP_REGS_OUT(); return; } /* end of function */ 1095 _ljump: 1096 switch (_itail_tgt) { 1097 case 0x3614BC20u: goto L_3614BC20; 1098 case 0x3614BC25u: goto L_3614BC25; 1099 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1100 } 1101 RECOMP_REGS_OUT(); 1102 } 1103 1104 void sub_3614BC30(void) { 1105 int _fpu_cmp = 0; 1106 uint32_t _cf = 0; 1107 int _df = 1; 1108 uint32_t _flag_k = FK_NONE; 1109 uint32_t _flag_a = 0, _flag_b = 0; 1110 uint32_t _itail_tgt = 0; 1111 RECOMP_REGS_LOCALS 1112 RECOMP_ENTER(0x3614BC30u); 1113 1114 L_3614BC30: 1115 PUSH32(esp, 0x3614BC40u); /* 0x3614BC30: push 0x3614bc40 */ 1116 RECOMP_ICALL(0x3615FEB2u); /* 0x3614BC35: call 0x3615feb2 */ /* not lifted */ 1117 RECOMP_FLAGS_IN(); 1118 ecx = POP32_VAL(esp); /* 0x3614BC3A: pop ecx */ 1119 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BC3B: ret */ 1120 RECOMP_REGS_OUT(); 1121 } 1122 1123 void sub_3614BC40(void) { 1124 int _fpu_cmp = 0; 1125 uint32_t _cf = 0; 1126 int _df = 1; 1127 uint32_t _flag_k = FK_NONE; 1128 uint32_t _flag_a = 0, _flag_b = 0; 1129 uint32_t _itail_tgt = 0; 1130 RECOMP_REGS_LOCALS 1131 RECOMP_ENTER(0x3614BC40u); 1132 1133 L_3614BC40: 1134 ecx = 0x3630DA5Du; /* 0x3614BC40: mov ecx, 0x3630da5d */ 1135 L_3614BC45: 1136 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 1137 { RECOMP_REGS_OUT(); return; } /* end of function */ 1138 _ljump: 1139 switch (_itail_tgt) { 1140 case 0x3614BC40u: goto L_3614BC40; 1141 case 0x3614BC45u: goto L_3614BC45; 1142 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1143 } 1144 RECOMP_REGS_OUT(); 1145 } 1146 1147 void sub_3614BC50(void) { 1148 int _fpu_cmp = 0; 1149 uint32_t _cf = 0; 1150 int _df = 1; 1151 uint32_t _flag_k = FK_NONE; 1152 uint32_t _flag_a = 0, _flag_b = 0; 1153 uint32_t _itail_tgt = 0; 1154 RECOMP_REGS_LOCALS 1155 RECOMP_ENTER(0x3614BC50u); 1156 1157 L_3614BC50: 1158 RECOMP_ICALL(0x3614BC60u); /* 0x3614BC50: call 0x3614bc60 */ /* not lifted */ 1159 RECOMP_FLAGS_IN(); 1160 goto L_3614BC70; /* 0x3614BC55: jmp 0x3614bc70 */ 1161 L_3614BC70: 1162 PUSH32(esp, 0x3614BC80u); /* 0x3614BC70: push 0x3614bc80 */ 1163 RECOMP_ICALL(0x3615FEB2u); /* 0x3614BC75: call 0x3615feb2 */ /* not lifted */ 1164 RECOMP_FLAGS_IN(); 1165 ecx = POP32_VAL(esp); /* 0x3614BC7A: pop ecx */ 1166 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BC7B: ret */ 1167 RECOMP_REGS_OUT(); 1168 } 1169 1170 void sub_3614BC60(void) { 1171 int _fpu_cmp = 0; 1172 uint32_t _cf = 0; 1173 int _df = 1; 1174 uint32_t _flag_k = FK_NONE; 1175 uint32_t _flag_a = 0, _flag_b = 0; 1176 uint32_t _itail_tgt = 0; 1177 RECOMP_REGS_LOCALS 1178 RECOMP_ENTER(0x3614BC60u); 1179 1180 L_3614BC60: 1181 ecx = 0x3630DA5Cu; /* 0x3614BC60: mov ecx, 0x3630da5c */ 1182 L_3614BC65: 1183 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 1184 { RECOMP_REGS_OUT(); return; } /* end of function */ 1185 _ljump: 1186 switch (_itail_tgt) { 1187 case 0x3614BC60u: goto L_3614BC60; 1188 case 0x3614BC65u: goto L_3614BC65; 1189 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1190 } 1191 RECOMP_REGS_OUT(); 1192 } 1193 1194 void sub_3614BC70(void) { 1195 int _fpu_cmp = 0; 1196 uint32_t _cf = 0; 1197 int _df = 1; 1198 uint32_t _flag_k = FK_NONE; 1199 uint32_t _flag_a = 0, _flag_b = 0; 1200 uint32_t _itail_tgt = 0; 1201 RECOMP_REGS_LOCALS 1202 RECOMP_ENTER(0x3614BC70u); 1203 1204 L_3614BC70: 1205 PUSH32(esp, 0x3614BC80u); /* 0x3614BC70: push 0x3614bc80 */ 1206 RECOMP_ICALL(0x3615FEB2u); /* 0x3614BC75: call 0x3615feb2 */ /* not lifted */ 1207 RECOMP_FLAGS_IN(); 1208 ecx = POP32_VAL(esp); /* 0x3614BC7A: pop ecx */ 1209 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614BC7B: ret */ 1210 RECOMP_REGS_OUT(); 1211 } 1212 1213 void sub_3614BC80(void) { 1214 int _fpu_cmp = 0; 1215 uint32_t _cf = 0; 1216 int _df = 1; 1217 uint32_t _flag_k = FK_NONE; 1218 uint32_t _flag_a = 0, _flag_b = 0; 1219 uint32_t _itail_tgt = 0; 1220 RECOMP_REGS_LOCALS 1221 RECOMP_ENTER(0x3614BC80u); 1222 1223 L_3614BC80: 1224 ecx = 0x3630DA5Cu; /* 0x3614BC80: mov ecx, 0x3630da5c */ 1225 L_3614BC85: 1226 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 1227 { RECOMP_REGS_OUT(); return; } /* end of function */ 1228 _ljump: 1229 switch (_itail_tgt) { 1230 case 0x3614BC80u: goto L_3614BC80; 1231 case 0x3614BC85u: goto L_3614BC85; 1232 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1233 } 1234 RECOMP_REGS_OUT(); 1235 } 1236 1237 void sub_3614BC90(void) { 1238 int _fpu_cmp = 0; 1239 uint32_t _cf = 0; 1240 int _df = 1; 1241 uint32_t _flag_k = FK_NONE; 1242 uint32_t _flag_a = 0, _flag_b = 0; 1243 uint32_t _itail_tgt = 0; 1244 RECOMP_REGS_LOCALS 1245 RECOMP_ENTER(0x3614BC90u); 1246 1247 L_3614BC90: 1248 PUSH32(esp, ebp); /* 0x3614BC90: push ebp */ 1249 ebp = esp; /* 0x3614BC91: mov ebp, esp */ 1250 edx = MEM32(ebp + 0xC); /* 0x3614BC93: mov edx, dword ptr [ebp + 0xc] */ 1251 eax = ecx; /* 0x3614BC96: mov eax, ecx */ 1252 ecx = MEM32(ebp + 0x8); /* 0x3614BC98: mov ecx, dword ptr [ebp + 8] */ 1253 MEM32(eax + 0x4) = ecx; /* 0x3614BC9B: mov dword ptr [eax + 4], ecx */ 1254 MEM32(eax + 0x8) = edx; /* 0x3614BC9E: mov dword ptr [eax + 8], edx */ 1255 edx = 1; /* 0x3614BCA1: mov edx, 1 */ 1256 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1257 ecx = 0; /* 0x3614BCA6: xor ecx, ecx */ 1258 _cf = 0; 1259 _flag_k = FK_TEST; 1260 MEM32(eax + 0xC) = edx; /* 0x3614BCA8: mov dword ptr [eax + 0xc], edx */ 1261 MEM32(eax + 0x10) = edx; /* 0x3614BCAB: mov dword ptr [eax + 0x10], edx */ 1262 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3614BCAE: mov byte ptr [eax + 0x14], cl */ 1263 MEM8(eax + 0x15) = (uint8_t)(LO8(edx)); /* 0x3614BCB1: mov byte ptr [eax + 0x15], dl */ 1264 MEM32(eax + 0x18) = ecx; /* 0x3614BCB4: mov dword ptr [eax + 0x18], ecx */ 1265 MEM32(eax + 0x1C) = ecx; /* 0x3614BCB7: mov dword ptr [eax + 0x1c], ecx */ 1266 MEM32(eax) = 0x36178890u; /* 0x3614BCBA: mov dword ptr [eax], 0x36178890 */ 1267 ebp = POP32_VAL(esp); /* 0x3614BCC0: pop ebp */ 1268 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614BCC1: ret 8 */ 1269 RECOMP_REGS_OUT(); 1270 } 1271 1272 void sub_3614BCD0(void) { 1273 int _fpu_cmp = 0; 1274 uint32_t _cf = 0; 1275 int _df = 1; 1276 uint32_t _flag_k = FK_NONE; 1277 uint32_t _flag_a = 0, _flag_b = 0; 1278 uint32_t _itail_tgt = 0; 1279 RECOMP_REGS_LOCALS 1280 RECOMP_ENTER(0x3614BCD0u); 1281 1282 L_3614BCD0: 1283 PUSH32(esp, ebp); /* 0x3614BCD0: push ebp */ 1284 ebp = esp; /* 0x3614BCD1: mov ebp, esp */ 1285 PUSH32(esp, esi); /* 0x3614BCD3: push esi */ 1286 esi = ecx; /* 0x3614BCD4: mov esi, ecx */ 1287 RECOMP_ICALL(0x3614BD40u); /* 0x3614BCD6: call 0x3614bd40 */ /* not lifted */ 1288 RECOMP_FLAGS_IN(); 1289 /* test MEM8(ebp + 0x8), 1 */ /* 0x3614BCDB: test byte ptr [ebp + 8], 1 */ 1290 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1291 _cf = 0; 1292 _flag_k = FK_NARROW(FK_TEST, 24); 1293 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BCEA; /* 0x3614BCDF: je 0x3614bcea */ 1294 L_3614BCE1: 1295 PUSH32(esp, esi); /* 0x3614BCE1: push esi */ 1296 RECOMP_ICALL(0x3615FCC4u); /* 0x3614BCE2: call 0x3615fcc4 */ /* not lifted */ 1297 RECOMP_FLAGS_IN(); 1298 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1300 esp = esp + 4; /* 0x3614BCE7: add esp, 4 */ 1301 _flag_k = FK_ADD; 1302 L_3614BCEA: 1303 eax = esi; /* 0x3614BCEA: mov eax, esi */ 1304 esi = POP32_VAL(esp); /* 0x3614BCEC: pop esi */ 1305 ebp = POP32_VAL(esp); /* 0x3614BCED: pop ebp */ 1306 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614BCEE: ret 4 */ 1307 RECOMP_REGS_OUT(); 1308 } 1309 1310 void sub_3614BD00(void) { 1311 int _fpu_cmp = 0; 1312 uint32_t _cf = 0; 1313 int _df = 1; 1314 uint32_t _flag_k = FK_NONE; 1315 uint32_t _flag_a = 0, _flag_b = 0; 1316 uint32_t _itail_tgt = 0; 1317 RECOMP_REGS_LOCALS 1318 RECOMP_ENTER(0x3614BD00u); 1319 1320 L_3614BD00: 1321 PUSH32(esp, ebp); /* 0x3614BD00: push ebp */ 1322 ebp = esp; /* 0x3614BD01: mov ebp, esp */ 1323 edx = MEM32(ebp + 0x8); /* 0x3614BD03: mov edx, dword ptr [ebp + 8] */ 1324 eax = ecx; /* 0x3614BD06: mov eax, ecx */ 1325 ecx = eax + 0x4; /* 0x3614BD08: lea ecx, [eax + 4] */ 1326 /* cmp ecx, edx */ /* 0x3614BD0B: cmp ecx, edx */ 1327 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1329 _flag_k = FK_CMP; 1330 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BD1B; /* 0x3614BD0D: je 0x3614bd1b */ 1331 L_3614BD0F: 1332 PUSH32(esp, esi); /* 0x3614BD0F: push esi */ 1333 esi = MEM32(edx); /* 0x3614BD10: mov esi, dword ptr [edx] */ 1334 MEM32(ecx) = esi; /* 0x3614BD12: mov dword ptr [ecx], esi */ 1335 edx = MEM32(edx + 0x4); /* 0x3614BD14: mov edx, dword ptr [edx + 4] */ 1336 MEM32(ecx + 0x4) = edx; /* 0x3614BD17: mov dword ptr [ecx + 4], edx */ 1337 esi = POP32_VAL(esp); /* 0x3614BD1A: pop esi */ 1338 L_3614BD1B: 1339 edx = 1; /* 0x3614BD1B: mov edx, 1 */ 1340 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1341 ecx = 0; /* 0x3614BD20: xor ecx, ecx */ 1342 _cf = 0; 1343 _flag_k = FK_TEST; 1344 MEM32(eax + 0xC) = edx; /* 0x3614BD22: mov dword ptr [eax + 0xc], edx */ 1345 MEM32(eax + 0x10) = edx; /* 0x3614BD25: mov dword ptr [eax + 0x10], edx */ 1346 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3614BD28: mov byte ptr [eax + 0x14], cl */ 1347 MEM8(eax + 0x15) = (uint8_t)(LO8(edx)); /* 0x3614BD2B: mov byte ptr [eax + 0x15], dl */ 1348 MEM32(eax + 0x18) = ecx; /* 0x3614BD2E: mov dword ptr [eax + 0x18], ecx */ 1349 MEM32(eax + 0x1C) = ecx; /* 0x3614BD31: mov dword ptr [eax + 0x1c], ecx */ 1350 MEM32(eax) = 0x36178890u; /* 0x3614BD34: mov dword ptr [eax], 0x36178890 */ 1351 ebp = POP32_VAL(esp); /* 0x3614BD3A: pop ebp */ 1352 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614BD3B: ret 4 */ 1353 RECOMP_REGS_OUT(); 1354 } 1355 1356 void sub_3614BD40(void) { 1357 int _fpu_cmp = 0; 1358 uint32_t _cf = 0; 1359 int _df = 1; 1360 uint32_t _flag_k = FK_NONE; 1361 uint32_t _flag_a = 0, _flag_b = 0; 1362 uint32_t _itail_tgt = 0; 1363 RECOMP_REGS_LOCALS 1364 RECOMP_ENTER(0x3614BD40u); 1365 1366 L_3614BD40: 1367 MEM32(ecx) = 0x36178890u; /* 0x3614BD40: mov dword ptr [ecx], 0x36178890 */ 1368 L_3614BD46: 1369 { _itail_tgt = (uint32_t)(MEM32(0x3616FB48)); goto _ljump; } 1370 { RECOMP_REGS_OUT(); return; } /* end of function */ 1371 _ljump: 1372 switch (_itail_tgt) { 1373 case 0x3614BD40u: goto L_3614BD40; 1374 case 0x3614BD46u: goto L_3614BD46; 1375 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1376 } 1377 RECOMP_REGS_OUT(); 1378 } 1379 1380 void sub_3614BD50(void) { 1381 int _fpu_cmp = 0; 1382 uint32_t _cf = 0; 1383 int _df = 1; 1384 uint32_t _flag_k = FK_NONE; 1385 uint32_t _flag_a = 0, _flag_b = 0; 1386 uint32_t _itail_tgt = 0; 1387 RECOMP_REGS_LOCALS 1388 RECOMP_ENTER(0x3614BD50u); 1389 1390 L_3614BD50: 1391 PUSH32(esp, ebp); /* 0x3614BD50: push ebp */ 1392 ebp = esp; /* 0x3614BD51: mov ebp, esp */ 1393 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614BD53: push -1 */ 1394 PUSH32(esp, 0x3616D1D9u); /* 0x3614BD55: push 0x3616d1d9 */ 1395 eax = MEM32(FS_BASE + (0)); /* 0x3614BD5A: mov eax, dword ptr fs:[0] */ 1396 PUSH32(esp, eax); /* 0x3614BD60: push eax */ 1397 MEM32(FS_BASE + (0)) = esp; /* 0x3614BD61: mov dword ptr fs:[0], esp */ 1398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1400 esp = esp - 0x14u; /* 0x3614BD68: sub esp, 0x14 */ 1401 _flag_k = FK_CMP; 1402 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3614BD6B: mov al, byte ptr [ebp + 0xb] */ 1403 PUSH32(esp, ebx); /* 0x3614BD6E: push ebx */ 1404 PUSH32(esp, esi); /* 0x3614BD6F: push esi */ 1405 MEM32(ebp + (-0x10)) = ecx; /* 0x3614BD70: mov dword ptr [ebp - 0x10], ecx */ 1406 PUSH32(esp, edi); /* 0x3614BD73: push edi */ 1407 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1408 ecx = ecx | 0xFFFFFFFFu; /* 0x3614BD74: or ecx, 0xffffffff */ 1409 _cf = 0; 1410 _flag_k = FK_TEST; 1411 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1412 esi = 0; /* 0x3614BD77: xor esi, esi */ 1413 _cf = 0; 1414 _flag_k = FK_TEST; 1415 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3614BD79: mov byte ptr [ebp - 0x20], al */ 1416 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1417 eax = 0; /* 0x3614BD7C: xor eax, eax */ 1418 _cf = 0; 1419 _flag_k = FK_TEST; 1420 edi = 0x362E78A8u; /* 0x3614BD7E: mov edi, 0x362e78a8 */ 1421 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3614BD83: repne scasb al, byte ptr es:[edi] */ 1422 ecx = ~ecx; /* 0x3614BD85: not ecx */ 1423 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1424 ecx = ecx - 1; /* 0x3614BD87: dec ecx */ 1425 _flag_k = FK_DEC; 1426 ebx = ecx; /* 0x3614BD88: mov ebx, ecx */ 1427 PUSH32(esp, 1); /* 0x3614BD8A: push 1 */ 1428 PUSH32(esp, ebx); /* 0x3614BD8C: push ebx */ 1429 ecx = ebp + (-0x20); /* 0x3614BD8D: lea ecx, [ebp - 0x20] */ 1430 MEM32(ebp + (-0x1C)) = esi; /* 0x3614BD90: mov dword ptr [ebp - 0x1c], esi */ 1431 MEM32(ebp + (-0x18)) = esi; /* 0x3614BD93: mov dword ptr [ebp - 0x18], esi */ 1432 MEM32(ebp + (-0x14)) = esi; /* 0x3614BD96: mov dword ptr [ebp - 0x14], esi */ 1433 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614BD99: call dword ptr [0x3616f00c] */ 1434 RECOMP_FLAGS_IN(); 1435 /* test LO8(eax), LO8(eax) */ /* 0x3614BD9F: test al, al */ 1436 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1437 _cf = 0; 1438 _flag_k = FK_NARROW(FK_TEST, 24); 1439 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BDC7; /* 0x3614BDA1: je 0x3614bdc7 */ 1440 L_3614BDA3: 1441 edi = MEM32(ebp + (-0x1C)); /* 0x3614BDA3: mov edi, dword ptr [ebp - 0x1c] */ 1442 ecx = ebx; /* 0x3614BDA6: mov ecx, ebx */ 1443 edx = ecx; /* 0x3614BDA8: mov edx, ecx */ 1444 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3614BDAA: shr ecx, 2 */ 1445 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1446 ecx = ecx >> 2u; /* 0x3614BDAA: shr ecx, 2 */ 1447 esi = 0x362E78A8u; /* 0x3614BDAD: mov esi, 0x362e78a8 */ 1448 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614BDB2: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1449 ecx = edx; /* 0x3614BDB4: mov ecx, edx */ 1450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1451 ecx = ecx & 3; /* 0x3614BDB6: and ecx, 3 */ 1452 _cf = 0; 1453 _flag_k = FK_TEST; 1454 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3614BDB9: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1455 eax = MEM32(ebp + (-0x1C)); /* 0x3614BDBB: mov eax, dword ptr [ebp - 0x1c] */ 1456 MEM32(ebp + (-0x18)) = ebx; /* 0x3614BDBE: mov dword ptr [ebp - 0x18], ebx */ 1457 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3614BDC1: mov byte ptr [eax + ebx], 0 */ 1458 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1459 esi = 0; /* 0x3614BDC5: xor esi, esi */ 1460 _cf = 0; 1461 _flag_k = FK_TEST; 1462 L_3614BDC7: 1463 edi = MEM32(ebp + 0x8); /* 0x3614BDC7: mov edi, dword ptr [ebp + 8] */ 1464 edx = MEM32(edi); /* 0x3614BDCA: mov edx, dword ptr [edi] */ 1465 eax = ebp + (-0x20); /* 0x3614BDCC: lea eax, [ebp - 0x20] */ 1466 PUSH32(esp, eax); /* 0x3614BDCF: push eax */ 1467 ecx = edi; /* 0x3614BDD0: mov ecx, edi */ 1468 MEM32(ebp + (-0x4)) = esi; /* 0x3614BDD2: mov dword ptr [ebp - 4], esi */ 1469 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3614BDD5: call dword ptr [edx + 8] */ 1470 RECOMP_FLAGS_IN(); 1471 eax = MEM32(ebp + (-0x1C)); /* 0x3614BDD8: mov eax, dword ptr [ebp - 0x1c] */ 1472 /* cmp eax, esi */ /* 0x3614BDDB: cmp eax, esi */ 1473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1475 _flag_k = FK_CMP; 1476 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614BDDD: mov dword ptr [ebp - 4], 0xffffffff */ 1477 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BE02; /* 0x3614BDE4: je 0x3614be02 */ 1478 L_3614BDE6: 1479 ecx = eax + (-0x1); /* 0x3614BDE6: lea ecx, [eax - 1] */ 1480 SET_LO8(eax, MEM8(ecx)); /* 0x3614BDE9: mov al, byte ptr [ecx] */ 1481 /* test LO8(eax), LO8(eax) */ /* 0x3614BDEB: test al, al */ 1482 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1483 _cf = 0; 1484 _flag_k = FK_NARROW(FK_TEST, 24); 1485 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BDF9; /* 0x3614BDED: je 0x3614bdf9 */ 1486 L_3614BDEF: 1487 /* cmp LO8(eax), 0xFFu */ /* 0x3614BDEF: cmp al, 0xff */ 1488 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1490 _flag_k = FK_NARROW(FK_CMP, 24); 1491 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BDF9; /* 0x3614BDF1: je 0x3614bdf9 */ 1492 L_3614BDF3: 1493 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1494 SET_LO8(eax, LO8(eax) - 1); /* 0x3614BDF3: dec al */ 1495 _flag_k = FK_NARROW(FK_DEC, 24); 1496 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3614BDF5: mov byte ptr [ecx], al */ 1497 goto L_3614BE02; /* 0x3614BDF7: jmp 0x3614be02 */ 1498 L_3614BDF9: 1499 PUSH32(esp, ecx); /* 0x3614BDF9: push ecx */ 1500 RECOMP_ICALL(0x3615FCC4u); /* 0x3614BDFA: call 0x3615fcc4 */ /* not lifted */ 1501 RECOMP_FLAGS_IN(); 1502 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1503 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1504 esp = esp + 4; /* 0x3614BDFF: add esp, 4 */ 1505 _flag_k = FK_ADD; 1506 L_3614BE02: 1507 ecx = MEM32(ebp + (-0x10)); /* 0x3614BE02: mov ecx, dword ptr [ebp - 0x10] */ 1508 edx = MEM32(ecx); /* 0x3614BE05: mov edx, dword ptr [ecx] */ 1509 PUSH32(esp, edi); /* 0x3614BE07: push edi */ 1510 MEM32(ebp + (-0x1C)) = esi; /* 0x3614BE08: mov dword ptr [ebp - 0x1c], esi */ 1511 MEM32(ebp + (-0x18)) = esi; /* 0x3614BE0B: mov dword ptr [ebp - 0x18], esi */ 1512 MEM32(ebp + (-0x14)) = esi; /* 0x3614BE0E: mov dword ptr [ebp - 0x14], esi */ 1513 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3614BE11: call dword ptr [edx + 4] */ 1514 RECOMP_FLAGS_IN(); 1515 ecx = MEM32(ebp + (-0xC)); /* 0x3614BE14: mov ecx, dword ptr [ebp - 0xc] */ 1516 edi = POP32_VAL(esp); /* 0x3614BE17: pop edi */ 1517 esi = POP32_VAL(esp); /* 0x3614BE18: pop esi */ 1518 ebx = POP32_VAL(esp); /* 0x3614BE19: pop ebx */ 1519 MEM32(FS_BASE + (0)) = ecx; /* 0x3614BE1A: mov dword ptr fs:[0], ecx */ 1520 esp = ebp; /* 0x3614BE21: mov esp, ebp */ 1521 ebp = POP32_VAL(esp); /* 0x3614BE23: pop ebp */ 1522 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614BE24: ret 4 */ 1523 RECOMP_REGS_OUT(); 1524 } 1525 1526 void sub_3614BE30(void) { 1527 int _fpu_cmp = 0; 1528 uint32_t _cf = 0; 1529 int _df = 1; 1530 uint32_t _flag_k = FK_NONE; 1531 uint32_t _flag_a = 0, _flag_b = 0; 1532 uint32_t _itail_tgt = 0; 1533 RECOMP_REGS_LOCALS 1534 RECOMP_ENTER(0x3614BE30u); 1535 1536 L_3614BE30: 1537 PUSH32(esp, ebp); /* 0x3614BE30: push ebp */ 1538 ebp = esp; /* 0x3614BE31: mov ebp, esp */ 1539 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614BE33: push -1 */ 1540 PUSH32(esp, 0x3616D20Bu); /* 0x3614BE35: push 0x3616d20b */ 1541 eax = MEM32(FS_BASE + (0)); /* 0x3614BE3A: mov eax, dword ptr fs:[0] */ 1542 PUSH32(esp, eax); /* 0x3614BE40: push eax */ 1543 MEM32(FS_BASE + (0)) = esp; /* 0x3614BE41: mov dword ptr fs:[0], esp */ 1544 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 1545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1546 esp = esp - 0x20u; /* 0x3614BE48: sub esp, 0x20 */ 1547 _flag_k = FK_CMP; 1548 PUSH32(esp, ebx); /* 0x3614BE4B: push ebx */ 1549 PUSH32(esp, esi); /* 0x3614BE4C: push esi */ 1550 esi = MEM32(ebp + 0x8); /* 0x3614BE4D: mov esi, dword ptr [ebp + 8] */ 1551 PUSH32(esp, edi); /* 0x3614BE50: push edi */ 1552 PUSH32(esp, esi); /* 0x3614BE51: push esi */ 1553 RECOMP_ICALL(MEM32(0x3616FB4C)); /* 0x3614BE52: call dword ptr [0x3616fb4c] */ 1554 RECOMP_FLAGS_IN(); 1555 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3614BE58: mov al, byte ptr [ebp + 0xb] */ 1556 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1557 ecx = ecx | 0xFFFFFFFFu; /* 0x3614BE5B: or ecx, 0xffffffff */ 1558 _cf = 0; 1559 _flag_k = FK_TEST; 1560 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1561 ebx = 0; /* 0x3614BE5E: xor ebx, ebx */ 1562 _cf = 0; 1563 _flag_k = FK_TEST; 1564 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x3614BE60: mov byte ptr [ebp - 0x1c], al */ 1565 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1566 eax = 0; /* 0x3614BE63: xor eax, eax */ 1567 _cf = 0; 1568 _flag_k = FK_TEST; 1569 edi = 0x362E78D4u; /* 0x3614BE65: mov edi, 0x362e78d4 */ 1570 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3614BE6A: repne scasb al, byte ptr es:[edi] */ 1571 ecx = ~ecx; /* 0x3614BE6C: not ecx */ 1572 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1573 ecx = ecx - 1; /* 0x3614BE6E: dec ecx */ 1574 _flag_k = FK_DEC; 1575 PUSH32(esp, ecx); /* 0x3614BE6F: push ecx */ 1576 PUSH32(esp, 0x362E78D4u); /* 0x3614BE70: push 0x362e78d4 */ 1577 ecx = ebp + (-0x1C); /* 0x3614BE75: lea ecx, [ebp - 0x1c] */ 1578 MEM32(ebp + (-0x18)) = ebx; /* 0x3614BE78: mov dword ptr [ebp - 0x18], ebx */ 1579 MEM32(ebp + (-0x14)) = ebx; /* 0x3614BE7B: mov dword ptr [ebp - 0x14], ebx */ 1580 MEM32(ebp + (-0x10)) = ebx; /* 0x3614BE7E: mov dword ptr [ebp - 0x10], ebx */ 1581 RECOMP_ICALL(MEM32(0x3616F014)); /* 0x3614BE81: call dword ptr [0x3616f014] */ 1582 RECOMP_FLAGS_IN(); 1583 edx = MEM32(esi); /* 0x3614BE87: mov edx, dword ptr [esi] */ 1584 PUSH32(esp, ebx); /* 0x3614BE89: push ebx */ 1585 PUSH32(esp, 2); /* 0x3614BE8A: push 2 */ 1586 eax = ebp + (-0x1C); /* 0x3614BE8C: lea eax, [ebp - 0x1c] */ 1587 PUSH32(esp, eax); /* 0x3614BE8F: push eax */ 1588 ecx = esi; /* 0x3614BE90: mov ecx, esi */ 1589 MEM32(ebp + (-0x4)) = ebx; /* 0x3614BE92: mov dword ptr [ebp - 4], ebx */ 1590 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3614BE95: call dword ptr [edx + 0x10] */ 1591 RECOMP_FLAGS_IN(); 1592 eax = MEM32(ebp + (-0x18)); /* 0x3614BE98: mov eax, dword ptr [ebp - 0x18] */ 1593 /* cmp eax, ebx */ /* 0x3614BE9B: cmp eax, ebx */ 1594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1596 _flag_k = FK_CMP; 1597 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614BE9D: mov dword ptr [ebp - 4], 0xffffffff */ 1598 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BEC2; /* 0x3614BEA4: je 0x3614bec2 */ 1599 L_3614BEA6: 1600 ecx = eax + (-0x1); /* 0x3614BEA6: lea ecx, [eax - 1] */ 1601 SET_LO8(eax, MEM8(ecx)); /* 0x3614BEA9: mov al, byte ptr [ecx] */ 1602 /* test LO8(eax), LO8(eax) */ /* 0x3614BEAB: test al, al */ 1603 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1604 _cf = 0; 1605 _flag_k = FK_NARROW(FK_TEST, 24); 1606 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BEB9; /* 0x3614BEAD: je 0x3614beb9 */ 1607 L_3614BEAF: 1608 /* cmp LO8(eax), 0xFFu */ /* 0x3614BEAF: cmp al, 0xff */ 1609 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1611 _flag_k = FK_NARROW(FK_CMP, 24); 1612 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BEB9; /* 0x3614BEB1: je 0x3614beb9 */ 1613 L_3614BEB3: 1614 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1615 SET_LO8(eax, LO8(eax) - 1); /* 0x3614BEB3: dec al */ 1616 _flag_k = FK_NARROW(FK_DEC, 24); 1617 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3614BEB5: mov byte ptr [ecx], al */ 1618 goto L_3614BEC2; /* 0x3614BEB7: jmp 0x3614bec2 */ 1619 L_3614BEB9: 1620 PUSH32(esp, ecx); /* 0x3614BEB9: push ecx */ 1621 RECOMP_ICALL(0x3615FCC4u); /* 0x3614BEBA: call 0x3615fcc4 */ /* not lifted */ 1622 RECOMP_FLAGS_IN(); 1623 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1624 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1625 esp = esp + 4; /* 0x3614BEBF: add esp, 4 */ 1626 _flag_k = FK_ADD; 1627 L_3614BEC2: 1628 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3614BEC2: mov cl, byte ptr [ebp + 0xb] */ 1629 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(ecx)); /* 0x3614BEC5: mov byte ptr [ebp - 0x1c], cl */ 1630 PUSH32(esp, ebx); /* 0x3614BEC8: push ebx */ 1631 ecx = ebp + (-0x1C); /* 0x3614BEC9: lea ecx, [ebp - 0x1c] */ 1632 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614BECC: call dword ptr [0x3616f100] */ 1633 RECOMP_FLAGS_IN(); 1634 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1635 ecx = ecx | 0xFFFFFFFFu; /* 0x3614BED2: or ecx, 0xffffffff */ 1636 _cf = 0; 1637 _flag_k = FK_TEST; 1638 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1639 eax = 0; /* 0x3614BED5: xor eax, eax */ 1640 _cf = 0; 1641 _flag_k = FK_TEST; 1642 edi = 0x362E78C4u; /* 0x3614BED7: mov edi, 0x362e78c4 */ 1643 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3614BEDC: repne scasb al, byte ptr es:[edi] */ 1644 ecx = ~ecx; /* 0x3614BEDE: not ecx */ 1645 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1646 ecx = ecx - 1; /* 0x3614BEE0: dec ecx */ 1647 _flag_k = FK_DEC; 1648 ebx = ecx; /* 0x3614BEE1: mov ebx, ecx */ 1649 PUSH32(esp, 1); /* 0x3614BEE3: push 1 */ 1650 PUSH32(esp, ebx); /* 0x3614BEE5: push ebx */ 1651 ecx = ebp + (-0x1C); /* 0x3614BEE6: lea ecx, [ebp - 0x1c] */ 1652 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614BEE9: call dword ptr [0x3616f00c] */ 1653 RECOMP_FLAGS_IN(); 1654 /* test LO8(eax), LO8(eax) */ /* 0x3614BEEF: test al, al */ 1655 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1656 _cf = 0; 1657 _flag_k = FK_NARROW(FK_TEST, 24); 1658 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BF18; /* 0x3614BEF1: je 0x3614bf18 */ 1659 L_3614BEF3: 1660 edi = MEM32(ebp + (-0x18)); /* 0x3614BEF3: mov edi, dword ptr [ebp - 0x18] */ 1661 ecx = ebx; /* 0x3614BEF6: mov ecx, ebx */ 1662 edx = ecx; /* 0x3614BEF8: mov edx, ecx */ 1663 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3614BEFA: shr ecx, 2 */ 1664 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1665 ecx = ecx >> 2u; /* 0x3614BEFA: shr ecx, 2 */ 1666 esi = 0x362E78C4u; /* 0x3614BEFD: mov esi, 0x362e78c4 */ 1667 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614BF02: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1668 ecx = edx; /* 0x3614BF04: mov ecx, edx */ 1669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1670 ecx = ecx & 3; /* 0x3614BF06: and ecx, 3 */ 1671 _cf = 0; 1672 _flag_k = FK_TEST; 1673 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3614BF09: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1674 eax = MEM32(ebp + (-0x18)); /* 0x3614BF0B: mov eax, dword ptr [ebp - 0x18] */ 1675 esi = MEM32(ebp + 0x8); /* 0x3614BF0E: mov esi, dword ptr [ebp + 8] */ 1676 MEM32(ebp + (-0x14)) = ebx; /* 0x3614BF11: mov dword ptr [ebp - 0x14], ebx */ 1677 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3614BF14: mov byte ptr [eax + ebx], 0 */ 1678 L_3614BF18: 1679 edx = MEM32(esi); /* 0x3614BF18: mov edx, dword ptr [esi] */ 1680 PUSH32(esp, 0); /* 0x3614BF1A: push 0 */ 1681 PUSH32(esp, 2); /* 0x3614BF1C: push 2 */ 1682 eax = ebp + (-0x1C); /* 0x3614BF1E: lea eax, [ebp - 0x1c] */ 1683 PUSH32(esp, eax); /* 0x3614BF21: push eax */ 1684 ecx = esi; /* 0x3614BF22: mov ecx, esi */ 1685 MEM32(ebp + (-0x4)) = 1; /* 0x3614BF24: mov dword ptr [ebp - 4], 1 */ 1686 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3614BF2B: call dword ptr [edx + 0x10] */ 1687 RECOMP_FLAGS_IN(); 1688 eax = MEM32(ebp + (-0x18)); /* 0x3614BF2E: mov eax, dword ptr [ebp - 0x18] */ 1689 /* test eax, eax */ /* 0x3614BF31: test eax, eax */ 1690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1691 _cf = 0; 1692 _flag_k = FK_TEST; 1693 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614BF33: mov dword ptr [ebp - 4], 0xffffffff */ 1694 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BF58; /* 0x3614BF3A: je 0x3614bf58 */ 1695 L_3614BF3C: 1696 ecx = eax + (-0x1); /* 0x3614BF3C: lea ecx, [eax - 1] */ 1697 SET_LO8(eax, MEM8(ecx)); /* 0x3614BF3F: mov al, byte ptr [ecx] */ 1698 /* test LO8(eax), LO8(eax) */ /* 0x3614BF41: test al, al */ 1699 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1700 _cf = 0; 1701 _flag_k = FK_NARROW(FK_TEST, 24); 1702 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BF4F; /* 0x3614BF43: je 0x3614bf4f */ 1703 L_3614BF45: 1704 /* cmp LO8(eax), 0xFFu */ /* 0x3614BF45: cmp al, 0xff */ 1705 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1707 _flag_k = FK_NARROW(FK_CMP, 24); 1708 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614BF4F; /* 0x3614BF47: je 0x3614bf4f */ 1709 L_3614BF49: 1710 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1711 SET_LO8(eax, LO8(eax) - 1); /* 0x3614BF49: dec al */ 1712 _flag_k = FK_NARROW(FK_DEC, 24); 1713 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3614BF4B: mov byte ptr [ecx], al */ 1714 goto L_3614BF58; /* 0x3614BF4D: jmp 0x3614bf58 */ 1715 L_3614BF4F: 1716 PUSH32(esp, ecx); /* 0x3614BF4F: push ecx */ 1717 RECOMP_ICALL(0x3615FCC4u); /* 0x3614BF50: call 0x3615fcc4 */ /* not lifted */ 1718 RECOMP_FLAGS_IN(); 1719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1720 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1721 esp = esp + 4; /* 0x3614BF55: add esp, 4 */ 1722 _flag_k = FK_ADD; 1723 L_3614BF58: 1724 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3614BF58: mov cl, byte ptr [ebp + 0xb] */ 1725 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x3614BF5B: mov byte ptr [ebp - 0x2c], cl */ 1726 PUSH32(esp, 0); /* 0x3614BF5E: push 0 */ 1727 ecx = ebp + (-0x2C); /* 0x3614BF60: lea ecx, [ebp - 0x2c] */ 1728 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614BF63: call dword ptr [0x3616f100] */ 1729 RECOMP_FLAGS_IN(); 1730 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1731 ecx = ecx | 0xFFFFFFFFu; /* 0x3614BF69: or ecx, 0xffffffff */ 1732 _cf = 0; 1733 _flag_k = FK_TEST; 1734 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1735 eax = 0; /* 0x3614BF6C: xor eax, eax */ 1736 _cf = 0; 1737 _flag_k = FK_TEST; 1738 edi = 0x362E78B8u; /* 0x3614BF6E: mov edi, 0x362e78b8 */ 1739 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3614BF73: repne scasb al, byte ptr es:[edi] */ 1740 ecx = ~ecx; /* 0x3614BF75: not ecx */ 1741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1742 ecx = ecx - 1; /* 0x3614BF77: dec ecx */ 1743 _flag_k = FK_DEC; 1744 ebx = ecx; /* 0x3614BF78: mov ebx, ecx */ 1745 PUSH32(esp, 1); /* 0x3614BF7A: push 1 */ 1746 PUSH32(esp, ebx); /* 0x3614BF7C: push ebx */ 1747 ecx = ebp + (-0x2C); /* 0x3614BF7D: lea ecx, [ebp - 0x2c] */ 1748 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3614BF80: call dword ptr [0x3616f00c] */ 1749 RECOMP_FLAGS_IN(); 1750 /* test LO8(eax), LO8(eax) */ /* 0x3614BF86: test al, al */ 1751 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1752 _cf = 0; 1753 _flag_k = FK_NARROW(FK_TEST, 24); 1754 if (TEST_Z(_flag_a, _flag_b)) goto L_3614BFAF; /* 0x3614BF88: je 0x3614bfaf */ 1755 L_3614BF8A: 1756 edi = MEM32(ebp + (-0x28)); /* 0x3614BF8A: mov edi, dword ptr [ebp - 0x28] */ 1757 ecx = ebx; /* 0x3614BF8D: mov ecx, ebx */ 1758 edx = ecx; /* 0x3614BF8F: mov edx, ecx */ 1759 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3614BF91: shr ecx, 2 */ 1760 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1761 ecx = ecx >> 2u; /* 0x3614BF91: shr ecx, 2 */ 1762 esi = 0x362E78B8u; /* 0x3614BF94: mov esi, 0x362e78b8 */ 1763 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614BF99: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1764 ecx = edx; /* 0x3614BF9B: mov ecx, edx */ 1765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1766 ecx = ecx & 3; /* 0x3614BF9D: and ecx, 3 */ 1767 _cf = 0; 1768 _flag_k = FK_TEST; 1769 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3614BFA0: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 1770 eax = MEM32(ebp + (-0x28)); /* 0x3614BFA2: mov eax, dword ptr [ebp - 0x28] */ 1771 esi = MEM32(ebp + 0x8); /* 0x3614BFA5: mov esi, dword ptr [ebp + 8] */ 1772 MEM32(ebp + (-0x24)) = ebx; /* 0x3614BFA8: mov dword ptr [ebp - 0x24], ebx */ 1773 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3614BFAB: mov byte ptr [eax + ebx], 0 */ 1774 L_3614BFAF: 1775 edx = MEM32(esi); /* 0x3614BFAF: mov edx, dword ptr [esi] */ 1776 eax = ebp + (-0x2C); /* 0x3614BFB1: lea eax, [ebp - 0x2c] */ 1777 PUSH32(esp, eax); /* 0x3614BFB4: push eax */ 1778 ecx = esi; /* 0x3614BFB5: mov ecx, esi */ 1779 MEM32(ebp + (-0x4)) = 2; /* 0x3614BFB7: mov dword ptr [ebp - 4], 2 */ 1780 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3614BFBE: call dword ptr [edx + 0x20] */ 1781 RECOMP_FLAGS_IN(); 1782 PUSH32(esp, 1); /* 0x3614BFC1: push 1 */ 1783 ecx = ebp + (-0x2C); /* 0x3614BFC3: lea ecx, [ebp - 0x2c] */ 1784 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614BFC6: mov dword ptr [ebp - 4], 0xffffffff */ 1785 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3614BFCD: call dword ptr [0x3616f100] */ 1786 RECOMP_FLAGS_IN(); 1787 ecx = MEM32(ebp + (-0xC)); /* 0x3614BFD3: mov ecx, dword ptr [ebp - 0xc] */ 1788 edi = POP32_VAL(esp); /* 0x3614BFD6: pop edi */ 1789 esi = POP32_VAL(esp); /* 0x3614BFD7: pop esi */ 1790 ebx = POP32_VAL(esp); /* 0x3614BFD8: pop ebx */ 1791 MEM32(FS_BASE + (0)) = ecx; /* 0x3614BFD9: mov dword ptr fs:[0], ecx */ 1792 esp = ebp; /* 0x3614BFE0: mov esp, ebp */ 1793 ebp = POP32_VAL(esp); /* 0x3614BFE2: pop ebp */ 1794 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614BFE3: ret 4 */ 1795 RECOMP_REGS_OUT(); 1796 } 1797 1798 void sub_3614BFF0(void) { 1799 int _fpu_cmp = 0; 1800 uint32_t _cf = 0; 1801 int _df = 1; 1802 uint32_t _flag_k = FK_NONE; 1803 uint32_t _flag_a = 0, _flag_b = 0; 1804 uint32_t _itail_tgt = 0; 1805 RECOMP_REGS_LOCALS 1806 RECOMP_ENTER(0x3614BFF0u); 1807 1808 L_3614BFF0: 1809 PUSH32(esp, ebp); /* 0x3614BFF0: push ebp */ 1810 ebp = esp; /* 0x3614BFF1: mov ebp, esp */ 1811 PUSH32(esp, esi); /* 0x3614BFF3: push esi */ 1812 PUSH32(esp, edi); /* 0x3614BFF4: push edi */ 1813 edi = MEM32(ebp + 0x8); /* 0x3614BFF5: mov edi, dword ptr [ebp + 8] */ 1814 esi = ecx; /* 0x3614BFF8: mov esi, ecx */ 1815 PUSH32(esp, edi); /* 0x3614BFFA: push edi */ 1816 RECOMP_ICALL(MEM32(0x3616FB50)); /* 0x3614BFFB: call dword ptr [0x3616fb50] */ 1817 RECOMP_FLAGS_IN(); 1818 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 1819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1820 esi = esi + 0x18u; /* 0x3614C001: add esi, 0x18 */ 1821 _flag_k = FK_ADD; 1822 PUSH32(esp, esi); /* 0x3614C004: push esi */ 1823 PUSH32(esp, edi); /* 0x3614C005: push edi */ 1824 RECOMP_ICALL(0x3615F994u); /* 0x3614C006: call 0x3615f994 */ /* not lifted */ 1825 RECOMP_FLAGS_IN(); 1826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1828 esp = esp + 8; /* 0x3614C00B: add esp, 8 */ 1829 _flag_k = FK_ADD; 1830 edi = POP32_VAL(esp); /* 0x3614C00E: pop edi */ 1831 esi = POP32_VAL(esp); /* 0x3614C00F: pop esi */ 1832 ebp = POP32_VAL(esp); /* 0x3614C010: pop ebp */ 1833 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C011: ret 4 */ 1834 RECOMP_REGS_OUT(); 1835 } 1836 1837 void sub_3614C020(void) { 1838 int _fpu_cmp = 0; 1839 uint32_t _cf = 0; 1840 int _df = 1; 1841 uint32_t _flag_k = FK_NONE; 1842 uint32_t _flag_a = 0, _flag_b = 0; 1843 uint32_t _itail_tgt = 0; 1844 RECOMP_REGS_LOCALS 1845 RECOMP_ENTER(0x3614C020u); 1846 1847 L_3614C020: 1848 PUSH32(esp, ebp); /* 0x3614C020: push ebp */ 1849 ebp = esp; /* 0x3614C021: mov ebp, esp */ 1850 PUSH32(esp, esi); /* 0x3614C023: push esi */ 1851 PUSH32(esp, edi); /* 0x3614C024: push edi */ 1852 edi = MEM32(ebp + 0x8); /* 0x3614C025: mov edi, dword ptr [ebp + 8] */ 1853 esi = ecx; /* 0x3614C028: mov esi, ecx */ 1854 PUSH32(esp, edi); /* 0x3614C02A: push edi */ 1855 RECOMP_ICALL(MEM32(0x3616FB58)); /* 0x3614C02B: call dword ptr [0x3616fb58] */ 1856 RECOMP_FLAGS_IN(); 1857 /* test LO8(eax), LO8(eax) */ /* 0x3614C031: test al, al */ 1858 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1859 _cf = 0; 1860 _flag_k = FK_NARROW(FK_TEST, 24); 1861 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614C03B; /* 0x3614C033: jne 0x3614c03b */ 1862 L_3614C035: 1863 edi = POP32_VAL(esp); /* 0x3614C035: pop edi */ 1864 esi = POP32_VAL(esp); /* 0x3614C036: pop esi */ 1865 ebp = POP32_VAL(esp); /* 0x3614C037: pop ebp */ 1866 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C038: ret 4 */ 1867 L_3614C03B: 1868 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 1869 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1870 esi = esi + 0x18u; /* 0x3614C03B: add esi, 0x18 */ 1871 _flag_k = FK_ADD; 1872 PUSH32(esp, esi); /* 0x3614C03E: push esi */ 1873 PUSH32(esp, edi); /* 0x3614C03F: push edi */ 1874 RECOMP_ICALL(0x3615F99Au); /* 0x3614C040: call 0x3615f99a */ /* not lifted */ 1875 RECOMP_FLAGS_IN(); 1876 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1877 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1878 esp = esp + 8; /* 0x3614C045: add esp, 8 */ 1879 _flag_k = FK_ADD; 1880 edi = POP32_VAL(esp); /* 0x3614C048: pop edi */ 1881 SET_LO8(eax, 1); /* 0x3614C049: mov al, 1 */ 1882 esi = POP32_VAL(esp); /* 0x3614C04B: pop esi */ 1883 ebp = POP32_VAL(esp); /* 0x3614C04C: pop ebp */ 1884 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C04D: ret 4 */ 1885 RECOMP_REGS_OUT(); 1886 } 1887 1888 void sub_3614C050(void) { 1889 int _fpu_cmp = 0; 1890 uint32_t _cf = 0; 1891 int _df = 1; 1892 uint32_t _flag_k = FK_NONE; 1893 uint32_t _flag_a = 0, _flag_b = 0; 1894 uint32_t _itail_tgt = 0; 1895 RECOMP_REGS_LOCALS 1896 RECOMP_ENTER(0x3614C050u); 1897 1898 L_3614C050: 1899 PUSH32(esp, ebp); /* 0x3614C050: push ebp */ 1900 ebp = esp; /* 0x3614C051: mov ebp, esp */ 1901 eax = MEM32(ebp + 0x8); /* 0x3614C053: mov eax, dword ptr [ebp + 8] */ 1902 PUSH32(esp, eax); /* 0x3614C056: push eax */ 1903 RECOMP_ICALL(MEM32(0x3616FB6C)); /* 0x3614C057: call dword ptr [0x3616fb6c] */ 1904 RECOMP_FLAGS_IN(); 1905 ebp = POP32_VAL(esp); /* 0x3614C05D: pop ebp */ 1906 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C05E: ret 4 */ 1907 RECOMP_REGS_OUT(); 1908 } 1909 1910 void sub_3614C070(void) { 1911 int _fpu_cmp = 0; 1912 uint32_t _cf = 0; 1913 int _df = 1; 1914 uint32_t _flag_k = FK_NONE; 1915 uint32_t _flag_a = 0, _flag_b = 0; 1916 uint32_t _itail_tgt = 0; 1917 RECOMP_REGS_LOCALS 1918 RECOMP_ENTER(0x3614C070u); 1919 1920 L_3614C070: 1921 PUSH32(esp, ebp); /* 0x3614C070: push ebp */ 1922 ebp = esp; /* 0x3614C071: mov ebp, esp */ 1923 eax = MEM32(ebp + 0x8); /* 0x3614C073: mov eax, dword ptr [ebp + 8] */ 1924 PUSH32(esp, eax); /* 0x3614C076: push eax */ 1925 RECOMP_ICALL(MEM32(0x3616FB38)); /* 0x3614C077: call dword ptr [0x3616fb38] */ 1926 RECOMP_FLAGS_IN(); 1927 ebp = POP32_VAL(esp); /* 0x3614C07D: pop ebp */ 1928 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C07E: ret 4 */ 1929 RECOMP_REGS_OUT(); 1930 } 1931 1932 void sub_3614C090(void) { 1933 int _fpu_cmp = 0; 1934 uint32_t _cf = 0; 1935 int _df = 1; 1936 uint32_t _flag_k = FK_NONE; 1937 uint32_t _flag_a = 0, _flag_b = 0; 1938 uint32_t _itail_tgt = 0; 1939 RECOMP_REGS_LOCALS 1940 RECOMP_ENTER(0x3614C090u); 1941 1942 L_3614C090: 1943 PUSH32(esp, ebp); /* 0x3614C090: push ebp */ 1944 ebp = esp; /* 0x3614C091: mov ebp, esp */ 1945 edx = MEM32(ebp + 0xC); /* 0x3614C093: mov edx, dword ptr [ebp + 0xc] */ 1946 eax = ecx; /* 0x3614C096: mov eax, ecx */ 1947 ecx = MEM32(ebp + 0x8); /* 0x3614C098: mov ecx, dword ptr [ebp + 8] */ 1948 MEM32(eax + 0x4) = ecx; /* 0x3614C09B: mov dword ptr [eax + 4], ecx */ 1949 MEM32(eax + 0x8) = edx; /* 0x3614C09E: mov dword ptr [eax + 8], edx */ 1950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1951 ecx = 0; /* 0x3614C0A1: xor ecx, ecx */ 1952 _cf = 0; 1953 _flag_k = FK_TEST; 1954 edx = 1; /* 0x3614C0A3: mov edx, 1 */ 1955 MEM32(eax + 0xC) = edx; /* 0x3614C0A8: mov dword ptr [eax + 0xc], edx */ 1956 MEM32(eax + 0x10) = edx; /* 0x3614C0AB: mov dword ptr [eax + 0x10], edx */ 1957 MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3614C0AE: mov byte ptr [eax + 0x14], cl */ 1958 MEM8(eax + 0x15) = (uint8_t)(LO8(edx)); /* 0x3614C0B1: mov byte ptr [eax + 0x15], dl */ 1959 MEM16(eax + 0x18) = (uint16_t)(LO16(ecx)); /* 0x3614C0B4: mov word ptr [eax + 0x18], cx */ 1960 MEM16(eax + 0x1A) = (uint16_t)(LO16(ecx)); /* 0x3614C0B8: mov word ptr [eax + 0x1a], cx */ 1961 MEM32(eax + 0x1C) = ecx; /* 0x3614C0BC: mov dword ptr [eax + 0x1c], ecx */ 1962 MEM32(eax + 0x20) = ecx; /* 0x3614C0BF: mov dword ptr [eax + 0x20], ecx */ 1963 MEM32(eax + 0x24) = ecx; /* 0x3614C0C2: mov dword ptr [eax + 0x24], ecx */ 1964 MEM32(eax) = 0x361788B0u; /* 0x3614C0C5: mov dword ptr [eax], 0x361788b0 */ 1965 ebp = POP32_VAL(esp); /* 0x3614C0CB: pop ebp */ 1966 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614C0CC: ret 8 */ 1967 RECOMP_REGS_OUT(); 1968 } 1969 1970 void sub_3614C0D0(void) { 1971 int _fpu_cmp = 0; 1972 uint32_t _cf = 0; 1973 int _df = 1; 1974 uint32_t _flag_k = FK_NONE; 1975 uint32_t _flag_a = 0, _flag_b = 0; 1976 uint32_t _itail_tgt = 0; 1977 RECOMP_REGS_LOCALS 1978 RECOMP_ENTER(0x3614C0D0u); 1979 1980 L_3614C0D0: 1981 PUSH32(esp, ebp); /* 0x3614C0D0: push ebp */ 1982 ebp = esp; /* 0x3614C0D1: mov ebp, esp */ 1983 PUSH32(esp, esi); /* 0x3614C0D3: push esi */ 1984 esi = ecx; /* 0x3614C0D4: mov esi, ecx */ 1985 RECOMP_ICALL(0x3614C100u); /* 0x3614C0D6: call 0x3614c100 */ /* not lifted */ 1986 RECOMP_FLAGS_IN(); 1987 /* test MEM8(ebp + 0x8), 1 */ /* 0x3614C0DB: test byte ptr [ebp + 8], 1 */ 1988 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1989 _cf = 0; 1990 _flag_k = FK_NARROW(FK_TEST, 24); 1991 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C0EA; /* 0x3614C0DF: je 0x3614c0ea */ 1992 L_3614C0E1: 1993 PUSH32(esp, esi); /* 0x3614C0E1: push esi */ 1994 RECOMP_ICALL(0x3615FCC4u); /* 0x3614C0E2: call 0x3615fcc4 */ /* not lifted */ 1995 RECOMP_FLAGS_IN(); 1996 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1997 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1998 esp = esp + 4; /* 0x3614C0E7: add esp, 4 */ 1999 _flag_k = FK_ADD; 2000 L_3614C0EA: 2001 eax = esi; /* 0x3614C0EA: mov eax, esi */ 2002 esi = POP32_VAL(esp); /* 0x3614C0EC: pop esi */ 2003 ebp = POP32_VAL(esp); /* 0x3614C0ED: pop ebp */ 2004 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C0EE: ret 4 */ 2005 RECOMP_REGS_OUT(); 2006 } 2007 2008 void sub_3614C100(void) { 2009 int _fpu_cmp = 0; 2010 uint32_t _cf = 0; 2011 int _df = 1; 2012 uint32_t _flag_k = FK_NONE; 2013 uint32_t _flag_a = 0, _flag_b = 0; 2014 uint32_t _itail_tgt = 0; 2015 RECOMP_REGS_LOCALS 2016 RECOMP_ENTER(0x3614C100u); 2017 2018 L_3614C100: 2019 PUSH32(esp, esi); /* 0x3614C100: push esi */ 2020 esi = ecx; /* 0x3614C101: mov esi, ecx */ 2021 eax = MEM32(esi + 0x24); /* 0x3614C103: mov eax, dword ptr [esi + 0x24] */ 2022 PUSH32(esp, eax); /* 0x3614C106: push eax */ 2023 MEM32(esi) = 0x361788B0u; /* 0x3614C107: mov dword ptr [esi], 0x361788b0 */ 2024 RECOMP_ICALL(0x3615FCC4u); /* 0x3614C10D: call 0x3615fcc4 */ /* not lifted */ 2025 RECOMP_FLAGS_IN(); 2026 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2028 esp = esp + 4; /* 0x3614C112: add esp, 4 */ 2029 _flag_k = FK_ADD; 2030 ecx = esi; /* 0x3614C115: mov ecx, esi */ 2031 MEM32(esi + 0x24) = 0; /* 0x3614C117: mov dword ptr [esi + 0x24], 0 */ 2032 RECOMP_ICALL(MEM32(0x3616FB48)); /* 0x3614C11E: call dword ptr [0x3616fb48] */ 2033 RECOMP_FLAGS_IN(); 2034 esi = POP32_VAL(esp); /* 0x3614C124: pop esi */ 2035 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C125: ret */ 2036 RECOMP_REGS_OUT(); 2037 } 2038 2039 void sub_3614C130(void) { 2040 int _fpu_cmp = 0; 2041 uint32_t _cf = 0; 2042 int _df = 1; 2043 uint32_t _flag_k = FK_NONE; 2044 uint32_t _flag_a = 0, _flag_b = 0; 2045 uint32_t _itail_tgt = 0; 2046 RECOMP_REGS_LOCALS 2047 RECOMP_ENTER(0x3614C130u); 2048 2049 L_3614C130: 2050 PUSH32(esp, ebp); /* 0x3614C130: push ebp */ 2051 ebp = esp; /* 0x3614C131: mov ebp, esp */ 2052 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 2053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2054 esp = esp - 0x48u; /* 0x3614C133: sub esp, 0x48 */ 2055 _flag_k = FK_CMP; 2056 PUSH32(esp, ebx); /* 0x3614C136: push ebx */ 2057 PUSH32(esp, esi); /* 0x3614C137: push esi */ 2058 PUSH32(esp, edi); /* 0x3614C138: push edi */ 2059 edi = MEM32(ebp + 0x8); /* 0x3614C139: mov edi, dword ptr [ebp + 8] */ 2060 esi = ecx; /* 0x3614C13C: mov esi, ecx */ 2061 PUSH32(esp, edi); /* 0x3614C13E: push edi */ 2062 RECOMP_ICALL(MEM32(0x3616FB38)); /* 0x3614C13F: call dword ptr [0x3616fb38] */ 2063 RECOMP_FLAGS_IN(); 2064 /* test LO8(eax), LO8(eax) */ /* 0x3614C145: test al, al */ 2065 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2066 _cf = 0; 2067 _flag_k = FK_NARROW(FK_TEST, 24); 2068 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C365; /* 0x3614C147: je 0x3614c365 */ 2069 L_3614C14D: 2070 ebx = esi + 0x18; /* 0x3614C14D: lea ebx, [esi + 0x18] */ 2071 ecx = edi; /* 0x3614C150: mov ecx, edi */ 2072 edi = MEM32(0x3616FAC8); /* 0x3614C152: mov edi, dword ptr [0x3616fac8] */ 2073 PUSH32(esp, ebx); /* 0x3614C158: push ebx */ 2074 RECOMP_ICALL(edi); /* 0x3614C159: call edi */ 2075 RECOMP_FLAGS_IN(); 2076 ecx = esi + 0x1A; /* 0x3614C15B: lea ecx, [esi + 0x1a] */ 2077 PUSH32(esp, ecx); /* 0x3614C15E: push ecx */ 2078 ecx = eax; /* 0x3614C15F: mov ecx, eax */ 2079 RECOMP_ICALL(edi); /* 0x3614C161: call edi */ 2080 RECOMP_FLAGS_IN(); 2081 ecx = ebp + (-0x8); /* 0x3614C163: lea ecx, [ebp - 8] */ 2082 PUSH32(esp, ecx); /* 0x3614C166: push ecx */ 2083 ecx = eax; /* 0x3614C167: mov ecx, eax */ 2084 RECOMP_ICALL(edi); /* 0x3614C169: call edi */ 2085 RECOMP_FLAGS_IN(); 2086 edx = ebp + (-0xC); /* 0x3614C16B: lea edx, [ebp - 0xc] */ 2087 PUSH32(esp, edx); /* 0x3614C16E: push edx */ 2088 ecx = eax; /* 0x3614C16F: mov ecx, eax */ 2089 RECOMP_ICALL(edi); /* 0x3614C171: call edi */ 2090 RECOMP_FLAGS_IN(); 2091 eax = MEM32(ebp + (-0x8)); /* 0x3614C173: mov eax, dword ptr [ebp - 8] */ 2092 ecx = MEM32(ebp + (-0xC)); /* 0x3614C176: mov ecx, dword ptr [ebp - 0xc] */ 2093 SET_LO16(edx, MEM16(ebx)); /* 0x3614C179: mov dx, word ptr [ebx] */ 2094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 2095 eax = eax & 0xFFFFu; /* 0x3614C17C: and eax, 0xffff */ 2096 _cf = 0; 2097 _flag_k = FK_TEST; 2098 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 2099 ecx = ecx & 0xFFFFu; /* 0x3614C181: and ecx, 0xffff */ 2100 _cf = 0; 2101 _flag_k = FK_TEST; 2102 /* cmp LO16(edx), 1 */ /* 0x3614C187: cmp dx, 1 */ 2103 _flag_a = (uint32_t)(LO16(edx)) << 16; _flag_b = (uint32_t)(1) << 16; 2104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2105 _flag_k = FK_NARROW(FK_CMP, 16); 2106 MEM32(esi + 0x1C) = eax; /* 0x3614C18B: mov dword ptr [esi + 0x1c], eax */ 2107 MEM32(esi + 0x20) = ecx; /* 0x3614C18E: mov dword ptr [esi + 0x20], ecx */ 2108 if (CMP_NE(_flag_a, _flag_b)) goto L_3614C33F; /* 0x3614C191: jne 0x3614c33f */ 2109 L_3614C197: 2110 /* test eax, eax */ /* 0x3614C197: test eax, eax */ 2111 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2112 _cf = 0; 2113 _flag_k = FK_TEST; 2114 if (TEST_LE(_flag_a, _flag_b)) goto L_3614C33F; /* 0x3614C199: jle 0x3614c33f */ 2115 L_3614C19F: 2116 /* cmp eax, 0x800u */ /* 0x3614C19F: cmp eax, 0x800 */ 2117 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x800u); 2118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2119 _flag_k = FK_CMP; 2120 if (CMP_G(_flag_a, _flag_b)) goto L_3614C33F; /* 0x3614C1A4: jg 0x3614c33f */ 2121 L_3614C1AA: 2122 /* test ecx, ecx */ /* 0x3614C1AA: test ecx, ecx */ 2123 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2124 _cf = 0; 2125 _flag_k = FK_TEST; 2126 if (TEST_LE(_flag_a, _flag_b)) goto L_3614C33F; /* 0x3614C1AC: jle 0x3614c33f */ 2127 L_3614C1B2: 2128 /* cmp ecx, 0x800u */ /* 0x3614C1B2: cmp ecx, 0x800 */ 2129 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x800u); 2130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2131 _flag_k = FK_CMP; 2132 if (CMP_G(_flag_a, _flag_b)) goto L_3614C33F; /* 0x3614C1B8: jg 0x3614c33f */ 2133 L_3614C1BE: 2134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 2135 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2136 eax = eax + 7; /* 0x3614C1BE: add eax, 7 */ 2137 _flag_k = FK_ADD; 2138 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3614C1C1: cdq */ 2139 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(7); 2140 edx = edx & 7; /* 0x3614C1C2: and edx, 7 */ 2141 _cf = 0; 2142 _flag_k = FK_TEST; 2143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2144 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2145 eax = eax + edx; /* 0x3614C1C5: add eax, edx */ 2146 _flag_k = FK_ADD; 2147 ebx = eax; /* 0x3614C1C7: mov ebx, eax */ 2148 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x3614C1C9: sar ebx, 3 */ 2149 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2150 ebx = (uint32_t)((int32_t)ebx >> 3u); 2151 ebx = (uint32_t)((int32_t)ebx * (int32_t)ecx); /* 0x3614C1CC: imul ebx, ecx */ 2152 PUSH32(esp, ebx); /* 0x3614C1CF: push ebx */ 2153 RECOMP_ICALL(0x3615FD6Au); /* 0x3614C1D0: call 0x3615fd6a */ /* not lifted */ 2154 RECOMP_FLAGS_IN(); 2155 SET_LO8(ecx, MEM8(esi + 0x1A)); /* 0x3614C1D5: mov cl, byte ptr [esi + 0x1a] */ 2156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2158 esp = esp + 4; /* 0x3614C1D8: add esp, 4 */ 2159 _flag_k = FK_ADD; 2160 /* test LO8(ecx), 1 */ /* 0x3614C1DB: test cl, 1 */ 2161 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 2162 _cf = 0; 2163 _flag_k = FK_NARROW(FK_TEST, 24); 2164 MEM32(esi + 0x24) = eax; /* 0x3614C1DE: mov dword ptr [esi + 0x24], eax */ 2165 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C2FF; /* 0x3614C1E1: je 0x3614c2ff */ 2166 L_3614C1E7: 2167 edi = MEM32(ebp + 0x8); /* 0x3614C1E7: mov edi, dword ptr [ebp + 8] */ 2168 ecx = edi; /* 0x3614C1EA: mov ecx, edi */ 2169 RECOMP_ICALL(MEM32(0x3616FAC0)); /* 0x3614C1EC: call dword ptr [0x3616fac0] */ 2170 RECOMP_FLAGS_IN(); 2171 edx = eax; /* 0x3614C1F2: mov edx, eax */ 2172 ecx = edi; /* 0x3614C1F4: mov ecx, edi */ 2173 MEM32(ebp + (-0x10)) = edx; /* 0x3614C1F6: mov dword ptr [ebp - 0x10], edx */ 2174 RECOMP_ICALL(MEM32(0x3616FAA4)); /* 0x3614C1F9: call dword ptr [0x3616faa4] */ 2175 RECOMP_FLAGS_IN(); 2176 edi = eax; /* 0x3614C1FF: mov edi, eax */ 2177 eax = MEM32(ebp + (-0x10)); /* 0x3614C201: mov eax, dword ptr [ebp - 0x10] */ 2178 ecx = ebp + (-0x4); /* 0x3614C204: lea ecx, [ebp - 4] */ 2179 PUSH32(esp, ecx); /* 0x3614C207: push ecx */ 2180 ecx = MEM32(ebp + 0x8); /* 0x3614C208: mov ecx, dword ptr [ebp + 8] */ 2181 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2183 edi = edi - eax; /* 0x3614C20B: sub edi, eax */ 2184 _flag_k = FK_CMP; 2185 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3614C20D: call dword ptr [0x3616fa8c] */ 2186 RECOMP_FLAGS_IN(); 2187 eax = MEM32(ebp + (-0x4)); /* 0x3614C213: mov eax, dword ptr [ebp - 4] */ 2188 /* test eax, eax */ /* 0x3614C216: test eax, eax */ 2189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2190 _cf = 0; 2191 _flag_k = FK_TEST; 2192 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C2E0; /* 0x3614C218: jbe 0x3614c2e0 */ 2193 L_3614C21E: 2194 /* cmp eax, 0x00100000u */ /* 0x3614C21E: cmp eax, 0x100000 */ 2195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x00100000u); 2196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2197 _flag_k = FK_CMP; 2198 if (CMP_A(_flag_a, _flag_b)) goto L_3614C2E0; /* 0x3614C223: ja 0x3614c2e0 */ 2199 L_3614C229: 2200 /* cmp eax, edi */ /* 0x3614C229: cmp eax, edi */ 2201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2203 _flag_k = FK_CMP; 2204 if (CMP_A(_flag_a, _flag_b)) goto L_3614C2E0; /* 0x3614C22B: ja 0x3614c2e0 */ 2205 L_3614C231: 2206 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2207 eax = 0; /* 0x3614C231: xor eax, eax */ 2208 _cf = 0; 2209 _flag_k = FK_TEST; 2210 ecx = 0xEu; /* 0x3614C233: mov ecx, 0xe */ 2211 edi = ebp + (-0x48); /* 0x3614C238: lea edi, [ebp - 0x48] */ 2212 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3614C23B: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 2213 ecx = MEM32(ebp + 0x8); /* 0x3614C23D: mov ecx, dword ptr [ebp + 8] */ 2214 edi = MEM32(ecx + 0x10); /* 0x3614C240: mov edi, dword ptr [ecx + 0x10] */ 2215 RECOMP_ICALL(MEM32(0x3616FAC0)); /* 0x3614C243: call dword ptr [0x3616fac0] */ 2216 RECOMP_FLAGS_IN(); 2217 edx = MEM32(ebp + (-0x4)); /* 0x3614C249: mov edx, dword ptr [ebp - 4] */ 2218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2220 eax = eax + edi; /* 0x3614C24C: add eax, edi */ 2221 _flag_k = FK_ADD; 2222 PUSH32(esp, 0x38u); /* 0x3614C24E: push 0x38 */ 2223 MEM32(ebp + (-0x48)) = eax; /* 0x3614C250: mov dword ptr [ebp - 0x48], eax */ 2224 eax = MEM32(esi + 0x24); /* 0x3614C253: mov eax, dword ptr [esi + 0x24] */ 2225 ecx = ebp + (-0x48); /* 0x3614C256: lea ecx, [ebp - 0x48] */ 2226 PUSH32(esp, 0x362E7B3Cu); /* 0x3614C259: push 0x362e7b3c */ 2227 PUSH32(esp, ecx); /* 0x3614C25E: push ecx */ 2228 MEM32(ebp + (-0x44)) = edx; /* 0x3614C25F: mov dword ptr [ebp - 0x44], edx */ 2229 MEM32(ebp + (-0x3C)) = eax; /* 0x3614C262: mov dword ptr [ebp - 0x3c], eax */ 2230 MEM32(ebp + (-0x38)) = ebx; /* 0x3614C265: mov dword ptr [ebp - 0x38], ebx */ 2231 RECOMP_ICALL(0x3615D150u); /* 0x3614C268: call 0x3615d150 */ /* not lifted */ 2232 RECOMP_FLAGS_IN(); 2233 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2235 esp = esp + 0xCu; /* 0x3614C26D: add esp, 0xc */ 2236 _flag_k = FK_ADD; 2237 /* test eax, eax */ /* 0x3614C270: test eax, eax */ 2238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2239 _cf = 0; 2240 _flag_k = FK_TEST; 2241 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C295; /* 0x3614C272: je 0x3614c295 */ 2242 L_3614C274: 2243 edx = MEM32(ebp + (-0x30)); /* 0x3614C274: mov edx, dword ptr [ebp - 0x30] */ 2244 eax = MEM32(esi + 0x8); /* 0x3614C277: mov eax, dword ptr [esi + 8] */ 2245 PUSH32(esp, edx); /* 0x3614C27A: push edx */ 2246 PUSH32(esp, eax); /* 0x3614C27B: push eax */ 2247 PUSH32(esp, 0x362E7AD4u); /* 0x3614C27C: push 0x362e7ad4 */ 2248 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614C281: call dword ptr [0x3616f18c] */ 2249 RECOMP_FLAGS_IN(); 2250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2252 esp = esp + 0xCu; /* 0x3614C287: add esp, 0xc */ 2253 _flag_k = FK_ADD; 2254 edi = POP32_VAL(esp); /* 0x3614C28A: pop edi */ 2255 esi = POP32_VAL(esp); /* 0x3614C28B: pop esi */ 2256 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2257 SET_LO8(eax, 0); /* 0x3614C28C: xor al, al */ 2258 _cf = 0; 2259 _flag_k = FK_NARROW(FK_TEST, 24); 2260 ebx = POP32_VAL(esp); /* 0x3614C28E: pop ebx */ 2261 esp = ebp; /* 0x3614C28F: mov esp, ebp */ 2262 ebp = POP32_VAL(esp); /* 0x3614C291: pop ebp */ 2263 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C292: ret 4 */ 2264 L_3614C295: 2265 ecx = ebp + (-0x48); /* 0x3614C295: lea ecx, [ebp - 0x48] */ 2266 PUSH32(esp, 4); /* 0x3614C298: push 4 */ 2267 PUSH32(esp, ecx); /* 0x3614C29A: push ecx */ 2268 RECOMP_ICALL(0x3615D170u); /* 0x3614C29B: call 0x3615d170 */ /* not lifted */ 2269 RECOMP_FLAGS_IN(); 2270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2272 esp = esp + 8; /* 0x3614C2A0: add esp, 8 */ 2273 _flag_k = FK_ADD; 2274 /* cmp eax, 1 */ /* 0x3614C2A3: cmp eax, 1 */ 2275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2277 _flag_k = FK_CMP; 2278 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614C2D2; /* 0x3614C2A6: je 0x3614c2d2 */ 2279 L_3614C2A8: 2280 edx = MEM32(ebp + (-0x30)); /* 0x3614C2A8: mov edx, dword ptr [ebp - 0x30] */ 2281 eax = MEM32(esi + 0x8); /* 0x3614C2AB: mov eax, dword ptr [esi + 8] */ 2282 PUSH32(esp, edx); /* 0x3614C2AE: push edx */ 2283 PUSH32(esp, eax); /* 0x3614C2AF: push eax */ 2284 PUSH32(esp, 0x362E7A78u); /* 0x3614C2B0: push 0x362e7a78 */ 2285 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614C2B5: call dword ptr [0x3616f18c] */ 2286 RECOMP_FLAGS_IN(); 2287 ecx = ebp + (-0x48); /* 0x3614C2BB: lea ecx, [ebp - 0x48] */ 2288 PUSH32(esp, ecx); /* 0x3614C2BE: push ecx */ 2289 RECOMP_ICALL(0x3615CFE0u); /* 0x3614C2BF: call 0x3615cfe0 */ /* not lifted */ 2290 RECOMP_FLAGS_IN(); 2291 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2293 esp = esp + 0x10u; /* 0x3614C2C4: add esp, 0x10 */ 2294 _flag_k = FK_ADD; 2295 edi = POP32_VAL(esp); /* 0x3614C2C7: pop edi */ 2296 esi = POP32_VAL(esp); /* 0x3614C2C8: pop esi */ 2297 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2298 SET_LO8(eax, 0); /* 0x3614C2C9: xor al, al */ 2299 _cf = 0; 2300 _flag_k = FK_NARROW(FK_TEST, 24); 2301 ebx = POP32_VAL(esp); /* 0x3614C2CB: pop ebx */ 2302 esp = ebp; /* 0x3614C2CC: mov esp, ebp */ 2303 ebp = POP32_VAL(esp); /* 0x3614C2CE: pop ebp */ 2304 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C2CF: ret 4 */ 2305 L_3614C2D2: 2306 edx = ebp + (-0x48); /* 0x3614C2D2: lea edx, [ebp - 0x48] */ 2307 PUSH32(esp, edx); /* 0x3614C2D5: push edx */ 2308 RECOMP_ICALL(0x3615CFE0u); /* 0x3614C2D6: call 0x3615cfe0 */ /* 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; /* 0x3614C2DB: add esp, 4 */ 2313 _flag_k = FK_ADD; 2314 goto L_3614C30A; /* 0x3614C2DE: jmp 0x3614c30a */ 2315 L_3614C2E0: 2316 PUSH32(esp, edi); /* 0x3614C2E0: push edi */ 2317 PUSH32(esp, eax); /* 0x3614C2E1: push eax */ 2318 eax = MEM32(esi + 0x8); /* 0x3614C2E2: mov eax, dword ptr [esi + 8] */ 2319 PUSH32(esp, eax); /* 0x3614C2E5: push eax */ 2320 PUSH32(esp, 0x362E79ECu); /* 0x3614C2E6: push 0x362e79ec */ 2321 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614C2EB: call dword ptr [0x3616f18c] */ 2322 RECOMP_FLAGS_IN(); 2323 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2324 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2325 esp = esp + 0x10u; /* 0x3614C2F1: add esp, 0x10 */ 2326 _flag_k = FK_ADD; 2327 edi = POP32_VAL(esp); /* 0x3614C2F4: pop edi */ 2328 esi = POP32_VAL(esp); /* 0x3614C2F5: pop esi */ 2329 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2330 SET_LO8(eax, 0); /* 0x3614C2F6: xor al, al */ 2331 _cf = 0; 2332 _flag_k = FK_NARROW(FK_TEST, 24); 2333 ebx = POP32_VAL(esp); /* 0x3614C2F8: pop ebx */ 2334 esp = ebp; /* 0x3614C2F9: mov esp, ebp */ 2335 ebp = POP32_VAL(esp); /* 0x3614C2FB: pop ebp */ 2336 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C2FC: ret 4 */ 2337 L_3614C2FF: 2338 ecx = MEM32(ebp + 0x8); /* 0x3614C2FF: mov ecx, dword ptr [ebp + 8] */ 2339 PUSH32(esp, ebx); /* 0x3614C302: push ebx */ 2340 PUSH32(esp, eax); /* 0x3614C303: push eax */ 2341 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x3614C304: call dword ptr [0x3616fac4] */ 2342 RECOMP_FLAGS_IN(); 2343 L_3614C30A: 2344 ecx = MEM32(ebp + 0x8); /* 0x3614C30A: mov ecx, dword ptr [ebp + 8] */ 2345 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3614C30D: call dword ptr [0x3616fadc] */ 2346 RECOMP_FLAGS_IN(); 2347 /* test eax, eax */ /* 0x3614C313: test eax, eax */ 2348 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2349 _cf = 0; 2350 _flag_k = FK_TEST; 2351 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614C334; /* 0x3614C315: jne 0x3614c334 */ 2352 L_3614C317: 2353 ecx = MEM32(esi + 0x8); /* 0x3614C317: mov ecx, dword ptr [esi + 8] */ 2354 PUSH32(esp, ecx); /* 0x3614C31A: push ecx */ 2355 PUSH32(esp, 0x362E7998u); /* 0x3614C31B: push 0x362e7998 */ 2356 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614C320: call dword ptr [0x3616f18c] */ 2357 RECOMP_FLAGS_IN(); 2358 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2359 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2360 esp = esp + 8; /* 0x3614C326: add esp, 8 */ 2361 _flag_k = FK_ADD; 2362 edi = POP32_VAL(esp); /* 0x3614C329: pop edi */ 2363 esi = POP32_VAL(esp); /* 0x3614C32A: pop esi */ 2364 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2365 SET_LO8(eax, 0); /* 0x3614C32B: xor al, al */ 2366 _cf = 0; 2367 _flag_k = FK_NARROW(FK_TEST, 24); 2368 ebx = POP32_VAL(esp); /* 0x3614C32D: pop ebx */ 2369 esp = ebp; /* 0x3614C32E: mov esp, ebp */ 2370 ebp = POP32_VAL(esp); /* 0x3614C330: pop ebp */ 2371 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C331: ret 4 */ 2372 L_3614C334: 2373 edi = POP32_VAL(esp); /* 0x3614C334: pop edi */ 2374 esi = POP32_VAL(esp); /* 0x3614C335: pop esi */ 2375 SET_LO8(eax, 1); /* 0x3614C336: mov al, 1 */ 2376 ebx = POP32_VAL(esp); /* 0x3614C338: pop ebx */ 2377 esp = ebp; /* 0x3614C339: mov esp, ebp */ 2378 ebp = POP32_VAL(esp); /* 0x3614C33B: pop ebp */ 2379 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C33C: ret 4 */ 2380 L_3614C33F: 2381 PUSH32(esp, ecx); /* 0x3614C33F: push ecx */ 2382 ecx = MEM32(esi + 0x8); /* 0x3614C340: mov ecx, dword ptr [esi + 8] */ 2383 PUSH32(esp, eax); /* 0x3614C343: push eax */ 2384 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2385 eax = 0; /* 0x3614C344: xor eax, eax */ 2386 _cf = 0; 2387 _flag_k = FK_TEST; 2388 SET_LO16(eax, MEM16(esi + 0x1A)); /* 0x3614C346: mov ax, word ptr [esi + 0x1a] */ 2389 PUSH32(esp, 1); /* 0x3614C34A: push 1 */ 2390 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 2391 edx = edx & 0xFFFFu; /* 0x3614C34C: and edx, 0xffff */ 2392 _cf = 0; 2393 _flag_k = FK_TEST; 2394 PUSH32(esp, eax); /* 0x3614C352: push eax */ 2395 PUSH32(esp, 1); /* 0x3614C353: push 1 */ 2396 PUSH32(esp, edx); /* 0x3614C355: push edx */ 2397 PUSH32(esp, ecx); /* 0x3614C356: push ecx */ 2398 PUSH32(esp, 0x362E78E0u); /* 0x3614C357: push 0x362e78e0 */ 2399 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3614C35C: call dword ptr [0x3616f18c] */ 2400 RECOMP_FLAGS_IN(); 2401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 2402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2403 esp = esp + 0x20u; /* 0x3614C362: add esp, 0x20 */ 2404 _flag_k = FK_ADD; 2405 L_3614C365: 2406 edi = POP32_VAL(esp); /* 0x3614C365: pop edi */ 2407 esi = POP32_VAL(esp); /* 0x3614C366: pop esi */ 2408 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2409 SET_LO8(eax, 0); /* 0x3614C367: xor al, al */ 2410 _cf = 0; 2411 _flag_k = FK_NARROW(FK_TEST, 24); 2412 ebx = POP32_VAL(esp); /* 0x3614C369: pop ebx */ 2413 esp = ebp; /* 0x3614C36A: mov esp, ebp */ 2414 ebp = POP32_VAL(esp); /* 0x3614C36C: pop ebp */ 2415 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C36D: ret 4 */ 2416 RECOMP_REGS_OUT(); 2417 } 2418 2419 void sub_3614C370(void) { 2420 int _fpu_cmp = 0; 2421 uint32_t _cf = 0; 2422 int _df = 1; 2423 uint32_t _flag_k = FK_NONE; 2424 uint32_t _flag_a = 0, _flag_b = 0; 2425 uint32_t _itail_tgt = 0; 2426 RECOMP_REGS_LOCALS 2427 RECOMP_ENTER(0x3614C370u); 2428 2429 L_3614C370: 2430 RECOMP_ICALL(0x3614C380u); /* 0x3614C370: call 0x3614c380 */ /* not lifted */ 2431 RECOMP_FLAGS_IN(); 2432 goto L_3614C390; /* 0x3614C375: jmp 0x3614c390 */ 2433 L_3614C390: 2434 PUSH32(esp, 0x3614C3A0u); /* 0x3614C390: push 0x3614c3a0 */ 2435 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C395: call 0x3615feb2 */ /* not lifted */ 2436 RECOMP_FLAGS_IN(); 2437 ecx = POP32_VAL(esp); /* 0x3614C39A: pop ecx */ 2438 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C39B: ret */ 2439 RECOMP_REGS_OUT(); 2440 } 2441 2442 void sub_3614C380(void) { 2443 int _fpu_cmp = 0; 2444 uint32_t _cf = 0; 2445 int _df = 1; 2446 uint32_t _flag_k = FK_NONE; 2447 uint32_t _flag_a = 0, _flag_b = 0; 2448 uint32_t _itail_tgt = 0; 2449 RECOMP_REGS_LOCALS 2450 RECOMP_ENTER(0x3614C380u); 2451 2452 L_3614C380: 2453 ecx = 0x3630DA61u; /* 0x3614C380: mov ecx, 0x3630da61 */ 2454 L_3614C385: 2455 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 2456 { RECOMP_REGS_OUT(); return; } /* end of function */ 2457 _ljump: 2458 switch (_itail_tgt) { 2459 case 0x3614C380u: goto L_3614C380; 2460 case 0x3614C385u: goto L_3614C385; 2461 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2462 } 2463 RECOMP_REGS_OUT(); 2464 } 2465 2466 void sub_3614C390(void) { 2467 int _fpu_cmp = 0; 2468 uint32_t _cf = 0; 2469 int _df = 1; 2470 uint32_t _flag_k = FK_NONE; 2471 uint32_t _flag_a = 0, _flag_b = 0; 2472 uint32_t _itail_tgt = 0; 2473 RECOMP_REGS_LOCALS 2474 RECOMP_ENTER(0x3614C390u); 2475 2476 L_3614C390: 2477 PUSH32(esp, 0x3614C3A0u); /* 0x3614C390: push 0x3614c3a0 */ 2478 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C395: call 0x3615feb2 */ /* not lifted */ 2479 RECOMP_FLAGS_IN(); 2480 ecx = POP32_VAL(esp); /* 0x3614C39A: pop ecx */ 2481 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C39B: ret */ 2482 RECOMP_REGS_OUT(); 2483 } 2484 2485 void sub_3614C3A0(void) { 2486 int _fpu_cmp = 0; 2487 uint32_t _cf = 0; 2488 int _df = 1; 2489 uint32_t _flag_k = FK_NONE; 2490 uint32_t _flag_a = 0, _flag_b = 0; 2491 uint32_t _itail_tgt = 0; 2492 RECOMP_REGS_LOCALS 2493 RECOMP_ENTER(0x3614C3A0u); 2494 2495 L_3614C3A0: 2496 ecx = 0x3630DA61u; /* 0x3614C3A0: mov ecx, 0x3630da61 */ 2497 L_3614C3A5: 2498 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 2499 { RECOMP_REGS_OUT(); return; } /* end of function */ 2500 _ljump: 2501 switch (_itail_tgt) { 2502 case 0x3614C3A0u: goto L_3614C3A0; 2503 case 0x3614C3A5u: goto L_3614C3A5; 2504 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2505 } 2506 RECOMP_REGS_OUT(); 2507 } 2508 2509 void sub_3614C3B0(void) { 2510 int _fpu_cmp = 0; 2511 uint32_t _cf = 0; 2512 int _df = 1; 2513 uint32_t _flag_k = FK_NONE; 2514 uint32_t _flag_a = 0, _flag_b = 0; 2515 uint32_t _itail_tgt = 0; 2516 RECOMP_REGS_LOCALS 2517 RECOMP_ENTER(0x3614C3B0u); 2518 2519 L_3614C3B0: 2520 RECOMP_ICALL(0x3614C3C0u); /* 0x3614C3B0: call 0x3614c3c0 */ /* not lifted */ 2521 RECOMP_FLAGS_IN(); 2522 goto L_3614C3D0; /* 0x3614C3B5: jmp 0x3614c3d0 */ 2523 L_3614C3D0: 2524 PUSH32(esp, 0x3614C3E0u); /* 0x3614C3D0: push 0x3614c3e0 */ 2525 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C3D5: call 0x3615feb2 */ /* not lifted */ 2526 RECOMP_FLAGS_IN(); 2527 ecx = POP32_VAL(esp); /* 0x3614C3DA: pop ecx */ 2528 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C3DB: ret */ 2529 RECOMP_REGS_OUT(); 2530 } 2531 2532 void sub_3614C3C0(void) { 2533 int _fpu_cmp = 0; 2534 uint32_t _cf = 0; 2535 int _df = 1; 2536 uint32_t _flag_k = FK_NONE; 2537 uint32_t _flag_a = 0, _flag_b = 0; 2538 uint32_t _itail_tgt = 0; 2539 RECOMP_REGS_LOCALS 2540 RECOMP_ENTER(0x3614C3C0u); 2541 2542 L_3614C3C0: 2543 ecx = 0x3630DA60u; /* 0x3614C3C0: mov ecx, 0x3630da60 */ 2544 L_3614C3C5: 2545 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 2546 { RECOMP_REGS_OUT(); return; } /* end of function */ 2547 _ljump: 2548 switch (_itail_tgt) { 2549 case 0x3614C3C0u: goto L_3614C3C0; 2550 case 0x3614C3C5u: goto L_3614C3C5; 2551 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2552 } 2553 RECOMP_REGS_OUT(); 2554 } 2555 2556 void sub_3614C3D0(void) { 2557 int _fpu_cmp = 0; 2558 uint32_t _cf = 0; 2559 int _df = 1; 2560 uint32_t _flag_k = FK_NONE; 2561 uint32_t _flag_a = 0, _flag_b = 0; 2562 uint32_t _itail_tgt = 0; 2563 RECOMP_REGS_LOCALS 2564 RECOMP_ENTER(0x3614C3D0u); 2565 2566 L_3614C3D0: 2567 PUSH32(esp, 0x3614C3E0u); /* 0x3614C3D0: push 0x3614c3e0 */ 2568 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C3D5: call 0x3615feb2 */ /* not lifted */ 2569 RECOMP_FLAGS_IN(); 2570 ecx = POP32_VAL(esp); /* 0x3614C3DA: pop ecx */ 2571 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C3DB: ret */ 2572 RECOMP_REGS_OUT(); 2573 } 2574 2575 void sub_3614C3E0(void) { 2576 int _fpu_cmp = 0; 2577 uint32_t _cf = 0; 2578 int _df = 1; 2579 uint32_t _flag_k = FK_NONE; 2580 uint32_t _flag_a = 0, _flag_b = 0; 2581 uint32_t _itail_tgt = 0; 2582 RECOMP_REGS_LOCALS 2583 RECOMP_ENTER(0x3614C3E0u); 2584 2585 L_3614C3E0: 2586 ecx = 0x3630DA60u; /* 0x3614C3E0: mov ecx, 0x3630da60 */ 2587 L_3614C3E5: 2588 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 2589 { RECOMP_REGS_OUT(); return; } /* end of function */ 2590 _ljump: 2591 switch (_itail_tgt) { 2592 case 0x3614C3E0u: goto L_3614C3E0; 2593 case 0x3614C3E5u: goto L_3614C3E5; 2594 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2595 } 2596 RECOMP_REGS_OUT(); 2597 } 2598 2599 void sub_3614C3F0(void) { 2600 int _fpu_cmp = 0; 2601 uint32_t _cf = 0; 2602 int _df = 1; 2603 uint32_t _flag_k = FK_NONE; 2604 uint32_t _flag_a = 0, _flag_b = 0; 2605 uint32_t _itail_tgt = 0; 2606 RECOMP_REGS_LOCALS 2607 RECOMP_ENTER(0x3614C3F0u); 2608 2609 L_3614C3F0: 2610 PUSH32(esp, ebp); /* 0x3614C3F0: push ebp */ 2611 ebp = esp; /* 0x3614C3F1: mov ebp, esp */ 2612 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614C3F3: push -1 */ 2613 PUSH32(esp, 0x3616D228u); /* 0x3614C3F5: push 0x3616d228 */ 2614 eax = MEM32(FS_BASE + (0)); /* 0x3614C3FA: mov eax, dword ptr fs:[0] */ 2615 PUSH32(esp, eax); /* 0x3614C400: push eax */ 2616 MEM32(FS_BASE + (0)) = esp; /* 0x3614C401: mov dword ptr fs:[0], esp */ 2617 PUSH32(esp, ecx); /* 0x3614C408: push ecx */ 2618 eax = MEM32(ebp + 0xC); /* 0x3614C409: mov eax, dword ptr [ebp + 0xc] */ 2619 PUSH32(esp, ebx); /* 0x3614C40C: push ebx */ 2620 PUSH32(esp, esi); /* 0x3614C40D: push esi */ 2621 esi = ecx; /* 0x3614C40E: mov esi, ecx */ 2622 ecx = MEM32(ebp + 0x8); /* 0x3614C410: mov ecx, dword ptr [ebp + 8] */ 2623 PUSH32(esp, eax); /* 0x3614C413: push eax */ 2624 PUSH32(esp, ecx); /* 0x3614C414: push ecx */ 2625 ecx = esi; /* 0x3614C415: mov ecx, esi */ 2626 MEM32(ebp + (-0x10)) = esi; /* 0x3614C417: mov dword ptr [ebp - 0x10], esi */ 2627 RECOMP_ICALL(0x3614BC90u); /* 0x3614C41A: call 0x3614bc90 */ /* not lifted */ 2628 RECOMP_FLAGS_IN(); 2629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2630 ebx = 0; /* 0x3614C41F: xor ebx, ebx */ 2631 _cf = 0; 2632 _flag_k = FK_TEST; 2633 PUSH32(esp, 0x10u); /* 0x3614C421: push 0x10 */ 2634 MEM32(ebp + (-0x4)) = ebx; /* 0x3614C423: mov dword ptr [ebp - 4], ebx */ 2635 MEM32(esi + 0x38) = ebx; /* 0x3614C426: mov dword ptr [esi + 0x38], ebx */ 2636 MEM8(esi + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3614C429: mov byte ptr [esi + 0x3c], bl */ 2637 MEM8(esi + 0x3D) = (uint8_t)(LO8(ebx)); /* 0x3614C42C: mov byte ptr [esi + 0x3d], bl */ 2638 MEM32(esi) = 0x361788D0u; /* 0x3614C42F: mov dword ptr [esi], 0x361788d0 */ 2639 RECOMP_ICALL(0x3615FD6Au); /* 0x3614C435: call 0x3615fd6a */ /* not lifted */ 2640 RECOMP_FLAGS_IN(); 2641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2643 esp = esp + 4; /* 0x3614C43A: add esp, 4 */ 2644 _flag_k = FK_ADD; 2645 /* cmp eax, ebx */ /* 0x3614C43D: cmp eax, ebx */ 2646 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2648 _flag_k = FK_CMP; 2649 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614C451; /* 0x3614C43F: je 0x3614c451 */ 2650 L_3614C441: 2651 SET_LO8(edx, MEM8(ebp + 0xF)); /* 0x3614C441: mov dl, byte ptr [ebp + 0xf] */ 2652 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3614C444: mov byte ptr [eax], dl */ 2653 MEM32(eax + 0x4) = ebx; /* 0x3614C446: mov dword ptr [eax + 4], ebx */ 2654 MEM32(eax + 0x8) = ebx; /* 0x3614C449: mov dword ptr [eax + 8], ebx */ 2655 MEM32(eax + 0xC) = ebx; /* 0x3614C44C: mov dword ptr [eax + 0xc], ebx */ 2656 goto L_3614C453; /* 0x3614C44F: jmp 0x3614c453 */ 2657 L_3614C451: 2658 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2659 eax = 0; /* 0x3614C451: xor eax, eax */ 2660 _cf = 0; 2661 _flag_k = FK_TEST; 2662 L_3614C453: 2663 ecx = MEM32(ebp + (-0xC)); /* 0x3614C453: mov ecx, dword ptr [ebp - 0xc] */ 2664 MEM32(esi + 0x2C) = eax; /* 0x3614C456: mov dword ptr [esi + 0x2c], eax */ 2665 MEM32(esi + 0x30) = 5; /* 0x3614C459: mov dword ptr [esi + 0x30], 5 */ 2666 eax = esi; /* 0x3614C460: mov eax, esi */ 2667 esi = POP32_VAL(esp); /* 0x3614C462: pop esi */ 2668 ebx = POP32_VAL(esp); /* 0x3614C463: pop ebx */ 2669 MEM32(FS_BASE + (0)) = ecx; /* 0x3614C464: mov dword ptr fs:[0], ecx */ 2670 esp = ebp; /* 0x3614C46B: mov esp, ebp */ 2671 ebp = POP32_VAL(esp); /* 0x3614C46D: pop ebp */ 2672 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3614C46E: ret 8 */ 2673 RECOMP_REGS_OUT(); 2674 } 2675 2676 void sub_3614C480(void) { 2677 int _fpu_cmp = 0; 2678 uint32_t _cf = 0; 2679 int _df = 1; 2680 uint32_t _flag_k = FK_NONE; 2681 uint32_t _flag_a = 0, _flag_b = 0; 2682 uint32_t _itail_tgt = 0; 2683 RECOMP_REGS_LOCALS 2684 RECOMP_ENTER(0x3614C480u); 2685 2686 L_3614C480: 2687 PUSH32(esp, ebp); /* 0x3614C480: push ebp */ 2688 ebp = esp; /* 0x3614C481: mov ebp, esp */ 2689 PUSH32(esp, esi); /* 0x3614C483: push esi */ 2690 esi = ecx; /* 0x3614C484: mov esi, ecx */ 2691 RECOMP_ICALL(0x3614C4B0u); /* 0x3614C486: call 0x3614c4b0 */ /* not lifted */ 2692 RECOMP_FLAGS_IN(); 2693 /* test MEM8(ebp + 0x8), 1 */ /* 0x3614C48B: test byte ptr [ebp + 8], 1 */ 2694 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2695 _cf = 0; 2696 _flag_k = FK_NARROW(FK_TEST, 24); 2697 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C49A; /* 0x3614C48F: je 0x3614c49a */ 2698 L_3614C491: 2699 PUSH32(esp, esi); /* 0x3614C491: push esi */ 2700 RECOMP_ICALL(0x3615FCC4u); /* 0x3614C492: call 0x3615fcc4 */ /* not lifted */ 2701 RECOMP_FLAGS_IN(); 2702 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2703 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2704 esp = esp + 4; /* 0x3614C497: add esp, 4 */ 2705 _flag_k = FK_ADD; 2706 L_3614C49A: 2707 eax = esi; /* 0x3614C49A: mov eax, esi */ 2708 esi = POP32_VAL(esp); /* 0x3614C49C: pop esi */ 2709 ebp = POP32_VAL(esp); /* 0x3614C49D: pop ebp */ 2710 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C49E: ret 4 */ 2711 RECOMP_REGS_OUT(); 2712 } 2713 2714 void sub_3614C4B0(void) { 2715 int _fpu_cmp = 0; 2716 uint32_t _cf = 0; 2717 int _df = 1; 2718 uint32_t _flag_k = FK_NONE; 2719 uint32_t _flag_a = 0, _flag_b = 0; 2720 uint32_t _itail_tgt = 0; 2721 RECOMP_REGS_LOCALS 2722 RECOMP_ENTER(0x3614C4B0u); 2723 2724 L_3614C4B0: 2725 PUSH32(esp, ebp); /* 0x3614C4B0: push ebp */ 2726 ebp = esp; /* 0x3614C4B1: mov ebp, esp */ 2727 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614C4B3: push -1 */ 2728 PUSH32(esp, 0x3616D248u); /* 0x3614C4B5: push 0x3616d248 */ 2729 eax = MEM32(FS_BASE + (0)); /* 0x3614C4BA: mov eax, dword ptr fs:[0] */ 2730 PUSH32(esp, eax); /* 0x3614C4C0: push eax */ 2731 MEM32(FS_BASE + (0)) = esp; /* 0x3614C4C1: mov dword ptr fs:[0], esp */ 2732 PUSH32(esp, ecx); /* 0x3614C4C8: push ecx */ 2733 PUSH32(esp, edi); /* 0x3614C4C9: push edi */ 2734 MEM32(ebp + (-0x10)) = ecx; /* 0x3614C4CA: mov dword ptr [ebp - 0x10], ecx */ 2735 MEM32(ecx) = 0x361788D0u; /* 0x3614C4CD: mov dword ptr [ecx], 0x361788d0 */ 2736 edi = MEM32(ecx + 0x2C); /* 0x3614C4D3: mov edi, dword ptr [ecx + 0x2c] */ 2737 /* test edi, edi */ /* 0x3614C4D6: test edi, edi */ 2738 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2739 _cf = 0; 2740 _flag_k = FK_TEST; 2741 MEM32(ebp + (-0x4)) = 0; /* 0x3614C4D8: mov dword ptr [ebp - 4], 0 */ 2742 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C51E; /* 0x3614C4DF: je 0x3614c51e */ 2743 L_3614C4E1: 2744 PUSH32(esp, ebx); /* 0x3614C4E1: push ebx */ 2745 ebx = MEM32(edi + 0x8); /* 0x3614C4E2: mov ebx, dword ptr [edi + 8] */ 2746 PUSH32(esp, esi); /* 0x3614C4E5: push esi */ 2747 esi = MEM32(edi + 0x4); /* 0x3614C4E6: mov esi, dword ptr [edi + 4] */ 2748 /* cmp esi, ebx */ /* 0x3614C4E9: cmp esi, ebx */ 2749 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2751 _flag_k = FK_CMP; 2752 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614C4FC; /* 0x3614C4EB: je 0x3614c4fc */ 2753 L_3614C4ED: 2754 eax = MEM32(esi); /* 0x3614C4ED: mov eax, dword ptr [esi] */ 2755 PUSH32(esp, 0); /* 0x3614C4EF: push 0 */ 2756 ecx = esi; /* 0x3614C4F1: mov ecx, esi */ 2757 RECOMP_ICALL(MEM32(eax)); /* 0x3614C4F3: call dword ptr [eax] */ 2758 RECOMP_FLAGS_IN(); 2759 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u); 2760 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2761 esi = esi + 0x34u; /* 0x3614C4F5: add esi, 0x34 */ 2762 _flag_k = FK_ADD; 2763 /* cmp esi, ebx */ /* 0x3614C4F8: cmp esi, ebx */ 2764 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2766 _flag_k = FK_CMP; 2767 RECOMP_BACKEDGE(); 2768 if (CMP_NE(_flag_a, _flag_b)) goto L_3614C4ED; /* 0x3614C4FA: jne 0x3614c4ed */ 2769 L_3614C4FC: 2770 eax = MEM32(edi + 0x4); /* 0x3614C4FC: mov eax, dword ptr [edi + 4] */ 2771 PUSH32(esp, eax); /* 0x3614C4FF: push eax */ 2772 RECOMP_ICALL(0x3615FCC4u); /* 0x3614C500: call 0x3615fcc4 */ /* not lifted */ 2773 RECOMP_FLAGS_IN(); 2774 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2775 eax = 0; /* 0x3614C505: xor eax, eax */ 2776 _cf = 0; 2777 _flag_k = FK_TEST; 2778 PUSH32(esp, edi); /* 0x3614C507: push edi */ 2779 MEM32(edi + 0x4) = eax; /* 0x3614C508: mov dword ptr [edi + 4], eax */ 2780 MEM32(edi + 0x8) = eax; /* 0x3614C50B: mov dword ptr [edi + 8], eax */ 2781 MEM32(edi + 0xC) = eax; /* 0x3614C50E: mov dword ptr [edi + 0xc], eax */ 2782 RECOMP_ICALL(0x3615FCC4u); /* 0x3614C511: call 0x3615fcc4 */ /* not lifted */ 2783 RECOMP_FLAGS_IN(); 2784 ecx = MEM32(ebp + (-0x10)); /* 0x3614C516: mov ecx, dword ptr [ebp - 0x10] */ 2785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2787 esp = esp + 8; /* 0x3614C519: add esp, 8 */ 2788 _flag_k = FK_ADD; 2789 esi = POP32_VAL(esp); /* 0x3614C51C: pop esi */ 2790 ebx = POP32_VAL(esp); /* 0x3614C51D: pop ebx */ 2791 L_3614C51E: 2792 eax = MEM32(ecx + 0x38); /* 0x3614C51E: mov eax, dword ptr [ecx + 0x38] */ 2793 /* test eax, eax */ /* 0x3614C521: test eax, eax */ 2794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2795 _cf = 0; 2796 _flag_k = FK_TEST; 2797 MEM32(ecx + 0x2C) = 0; /* 0x3614C523: mov dword ptr [ecx + 0x2c], 0 */ 2798 edi = POP32_VAL(esp); /* 0x3614C52A: pop edi */ 2799 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C538; /* 0x3614C52B: je 0x3614c538 */ 2800 L_3614C52D: 2801 edx = MEM32(eax); /* 0x3614C52D: mov edx, dword ptr [eax] */ 2802 PUSH32(esp, 1); /* 0x3614C52F: push 1 */ 2803 ecx = eax; /* 0x3614C531: mov ecx, eax */ 2804 RECOMP_ICALL(MEM32(edx)); /* 0x3614C533: call dword ptr [edx] */ 2805 RECOMP_FLAGS_IN(); 2806 ecx = MEM32(ebp + (-0x10)); /* 0x3614C535: mov ecx, dword ptr [ebp - 0x10] */ 2807 L_3614C538: 2808 MEM32(ecx + 0x38) = 0; /* 0x3614C538: mov dword ptr [ecx + 0x38], 0 */ 2809 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614C53F: mov dword ptr [ebp - 4], 0xffffffff */ 2810 RECOMP_ICALL(0x3614BD40u); /* 0x3614C546: call 0x3614bd40 */ /* not lifted */ 2811 RECOMP_FLAGS_IN(); 2812 ecx = MEM32(ebp + (-0xC)); /* 0x3614C54B: mov ecx, dword ptr [ebp - 0xc] */ 2813 MEM32(FS_BASE + (0)) = ecx; /* 0x3614C54E: mov dword ptr fs:[0], ecx */ 2814 esp = ebp; /* 0x3614C555: mov esp, ebp */ 2815 ebp = POP32_VAL(esp); /* 0x3614C557: pop ebp */ 2816 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C558: ret */ 2817 RECOMP_REGS_OUT(); 2818 } 2819 2820 void sub_3614C560(void) { 2821 int _fpu_cmp = 0; 2822 uint32_t _cf = 0; 2823 int _df = 1; 2824 uint32_t _flag_k = FK_NONE; 2825 uint32_t _flag_a = 0, _flag_b = 0; 2826 uint32_t _itail_tgt = 0; 2827 RECOMP_REGS_LOCALS 2828 RECOMP_ENTER(0x3614C560u); 2829 2830 L_3614C560: 2831 eax = MEM32(ecx + 0x28); /* 0x3614C560: mov eax, dword ptr [ecx + 0x28] */ 2832 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C563: ret */ 2833 RECOMP_REGS_OUT(); 2834 } 2835 2836 void sub_3614C570(void) { 2837 int _fpu_cmp = 0; 2838 uint32_t _cf = 0; 2839 int _df = 1; 2840 uint32_t _flag_k = FK_NONE; 2841 uint32_t _flag_a = 0, _flag_b = 0; 2842 uint32_t _itail_tgt = 0; 2843 RECOMP_REGS_LOCALS 2844 RECOMP_ENTER(0x3614C570u); 2845 2846 L_3614C570: 2847 PUSH32(esp, ebp); /* 0x3614C570: push ebp */ 2848 ebp = esp; /* 0x3614C571: mov ebp, esp */ 2849 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614C573: push -1 */ 2850 PUSH32(esp, 0x3616D26Bu); /* 0x3614C575: push 0x3616d26b */ 2851 eax = MEM32(FS_BASE + (0)); /* 0x3614C57A: mov eax, dword ptr fs:[0] */ 2852 PUSH32(esp, eax); /* 0x3614C580: push eax */ 2853 MEM32(FS_BASE + (0)) = esp; /* 0x3614C581: mov dword ptr fs:[0], esp */ 2854 PUSH32(esp, ecx); /* 0x3614C588: push ecx */ 2855 PUSH32(esp, esi); /* 0x3614C589: push esi */ 2856 esi = ecx; /* 0x3614C58A: mov esi, ecx */ 2857 eax = MEM32(esi + 0x38); /* 0x3614C58C: mov eax, dword ptr [esi + 0x38] */ 2858 /* test eax, eax */ /* 0x3614C58F: test eax, eax */ 2859 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2860 _cf = 0; 2861 _flag_k = FK_TEST; 2862 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614C5B9; /* 0x3614C591: jne 0x3614c5b9 */ 2863 L_3614C593: 2864 PUSH32(esp, 0x18u); /* 0x3614C593: push 0x18 */ 2865 RECOMP_ICALL(0x3615FD6Au); /* 0x3614C595: call 0x3615fd6a */ /* not lifted */ 2866 RECOMP_FLAGS_IN(); 2867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2869 esp = esp + 4; /* 0x3614C59A: add esp, 4 */ 2870 _flag_k = FK_ADD; 2871 MEM32(ebp + (-0x10)) = eax; /* 0x3614C59D: mov dword ptr [ebp - 0x10], eax */ 2872 /* test eax, eax */ /* 0x3614C5A0: test eax, eax */ 2873 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2874 _cf = 0; 2875 _flag_k = FK_TEST; 2876 MEM32(ebp + (-0x4)) = 0; /* 0x3614C5A2: mov dword ptr [ebp - 4], 0 */ 2877 if (TEST_Z(_flag_a, _flag_b)) goto L_3614C5B4; /* 0x3614C5A9: je 0x3614c5b4 */ 2878 L_3614C5AB: 2879 ecx = eax; /* 0x3614C5AB: mov ecx, eax */ 2880 RECOMP_ICALL(0x3615C1C0u); /* 0x3614C5AD: call 0x3615c1c0 */ /* not lifted */ 2881 RECOMP_FLAGS_IN(); 2882 goto L_3614C5B6; /* 0x3614C5B2: jmp 0x3614c5b6 */ 2883 L_3614C5B4: 2884 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2885 eax = 0; /* 0x3614C5B4: xor eax, eax */ 2886 _cf = 0; 2887 _flag_k = FK_TEST; 2888 L_3614C5B6: 2889 MEM32(esi + 0x38) = eax; /* 0x3614C5B6: mov dword ptr [esi + 0x38], eax */ 2890 L_3614C5B9: 2891 eax = MEM32(esi + 0x38); /* 0x3614C5B9: mov eax, dword ptr [esi + 0x38] */ 2892 ecx = MEM32(ebp + (-0xC)); /* 0x3614C5BC: mov ecx, dword ptr [ebp - 0xc] */ 2893 esi = POP32_VAL(esp); /* 0x3614C5BF: pop esi */ 2894 MEM32(FS_BASE + (0)) = ecx; /* 0x3614C5C0: mov dword ptr fs:[0], ecx */ 2895 esp = ebp; /* 0x3614C5C7: mov esp, ebp */ 2896 ebp = POP32_VAL(esp); /* 0x3614C5C9: pop ebp */ 2897 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C5CA: ret */ 2898 RECOMP_REGS_OUT(); 2899 } 2900 2901 void sub_3614C5D0(void) { 2902 int _fpu_cmp = 0; 2903 uint32_t _cf = 0; 2904 int _df = 1; 2905 uint32_t _flag_k = FK_NONE; 2906 uint32_t _flag_a = 0, _flag_b = 0; 2907 uint32_t _itail_tgt = 0; 2908 RECOMP_REGS_LOCALS 2909 RECOMP_ENTER(0x3614C5D0u); 2910 2911 L_3614C5D0: 2912 eax = MEM32(ecx + 0x2C); /* 0x3614C5D0: mov eax, dword ptr [ecx + 0x2c] */ 2913 edx = MEM32(eax + 0x4); /* 0x3614C5D3: mov edx, dword ptr [eax + 4] */ 2914 /* test edx, edx */ /* 0x3614C5D6: test edx, edx */ 2915 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2916 _cf = 0; 2917 _flag_k = FK_TEST; 2918 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614C5DD; /* 0x3614C5D8: jne 0x3614c5dd */ 2919 L_3614C5DA: 2920 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2921 eax = 0; /* 0x3614C5DA: xor eax, eax */ 2922 _cf = 0; 2923 _flag_k = FK_TEST; 2924 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C5DC: ret */ 2925 L_3614C5DD: 2926 ecx = MEM32(eax + 0x8); /* 0x3614C5DD: mov ecx, dword ptr [eax + 8] */ 2927 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2929 ecx = ecx - edx; /* 0x3614C5E0: sub ecx, edx */ 2930 _flag_k = FK_CMP; 2931 eax = 0x4EC4EC4Fu; /* 0x3614C5E2: mov eax, 0x4ec4ec4f */ 2932 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3614C5E7: imul ecx */ 2933 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2934 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2935 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3614C5E9: sar edx, 4 */ 2936 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2937 edx = (uint32_t)((int32_t)edx >> 4u); 2938 eax = edx; /* 0x3614C5EC: mov eax, edx */ 2939 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3614C5EE: shr eax, 0x1f */ 2940 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2941 eax = eax >> 31u; /* 0x3614C5EE: shr eax, 0x1f */ 2942 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2943 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2944 edx = edx + eax; /* 0x3614C5F1: add edx, eax */ 2945 _flag_k = FK_ADD; 2946 eax = edx; /* 0x3614C5F3: mov eax, edx */ 2947 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C5F5: ret */ 2948 RECOMP_REGS_OUT(); 2949 } 2950 2951 void sub_3614C600(void) { 2952 int _fpu_cmp = 0; 2953 uint32_t _cf = 0; 2954 int _df = 1; 2955 uint32_t _flag_k = FK_NONE; 2956 uint32_t _flag_a = 0, _flag_b = 0; 2957 uint32_t _itail_tgt = 0; 2958 RECOMP_REGS_LOCALS 2959 RECOMP_ENTER(0x3614C600u); 2960 2961 L_3614C600: 2962 PUSH32(esp, ebp); /* 0x3614C600: push ebp */ 2963 ebp = esp; /* 0x3614C601: mov ebp, esp */ 2964 eax = MEM32(ebp + 0x8); /* 0x3614C603: mov eax, dword ptr [ebp + 8] */ 2965 PUSH32(esp, eax); /* 0x3614C606: push eax */ 2966 RECOMP_ICALL(0x3614BD50u); /* 0x3614C607: call 0x3614bd50 */ /* not lifted */ 2967 RECOMP_FLAGS_IN(); 2968 ebp = POP32_VAL(esp); /* 0x3614C60C: pop ebp */ 2969 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C60D: ret 4 */ 2970 RECOMP_REGS_OUT(); 2971 } 2972 2973 void sub_3614C610(void) { 2974 int _fpu_cmp = 0; 2975 uint32_t _cf = 0; 2976 int _df = 1; 2977 uint32_t _flag_k = FK_NONE; 2978 uint32_t _flag_a = 0, _flag_b = 0; 2979 uint32_t _itail_tgt = 0; 2980 RECOMP_REGS_LOCALS 2981 RECOMP_ENTER(0x3614C610u); 2982 2983 L_3614C610: 2984 PUSH32(esp, ebp); /* 0x3614C610: push ebp */ 2985 ebp = esp; /* 0x3614C611: mov ebp, esp */ 2986 eax = MEM32(ebp + 0x8); /* 0x3614C613: mov eax, dword ptr [ebp + 8] */ 2987 PUSH32(esp, eax); /* 0x3614C616: push eax */ 2988 RECOMP_ICALL(0x3614BE30u); /* 0x3614C617: call 0x3614be30 */ /* not lifted */ 2989 RECOMP_FLAGS_IN(); 2990 ebp = POP32_VAL(esp); /* 0x3614C61C: pop ebp */ 2991 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C61D: ret 4 */ 2992 RECOMP_REGS_OUT(); 2993 } 2994 2995 void sub_3614C620(void) { 2996 int _fpu_cmp = 0; 2997 uint32_t _cf = 0; 2998 int _df = 1; 2999 uint32_t _flag_k = FK_NONE; 3000 uint32_t _flag_a = 0, _flag_b = 0; 3001 uint32_t _itail_tgt = 0; 3002 RECOMP_REGS_LOCALS 3003 RECOMP_ENTER(0x3614C620u); 3004 3005 L_3614C620: 3006 PUSH32(esp, ebp); /* 0x3614C620: push ebp */ 3007 ebp = esp; /* 0x3614C621: mov ebp, esp */ 3008 PUSH32(esp, esi); /* 0x3614C623: push esi */ 3009 PUSH32(esp, edi); /* 0x3614C624: push edi */ 3010 edi = MEM32(ebp + 0x8); /* 0x3614C625: mov edi, dword ptr [ebp + 8] */ 3011 esi = ecx; /* 0x3614C628: mov esi, ecx */ 3012 PUSH32(esp, edi); /* 0x3614C62A: push edi */ 3013 RECOMP_ICALL(0x3614C020u); /* 0x3614C62B: call 0x3614c020 */ /* not lifted */ 3014 RECOMP_FLAGS_IN(); 3015 /* test LO8(eax), LO8(eax) */ /* 0x3614C630: test al, al */ 3016 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3017 _cf = 0; 3018 _flag_k = FK_NARROW(FK_TEST, 24); 3019 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614C63A; /* 0x3614C632: jne 0x3614c63a */ 3020 L_3614C634: 3021 edi = POP32_VAL(esp); /* 0x3614C634: pop edi */ 3022 esi = POP32_VAL(esp); /* 0x3614C635: pop esi */ 3023 ebp = POP32_VAL(esp); /* 0x3614C636: pop ebp */ 3024 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C637: ret 4 */ 3025 L_3614C63A: 3026 eax = MEM32(edi); /* 0x3614C63A: mov eax, dword ptr [edi] */ 3027 PUSH32(esp, ebx); /* 0x3614C63C: push ebx */ 3028 ebx = MEM32(esi); /* 0x3614C63D: mov ebx, dword ptr [esi] */ 3029 ecx = edi; /* 0x3614C63F: mov ecx, edi */ 3030 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3614C641: call dword ptr [eax + 0xc] */ 3031 RECOMP_FLAGS_IN(); 3032 PUSH32(esp, eax); /* 0x3614C644: push eax */ 3033 ecx = esi; /* 0x3614C645: mov ecx, esi */ 3034 RECOMP_ICALL(MEM32(ebx + 0xC)); /* 0x3614C647: call dword ptr [ebx + 0xc] */ 3035 RECOMP_FLAGS_IN(); 3036 ebx = POP32_VAL(esp); /* 0x3614C64A: pop ebx */ 3037 SET_LO8(eax, 1); /* 0x3614C64B: mov al, 1 */ 3038 edi = POP32_VAL(esp); /* 0x3614C64D: pop edi */ 3039 MEM8(esi + 0x3D) = (uint8_t)(LO8(eax)); /* 0x3614C64E: mov byte ptr [esi + 0x3d], al */ 3040 esi = POP32_VAL(esp); /* 0x3614C651: pop esi */ 3041 ebp = POP32_VAL(esp); /* 0x3614C652: pop ebp */ 3042 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C653: ret 4 */ 3043 RECOMP_REGS_OUT(); 3044 } 3045 3046 void sub_3614C660(void) { 3047 int _fpu_cmp = 0; 3048 uint32_t _cf = 0; 3049 int _df = 1; 3050 uint32_t _flag_k = FK_NONE; 3051 uint32_t _flag_a = 0, _flag_b = 0; 3052 uint32_t _itail_tgt = 0; 3053 RECOMP_REGS_LOCALS 3054 RECOMP_ENTER(0x3614C660u); 3055 3056 L_3614C660: 3057 PUSH32(esp, ebp); /* 0x3614C660: push ebp */ 3058 ebp = esp; /* 0x3614C661: mov ebp, esp */ 3059 PUSH32(esp, ebx); /* 0x3614C663: push ebx */ 3060 PUSH32(esp, esi); /* 0x3614C664: push esi */ 3061 PUSH32(esp, edi); /* 0x3614C665: push edi */ 3062 edi = MEM32(ebp + 0x8); /* 0x3614C666: mov edi, dword ptr [ebp + 8] */ 3063 esi = ecx; /* 0x3614C669: mov esi, ecx */ 3064 PUSH32(esp, edi); /* 0x3614C66B: push edi */ 3065 RECOMP_ICALL(MEM32(0x3616FB6C)); /* 0x3614C66C: call dword ptr [0x3616fb6c] */ 3066 RECOMP_FLAGS_IN(); 3067 ebx = MEM32(0x3616FAEC); /* 0x3614C672: mov ebx, dword ptr [0x3616faec] */ 3068 PUSH32(esp, 1); /* 0x3614C678: push 1 */ 3069 ecx = edi; /* 0x3614C67A: mov ecx, edi */ 3070 RECOMP_ICALL(ebx); /* 0x3614C67C: call ebx */ 3071 RECOMP_FLAGS_IN(); 3072 eax = MEM32(esi + 0x20); /* 0x3614C67E: mov eax, dword ptr [esi + 0x20] */ 3073 PUSH32(esp, eax); /* 0x3614C681: push eax */ 3074 ecx = edi; /* 0x3614C682: mov ecx, edi */ 3075 RECOMP_ICALL(ebx); /* 0x3614C684: call ebx */ 3076 RECOMP_FLAGS_IN(); 3077 ecx = MEM32(esi + 0x24); /* 0x3614C686: mov ecx, dword ptr [esi + 0x24] */ 3078 PUSH32(esp, ecx); /* 0x3614C689: push ecx */ 3079 ecx = edi; /* 0x3614C68A: mov ecx, edi */ 3080 RECOMP_ICALL(ebx); /* 0x3614C68C: call ebx */ 3081 RECOMP_FLAGS_IN(); 3082 edx = MEM32(esi + 0x28); /* 0x3614C68E: mov edx, dword ptr [esi + 0x28] */ 3083 PUSH32(esp, edx); /* 0x3614C691: push edx */ 3084 ecx = edi; /* 0x3614C692: mov ecx, edi */ 3085 RECOMP_ICALL(ebx); /* 0x3614C694: call ebx */ 3086 RECOMP_FLAGS_IN(); 3087 eax = MEM32(esi + 0x2C); /* 0x3614C696: mov eax, dword ptr [esi + 0x2c] */ 3088 PUSH32(esp, eax); /* 0x3614C699: push eax */ 3089 PUSH32(esp, edi); /* 0x3614C69A: push edi */ 3090 RECOMP_ICALL(0x3600B930u); /* 0x3614C69B: call 0x3600b930 */ /* not lifted */ 3091 RECOMP_FLAGS_IN(); 3092 ecx = MEM32(esi + 0x34); /* 0x3614C6A0: mov ecx, dword ptr [esi + 0x34] */ 3093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3095 esp = esp + 8; /* 0x3614C6A3: add esp, 8 */ 3096 _flag_k = FK_ADD; 3097 PUSH32(esp, ecx); /* 0x3614C6A6: push ecx */ 3098 ecx = edi; /* 0x3614C6A7: mov ecx, edi */ 3099 RECOMP_ICALL(ebx); /* 0x3614C6A9: call ebx */ 3100 RECOMP_FLAGS_IN(); 3101 PUSH32(esp, edi); /* 0x3614C6AB: push edi */ 3102 ecx = esi; /* 0x3614C6AC: mov ecx, esi */ 3103 RECOMP_ICALL(0x3614C570u); /* 0x3614C6AE: call 0x3614c570 */ /* not lifted */ 3104 RECOMP_FLAGS_IN(); 3105 ecx = eax; /* 0x3614C6B3: mov ecx, eax */ 3106 RECOMP_ICALL(0x3615C320u); /* 0x3614C6B5: call 0x3615c320 */ /* not lifted */ 3107 RECOMP_FLAGS_IN(); 3108 edi = POP32_VAL(esp); /* 0x3614C6BA: pop edi */ 3109 esi = POP32_VAL(esp); /* 0x3614C6BB: pop esi */ 3110 ebx = POP32_VAL(esp); /* 0x3614C6BC: pop ebx */ 3111 ebp = POP32_VAL(esp); /* 0x3614C6BD: pop ebp */ 3112 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C6BE: ret 4 */ 3113 RECOMP_REGS_OUT(); 3114 } 3115 3116 void sub_3614C6D0(void) { 3117 int _fpu_cmp = 0; 3118 uint32_t _cf = 0; 3119 int _df = 1; 3120 uint32_t _flag_k = FK_NONE; 3121 uint32_t _flag_a = 0, _flag_b = 0; 3122 uint32_t _itail_tgt = 0; 3123 RECOMP_REGS_LOCALS 3124 RECOMP_ENTER(0x3614C6D0u); 3125 3126 L_3614C6D0: 3127 PUSH32(esp, ebp); /* 0x3614C6D0: push ebp */ 3128 ebp = esp; /* 0x3614C6D1: mov ebp, esp */ 3129 PUSH32(esp, ebx); /* 0x3614C6D3: push ebx */ 3130 PUSH32(esp, esi); /* 0x3614C6D4: push esi */ 3131 PUSH32(esp, edi); /* 0x3614C6D5: push edi */ 3132 edi = MEM32(ebp + 0x8); /* 0x3614C6D6: mov edi, dword ptr [ebp + 8] */ 3133 esi = ecx; /* 0x3614C6D9: mov esi, ecx */ 3134 PUSH32(esp, edi); /* 0x3614C6DB: push edi */ 3135 RECOMP_ICALL(MEM32(0x3616FB38)); /* 0x3614C6DC: call dword ptr [0x3616fb38] */ 3136 RECOMP_FLAGS_IN(); 3137 ebx = MEM32(0x3616FA8C); /* 0x3614C6E2: mov ebx, dword ptr [0x3616fa8c] */ 3138 eax = ebp + 0x8; /* 0x3614C6E8: lea eax, [ebp + 8] */ 3139 PUSH32(esp, eax); /* 0x3614C6EB: push eax */ 3140 ecx = edi; /* 0x3614C6EC: mov ecx, edi */ 3141 RECOMP_ICALL(ebx); /* 0x3614C6EE: call ebx */ 3142 RECOMP_FLAGS_IN(); 3143 /* cmp MEM32(ebp + 0x8), 1 */ /* 0x3614C6F0: cmp dword ptr [ebp + 8], 1 */ 3144 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 3145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3146 _flag_k = FK_CMP; 3147 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614C6FF; /* 0x3614C6F4: je 0x3614c6ff */ 3148 L_3614C6F6: 3149 edi = POP32_VAL(esp); /* 0x3614C6F6: pop edi */ 3150 esi = POP32_VAL(esp); /* 0x3614C6F7: pop esi */ 3151 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3152 SET_LO8(eax, 0); /* 0x3614C6F8: xor al, al */ 3153 _cf = 0; 3154 _flag_k = FK_NARROW(FK_TEST, 24); 3155 ebx = POP32_VAL(esp); /* 0x3614C6FA: pop ebx */ 3156 ebp = POP32_VAL(esp); /* 0x3614C6FB: pop ebp */ 3157 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C6FC: ret 4 */ 3158 L_3614C6FF: 3159 ecx = esi + 0x20; /* 0x3614C6FF: lea ecx, [esi + 0x20] */ 3160 PUSH32(esp, ecx); /* 0x3614C702: push ecx */ 3161 ecx = edi; /* 0x3614C703: mov ecx, edi */ 3162 RECOMP_ICALL(ebx); /* 0x3614C705: call ebx */ 3163 RECOMP_FLAGS_IN(); 3164 edx = esi + 0x24; /* 0x3614C707: lea edx, [esi + 0x24] */ 3165 PUSH32(esp, edx); /* 0x3614C70A: push edx */ 3166 ecx = edi; /* 0x3614C70B: mov ecx, edi */ 3167 RECOMP_ICALL(ebx); /* 0x3614C70D: call ebx */ 3168 RECOMP_FLAGS_IN(); 3169 eax = esi + 0x28; /* 0x3614C70F: lea eax, [esi + 0x28] */ 3170 PUSH32(esp, eax); /* 0x3614C712: push eax */ 3171 ecx = edi; /* 0x3614C713: mov ecx, edi */ 3172 RECOMP_ICALL(ebx); /* 0x3614C715: call ebx */ 3173 RECOMP_FLAGS_IN(); 3174 ecx = MEM32(esi + 0x2C); /* 0x3614C717: mov ecx, dword ptr [esi + 0x2c] */ 3175 PUSH32(esp, ecx); /* 0x3614C71A: push ecx */ 3176 PUSH32(esp, edi); /* 0x3614C71B: push edi */ 3177 RECOMP_ICALL(0x3600B9B0u); /* 0x3614C71C: call 0x3600b9b0 */ /* not lifted */ 3178 RECOMP_FLAGS_IN(); 3179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3181 esp = esp + 8; /* 0x3614C721: add esp, 8 */ 3182 _flag_k = FK_ADD; 3183 edx = esi + 0x34; /* 0x3614C724: lea edx, [esi + 0x34] */ 3184 PUSH32(esp, edx); /* 0x3614C727: push edx */ 3185 ecx = edi; /* 0x3614C728: mov ecx, edi */ 3186 RECOMP_ICALL(ebx); /* 0x3614C72A: call ebx */ 3187 RECOMP_FLAGS_IN(); 3188 PUSH32(esp, edi); /* 0x3614C72C: push edi */ 3189 ecx = esi; /* 0x3614C72D: mov ecx, esi */ 3190 RECOMP_ICALL(0x3614C570u); /* 0x3614C72F: call 0x3614c570 */ /* not lifted */ 3191 RECOMP_FLAGS_IN(); 3192 ecx = eax; /* 0x3614C734: mov ecx, eax */ 3193 RECOMP_ICALL(0x3615C380u); /* 0x3614C736: call 0x3615c380 */ /* not lifted */ 3194 RECOMP_FLAGS_IN(); 3195 edi = POP32_VAL(esp); /* 0x3614C73B: pop edi */ 3196 esi = POP32_VAL(esp); /* 0x3614C73C: pop esi */ 3197 SET_LO8(eax, 1); /* 0x3614C73D: mov al, 1 */ 3198 ebx = POP32_VAL(esp); /* 0x3614C73F: pop ebx */ 3199 ebp = POP32_VAL(esp); /* 0x3614C740: pop ebp */ 3200 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614C741: ret 4 */ 3201 RECOMP_REGS_OUT(); 3202 } 3203 3204 void sub_3614C750(void) { 3205 int _fpu_cmp = 0; 3206 uint32_t _cf = 0; 3207 int _df = 1; 3208 uint32_t _flag_k = FK_NONE; 3209 uint32_t _flag_a = 0, _flag_b = 0; 3210 uint32_t _itail_tgt = 0; 3211 RECOMP_REGS_LOCALS 3212 RECOMP_ENTER(0x3614C750u); 3213 3214 L_3614C750: 3215 RECOMP_ICALL(0x3614C760u); /* 0x3614C750: call 0x3614c760 */ /* not lifted */ 3216 RECOMP_FLAGS_IN(); 3217 goto L_3614C770; /* 0x3614C755: jmp 0x3614c770 */ 3218 L_3614C770: 3219 PUSH32(esp, 0x3614C780u); /* 0x3614C770: push 0x3614c780 */ 3220 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C775: call 0x3615feb2 */ /* not lifted */ 3221 RECOMP_FLAGS_IN(); 3222 ecx = POP32_VAL(esp); /* 0x3614C77A: pop ecx */ 3223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C77B: ret */ 3224 RECOMP_REGS_OUT(); 3225 } 3226 3227 void sub_3614C760(void) { 3228 int _fpu_cmp = 0; 3229 uint32_t _cf = 0; 3230 int _df = 1; 3231 uint32_t _flag_k = FK_NONE; 3232 uint32_t _flag_a = 0, _flag_b = 0; 3233 uint32_t _itail_tgt = 0; 3234 RECOMP_REGS_LOCALS 3235 RECOMP_ENTER(0x3614C760u); 3236 3237 L_3614C760: 3238 ecx = 0x3630DA7Du; /* 0x3614C760: mov ecx, 0x3630da7d */ 3239 L_3614C765: 3240 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 3241 { RECOMP_REGS_OUT(); return; } /* end of function */ 3242 _ljump: 3243 switch (_itail_tgt) { 3244 case 0x3614C760u: goto L_3614C760; 3245 case 0x3614C765u: goto L_3614C765; 3246 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3247 } 3248 RECOMP_REGS_OUT(); 3249 } 3250 3251 void sub_3614C770(void) { 3252 int _fpu_cmp = 0; 3253 uint32_t _cf = 0; 3254 int _df = 1; 3255 uint32_t _flag_k = FK_NONE; 3256 uint32_t _flag_a = 0, _flag_b = 0; 3257 uint32_t _itail_tgt = 0; 3258 RECOMP_REGS_LOCALS 3259 RECOMP_ENTER(0x3614C770u); 3260 3261 L_3614C770: 3262 PUSH32(esp, 0x3614C780u); /* 0x3614C770: push 0x3614c780 */ 3263 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C775: call 0x3615feb2 */ /* not lifted */ 3264 RECOMP_FLAGS_IN(); 3265 ecx = POP32_VAL(esp); /* 0x3614C77A: pop ecx */ 3266 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C77B: ret */ 3267 RECOMP_REGS_OUT(); 3268 } 3269 3270 void sub_3614C780(void) { 3271 int _fpu_cmp = 0; 3272 uint32_t _cf = 0; 3273 int _df = 1; 3274 uint32_t _flag_k = FK_NONE; 3275 uint32_t _flag_a = 0, _flag_b = 0; 3276 uint32_t _itail_tgt = 0; 3277 RECOMP_REGS_LOCALS 3278 RECOMP_ENTER(0x3614C780u); 3279 3280 L_3614C780: 3281 ecx = 0x3630DA7Du; /* 0x3614C780: mov ecx, 0x3630da7d */ 3282 L_3614C785: 3283 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 3284 { RECOMP_REGS_OUT(); return; } /* end of function */ 3285 _ljump: 3286 switch (_itail_tgt) { 3287 case 0x3614C780u: goto L_3614C780; 3288 case 0x3614C785u: goto L_3614C785; 3289 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3290 } 3291 RECOMP_REGS_OUT(); 3292 } 3293 3294 void sub_3614C790(void) { 3295 int _fpu_cmp = 0; 3296 uint32_t _cf = 0; 3297 int _df = 1; 3298 uint32_t _flag_k = FK_NONE; 3299 uint32_t _flag_a = 0, _flag_b = 0; 3300 uint32_t _itail_tgt = 0; 3301 RECOMP_REGS_LOCALS 3302 RECOMP_ENTER(0x3614C790u); 3303 3304 L_3614C790: 3305 RECOMP_ICALL(0x3614C7A0u); /* 0x3614C790: call 0x3614c7a0 */ /* not lifted */ 3306 RECOMP_FLAGS_IN(); 3307 goto L_3614C7B0; /* 0x3614C795: jmp 0x3614c7b0 */ 3308 L_3614C7B0: 3309 PUSH32(esp, 0x3614C7C0u); /* 0x3614C7B0: push 0x3614c7c0 */ 3310 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C7B5: call 0x3615feb2 */ /* not lifted */ 3311 RECOMP_FLAGS_IN(); 3312 ecx = POP32_VAL(esp); /* 0x3614C7BA: pop ecx */ 3313 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C7BB: ret */ 3314 RECOMP_REGS_OUT(); 3315 } 3316 3317 void sub_3614C7A0(void) { 3318 int _fpu_cmp = 0; 3319 uint32_t _cf = 0; 3320 int _df = 1; 3321 uint32_t _flag_k = FK_NONE; 3322 uint32_t _flag_a = 0, _flag_b = 0; 3323 uint32_t _itail_tgt = 0; 3324 RECOMP_REGS_LOCALS 3325 RECOMP_ENTER(0x3614C7A0u); 3326 3327 L_3614C7A0: 3328 ecx = 0x3630DA7Cu; /* 0x3614C7A0: mov ecx, 0x3630da7c */ 3329 L_3614C7A5: 3330 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 3331 { RECOMP_REGS_OUT(); return; } /* end of function */ 3332 _ljump: 3333 switch (_itail_tgt) { 3334 case 0x3614C7A0u: goto L_3614C7A0; 3335 case 0x3614C7A5u: goto L_3614C7A5; 3336 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3337 } 3338 RECOMP_REGS_OUT(); 3339 } 3340 3341 void sub_3614C7B0(void) { 3342 int _fpu_cmp = 0; 3343 uint32_t _cf = 0; 3344 int _df = 1; 3345 uint32_t _flag_k = FK_NONE; 3346 uint32_t _flag_a = 0, _flag_b = 0; 3347 uint32_t _itail_tgt = 0; 3348 RECOMP_REGS_LOCALS 3349 RECOMP_ENTER(0x3614C7B0u); 3350 3351 L_3614C7B0: 3352 PUSH32(esp, 0x3614C7C0u); /* 0x3614C7B0: push 0x3614c7c0 */ 3353 RECOMP_ICALL(0x3615FEB2u); /* 0x3614C7B5: call 0x3615feb2 */ /* not lifted */ 3354 RECOMP_FLAGS_IN(); 3355 ecx = POP32_VAL(esp); /* 0x3614C7BA: pop ecx */ 3356 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C7BB: ret */ 3357 RECOMP_REGS_OUT(); 3358 } 3359 3360 void sub_3614C7C0(void) { 3361 int _fpu_cmp = 0; 3362 uint32_t _cf = 0; 3363 int _df = 1; 3364 uint32_t _flag_k = FK_NONE; 3365 uint32_t _flag_a = 0, _flag_b = 0; 3366 uint32_t _itail_tgt = 0; 3367 RECOMP_REGS_LOCALS 3368 RECOMP_ENTER(0x3614C7C0u); 3369 3370 L_3614C7C0: 3371 ecx = 0x3630DA7Cu; /* 0x3614C7C0: mov ecx, 0x3630da7c */ 3372 L_3614C7C5: 3373 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 3374 { RECOMP_REGS_OUT(); return; } /* end of function */ 3375 _ljump: 3376 switch (_itail_tgt) { 3377 case 0x3614C7C0u: goto L_3614C7C0; 3378 case 0x3614C7C5u: goto L_3614C7C5; 3379 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3380 } 3381 RECOMP_REGS_OUT(); 3382 } 3383 3384 void sub_3614C7D0(void) { 3385 int _fpu_cmp = 0; 3386 uint32_t _cf = 0; 3387 int _df = 1; 3388 uint32_t _flag_k = FK_NONE; 3389 uint32_t _flag_a = 0, _flag_b = 0; 3390 uint32_t _itail_tgt = 0; 3391 RECOMP_REGS_LOCALS 3392 RECOMP_ENTER(0x3614C7D0u); 3393 3394 L_3614C7D0: 3395 goto L_3614C7E0; /* 0x3614C7D0: jmp 0x3614c7e0 */ 3396 L_3614C7E0: 3397 MEM32(0x3630DA64) = 0x361B2FF4u; /* 0x3614C7E0: mov dword ptr [0x3630da64], 0x361b2ff4 */ 3398 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C7EA: ret */ 3399 RECOMP_REGS_OUT(); 3400 } 3401 3402 void sub_3614C7E0(void) { 3403 int _fpu_cmp = 0; 3404 uint32_t _cf = 0; 3405 int _df = 1; 3406 uint32_t _flag_k = FK_NONE; 3407 uint32_t _flag_a = 0, _flag_b = 0; 3408 uint32_t _itail_tgt = 0; 3409 RECOMP_REGS_LOCALS 3410 RECOMP_ENTER(0x3614C7E0u); 3411 3412 L_3614C7E0: 3413 MEM32(0x3630DA64) = 0x361B2FF4u; /* 0x3614C7E0: mov dword ptr [0x3630da64], 0x361b2ff4 */ 3414 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C7EA: ret */ 3415 RECOMP_REGS_OUT(); 3416 } 3417 3418 void sub_3614C7F0(void) { 3419 int _fpu_cmp = 0; 3420 uint32_t _cf = 0; 3421 int _df = 1; 3422 uint32_t _flag_k = FK_NONE; 3423 uint32_t _flag_a = 0, _flag_b = 0; 3424 uint32_t _itail_tgt = 0; 3425 RECOMP_REGS_LOCALS 3426 RECOMP_ENTER(0x3614C7F0u); 3427 3428 L_3614C7F0: 3429 goto L_3614C800; /* 0x3614C7F0: jmp 0x3614c800 */ 3430 L_3614C800: 3431 MEM32(0x3630DA88) = 0x361B3028u; /* 0x3614C800: mov dword ptr [0x3630da88], 0x361b3028 */ 3432 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C80A: ret */ 3433 RECOMP_REGS_OUT(); 3434 } 3435 3436 void sub_3614C800(void) { 3437 int _fpu_cmp = 0; 3438 uint32_t _cf = 0; 3439 int _df = 1; 3440 uint32_t _flag_k = FK_NONE; 3441 uint32_t _flag_a = 0, _flag_b = 0; 3442 uint32_t _itail_tgt = 0; 3443 RECOMP_REGS_LOCALS 3444 RECOMP_ENTER(0x3614C800u); 3445 3446 L_3614C800: 3447 MEM32(0x3630DA88) = 0x361B3028u; /* 0x3614C800: mov dword ptr [0x3630da88], 0x361b3028 */ 3448 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C80A: ret */ 3449 RECOMP_REGS_OUT(); 3450 } 3451 3452 void sub_3614C810(void) { 3453 int _fpu_cmp = 0; 3454 uint32_t _cf = 0; 3455 int _df = 1; 3456 uint32_t _flag_k = FK_NONE; 3457 uint32_t _flag_a = 0, _flag_b = 0; 3458 uint32_t _itail_tgt = 0; 3459 RECOMP_REGS_LOCALS 3460 RECOMP_ENTER(0x3614C810u); 3461 3462 L_3614C810: 3463 goto L_3614C820; /* 0x3614C810: jmp 0x3614c820 */ 3464 L_3614C820: 3465 MEM32(0x3630DA84) = 0x361B3064u; /* 0x3614C820: mov dword ptr [0x3630da84], 0x361b3064 */ 3466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C82A: ret */ 3467 RECOMP_REGS_OUT(); 3468 } 3469 3470 void sub_3614C820(void) { 3471 int _fpu_cmp = 0; 3472 uint32_t _cf = 0; 3473 int _df = 1; 3474 uint32_t _flag_k = FK_NONE; 3475 uint32_t _flag_a = 0, _flag_b = 0; 3476 uint32_t _itail_tgt = 0; 3477 RECOMP_REGS_LOCALS 3478 RECOMP_ENTER(0x3614C820u); 3479 3480 L_3614C820: 3481 MEM32(0x3630DA84) = 0x361B3064u; /* 0x3614C820: mov dword ptr [0x3630da84], 0x361b3064 */ 3482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C82A: ret */ 3483 RECOMP_REGS_OUT(); 3484 } 3485 3486 void sub_3614C830(void) { 3487 int _fpu_cmp = 0; 3488 uint32_t _cf = 0; 3489 int _df = 1; 3490 uint32_t _flag_k = FK_NONE; 3491 uint32_t _flag_a = 0, _flag_b = 0; 3492 uint32_t _itail_tgt = 0; 3493 RECOMP_REGS_LOCALS 3494 RECOMP_ENTER(0x3614C830u); 3495 3496 L_3614C830: 3497 goto L_3614C840; /* 0x3614C830: jmp 0x3614c840 */ 3498 L_3614C840: 3499 MEM32(0x3630DAA4) = 0x361B3098u; /* 0x3614C840: mov dword ptr [0x3630daa4], 0x361b3098 */ 3500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C84A: ret */ 3501 RECOMP_REGS_OUT(); 3502 } 3503 3504 void sub_3614C840(void) { 3505 int _fpu_cmp = 0; 3506 uint32_t _cf = 0; 3507 int _df = 1; 3508 uint32_t _flag_k = FK_NONE; 3509 uint32_t _flag_a = 0, _flag_b = 0; 3510 uint32_t _itail_tgt = 0; 3511 RECOMP_REGS_LOCALS 3512 RECOMP_ENTER(0x3614C840u); 3513 3514 L_3614C840: 3515 MEM32(0x3630DAA4) = 0x361B3098u; /* 0x3614C840: mov dword ptr [0x3630daa4], 0x361b3098 */ 3516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C84A: ret */ 3517 RECOMP_REGS_OUT(); 3518 } 3519 3520 void sub_3614C850(void) { 3521 int _fpu_cmp = 0; 3522 uint32_t _cf = 0; 3523 int _df = 1; 3524 uint32_t _flag_k = FK_NONE; 3525 uint32_t _flag_a = 0, _flag_b = 0; 3526 uint32_t _itail_tgt = 0; 3527 RECOMP_REGS_LOCALS 3528 RECOMP_ENTER(0x3614C850u); 3529 3530 L_3614C850: 3531 goto L_3614C860; /* 0x3614C850: jmp 0x3614c860 */ 3532 L_3614C860: 3533 MEM32(0x3630DA74) = 0x361B30CCu; /* 0x3614C860: mov dword ptr [0x3630da74], 0x361b30cc */ 3534 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C86A: ret */ 3535 RECOMP_REGS_OUT(); 3536 } 3537 3538 void sub_3614C860(void) { 3539 int _fpu_cmp = 0; 3540 uint32_t _cf = 0; 3541 int _df = 1; 3542 uint32_t _flag_k = FK_NONE; 3543 uint32_t _flag_a = 0, _flag_b = 0; 3544 uint32_t _itail_tgt = 0; 3545 RECOMP_REGS_LOCALS 3546 RECOMP_ENTER(0x3614C860u); 3547 3548 L_3614C860: 3549 MEM32(0x3630DA74) = 0x361B30CCu; /* 0x3614C860: mov dword ptr [0x3630da74], 0x361b30cc */ 3550 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C86A: ret */ 3551 RECOMP_REGS_OUT(); 3552 } 3553 3554 void sub_3614C870(void) { 3555 int _fpu_cmp = 0; 3556 uint32_t _cf = 0; 3557 int _df = 1; 3558 uint32_t _flag_k = FK_NONE; 3559 uint32_t _flag_a = 0, _flag_b = 0; 3560 uint32_t _itail_tgt = 0; 3561 RECOMP_REGS_LOCALS 3562 RECOMP_ENTER(0x3614C870u); 3563 3564 L_3614C870: 3565 goto L_3614C880; /* 0x3614C870: jmp 0x3614c880 */ 3566 L_3614C880: 3567 MEM32(0x3630DA9C) = 0x361B3100u; /* 0x3614C880: mov dword ptr [0x3630da9c], 0x361b3100 */ 3568 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C88A: ret */ 3569 RECOMP_REGS_OUT(); 3570 } 3571 3572 void sub_3614C880(void) { 3573 int _fpu_cmp = 0; 3574 uint32_t _cf = 0; 3575 int _df = 1; 3576 uint32_t _flag_k = FK_NONE; 3577 uint32_t _flag_a = 0, _flag_b = 0; 3578 uint32_t _itail_tgt = 0; 3579 RECOMP_REGS_LOCALS 3580 RECOMP_ENTER(0x3614C880u); 3581 3582 L_3614C880: 3583 MEM32(0x3630DA9C) = 0x361B3100u; /* 0x3614C880: mov dword ptr [0x3630da9c], 0x361b3100 */ 3584 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C88A: ret */ 3585 RECOMP_REGS_OUT(); 3586 } 3587 3588 void sub_3614C890(void) { 3589 int _fpu_cmp = 0; 3590 uint32_t _cf = 0; 3591 int _df = 1; 3592 uint32_t _flag_k = FK_NONE; 3593 uint32_t _flag_a = 0, _flag_b = 0; 3594 uint32_t _itail_tgt = 0; 3595 RECOMP_REGS_LOCALS 3596 RECOMP_ENTER(0x3614C890u); 3597 3598 L_3614C890: 3599 goto L_3614C8A0; /* 0x3614C890: jmp 0x3614c8a0 */ 3600 L_3614C8A0: 3601 MEM32(0x3630DA90) = 0x361B3138u; /* 0x3614C8A0: mov dword ptr [0x3630da90], 0x361b3138 */ 3602 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C8AA: ret */ 3603 RECOMP_REGS_OUT(); 3604 } 3605 3606 void sub_3614C8A0(void) { 3607 int _fpu_cmp = 0; 3608 uint32_t _cf = 0; 3609 int _df = 1; 3610 uint32_t _flag_k = FK_NONE; 3611 uint32_t _flag_a = 0, _flag_b = 0; 3612 uint32_t _itail_tgt = 0; 3613 RECOMP_REGS_LOCALS 3614 RECOMP_ENTER(0x3614C8A0u); 3615 3616 L_3614C8A0: 3617 MEM32(0x3630DA90) = 0x361B3138u; /* 0x3614C8A0: mov dword ptr [0x3630da90], 0x361b3138 */ 3618 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C8AA: ret */ 3619 RECOMP_REGS_OUT(); 3620 } 3621 3622 void sub_3614C8B0(void) { 3623 int _fpu_cmp = 0; 3624 uint32_t _cf = 0; 3625 int _df = 1; 3626 uint32_t _flag_k = FK_NONE; 3627 uint32_t _flag_a = 0, _flag_b = 0; 3628 uint32_t _itail_tgt = 0; 3629 RECOMP_REGS_LOCALS 3630 RECOMP_ENTER(0x3614C8B0u); 3631 3632 L_3614C8B0: 3633 goto L_3614C8C0; /* 0x3614C8B0: jmp 0x3614c8c0 */ 3634 L_3614C8C0: 3635 MEM32(0x3630DA98) = 0x361B57A8u; /* 0x3614C8C0: mov dword ptr [0x3630da98], 0x361b57a8 */ 3636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C8CA: ret */ 3637 RECOMP_REGS_OUT(); 3638 } 3639 3640 void sub_3614C8C0(void) { 3641 int _fpu_cmp = 0; 3642 uint32_t _cf = 0; 3643 int _df = 1; 3644 uint32_t _flag_k = FK_NONE; 3645 uint32_t _flag_a = 0, _flag_b = 0; 3646 uint32_t _itail_tgt = 0; 3647 RECOMP_REGS_LOCALS 3648 RECOMP_ENTER(0x3614C8C0u); 3649 3650 L_3614C8C0: 3651 MEM32(0x3630DA98) = 0x361B57A8u; /* 0x3614C8C0: mov dword ptr [0x3630da98], 0x361b57a8 */ 3652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C8CA: ret */ 3653 RECOMP_REGS_OUT(); 3654 } 3655 3656 void sub_3614C8D0(void) { 3657 int _fpu_cmp = 0; 3658 uint32_t _cf = 0; 3659 int _df = 1; 3660 uint32_t _flag_k = FK_NONE; 3661 uint32_t _flag_a = 0, _flag_b = 0; 3662 uint32_t _itail_tgt = 0; 3663 RECOMP_REGS_LOCALS 3664 RECOMP_ENTER(0x3614C8D0u); 3665 3666 L_3614C8D0: 3667 goto L_3614C8E0; /* 0x3614C8D0: jmp 0x3614c8e0 */ 3668 L_3614C8E0: 3669 MEM32(0x3630DA80) = 0x361B57E0u; /* 0x3614C8E0: mov dword ptr [0x3630da80], 0x361b57e0 */ 3670 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C8EA: ret */ 3671 RECOMP_REGS_OUT(); 3672 } 3673 3674 void sub_3614C8E0(void) { 3675 int _fpu_cmp = 0; 3676 uint32_t _cf = 0; 3677 int _df = 1; 3678 uint32_t _flag_k = FK_NONE; 3679 uint32_t _flag_a = 0, _flag_b = 0; 3680 uint32_t _itail_tgt = 0; 3681 RECOMP_REGS_LOCALS 3682 RECOMP_ENTER(0x3614C8E0u); 3683 3684 L_3614C8E0: 3685 MEM32(0x3630DA80) = 0x361B57E0u; /* 0x3614C8E0: mov dword ptr [0x3630da80], 0x361b57e0 */ 3686 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C8EA: ret */ 3687 RECOMP_REGS_OUT(); 3688 } 3689 3690 void sub_3614C8F0(void) { 3691 int _fpu_cmp = 0; 3692 uint32_t _cf = 0; 3693 int _df = 1; 3694 uint32_t _flag_k = FK_NONE; 3695 uint32_t _flag_a = 0, _flag_b = 0; 3696 uint32_t _itail_tgt = 0; 3697 RECOMP_REGS_LOCALS 3698 RECOMP_ENTER(0x3614C8F0u); 3699 3700 L_3614C8F0: 3701 goto L_3614C900; /* 0x3614C8F0: jmp 0x3614c900 */ 3702 L_3614C900: 3703 MEM32(0x3630DA70) = 0x361B5814u; /* 0x3614C900: mov dword ptr [0x3630da70], 0x361b5814 */ 3704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C90A: ret */ 3705 RECOMP_REGS_OUT(); 3706 } 3707 3708 void sub_3614C900(void) { 3709 int _fpu_cmp = 0; 3710 uint32_t _cf = 0; 3711 int _df = 1; 3712 uint32_t _flag_k = FK_NONE; 3713 uint32_t _flag_a = 0, _flag_b = 0; 3714 uint32_t _itail_tgt = 0; 3715 RECOMP_REGS_LOCALS 3716 RECOMP_ENTER(0x3614C900u); 3717 3718 L_3614C900: 3719 MEM32(0x3630DA70) = 0x361B5814u; /* 0x3614C900: mov dword ptr [0x3630da70], 0x361b5814 */ 3720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C90A: ret */ 3721 RECOMP_REGS_OUT(); 3722 } 3723 3724 void sub_3614C910(void) { 3725 int _fpu_cmp = 0; 3726 uint32_t _cf = 0; 3727 int _df = 1; 3728 uint32_t _flag_k = FK_NONE; 3729 uint32_t _flag_a = 0, _flag_b = 0; 3730 uint32_t _itail_tgt = 0; 3731 RECOMP_REGS_LOCALS 3732 RECOMP_ENTER(0x3614C910u); 3733 3734 L_3614C910: 3735 goto L_3614C920; /* 0x3614C910: jmp 0x3614c920 */ 3736 L_3614C920: 3737 MEM32(0x3630DAA0) = 0x361B5850u; /* 0x3614C920: mov dword ptr [0x3630daa0], 0x361b5850 */ 3738 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C92A: ret */ 3739 RECOMP_REGS_OUT(); 3740 } 3741 3742 void sub_3614C920(void) { 3743 int _fpu_cmp = 0; 3744 uint32_t _cf = 0; 3745 int _df = 1; 3746 uint32_t _flag_k = FK_NONE; 3747 uint32_t _flag_a = 0, _flag_b = 0; 3748 uint32_t _itail_tgt = 0; 3749 RECOMP_REGS_LOCALS 3750 RECOMP_ENTER(0x3614C920u); 3751 3752 L_3614C920: 3753 MEM32(0x3630DAA0) = 0x361B5850u; /* 0x3614C920: mov dword ptr [0x3630daa0], 0x361b5850 */ 3754 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C92A: ret */ 3755 RECOMP_REGS_OUT(); 3756 } 3757 3758 void sub_3614C930(void) { 3759 int _fpu_cmp = 0; 3760 uint32_t _cf = 0; 3761 int _df = 1; 3762 uint32_t _flag_k = FK_NONE; 3763 uint32_t _flag_a = 0, _flag_b = 0; 3764 uint32_t _itail_tgt = 0; 3765 RECOMP_REGS_LOCALS 3766 RECOMP_ENTER(0x3614C930u); 3767 3768 L_3614C930: 3769 goto L_3614C940; /* 0x3614C930: jmp 0x3614c940 */ 3770 L_3614C940: 3771 MEM32(0x3630DA8C) = 0x361B5888u; /* 0x3614C940: mov dword ptr [0x3630da8c], 0x361b5888 */ 3772 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C94A: ret */ 3773 RECOMP_REGS_OUT(); 3774 } 3775 3776 void sub_3614C940(void) { 3777 int _fpu_cmp = 0; 3778 uint32_t _cf = 0; 3779 int _df = 1; 3780 uint32_t _flag_k = FK_NONE; 3781 uint32_t _flag_a = 0, _flag_b = 0; 3782 uint32_t _itail_tgt = 0; 3783 RECOMP_REGS_LOCALS 3784 RECOMP_ENTER(0x3614C940u); 3785 3786 L_3614C940: 3787 MEM32(0x3630DA8C) = 0x361B5888u; /* 0x3614C940: mov dword ptr [0x3630da8c], 0x361b5888 */ 3788 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C94A: ret */ 3789 RECOMP_REGS_OUT(); 3790 } 3791 3792 void sub_3614C950(void) { 3793 int _fpu_cmp = 0; 3794 uint32_t _cf = 0; 3795 int _df = 1; 3796 uint32_t _flag_k = FK_NONE; 3797 uint32_t _flag_a = 0, _flag_b = 0; 3798 uint32_t _itail_tgt = 0; 3799 RECOMP_REGS_LOCALS 3800 RECOMP_ENTER(0x3614C950u); 3801 3802 L_3614C950: 3803 goto L_3614C960; /* 0x3614C950: jmp 0x3614c960 */ 3804 L_3614C960: 3805 MEM32(0x3630DA78) = 0x361B5908u; /* 0x3614C960: mov dword ptr [0x3630da78], 0x361b5908 */ 3806 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C96A: ret */ 3807 RECOMP_REGS_OUT(); 3808 } 3809 3810 void sub_3614C960(void) { 3811 int _fpu_cmp = 0; 3812 uint32_t _cf = 0; 3813 int _df = 1; 3814 uint32_t _flag_k = FK_NONE; 3815 uint32_t _flag_a = 0, _flag_b = 0; 3816 uint32_t _itail_tgt = 0; 3817 RECOMP_REGS_LOCALS 3818 RECOMP_ENTER(0x3614C960u); 3819 3820 L_3614C960: 3821 MEM32(0x3630DA78) = 0x361B5908u; /* 0x3614C960: mov dword ptr [0x3630da78], 0x361b5908 */ 3822 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C96A: ret */ 3823 RECOMP_REGS_OUT(); 3824 } 3825 3826 void sub_3614C970(void) { 3827 int _fpu_cmp = 0; 3828 uint32_t _cf = 0; 3829 int _df = 1; 3830 uint32_t _flag_k = FK_NONE; 3831 uint32_t _flag_a = 0, _flag_b = 0; 3832 uint32_t _itail_tgt = 0; 3833 RECOMP_REGS_LOCALS 3834 RECOMP_ENTER(0x3614C970u); 3835 3836 L_3614C970: 3837 goto L_3614C980; /* 0x3614C970: jmp 0x3614c980 */ 3838 L_3614C980: 3839 MEM32(0x3630DA6C) = 0x361B5944u; /* 0x3614C980: mov dword ptr [0x3630da6c], 0x361b5944 */ 3840 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C98A: ret */ 3841 RECOMP_REGS_OUT(); 3842 } 3843 3844 void sub_3614C980(void) { 3845 int _fpu_cmp = 0; 3846 uint32_t _cf = 0; 3847 int _df = 1; 3848 uint32_t _flag_k = FK_NONE; 3849 uint32_t _flag_a = 0, _flag_b = 0; 3850 uint32_t _itail_tgt = 0; 3851 RECOMP_REGS_LOCALS 3852 RECOMP_ENTER(0x3614C980u); 3853 3854 L_3614C980: 3855 MEM32(0x3630DA6C) = 0x361B5944u; /* 0x3614C980: mov dword ptr [0x3630da6c], 0x361b5944 */ 3856 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C98A: ret */ 3857 RECOMP_REGS_OUT(); 3858 } 3859 3860 void sub_3614C990(void) { 3861 int _fpu_cmp = 0; 3862 uint32_t _cf = 0; 3863 int _df = 1; 3864 uint32_t _flag_k = FK_NONE; 3865 uint32_t _flag_a = 0, _flag_b = 0; 3866 uint32_t _itail_tgt = 0; 3867 RECOMP_REGS_LOCALS 3868 RECOMP_ENTER(0x3614C990u); 3869 3870 L_3614C990: 3871 goto L_3614C9A0; /* 0x3614C990: jmp 0x3614c9a0 */ 3872 L_3614C9A0: 3873 MEM32(0x3630DA94) = 0x361B5978u; /* 0x3614C9A0: mov dword ptr [0x3630da94], 0x361b5978 */ 3874 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C9AA: ret */ 3875 RECOMP_REGS_OUT(); 3876 } 3877 3878 void sub_3614C9A0(void) { 3879 int _fpu_cmp = 0; 3880 uint32_t _cf = 0; 3881 int _df = 1; 3882 uint32_t _flag_k = FK_NONE; 3883 uint32_t _flag_a = 0, _flag_b = 0; 3884 uint32_t _itail_tgt = 0; 3885 RECOMP_REGS_LOCALS 3886 RECOMP_ENTER(0x3614C9A0u); 3887 3888 L_3614C9A0: 3889 MEM32(0x3630DA94) = 0x361B5978u; /* 0x3614C9A0: mov dword ptr [0x3630da94], 0x361b5978 */ 3890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C9AA: ret */ 3891 RECOMP_REGS_OUT(); 3892 } 3893 3894 void sub_3614C9B0(void) { 3895 int _fpu_cmp = 0; 3896 uint32_t _cf = 0; 3897 int _df = 1; 3898 uint32_t _flag_k = FK_NONE; 3899 uint32_t _flag_a = 0, _flag_b = 0; 3900 uint32_t _itail_tgt = 0; 3901 RECOMP_REGS_LOCALS 3902 RECOMP_ENTER(0x3614C9B0u); 3903 3904 L_3614C9B0: 3905 goto L_3614C9C0; /* 0x3614C9B0: jmp 0x3614c9c0 */ 3906 L_3614C9C0: 3907 MEM32(0x3630DA68) = 0x361B59ACu; /* 0x3614C9C0: mov dword ptr [0x3630da68], 0x361b59ac */ 3908 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C9CA: ret */ 3909 RECOMP_REGS_OUT(); 3910 } 3911 3912 void sub_3614C9C0(void) { 3913 int _fpu_cmp = 0; 3914 uint32_t _cf = 0; 3915 int _df = 1; 3916 uint32_t _flag_k = FK_NONE; 3917 uint32_t _flag_a = 0, _flag_b = 0; 3918 uint32_t _itail_tgt = 0; 3919 RECOMP_REGS_LOCALS 3920 RECOMP_ENTER(0x3614C9C0u); 3921 3922 L_3614C9C0: 3923 MEM32(0x3630DA68) = 0x361B59ACu; /* 0x3614C9C0: mov dword ptr [0x3630da68], 0x361b59ac */ 3924 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614C9CA: ret */ 3925 RECOMP_REGS_OUT(); 3926 } 3927 3928 void sub_3614C9D0(void) { 3929 int _fpu_cmp = 0; 3930 uint32_t _cf = 0; 3931 int _df = 1; 3932 uint32_t _flag_k = FK_NONE; 3933 uint32_t _flag_a = 0, _flag_b = 0; 3934 uint32_t _itail_tgt = 0; 3935 RECOMP_REGS_LOCALS 3936 RECOMP_ENTER(0x3614C9D0u); 3937 3938 L_3614C9D0: 3939 PUSH32(esp, ebp); /* 0x3614C9D0: push ebp */ 3940 ebp = esp; /* 0x3614C9D1: mov ebp, esp */ 3941 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614C9D3: push -1 */ 3942 PUSH32(esp, 0x3616D294u); /* 0x3614C9D5: push 0x3616d294 */ 3943 eax = MEM32(FS_BASE + (0)); /* 0x3614C9DA: mov eax, dword ptr fs:[0] */ 3944 PUSH32(esp, eax); /* 0x3614C9E0: push eax */ 3945 MEM32(FS_BASE + (0)) = esp; /* 0x3614C9E1: mov dword ptr fs:[0], esp */ 3946 PUSH32(esp, ecx); /* 0x3614C9E8: push ecx */ 3947 eax = MEM32(ebp + 0x8); /* 0x3614C9E9: mov eax, dword ptr [ebp + 8] */ 3948 PUSH32(esp, esi); /* 0x3614C9EC: push esi */ 3949 PUSH32(esp, edi); /* 0x3614C9ED: push edi */ 3950 esi = ecx; /* 0x3614C9EE: mov esi, ecx */ 3951 PUSH32(esp, eax); /* 0x3614C9F0: push eax */ 3952 MEM32(ebp + (-0x10)) = esi; /* 0x3614C9F1: mov dword ptr [ebp - 0x10], esi */ 3953 RECOMP_ICALL(MEM32(0x3616FEB8)); /* 0x3614C9F4: call dword ptr [0x3616feb8] */ 3954 RECOMP_FLAGS_IN(); 3955 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3956 edi = 0; /* 0x3614C9FA: xor edi, edi */ 3957 _cf = 0; 3958 _flag_k = FK_TEST; 3959 PUSH32(esp, 0x18u); /* 0x3614C9FC: push 0x18 */ 3960 MEM32(ebp + (-0x4)) = edi; /* 0x3614C9FE: mov dword ptr [ebp - 4], edi */ 3961 MEM32(esi + 0xAC) = edi; /* 0x3614CA01: mov dword ptr [esi + 0xac], edi */ 3962 MEM32(esi + 0xB0) = edi; /* 0x3614CA07: mov dword ptr [esi + 0xb0], edi */ 3963 MEM32(esi + 0xB4) = edi; /* 0x3614CA0D: mov dword ptr [esi + 0xb4], edi */ 3964 MEM32(esi + 0xB8) = edi; /* 0x3614CA13: mov dword ptr [esi + 0xb8], edi */ 3965 MEM32(esi + 0xBC) = edi; /* 0x3614CA19: mov dword ptr [esi + 0xbc], edi */ 3966 MEM32(esi + 0xC8) = edi; /* 0x3614CA1F: mov dword ptr [esi + 0xc8], edi */ 3967 MEM32(esi + 0xCC) = edi; /* 0x3614CA25: mov dword ptr [esi + 0xcc], edi */ 3968 MEM32(esi + 0xD0) = edi; /* 0x3614CA2B: mov dword ptr [esi + 0xd0], edi */ 3969 MEM32(esi + 0xD4) = edi; /* 0x3614CA31: mov dword ptr [esi + 0xd4], edi */ 3970 MEM32(esi + 0xD8) = edi; /* 0x3614CA37: mov dword ptr [esi + 0xd8], edi */ 3971 MEM32(esi + 0xDC) = edi; /* 0x3614CA3D: mov dword ptr [esi + 0xdc], edi */ 3972 MEM32(esi + 0xE0) = edi; /* 0x3614CA43: mov dword ptr [esi + 0xe0], edi */ 3973 MEM32(esi + 0xE4) = edi; /* 0x3614CA49: mov dword ptr [esi + 0xe4], edi */ 3974 MEM32(esi + 0xE8) = edi; /* 0x3614CA4F: mov dword ptr [esi + 0xe8], edi */ 3975 MEM32(esi) = 0x361788F0u; /* 0x3614CA55: mov dword ptr [esi], 0x361788f0 */ 3976 RECOMP_ICALL(0x3615FD6Au); /* 0x3614CA5B: call 0x3615fd6a */ /* not lifted */ 3977 RECOMP_FLAGS_IN(); 3978 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3980 esp = esp + 4; /* 0x3614CA60: add esp, 4 */ 3981 _flag_k = FK_ADD; 3982 MEM32(ebp + 0x8) = eax; /* 0x3614CA63: mov dword ptr [ebp + 8], eax */ 3983 /* cmp eax, edi */ /* 0x3614CA66: cmp eax, edi */ 3984 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3986 _flag_k = FK_CMP; 3987 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3614CA68: mov byte ptr [ebp - 4], 1 */ 3988 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CA8F; /* 0x3614CA6C: je 0x3614ca8f */ 3989 L_3614CA6E: 3990 ecx = eax; /* 0x3614CA6E: mov ecx, eax */ 3991 RECOMP_ICALL(0x3615C1C0u); /* 0x3614CA70: call 0x3615c1c0 */ /* not lifted */ 3992 RECOMP_FLAGS_IN(); 3993 MEM32(esi + 0xE0) = eax; /* 0x3614CA75: mov dword ptr [esi + 0xe0], eax */ 3994 edi = POP32_VAL(esp); /* 0x3614CA7B: pop edi */ 3995 eax = esi; /* 0x3614CA7C: mov eax, esi */ 3996 esi = POP32_VAL(esp); /* 0x3614CA7E: pop esi */ 3997 ecx = MEM32(ebp + (-0xC)); /* 0x3614CA7F: mov ecx, dword ptr [ebp - 0xc] */ 3998 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CA82: mov dword ptr fs:[0], ecx */ 3999 esp = ebp; /* 0x3614CA89: mov esp, ebp */ 4000 ebp = POP32_VAL(esp); /* 0x3614CA8B: pop ebp */ 4001 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CA8C: ret 4 */ 4002 L_3614CA8F: 4003 ecx = MEM32(ebp + (-0xC)); /* 0x3614CA8F: mov ecx, dword ptr [ebp - 0xc] */ 4004 MEM32(esi + 0xE0) = edi; /* 0x3614CA92: mov dword ptr [esi + 0xe0], edi */ 4005 edi = POP32_VAL(esp); /* 0x3614CA98: pop edi */ 4006 eax = esi; /* 0x3614CA99: mov eax, esi */ 4007 esi = POP32_VAL(esp); /* 0x3614CA9B: pop esi */ 4008 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CA9C: mov dword ptr fs:[0], ecx */ 4009 esp = ebp; /* 0x3614CAA3: mov esp, ebp */ 4010 ebp = POP32_VAL(esp); /* 0x3614CAA5: pop ebp */ 4011 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CAA6: ret 4 */ 4012 RECOMP_REGS_OUT(); 4013 } 4014 4015 void sub_3614CAB0(void) { 4016 int _fpu_cmp = 0; 4017 uint32_t _cf = 0; 4018 int _df = 1; 4019 uint32_t _flag_k = FK_NONE; 4020 uint32_t _flag_a = 0, _flag_b = 0; 4021 uint32_t _itail_tgt = 0; 4022 RECOMP_REGS_LOCALS 4023 RECOMP_ENTER(0x3614CAB0u); 4024 4025 L_3614CAB0: 4026 PUSH32(esp, ebp); /* 0x3614CAB0: push ebp */ 4027 ebp = esp; /* 0x3614CAB1: mov ebp, esp */ 4028 PUSH32(esp, ebx); /* 0x3614CAB3: push ebx */ 4029 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3614CAB4: mov bl, byte ptr [ebp + 8] */ 4030 /* test LO8(ebx), 2 */ /* 0x3614CAB7: test bl, 2 */ 4031 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4032 _cf = 0; 4033 _flag_k = FK_NARROW(FK_TEST, 24); 4034 PUSH32(esp, esi); /* 0x3614CABA: push esi */ 4035 esi = ecx; /* 0x3614CABB: mov esi, ecx */ 4036 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CAEE; /* 0x3614CABD: je 0x3614caee */ 4037 L_3614CABF: 4038 eax = MEM32(esi + (-0x4)); /* 0x3614CABF: mov eax, dword ptr [esi - 4] */ 4039 PUSH32(esp, edi); /* 0x3614CAC2: push edi */ 4040 PUSH32(esp, 0x3614CBB0u); /* 0x3614CAC3: push 0x3614cbb0 */ 4041 edi = esi + (-0x4); /* 0x3614CAC8: lea edi, [esi - 4] */ 4042 PUSH32(esp, eax); /* 0x3614CACB: push eax */ 4043 PUSH32(esp, 0xF0u); /* 0x3614CACC: push 0xf0 */ 4044 PUSH32(esp, esi); /* 0x3614CAD1: push esi */ 4045 RECOMP_ICALL(0x3615FD92u); /* 0x3614CAD2: call 0x3615fd92 */ /* not lifted */ 4046 RECOMP_FLAGS_IN(); 4047 /* test LO8(ebx), 1 */ /* 0x3614CAD7: test bl, 1 */ 4048 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4049 _cf = 0; 4050 _flag_k = FK_NARROW(FK_TEST, 24); 4051 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CAE5; /* 0x3614CADA: je 0x3614cae5 */ 4052 L_3614CADC: 4053 PUSH32(esp, edi); /* 0x3614CADC: push edi */ 4054 RECOMP_ICALL(0x3615FCC4u); /* 0x3614CADD: call 0x3615fcc4 */ /* not lifted */ 4055 RECOMP_FLAGS_IN(); 4056 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4058 esp = esp + 4; /* 0x3614CAE2: add esp, 4 */ 4059 _flag_k = FK_ADD; 4060 L_3614CAE5: 4061 eax = edi; /* 0x3614CAE5: mov eax, edi */ 4062 edi = POP32_VAL(esp); /* 0x3614CAE7: pop edi */ 4063 esi = POP32_VAL(esp); /* 0x3614CAE8: pop esi */ 4064 ebx = POP32_VAL(esp); /* 0x3614CAE9: pop ebx */ 4065 ebp = POP32_VAL(esp); /* 0x3614CAEA: pop ebp */ 4066 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CAEB: ret 4 */ 4067 L_3614CAEE: 4068 ecx = esi; /* 0x3614CAEE: mov ecx, esi */ 4069 RECOMP_ICALL(0x3614CBB0u); /* 0x3614CAF0: call 0x3614cbb0 */ /* not lifted */ 4070 RECOMP_FLAGS_IN(); 4071 /* test LO8(ebx), 1 */ /* 0x3614CAF5: test bl, 1 */ 4072 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4073 _cf = 0; 4074 _flag_k = FK_NARROW(FK_TEST, 24); 4075 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CB03; /* 0x3614CAF8: je 0x3614cb03 */ 4076 L_3614CAFA: 4077 PUSH32(esp, esi); /* 0x3614CAFA: push esi */ 4078 RECOMP_ICALL(0x3615FCC4u); /* 0x3614CAFB: call 0x3615fcc4 */ /* not lifted */ 4079 RECOMP_FLAGS_IN(); 4080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4081 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4082 esp = esp + 4; /* 0x3614CB00: add esp, 4 */ 4083 _flag_k = FK_ADD; 4084 L_3614CB03: 4085 eax = esi; /* 0x3614CB03: mov eax, esi */ 4086 esi = POP32_VAL(esp); /* 0x3614CB05: pop esi */ 4087 ebx = POP32_VAL(esp); /* 0x3614CB06: pop ebx */ 4088 ebp = POP32_VAL(esp); /* 0x3614CB07: pop ebp */ 4089 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CB08: ret 4 */ 4090 RECOMP_REGS_OUT(); 4091 } 4092 4093 void sub_3614CB10(void) { 4094 int _fpu_cmp = 0; 4095 uint32_t _cf = 0; 4096 int _df = 1; 4097 uint32_t _flag_k = FK_NONE; 4098 uint32_t _flag_a = 0, _flag_b = 0; 4099 uint32_t _itail_tgt = 0; 4100 RECOMP_REGS_LOCALS 4101 RECOMP_ENTER(0x3614CB10u); 4102 4103 L_3614CB10: 4104 PUSH32(esp, ebp); /* 0x3614CB10: push ebp */ 4105 ebp = esp; /* 0x3614CB11: mov ebp, esp */ 4106 eax = MEM32(FS_BASE + (0)); /* 0x3614CB13: mov eax, dword ptr fs:[0] */ 4107 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614CB19: push -1 */ 4108 PUSH32(esp, 0x3616D2ABu); /* 0x3614CB1B: push 0x3616d2ab */ 4109 PUSH32(esp, eax); /* 0x3614CB20: push eax */ 4110 MEM32(FS_BASE + (0)) = esp; /* 0x3614CB21: mov dword ptr fs:[0], esp */ 4111 PUSH32(esp, esi); /* 0x3614CB28: push esi */ 4112 esi = MEM32(ebp + 0x8); /* 0x3614CB29: mov esi, dword ptr [ebp + 8] */ 4113 PUSH32(esp, edi); /* 0x3614CB2C: push edi */ 4114 edi = ecx; /* 0x3614CB2D: mov edi, ecx */ 4115 PUSH32(esp, esi); /* 0x3614CB2F: push esi */ 4116 RECOMP_ICALL(MEM32(0x3616FEBC)); /* 0x3614CB30: call dword ptr [0x3616febc] */ 4117 RECOMP_FLAGS_IN(); 4118 /* test LO8(eax), LO8(eax) */ /* 0x3614CB36: test al, al */ 4119 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4120 _cf = 0; 4121 _flag_k = FK_NARROW(FK_TEST, 24); 4122 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614CB4C; /* 0x3614CB38: jne 0x3614cb4c */ 4123 L_3614CB3A: 4124 ecx = MEM32(ebp + (-0xC)); /* 0x3614CB3A: mov ecx, dword ptr [ebp - 0xc] */ 4125 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CB3D: mov dword ptr fs:[0], ecx */ 4126 edi = POP32_VAL(esp); /* 0x3614CB44: pop edi */ 4127 esi = POP32_VAL(esp); /* 0x3614CB45: pop esi */ 4128 esp = ebp; /* 0x3614CB46: mov esp, ebp */ 4129 ebp = POP32_VAL(esp); /* 0x3614CB48: pop ebp */ 4130 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CB49: ret 4 */ 4131 L_3614CB4C: 4132 eax = MEM32(esi + 0x5C); /* 0x3614CB4C: mov eax, dword ptr [esi + 0x5c] */ 4133 /* test eax, eax */ /* 0x3614CB4F: test eax, eax */ 4134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4135 _cf = 0; 4136 _flag_k = FK_TEST; 4137 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CB80; /* 0x3614CB51: je 0x3614cb80 */ 4138 L_3614CB53: 4139 PUSH32(esp, 0x20u); /* 0x3614CB53: push 0x20 */ 4140 RECOMP_ICALL(0x3615FD6Au); /* 0x3614CB55: call 0x3615fd6a */ /* not lifted */ 4141 RECOMP_FLAGS_IN(); 4142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4144 esp = esp + 4; /* 0x3614CB5A: add esp, 4 */ 4145 _flag_k = FK_ADD; 4146 MEM32(ebp + 0x8) = eax; /* 0x3614CB5D: mov dword ptr [ebp + 8], eax */ 4147 /* test eax, eax */ /* 0x3614CB60: test eax, eax */ 4148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4149 _cf = 0; 4150 _flag_k = FK_TEST; 4151 MEM32(ebp + (-0x4)) = 0; /* 0x3614CB62: mov dword ptr [ebp - 4], 0 */ 4152 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CB78; /* 0x3614CB69: je 0x3614cb78 */ 4153 L_3614CB6B: 4154 ecx = MEM32(esi + 0x5C); /* 0x3614CB6B: mov ecx, dword ptr [esi + 0x5c] */ 4155 PUSH32(esp, ecx); /* 0x3614CB6E: push ecx */ 4156 ecx = eax; /* 0x3614CB6F: mov ecx, eax */ 4157 RECOMP_ICALL(0x36009010u); /* 0x3614CB71: call 0x36009010 */ /* not lifted */ 4158 RECOMP_FLAGS_IN(); 4159 goto L_3614CB7A; /* 0x3614CB76: jmp 0x3614cb7a */ 4160 L_3614CB78: 4161 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4162 eax = 0; /* 0x3614CB78: xor eax, eax */ 4163 _cf = 0; 4164 _flag_k = FK_TEST; 4165 L_3614CB7A: 4166 MEM32(edi + 0xB4) = eax; /* 0x3614CB7A: mov dword ptr [edi + 0xb4], eax */ 4167 L_3614CB80: 4168 edx = MEM32(esi + 0x54); /* 0x3614CB80: mov edx, dword ptr [esi + 0x54] */ 4169 ecx = MEM32(ebp + (-0xC)); /* 0x3614CB83: mov ecx, dword ptr [ebp - 0xc] */ 4170 MEM32(edi + 0xAC) = edx; /* 0x3614CB86: mov dword ptr [edi + 0xac], edx */ 4171 eax = MEM32(esi + 0x58); /* 0x3614CB8C: mov eax, dword ptr [esi + 0x58] */ 4172 MEM32(edi + 0xB0) = eax; /* 0x3614CB8F: mov dword ptr [edi + 0xb0], eax */ 4173 edi = POP32_VAL(esp); /* 0x3614CB95: pop edi */ 4174 SET_LO8(eax, 1); /* 0x3614CB96: mov al, 1 */ 4175 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CB98: mov dword ptr fs:[0], ecx */ 4176 esi = POP32_VAL(esp); /* 0x3614CB9F: pop esi */ 4177 esp = ebp; /* 0x3614CBA0: mov esp, ebp */ 4178 ebp = POP32_VAL(esp); /* 0x3614CBA2: pop ebp */ 4179 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CBA3: ret 4 */ 4180 RECOMP_REGS_OUT(); 4181 } 4182 4183 void sub_3614CBB0(void) { 4184 int _fpu_cmp = 0; 4185 uint32_t _cf = 0; 4186 int _df = 1; 4187 uint32_t _flag_k = FK_NONE; 4188 uint32_t _flag_a = 0, _flag_b = 0; 4189 uint32_t _itail_tgt = 0; 4190 RECOMP_REGS_LOCALS 4191 RECOMP_ENTER(0x3614CBB0u); 4192 4193 L_3614CBB0: 4194 PUSH32(esp, ebp); /* 0x3614CBB0: push ebp */ 4195 ebp = esp; /* 0x3614CBB1: mov ebp, esp */ 4196 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614CBB3: push -1 */ 4197 PUSH32(esp, 0x3616D2C9u); /* 0x3614CBB5: push 0x3616d2c9 */ 4198 eax = MEM32(FS_BASE + (0)); /* 0x3614CBBA: mov eax, dword ptr fs:[0] */ 4199 PUSH32(esp, eax); /* 0x3614CBC0: push eax */ 4200 MEM32(FS_BASE + (0)) = esp; /* 0x3614CBC1: mov dword ptr fs:[0], esp */ 4201 PUSH32(esp, ecx); /* 0x3614CBC8: push ecx */ 4202 PUSH32(esp, ebx); /* 0x3614CBC9: push ebx */ 4203 PUSH32(esp, esi); /* 0x3614CBCA: push esi */ 4204 esi = ecx; /* 0x3614CBCB: mov esi, ecx */ 4205 PUSH32(esp, edi); /* 0x3614CBCD: push edi */ 4206 MEM32(ebp + (-0x10)) = esi; /* 0x3614CBCE: mov dword ptr [ebp - 0x10], esi */ 4207 MEM32(esi) = 0x361788F0u; /* 0x3614CBD1: mov dword ptr [esi], 0x361788f0 */ 4208 ebx = MEM32(esi + 0xB4); /* 0x3614CBD7: mov ebx, dword ptr [esi + 0xb4] */ 4209 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4210 edi = 0; /* 0x3614CBDD: xor edi, edi */ 4211 _cf = 0; 4212 _flag_k = FK_TEST; 4213 /* cmp ebx, edi */ /* 0x3614CBDF: cmp ebx, edi */ 4214 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 4215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4216 _flag_k = FK_CMP; 4217 MEM32(ebp + (-0x4)) = edi; /* 0x3614CBE1: mov dword ptr [ebp - 4], edi */ 4218 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CBF6; /* 0x3614CBE4: je 0x3614cbf6 */ 4219 L_3614CBE6: 4220 ecx = ebx; /* 0x3614CBE6: mov ecx, ebx */ 4221 RECOMP_ICALL(0x360E2940u); /* 0x3614CBE8: call 0x360e2940 */ /* not lifted */ 4222 RECOMP_FLAGS_IN(); 4223 PUSH32(esp, ebx); /* 0x3614CBED: push ebx */ 4224 RECOMP_ICALL(0x3615FCC4u); /* 0x3614CBEE: call 0x3615fcc4 */ /* not lifted */ 4225 RECOMP_FLAGS_IN(); 4226 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4228 esp = esp + 4; /* 0x3614CBF3: add esp, 4 */ 4229 _flag_k = FK_ADD; 4230 L_3614CBF6: 4231 ecx = MEM32(esi + 0xBC); /* 0x3614CBF6: mov ecx, dword ptr [esi + 0xbc] */ 4232 /* cmp ecx, edi */ /* 0x3614CBFC: cmp ecx, edi */ 4233 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4235 _flag_k = FK_CMP; 4236 MEM32(esi + 0xB4) = edi; /* 0x3614CBFE: mov dword ptr [esi + 0xb4], edi */ 4237 MEM32(esi + 0xB0) = edi; /* 0x3614CC04: mov dword ptr [esi + 0xb0], edi */ 4238 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CC13; /* 0x3614CC0A: je 0x3614cc13 */ 4239 L_3614CC0C: 4240 eax = MEM32(ecx); /* 0x3614CC0C: mov eax, dword ptr [ecx] */ 4241 PUSH32(esp, 1); /* 0x3614CC0E: push 1 */ 4242 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x3614CC10: call dword ptr [eax + 0x18] */ 4243 RECOMP_FLAGS_IN(); 4244 L_3614CC13: 4245 ecx = MEM32(esi + 0xC8); /* 0x3614CC13: mov ecx, dword ptr [esi + 0xc8] */ 4246 /* cmp ecx, edi */ /* 0x3614CC19: cmp ecx, edi */ 4247 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4249 _flag_k = FK_CMP; 4250 ebx = MEM32(0x3616FB14); /* 0x3614CC1B: mov ebx, dword ptr [0x3616fb14] */ 4251 MEM32(esi + 0xBC) = edi; /* 0x3614CC21: mov dword ptr [esi + 0xbc], edi */ 4252 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CC31; /* 0x3614CC27: je 0x3614cc31 */ 4253 L_3614CC29: 4254 RECOMP_ICALL(ebx); /* 0x3614CC29: call ebx */ 4255 RECOMP_FLAGS_IN(); 4256 MEM32(esi + 0xC8) = edi; /* 0x3614CC2B: mov dword ptr [esi + 0xc8], edi */ 4257 L_3614CC31: 4258 ecx = MEM32(esi + 0xCC); /* 0x3614CC31: mov ecx, dword ptr [esi + 0xcc] */ 4259 /* cmp ecx, edi */ /* 0x3614CC37: cmp ecx, edi */ 4260 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4262 _flag_k = FK_CMP; 4263 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CC43; /* 0x3614CC39: je 0x3614cc43 */ 4264 L_3614CC3B: 4265 RECOMP_ICALL(ebx); /* 0x3614CC3B: call ebx */ 4266 RECOMP_FLAGS_IN(); 4267 MEM32(esi + 0xCC) = edi; /* 0x3614CC3D: mov dword ptr [esi + 0xcc], edi */ 4268 L_3614CC43: 4269 ecx = MEM32(esi + 0xE0); /* 0x3614CC43: mov ecx, dword ptr [esi + 0xe0] */ 4270 /* cmp ecx, edi */ /* 0x3614CC49: cmp ecx, edi */ 4271 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4273 _flag_k = FK_CMP; 4274 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CC53; /* 0x3614CC4B: je 0x3614cc53 */ 4275 L_3614CC4D: 4276 edx = MEM32(ecx); /* 0x3614CC4D: mov edx, dword ptr [ecx] */ 4277 PUSH32(esp, 1); /* 0x3614CC4F: push 1 */ 4278 RECOMP_ICALL(MEM32(edx)); /* 0x3614CC51: call dword ptr [edx] */ 4279 RECOMP_FLAGS_IN(); 4280 L_3614CC53: 4281 ecx = esi; /* 0x3614CC53: mov ecx, esi */ 4282 RECOMP_ICALL(0x3614DF10u); /* 0x3614CC55: call 0x3614df10 */ /* not lifted */ 4283 RECOMP_FLAGS_IN(); 4284 ecx = MEM32(esi + 0xDC); /* 0x3614CC5A: mov ecx, dword ptr [esi + 0xdc] */ 4285 /* cmp ecx, edi */ /* 0x3614CC60: cmp ecx, edi */ 4286 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4287 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4288 _flag_k = FK_CMP; 4289 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CC6C; /* 0x3614CC62: je 0x3614cc6c */ 4290 L_3614CC64: 4291 RECOMP_ICALL(ebx); /* 0x3614CC64: call ebx */ 4292 RECOMP_FLAGS_IN(); 4293 MEM32(esi + 0xDC) = edi; /* 0x3614CC66: mov dword ptr [esi + 0xdc], edi */ 4294 L_3614CC6C: 4295 ebx = MEM32(esi + 0xD0); /* 0x3614CC6C: mov ebx, dword ptr [esi + 0xd0] */ 4296 /* cmp ebx, edi */ /* 0x3614CC72: cmp ebx, edi */ 4297 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 4298 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4299 _flag_k = FK_CMP; 4300 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CC86; /* 0x3614CC74: je 0x3614cc86 */ 4301 L_3614CC76: 4302 ecx = ebx; /* 0x3614CC76: mov ecx, ebx */ 4303 RECOMP_ICALL(0x3614AA30u); /* 0x3614CC78: call 0x3614aa30 */ /* not lifted */ 4304 RECOMP_FLAGS_IN(); 4305 PUSH32(esp, ebx); /* 0x3614CC7D: push ebx */ 4306 RECOMP_ICALL(0x3615FCC4u); /* 0x3614CC7E: call 0x3615fcc4 */ /* not lifted */ 4307 RECOMP_FLAGS_IN(); 4308 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4309 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4310 esp = esp + 4; /* 0x3614CC83: add esp, 4 */ 4311 _flag_k = FK_ADD; 4312 L_3614CC86: 4313 MEM32(esi + 0xD0) = edi; /* 0x3614CC86: mov dword ptr [esi + 0xd0], edi */ 4314 RECOMP_ICALL(0x361588D0u); /* 0x3614CC8C: call 0x361588d0 */ /* not lifted */ 4315 RECOMP_FLAGS_IN(); 4316 ecx = eax; /* 0x3614CC91: mov ecx, eax */ 4317 RECOMP_ICALL(0x36159210u); /* 0x3614CC93: call 0x36159210 */ /* not lifted */ 4318 RECOMP_FLAGS_IN(); 4319 ecx = esi; /* 0x3614CC98: mov ecx, esi */ 4320 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614CC9A: mov dword ptr [ebp - 4], 0xffffffff */ 4321 RECOMP_ICALL(MEM32(0x3616FEB4)); /* 0x3614CCA1: call dword ptr [0x3616feb4] */ 4322 RECOMP_FLAGS_IN(); 4323 ecx = MEM32(ebp + (-0xC)); /* 0x3614CCA7: mov ecx, dword ptr [ebp - 0xc] */ 4324 edi = POP32_VAL(esp); /* 0x3614CCAA: pop edi */ 4325 esi = POP32_VAL(esp); /* 0x3614CCAB: pop esi */ 4326 ebx = POP32_VAL(esp); /* 0x3614CCAC: pop ebx */ 4327 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CCAD: mov dword ptr fs:[0], ecx */ 4328 esp = ebp; /* 0x3614CCB4: mov esp, ebp */ 4329 ebp = POP32_VAL(esp); /* 0x3614CCB6: pop ebp */ 4330 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CCB7: ret */ 4331 RECOMP_REGS_OUT(); 4332 } 4333 4334 void sub_3614CCC0(void) { 4335 int _fpu_cmp = 0; 4336 uint32_t _cf = 0; 4337 int _df = 1; 4338 uint32_t _flag_k = FK_NONE; 4339 uint32_t _flag_a = 0, _flag_b = 0; 4340 uint32_t _itail_tgt = 0; 4341 RECOMP_REGS_LOCALS 4342 RECOMP_ENTER(0x3614CCC0u); 4343 4344 L_3614CCC0: 4345 PUSH32(esp, ebp); /* 0x3614CCC0: push ebp */ 4346 ebp = esp; /* 0x3614CCC1: mov ebp, esp */ 4347 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614CCC3: push -1 */ 4348 PUSH32(esp, 0x3616D2EBu); /* 0x3614CCC5: push 0x3616d2eb */ 4349 eax = MEM32(FS_BASE + (0)); /* 0x3614CCCA: mov eax, dword ptr fs:[0] */ 4350 PUSH32(esp, eax); /* 0x3614CCD0: push eax */ 4351 MEM32(FS_BASE + (0)) = esp; /* 0x3614CCD1: mov dword ptr fs:[0], esp */ 4352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4354 esp = esp - 0xCu; /* 0x3614CCD8: sub esp, 0xc */ 4355 _flag_k = FK_CMP; 4356 eax = MEM32(0x3616FF74); /* 0x3614CCDB: mov eax, dword ptr [0x3616ff74] */ 4357 eax = MEM32(eax); /* 0x3614CCE0: mov eax, dword ptr [eax] */ 4358 PUSH32(esp, ebx); /* 0x3614CCE2: push ebx */ 4359 PUSH32(esp, esi); /* 0x3614CCE3: push esi */ 4360 esi = MEM32(eax + 0x60); /* 0x3614CCE4: mov esi, dword ptr [eax + 0x60] */ 4361 eax = MEM32(ebp + 0xC); /* 0x3614CCE7: mov eax, dword ptr [ebp + 0xc] */ 4362 edx = MEM32(esi); /* 0x3614CCEA: mov edx, dword ptr [esi] */ 4363 PUSH32(esp, edi); /* 0x3614CCEC: push edi */ 4364 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4365 edi = 0; /* 0x3614CCED: xor edi, edi */ 4366 _cf = 0; 4367 _flag_k = FK_TEST; 4368 PUSH32(esp, edi); /* 0x3614CCEF: push edi */ 4369 PUSH32(esp, 0x362E7B68u); /* 0x3614CCF0: push 0x362e7b68 */ 4370 PUSH32(esp, 0x361B6528u); /* 0x3614CCF5: push 0x361b6528 */ 4371 PUSH32(esp, edi); /* 0x3614CCFA: push edi */ 4372 PUSH32(esp, eax); /* 0x3614CCFB: push eax */ 4373 ecx = esi; /* 0x3614CCFC: mov ecx, esi */ 4374 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3614CCFE: call dword ptr [edx + 8] */ 4375 RECOMP_FLAGS_IN(); 4376 PUSH32(esp, eax); /* 0x3614CD01: push eax */ 4377 RECOMP_ICALL(0x3615FD86u); /* 0x3614CD02: call 0x3615fd86 */ /* not lifted */ 4378 RECOMP_FLAGS_IN(); 4379 ebx = eax; /* 0x3614CD07: mov ebx, eax */ 4380 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4381 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4382 esp = esp + 0x14u; /* 0x3614CD09: add esp, 0x14 */ 4383 _flag_k = FK_ADD; 4384 /* cmp ebx, edi */ /* 0x3614CD0C: cmp ebx, edi */ 4385 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 4386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4387 _flag_k = FK_CMP; 4388 if (CMP_NE(_flag_a, _flag_b)) goto L_3614CD23; /* 0x3614CD0E: jne 0x3614cd23 */ 4389 L_3614CD10: 4390 edi = POP32_VAL(esp); /* 0x3614CD10: pop edi */ 4391 esi = POP32_VAL(esp); /* 0x3614CD11: pop esi */ 4392 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4393 eax = 0; /* 0x3614CD12: xor eax, eax */ 4394 _cf = 0; 4395 _flag_k = FK_TEST; 4396 ebx = POP32_VAL(esp); /* 0x3614CD14: pop ebx */ 4397 ecx = MEM32(ebp + (-0xC)); /* 0x3614CD15: mov ecx, dword ptr [ebp - 0xc] */ 4398 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CD18: mov dword ptr fs:[0], ecx */ 4399 esp = ebp; /* 0x3614CD1F: mov esp, ebp */ 4400 ebp = POP32_VAL(esp); /* 0x3614CD21: pop ebp */ 4401 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CD22: ret */ 4402 L_3614CD23: 4403 PUSH32(esp, 0xF0u); /* 0x3614CD23: push 0xf0 */ 4404 RECOMP_ICALL(0x3615FD6Au); /* 0x3614CD28: call 0x3615fd6a */ /* not lifted */ 4405 RECOMP_FLAGS_IN(); 4406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4407 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4408 esp = esp + 4; /* 0x3614CD2D: add esp, 4 */ 4409 _flag_k = FK_ADD; 4410 MEM32(ebp + (-0x10)) = eax; /* 0x3614CD30: mov dword ptr [ebp - 0x10], eax */ 4411 /* cmp eax, edi */ /* 0x3614CD33: cmp eax, edi */ 4412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4414 _flag_k = FK_CMP; 4415 MEM32(ebp + (-0x4)) = edi; /* 0x3614CD35: mov dword ptr [ebp - 4], edi */ 4416 if (CMP_EQ(_flag_a, _flag_b)) goto L_3614CD47; /* 0x3614CD38: je 0x3614cd47 */ 4417 L_3614CD3A: 4418 ecx = MEM32(ebp + 0x8); /* 0x3614CD3A: mov ecx, dword ptr [ebp + 8] */ 4419 PUSH32(esp, ecx); /* 0x3614CD3D: push ecx */ 4420 ecx = eax; /* 0x3614CD3E: mov ecx, eax */ 4421 RECOMP_ICALL(0x3614C9D0u); /* 0x3614CD40: call 0x3614c9d0 */ /* not lifted */ 4422 RECOMP_FLAGS_IN(); 4423 edi = eax; /* 0x3614CD45: mov edi, eax */ 4424 L_3614CD47: 4425 edx = MEM32(edi); /* 0x3614CD47: mov edx, dword ptr [edi] */ 4426 PUSH32(esp, ebx); /* 0x3614CD49: push ebx */ 4427 ecx = edi; /* 0x3614CD4A: mov ecx, edi */ 4428 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3614CD4C: mov dword ptr [ebp - 4], 0xffffffff */ 4429 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x3614CD53: call dword ptr [edx + 0x2c] */ 4430 RECOMP_FLAGS_IN(); 4431 /* test LO8(eax), LO8(eax) */ /* 0x3614CD56: test al, al */ 4432 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4433 _cf = 0; 4434 _flag_k = FK_NARROW(FK_TEST, 24); 4435 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614CD7B; /* 0x3614CD58: jne 0x3614cd7b */ 4436 L_3614CD5A: 4437 esi = MEM32(0x3616FB14); /* 0x3614CD5A: mov esi, dword ptr [0x3616fb14] */ 4438 ecx = edi; /* 0x3614CD60: mov ecx, edi */ 4439 RECOMP_ICALL(esi); /* 0x3614CD62: call esi */ 4440 RECOMP_FLAGS_IN(); 4441 ecx = ebx; /* 0x3614CD64: mov ecx, ebx */ 4442 RECOMP_ICALL(esi); /* 0x3614CD66: call esi */ 4443 RECOMP_FLAGS_IN(); 4444 edi = POP32_VAL(esp); /* 0x3614CD68: pop edi */ 4445 esi = POP32_VAL(esp); /* 0x3614CD69: pop esi */ 4446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4447 eax = 0; /* 0x3614CD6A: xor eax, eax */ 4448 _cf = 0; 4449 _flag_k = FK_TEST; 4450 ebx = POP32_VAL(esp); /* 0x3614CD6C: pop ebx */ 4451 ecx = MEM32(ebp + (-0xC)); /* 0x3614CD6D: mov ecx, dword ptr [ebp - 0xc] */ 4452 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CD70: mov dword ptr fs:[0], ecx */ 4453 esp = ebp; /* 0x3614CD77: mov esp, ebp */ 4454 ebp = POP32_VAL(esp); /* 0x3614CD79: pop ebp */ 4455 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CD7A: ret */ 4456 L_3614CD7B: 4457 ecx = ebx; /* 0x3614CD7B: mov ecx, ebx */ 4458 RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x3614CD7D: call dword ptr [0x3616fb14] */ 4459 RECOMP_FLAGS_IN(); 4460 eax = MEM32(ebp + 0xC); /* 0x3614CD83: mov eax, dword ptr [ebp + 0xc] */ 4461 ecx = MEM32(eax + 0x4); /* 0x3614CD86: mov ecx, dword ptr [eax + 4] */ 4462 PUSH32(esp, 0); /* 0x3614CD89: push 0 */ 4463 PUSH32(esp, 0x362E7B48u); /* 0x3614CD8B: push 0x362e7b48 */ 4464 PUSH32(esp, 0x361B6528u); /* 0x3614CD90: push 0x361b6528 */ 4465 MEM32(ebp + (-0x14)) = ecx; /* 0x3614CD95: mov dword ptr [ebp - 0x14], ecx */ 4466 PUSH32(esp, 0); /* 0x3614CD98: push 0 */ 4467 eax = ebp + (-0x18); /* 0x3614CD9A: lea eax, [ebp - 0x18] */ 4468 MEM32(ebp + (-0x18)) = 0x000F425Au; /* 0x3614CD9D: mov dword ptr [ebp - 0x18], 0xf425a */ 4469 edx = MEM32(esi); /* 0x3614CDA4: mov edx, dword ptr [esi] */ 4470 PUSH32(esp, eax); /* 0x3614CDA6: push eax */ 4471 ecx = esi; /* 0x3614CDA7: mov ecx, esi */ 4472 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3614CDA9: call dword ptr [edx + 8] */ 4473 RECOMP_FLAGS_IN(); 4474 PUSH32(esp, eax); /* 0x3614CDAC: push eax */ 4475 RECOMP_ICALL(0x3615FD86u); /* 0x3614CDAD: call 0x3615fd86 */ /* not lifted */ 4476 RECOMP_FLAGS_IN(); 4477 ecx = MEM32(ebp + (-0xC)); /* 0x3614CDB2: mov ecx, dword ptr [ebp - 0xc] */ 4478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4480 esp = esp + 0x14u; /* 0x3614CDB5: add esp, 0x14 */ 4481 _flag_k = FK_ADD; 4482 MEM32(edi + 0xDC) = eax; /* 0x3614CDB8: mov dword ptr [edi + 0xdc], eax */ 4483 eax = edi; /* 0x3614CDBE: mov eax, edi */ 4484 edi = POP32_VAL(esp); /* 0x3614CDC0: pop edi */ 4485 esi = POP32_VAL(esp); /* 0x3614CDC1: pop esi */ 4486 ebx = POP32_VAL(esp); /* 0x3614CDC2: pop ebx */ 4487 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CDC3: mov dword ptr fs:[0], ecx */ 4488 esp = ebp; /* 0x3614CDCA: mov esp, ebp */ 4489 ebp = POP32_VAL(esp); /* 0x3614CDCC: pop ebp */ 4490 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CDCD: ret */ 4491 RECOMP_REGS_OUT(); 4492 } 4493 4494 void sub_3614CDD0(void) { 4495 int _fpu_cmp = 0; 4496 uint32_t _cf = 0; 4497 int _df = 1; 4498 uint32_t _flag_k = FK_NONE; 4499 uint32_t _flag_a = 0, _flag_b = 0; 4500 uint32_t _itail_tgt = 0; 4501 RECOMP_REGS_LOCALS 4502 RECOMP_ENTER(0x3614CDD0u); 4503 4504 L_3614CDD0: 4505 PUSH32(esp, ebp); /* 0x3614CDD0: push ebp */ 4506 ebp = esp; /* 0x3614CDD1: mov ebp, esp */ 4507 eax = MEM32(ebp + 0x8); /* 0x3614CDD3: mov eax, dword ptr [ebp + 8] */ 4508 PUSH32(esp, eax); /* 0x3614CDD6: push eax */ 4509 RECOMP_ICALL(MEM32(0x36170044)); /* 0x3614CDD7: call dword ptr [0x36170044] */ 4510 RECOMP_FLAGS_IN(); 4511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4513 esp = esp + 4; /* 0x3614CDDD: add esp, 4 */ 4514 _flag_k = FK_ADD; 4515 ebp = POP32_VAL(esp); /* 0x3614CDE0: pop ebp */ 4516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CDE1: ret */ 4517 RECOMP_REGS_OUT(); 4518 } 4519 4520 void sub_3614CDF0(void) { 4521 int _fpu_cmp = 0; 4522 uint32_t _cf = 0; 4523 int _df = 1; 4524 uint32_t _flag_k = FK_NONE; 4525 uint32_t _flag_a = 0, _flag_b = 0; 4526 uint32_t _itail_tgt = 0; 4527 RECOMP_REGS_LOCALS 4528 RECOMP_ENTER(0x3614CDF0u); 4529 4530 L_3614CDF0: 4531 PUSH32(esp, ebp); /* 0x3614CDF0: push ebp */ 4532 ebp = esp; /* 0x3614CDF1: mov ebp, esp */ 4533 PUSH32(esp, esi); /* 0x3614CDF3: push esi */ 4534 PUSH32(esp, edi); /* 0x3614CDF4: push edi */ 4535 edi = ecx; /* 0x3614CDF5: mov edi, ecx */ 4536 esi = MEM32(edi + 0xB4); /* 0x3614CDF7: mov esi, dword ptr [edi + 0xb4] */ 4537 /* test esi, esi */ /* 0x3614CDFD: test esi, esi */ 4538 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4539 _cf = 0; 4540 _flag_k = FK_TEST; 4541 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CE20; /* 0x3614CDFF: je 0x3614ce20 */ 4542 L_3614CE01: 4543 ecx = esi; /* 0x3614CE01: mov ecx, esi */ 4544 RECOMP_ICALL(0x360E2940u); /* 0x3614CE03: call 0x360e2940 */ /* not lifted */ 4545 RECOMP_FLAGS_IN(); 4546 PUSH32(esp, esi); /* 0x3614CE08: push esi */ 4547 RECOMP_ICALL(0x3615FCC4u); /* 0x3614CE09: call 0x3615fcc4 */ /* not lifted */ 4548 RECOMP_FLAGS_IN(); 4549 eax = MEM32(ebp + 0x8); /* 0x3614CE0E: mov eax, dword ptr [ebp + 8] */ 4550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4552 esp = esp + 4; /* 0x3614CE11: add esp, 4 */ 4553 _flag_k = FK_ADD; 4554 MEM32(edi + 0xB4) = eax; /* 0x3614CE14: mov dword ptr [edi + 0xb4], eax */ 4555 edi = POP32_VAL(esp); /* 0x3614CE1A: pop edi */ 4556 esi = POP32_VAL(esp); /* 0x3614CE1B: pop esi */ 4557 ebp = POP32_VAL(esp); /* 0x3614CE1C: pop ebp */ 4558 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CE1D: ret 4 */ 4559 L_3614CE20: 4560 edx = MEM32(ebp + 0x8); /* 0x3614CE20: mov edx, dword ptr [ebp + 8] */ 4561 MEM32(edi + 0xB4) = edx; /* 0x3614CE23: mov dword ptr [edi + 0xb4], edx */ 4562 edi = POP32_VAL(esp); /* 0x3614CE29: pop edi */ 4563 esi = POP32_VAL(esp); /* 0x3614CE2A: pop esi */ 4564 ebp = POP32_VAL(esp); /* 0x3614CE2B: pop ebp */ 4565 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CE2C: ret 4 */ 4566 RECOMP_REGS_OUT(); 4567 } 4568 4569 void sub_3614CE30(void) { 4570 int _fpu_cmp = 0; 4571 uint32_t _cf = 0; 4572 int _df = 1; 4573 uint32_t _flag_k = FK_NONE; 4574 uint32_t _flag_a = 0, _flag_b = 0; 4575 uint32_t _itail_tgt = 0; 4576 RECOMP_REGS_LOCALS 4577 RECOMP_ENTER(0x3614CE30u); 4578 4579 L_3614CE30: 4580 eax = MEM32(ecx + 0xC8); /* 0x3614CE30: mov eax, dword ptr [ecx + 0xc8] */ 4581 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CE36: ret */ 4582 RECOMP_REGS_OUT(); 4583 } 4584 4585 void sub_3614CE40(void) { 4586 int _fpu_cmp = 0; 4587 uint32_t _cf = 0; 4588 int _df = 1; 4589 uint32_t _flag_k = FK_NONE; 4590 uint32_t _flag_a = 0, _flag_b = 0; 4591 uint32_t _itail_tgt = 0; 4592 RECOMP_REGS_LOCALS 4593 RECOMP_ENTER(0x3614CE40u); 4594 4595 L_3614CE40: 4596 PUSH32(esp, ebp); /* 0x3614CE40: push ebp */ 4597 ebp = esp; /* 0x3614CE41: mov ebp, esp */ 4598 PUSH32(esp, esi); /* 0x3614CE43: push esi */ 4599 PUSH32(esp, edi); /* 0x3614CE44: push edi */ 4600 edi = MEM32(ebp + 0x8); /* 0x3614CE45: mov edi, dword ptr [ebp + 8] */ 4601 esi = ecx; /* 0x3614CE48: mov esi, ecx */ 4602 _flag_a = (uint32_t)(MEM32(edi + 0xC)); _flag_b = (uint32_t)(1); 4603 MEM32(edi + 0xC) = MEM32(edi + 0xC) + 1; /* 0x3614CE4A: inc dword ptr [edi + 0xc] */ 4604 _flag_k = FK_INC; 4605 ecx = MEM32(esi + 0xC8); /* 0x3614CE4D: mov ecx, dword ptr [esi + 0xc8] */ 4606 /* test ecx, ecx */ /* 0x3614CE53: test ecx, ecx */ 4607 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4608 _cf = 0; 4609 _flag_k = FK_TEST; 4610 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CE5D; /* 0x3614CE55: je 0x3614ce5d */ 4611 L_3614CE57: 4612 RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x3614CE57: call dword ptr [0x3616fb14] */ 4613 RECOMP_FLAGS_IN(); 4614 L_3614CE5D: 4615 MEM32(esi + 0xC8) = edi; /* 0x3614CE5D: mov dword ptr [esi + 0xc8], edi */ 4616 edi = POP32_VAL(esp); /* 0x3614CE63: pop edi */ 4617 esi = POP32_VAL(esp); /* 0x3614CE64: pop esi */ 4618 ebp = POP32_VAL(esp); /* 0x3614CE65: pop ebp */ 4619 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CE66: ret 4 */ 4620 RECOMP_REGS_OUT(); 4621 } 4622 4623 void sub_3614CE70(void) { 4624 int _fpu_cmp = 0; 4625 uint32_t _cf = 0; 4626 int _df = 1; 4627 uint32_t _flag_k = FK_NONE; 4628 uint32_t _flag_a = 0, _flag_b = 0; 4629 uint32_t _itail_tgt = 0; 4630 RECOMP_REGS_LOCALS 4631 RECOMP_ENTER(0x3614CE70u); 4632 4633 L_3614CE70: 4634 eax = MEM32(ecx + 0xCC); /* 0x3614CE70: mov eax, dword ptr [ecx + 0xcc] */ 4635 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CE76: ret */ 4636 RECOMP_REGS_OUT(); 4637 } 4638 4639 void sub_3614CE80(void) { 4640 int _fpu_cmp = 0; 4641 uint32_t _cf = 0; 4642 int _df = 1; 4643 uint32_t _flag_k = FK_NONE; 4644 uint32_t _flag_a = 0, _flag_b = 0; 4645 uint32_t _itail_tgt = 0; 4646 RECOMP_REGS_LOCALS 4647 RECOMP_ENTER(0x3614CE80u); 4648 4649 L_3614CE80: 4650 PUSH32(esp, ebp); /* 0x3614CE80: push ebp */ 4651 ebp = esp; /* 0x3614CE81: mov ebp, esp */ 4652 PUSH32(esp, esi); /* 0x3614CE83: push esi */ 4653 PUSH32(esp, edi); /* 0x3614CE84: push edi */ 4654 edi = MEM32(ebp + 0x8); /* 0x3614CE85: mov edi, dword ptr [ebp + 8] */ 4655 esi = ecx; /* 0x3614CE88: mov esi, ecx */ 4656 _flag_a = (uint32_t)(MEM32(edi + 0xC)); _flag_b = (uint32_t)(1); 4657 MEM32(edi + 0xC) = MEM32(edi + 0xC) + 1; /* 0x3614CE8A: inc dword ptr [edi + 0xc] */ 4658 _flag_k = FK_INC; 4659 ecx = MEM32(esi + 0xCC); /* 0x3614CE8D: mov ecx, dword ptr [esi + 0xcc] */ 4660 /* test ecx, ecx */ /* 0x3614CE93: test ecx, ecx */ 4661 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4662 _cf = 0; 4663 _flag_k = FK_TEST; 4664 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CECF; /* 0x3614CE95: je 0x3614cecf */ 4665 L_3614CE97: 4666 PUSH32(esp, ebx); /* 0x3614CE97: push ebx */ 4667 RECOMP_ICALL(MEM32(0x3616FB14)); /* 0x3614CE98: call dword ptr [0x3616fb14] */ 4668 RECOMP_FLAGS_IN(); 4669 ebx = MEM32(esi + 0xD0); /* 0x3614CE9E: mov ebx, dword ptr [esi + 0xd0] */ 4670 /* test ebx, ebx */ /* 0x3614CEA4: test ebx, ebx */ 4671 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4672 _cf = 0; 4673 _flag_k = FK_TEST; 4674 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CEB8; /* 0x3614CEA6: je 0x3614ceb8 */ 4675 L_3614CEA8: 4676 ecx = ebx; /* 0x3614CEA8: mov ecx, ebx */ 4677 RECOMP_ICALL(0x3614AA30u); /* 0x3614CEAA: call 0x3614aa30 */ /* not lifted */ 4678 RECOMP_FLAGS_IN(); 4679 PUSH32(esp, ebx); /* 0x3614CEAF: push ebx */ 4680 RECOMP_ICALL(0x3615FCC4u); /* 0x3614CEB0: call 0x3615fcc4 */ /* not lifted */ 4681 RECOMP_FLAGS_IN(); 4682 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4684 esp = esp + 4; /* 0x3614CEB5: add esp, 4 */ 4685 _flag_k = FK_ADD; 4686 L_3614CEB8: 4687 ebx = POP32_VAL(esp); /* 0x3614CEB8: pop ebx */ 4688 MEM32(esi + 0xCC) = edi; /* 0x3614CEB9: mov dword ptr [esi + 0xcc], edi */ 4689 edi = POP32_VAL(esp); /* 0x3614CEBF: pop edi */ 4690 MEM32(esi + 0xD0) = 0; /* 0x3614CEC0: mov dword ptr [esi + 0xd0], 0 */ 4691 esi = POP32_VAL(esp); /* 0x3614CECA: pop esi */ 4692 ebp = POP32_VAL(esp); /* 0x3614CECB: pop ebp */ 4693 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CECC: ret 4 */ 4694 L_3614CECF: 4695 MEM32(esi + 0xCC) = edi; /* 0x3614CECF: mov dword ptr [esi + 0xcc], edi */ 4696 edi = POP32_VAL(esp); /* 0x3614CED5: pop edi */ 4697 esi = POP32_VAL(esp); /* 0x3614CED6: pop esi */ 4698 ebp = POP32_VAL(esp); /* 0x3614CED7: pop ebp */ 4699 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3614CED8: ret 4 */ 4700 RECOMP_REGS_OUT(); 4701 } 4702 4703 void sub_3614CEE0(void) { 4704 int _fpu_cmp = 0; 4705 uint32_t _cf = 0; 4706 int _df = 1; 4707 uint32_t _flag_k = FK_NONE; 4708 uint32_t _flag_a = 0, _flag_b = 0; 4709 uint32_t _itail_tgt = 0; 4710 RECOMP_REGS_LOCALS 4711 RECOMP_ENTER(0x3614CEE0u); 4712 4713 L_3614CEE0: 4714 PUSH32(esp, ebp); /* 0x3614CEE0: push ebp */ 4715 ebp = esp; /* 0x3614CEE1: mov ebp, esp */ 4716 PUSH32(esp, 0xFFFFFFFFu); /* 0x3614CEE3: push -1 */ 4717 PUSH32(esp, 0x3616D30Bu); /* 0x3614CEE5: push 0x3616d30b */ 4718 eax = MEM32(FS_BASE + (0)); /* 0x3614CEEA: mov eax, dword ptr fs:[0] */ 4719 PUSH32(esp, eax); /* 0x3614CEF0: push eax */ 4720 MEM32(FS_BASE + (0)) = esp; /* 0x3614CEF1: mov dword ptr fs:[0], esp */ 4721 PUSH32(esp, ecx); /* 0x3614CEF8: push ecx */ 4722 PUSH32(esp, esi); /* 0x3614CEF9: push esi */ 4723 esi = ecx; /* 0x3614CEFA: mov esi, ecx */ 4724 eax = MEM32(esi + 0xD0); /* 0x3614CEFC: mov eax, dword ptr [esi + 0xd0] */ 4725 /* test eax, eax */ /* 0x3614CF02: test eax, eax */ 4726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4727 _cf = 0; 4728 _flag_k = FK_TEST; 4729 if (TEST_NZ(_flag_a, _flag_b)) goto L_3614CF40; /* 0x3614CF04: jne 0x3614cf40 */ 4730 L_3614CF06: 4731 eax = MEM32(esi + 0xCC); /* 0x3614CF06: mov eax, dword ptr [esi + 0xcc] */ 4732 /* test eax, eax */ /* 0x3614CF0C: test eax, eax */ 4733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4734 _cf = 0; 4735 _flag_k = FK_TEST; 4736 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CF40; /* 0x3614CF0E: je 0x3614cf40 */ 4737 L_3614CF10: 4738 PUSH32(esp, 0x1Cu); /* 0x3614CF10: push 0x1c */ 4739 RECOMP_ICALL(0x3615FD6Au); /* 0x3614CF12: call 0x3615fd6a */ /* not lifted */ 4740 RECOMP_FLAGS_IN(); 4741 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4743 esp = esp + 4; /* 0x3614CF17: add esp, 4 */ 4744 _flag_k = FK_ADD; 4745 MEM32(ebp + (-0x10)) = eax; /* 0x3614CF1A: mov dword ptr [ebp - 0x10], eax */ 4746 /* test eax, eax */ /* 0x3614CF1D: test eax, eax */ 4747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4748 _cf = 0; 4749 _flag_k = FK_TEST; 4750 MEM32(ebp + (-0x4)) = 0; /* 0x3614CF1F: mov dword ptr [ebp - 4], 0 */ 4751 if (TEST_Z(_flag_a, _flag_b)) goto L_3614CF38; /* 0x3614CF26: je 0x3614cf38 */ 4752 L_3614CF28: 4753 ecx = MEM32(esi + 0xCC); /* 0x3614CF28: mov ecx, dword ptr [esi + 0xcc] */ 4754 PUSH32(esp, ecx); /* 0x3614CF2E: push ecx */ 4755 ecx = eax; /* 0x3614CF2F: mov ecx, eax */ 4756 RECOMP_ICALL(0x3614A9B0u); /* 0x3614CF31: call 0x3614a9b0 */ /* not lifted */ 4757 RECOMP_FLAGS_IN(); 4758 goto L_3614CF3A; /* 0x3614CF36: jmp 0x3614cf3a */ 4759 L_3614CF38: 4760 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4761 eax = 0; /* 0x3614CF38: xor eax, eax */ 4762 _cf = 0; 4763 _flag_k = FK_TEST; 4764 L_3614CF3A: 4765 MEM32(esi + 0xD0) = eax; /* 0x3614CF3A: mov dword ptr [esi + 0xd0], eax */ 4766 L_3614CF40: 4767 eax = MEM32(esi + 0xD0); /* 0x3614CF40: mov eax, dword ptr [esi + 0xd0] */ 4768 ecx = MEM32(ebp + (-0xC)); /* 0x3614CF46: mov ecx, dword ptr [ebp - 0xc] */ 4769 esi = POP32_VAL(esp); /* 0x3614CF49: pop esi */ 4770 MEM32(FS_BASE + (0)) = ecx; /* 0x3614CF4A: mov dword ptr fs:[0], ecx */ 4771 esp = ebp; /* 0x3614CF51: mov esp, ebp */ 4772 ebp = POP32_VAL(esp); /* 0x3614CF53: pop ebp */ 4773 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3614CF54: ret */ 4774 RECOMP_REGS_OUT(); 4775 }