client/game/kkr.dll/lifted-0098.c (683505B)
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_36153910(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(0x36153910u); 17 18 L_36153910: 19 PUSH32(esp, ebp); /* 0x36153910: push ebp */ 20 ebp = esp; /* 0x36153911: mov ebp, esp */ 21 PUSH32(esp, esi); /* 0x36153913: push esi */ 22 PUSH32(esp, edi); /* 0x36153914: push edi */ 23 edi = MEM32(ebp + 0x8); /* 0x36153915: mov edi, dword ptr [ebp + 8] */ 24 esi = ecx; /* 0x36153918: mov esi, ecx */ 25 PUSH32(esp, edi); /* 0x3615391A: push edi */ 26 RECOMP_ICALL(0x36154DB0u); /* 0x3615391B: call 0x36154db0 */ /* not lifted */ 27 RECOMP_FLAGS_IN(); 28 eax = MEM32(esi + 0x28); /* 0x36153920: mov eax, dword ptr [esi + 0x28] */ 29 PUSH32(esp, eax); /* 0x36153923: push eax */ 30 ecx = edi; /* 0x36153924: mov ecx, edi */ 31 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36153926: call dword ptr [0x3616faec] */ 32 RECOMP_FLAGS_IN(); 33 edi = POP32_VAL(esp); /* 0x3615392C: pop edi */ 34 esi = POP32_VAL(esp); /* 0x3615392D: pop esi */ 35 ebp = POP32_VAL(esp); /* 0x3615392E: pop ebp */ 36 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615392F: ret 4 */ 37 RECOMP_REGS_OUT(); 38 } 39 40 void sub_36153940(void) { 41 int _fpu_cmp = 0; 42 uint32_t _cf = 0; 43 int _df = 1; 44 uint32_t _flag_k = FK_NONE; 45 uint32_t _flag_a = 0, _flag_b = 0; 46 uint32_t _itail_tgt = 0; 47 RECOMP_REGS_LOCALS 48 RECOMP_ENTER(0x36153940u); 49 50 L_36153940: 51 goto L_36153950; /* 0x36153940: jmp 0x36153950 */ 52 L_36153950: 53 MEM8(0x3630DB10) = (uint8_t)(1); /* 0x36153950: mov byte ptr [0x3630db10], 1 */ 54 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36153957: ret */ 55 RECOMP_REGS_OUT(); 56 } 57 58 void sub_36153950(void) { 59 int _fpu_cmp = 0; 60 uint32_t _cf = 0; 61 int _df = 1; 62 uint32_t _flag_k = FK_NONE; 63 uint32_t _flag_a = 0, _flag_b = 0; 64 uint32_t _itail_tgt = 0; 65 RECOMP_REGS_LOCALS 66 RECOMP_ENTER(0x36153950u); 67 68 L_36153950: 69 MEM8(0x3630DB10) = (uint8_t)(1); /* 0x36153950: mov byte ptr [0x3630db10], 1 */ 70 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36153957: ret */ 71 RECOMP_REGS_OUT(); 72 } 73 74 void sub_36153960(void) { 75 int _fpu_cmp = 0; 76 uint32_t _cf = 0; 77 int _df = 1; 78 uint32_t _flag_k = FK_NONE; 79 uint32_t _flag_a = 0, _flag_b = 0; 80 uint32_t _itail_tgt = 0; 81 RECOMP_REGS_LOCALS 82 RECOMP_ENTER(0x36153960u); 83 84 L_36153960: 85 PUSH32(esp, ebp); /* 0x36153960: push ebp */ 86 ebp = esp; /* 0x36153961: mov ebp, esp */ 87 PUSH32(esp, ecx); /* 0x36153963: push ecx */ 88 PUSH32(esp, esi); /* 0x36153964: push esi */ 89 esi = ecx; /* 0x36153965: mov esi, ecx */ 90 RECOMP_ICALL(0x36154D30u); /* 0x36153967: call 0x36154d30 */ /* not lifted */ 91 RECOMP_FLAGS_IN(); 92 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3615396C: mov al, byte ptr [ebp - 1] */ 93 MEM8(esi + 0x28) = (uint8_t)(LO8(eax)); /* 0x3615396F: mov byte ptr [esi + 0x28], al */ 94 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 95 eax = 0; /* 0x36153972: xor eax, eax */ 96 _cf = 0; 97 _flag_k = FK_TEST; 98 MEM32(esi + 0x2C) = eax; /* 0x36153974: mov dword ptr [esi + 0x2c], eax */ 99 MEM32(esi + 0x30) = eax; /* 0x36153977: mov dword ptr [esi + 0x30], eax */ 100 MEM32(esi + 0x34) = eax; /* 0x3615397A: mov dword ptr [esi + 0x34], eax */ 101 MEM32(esi) = 0x36178B68u; /* 0x3615397D: mov dword ptr [esi], 0x36178b68 */ 102 eax = esi; /* 0x36153983: mov eax, esi */ 103 esi = POP32_VAL(esp); /* 0x36153985: pop esi */ 104 esp = ebp; /* 0x36153986: mov esp, ebp */ 105 ebp = POP32_VAL(esp); /* 0x36153988: pop ebp */ 106 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36153989: ret */ 107 RECOMP_REGS_OUT(); 108 } 109 110 void sub_36153990(void) { 111 int _fpu_cmp = 0; 112 uint32_t _cf = 0; 113 int _df = 1; 114 uint32_t _flag_k = FK_NONE; 115 uint32_t _flag_a = 0, _flag_b = 0; 116 uint32_t _itail_tgt = 0; 117 RECOMP_REGS_LOCALS 118 RECOMP_ENTER(0x36153990u); 119 120 L_36153990: 121 PUSH32(esp, ebp); /* 0x36153990: push ebp */ 122 ebp = esp; /* 0x36153991: mov ebp, esp */ 123 PUSH32(esp, esi); /* 0x36153993: push esi */ 124 esi = ecx; /* 0x36153994: mov esi, ecx */ 125 RECOMP_ICALL(0x361539C0u); /* 0x36153996: call 0x361539c0 */ /* not lifted */ 126 RECOMP_FLAGS_IN(); 127 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615399B: test byte ptr [ebp + 8], 1 */ 128 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 129 _cf = 0; 130 _flag_k = FK_NARROW(FK_TEST, 24); 131 if (TEST_Z(_flag_a, _flag_b)) goto L_361539AA; /* 0x3615399F: je 0x361539aa */ 132 L_361539A1: 133 PUSH32(esp, esi); /* 0x361539A1: push esi */ 134 RECOMP_ICALL(0x3615FCC4u); /* 0x361539A2: call 0x3615fcc4 */ /* not lifted */ 135 RECOMP_FLAGS_IN(); 136 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 137 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 138 esp = esp + 4; /* 0x361539A7: add esp, 4 */ 139 _flag_k = FK_ADD; 140 L_361539AA: 141 eax = esi; /* 0x361539AA: mov eax, esi */ 142 esi = POP32_VAL(esp); /* 0x361539AC: pop esi */ 143 ebp = POP32_VAL(esp); /* 0x361539AD: pop ebp */ 144 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361539AE: ret 4 */ 145 RECOMP_REGS_OUT(); 146 } 147 148 void sub_361539C0(void) { 149 int _fpu_cmp = 0; 150 uint32_t _cf = 0; 151 int _df = 1; 152 uint32_t _flag_k = FK_NONE; 153 uint32_t _flag_a = 0, _flag_b = 0; 154 uint32_t _itail_tgt = 0; 155 RECOMP_REGS_LOCALS 156 RECOMP_ENTER(0x361539C0u); 157 158 L_361539C0: 159 PUSH32(esp, ebp); /* 0x361539C0: push ebp */ 160 ebp = esp; /* 0x361539C1: mov ebp, esp */ 161 PUSH32(esp, ecx); /* 0x361539C3: push ecx */ 162 PUSH32(esp, ebx); /* 0x361539C4: push ebx */ 163 PUSH32(esp, esi); /* 0x361539C5: push esi */ 164 PUSH32(esp, edi); /* 0x361539C6: push edi */ 165 edi = ecx; /* 0x361539C7: mov edi, ecx */ 166 MEM32(edi) = 0x36178B68u; /* 0x361539C9: mov dword ptr [edi], 0x36178b68 */ 167 edx = MEM32(edi + 0x30); /* 0x361539CF: mov edx, dword ptr [edi + 0x30] */ 168 esi = MEM32(edi + 0x2C); /* 0x361539D2: mov esi, dword ptr [edi + 0x2c] */ 169 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 170 ebx = 0; /* 0x361539D5: xor ebx, ebx */ 171 _cf = 0; 172 _flag_k = FK_TEST; 173 /* cmp esi, edx */ /* 0x361539D7: cmp esi, edx */ 174 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 176 _flag_k = FK_CMP; 177 MEM32(ebp + (-0x4)) = edx; /* 0x361539D9: mov dword ptr [ebp - 4], edx */ 178 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153A14; /* 0x361539DC: je 0x36153a14 */ 179 L_361539DE: 180 eax = MEM32(esi + 0x4); /* 0x361539DE: mov eax, dword ptr [esi + 4] */ 181 /* cmp eax, ebx */ /* 0x361539E1: cmp eax, ebx */ 182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 184 _flag_k = FK_CMP; 185 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153A04; /* 0x361539E3: je 0x36153a04 */ 186 L_361539E5: 187 ecx = eax + (-0x1); /* 0x361539E5: lea ecx, [eax - 1] */ 188 SET_LO8(eax, MEM8(ecx)); /* 0x361539E8: mov al, byte ptr [ecx] */ 189 /* cmp LO8(eax), LO8(ebx) */ /* 0x361539EA: cmp al, bl */ 190 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 192 _flag_k = FK_NARROW(FK_CMP, 24); 193 if (CMP_EQ(_flag_a, _flag_b)) goto L_361539F8; /* 0x361539EC: je 0x361539f8 */ 194 L_361539EE: 195 /* cmp LO8(eax), 0xFFu */ /* 0x361539EE: cmp al, 0xff */ 196 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 198 _flag_k = FK_NARROW(FK_CMP, 24); 199 if (CMP_EQ(_flag_a, _flag_b)) goto L_361539F8; /* 0x361539F0: je 0x361539f8 */ 200 L_361539F2: 201 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 202 SET_LO8(eax, LO8(eax) - 1); /* 0x361539F2: dec al */ 203 _flag_k = FK_NARROW(FK_DEC, 24); 204 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x361539F4: mov byte ptr [ecx], al */ 205 goto L_36153A04; /* 0x361539F6: jmp 0x36153a04 */ 206 L_361539F8: 207 PUSH32(esp, ecx); /* 0x361539F8: push ecx */ 208 RECOMP_ICALL(0x3615FCC4u); /* 0x361539F9: call 0x3615fcc4 */ /* not lifted */ 209 RECOMP_FLAGS_IN(); 210 edx = MEM32(ebp + (-0x4)); /* 0x361539FE: mov edx, dword ptr [ebp - 4] */ 211 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 213 esp = esp + 4; /* 0x36153A01: add esp, 4 */ 214 _flag_k = FK_ADD; 215 L_36153A04: 216 MEM32(esi + 0x4) = ebx; /* 0x36153A04: mov dword ptr [esi + 4], ebx */ 217 MEM32(esi + 0x8) = ebx; /* 0x36153A07: mov dword ptr [esi + 8], ebx */ 218 MEM32(esi + 0xC) = ebx; /* 0x36153A0A: mov dword ptr [esi + 0xc], ebx */ 219 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 221 esi = esi + 0x10u; /* 0x36153A0D: add esi, 0x10 */ 222 _flag_k = FK_ADD; 223 /* cmp esi, edx */ /* 0x36153A10: cmp esi, edx */ 224 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 226 _flag_k = FK_CMP; 227 RECOMP_BACKEDGE(); 228 if (CMP_NE(_flag_a, _flag_b)) goto L_361539DE; /* 0x36153A12: jne 0x361539de */ 229 L_36153A14: 230 eax = MEM32(edi + 0x2C); /* 0x36153A14: mov eax, dword ptr [edi + 0x2c] */ 231 PUSH32(esp, eax); /* 0x36153A17: push eax */ 232 RECOMP_ICALL(0x3615FCC4u); /* 0x36153A18: call 0x3615fcc4 */ /* not lifted */ 233 RECOMP_FLAGS_IN(); 234 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 235 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 236 esp = esp + 4; /* 0x36153A1D: add esp, 4 */ 237 _flag_k = FK_ADD; 238 ecx = edi; /* 0x36153A20: mov ecx, edi */ 239 MEM32(edi + 0x2C) = ebx; /* 0x36153A22: mov dword ptr [edi + 0x2c], ebx */ 240 MEM32(edi + 0x30) = ebx; /* 0x36153A25: mov dword ptr [edi + 0x30], ebx */ 241 MEM32(edi + 0x34) = ebx; /* 0x36153A28: mov dword ptr [edi + 0x34], ebx */ 242 RECOMP_ICALL(0x36154D20u); /* 0x36153A2B: call 0x36154d20 */ /* not lifted */ 243 RECOMP_FLAGS_IN(); 244 edi = POP32_VAL(esp); /* 0x36153A30: pop edi */ 245 esi = POP32_VAL(esp); /* 0x36153A31: pop esi */ 246 ebx = POP32_VAL(esp); /* 0x36153A32: pop ebx */ 247 esp = ebp; /* 0x36153A33: mov esp, ebp */ 248 ebp = POP32_VAL(esp); /* 0x36153A35: pop ebp */ 249 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36153A36: ret */ 250 RECOMP_REGS_OUT(); 251 } 252 253 void sub_36153A40(void) { 254 int _fpu_cmp = 0; 255 uint32_t _cf = 0; 256 int _df = 1; 257 uint32_t _flag_k = FK_NONE; 258 uint32_t _flag_a = 0, _flag_b = 0; 259 uint32_t _itail_tgt = 0; 260 RECOMP_REGS_LOCALS 261 RECOMP_ENTER(0x36153A40u); 262 263 L_36153A40: 264 PUSH32(esp, ebp); /* 0x36153A40: push ebp */ 265 ebp = esp; /* 0x36153A41: mov ebp, esp */ 266 PUSH32(esp, 0xFFFFFFFFu); /* 0x36153A43: push -1 */ 267 PUSH32(esp, 0x3616DA49u); /* 0x36153A45: push 0x3616da49 */ 268 eax = MEM32(FS_BASE + (0)); /* 0x36153A4A: mov eax, dword ptr fs:[0] */ 269 PUSH32(esp, eax); /* 0x36153A50: push eax */ 270 MEM32(FS_BASE + (0)) = esp; /* 0x36153A51: mov dword ptr fs:[0], esp */ 271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40Cu); 272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 273 esp = esp - 0x40Cu; /* 0x36153A58: sub esp, 0x40c */ 274 _flag_k = FK_CMP; 275 eax = MEM32(ebp + 0x8); /* 0x36153A5E: mov eax, dword ptr [ebp + 8] */ 276 PUSH32(esp, ebx); /* 0x36153A61: push ebx */ 277 PUSH32(esp, esi); /* 0x36153A62: push esi */ 278 PUSH32(esp, edi); /* 0x36153A63: push edi */ 279 esi = ecx; /* 0x36153A64: mov esi, ecx */ 280 PUSH32(esp, eax); /* 0x36153A66: push eax */ 281 RECOMP_ICALL(0x36154D50u); /* 0x36153A67: call 0x36154d50 */ /* not lifted */ 282 RECOMP_FLAGS_IN(); 283 /* test eax, eax */ /* 0x36153A6C: test eax, eax */ 284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 285 _cf = 0; 286 _flag_k = FK_TEST; 287 if (TEST_NZ(_flag_a, _flag_b)) goto L_36153C20; /* 0x36153A6E: jne 0x36153c20 */ 288 L_36153A74: 289 ebx = MEM32(esi + 0x30); /* 0x36153A74: mov ebx, dword ptr [esi + 0x30] */ 290 /* cmp ebx, ebx */ /* 0x36153A77: cmp ebx, ebx */ 291 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 293 _flag_k = FK_CMP; 294 edi = MEM32(esi + 0x2C); /* 0x36153A79: mov edi, dword ptr [esi + 0x2c] */ 295 eax = esi + 0x28; /* 0x36153A7C: lea eax, [esi + 0x28] */ 296 MEM32(ebp + (-0x14)) = eax; /* 0x36153A7F: mov dword ptr [ebp - 0x14], eax */ 297 esi = ebx; /* 0x36153A82: mov esi, ebx */ 298 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153AA7; /* 0x36153A84: je 0x36153aa7 */ 299 L_36153A86: 300 ecx = MEM32(0x3616F010); /* 0x36153A86: mov ecx, dword ptr [0x3616f010] */ 301 edx = MEM32(ecx); /* 0x36153A8C: mov edx, dword ptr [ecx] */ 302 PUSH32(esp, edx); /* 0x36153A8E: push edx */ 303 PUSH32(esp, 0); /* 0x36153A8F: push 0 */ 304 PUSH32(esp, esi); /* 0x36153A91: push esi */ 305 ecx = edi; /* 0x36153A92: mov ecx, edi */ 306 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x36153A94: call dword ptr [0x3616f024] */ 307 RECOMP_FLAGS_IN(); 308 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 309 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 310 esi = esi + 0x10u; /* 0x36153A9A: add esi, 0x10 */ 311 _flag_k = FK_ADD; 312 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 314 edi = edi + 0x10u; /* 0x36153A9D: add edi, 0x10 */ 315 _flag_k = FK_ADD; 316 /* cmp esi, ebx */ /* 0x36153AA0: cmp esi, ebx */ 317 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 318 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 319 _flag_k = FK_CMP; 320 RECOMP_BACKEDGE(); 321 if (CMP_NE(_flag_a, _flag_b)) goto L_36153A86; /* 0x36153AA2: jne 0x36153a86 */ 322 L_36153AA4: 323 eax = MEM32(ebp + (-0x14)); /* 0x36153AA4: mov eax, dword ptr [ebp - 0x14] */ 324 L_36153AA7: 325 ebx = MEM32(eax + 0x8); /* 0x36153AA7: mov ebx, dword ptr [eax + 8] */ 326 /* cmp edi, ebx */ /* 0x36153AAA: cmp edi, ebx */ 327 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 329 _flag_k = FK_CMP; 330 esi = edi; /* 0x36153AAC: mov esi, edi */ 331 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153AC4; /* 0x36153AAE: je 0x36153ac4 */ 332 L_36153AB0: 333 PUSH32(esp, 1); /* 0x36153AB0: push 1 */ 334 ecx = esi; /* 0x36153AB2: mov ecx, esi */ 335 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36153AB4: call dword ptr [0x3616f100] */ 336 RECOMP_FLAGS_IN(); 337 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 339 esi = esi + 0x10u; /* 0x36153ABA: add esi, 0x10 */ 340 _flag_k = FK_ADD; 341 /* cmp esi, ebx */ /* 0x36153ABD: cmp esi, ebx */ 342 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 344 _flag_k = FK_CMP; 345 RECOMP_BACKEDGE(); 346 if (CMP_NE(_flag_a, _flag_b)) goto L_36153AB0; /* 0x36153ABF: jne 0x36153ab0 */ 347 L_36153AC1: 348 eax = MEM32(ebp + (-0x14)); /* 0x36153AC1: mov eax, dword ptr [ebp - 0x14] */ 349 L_36153AC4: 350 MEM32(eax + 0x8) = edi; /* 0x36153AC4: mov dword ptr [eax + 8], edi */ 351 edi = MEM32(ebp + 0x8); /* 0x36153AC7: mov edi, dword ptr [ebp + 8] */ 352 eax = ebp + (-0x10); /* 0x36153ACA: lea eax, [ebp - 0x10] */ 353 PUSH32(esp, eax); /* 0x36153ACD: push eax */ 354 ecx = edi; /* 0x36153ACE: mov ecx, edi */ 355 MEM32(ebp + (-0x10)) = 0; /* 0x36153AD0: mov dword ptr [ebp - 0x10], 0 */ 356 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36153AD7: call dword ptr [0x3616fa8c] */ 357 RECOMP_FLAGS_IN(); 358 eax = MEM32(ebp + (-0x10)); /* 0x36153ADD: mov eax, dword ptr [ebp - 0x10] */ 359 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 360 esi = 0; /* 0x36153AE0: xor esi, esi */ 361 _cf = 0; 362 _flag_k = FK_TEST; 363 /* cmp eax, esi */ /* 0x36153AE2: cmp eax, esi */ 364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 365 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 366 _flag_k = FK_CMP; 367 if (CMP_G(_flag_a, _flag_b)) goto L_36153AFE; /* 0x36153AE4: jg 0x36153afe */ 368 L_36153AE6: 369 edi = POP32_VAL(esp); /* 0x36153AE6: pop edi */ 370 esi = POP32_VAL(esp); /* 0x36153AE7: pop esi */ 371 eax = 1; /* 0x36153AE8: mov eax, 1 */ 372 ebx = POP32_VAL(esp); /* 0x36153AED: pop ebx */ 373 ecx = MEM32(ebp + (-0xC)); /* 0x36153AEE: mov ecx, dword ptr [ebp - 0xc] */ 374 MEM32(FS_BASE + (0)) = ecx; /* 0x36153AF1: mov dword ptr fs:[0], ecx */ 375 esp = ebp; /* 0x36153AF8: mov esp, ebp */ 376 ebp = POP32_VAL(esp); /* 0x36153AFA: pop ebp */ 377 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36153AFB: ret 4 */ 378 L_36153AFE: 379 /* cmp eax, 0x3E8u */ /* 0x36153AFE: cmp eax, 0x3e8 */ 380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3E8u); 381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 382 _flag_k = FK_CMP; 383 if (CMP_LE(_flag_a, _flag_b)) goto L_36153B1D; /* 0x36153B03: jle 0x36153b1d */ 384 L_36153B05: 385 edi = POP32_VAL(esp); /* 0x36153B05: pop edi */ 386 esi = POP32_VAL(esp); /* 0x36153B06: pop esi */ 387 eax = 1; /* 0x36153B07: mov eax, 1 */ 388 ebx = POP32_VAL(esp); /* 0x36153B0C: pop ebx */ 389 ecx = MEM32(ebp + (-0xC)); /* 0x36153B0D: mov ecx, dword ptr [ebp - 0xc] */ 390 MEM32(FS_BASE + (0)) = ecx; /* 0x36153B10: mov dword ptr fs:[0], ecx */ 391 esp = ebp; /* 0x36153B17: mov esp, ebp */ 392 ebp = POP32_VAL(esp); /* 0x36153B19: pop ebp */ 393 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36153B1A: ret 4 */ 394 L_36153B1D: 395 /* cmp eax, esi */ /* 0x36153B1D: cmp eax, esi */ 396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 398 _flag_k = FK_CMP; 399 MEM32(ebp + (-0x1C)) = esi; /* 0x36153B1F: mov dword ptr [ebp - 0x1c], esi */ 400 if (CMP_LE(_flag_a, _flag_b)) goto L_36153C13; /* 0x36153B22: jle 0x36153c13 */ 401 L_36153B28: 402 ecx = ebp + (-0x18); /* 0x36153B28: lea ecx, [ebp - 0x18] */ 403 PUSH32(esp, ecx); /* 0x36153B2B: push ecx */ 404 ecx = edi; /* 0x36153B2C: mov ecx, edi */ 405 MEM32(ebp + (-0x18)) = esi; /* 0x36153B2E: mov dword ptr [ebp - 0x18], esi */ 406 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x36153B31: call dword ptr [0x3616fa8c] */ 407 RECOMP_FLAGS_IN(); 408 eax = MEM32(ebp + (-0x18)); /* 0x36153B37: mov eax, dword ptr [ebp - 0x18] */ 409 /* cmp eax, esi */ /* 0x36153B3A: cmp eax, esi */ 410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 412 _flag_k = FK_CMP; 413 RECOMP_BACKEDGE(); 414 if (CMP_LE(_flag_a, _flag_b)) goto L_36153B05; /* 0x36153B3C: jle 0x36153b05 */ 415 L_36153B3E: 416 /* cmp eax, 0x3E8u */ /* 0x36153B3E: cmp eax, 0x3e8 */ 417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3E8u); 418 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 419 _flag_k = FK_CMP; 420 RECOMP_BACKEDGE(); 421 if (CMP_G(_flag_a, _flag_b)) goto L_36153B05; /* 0x36153B43: jg 0x36153b05 */ 422 L_36153B45: 423 PUSH32(esp, eax); /* 0x36153B45: push eax */ 424 edx = ebp + (-0x418); /* 0x36153B46: lea edx, [ebp - 0x418] */ 425 PUSH32(esp, edx); /* 0x36153B4C: push edx */ 426 ecx = edi; /* 0x36153B4D: mov ecx, edi */ 427 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36153B4F: call dword ptr [0x3616fac4] */ 428 RECOMP_FLAGS_IN(); 429 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x36153B55: mov cl, byte ptr [ebp + 0xb] */ 430 eax = MEM32(ebp + (-0x18)); /* 0x36153B58: mov eax, dword ptr [ebp - 0x18] */ 431 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(ecx)); /* 0x36153B5B: mov byte ptr [ebp - 0x2c], cl */ 432 MEM8(ebp + eax + (-0x418)) = (uint8_t)(0); /* 0x36153B5E: mov byte ptr [ebp + eax - 0x418], 0 */ 433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 434 eax = 0; /* 0x36153B66: xor eax, eax */ 435 _cf = 0; 436 _flag_k = FK_TEST; 437 edi = ebp + (-0x418); /* 0x36153B68: lea edi, [ebp - 0x418] */ 438 PUSH32(esp, 1); /* 0x36153B6E: push 1 */ 439 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 440 ecx = ecx | 0xFFFFFFFFu; /* 0x36153B70: or ecx, 0xffffffff */ 441 _cf = 0; 442 _flag_k = FK_TEST; 443 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; } /* 0x36153B73: repne scasb al, byte ptr es:[edi] */ 444 ecx = ~ecx; /* 0x36153B75: not ecx */ 445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 446 ecx = ecx - 1; /* 0x36153B77: dec ecx */ 447 _flag_k = FK_DEC; 448 ebx = ecx; /* 0x36153B78: mov ebx, ecx */ 449 PUSH32(esp, ebx); /* 0x36153B7A: push ebx */ 450 ecx = ebp + (-0x2C); /* 0x36153B7B: lea ecx, [ebp - 0x2c] */ 451 MEM32(ebp + (-0x28)) = esi; /* 0x36153B7E: mov dword ptr [ebp - 0x28], esi */ 452 MEM32(ebp + (-0x24)) = esi; /* 0x36153B81: mov dword ptr [ebp - 0x24], esi */ 453 MEM32(ebp + (-0x20)) = esi; /* 0x36153B84: mov dword ptr [ebp - 0x20], esi */ 454 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36153B87: call dword ptr [0x3616f00c] */ 455 RECOMP_FLAGS_IN(); 456 /* test LO8(eax), LO8(eax) */ /* 0x36153B8D: test al, al */ 457 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 458 _cf = 0; 459 _flag_k = FK_NARROW(FK_TEST, 24); 460 if (TEST_Z(_flag_a, _flag_b)) goto L_36153BB6; /* 0x36153B8F: je 0x36153bb6 */ 461 L_36153B91: 462 edi = MEM32(ebp + (-0x28)); /* 0x36153B91: mov edi, dword ptr [ebp - 0x28] */ 463 ecx = ebx; /* 0x36153B94: mov ecx, ebx */ 464 edx = ecx; /* 0x36153B96: mov edx, ecx */ 465 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36153B98: shr ecx, 2 */ 466 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 467 ecx = ecx >> 2u; /* 0x36153B98: shr ecx, 2 */ 468 esi = ebp + (-0x418); /* 0x36153B9B: lea esi, [ebp - 0x418] */ 469 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36153BA1: 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; } 470 ecx = edx; /* 0x36153BA3: mov ecx, edx */ 471 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 472 ecx = ecx & 3; /* 0x36153BA5: and ecx, 3 */ 473 _cf = 0; 474 _flag_k = FK_TEST; 475 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36153BA8: 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; } 476 PUSH32(esp, ebx); /* 0x36153BAA: push ebx */ 477 ecx = ebp + (-0x2C); /* 0x36153BAB: lea ecx, [ebp - 0x2c] */ 478 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36153BAE: call dword ptr [0x3616f044] */ 479 RECOMP_FLAGS_IN(); 480 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 481 esi = 0; /* 0x36153BB4: xor esi, esi */ 482 _cf = 0; 483 _flag_k = FK_TEST; 484 L_36153BB6: 485 ecx = MEM32(ebp + (-0x14)); /* 0x36153BB6: mov ecx, dword ptr [ebp - 0x14] */ 486 eax = MEM32(ecx + 0x8); /* 0x36153BB9: mov eax, dword ptr [ecx + 8] */ 487 edx = ebp + (-0x2C); /* 0x36153BBC: lea edx, [ebp - 0x2c] */ 488 PUSH32(esp, edx); /* 0x36153BBF: push edx */ 489 PUSH32(esp, 1); /* 0x36153BC0: push 1 */ 490 PUSH32(esp, eax); /* 0x36153BC2: push eax */ 491 MEM32(ebp + (-0x4)) = esi; /* 0x36153BC3: mov dword ptr [ebp - 4], esi */ 492 RECOMP_ICALL(0x36154110u); /* 0x36153BC6: call 0x36154110 */ /* not lifted */ 493 RECOMP_FLAGS_IN(); 494 eax = MEM32(ebp + (-0x28)); /* 0x36153BCB: mov eax, dword ptr [ebp - 0x28] */ 495 /* cmp eax, esi */ /* 0x36153BCE: cmp eax, esi */ 496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 498 _flag_k = FK_CMP; 499 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36153BD0: mov dword ptr [ebp - 4], 0xffffffff */ 500 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153BF5; /* 0x36153BD7: je 0x36153bf5 */ 501 L_36153BD9: 502 ecx = eax + (-0x1); /* 0x36153BD9: lea ecx, [eax - 1] */ 503 SET_LO8(eax, MEM8(ecx)); /* 0x36153BDC: mov al, byte ptr [ecx] */ 504 /* test LO8(eax), LO8(eax) */ /* 0x36153BDE: test al, al */ 505 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 506 _cf = 0; 507 _flag_k = FK_NARROW(FK_TEST, 24); 508 if (TEST_Z(_flag_a, _flag_b)) goto L_36153BEC; /* 0x36153BE0: je 0x36153bec */ 509 L_36153BE2: 510 /* cmp LO8(eax), 0xFFu */ /* 0x36153BE2: cmp al, 0xff */ 511 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 513 _flag_k = FK_NARROW(FK_CMP, 24); 514 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153BEC; /* 0x36153BE4: je 0x36153bec */ 515 L_36153BE6: 516 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 517 SET_LO8(eax, LO8(eax) - 1); /* 0x36153BE6: dec al */ 518 _flag_k = FK_NARROW(FK_DEC, 24); 519 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36153BE8: mov byte ptr [ecx], al */ 520 goto L_36153BF5; /* 0x36153BEA: jmp 0x36153bf5 */ 521 L_36153BEC: 522 PUSH32(esp, ecx); /* 0x36153BEC: push ecx */ 523 RECOMP_ICALL(0x3615FCC4u); /* 0x36153BED: call 0x3615fcc4 */ /* not lifted */ 524 RECOMP_FLAGS_IN(); 525 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 526 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 527 esp = esp + 4; /* 0x36153BF2: add esp, 4 */ 528 _flag_k = FK_ADD; 529 L_36153BF5: 530 eax = MEM32(ebp + (-0x1C)); /* 0x36153BF5: mov eax, dword ptr [ebp - 0x1c] */ 531 ecx = MEM32(ebp + (-0x10)); /* 0x36153BF8: mov ecx, dword ptr [ebp - 0x10] */ 532 edi = MEM32(ebp + 0x8); /* 0x36153BFB: mov edi, dword ptr [ebp + 8] */ 533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 534 eax = eax + 1; /* 0x36153BFE: inc eax */ 535 _flag_k = FK_INC; 536 /* cmp eax, ecx */ /* 0x36153BFF: cmp eax, ecx */ 537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 539 _flag_k = FK_CMP; 540 MEM32(ebp + (-0x28)) = esi; /* 0x36153C01: mov dword ptr [ebp - 0x28], esi */ 541 MEM32(ebp + (-0x24)) = esi; /* 0x36153C04: mov dword ptr [ebp - 0x24], esi */ 542 MEM32(ebp + (-0x20)) = esi; /* 0x36153C07: mov dword ptr [ebp - 0x20], esi */ 543 MEM32(ebp + (-0x1C)) = eax; /* 0x36153C0A: mov dword ptr [ebp - 0x1c], eax */ 544 RECOMP_BACKEDGE(); 545 if (CMP_L(_flag_a, _flag_b)) goto L_36153B28; /* 0x36153C0D: jl 0x36153b28 */ 546 L_36153C13: 547 ecx = edi; /* 0x36153C13: mov ecx, edi */ 548 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36153C15: call dword ptr [0x3616fadc] */ 549 RECOMP_FLAGS_IN(); 550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 551 _cf = (eax) != 0; 552 eax = (uint32_t)(-(int32_t)eax); /* 0x36153C1B: neg eax */ 553 _flag_k = FK_CMP; 554 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36153C1D: sbb eax, eax */ 555 eax = _sc ? 0xFFFFFFFFu : 0; 556 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 557 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 559 eax = eax + 1; /* 0x36153C1F: inc eax */ 560 _flag_k = FK_INC; 561 L_36153C20: 562 ecx = MEM32(ebp + (-0xC)); /* 0x36153C20: mov ecx, dword ptr [ebp - 0xc] */ 563 edi = POP32_VAL(esp); /* 0x36153C23: pop edi */ 564 esi = POP32_VAL(esp); /* 0x36153C24: pop esi */ 565 ebx = POP32_VAL(esp); /* 0x36153C25: pop ebx */ 566 MEM32(FS_BASE + (0)) = ecx; /* 0x36153C26: mov dword ptr fs:[0], ecx */ 567 esp = ebp; /* 0x36153C2D: mov esp, ebp */ 568 ebp = POP32_VAL(esp); /* 0x36153C2F: pop ebp */ 569 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36153C30: ret 4 */ 570 RECOMP_REGS_OUT(); 571 } 572 573 void sub_36153C40(void) { 574 int _fpu_cmp = 0; 575 uint32_t _cf = 0; 576 int _df = 1; 577 uint32_t _flag_k = FK_NONE; 578 uint32_t _flag_a = 0, _flag_b = 0; 579 uint32_t _itail_tgt = 0; 580 RECOMP_REGS_LOCALS 581 RECOMP_ENTER(0x36153C40u); 582 583 L_36153C40: 584 PUSH32(esp, ebp); /* 0x36153C40: push ebp */ 585 ebp = esp; /* 0x36153C41: mov ebp, esp */ 586 PUSH32(esp, 0xFFFFFFFFu); /* 0x36153C43: push -1 */ 587 PUSH32(esp, 0x3616DA69u); /* 0x36153C45: push 0x3616da69 */ 588 eax = MEM32(FS_BASE + (0)); /* 0x36153C4A: mov eax, dword ptr fs:[0] */ 589 PUSH32(esp, eax); /* 0x36153C50: push eax */ 590 MEM32(FS_BASE + (0)) = esp; /* 0x36153C51: mov dword ptr fs:[0], esp */ 591 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 593 esp = esp - 0x18u; /* 0x36153C58: sub esp, 0x18 */ 594 _flag_k = FK_CMP; 595 PUSH32(esp, ebx); /* 0x36153C5B: push ebx */ 596 ebx = MEM32(ebp + 0x8); /* 0x36153C5C: mov ebx, dword ptr [ebp + 8] */ 597 PUSH32(esp, esi); /* 0x36153C5F: push esi */ 598 PUSH32(esp, edi); /* 0x36153C60: push edi */ 599 esi = ecx; /* 0x36153C61: mov esi, ecx */ 600 PUSH32(esp, ebx); /* 0x36153C63: push ebx */ 601 MEM32(ebp + (-0x14)) = esi; /* 0x36153C64: mov dword ptr [ebp - 0x14], esi */ 602 RECOMP_ICALL(0x36154DB0u); /* 0x36153C67: call 0x36154db0 */ /* not lifted */ 603 RECOMP_FLAGS_IN(); 604 eax = MEM32(esi + 0x2C); /* 0x36153C6C: mov eax, dword ptr [esi + 0x2c] */ 605 /* test eax, eax */ /* 0x36153C6F: test eax, eax */ 606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 607 _cf = 0; 608 _flag_k = FK_TEST; 609 if (TEST_Z(_flag_a, _flag_b)) goto L_36153D6B; /* 0x36153C71: je 0x36153d6b */ 610 L_36153C77: 611 edi = MEM32(esi + 0x30); /* 0x36153C77: mov edi, dword ptr [esi + 0x30] */ 612 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 614 edi = edi - eax; /* 0x36153C7A: sub edi, eax */ 615 _flag_k = FK_CMP; 616 if (4u) _cf = (((edi) >> 3) & 1u); /* 0x36153C7C: sar edi, 4 */ 617 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 618 edi = (uint32_t)((int32_t)edi >> 4u); 619 /* test edi, edi */ /* 0x36153C7F: test edi, edi */ 620 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 621 _cf = 0; 622 _flag_k = FK_TEST; 623 if (TEST_LE(_flag_a, _flag_b)) goto L_36153D6B; /* 0x36153C81: jle 0x36153d6b */ 624 L_36153C87: 625 /* cmp edi, 0x3E8u */ /* 0x36153C87: cmp edi, 0x3e8 */ 626 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x3E8u); 627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 628 _flag_k = FK_CMP; 629 if (CMP_G(_flag_a, _flag_b)) goto L_36153D6B; /* 0x36153C8D: jg 0x36153d6b */ 630 L_36153C93: 631 PUSH32(esp, edi); /* 0x36153C93: push edi */ 632 ecx = ebx; /* 0x36153C94: mov ecx, ebx */ 633 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36153C96: call dword ptr [0x3616faec] */ 634 RECOMP_FLAGS_IN(); 635 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36153C9C: mov al, byte ptr [ebp + 0xb] */ 636 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 637 ebx = 0; /* 0x36153C9F: xor ebx, ebx */ 638 _cf = 0; 639 _flag_k = FK_TEST; 640 PUSH32(esp, ebx); /* 0x36153CA1: push ebx */ 641 ecx = ebp + (-0x24); /* 0x36153CA2: lea ecx, [ebp - 0x24] */ 642 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x36153CA5: mov byte ptr [ebp - 0x24], al */ 643 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36153CA8: call dword ptr [0x3616f100] */ 644 RECOMP_FLAGS_IN(); 645 /* test edi, edi */ /* 0x36153CAE: test edi, edi */ 646 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 647 _cf = 0; 648 _flag_k = FK_TEST; 649 MEM32(ebp + (-0x4)) = ebx; /* 0x36153CB0: mov dword ptr [ebp - 4], ebx */ 650 if (TEST_LE(_flag_a, _flag_b)) goto L_36153D23; /* 0x36153CB3: jle 0x36153d23 */ 651 L_36153CB5: 652 MEM32(ebp + (-0x10)) = ebx; /* 0x36153CB5: mov dword ptr [ebp - 0x10], ebx */ 653 goto L_36153CBD; /* 0x36153CB8: jmp 0x36153cbd */ 654 L_36153CBA: 655 esi = MEM32(ebp + (-0x14)); /* 0x36153CBA: mov esi, dword ptr [ebp - 0x14] */ 656 L_36153CBD: 657 ecx = MEM32(0x3616F010); /* 0x36153CBD: mov ecx, dword ptr [0x3616f010] */ 658 edx = MEM32(ecx); /* 0x36153CC3: mov edx, dword ptr [ecx] */ 659 eax = MEM32(ebp + (-0x10)); /* 0x36153CC5: mov eax, dword ptr [ebp - 0x10] */ 660 PUSH32(esp, edx); /* 0x36153CC8: push edx */ 661 edx = MEM32(esi + 0x2C); /* 0x36153CC9: mov edx, dword ptr [esi + 0x2c] */ 662 PUSH32(esp, 0); /* 0x36153CCC: push 0 */ 663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 665 eax = eax + edx; /* 0x36153CCE: add eax, edx */ 666 _flag_k = FK_ADD; 667 PUSH32(esp, eax); /* 0x36153CD0: push eax */ 668 ecx = ebp + (-0x24); /* 0x36153CD1: lea ecx, [ebp - 0x24] */ 669 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x36153CD4: call dword ptr [0x3616f024] */ 670 RECOMP_FLAGS_IN(); 671 ecx = ebp + (-0x24); /* 0x36153CDA: lea ecx, [ebp - 0x24] */ 672 PUSH32(esp, ecx); /* 0x36153CDD: push ecx */ 673 ecx = esi; /* 0x36153CDE: mov ecx, esi */ 674 RECOMP_ICALL(0x36154DE0u); /* 0x36153CE0: call 0x36154de0 */ /* not lifted */ 675 RECOMP_FLAGS_IN(); 676 esi = MEM32(ebp + (-0x1C)); /* 0x36153CE5: mov esi, dword ptr [ebp - 0x1c] */ 677 /* test esi, esi */ /* 0x36153CE8: test esi, esi */ 678 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 679 _cf = 0; 680 _flag_k = FK_TEST; 681 if (TEST_LE(_flag_a, _flag_b)) goto L_36153D4D; /* 0x36153CEA: jle 0x36153d4d */ 682 L_36153CEC: 683 /* cmp esi, 0x3E8u */ /* 0x36153CEC: cmp esi, 0x3e8 */ 684 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3E8u); 685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 686 _flag_k = FK_CMP; 687 if (CMP_G(_flag_a, _flag_b)) goto L_36153D4D; /* 0x36153CF2: jg 0x36153d4d */ 688 L_36153CF4: 689 ecx = MEM32(ebp + 0x8); /* 0x36153CF4: mov ecx, dword ptr [ebp + 8] */ 690 PUSH32(esp, esi); /* 0x36153CF7: push esi */ 691 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36153CF8: call dword ptr [0x3616faec] */ 692 RECOMP_FLAGS_IN(); 693 eax = MEM32(ebp + (-0x20)); /* 0x36153CFE: mov eax, dword ptr [ebp - 0x20] */ 694 /* test eax, eax */ /* 0x36153D01: test eax, eax */ 695 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 696 _cf = 0; 697 _flag_k = FK_TEST; 698 if (TEST_NZ(_flag_a, _flag_b)) goto L_36153D0A; /* 0x36153D03: jne 0x36153d0a */ 699 L_36153D05: 700 eax = MEM32(0x3616F10C); /* 0x36153D05: mov eax, dword ptr [0x3616f10c] */ 701 L_36153D0A: 702 ecx = MEM32(ebp + 0x8); /* 0x36153D0A: mov ecx, dword ptr [ebp + 8] */ 703 PUSH32(esp, esi); /* 0x36153D0D: push esi */ 704 PUSH32(esp, eax); /* 0x36153D0E: push eax */ 705 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x36153D0F: call dword ptr [0x3616fab0] */ 706 RECOMP_FLAGS_IN(); 707 ecx = MEM32(ebp + (-0x10)); /* 0x36153D15: mov ecx, dword ptr [ebp - 0x10] */ 708 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 709 ebx = ebx + 1; /* 0x36153D18: inc ebx */ 710 _flag_k = FK_INC; 711 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 713 ecx = ecx + 0x10u; /* 0x36153D19: add ecx, 0x10 */ 714 _flag_k = FK_ADD; 715 /* cmp ebx, edi */ /* 0x36153D1C: cmp ebx, edi */ 716 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 718 _flag_k = FK_CMP; 719 MEM32(ebp + (-0x10)) = ecx; /* 0x36153D1E: mov dword ptr [ebp - 0x10], ecx */ 720 RECOMP_BACKEDGE(); 721 if (CMP_L(_flag_a, _flag_b)) goto L_36153CBA; /* 0x36153D21: jl 0x36153cba */ 722 L_36153D23: 723 ecx = MEM32(ebp + (-0x20)); /* 0x36153D23: mov ecx, dword ptr [ebp - 0x20] */ 724 /* test ecx, ecx */ /* 0x36153D26: test ecx, ecx */ 725 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 726 _cf = 0; 727 _flag_k = FK_TEST; 728 if (TEST_Z(_flag_a, _flag_b)) goto L_36153D6B; /* 0x36153D28: je 0x36153d6b */ 729 L_36153D2A: 730 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36153D2A: mov al, byte ptr [ecx - 1] */ 731 /* test LO8(eax), LO8(eax) */ /* 0x36153D2D: test al, al */ 732 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 733 _cf = 0; 734 _flag_k = FK_NARROW(FK_TEST, 24); 735 if (TEST_Z(_flag_a, _flag_b)) goto L_36153D61; /* 0x36153D2F: je 0x36153d61 */ 736 L_36153D31: 737 /* cmp LO8(eax), 0xFFu */ /* 0x36153D31: cmp al, 0xff */ 738 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 740 _flag_k = FK_NARROW(FK_CMP, 24); 741 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153D61; /* 0x36153D33: je 0x36153d61 */ 742 L_36153D35: 743 edi = POP32_VAL(esp); /* 0x36153D35: pop edi */ 744 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 745 SET_LO8(eax, LO8(eax) - 1); /* 0x36153D36: dec al */ 746 _flag_k = FK_NARROW(FK_DEC, 24); 747 esi = POP32_VAL(esp); /* 0x36153D38: pop esi */ 748 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x36153D39: mov byte ptr [ecx - 1], al */ 749 ebx = POP32_VAL(esp); /* 0x36153D3C: pop ebx */ 750 ecx = MEM32(ebp + (-0xC)); /* 0x36153D3D: mov ecx, dword ptr [ebp - 0xc] */ 751 MEM32(FS_BASE + (0)) = ecx; /* 0x36153D40: mov dword ptr fs:[0], ecx */ 752 esp = ebp; /* 0x36153D47: mov esp, ebp */ 753 ebp = POP32_VAL(esp); /* 0x36153D49: pop ebp */ 754 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36153D4A: ret 4 */ 755 L_36153D4D: 756 ecx = MEM32(ebp + (-0x20)); /* 0x36153D4D: mov ecx, dword ptr [ebp - 0x20] */ 757 /* test ecx, ecx */ /* 0x36153D50: test ecx, ecx */ 758 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 759 _cf = 0; 760 _flag_k = FK_TEST; 761 if (TEST_Z(_flag_a, _flag_b)) goto L_36153D6B; /* 0x36153D52: je 0x36153d6b */ 762 L_36153D54: 763 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36153D54: mov al, byte ptr [ecx - 1] */ 764 /* test LO8(eax), LO8(eax) */ /* 0x36153D57: test al, al */ 765 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 766 _cf = 0; 767 _flag_k = FK_NARROW(FK_TEST, 24); 768 if (TEST_Z(_flag_a, _flag_b)) goto L_36153D61; /* 0x36153D59: je 0x36153d61 */ 769 L_36153D5B: 770 /* cmp LO8(eax), 0xFFu */ /* 0x36153D5B: cmp al, 0xff */ 771 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 773 _flag_k = FK_NARROW(FK_CMP, 24); 774 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153D61; /* 0x36153D5D: je 0x36153d61 */ 775 L_36153D5F: 776 RECOMP_BACKEDGE(); 777 goto L_36153D35; /* 0x36153D5F: jmp 0x36153d35 */ 778 L_36153D61: 779 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 780 ecx = ecx - 1; /* 0x36153D61: dec ecx */ 781 _flag_k = FK_DEC; 782 PUSH32(esp, ecx); /* 0x36153D62: push ecx */ 783 RECOMP_ICALL(0x3615FCC4u); /* 0x36153D63: call 0x3615fcc4 */ /* not lifted */ 784 RECOMP_FLAGS_IN(); 785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 787 esp = esp + 4; /* 0x36153D68: add esp, 4 */ 788 _flag_k = FK_ADD; 789 L_36153D6B: 790 ecx = MEM32(ebp + (-0xC)); /* 0x36153D6B: mov ecx, dword ptr [ebp - 0xc] */ 791 edi = POP32_VAL(esp); /* 0x36153D6E: pop edi */ 792 esi = POP32_VAL(esp); /* 0x36153D6F: pop esi */ 793 ebx = POP32_VAL(esp); /* 0x36153D70: pop ebx */ 794 MEM32(FS_BASE + (0)) = ecx; /* 0x36153D71: mov dword ptr fs:[0], ecx */ 795 esp = ebp; /* 0x36153D78: mov esp, ebp */ 796 ebp = POP32_VAL(esp); /* 0x36153D7A: pop ebp */ 797 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36153D7B: ret 4 */ 798 RECOMP_REGS_OUT(); 799 } 800 801 void sub_36153D80(void) { 802 int _fpu_cmp = 0; 803 uint32_t _cf = 0; 804 int _df = 1; 805 uint32_t _flag_k = FK_NONE; 806 uint32_t _flag_a = 0, _flag_b = 0; 807 uint32_t _itail_tgt = 0; 808 RECOMP_REGS_LOCALS 809 RECOMP_ENTER(0x36153D80u); 810 811 L_36153D80: 812 PUSH32(esp, ebp); /* 0x36153D80: push ebp */ 813 ebp = esp; /* 0x36153D81: mov ebp, esp */ 814 PUSH32(esp, 0xFFFFFFFFu); /* 0x36153D83: push -1 */ 815 PUSH32(esp, 0x3616DA98u); /* 0x36153D85: push 0x3616da98 */ 816 eax = MEM32(FS_BASE + (0)); /* 0x36153D8A: mov eax, dword ptr fs:[0] */ 817 PUSH32(esp, eax); /* 0x36153D90: push eax */ 818 MEM32(FS_BASE + (0)) = esp; /* 0x36153D91: mov dword ptr fs:[0], esp */ 819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 821 esp = esp - 0x4Cu; /* 0x36153D98: sub esp, 0x4c */ 822 _flag_k = FK_CMP; 823 PUSH32(esp, ebx); /* 0x36153D9B: push ebx */ 824 PUSH32(esp, esi); /* 0x36153D9C: push esi */ 825 PUSH32(esp, edi); /* 0x36153D9D: push edi */ 826 esi = ecx; /* 0x36153D9E: mov esi, ecx */ 827 PUSH32(esp, 0xFFFFFFFFu); /* 0x36153DA0: push -1 */ 828 ecx = ebp + (-0x58); /* 0x36153DA2: lea ecx, [ebp - 0x58] */ 829 RECOMP_ICALL(MEM32(0x3616F358)); /* 0x36153DA5: call dword ptr [0x3616f358] */ 830 RECOMP_FLAGS_IN(); 831 ecx = MEM32(esi + 0x2C); /* 0x36153DAB: mov ecx, dword ptr [esi + 0x2c] */ 832 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 833 edi = 0; /* 0x36153DAE: xor edi, edi */ 834 _cf = 0; 835 _flag_k = FK_TEST; 836 /* cmp ecx, edi */ /* 0x36153DB0: cmp ecx, edi */ 837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 839 _flag_k = FK_CMP; 840 MEM32(ebp + (-0x4)) = edi; /* 0x36153DB2: mov dword ptr [ebp - 4], edi */ 841 if (CMP_NE(_flag_a, _flag_b)) goto L_36153DBB; /* 0x36153DB5: jne 0x36153dbb */ 842 L_36153DB7: 843 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 844 eax = 0; /* 0x36153DB7: xor eax, eax */ 845 _cf = 0; 846 _flag_k = FK_TEST; 847 goto L_36153DC3; /* 0x36153DB9: jmp 0x36153dc3 */ 848 L_36153DBB: 849 eax = MEM32(esi + 0x30); /* 0x36153DBB: mov eax, dword ptr [esi + 0x30] */ 850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 852 eax = eax - ecx; /* 0x36153DBE: sub eax, ecx */ 853 _flag_k = FK_CMP; 854 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x36153DC0: sar eax, 4 */ 855 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 856 eax = (uint32_t)((int32_t)eax >> 4u); 857 L_36153DC3: 858 PUSH32(esp, eax); /* 0x36153DC3: push eax */ 859 PUSH32(esp, 0x362E8634u); /* 0x36153DC4: push 0x362e8634 */ 860 ecx = ebp + (-0x58); /* 0x36153DC9: lea ecx, [ebp - 0x58] */ 861 RECOMP_ICALL(MEM32(0x3616F354)); /* 0x36153DCC: call dword ptr [0x3616f354] */ 862 RECOMP_FLAGS_IN(); 863 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 864 ebx = 0; /* 0x36153DD2: xor ebx, ebx */ 865 _cf = 0; 866 _flag_k = FK_TEST; 867 L_36153DD4: 868 eax = MEM32(esi + 0x2C); /* 0x36153DD4: mov eax, dword ptr [esi + 0x2c] */ 869 /* test eax, eax */ /* 0x36153DD7: test eax, eax */ 870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 871 _cf = 0; 872 _flag_k = FK_TEST; 873 if (TEST_Z(_flag_a, _flag_b)) goto L_36153E00; /* 0x36153DD9: je 0x36153e00 */ 874 L_36153DDB: 875 ecx = MEM32(esi + 0x30); /* 0x36153DDB: mov ecx, dword ptr [esi + 0x30] */ 876 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 878 ecx = ecx - eax; /* 0x36153DDE: sub ecx, eax */ 879 _flag_k = FK_CMP; 880 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36153DE0: sar ecx, 4 */ 881 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 882 ecx = (uint32_t)((int32_t)ecx >> 4u); 883 /* cmp ebx, ecx */ /* 0x36153DE3: cmp ebx, ecx */ 884 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 886 _flag_k = FK_CMP; 887 if (CMP_AE(_flag_a, _flag_b)) goto L_36153E00; /* 0x36153DE5: jae 0x36153e00 */ 888 L_36153DE7: 889 edx = eax; /* 0x36153DE7: mov edx, eax */ 890 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 892 edx = edx + edi; /* 0x36153DE9: add edx, edi */ 893 _flag_k = FK_ADD; 894 PUSH32(esp, edx); /* 0x36153DEB: push edx */ 895 PUSH32(esp, 0x362E862Cu); /* 0x36153DEC: push 0x362e862c */ 896 ecx = ebp + (-0x58); /* 0x36153DF1: lea ecx, [ebp - 0x58] */ 897 RECOMP_ICALL(MEM32(0x3616F350)); /* 0x36153DF4: call dword ptr [0x3616f350] */ 898 RECOMP_FLAGS_IN(); 899 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 900 ebx = ebx + 1; /* 0x36153DFA: inc ebx */ 901 _flag_k = FK_INC; 902 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 904 edi = edi + 0x10u; /* 0x36153DFB: add edi, 0x10 */ 905 _flag_k = FK_ADD; 906 RECOMP_BACKEDGE(); 907 goto L_36153DD4; /* 0x36153DFE: jmp 0x36153dd4 */ 908 L_36153E00: 909 ecx = ebp + (-0x58); /* 0x36153E00: lea ecx, [ebp - 0x58] */ 910 RECOMP_ICALL(MEM32(0x3616F348)); /* 0x36153E03: call dword ptr [0x3616f348] */ 911 RECOMP_FLAGS_IN(); 912 esi = eax; /* 0x36153E09: mov esi, eax */ 913 PUSH32(esp, esi); /* 0x36153E0B: push esi */ 914 RECOMP_ICALL(0x3615FD6Au); /* 0x36153E0C: call 0x3615fd6a */ /* not lifted */ 915 RECOMP_FLAGS_IN(); 916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 918 esp = esp + 4; /* 0x36153E11: add esp, 4 */ 919 _flag_k = FK_ADD; 920 edi = eax; /* 0x36153E14: mov edi, eax */ 921 PUSH32(esp, edi); /* 0x36153E16: push edi */ 922 ecx = ebp + (-0x58); /* 0x36153E17: lea ecx, [ebp - 0x58] */ 923 RECOMP_ICALL(MEM32(0x3616F344)); /* 0x36153E1A: call dword ptr [0x3616f344] */ 924 RECOMP_FLAGS_IN(); 925 ebx = MEM32(0x3616F304); /* 0x36153E20: mov ebx, dword ptr [0x3616f304] */ 926 PUSH32(esp, esi); /* 0x36153E26: push esi */ 927 PUSH32(esp, edi); /* 0x36153E27: push edi */ 928 PUSH32(esp, 0xD2u); /* 0x36153E28: push 0xd2 */ 929 PUSH32(esp, 0x25u); /* 0x36153E2D: push 0x25 */ 930 RECOMP_ICALL(ebx); /* 0x36153E2F: call ebx */ 931 RECOMP_FLAGS_IN(); 932 ecx = eax; /* 0x36153E31: mov ecx, eax */ 933 RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36153E33: call dword ptr [0x3616f310] */ 934 RECOMP_FLAGS_IN(); 935 PUSH32(esp, esi); /* 0x36153E39: push esi */ 936 RECOMP_ICALL(ebx); /* 0x36153E3A: call ebx */ 937 RECOMP_FLAGS_IN(); 938 ecx = eax; /* 0x36153E3C: mov ecx, eax */ 939 RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36153E3E: call dword ptr [0x3616f2fc] */ 940 RECOMP_FLAGS_IN(); 941 PUSH32(esp, edi); /* 0x36153E44: push edi */ 942 RECOMP_ICALL(0x3615FCC4u); /* 0x36153E45: call 0x3615fcc4 */ /* not lifted */ 943 RECOMP_FLAGS_IN(); 944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 946 esp = esp + 4; /* 0x36153E4A: add esp, 4 */ 947 _flag_k = FK_ADD; 948 MEM32(ebp + (-0x58)) = 0x36178B8Cu; /* 0x36153E4D: mov dword ptr [ebp - 0x58], 0x36178b8c */ 949 ecx = ebp + (-0x58); /* 0x36153E54: lea ecx, [ebp - 0x58] */ 950 MEM32(ebp + (-0x4)) = 2; /* 0x36153E57: mov dword ptr [ebp - 4], 2 */ 951 RECOMP_ICALL(MEM32(0x3616F34C)); /* 0x36153E5E: call dword ptr [0x3616f34c] */ 952 RECOMP_FLAGS_IN(); 953 eax = MEM32(ebp + (-0x24)); /* 0x36153E64: mov eax, dword ptr [ebp - 0x24] */ 954 PUSH32(esp, eax); /* 0x36153E67: push eax */ 955 RECOMP_ICALL(0x3615FCC4u); /* 0x36153E68: call 0x3615fcc4 */ /* not lifted */ 956 RECOMP_FLAGS_IN(); 957 eax = MEM32(ebp + (-0x50)); /* 0x36153E6D: mov eax, dword ptr [ebp - 0x50] */ 958 edx = MEM32(ebp + (-0x44)); /* 0x36153E70: mov edx, dword ptr [ebp - 0x44] */ 959 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 960 ebx = 0; /* 0x36153E73: xor ebx, ebx */ 961 _cf = 0; 962 _flag_k = FK_TEST; 963 MEM32(ebp + (-0x24)) = ebx; /* 0x36153E75: mov dword ptr [ebp - 0x24], ebx */ 964 MEM32(ebp + (-0x20)) = ebx; /* 0x36153E78: mov dword ptr [ebp - 0x20], ebx */ 965 MEM32(ebp + (-0x1C)) = ebx; /* 0x36153E7B: mov dword ptr [ebp - 0x1c], ebx */ 966 ecx = MEM32(eax); /* 0x36153E7E: mov ecx, dword ptr [eax] */ 967 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 969 esp = esp + 4; /* 0x36153E80: add esp, 4 */ 970 _flag_k = FK_ADD; 971 /* cmp edx, ebx */ /* 0x36153E83: cmp edx, ebx */ 972 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 974 _flag_k = FK_CMP; 975 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36153E85: mov dword ptr [ebp - 4], 0xffffffff */ 976 esi = eax; /* 0x36153E8C: mov esi, eax */ 977 MEM32(ebp + (-0x10)) = ecx; /* 0x36153E8E: mov dword ptr [ebp - 0x10], ecx */ 978 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153ECA; /* 0x36153E91: je 0x36153eca */ 979 L_36153E93: 980 edx = ecx; /* 0x36153E93: mov edx, ecx */ 981 /* cmp ecx, edx */ /* 0x36153E95: cmp ecx, edx */ 982 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 984 _flag_k = FK_CMP; 985 if (CMP_NE(_flag_a, _flag_b)) goto L_36153ECA; /* 0x36153E97: jne 0x36153eca */ 986 L_36153E99: 987 ecx = MEM32(eax + 0x4); /* 0x36153E99: mov ecx, dword ptr [eax + 4] */ 988 PUSH32(esp, ecx); /* 0x36153E9C: push ecx */ 989 ecx = ebp + (-0x54); /* 0x36153E9D: lea ecx, [ebp - 0x54] */ 990 RECOMP_ICALL(0x361547A0u); /* 0x36153EA0: call 0x361547a0 */ /* not lifted */ 991 RECOMP_FLAGS_IN(); 992 eax = MEM32(ebp + (-0x4C)); /* 0x36153EA5: mov eax, dword ptr [ebp - 0x4c] */ 993 edx = MEM32(ebp + (-0x50)); /* 0x36153EA8: mov edx, dword ptr [ebp - 0x50] */ 994 MEM32(edx + 0x4) = eax; /* 0x36153EAB: mov dword ptr [edx + 4], eax */ 995 eax = MEM32(ebp + (-0x50)); /* 0x36153EAE: mov eax, dword ptr [ebp - 0x50] */ 996 MEM32(ebp + (-0x44)) = ebx; /* 0x36153EB1: mov dword ptr [ebp - 0x44], ebx */ 997 MEM32(eax) = eax; /* 0x36153EB4: mov dword ptr [eax], eax */ 998 eax = MEM32(ebp + (-0x50)); /* 0x36153EB6: mov eax, dword ptr [ebp - 0x50] */ 999 ecx = ebp + (-0x14); /* 0x36153EB9: lea ecx, [ebp - 0x14] */ 1000 PUSH32(esp, ecx); /* 0x36153EBC: push ecx */ 1001 ecx = ebp + (-0x54); /* 0x36153EBD: lea ecx, [ebp - 0x54] */ 1002 MEM32(eax + 0x8) = eax; /* 0x36153EC0: mov dword ptr [eax + 8], eax */ 1003 RECOMP_ICALL(0x3614FC30u); /* 0x36153EC3: call 0x3614fc30 */ /* not lifted */ 1004 RECOMP_FLAGS_IN(); 1005 goto L_36153EEC; /* 0x36153EC8: jmp 0x36153eec */ 1006 L_36153ECA: 1007 /* cmp ecx, eax */ /* 0x36153ECA: cmp ecx, eax */ 1008 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1010 _flag_k = FK_CMP; 1011 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153EEF; /* 0x36153ECC: je 0x36153eef */ 1012 L_36153ECE: 1013 edi = ecx; /* 0x36153ECE: mov edi, ecx */ 1014 ecx = ebp + (-0x10); /* 0x36153ED0: lea ecx, [ebp - 0x10] */ 1015 RECOMP_ICALL(0x361547F0u); /* 0x36153ED3: call 0x361547f0 */ /* not lifted */ 1016 RECOMP_FLAGS_IN(); 1017 PUSH32(esp, edi); /* 0x36153ED8: push edi */ 1018 edx = ebp + (-0x18); /* 0x36153ED9: lea edx, [ebp - 0x18] */ 1019 PUSH32(esp, edx); /* 0x36153EDC: push edx */ 1020 ecx = ebp + (-0x54); /* 0x36153EDD: lea ecx, [ebp - 0x54] */ 1021 RECOMP_ICALL(0x361543D0u); /* 0x36153EE0: call 0x361543d0 */ /* not lifted */ 1022 RECOMP_FLAGS_IN(); 1023 ecx = MEM32(ebp + (-0x10)); /* 0x36153EE5: mov ecx, dword ptr [ebp - 0x10] */ 1024 /* cmp ecx, esi */ /* 0x36153EE8: cmp ecx, esi */ 1025 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1027 _flag_k = FK_CMP; 1028 RECOMP_BACKEDGE(); 1029 if (CMP_NE(_flag_a, _flag_b)) goto L_36153ECE; /* 0x36153EEA: jne 0x36153ece */ 1030 L_36153EEC: 1031 eax = MEM32(ebp + (-0x50)); /* 0x36153EEC: mov eax, dword ptr [ebp - 0x50] */ 1032 L_36153EEF: 1033 PUSH32(esp, eax); /* 0x36153EEF: push eax */ 1034 RECOMP_ICALL(0x3615FCC4u); /* 0x36153EF0: call 0x3615fcc4 */ /* not lifted */ 1035 RECOMP_FLAGS_IN(); 1036 eax = MEM32(ebp + (-0x4C)); /* 0x36153EF5: mov eax, dword ptr [ebp - 0x4c] */ 1037 PUSH32(esp, eax); /* 0x36153EF8: push eax */ 1038 MEM32(ebp + (-0x50)) = ebx; /* 0x36153EF9: mov dword ptr [ebp - 0x50], ebx */ 1039 MEM32(ebp + (-0x44)) = ebx; /* 0x36153EFC: mov dword ptr [ebp - 0x44], ebx */ 1040 RECOMP_ICALL(0x3615FCC4u); /* 0x36153EFF: call 0x3615fcc4 */ /* not lifted */ 1041 RECOMP_FLAGS_IN(); 1042 ecx = MEM32(ebp + (-0xC)); /* 0x36153F04: mov ecx, dword ptr [ebp - 0xc] */ 1043 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1045 esp = esp + 8; /* 0x36153F07: add esp, 8 */ 1046 _flag_k = FK_ADD; 1047 edi = POP32_VAL(esp); /* 0x36153F0A: pop edi */ 1048 esi = POP32_VAL(esp); /* 0x36153F0B: pop esi */ 1049 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1050 eax = 0; /* 0x36153F0C: xor eax, eax */ 1051 _cf = 0; 1052 _flag_k = FK_TEST; 1053 ebx = POP32_VAL(esp); /* 0x36153F0E: pop ebx */ 1054 MEM32(FS_BASE + (0)) = ecx; /* 0x36153F0F: mov dword ptr fs:[0], ecx */ 1055 esp = ebp; /* 0x36153F16: mov esp, ebp */ 1056 ebp = POP32_VAL(esp); /* 0x36153F18: pop ebp */ 1057 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36153F19: ret */ 1058 RECOMP_REGS_OUT(); 1059 } 1060 1061 void sub_36153F20(void) { 1062 int _fpu_cmp = 0; 1063 uint32_t _cf = 0; 1064 int _df = 1; 1065 uint32_t _flag_k = FK_NONE; 1066 uint32_t _flag_a = 0, _flag_b = 0; 1067 uint32_t _itail_tgt = 0; 1068 RECOMP_REGS_LOCALS 1069 RECOMP_ENTER(0x36153F20u); 1070 1071 L_36153F20: 1072 PUSH32(esp, ebp); /* 0x36153F20: push ebp */ 1073 ebp = esp; /* 0x36153F21: mov ebp, esp */ 1074 PUSH32(esp, 0xFFFFFFFFu); /* 0x36153F23: push -1 */ 1075 PUSH32(esp, 0x3616DAC6u); /* 0x36153F25: push 0x3616dac6 */ 1076 eax = MEM32(FS_BASE + (0)); /* 0x36153F2A: mov eax, dword ptr fs:[0] */ 1077 PUSH32(esp, eax); /* 0x36153F30: push eax */ 1078 MEM32(FS_BASE + (0)) = esp; /* 0x36153F31: mov dword ptr fs:[0], esp */ 1079 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1081 esp = esp - 8; /* 0x36153F38: sub esp, 8 */ 1082 _flag_k = FK_CMP; 1083 PUSH32(esp, ebx); /* 0x36153F3B: push ebx */ 1084 PUSH32(esp, esi); /* 0x36153F3C: push esi */ 1085 esi = ecx; /* 0x36153F3D: mov esi, ecx */ 1086 PUSH32(esp, edi); /* 0x36153F3F: push edi */ 1087 MEM32(ebp + (-0x10)) = esi; /* 0x36153F40: mov dword ptr [ebp - 0x10], esi */ 1088 MEM32(esi) = 0x36178B8Cu; /* 0x36153F43: mov dword ptr [esi], 0x36178b8c */ 1089 MEM32(ebp + (-0x4)) = 1; /* 0x36153F49: mov dword ptr [ebp - 4], 1 */ 1090 RECOMP_ICALL(MEM32(0x3616F34C)); /* 0x36153F50: call dword ptr [0x3616f34c] */ 1091 RECOMP_FLAGS_IN(); 1092 eax = MEM32(esi + 0x34); /* 0x36153F56: mov eax, dword ptr [esi + 0x34] */ 1093 PUSH32(esp, eax); /* 0x36153F59: push eax */ 1094 MEM32(ebp + (-0x10)) = eax; /* 0x36153F5A: mov dword ptr [ebp - 0x10], eax */ 1095 RECOMP_ICALL(0x3615FCC4u); /* 0x36153F5D: call 0x3615fcc4 */ /* not lifted */ 1096 RECOMP_FLAGS_IN(); 1097 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1098 ebx = 0; /* 0x36153F62: xor ebx, ebx */ 1099 _cf = 0; 1100 _flag_k = FK_TEST; 1101 MEM32(esi + 0x34) = ebx; /* 0x36153F64: mov dword ptr [esi + 0x34], ebx */ 1102 MEM32(esi + 0x38) = ebx; /* 0x36153F67: mov dword ptr [esi + 0x38], ebx */ 1103 MEM32(esi + 0x3C) = ebx; /* 0x36153F6A: mov dword ptr [esi + 0x3c], ebx */ 1104 edi = MEM32(esi + 0x8); /* 0x36153F6D: mov edi, dword ptr [esi + 8] */ 1105 ecx = MEM32(esi + 0x14); /* 0x36153F70: mov ecx, dword ptr [esi + 0x14] */ 1106 eax = MEM32(edi); /* 0x36153F73: mov eax, dword ptr [edi] */ 1107 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 1108 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1109 esi = esi + 4; /* 0x36153F75: add esi, 4 */ 1110 _flag_k = FK_ADD; 1111 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1113 esp = esp + 4; /* 0x36153F78: add esp, 4 */ 1114 _flag_k = FK_ADD; 1115 /* cmp ecx, ebx */ /* 0x36153F7B: cmp ecx, ebx */ 1116 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 1117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1118 _flag_k = FK_CMP; 1119 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36153F7D: mov dword ptr [ebp - 4], 0xffffffff */ 1120 MEM32(ebp + (-0x10)) = eax; /* 0x36153F84: mov dword ptr [ebp - 0x10], eax */ 1121 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153FB7; /* 0x36153F87: je 0x36153fb7 */ 1122 L_36153F89: 1123 ecx = eax; /* 0x36153F89: mov ecx, eax */ 1124 /* cmp eax, ecx */ /* 0x36153F8B: cmp eax, ecx */ 1125 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1126 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1127 _flag_k = FK_CMP; 1128 if (CMP_NE(_flag_a, _flag_b)) goto L_36153FB7; /* 0x36153F8D: jne 0x36153fb7 */ 1129 L_36153F8F: 1130 /* cmp edi, edi */ /* 0x36153F8F: cmp edi, edi */ 1131 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1133 _flag_k = FK_CMP; 1134 if (CMP_NE(_flag_a, _flag_b)) goto L_36153FB7; /* 0x36153F91: jne 0x36153fb7 */ 1135 L_36153F93: 1136 eax = MEM32(edi + 0x4); /* 0x36153F93: mov eax, dword ptr [edi + 4] */ 1137 PUSH32(esp, eax); /* 0x36153F96: push eax */ 1138 ecx = esi; /* 0x36153F97: mov ecx, esi */ 1139 RECOMP_ICALL(0x361547A0u); /* 0x36153F99: call 0x361547a0 */ /* not lifted */ 1140 RECOMP_FLAGS_IN(); 1141 ecx = MEM32(esi + 0x4); /* 0x36153F9E: mov ecx, dword ptr [esi + 4] */ 1142 edx = MEM32(esi + 0x8); /* 0x36153FA1: mov edx, dword ptr [esi + 8] */ 1143 MEM32(ecx + 0x4) = edx; /* 0x36153FA4: mov dword ptr [ecx + 4], edx */ 1144 eax = MEM32(esi + 0x4); /* 0x36153FA7: mov eax, dword ptr [esi + 4] */ 1145 MEM32(esi + 0x10) = ebx; /* 0x36153FAA: mov dword ptr [esi + 0x10], ebx */ 1146 MEM32(eax) = eax; /* 0x36153FAD: mov dword ptr [eax], eax */ 1147 eax = MEM32(esi + 0x4); /* 0x36153FAF: mov eax, dword ptr [esi + 4] */ 1148 MEM32(eax + 0x8) = eax; /* 0x36153FB2: mov dword ptr [eax + 8], eax */ 1149 goto L_36153FDA; /* 0x36153FB5: jmp 0x36153fda */ 1150 L_36153FB7: 1151 /* cmp eax, edi */ /* 0x36153FB7: cmp eax, edi */ 1152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1153 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1154 _flag_k = FK_CMP; 1155 if (CMP_EQ(_flag_a, _flag_b)) goto L_36153FDA; /* 0x36153FB9: je 0x36153fda */ 1156 L_36153FBB: 1157 ecx = ebp + (-0x10); /* 0x36153FBB: lea ecx, [ebp - 0x10] */ 1158 ebx = eax; /* 0x36153FBE: mov ebx, eax */ 1159 RECOMP_ICALL(0x361547F0u); /* 0x36153FC0: call 0x361547f0 */ /* not lifted */ 1160 RECOMP_FLAGS_IN(); 1161 PUSH32(esp, ebx); /* 0x36153FC5: push ebx */ 1162 eax = ebp + (-0x14); /* 0x36153FC6: lea eax, [ebp - 0x14] */ 1163 PUSH32(esp, eax); /* 0x36153FC9: push eax */ 1164 ecx = esi; /* 0x36153FCA: mov ecx, esi */ 1165 RECOMP_ICALL(0x361543D0u); /* 0x36153FCC: call 0x361543d0 */ /* not lifted */ 1166 RECOMP_FLAGS_IN(); 1167 eax = MEM32(ebp + (-0x10)); /* 0x36153FD1: mov eax, dword ptr [ebp - 0x10] */ 1168 /* cmp eax, edi */ /* 0x36153FD4: cmp eax, edi */ 1169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1171 _flag_k = FK_CMP; 1172 RECOMP_BACKEDGE(); 1173 if (CMP_NE(_flag_a, _flag_b)) goto L_36153FBB; /* 0x36153FD6: jne 0x36153fbb */ 1174 L_36153FD8: 1175 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1176 ebx = 0; /* 0x36153FD8: xor ebx, ebx */ 1177 _cf = 0; 1178 _flag_k = FK_TEST; 1179 L_36153FDA: 1180 ecx = MEM32(esi + 0x4); /* 0x36153FDA: mov ecx, dword ptr [esi + 4] */ 1181 PUSH32(esp, ecx); /* 0x36153FDD: push ecx */ 1182 RECOMP_ICALL(0x3615FCC4u); /* 0x36153FDE: call 0x3615fcc4 */ /* not lifted */ 1183 RECOMP_FLAGS_IN(); 1184 edx = MEM32(esi + 0x8); /* 0x36153FE3: mov edx, dword ptr [esi + 8] */ 1185 PUSH32(esp, edx); /* 0x36153FE6: push edx */ 1186 MEM32(esi + 0x4) = ebx; /* 0x36153FE7: mov dword ptr [esi + 4], ebx */ 1187 MEM32(esi + 0x10) = ebx; /* 0x36153FEA: mov dword ptr [esi + 0x10], ebx */ 1188 RECOMP_ICALL(0x3615FCC4u); /* 0x36153FED: call 0x3615fcc4 */ /* not lifted */ 1189 RECOMP_FLAGS_IN(); 1190 ecx = MEM32(ebp + (-0xC)); /* 0x36153FF2: mov ecx, dword ptr [ebp - 0xc] */ 1191 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1193 esp = esp + 8; /* 0x36153FF5: add esp, 8 */ 1194 _flag_k = FK_ADD; 1195 MEM32(esi + 0x8) = ebx; /* 0x36153FF8: mov dword ptr [esi + 8], ebx */ 1196 edi = POP32_VAL(esp); /* 0x36153FFB: pop edi */ 1197 esi = POP32_VAL(esp); /* 0x36153FFC: pop esi */ 1198 ebx = POP32_VAL(esp); /* 0x36153FFD: pop ebx */ 1199 MEM32(FS_BASE + (0)) = ecx; /* 0x36153FFE: mov dword ptr fs:[0], ecx */ 1200 esp = ebp; /* 0x36154005: mov esp, ebp */ 1201 ebp = POP32_VAL(esp); /* 0x36154007: pop ebp */ 1202 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154008: ret */ 1203 RECOMP_REGS_OUT(); 1204 } 1205 1206 void sub_36153FDA(void) { 1207 int _fpu_cmp = 0; 1208 uint32_t _cf = 0; 1209 int _df = 1; 1210 uint32_t _flag_k = FK_NONE; 1211 uint32_t _flag_a = 0, _flag_b = 0; 1212 uint32_t _itail_tgt = 0; 1213 RECOMP_REGS_LOCALS 1214 RECOMP_ENTER(0x36153FDAu); 1215 1216 L_36153FDA: 1217 ecx = MEM32(esi + 0x4); /* 0x36153FDA: mov ecx, dword ptr [esi + 4] */ 1218 PUSH32(esp, ecx); /* 0x36153FDD: push ecx */ 1219 RECOMP_ICALL(0x3615FCC4u); /* 0x36153FDE: call 0x3615fcc4 */ /* not lifted */ 1220 RECOMP_FLAGS_IN(); 1221 edx = MEM32(esi + 0x8); /* 0x36153FE3: mov edx, dword ptr [esi + 8] */ 1222 PUSH32(esp, edx); /* 0x36153FE6: push edx */ 1223 MEM32(esi + 0x4) = ebx; /* 0x36153FE7: mov dword ptr [esi + 4], ebx */ 1224 MEM32(esi + 0x10) = ebx; /* 0x36153FEA: mov dword ptr [esi + 0x10], ebx */ 1225 RECOMP_ICALL(0x3615FCC4u); /* 0x36153FED: call 0x3615fcc4 */ /* not lifted */ 1226 RECOMP_FLAGS_IN(); 1227 ecx = MEM32(ebp + (-0xC)); /* 0x36153FF2: mov ecx, dword ptr [ebp - 0xc] */ 1228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1230 esp = esp + 8; /* 0x36153FF5: add esp, 8 */ 1231 _flag_k = FK_ADD; 1232 MEM32(esi + 0x8) = ebx; /* 0x36153FF8: mov dword ptr [esi + 8], ebx */ 1233 edi = POP32_VAL(esp); /* 0x36153FFB: pop edi */ 1234 esi = POP32_VAL(esp); /* 0x36153FFC: pop esi */ 1235 ebx = POP32_VAL(esp); /* 0x36153FFD: pop ebx */ 1236 MEM32(FS_BASE + (0)) = ecx; /* 0x36153FFE: mov dword ptr fs:[0], ecx */ 1237 esp = ebp; /* 0x36154005: mov esp, ebp */ 1238 ebp = POP32_VAL(esp); /* 0x36154007: pop ebp */ 1239 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154008: ret */ 1240 RECOMP_REGS_OUT(); 1241 } 1242 1243 void sub_36154010(void) { 1244 int _fpu_cmp = 0; 1245 uint32_t _cf = 0; 1246 int _df = 1; 1247 uint32_t _flag_k = FK_NONE; 1248 uint32_t _flag_a = 0, _flag_b = 0; 1249 uint32_t _itail_tgt = 0; 1250 RECOMP_REGS_LOCALS 1251 RECOMP_ENTER(0x36154010u); 1252 1253 L_36154010: 1254 PUSH32(esp, ebp); /* 0x36154010: push ebp */ 1255 ebp = esp; /* 0x36154011: mov ebp, esp */ 1256 PUSH32(esp, esi); /* 0x36154013: push esi */ 1257 esi = ecx; /* 0x36154014: mov esi, ecx */ 1258 RECOMP_ICALL(0x36153F20u); /* 0x36154016: call 0x36153f20 */ /* not lifted */ 1259 RECOMP_FLAGS_IN(); 1260 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615401B: test byte ptr [ebp + 8], 1 */ 1261 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1262 _cf = 0; 1263 _flag_k = FK_NARROW(FK_TEST, 24); 1264 if (TEST_Z(_flag_a, _flag_b)) goto L_3615402A; /* 0x3615401F: je 0x3615402a */ 1265 L_36154021: 1266 PUSH32(esp, esi); /* 0x36154021: push esi */ 1267 RECOMP_ICALL(0x3615FCC4u); /* 0x36154022: call 0x3615fcc4 */ /* not lifted */ 1268 RECOMP_FLAGS_IN(); 1269 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1271 esp = esp + 4; /* 0x36154027: add esp, 4 */ 1272 _flag_k = FK_ADD; 1273 L_3615402A: 1274 eax = esi; /* 0x3615402A: mov eax, esi */ 1275 esi = POP32_VAL(esp); /* 0x3615402C: pop esi */ 1276 ebp = POP32_VAL(esp); /* 0x3615402D: pop ebp */ 1277 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615402E: ret 4 */ 1278 RECOMP_REGS_OUT(); 1279 } 1280 1281 void sub_36154040(void) { 1282 int _fpu_cmp = 0; 1283 uint32_t _cf = 0; 1284 int _df = 1; 1285 uint32_t _flag_k = FK_NONE; 1286 uint32_t _flag_a = 0, _flag_b = 0; 1287 uint32_t _itail_tgt = 0; 1288 RECOMP_REGS_LOCALS 1289 RECOMP_ENTER(0x36154040u); 1290 1291 L_36154040: 1292 PUSH32(esp, ebp); /* 0x36154040: push ebp */ 1293 ebp = esp; /* 0x36154041: mov ebp, esp */ 1294 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1296 esp = esp - 8; /* 0x36154043: sub esp, 8 */ 1297 _flag_k = FK_CMP; 1298 PUSH32(esp, ebx); /* 0x36154046: push ebx */ 1299 PUSH32(esp, esi); /* 0x36154047: push esi */ 1300 esi = ecx; /* 0x36154048: mov esi, ecx */ 1301 ecx = MEM32(esi + 0x10); /* 0x3615404A: mov ecx, dword ptr [esi + 0x10] */ 1302 /* test ecx, ecx */ /* 0x3615404D: test ecx, ecx */ 1303 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1304 _cf = 0; 1305 _flag_k = FK_TEST; 1306 PUSH32(esp, edi); /* 0x3615404F: push edi */ 1307 edi = MEM32(esi + 0x4); /* 0x36154050: mov edi, dword ptr [esi + 4] */ 1308 eax = MEM32(edi); /* 0x36154053: mov eax, dword ptr [edi] */ 1309 MEM32(ebp + (-0x4)) = eax; /* 0x36154055: mov dword ptr [ebp - 4], eax */ 1310 if (TEST_Z(_flag_a, _flag_b)) goto L_361540BF; /* 0x36154058: je 0x361540bf */ 1311 L_3615405A: 1312 ecx = eax; /* 0x3615405A: mov ecx, eax */ 1313 /* cmp eax, ecx */ /* 0x3615405C: cmp eax, ecx */ 1314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1316 _flag_k = FK_CMP; 1317 if (CMP_NE(_flag_a, _flag_b)) goto L_361540BF; /* 0x3615405E: jne 0x361540bf */ 1318 L_36154060: 1319 /* cmp edi, edi */ /* 0x36154060: cmp edi, edi */ 1320 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1322 _flag_k = FK_CMP; 1323 if (CMP_NE(_flag_a, _flag_b)) goto L_361540BF; /* 0x36154062: jne 0x361540bf */ 1324 L_36154064: 1325 ebx = MEM32(edi + 0x4); /* 0x36154064: mov ebx, dword ptr [edi + 4] */ 1326 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36154067: cmp ebx, dword ptr [esi + 8] */ 1327 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1328 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1329 _flag_k = FK_CMP; 1330 edi = ebx; /* 0x3615406A: mov edi, ebx */ 1331 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154097; /* 0x3615406C: je 0x36154097 */ 1332 L_3615406E: 1333 eax = MEM32(edi + 0x8); /* 0x3615406E: mov eax, dword ptr [edi + 8] */ 1334 PUSH32(esp, eax); /* 0x36154071: push eax */ 1335 ecx = esi; /* 0x36154072: mov ecx, esi */ 1336 RECOMP_ICALL(0x361547A0u); /* 0x36154074: call 0x361547a0 */ /* not lifted */ 1337 RECOMP_FLAGS_IN(); 1338 edi = MEM32(edi); /* 0x36154079: mov edi, dword ptr [edi] */ 1339 PUSH32(esp, 0); /* 0x3615407B: push 0 */ 1340 ecx = ebx + 0xC; /* 0x3615407D: lea ecx, [ebx + 0xc] */ 1341 RECOMP_ICALL(0x36154840u); /* 0x36154080: call 0x36154840 */ /* not lifted */ 1342 RECOMP_FLAGS_IN(); 1343 PUSH32(esp, ebx); /* 0x36154085: push ebx */ 1344 RECOMP_ICALL(0x3615FCC4u); /* 0x36154086: call 0x3615fcc4 */ /* not lifted */ 1345 RECOMP_FLAGS_IN(); 1346 eax = MEM32(esi + 0x8); /* 0x3615408B: mov eax, dword ptr [esi + 8] */ 1347 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1349 esp = esp + 4; /* 0x3615408E: add esp, 4 */ 1350 _flag_k = FK_ADD; 1351 /* cmp edi, eax */ /* 0x36154091: cmp edi, eax */ 1352 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1354 _flag_k = FK_CMP; 1355 ebx = edi; /* 0x36154093: mov ebx, edi */ 1356 RECOMP_BACKEDGE(); 1357 if (CMP_NE(_flag_a, _flag_b)) goto L_3615406E; /* 0x36154095: jne 0x3615406e */ 1358 L_36154097: 1359 ecx = MEM32(esi + 0x4); /* 0x36154097: mov ecx, dword ptr [esi + 4] */ 1360 edx = MEM32(esi + 0x8); /* 0x3615409A: mov edx, dword ptr [esi + 8] */ 1361 MEM32(ecx + 0x4) = edx; /* 0x3615409D: mov dword ptr [ecx + 4], edx */ 1362 eax = MEM32(esi + 0x4); /* 0x361540A0: mov eax, dword ptr [esi + 4] */ 1363 MEM32(esi + 0x10) = 0; /* 0x361540A3: mov dword ptr [esi + 0x10], 0 */ 1364 MEM32(eax) = eax; /* 0x361540AA: mov dword ptr [eax], eax */ 1365 eax = MEM32(esi + 0x4); /* 0x361540AC: mov eax, dword ptr [esi + 4] */ 1366 MEM32(eax + 0x8) = eax; /* 0x361540AF: mov dword ptr [eax + 8], eax */ 1367 eax = ebp + (-0x8); /* 0x361540B2: lea eax, [ebp - 8] */ 1368 PUSH32(esp, eax); /* 0x361540B5: push eax */ 1369 ecx = esi; /* 0x361540B6: mov ecx, esi */ 1370 RECOMP_ICALL(0x3614FC30u); /* 0x361540B8: call 0x3614fc30 */ /* not lifted */ 1371 RECOMP_FLAGS_IN(); 1372 goto L_361540E0; /* 0x361540BD: jmp 0x361540e0 */ 1373 L_361540BF: 1374 /* cmp eax, edi */ /* 0x361540BF: cmp eax, edi */ 1375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1377 _flag_k = FK_CMP; 1378 if (CMP_EQ(_flag_a, _flag_b)) goto L_361540E0; /* 0x361540C1: je 0x361540e0 */ 1379 L_361540C3: 1380 ecx = ebp + (-0x4); /* 0x361540C3: lea ecx, [ebp - 4] */ 1381 ebx = eax; /* 0x361540C6: mov ebx, eax */ 1382 RECOMP_ICALL(0x361547F0u); /* 0x361540C8: call 0x361547f0 */ /* not lifted */ 1383 RECOMP_FLAGS_IN(); 1384 PUSH32(esp, ebx); /* 0x361540CD: push ebx */ 1385 ecx = ebp + (-0x8); /* 0x361540CE: lea ecx, [ebp - 8] */ 1386 PUSH32(esp, ecx); /* 0x361540D1: push ecx */ 1387 ecx = esi; /* 0x361540D2: mov ecx, esi */ 1388 RECOMP_ICALL(0x361543D0u); /* 0x361540D4: call 0x361543d0 */ /* not lifted */ 1389 RECOMP_FLAGS_IN(); 1390 eax = MEM32(ebp + (-0x4)); /* 0x361540D9: mov eax, dword ptr [ebp - 4] */ 1391 /* cmp eax, edi */ /* 0x361540DC: cmp eax, edi */ 1392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1394 _flag_k = FK_CMP; 1395 RECOMP_BACKEDGE(); 1396 if (CMP_NE(_flag_a, _flag_b)) goto L_361540C3; /* 0x361540DE: jne 0x361540c3 */ 1397 L_361540E0: 1398 edx = MEM32(esi + 0x4); /* 0x361540E0: mov edx, dword ptr [esi + 4] */ 1399 PUSH32(esp, edx); /* 0x361540E3: push edx */ 1400 RECOMP_ICALL(0x3615FCC4u); /* 0x361540E4: call 0x3615fcc4 */ /* not lifted */ 1401 RECOMP_FLAGS_IN(); 1402 eax = MEM32(esi + 0x8); /* 0x361540E9: mov eax, dword ptr [esi + 8] */ 1403 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1404 edi = 0; /* 0x361540EC: xor edi, edi */ 1405 _cf = 0; 1406 _flag_k = FK_TEST; 1407 PUSH32(esp, eax); /* 0x361540EE: push eax */ 1408 MEM32(esi + 0x4) = edi; /* 0x361540EF: mov dword ptr [esi + 4], edi */ 1409 MEM32(esi + 0x10) = edi; /* 0x361540F2: mov dword ptr [esi + 0x10], edi */ 1410 RECOMP_ICALL(0x3615FCC4u); /* 0x361540F5: call 0x3615fcc4 */ /* not lifted */ 1411 RECOMP_FLAGS_IN(); 1412 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1414 esp = esp + 8; /* 0x361540FA: add esp, 8 */ 1415 _flag_k = FK_ADD; 1416 MEM32(esi + 0x8) = edi; /* 0x361540FD: mov dword ptr [esi + 8], edi */ 1417 edi = POP32_VAL(esp); /* 0x36154100: pop edi */ 1418 esi = POP32_VAL(esp); /* 0x36154101: pop esi */ 1419 ebx = POP32_VAL(esp); /* 0x36154102: pop ebx */ 1420 esp = ebp; /* 0x36154103: mov esp, ebp */ 1421 ebp = POP32_VAL(esp); /* 0x36154105: pop ebp */ 1422 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154106: ret */ 1423 RECOMP_REGS_OUT(); 1424 } 1425 1426 void sub_361540E0(void) { 1427 int _fpu_cmp = 0; 1428 uint32_t _cf = 0; 1429 int _df = 1; 1430 uint32_t _flag_k = FK_NONE; 1431 uint32_t _flag_a = 0, _flag_b = 0; 1432 uint32_t _itail_tgt = 0; 1433 RECOMP_REGS_LOCALS 1434 RECOMP_ENTER(0x361540E0u); 1435 1436 L_361540E0: 1437 edx = MEM32(esi + 0x4); /* 0x361540E0: mov edx, dword ptr [esi + 4] */ 1438 PUSH32(esp, edx); /* 0x361540E3: push edx */ 1439 RECOMP_ICALL(0x3615FCC4u); /* 0x361540E4: call 0x3615fcc4 */ /* not lifted */ 1440 RECOMP_FLAGS_IN(); 1441 eax = MEM32(esi + 0x8); /* 0x361540E9: mov eax, dword ptr [esi + 8] */ 1442 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1443 edi = 0; /* 0x361540EC: xor edi, edi */ 1444 _cf = 0; 1445 _flag_k = FK_TEST; 1446 PUSH32(esp, eax); /* 0x361540EE: push eax */ 1447 MEM32(esi + 0x4) = edi; /* 0x361540EF: mov dword ptr [esi + 4], edi */ 1448 MEM32(esi + 0x10) = edi; /* 0x361540F2: mov dword ptr [esi + 0x10], edi */ 1449 RECOMP_ICALL(0x3615FCC4u); /* 0x361540F5: call 0x3615fcc4 */ /* not lifted */ 1450 RECOMP_FLAGS_IN(); 1451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1453 esp = esp + 8; /* 0x361540FA: add esp, 8 */ 1454 _flag_k = FK_ADD; 1455 MEM32(esi + 0x8) = edi; /* 0x361540FD: mov dword ptr [esi + 8], edi */ 1456 edi = POP32_VAL(esp); /* 0x36154100: pop edi */ 1457 esi = POP32_VAL(esp); /* 0x36154101: pop esi */ 1458 ebx = POP32_VAL(esp); /* 0x36154102: pop ebx */ 1459 esp = ebp; /* 0x36154103: mov esp, ebp */ 1460 ebp = POP32_VAL(esp); /* 0x36154105: pop ebp */ 1461 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154106: ret */ 1462 RECOMP_REGS_OUT(); 1463 } 1464 1465 void sub_36154110(void) { 1466 int _fpu_cmp = 0; 1467 uint32_t _cf = 0; 1468 int _df = 1; 1469 uint32_t _flag_k = FK_NONE; 1470 uint32_t _flag_a = 0, _flag_b = 0; 1471 uint32_t _itail_tgt = 0; 1472 RECOMP_REGS_LOCALS 1473 RECOMP_ENTER(0x36154110u); 1474 1475 L_36154110: 1476 PUSH32(esp, ebp); /* 0x36154110: push ebp */ 1477 ebp = esp; /* 0x36154111: mov ebp, esp */ 1478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1479 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1480 esp = esp - 0xCu; /* 0x36154113: sub esp, 0xc */ 1481 _flag_k = FK_CMP; 1482 eax = MEM32(ecx + 0xC); /* 0x36154116: mov eax, dword ptr [ecx + 0xc] */ 1483 PUSH32(esp, ebx); /* 0x36154119: push ebx */ 1484 PUSH32(esp, esi); /* 0x3615411A: push esi */ 1485 esi = MEM32(ecx + 0x8); /* 0x3615411B: mov esi, dword ptr [ecx + 8] */ 1486 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1488 eax = eax - esi; /* 0x3615411E: sub eax, esi */ 1489 _flag_k = FK_CMP; 1490 PUSH32(esp, edi); /* 0x36154120: push edi */ 1491 edi = MEM32(ebp + 0xC); /* 0x36154121: mov edi, dword ptr [ebp + 0xc] */ 1492 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x36154124: sar eax, 4 */ 1493 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1494 eax = (uint32_t)((int32_t)eax >> 4u); 1495 /* cmp eax, edi */ /* 0x36154127: cmp eax, edi */ 1496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1498 _flag_k = FK_CMP; 1499 MEM32(ebp + (-0x4)) = ecx; /* 0x36154129: mov dword ptr [ebp - 4], ecx */ 1500 if (CMP_AE(_flag_a, _flag_b)) goto L_36154264; /* 0x3615412C: jae 0x36154264 */ 1501 L_36154132: 1502 ecx = MEM32(ecx + 0x4); /* 0x36154132: mov ecx, dword ptr [ecx + 4] */ 1503 /* test ecx, ecx */ /* 0x36154135: test ecx, ecx */ 1504 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1505 _cf = 0; 1506 _flag_k = FK_TEST; 1507 if (TEST_Z(_flag_a, _flag_b)) goto L_36154144; /* 0x36154137: je 0x36154144 */ 1508 L_36154139: 1509 eax = esi; /* 0x36154139: mov eax, esi */ 1510 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1512 eax = eax - ecx; /* 0x3615413B: sub eax, ecx */ 1513 _flag_k = FK_CMP; 1514 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615413D: sar eax, 4 */ 1515 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1516 eax = (uint32_t)((int32_t)eax >> 4u); 1517 /* cmp edi, eax */ /* 0x36154140: cmp edi, eax */ 1518 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1520 _flag_k = FK_CMP; 1521 if (CMP_B(_flag_a, _flag_b)) goto L_36154146; /* 0x36154142: jb 0x36154146 */ 1522 L_36154144: 1523 eax = edi; /* 0x36154144: mov eax, edi */ 1524 L_36154146: 1525 /* test ecx, ecx */ /* 0x36154146: test ecx, ecx */ 1526 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1527 _cf = 0; 1528 _flag_k = FK_TEST; 1529 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615414E; /* 0x36154148: jne 0x3615414e */ 1530 L_3615414A: 1531 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1532 esi = 0; /* 0x3615414A: xor esi, esi */ 1533 _cf = 0; 1534 _flag_k = FK_TEST; 1535 goto L_36154153; /* 0x3615414C: jmp 0x36154153 */ 1536 L_3615414E: 1537 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 1538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1539 esi = esi - ecx; /* 0x3615414E: sub esi, ecx */ 1540 _flag_k = FK_CMP; 1541 if (4u) _cf = (((esi) >> 3) & 1u); /* 0x36154150: sar esi, 4 */ 1542 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1543 esi = (uint32_t)((int32_t)esi >> 4u); 1544 L_36154153: 1545 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1547 eax = eax + esi; /* 0x36154153: add eax, esi */ 1548 _flag_k = FK_ADD; 1549 /* test eax, eax */ /* 0x36154155: test eax, eax */ 1550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1551 _cf = 0; 1552 _flag_k = FK_TEST; 1553 MEM32(ebp + (-0x8)) = eax; /* 0x36154157: mov dword ptr [ebp - 8], eax */ 1554 if (TEST_NS(_flag_a, _flag_b)) goto L_3615415E; /* 0x3615415A: jge 0x3615415e */ 1555 L_3615415C: 1556 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1557 eax = 0; /* 0x3615415C: xor eax, eax */ 1558 _cf = 0; 1559 _flag_k = FK_TEST; 1560 L_3615415E: 1561 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615415E: shl eax, 4 */ 1562 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1563 eax = eax << 4u; /* 0x3615415E: shl eax, 4 */ 1564 PUSH32(esp, eax); /* 0x36154161: push eax */ 1565 RECOMP_ICALL(0x3615FD6Au); /* 0x36154162: call 0x3615fd6a */ /* not lifted */ 1566 RECOMP_FLAGS_IN(); 1567 ecx = MEM32(ebp + (-0x4)); /* 0x36154167: mov ecx, dword ptr [ebp - 4] */ 1568 esi = MEM32(ecx + 0x4); /* 0x3615416A: mov esi, dword ptr [ecx + 4] */ 1569 MEM32(ebp + (-0xC)) = eax; /* 0x3615416D: mov dword ptr [ebp - 0xc], eax */ 1570 ebx = eax; /* 0x36154170: mov ebx, eax */ 1571 eax = MEM32(ebp + 0x8); /* 0x36154172: mov eax, dword ptr [ebp + 8] */ 1572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1574 esp = esp + 4; /* 0x36154175: add esp, 4 */ 1575 _flag_k = FK_ADD; 1576 /* cmp esi, eax */ /* 0x36154178: cmp esi, eax */ 1577 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1579 _flag_k = FK_CMP; 1580 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154193; /* 0x3615417A: je 0x36154193 */ 1581 L_3615417C: 1582 PUSH32(esp, esi); /* 0x3615417C: push esi */ 1583 PUSH32(esp, ebx); /* 0x3615417D: push ebx */ 1584 RECOMP_ICALL(0x360088E0u); /* 0x3615417E: call 0x360088e0 */ /* not lifted */ 1585 RECOMP_FLAGS_IN(); 1586 eax = MEM32(ebp + 0x8); /* 0x36154183: mov eax, dword ptr [ebp + 8] */ 1587 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1589 esi = esi + 0x10u; /* 0x36154186: add esi, 0x10 */ 1590 _flag_k = FK_ADD; 1591 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1592 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1593 esp = esp + 8; /* 0x36154189: add esp, 8 */ 1594 _flag_k = FK_ADD; 1595 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 1596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1597 ebx = ebx + 0x10u; /* 0x3615418C: add ebx, 0x10 */ 1598 _flag_k = FK_ADD; 1599 /* cmp esi, eax */ /* 0x3615418F: cmp esi, eax */ 1600 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1602 _flag_k = FK_CMP; 1603 RECOMP_BACKEDGE(); 1604 if (CMP_NE(_flag_a, _flag_b)) goto L_3615417C; /* 0x36154191: jne 0x3615417c */ 1605 L_36154193: 1606 /* test edi, edi */ /* 0x36154193: test edi, edi */ 1607 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1608 _cf = 0; 1609 _flag_k = FK_TEST; 1610 esi = ebx; /* 0x36154195: mov esi, ebx */ 1611 if (TEST_Z(_flag_a, _flag_b)) goto L_361541B5; /* 0x36154197: jbe 0x361541b5 */ 1612 L_36154199: 1613 MEM32(ebp + 0xC) = edi; /* 0x36154199: mov dword ptr [ebp + 0xc], edi */ 1614 L_3615419C: 1615 edx = MEM32(ebp + 0x10); /* 0x3615419C: mov edx, dword ptr [ebp + 0x10] */ 1616 PUSH32(esp, edx); /* 0x3615419F: push edx */ 1617 PUSH32(esp, esi); /* 0x361541A0: push esi */ 1618 RECOMP_ICALL(0x360088E0u); /* 0x361541A1: call 0x360088e0 */ /* not lifted */ 1619 RECOMP_FLAGS_IN(); 1620 eax = MEM32(ebp + 0xC); /* 0x361541A6: mov eax, dword ptr [ebp + 0xc] */ 1621 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1623 esp = esp + 8; /* 0x361541A9: add esp, 8 */ 1624 _flag_k = FK_ADD; 1625 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1626 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1627 esi = esi + 0x10u; /* 0x361541AC: add esi, 0x10 */ 1628 _flag_k = FK_ADD; 1629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1630 eax = eax - 1; /* 0x361541AF: dec eax */ 1631 _flag_k = FK_DEC; 1632 MEM32(ebp + 0xC) = eax; /* 0x361541B0: mov dword ptr [ebp + 0xc], eax */ 1633 RECOMP_BACKEDGE(); 1634 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3615419C; /* 0x361541B3: jne 0x3615419c */ 1635 L_361541B5: 1636 ecx = MEM32(ebp + (-0x4)); /* 0x361541B5: mov ecx, dword ptr [ebp - 4] */ 1637 esi = MEM32(ebp + 0x8); /* 0x361541B8: mov esi, dword ptr [ebp + 8] */ 1638 eax = edi; /* 0x361541BB: mov eax, edi */ 1639 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x361541BD: shl eax, 4 */ 1640 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1641 eax = eax << 4u; /* 0x361541BD: shl eax, 4 */ 1642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1643 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1644 eax = eax + ebx; /* 0x361541C0: add eax, ebx */ 1645 _flag_k = FK_ADD; 1646 ebx = MEM32(ecx + 0x8); /* 0x361541C2: mov ebx, dword ptr [ecx + 8] */ 1647 /* cmp esi, ebx */ /* 0x361541C5: cmp esi, ebx */ 1648 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1650 _flag_k = FK_CMP; 1651 if (CMP_EQ(_flag_a, _flag_b)) goto L_361541E9; /* 0x361541C7: je 0x361541e9 */ 1652 L_361541C9: 1653 MEM32(ebp + 0x8) = eax; /* 0x361541C9: mov dword ptr [ebp + 8], eax */ 1654 L_361541CC: 1655 edx = MEM32(ebp + 0x8); /* 0x361541CC: mov edx, dword ptr [ebp + 8] */ 1656 PUSH32(esp, esi); /* 0x361541CF: push esi */ 1657 PUSH32(esp, edx); /* 0x361541D0: push edx */ 1658 RECOMP_ICALL(0x360088E0u); /* 0x361541D1: call 0x360088e0 */ /* not lifted */ 1659 RECOMP_FLAGS_IN(); 1660 ecx = MEM32(ebp + 0x8); /* 0x361541D6: mov ecx, dword ptr [ebp + 8] */ 1661 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1663 esi = esi + 0x10u; /* 0x361541D9: add esi, 0x10 */ 1664 _flag_k = FK_ADD; 1665 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 1666 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1667 ecx = ecx + 0x10u; /* 0x361541DC: add ecx, 0x10 */ 1668 _flag_k = FK_ADD; 1669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1671 esp = esp + 8; /* 0x361541DF: add esp, 8 */ 1672 _flag_k = FK_ADD; 1673 /* cmp esi, ebx */ /* 0x361541E2: cmp esi, ebx */ 1674 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1676 _flag_k = FK_CMP; 1677 MEM32(ebp + 0x8) = ecx; /* 0x361541E4: mov dword ptr [ebp + 8], ecx */ 1678 RECOMP_BACKEDGE(); 1679 if (CMP_NE(_flag_a, _flag_b)) goto L_361541CC; /* 0x361541E7: jne 0x361541cc */ 1680 L_361541E9: 1681 eax = MEM32(ebp + (-0x4)); /* 0x361541E9: mov eax, dword ptr [ebp - 4] */ 1682 ebx = MEM32(eax + 0x8); /* 0x361541EC: mov ebx, dword ptr [eax + 8] */ 1683 esi = MEM32(eax + 0x4); /* 0x361541EF: mov esi, dword ptr [eax + 4] */ 1684 /* cmp esi, ebx */ /* 0x361541F2: cmp esi, ebx */ 1685 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1687 _flag_k = FK_CMP; 1688 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154207; /* 0x361541F4: je 0x36154207 */ 1689 L_361541F6: 1690 PUSH32(esp, 1); /* 0x361541F6: push 1 */ 1691 ecx = esi; /* 0x361541F8: mov ecx, esi */ 1692 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x361541FA: call dword ptr [0x3616f100] */ 1693 RECOMP_FLAGS_IN(); 1694 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1696 esi = esi + 0x10u; /* 0x36154200: add esi, 0x10 */ 1697 _flag_k = FK_ADD; 1698 /* cmp esi, ebx */ /* 0x36154203: cmp esi, ebx */ 1699 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1701 _flag_k = FK_CMP; 1702 RECOMP_BACKEDGE(); 1703 if (CMP_NE(_flag_a, _flag_b)) goto L_361541F6; /* 0x36154205: jne 0x361541f6 */ 1704 L_36154207: 1705 eax = MEM32(ebp + (-0x4)); /* 0x36154207: mov eax, dword ptr [ebp - 4] */ 1706 ecx = MEM32(eax + 0x4); /* 0x3615420A: mov ecx, dword ptr [eax + 4] */ 1707 PUSH32(esp, ecx); /* 0x3615420D: push ecx */ 1708 RECOMP_ICALL(0x3615FCC4u); /* 0x3615420E: call 0x3615fcc4 */ /* not lifted */ 1709 RECOMP_FLAGS_IN(); 1710 eax = MEM32(ebp + (-0x8)); /* 0x36154213: mov eax, dword ptr [ebp - 8] */ 1711 ecx = MEM32(ebp + (-0x4)); /* 0x36154216: mov ecx, dword ptr [ebp - 4] */ 1712 esi = MEM32(ebp + (-0xC)); /* 0x36154219: mov esi, dword ptr [ebp - 0xc] */ 1713 edx = MEM32(ecx + 0x4); /* 0x3615421C: mov edx, dword ptr [ecx + 4] */ 1714 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615421F: shl eax, 4 */ 1715 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1716 eax = eax << 4u; /* 0x3615421F: shl eax, 4 */ 1717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1719 eax = eax + esi; /* 0x36154222: add eax, esi */ 1720 _flag_k = FK_ADD; 1721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1723 esp = esp + 4; /* 0x36154224: add esp, 4 */ 1724 _flag_k = FK_ADD; 1725 /* test edx, edx */ /* 0x36154227: test edx, edx */ 1726 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1727 _cf = 0; 1728 _flag_k = FK_TEST; 1729 MEM32(ecx + 0xC) = eax; /* 0x36154229: mov dword ptr [ecx + 0xc], eax */ 1730 if (TEST_NZ(_flag_a, _flag_b)) goto L_36154246; /* 0x3615422C: jne 0x36154246 */ 1731 L_3615422E: 1732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1733 eax = 0; /* 0x3615422E: xor eax, eax */ 1734 _cf = 0; 1735 _flag_k = FK_TEST; 1736 eax = edi; /* 0x36154230: mov eax, edi */ 1737 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36154232: shl eax, 4 */ 1738 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1739 eax = eax << 4u; /* 0x36154232: shl eax, 4 */ 1740 edi = POP32_VAL(esp); /* 0x36154235: pop edi */ 1741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1743 eax = eax + esi; /* 0x36154236: add eax, esi */ 1744 _flag_k = FK_ADD; 1745 MEM32(ecx + 0x4) = esi; /* 0x36154238: mov dword ptr [ecx + 4], esi */ 1746 esi = POP32_VAL(esp); /* 0x3615423B: pop esi */ 1747 MEM32(ecx + 0x8) = eax; /* 0x3615423C: mov dword ptr [ecx + 8], eax */ 1748 ebx = POP32_VAL(esp); /* 0x3615423F: pop ebx */ 1749 esp = ebp; /* 0x36154240: mov esp, ebp */ 1750 ebp = POP32_VAL(esp); /* 0x36154242: pop ebp */ 1751 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36154243: ret 0xc */ 1752 L_36154246: 1753 eax = MEM32(ecx + 0x8); /* 0x36154246: mov eax, dword ptr [ecx + 8] */ 1754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1756 eax = eax - edx; /* 0x36154249: sub eax, edx */ 1757 _flag_k = FK_CMP; 1758 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615424B: sar eax, 4 */ 1759 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1760 eax = (uint32_t)((int32_t)eax >> 4u); 1761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1762 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1763 eax = eax + edi; /* 0x3615424E: add eax, edi */ 1764 _flag_k = FK_ADD; 1765 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36154250: shl eax, 4 */ 1766 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1767 eax = eax << 4u; /* 0x36154250: shl eax, 4 */ 1768 edi = POP32_VAL(esp); /* 0x36154253: pop edi */ 1769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1771 eax = eax + esi; /* 0x36154254: add eax, esi */ 1772 _flag_k = FK_ADD; 1773 MEM32(ecx + 0x4) = esi; /* 0x36154256: mov dword ptr [ecx + 4], esi */ 1774 esi = POP32_VAL(esp); /* 0x36154259: pop esi */ 1775 MEM32(ecx + 0x8) = eax; /* 0x3615425A: mov dword ptr [ecx + 8], eax */ 1776 ebx = POP32_VAL(esp); /* 0x3615425D: pop ebx */ 1777 esp = ebp; /* 0x3615425E: mov esp, ebp */ 1778 ebp = POP32_VAL(esp); /* 0x36154260: pop ebp */ 1779 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36154261: ret 0xc */ 1780 L_36154264: 1781 ebx = MEM32(ebp + 0x8); /* 0x36154264: mov ebx, dword ptr [ebp + 8] */ 1782 edx = esi; /* 0x36154267: mov edx, esi */ 1783 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 1784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1785 edx = edx - ebx; /* 0x36154269: sub edx, ebx */ 1786 _flag_k = FK_CMP; 1787 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x3615426B: sar edx, 4 */ 1788 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1789 edx = (uint32_t)((int32_t)edx >> 4u); 1790 /* cmp edx, edi */ /* 0x3615426E: cmp edx, edi */ 1791 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 1792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1793 _flag_k = FK_CMP; 1794 if (CMP_AE(_flag_a, _flag_b)) goto L_3615432A; /* 0x36154270: jae 0x3615432a */ 1795 L_36154276: 1796 eax = edi; /* 0x36154276: mov eax, edi */ 1797 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36154278: shl eax, 4 */ 1798 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1799 eax = eax << 4u; /* 0x36154278: shl eax, 4 */ 1800 /* cmp ebx, esi */ /* 0x3615427B: cmp ebx, esi */ 1801 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 1802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1803 _flag_k = FK_CMP; 1804 edx = eax + ebx; /* 0x3615427D: lea edx, [eax + ebx] */ 1805 MEM32(ebp + 0x8) = eax; /* 0x36154280: mov dword ptr [ebp + 8], eax */ 1806 MEM32(ebp + (-0xC)) = edx; /* 0x36154283: mov dword ptr [ebp - 0xc], edx */ 1807 MEM32(ebp + 0xC) = ebx; /* 0x36154286: mov dword ptr [ebp + 0xc], ebx */ 1808 if (CMP_EQ(_flag_a, _flag_b)) goto L_361542BC; /* 0x36154289: je 0x361542bc */ 1809 L_3615428B: 1810 eax = edx; /* 0x3615428B: mov eax, edx */ 1811 MEM32(ebp + (-0x8)) = eax; /* 0x3615428D: mov dword ptr [ebp - 8], eax */ 1812 L_36154290: 1813 ecx = MEM32(ebp + 0xC); /* 0x36154290: mov ecx, dword ptr [ebp + 0xc] */ 1814 edx = MEM32(ebp + (-0x8)); /* 0x36154293: mov edx, dword ptr [ebp - 8] */ 1815 PUSH32(esp, ecx); /* 0x36154296: push ecx */ 1816 PUSH32(esp, edx); /* 0x36154297: push edx */ 1817 RECOMP_ICALL(0x360088E0u); /* 0x36154298: call 0x360088e0 */ /* not lifted */ 1818 RECOMP_FLAGS_IN(); 1819 eax = MEM32(ebp + 0xC); /* 0x3615429D: mov eax, dword ptr [ebp + 0xc] */ 1820 edx = MEM32(ebp + (-0x8)); /* 0x361542A0: mov edx, dword ptr [ebp - 8] */ 1821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 1822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1823 eax = eax + 0x10u; /* 0x361542A3: add eax, 0x10 */ 1824 _flag_k = FK_ADD; 1825 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 1826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1827 edx = edx + 0x10u; /* 0x361542A6: add edx, 0x10 */ 1828 _flag_k = FK_ADD; 1829 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1830 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1831 esp = esp + 8; /* 0x361542A9: add esp, 8 */ 1832 _flag_k = FK_ADD; 1833 /* cmp eax, esi */ /* 0x361542AC: cmp eax, esi */ 1834 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1836 _flag_k = FK_CMP; 1837 MEM32(ebp + 0xC) = eax; /* 0x361542AE: mov dword ptr [ebp + 0xc], eax */ 1838 MEM32(ebp + (-0x8)) = edx; /* 0x361542B1: mov dword ptr [ebp - 8], edx */ 1839 RECOMP_BACKEDGE(); 1840 if (CMP_NE(_flag_a, _flag_b)) goto L_36154290; /* 0x361542B4: jne 0x36154290 */ 1841 L_361542B6: 1842 ecx = MEM32(ebp + (-0x4)); /* 0x361542B6: mov ecx, dword ptr [ebp - 4] */ 1843 eax = MEM32(ebp + 0x8); /* 0x361542B9: mov eax, dword ptr [ebp + 8] */ 1844 L_361542BC: 1845 esi = MEM32(ecx + 0x8); /* 0x361542BC: mov esi, dword ptr [ecx + 8] */ 1846 edx = esi; /* 0x361542BF: mov edx, esi */ 1847 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 1848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1849 edx = edx - ebx; /* 0x361542C1: sub edx, ebx */ 1850 _flag_k = FK_CMP; 1851 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361542C3: sar edx, 4 */ 1852 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1853 edx = (uint32_t)((int32_t)edx >> 4u); 1854 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1856 edi = edi - edx; /* 0x361542C6: sub edi, edx */ 1857 _flag_k = FK_CMP; 1858 edx = edi; /* 0x361542C8: mov edx, edi */ 1859 edi = MEM32(ebp + 0x10); /* 0x361542CA: mov edi, dword ptr [ebp + 0x10] */ 1860 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_361542EE; /* 0x361542CD: je 0x361542ee */ 1861 L_361542CF: 1862 MEM32(ebp + 0x10) = edx; /* 0x361542CF: mov dword ptr [ebp + 0x10], edx */ 1863 L_361542D2: 1864 PUSH32(esp, edi); /* 0x361542D2: push edi */ 1865 PUSH32(esp, esi); /* 0x361542D3: push esi */ 1866 RECOMP_ICALL(0x360088E0u); /* 0x361542D4: call 0x360088e0 */ /* not lifted */ 1867 RECOMP_FLAGS_IN(); 1868 eax = MEM32(ebp + 0x10); /* 0x361542D9: mov eax, dword ptr [ebp + 0x10] */ 1869 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1871 esp = esp + 8; /* 0x361542DC: add esp, 8 */ 1872 _flag_k = FK_ADD; 1873 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1874 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1875 esi = esi + 0x10u; /* 0x361542DF: add esi, 0x10 */ 1876 _flag_k = FK_ADD; 1877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1878 eax = eax - 1; /* 0x361542E2: dec eax */ 1879 _flag_k = FK_DEC; 1880 MEM32(ebp + 0x10) = eax; /* 0x361542E3: mov dword ptr [ebp + 0x10], eax */ 1881 RECOMP_BACKEDGE(); 1882 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_361542D2; /* 0x361542E6: jne 0x361542d2 */ 1883 L_361542E8: 1884 ecx = MEM32(ebp + (-0x4)); /* 0x361542E8: mov ecx, dword ptr [ebp - 4] */ 1885 eax = MEM32(ebp + 0x8); /* 0x361542EB: mov eax, dword ptr [ebp + 8] */ 1886 L_361542EE: 1887 esi = MEM32(ecx + 0x8); /* 0x361542EE: mov esi, dword ptr [ecx + 8] */ 1888 /* cmp ebx, esi */ /* 0x361542F1: cmp ebx, esi */ 1889 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 1890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1891 _flag_k = FK_CMP; 1892 if (CMP_EQ(_flag_a, _flag_b)) goto L_361543C1; /* 0x361542F3: je 0x361543c1 */ 1893 L_361542F9: 1894 eax = MEM32(0x3616F010); /* 0x361542F9: mov eax, dword ptr [0x3616f010] */ 1895 ecx = MEM32(eax); /* 0x361542FE: mov ecx, dword ptr [eax] */ 1896 PUSH32(esp, ecx); /* 0x36154300: push ecx */ 1897 PUSH32(esp, 0); /* 0x36154301: push 0 */ 1898 PUSH32(esp, edi); /* 0x36154303: push edi */ 1899 ecx = ebx; /* 0x36154304: mov ecx, ebx */ 1900 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x36154306: call dword ptr [0x3616f024] */ 1901 RECOMP_FLAGS_IN(); 1902 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 1903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1904 ebx = ebx + 0x10u; /* 0x3615430C: add ebx, 0x10 */ 1905 _flag_k = FK_ADD; 1906 /* cmp ebx, esi */ /* 0x3615430F: cmp ebx, esi */ 1907 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 1908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1909 _flag_k = FK_CMP; 1910 RECOMP_BACKEDGE(); 1911 if (CMP_NE(_flag_a, _flag_b)) goto L_361542F9; /* 0x36154311: jne 0x361542f9 */ 1912 L_36154313: 1913 ecx = MEM32(ebp + (-0x4)); /* 0x36154313: mov ecx, dword ptr [ebp - 4] */ 1914 edx = MEM32(ecx + 0x8); /* 0x36154316: mov edx, dword ptr [ecx + 8] */ 1915 eax = MEM32(ebp + 0x8); /* 0x36154319: mov eax, dword ptr [ebp + 8] */ 1916 edi = POP32_VAL(esp); /* 0x3615431C: pop edi */ 1917 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1918 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1919 edx = edx + eax; /* 0x3615431D: add edx, eax */ 1920 _flag_k = FK_ADD; 1921 esi = POP32_VAL(esp); /* 0x3615431F: pop esi */ 1922 MEM32(ecx + 0x8) = edx; /* 0x36154320: mov dword ptr [ecx + 8], edx */ 1923 ebx = POP32_VAL(esp); /* 0x36154323: pop ebx */ 1924 esp = ebp; /* 0x36154324: mov esp, ebp */ 1925 ebp = POP32_VAL(esp); /* 0x36154326: pop ebp */ 1926 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36154327: ret 0xc */ 1927 L_3615432A: 1928 /* test edi, edi */ /* 0x3615432A: test edi, edi */ 1929 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1930 _cf = 0; 1931 _flag_k = FK_TEST; 1932 if (TEST_Z(_flag_a, _flag_b)) goto L_361543C4; /* 0x3615432C: jbe 0x361543c4 */ 1933 L_36154332: 1934 if (4u) _cf = (((edi) >> 28) & 1u); /* 0x36154332: shl edi, 4 */ 1935 if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1936 edi = edi << 4u; /* 0x36154332: shl edi, 4 */ 1937 eax = edi; /* 0x36154335: mov eax, edi */ 1938 edi = esi; /* 0x36154337: mov edi, esi */ 1939 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1941 edi = edi - eax; /* 0x36154339: sub edi, eax */ 1942 _flag_k = FK_CMP; 1943 /* cmp edi, esi */ /* 0x3615433B: cmp edi, esi */ 1944 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1946 _flag_k = FK_CMP; 1947 MEM32(ebp + 0xC) = esi; /* 0x3615433D: mov dword ptr [ebp + 0xc], esi */ 1948 MEM32(ebp + 0x8) = eax; /* 0x36154340: mov dword ptr [ebp + 8], eax */ 1949 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154368; /* 0x36154343: je 0x36154368 */ 1950 L_36154345: 1951 edx = MEM32(ebp + 0xC); /* 0x36154345: mov edx, dword ptr [ebp + 0xc] */ 1952 PUSH32(esp, edi); /* 0x36154348: push edi */ 1953 PUSH32(esp, edx); /* 0x36154349: push edx */ 1954 RECOMP_ICALL(0x360088E0u); /* 0x3615434A: call 0x360088e0 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 edx = MEM32(ebp + 0xC); /* 0x3615434F: mov edx, dword ptr [ebp + 0xc] */ 1957 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 1958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1959 edx = edx + 0x10u; /* 0x36154352: add edx, 0x10 */ 1960 _flag_k = FK_ADD; 1961 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 1962 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1963 edi = edi + 0x10u; /* 0x36154355: add edi, 0x10 */ 1964 _flag_k = FK_ADD; 1965 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1966 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1967 esp = esp + 8; /* 0x36154358: add esp, 8 */ 1968 _flag_k = FK_ADD; 1969 /* cmp edi, esi */ /* 0x3615435B: cmp edi, esi */ 1970 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1972 _flag_k = FK_CMP; 1973 MEM32(ebp + 0xC) = edx; /* 0x3615435D: mov dword ptr [ebp + 0xc], edx */ 1974 RECOMP_BACKEDGE(); 1975 if (CMP_NE(_flag_a, _flag_b)) goto L_36154345; /* 0x36154360: jne 0x36154345 */ 1976 L_36154362: 1977 eax = MEM32(ebp + 0x8); /* 0x36154362: mov eax, dword ptr [ebp + 8] */ 1978 ecx = MEM32(ebp + (-0x4)); /* 0x36154365: mov ecx, dword ptr [ebp - 4] */ 1979 L_36154368: 1980 edi = MEM32(ecx + 0x8); /* 0x36154368: mov edi, dword ptr [ecx + 8] */ 1981 esi = edi; /* 0x3615436B: mov esi, edi */ 1982 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1984 esi = esi - eax; /* 0x3615436D: sub esi, eax */ 1985 _flag_k = FK_CMP; 1986 /* cmp ebx, esi */ /* 0x3615436F: cmp ebx, esi */ 1987 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 1988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1989 _flag_k = FK_CMP; 1990 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154396; /* 0x36154371: je 0x36154396 */ 1991 L_36154373: 1992 eax = MEM32(0x3616F010); /* 0x36154373: mov eax, dword ptr [0x3616f010] */ 1993 ecx = MEM32(eax); /* 0x36154378: mov ecx, dword ptr [eax] */ 1994 PUSH32(esp, ecx); /* 0x3615437A: push ecx */ 1995 PUSH32(esp, 0); /* 0x3615437B: push 0 */ 1996 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 1997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1998 esi = esi - 0x10u; /* 0x3615437D: sub esi, 0x10 */ 1999 _flag_k = FK_CMP; 2000 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 2001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2002 edi = edi - 0x10u; /* 0x36154380: sub edi, 0x10 */ 2003 _flag_k = FK_CMP; 2004 PUSH32(esp, esi); /* 0x36154383: push esi */ 2005 ecx = edi; /* 0x36154384: mov ecx, edi */ 2006 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x36154386: call dword ptr [0x3616f024] */ 2007 RECOMP_FLAGS_IN(); 2008 /* cmp esi, ebx */ /* 0x3615438C: cmp esi, ebx */ 2009 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2011 _flag_k = FK_CMP; 2012 RECOMP_BACKEDGE(); 2013 if (CMP_NE(_flag_a, _flag_b)) goto L_36154373; /* 0x3615438E: jne 0x36154373 */ 2014 L_36154390: 2015 eax = MEM32(ebp + 0x8); /* 0x36154390: mov eax, dword ptr [ebp + 8] */ 2016 ecx = MEM32(ebp + (-0x4)); /* 0x36154393: mov ecx, dword ptr [ebp - 4] */ 2017 L_36154396: 2018 esi = eax + ebx; /* 0x36154396: lea esi, [eax + ebx] */ 2019 /* cmp ebx, esi */ /* 0x36154399: cmp ebx, esi */ 2020 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 2021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2022 _flag_k = FK_CMP; 2023 if (CMP_EQ(_flag_a, _flag_b)) goto L_361543C1; /* 0x3615439B: je 0x361543c1 */ 2024 L_3615439D: 2025 edi = MEM32(ebp + 0x10); /* 0x3615439D: mov edi, dword ptr [ebp + 0x10] */ 2026 L_361543A0: 2027 edx = MEM32(0x3616F010); /* 0x361543A0: mov edx, dword ptr [0x3616f010] */ 2028 eax = MEM32(edx); /* 0x361543A6: mov eax, dword ptr [edx] */ 2029 PUSH32(esp, eax); /* 0x361543A8: push eax */ 2030 PUSH32(esp, 0); /* 0x361543A9: push 0 */ 2031 PUSH32(esp, edi); /* 0x361543AB: push edi */ 2032 ecx = ebx; /* 0x361543AC: mov ecx, ebx */ 2033 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x361543AE: call dword ptr [0x3616f024] */ 2034 RECOMP_FLAGS_IN(); 2035 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x10u); 2036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2037 ebx = ebx + 0x10u; /* 0x361543B4: add ebx, 0x10 */ 2038 _flag_k = FK_ADD; 2039 /* cmp ebx, esi */ /* 0x361543B7: cmp ebx, esi */ 2040 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 2041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2042 _flag_k = FK_CMP; 2043 RECOMP_BACKEDGE(); 2044 if (CMP_NE(_flag_a, _flag_b)) goto L_361543A0; /* 0x361543B9: jne 0x361543a0 */ 2045 L_361543BB: 2046 eax = MEM32(ebp + 0x8); /* 0x361543BB: mov eax, dword ptr [ebp + 8] */ 2047 ecx = MEM32(ebp + (-0x4)); /* 0x361543BE: mov ecx, dword ptr [ebp - 4] */ 2048 L_361543C1: 2049 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(eax); 2050 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2051 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + eax; /* 0x361543C1: add dword ptr [ecx + 8], eax */ 2052 _flag_k = FK_ADD; 2053 L_361543C4: 2054 edi = POP32_VAL(esp); /* 0x361543C4: pop edi */ 2055 esi = POP32_VAL(esp); /* 0x361543C5: pop esi */ 2056 ebx = POP32_VAL(esp); /* 0x361543C6: pop ebx */ 2057 esp = ebp; /* 0x361543C7: mov esp, ebp */ 2058 ebp = POP32_VAL(esp); /* 0x361543C9: pop ebp */ 2059 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x361543CA: ret 0xc */ 2060 RECOMP_REGS_OUT(); 2061 } 2062 2063 void sub_361543D0(void) { 2064 int _fpu_cmp = 0; 2065 uint32_t _cf = 0; 2066 int _df = 1; 2067 uint32_t _flag_k = FK_NONE; 2068 uint32_t _flag_a = 0, _flag_b = 0; 2069 uint32_t _itail_tgt = 0; 2070 RECOMP_REGS_LOCALS 2071 RECOMP_ENTER(0x361543D0u); 2072 2073 L_361543D0: 2074 PUSH32(esp, ebp); /* 0x361543D0: push ebp */ 2075 ebp = esp; /* 0x361543D1: mov ebp, esp */ 2076 PUSH32(esp, ecx); /* 0x361543D3: push ecx */ 2077 PUSH32(esp, ebx); /* 0x361543D4: push ebx */ 2078 PUSH32(esp, esi); /* 0x361543D5: push esi */ 2079 esi = MEM32(ebp + 0xC); /* 0x361543D6: mov esi, dword ptr [ebp + 0xc] */ 2080 PUSH32(esp, edi); /* 0x361543D9: push edi */ 2081 edi = ecx; /* 0x361543DA: mov edi, ecx */ 2082 ecx = ebp + 0xC; /* 0x361543DC: lea ecx, [ebp + 0xc] */ 2083 RECOMP_ICALL(0x361547F0u); /* 0x361543DF: call 0x361547f0 */ /* not lifted */ 2084 RECOMP_FLAGS_IN(); 2085 edx = MEM32(esi); /* 0x361543E4: mov edx, dword ptr [esi] */ 2086 eax = MEM32(edi + 0x8); /* 0x361543E6: mov eax, dword ptr [edi + 8] */ 2087 /* cmp edx, eax */ /* 0x361543E9: cmp edx, eax */ 2088 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2090 _flag_k = FK_CMP; 2091 MEM32(ebp + (-0x4)) = esi; /* 0x361543EB: mov dword ptr [ebp - 4], esi */ 2092 if (CMP_NE(_flag_a, _flag_b)) goto L_36154410; /* 0x361543EE: jne 0x36154410 */ 2093 L_361543F0: 2094 eax = MEM32(esi + 0x8); /* 0x361543F0: mov eax, dword ptr [esi + 8] */ 2095 L_361543F3: 2096 ecx = MEM32(ebp + (-0x4)); /* 0x361543F3: mov ecx, dword ptr [ebp - 4] */ 2097 edx = MEM32(ecx + 0x4); /* 0x361543F6: mov edx, dword ptr [ecx + 4] */ 2098 MEM32(eax + 0x4) = edx; /* 0x361543F9: mov dword ptr [eax + 4], edx */ 2099 ecx = MEM32(edi + 0x4); /* 0x361543FC: mov ecx, dword ptr [edi + 4] */ 2100 /* cmp MEM32(ecx + 0x4), esi */ /* 0x361543FF: cmp dword ptr [ecx + 4], esi */ 2101 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 2102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2103 _flag_k = FK_CMP; 2104 if (CMP_NE(_flag_a, _flag_b)) goto L_36154493; /* 0x36154402: jne 0x36154493 */ 2105 L_36154408: 2106 MEM32(ecx + 0x4) = eax; /* 0x36154408: mov dword ptr [ecx + 4], eax */ 2107 goto L_361544A1; /* 0x3615440B: jmp 0x361544a1 */ 2108 L_36154410: 2109 ecx = MEM32(esi + 0x8); /* 0x36154410: mov ecx, dword ptr [esi + 8] */ 2110 /* cmp ecx, eax */ /* 0x36154413: cmp ecx, eax */ 2111 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2113 _flag_k = FK_CMP; 2114 if (CMP_NE(_flag_a, _flag_b)) goto L_3615441B; /* 0x36154415: jne 0x3615441b */ 2115 L_36154417: 2116 eax = edx; /* 0x36154417: mov eax, edx */ 2117 RECOMP_BACKEDGE(); 2118 goto L_361543F3; /* 0x36154419: jmp 0x361543f3 */ 2119 L_3615441B: 2120 eax = MEM32(ecx); /* 0x3615441B: mov eax, dword ptr [ecx] */ 2121 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3615441D: mov bl, byte ptr [eax + 0x3d] */ 2122 /* test LO8(ebx), LO8(ebx) */ /* 0x36154420: test bl, bl */ 2123 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2124 _cf = 0; 2125 _flag_k = FK_NARROW(FK_TEST, 24); 2126 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615442F; /* 0x36154422: jne 0x3615442f */ 2127 L_36154424: 2128 ecx = eax; /* 0x36154424: mov ecx, eax */ 2129 eax = MEM32(ecx); /* 0x36154426: mov eax, dword ptr [ecx] */ 2130 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x36154428: mov bl, byte ptr [eax + 0x3d] */ 2131 /* test LO8(ebx), LO8(ebx) */ /* 0x3615442B: test bl, bl */ 2132 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2133 _cf = 0; 2134 _flag_k = FK_NARROW(FK_TEST, 24); 2135 RECOMP_BACKEDGE(); 2136 if (TEST_Z(_flag_a, _flag_b)) goto L_36154424; /* 0x3615442D: je 0x36154424 */ 2137 L_3615442F: 2138 /* cmp ecx, esi */ /* 0x3615442F: cmp ecx, esi */ 2139 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2141 _flag_k = FK_CMP; 2142 eax = MEM32(ecx + 0x8); /* 0x36154431: mov eax, dword ptr [ecx + 8] */ 2143 MEM32(ebp + (-0x4)) = ecx; /* 0x36154434: mov dword ptr [ebp - 4], ecx */ 2144 RECOMP_BACKEDGE(); 2145 if (CMP_EQ(_flag_a, _flag_b)) goto L_361543F3; /* 0x36154437: je 0x361543f3 */ 2146 L_36154439: 2147 MEM32(edx + 0x4) = ecx; /* 0x36154439: mov dword ptr [edx + 4], ecx */ 2148 edx = MEM32(esi); /* 0x3615443C: mov edx, dword ptr [esi] */ 2149 MEM32(ecx) = edx; /* 0x3615443E: mov dword ptr [ecx], edx */ 2150 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154440: cmp ecx, dword ptr [esi + 8] */ 2151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2153 _flag_k = FK_CMP; 2154 if (CMP_NE(_flag_a, _flag_b)) goto L_3615444A; /* 0x36154443: jne 0x3615444a */ 2155 L_36154445: 2156 MEM32(eax + 0x4) = ecx; /* 0x36154445: mov dword ptr [eax + 4], ecx */ 2157 goto L_36154461; /* 0x36154448: jmp 0x36154461 */ 2158 L_3615444A: 2159 edx = MEM32(ecx + 0x4); /* 0x3615444A: mov edx, dword ptr [ecx + 4] */ 2160 MEM32(eax + 0x4) = edx; /* 0x3615444D: mov dword ptr [eax + 4], edx */ 2161 edx = MEM32(ecx + 0x4); /* 0x36154450: mov edx, dword ptr [ecx + 4] */ 2162 MEM32(edx) = eax; /* 0x36154453: mov dword ptr [edx], eax */ 2163 edx = MEM32(esi + 0x8); /* 0x36154455: mov edx, dword ptr [esi + 8] */ 2164 MEM32(ecx + 0x8) = edx; /* 0x36154458: mov dword ptr [ecx + 8], edx */ 2165 edx = MEM32(esi + 0x8); /* 0x3615445B: mov edx, dword ptr [esi + 8] */ 2166 MEM32(edx + 0x4) = ecx; /* 0x3615445E: mov dword ptr [edx + 4], ecx */ 2167 L_36154461: 2168 edx = MEM32(edi + 0x4); /* 0x36154461: mov edx, dword ptr [edi + 4] */ 2169 /* cmp MEM32(edx + 0x4), esi */ /* 0x36154464: cmp dword ptr [edx + 4], esi */ 2170 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 2171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2172 _flag_k = FK_CMP; 2173 if (CMP_NE(_flag_a, _flag_b)) goto L_3615446E; /* 0x36154467: jne 0x3615446e */ 2174 L_36154469: 2175 MEM32(edx + 0x4) = ecx; /* 0x36154469: mov dword ptr [edx + 4], ecx */ 2176 goto L_3615447C; /* 0x3615446C: jmp 0x3615447c */ 2177 L_3615446E: 2178 edx = MEM32(esi + 0x4); /* 0x3615446E: mov edx, dword ptr [esi + 4] */ 2179 /* cmp MEM32(edx), esi */ /* 0x36154471: cmp dword ptr [edx], esi */ 2180 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 2181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2182 _flag_k = FK_CMP; 2183 if (CMP_NE(_flag_a, _flag_b)) goto L_36154479; /* 0x36154473: jne 0x36154479 */ 2184 L_36154475: 2185 MEM32(edx) = ecx; /* 0x36154475: mov dword ptr [edx], ecx */ 2186 goto L_3615447C; /* 0x36154477: jmp 0x3615447c */ 2187 L_36154479: 2188 MEM32(edx + 0x8) = ecx; /* 0x36154479: mov dword ptr [edx + 8], ecx */ 2189 L_3615447C: 2190 edx = MEM32(esi + 0x4); /* 0x3615447C: mov edx, dword ptr [esi + 4] */ 2191 MEM32(ecx + 0x4) = edx; /* 0x3615447F: mov dword ptr [ecx + 4], edx */ 2192 SET_LO8(ebx, MEM8(esi + 0x3C)); /* 0x36154482: mov bl, byte ptr [esi + 0x3c] */ 2193 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154485: mov dl, byte ptr [ecx + 0x3c] */ 2194 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154488: mov byte ptr [ecx + 0x3c], bl */ 2195 MEM8(esi + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615448B: mov byte ptr [esi + 0x3c], dl */ 2196 MEM32(ebp + (-0x4)) = esi; /* 0x3615448E: mov dword ptr [ebp - 4], esi */ 2197 goto L_361544F8; /* 0x36154491: jmp 0x361544f8 */ 2198 L_36154493: 2199 ecx = MEM32(esi + 0x4); /* 0x36154493: mov ecx, dword ptr [esi + 4] */ 2200 /* cmp MEM32(ecx), esi */ /* 0x36154496: cmp dword ptr [ecx], esi */ 2201 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 2202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2203 _flag_k = FK_CMP; 2204 if (CMP_NE(_flag_a, _flag_b)) goto L_3615449E; /* 0x36154498: jne 0x3615449e */ 2205 L_3615449A: 2206 MEM32(ecx) = eax; /* 0x3615449A: mov dword ptr [ecx], eax */ 2207 goto L_361544A1; /* 0x3615449C: jmp 0x361544a1 */ 2208 L_3615449E: 2209 MEM32(ecx + 0x8) = eax; /* 0x3615449E: mov dword ptr [ecx + 8], eax */ 2210 L_361544A1: 2211 ebx = MEM32(edi + 0x4); /* 0x361544A1: mov ebx, dword ptr [edi + 4] */ 2212 /* cmp MEM32(ebx), esi */ /* 0x361544A4: cmp dword ptr [ebx], esi */ 2213 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 2214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2215 _flag_k = FK_CMP; 2216 if (CMP_NE(_flag_a, _flag_b)) goto L_361544CB; /* 0x361544A6: jne 0x361544cb */ 2217 L_361544A8: 2218 ecx = MEM32(esi + 0x8); /* 0x361544A8: mov ecx, dword ptr [esi + 8] */ 2219 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x361544AB: cmp ecx, dword ptr [edi + 8] */ 2220 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2222 _flag_k = FK_CMP; 2223 if (CMP_NE(_flag_a, _flag_b)) goto L_361544B5; /* 0x361544AE: jne 0x361544b5 */ 2224 L_361544B0: 2225 edx = MEM32(esi + 0x4); /* 0x361544B0: mov edx, dword ptr [esi + 4] */ 2226 goto L_361544C9; /* 0x361544B3: jmp 0x361544c9 */ 2227 L_361544B5: 2228 ecx = MEM32(eax); /* 0x361544B5: mov ecx, dword ptr [eax] */ 2229 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544B7: cmp byte ptr [ecx + 0x3d], 0 */ 2230 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2232 _flag_k = FK_NARROW(FK_CMP, 24); 2233 edx = eax; /* 0x361544BB: mov edx, eax */ 2234 if (CMP_NE(_flag_a, _flag_b)) goto L_361544C9; /* 0x361544BD: jne 0x361544c9 */ 2235 L_361544BF: 2236 edx = ecx; /* 0x361544BF: mov edx, ecx */ 2237 ecx = MEM32(edx); /* 0x361544C1: mov ecx, dword ptr [edx] */ 2238 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544C3: cmp byte ptr [ecx + 0x3d], 0 */ 2239 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2241 _flag_k = FK_NARROW(FK_CMP, 24); 2242 RECOMP_BACKEDGE(); 2243 if (CMP_EQ(_flag_a, _flag_b)) goto L_361544BF; /* 0x361544C7: je 0x361544bf */ 2244 L_361544C9: 2245 MEM32(ebx) = edx; /* 0x361544C9: mov dword ptr [ebx], edx */ 2246 L_361544CB: 2247 ebx = MEM32(edi + 0x4); /* 0x361544CB: mov ebx, dword ptr [edi + 4] */ 2248 /* cmp MEM32(ebx + 0x8), esi */ /* 0x361544CE: cmp dword ptr [ebx + 8], esi */ 2249 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 2250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2251 _flag_k = FK_CMP; 2252 if (CMP_NE(_flag_a, _flag_b)) goto L_361544F8; /* 0x361544D1: jne 0x361544f8 */ 2253 L_361544D3: 2254 ecx = MEM32(esi); /* 0x361544D3: mov ecx, dword ptr [esi] */ 2255 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x361544D5: cmp ecx, dword ptr [edi + 8] */ 2256 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2258 _flag_k = FK_CMP; 2259 if (CMP_NE(_flag_a, _flag_b)) goto L_361544DF; /* 0x361544D8: jne 0x361544df */ 2260 L_361544DA: 2261 edx = MEM32(esi + 0x4); /* 0x361544DA: mov edx, dword ptr [esi + 4] */ 2262 goto L_361544F5; /* 0x361544DD: jmp 0x361544f5 */ 2263 L_361544DF: 2264 ecx = MEM32(eax + 0x8); /* 0x361544DF: mov ecx, dword ptr [eax + 8] */ 2265 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544E2: cmp byte ptr [ecx + 0x3d], 0 */ 2266 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2268 _flag_k = FK_NARROW(FK_CMP, 24); 2269 edx = eax; /* 0x361544E6: mov edx, eax */ 2270 if (CMP_NE(_flag_a, _flag_b)) goto L_361544F5; /* 0x361544E8: jne 0x361544f5 */ 2271 L_361544EA: 2272 edx = ecx; /* 0x361544EA: mov edx, ecx */ 2273 ecx = MEM32(edx + 0x8); /* 0x361544EC: mov ecx, dword ptr [edx + 8] */ 2274 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544EF: cmp byte ptr [ecx + 0x3d], 0 */ 2275 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2277 _flag_k = FK_NARROW(FK_CMP, 24); 2278 RECOMP_BACKEDGE(); 2279 if (CMP_EQ(_flag_a, _flag_b)) goto L_361544EA; /* 0x361544F3: je 0x361544ea */ 2280 L_361544F5: 2281 MEM32(ebx + 0x8) = edx; /* 0x361544F5: mov dword ptr [ebx + 8], edx */ 2282 L_361544F8: 2283 esi = MEM32(ebp + (-0x4)); /* 0x361544F8: mov esi, dword ptr [ebp - 4] */ 2284 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x361544FB: mov cl, byte ptr [esi + 0x3c] */ 2285 SET_LO8(ebx, 1); /* 0x361544FE: mov bl, 1 */ 2286 /* cmp LO8(ecx), LO8(ebx) */ /* 0x36154500: cmp cl, bl */ 2287 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2289 _flag_k = FK_NARROW(FK_CMP, 24); 2290 if (CMP_NE(_flag_a, _flag_b)) goto L_36154768; /* 0x36154502: jne 0x36154768 */ 2291 L_36154508: 2292 ecx = MEM32(edi + 0x4); /* 0x36154508: mov ecx, dword ptr [edi + 4] */ 2293 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3615450B: cmp eax, dword ptr [ecx + 4] */ 2294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2296 _flag_k = FK_CMP; 2297 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154762; /* 0x3615450E: je 0x36154762 */ 2298 L_36154514: 2299 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 2300 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2302 _flag_k = FK_NARROW(FK_CMP, 24); 2303 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 2304 L_3615451D: 2305 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 2306 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 2307 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 2308 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2310 _flag_k = FK_CMP; 2311 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 2312 L_36154526: 2313 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 2314 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 2315 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 2316 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2317 _cf = 0; 2318 _flag_k = FK_NARROW(FK_TEST, 24); 2319 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 2320 L_36154530: 2321 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 2322 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 2323 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 2324 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 2325 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 2326 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 2327 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 2328 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 2329 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 2330 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2332 _flag_k = FK_CMP; 2333 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 2334 L_3615454C: 2335 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 2336 L_3615454F: 2337 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 2338 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 2339 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 2340 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 2341 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2343 _flag_k = FK_CMP; 2344 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 2345 L_3615455D: 2346 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 2347 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 2348 L_36154562: 2349 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 2350 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 2351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2353 _flag_k = FK_CMP; 2354 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 2355 L_36154569: 2356 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 2357 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 2358 L_3615456D: 2359 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 2360 L_36154570: 2361 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 2362 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 2363 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 2364 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 2365 L_3615457B: 2366 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 2367 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 2368 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2370 _flag_k = FK_NARROW(FK_CMP, 24); 2371 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 2372 L_36154586: 2373 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 2374 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 2375 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2377 _flag_k = FK_NARROW(FK_CMP, 24); 2378 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 2379 L_36154592: 2380 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 2381 L_36154594: 2382 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 2383 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 2384 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2385 _cf = 0; 2386 _flag_k = FK_NARROW(FK_TEST, 24); 2387 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 2388 L_3615459B: 2389 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 2390 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 2391 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 2392 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 2393 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 2394 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 2395 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 2396 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 2397 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 2398 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2399 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2400 _flag_k = FK_CMP; 2401 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 2402 L_361545B7: 2403 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 2404 L_361545BA: 2405 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 2406 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 2407 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 2408 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 2409 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2411 _flag_k = FK_CMP; 2412 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 2413 L_361545C8: 2414 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 2415 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 2416 L_361545CD: 2417 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 2418 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 2419 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2421 _flag_k = FK_CMP; 2422 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 2423 L_361545D5: 2424 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 2425 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 2426 L_361545DA: 2427 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 2428 L_361545DC: 2429 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 2430 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 2431 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 2432 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 2433 L_361545E7: 2434 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 2435 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 2436 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2438 _flag_k = FK_NARROW(FK_CMP, 24); 2439 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 2440 L_361545F3: 2441 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 2442 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 2443 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2445 _flag_k = FK_NARROW(FK_CMP, 24); 2446 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 2447 L_361545FE: 2448 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 2449 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 2450 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 2451 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 2452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2454 _flag_k = FK_CMP; 2455 RECOMP_BACKEDGE(); 2456 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 2457 L_36154611: 2458 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 2459 L_36154616: 2460 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 2461 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 2462 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2464 _flag_k = FK_NARROW(FK_CMP, 24); 2465 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 2466 L_3615461E: 2467 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 2468 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 2469 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 2470 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 2471 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 2472 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 2473 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 2474 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 2475 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2477 _flag_k = FK_CMP; 2478 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 2479 L_36154636: 2480 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 2481 L_36154639: 2482 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 2483 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 2484 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 2485 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 2486 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2488 _flag_k = FK_CMP; 2489 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 2490 L_36154647: 2491 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 2492 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 2493 L_3615464C: 2494 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 2495 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 2496 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2498 _flag_k = FK_CMP; 2499 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 2500 L_36154654: 2501 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 2502 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 2503 L_36154659: 2504 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 2505 L_3615465B: 2506 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 2507 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 2508 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 2509 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 2510 L_36154667: 2511 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 2512 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 2513 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 2514 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 2515 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 2516 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 2517 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 2518 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 2519 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 2520 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 2521 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 2522 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 2523 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 2524 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2526 _flag_k = FK_CMP; 2527 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 2528 L_3615468E: 2529 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 2530 L_36154691: 2531 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 2532 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 2533 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 2534 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 2535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2537 _flag_k = FK_CMP; 2538 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 2539 L_3615469F: 2540 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 2541 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 2542 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 2543 L_361546A9: 2544 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 2545 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 2546 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2548 _flag_k = FK_CMP; 2549 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 2550 L_361546B0: 2551 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 2552 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 2553 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 2554 L_361546B9: 2555 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 2556 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 2557 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 2558 L_361546C3: 2559 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 2560 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 2561 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2563 _flag_k = FK_NARROW(FK_CMP, 24); 2564 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 2565 L_361546CA: 2566 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 2567 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 2568 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 2569 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 2570 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 2571 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 2572 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 2573 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 2574 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2576 _flag_k = FK_CMP; 2577 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 2578 L_361546E3: 2579 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 2580 L_361546E6: 2581 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 2582 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 2583 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 2584 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 2585 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2587 _flag_k = FK_CMP; 2588 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 2589 L_361546F4: 2590 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 2591 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 2592 L_361546F9: 2593 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 2594 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 2595 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2597 _flag_k = FK_CMP; 2598 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 2599 L_36154700: 2600 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 2601 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 2602 L_36154704: 2603 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 2604 L_36154707: 2605 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 2606 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 2607 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 2608 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 2609 L_36154711: 2610 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 2611 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 2612 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 2613 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 2614 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 2615 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 2616 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 2617 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 2618 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 2619 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 2620 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 2621 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 2622 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 2623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2625 _flag_k = FK_CMP; 2626 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 2627 L_36154737: 2628 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 2629 L_3615473A: 2630 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 2631 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 2632 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 2633 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 2634 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2635 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2636 _flag_k = FK_CMP; 2637 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 2638 L_36154748: 2639 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 2640 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 2641 L_3615474D: 2642 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 2643 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 2644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2646 _flag_k = FK_CMP; 2647 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 2648 L_36154755: 2649 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 2650 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 2651 L_3615475A: 2652 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 2653 L_3615475C: 2654 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 2655 L_3615475F: 2656 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 2657 L_36154762: 2658 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 2659 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 2660 L_36154768: 2661 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 2662 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 2663 RECOMP_FLAGS_IN(); 2664 PUSH32(esp, esi); /* 0x36154770: push esi */ 2665 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 2666 RECOMP_FLAGS_IN(); 2667 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 2668 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 2669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2671 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 2672 _flag_k = FK_ADD; 2673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2674 eax = eax - 1; /* 0x3615477F: dec eax */ 2675 _flag_k = FK_DEC; 2676 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 2677 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 2678 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 2679 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 2680 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 2681 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 2682 esp = ebp; /* 0x3615478B: mov esp, ebp */ 2683 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 2684 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 2685 RECOMP_REGS_OUT(); 2686 } 2687 2688 void sub_361544A1(void) { 2689 int _fpu_cmp = 0; 2690 uint32_t _cf = 0; 2691 int _df = 1; 2692 uint32_t _flag_k = FK_NONE; 2693 uint32_t _flag_a = 0, _flag_b = 0; 2694 uint32_t _itail_tgt = 0; 2695 RECOMP_REGS_LOCALS 2696 RECOMP_ENTER(0x361544A1u); 2697 2698 L_361544A1: 2699 ebx = MEM32(edi + 0x4); /* 0x361544A1: mov ebx, dword ptr [edi + 4] */ 2700 /* cmp MEM32(ebx), esi */ /* 0x361544A4: cmp dword ptr [ebx], esi */ 2701 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 2702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2703 _flag_k = FK_CMP; 2704 if (CMP_NE(_flag_a, _flag_b)) goto L_361544CB; /* 0x361544A6: jne 0x361544cb */ 2705 L_361544A8: 2706 ecx = MEM32(esi + 0x8); /* 0x361544A8: mov ecx, dword ptr [esi + 8] */ 2707 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x361544AB: cmp ecx, dword ptr [edi + 8] */ 2708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2710 _flag_k = FK_CMP; 2711 if (CMP_NE(_flag_a, _flag_b)) goto L_361544B5; /* 0x361544AE: jne 0x361544b5 */ 2712 L_361544B0: 2713 edx = MEM32(esi + 0x4); /* 0x361544B0: mov edx, dword ptr [esi + 4] */ 2714 goto L_361544C9; /* 0x361544B3: jmp 0x361544c9 */ 2715 L_361544B5: 2716 ecx = MEM32(eax); /* 0x361544B5: mov ecx, dword ptr [eax] */ 2717 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544B7: cmp byte ptr [ecx + 0x3d], 0 */ 2718 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2720 _flag_k = FK_NARROW(FK_CMP, 24); 2721 edx = eax; /* 0x361544BB: mov edx, eax */ 2722 if (CMP_NE(_flag_a, _flag_b)) goto L_361544C9; /* 0x361544BD: jne 0x361544c9 */ 2723 L_361544BF: 2724 edx = ecx; /* 0x361544BF: mov edx, ecx */ 2725 ecx = MEM32(edx); /* 0x361544C1: mov ecx, dword ptr [edx] */ 2726 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544C3: cmp byte ptr [ecx + 0x3d], 0 */ 2727 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2729 _flag_k = FK_NARROW(FK_CMP, 24); 2730 RECOMP_BACKEDGE(); 2731 if (CMP_EQ(_flag_a, _flag_b)) goto L_361544BF; /* 0x361544C7: je 0x361544bf */ 2732 L_361544C9: 2733 MEM32(ebx) = edx; /* 0x361544C9: mov dword ptr [ebx], edx */ 2734 L_361544CB: 2735 ebx = MEM32(edi + 0x4); /* 0x361544CB: mov ebx, dword ptr [edi + 4] */ 2736 /* cmp MEM32(ebx + 0x8), esi */ /* 0x361544CE: cmp dword ptr [ebx + 8], esi */ 2737 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 2738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2739 _flag_k = FK_CMP; 2740 if (CMP_NE(_flag_a, _flag_b)) goto L_361544F8; /* 0x361544D1: jne 0x361544f8 */ 2741 L_361544D3: 2742 ecx = MEM32(esi); /* 0x361544D3: mov ecx, dword ptr [esi] */ 2743 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x361544D5: cmp ecx, dword ptr [edi + 8] */ 2744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2746 _flag_k = FK_CMP; 2747 if (CMP_NE(_flag_a, _flag_b)) goto L_361544DF; /* 0x361544D8: jne 0x361544df */ 2748 L_361544DA: 2749 edx = MEM32(esi + 0x4); /* 0x361544DA: mov edx, dword ptr [esi + 4] */ 2750 goto L_361544F5; /* 0x361544DD: jmp 0x361544f5 */ 2751 L_361544DF: 2752 ecx = MEM32(eax + 0x8); /* 0x361544DF: mov ecx, dword ptr [eax + 8] */ 2753 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544E2: cmp byte ptr [ecx + 0x3d], 0 */ 2754 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2756 _flag_k = FK_NARROW(FK_CMP, 24); 2757 edx = eax; /* 0x361544E6: mov edx, eax */ 2758 if (CMP_NE(_flag_a, _flag_b)) goto L_361544F5; /* 0x361544E8: jne 0x361544f5 */ 2759 L_361544EA: 2760 edx = ecx; /* 0x361544EA: mov edx, ecx */ 2761 ecx = MEM32(edx + 0x8); /* 0x361544EC: mov ecx, dword ptr [edx + 8] */ 2762 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544EF: cmp byte ptr [ecx + 0x3d], 0 */ 2763 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 2764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2765 _flag_k = FK_NARROW(FK_CMP, 24); 2766 RECOMP_BACKEDGE(); 2767 if (CMP_EQ(_flag_a, _flag_b)) goto L_361544EA; /* 0x361544F3: je 0x361544ea */ 2768 L_361544F5: 2769 MEM32(ebx + 0x8) = edx; /* 0x361544F5: mov dword ptr [ebx + 8], edx */ 2770 L_361544F8: 2771 esi = MEM32(ebp + (-0x4)); /* 0x361544F8: mov esi, dword ptr [ebp - 4] */ 2772 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x361544FB: mov cl, byte ptr [esi + 0x3c] */ 2773 SET_LO8(ebx, 1); /* 0x361544FE: mov bl, 1 */ 2774 /* cmp LO8(ecx), LO8(ebx) */ /* 0x36154500: cmp cl, bl */ 2775 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2777 _flag_k = FK_NARROW(FK_CMP, 24); 2778 if (CMP_NE(_flag_a, _flag_b)) goto L_36154768; /* 0x36154502: jne 0x36154768 */ 2779 L_36154508: 2780 ecx = MEM32(edi + 0x4); /* 0x36154508: mov ecx, dword ptr [edi + 4] */ 2781 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3615450B: cmp eax, dword ptr [ecx + 4] */ 2782 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2784 _flag_k = FK_CMP; 2785 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154762; /* 0x3615450E: je 0x36154762 */ 2786 L_36154514: 2787 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 2788 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2790 _flag_k = FK_NARROW(FK_CMP, 24); 2791 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 2792 L_3615451D: 2793 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 2794 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 2795 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 2796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2798 _flag_k = FK_CMP; 2799 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 2800 L_36154526: 2801 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 2802 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 2803 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 2804 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2805 _cf = 0; 2806 _flag_k = FK_NARROW(FK_TEST, 24); 2807 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 2808 L_36154530: 2809 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 2810 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 2811 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 2812 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 2813 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 2814 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 2815 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 2816 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 2817 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 2818 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2820 _flag_k = FK_CMP; 2821 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 2822 L_3615454C: 2823 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 2824 L_3615454F: 2825 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 2826 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 2827 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 2828 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 2829 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2831 _flag_k = FK_CMP; 2832 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 2833 L_3615455D: 2834 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 2835 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 2836 L_36154562: 2837 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 2838 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 2839 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2840 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2841 _flag_k = FK_CMP; 2842 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 2843 L_36154569: 2844 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 2845 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 2846 L_3615456D: 2847 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 2848 L_36154570: 2849 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 2850 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 2851 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 2852 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 2853 L_3615457B: 2854 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 2855 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 2856 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2858 _flag_k = FK_NARROW(FK_CMP, 24); 2859 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 2860 L_36154586: 2861 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 2862 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 2863 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2865 _flag_k = FK_NARROW(FK_CMP, 24); 2866 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 2867 L_36154592: 2868 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 2869 L_36154594: 2870 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 2871 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 2872 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2873 _cf = 0; 2874 _flag_k = FK_NARROW(FK_TEST, 24); 2875 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 2876 L_3615459B: 2877 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 2878 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 2879 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 2880 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 2881 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 2882 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 2883 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 2884 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 2885 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 2886 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2888 _flag_k = FK_CMP; 2889 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 2890 L_361545B7: 2891 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 2892 L_361545BA: 2893 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 2894 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 2895 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 2896 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 2897 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2899 _flag_k = FK_CMP; 2900 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 2901 L_361545C8: 2902 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 2903 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 2904 L_361545CD: 2905 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 2906 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 2907 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2909 _flag_k = FK_CMP; 2910 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 2911 L_361545D5: 2912 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 2913 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 2914 L_361545DA: 2915 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 2916 L_361545DC: 2917 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 2918 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 2919 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 2920 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 2921 L_361545E7: 2922 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 2923 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 2924 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2926 _flag_k = FK_NARROW(FK_CMP, 24); 2927 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 2928 L_361545F3: 2929 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 2930 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 2931 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2933 _flag_k = FK_NARROW(FK_CMP, 24); 2934 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 2935 L_361545FE: 2936 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 2937 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 2938 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 2939 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 2940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2942 _flag_k = FK_CMP; 2943 RECOMP_BACKEDGE(); 2944 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 2945 L_36154611: 2946 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 2947 L_36154616: 2948 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 2949 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 2950 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2952 _flag_k = FK_NARROW(FK_CMP, 24); 2953 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 2954 L_3615461E: 2955 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 2956 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 2957 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 2958 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 2959 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 2960 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 2961 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 2962 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 2963 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2965 _flag_k = FK_CMP; 2966 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 2967 L_36154636: 2968 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 2969 L_36154639: 2970 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 2971 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 2972 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 2973 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 2974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2976 _flag_k = FK_CMP; 2977 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 2978 L_36154647: 2979 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 2980 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 2981 L_3615464C: 2982 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 2983 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 2984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2986 _flag_k = FK_CMP; 2987 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 2988 L_36154654: 2989 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 2990 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 2991 L_36154659: 2992 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 2993 L_3615465B: 2994 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 2995 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 2996 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 2997 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 2998 L_36154667: 2999 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 3000 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 3001 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 3002 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 3003 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 3004 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 3005 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 3006 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 3007 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 3008 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 3009 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 3010 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 3011 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 3012 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3013 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3014 _flag_k = FK_CMP; 3015 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 3016 L_3615468E: 3017 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 3018 L_36154691: 3019 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 3020 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 3021 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 3022 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 3023 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3025 _flag_k = FK_CMP; 3026 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 3027 L_3615469F: 3028 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 3029 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 3030 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 3031 L_361546A9: 3032 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 3033 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 3034 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3036 _flag_k = FK_CMP; 3037 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 3038 L_361546B0: 3039 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 3040 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 3041 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 3042 L_361546B9: 3043 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 3044 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 3045 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 3046 L_361546C3: 3047 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 3048 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 3049 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3050 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3051 _flag_k = FK_NARROW(FK_CMP, 24); 3052 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 3053 L_361546CA: 3054 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 3055 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 3056 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 3057 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 3058 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 3059 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 3060 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 3061 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 3062 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3064 _flag_k = FK_CMP; 3065 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 3066 L_361546E3: 3067 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 3068 L_361546E6: 3069 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 3070 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 3071 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 3072 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 3073 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3075 _flag_k = FK_CMP; 3076 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 3077 L_361546F4: 3078 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 3079 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 3080 L_361546F9: 3081 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 3082 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 3083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3085 _flag_k = FK_CMP; 3086 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 3087 L_36154700: 3088 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 3089 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 3090 L_36154704: 3091 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 3092 L_36154707: 3093 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 3094 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 3095 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 3096 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 3097 L_36154711: 3098 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 3099 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 3100 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 3101 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 3102 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 3103 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 3104 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 3105 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 3106 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 3107 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 3108 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 3109 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 3110 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 3111 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3112 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3113 _flag_k = FK_CMP; 3114 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 3115 L_36154737: 3116 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 3117 L_3615473A: 3118 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 3119 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 3120 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 3121 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 3122 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3124 _flag_k = FK_CMP; 3125 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 3126 L_36154748: 3127 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 3128 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 3129 L_3615474D: 3130 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 3131 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 3132 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3134 _flag_k = FK_CMP; 3135 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 3136 L_36154755: 3137 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 3138 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 3139 L_3615475A: 3140 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 3141 L_3615475C: 3142 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 3143 L_3615475F: 3144 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 3145 L_36154762: 3146 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 3147 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 3148 L_36154768: 3149 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 3150 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 3151 RECOMP_FLAGS_IN(); 3152 PUSH32(esp, esi); /* 0x36154770: push esi */ 3153 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 3154 RECOMP_FLAGS_IN(); 3155 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 3156 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 3157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3158 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3159 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 3160 _flag_k = FK_ADD; 3161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3162 eax = eax - 1; /* 0x3615477F: dec eax */ 3163 _flag_k = FK_DEC; 3164 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 3165 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 3166 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 3167 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 3168 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 3169 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 3170 esp = ebp; /* 0x3615478B: mov esp, ebp */ 3171 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 3172 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 3173 RECOMP_REGS_OUT(); 3174 } 3175 3176 void sub_361544C9(void) { 3177 int _fpu_cmp = 0; 3178 uint32_t _cf = 0; 3179 int _df = 1; 3180 uint32_t _flag_k = FK_NONE; 3181 uint32_t _flag_a = 0, _flag_b = 0; 3182 uint32_t _itail_tgt = 0; 3183 RECOMP_REGS_LOCALS 3184 RECOMP_ENTER(0x361544C9u); 3185 3186 L_361544C9: 3187 MEM32(ebx) = edx; /* 0x361544C9: mov dword ptr [ebx], edx */ 3188 ebx = MEM32(edi + 0x4); /* 0x361544CB: mov ebx, dword ptr [edi + 4] */ 3189 /* cmp MEM32(ebx + 0x8), esi */ /* 0x361544CE: cmp dword ptr [ebx + 8], esi */ 3190 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 3191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3192 _flag_k = FK_CMP; 3193 if (CMP_NE(_flag_a, _flag_b)) goto L_361544F8; /* 0x361544D1: jne 0x361544f8 */ 3194 L_361544D3: 3195 ecx = MEM32(esi); /* 0x361544D3: mov ecx, dword ptr [esi] */ 3196 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x361544D5: cmp ecx, dword ptr [edi + 8] */ 3197 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3199 _flag_k = FK_CMP; 3200 if (CMP_NE(_flag_a, _flag_b)) goto L_361544DF; /* 0x361544D8: jne 0x361544df */ 3201 L_361544DA: 3202 edx = MEM32(esi + 0x4); /* 0x361544DA: mov edx, dword ptr [esi + 4] */ 3203 goto L_361544F5; /* 0x361544DD: jmp 0x361544f5 */ 3204 L_361544DF: 3205 ecx = MEM32(eax + 0x8); /* 0x361544DF: mov ecx, dword ptr [eax + 8] */ 3206 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544E2: cmp byte ptr [ecx + 0x3d], 0 */ 3207 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 3208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3209 _flag_k = FK_NARROW(FK_CMP, 24); 3210 edx = eax; /* 0x361544E6: mov edx, eax */ 3211 if (CMP_NE(_flag_a, _flag_b)) goto L_361544F5; /* 0x361544E8: jne 0x361544f5 */ 3212 L_361544EA: 3213 edx = ecx; /* 0x361544EA: mov edx, ecx */ 3214 ecx = MEM32(edx + 0x8); /* 0x361544EC: mov ecx, dword ptr [edx + 8] */ 3215 /* cmp MEM8(ecx + 0x3D), 0 */ /* 0x361544EF: cmp byte ptr [ecx + 0x3d], 0 */ 3216 _flag_a = (uint32_t)(MEM8(ecx + 0x3D)) << 24; _flag_b = (uint32_t)(0) << 24; 3217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3218 _flag_k = FK_NARROW(FK_CMP, 24); 3219 RECOMP_BACKEDGE(); 3220 if (CMP_EQ(_flag_a, _flag_b)) goto L_361544EA; /* 0x361544F3: je 0x361544ea */ 3221 L_361544F5: 3222 MEM32(ebx + 0x8) = edx; /* 0x361544F5: mov dword ptr [ebx + 8], edx */ 3223 L_361544F8: 3224 esi = MEM32(ebp + (-0x4)); /* 0x361544F8: mov esi, dword ptr [ebp - 4] */ 3225 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x361544FB: mov cl, byte ptr [esi + 0x3c] */ 3226 SET_LO8(ebx, 1); /* 0x361544FE: mov bl, 1 */ 3227 /* cmp LO8(ecx), LO8(ebx) */ /* 0x36154500: cmp cl, bl */ 3228 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3230 _flag_k = FK_NARROW(FK_CMP, 24); 3231 if (CMP_NE(_flag_a, _flag_b)) goto L_36154768; /* 0x36154502: jne 0x36154768 */ 3232 L_36154508: 3233 ecx = MEM32(edi + 0x4); /* 0x36154508: mov ecx, dword ptr [edi + 4] */ 3234 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3615450B: cmp eax, dword ptr [ecx + 4] */ 3235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3237 _flag_k = FK_CMP; 3238 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154762; /* 0x3615450E: je 0x36154762 */ 3239 L_36154514: 3240 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 3241 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3243 _flag_k = FK_NARROW(FK_CMP, 24); 3244 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 3245 L_3615451D: 3246 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 3247 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 3248 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 3249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3251 _flag_k = FK_CMP; 3252 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 3253 L_36154526: 3254 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 3255 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 3256 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 3257 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3258 _cf = 0; 3259 _flag_k = FK_NARROW(FK_TEST, 24); 3260 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 3261 L_36154530: 3262 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 3263 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 3264 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 3265 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 3266 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 3267 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 3268 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 3269 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 3270 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 3271 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3272 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3273 _flag_k = FK_CMP; 3274 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 3275 L_3615454C: 3276 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 3277 L_3615454F: 3278 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 3279 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 3280 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 3281 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 3282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3284 _flag_k = FK_CMP; 3285 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 3286 L_3615455D: 3287 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 3288 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 3289 L_36154562: 3290 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 3291 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 3292 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3294 _flag_k = FK_CMP; 3295 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 3296 L_36154569: 3297 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 3298 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 3299 L_3615456D: 3300 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 3301 L_36154570: 3302 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 3303 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 3304 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 3305 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 3306 L_3615457B: 3307 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 3308 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 3309 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3311 _flag_k = FK_NARROW(FK_CMP, 24); 3312 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 3313 L_36154586: 3314 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 3315 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 3316 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3318 _flag_k = FK_NARROW(FK_CMP, 24); 3319 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 3320 L_36154592: 3321 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 3322 L_36154594: 3323 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 3324 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 3325 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3326 _cf = 0; 3327 _flag_k = FK_NARROW(FK_TEST, 24); 3328 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 3329 L_3615459B: 3330 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 3331 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 3332 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 3333 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 3334 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 3335 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 3336 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 3337 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 3338 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 3339 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3341 _flag_k = FK_CMP; 3342 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 3343 L_361545B7: 3344 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 3345 L_361545BA: 3346 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 3347 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 3348 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 3349 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 3350 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3352 _flag_k = FK_CMP; 3353 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 3354 L_361545C8: 3355 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 3356 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 3357 L_361545CD: 3358 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 3359 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 3360 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3362 _flag_k = FK_CMP; 3363 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 3364 L_361545D5: 3365 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 3366 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 3367 L_361545DA: 3368 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 3369 L_361545DC: 3370 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 3371 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 3372 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 3373 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 3374 L_361545E7: 3375 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 3376 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 3377 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3379 _flag_k = FK_NARROW(FK_CMP, 24); 3380 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 3381 L_361545F3: 3382 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 3383 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 3384 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3386 _flag_k = FK_NARROW(FK_CMP, 24); 3387 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 3388 L_361545FE: 3389 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 3390 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 3391 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 3392 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 3393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3395 _flag_k = FK_CMP; 3396 RECOMP_BACKEDGE(); 3397 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 3398 L_36154611: 3399 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 3400 L_36154616: 3401 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 3402 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 3403 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3405 _flag_k = FK_NARROW(FK_CMP, 24); 3406 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 3407 L_3615461E: 3408 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 3409 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 3410 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 3411 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 3412 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 3413 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 3414 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 3415 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 3416 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3418 _flag_k = FK_CMP; 3419 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 3420 L_36154636: 3421 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 3422 L_36154639: 3423 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 3424 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 3425 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 3426 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 3427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3429 _flag_k = FK_CMP; 3430 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 3431 L_36154647: 3432 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 3433 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 3434 L_3615464C: 3435 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 3436 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 3437 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3439 _flag_k = FK_CMP; 3440 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 3441 L_36154654: 3442 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 3443 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 3444 L_36154659: 3445 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 3446 L_3615465B: 3447 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 3448 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 3449 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 3450 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 3451 L_36154667: 3452 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 3453 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 3454 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 3455 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 3456 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 3457 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 3458 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 3459 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 3460 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 3461 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 3462 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 3463 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 3464 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 3465 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3467 _flag_k = FK_CMP; 3468 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 3469 L_3615468E: 3470 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 3471 L_36154691: 3472 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 3473 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 3474 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 3475 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 3476 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3478 _flag_k = FK_CMP; 3479 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 3480 L_3615469F: 3481 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 3482 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 3483 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 3484 L_361546A9: 3485 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 3486 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 3487 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3489 _flag_k = FK_CMP; 3490 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 3491 L_361546B0: 3492 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 3493 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 3494 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 3495 L_361546B9: 3496 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 3497 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 3498 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 3499 L_361546C3: 3500 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 3501 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 3502 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3504 _flag_k = FK_NARROW(FK_CMP, 24); 3505 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 3506 L_361546CA: 3507 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 3508 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 3509 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 3510 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 3511 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 3512 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 3513 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 3514 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 3515 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3517 _flag_k = FK_CMP; 3518 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 3519 L_361546E3: 3520 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 3521 L_361546E6: 3522 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 3523 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 3524 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 3525 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 3526 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3528 _flag_k = FK_CMP; 3529 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 3530 L_361546F4: 3531 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 3532 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 3533 L_361546F9: 3534 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 3535 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 3536 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3538 _flag_k = FK_CMP; 3539 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 3540 L_36154700: 3541 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 3542 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 3543 L_36154704: 3544 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 3545 L_36154707: 3546 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 3547 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 3548 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 3549 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 3550 L_36154711: 3551 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 3552 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 3553 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 3554 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 3555 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 3556 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 3557 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 3558 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 3559 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 3560 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 3561 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 3562 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 3563 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 3564 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3566 _flag_k = FK_CMP; 3567 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 3568 L_36154737: 3569 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 3570 L_3615473A: 3571 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 3572 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 3573 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 3574 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 3575 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3577 _flag_k = FK_CMP; 3578 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 3579 L_36154748: 3580 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 3581 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 3582 L_3615474D: 3583 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 3584 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 3585 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3587 _flag_k = FK_CMP; 3588 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 3589 L_36154755: 3590 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 3591 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 3592 L_3615475A: 3593 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 3594 L_3615475C: 3595 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 3596 L_3615475F: 3597 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 3598 L_36154762: 3599 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 3600 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 3601 L_36154768: 3602 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 3603 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 3604 RECOMP_FLAGS_IN(); 3605 PUSH32(esp, esi); /* 0x36154770: push esi */ 3606 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 3607 RECOMP_FLAGS_IN(); 3608 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 3609 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 3610 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3612 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 3613 _flag_k = FK_ADD; 3614 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3615 eax = eax - 1; /* 0x3615477F: dec eax */ 3616 _flag_k = FK_DEC; 3617 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 3618 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 3619 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 3620 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 3621 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 3622 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 3623 esp = ebp; /* 0x3615478B: mov esp, ebp */ 3624 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 3625 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 3626 RECOMP_REGS_OUT(); 3627 } 3628 3629 void sub_361544F5(void) { 3630 int _fpu_cmp = 0; 3631 uint32_t _cf = 0; 3632 int _df = 1; 3633 uint32_t _flag_k = FK_NONE; 3634 uint32_t _flag_a = 0, _flag_b = 0; 3635 uint32_t _itail_tgt = 0; 3636 RECOMP_REGS_LOCALS 3637 RECOMP_ENTER(0x361544F5u); 3638 3639 L_361544F5: 3640 MEM32(ebx + 0x8) = edx; /* 0x361544F5: mov dword ptr [ebx + 8], edx */ 3641 esi = MEM32(ebp + (-0x4)); /* 0x361544F8: mov esi, dword ptr [ebp - 4] */ 3642 SET_LO8(ecx, MEM8(esi + 0x3C)); /* 0x361544FB: mov cl, byte ptr [esi + 0x3c] */ 3643 SET_LO8(ebx, 1); /* 0x361544FE: mov bl, 1 */ 3644 /* cmp LO8(ecx), LO8(ebx) */ /* 0x36154500: cmp cl, bl */ 3645 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3647 _flag_k = FK_NARROW(FK_CMP, 24); 3648 if (CMP_NE(_flag_a, _flag_b)) goto L_36154768; /* 0x36154502: jne 0x36154768 */ 3649 L_36154508: 3650 ecx = MEM32(edi + 0x4); /* 0x36154508: mov ecx, dword ptr [edi + 4] */ 3651 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3615450B: cmp eax, dword ptr [ecx + 4] */ 3652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3654 _flag_k = FK_CMP; 3655 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154762; /* 0x3615450E: je 0x36154762 */ 3656 L_36154514: 3657 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 3658 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3660 _flag_k = FK_NARROW(FK_CMP, 24); 3661 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 3662 L_3615451D: 3663 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 3664 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 3665 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 3666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3668 _flag_k = FK_CMP; 3669 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 3670 L_36154526: 3671 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 3672 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 3673 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 3674 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3675 _cf = 0; 3676 _flag_k = FK_NARROW(FK_TEST, 24); 3677 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 3678 L_36154530: 3679 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 3680 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 3681 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 3682 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 3683 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 3684 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 3685 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 3686 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 3687 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 3688 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3690 _flag_k = FK_CMP; 3691 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 3692 L_3615454C: 3693 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 3694 L_3615454F: 3695 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 3696 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 3697 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 3698 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 3699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3701 _flag_k = FK_CMP; 3702 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 3703 L_3615455D: 3704 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 3705 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 3706 L_36154562: 3707 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 3708 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 3709 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3711 _flag_k = FK_CMP; 3712 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 3713 L_36154569: 3714 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 3715 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 3716 L_3615456D: 3717 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 3718 L_36154570: 3719 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 3720 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 3721 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 3722 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 3723 L_3615457B: 3724 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 3725 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 3726 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3728 _flag_k = FK_NARROW(FK_CMP, 24); 3729 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 3730 L_36154586: 3731 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 3732 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 3733 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3735 _flag_k = FK_NARROW(FK_CMP, 24); 3736 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 3737 L_36154592: 3738 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 3739 L_36154594: 3740 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 3741 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 3742 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3743 _cf = 0; 3744 _flag_k = FK_NARROW(FK_TEST, 24); 3745 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 3746 L_3615459B: 3747 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 3748 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 3749 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 3750 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 3751 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 3752 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 3753 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 3754 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 3755 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 3756 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3758 _flag_k = FK_CMP; 3759 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 3760 L_361545B7: 3761 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 3762 L_361545BA: 3763 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 3764 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 3765 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 3766 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 3767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3769 _flag_k = FK_CMP; 3770 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 3771 L_361545C8: 3772 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 3773 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 3774 L_361545CD: 3775 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 3776 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 3777 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3779 _flag_k = FK_CMP; 3780 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 3781 L_361545D5: 3782 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 3783 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 3784 L_361545DA: 3785 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 3786 L_361545DC: 3787 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 3788 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 3789 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 3790 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 3791 L_361545E7: 3792 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 3793 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 3794 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3796 _flag_k = FK_NARROW(FK_CMP, 24); 3797 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 3798 L_361545F3: 3799 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 3800 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 3801 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3803 _flag_k = FK_NARROW(FK_CMP, 24); 3804 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 3805 L_361545FE: 3806 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 3807 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 3808 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 3809 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 3810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3812 _flag_k = FK_CMP; 3813 RECOMP_BACKEDGE(); 3814 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 3815 L_36154611: 3816 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 3817 L_36154616: 3818 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 3819 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 3820 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3822 _flag_k = FK_NARROW(FK_CMP, 24); 3823 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 3824 L_3615461E: 3825 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 3826 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 3827 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 3828 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 3829 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 3830 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 3831 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 3832 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 3833 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3835 _flag_k = FK_CMP; 3836 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 3837 L_36154636: 3838 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 3839 L_36154639: 3840 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 3841 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 3842 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 3843 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 3844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3846 _flag_k = FK_CMP; 3847 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 3848 L_36154647: 3849 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 3850 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 3851 L_3615464C: 3852 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 3853 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 3854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3856 _flag_k = FK_CMP; 3857 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 3858 L_36154654: 3859 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 3860 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 3861 L_36154659: 3862 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 3863 L_3615465B: 3864 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 3865 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 3866 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 3867 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 3868 L_36154667: 3869 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 3870 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 3871 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 3872 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 3873 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 3874 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 3875 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 3876 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 3877 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 3878 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 3879 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 3880 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 3881 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 3882 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3884 _flag_k = FK_CMP; 3885 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 3886 L_3615468E: 3887 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 3888 L_36154691: 3889 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 3890 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 3891 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 3892 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 3893 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3895 _flag_k = FK_CMP; 3896 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 3897 L_3615469F: 3898 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 3899 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 3900 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 3901 L_361546A9: 3902 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 3903 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 3904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3906 _flag_k = FK_CMP; 3907 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 3908 L_361546B0: 3909 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 3910 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 3911 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 3912 L_361546B9: 3913 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 3914 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 3915 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 3916 L_361546C3: 3917 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 3918 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 3919 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3921 _flag_k = FK_NARROW(FK_CMP, 24); 3922 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 3923 L_361546CA: 3924 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 3925 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 3926 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 3927 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 3928 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 3929 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 3930 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 3931 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 3932 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3934 _flag_k = FK_CMP; 3935 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 3936 L_361546E3: 3937 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 3938 L_361546E6: 3939 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 3940 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 3941 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 3942 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 3943 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3945 _flag_k = FK_CMP; 3946 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 3947 L_361546F4: 3948 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 3949 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 3950 L_361546F9: 3951 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 3952 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 3953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3955 _flag_k = FK_CMP; 3956 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 3957 L_36154700: 3958 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 3959 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 3960 L_36154704: 3961 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 3962 L_36154707: 3963 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 3964 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 3965 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 3966 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 3967 L_36154711: 3968 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 3969 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 3970 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 3971 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 3972 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 3973 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 3974 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 3975 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 3976 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 3977 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 3978 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 3979 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 3980 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 3981 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3983 _flag_k = FK_CMP; 3984 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 3985 L_36154737: 3986 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 3987 L_3615473A: 3988 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 3989 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 3990 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 3991 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 3992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3994 _flag_k = FK_CMP; 3995 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 3996 L_36154748: 3997 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 3998 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 3999 L_3615474D: 4000 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 4001 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 4002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4004 _flag_k = FK_CMP; 4005 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 4006 L_36154755: 4007 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 4008 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 4009 L_3615475A: 4010 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 4011 L_3615475C: 4012 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 4013 L_3615475F: 4014 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 4015 L_36154762: 4016 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 4017 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 4018 L_36154768: 4019 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 4020 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 4021 RECOMP_FLAGS_IN(); 4022 PUSH32(esp, esi); /* 0x36154770: push esi */ 4023 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 4024 RECOMP_FLAGS_IN(); 4025 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 4026 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 4027 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4028 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4029 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 4030 _flag_k = FK_ADD; 4031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4032 eax = eax - 1; /* 0x3615477F: dec eax */ 4033 _flag_k = FK_DEC; 4034 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 4035 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 4036 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 4037 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 4038 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 4039 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 4040 esp = ebp; /* 0x3615478B: mov esp, ebp */ 4041 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 4042 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 4043 RECOMP_REGS_OUT(); 4044 } 4045 4046 void sub_36154514(void) { 4047 int _fpu_cmp = 0; 4048 uint32_t _cf = 0; 4049 int _df = 1; 4050 uint32_t _flag_k = FK_NONE; 4051 uint32_t _flag_a = 0, _flag_b = 0; 4052 uint32_t _itail_tgt = 0; 4053 RECOMP_REGS_LOCALS 4054 RECOMP_ENTER(0x36154514u); 4055 4056 L_36154514: 4057 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 4058 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4060 _flag_k = FK_NARROW(FK_CMP, 24); 4061 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 4062 L_3615451D: 4063 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 4064 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 4065 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 4066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4068 _flag_k = FK_CMP; 4069 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 4070 L_36154526: 4071 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 4072 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 4073 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 4074 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4075 _cf = 0; 4076 _flag_k = FK_NARROW(FK_TEST, 24); 4077 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 4078 L_36154530: 4079 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 4080 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 4081 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 4082 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 4083 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 4084 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 4085 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 4086 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 4087 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 4088 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4090 _flag_k = FK_CMP; 4091 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 4092 L_3615454C: 4093 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 4094 L_3615454F: 4095 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 4096 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 4097 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 4098 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 4099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4101 _flag_k = FK_CMP; 4102 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 4103 L_3615455D: 4104 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 4105 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 4106 L_36154562: 4107 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 4108 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 4109 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4111 _flag_k = FK_CMP; 4112 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 4113 L_36154569: 4114 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 4115 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 4116 L_3615456D: 4117 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 4118 L_36154570: 4119 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 4120 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 4121 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 4122 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 4123 L_3615457B: 4124 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 4125 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 4126 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4128 _flag_k = FK_NARROW(FK_CMP, 24); 4129 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 4130 L_36154586: 4131 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 4132 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 4133 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4135 _flag_k = FK_NARROW(FK_CMP, 24); 4136 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 4137 L_36154592: 4138 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 4139 L_36154594: 4140 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 4141 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 4142 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4143 _cf = 0; 4144 _flag_k = FK_NARROW(FK_TEST, 24); 4145 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 4146 L_3615459B: 4147 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 4148 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 4149 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 4150 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 4151 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 4152 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 4153 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 4154 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 4155 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 4156 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4158 _flag_k = FK_CMP; 4159 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 4160 L_361545B7: 4161 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 4162 L_361545BA: 4163 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 4164 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 4165 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 4166 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 4167 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4169 _flag_k = FK_CMP; 4170 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 4171 L_361545C8: 4172 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 4173 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 4174 L_361545CD: 4175 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 4176 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 4177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4179 _flag_k = FK_CMP; 4180 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 4181 L_361545D5: 4182 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 4183 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 4184 L_361545DA: 4185 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 4186 L_361545DC: 4187 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 4188 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 4189 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 4190 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 4191 L_361545E7: 4192 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 4193 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 4194 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4196 _flag_k = FK_NARROW(FK_CMP, 24); 4197 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 4198 L_361545F3: 4199 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 4200 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 4201 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4203 _flag_k = FK_NARROW(FK_CMP, 24); 4204 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 4205 L_361545FE: 4206 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 4207 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 4208 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 4209 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 4210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4212 _flag_k = FK_CMP; 4213 RECOMP_BACKEDGE(); 4214 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 4215 L_36154611: 4216 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 4217 L_36154616: 4218 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 4219 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 4220 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4222 _flag_k = FK_NARROW(FK_CMP, 24); 4223 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 4224 L_3615461E: 4225 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 4226 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 4227 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 4228 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 4229 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 4230 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 4231 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 4232 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 4233 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4235 _flag_k = FK_CMP; 4236 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 4237 L_36154636: 4238 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 4239 L_36154639: 4240 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 4241 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 4242 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 4243 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 4244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4246 _flag_k = FK_CMP; 4247 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 4248 L_36154647: 4249 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 4250 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 4251 L_3615464C: 4252 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 4253 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 4254 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4256 _flag_k = FK_CMP; 4257 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 4258 L_36154654: 4259 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 4260 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 4261 L_36154659: 4262 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 4263 L_3615465B: 4264 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 4265 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 4266 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 4267 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 4268 L_36154667: 4269 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 4270 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 4271 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 4272 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 4273 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 4274 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 4275 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 4276 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 4277 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 4278 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 4279 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 4280 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 4281 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 4282 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4284 _flag_k = FK_CMP; 4285 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 4286 L_3615468E: 4287 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 4288 L_36154691: 4289 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 4290 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 4291 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 4292 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 4293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4295 _flag_k = FK_CMP; 4296 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 4297 L_3615469F: 4298 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 4299 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 4300 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 4301 L_361546A9: 4302 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 4303 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 4304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4306 _flag_k = FK_CMP; 4307 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 4308 L_361546B0: 4309 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 4310 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 4311 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 4312 L_361546B9: 4313 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 4314 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 4315 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 4316 L_361546C3: 4317 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 4318 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 4319 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4321 _flag_k = FK_NARROW(FK_CMP, 24); 4322 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 4323 L_361546CA: 4324 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 4325 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 4326 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 4327 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 4328 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 4329 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 4330 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 4331 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 4332 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4334 _flag_k = FK_CMP; 4335 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 4336 L_361546E3: 4337 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 4338 L_361546E6: 4339 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 4340 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 4341 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 4342 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 4343 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4345 _flag_k = FK_CMP; 4346 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 4347 L_361546F4: 4348 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 4349 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 4350 L_361546F9: 4351 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 4352 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 4353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4355 _flag_k = FK_CMP; 4356 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 4357 L_36154700: 4358 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 4359 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 4360 L_36154704: 4361 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 4362 L_36154707: 4363 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 4364 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 4365 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 4366 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 4367 L_36154711: 4368 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 4369 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 4370 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 4371 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 4372 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 4373 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 4374 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 4375 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 4376 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 4377 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 4378 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 4379 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 4380 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 4381 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4383 _flag_k = FK_CMP; 4384 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 4385 L_36154737: 4386 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 4387 L_3615473A: 4388 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 4389 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 4390 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 4391 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 4392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4394 _flag_k = FK_CMP; 4395 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 4396 L_36154748: 4397 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 4398 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 4399 L_3615474D: 4400 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 4401 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 4402 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4404 _flag_k = FK_CMP; 4405 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 4406 L_36154755: 4407 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 4408 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 4409 L_3615475A: 4410 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 4411 L_3615475C: 4412 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 4413 L_3615475F: 4414 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 4415 L_36154762: 4416 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 4417 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 4418 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 4419 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 4420 RECOMP_FLAGS_IN(); 4421 PUSH32(esp, esi); /* 0x36154770: push esi */ 4422 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 4423 RECOMP_FLAGS_IN(); 4424 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 4425 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 4426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4428 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 4429 _flag_k = FK_ADD; 4430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4431 eax = eax - 1; /* 0x3615477F: dec eax */ 4432 _flag_k = FK_DEC; 4433 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 4434 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 4435 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 4436 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 4437 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 4438 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 4439 esp = ebp; /* 0x3615478B: mov esp, ebp */ 4440 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 4441 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 4442 RECOMP_REGS_OUT(); 4443 } 4444 4445 void sub_36154570(void) { 4446 int _fpu_cmp = 0; 4447 uint32_t _cf = 0; 4448 int _df = 1; 4449 uint32_t _flag_k = FK_NONE; 4450 uint32_t _flag_a = 0, _flag_b = 0; 4451 uint32_t _itail_tgt = 0; 4452 RECOMP_REGS_LOCALS 4453 RECOMP_ENTER(0x36154570u); 4454 4455 goto L_36154570; 4456 L_36154514: 4457 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 4458 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4460 _flag_k = FK_NARROW(FK_CMP, 24); 4461 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 4462 L_3615451D: 4463 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 4464 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 4465 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 4466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4468 _flag_k = FK_CMP; 4469 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 4470 L_36154526: 4471 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 4472 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 4473 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 4474 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4475 _cf = 0; 4476 _flag_k = FK_NARROW(FK_TEST, 24); 4477 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 4478 L_36154530: 4479 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 4480 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 4481 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 4482 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 4483 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 4484 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 4485 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 4486 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 4487 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 4488 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4490 _flag_k = FK_CMP; 4491 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 4492 L_3615454C: 4493 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 4494 L_3615454F: 4495 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 4496 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 4497 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 4498 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 4499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4501 _flag_k = FK_CMP; 4502 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 4503 L_3615455D: 4504 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 4505 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 4506 L_36154562: 4507 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 4508 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 4509 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4511 _flag_k = FK_CMP; 4512 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 4513 L_36154569: 4514 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 4515 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 4516 L_3615456D: 4517 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 4518 L_36154570: 4519 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 4520 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 4521 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 4522 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 4523 L_3615457B: 4524 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 4525 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 4526 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4528 _flag_k = FK_NARROW(FK_CMP, 24); 4529 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 4530 L_36154586: 4531 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 4532 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 4533 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4535 _flag_k = FK_NARROW(FK_CMP, 24); 4536 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 4537 L_36154592: 4538 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 4539 L_36154594: 4540 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 4541 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 4542 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4543 _cf = 0; 4544 _flag_k = FK_NARROW(FK_TEST, 24); 4545 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 4546 L_3615459B: 4547 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 4548 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 4549 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 4550 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 4551 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 4552 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 4553 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 4554 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 4555 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 4556 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4558 _flag_k = FK_CMP; 4559 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 4560 L_361545B7: 4561 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 4562 L_361545BA: 4563 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 4564 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 4565 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 4566 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 4567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4569 _flag_k = FK_CMP; 4570 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 4571 L_361545C8: 4572 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 4573 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 4574 L_361545CD: 4575 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 4576 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 4577 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4579 _flag_k = FK_CMP; 4580 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 4581 L_361545D5: 4582 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 4583 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 4584 L_361545DA: 4585 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 4586 L_361545DC: 4587 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 4588 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 4589 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 4590 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 4591 L_361545E7: 4592 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 4593 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 4594 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4596 _flag_k = FK_NARROW(FK_CMP, 24); 4597 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 4598 L_361545F3: 4599 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 4600 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 4601 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4603 _flag_k = FK_NARROW(FK_CMP, 24); 4604 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 4605 L_361545FE: 4606 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 4607 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 4608 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 4609 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 4610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4612 _flag_k = FK_CMP; 4613 RECOMP_BACKEDGE(); 4614 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 4615 L_36154611: 4616 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 4617 L_36154616: 4618 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 4619 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 4620 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4622 _flag_k = FK_NARROW(FK_CMP, 24); 4623 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 4624 L_3615461E: 4625 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 4626 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 4627 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 4628 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 4629 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 4630 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 4631 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 4632 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 4633 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4635 _flag_k = FK_CMP; 4636 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 4637 L_36154636: 4638 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 4639 L_36154639: 4640 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 4641 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 4642 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 4643 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 4644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4646 _flag_k = FK_CMP; 4647 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 4648 L_36154647: 4649 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 4650 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 4651 L_3615464C: 4652 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 4653 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 4654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4656 _flag_k = FK_CMP; 4657 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 4658 L_36154654: 4659 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 4660 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 4661 L_36154659: 4662 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 4663 L_3615465B: 4664 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 4665 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 4666 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 4667 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 4668 L_36154667: 4669 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 4670 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 4671 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 4672 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 4673 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 4674 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 4675 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 4676 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 4677 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 4678 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 4679 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 4680 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 4681 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 4682 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4684 _flag_k = FK_CMP; 4685 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 4686 L_3615468E: 4687 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 4688 L_36154691: 4689 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 4690 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 4691 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 4692 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 4693 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4695 _flag_k = FK_CMP; 4696 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 4697 L_3615469F: 4698 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 4699 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 4700 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 4701 L_361546A9: 4702 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 4703 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 4704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4706 _flag_k = FK_CMP; 4707 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 4708 L_361546B0: 4709 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 4710 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 4711 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 4712 L_361546B9: 4713 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 4714 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 4715 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 4716 L_361546C3: 4717 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 4718 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 4719 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4721 _flag_k = FK_NARROW(FK_CMP, 24); 4722 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 4723 L_361546CA: 4724 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 4725 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 4726 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 4727 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 4728 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 4729 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 4730 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 4731 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 4732 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4734 _flag_k = FK_CMP; 4735 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 4736 L_361546E3: 4737 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 4738 L_361546E6: 4739 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 4740 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 4741 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 4742 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 4743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4745 _flag_k = FK_CMP; 4746 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 4747 L_361546F4: 4748 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 4749 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 4750 L_361546F9: 4751 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 4752 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 4753 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4755 _flag_k = FK_CMP; 4756 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 4757 L_36154700: 4758 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 4759 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 4760 L_36154704: 4761 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 4762 L_36154707: 4763 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 4764 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 4765 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 4766 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 4767 L_36154711: 4768 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 4769 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 4770 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 4771 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 4772 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 4773 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 4774 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 4775 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 4776 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 4777 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 4778 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 4779 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 4780 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 4781 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4783 _flag_k = FK_CMP; 4784 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 4785 L_36154737: 4786 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 4787 L_3615473A: 4788 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 4789 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 4790 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 4791 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 4792 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4794 _flag_k = FK_CMP; 4795 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 4796 L_36154748: 4797 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 4798 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 4799 L_3615474D: 4800 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 4801 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 4802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4804 _flag_k = FK_CMP; 4805 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 4806 L_36154755: 4807 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 4808 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 4809 L_3615475A: 4810 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 4811 L_3615475C: 4812 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 4813 L_3615475F: 4814 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 4815 L_36154762: 4816 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 4817 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 4818 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 4819 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 4820 RECOMP_FLAGS_IN(); 4821 PUSH32(esp, esi); /* 0x36154770: push esi */ 4822 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 4823 RECOMP_FLAGS_IN(); 4824 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 4825 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 4826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4828 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 4829 _flag_k = FK_ADD; 4830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4831 eax = eax - 1; /* 0x3615477F: dec eax */ 4832 _flag_k = FK_DEC; 4833 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 4834 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 4835 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 4836 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 4837 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 4838 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 4839 esp = ebp; /* 0x3615478B: mov esp, ebp */ 4840 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 4841 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 4842 RECOMP_REGS_OUT(); 4843 } 4844 4845 void sub_3615457B(void) { 4846 int _fpu_cmp = 0; 4847 uint32_t _cf = 0; 4848 int _df = 1; 4849 uint32_t _flag_k = FK_NONE; 4850 uint32_t _flag_a = 0, _flag_b = 0; 4851 uint32_t _itail_tgt = 0; 4852 RECOMP_REGS_LOCALS 4853 RECOMP_ENTER(0x3615457Bu); 4854 4855 goto L_3615457B; 4856 L_36154514: 4857 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 4858 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4860 _flag_k = FK_NARROW(FK_CMP, 24); 4861 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 4862 L_3615451D: 4863 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 4864 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 4865 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 4866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4868 _flag_k = FK_CMP; 4869 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 4870 L_36154526: 4871 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 4872 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 4873 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 4874 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4875 _cf = 0; 4876 _flag_k = FK_NARROW(FK_TEST, 24); 4877 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 4878 L_36154530: 4879 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 4880 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 4881 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 4882 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 4883 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 4884 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 4885 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 4886 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 4887 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 4888 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4890 _flag_k = FK_CMP; 4891 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 4892 L_3615454C: 4893 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 4894 L_3615454F: 4895 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 4896 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 4897 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 4898 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 4899 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4901 _flag_k = FK_CMP; 4902 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 4903 L_3615455D: 4904 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 4905 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 4906 L_36154562: 4907 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 4908 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 4909 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4911 _flag_k = FK_CMP; 4912 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 4913 L_36154569: 4914 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 4915 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 4916 L_3615456D: 4917 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 4918 L_36154570: 4919 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 4920 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 4921 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 4922 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 4923 L_3615457B: 4924 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 4925 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 4926 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4928 _flag_k = FK_NARROW(FK_CMP, 24); 4929 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 4930 L_36154586: 4931 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 4932 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 4933 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4935 _flag_k = FK_NARROW(FK_CMP, 24); 4936 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 4937 L_36154592: 4938 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 4939 L_36154594: 4940 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 4941 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 4942 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4943 _cf = 0; 4944 _flag_k = FK_NARROW(FK_TEST, 24); 4945 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 4946 L_3615459B: 4947 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 4948 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 4949 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 4950 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 4951 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 4952 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 4953 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 4954 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 4955 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 4956 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4957 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4958 _flag_k = FK_CMP; 4959 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 4960 L_361545B7: 4961 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 4962 L_361545BA: 4963 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 4964 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 4965 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 4966 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 4967 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4969 _flag_k = FK_CMP; 4970 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 4971 L_361545C8: 4972 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 4973 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 4974 L_361545CD: 4975 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 4976 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 4977 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4979 _flag_k = FK_CMP; 4980 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 4981 L_361545D5: 4982 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 4983 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 4984 L_361545DA: 4985 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 4986 L_361545DC: 4987 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 4988 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 4989 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 4990 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 4991 L_361545E7: 4992 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 4993 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 4994 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4996 _flag_k = FK_NARROW(FK_CMP, 24); 4997 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 4998 L_361545F3: 4999 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 5000 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 5001 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5003 _flag_k = FK_NARROW(FK_CMP, 24); 5004 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 5005 L_361545FE: 5006 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 5007 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 5008 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 5009 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 5010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5012 _flag_k = FK_CMP; 5013 RECOMP_BACKEDGE(); 5014 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 5015 L_36154611: 5016 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 5017 L_36154616: 5018 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 5019 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 5020 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5022 _flag_k = FK_NARROW(FK_CMP, 24); 5023 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 5024 L_3615461E: 5025 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 5026 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 5027 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 5028 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 5029 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 5030 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 5031 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 5032 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 5033 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5035 _flag_k = FK_CMP; 5036 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 5037 L_36154636: 5038 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 5039 L_36154639: 5040 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 5041 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 5042 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 5043 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 5044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5046 _flag_k = FK_CMP; 5047 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 5048 L_36154647: 5049 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 5050 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 5051 L_3615464C: 5052 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 5053 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 5054 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5056 _flag_k = FK_CMP; 5057 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 5058 L_36154654: 5059 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 5060 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 5061 L_36154659: 5062 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 5063 L_3615465B: 5064 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 5065 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 5066 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 5067 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 5068 L_36154667: 5069 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 5070 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 5071 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 5072 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 5073 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 5074 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 5075 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 5076 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 5077 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 5078 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 5079 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 5080 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 5081 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 5082 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5084 _flag_k = FK_CMP; 5085 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 5086 L_3615468E: 5087 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 5088 L_36154691: 5089 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 5090 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 5091 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 5092 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 5093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5095 _flag_k = FK_CMP; 5096 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 5097 L_3615469F: 5098 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 5099 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 5100 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 5101 L_361546A9: 5102 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 5103 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 5104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5106 _flag_k = FK_CMP; 5107 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 5108 L_361546B0: 5109 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 5110 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 5111 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 5112 L_361546B9: 5113 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 5114 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 5115 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 5116 L_361546C3: 5117 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 5118 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 5119 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5121 _flag_k = FK_NARROW(FK_CMP, 24); 5122 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 5123 L_361546CA: 5124 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 5125 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 5126 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 5127 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 5128 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 5129 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 5130 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 5131 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 5132 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5133 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5134 _flag_k = FK_CMP; 5135 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 5136 L_361546E3: 5137 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 5138 L_361546E6: 5139 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 5140 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 5141 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 5142 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 5143 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5145 _flag_k = FK_CMP; 5146 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 5147 L_361546F4: 5148 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 5149 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 5150 L_361546F9: 5151 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 5152 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 5153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5155 _flag_k = FK_CMP; 5156 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 5157 L_36154700: 5158 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 5159 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 5160 L_36154704: 5161 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 5162 L_36154707: 5163 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 5164 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 5165 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 5166 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 5167 L_36154711: 5168 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 5169 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 5170 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 5171 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 5172 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 5173 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 5174 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 5175 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 5176 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 5177 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 5178 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 5179 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 5180 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 5181 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5183 _flag_k = FK_CMP; 5184 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 5185 L_36154737: 5186 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 5187 L_3615473A: 5188 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 5189 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 5190 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 5191 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 5192 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5194 _flag_k = FK_CMP; 5195 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 5196 L_36154748: 5197 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 5198 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 5199 L_3615474D: 5200 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 5201 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 5202 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5204 _flag_k = FK_CMP; 5205 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 5206 L_36154755: 5207 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 5208 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 5209 L_3615475A: 5210 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 5211 L_3615475C: 5212 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 5213 L_3615475F: 5214 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 5215 L_36154762: 5216 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 5217 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 5218 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 5219 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 5220 RECOMP_FLAGS_IN(); 5221 PUSH32(esp, esi); /* 0x36154770: push esi */ 5222 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 5223 RECOMP_FLAGS_IN(); 5224 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 5225 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 5226 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5228 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 5229 _flag_k = FK_ADD; 5230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5231 eax = eax - 1; /* 0x3615477F: dec eax */ 5232 _flag_k = FK_DEC; 5233 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 5234 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 5235 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 5236 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 5237 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 5238 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 5239 esp = ebp; /* 0x3615478B: mov esp, ebp */ 5240 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 5241 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 5242 RECOMP_REGS_OUT(); 5243 } 5244 5245 void sub_36154594(void) { 5246 int _fpu_cmp = 0; 5247 uint32_t _cf = 0; 5248 int _df = 1; 5249 uint32_t _flag_k = FK_NONE; 5250 uint32_t _flag_a = 0, _flag_b = 0; 5251 uint32_t _itail_tgt = 0; 5252 RECOMP_REGS_LOCALS 5253 RECOMP_ENTER(0x36154594u); 5254 5255 goto L_36154594; 5256 L_36154514: 5257 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 5258 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5260 _flag_k = FK_NARROW(FK_CMP, 24); 5261 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 5262 L_3615451D: 5263 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 5264 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 5265 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 5266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5268 _flag_k = FK_CMP; 5269 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 5270 L_36154526: 5271 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 5272 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 5273 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 5274 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5275 _cf = 0; 5276 _flag_k = FK_NARROW(FK_TEST, 24); 5277 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 5278 L_36154530: 5279 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 5280 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 5281 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 5282 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 5283 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 5284 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 5285 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 5286 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 5287 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 5288 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5290 _flag_k = FK_CMP; 5291 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 5292 L_3615454C: 5293 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 5294 L_3615454F: 5295 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 5296 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 5297 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 5298 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 5299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5301 _flag_k = FK_CMP; 5302 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 5303 L_3615455D: 5304 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 5305 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 5306 L_36154562: 5307 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 5308 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 5309 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5311 _flag_k = FK_CMP; 5312 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 5313 L_36154569: 5314 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 5315 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 5316 L_3615456D: 5317 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 5318 L_36154570: 5319 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 5320 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 5321 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 5322 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 5323 L_3615457B: 5324 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 5325 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 5326 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5328 _flag_k = FK_NARROW(FK_CMP, 24); 5329 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 5330 L_36154586: 5331 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 5332 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 5333 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5335 _flag_k = FK_NARROW(FK_CMP, 24); 5336 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 5337 L_36154592: 5338 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 5339 L_36154594: 5340 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 5341 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 5342 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5343 _cf = 0; 5344 _flag_k = FK_NARROW(FK_TEST, 24); 5345 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 5346 L_3615459B: 5347 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 5348 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 5349 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 5350 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 5351 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 5352 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 5353 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 5354 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 5355 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 5356 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5358 _flag_k = FK_CMP; 5359 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 5360 L_361545B7: 5361 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 5362 L_361545BA: 5363 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 5364 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 5365 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 5366 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 5367 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5368 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5369 _flag_k = FK_CMP; 5370 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 5371 L_361545C8: 5372 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 5373 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 5374 L_361545CD: 5375 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 5376 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 5377 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5379 _flag_k = FK_CMP; 5380 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 5381 L_361545D5: 5382 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 5383 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 5384 L_361545DA: 5385 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 5386 L_361545DC: 5387 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 5388 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 5389 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 5390 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 5391 L_361545E7: 5392 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 5393 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 5394 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5396 _flag_k = FK_NARROW(FK_CMP, 24); 5397 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 5398 L_361545F3: 5399 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 5400 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 5401 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5403 _flag_k = FK_NARROW(FK_CMP, 24); 5404 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 5405 L_361545FE: 5406 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 5407 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 5408 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 5409 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 5410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5412 _flag_k = FK_CMP; 5413 RECOMP_BACKEDGE(); 5414 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 5415 L_36154611: 5416 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 5417 L_36154616: 5418 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 5419 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 5420 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5422 _flag_k = FK_NARROW(FK_CMP, 24); 5423 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 5424 L_3615461E: 5425 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 5426 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 5427 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 5428 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 5429 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 5430 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 5431 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 5432 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 5433 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5435 _flag_k = FK_CMP; 5436 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 5437 L_36154636: 5438 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 5439 L_36154639: 5440 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 5441 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 5442 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 5443 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 5444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5446 _flag_k = FK_CMP; 5447 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 5448 L_36154647: 5449 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 5450 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 5451 L_3615464C: 5452 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 5453 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 5454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5456 _flag_k = FK_CMP; 5457 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 5458 L_36154654: 5459 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 5460 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 5461 L_36154659: 5462 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 5463 L_3615465B: 5464 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 5465 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 5466 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 5467 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 5468 L_36154667: 5469 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 5470 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 5471 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 5472 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 5473 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 5474 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 5475 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 5476 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 5477 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 5478 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 5479 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 5480 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 5481 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 5482 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5483 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5484 _flag_k = FK_CMP; 5485 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 5486 L_3615468E: 5487 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 5488 L_36154691: 5489 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 5490 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 5491 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 5492 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 5493 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5495 _flag_k = FK_CMP; 5496 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 5497 L_3615469F: 5498 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 5499 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 5500 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 5501 L_361546A9: 5502 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 5503 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 5504 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5506 _flag_k = FK_CMP; 5507 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 5508 L_361546B0: 5509 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 5510 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 5511 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 5512 L_361546B9: 5513 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 5514 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 5515 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 5516 L_361546C3: 5517 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 5518 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 5519 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5521 _flag_k = FK_NARROW(FK_CMP, 24); 5522 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 5523 L_361546CA: 5524 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 5525 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 5526 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 5527 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 5528 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 5529 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 5530 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 5531 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 5532 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5533 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5534 _flag_k = FK_CMP; 5535 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 5536 L_361546E3: 5537 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 5538 L_361546E6: 5539 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 5540 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 5541 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 5542 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 5543 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5545 _flag_k = FK_CMP; 5546 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 5547 L_361546F4: 5548 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 5549 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 5550 L_361546F9: 5551 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 5552 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 5553 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5555 _flag_k = FK_CMP; 5556 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 5557 L_36154700: 5558 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 5559 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 5560 L_36154704: 5561 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 5562 L_36154707: 5563 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 5564 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 5565 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 5566 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 5567 L_36154711: 5568 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 5569 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 5570 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 5571 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 5572 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 5573 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 5574 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 5575 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 5576 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 5577 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 5578 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 5579 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 5580 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 5581 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5583 _flag_k = FK_CMP; 5584 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 5585 L_36154737: 5586 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 5587 L_3615473A: 5588 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 5589 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 5590 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 5591 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 5592 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5594 _flag_k = FK_CMP; 5595 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 5596 L_36154748: 5597 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 5598 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 5599 L_3615474D: 5600 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 5601 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 5602 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5604 _flag_k = FK_CMP; 5605 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 5606 L_36154755: 5607 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 5608 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 5609 L_3615475A: 5610 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 5611 L_3615475C: 5612 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 5613 L_3615475F: 5614 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 5615 L_36154762: 5616 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 5617 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 5618 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 5619 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 5620 RECOMP_FLAGS_IN(); 5621 PUSH32(esp, esi); /* 0x36154770: push esi */ 5622 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 5623 RECOMP_FLAGS_IN(); 5624 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 5625 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 5626 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5628 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 5629 _flag_k = FK_ADD; 5630 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5631 eax = eax - 1; /* 0x3615477F: dec eax */ 5632 _flag_k = FK_DEC; 5633 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 5634 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 5635 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 5636 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 5637 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 5638 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 5639 esp = ebp; /* 0x3615478B: mov esp, ebp */ 5640 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 5641 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 5642 RECOMP_REGS_OUT(); 5643 } 5644 5645 void sub_361545DC(void) { 5646 int _fpu_cmp = 0; 5647 uint32_t _cf = 0; 5648 int _df = 1; 5649 uint32_t _flag_k = FK_NONE; 5650 uint32_t _flag_a = 0, _flag_b = 0; 5651 uint32_t _itail_tgt = 0; 5652 RECOMP_REGS_LOCALS 5653 RECOMP_ENTER(0x361545DCu); 5654 5655 goto L_361545DC; 5656 L_36154514: 5657 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 5658 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5659 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5660 _flag_k = FK_NARROW(FK_CMP, 24); 5661 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 5662 L_3615451D: 5663 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 5664 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 5665 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 5666 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5668 _flag_k = FK_CMP; 5669 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 5670 L_36154526: 5671 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 5672 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 5673 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 5674 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5675 _cf = 0; 5676 _flag_k = FK_NARROW(FK_TEST, 24); 5677 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 5678 L_36154530: 5679 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 5680 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 5681 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 5682 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 5683 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 5684 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 5685 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 5686 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 5687 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 5688 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5690 _flag_k = FK_CMP; 5691 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 5692 L_3615454C: 5693 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 5694 L_3615454F: 5695 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 5696 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 5697 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 5698 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 5699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5701 _flag_k = FK_CMP; 5702 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 5703 L_3615455D: 5704 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 5705 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 5706 L_36154562: 5707 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 5708 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 5709 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5711 _flag_k = FK_CMP; 5712 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 5713 L_36154569: 5714 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 5715 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 5716 L_3615456D: 5717 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 5718 L_36154570: 5719 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 5720 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 5721 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 5722 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 5723 L_3615457B: 5724 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 5725 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 5726 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5727 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5728 _flag_k = FK_NARROW(FK_CMP, 24); 5729 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 5730 L_36154586: 5731 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 5732 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 5733 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5735 _flag_k = FK_NARROW(FK_CMP, 24); 5736 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 5737 L_36154592: 5738 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 5739 L_36154594: 5740 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 5741 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 5742 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5743 _cf = 0; 5744 _flag_k = FK_NARROW(FK_TEST, 24); 5745 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 5746 L_3615459B: 5747 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 5748 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 5749 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 5750 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 5751 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 5752 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 5753 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 5754 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 5755 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 5756 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5758 _flag_k = FK_CMP; 5759 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 5760 L_361545B7: 5761 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 5762 L_361545BA: 5763 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 5764 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 5765 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 5766 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 5767 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5769 _flag_k = FK_CMP; 5770 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 5771 L_361545C8: 5772 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 5773 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 5774 L_361545CD: 5775 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 5776 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 5777 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5779 _flag_k = FK_CMP; 5780 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 5781 L_361545D5: 5782 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 5783 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 5784 L_361545DA: 5785 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 5786 L_361545DC: 5787 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 5788 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 5789 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 5790 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 5791 L_361545E7: 5792 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 5793 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 5794 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5796 _flag_k = FK_NARROW(FK_CMP, 24); 5797 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 5798 L_361545F3: 5799 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 5800 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 5801 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5803 _flag_k = FK_NARROW(FK_CMP, 24); 5804 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 5805 L_361545FE: 5806 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 5807 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 5808 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 5809 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 5810 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5812 _flag_k = FK_CMP; 5813 RECOMP_BACKEDGE(); 5814 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 5815 L_36154611: 5816 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 5817 L_36154616: 5818 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 5819 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 5820 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5822 _flag_k = FK_NARROW(FK_CMP, 24); 5823 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 5824 L_3615461E: 5825 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 5826 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 5827 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 5828 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 5829 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 5830 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 5831 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 5832 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 5833 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5835 _flag_k = FK_CMP; 5836 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 5837 L_36154636: 5838 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 5839 L_36154639: 5840 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 5841 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 5842 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 5843 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 5844 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5846 _flag_k = FK_CMP; 5847 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 5848 L_36154647: 5849 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 5850 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 5851 L_3615464C: 5852 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 5853 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 5854 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5856 _flag_k = FK_CMP; 5857 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 5858 L_36154654: 5859 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 5860 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 5861 L_36154659: 5862 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 5863 L_3615465B: 5864 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 5865 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 5866 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 5867 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 5868 L_36154667: 5869 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 5870 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 5871 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 5872 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 5873 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 5874 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 5875 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 5876 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 5877 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 5878 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 5879 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 5880 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 5881 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 5882 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5884 _flag_k = FK_CMP; 5885 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 5886 L_3615468E: 5887 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 5888 L_36154691: 5889 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 5890 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 5891 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 5892 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 5893 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5895 _flag_k = FK_CMP; 5896 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 5897 L_3615469F: 5898 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 5899 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 5900 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 5901 L_361546A9: 5902 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 5903 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 5904 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5906 _flag_k = FK_CMP; 5907 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 5908 L_361546B0: 5909 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 5910 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 5911 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 5912 L_361546B9: 5913 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 5914 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 5915 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 5916 L_361546C3: 5917 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 5918 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 5919 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5920 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5921 _flag_k = FK_NARROW(FK_CMP, 24); 5922 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 5923 L_361546CA: 5924 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 5925 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 5926 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 5927 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 5928 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 5929 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 5930 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 5931 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 5932 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5934 _flag_k = FK_CMP; 5935 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 5936 L_361546E3: 5937 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 5938 L_361546E6: 5939 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 5940 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 5941 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 5942 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 5943 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5945 _flag_k = FK_CMP; 5946 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 5947 L_361546F4: 5948 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 5949 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 5950 L_361546F9: 5951 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 5952 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 5953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5955 _flag_k = FK_CMP; 5956 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 5957 L_36154700: 5958 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 5959 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 5960 L_36154704: 5961 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 5962 L_36154707: 5963 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 5964 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 5965 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 5966 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 5967 L_36154711: 5968 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 5969 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 5970 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 5971 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 5972 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 5973 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 5974 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 5975 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 5976 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 5977 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 5978 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 5979 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 5980 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 5981 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5983 _flag_k = FK_CMP; 5984 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 5985 L_36154737: 5986 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 5987 L_3615473A: 5988 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 5989 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 5990 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 5991 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 5992 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5994 _flag_k = FK_CMP; 5995 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 5996 L_36154748: 5997 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 5998 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 5999 L_3615474D: 6000 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 6001 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 6002 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6003 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6004 _flag_k = FK_CMP; 6005 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 6006 L_36154755: 6007 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 6008 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 6009 L_3615475A: 6010 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 6011 L_3615475C: 6012 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 6013 L_3615475F: 6014 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 6015 L_36154762: 6016 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 6017 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 6018 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 6019 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 6020 RECOMP_FLAGS_IN(); 6021 PUSH32(esp, esi); /* 0x36154770: push esi */ 6022 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 6023 RECOMP_FLAGS_IN(); 6024 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 6025 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 6026 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6028 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 6029 _flag_k = FK_ADD; 6030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6031 eax = eax - 1; /* 0x3615477F: dec eax */ 6032 _flag_k = FK_DEC; 6033 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 6034 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 6035 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 6036 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 6037 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 6038 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 6039 esp = ebp; /* 0x3615478B: mov esp, ebp */ 6040 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 6041 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 6042 RECOMP_REGS_OUT(); 6043 } 6044 6045 void sub_361545E7(void) { 6046 int _fpu_cmp = 0; 6047 uint32_t _cf = 0; 6048 int _df = 1; 6049 uint32_t _flag_k = FK_NONE; 6050 uint32_t _flag_a = 0, _flag_b = 0; 6051 uint32_t _itail_tgt = 0; 6052 RECOMP_REGS_LOCALS 6053 RECOMP_ENTER(0x361545E7u); 6054 6055 goto L_361545E7; 6056 L_36154514: 6057 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 6058 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6060 _flag_k = FK_NARROW(FK_CMP, 24); 6061 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 6062 L_3615451D: 6063 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 6064 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 6065 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 6066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6068 _flag_k = FK_CMP; 6069 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 6070 L_36154526: 6071 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 6072 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 6073 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 6074 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6075 _cf = 0; 6076 _flag_k = FK_NARROW(FK_TEST, 24); 6077 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 6078 L_36154530: 6079 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 6080 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 6081 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 6082 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 6083 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 6084 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 6085 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 6086 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 6087 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 6088 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6090 _flag_k = FK_CMP; 6091 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 6092 L_3615454C: 6093 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 6094 L_3615454F: 6095 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 6096 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 6097 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 6098 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 6099 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6101 _flag_k = FK_CMP; 6102 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 6103 L_3615455D: 6104 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 6105 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 6106 L_36154562: 6107 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 6108 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 6109 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6111 _flag_k = FK_CMP; 6112 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 6113 L_36154569: 6114 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 6115 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 6116 L_3615456D: 6117 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 6118 L_36154570: 6119 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 6120 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 6121 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 6122 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 6123 L_3615457B: 6124 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 6125 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 6126 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6128 _flag_k = FK_NARROW(FK_CMP, 24); 6129 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 6130 L_36154586: 6131 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 6132 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 6133 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6135 _flag_k = FK_NARROW(FK_CMP, 24); 6136 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 6137 L_36154592: 6138 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 6139 L_36154594: 6140 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 6141 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 6142 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6143 _cf = 0; 6144 _flag_k = FK_NARROW(FK_TEST, 24); 6145 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 6146 L_3615459B: 6147 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 6148 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 6149 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 6150 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 6151 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 6152 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 6153 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 6154 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 6155 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 6156 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6158 _flag_k = FK_CMP; 6159 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 6160 L_361545B7: 6161 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 6162 L_361545BA: 6163 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 6164 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 6165 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 6166 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 6167 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6169 _flag_k = FK_CMP; 6170 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 6171 L_361545C8: 6172 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 6173 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 6174 L_361545CD: 6175 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 6176 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 6177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6179 _flag_k = FK_CMP; 6180 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 6181 L_361545D5: 6182 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 6183 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 6184 L_361545DA: 6185 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 6186 L_361545DC: 6187 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 6188 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 6189 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 6190 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 6191 L_361545E7: 6192 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 6193 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 6194 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6196 _flag_k = FK_NARROW(FK_CMP, 24); 6197 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 6198 L_361545F3: 6199 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 6200 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 6201 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6203 _flag_k = FK_NARROW(FK_CMP, 24); 6204 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 6205 L_361545FE: 6206 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 6207 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 6208 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 6209 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 6210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6211 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6212 _flag_k = FK_CMP; 6213 RECOMP_BACKEDGE(); 6214 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 6215 L_36154611: 6216 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 6217 L_36154616: 6218 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 6219 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 6220 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6222 _flag_k = FK_NARROW(FK_CMP, 24); 6223 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 6224 L_3615461E: 6225 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 6226 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 6227 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 6228 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 6229 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 6230 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 6231 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 6232 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 6233 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6235 _flag_k = FK_CMP; 6236 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 6237 L_36154636: 6238 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 6239 L_36154639: 6240 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 6241 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 6242 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 6243 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 6244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6246 _flag_k = FK_CMP; 6247 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 6248 L_36154647: 6249 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 6250 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 6251 L_3615464C: 6252 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 6253 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 6254 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6256 _flag_k = FK_CMP; 6257 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 6258 L_36154654: 6259 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 6260 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 6261 L_36154659: 6262 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 6263 L_3615465B: 6264 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 6265 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 6266 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 6267 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 6268 L_36154667: 6269 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 6270 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 6271 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 6272 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 6273 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 6274 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 6275 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 6276 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 6277 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 6278 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 6279 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 6280 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 6281 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 6282 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6284 _flag_k = FK_CMP; 6285 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 6286 L_3615468E: 6287 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 6288 L_36154691: 6289 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 6290 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 6291 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 6292 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 6293 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6295 _flag_k = FK_CMP; 6296 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 6297 L_3615469F: 6298 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 6299 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 6300 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 6301 L_361546A9: 6302 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 6303 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 6304 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6306 _flag_k = FK_CMP; 6307 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 6308 L_361546B0: 6309 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 6310 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 6311 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 6312 L_361546B9: 6313 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 6314 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 6315 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 6316 L_361546C3: 6317 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 6318 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 6319 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6321 _flag_k = FK_NARROW(FK_CMP, 24); 6322 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 6323 L_361546CA: 6324 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 6325 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 6326 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 6327 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 6328 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 6329 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 6330 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 6331 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 6332 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6334 _flag_k = FK_CMP; 6335 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 6336 L_361546E3: 6337 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 6338 L_361546E6: 6339 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 6340 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 6341 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 6342 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 6343 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6345 _flag_k = FK_CMP; 6346 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 6347 L_361546F4: 6348 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 6349 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 6350 L_361546F9: 6351 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 6352 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 6353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6355 _flag_k = FK_CMP; 6356 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 6357 L_36154700: 6358 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 6359 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 6360 L_36154704: 6361 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 6362 L_36154707: 6363 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 6364 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 6365 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 6366 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 6367 L_36154711: 6368 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 6369 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 6370 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 6371 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 6372 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 6373 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 6374 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 6375 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 6376 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 6377 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 6378 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 6379 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 6380 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 6381 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6383 _flag_k = FK_CMP; 6384 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 6385 L_36154737: 6386 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 6387 L_3615473A: 6388 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 6389 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 6390 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 6391 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 6392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6394 _flag_k = FK_CMP; 6395 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 6396 L_36154748: 6397 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 6398 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 6399 L_3615474D: 6400 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 6401 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 6402 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6404 _flag_k = FK_CMP; 6405 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 6406 L_36154755: 6407 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 6408 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 6409 L_3615475A: 6410 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 6411 L_3615475C: 6412 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 6413 L_3615475F: 6414 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 6415 L_36154762: 6416 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 6417 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 6418 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 6419 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 6420 RECOMP_FLAGS_IN(); 6421 PUSH32(esp, esi); /* 0x36154770: push esi */ 6422 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 6423 RECOMP_FLAGS_IN(); 6424 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 6425 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 6426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6428 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 6429 _flag_k = FK_ADD; 6430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6431 eax = eax - 1; /* 0x3615477F: dec eax */ 6432 _flag_k = FK_DEC; 6433 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 6434 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 6435 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 6436 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 6437 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 6438 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 6439 esp = ebp; /* 0x3615478B: mov esp, ebp */ 6440 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 6441 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 6442 RECOMP_REGS_OUT(); 6443 } 6444 6445 void sub_361545FE(void) { 6446 int _fpu_cmp = 0; 6447 uint32_t _cf = 0; 6448 int _df = 1; 6449 uint32_t _flag_k = FK_NONE; 6450 uint32_t _flag_a = 0, _flag_b = 0; 6451 uint32_t _itail_tgt = 0; 6452 RECOMP_REGS_LOCALS 6453 RECOMP_ENTER(0x361545FEu); 6454 6455 goto L_361545FE; 6456 L_36154514: 6457 /* cmp MEM8(eax + 0x3C), LO8(ebx) */ /* 0x36154514: cmp byte ptr [eax + 0x3c], bl */ 6458 _flag_a = (uint32_t)(MEM8(eax + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6460 _flag_k = FK_NARROW(FK_CMP, 24); 6461 if (CMP_NE(_flag_a, _flag_b)) goto L_36154762; /* 0x36154517: jne 0x36154762 */ 6462 L_3615451D: 6463 edx = MEM32(eax + 0x4); /* 0x3615451D: mov edx, dword ptr [eax + 4] */ 6464 ecx = MEM32(edx); /* 0x36154520: mov ecx, dword ptr [edx] */ 6465 /* cmp eax, ecx */ /* 0x36154522: cmp eax, ecx */ 6466 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6467 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6468 _flag_k = FK_CMP; 6469 if (CMP_NE(_flag_a, _flag_b)) goto L_36154594; /* 0x36154524: jne 0x36154594 */ 6470 L_36154526: 6471 ecx = MEM32(edx + 0x8); /* 0x36154526: mov ecx, dword ptr [edx + 8] */ 6472 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154529: mov dl, byte ptr [ecx + 0x3c] */ 6473 /* test LO8(edx), LO8(edx) */ /* 0x3615452C: test dl, dl */ 6474 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6475 _cf = 0; 6476 _flag_k = FK_NARROW(FK_TEST, 24); 6477 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615457B; /* 0x3615452E: jne 0x3615457b */ 6478 L_36154530: 6479 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154530: mov byte ptr [ecx + 0x3c], bl */ 6480 edx = MEM32(eax + 0x4); /* 0x36154533: mov edx, dword ptr [eax + 4] */ 6481 MEM8(edx + 0x3C) = (uint8_t)(0); /* 0x36154536: mov byte ptr [edx + 0x3c], 0 */ 6482 ecx = MEM32(eax + 0x4); /* 0x3615453A: mov ecx, dword ptr [eax + 4] */ 6483 edx = MEM32(ecx + 0x8); /* 0x3615453D: mov edx, dword ptr [ecx + 8] */ 6484 esi = MEM32(edx); /* 0x36154540: mov esi, dword ptr [edx] */ 6485 MEM32(ecx + 0x8) = esi; /* 0x36154542: mov dword ptr [ecx + 8], esi */ 6486 esi = MEM32(edx); /* 0x36154545: mov esi, dword ptr [edx] */ 6487 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154547: cmp esi, dword ptr [edi + 8] */ 6488 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6490 _flag_k = FK_CMP; 6491 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615454F; /* 0x3615454A: je 0x3615454f */ 6492 L_3615454C: 6493 MEM32(esi + 0x4) = ecx; /* 0x3615454C: mov dword ptr [esi + 4], ecx */ 6494 L_3615454F: 6495 esi = MEM32(ecx + 0x4); /* 0x3615454F: mov esi, dword ptr [ecx + 4] */ 6496 MEM32(edx + 0x4) = esi; /* 0x36154552: mov dword ptr [edx + 4], esi */ 6497 esi = MEM32(edi + 0x4); /* 0x36154555: mov esi, dword ptr [edi + 4] */ 6498 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154558: cmp ecx, dword ptr [esi + 4] */ 6499 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6501 _flag_k = FK_CMP; 6502 if (CMP_NE(_flag_a, _flag_b)) goto L_36154562; /* 0x3615455B: jne 0x36154562 */ 6503 L_3615455D: 6504 MEM32(esi + 0x4) = edx; /* 0x3615455D: mov dword ptr [esi + 4], edx */ 6505 goto L_36154570; /* 0x36154560: jmp 0x36154570 */ 6506 L_36154562: 6507 esi = MEM32(ecx + 0x4); /* 0x36154562: mov esi, dword ptr [ecx + 4] */ 6508 /* cmp ecx, MEM32(esi) */ /* 0x36154565: cmp ecx, dword ptr [esi] */ 6509 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6511 _flag_k = FK_CMP; 6512 if (CMP_NE(_flag_a, _flag_b)) goto L_3615456D; /* 0x36154567: jne 0x3615456d */ 6513 L_36154569: 6514 MEM32(esi) = edx; /* 0x36154569: mov dword ptr [esi], edx */ 6515 goto L_36154570; /* 0x3615456B: jmp 0x36154570 */ 6516 L_3615456D: 6517 MEM32(esi + 0x8) = edx; /* 0x3615456D: mov dword ptr [esi + 8], edx */ 6518 L_36154570: 6519 MEM32(edx) = ecx; /* 0x36154570: mov dword ptr [edx], ecx */ 6520 MEM32(ecx + 0x4) = edx; /* 0x36154572: mov dword ptr [ecx + 4], edx */ 6521 ecx = MEM32(eax + 0x4); /* 0x36154575: mov ecx, dword ptr [eax + 4] */ 6522 ecx = MEM32(ecx + 0x8); /* 0x36154578: mov ecx, dword ptr [ecx + 8] */ 6523 L_3615457B: 6524 edx = MEM32(ecx); /* 0x3615457B: mov edx, dword ptr [ecx] */ 6525 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x3615457D: cmp byte ptr [edx + 0x3c], bl */ 6526 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6528 _flag_k = FK_NARROW(FK_CMP, 24); 6529 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x36154580: jne 0x36154616 */ 6530 L_36154586: 6531 edx = MEM32(ecx + 0x8); /* 0x36154586: mov edx, dword ptr [ecx + 8] */ 6532 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154589: cmp byte ptr [edx + 0x3c], bl */ 6533 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6535 _flag_k = FK_NARROW(FK_CMP, 24); 6536 if (CMP_NE(_flag_a, _flag_b)) goto L_36154616; /* 0x3615458C: jne 0x36154616 */ 6537 L_36154592: 6538 goto L_361545FE; /* 0x36154592: jmp 0x361545fe */ 6539 L_36154594: 6540 SET_LO8(edx, MEM8(ecx + 0x3C)); /* 0x36154594: mov dl, byte ptr [ecx + 0x3c] */ 6541 /* test LO8(edx), LO8(edx) */ /* 0x36154597: test dl, dl */ 6542 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 6543 _cf = 0; 6544 _flag_k = FK_NARROW(FK_TEST, 24); 6545 if (TEST_NZ(_flag_a, _flag_b)) goto L_361545E7; /* 0x36154599: jne 0x361545e7 */ 6546 L_3615459B: 6547 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615459B: mov byte ptr [ecx + 0x3c], bl */ 6548 ecx = MEM32(eax + 0x4); /* 0x3615459E: mov ecx, dword ptr [eax + 4] */ 6549 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545A1: mov byte ptr [ecx + 0x3c], 0 */ 6550 ecx = MEM32(eax + 0x4); /* 0x361545A5: mov ecx, dword ptr [eax + 4] */ 6551 edx = MEM32(ecx); /* 0x361545A8: mov edx, dword ptr [ecx] */ 6552 esi = MEM32(edx + 0x8); /* 0x361545AA: mov esi, dword ptr [edx + 8] */ 6553 MEM32(ecx) = esi; /* 0x361545AD: mov dword ptr [ecx], esi */ 6554 esi = MEM32(edx + 0x8); /* 0x361545AF: mov esi, dword ptr [edx + 8] */ 6555 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361545B2: cmp esi, dword ptr [edi + 8] */ 6556 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6557 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6558 _flag_k = FK_CMP; 6559 if (CMP_EQ(_flag_a, _flag_b)) goto L_361545BA; /* 0x361545B5: je 0x361545ba */ 6560 L_361545B7: 6561 MEM32(esi + 0x4) = ecx; /* 0x361545B7: mov dword ptr [esi + 4], ecx */ 6562 L_361545BA: 6563 esi = MEM32(ecx + 0x4); /* 0x361545BA: mov esi, dword ptr [ecx + 4] */ 6564 MEM32(edx + 0x4) = esi; /* 0x361545BD: mov dword ptr [edx + 4], esi */ 6565 esi = MEM32(edi + 0x4); /* 0x361545C0: mov esi, dword ptr [edi + 4] */ 6566 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361545C3: cmp ecx, dword ptr [esi + 4] */ 6567 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6569 _flag_k = FK_CMP; 6570 if (CMP_NE(_flag_a, _flag_b)) goto L_361545CD; /* 0x361545C6: jne 0x361545cd */ 6571 L_361545C8: 6572 MEM32(esi + 0x4) = edx; /* 0x361545C8: mov dword ptr [esi + 4], edx */ 6573 goto L_361545DC; /* 0x361545CB: jmp 0x361545dc */ 6574 L_361545CD: 6575 esi = MEM32(ecx + 0x4); /* 0x361545CD: mov esi, dword ptr [ecx + 4] */ 6576 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x361545D0: cmp ecx, dword ptr [esi + 8] */ 6577 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6579 _flag_k = FK_CMP; 6580 if (CMP_NE(_flag_a, _flag_b)) goto L_361545DA; /* 0x361545D3: jne 0x361545da */ 6581 L_361545D5: 6582 MEM32(esi + 0x8) = edx; /* 0x361545D5: mov dword ptr [esi + 8], edx */ 6583 goto L_361545DC; /* 0x361545D8: jmp 0x361545dc */ 6584 L_361545DA: 6585 MEM32(esi) = edx; /* 0x361545DA: mov dword ptr [esi], edx */ 6586 L_361545DC: 6587 MEM32(edx + 0x8) = ecx; /* 0x361545DC: mov dword ptr [edx + 8], ecx */ 6588 MEM32(ecx + 0x4) = edx; /* 0x361545DF: mov dword ptr [ecx + 4], edx */ 6589 edx = MEM32(eax + 0x4); /* 0x361545E2: mov edx, dword ptr [eax + 4] */ 6590 ecx = MEM32(edx); /* 0x361545E5: mov ecx, dword ptr [edx] */ 6591 L_361545E7: 6592 edx = MEM32(ecx + 0x8); /* 0x361545E7: mov edx, dword ptr [ecx + 8] */ 6593 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545EA: cmp byte ptr [edx + 0x3c], bl */ 6594 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6596 _flag_k = FK_NARROW(FK_CMP, 24); 6597 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545ED: jne 0x361546c3 */ 6598 L_361545F3: 6599 edx = MEM32(ecx); /* 0x361545F3: mov edx, dword ptr [ecx] */ 6600 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361545F5: cmp byte ptr [edx + 0x3c], bl */ 6601 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6603 _flag_k = FK_NARROW(FK_CMP, 24); 6604 if (CMP_NE(_flag_a, _flag_b)) goto L_361546C3; /* 0x361545F8: jne 0x361546c3 */ 6605 L_361545FE: 6606 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361545FE: mov byte ptr [ecx + 0x3c], 0 */ 6607 ecx = MEM32(edi + 0x4); /* 0x36154602: mov ecx, dword ptr [edi + 4] */ 6608 eax = MEM32(eax + 0x4); /* 0x36154605: mov eax, dword ptr [eax + 4] */ 6609 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x36154608: cmp eax, dword ptr [ecx + 4] */ 6610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 6611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6612 _flag_k = FK_CMP; 6613 RECOMP_BACKEDGE(); 6614 if (CMP_NE(_flag_a, _flag_b)) goto L_36154514; /* 0x3615460B: jne 0x36154514 */ 6615 L_36154611: 6616 goto L_36154762; /* 0x36154611: jmp 0x36154762 */ 6617 L_36154616: 6618 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 6619 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 6620 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6622 _flag_k = FK_NARROW(FK_CMP, 24); 6623 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 6624 L_3615461E: 6625 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 6626 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 6627 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 6628 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 6629 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 6630 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 6631 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 6632 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 6633 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6635 _flag_k = FK_CMP; 6636 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 6637 L_36154636: 6638 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 6639 L_36154639: 6640 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 6641 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 6642 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 6643 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 6644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6646 _flag_k = FK_CMP; 6647 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 6648 L_36154647: 6649 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 6650 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 6651 L_3615464C: 6652 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 6653 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 6654 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6656 _flag_k = FK_CMP; 6657 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 6658 L_36154654: 6659 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 6660 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 6661 L_36154659: 6662 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 6663 L_3615465B: 6664 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 6665 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 6666 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 6667 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 6668 L_36154667: 6669 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 6670 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 6671 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 6672 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 6673 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 6674 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 6675 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 6676 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 6677 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 6678 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 6679 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 6680 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 6681 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 6682 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6684 _flag_k = FK_CMP; 6685 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 6686 L_3615468E: 6687 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 6688 L_36154691: 6689 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 6690 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 6691 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 6692 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 6693 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6695 _flag_k = FK_CMP; 6696 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 6697 L_3615469F: 6698 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 6699 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 6700 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 6701 L_361546A9: 6702 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 6703 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 6704 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6706 _flag_k = FK_CMP; 6707 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 6708 L_361546B0: 6709 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 6710 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 6711 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 6712 L_361546B9: 6713 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 6714 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 6715 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 6716 L_361546C3: 6717 edx = MEM32(ecx); /* 0x361546C3: mov edx, dword ptr [ecx] */ 6718 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x361546C5: cmp byte ptr [edx + 0x3c], bl */ 6719 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6721 _flag_k = FK_NARROW(FK_CMP, 24); 6722 if (CMP_NE(_flag_a, _flag_b)) goto L_36154711; /* 0x361546C8: jne 0x36154711 */ 6723 L_361546CA: 6724 edx = MEM32(ecx + 0x8); /* 0x361546CA: mov edx, dword ptr [ecx + 8] */ 6725 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x361546CD: mov byte ptr [edx + 0x3c], bl */ 6726 edx = MEM32(ecx + 0x8); /* 0x361546D0: mov edx, dword ptr [ecx + 8] */ 6727 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x361546D3: mov byte ptr [ecx + 0x3c], 0 */ 6728 esi = MEM32(edx); /* 0x361546D7: mov esi, dword ptr [edx] */ 6729 MEM32(ecx + 0x8) = esi; /* 0x361546D9: mov dword ptr [ecx + 8], esi */ 6730 esi = MEM32(edx); /* 0x361546DC: mov esi, dword ptr [edx] */ 6731 /* cmp esi, MEM32(edi + 0x8) */ /* 0x361546DE: cmp esi, dword ptr [edi + 8] */ 6732 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6734 _flag_k = FK_CMP; 6735 if (CMP_EQ(_flag_a, _flag_b)) goto L_361546E6; /* 0x361546E1: je 0x361546e6 */ 6736 L_361546E3: 6737 MEM32(esi + 0x4) = ecx; /* 0x361546E3: mov dword ptr [esi + 4], ecx */ 6738 L_361546E6: 6739 esi = MEM32(ecx + 0x4); /* 0x361546E6: mov esi, dword ptr [ecx + 4] */ 6740 MEM32(edx + 0x4) = esi; /* 0x361546E9: mov dword ptr [edx + 4], esi */ 6741 esi = MEM32(edi + 0x4); /* 0x361546EC: mov esi, dword ptr [edi + 4] */ 6742 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x361546EF: cmp ecx, dword ptr [esi + 4] */ 6743 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6745 _flag_k = FK_CMP; 6746 if (CMP_NE(_flag_a, _flag_b)) goto L_361546F9; /* 0x361546F2: jne 0x361546f9 */ 6747 L_361546F4: 6748 MEM32(esi + 0x4) = edx; /* 0x361546F4: mov dword ptr [esi + 4], edx */ 6749 goto L_36154707; /* 0x361546F7: jmp 0x36154707 */ 6750 L_361546F9: 6751 esi = MEM32(ecx + 0x4); /* 0x361546F9: mov esi, dword ptr [ecx + 4] */ 6752 /* cmp ecx, MEM32(esi) */ /* 0x361546FC: cmp ecx, dword ptr [esi] */ 6753 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6755 _flag_k = FK_CMP; 6756 if (CMP_NE(_flag_a, _flag_b)) goto L_36154704; /* 0x361546FE: jne 0x36154704 */ 6757 L_36154700: 6758 MEM32(esi) = edx; /* 0x36154700: mov dword ptr [esi], edx */ 6759 goto L_36154707; /* 0x36154702: jmp 0x36154707 */ 6760 L_36154704: 6761 MEM32(esi + 0x8) = edx; /* 0x36154704: mov dword ptr [esi + 8], edx */ 6762 L_36154707: 6763 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 6764 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 6765 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 6766 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 6767 L_36154711: 6768 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 6769 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 6770 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 6771 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 6772 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 6773 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 6774 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 6775 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 6776 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 6777 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 6778 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 6779 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 6780 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 6781 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6783 _flag_k = FK_CMP; 6784 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 6785 L_36154737: 6786 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 6787 L_3615473A: 6788 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 6789 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 6790 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 6791 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 6792 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6794 _flag_k = FK_CMP; 6795 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 6796 L_36154748: 6797 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 6798 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 6799 L_3615474D: 6800 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 6801 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 6802 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6804 _flag_k = FK_CMP; 6805 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 6806 L_36154755: 6807 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 6808 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 6809 L_3615475A: 6810 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 6811 L_3615475C: 6812 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 6813 L_3615475F: 6814 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 6815 L_36154762: 6816 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 6817 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 6818 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 6819 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 6820 RECOMP_FLAGS_IN(); 6821 PUSH32(esp, esi); /* 0x36154770: push esi */ 6822 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 6823 RECOMP_FLAGS_IN(); 6824 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 6825 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 6826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6828 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 6829 _flag_k = FK_ADD; 6830 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6831 eax = eax - 1; /* 0x3615477F: dec eax */ 6832 _flag_k = FK_DEC; 6833 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 6834 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 6835 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 6836 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 6837 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 6838 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 6839 esp = ebp; /* 0x3615478B: mov esp, ebp */ 6840 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 6841 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 6842 RECOMP_REGS_OUT(); 6843 } 6844 6845 void sub_36154616(void) { 6846 int _fpu_cmp = 0; 6847 uint32_t _cf = 0; 6848 int _df = 1; 6849 uint32_t _flag_k = FK_NONE; 6850 uint32_t _flag_a = 0, _flag_b = 0; 6851 uint32_t _itail_tgt = 0; 6852 RECOMP_REGS_LOCALS 6853 RECOMP_ENTER(0x36154616u); 6854 6855 L_36154616: 6856 edx = MEM32(ecx + 0x8); /* 0x36154616: mov edx, dword ptr [ecx + 8] */ 6857 /* cmp MEM8(edx + 0x3C), LO8(ebx) */ /* 0x36154619: cmp byte ptr [edx + 0x3c], bl */ 6858 _flag_a = (uint32_t)(MEM8(edx + 0x3C)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6859 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6860 _flag_k = FK_NARROW(FK_CMP, 24); 6861 if (CMP_NE(_flag_a, _flag_b)) goto L_36154667; /* 0x3615461C: jne 0x36154667 */ 6862 L_3615461E: 6863 edx = MEM32(ecx); /* 0x3615461E: mov edx, dword ptr [ecx] */ 6864 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154620: mov byte ptr [edx + 0x3c], bl */ 6865 edx = MEM32(ecx); /* 0x36154623: mov edx, dword ptr [ecx] */ 6866 MEM8(ecx + 0x3C) = (uint8_t)(0); /* 0x36154625: mov byte ptr [ecx + 0x3c], 0 */ 6867 esi = MEM32(edx + 0x8); /* 0x36154629: mov esi, dword ptr [edx + 8] */ 6868 MEM32(ecx) = esi; /* 0x3615462C: mov dword ptr [ecx], esi */ 6869 esi = MEM32(edx + 0x8); /* 0x3615462E: mov esi, dword ptr [edx + 8] */ 6870 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154631: cmp esi, dword ptr [edi + 8] */ 6871 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6873 _flag_k = FK_CMP; 6874 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154639; /* 0x36154634: je 0x36154639 */ 6875 L_36154636: 6876 MEM32(esi + 0x4) = ecx; /* 0x36154636: mov dword ptr [esi + 4], ecx */ 6877 L_36154639: 6878 esi = MEM32(ecx + 0x4); /* 0x36154639: mov esi, dword ptr [ecx + 4] */ 6879 MEM32(edx + 0x4) = esi; /* 0x3615463C: mov dword ptr [edx + 4], esi */ 6880 esi = MEM32(edi + 0x4); /* 0x3615463F: mov esi, dword ptr [edi + 4] */ 6881 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154642: cmp ecx, dword ptr [esi + 4] */ 6882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6884 _flag_k = FK_CMP; 6885 if (CMP_NE(_flag_a, _flag_b)) goto L_3615464C; /* 0x36154645: jne 0x3615464c */ 6886 L_36154647: 6887 MEM32(esi + 0x4) = edx; /* 0x36154647: mov dword ptr [esi + 4], edx */ 6888 goto L_3615465B; /* 0x3615464A: jmp 0x3615465b */ 6889 L_3615464C: 6890 esi = MEM32(ecx + 0x4); /* 0x3615464C: mov esi, dword ptr [ecx + 4] */ 6891 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3615464F: cmp ecx, dword ptr [esi + 8] */ 6892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6894 _flag_k = FK_CMP; 6895 if (CMP_NE(_flag_a, _flag_b)) goto L_36154659; /* 0x36154652: jne 0x36154659 */ 6896 L_36154654: 6897 MEM32(esi + 0x8) = edx; /* 0x36154654: mov dword ptr [esi + 8], edx */ 6898 goto L_3615465B; /* 0x36154657: jmp 0x3615465b */ 6899 L_36154659: 6900 MEM32(esi) = edx; /* 0x36154659: mov dword ptr [esi], edx */ 6901 L_3615465B: 6902 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 6903 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 6904 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 6905 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 6906 L_36154667: 6907 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 6908 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 6909 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 6910 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 6911 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 6912 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 6913 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 6914 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 6915 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 6916 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 6917 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 6918 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 6919 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 6920 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6922 _flag_k = FK_CMP; 6923 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 6924 L_3615468E: 6925 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 6926 L_36154691: 6927 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 6928 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 6929 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 6930 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 6931 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6933 _flag_k = FK_CMP; 6934 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 6935 L_3615469F: 6936 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 6937 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 6938 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 6939 L_361546A9: 6940 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 6941 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 6942 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6943 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6944 _flag_k = FK_CMP; 6945 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 6946 L_361546B0: 6947 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 6948 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 6949 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 6950 L_361546B9: 6951 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 6952 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 6953 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 6954 L_3615475F: 6955 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 6956 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 6957 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 6958 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 6959 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 6960 RECOMP_FLAGS_IN(); 6961 PUSH32(esp, esi); /* 0x36154770: push esi */ 6962 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 6963 RECOMP_FLAGS_IN(); 6964 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 6965 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 6966 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6967 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6968 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 6969 _flag_k = FK_ADD; 6970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6971 eax = eax - 1; /* 0x3615477F: dec eax */ 6972 _flag_k = FK_DEC; 6973 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 6974 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 6975 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 6976 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 6977 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 6978 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 6979 esp = ebp; /* 0x3615478B: mov esp, ebp */ 6980 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 6981 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 6982 RECOMP_REGS_OUT(); 6983 } 6984 6985 void sub_3615465B(void) { 6986 int _fpu_cmp = 0; 6987 uint32_t _cf = 0; 6988 int _df = 1; 6989 uint32_t _flag_k = FK_NONE; 6990 uint32_t _flag_a = 0, _flag_b = 0; 6991 uint32_t _itail_tgt = 0; 6992 RECOMP_REGS_LOCALS 6993 RECOMP_ENTER(0x3615465Bu); 6994 6995 L_3615465B: 6996 MEM32(edx + 0x8) = ecx; /* 0x3615465B: mov dword ptr [edx + 8], ecx */ 6997 MEM32(ecx + 0x4) = edx; /* 0x3615465E: mov dword ptr [ecx + 4], edx */ 6998 ecx = MEM32(eax + 0x4); /* 0x36154661: mov ecx, dword ptr [eax + 4] */ 6999 ecx = MEM32(ecx + 0x8); /* 0x36154664: mov ecx, dword ptr [ecx + 8] */ 7000 edx = MEM32(eax + 0x4); /* 0x36154667: mov edx, dword ptr [eax + 4] */ 7001 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x3615466A: mov dl, byte ptr [edx + 0x3c] */ 7002 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x3615466D: mov byte ptr [ecx + 0x3c], dl */ 7003 edx = MEM32(eax + 0x4); /* 0x36154670: mov edx, dword ptr [eax + 4] */ 7004 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154673: mov byte ptr [edx + 0x3c], bl */ 7005 ecx = MEM32(ecx + 0x8); /* 0x36154676: mov ecx, dword ptr [ecx + 8] */ 7006 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154679: mov byte ptr [ecx + 0x3c], bl */ 7007 ecx = MEM32(eax + 0x4); /* 0x3615467C: mov ecx, dword ptr [eax + 4] */ 7008 edx = MEM32(ecx + 0x8); /* 0x3615467F: mov edx, dword ptr [ecx + 8] */ 7009 esi = MEM32(edx); /* 0x36154682: mov esi, dword ptr [edx] */ 7010 MEM32(ecx + 0x8) = esi; /* 0x36154684: mov dword ptr [ecx + 8], esi */ 7011 esi = MEM32(edx); /* 0x36154687: mov esi, dword ptr [edx] */ 7012 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154689: cmp esi, dword ptr [edi + 8] */ 7013 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7015 _flag_k = FK_CMP; 7016 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154691; /* 0x3615468C: je 0x36154691 */ 7017 L_3615468E: 7018 MEM32(esi + 0x4) = ecx; /* 0x3615468E: mov dword ptr [esi + 4], ecx */ 7019 L_36154691: 7020 esi = MEM32(ecx + 0x4); /* 0x36154691: mov esi, dword ptr [ecx + 4] */ 7021 MEM32(edx + 0x4) = esi; /* 0x36154694: mov dword ptr [edx + 4], esi */ 7022 esi = MEM32(edi + 0x4); /* 0x36154697: mov esi, dword ptr [edi + 4] */ 7023 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3615469A: cmp ecx, dword ptr [esi + 4] */ 7024 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7026 _flag_k = FK_CMP; 7027 if (CMP_NE(_flag_a, _flag_b)) goto L_361546A9; /* 0x3615469D: jne 0x361546a9 */ 7028 L_3615469F: 7029 MEM32(esi + 0x4) = edx; /* 0x3615469F: mov dword ptr [esi + 4], edx */ 7030 MEM32(edx) = ecx; /* 0x361546A2: mov dword ptr [edx], ecx */ 7031 goto L_3615475F; /* 0x361546A4: jmp 0x3615475f */ 7032 L_361546A9: 7033 esi = MEM32(ecx + 0x4); /* 0x361546A9: mov esi, dword ptr [ecx + 4] */ 7034 /* cmp ecx, MEM32(esi) */ /* 0x361546AC: cmp ecx, dword ptr [esi] */ 7035 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 7036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7037 _flag_k = FK_CMP; 7038 if (CMP_NE(_flag_a, _flag_b)) goto L_361546B9; /* 0x361546AE: jne 0x361546b9 */ 7039 L_361546B0: 7040 MEM32(esi) = edx; /* 0x361546B0: mov dword ptr [esi], edx */ 7041 MEM32(edx) = ecx; /* 0x361546B2: mov dword ptr [edx], ecx */ 7042 goto L_3615475F; /* 0x361546B4: jmp 0x3615475f */ 7043 L_361546B9: 7044 MEM32(esi + 0x8) = edx; /* 0x361546B9: mov dword ptr [esi + 8], edx */ 7045 MEM32(edx) = ecx; /* 0x361546BC: mov dword ptr [edx], ecx */ 7046 goto L_3615475F; /* 0x361546BE: jmp 0x3615475f */ 7047 L_3615475F: 7048 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 7049 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 7050 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 7051 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 7052 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 7053 RECOMP_FLAGS_IN(); 7054 PUSH32(esp, esi); /* 0x36154770: push esi */ 7055 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 7056 RECOMP_FLAGS_IN(); 7057 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 7058 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 7059 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7061 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 7062 _flag_k = FK_ADD; 7063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7064 eax = eax - 1; /* 0x3615477F: dec eax */ 7065 _flag_k = FK_DEC; 7066 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 7067 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 7068 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 7069 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 7070 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 7071 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 7072 esp = ebp; /* 0x3615478B: mov esp, ebp */ 7073 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 7074 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 7075 RECOMP_REGS_OUT(); 7076 } 7077 7078 void sub_36154707(void) { 7079 int _fpu_cmp = 0; 7080 uint32_t _cf = 0; 7081 int _df = 1; 7082 uint32_t _flag_k = FK_NONE; 7083 uint32_t _flag_a = 0, _flag_b = 0; 7084 uint32_t _itail_tgt = 0; 7085 RECOMP_REGS_LOCALS 7086 RECOMP_ENTER(0x36154707u); 7087 7088 L_36154707: 7089 MEM32(edx) = ecx; /* 0x36154707: mov dword ptr [edx], ecx */ 7090 MEM32(ecx + 0x4) = edx; /* 0x36154709: mov dword ptr [ecx + 4], edx */ 7091 ecx = MEM32(eax + 0x4); /* 0x3615470C: mov ecx, dword ptr [eax + 4] */ 7092 ecx = MEM32(ecx); /* 0x3615470F: mov ecx, dword ptr [ecx] */ 7093 edx = MEM32(eax + 0x4); /* 0x36154711: mov edx, dword ptr [eax + 4] */ 7094 SET_LO8(edx, MEM8(edx + 0x3C)); /* 0x36154714: mov dl, byte ptr [edx + 0x3c] */ 7095 MEM8(ecx + 0x3C) = (uint8_t)(LO8(edx)); /* 0x36154717: mov byte ptr [ecx + 0x3c], dl */ 7096 edx = MEM32(eax + 0x4); /* 0x3615471A: mov edx, dword ptr [eax + 4] */ 7097 MEM8(edx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x3615471D: mov byte ptr [edx + 0x3c], bl */ 7098 ecx = MEM32(ecx); /* 0x36154720: mov ecx, dword ptr [ecx] */ 7099 MEM8(ecx + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154722: mov byte ptr [ecx + 0x3c], bl */ 7100 ecx = MEM32(eax + 0x4); /* 0x36154725: mov ecx, dword ptr [eax + 4] */ 7101 edx = MEM32(ecx); /* 0x36154728: mov edx, dword ptr [ecx] */ 7102 esi = MEM32(edx + 0x8); /* 0x3615472A: mov esi, dword ptr [edx + 8] */ 7103 MEM32(ecx) = esi; /* 0x3615472D: mov dword ptr [ecx], esi */ 7104 esi = MEM32(edx + 0x8); /* 0x3615472F: mov esi, dword ptr [edx + 8] */ 7105 /* cmp esi, MEM32(edi + 0x8) */ /* 0x36154732: cmp esi, dword ptr [edi + 8] */ 7106 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 7107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7108 _flag_k = FK_CMP; 7109 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615473A; /* 0x36154735: je 0x3615473a */ 7110 L_36154737: 7111 MEM32(esi + 0x4) = ecx; /* 0x36154737: mov dword ptr [esi + 4], ecx */ 7112 L_3615473A: 7113 esi = MEM32(ecx + 0x4); /* 0x3615473A: mov esi, dword ptr [ecx + 4] */ 7114 MEM32(edx + 0x4) = esi; /* 0x3615473D: mov dword ptr [edx + 4], esi */ 7115 esi = MEM32(edi + 0x4); /* 0x36154740: mov esi, dword ptr [edi + 4] */ 7116 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36154743: cmp ecx, dword ptr [esi + 4] */ 7117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 7118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7119 _flag_k = FK_CMP; 7120 if (CMP_NE(_flag_a, _flag_b)) goto L_3615474D; /* 0x36154746: jne 0x3615474d */ 7121 L_36154748: 7122 MEM32(esi + 0x4) = edx; /* 0x36154748: mov dword ptr [esi + 4], edx */ 7123 goto L_3615475C; /* 0x3615474B: jmp 0x3615475c */ 7124 L_3615474D: 7125 esi = MEM32(ecx + 0x4); /* 0x3615474D: mov esi, dword ptr [ecx + 4] */ 7126 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x36154750: cmp ecx, dword ptr [esi + 8] */ 7127 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 7128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7129 _flag_k = FK_CMP; 7130 if (CMP_NE(_flag_a, _flag_b)) goto L_3615475A; /* 0x36154753: jne 0x3615475a */ 7131 L_36154755: 7132 MEM32(esi + 0x8) = edx; /* 0x36154755: mov dword ptr [esi + 8], edx */ 7133 goto L_3615475C; /* 0x36154758: jmp 0x3615475c */ 7134 L_3615475A: 7135 MEM32(esi) = edx; /* 0x3615475A: mov dword ptr [esi], edx */ 7136 L_3615475C: 7137 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 7138 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 7139 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 7140 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 7141 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 7142 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 7143 RECOMP_FLAGS_IN(); 7144 PUSH32(esp, esi); /* 0x36154770: push esi */ 7145 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 7146 RECOMP_FLAGS_IN(); 7147 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 7148 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 7149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7151 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 7152 _flag_k = FK_ADD; 7153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7154 eax = eax - 1; /* 0x3615477F: dec eax */ 7155 _flag_k = FK_DEC; 7156 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 7157 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 7158 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 7159 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 7160 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 7161 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 7162 esp = ebp; /* 0x3615478B: mov esp, ebp */ 7163 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 7164 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 7165 RECOMP_REGS_OUT(); 7166 } 7167 7168 void sub_3615475C(void) { 7169 int _fpu_cmp = 0; 7170 uint32_t _cf = 0; 7171 int _df = 1; 7172 uint32_t _flag_k = FK_NONE; 7173 uint32_t _flag_a = 0, _flag_b = 0; 7174 uint32_t _itail_tgt = 0; 7175 RECOMP_REGS_LOCALS 7176 RECOMP_ENTER(0x3615475Cu); 7177 7178 L_3615475C: 7179 MEM32(edx + 0x8) = ecx; /* 0x3615475C: mov dword ptr [edx + 8], ecx */ 7180 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 7181 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 7182 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 7183 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 7184 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 7185 RECOMP_FLAGS_IN(); 7186 PUSH32(esp, esi); /* 0x36154770: push esi */ 7187 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 7188 RECOMP_FLAGS_IN(); 7189 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 7190 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 7191 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7193 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 7194 _flag_k = FK_ADD; 7195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7196 eax = eax - 1; /* 0x3615477F: dec eax */ 7197 _flag_k = FK_DEC; 7198 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 7199 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 7200 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 7201 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 7202 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 7203 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 7204 esp = ebp; /* 0x3615478B: mov esp, ebp */ 7205 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 7206 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 7207 RECOMP_REGS_OUT(); 7208 } 7209 7210 void sub_3615475F(void) { 7211 int _fpu_cmp = 0; 7212 uint32_t _cf = 0; 7213 int _df = 1; 7214 uint32_t _flag_k = FK_NONE; 7215 uint32_t _flag_a = 0, _flag_b = 0; 7216 uint32_t _itail_tgt = 0; 7217 RECOMP_REGS_LOCALS 7218 RECOMP_ENTER(0x3615475Fu); 7219 7220 L_3615475F: 7221 MEM32(ecx + 0x4) = edx; /* 0x3615475F: mov dword ptr [ecx + 4], edx */ 7222 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 7223 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 7224 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 7225 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 7226 RECOMP_FLAGS_IN(); 7227 PUSH32(esp, esi); /* 0x36154770: push esi */ 7228 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 7229 RECOMP_FLAGS_IN(); 7230 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 7231 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 7232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7234 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 7235 _flag_k = FK_ADD; 7236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7237 eax = eax - 1; /* 0x3615477F: dec eax */ 7238 _flag_k = FK_DEC; 7239 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 7240 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 7241 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 7242 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 7243 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 7244 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 7245 esp = ebp; /* 0x3615478B: mov esp, ebp */ 7246 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 7247 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 7248 RECOMP_REGS_OUT(); 7249 } 7250 7251 void sub_36154762(void) { 7252 int _fpu_cmp = 0; 7253 uint32_t _cf = 0; 7254 int _df = 1; 7255 uint32_t _flag_k = FK_NONE; 7256 uint32_t _flag_a = 0, _flag_b = 0; 7257 uint32_t _itail_tgt = 0; 7258 RECOMP_REGS_LOCALS 7259 RECOMP_ENTER(0x36154762u); 7260 7261 L_36154762: 7262 esi = MEM32(ebp + (-0x4)); /* 0x36154762: mov esi, dword ptr [ebp - 4] */ 7263 MEM8(eax + 0x3C) = (uint8_t)(LO8(ebx)); /* 0x36154765: mov byte ptr [eax + 0x3c], bl */ 7264 ecx = esi + 0xC; /* 0x36154768: lea ecx, [esi + 0xc] */ 7265 RECOMP_ICALL(0x36154870u); /* 0x3615476B: call 0x36154870 */ /* not lifted */ 7266 RECOMP_FLAGS_IN(); 7267 PUSH32(esp, esi); /* 0x36154770: push esi */ 7268 RECOMP_ICALL(0x3615FCC4u); /* 0x36154771: call 0x3615fcc4 */ /* not lifted */ 7269 RECOMP_FLAGS_IN(); 7270 eax = MEM32(edi + 0x10); /* 0x36154776: mov eax, dword ptr [edi + 0x10] */ 7271 edx = MEM32(ebp + 0xC); /* 0x36154779: mov edx, dword ptr [ebp + 0xc] */ 7272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7274 esp = esp + 4; /* 0x3615477C: add esp, 4 */ 7275 _flag_k = FK_ADD; 7276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7277 eax = eax - 1; /* 0x3615477F: dec eax */ 7278 _flag_k = FK_DEC; 7279 MEM32(edi + 0x10) = eax; /* 0x36154780: mov dword ptr [edi + 0x10], eax */ 7280 eax = MEM32(ebp + 0x8); /* 0x36154783: mov eax, dword ptr [ebp + 8] */ 7281 edi = POP32_VAL(esp); /* 0x36154786: pop edi */ 7282 esi = POP32_VAL(esp); /* 0x36154787: pop esi */ 7283 MEM32(eax) = edx; /* 0x36154788: mov dword ptr [eax], edx */ 7284 ebx = POP32_VAL(esp); /* 0x3615478A: pop ebx */ 7285 esp = ebp; /* 0x3615478B: mov esp, ebp */ 7286 ebp = POP32_VAL(esp); /* 0x3615478D: pop ebp */ 7287 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615478E: ret 8 */ 7288 RECOMP_REGS_OUT(); 7289 } 7290 7291 void sub_361547A0(void) { 7292 int _fpu_cmp = 0; 7293 uint32_t _cf = 0; 7294 int _df = 1; 7295 uint32_t _flag_k = FK_NONE; 7296 uint32_t _flag_a = 0, _flag_b = 0; 7297 uint32_t _itail_tgt = 0; 7298 RECOMP_REGS_LOCALS 7299 RECOMP_ENTER(0x361547A0u); 7300 7301 L_361547A0: 7302 PUSH32(esp, ebp); /* 0x361547A0: push ebp */ 7303 ebp = esp; /* 0x361547A1: mov ebp, esp */ 7304 PUSH32(esp, ebx); /* 0x361547A3: push ebx */ 7305 PUSH32(esp, esi); /* 0x361547A4: push esi */ 7306 ebx = ecx; /* 0x361547A5: mov ebx, ecx */ 7307 eax = MEM32(ebx + 0x8); /* 0x361547A7: mov eax, dword ptr [ebx + 8] */ 7308 PUSH32(esp, edi); /* 0x361547AA: push edi */ 7309 edi = MEM32(ebp + 0x8); /* 0x361547AB: mov edi, dword ptr [ebp + 8] */ 7310 /* cmp edi, eax */ /* 0x361547AE: cmp edi, eax */ 7311 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7313 _flag_k = FK_CMP; 7314 esi = edi; /* 0x361547B0: mov esi, edi */ 7315 if (CMP_EQ(_flag_a, _flag_b)) goto L_361547DB; /* 0x361547B2: je 0x361547db */ 7316 L_361547B4: 7317 eax = MEM32(esi + 0x8); /* 0x361547B4: mov eax, dword ptr [esi + 8] */ 7318 PUSH32(esp, eax); /* 0x361547B7: push eax */ 7319 ecx = ebx; /* 0x361547B8: mov ecx, ebx */ 7320 RECOMP_ICALL(0x361547A0u); /* 0x361547BA: call 0x361547a0 */ /* not lifted */ 7321 RECOMP_FLAGS_IN(); 7322 esi = MEM32(esi); /* 0x361547BF: mov esi, dword ptr [esi] */ 7323 ecx = edi + 0xC; /* 0x361547C1: lea ecx, [edi + 0xc] */ 7324 RECOMP_ICALL(0x36154870u); /* 0x361547C4: call 0x36154870 */ /* not lifted */ 7325 RECOMP_FLAGS_IN(); 7326 PUSH32(esp, edi); /* 0x361547C9: push edi */ 7327 RECOMP_ICALL(0x3615FCC4u); /* 0x361547CA: call 0x3615fcc4 */ /* not lifted */ 7328 RECOMP_FLAGS_IN(); 7329 eax = MEM32(ebx + 0x8); /* 0x361547CF: mov eax, dword ptr [ebx + 8] */ 7330 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7332 esp = esp + 4; /* 0x361547D2: add esp, 4 */ 7333 _flag_k = FK_ADD; 7334 /* cmp esi, eax */ /* 0x361547D5: cmp esi, eax */ 7335 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7337 _flag_k = FK_CMP; 7338 edi = esi; /* 0x361547D7: mov edi, esi */ 7339 RECOMP_BACKEDGE(); 7340 if (CMP_NE(_flag_a, _flag_b)) goto L_361547B4; /* 0x361547D9: jne 0x361547b4 */ 7341 L_361547DB: 7342 edi = POP32_VAL(esp); /* 0x361547DB: pop edi */ 7343 esi = POP32_VAL(esp); /* 0x361547DC: pop esi */ 7344 ebx = POP32_VAL(esp); /* 0x361547DD: pop ebx */ 7345 ebp = POP32_VAL(esp); /* 0x361547DE: pop ebp */ 7346 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361547DF: ret 4 */ 7347 RECOMP_REGS_OUT(); 7348 } 7349 7350 void sub_361547F0(void) { 7351 int _fpu_cmp = 0; 7352 uint32_t _cf = 0; 7353 int _df = 1; 7354 uint32_t _flag_k = FK_NONE; 7355 uint32_t _flag_a = 0, _flag_b = 0; 7356 uint32_t _itail_tgt = 0; 7357 RECOMP_REGS_LOCALS 7358 RECOMP_ENTER(0x361547F0u); 7359 7360 L_361547F0: 7361 eax = MEM32(ecx); /* 0x361547F0: mov eax, dword ptr [ecx] */ 7362 edx = MEM32(eax + 0x8); /* 0x361547F2: mov edx, dword ptr [eax + 8] */ 7363 PUSH32(esp, ebx); /* 0x361547F5: push ebx */ 7364 SET_LO8(ebx, MEM8(edx + 0x3D)); /* 0x361547F6: mov bl, byte ptr [edx + 0x3d] */ 7365 /* test LO8(ebx), LO8(ebx) */ /* 0x361547F9: test bl, bl */ 7366 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7367 _cf = 0; 7368 _flag_k = FK_NARROW(FK_TEST, 24); 7369 if (TEST_NZ(_flag_a, _flag_b)) goto L_36154815; /* 0x361547FB: jne 0x36154815 */ 7370 L_361547FD: 7371 eax = MEM32(edx); /* 0x361547FD: mov eax, dword ptr [edx] */ 7372 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x361547FF: mov bl, byte ptr [eax + 0x3d] */ 7373 /* test LO8(ebx), LO8(ebx) */ /* 0x36154802: test bl, bl */ 7374 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7375 _cf = 0; 7376 _flag_k = FK_NARROW(FK_TEST, 24); 7377 if (TEST_NZ(_flag_a, _flag_b)) goto L_36154811; /* 0x36154804: jne 0x36154811 */ 7378 L_36154806: 7379 edx = eax; /* 0x36154806: mov edx, eax */ 7380 eax = MEM32(edx); /* 0x36154808: mov eax, dword ptr [edx] */ 7381 SET_LO8(ebx, MEM8(eax + 0x3D)); /* 0x3615480A: mov bl, byte ptr [eax + 0x3d] */ 7382 /* test LO8(ebx), LO8(ebx) */ /* 0x3615480D: test bl, bl */ 7383 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7384 _cf = 0; 7385 _flag_k = FK_NARROW(FK_TEST, 24); 7386 RECOMP_BACKEDGE(); 7387 if (TEST_Z(_flag_a, _flag_b)) goto L_36154806; /* 0x3615480F: je 0x36154806 */ 7388 L_36154811: 7389 MEM32(ecx) = edx; /* 0x36154811: mov dword ptr [ecx], edx */ 7390 ebx = POP32_VAL(esp); /* 0x36154813: pop ebx */ 7391 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154814: ret */ 7392 L_36154815: 7393 eax = MEM32(eax + 0x4); /* 0x36154815: mov eax, dword ptr [eax + 4] */ 7394 edx = MEM32(ecx); /* 0x36154818: mov edx, dword ptr [ecx] */ 7395 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3615481A: cmp edx, dword ptr [eax + 8] */ 7396 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7398 _flag_k = FK_CMP; 7399 if (CMP_NE(_flag_a, _flag_b)) goto L_3615482B; /* 0x3615481D: jne 0x3615482b */ 7400 L_3615481F: 7401 MEM32(ecx) = eax; /* 0x3615481F: mov dword ptr [ecx], eax */ 7402 eax = MEM32(eax + 0x4); /* 0x36154821: mov eax, dword ptr [eax + 4] */ 7403 edx = MEM32(ecx); /* 0x36154824: mov edx, dword ptr [ecx] */ 7404 /* cmp edx, MEM32(eax + 0x8) */ /* 0x36154826: cmp edx, dword ptr [eax + 8] */ 7405 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7407 _flag_k = FK_CMP; 7408 RECOMP_BACKEDGE(); 7409 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615481F; /* 0x36154829: je 0x3615481f */ 7410 L_3615482B: 7411 edx = MEM32(ecx); /* 0x3615482B: mov edx, dword ptr [ecx] */ 7412 /* cmp MEM32(edx + 0x8), eax */ /* 0x3615482D: cmp dword ptr [edx + 8], eax */ 7413 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 7414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7415 _flag_k = FK_CMP; 7416 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154834; /* 0x36154830: je 0x36154834 */ 7417 L_36154832: 7418 MEM32(ecx) = eax; /* 0x36154832: mov dword ptr [ecx], eax */ 7419 L_36154834: 7420 ebx = POP32_VAL(esp); /* 0x36154834: pop ebx */ 7421 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154835: ret */ 7422 RECOMP_REGS_OUT(); 7423 } 7424 7425 void sub_36154840(void) { 7426 int _fpu_cmp = 0; 7427 uint32_t _cf = 0; 7428 int _df = 1; 7429 uint32_t _flag_k = FK_NONE; 7430 uint32_t _flag_a = 0, _flag_b = 0; 7431 uint32_t _itail_tgt = 0; 7432 RECOMP_REGS_LOCALS 7433 RECOMP_ENTER(0x36154840u); 7434 7435 L_36154840: 7436 PUSH32(esp, ebp); /* 0x36154840: push ebp */ 7437 ebp = esp; /* 0x36154841: mov ebp, esp */ 7438 PUSH32(esp, esi); /* 0x36154843: push esi */ 7439 esi = ecx; /* 0x36154844: mov esi, ecx */ 7440 RECOMP_ICALL(0x36154870u); /* 0x36154846: call 0x36154870 */ /* not lifted */ 7441 RECOMP_FLAGS_IN(); 7442 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615484B: test byte ptr [ebp + 8], 1 */ 7443 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7444 _cf = 0; 7445 _flag_k = FK_NARROW(FK_TEST, 24); 7446 if (TEST_Z(_flag_a, _flag_b)) goto L_3615485A; /* 0x3615484F: je 0x3615485a */ 7447 L_36154851: 7448 PUSH32(esp, esi); /* 0x36154851: push esi */ 7449 RECOMP_ICALL(0x3615FCC4u); /* 0x36154852: call 0x3615fcc4 */ /* not lifted */ 7450 RECOMP_FLAGS_IN(); 7451 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7453 esp = esp + 4; /* 0x36154857: add esp, 4 */ 7454 _flag_k = FK_ADD; 7455 L_3615485A: 7456 eax = esi; /* 0x3615485A: mov eax, esi */ 7457 esi = POP32_VAL(esp); /* 0x3615485C: pop esi */ 7458 ebp = POP32_VAL(esp); /* 0x3615485D: pop ebp */ 7459 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615485E: ret 4 */ 7460 RECOMP_REGS_OUT(); 7461 } 7462 7463 void sub_36154870(void) { 7464 int _fpu_cmp = 0; 7465 uint32_t _cf = 0; 7466 int _df = 1; 7467 uint32_t _flag_k = FK_NONE; 7468 uint32_t _flag_a = 0, _flag_b = 0; 7469 uint32_t _itail_tgt = 0; 7470 RECOMP_REGS_LOCALS 7471 RECOMP_ENTER(0x36154870u); 7472 7473 L_36154870: 7474 eax = MEM32(ecx); /* 0x36154870: mov eax, dword ptr [ecx] */ 7475 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 7476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7477 ecx = ecx + 4; /* 0x36154872: add ecx, 4 */ 7478 _flag_k = FK_ADD; 7479 /* cmp eax, ecx */ /* 0x36154875: cmp eax, ecx */ 7480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7482 _flag_k = FK_CMP; 7483 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154880; /* 0x36154877: je 0x36154880 */ 7484 L_36154879: 7485 PUSH32(esp, eax); /* 0x36154879: push eax */ 7486 RECOMP_ICALL(0x3615FCC4u); /* 0x3615487A: call 0x3615fcc4 */ /* not lifted */ 7487 RECOMP_FLAGS_IN(); 7488 ecx = POP32_VAL(esp); /* 0x3615487F: pop ecx */ 7489 L_36154880: 7490 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154880: ret */ 7491 RECOMP_REGS_OUT(); 7492 } 7493 7494 void sub_36154890(void) { 7495 int _fpu_cmp = 0; 7496 uint32_t _cf = 0; 7497 int _df = 1; 7498 uint32_t _flag_k = FK_NONE; 7499 uint32_t _flag_a = 0, _flag_b = 0; 7500 uint32_t _itail_tgt = 0; 7501 RECOMP_REGS_LOCALS 7502 RECOMP_ENTER(0x36154890u); 7503 7504 L_36154890: 7505 goto L_361548A0; /* 0x36154890: jmp 0x361548a0 */ 7506 L_361548A0: 7507 MEM8(0x3630DB14) = (uint8_t)(1); /* 0x361548A0: mov byte ptr [0x3630db14], 1 */ 7508 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361548A7: ret */ 7509 RECOMP_REGS_OUT(); 7510 } 7511 7512 void sub_361548A0(void) { 7513 int _fpu_cmp = 0; 7514 uint32_t _cf = 0; 7515 int _df = 1; 7516 uint32_t _flag_k = FK_NONE; 7517 uint32_t _flag_a = 0, _flag_b = 0; 7518 uint32_t _itail_tgt = 0; 7519 RECOMP_REGS_LOCALS 7520 RECOMP_ENTER(0x361548A0u); 7521 7522 L_361548A0: 7523 MEM8(0x3630DB14) = (uint8_t)(1); /* 0x361548A0: mov byte ptr [0x3630db14], 1 */ 7524 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361548A7: ret */ 7525 RECOMP_REGS_OUT(); 7526 } 7527 7528 void sub_361548B0(void) { 7529 int _fpu_cmp = 0; 7530 uint32_t _cf = 0; 7531 int _df = 1; 7532 uint32_t _flag_k = FK_NONE; 7533 uint32_t _flag_a = 0, _flag_b = 0; 7534 uint32_t _itail_tgt = 0; 7535 RECOMP_REGS_LOCALS 7536 RECOMP_ENTER(0x361548B0u); 7537 7538 L_361548B0: 7539 PUSH32(esp, ebp); /* 0x361548B0: push ebp */ 7540 ebp = esp; /* 0x361548B1: mov ebp, esp */ 7541 PUSH32(esp, ecx); /* 0x361548B3: push ecx */ 7542 PUSH32(esp, esi); /* 0x361548B4: push esi */ 7543 esi = ecx; /* 0x361548B5: mov esi, ecx */ 7544 RECOMP_ICALL(0x36154D30u); /* 0x361548B7: call 0x36154d30 */ /* not lifted */ 7545 RECOMP_FLAGS_IN(); 7546 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x361548BC: mov al, byte ptr [ebp - 1] */ 7547 MEM8(esi + 0x28) = (uint8_t)(LO8(eax)); /* 0x361548BF: mov byte ptr [esi + 0x28], al */ 7548 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7549 eax = 0; /* 0x361548C2: xor eax, eax */ 7550 _cf = 0; 7551 _flag_k = FK_TEST; 7552 MEM32(esi + 0x2C) = eax; /* 0x361548C4: mov dword ptr [esi + 0x2c], eax */ 7553 MEM32(esi + 0x30) = eax; /* 0x361548C7: mov dword ptr [esi + 0x30], eax */ 7554 MEM32(esi + 0x34) = eax; /* 0x361548CA: mov dword ptr [esi + 0x34], eax */ 7555 MEM32(esi) = 0x36178BB4u; /* 0x361548CD: mov dword ptr [esi], 0x36178bb4 */ 7556 eax = esi; /* 0x361548D3: mov eax, esi */ 7557 esi = POP32_VAL(esp); /* 0x361548D5: pop esi */ 7558 esp = ebp; /* 0x361548D6: mov esp, ebp */ 7559 ebp = POP32_VAL(esp); /* 0x361548D8: pop ebp */ 7560 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361548D9: ret */ 7561 RECOMP_REGS_OUT(); 7562 } 7563 7564 void sub_361548E0(void) { 7565 int _fpu_cmp = 0; 7566 uint32_t _cf = 0; 7567 int _df = 1; 7568 uint32_t _flag_k = FK_NONE; 7569 uint32_t _flag_a = 0, _flag_b = 0; 7570 uint32_t _itail_tgt = 0; 7571 RECOMP_REGS_LOCALS 7572 RECOMP_ENTER(0x361548E0u); 7573 7574 L_361548E0: 7575 PUSH32(esp, ebp); /* 0x361548E0: push ebp */ 7576 ebp = esp; /* 0x361548E1: mov ebp, esp */ 7577 PUSH32(esp, esi); /* 0x361548E3: push esi */ 7578 esi = ecx; /* 0x361548E4: mov esi, ecx */ 7579 RECOMP_ICALL(0x36154910u); /* 0x361548E6: call 0x36154910 */ /* not lifted */ 7580 RECOMP_FLAGS_IN(); 7581 /* test MEM8(ebp + 0x8), 1 */ /* 0x361548EB: test byte ptr [ebp + 8], 1 */ 7582 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7583 _cf = 0; 7584 _flag_k = FK_NARROW(FK_TEST, 24); 7585 if (TEST_Z(_flag_a, _flag_b)) goto L_361548FA; /* 0x361548EF: je 0x361548fa */ 7586 L_361548F1: 7587 PUSH32(esp, esi); /* 0x361548F1: push esi */ 7588 RECOMP_ICALL(0x3615FCC4u); /* 0x361548F2: call 0x3615fcc4 */ /* not lifted */ 7589 RECOMP_FLAGS_IN(); 7590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7592 esp = esp + 4; /* 0x361548F7: add esp, 4 */ 7593 _flag_k = FK_ADD; 7594 L_361548FA: 7595 eax = esi; /* 0x361548FA: mov eax, esi */ 7596 esi = POP32_VAL(esp); /* 0x361548FC: pop esi */ 7597 ebp = POP32_VAL(esp); /* 0x361548FD: pop ebp */ 7598 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361548FE: ret 4 */ 7599 RECOMP_REGS_OUT(); 7600 } 7601 7602 void sub_36154910(void) { 7603 int _fpu_cmp = 0; 7604 uint32_t _cf = 0; 7605 int _df = 1; 7606 uint32_t _flag_k = FK_NONE; 7607 uint32_t _flag_a = 0, _flag_b = 0; 7608 uint32_t _itail_tgt = 0; 7609 RECOMP_REGS_LOCALS 7610 RECOMP_ENTER(0x36154910u); 7611 7612 L_36154910: 7613 PUSH32(esp, esi); /* 0x36154910: push esi */ 7614 esi = ecx; /* 0x36154911: mov esi, ecx */ 7615 MEM32(esi) = 0x36178BB4u; /* 0x36154913: mov dword ptr [esi], 0x36178bb4 */ 7616 eax = MEM32(esi + 0x2C); /* 0x36154919: mov eax, dword ptr [esi + 0x2c] */ 7617 /* test eax, eax */ /* 0x3615491C: test eax, eax */ 7618 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7619 _cf = 0; 7620 _flag_k = FK_TEST; 7621 if (TEST_Z(_flag_a, _flag_b)) goto L_3615493C; /* 0x3615491E: je 0x3615493c */ 7622 L_36154920: 7623 ecx = eax + (-0x1); /* 0x36154920: lea ecx, [eax - 1] */ 7624 SET_LO8(eax, MEM8(ecx)); /* 0x36154923: mov al, byte ptr [ecx] */ 7625 /* test LO8(eax), LO8(eax) */ /* 0x36154925: test al, al */ 7626 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7627 _cf = 0; 7628 _flag_k = FK_NARROW(FK_TEST, 24); 7629 if (TEST_Z(_flag_a, _flag_b)) goto L_36154933; /* 0x36154927: je 0x36154933 */ 7630 L_36154929: 7631 /* cmp LO8(eax), 0xFFu */ /* 0x36154929: cmp al, 0xff */ 7632 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 7633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7634 _flag_k = FK_NARROW(FK_CMP, 24); 7635 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154933; /* 0x3615492B: je 0x36154933 */ 7636 L_3615492D: 7637 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7638 SET_LO8(eax, LO8(eax) - 1); /* 0x3615492D: dec al */ 7639 _flag_k = FK_NARROW(FK_DEC, 24); 7640 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3615492F: mov byte ptr [ecx], al */ 7641 goto L_3615493C; /* 0x36154931: jmp 0x3615493c */ 7642 L_36154933: 7643 PUSH32(esp, ecx); /* 0x36154933: push ecx */ 7644 RECOMP_ICALL(0x3615FCC4u); /* 0x36154934: call 0x3615fcc4 */ /* not lifted */ 7645 RECOMP_FLAGS_IN(); 7646 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7648 esp = esp + 4; /* 0x36154939: add esp, 4 */ 7649 _flag_k = FK_ADD; 7650 L_3615493C: 7651 ecx = esi; /* 0x3615493C: mov ecx, esi */ 7652 MEM32(esi + 0x2C) = 0; /* 0x3615493E: mov dword ptr [esi + 0x2c], 0 */ 7653 MEM32(esi + 0x30) = 0; /* 0x36154945: mov dword ptr [esi + 0x30], 0 */ 7654 MEM32(esi + 0x34) = 0; /* 0x3615494C: mov dword ptr [esi + 0x34], 0 */ 7655 RECOMP_ICALL(0x36154D20u); /* 0x36154953: call 0x36154d20 */ /* not lifted */ 7656 RECOMP_FLAGS_IN(); 7657 esi = POP32_VAL(esp); /* 0x36154958: pop esi */ 7658 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154959: ret */ 7659 RECOMP_REGS_OUT(); 7660 } 7661 7662 void sub_36154960(void) { 7663 int _fpu_cmp = 0; 7664 uint32_t _cf = 0; 7665 int _df = 1; 7666 uint32_t _flag_k = FK_NONE; 7667 uint32_t _flag_a = 0, _flag_b = 0; 7668 uint32_t _itail_tgt = 0; 7669 RECOMP_REGS_LOCALS 7670 RECOMP_ENTER(0x36154960u); 7671 7672 L_36154960: 7673 PUSH32(esp, ebp); /* 0x36154960: push ebp */ 7674 ebp = esp; /* 0x36154961: mov ebp, esp */ 7675 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7677 esp = esp - 0x10u; /* 0x36154963: sub esp, 0x10 */ 7678 _flag_k = FK_CMP; 7679 PUSH32(esp, ebx); /* 0x36154966: push ebx */ 7680 PUSH32(esp, esi); /* 0x36154967: push esi */ 7681 PUSH32(esp, edi); /* 0x36154968: push edi */ 7682 edi = MEM32(ebp + 0x8); /* 0x36154969: mov edi, dword ptr [ebp + 8] */ 7683 ebx = ecx; /* 0x3615496C: mov ebx, ecx */ 7684 PUSH32(esp, edi); /* 0x3615496E: push edi */ 7685 RECOMP_ICALL(0x36154D50u); /* 0x3615496F: call 0x36154d50 */ /* not lifted */ 7686 RECOMP_FLAGS_IN(); 7687 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7688 ecx = 0; /* 0x36154974: xor ecx, ecx */ 7689 _cf = 0; 7690 _flag_k = FK_TEST; 7691 /* cmp eax, ecx */ /* 0x36154976: cmp eax, ecx */ 7692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7694 _flag_k = FK_CMP; 7695 if (CMP_NE(_flag_a, _flag_b)) goto L_36154AA0; /* 0x36154978: jne 0x36154aa0 */ 7696 L_3615497E: 7697 esi = MEM32(0x3616FA8C); /* 0x3615497E: mov esi, dword ptr [0x3616fa8c] */ 7698 eax = ebp + (-0x8); /* 0x36154984: lea eax, [ebp - 8] */ 7699 MEM32(ebp + (-0x8)) = ecx; /* 0x36154987: mov dword ptr [ebp - 8], ecx */ 7700 MEM32(ebp + (-0x4)) = ecx; /* 0x3615498A: mov dword ptr [ebp - 4], ecx */ 7701 PUSH32(esp, eax); /* 0x3615498D: push eax */ 7702 ecx = edi; /* 0x3615498E: mov ecx, edi */ 7703 RECOMP_ICALL(esi); /* 0x36154990: call esi */ 7704 RECOMP_FLAGS_IN(); 7705 ecx = MEM32(ebp + (-0x8)); /* 0x36154992: mov ecx, dword ptr [ebp - 8] */ 7706 edx = ebp + (-0x4); /* 0x36154995: lea edx, [ebp - 4] */ 7707 MEM32(ebx + 0x38) = ecx; /* 0x36154998: mov dword ptr [ebx + 0x38], ecx */ 7708 PUSH32(esp, edx); /* 0x3615499B: push edx */ 7709 ecx = edi; /* 0x3615499C: mov ecx, edi */ 7710 RECOMP_ICALL(esi); /* 0x3615499E: call esi */ 7711 RECOMP_FLAGS_IN(); 7712 eax = MEM32(ebp + (-0x4)); /* 0x361549A0: mov eax, dword ptr [ebp - 4] */ 7713 /* test eax, eax */ /* 0x361549A3: test eax, eax */ 7714 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7715 _cf = 0; 7716 _flag_k = FK_TEST; 7717 if (TEST_G(_flag_a, _flag_b)) goto L_361549B5; /* 0x361549A5: jg 0x361549b5 */ 7718 L_361549A7: 7719 edi = POP32_VAL(esp); /* 0x361549A7: pop edi */ 7720 esi = POP32_VAL(esp); /* 0x361549A8: pop esi */ 7721 eax = 1; /* 0x361549A9: mov eax, 1 */ 7722 ebx = POP32_VAL(esp); /* 0x361549AE: pop ebx */ 7723 esp = ebp; /* 0x361549AF: mov esp, ebp */ 7724 ebp = POP32_VAL(esp); /* 0x361549B1: pop ebp */ 7725 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361549B2: ret 4 */ 7726 L_361549B5: 7727 /* cmp eax, 0x2710u */ /* 0x361549B5: cmp eax, 0x2710 */ 7728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2710u); 7729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7730 _flag_k = FK_CMP; 7731 if (CMP_LE(_flag_a, _flag_b)) goto L_361549CA; /* 0x361549BA: jle 0x361549ca */ 7732 L_361549BC: 7733 edi = POP32_VAL(esp); /* 0x361549BC: pop edi */ 7734 esi = POP32_VAL(esp); /* 0x361549BD: pop esi */ 7735 eax = 1; /* 0x361549BE: mov eax, 1 */ 7736 ebx = POP32_VAL(esp); /* 0x361549C3: pop ebx */ 7737 esp = ebp; /* 0x361549C4: mov esp, ebp */ 7738 ebp = POP32_VAL(esp); /* 0x361549C6: pop ebp */ 7739 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361549C7: ret 4 */ 7740 L_361549CA: 7741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7742 eax = eax + 1; /* 0x361549CA: inc eax */ 7743 _flag_k = FK_INC; 7744 PUSH32(esp, eax); /* 0x361549CB: push eax */ 7745 RECOMP_ICALL(0x3615FD6Au); /* 0x361549CC: call 0x3615fd6a */ /* not lifted */ 7746 RECOMP_FLAGS_IN(); 7747 esi = eax; /* 0x361549D1: mov esi, eax */ 7748 eax = MEM32(ebp + (-0x4)); /* 0x361549D3: mov eax, dword ptr [ebp - 4] */ 7749 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7750 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7751 esp = esp + 4; /* 0x361549D6: add esp, 4 */ 7752 _flag_k = FK_ADD; 7753 PUSH32(esp, eax); /* 0x361549D9: push eax */ 7754 PUSH32(esp, esi); /* 0x361549DA: push esi */ 7755 ecx = edi; /* 0x361549DB: mov ecx, edi */ 7756 MEM32(ebp + (-0x10)) = esi; /* 0x361549DD: mov dword ptr [ebp - 0x10], esi */ 7757 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x361549E0: call dword ptr [0x3616fac4] */ 7758 RECOMP_FLAGS_IN(); 7759 ecx = MEM32(ebp + (-0x4)); /* 0x361549E6: mov ecx, dword ptr [ebp - 4] */ 7760 MEM8(esi + ecx) = (uint8_t)(0); /* 0x361549E9: mov byte ptr [esi + ecx], 0 */ 7761 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7762 ecx = ecx | 0xFFFFFFFFu; /* 0x361549ED: or ecx, 0xffffffff */ 7763 _cf = 0; 7764 _flag_k = FK_TEST; 7765 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7766 eax = 0; /* 0x361549F0: xor eax, eax */ 7767 _cf = 0; 7768 _flag_k = FK_TEST; 7769 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x28u); 7770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7771 ebx = ebx + 0x28u; /* 0x361549F2: add ebx, 0x28 */ 7772 _flag_k = FK_ADD; 7773 edi = esi; /* 0x361549F5: mov edi, esi */ 7774 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; } /* 0x361549F7: repne scasb al, byte ptr es:[edi] */ 7775 ecx = ~ecx; /* 0x361549F9: not ecx */ 7776 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7777 ecx = ecx - 1; /* 0x361549FB: dec ecx */ 7778 _flag_k = FK_DEC; 7779 edi = ecx; /* 0x361549FC: mov edi, ecx */ 7780 /* cmp edi, 0xFFFFFFFDu */ /* 0x361549FE: cmp edi, -3 */ 7781 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu); 7782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7783 _flag_k = FK_CMP; 7784 MEM32(ebp + (-0xC)) = edi; /* 0x36154A01: mov dword ptr [ebp - 0xc], edi */ 7785 if (CMP_BE(_flag_a, _flag_b)) goto L_36154A0C; /* 0x36154A04: jbe 0x36154a0c */ 7786 L_36154A06: 7787 RECOMP_ICALL(MEM32(0x3616F104)); /* 0x36154A06: call dword ptr [0x3616f104] */ 7788 RECOMP_FLAGS_IN(); 7789 L_36154A0C: 7790 ecx = MEM32(ebx + 0x4); /* 0x36154A0C: mov ecx, dword ptr [ebx + 4] */ 7791 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7792 edx = 0; /* 0x36154A0F: xor edx, edx */ 7793 _cf = 0; 7794 _flag_k = FK_TEST; 7795 /* cmp ecx, edx */ /* 0x36154A11: cmp ecx, edx */ 7796 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7798 _flag_k = FK_CMP; 7799 MEM32(ebx + 0x8) = edx; /* 0x36154A13: mov dword ptr [ebx + 8], edx */ 7800 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154A37; /* 0x36154A16: je 0x36154a37 */ 7801 L_36154A18: 7802 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36154A18: mov al, byte ptr [ecx - 1] */ 7803 /* test LO8(eax), LO8(eax) */ /* 0x36154A1B: test al, al */ 7804 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7805 _cf = 0; 7806 _flag_k = FK_NARROW(FK_TEST, 24); 7807 if (TEST_Z(_flag_a, _flag_b)) goto L_36154A37; /* 0x36154A1D: je 0x36154a37 */ 7808 L_36154A1F: 7809 /* cmp LO8(eax), 0xFFu */ /* 0x36154A1F: cmp al, 0xff */ 7810 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 7811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7812 _flag_k = FK_NARROW(FK_CMP, 24); 7813 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154A37; /* 0x36154A21: je 0x36154a37 */ 7814 L_36154A23: 7815 /* cmp edi, edx */ /* 0x36154A23: cmp edi, edx */ 7816 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 7817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7818 _flag_k = FK_CMP; 7819 if (CMP_NE(_flag_a, _flag_b)) goto L_36154A5D; /* 0x36154A25: jne 0x36154a5d */ 7820 L_36154A27: 7821 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7822 SET_LO8(eax, LO8(eax) - 1); /* 0x36154A27: dec al */ 7823 _flag_k = FK_NARROW(FK_DEC, 24); 7824 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x36154A29: mov byte ptr [ecx - 1], al */ 7825 MEM32(ebx + 0x4) = edx; /* 0x36154A2C: mov dword ptr [ebx + 4], edx */ 7826 MEM32(ebx + 0x8) = edx; /* 0x36154A2F: mov dword ptr [ebx + 8], edx */ 7827 MEM32(ebx + 0xC) = edx; /* 0x36154A32: mov dword ptr [ebx + 0xc], edx */ 7828 goto L_36154A89; /* 0x36154A35: jmp 0x36154a89 */ 7829 L_36154A37: 7830 /* cmp edi, edx */ /* 0x36154A37: cmp edi, edx */ 7831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 7832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7833 _flag_k = FK_CMP; 7834 if (CMP_NE(_flag_a, _flag_b)) goto L_36154A47; /* 0x36154A39: jne 0x36154a47 */ 7835 L_36154A3B: 7836 PUSH32(esp, 1); /* 0x36154A3B: push 1 */ 7837 ecx = ebx; /* 0x36154A3D: mov ecx, ebx */ 7838 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36154A3F: call dword ptr [0x3616f100] */ 7839 RECOMP_FLAGS_IN(); 7840 goto L_36154A89; /* 0x36154A45: jmp 0x36154a89 */ 7841 L_36154A47: 7842 eax = MEM32(ebx + 0xC); /* 0x36154A47: mov eax, dword ptr [ebx + 0xc] */ 7843 /* cmp eax, 0x1Fu */ /* 0x36154A4A: cmp eax, 0x1f */ 7844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 7845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7846 _flag_k = FK_CMP; 7847 if (CMP_A(_flag_a, _flag_b)) goto L_36154A53; /* 0x36154A4D: ja 0x36154a53 */ 7848 L_36154A4F: 7849 /* cmp eax, edi */ /* 0x36154A4F: cmp eax, edi */ 7850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7852 _flag_k = FK_CMP; 7853 if (CMP_AE(_flag_a, _flag_b)) goto L_36154A66; /* 0x36154A51: jae 0x36154a66 */ 7854 L_36154A53: 7855 PUSH32(esp, 1); /* 0x36154A53: push 1 */ 7856 ecx = ebx; /* 0x36154A55: mov ecx, ebx */ 7857 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36154A57: call dword ptr [0x3616f100] */ 7858 RECOMP_FLAGS_IN(); 7859 L_36154A5D: 7860 PUSH32(esp, edi); /* 0x36154A5D: push edi */ 7861 ecx = ebx; /* 0x36154A5E: mov ecx, ebx */ 7862 RECOMP_ICALL(MEM32(0x3616F048)); /* 0x36154A60: call dword ptr [0x3616f048] */ 7863 RECOMP_FLAGS_IN(); 7864 L_36154A66: 7865 eax = MEM32(ebp + (-0xC)); /* 0x36154A66: mov eax, dword ptr [ebp - 0xc] */ 7866 ecx = edi; /* 0x36154A69: mov ecx, edi */ 7867 edi = MEM32(ebx + 0x4); /* 0x36154A6B: mov edi, dword ptr [ebx + 4] */ 7868 edx = ecx; /* 0x36154A6E: mov edx, ecx */ 7869 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36154A70: shr ecx, 2 */ 7870 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7871 ecx = ecx >> 2u; /* 0x36154A70: shr ecx, 2 */ 7872 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36154A73: 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; } 7873 ecx = edx; /* 0x36154A75: mov ecx, edx */ 7874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7875 ecx = ecx & 3; /* 0x36154A77: and ecx, 3 */ 7876 _cf = 0; 7877 _flag_k = FK_TEST; 7878 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36154A7A: 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; } 7879 ecx = MEM32(ebx + 0x4); /* 0x36154A7C: mov ecx, dword ptr [ebx + 4] */ 7880 esi = MEM32(ebp + (-0x10)); /* 0x36154A7F: mov esi, dword ptr [ebp - 0x10] */ 7881 MEM32(ebx + 0x8) = eax; /* 0x36154A82: mov dword ptr [ebx + 8], eax */ 7882 MEM8(ecx + eax) = (uint8_t)(0); /* 0x36154A85: mov byte ptr [ecx + eax], 0 */ 7883 L_36154A89: 7884 PUSH32(esp, esi); /* 0x36154A89: push esi */ 7885 RECOMP_ICALL(0x3615FCC4u); /* 0x36154A8A: call 0x3615fcc4 */ /* not lifted */ 7886 RECOMP_FLAGS_IN(); 7887 ecx = MEM32(ebp + 0x8); /* 0x36154A8F: mov ecx, dword ptr [ebp + 8] */ 7888 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7890 esp = esp + 4; /* 0x36154A92: add esp, 4 */ 7891 _flag_k = FK_ADD; 7892 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36154A95: call dword ptr [0x3616fadc] */ 7893 RECOMP_FLAGS_IN(); 7894 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 7895 _cf = (eax) != 0; 7896 eax = (uint32_t)(-(int32_t)eax); /* 0x36154A9B: neg eax */ 7897 _flag_k = FK_CMP; 7898 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36154A9D: sbb eax, eax */ 7899 eax = _sc ? 0xFFFFFFFFu : 0; 7900 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7901 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7903 eax = eax + 1; /* 0x36154A9F: inc eax */ 7904 _flag_k = FK_INC; 7905 L_36154AA0: 7906 edi = POP32_VAL(esp); /* 0x36154AA0: pop edi */ 7907 esi = POP32_VAL(esp); /* 0x36154AA1: pop esi */ 7908 ebx = POP32_VAL(esp); /* 0x36154AA2: pop ebx */ 7909 esp = ebp; /* 0x36154AA3: mov esp, ebp */ 7910 ebp = POP32_VAL(esp); /* 0x36154AA5: pop ebp */ 7911 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36154AA6: ret 4 */ 7912 RECOMP_REGS_OUT(); 7913 } 7914 7915 void sub_36154AB0(void) { 7916 int _fpu_cmp = 0; 7917 uint32_t _cf = 0; 7918 int _df = 1; 7919 uint32_t _flag_k = FK_NONE; 7920 uint32_t _flag_a = 0, _flag_b = 0; 7921 uint32_t _itail_tgt = 0; 7922 RECOMP_REGS_LOCALS 7923 RECOMP_ENTER(0x36154AB0u); 7924 7925 L_36154AB0: 7926 PUSH32(esp, ebp); /* 0x36154AB0: push ebp */ 7927 ebp = esp; /* 0x36154AB1: mov ebp, esp */ 7928 PUSH32(esp, ebx); /* 0x36154AB3: push ebx */ 7929 ebx = MEM32(ebp + 0x8); /* 0x36154AB4: mov ebx, dword ptr [ebp + 8] */ 7930 PUSH32(esp, esi); /* 0x36154AB7: push esi */ 7931 PUSH32(esp, edi); /* 0x36154AB8: push edi */ 7932 esi = ecx; /* 0x36154AB9: mov esi, ecx */ 7933 PUSH32(esp, ebx); /* 0x36154ABB: push ebx */ 7934 RECOMP_ICALL(0x36154DB0u); /* 0x36154ABC: call 0x36154db0 */ /* not lifted */ 7935 RECOMP_FLAGS_IN(); 7936 eax = MEM32(esi + 0x38); /* 0x36154AC1: mov eax, dword ptr [esi + 0x38] */ 7937 PUSH32(esp, eax); /* 0x36154AC4: push eax */ 7938 ecx = ebx; /* 0x36154AC5: mov ecx, ebx */ 7939 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36154AC7: call dword ptr [0x3616faec] */ 7940 RECOMP_FLAGS_IN(); 7941 edi = MEM32(esi + 0x30); /* 0x36154ACD: mov edi, dword ptr [esi + 0x30] */ 7942 /* test edi, edi */ /* 0x36154AD0: test edi, edi */ 7943 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7944 _cf = 0; 7945 _flag_k = FK_TEST; 7946 if (TEST_LE(_flag_a, _flag_b)) goto L_36154AFC; /* 0x36154AD2: jle 0x36154afc */ 7947 L_36154AD4: 7948 /* cmp edi, 0x2710u */ /* 0x36154AD4: cmp edi, 0x2710 */ 7949 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2710u); 7950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7951 _flag_k = FK_CMP; 7952 if (CMP_G(_flag_a, _flag_b)) goto L_36154AFC; /* 0x36154ADA: jg 0x36154afc */ 7953 L_36154ADC: 7954 PUSH32(esp, edi); /* 0x36154ADC: push edi */ 7955 ecx = ebx; /* 0x36154ADD: mov ecx, ebx */ 7956 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36154ADF: call dword ptr [0x3616faec] */ 7957 RECOMP_FLAGS_IN(); 7958 esi = MEM32(esi + 0x2C); /* 0x36154AE5: mov esi, dword ptr [esi + 0x2c] */ 7959 /* test esi, esi */ /* 0x36154AE8: test esi, esi */ 7960 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7961 _cf = 0; 7962 _flag_k = FK_TEST; 7963 if (TEST_NZ(_flag_a, _flag_b)) goto L_36154AF2; /* 0x36154AEA: jne 0x36154af2 */ 7964 L_36154AEC: 7965 esi = MEM32(0x3616F10C); /* 0x36154AEC: mov esi, dword ptr [0x3616f10c] */ 7966 L_36154AF2: 7967 PUSH32(esp, edi); /* 0x36154AF2: push edi */ 7968 PUSH32(esp, esi); /* 0x36154AF3: push esi */ 7969 ecx = ebx; /* 0x36154AF4: mov ecx, ebx */ 7970 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x36154AF6: call dword ptr [0x3616fab0] */ 7971 RECOMP_FLAGS_IN(); 7972 L_36154AFC: 7973 edi = POP32_VAL(esp); /* 0x36154AFC: pop edi */ 7974 esi = POP32_VAL(esp); /* 0x36154AFD: pop esi */ 7975 ebx = POP32_VAL(esp); /* 0x36154AFE: pop ebx */ 7976 ebp = POP32_VAL(esp); /* 0x36154AFF: pop ebp */ 7977 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36154B00: ret 4 */ 7978 RECOMP_REGS_OUT(); 7979 } 7980 7981 void sub_36154B10(void) { 7982 int _fpu_cmp = 0; 7983 uint32_t _cf = 0; 7984 int _df = 1; 7985 uint32_t _flag_k = FK_NONE; 7986 uint32_t _flag_a = 0, _flag_b = 0; 7987 uint32_t _itail_tgt = 0; 7988 RECOMP_REGS_LOCALS 7989 RECOMP_ENTER(0x36154B10u); 7990 7991 L_36154B10: 7992 PUSH32(esp, ebp); /* 0x36154B10: push ebp */ 7993 ebp = esp; /* 0x36154B11: mov ebp, esp */ 7994 PUSH32(esp, 0xFFFFFFFFu); /* 0x36154B13: push -1 */ 7995 PUSH32(esp, 0x3616DAE8u); /* 0x36154B15: push 0x3616dae8 */ 7996 eax = MEM32(FS_BASE + (0)); /* 0x36154B1A: mov eax, dword ptr fs:[0] */ 7997 PUSH32(esp, eax); /* 0x36154B20: push eax */ 7998 MEM32(FS_BASE + (0)) = esp; /* 0x36154B21: mov dword ptr fs:[0], esp */ 7999 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 8000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8001 esp = esp - 0x48u; /* 0x36154B28: sub esp, 0x48 */ 8002 _flag_k = FK_CMP; 8003 PUSH32(esp, ebx); /* 0x36154B2B: push ebx */ 8004 PUSH32(esp, esi); /* 0x36154B2C: push esi */ 8005 PUSH32(esp, edi); /* 0x36154B2D: push edi */ 8006 esi = ecx; /* 0x36154B2E: mov esi, ecx */ 8007 PUSH32(esp, 0xFFFFFFFFu); /* 0x36154B30: push -1 */ 8008 ecx = ebp + (-0x54); /* 0x36154B32: lea ecx, [ebp - 0x54] */ 8009 RECOMP_ICALL(MEM32(0x3616F358)); /* 0x36154B35: call dword ptr [0x3616f358] */ 8010 RECOMP_FLAGS_IN(); 8011 eax = MEM32(esi + 0x38); /* 0x36154B3B: mov eax, dword ptr [esi + 0x38] */ 8012 PUSH32(esp, eax); /* 0x36154B3E: push eax */ 8013 PUSH32(esp, 0x362E866Cu); /* 0x36154B3F: push 0x362e866c */ 8014 ecx = ebp + (-0x54); /* 0x36154B44: lea ecx, [ebp - 0x54] */ 8015 MEM32(ebp + (-0x4)) = 0; /* 0x36154B47: mov dword ptr [ebp - 4], 0 */ 8016 RECOMP_ICALL(MEM32(0x3616F354)); /* 0x36154B4E: call dword ptr [0x3616f354] */ 8017 RECOMP_FLAGS_IN(); 8018 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 8019 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8020 esi = esi + 0x28u; /* 0x36154B54: add esi, 0x28 */ 8021 _flag_k = FK_ADD; 8022 PUSH32(esp, esi); /* 0x36154B57: push esi */ 8023 PUSH32(esp, 0x362E8664u); /* 0x36154B58: push 0x362e8664 */ 8024 ecx = ebp + (-0x54); /* 0x36154B5D: lea ecx, [ebp - 0x54] */ 8025 RECOMP_ICALL(MEM32(0x3616F350)); /* 0x36154B60: call dword ptr [0x3616f350] */ 8026 RECOMP_FLAGS_IN(); 8027 ecx = ebp + (-0x54); /* 0x36154B66: lea ecx, [ebp - 0x54] */ 8028 RECOMP_ICALL(MEM32(0x3616F348)); /* 0x36154B69: call dword ptr [0x3616f348] */ 8029 RECOMP_FLAGS_IN(); 8030 esi = eax; /* 0x36154B6F: mov esi, eax */ 8031 PUSH32(esp, esi); /* 0x36154B71: push esi */ 8032 RECOMP_ICALL(0x3615FD6Au); /* 0x36154B72: call 0x3615fd6a */ /* not lifted */ 8033 RECOMP_FLAGS_IN(); 8034 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8035 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8036 esp = esp + 4; /* 0x36154B77: add esp, 4 */ 8037 _flag_k = FK_ADD; 8038 edi = eax; /* 0x36154B7A: mov edi, eax */ 8039 PUSH32(esp, edi); /* 0x36154B7C: push edi */ 8040 ecx = ebp + (-0x54); /* 0x36154B7D: lea ecx, [ebp - 0x54] */ 8041 RECOMP_ICALL(MEM32(0x3616F344)); /* 0x36154B80: call dword ptr [0x3616f344] */ 8042 RECOMP_FLAGS_IN(); 8043 ebx = MEM32(0x3616F304); /* 0x36154B86: mov ebx, dword ptr [0x3616f304] */ 8044 PUSH32(esp, esi); /* 0x36154B8C: push esi */ 8045 PUSH32(esp, edi); /* 0x36154B8D: push edi */ 8046 PUSH32(esp, 0xD1u); /* 0x36154B8E: push 0xd1 */ 8047 PUSH32(esp, 0x25u); /* 0x36154B93: push 0x25 */ 8048 RECOMP_ICALL(ebx); /* 0x36154B95: call ebx */ 8049 RECOMP_FLAGS_IN(); 8050 ecx = eax; /* 0x36154B97: mov ecx, eax */ 8051 RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36154B99: call dword ptr [0x3616f310] */ 8052 RECOMP_FLAGS_IN(); 8053 PUSH32(esp, esi); /* 0x36154B9F: push esi */ 8054 RECOMP_ICALL(ebx); /* 0x36154BA0: call ebx */ 8055 RECOMP_FLAGS_IN(); 8056 ecx = eax; /* 0x36154BA2: mov ecx, eax */ 8057 RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36154BA4: call dword ptr [0x3616f2fc] */ 8058 RECOMP_FLAGS_IN(); 8059 PUSH32(esp, edi); /* 0x36154BAA: push edi */ 8060 RECOMP_ICALL(0x3615FCC4u); /* 0x36154BAB: call 0x3615fcc4 */ /* not lifted */ 8061 RECOMP_FLAGS_IN(); 8062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8064 esp = esp + 4; /* 0x36154BB0: add esp, 4 */ 8065 _flag_k = FK_ADD; 8066 MEM32(ebp + (-0x54)) = 0x36178B8Cu; /* 0x36154BB3: mov dword ptr [ebp - 0x54], 0x36178b8c */ 8067 ecx = ebp + (-0x54); /* 0x36154BBA: lea ecx, [ebp - 0x54] */ 8068 MEM32(ebp + (-0x4)) = 2; /* 0x36154BBD: mov dword ptr [ebp - 4], 2 */ 8069 RECOMP_ICALL(MEM32(0x3616F34C)); /* 0x36154BC4: call dword ptr [0x3616f34c] */ 8070 RECOMP_FLAGS_IN(); 8071 ecx = MEM32(ebp + (-0x20)); /* 0x36154BCA: mov ecx, dword ptr [ebp - 0x20] */ 8072 PUSH32(esp, ecx); /* 0x36154BCD: push ecx */ 8073 RECOMP_ICALL(0x3615FCC4u); /* 0x36154BCE: call 0x3615fcc4 */ /* not lifted */ 8074 RECOMP_FLAGS_IN(); 8075 eax = MEM32(ebp + (-0x4C)); /* 0x36154BD3: mov eax, dword ptr [ebp - 0x4c] */ 8076 edx = MEM32(ebp + (-0x40)); /* 0x36154BD6: mov edx, dword ptr [ebp - 0x40] */ 8077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8078 ebx = 0; /* 0x36154BD9: xor ebx, ebx */ 8079 _cf = 0; 8080 _flag_k = FK_TEST; 8081 MEM32(ebp + (-0x20)) = ebx; /* 0x36154BDB: mov dword ptr [ebp - 0x20], ebx */ 8082 MEM32(ebp + (-0x1C)) = ebx; /* 0x36154BDE: mov dword ptr [ebp - 0x1c], ebx */ 8083 MEM32(ebp + (-0x18)) = ebx; /* 0x36154BE1: mov dword ptr [ebp - 0x18], ebx */ 8084 ecx = MEM32(eax); /* 0x36154BE4: mov ecx, dword ptr [eax] */ 8085 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8086 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8087 esp = esp + 4; /* 0x36154BE6: add esp, 4 */ 8088 _flag_k = FK_ADD; 8089 /* cmp edx, ebx */ /* 0x36154BE9: cmp edx, ebx */ 8090 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 8091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8092 _flag_k = FK_CMP; 8093 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36154BEB: mov dword ptr [ebp - 4], 0xffffffff */ 8094 esi = eax; /* 0x36154BF2: mov esi, eax */ 8095 MEM32(ebp + (-0x10)) = ecx; /* 0x36154BF4: mov dword ptr [ebp - 0x10], ecx */ 8096 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154C24; /* 0x36154BF7: je 0x36154c24 */ 8097 L_36154BF9: 8098 edx = ecx; /* 0x36154BF9: mov edx, ecx */ 8099 /* cmp ecx, edx */ /* 0x36154BFB: cmp ecx, edx */ 8100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 8101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8102 _flag_k = FK_CMP; 8103 if (CMP_NE(_flag_a, _flag_b)) goto L_36154C24; /* 0x36154BFD: jne 0x36154c24 */ 8104 L_36154BFF: 8105 edx = MEM32(eax + 0x4); /* 0x36154BFF: mov edx, dword ptr [eax + 4] */ 8106 PUSH32(esp, edx); /* 0x36154C02: push edx */ 8107 ecx = ebp + (-0x50); /* 0x36154C03: lea ecx, [ebp - 0x50] */ 8108 RECOMP_ICALL(0x361547A0u); /* 0x36154C06: call 0x361547a0 */ /* not lifted */ 8109 RECOMP_FLAGS_IN(); 8110 eax = MEM32(ebp + (-0x4C)); /* 0x36154C0B: mov eax, dword ptr [ebp - 0x4c] */ 8111 ecx = MEM32(ebp + (-0x48)); /* 0x36154C0E: mov ecx, dword ptr [ebp - 0x48] */ 8112 MEM32(eax + 0x4) = ecx; /* 0x36154C11: mov dword ptr [eax + 4], ecx */ 8113 eax = MEM32(ebp + (-0x4C)); /* 0x36154C14: mov eax, dword ptr [ebp - 0x4c] */ 8114 MEM32(ebp + (-0x40)) = ebx; /* 0x36154C17: mov dword ptr [ebp - 0x40], ebx */ 8115 MEM32(eax) = eax; /* 0x36154C1A: mov dword ptr [eax], eax */ 8116 eax = MEM32(ebp + (-0x4C)); /* 0x36154C1C: mov eax, dword ptr [ebp - 0x4c] */ 8117 MEM32(eax + 0x8) = eax; /* 0x36154C1F: mov dword ptr [eax + 8], eax */ 8118 goto L_36154C46; /* 0x36154C22: jmp 0x36154c46 */ 8119 L_36154C24: 8120 /* cmp ecx, eax */ /* 0x36154C24: cmp ecx, eax */ 8121 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8123 _flag_k = FK_CMP; 8124 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154C49; /* 0x36154C26: je 0x36154c49 */ 8125 L_36154C28: 8126 edi = ecx; /* 0x36154C28: mov edi, ecx */ 8127 ecx = ebp + (-0x10); /* 0x36154C2A: lea ecx, [ebp - 0x10] */ 8128 RECOMP_ICALL(0x361547F0u); /* 0x36154C2D: call 0x361547f0 */ /* not lifted */ 8129 RECOMP_FLAGS_IN(); 8130 PUSH32(esp, edi); /* 0x36154C32: push edi */ 8131 edx = ebp + (-0x14); /* 0x36154C33: lea edx, [ebp - 0x14] */ 8132 PUSH32(esp, edx); /* 0x36154C36: push edx */ 8133 ecx = ebp + (-0x50); /* 0x36154C37: lea ecx, [ebp - 0x50] */ 8134 RECOMP_ICALL(0x361543D0u); /* 0x36154C3A: call 0x361543d0 */ /* not lifted */ 8135 RECOMP_FLAGS_IN(); 8136 ecx = MEM32(ebp + (-0x10)); /* 0x36154C3F: mov ecx, dword ptr [ebp - 0x10] */ 8137 /* cmp ecx, esi */ /* 0x36154C42: cmp ecx, esi */ 8138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 8139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8140 _flag_k = FK_CMP; 8141 RECOMP_BACKEDGE(); 8142 if (CMP_NE(_flag_a, _flag_b)) goto L_36154C28; /* 0x36154C44: jne 0x36154c28 */ 8143 L_36154C46: 8144 eax = MEM32(ebp + (-0x4C)); /* 0x36154C46: mov eax, dword ptr [ebp - 0x4c] */ 8145 L_36154C49: 8146 PUSH32(esp, eax); /* 0x36154C49: push eax */ 8147 RECOMP_ICALL(0x3615FCC4u); /* 0x36154C4A: call 0x3615fcc4 */ /* not lifted */ 8148 RECOMP_FLAGS_IN(); 8149 eax = MEM32(ebp + (-0x48)); /* 0x36154C4F: mov eax, dword ptr [ebp - 0x48] */ 8150 PUSH32(esp, eax); /* 0x36154C52: push eax */ 8151 MEM32(ebp + (-0x4C)) = ebx; /* 0x36154C53: mov dword ptr [ebp - 0x4c], ebx */ 8152 MEM32(ebp + (-0x40)) = ebx; /* 0x36154C56: mov dword ptr [ebp - 0x40], ebx */ 8153 RECOMP_ICALL(0x3615FCC4u); /* 0x36154C59: call 0x3615fcc4 */ /* not lifted */ 8154 RECOMP_FLAGS_IN(); 8155 ecx = MEM32(ebp + (-0xC)); /* 0x36154C5E: mov ecx, dword ptr [ebp - 0xc] */ 8156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8158 esp = esp + 8; /* 0x36154C61: add esp, 8 */ 8159 _flag_k = FK_ADD; 8160 edi = POP32_VAL(esp); /* 0x36154C64: pop edi */ 8161 esi = POP32_VAL(esp); /* 0x36154C65: pop esi */ 8162 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8163 eax = 0; /* 0x36154C66: xor eax, eax */ 8164 _cf = 0; 8165 _flag_k = FK_TEST; 8166 ebx = POP32_VAL(esp); /* 0x36154C68: pop ebx */ 8167 MEM32(FS_BASE + (0)) = ecx; /* 0x36154C69: mov dword ptr fs:[0], ecx */ 8168 esp = ebp; /* 0x36154C70: mov esp, ebp */ 8169 ebp = POP32_VAL(esp); /* 0x36154C72: pop ebp */ 8170 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154C73: ret */ 8171 RECOMP_REGS_OUT(); 8172 } 8173 8174 void sub_36154C80(void) { 8175 int _fpu_cmp = 0; 8176 uint32_t _cf = 0; 8177 int _df = 1; 8178 uint32_t _flag_k = FK_NONE; 8179 uint32_t _flag_a = 0, _flag_b = 0; 8180 uint32_t _itail_tgt = 0; 8181 RECOMP_REGS_LOCALS 8182 RECOMP_ENTER(0x36154C80u); 8183 8184 L_36154C80: 8185 PUSH32(esp, ebp); /* 0x36154C80: push ebp */ 8186 ebp = esp; /* 0x36154C81: mov ebp, esp */ 8187 PUSH32(esp, 0xFFFFFFFFu); /* 0x36154C83: push -1 */ 8188 PUSH32(esp, 0x3616DB09u); /* 0x36154C85: push 0x3616db09 */ 8189 eax = MEM32(FS_BASE + (0)); /* 0x36154C8A: mov eax, dword ptr fs:[0] */ 8190 PUSH32(esp, eax); /* 0x36154C90: push eax */ 8191 MEM32(FS_BASE + (0)) = esp; /* 0x36154C91: mov dword ptr fs:[0], esp */ 8192 PUSH32(esp, ecx); /* 0x36154C98: push ecx */ 8193 eax = MEM32(ebp + 0x10); /* 0x36154C99: mov eax, dword ptr [ebp + 0x10] */ 8194 PUSH32(esp, esi); /* 0x36154C9C: push esi */ 8195 esi = ecx; /* 0x36154C9D: mov esi, ecx */ 8196 ecx = MEM32(ebp + 0x8); /* 0x36154C9F: mov ecx, dword ptr [ebp + 8] */ 8197 PUSH32(esp, eax); /* 0x36154CA2: push eax */ 8198 PUSH32(esp, ecx); /* 0x36154CA3: push ecx */ 8199 ecx = esi; /* 0x36154CA4: mov ecx, esi */ 8200 MEM32(ebp + (-0x10)) = esi; /* 0x36154CA6: mov dword ptr [ebp - 0x10], esi */ 8201 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x36154CA9: call dword ptr [0x3616fc0c] */ 8202 RECOMP_FLAGS_IN(); 8203 ecx = MEM32(ebp + 0xC); /* 0x36154CAF: mov ecx, dword ptr [ebp + 0xc] */ 8204 eax = esi + 0x20; /* 0x36154CB2: lea eax, [esi + 0x20] */ 8205 /* cmp eax, ecx */ /* 0x36154CB5: cmp eax, ecx */ 8206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 8207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8208 _flag_k = FK_CMP; 8209 MEM32(ebp + (-0x4)) = 0; /* 0x36154CB7: mov dword ptr [ebp - 4], 0 */ 8210 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154CCA; /* 0x36154CBE: je 0x36154cca */ 8211 L_36154CC0: 8212 edx = MEM32(ecx); /* 0x36154CC0: mov edx, dword ptr [ecx] */ 8213 MEM32(eax) = edx; /* 0x36154CC2: mov dword ptr [eax], edx */ 8214 ecx = MEM32(ecx + 0x4); /* 0x36154CC4: mov ecx, dword ptr [ecx + 4] */ 8215 MEM32(eax + 0x4) = ecx; /* 0x36154CC7: mov dword ptr [eax + 4], ecx */ 8216 L_36154CCA: 8217 ecx = esi; /* 0x36154CCA: mov ecx, esi */ 8218 MEM32(esi) = 0x36178BD8u; /* 0x36154CCC: mov dword ptr [esi], 0x36178bd8 */ 8219 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36154CD2: call dword ptr [0x3616fc20] */ 8220 RECOMP_FLAGS_IN(); 8221 ecx = MEM32(ebp + (-0xC)); /* 0x36154CD8: mov ecx, dword ptr [ebp - 0xc] */ 8222 eax = esi; /* 0x36154CDB: mov eax, esi */ 8223 esi = POP32_VAL(esp); /* 0x36154CDD: pop esi */ 8224 MEM32(FS_BASE + (0)) = ecx; /* 0x36154CDE: mov dword ptr fs:[0], ecx */ 8225 esp = ebp; /* 0x36154CE5: mov esp, ebp */ 8226 ebp = POP32_VAL(esp); /* 0x36154CE7: pop ebp */ 8227 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36154CE8: ret 0xc */ 8228 RECOMP_REGS_OUT(); 8229 } 8230 8231 void sub_36154CF0(void) { 8232 int _fpu_cmp = 0; 8233 uint32_t _cf = 0; 8234 int _df = 1; 8235 uint32_t _flag_k = FK_NONE; 8236 uint32_t _flag_a = 0, _flag_b = 0; 8237 uint32_t _itail_tgt = 0; 8238 RECOMP_REGS_LOCALS 8239 RECOMP_ENTER(0x36154CF0u); 8240 8241 L_36154CF0: 8242 PUSH32(esp, ebp); /* 0x36154CF0: push ebp */ 8243 ebp = esp; /* 0x36154CF1: mov ebp, esp */ 8244 PUSH32(esp, esi); /* 0x36154CF3: push esi */ 8245 esi = ecx; /* 0x36154CF4: mov esi, ecx */ 8246 RECOMP_ICALL(0x36154D20u); /* 0x36154CF6: call 0x36154d20 */ /* not lifted */ 8247 RECOMP_FLAGS_IN(); 8248 /* test MEM8(ebp + 0x8), 1 */ /* 0x36154CFB: test byte ptr [ebp + 8], 1 */ 8249 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8250 _cf = 0; 8251 _flag_k = FK_NARROW(FK_TEST, 24); 8252 if (TEST_Z(_flag_a, _flag_b)) goto L_36154D0A; /* 0x36154CFF: je 0x36154d0a */ 8253 L_36154D01: 8254 PUSH32(esp, esi); /* 0x36154D01: push esi */ 8255 RECOMP_ICALL(0x3615FCC4u); /* 0x36154D02: call 0x3615fcc4 */ /* not lifted */ 8256 RECOMP_FLAGS_IN(); 8257 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8259 esp = esp + 4; /* 0x36154D07: add esp, 4 */ 8260 _flag_k = FK_ADD; 8261 L_36154D0A: 8262 eax = esi; /* 0x36154D0A: mov eax, esi */ 8263 esi = POP32_VAL(esp); /* 0x36154D0C: pop esi */ 8264 ebp = POP32_VAL(esp); /* 0x36154D0D: pop ebp */ 8265 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36154D0E: ret 4 */ 8266 RECOMP_REGS_OUT(); 8267 } 8268 8269 void sub_36154D20(void) { 8270 int _fpu_cmp = 0; 8271 uint32_t _cf = 0; 8272 int _df = 1; 8273 uint32_t _flag_k = FK_NONE; 8274 uint32_t _flag_a = 0, _flag_b = 0; 8275 uint32_t _itail_tgt = 0; 8276 RECOMP_REGS_LOCALS 8277 RECOMP_ENTER(0x36154D20u); 8278 8279 L_36154D20: 8280 MEM32(ecx) = 0x36178BD8u; /* 0x36154D20: mov dword ptr [ecx], 0x36178bd8 */ 8281 L_36154D26: 8282 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 8283 { RECOMP_REGS_OUT(); return; } /* end of function */ 8284 _ljump: 8285 switch (_itail_tgt) { 8286 case 0x36154D20u: goto L_36154D20; 8287 case 0x36154D26u: goto L_36154D26; 8288 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8289 } 8290 RECOMP_REGS_OUT(); 8291 } 8292 8293 void sub_36154D30(void) { 8294 int _fpu_cmp = 0; 8295 uint32_t _cf = 0; 8296 int _df = 1; 8297 uint32_t _flag_k = FK_NONE; 8298 uint32_t _flag_a = 0, _flag_b = 0; 8299 uint32_t _itail_tgt = 0; 8300 RECOMP_REGS_LOCALS 8301 RECOMP_ENTER(0x36154D30u); 8302 8303 L_36154D30: 8304 PUSH32(esp, esi); /* 0x36154D30: push esi */ 8305 esi = ecx; /* 0x36154D31: mov esi, ecx */ 8306 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36154D33: call dword ptr [0x3616ffd0] */ 8307 RECOMP_FLAGS_IN(); 8308 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8309 eax = 0; /* 0x36154D39: xor eax, eax */ 8310 _cf = 0; 8311 _flag_k = FK_TEST; 8312 MEM32(esi + 0x20) = eax; /* 0x36154D3B: mov dword ptr [esi + 0x20], eax */ 8313 MEM32(esi + 0x24) = eax; /* 0x36154D3E: mov dword ptr [esi + 0x24], eax */ 8314 MEM32(esi) = 0x36178BD8u; /* 0x36154D41: mov dword ptr [esi], 0x36178bd8 */ 8315 eax = esi; /* 0x36154D47: mov eax, esi */ 8316 esi = POP32_VAL(esp); /* 0x36154D49: pop esi */ 8317 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36154D4A: ret */ 8318 RECOMP_REGS_OUT(); 8319 } 8320 8321 void sub_36154D50(void) { 8322 int _fpu_cmp = 0; 8323 uint32_t _cf = 0; 8324 int _df = 1; 8325 uint32_t _flag_k = FK_NONE; 8326 uint32_t _flag_a = 0, _flag_b = 0; 8327 uint32_t _itail_tgt = 0; 8328 RECOMP_REGS_LOCALS 8329 RECOMP_ENTER(0x36154D50u); 8330 8331 L_36154D50: 8332 PUSH32(esp, ebp); /* 0x36154D50: push ebp */ 8333 ebp = esp; /* 0x36154D51: mov ebp, esp */ 8334 PUSH32(esp, ecx); /* 0x36154D53: push ecx */ 8335 PUSH32(esp, esi); /* 0x36154D54: push esi */ 8336 esi = MEM32(ebp + 0x8); /* 0x36154D55: mov esi, dword ptr [ebp + 8] */ 8337 PUSH32(esp, edi); /* 0x36154D58: push edi */ 8338 eax = ebp + (-0x4); /* 0x36154D59: lea eax, [ebp - 4] */ 8339 edi = ecx; /* 0x36154D5C: mov edi, ecx */ 8340 PUSH32(esp, eax); /* 0x36154D5E: push eax */ 8341 ecx = esi; /* 0x36154D5F: mov ecx, esi */ 8342 MEM32(ebp + (-0x4)) = 0; /* 0x36154D61: mov dword ptr [ebp - 4], 0 */ 8343 RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36154D68: call dword ptr [0x3616fac8] */ 8344 RECOMP_FLAGS_IN(); 8345 /* cmp MEM16(ebp + (-0x4)), 2 */ /* 0x36154D6E: cmp word ptr [ebp - 4], 2 */ 8346 _flag_a = (uint32_t)(MEM16(ebp + (-0x4))) << 16; _flag_b = (uint32_t)(2) << 16; 8347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8348 _flag_k = FK_NARROW(FK_CMP, 16); 8349 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154D82; /* 0x36154D73: je 0x36154d82 */ 8350 L_36154D75: 8351 edi = POP32_VAL(esp); /* 0x36154D75: pop edi */ 8352 eax = 1; /* 0x36154D76: mov eax, 1 */ 8353 esi = POP32_VAL(esp); /* 0x36154D7B: pop esi */ 8354 esp = ebp; /* 0x36154D7C: mov esp, ebp */ 8355 ebp = POP32_VAL(esp); /* 0x36154D7E: pop ebp */ 8356 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36154D7F: ret 4 */ 8357 L_36154D82: 8358 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 8359 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8360 edi = edi + 0x20u; /* 0x36154D82: add edi, 0x20 */ 8361 _flag_k = FK_ADD; 8362 PUSH32(esp, edi); /* 0x36154D85: push edi */ 8363 PUSH32(esp, esi); /* 0x36154D86: push esi */ 8364 RECOMP_ICALL(0x3615B870u); /* 0x36154D87: call 0x3615b870 */ /* not lifted */ 8365 RECOMP_FLAGS_IN(); 8366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8368 esp = esp + 8; /* 0x36154D8C: add esp, 8 */ 8369 _flag_k = FK_ADD; 8370 ecx = esi; /* 0x36154D8F: mov ecx, esi */ 8371 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36154D91: call dword ptr [0x3616fadc] */ 8372 RECOMP_FLAGS_IN(); 8373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8374 _cf = (eax) != 0; 8375 eax = (uint32_t)(-(int32_t)eax); /* 0x36154D97: neg eax */ 8376 _flag_k = FK_CMP; 8377 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36154D99: sbb eax, eax */ 8378 eax = _sc ? 0xFFFFFFFFu : 0; 8379 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8380 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8381 edi = POP32_VAL(esp); /* 0x36154D9B: pop edi */ 8382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8383 eax = eax + 1; /* 0x36154D9C: inc eax */ 8384 _flag_k = FK_INC; 8385 esi = POP32_VAL(esp); /* 0x36154D9D: pop esi */ 8386 esp = ebp; /* 0x36154D9E: mov esp, ebp */ 8387 ebp = POP32_VAL(esp); /* 0x36154DA0: pop ebp */ 8388 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36154DA1: ret 4 */ 8389 RECOMP_REGS_OUT(); 8390 } 8391 8392 void sub_36154DB0(void) { 8393 int _fpu_cmp = 0; 8394 uint32_t _cf = 0; 8395 int _df = 1; 8396 uint32_t _flag_k = FK_NONE; 8397 uint32_t _flag_a = 0, _flag_b = 0; 8398 uint32_t _itail_tgt = 0; 8399 RECOMP_REGS_LOCALS 8400 RECOMP_ENTER(0x36154DB0u); 8401 8402 L_36154DB0: 8403 PUSH32(esp, ebp); /* 0x36154DB0: push ebp */ 8404 ebp = esp; /* 0x36154DB1: mov ebp, esp */ 8405 PUSH32(esp, esi); /* 0x36154DB3: push esi */ 8406 PUSH32(esp, edi); /* 0x36154DB4: push edi */ 8407 edi = MEM32(ebp + 0x8); /* 0x36154DB5: mov edi, dword ptr [ebp + 8] */ 8408 esi = ecx; /* 0x36154DB8: mov esi, ecx */ 8409 PUSH32(esp, 2); /* 0x36154DBA: push 2 */ 8410 ecx = edi; /* 0x36154DBC: mov ecx, edi */ 8411 RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x36154DBE: call dword ptr [0x3616facc] */ 8412 RECOMP_FLAGS_IN(); 8413 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u); 8414 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8415 esi = esi + 0x20u; /* 0x36154DC4: add esi, 0x20 */ 8416 _flag_k = FK_ADD; 8417 PUSH32(esp, esi); /* 0x36154DC7: push esi */ 8418 PUSH32(esp, edi); /* 0x36154DC8: push edi */ 8419 RECOMP_ICALL(0x3615B840u); /* 0x36154DC9: call 0x3615b840 */ /* not lifted */ 8420 RECOMP_FLAGS_IN(); 8421 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8422 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8423 esp = esp + 8; /* 0x36154DCE: add esp, 8 */ 8424 _flag_k = FK_ADD; 8425 edi = POP32_VAL(esp); /* 0x36154DD1: pop edi */ 8426 esi = POP32_VAL(esp); /* 0x36154DD2: pop esi */ 8427 ebp = POP32_VAL(esp); /* 0x36154DD3: pop ebp */ 8428 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36154DD4: ret 4 */ 8429 RECOMP_REGS_OUT(); 8430 } 8431 8432 void sub_36154DE0(void) { 8433 int _fpu_cmp = 0; 8434 uint32_t _cf = 0; 8435 int _df = 1; 8436 uint32_t _flag_k = FK_NONE; 8437 uint32_t _flag_a = 0, _flag_b = 0; 8438 uint32_t _itail_tgt = 0; 8439 RECOMP_REGS_LOCALS 8440 RECOMP_ENTER(0x36154DE0u); 8441 8442 L_36154DE0: 8443 PUSH32(esp, ebp); /* 0x36154DE0: push ebp */ 8444 ebp = esp; /* 0x36154DE1: mov ebp, esp */ 8445 PUSH32(esp, 0xFFFFFFFFu); /* 0x36154DE3: push -1 */ 8446 PUSH32(esp, 0x3616DB3Bu); /* 0x36154DE5: push 0x3616db3b */ 8447 eax = MEM32(FS_BASE + (0)); /* 0x36154DEA: mov eax, dword ptr fs:[0] */ 8448 PUSH32(esp, eax); /* 0x36154DF0: push eax */ 8449 MEM32(FS_BASE + (0)) = esp; /* 0x36154DF1: mov dword ptr fs:[0], esp */ 8450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 8451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8452 esp = esp - 0x30u; /* 0x36154DF8: sub esp, 0x30 */ 8453 _flag_k = FK_CMP; 8454 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36154DFB: mov al, byte ptr [ebp + 0xb] */ 8455 PUSH32(esp, ebx); /* 0x36154DFE: push ebx */ 8456 PUSH32(esp, esi); /* 0x36154DFF: push esi */ 8457 PUSH32(esp, edi); /* 0x36154E00: push edi */ 8458 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8459 esi = 0; /* 0x36154E01: xor esi, esi */ 8460 _cf = 0; 8461 _flag_k = FK_TEST; 8462 PUSH32(esp, esi); /* 0x36154E03: push esi */ 8463 ecx = ebp + (-0x1C); /* 0x36154E04: lea ecx, [ebp - 0x1c] */ 8464 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x36154E07: mov byte ptr [ebp - 0x1c], al */ 8465 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36154E0A: call dword ptr [0x3616f100] */ 8466 RECOMP_FLAGS_IN(); 8467 ebx = MEM32(ebp + 0x8); /* 0x36154E10: mov ebx, dword ptr [ebp + 8] */ 8468 eax = MEM32(ebx + 0x8); /* 0x36154E13: mov eax, dword ptr [ebx + 8] */ 8469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8470 eax = eax - 1; /* 0x36154E16: dec eax */ 8471 _flag_k = FK_DEC; 8472 /* test eax, eax */ /* 0x36154E17: test eax, eax */ 8473 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8474 _cf = 0; 8475 _flag_k = FK_TEST; 8476 MEM32(ebp + (-0x4)) = esi; /* 0x36154E19: mov dword ptr [ebp - 4], esi */ 8477 if (TEST_Z(_flag_a, _flag_b)) goto L_36154F29; /* 0x36154E1C: jbe 0x36154f29 */ 8478 L_36154E22: 8479 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8480 ecx = ecx | 0xFFFFFFFFu; /* 0x36154E22: or ecx, 0xffffffff */ 8481 _cf = 0; 8482 _flag_k = FK_TEST; 8483 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8484 eax = 0; /* 0x36154E25: xor eax, eax */ 8485 _cf = 0; 8486 _flag_k = FK_TEST; 8487 edi = 0x362E8678u; /* 0x36154E27: mov edi, 0x362e8678 */ 8488 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; } /* 0x36154E2C: repne scasb al, byte ptr es:[edi] */ 8489 ecx = ~ecx; /* 0x36154E2E: not ecx */ 8490 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8491 ecx = ecx - 1; /* 0x36154E30: dec ecx */ 8492 _flag_k = FK_DEC; 8493 PUSH32(esp, ecx); /* 0x36154E31: push ecx */ 8494 PUSH32(esp, esi); /* 0x36154E32: push esi */ 8495 PUSH32(esp, 0x362E8678u); /* 0x36154E33: push 0x362e8678 */ 8496 ecx = ebx; /* 0x36154E38: mov ecx, ebx */ 8497 RECOMP_ICALL(MEM32(0x3616F0F4)); /* 0x36154E3A: call dword ptr [0x3616f0f4] */ 8498 RECOMP_FLAGS_IN(); 8499 ebx = eax; /* 0x36154E40: mov ebx, eax */ 8500 eax = MEM32(0x3616F010); /* 0x36154E42: mov eax, dword ptr [0x3616f010] */ 8501 /* cmp MEM32(eax), ebx */ /* 0x36154E47: cmp dword ptr [eax], ebx */ 8502 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(ebx); 8503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8504 _flag_k = FK_CMP; 8505 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154EB8; /* 0x36154E49: je 0x36154eb8 */ 8506 L_36154E4B: 8507 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8508 ecx = ecx | 0xFFFFFFFFu; /* 0x36154E4B: or ecx, 0xffffffff */ 8509 _cf = 0; 8510 _flag_k = FK_TEST; 8511 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8512 eax = 0; /* 0x36154E4E: xor eax, eax */ 8513 _cf = 0; 8514 _flag_k = FK_TEST; 8515 edi = 0x362E8674u; /* 0x36154E50: mov edi, 0x362e8674 */ 8516 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; } /* 0x36154E55: repne scasb al, byte ptr es:[edi] */ 8517 ecx = ~ecx; /* 0x36154E57: not ecx */ 8518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8519 ecx = ecx - 1; /* 0x36154E59: dec ecx */ 8520 _flag_k = FK_DEC; 8521 PUSH32(esp, ecx); /* 0x36154E5A: push ecx */ 8522 ecx = MEM32(ebp + 0x8); /* 0x36154E5B: mov ecx, dword ptr [ebp + 8] */ 8523 PUSH32(esp, ebx); /* 0x36154E5E: push ebx */ 8524 PUSH32(esp, 0x362E8674u); /* 0x36154E5F: push 0x362e8674 */ 8525 RECOMP_ICALL(MEM32(0x3616F0F4)); /* 0x36154E64: call dword ptr [0x3616f0f4] */ 8526 RECOMP_FLAGS_IN(); 8527 ecx = MEM32(0x3616F010); /* 0x36154E6A: mov ecx, dword ptr [0x3616f010] */ 8528 edi = eax; /* 0x36154E70: mov edi, eax */ 8529 /* cmp MEM32(ecx), edi */ /* 0x36154E72: cmp dword ptr [ecx], edi */ 8530 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(edi); 8531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8532 _flag_k = FK_CMP; 8533 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154F64; /* 0x36154E74: je 0x36154f64 */ 8534 L_36154E7A: 8535 ecx = MEM32(ebp + 0x8); /* 0x36154E7A: mov ecx, dword ptr [ebp + 8] */ 8536 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 8537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8538 ebx = ebx - esi; /* 0x36154E7D: sub ebx, esi */ 8539 _flag_k = FK_CMP; 8540 PUSH32(esp, ebx); /* 0x36154E7F: push ebx */ 8541 PUSH32(esp, esi); /* 0x36154E80: push esi */ 8542 edx = ebp + (-0x3C); /* 0x36154E81: lea edx, [ebp - 0x3c] */ 8543 PUSH32(esp, edx); /* 0x36154E84: push edx */ 8544 RECOMP_ICALL(MEM32(0x3616F084)); /* 0x36154E85: call dword ptr [0x3616f084] */ 8545 RECOMP_FLAGS_IN(); 8546 ecx = MEM32(0x3616F010); /* 0x36154E8B: mov ecx, dword ptr [0x3616f010] */ 8547 edx = MEM32(ecx); /* 0x36154E91: mov edx, dword ptr [ecx] */ 8548 PUSH32(esp, edx); /* 0x36154E93: push edx */ 8549 PUSH32(esp, 0); /* 0x36154E94: push 0 */ 8550 PUSH32(esp, eax); /* 0x36154E96: push eax */ 8551 ecx = ebp + (-0x1C); /* 0x36154E97: lea ecx, [ebp - 0x1c] */ 8552 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36154E9A: mov byte ptr [ebp - 4], 1 */ 8553 RECOMP_ICALL(MEM32(0x3616F0F8)); /* 0x36154E9E: call dword ptr [0x3616f0f8] */ 8554 RECOMP_FLAGS_IN(); 8555 PUSH32(esp, 1); /* 0x36154EA4: push 1 */ 8556 ecx = ebp + (-0x3C); /* 0x36154EA6: lea ecx, [ebp - 0x3c] */ 8557 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36154EA9: mov byte ptr [ebp - 4], 0 */ 8558 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36154EAD: call dword ptr [0x3616f100] */ 8559 RECOMP_FLAGS_IN(); 8560 esi = edi + 0x1; /* 0x36154EB3: lea esi, [edi + 1] */ 8561 goto L_36154F18; /* 0x36154EB6: jmp 0x36154f18 */ 8562 L_36154EB8: 8563 eax = MEM32(eax); /* 0x36154EB8: mov eax, dword ptr [eax] */ 8564 PUSH32(esp, eax); /* 0x36154EBA: push eax */ 8565 PUSH32(esp, esi); /* 0x36154EBB: push esi */ 8566 esi = MEM32(ebp + 0x8); /* 0x36154EBC: mov esi, dword ptr [ebp + 8] */ 8567 ecx = ebp + (-0x2C); /* 0x36154EBF: lea ecx, [ebp - 0x2c] */ 8568 PUSH32(esp, ecx); /* 0x36154EC2: push ecx */ 8569 ecx = esi; /* 0x36154EC3: mov ecx, esi */ 8570 RECOMP_ICALL(MEM32(0x3616F084)); /* 0x36154EC5: call dword ptr [0x3616f084] */ 8571 RECOMP_FLAGS_IN(); 8572 edx = MEM32(0x3616F010); /* 0x36154ECB: mov edx, dword ptr [0x3616f010] */ 8573 ecx = MEM32(edx); /* 0x36154ED1: mov ecx, dword ptr [edx] */ 8574 PUSH32(esp, ecx); /* 0x36154ED3: push ecx */ 8575 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8576 edi = 0; /* 0x36154ED4: xor edi, edi */ 8577 _cf = 0; 8578 _flag_k = FK_TEST; 8579 PUSH32(esp, edi); /* 0x36154ED6: push edi */ 8580 PUSH32(esp, eax); /* 0x36154ED7: push eax */ 8581 ecx = ebp + (-0x1C); /* 0x36154ED8: lea ecx, [ebp - 0x1c] */ 8582 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36154EDB: mov byte ptr [ebp - 4], 2 */ 8583 RECOMP_ICALL(MEM32(0x3616F0F8)); /* 0x36154EDF: call dword ptr [0x3616f0f8] */ 8584 RECOMP_FLAGS_IN(); 8585 eax = MEM32(ebp + (-0x28)); /* 0x36154EE5: mov eax, dword ptr [ebp - 0x28] */ 8586 /* cmp eax, edi */ /* 0x36154EE8: cmp eax, edi */ 8587 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8589 _flag_k = FK_CMP; 8590 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36154EEA: mov byte ptr [ebp - 4], 0 */ 8591 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154F0C; /* 0x36154EEE: je 0x36154f0c */ 8592 L_36154EF0: 8593 ecx = eax + (-0x1); /* 0x36154EF0: lea ecx, [eax - 1] */ 8594 SET_LO8(eax, MEM8(ecx)); /* 0x36154EF3: mov al, byte ptr [ecx] */ 8595 /* test LO8(eax), LO8(eax) */ /* 0x36154EF5: test al, al */ 8596 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8597 _cf = 0; 8598 _flag_k = FK_NARROW(FK_TEST, 24); 8599 if (TEST_Z(_flag_a, _flag_b)) goto L_36154F03; /* 0x36154EF7: je 0x36154f03 */ 8600 L_36154EF9: 8601 /* cmp LO8(eax), 0xFFu */ /* 0x36154EF9: cmp al, 0xff */ 8602 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8604 _flag_k = FK_NARROW(FK_CMP, 24); 8605 if (CMP_EQ(_flag_a, _flag_b)) goto L_36154F03; /* 0x36154EFB: je 0x36154f03 */ 8606 L_36154EFD: 8607 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8608 SET_LO8(eax, LO8(eax) - 1); /* 0x36154EFD: dec al */ 8609 _flag_k = FK_NARROW(FK_DEC, 24); 8610 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36154EFF: mov byte ptr [ecx], al */ 8611 goto L_36154F0C; /* 0x36154F01: jmp 0x36154f0c */ 8612 L_36154F03: 8613 PUSH32(esp, ecx); /* 0x36154F03: push ecx */ 8614 RECOMP_ICALL(0x3615FCC4u); /* 0x36154F04: call 0x3615fcc4 */ /* not lifted */ 8615 RECOMP_FLAGS_IN(); 8616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8618 esp = esp + 4; /* 0x36154F09: add esp, 4 */ 8619 _flag_k = FK_ADD; 8620 L_36154F0C: 8621 esi = MEM32(esi + 0x8); /* 0x36154F0C: mov esi, dword ptr [esi + 8] */ 8622 MEM32(ebp + (-0x28)) = edi; /* 0x36154F0F: mov dword ptr [ebp - 0x28], edi */ 8623 MEM32(ebp + (-0x24)) = edi; /* 0x36154F12: mov dword ptr [ebp - 0x24], edi */ 8624 MEM32(ebp + (-0x20)) = edi; /* 0x36154F15: mov dword ptr [ebp - 0x20], edi */ 8625 L_36154F18: 8626 edx = MEM32(ebp + 0x8); /* 0x36154F18: mov edx, dword ptr [ebp + 8] */ 8627 eax = MEM32(edx + 0x8); /* 0x36154F1B: mov eax, dword ptr [edx + 8] */ 8628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8629 eax = eax - 1; /* 0x36154F1E: dec eax */ 8630 _flag_k = FK_DEC; 8631 /* cmp esi, eax */ /* 0x36154F1F: cmp esi, eax */ 8632 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 8633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8634 _flag_k = FK_CMP; 8635 ebx = edx; /* 0x36154F21: mov ebx, edx */ 8636 RECOMP_BACKEDGE(); 8637 if (CMP_B(_flag_a, _flag_b)) goto L_36154E22; /* 0x36154F23: jb 0x36154e22 */ 8638 L_36154F29: 8639 ecx = MEM32(0x3616F010); /* 0x36154F29: mov ecx, dword ptr [0x3616f010] */ 8640 eax = MEM32(ecx); /* 0x36154F2F: mov eax, dword ptr [ecx] */ 8641 ecx = MEM32(ebp + (-0x14)); /* 0x36154F31: mov ecx, dword ptr [ebp - 0x14] */ 8642 edi = ecx; /* 0x36154F34: mov edi, ecx */ 8643 /* cmp eax, edi */ /* 0x36154F36: cmp eax, edi */ 8644 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8646 _flag_k = FK_CMP; 8647 MEM32(ebp + 0x8) = edi; /* 0x36154F38: mov dword ptr [ebp + 8], edi */ 8648 if (CMP_AE(_flag_a, _flag_b)) goto L_36154F42; /* 0x36154F3B: jae 0x36154f42 */ 8649 L_36154F3D: 8650 MEM32(ebp + 0x8) = eax; /* 0x36154F3D: mov dword ptr [ebp + 8], eax */ 8651 edi = eax; /* 0x36154F40: mov edi, eax */ 8652 L_36154F42: 8653 edx = ebp + (-0x1C); /* 0x36154F42: lea edx, [ebp - 0x1c] */ 8654 /* cmp ebx, edx */ /* 0x36154F45: cmp ebx, edx */ 8655 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 8656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8657 _flag_k = FK_CMP; 8658 if (CMP_NE(_flag_a, _flag_b)) goto L_36154F8B; /* 0x36154F47: jne 0x36154f8b */ 8659 L_36154F49: 8660 PUSH32(esp, eax); /* 0x36154F49: push eax */ 8661 PUSH32(esp, edi); /* 0x36154F4A: push edi */ 8662 ecx = ebx; /* 0x36154F4B: mov ecx, ebx */ 8663 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x36154F4D: call dword ptr [0x3616f15c] */ 8664 RECOMP_FLAGS_IN(); 8665 PUSH32(esp, 0); /* 0x36154F53: push 0 */ 8666 PUSH32(esp, 0); /* 0x36154F55: push 0 */ 8667 ecx = ebx; /* 0x36154F57: mov ecx, ebx */ 8668 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x36154F59: call dword ptr [0x3616f15c] */ 8669 RECOMP_FLAGS_IN(); 8670 goto L_3615500A; /* 0x36154F5F: jmp 0x3615500a */ 8671 L_36154F64: 8672 PUSH32(esp, 1); /* 0x36154F64: push 1 */ 8673 ecx = ebp + (-0x1C); /* 0x36154F66: lea ecx, [ebp - 0x1c] */ 8674 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36154F69: mov dword ptr [ebp - 4], 0xffffffff */ 8675 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36154F70: call dword ptr [0x3616f100] */ 8676 RECOMP_FLAGS_IN(); 8677 edi = POP32_VAL(esp); /* 0x36154F76: pop edi */ 8678 esi = POP32_VAL(esp); /* 0x36154F77: pop esi */ 8679 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 8680 SET_LO8(eax, 0); /* 0x36154F78: xor al, al */ 8681 _cf = 0; 8682 _flag_k = FK_NARROW(FK_TEST, 24); 8683 ebx = POP32_VAL(esp); /* 0x36154F7A: pop ebx */ 8684 ecx = MEM32(ebp + (-0xC)); /* 0x36154F7B: mov ecx, dword ptr [ebp - 0xc] */ 8685 MEM32(FS_BASE + (0)) = ecx; /* 0x36154F7E: mov dword ptr fs:[0], ecx */ 8686 esp = ebp; /* 0x36154F85: mov esp, ebp */ 8687 ebp = POP32_VAL(esp); /* 0x36154F87: pop ebp */ 8688 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36154F88: ret 4 */ 8689 L_36154F8B: 8690 /* test edi, edi */ /* 0x36154F8B: test edi, edi */ 8691 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8692 _cf = 0; 8693 _flag_k = FK_TEST; 8694 if (TEST_Z(_flag_a, _flag_b)) goto L_36154FCF; /* 0x36154F8D: jbe 0x36154fcf */ 8695 L_36154F8F: 8696 /* cmp edi, ecx */ /* 0x36154F8F: cmp edi, ecx */ 8697 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8699 _flag_k = FK_CMP; 8700 if (CMP_NE(_flag_a, _flag_b)) goto L_36154FCF; /* 0x36154F91: jne 0x36154fcf */ 8701 L_36154F93: 8702 eax = MEM32(ebp + (-0x18)); /* 0x36154F93: mov eax, dword ptr [ebp - 0x18] */ 8703 /* test eax, eax */ /* 0x36154F96: test eax, eax */ 8704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8705 _cf = 0; 8706 _flag_k = FK_TEST; 8707 if (TEST_NZ(_flag_a, _flag_b)) goto L_36154F9F; /* 0x36154F98: jne 0x36154f9f */ 8708 L_36154F9A: 8709 eax = MEM32(0x3616F10C); /* 0x36154F9A: mov eax, dword ptr [0x3616f10c] */ 8710 L_36154F9F: 8711 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x36154F9F: cmp byte ptr [eax - 1], 0xfe */ 8712 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 8713 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8714 _flag_k = FK_NARROW(FK_CMP, 24); 8715 if (CMP_AE(_flag_a, _flag_b)) goto L_36154FCF; /* 0x36154FA3: jae 0x36154fcf */ 8716 L_36154FA5: 8717 PUSH32(esp, 1); /* 0x36154FA5: push 1 */ 8718 ecx = ebx; /* 0x36154FA7: mov ecx, ebx */ 8719 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36154FA9: call dword ptr [0x3616f100] */ 8720 RECOMP_FLAGS_IN(); 8721 eax = MEM32(ebp + (-0x18)); /* 0x36154FAF: mov eax, dword ptr [ebp - 0x18] */ 8722 /* test eax, eax */ /* 0x36154FB2: test eax, eax */ 8723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8724 _cf = 0; 8725 _flag_k = FK_TEST; 8726 if (TEST_NZ(_flag_a, _flag_b)) goto L_36154FBB; /* 0x36154FB4: jne 0x36154fbb */ 8727 L_36154FB6: 8728 eax = MEM32(0x3616F10C); /* 0x36154FB6: mov eax, dword ptr [0x3616f10c] */ 8729 L_36154FBB: 8730 ecx = MEM32(ebp + (-0x14)); /* 0x36154FBB: mov ecx, dword ptr [ebp - 0x14] */ 8731 edx = MEM32(ebp + (-0x10)); /* 0x36154FBE: mov edx, dword ptr [ebp - 0x10] */ 8732 MEM32(ebx + 0x8) = ecx; /* 0x36154FC1: mov dword ptr [ebx + 8], ecx */ 8733 MEM32(ebx + 0x4) = eax; /* 0x36154FC4: mov dword ptr [ebx + 4], eax */ 8734 MEM32(ebx + 0xC) = edx; /* 0x36154FC7: mov dword ptr [ebx + 0xc], edx */ 8735 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 8736 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x36154FCA: inc byte ptr [eax - 1] */ 8737 _flag_k = FK_NARROW(FK_INC, 24); 8738 goto L_3615500A; /* 0x36154FCD: jmp 0x3615500a */ 8739 L_36154FCF: 8740 PUSH32(esp, 1); /* 0x36154FCF: push 1 */ 8741 PUSH32(esp, edi); /* 0x36154FD1: push edi */ 8742 ecx = ebx; /* 0x36154FD2: mov ecx, ebx */ 8743 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36154FD4: call dword ptr [0x3616f00c] */ 8744 RECOMP_FLAGS_IN(); 8745 /* test LO8(eax), LO8(eax) */ /* 0x36154FDA: test al, al */ 8746 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8747 _cf = 0; 8748 _flag_k = FK_NARROW(FK_TEST, 24); 8749 if (TEST_Z(_flag_a, _flag_b)) goto L_3615500A; /* 0x36154FDC: je 0x3615500a */ 8750 L_36154FDE: 8751 esi = MEM32(ebp + (-0x18)); /* 0x36154FDE: mov esi, dword ptr [ebp - 0x18] */ 8752 /* test esi, esi */ /* 0x36154FE1: test esi, esi */ 8753 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8754 _cf = 0; 8755 _flag_k = FK_TEST; 8756 if (TEST_NZ(_flag_a, _flag_b)) goto L_36154FEB; /* 0x36154FE3: jne 0x36154feb */ 8757 L_36154FE5: 8758 esi = MEM32(0x3616F10C); /* 0x36154FE5: mov esi, dword ptr [0x3616f10c] */ 8759 L_36154FEB: 8760 ecx = edi; /* 0x36154FEB: mov ecx, edi */ 8761 edi = MEM32(ebx + 0x4); /* 0x36154FED: mov edi, dword ptr [ebx + 4] */ 8762 eax = ecx; /* 0x36154FF0: mov eax, ecx */ 8763 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36154FF2: shr ecx, 2 */ 8764 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8765 ecx = ecx >> 2u; /* 0x36154FF2: shr ecx, 2 */ 8766 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36154FF5: 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; } 8767 ecx = eax; /* 0x36154FF7: mov ecx, eax */ 8768 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8769 ecx = ecx & 3; /* 0x36154FF9: and ecx, 3 */ 8770 _cf = 0; 8771 _flag_k = FK_TEST; 8772 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36154FFC: 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; } 8773 ecx = MEM32(ebp + 0x8); /* 0x36154FFE: mov ecx, dword ptr [ebp + 8] */ 8774 PUSH32(esp, ecx); /* 0x36155001: push ecx */ 8775 ecx = ebx; /* 0x36155002: mov ecx, ebx */ 8776 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36155004: call dword ptr [0x3616f044] */ 8777 RECOMP_FLAGS_IN(); 8778 L_3615500A: 8779 ecx = MEM32(ebp + (-0x18)); /* 0x3615500A: mov ecx, dword ptr [ebp - 0x18] */ 8780 /* test ecx, ecx */ /* 0x3615500D: test ecx, ecx */ 8781 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8782 _cf = 0; 8783 _flag_k = FK_TEST; 8784 if (TEST_Z(_flag_a, _flag_b)) goto L_3615502D; /* 0x3615500F: je 0x3615502d */ 8785 L_36155011: 8786 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36155011: mov al, byte ptr [ecx - 1] */ 8787 /* test LO8(eax), LO8(eax) */ /* 0x36155014: test al, al */ 8788 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8789 _cf = 0; 8790 _flag_k = FK_NARROW(FK_TEST, 24); 8791 if (TEST_Z(_flag_a, _flag_b)) goto L_36155023; /* 0x36155016: je 0x36155023 */ 8792 L_36155018: 8793 /* cmp LO8(eax), 0xFFu */ /* 0x36155018: cmp al, 0xff */ 8794 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8796 _flag_k = FK_NARROW(FK_CMP, 24); 8797 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155023; /* 0x3615501A: je 0x36155023 */ 8798 L_3615501C: 8799 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8800 SET_LO8(eax, LO8(eax) - 1); /* 0x3615501C: dec al */ 8801 _flag_k = FK_NARROW(FK_DEC, 24); 8802 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3615501E: mov byte ptr [ecx - 1], al */ 8803 goto L_3615502D; /* 0x36155021: jmp 0x3615502d */ 8804 L_36155023: 8805 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8806 ecx = ecx - 1; /* 0x36155023: dec ecx */ 8807 _flag_k = FK_DEC; 8808 PUSH32(esp, ecx); /* 0x36155024: push ecx */ 8809 RECOMP_ICALL(0x3615FCC4u); /* 0x36155025: call 0x3615fcc4 */ /* not lifted */ 8810 RECOMP_FLAGS_IN(); 8811 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8813 esp = esp + 4; /* 0x3615502A: add esp, 4 */ 8814 _flag_k = FK_ADD; 8815 L_3615502D: 8816 ecx = MEM32(ebp + (-0xC)); /* 0x3615502D: mov ecx, dword ptr [ebp - 0xc] */ 8817 edi = POP32_VAL(esp); /* 0x36155030: pop edi */ 8818 esi = POP32_VAL(esp); /* 0x36155031: pop esi */ 8819 SET_LO8(eax, 1); /* 0x36155032: mov al, 1 */ 8820 ebx = POP32_VAL(esp); /* 0x36155034: pop ebx */ 8821 MEM32(FS_BASE + (0)) = ecx; /* 0x36155035: mov dword ptr fs:[0], ecx */ 8822 esp = ebp; /* 0x3615503C: mov esp, ebp */ 8823 ebp = POP32_VAL(esp); /* 0x3615503E: pop ebp */ 8824 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615503F: ret 4 */ 8825 RECOMP_REGS_OUT(); 8826 } 8827 8828 void sub_3615500A(void) { 8829 int _fpu_cmp = 0; 8830 uint32_t _cf = 0; 8831 int _df = 1; 8832 uint32_t _flag_k = FK_NONE; 8833 uint32_t _flag_a = 0, _flag_b = 0; 8834 uint32_t _itail_tgt = 0; 8835 RECOMP_REGS_LOCALS 8836 RECOMP_ENTER(0x3615500Au); 8837 8838 L_3615500A: 8839 ecx = MEM32(ebp + (-0x18)); /* 0x3615500A: mov ecx, dword ptr [ebp - 0x18] */ 8840 /* test ecx, ecx */ /* 0x3615500D: test ecx, ecx */ 8841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8842 _cf = 0; 8843 _flag_k = FK_TEST; 8844 if (TEST_Z(_flag_a, _flag_b)) goto L_3615502D; /* 0x3615500F: je 0x3615502d */ 8845 L_36155011: 8846 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x36155011: mov al, byte ptr [ecx - 1] */ 8847 /* test LO8(eax), LO8(eax) */ /* 0x36155014: test al, al */ 8848 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8849 _cf = 0; 8850 _flag_k = FK_NARROW(FK_TEST, 24); 8851 if (TEST_Z(_flag_a, _flag_b)) goto L_36155023; /* 0x36155016: je 0x36155023 */ 8852 L_36155018: 8853 /* cmp LO8(eax), 0xFFu */ /* 0x36155018: cmp al, 0xff */ 8854 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8856 _flag_k = FK_NARROW(FK_CMP, 24); 8857 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155023; /* 0x3615501A: je 0x36155023 */ 8858 L_3615501C: 8859 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8860 SET_LO8(eax, LO8(eax) - 1); /* 0x3615501C: dec al */ 8861 _flag_k = FK_NARROW(FK_DEC, 24); 8862 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3615501E: mov byte ptr [ecx - 1], al */ 8863 goto L_3615502D; /* 0x36155021: jmp 0x3615502d */ 8864 L_36155023: 8865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8866 ecx = ecx - 1; /* 0x36155023: dec ecx */ 8867 _flag_k = FK_DEC; 8868 PUSH32(esp, ecx); /* 0x36155024: push ecx */ 8869 RECOMP_ICALL(0x3615FCC4u); /* 0x36155025: call 0x3615fcc4 */ /* not lifted */ 8870 RECOMP_FLAGS_IN(); 8871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8873 esp = esp + 4; /* 0x3615502A: add esp, 4 */ 8874 _flag_k = FK_ADD; 8875 L_3615502D: 8876 ecx = MEM32(ebp + (-0xC)); /* 0x3615502D: mov ecx, dword ptr [ebp - 0xc] */ 8877 edi = POP32_VAL(esp); /* 0x36155030: pop edi */ 8878 esi = POP32_VAL(esp); /* 0x36155031: pop esi */ 8879 SET_LO8(eax, 1); /* 0x36155032: mov al, 1 */ 8880 ebx = POP32_VAL(esp); /* 0x36155034: pop ebx */ 8881 MEM32(FS_BASE + (0)) = ecx; /* 0x36155035: mov dword ptr fs:[0], ecx */ 8882 esp = ebp; /* 0x3615503C: mov esp, ebp */ 8883 ebp = POP32_VAL(esp); /* 0x3615503E: pop ebp */ 8884 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615503F: ret 4 */ 8885 RECOMP_REGS_OUT(); 8886 } 8887 8888 void sub_3615502D(void) { 8889 int _fpu_cmp = 0; 8890 uint32_t _cf = 0; 8891 int _df = 1; 8892 uint32_t _flag_k = FK_NONE; 8893 uint32_t _flag_a = 0, _flag_b = 0; 8894 uint32_t _itail_tgt = 0; 8895 RECOMP_REGS_LOCALS 8896 RECOMP_ENTER(0x3615502Du); 8897 8898 L_3615502D: 8899 ecx = MEM32(ebp + (-0xC)); /* 0x3615502D: mov ecx, dword ptr [ebp - 0xc] */ 8900 edi = POP32_VAL(esp); /* 0x36155030: pop edi */ 8901 esi = POP32_VAL(esp); /* 0x36155031: pop esi */ 8902 SET_LO8(eax, 1); /* 0x36155032: mov al, 1 */ 8903 ebx = POP32_VAL(esp); /* 0x36155034: pop ebx */ 8904 MEM32(FS_BASE + (0)) = ecx; /* 0x36155035: mov dword ptr fs:[0], ecx */ 8905 esp = ebp; /* 0x3615503C: mov esp, ebp */ 8906 ebp = POP32_VAL(esp); /* 0x3615503E: pop ebp */ 8907 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615503F: ret 4 */ 8908 RECOMP_REGS_OUT(); 8909 } 8910 8911 void sub_36155050(void) { 8912 int _fpu_cmp = 0; 8913 uint32_t _cf = 0; 8914 int _df = 1; 8915 uint32_t _flag_k = FK_NONE; 8916 uint32_t _flag_a = 0, _flag_b = 0; 8917 uint32_t _itail_tgt = 0; 8918 RECOMP_REGS_LOCALS 8919 RECOMP_ENTER(0x36155050u); 8920 8921 L_36155050: 8922 goto L_36155060; /* 0x36155050: jmp 0x36155060 */ 8923 L_36155060: 8924 MEM8(0x3630DB18) = (uint8_t)(1); /* 0x36155060: mov byte ptr [0x3630db18], 1 */ 8925 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155067: ret */ 8926 RECOMP_REGS_OUT(); 8927 } 8928 8929 void sub_36155060(void) { 8930 int _fpu_cmp = 0; 8931 uint32_t _cf = 0; 8932 int _df = 1; 8933 uint32_t _flag_k = FK_NONE; 8934 uint32_t _flag_a = 0, _flag_b = 0; 8935 uint32_t _itail_tgt = 0; 8936 RECOMP_REGS_LOCALS 8937 RECOMP_ENTER(0x36155060u); 8938 8939 L_36155060: 8940 MEM8(0x3630DB18) = (uint8_t)(1); /* 0x36155060: mov byte ptr [0x3630db18], 1 */ 8941 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155067: ret */ 8942 RECOMP_REGS_OUT(); 8943 } 8944 8945 void sub_36155070(void) { 8946 int _fpu_cmp = 0; 8947 uint32_t _cf = 0; 8948 int _df = 1; 8949 uint32_t _flag_k = FK_NONE; 8950 uint32_t _flag_a = 0, _flag_b = 0; 8951 uint32_t _itail_tgt = 0; 8952 RECOMP_REGS_LOCALS 8953 RECOMP_ENTER(0x36155070u); 8954 8955 L_36155070: 8956 PUSH32(esp, ebp); /* 0x36155070: push ebp */ 8957 ebp = esp; /* 0x36155071: mov ebp, esp */ 8958 PUSH32(esp, ecx); /* 0x36155073: push ecx */ 8959 PUSH32(esp, esi); /* 0x36155074: push esi */ 8960 esi = ecx; /* 0x36155075: mov esi, ecx */ 8961 RECOMP_ICALL(0x36154D30u); /* 0x36155077: call 0x36154d30 */ /* not lifted */ 8962 RECOMP_FLAGS_IN(); 8963 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3615507C: mov al, byte ptr [ebp - 1] */ 8964 MEM8(esi + 0x2C) = (uint8_t)(LO8(eax)); /* 0x3615507F: mov byte ptr [esi + 0x2c], al */ 8965 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8966 eax = 0; /* 0x36155082: xor eax, eax */ 8967 _cf = 0; 8968 _flag_k = FK_TEST; 8969 MEM32(esi + 0x30) = eax; /* 0x36155084: mov dword ptr [esi + 0x30], eax */ 8970 MEM32(esi + 0x34) = eax; /* 0x36155087: mov dword ptr [esi + 0x34], eax */ 8971 MEM32(esi + 0x38) = eax; /* 0x3615508A: mov dword ptr [esi + 0x38], eax */ 8972 MEM32(esi + 0x28) = eax; /* 0x3615508D: mov dword ptr [esi + 0x28], eax */ 8973 MEM32(esi) = 0x36178BFCu; /* 0x36155090: mov dword ptr [esi], 0x36178bfc */ 8974 eax = esi; /* 0x36155096: mov eax, esi */ 8975 esi = POP32_VAL(esp); /* 0x36155098: pop esi */ 8976 esp = ebp; /* 0x36155099: mov esp, ebp */ 8977 ebp = POP32_VAL(esp); /* 0x3615509B: pop ebp */ 8978 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615509C: ret */ 8979 RECOMP_REGS_OUT(); 8980 } 8981 8982 void sub_361550A0(void) { 8983 int _fpu_cmp = 0; 8984 uint32_t _cf = 0; 8985 int _df = 1; 8986 uint32_t _flag_k = FK_NONE; 8987 uint32_t _flag_a = 0, _flag_b = 0; 8988 uint32_t _itail_tgt = 0; 8989 RECOMP_REGS_LOCALS 8990 RECOMP_ENTER(0x361550A0u); 8991 8992 L_361550A0: 8993 PUSH32(esp, ebp); /* 0x361550A0: push ebp */ 8994 ebp = esp; /* 0x361550A1: mov ebp, esp */ 8995 PUSH32(esp, esi); /* 0x361550A3: push esi */ 8996 esi = ecx; /* 0x361550A4: mov esi, ecx */ 8997 RECOMP_ICALL(0x361551E0u); /* 0x361550A6: call 0x361551e0 */ /* not lifted */ 8998 RECOMP_FLAGS_IN(); 8999 /* test MEM8(ebp + 0x8), 1 */ /* 0x361550AB: test byte ptr [ebp + 8], 1 */ 9000 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9001 _cf = 0; 9002 _flag_k = FK_NARROW(FK_TEST, 24); 9003 if (TEST_Z(_flag_a, _flag_b)) goto L_361550BA; /* 0x361550AF: je 0x361550ba */ 9004 L_361550B1: 9005 PUSH32(esp, esi); /* 0x361550B1: push esi */ 9006 RECOMP_ICALL(0x3615FCC4u); /* 0x361550B2: call 0x3615fcc4 */ /* not lifted */ 9007 RECOMP_FLAGS_IN(); 9008 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9009 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9010 esp = esp + 4; /* 0x361550B7: add esp, 4 */ 9011 _flag_k = FK_ADD; 9012 L_361550BA: 9013 eax = esi; /* 0x361550BA: mov eax, esi */ 9014 esi = POP32_VAL(esp); /* 0x361550BC: pop esi */ 9015 ebp = POP32_VAL(esp); /* 0x361550BD: pop ebp */ 9016 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361550BE: ret 4 */ 9017 RECOMP_REGS_OUT(); 9018 } 9019 9020 void sub_361550D0(void) { 9021 int _fpu_cmp = 0; 9022 uint32_t _cf = 0; 9023 int _df = 1; 9024 uint32_t _flag_k = FK_NONE; 9025 uint32_t _flag_a = 0, _flag_b = 0; 9026 uint32_t _itail_tgt = 0; 9027 RECOMP_REGS_LOCALS 9028 RECOMP_ENTER(0x361550D0u); 9029 9030 L_361550D0: 9031 PUSH32(esp, ebp); /* 0x361550D0: push ebp */ 9032 ebp = esp; /* 0x361550D1: mov ebp, esp */ 9033 PUSH32(esp, 0xFFFFFFFFu); /* 0x361550D3: push -1 */ 9034 PUSH32(esp, 0x3616DB61u); /* 0x361550D5: push 0x3616db61 */ 9035 eax = MEM32(FS_BASE + (0)); /* 0x361550DA: mov eax, dword ptr fs:[0] */ 9036 PUSH32(esp, eax); /* 0x361550E0: push eax */ 9037 MEM32(FS_BASE + (0)) = esp; /* 0x361550E1: mov dword ptr fs:[0], esp */ 9038 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9040 esp = esp - 0x14u; /* 0x361550E8: sub esp, 0x14 */ 9041 _flag_k = FK_CMP; 9042 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x361550EB: mov al, byte ptr [ebp + 0xf] */ 9043 PUSH32(esp, ebx); /* 0x361550EE: push ebx */ 9044 PUSH32(esp, esi); /* 0x361550EF: push esi */ 9045 esi = ecx; /* 0x361550F0: mov esi, ecx */ 9046 PUSH32(esp, edi); /* 0x361550F2: push edi */ 9047 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9048 ecx = ecx | 0xFFFFFFFFu; /* 0x361550F3: or ecx, 0xffffffff */ 9049 _cf = 0; 9050 _flag_k = FK_TEST; 9051 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x361550F6: mov byte ptr [ebp - 0x20], al */ 9052 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9053 eax = 0; /* 0x361550F9: xor eax, eax */ 9054 _cf = 0; 9055 _flag_k = FK_TEST; 9056 edi = 0x361B3F8Cu; /* 0x361550FB: mov edi, 0x361b3f8c */ 9057 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; } /* 0x36155100: repne scasb al, byte ptr es:[edi] */ 9058 ecx = ~ecx; /* 0x36155102: not ecx */ 9059 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9060 ecx = ecx - 1; /* 0x36155104: dec ecx */ 9061 _flag_k = FK_DEC; 9062 ebx = ecx; /* 0x36155105: mov ebx, ecx */ 9063 PUSH32(esp, 1); /* 0x36155107: push 1 */ 9064 PUSH32(esp, ebx); /* 0x36155109: push ebx */ 9065 ecx = ebp + (-0x20); /* 0x3615510A: lea ecx, [ebp - 0x20] */ 9066 MEM32(ebp + (-0x10)) = esi; /* 0x3615510D: mov dword ptr [ebp - 0x10], esi */ 9067 MEM32(ebp + (-0x1C)) = eax; /* 0x36155110: mov dword ptr [ebp - 0x1c], eax */ 9068 MEM32(ebp + (-0x18)) = eax; /* 0x36155113: mov dword ptr [ebp - 0x18], eax */ 9069 MEM32(ebp + (-0x14)) = eax; /* 0x36155116: mov dword ptr [ebp - 0x14], eax */ 9070 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36155119: call dword ptr [0x3616f00c] */ 9071 RECOMP_FLAGS_IN(); 9072 /* test LO8(eax), LO8(eax) */ /* 0x3615511F: test al, al */ 9073 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9074 _cf = 0; 9075 _flag_k = FK_NARROW(FK_TEST, 24); 9076 if (TEST_Z(_flag_a, _flag_b)) goto L_36155148; /* 0x36155121: je 0x36155148 */ 9077 L_36155123: 9078 edi = MEM32(ebp + (-0x1C)); /* 0x36155123: mov edi, dword ptr [ebp - 0x1c] */ 9079 ecx = ebx; /* 0x36155126: mov ecx, ebx */ 9080 edx = ecx; /* 0x36155128: mov edx, ecx */ 9081 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615512A: shr ecx, 2 */ 9082 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9083 ecx = ecx >> 2u; /* 0x3615512A: shr ecx, 2 */ 9084 esi = 0x361B3F8Cu; /* 0x3615512D: mov esi, 0x361b3f8c */ 9085 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36155132: 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; } 9086 ecx = edx; /* 0x36155134: mov ecx, edx */ 9087 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9088 ecx = ecx & 3; /* 0x36155136: and ecx, 3 */ 9089 _cf = 0; 9090 _flag_k = FK_TEST; 9091 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36155139: 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; } 9092 eax = MEM32(ebp + (-0x1C)); /* 0x3615513B: mov eax, dword ptr [ebp - 0x1c] */ 9093 esi = MEM32(ebp + (-0x10)); /* 0x3615513E: mov esi, dword ptr [ebp - 0x10] */ 9094 MEM32(ebp + (-0x18)) = ebx; /* 0x36155141: mov dword ptr [ebp - 0x18], ebx */ 9095 MEM8(ebx + eax) = (uint8_t)(0); /* 0x36155144: mov byte ptr [ebx + eax], 0 */ 9096 L_36155148: 9097 edx = MEM32(ebp + 0xC); /* 0x36155148: mov edx, dword ptr [ebp + 0xc] */ 9098 eax = MEM32(ebp + 0x8); /* 0x3615514B: mov eax, dword ptr [ebp + 8] */ 9099 ecx = ebp + (-0x20); /* 0x3615514E: lea ecx, [ebp - 0x20] */ 9100 PUSH32(esp, ecx); /* 0x36155151: push ecx */ 9101 PUSH32(esp, edx); /* 0x36155152: push edx */ 9102 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9103 edi = 0; /* 0x36155153: xor edi, edi */ 9104 _cf = 0; 9105 _flag_k = FK_TEST; 9106 PUSH32(esp, eax); /* 0x36155155: push eax */ 9107 ecx = esi; /* 0x36155156: mov ecx, esi */ 9108 MEM32(ebp + (-0x4)) = edi; /* 0x36155158: mov dword ptr [ebp - 4], edi */ 9109 RECOMP_ICALL(0x36154C80u); /* 0x3615515B: call 0x36154c80 */ /* not lifted */ 9110 RECOMP_FLAGS_IN(); 9111 eax = MEM32(ebp + (-0x1C)); /* 0x36155160: mov eax, dword ptr [ebp - 0x1c] */ 9112 /* cmp eax, edi */ /* 0x36155163: cmp eax, edi */ 9113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9115 _flag_k = FK_CMP; 9116 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36155165: mov byte ptr [ebp - 4], 2 */ 9117 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155187; /* 0x36155169: je 0x36155187 */ 9118 L_3615516B: 9119 ecx = eax + (-0x1); /* 0x3615516B: lea ecx, [eax - 1] */ 9120 SET_LO8(eax, MEM8(ecx)); /* 0x3615516E: mov al, byte ptr [ecx] */ 9121 /* test LO8(eax), LO8(eax) */ /* 0x36155170: test al, al */ 9122 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9123 _cf = 0; 9124 _flag_k = FK_NARROW(FK_TEST, 24); 9125 if (TEST_Z(_flag_a, _flag_b)) goto L_3615517E; /* 0x36155172: je 0x3615517e */ 9126 L_36155174: 9127 /* cmp LO8(eax), 0xFFu */ /* 0x36155174: cmp al, 0xff */ 9128 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9130 _flag_k = FK_NARROW(FK_CMP, 24); 9131 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615517E; /* 0x36155176: je 0x3615517e */ 9132 L_36155178: 9133 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9134 SET_LO8(eax, LO8(eax) - 1); /* 0x36155178: dec al */ 9135 _flag_k = FK_NARROW(FK_DEC, 24); 9136 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3615517A: mov byte ptr [ecx], al */ 9137 goto L_36155187; /* 0x3615517C: jmp 0x36155187 */ 9138 L_3615517E: 9139 PUSH32(esp, ecx); /* 0x3615517E: push ecx */ 9140 RECOMP_ICALL(0x3615FCC4u); /* 0x3615517F: call 0x3615fcc4 */ /* not lifted */ 9141 RECOMP_FLAGS_IN(); 9142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9144 esp = esp + 4; /* 0x36155184: add esp, 4 */ 9145 _flag_k = FK_ADD; 9146 L_36155187: 9147 ecx = MEM32(ebp + 0x10); /* 0x36155187: mov ecx, dword ptr [ebp + 0x10] */ 9148 eax = MEM32(ebp + 0x14); /* 0x3615518A: mov eax, dword ptr [ebp + 0x14] */ 9149 MEM32(esi + 0x28) = ecx; /* 0x3615518D: mov dword ptr [esi + 0x28], ecx */ 9150 SET_LO8(edx, MEM8(eax)); /* 0x36155190: mov dl, byte ptr [eax] */ 9151 ecx = esi + 0x2C; /* 0x36155192: lea ecx, [esi + 0x2c] */ 9152 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x36155195: mov byte ptr [ecx], dl */ 9153 MEM32(ecx + 0x4) = edi; /* 0x36155197: mov dword ptr [ecx + 4], edi */ 9154 MEM32(ecx + 0x8) = edi; /* 0x3615519A: mov dword ptr [ecx + 8], edi */ 9155 MEM32(ecx + 0xC) = edi; /* 0x3615519D: mov dword ptr [ecx + 0xc], edi */ 9156 edx = MEM32(0x3616F010); /* 0x361551A0: mov edx, dword ptr [0x3616f010] */ 9157 edx = MEM32(edx); /* 0x361551A6: mov edx, dword ptr [edx] */ 9158 PUSH32(esp, edx); /* 0x361551A8: push edx */ 9159 PUSH32(esp, edi); /* 0x361551A9: push edi */ 9160 PUSH32(esp, eax); /* 0x361551AA: push eax */ 9161 MEM32(ebp + (-0x1C)) = edi; /* 0x361551AB: mov dword ptr [ebp - 0x1c], edi */ 9162 MEM32(ebp + (-0x18)) = edi; /* 0x361551AE: mov dword ptr [ebp - 0x18], edi */ 9163 MEM32(ebp + (-0x14)) = edi; /* 0x361551B1: mov dword ptr [ebp - 0x14], edi */ 9164 RECOMP_ICALL(MEM32(0x3616F024)); /* 0x361551B4: call dword ptr [0x3616f024] */ 9165 RECOMP_FLAGS_IN(); 9166 ecx = MEM32(ebp + (-0xC)); /* 0x361551BA: mov ecx, dword ptr [ebp - 0xc] */ 9167 edi = POP32_VAL(esp); /* 0x361551BD: pop edi */ 9168 MEM32(esi) = 0x36178BFCu; /* 0x361551BE: mov dword ptr [esi], 0x36178bfc */ 9169 eax = esi; /* 0x361551C4: mov eax, esi */ 9170 esi = POP32_VAL(esp); /* 0x361551C6: pop esi */ 9171 ebx = POP32_VAL(esp); /* 0x361551C7: pop ebx */ 9172 MEM32(FS_BASE + (0)) = ecx; /* 0x361551C8: mov dword ptr fs:[0], ecx */ 9173 esp = ebp; /* 0x361551CF: mov esp, ebp */ 9174 ebp = POP32_VAL(esp); /* 0x361551D1: pop ebp */ 9175 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x361551D2: ret 0x10 */ 9176 RECOMP_REGS_OUT(); 9177 } 9178 9179 void sub_361551E0(void) { 9180 int _fpu_cmp = 0; 9181 uint32_t _cf = 0; 9182 int _df = 1; 9183 uint32_t _flag_k = FK_NONE; 9184 uint32_t _flag_a = 0, _flag_b = 0; 9185 uint32_t _itail_tgt = 0; 9186 RECOMP_REGS_LOCALS 9187 RECOMP_ENTER(0x361551E0u); 9188 9189 L_361551E0: 9190 PUSH32(esp, esi); /* 0x361551E0: push esi */ 9191 esi = ecx; /* 0x361551E1: mov esi, ecx */ 9192 MEM32(esi) = 0x36178BFCu; /* 0x361551E3: mov dword ptr [esi], 0x36178bfc */ 9193 eax = MEM32(esi + 0x30); /* 0x361551E9: mov eax, dword ptr [esi + 0x30] */ 9194 /* test eax, eax */ /* 0x361551EC: test eax, eax */ 9195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9196 _cf = 0; 9197 _flag_k = FK_TEST; 9198 if (TEST_Z(_flag_a, _flag_b)) goto L_3615520C; /* 0x361551EE: je 0x3615520c */ 9199 L_361551F0: 9200 ecx = eax + (-0x1); /* 0x361551F0: lea ecx, [eax - 1] */ 9201 SET_LO8(eax, MEM8(ecx)); /* 0x361551F3: mov al, byte ptr [ecx] */ 9202 /* test LO8(eax), LO8(eax) */ /* 0x361551F5: test al, al */ 9203 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9204 _cf = 0; 9205 _flag_k = FK_NARROW(FK_TEST, 24); 9206 if (TEST_Z(_flag_a, _flag_b)) goto L_36155203; /* 0x361551F7: je 0x36155203 */ 9207 L_361551F9: 9208 /* cmp LO8(eax), 0xFFu */ /* 0x361551F9: cmp al, 0xff */ 9209 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9211 _flag_k = FK_NARROW(FK_CMP, 24); 9212 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155203; /* 0x361551FB: je 0x36155203 */ 9213 L_361551FD: 9214 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9215 SET_LO8(eax, LO8(eax) - 1); /* 0x361551FD: dec al */ 9216 _flag_k = FK_NARROW(FK_DEC, 24); 9217 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x361551FF: mov byte ptr [ecx], al */ 9218 goto L_3615520C; /* 0x36155201: jmp 0x3615520c */ 9219 L_36155203: 9220 PUSH32(esp, ecx); /* 0x36155203: push ecx */ 9221 RECOMP_ICALL(0x3615FCC4u); /* 0x36155204: call 0x3615fcc4 */ /* not lifted */ 9222 RECOMP_FLAGS_IN(); 9223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9225 esp = esp + 4; /* 0x36155209: add esp, 4 */ 9226 _flag_k = FK_ADD; 9227 L_3615520C: 9228 ecx = esi; /* 0x3615520C: mov ecx, esi */ 9229 MEM32(esi + 0x30) = 0; /* 0x3615520E: mov dword ptr [esi + 0x30], 0 */ 9230 MEM32(esi + 0x34) = 0; /* 0x36155215: mov dword ptr [esi + 0x34], 0 */ 9231 MEM32(esi + 0x38) = 0; /* 0x3615521C: mov dword ptr [esi + 0x38], 0 */ 9232 RECOMP_ICALL(0x36154D20u); /* 0x36155223: call 0x36154d20 */ /* not lifted */ 9233 RECOMP_FLAGS_IN(); 9234 esi = POP32_VAL(esp); /* 0x36155228: pop esi */ 9235 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155229: ret */ 9236 RECOMP_REGS_OUT(); 9237 } 9238 9239 void sub_36155230(void) { 9240 int _fpu_cmp = 0; 9241 uint32_t _cf = 0; 9242 int _df = 1; 9243 uint32_t _flag_k = FK_NONE; 9244 uint32_t _flag_a = 0, _flag_b = 0; 9245 uint32_t _itail_tgt = 0; 9246 RECOMP_REGS_LOCALS 9247 RECOMP_ENTER(0x36155230u); 9248 9249 L_36155230: 9250 PUSH32(esp, ebp); /* 0x36155230: push ebp */ 9251 ebp = esp; /* 0x36155231: mov ebp, esp */ 9252 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9254 esp = esp - 0xCu; /* 0x36155233: sub esp, 0xc */ 9255 _flag_k = FK_CMP; 9256 PUSH32(esp, ebx); /* 0x36155236: push ebx */ 9257 PUSH32(esp, esi); /* 0x36155237: push esi */ 9258 PUSH32(esp, edi); /* 0x36155238: push edi */ 9259 edi = MEM32(ebp + 0x8); /* 0x36155239: mov edi, dword ptr [ebp + 8] */ 9260 ebx = ecx; /* 0x3615523C: mov ebx, ecx */ 9261 PUSH32(esp, edi); /* 0x3615523E: push edi */ 9262 RECOMP_ICALL(0x36154D50u); /* 0x3615523F: call 0x36154d50 */ /* not lifted */ 9263 RECOMP_FLAGS_IN(); 9264 /* test eax, eax */ /* 0x36155244: test eax, eax */ 9265 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9266 _cf = 0; 9267 _flag_k = FK_TEST; 9268 if (TEST_NZ(_flag_a, _flag_b)) goto L_36155357; /* 0x36155246: jne 0x36155357 */ 9269 L_3615524C: 9270 esi = MEM32(0x3616FA8C); /* 0x3615524C: mov esi, dword ptr [0x3616fa8c] */ 9271 eax = ebx + 0x28; /* 0x36155252: lea eax, [ebx + 0x28] */ 9272 PUSH32(esp, eax); /* 0x36155255: push eax */ 9273 ecx = edi; /* 0x36155256: mov ecx, edi */ 9274 RECOMP_ICALL(esi); /* 0x36155258: call esi */ 9275 RECOMP_FLAGS_IN(); 9276 ecx = ebp + (-0x4); /* 0x3615525A: lea ecx, [ebp - 4] */ 9277 PUSH32(esp, ecx); /* 0x3615525D: push ecx */ 9278 ecx = edi; /* 0x3615525E: mov ecx, edi */ 9279 MEM32(ebp + (-0x4)) = 0; /* 0x36155260: mov dword ptr [ebp - 4], 0 */ 9280 RECOMP_ICALL(esi); /* 0x36155267: call esi */ 9281 RECOMP_FLAGS_IN(); 9282 eax = MEM32(ebp + (-0x4)); /* 0x36155269: mov eax, dword ptr [ebp - 4] */ 9283 /* cmp eax, 0x3E8u */ /* 0x3615526C: cmp eax, 0x3e8 */ 9284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3E8u); 9285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9286 _flag_k = FK_CMP; 9287 if (CMP_LE(_flag_a, _flag_b)) goto L_36155281; /* 0x36155271: jle 0x36155281 */ 9288 L_36155273: 9289 edi = POP32_VAL(esp); /* 0x36155273: pop edi */ 9290 esi = POP32_VAL(esp); /* 0x36155274: pop esi */ 9291 eax = 1; /* 0x36155275: mov eax, 1 */ 9292 ebx = POP32_VAL(esp); /* 0x3615527A: pop ebx */ 9293 esp = ebp; /* 0x3615527B: mov esp, ebp */ 9294 ebp = POP32_VAL(esp); /* 0x3615527D: pop ebp */ 9295 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615527E: ret 4 */ 9296 L_36155281: 9297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9298 eax = eax + 1; /* 0x36155281: inc eax */ 9299 _flag_k = FK_INC; 9300 PUSH32(esp, eax); /* 0x36155282: push eax */ 9301 RECOMP_ICALL(0x3615FD6Au); /* 0x36155283: call 0x3615fd6a */ /* not lifted */ 9302 RECOMP_FLAGS_IN(); 9303 edx = MEM32(ebp + (-0x4)); /* 0x36155288: mov edx, dword ptr [ebp - 4] */ 9304 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9305 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9306 esp = esp + 4; /* 0x3615528B: add esp, 4 */ 9307 _flag_k = FK_ADD; 9308 esi = eax; /* 0x3615528E: mov esi, eax */ 9309 PUSH32(esp, edx); /* 0x36155290: push edx */ 9310 PUSH32(esp, esi); /* 0x36155291: push esi */ 9311 ecx = edi; /* 0x36155292: mov ecx, edi */ 9312 MEM32(ebp + (-0xC)) = esi; /* 0x36155294: mov dword ptr [ebp - 0xc], esi */ 9313 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36155297: call dword ptr [0x3616fac4] */ 9314 RECOMP_FLAGS_IN(); 9315 eax = MEM32(ebp + (-0x4)); /* 0x3615529D: mov eax, dword ptr [ebp - 4] */ 9316 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9317 ecx = ecx | 0xFFFFFFFFu; /* 0x361552A0: or ecx, 0xffffffff */ 9318 _cf = 0; 9319 _flag_k = FK_TEST; 9320 MEM8(esi + eax) = (uint8_t)(0); /* 0x361552A3: mov byte ptr [esi + eax], 0 */ 9321 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9322 eax = 0; /* 0x361552A7: xor eax, eax */ 9323 _cf = 0; 9324 _flag_k = FK_TEST; 9325 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x2Cu); 9326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9327 ebx = ebx + 0x2Cu; /* 0x361552A9: add ebx, 0x2c */ 9328 _flag_k = FK_ADD; 9329 edi = esi; /* 0x361552AC: mov edi, esi */ 9330 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; } /* 0x361552AE: repne scasb al, byte ptr es:[edi] */ 9331 ecx = ~ecx; /* 0x361552B0: not ecx */ 9332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9333 ecx = ecx - 1; /* 0x361552B2: dec ecx */ 9334 _flag_k = FK_DEC; 9335 edi = ecx; /* 0x361552B3: mov edi, ecx */ 9336 /* cmp edi, 0xFFFFFFFDu */ /* 0x361552B5: cmp edi, -3 */ 9337 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu); 9338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9339 _flag_k = FK_CMP; 9340 MEM32(ebp + (-0x8)) = edi; /* 0x361552B8: mov dword ptr [ebp - 8], edi */ 9341 if (CMP_BE(_flag_a, _flag_b)) goto L_361552C3; /* 0x361552BB: jbe 0x361552c3 */ 9342 L_361552BD: 9343 RECOMP_ICALL(MEM32(0x3616F104)); /* 0x361552BD: call dword ptr [0x3616f104] */ 9344 RECOMP_FLAGS_IN(); 9345 L_361552C3: 9346 ecx = MEM32(ebx + 0x4); /* 0x361552C3: mov ecx, dword ptr [ebx + 4] */ 9347 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9348 edx = 0; /* 0x361552C6: xor edx, edx */ 9349 _cf = 0; 9350 _flag_k = FK_TEST; 9351 /* cmp ecx, edx */ /* 0x361552C8: cmp ecx, edx */ 9352 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9354 _flag_k = FK_CMP; 9355 MEM32(ebx + 0x8) = edx; /* 0x361552CA: mov dword ptr [ebx + 8], edx */ 9356 if (CMP_EQ(_flag_a, _flag_b)) goto L_361552EE; /* 0x361552CD: je 0x361552ee */ 9357 L_361552CF: 9358 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x361552CF: mov al, byte ptr [ecx - 1] */ 9359 /* test LO8(eax), LO8(eax) */ /* 0x361552D2: test al, al */ 9360 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9361 _cf = 0; 9362 _flag_k = FK_NARROW(FK_TEST, 24); 9363 if (TEST_Z(_flag_a, _flag_b)) goto L_361552EE; /* 0x361552D4: je 0x361552ee */ 9364 L_361552D6: 9365 /* cmp LO8(eax), 0xFFu */ /* 0x361552D6: cmp al, 0xff */ 9366 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9368 _flag_k = FK_NARROW(FK_CMP, 24); 9369 if (CMP_EQ(_flag_a, _flag_b)) goto L_361552EE; /* 0x361552D8: je 0x361552ee */ 9370 L_361552DA: 9371 /* cmp edi, edx */ /* 0x361552DA: cmp edi, edx */ 9372 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 9373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9374 _flag_k = FK_CMP; 9375 if (CMP_NE(_flag_a, _flag_b)) goto L_36155314; /* 0x361552DC: jne 0x36155314 */ 9376 L_361552DE: 9377 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9378 SET_LO8(eax, LO8(eax) - 1); /* 0x361552DE: dec al */ 9379 _flag_k = FK_NARROW(FK_DEC, 24); 9380 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x361552E0: mov byte ptr [ecx - 1], al */ 9381 MEM32(ebx + 0x4) = edx; /* 0x361552E3: mov dword ptr [ebx + 4], edx */ 9382 MEM32(ebx + 0x8) = edx; /* 0x361552E6: mov dword ptr [ebx + 8], edx */ 9383 MEM32(ebx + 0xC) = edx; /* 0x361552E9: mov dword ptr [ebx + 0xc], edx */ 9384 goto L_36155340; /* 0x361552EC: jmp 0x36155340 */ 9385 L_361552EE: 9386 /* cmp edi, edx */ /* 0x361552EE: cmp edi, edx */ 9387 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 9388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9389 _flag_k = FK_CMP; 9390 if (CMP_NE(_flag_a, _flag_b)) goto L_361552FE; /* 0x361552F0: jne 0x361552fe */ 9391 L_361552F2: 9392 PUSH32(esp, 1); /* 0x361552F2: push 1 */ 9393 ecx = ebx; /* 0x361552F4: mov ecx, ebx */ 9394 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x361552F6: call dword ptr [0x3616f100] */ 9395 RECOMP_FLAGS_IN(); 9396 goto L_36155340; /* 0x361552FC: jmp 0x36155340 */ 9397 L_361552FE: 9398 eax = MEM32(ebx + 0xC); /* 0x361552FE: mov eax, dword ptr [ebx + 0xc] */ 9399 /* cmp eax, 0x1Fu */ /* 0x36155301: cmp eax, 0x1f */ 9400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 9401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9402 _flag_k = FK_CMP; 9403 if (CMP_A(_flag_a, _flag_b)) goto L_3615530A; /* 0x36155304: ja 0x3615530a */ 9404 L_36155306: 9405 /* cmp eax, edi */ /* 0x36155306: cmp eax, edi */ 9406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9408 _flag_k = FK_CMP; 9409 if (CMP_AE(_flag_a, _flag_b)) goto L_3615531D; /* 0x36155308: jae 0x3615531d */ 9410 L_3615530A: 9411 PUSH32(esp, 1); /* 0x3615530A: push 1 */ 9412 ecx = ebx; /* 0x3615530C: mov ecx, ebx */ 9413 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3615530E: call dword ptr [0x3616f100] */ 9414 RECOMP_FLAGS_IN(); 9415 L_36155314: 9416 PUSH32(esp, edi); /* 0x36155314: push edi */ 9417 ecx = ebx; /* 0x36155315: mov ecx, ebx */ 9418 RECOMP_ICALL(MEM32(0x3616F048)); /* 0x36155317: call dword ptr [0x3616f048] */ 9419 RECOMP_FLAGS_IN(); 9420 L_3615531D: 9421 eax = MEM32(ebp + (-0x8)); /* 0x3615531D: mov eax, dword ptr [ebp - 8] */ 9422 ecx = edi; /* 0x36155320: mov ecx, edi */ 9423 edi = MEM32(ebx + 0x4); /* 0x36155322: mov edi, dword ptr [ebx + 4] */ 9424 edx = ecx; /* 0x36155325: mov edx, ecx */ 9425 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36155327: shr ecx, 2 */ 9426 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9427 ecx = ecx >> 2u; /* 0x36155327: shr ecx, 2 */ 9428 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3615532A: 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; } 9429 ecx = edx; /* 0x3615532C: mov ecx, edx */ 9430 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9431 ecx = ecx & 3; /* 0x3615532E: and ecx, 3 */ 9432 _cf = 0; 9433 _flag_k = FK_TEST; 9434 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36155331: 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; } 9435 ecx = MEM32(ebx + 0x4); /* 0x36155333: mov ecx, dword ptr [ebx + 4] */ 9436 esi = MEM32(ebp + (-0xC)); /* 0x36155336: mov esi, dword ptr [ebp - 0xc] */ 9437 MEM32(ebx + 0x8) = eax; /* 0x36155339: mov dword ptr [ebx + 8], eax */ 9438 MEM8(ecx + eax) = (uint8_t)(0); /* 0x3615533C: mov byte ptr [ecx + eax], 0 */ 9439 L_36155340: 9440 PUSH32(esp, esi); /* 0x36155340: push esi */ 9441 RECOMP_ICALL(0x3615FCC4u); /* 0x36155341: call 0x3615fcc4 */ /* not lifted */ 9442 RECOMP_FLAGS_IN(); 9443 ecx = MEM32(ebp + 0x8); /* 0x36155346: mov ecx, dword ptr [ebp + 8] */ 9444 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9446 esp = esp + 4; /* 0x36155349: add esp, 4 */ 9447 _flag_k = FK_ADD; 9448 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3615534C: call dword ptr [0x3616fadc] */ 9449 RECOMP_FLAGS_IN(); 9450 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 9451 _cf = (eax) != 0; 9452 eax = (uint32_t)(-(int32_t)eax); /* 0x36155352: neg eax */ 9453 _flag_k = FK_CMP; 9454 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36155354: sbb eax, eax */ 9455 eax = _sc ? 0xFFFFFFFFu : 0; 9456 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9457 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9459 eax = eax + 1; /* 0x36155356: inc eax */ 9460 _flag_k = FK_INC; 9461 L_36155357: 9462 edi = POP32_VAL(esp); /* 0x36155357: pop edi */ 9463 esi = POP32_VAL(esp); /* 0x36155358: pop esi */ 9464 ebx = POP32_VAL(esp); /* 0x36155359: pop ebx */ 9465 esp = ebp; /* 0x3615535A: mov esp, ebp */ 9466 ebp = POP32_VAL(esp); /* 0x3615535C: pop ebp */ 9467 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615535D: ret 4 */ 9468 RECOMP_REGS_OUT(); 9469 } 9470 9471 void sub_36155360(void) { 9472 int _fpu_cmp = 0; 9473 uint32_t _cf = 0; 9474 int _df = 1; 9475 uint32_t _flag_k = FK_NONE; 9476 uint32_t _flag_a = 0, _flag_b = 0; 9477 uint32_t _itail_tgt = 0; 9478 RECOMP_REGS_LOCALS 9479 RECOMP_ENTER(0x36155360u); 9480 9481 L_36155360: 9482 PUSH32(esp, ebp); /* 0x36155360: push ebp */ 9483 ebp = esp; /* 0x36155361: mov ebp, esp */ 9484 PUSH32(esp, ebx); /* 0x36155363: push ebx */ 9485 PUSH32(esp, esi); /* 0x36155364: push esi */ 9486 PUSH32(esp, edi); /* 0x36155365: push edi */ 9487 edi = MEM32(ebp + 0x8); /* 0x36155366: mov edi, dword ptr [ebp + 8] */ 9488 esi = ecx; /* 0x36155369: mov esi, ecx */ 9489 PUSH32(esp, edi); /* 0x3615536B: push edi */ 9490 RECOMP_ICALL(0x36154DB0u); /* 0x3615536C: call 0x36154db0 */ /* not lifted */ 9491 RECOMP_FLAGS_IN(); 9492 eax = MEM32(esi + 0x28); /* 0x36155371: mov eax, dword ptr [esi + 0x28] */ 9493 PUSH32(esp, eax); /* 0x36155374: push eax */ 9494 ecx = edi; /* 0x36155375: mov ecx, edi */ 9495 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36155377: call dword ptr [0x3616faec] */ 9496 RECOMP_FLAGS_IN(); 9497 ebx = MEM32(esi + 0x34); /* 0x3615537D: mov ebx, dword ptr [esi + 0x34] */ 9498 PUSH32(esp, ebx); /* 0x36155380: push ebx */ 9499 ecx = edi; /* 0x36155381: mov ecx, edi */ 9500 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x36155383: call dword ptr [0x3616faec] */ 9501 RECOMP_FLAGS_IN(); 9502 esi = MEM32(esi + 0x30); /* 0x36155389: mov esi, dword ptr [esi + 0x30] */ 9503 /* test esi, esi */ /* 0x3615538C: test esi, esi */ 9504 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9505 _cf = 0; 9506 _flag_k = FK_TEST; 9507 if (TEST_NZ(_flag_a, _flag_b)) goto L_36155396; /* 0x3615538E: jne 0x36155396 */ 9508 L_36155390: 9509 esi = MEM32(0x3616F10C); /* 0x36155390: mov esi, dword ptr [0x3616f10c] */ 9510 L_36155396: 9511 PUSH32(esp, ebx); /* 0x36155396: push ebx */ 9512 PUSH32(esp, esi); /* 0x36155397: push esi */ 9513 ecx = edi; /* 0x36155398: mov ecx, edi */ 9514 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x3615539A: call dword ptr [0x3616fab0] */ 9515 RECOMP_FLAGS_IN(); 9516 edi = POP32_VAL(esp); /* 0x361553A0: pop edi */ 9517 esi = POP32_VAL(esp); /* 0x361553A1: pop esi */ 9518 ebx = POP32_VAL(esp); /* 0x361553A2: pop ebx */ 9519 ebp = POP32_VAL(esp); /* 0x361553A3: pop ebp */ 9520 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361553A4: ret 4 */ 9521 RECOMP_REGS_OUT(); 9522 } 9523 9524 void sub_361553B0(void) { 9525 int _fpu_cmp = 0; 9526 uint32_t _cf = 0; 9527 int _df = 1; 9528 uint32_t _flag_k = FK_NONE; 9529 uint32_t _flag_a = 0, _flag_b = 0; 9530 uint32_t _itail_tgt = 0; 9531 RECOMP_REGS_LOCALS 9532 RECOMP_ENTER(0x361553B0u); 9533 9534 L_361553B0: 9535 PUSH32(esp, ebp); /* 0x361553B0: push ebp */ 9536 ebp = esp; /* 0x361553B1: mov ebp, esp */ 9537 PUSH32(esp, 0xFFFFFFFFu); /* 0x361553B3: push -1 */ 9538 PUSH32(esp, 0x3616DB88u); /* 0x361553B5: push 0x3616db88 */ 9539 eax = MEM32(FS_BASE + (0)); /* 0x361553BA: mov eax, dword ptr fs:[0] */ 9540 PUSH32(esp, eax); /* 0x361553C0: push eax */ 9541 MEM32(FS_BASE + (0)) = esp; /* 0x361553C1: mov dword ptr fs:[0], esp */ 9542 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 9543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9544 esp = esp - 0x48u; /* 0x361553C8: sub esp, 0x48 */ 9545 _flag_k = FK_CMP; 9546 PUSH32(esp, ebx); /* 0x361553CB: push ebx */ 9547 PUSH32(esp, esi); /* 0x361553CC: push esi */ 9548 PUSH32(esp, edi); /* 0x361553CD: push edi */ 9549 esi = ecx; /* 0x361553CE: mov esi, ecx */ 9550 PUSH32(esp, 0xFFFFFFFFu); /* 0x361553D0: push -1 */ 9551 ecx = ebp + (-0x54); /* 0x361553D2: lea ecx, [ebp - 0x54] */ 9552 RECOMP_ICALL(MEM32(0x3616F358)); /* 0x361553D5: call dword ptr [0x3616f358] */ 9553 RECOMP_FLAGS_IN(); 9554 eax = MEM32(esi + 0x28); /* 0x361553DB: mov eax, dword ptr [esi + 0x28] */ 9555 PUSH32(esp, eax); /* 0x361553DE: push eax */ 9556 PUSH32(esp, 0x362E86ACu); /* 0x361553DF: push 0x362e86ac */ 9557 ecx = ebp + (-0x54); /* 0x361553E4: lea ecx, [ebp - 0x54] */ 9558 MEM32(ebp + (-0x4)) = 0; /* 0x361553E7: mov dword ptr [ebp - 4], 0 */ 9559 RECOMP_ICALL(MEM32(0x3616F354)); /* 0x361553EE: call dword ptr [0x3616f354] */ 9560 RECOMP_FLAGS_IN(); 9561 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu); 9562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9563 esi = esi + 0x2Cu; /* 0x361553F4: add esi, 0x2c */ 9564 _flag_k = FK_ADD; 9565 PUSH32(esp, esi); /* 0x361553F7: push esi */ 9566 PUSH32(esp, 0x362E8664u); /* 0x361553F8: push 0x362e8664 */ 9567 ecx = ebp + (-0x54); /* 0x361553FD: lea ecx, [ebp - 0x54] */ 9568 RECOMP_ICALL(MEM32(0x3616F350)); /* 0x36155400: call dword ptr [0x3616f350] */ 9569 RECOMP_FLAGS_IN(); 9570 ecx = ebp + (-0x54); /* 0x36155406: lea ecx, [ebp - 0x54] */ 9571 RECOMP_ICALL(MEM32(0x3616F348)); /* 0x36155409: call dword ptr [0x3616f348] */ 9572 RECOMP_FLAGS_IN(); 9573 esi = eax; /* 0x3615540F: mov esi, eax */ 9574 PUSH32(esp, esi); /* 0x36155411: push esi */ 9575 RECOMP_ICALL(0x3615FD6Au); /* 0x36155412: call 0x3615fd6a */ /* not lifted */ 9576 RECOMP_FLAGS_IN(); 9577 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9578 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9579 esp = esp + 4; /* 0x36155417: add esp, 4 */ 9580 _flag_k = FK_ADD; 9581 edi = eax; /* 0x3615541A: mov edi, eax */ 9582 PUSH32(esp, edi); /* 0x3615541C: push edi */ 9583 ecx = ebp + (-0x54); /* 0x3615541D: lea ecx, [ebp - 0x54] */ 9584 RECOMP_ICALL(MEM32(0x3616F344)); /* 0x36155420: call dword ptr [0x3616f344] */ 9585 RECOMP_FLAGS_IN(); 9586 ebx = MEM32(0x3616F304); /* 0x36155426: mov ebx, dword ptr [0x3616f304] */ 9587 PUSH32(esp, esi); /* 0x3615542C: push esi */ 9588 PUSH32(esp, edi); /* 0x3615542D: push edi */ 9589 PUSH32(esp, 0xCFu); /* 0x3615542E: push 0xcf */ 9590 PUSH32(esp, 0x25u); /* 0x36155433: push 0x25 */ 9591 RECOMP_ICALL(ebx); /* 0x36155435: call ebx */ 9592 RECOMP_FLAGS_IN(); 9593 ecx = eax; /* 0x36155437: mov ecx, eax */ 9594 RECOMP_ICALL(MEM32(0x3616F310)); /* 0x36155439: call dword ptr [0x3616f310] */ 9595 RECOMP_FLAGS_IN(); 9596 PUSH32(esp, esi); /* 0x3615543F: push esi */ 9597 RECOMP_ICALL(ebx); /* 0x36155440: call ebx */ 9598 RECOMP_FLAGS_IN(); 9599 ecx = eax; /* 0x36155442: mov ecx, eax */ 9600 RECOMP_ICALL(MEM32(0x3616F2FC)); /* 0x36155444: call dword ptr [0x3616f2fc] */ 9601 RECOMP_FLAGS_IN(); 9602 PUSH32(esp, edi); /* 0x3615544A: push edi */ 9603 RECOMP_ICALL(0x3615FCC4u); /* 0x3615544B: call 0x3615fcc4 */ /* not lifted */ 9604 RECOMP_FLAGS_IN(); 9605 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9607 esp = esp + 4; /* 0x36155450: add esp, 4 */ 9608 _flag_k = FK_ADD; 9609 MEM32(ebp + (-0x54)) = 0x36178B8Cu; /* 0x36155453: mov dword ptr [ebp - 0x54], 0x36178b8c */ 9610 ecx = ebp + (-0x54); /* 0x3615545A: lea ecx, [ebp - 0x54] */ 9611 MEM32(ebp + (-0x4)) = 2; /* 0x3615545D: mov dword ptr [ebp - 4], 2 */ 9612 RECOMP_ICALL(MEM32(0x3616F34C)); /* 0x36155464: call dword ptr [0x3616f34c] */ 9613 RECOMP_FLAGS_IN(); 9614 ecx = MEM32(ebp + (-0x20)); /* 0x3615546A: mov ecx, dword ptr [ebp - 0x20] */ 9615 PUSH32(esp, ecx); /* 0x3615546D: push ecx */ 9616 RECOMP_ICALL(0x3615FCC4u); /* 0x3615546E: call 0x3615fcc4 */ /* not lifted */ 9617 RECOMP_FLAGS_IN(); 9618 eax = MEM32(ebp + (-0x4C)); /* 0x36155473: mov eax, dword ptr [ebp - 0x4c] */ 9619 edx = MEM32(ebp + (-0x40)); /* 0x36155476: mov edx, dword ptr [ebp - 0x40] */ 9620 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9621 ebx = 0; /* 0x36155479: xor ebx, ebx */ 9622 _cf = 0; 9623 _flag_k = FK_TEST; 9624 MEM32(ebp + (-0x20)) = ebx; /* 0x3615547B: mov dword ptr [ebp - 0x20], ebx */ 9625 MEM32(ebp + (-0x1C)) = ebx; /* 0x3615547E: mov dword ptr [ebp - 0x1c], ebx */ 9626 MEM32(ebp + (-0x18)) = ebx; /* 0x36155481: mov dword ptr [ebp - 0x18], ebx */ 9627 ecx = MEM32(eax); /* 0x36155484: mov ecx, dword ptr [eax] */ 9628 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9630 esp = esp + 4; /* 0x36155486: add esp, 4 */ 9631 _flag_k = FK_ADD; 9632 /* cmp edx, ebx */ /* 0x36155489: cmp edx, ebx */ 9633 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 9634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9635 _flag_k = FK_CMP; 9636 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3615548B: mov dword ptr [ebp - 4], 0xffffffff */ 9637 esi = eax; /* 0x36155492: mov esi, eax */ 9638 MEM32(ebp + (-0x10)) = ecx; /* 0x36155494: mov dword ptr [ebp - 0x10], ecx */ 9639 if (CMP_EQ(_flag_a, _flag_b)) goto L_361554C4; /* 0x36155497: je 0x361554c4 */ 9640 L_36155499: 9641 edx = ecx; /* 0x36155499: mov edx, ecx */ 9642 /* cmp ecx, edx */ /* 0x3615549B: cmp ecx, edx */ 9643 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9645 _flag_k = FK_CMP; 9646 if (CMP_NE(_flag_a, _flag_b)) goto L_361554C4; /* 0x3615549D: jne 0x361554c4 */ 9647 L_3615549F: 9648 edx = MEM32(eax + 0x4); /* 0x3615549F: mov edx, dword ptr [eax + 4] */ 9649 PUSH32(esp, edx); /* 0x361554A2: push edx */ 9650 ecx = ebp + (-0x50); /* 0x361554A3: lea ecx, [ebp - 0x50] */ 9651 RECOMP_ICALL(0x361547A0u); /* 0x361554A6: call 0x361547a0 */ /* not lifted */ 9652 RECOMP_FLAGS_IN(); 9653 eax = MEM32(ebp + (-0x4C)); /* 0x361554AB: mov eax, dword ptr [ebp - 0x4c] */ 9654 ecx = MEM32(ebp + (-0x48)); /* 0x361554AE: mov ecx, dword ptr [ebp - 0x48] */ 9655 MEM32(eax + 0x4) = ecx; /* 0x361554B1: mov dword ptr [eax + 4], ecx */ 9656 eax = MEM32(ebp + (-0x4C)); /* 0x361554B4: mov eax, dword ptr [ebp - 0x4c] */ 9657 MEM32(ebp + (-0x40)) = ebx; /* 0x361554B7: mov dword ptr [ebp - 0x40], ebx */ 9658 MEM32(eax) = eax; /* 0x361554BA: mov dword ptr [eax], eax */ 9659 eax = MEM32(ebp + (-0x4C)); /* 0x361554BC: mov eax, dword ptr [ebp - 0x4c] */ 9660 MEM32(eax + 0x8) = eax; /* 0x361554BF: mov dword ptr [eax + 8], eax */ 9661 goto L_361554E6; /* 0x361554C2: jmp 0x361554e6 */ 9662 L_361554C4: 9663 /* cmp ecx, eax */ /* 0x361554C4: cmp ecx, eax */ 9664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9666 _flag_k = FK_CMP; 9667 if (CMP_EQ(_flag_a, _flag_b)) goto L_361554E9; /* 0x361554C6: je 0x361554e9 */ 9668 L_361554C8: 9669 edi = ecx; /* 0x361554C8: mov edi, ecx */ 9670 ecx = ebp + (-0x10); /* 0x361554CA: lea ecx, [ebp - 0x10] */ 9671 RECOMP_ICALL(0x361547F0u); /* 0x361554CD: call 0x361547f0 */ /* not lifted */ 9672 RECOMP_FLAGS_IN(); 9673 PUSH32(esp, edi); /* 0x361554D2: push edi */ 9674 edx = ebp + (-0x14); /* 0x361554D3: lea edx, [ebp - 0x14] */ 9675 PUSH32(esp, edx); /* 0x361554D6: push edx */ 9676 ecx = ebp + (-0x50); /* 0x361554D7: lea ecx, [ebp - 0x50] */ 9677 RECOMP_ICALL(0x361543D0u); /* 0x361554DA: call 0x361543d0 */ /* not lifted */ 9678 RECOMP_FLAGS_IN(); 9679 ecx = MEM32(ebp + (-0x10)); /* 0x361554DF: mov ecx, dword ptr [ebp - 0x10] */ 9680 /* cmp ecx, esi */ /* 0x361554E2: cmp ecx, esi */ 9681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 9682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9683 _flag_k = FK_CMP; 9684 RECOMP_BACKEDGE(); 9685 if (CMP_NE(_flag_a, _flag_b)) goto L_361554C8; /* 0x361554E4: jne 0x361554c8 */ 9686 L_361554E6: 9687 eax = MEM32(ebp + (-0x4C)); /* 0x361554E6: mov eax, dword ptr [ebp - 0x4c] */ 9688 L_361554E9: 9689 PUSH32(esp, eax); /* 0x361554E9: push eax */ 9690 RECOMP_ICALL(0x3615FCC4u); /* 0x361554EA: call 0x3615fcc4 */ /* not lifted */ 9691 RECOMP_FLAGS_IN(); 9692 eax = MEM32(ebp + (-0x48)); /* 0x361554EF: mov eax, dword ptr [ebp - 0x48] */ 9693 PUSH32(esp, eax); /* 0x361554F2: push eax */ 9694 MEM32(ebp + (-0x4C)) = ebx; /* 0x361554F3: mov dword ptr [ebp - 0x4c], ebx */ 9695 MEM32(ebp + (-0x40)) = ebx; /* 0x361554F6: mov dword ptr [ebp - 0x40], ebx */ 9696 RECOMP_ICALL(0x3615FCC4u); /* 0x361554F9: call 0x3615fcc4 */ /* not lifted */ 9697 RECOMP_FLAGS_IN(); 9698 ecx = MEM32(ebp + (-0xC)); /* 0x361554FE: mov ecx, dword ptr [ebp - 0xc] */ 9699 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9700 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9701 esp = esp + 8; /* 0x36155501: add esp, 8 */ 9702 _flag_k = FK_ADD; 9703 edi = POP32_VAL(esp); /* 0x36155504: pop edi */ 9704 esi = POP32_VAL(esp); /* 0x36155505: pop esi */ 9705 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9706 eax = 0; /* 0x36155506: xor eax, eax */ 9707 _cf = 0; 9708 _flag_k = FK_TEST; 9709 ebx = POP32_VAL(esp); /* 0x36155508: pop ebx */ 9710 MEM32(FS_BASE + (0)) = ecx; /* 0x36155509: mov dword ptr fs:[0], ecx */ 9711 esp = ebp; /* 0x36155510: mov esp, ebp */ 9712 ebp = POP32_VAL(esp); /* 0x36155512: pop ebp */ 9713 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155513: ret */ 9714 RECOMP_REGS_OUT(); 9715 } 9716 9717 void sub_36155520(void) { 9718 int _fpu_cmp = 0; 9719 uint32_t _cf = 0; 9720 int _df = 1; 9721 uint32_t _flag_k = FK_NONE; 9722 uint32_t _flag_a = 0, _flag_b = 0; 9723 uint32_t _itail_tgt = 0; 9724 RECOMP_REGS_LOCALS 9725 RECOMP_ENTER(0x36155520u); 9726 9727 L_36155520: 9728 goto L_36155530; /* 0x36155520: jmp 0x36155530 */ 9729 L_36155530: 9730 MEM8(0x3630DB1C) = (uint8_t)(1); /* 0x36155530: mov byte ptr [0x3630db1c], 1 */ 9731 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155537: ret */ 9732 RECOMP_REGS_OUT(); 9733 } 9734 9735 void sub_36155530(void) { 9736 int _fpu_cmp = 0; 9737 uint32_t _cf = 0; 9738 int _df = 1; 9739 uint32_t _flag_k = FK_NONE; 9740 uint32_t _flag_a = 0, _flag_b = 0; 9741 uint32_t _itail_tgt = 0; 9742 RECOMP_REGS_LOCALS 9743 RECOMP_ENTER(0x36155530u); 9744 9745 L_36155530: 9746 MEM8(0x3630DB1C) = (uint8_t)(1); /* 0x36155530: mov byte ptr [0x3630db1c], 1 */ 9747 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155537: ret */ 9748 RECOMP_REGS_OUT(); 9749 } 9750 9751 void sub_36155540(void) { 9752 int _fpu_cmp = 0; 9753 uint32_t _cf = 0; 9754 int _df = 1; 9755 uint32_t _flag_k = FK_NONE; 9756 uint32_t _flag_a = 0, _flag_b = 0; 9757 uint32_t _itail_tgt = 0; 9758 RECOMP_REGS_LOCALS 9759 RECOMP_ENTER(0x36155540u); 9760 9761 L_36155540: 9762 PUSH32(esp, esi); /* 0x36155540: push esi */ 9763 esi = ecx; /* 0x36155541: mov esi, ecx */ 9764 RECOMP_ICALL(0x36154D30u); /* 0x36155543: call 0x36154d30 */ /* not lifted */ 9765 RECOMP_FLAGS_IN(); 9766 MEM32(esi) = 0x36178C20u; /* 0x36155548: mov dword ptr [esi], 0x36178c20 */ 9767 MEM32(esi + 0x28) = 1; /* 0x3615554E: mov dword ptr [esi + 0x28], 1 */ 9768 eax = esi; /* 0x36155555: mov eax, esi */ 9769 esi = POP32_VAL(esp); /* 0x36155557: pop esi */ 9770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155558: ret */ 9771 RECOMP_REGS_OUT(); 9772 } 9773 9774 void sub_36155560(void) { 9775 int _fpu_cmp = 0; 9776 uint32_t _cf = 0; 9777 int _df = 1; 9778 uint32_t _flag_k = FK_NONE; 9779 uint32_t _flag_a = 0, _flag_b = 0; 9780 uint32_t _itail_tgt = 0; 9781 RECOMP_REGS_LOCALS 9782 RECOMP_ENTER(0x36155560u); 9783 9784 L_36155560: 9785 PUSH32(esp, ebp); /* 0x36155560: push ebp */ 9786 ebp = esp; /* 0x36155561: mov ebp, esp */ 9787 PUSH32(esp, esi); /* 0x36155563: push esi */ 9788 esi = ecx; /* 0x36155564: mov esi, ecx */ 9789 RECOMP_ICALL(0x36155680u); /* 0x36155566: call 0x36155680 */ /* not lifted */ 9790 RECOMP_FLAGS_IN(); 9791 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615556B: test byte ptr [ebp + 8], 1 */ 9792 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9793 _cf = 0; 9794 _flag_k = FK_NARROW(FK_TEST, 24); 9795 if (TEST_Z(_flag_a, _flag_b)) goto L_3615557A; /* 0x3615556F: je 0x3615557a */ 9796 L_36155571: 9797 PUSH32(esp, esi); /* 0x36155571: push esi */ 9798 RECOMP_ICALL(0x3615FCC4u); /* 0x36155572: call 0x3615fcc4 */ /* not lifted */ 9799 RECOMP_FLAGS_IN(); 9800 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9801 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9802 esp = esp + 4; /* 0x36155577: add esp, 4 */ 9803 _flag_k = FK_ADD; 9804 L_3615557A: 9805 eax = esi; /* 0x3615557A: mov eax, esi */ 9806 esi = POP32_VAL(esp); /* 0x3615557C: pop esi */ 9807 ebp = POP32_VAL(esp); /* 0x3615557D: pop ebp */ 9808 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615557E: ret 4 */ 9809 RECOMP_REGS_OUT(); 9810 } 9811 9812 void sub_36155590(void) { 9813 int _fpu_cmp = 0; 9814 uint32_t _cf = 0; 9815 int _df = 1; 9816 uint32_t _flag_k = FK_NONE; 9817 uint32_t _flag_a = 0, _flag_b = 0; 9818 uint32_t _itail_tgt = 0; 9819 RECOMP_REGS_LOCALS 9820 RECOMP_ENTER(0x36155590u); 9821 9822 L_36155590: 9823 PUSH32(esp, ebp); /* 0x36155590: push ebp */ 9824 ebp = esp; /* 0x36155591: mov ebp, esp */ 9825 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155593: push -1 */ 9826 PUSH32(esp, 0x3616DBA9u); /* 0x36155595: push 0x3616dba9 */ 9827 eax = MEM32(FS_BASE + (0)); /* 0x3615559A: mov eax, dword ptr fs:[0] */ 9828 PUSH32(esp, eax); /* 0x361555A0: push eax */ 9829 MEM32(FS_BASE + (0)) = esp; /* 0x361555A1: mov dword ptr fs:[0], esp */ 9830 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9832 esp = esp - 0x14u; /* 0x361555A8: sub esp, 0x14 */ 9833 _flag_k = FK_CMP; 9834 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x361555AB: mov al, byte ptr [ebp + 0xf] */ 9835 PUSH32(esp, ebx); /* 0x361555AE: push ebx */ 9836 PUSH32(esp, esi); /* 0x361555AF: push esi */ 9837 esi = ecx; /* 0x361555B0: mov esi, ecx */ 9838 PUSH32(esp, edi); /* 0x361555B2: push edi */ 9839 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9840 ecx = ecx | 0xFFFFFFFFu; /* 0x361555B3: or ecx, 0xffffffff */ 9841 _cf = 0; 9842 _flag_k = FK_TEST; 9843 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x361555B6: mov byte ptr [ebp - 0x20], al */ 9844 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9845 eax = 0; /* 0x361555B9: xor eax, eax */ 9846 _cf = 0; 9847 _flag_k = FK_TEST; 9848 edi = 0x361B3FD4u; /* 0x361555BB: mov edi, 0x361b3fd4 */ 9849 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; } /* 0x361555C0: repne scasb al, byte ptr es:[edi] */ 9850 ecx = ~ecx; /* 0x361555C2: not ecx */ 9851 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9852 ecx = ecx - 1; /* 0x361555C4: dec ecx */ 9853 _flag_k = FK_DEC; 9854 ebx = ecx; /* 0x361555C5: mov ebx, ecx */ 9855 PUSH32(esp, 1); /* 0x361555C7: push 1 */ 9856 PUSH32(esp, ebx); /* 0x361555C9: push ebx */ 9857 ecx = ebp + (-0x20); /* 0x361555CA: lea ecx, [ebp - 0x20] */ 9858 MEM32(ebp + (-0x10)) = esi; /* 0x361555CD: mov dword ptr [ebp - 0x10], esi */ 9859 MEM32(ebp + (-0x1C)) = eax; /* 0x361555D0: mov dword ptr [ebp - 0x1c], eax */ 9860 MEM32(ebp + (-0x18)) = eax; /* 0x361555D3: mov dword ptr [ebp - 0x18], eax */ 9861 MEM32(ebp + (-0x14)) = eax; /* 0x361555D6: mov dword ptr [ebp - 0x14], eax */ 9862 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361555D9: call dword ptr [0x3616f00c] */ 9863 RECOMP_FLAGS_IN(); 9864 /* test LO8(eax), LO8(eax) */ /* 0x361555DF: test al, al */ 9865 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9866 _cf = 0; 9867 _flag_k = FK_NARROW(FK_TEST, 24); 9868 if (TEST_Z(_flag_a, _flag_b)) goto L_36155608; /* 0x361555E1: je 0x36155608 */ 9869 L_361555E3: 9870 edi = MEM32(ebp + (-0x1C)); /* 0x361555E3: mov edi, dword ptr [ebp - 0x1c] */ 9871 ecx = ebx; /* 0x361555E6: mov ecx, ebx */ 9872 edx = ecx; /* 0x361555E8: mov edx, ecx */ 9873 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x361555EA: shr ecx, 2 */ 9874 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9875 ecx = ecx >> 2u; /* 0x361555EA: shr ecx, 2 */ 9876 esi = 0x361B3FD4u; /* 0x361555ED: mov esi, 0x361b3fd4 */ 9877 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x361555F2: 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; } 9878 ecx = edx; /* 0x361555F4: mov ecx, edx */ 9879 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9880 ecx = ecx & 3; /* 0x361555F6: and ecx, 3 */ 9881 _cf = 0; 9882 _flag_k = FK_TEST; 9883 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x361555F9: 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; } 9884 eax = MEM32(ebp + (-0x1C)); /* 0x361555FB: mov eax, dword ptr [ebp - 0x1c] */ 9885 esi = MEM32(ebp + (-0x10)); /* 0x361555FE: mov esi, dword ptr [ebp - 0x10] */ 9886 MEM32(ebp + (-0x18)) = ebx; /* 0x36155601: mov dword ptr [ebp - 0x18], ebx */ 9887 MEM8(eax + ebx) = (uint8_t)(0); /* 0x36155604: mov byte ptr [eax + ebx], 0 */ 9888 L_36155608: 9889 edx = MEM32(ebp + 0xC); /* 0x36155608: mov edx, dword ptr [ebp + 0xc] */ 9890 eax = MEM32(ebp + 0x8); /* 0x3615560B: mov eax, dword ptr [ebp + 8] */ 9891 ecx = ebp + (-0x20); /* 0x3615560E: lea ecx, [ebp - 0x20] */ 9892 PUSH32(esp, ecx); /* 0x36155611: push ecx */ 9893 PUSH32(esp, edx); /* 0x36155612: push edx */ 9894 PUSH32(esp, eax); /* 0x36155613: push eax */ 9895 ecx = esi; /* 0x36155614: mov ecx, esi */ 9896 MEM32(ebp + (-0x4)) = 0; /* 0x36155616: mov dword ptr [ebp - 4], 0 */ 9897 RECOMP_ICALL(0x36154C80u); /* 0x3615561D: call 0x36154c80 */ /* not lifted */ 9898 RECOMP_FLAGS_IN(); 9899 eax = MEM32(ebp + (-0x1C)); /* 0x36155622: mov eax, dword ptr [ebp - 0x1c] */ 9900 /* test eax, eax */ /* 0x36155625: test eax, eax */ 9901 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9902 _cf = 0; 9903 _flag_k = FK_TEST; 9904 if (TEST_Z(_flag_a, _flag_b)) goto L_36155645; /* 0x36155627: je 0x36155645 */ 9905 L_36155629: 9906 ecx = eax + (-0x1); /* 0x36155629: lea ecx, [eax - 1] */ 9907 SET_LO8(eax, MEM8(ecx)); /* 0x3615562C: mov al, byte ptr [ecx] */ 9908 /* test LO8(eax), LO8(eax) */ /* 0x3615562E: test al, al */ 9909 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9910 _cf = 0; 9911 _flag_k = FK_NARROW(FK_TEST, 24); 9912 if (TEST_Z(_flag_a, _flag_b)) goto L_3615563C; /* 0x36155630: je 0x3615563c */ 9913 L_36155632: 9914 /* cmp LO8(eax), 0xFFu */ /* 0x36155632: cmp al, 0xff */ 9915 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9917 _flag_k = FK_NARROW(FK_CMP, 24); 9918 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615563C; /* 0x36155634: je 0x3615563c */ 9919 L_36155636: 9920 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9921 SET_LO8(eax, LO8(eax) - 1); /* 0x36155636: dec al */ 9922 _flag_k = FK_NARROW(FK_DEC, 24); 9923 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36155638: mov byte ptr [ecx], al */ 9924 goto L_36155645; /* 0x3615563A: jmp 0x36155645 */ 9925 L_3615563C: 9926 PUSH32(esp, ecx); /* 0x3615563C: push ecx */ 9927 RECOMP_ICALL(0x3615FCC4u); /* 0x3615563D: call 0x3615fcc4 */ /* not lifted */ 9928 RECOMP_FLAGS_IN(); 9929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9931 esp = esp + 4; /* 0x36155642: add esp, 4 */ 9932 _flag_k = FK_ADD; 9933 L_36155645: 9934 ecx = MEM32(ebp + 0x14); /* 0x36155645: mov ecx, dword ptr [ebp + 0x14] */ 9935 edx = MEM32(ebp + 0x10); /* 0x36155648: mov edx, dword ptr [ebp + 0x10] */ 9936 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 9937 ecx = ecx & 0xFFu; /* 0x3615564B: and ecx, 0xff */ 9938 _cf = 0; 9939 _flag_k = FK_TEST; 9940 MEM32(esi + 0x28) = ecx; /* 0x36155651: mov dword ptr [esi + 0x28], ecx */ 9941 ecx = MEM32(ebp + (-0xC)); /* 0x36155654: mov ecx, dword ptr [ebp - 0xc] */ 9942 edi = POP32_VAL(esp); /* 0x36155657: pop edi */ 9943 MEM32(esi) = 0x36178C20u; /* 0x36155658: mov dword ptr [esi], 0x36178c20 */ 9944 MEM32(esi + 0x2C) = edx; /* 0x3615565E: mov dword ptr [esi + 0x2c], edx */ 9945 eax = esi; /* 0x36155661: mov eax, esi */ 9946 esi = POP32_VAL(esp); /* 0x36155663: pop esi */ 9947 ebx = POP32_VAL(esp); /* 0x36155664: pop ebx */ 9948 MEM32(FS_BASE + (0)) = ecx; /* 0x36155665: mov dword ptr fs:[0], ecx */ 9949 esp = ebp; /* 0x3615566C: mov esp, ebp */ 9950 ebp = POP32_VAL(esp); /* 0x3615566E: pop ebp */ 9951 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3615566F: ret 0x10 */ 9952 RECOMP_REGS_OUT(); 9953 } 9954 9955 void sub_36155680(void) { 9956 int _fpu_cmp = 0; 9957 uint32_t _cf = 0; 9958 int _df = 1; 9959 uint32_t _flag_k = FK_NONE; 9960 uint32_t _flag_a = 0, _flag_b = 0; 9961 uint32_t _itail_tgt = 0; 9962 RECOMP_REGS_LOCALS 9963 RECOMP_ENTER(0x36155680u); 9964 9965 goto L_36155680; 9966 L_36154D20: 9967 MEM32(ecx) = 0x36178BD8u; /* 0x36154D20: mov dword ptr [ecx], 0x36178bd8 */ 9968 L_36154D26: 9969 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 9970 L_36155680: 9971 MEM32(ecx) = 0x36178C20u; /* 0x36155680: mov dword ptr [ecx], 0x36178c20 */ 9972 L_36155686: 9973 RECOMP_BACKEDGE(); 9974 goto L_36154D20; /* 0x36155686: jmp 0x36154d20 */ 9975 { RECOMP_REGS_OUT(); return; } /* end of function */ 9976 _ljump: 9977 switch (_itail_tgt) { 9978 case 0x36154D20u: goto L_36154D20; 9979 case 0x36154D26u: goto L_36154D26; 9980 case 0x36155680u: goto L_36155680; 9981 case 0x36155686u: goto L_36155686; 9982 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9983 } 9984 RECOMP_REGS_OUT(); 9985 } 9986 9987 void sub_36155690(void) { 9988 int _fpu_cmp = 0; 9989 uint32_t _cf = 0; 9990 int _df = 1; 9991 uint32_t _flag_k = FK_NONE; 9992 uint32_t _flag_a = 0, _flag_b = 0; 9993 uint32_t _itail_tgt = 0; 9994 RECOMP_REGS_LOCALS 9995 RECOMP_ENTER(0x36155690u); 9996 9997 L_36155690: 9998 PUSH32(esp, ebp); /* 0x36155690: push ebp */ 9999 ebp = esp; /* 0x36155691: mov ebp, esp */ 10000 PUSH32(esp, esi); /* 0x36155693: push esi */ 10001 PUSH32(esp, edi); /* 0x36155694: push edi */ 10002 edi = MEM32(ebp + 0x8); /* 0x36155695: mov edi, dword ptr [ebp + 8] */ 10003 esi = ecx; /* 0x36155698: mov esi, ecx */ 10004 PUSH32(esp, edi); /* 0x3615569A: push edi */ 10005 RECOMP_ICALL(0x36154D50u); /* 0x3615569B: call 0x36154d50 */ /* not lifted */ 10006 RECOMP_FLAGS_IN(); 10007 /* test eax, eax */ /* 0x361556A0: test eax, eax */ 10008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10009 _cf = 0; 10010 _flag_k = FK_TEST; 10011 if (TEST_NZ(_flag_a, _flag_b)) goto L_361556D7; /* 0x361556A2: jne 0x361556d7 */ 10012 L_361556A4: 10013 PUSH32(esp, ebx); /* 0x361556A4: push ebx */ 10014 ebx = MEM32(0x3616FA8C); /* 0x361556A5: mov ebx, dword ptr [0x3616fa8c] */ 10015 eax = ebp + 0x8; /* 0x361556AB: lea eax, [ebp + 8] */ 10016 PUSH32(esp, eax); /* 0x361556AE: push eax */ 10017 ecx = edi; /* 0x361556AF: mov ecx, edi */ 10018 RECOMP_ICALL(ebx); /* 0x361556B1: call ebx */ 10019 RECOMP_FLAGS_IN(); 10020 edx = MEM32(ebp + 0x8); /* 0x361556B3: mov edx, dword ptr [ebp + 8] */ 10021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10022 ecx = 0; /* 0x361556B6: xor ecx, ecx */ 10023 _cf = 0; 10024 _flag_k = FK_TEST; 10025 /* cmp edx, 1 */ /* 0x361556B8: cmp edx, 1 */ 10026 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 10027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10028 _flag_k = FK_CMP; 10029 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361556BB: sete cl */ 10030 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu); 10031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10032 esi = esi + 0x2Cu; /* 0x361556BE: add esi, 0x2c */ 10033 _flag_k = FK_ADD; 10034 PUSH32(esp, esi); /* 0x361556C1: push esi */ 10035 MEM32(esi + (-0x4)) = ecx; /* 0x361556C2: mov dword ptr [esi - 4], ecx */ 10036 ecx = edi; /* 0x361556C5: mov ecx, edi */ 10037 RECOMP_ICALL(ebx); /* 0x361556C7: call ebx */ 10038 RECOMP_FLAGS_IN(); 10039 ecx = edi; /* 0x361556C9: mov ecx, edi */ 10040 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361556CB: call dword ptr [0x3616fadc] */ 10041 RECOMP_FLAGS_IN(); 10042 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 10043 _cf = (eax) != 0; 10044 eax = (uint32_t)(-(int32_t)eax); /* 0x361556D1: neg eax */ 10045 _flag_k = FK_CMP; 10046 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361556D3: sbb eax, eax */ 10047 eax = _sc ? 0xFFFFFFFFu : 0; 10048 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10049 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10051 eax = eax + 1; /* 0x361556D5: inc eax */ 10052 _flag_k = FK_INC; 10053 ebx = POP32_VAL(esp); /* 0x361556D6: pop ebx */ 10054 L_361556D7: 10055 edi = POP32_VAL(esp); /* 0x361556D7: pop edi */ 10056 esi = POP32_VAL(esp); /* 0x361556D8: pop esi */ 10057 ebp = POP32_VAL(esp); /* 0x361556D9: pop ebp */ 10058 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361556DA: ret 4 */ 10059 RECOMP_REGS_OUT(); 10060 } 10061 10062 void sub_361556E0(void) { 10063 int _fpu_cmp = 0; 10064 uint32_t _cf = 0; 10065 int _df = 1; 10066 uint32_t _flag_k = FK_NONE; 10067 uint32_t _flag_a = 0, _flag_b = 0; 10068 uint32_t _itail_tgt = 0; 10069 RECOMP_REGS_LOCALS 10070 RECOMP_ENTER(0x361556E0u); 10071 10072 L_361556E0: 10073 PUSH32(esp, ebp); /* 0x361556E0: push ebp */ 10074 ebp = esp; /* 0x361556E1: mov ebp, esp */ 10075 PUSH32(esp, ebx); /* 0x361556E3: push ebx */ 10076 PUSH32(esp, esi); /* 0x361556E4: push esi */ 10077 PUSH32(esp, edi); /* 0x361556E5: push edi */ 10078 edi = MEM32(ebp + 0x8); /* 0x361556E6: mov edi, dword ptr [ebp + 8] */ 10079 esi = ecx; /* 0x361556E9: mov esi, ecx */ 10080 PUSH32(esp, edi); /* 0x361556EB: push edi */ 10081 RECOMP_ICALL(0x36154DB0u); /* 0x361556EC: call 0x36154db0 */ /* not lifted */ 10082 RECOMP_FLAGS_IN(); 10083 edx = MEM32(esi + 0x28); /* 0x361556F1: mov edx, dword ptr [esi + 0x28] */ 10084 ebx = MEM32(0x3616FAEC); /* 0x361556F4: mov ebx, dword ptr [0x3616faec] */ 10085 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10086 eax = 0; /* 0x361556FA: xor eax, eax */ 10087 _cf = 0; 10088 _flag_k = FK_TEST; 10089 /* test edx, edx */ /* 0x361556FC: test edx, edx */ 10090 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 10091 _cf = 0; 10092 _flag_k = FK_TEST; 10093 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x361556FE: setne al */ 10094 ecx = edi; /* 0x36155701: mov ecx, edi */ 10095 PUSH32(esp, eax); /* 0x36155703: push eax */ 10096 RECOMP_ICALL(ebx); /* 0x36155704: call ebx */ 10097 RECOMP_FLAGS_IN(); 10098 ecx = MEM32(esi + 0x2C); /* 0x36155706: mov ecx, dword ptr [esi + 0x2c] */ 10099 PUSH32(esp, ecx); /* 0x36155709: push ecx */ 10100 ecx = edi; /* 0x3615570A: mov ecx, edi */ 10101 RECOMP_ICALL(ebx); /* 0x3615570C: call ebx */ 10102 RECOMP_FLAGS_IN(); 10103 edi = POP32_VAL(esp); /* 0x3615570E: pop edi */ 10104 esi = POP32_VAL(esp); /* 0x3615570F: pop esi */ 10105 ebx = POP32_VAL(esp); /* 0x36155710: pop ebx */ 10106 ebp = POP32_VAL(esp); /* 0x36155711: pop ebp */ 10107 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155712: ret 4 */ 10108 RECOMP_REGS_OUT(); 10109 } 10110 10111 void sub_36155720(void) { 10112 int _fpu_cmp = 0; 10113 uint32_t _cf = 0; 10114 int _df = 1; 10115 uint32_t _flag_k = FK_NONE; 10116 uint32_t _flag_a = 0, _flag_b = 0; 10117 uint32_t _itail_tgt = 0; 10118 RECOMP_REGS_LOCALS 10119 RECOMP_ENTER(0x36155720u); 10120 10121 L_36155720: 10122 goto L_36155730; /* 0x36155720: jmp 0x36155730 */ 10123 L_36155730: 10124 MEM8(0x3630DB20) = (uint8_t)(1); /* 0x36155730: mov byte ptr [0x3630db20], 1 */ 10125 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155737: ret */ 10126 RECOMP_REGS_OUT(); 10127 } 10128 10129 void sub_36155730(void) { 10130 int _fpu_cmp = 0; 10131 uint32_t _cf = 0; 10132 int _df = 1; 10133 uint32_t _flag_k = FK_NONE; 10134 uint32_t _flag_a = 0, _flag_b = 0; 10135 uint32_t _itail_tgt = 0; 10136 RECOMP_REGS_LOCALS 10137 RECOMP_ENTER(0x36155730u); 10138 10139 L_36155730: 10140 MEM8(0x3630DB20) = (uint8_t)(1); /* 0x36155730: mov byte ptr [0x3630db20], 1 */ 10141 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155737: ret */ 10142 RECOMP_REGS_OUT(); 10143 } 10144 10145 void sub_36155740(void) { 10146 int _fpu_cmp = 0; 10147 uint32_t _cf = 0; 10148 int _df = 1; 10149 uint32_t _flag_k = FK_NONE; 10150 uint32_t _flag_a = 0, _flag_b = 0; 10151 uint32_t _itail_tgt = 0; 10152 RECOMP_REGS_LOCALS 10153 RECOMP_ENTER(0x36155740u); 10154 10155 L_36155740: 10156 PUSH32(esp, esi); /* 0x36155740: push esi */ 10157 esi = ecx; /* 0x36155741: mov esi, ecx */ 10158 RECOMP_ICALL(0x36154D30u); /* 0x36155743: call 0x36154d30 */ /* not lifted */ 10159 RECOMP_FLAGS_IN(); 10160 MEM32(esi) = 0x36178C44u; /* 0x36155748: mov dword ptr [esi], 0x36178c44 */ 10161 eax = esi; /* 0x3615574E: mov eax, esi */ 10162 esi = POP32_VAL(esp); /* 0x36155750: pop esi */ 10163 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155751: ret */ 10164 RECOMP_REGS_OUT(); 10165 } 10166 10167 void sub_36155760(void) { 10168 int _fpu_cmp = 0; 10169 uint32_t _cf = 0; 10170 int _df = 1; 10171 uint32_t _flag_k = FK_NONE; 10172 uint32_t _flag_a = 0, _flag_b = 0; 10173 uint32_t _itail_tgt = 0; 10174 RECOMP_REGS_LOCALS 10175 RECOMP_ENTER(0x36155760u); 10176 10177 L_36155760: 10178 PUSH32(esp, ebp); /* 0x36155760: push ebp */ 10179 ebp = esp; /* 0x36155761: mov ebp, esp */ 10180 PUSH32(esp, esi); /* 0x36155763: push esi */ 10181 esi = ecx; /* 0x36155764: mov esi, ecx */ 10182 RECOMP_ICALL(0x36155860u); /* 0x36155766: call 0x36155860 */ /* not lifted */ 10183 RECOMP_FLAGS_IN(); 10184 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615576B: test byte ptr [ebp + 8], 1 */ 10185 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10186 _cf = 0; 10187 _flag_k = FK_NARROW(FK_TEST, 24); 10188 if (TEST_Z(_flag_a, _flag_b)) goto L_3615577A; /* 0x3615576F: je 0x3615577a */ 10189 L_36155771: 10190 PUSH32(esp, esi); /* 0x36155771: push esi */ 10191 RECOMP_ICALL(0x3615FCC4u); /* 0x36155772: call 0x3615fcc4 */ /* not lifted */ 10192 RECOMP_FLAGS_IN(); 10193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10195 esp = esp + 4; /* 0x36155777: add esp, 4 */ 10196 _flag_k = FK_ADD; 10197 L_3615577A: 10198 eax = esi; /* 0x3615577A: mov eax, esi */ 10199 esi = POP32_VAL(esp); /* 0x3615577C: pop esi */ 10200 ebp = POP32_VAL(esp); /* 0x3615577D: pop ebp */ 10201 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615577E: ret 4 */ 10202 RECOMP_REGS_OUT(); 10203 } 10204 10205 void sub_36155790(void) { 10206 int _fpu_cmp = 0; 10207 uint32_t _cf = 0; 10208 int _df = 1; 10209 uint32_t _flag_k = FK_NONE; 10210 uint32_t _flag_a = 0, _flag_b = 0; 10211 uint32_t _itail_tgt = 0; 10212 RECOMP_REGS_LOCALS 10213 RECOMP_ENTER(0x36155790u); 10214 10215 L_36155790: 10216 PUSH32(esp, ebp); /* 0x36155790: push ebp */ 10217 ebp = esp; /* 0x36155791: mov ebp, esp */ 10218 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155793: push -1 */ 10219 PUSH32(esp, 0x3616DBC9u); /* 0x36155795: push 0x3616dbc9 */ 10220 eax = MEM32(FS_BASE + (0)); /* 0x3615579A: mov eax, dword ptr fs:[0] */ 10221 PUSH32(esp, eax); /* 0x361557A0: push eax */ 10222 MEM32(FS_BASE + (0)) = esp; /* 0x361557A1: mov dword ptr fs:[0], esp */ 10223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10225 esp = esp - 0x14u; /* 0x361557A8: sub esp, 0x14 */ 10226 _flag_k = FK_CMP; 10227 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x361557AB: mov al, byte ptr [ebp + 0xf] */ 10228 PUSH32(esp, ebx); /* 0x361557AE: push ebx */ 10229 PUSH32(esp, esi); /* 0x361557AF: push esi */ 10230 esi = ecx; /* 0x361557B0: mov esi, ecx */ 10231 PUSH32(esp, edi); /* 0x361557B2: push edi */ 10232 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10233 ecx = ecx | 0xFFFFFFFFu; /* 0x361557B3: or ecx, 0xffffffff */ 10234 _cf = 0; 10235 _flag_k = FK_TEST; 10236 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x361557B6: mov byte ptr [ebp - 0x20], al */ 10237 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10238 eax = 0; /* 0x361557B9: xor eax, eax */ 10239 _cf = 0; 10240 _flag_k = FK_TEST; 10241 edi = 0x361B4000u; /* 0x361557BB: mov edi, 0x361b4000 */ 10242 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; } /* 0x361557C0: repne scasb al, byte ptr es:[edi] */ 10243 ecx = ~ecx; /* 0x361557C2: not ecx */ 10244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10245 ecx = ecx - 1; /* 0x361557C4: dec ecx */ 10246 _flag_k = FK_DEC; 10247 ebx = ecx; /* 0x361557C5: mov ebx, ecx */ 10248 PUSH32(esp, 1); /* 0x361557C7: push 1 */ 10249 PUSH32(esp, ebx); /* 0x361557C9: push ebx */ 10250 ecx = ebp + (-0x20); /* 0x361557CA: lea ecx, [ebp - 0x20] */ 10251 MEM32(ebp + (-0x10)) = esi; /* 0x361557CD: mov dword ptr [ebp - 0x10], esi */ 10252 MEM32(ebp + (-0x1C)) = eax; /* 0x361557D0: mov dword ptr [ebp - 0x1c], eax */ 10253 MEM32(ebp + (-0x18)) = eax; /* 0x361557D3: mov dword ptr [ebp - 0x18], eax */ 10254 MEM32(ebp + (-0x14)) = eax; /* 0x361557D6: mov dword ptr [ebp - 0x14], eax */ 10255 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x361557D9: call dword ptr [0x3616f00c] */ 10256 RECOMP_FLAGS_IN(); 10257 /* test LO8(eax), LO8(eax) */ /* 0x361557DF: test al, al */ 10258 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10259 _cf = 0; 10260 _flag_k = FK_NARROW(FK_TEST, 24); 10261 if (TEST_Z(_flag_a, _flag_b)) goto L_36155808; /* 0x361557E1: je 0x36155808 */ 10262 L_361557E3: 10263 edi = MEM32(ebp + (-0x1C)); /* 0x361557E3: mov edi, dword ptr [ebp - 0x1c] */ 10264 ecx = ebx; /* 0x361557E6: mov ecx, ebx */ 10265 edx = ecx; /* 0x361557E8: mov edx, ecx */ 10266 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x361557EA: shr ecx, 2 */ 10267 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10268 ecx = ecx >> 2u; /* 0x361557EA: shr ecx, 2 */ 10269 esi = 0x361B4000u; /* 0x361557ED: mov esi, 0x361b4000 */ 10270 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x361557F2: 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; } 10271 ecx = edx; /* 0x361557F4: mov ecx, edx */ 10272 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10273 ecx = ecx & 3; /* 0x361557F6: and ecx, 3 */ 10274 _cf = 0; 10275 _flag_k = FK_TEST; 10276 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x361557F9: 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; } 10277 eax = MEM32(ebp + (-0x1C)); /* 0x361557FB: mov eax, dword ptr [ebp - 0x1c] */ 10278 esi = MEM32(ebp + (-0x10)); /* 0x361557FE: mov esi, dword ptr [ebp - 0x10] */ 10279 MEM32(ebp + (-0x18)) = ebx; /* 0x36155801: mov dword ptr [ebp - 0x18], ebx */ 10280 MEM8(eax + ebx) = (uint8_t)(0); /* 0x36155804: mov byte ptr [eax + ebx], 0 */ 10281 L_36155808: 10282 edx = MEM32(ebp + 0xC); /* 0x36155808: mov edx, dword ptr [ebp + 0xc] */ 10283 eax = MEM32(ebp + 0x8); /* 0x3615580B: mov eax, dword ptr [ebp + 8] */ 10284 ecx = ebp + (-0x20); /* 0x3615580E: lea ecx, [ebp - 0x20] */ 10285 PUSH32(esp, ecx); /* 0x36155811: push ecx */ 10286 PUSH32(esp, edx); /* 0x36155812: push edx */ 10287 PUSH32(esp, eax); /* 0x36155813: push eax */ 10288 ecx = esi; /* 0x36155814: mov ecx, esi */ 10289 MEM32(ebp + (-0x4)) = 0; /* 0x36155816: mov dword ptr [ebp - 4], 0 */ 10290 RECOMP_ICALL(0x36154C80u); /* 0x3615581D: call 0x36154c80 */ /* not lifted */ 10291 RECOMP_FLAGS_IN(); 10292 eax = MEM32(ebp + (-0x1C)); /* 0x36155822: mov eax, dword ptr [ebp - 0x1c] */ 10293 /* test eax, eax */ /* 0x36155825: test eax, eax */ 10294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10295 _cf = 0; 10296 _flag_k = FK_TEST; 10297 if (TEST_Z(_flag_a, _flag_b)) goto L_36155845; /* 0x36155827: je 0x36155845 */ 10298 L_36155829: 10299 ecx = eax + (-0x1); /* 0x36155829: lea ecx, [eax - 1] */ 10300 SET_LO8(eax, MEM8(ecx)); /* 0x3615582C: mov al, byte ptr [ecx] */ 10301 /* test LO8(eax), LO8(eax) */ /* 0x3615582E: test al, al */ 10302 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10303 _cf = 0; 10304 _flag_k = FK_NARROW(FK_TEST, 24); 10305 if (TEST_Z(_flag_a, _flag_b)) goto L_3615583C; /* 0x36155830: je 0x3615583c */ 10306 L_36155832: 10307 /* cmp LO8(eax), 0xFFu */ /* 0x36155832: cmp al, 0xff */ 10308 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10310 _flag_k = FK_NARROW(FK_CMP, 24); 10311 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615583C; /* 0x36155834: je 0x3615583c */ 10312 L_36155836: 10313 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10314 SET_LO8(eax, LO8(eax) - 1); /* 0x36155836: dec al */ 10315 _flag_k = FK_NARROW(FK_DEC, 24); 10316 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36155838: mov byte ptr [ecx], al */ 10317 goto L_36155845; /* 0x3615583A: jmp 0x36155845 */ 10318 L_3615583C: 10319 PUSH32(esp, ecx); /* 0x3615583C: push ecx */ 10320 RECOMP_ICALL(0x3615FCC4u); /* 0x3615583D: call 0x3615fcc4 */ /* not lifted */ 10321 RECOMP_FLAGS_IN(); 10322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10324 esp = esp + 4; /* 0x36155842: add esp, 4 */ 10325 _flag_k = FK_ADD; 10326 L_36155845: 10327 ecx = MEM32(ebp + (-0xC)); /* 0x36155845: mov ecx, dword ptr [ebp - 0xc] */ 10328 edi = POP32_VAL(esp); /* 0x36155848: pop edi */ 10329 MEM32(esi) = 0x36178C44u; /* 0x36155849: mov dword ptr [esi], 0x36178c44 */ 10330 eax = esi; /* 0x3615584F: mov eax, esi */ 10331 esi = POP32_VAL(esp); /* 0x36155851: pop esi */ 10332 ebx = POP32_VAL(esp); /* 0x36155852: pop ebx */ 10333 MEM32(FS_BASE + (0)) = ecx; /* 0x36155853: mov dword ptr fs:[0], ecx */ 10334 esp = ebp; /* 0x3615585A: mov esp, ebp */ 10335 ebp = POP32_VAL(esp); /* 0x3615585C: pop ebp */ 10336 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615585D: ret 8 */ 10337 RECOMP_REGS_OUT(); 10338 } 10339 10340 void sub_36155860(void) { 10341 int _fpu_cmp = 0; 10342 uint32_t _cf = 0; 10343 int _df = 1; 10344 uint32_t _flag_k = FK_NONE; 10345 uint32_t _flag_a = 0, _flag_b = 0; 10346 uint32_t _itail_tgt = 0; 10347 RECOMP_REGS_LOCALS 10348 RECOMP_ENTER(0x36155860u); 10349 10350 goto L_36155860; 10351 L_36154D20: 10352 MEM32(ecx) = 0x36178BD8u; /* 0x36154D20: mov dword ptr [ecx], 0x36178bd8 */ 10353 L_36154D26: 10354 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 10355 L_36155860: 10356 MEM32(ecx) = 0x36178C44u; /* 0x36155860: mov dword ptr [ecx], 0x36178c44 */ 10357 L_36155866: 10358 RECOMP_BACKEDGE(); 10359 goto L_36154D20; /* 0x36155866: jmp 0x36154d20 */ 10360 { RECOMP_REGS_OUT(); return; } /* end of function */ 10361 _ljump: 10362 switch (_itail_tgt) { 10363 case 0x36154D20u: goto L_36154D20; 10364 case 0x36154D26u: goto L_36154D26; 10365 case 0x36155860u: goto L_36155860; 10366 case 0x36155866u: goto L_36155866; 10367 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10368 } 10369 RECOMP_REGS_OUT(); 10370 } 10371 10372 void sub_36155870(void) { 10373 int _fpu_cmp = 0; 10374 uint32_t _cf = 0; 10375 int _df = 1; 10376 uint32_t _flag_k = FK_NONE; 10377 uint32_t _flag_a = 0, _flag_b = 0; 10378 uint32_t _itail_tgt = 0; 10379 RECOMP_REGS_LOCALS 10380 RECOMP_ENTER(0x36155870u); 10381 10382 L_36155870: 10383 PUSH32(esp, ebp); /* 0x36155870: push ebp */ 10384 ebp = esp; /* 0x36155871: mov ebp, esp */ 10385 PUSH32(esp, esi); /* 0x36155873: push esi */ 10386 esi = MEM32(ebp + 0x8); /* 0x36155874: mov esi, dword ptr [ebp + 8] */ 10387 PUSH32(esp, esi); /* 0x36155877: push esi */ 10388 RECOMP_ICALL(0x36154D50u); /* 0x36155878: call 0x36154d50 */ /* not lifted */ 10389 RECOMP_FLAGS_IN(); 10390 /* test eax, eax */ /* 0x3615587D: test eax, eax */ 10391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10392 _cf = 0; 10393 _flag_k = FK_TEST; 10394 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615588E; /* 0x3615587F: jne 0x3615588e */ 10395 L_36155881: 10396 ecx = esi; /* 0x36155881: mov ecx, esi */ 10397 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36155883: call dword ptr [0x3616fadc] */ 10398 RECOMP_FLAGS_IN(); 10399 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 10400 _cf = (eax) != 0; 10401 eax = (uint32_t)(-(int32_t)eax); /* 0x36155889: neg eax */ 10402 _flag_k = FK_CMP; 10403 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3615588B: sbb eax, eax */ 10404 eax = _sc ? 0xFFFFFFFFu : 0; 10405 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10406 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10407 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10408 eax = eax + 1; /* 0x3615588D: inc eax */ 10409 _flag_k = FK_INC; 10410 L_3615588E: 10411 esi = POP32_VAL(esp); /* 0x3615588E: pop esi */ 10412 ebp = POP32_VAL(esp); /* 0x3615588F: pop ebp */ 10413 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155890: ret 4 */ 10414 RECOMP_REGS_OUT(); 10415 } 10416 10417 void sub_361558A0(void) { 10418 int _fpu_cmp = 0; 10419 uint32_t _cf = 0; 10420 int _df = 1; 10421 uint32_t _flag_k = FK_NONE; 10422 uint32_t _flag_a = 0, _flag_b = 0; 10423 uint32_t _itail_tgt = 0; 10424 RECOMP_REGS_LOCALS 10425 RECOMP_ENTER(0x361558A0u); 10426 10427 L_361558A0: 10428 PUSH32(esp, ebp); /* 0x361558A0: push ebp */ 10429 ebp = esp; /* 0x361558A1: mov ebp, esp */ 10430 eax = MEM32(ebp + 0x8); /* 0x361558A3: mov eax, dword ptr [ebp + 8] */ 10431 PUSH32(esp, eax); /* 0x361558A6: push eax */ 10432 RECOMP_ICALL(0x36154DB0u); /* 0x361558A7: call 0x36154db0 */ /* not lifted */ 10433 RECOMP_FLAGS_IN(); 10434 ebp = POP32_VAL(esp); /* 0x361558AC: pop ebp */ 10435 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361558AD: ret 4 */ 10436 RECOMP_REGS_OUT(); 10437 } 10438 10439 void sub_361558B0(void) { 10440 int _fpu_cmp = 0; 10441 uint32_t _cf = 0; 10442 int _df = 1; 10443 uint32_t _flag_k = FK_NONE; 10444 uint32_t _flag_a = 0, _flag_b = 0; 10445 uint32_t _itail_tgt = 0; 10446 RECOMP_REGS_LOCALS 10447 RECOMP_ENTER(0x361558B0u); 10448 10449 L_361558B0: 10450 goto L_361558C0; /* 0x361558B0: jmp 0x361558c0 */ 10451 L_361558C0: 10452 MEM8(0x3630DB24) = (uint8_t)(1); /* 0x361558C0: mov byte ptr [0x3630db24], 1 */ 10453 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361558C7: ret */ 10454 RECOMP_REGS_OUT(); 10455 } 10456 10457 void sub_361558C0(void) { 10458 int _fpu_cmp = 0; 10459 uint32_t _cf = 0; 10460 int _df = 1; 10461 uint32_t _flag_k = FK_NONE; 10462 uint32_t _flag_a = 0, _flag_b = 0; 10463 uint32_t _itail_tgt = 0; 10464 RECOMP_REGS_LOCALS 10465 RECOMP_ENTER(0x361558C0u); 10466 10467 L_361558C0: 10468 MEM8(0x3630DB24) = (uint8_t)(1); /* 0x361558C0: mov byte ptr [0x3630db24], 1 */ 10469 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361558C7: ret */ 10470 RECOMP_REGS_OUT(); 10471 } 10472 10473 void sub_361558D0(void) { 10474 int _fpu_cmp = 0; 10475 uint32_t _cf = 0; 10476 int _df = 1; 10477 uint32_t _flag_k = FK_NONE; 10478 uint32_t _flag_a = 0, _flag_b = 0; 10479 uint32_t _itail_tgt = 0; 10480 RECOMP_REGS_LOCALS 10481 RECOMP_ENTER(0x361558D0u); 10482 10483 L_361558D0: 10484 PUSH32(esp, esi); /* 0x361558D0: push esi */ 10485 esi = ecx; /* 0x361558D1: mov esi, ecx */ 10486 RECOMP_ICALL(0x36154D30u); /* 0x361558D3: call 0x36154d30 */ /* not lifted */ 10487 RECOMP_FLAGS_IN(); 10488 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 10489 SET_LO8(eax, 0); /* 0x361558D8: xor al, al */ 10490 _cf = 0; 10491 _flag_k = FK_NARROW(FK_TEST, 24); 10492 MEM8(esi + 0x29) = (uint8_t)(LO8(eax)); /* 0x361558DA: mov byte ptr [esi + 0x29], al */ 10493 MEM8(esi + 0x28) = (uint8_t)(LO8(eax)); /* 0x361558DD: mov byte ptr [esi + 0x28], al */ 10494 MEM32(esi) = 0x36178C68u; /* 0x361558E0: mov dword ptr [esi], 0x36178c68 */ 10495 eax = esi; /* 0x361558E6: mov eax, esi */ 10496 esi = POP32_VAL(esp); /* 0x361558E8: pop esi */ 10497 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361558E9: ret */ 10498 RECOMP_REGS_OUT(); 10499 } 10500 10501 void sub_361558F0(void) { 10502 int _fpu_cmp = 0; 10503 uint32_t _cf = 0; 10504 int _df = 1; 10505 uint32_t _flag_k = FK_NONE; 10506 uint32_t _flag_a = 0, _flag_b = 0; 10507 uint32_t _itail_tgt = 0; 10508 RECOMP_REGS_LOCALS 10509 RECOMP_ENTER(0x361558F0u); 10510 10511 L_361558F0: 10512 PUSH32(esp, ebp); /* 0x361558F0: push ebp */ 10513 ebp = esp; /* 0x361558F1: mov ebp, esp */ 10514 PUSH32(esp, esi); /* 0x361558F3: push esi */ 10515 esi = ecx; /* 0x361558F4: mov esi, ecx */ 10516 RECOMP_ICALL(0x36155A00u); /* 0x361558F6: call 0x36155a00 */ /* not lifted */ 10517 RECOMP_FLAGS_IN(); 10518 /* test MEM8(ebp + 0x8), 1 */ /* 0x361558FB: test byte ptr [ebp + 8], 1 */ 10519 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10520 _cf = 0; 10521 _flag_k = FK_NARROW(FK_TEST, 24); 10522 if (TEST_Z(_flag_a, _flag_b)) goto L_3615590A; /* 0x361558FF: je 0x3615590a */ 10523 L_36155901: 10524 PUSH32(esp, esi); /* 0x36155901: push esi */ 10525 RECOMP_ICALL(0x3615FCC4u); /* 0x36155902: call 0x3615fcc4 */ /* not lifted */ 10526 RECOMP_FLAGS_IN(); 10527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10529 esp = esp + 4; /* 0x36155907: add esp, 4 */ 10530 _flag_k = FK_ADD; 10531 L_3615590A: 10532 eax = esi; /* 0x3615590A: mov eax, esi */ 10533 esi = POP32_VAL(esp); /* 0x3615590C: pop esi */ 10534 ebp = POP32_VAL(esp); /* 0x3615590D: pop ebp */ 10535 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615590E: ret 4 */ 10536 RECOMP_REGS_OUT(); 10537 } 10538 10539 void sub_36155920(void) { 10540 int _fpu_cmp = 0; 10541 uint32_t _cf = 0; 10542 int _df = 1; 10543 uint32_t _flag_k = FK_NONE; 10544 uint32_t _flag_a = 0, _flag_b = 0; 10545 uint32_t _itail_tgt = 0; 10546 RECOMP_REGS_LOCALS 10547 RECOMP_ENTER(0x36155920u); 10548 10549 L_36155920: 10550 PUSH32(esp, ebp); /* 0x36155920: push ebp */ 10551 ebp = esp; /* 0x36155921: mov ebp, esp */ 10552 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155923: push -1 */ 10553 PUSH32(esp, 0x3616DBE9u); /* 0x36155925: push 0x3616dbe9 */ 10554 eax = MEM32(FS_BASE + (0)); /* 0x3615592A: mov eax, dword ptr fs:[0] */ 10555 PUSH32(esp, eax); /* 0x36155930: push eax */ 10556 MEM32(FS_BASE + (0)) = esp; /* 0x36155931: mov dword ptr fs:[0], esp */ 10557 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10559 esp = esp - 0x14u; /* 0x36155938: sub esp, 0x14 */ 10560 _flag_k = FK_CMP; 10561 SET_LO8(eax, MEM8(ebp + 0x13)); /* 0x3615593B: mov al, byte ptr [ebp + 0x13] */ 10562 PUSH32(esp, ebx); /* 0x3615593E: push ebx */ 10563 PUSH32(esp, esi); /* 0x3615593F: push esi */ 10564 esi = ecx; /* 0x36155940: mov esi, ecx */ 10565 PUSH32(esp, edi); /* 0x36155942: push edi */ 10566 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10567 ecx = ecx | 0xFFFFFFFFu; /* 0x36155943: or ecx, 0xffffffff */ 10568 _cf = 0; 10569 _flag_k = FK_TEST; 10570 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36155946: mov byte ptr [ebp - 0x20], al */ 10571 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10572 eax = 0; /* 0x36155949: xor eax, eax */ 10573 _cf = 0; 10574 _flag_k = FK_TEST; 10575 edi = 0x361B3F70u; /* 0x3615594B: mov edi, 0x361b3f70 */ 10576 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; } /* 0x36155950: repne scasb al, byte ptr es:[edi] */ 10577 ecx = ~ecx; /* 0x36155952: not ecx */ 10578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10579 ecx = ecx - 1; /* 0x36155954: dec ecx */ 10580 _flag_k = FK_DEC; 10581 ebx = ecx; /* 0x36155955: mov ebx, ecx */ 10582 PUSH32(esp, 1); /* 0x36155957: push 1 */ 10583 PUSH32(esp, ebx); /* 0x36155959: push ebx */ 10584 ecx = ebp + (-0x20); /* 0x3615595A: lea ecx, [ebp - 0x20] */ 10585 MEM32(ebp + (-0x10)) = esi; /* 0x3615595D: mov dword ptr [ebp - 0x10], esi */ 10586 MEM32(ebp + (-0x1C)) = eax; /* 0x36155960: mov dword ptr [ebp - 0x1c], eax */ 10587 MEM32(ebp + (-0x18)) = eax; /* 0x36155963: mov dword ptr [ebp - 0x18], eax */ 10588 MEM32(ebp + (-0x14)) = eax; /* 0x36155966: mov dword ptr [ebp - 0x14], eax */ 10589 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36155969: call dword ptr [0x3616f00c] */ 10590 RECOMP_FLAGS_IN(); 10591 /* test LO8(eax), LO8(eax) */ /* 0x3615596F: test al, al */ 10592 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10593 _cf = 0; 10594 _flag_k = FK_NARROW(FK_TEST, 24); 10595 if (TEST_Z(_flag_a, _flag_b)) goto L_36155998; /* 0x36155971: je 0x36155998 */ 10596 L_36155973: 10597 edi = MEM32(ebp + (-0x1C)); /* 0x36155973: mov edi, dword ptr [ebp - 0x1c] */ 10598 ecx = ebx; /* 0x36155976: mov ecx, ebx */ 10599 edx = ecx; /* 0x36155978: mov edx, ecx */ 10600 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615597A: shr ecx, 2 */ 10601 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10602 ecx = ecx >> 2u; /* 0x3615597A: shr ecx, 2 */ 10603 esi = 0x361B3F70u; /* 0x3615597D: mov esi, 0x361b3f70 */ 10604 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36155982: 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; } 10605 ecx = edx; /* 0x36155984: mov ecx, edx */ 10606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10607 ecx = ecx & 3; /* 0x36155986: and ecx, 3 */ 10608 _cf = 0; 10609 _flag_k = FK_TEST; 10610 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36155989: 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; } 10611 eax = MEM32(ebp + (-0x1C)); /* 0x3615598B: mov eax, dword ptr [ebp - 0x1c] */ 10612 esi = MEM32(ebp + (-0x10)); /* 0x3615598E: mov esi, dword ptr [ebp - 0x10] */ 10613 MEM32(ebp + (-0x18)) = ebx; /* 0x36155991: mov dword ptr [ebp - 0x18], ebx */ 10614 MEM8(eax + ebx) = (uint8_t)(0); /* 0x36155994: mov byte ptr [eax + ebx], 0 */ 10615 L_36155998: 10616 edx = MEM32(ebp + 0xC); /* 0x36155998: mov edx, dword ptr [ebp + 0xc] */ 10617 eax = MEM32(ebp + 0x8); /* 0x3615599B: mov eax, dword ptr [ebp + 8] */ 10618 ecx = ebp + (-0x20); /* 0x3615599E: lea ecx, [ebp - 0x20] */ 10619 PUSH32(esp, ecx); /* 0x361559A1: push ecx */ 10620 PUSH32(esp, edx); /* 0x361559A2: push edx */ 10621 PUSH32(esp, eax); /* 0x361559A3: push eax */ 10622 ecx = esi; /* 0x361559A4: mov ecx, esi */ 10623 MEM32(ebp + (-0x4)) = 0; /* 0x361559A6: mov dword ptr [ebp - 4], 0 */ 10624 RECOMP_ICALL(0x36154C80u); /* 0x361559AD: call 0x36154c80 */ /* not lifted */ 10625 RECOMP_FLAGS_IN(); 10626 eax = MEM32(ebp + (-0x1C)); /* 0x361559B2: mov eax, dword ptr [ebp - 0x1c] */ 10627 /* test eax, eax */ /* 0x361559B5: test eax, eax */ 10628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10629 _cf = 0; 10630 _flag_k = FK_TEST; 10631 if (TEST_Z(_flag_a, _flag_b)) goto L_361559D5; /* 0x361559B7: je 0x361559d5 */ 10632 L_361559B9: 10633 ecx = eax + (-0x1); /* 0x361559B9: lea ecx, [eax - 1] */ 10634 SET_LO8(eax, MEM8(ecx)); /* 0x361559BC: mov al, byte ptr [ecx] */ 10635 /* test LO8(eax), LO8(eax) */ /* 0x361559BE: test al, al */ 10636 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10637 _cf = 0; 10638 _flag_k = FK_NARROW(FK_TEST, 24); 10639 if (TEST_Z(_flag_a, _flag_b)) goto L_361559CC; /* 0x361559C0: je 0x361559cc */ 10640 L_361559C2: 10641 /* cmp LO8(eax), 0xFFu */ /* 0x361559C2: cmp al, 0xff */ 10642 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10644 _flag_k = FK_NARROW(FK_CMP, 24); 10645 if (CMP_EQ(_flag_a, _flag_b)) goto L_361559CC; /* 0x361559C4: je 0x361559cc */ 10646 L_361559C6: 10647 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10648 SET_LO8(eax, LO8(eax) - 1); /* 0x361559C6: dec al */ 10649 _flag_k = FK_NARROW(FK_DEC, 24); 10650 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x361559C8: mov byte ptr [ecx], al */ 10651 goto L_361559D5; /* 0x361559CA: jmp 0x361559d5 */ 10652 L_361559CC: 10653 PUSH32(esp, ecx); /* 0x361559CC: push ecx */ 10654 RECOMP_ICALL(0x3615FCC4u); /* 0x361559CD: call 0x3615fcc4 */ /* not lifted */ 10655 RECOMP_FLAGS_IN(); 10656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10658 esp = esp + 4; /* 0x361559D2: add esp, 4 */ 10659 _flag_k = FK_ADD; 10660 L_361559D5: 10661 SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x361559D5: mov cl, byte ptr [ebp + 0x10] */ 10662 SET_LO8(edx, MEM8(ebp + 0x14)); /* 0x361559D8: mov dl, byte ptr [ebp + 0x14] */ 10663 MEM8(esi + 0x28) = (uint8_t)(LO8(ecx)); /* 0x361559DB: mov byte ptr [esi + 0x28], cl */ 10664 ecx = MEM32(ebp + (-0xC)); /* 0x361559DE: mov ecx, dword ptr [ebp - 0xc] */ 10665 edi = POP32_VAL(esp); /* 0x361559E1: pop edi */ 10666 MEM32(esi) = 0x36178C68u; /* 0x361559E2: mov dword ptr [esi], 0x36178c68 */ 10667 MEM8(esi + 0x29) = (uint8_t)(LO8(edx)); /* 0x361559E8: mov byte ptr [esi + 0x29], dl */ 10668 eax = esi; /* 0x361559EB: mov eax, esi */ 10669 esi = POP32_VAL(esp); /* 0x361559ED: pop esi */ 10670 ebx = POP32_VAL(esp); /* 0x361559EE: pop ebx */ 10671 MEM32(FS_BASE + (0)) = ecx; /* 0x361559EF: mov dword ptr fs:[0], ecx */ 10672 esp = ebp; /* 0x361559F6: mov esp, ebp */ 10673 ebp = POP32_VAL(esp); /* 0x361559F8: pop ebp */ 10674 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x361559F9: ret 0x10 */ 10675 RECOMP_REGS_OUT(); 10676 } 10677 10678 void sub_36155A00(void) { 10679 int _fpu_cmp = 0; 10680 uint32_t _cf = 0; 10681 int _df = 1; 10682 uint32_t _flag_k = FK_NONE; 10683 uint32_t _flag_a = 0, _flag_b = 0; 10684 uint32_t _itail_tgt = 0; 10685 RECOMP_REGS_LOCALS 10686 RECOMP_ENTER(0x36155A00u); 10687 10688 goto L_36155A00; 10689 L_36154D20: 10690 MEM32(ecx) = 0x36178BD8u; /* 0x36154D20: mov dword ptr [ecx], 0x36178bd8 */ 10691 L_36154D26: 10692 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 10693 L_36155A00: 10694 MEM32(ecx) = 0x36178C68u; /* 0x36155A00: mov dword ptr [ecx], 0x36178c68 */ 10695 L_36155A06: 10696 RECOMP_BACKEDGE(); 10697 goto L_36154D20; /* 0x36155A06: jmp 0x36154d20 */ 10698 { RECOMP_REGS_OUT(); return; } /* end of function */ 10699 _ljump: 10700 switch (_itail_tgt) { 10701 case 0x36154D20u: goto L_36154D20; 10702 case 0x36154D26u: goto L_36154D26; 10703 case 0x36155A00u: goto L_36155A00; 10704 case 0x36155A06u: goto L_36155A06; 10705 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10706 } 10707 RECOMP_REGS_OUT(); 10708 } 10709 10710 void sub_36155A10(void) { 10711 int _fpu_cmp = 0; 10712 uint32_t _cf = 0; 10713 int _df = 1; 10714 uint32_t _flag_k = FK_NONE; 10715 uint32_t _flag_a = 0, _flag_b = 0; 10716 uint32_t _itail_tgt = 0; 10717 RECOMP_REGS_LOCALS 10718 RECOMP_ENTER(0x36155A10u); 10719 10720 L_36155A10: 10721 PUSH32(esp, esi); /* 0x36155A10: push esi */ 10722 PUSH32(esp, edi); /* 0x36155A11: push edi */ 10723 edi = MEM32(0x3616F304); /* 0x36155A12: mov edi, dword ptr [0x3616f304] */ 10724 esi = ecx; /* 0x36155A18: mov esi, ecx */ 10725 eax = esi + 0x20; /* 0x36155A1A: lea eax, [esi + 0x20] */ 10726 PUSH32(esp, eax); /* 0x36155A1D: push eax */ 10727 PUSH32(esp, 0xCEu); /* 0x36155A1E: push 0xce */ 10728 PUSH32(esp, 0x25u); /* 0x36155A23: push 0x25 */ 10729 RECOMP_ICALL(edi); /* 0x36155A25: call edi */ 10730 RECOMP_FLAGS_IN(); 10731 ecx = eax; /* 0x36155A27: mov ecx, eax */ 10732 RECOMP_ICALL(MEM32(0x3616F30C)); /* 0x36155A29: call dword ptr [0x3616f30c] */ 10733 RECOMP_FLAGS_IN(); 10734 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10735 ecx = 0; /* 0x36155A2F: xor ecx, ecx */ 10736 _cf = 0; 10737 _flag_k = FK_TEST; 10738 SET_LO8(ecx, MEM8(esi + 0x29)); /* 0x36155A31: mov cl, byte ptr [esi + 0x29] */ 10739 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10740 edx = 0; /* 0x36155A34: xor edx, edx */ 10741 _cf = 0; 10742 _flag_k = FK_TEST; 10743 SET_LO8(edx, MEM8(esi + 0x28)); /* 0x36155A36: mov dl, byte ptr [esi + 0x28] */ 10744 PUSH32(esp, ecx); /* 0x36155A39: push ecx */ 10745 PUSH32(esp, edx); /* 0x36155A3A: push edx */ 10746 RECOMP_ICALL(edi); /* 0x36155A3B: call edi */ 10747 RECOMP_FLAGS_IN(); 10748 ecx = eax; /* 0x36155A3D: mov ecx, eax */ 10749 RECOMP_ICALL(MEM32(0x3616F2CC)); /* 0x36155A3F: call dword ptr [0x3616f2cc] */ 10750 RECOMP_FLAGS_IN(); 10751 edi = POP32_VAL(esp); /* 0x36155A45: pop edi */ 10752 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10753 eax = 0; /* 0x36155A46: xor eax, eax */ 10754 _cf = 0; 10755 _flag_k = FK_TEST; 10756 esi = POP32_VAL(esp); /* 0x36155A48: pop esi */ 10757 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155A49: ret */ 10758 RECOMP_REGS_OUT(); 10759 } 10760 10761 void sub_36155A50(void) { 10762 int _fpu_cmp = 0; 10763 uint32_t _cf = 0; 10764 int _df = 1; 10765 uint32_t _flag_k = FK_NONE; 10766 uint32_t _flag_a = 0, _flag_b = 0; 10767 uint32_t _itail_tgt = 0; 10768 RECOMP_REGS_LOCALS 10769 RECOMP_ENTER(0x36155A50u); 10770 10771 L_36155A50: 10772 PUSH32(esp, ebp); /* 0x36155A50: push ebp */ 10773 ebp = esp; /* 0x36155A51: mov ebp, esp */ 10774 PUSH32(esp, ecx); /* 0x36155A53: push ecx */ 10775 PUSH32(esp, esi); /* 0x36155A54: push esi */ 10776 esi = MEM32(ebp + 0x8); /* 0x36155A55: mov esi, dword ptr [ebp + 8] */ 10777 PUSH32(esp, edi); /* 0x36155A58: push edi */ 10778 edi = ecx; /* 0x36155A59: mov edi, ecx */ 10779 PUSH32(esp, esi); /* 0x36155A5B: push esi */ 10780 RECOMP_ICALL(0x36154D50u); /* 0x36155A5C: call 0x36154d50 */ /* not lifted */ 10781 RECOMP_FLAGS_IN(); 10782 /* test eax, eax */ /* 0x36155A61: test eax, eax */ 10783 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10784 _cf = 0; 10785 _flag_k = FK_TEST; 10786 if (TEST_NZ(_flag_a, _flag_b)) goto L_36155AA8; /* 0x36155A63: jne 0x36155aa8 */ 10787 L_36155A65: 10788 PUSH32(esp, ebx); /* 0x36155A65: push ebx */ 10789 ebx = MEM32(0x3616FA8C); /* 0x36155A66: mov ebx, dword ptr [0x3616fa8c] */ 10790 MEM32(ebp + 0x8) = eax; /* 0x36155A6C: mov dword ptr [ebp + 8], eax */ 10791 eax = ebp + 0x8; /* 0x36155A6F: lea eax, [ebp + 8] */ 10792 PUSH32(esp, eax); /* 0x36155A72: push eax */ 10793 ecx = esi; /* 0x36155A73: mov ecx, esi */ 10794 RECOMP_ICALL(ebx); /* 0x36155A75: call ebx */ 10795 RECOMP_FLAGS_IN(); 10796 /* cmp MEM32(ebp + 0x8), 1 */ /* 0x36155A77: cmp dword ptr [ebp + 8], 1 */ 10797 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(1); 10798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10799 _flag_k = FK_CMP; 10800 SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36155A7B: sete cl */ 10801 edx = ebp + (-0x4); /* 0x36155A7E: lea edx, [ebp - 4] */ 10802 MEM8(edi + 0x29) = (uint8_t)(LO8(ecx)); /* 0x36155A81: mov byte ptr [edi + 0x29], cl */ 10803 PUSH32(esp, edx); /* 0x36155A84: push edx */ 10804 ecx = esi; /* 0x36155A85: mov ecx, esi */ 10805 MEM32(ebp + (-0x4)) = 0; /* 0x36155A87: mov dword ptr [ebp - 4], 0 */ 10806 RECOMP_ICALL(ebx); /* 0x36155A8E: call ebx */ 10807 RECOMP_FLAGS_IN(); 10808 /* cmp MEM32(ebp + (-0x4)), 1 */ /* 0x36155A90: cmp dword ptr [ebp - 4], 1 */ 10809 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(1); 10810 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10811 _flag_k = FK_CMP; 10812 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36155A94: sete al */ 10813 ecx = esi; /* 0x36155A97: mov ecx, esi */ 10814 MEM8(edi + 0x28) = (uint8_t)(LO8(eax)); /* 0x36155A99: mov byte ptr [edi + 0x28], al */ 10815 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36155A9C: call dword ptr [0x3616fadc] */ 10816 RECOMP_FLAGS_IN(); 10817 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 10818 _cf = (eax) != 0; 10819 eax = (uint32_t)(-(int32_t)eax); /* 0x36155AA2: neg eax */ 10820 _flag_k = FK_CMP; 10821 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36155AA4: sbb eax, eax */ 10822 eax = _sc ? 0xFFFFFFFFu : 0; 10823 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10824 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10826 eax = eax + 1; /* 0x36155AA6: inc eax */ 10827 _flag_k = FK_INC; 10828 ebx = POP32_VAL(esp); /* 0x36155AA7: pop ebx */ 10829 L_36155AA8: 10830 edi = POP32_VAL(esp); /* 0x36155AA8: pop edi */ 10831 esi = POP32_VAL(esp); /* 0x36155AA9: pop esi */ 10832 esp = ebp; /* 0x36155AAA: mov esp, ebp */ 10833 ebp = POP32_VAL(esp); /* 0x36155AAC: pop ebp */ 10834 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155AAD: ret 4 */ 10835 RECOMP_REGS_OUT(); 10836 } 10837 10838 void sub_36155AB0(void) { 10839 int _fpu_cmp = 0; 10840 uint32_t _cf = 0; 10841 int _df = 1; 10842 uint32_t _flag_k = FK_NONE; 10843 uint32_t _flag_a = 0, _flag_b = 0; 10844 uint32_t _itail_tgt = 0; 10845 RECOMP_REGS_LOCALS 10846 RECOMP_ENTER(0x36155AB0u); 10847 10848 L_36155AB0: 10849 PUSH32(esp, ebp); /* 0x36155AB0: push ebp */ 10850 ebp = esp; /* 0x36155AB1: mov ebp, esp */ 10851 PUSH32(esp, ebx); /* 0x36155AB3: push ebx */ 10852 PUSH32(esp, esi); /* 0x36155AB4: push esi */ 10853 PUSH32(esp, edi); /* 0x36155AB5: push edi */ 10854 edi = MEM32(ebp + 0x8); /* 0x36155AB6: mov edi, dword ptr [ebp + 8] */ 10855 esi = ecx; /* 0x36155AB9: mov esi, ecx */ 10856 PUSH32(esp, edi); /* 0x36155ABB: push edi */ 10857 RECOMP_ICALL(0x36154DB0u); /* 0x36155ABC: call 0x36154db0 */ /* not lifted */ 10858 RECOMP_FLAGS_IN(); 10859 SET_LO8(ecx, MEM8(esi + 0x29)); /* 0x36155AC1: mov cl, byte ptr [esi + 0x29] */ 10860 ebx = MEM32(0x3616FAEC); /* 0x36155AC4: mov ebx, dword ptr [0x3616faec] */ 10861 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10862 eax = 0; /* 0x36155ACA: xor eax, eax */ 10863 _cf = 0; 10864 _flag_k = FK_TEST; 10865 /* test LO8(ecx), LO8(ecx) */ /* 0x36155ACC: test cl, cl */ 10866 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 10867 _cf = 0; 10868 _flag_k = FK_NARROW(FK_TEST, 24); 10869 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36155ACE: setne al */ 10870 ecx = edi; /* 0x36155AD1: mov ecx, edi */ 10871 PUSH32(esp, eax); /* 0x36155AD3: push eax */ 10872 RECOMP_ICALL(ebx); /* 0x36155AD4: call ebx */ 10873 RECOMP_FLAGS_IN(); 10874 SET_LO8(edx, MEM8(esi + 0x28)); /* 0x36155AD6: mov dl, byte ptr [esi + 0x28] */ 10875 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10876 ecx = 0; /* 0x36155AD9: xor ecx, ecx */ 10877 _cf = 0; 10878 _flag_k = FK_TEST; 10879 /* test LO8(edx), LO8(edx) */ /* 0x36155ADB: test dl, dl */ 10880 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 10881 _cf = 0; 10882 _flag_k = FK_NARROW(FK_TEST, 24); 10883 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36155ADD: setne cl */ 10884 PUSH32(esp, ecx); /* 0x36155AE0: push ecx */ 10885 ecx = edi; /* 0x36155AE1: mov ecx, edi */ 10886 RECOMP_ICALL(ebx); /* 0x36155AE3: call ebx */ 10887 RECOMP_FLAGS_IN(); 10888 edi = POP32_VAL(esp); /* 0x36155AE5: pop edi */ 10889 esi = POP32_VAL(esp); /* 0x36155AE6: pop esi */ 10890 ebx = POP32_VAL(esp); /* 0x36155AE7: pop ebx */ 10891 ebp = POP32_VAL(esp); /* 0x36155AE8: pop ebp */ 10892 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155AE9: ret 4 */ 10893 RECOMP_REGS_OUT(); 10894 } 10895 10896 void sub_36155AF0(void) { 10897 int _fpu_cmp = 0; 10898 uint32_t _cf = 0; 10899 int _df = 1; 10900 uint32_t _flag_k = FK_NONE; 10901 uint32_t _flag_a = 0, _flag_b = 0; 10902 uint32_t _itail_tgt = 0; 10903 RECOMP_REGS_LOCALS 10904 RECOMP_ENTER(0x36155AF0u); 10905 10906 L_36155AF0: 10907 goto L_36155B00; /* 0x36155AF0: jmp 0x36155b00 */ 10908 L_36155B00: 10909 MEM8(0x3630DB28) = (uint8_t)(1); /* 0x36155B00: mov byte ptr [0x3630db28], 1 */ 10910 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155B07: ret */ 10911 RECOMP_REGS_OUT(); 10912 } 10913 10914 void sub_36155B00(void) { 10915 int _fpu_cmp = 0; 10916 uint32_t _cf = 0; 10917 int _df = 1; 10918 uint32_t _flag_k = FK_NONE; 10919 uint32_t _flag_a = 0, _flag_b = 0; 10920 uint32_t _itail_tgt = 0; 10921 RECOMP_REGS_LOCALS 10922 RECOMP_ENTER(0x36155B00u); 10923 10924 L_36155B00: 10925 MEM8(0x3630DB28) = (uint8_t)(1); /* 0x36155B00: mov byte ptr [0x3630db28], 1 */ 10926 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155B07: ret */ 10927 RECOMP_REGS_OUT(); 10928 } 10929 10930 void sub_36155B10(void) { 10931 int _fpu_cmp = 0; 10932 uint32_t _cf = 0; 10933 int _df = 1; 10934 uint32_t _flag_k = FK_NONE; 10935 uint32_t _flag_a = 0, _flag_b = 0; 10936 uint32_t _itail_tgt = 0; 10937 RECOMP_REGS_LOCALS 10938 RECOMP_ENTER(0x36155B10u); 10939 10940 L_36155B10: 10941 PUSH32(esp, ebp); /* 0x36155B10: push ebp */ 10942 ebp = esp; /* 0x36155B11: mov ebp, esp */ 10943 PUSH32(esp, ecx); /* 0x36155B13: push ecx */ 10944 PUSH32(esp, esi); /* 0x36155B14: push esi */ 10945 esi = ecx; /* 0x36155B15: mov esi, ecx */ 10946 RECOMP_ICALL(0x36154D30u); /* 0x36155B17: call 0x36154d30 */ /* not lifted */ 10947 RECOMP_FLAGS_IN(); 10948 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x36155B1C: mov al, byte ptr [ebp - 1] */ 10949 MEM8(esi + 0x28) = (uint8_t)(LO8(eax)); /* 0x36155B1F: mov byte ptr [esi + 0x28], al */ 10950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10951 eax = 0; /* 0x36155B22: xor eax, eax */ 10952 _cf = 0; 10953 _flag_k = FK_TEST; 10954 MEM32(esi + 0x2C) = eax; /* 0x36155B24: mov dword ptr [esi + 0x2c], eax */ 10955 MEM32(esi + 0x30) = eax; /* 0x36155B27: mov dword ptr [esi + 0x30], eax */ 10956 MEM32(esi + 0x34) = eax; /* 0x36155B2A: mov dword ptr [esi + 0x34], eax */ 10957 MEM32(esi) = 0x36178C8Cu; /* 0x36155B2D: mov dword ptr [esi], 0x36178c8c */ 10958 eax = esi; /* 0x36155B33: mov eax, esi */ 10959 esi = POP32_VAL(esp); /* 0x36155B35: pop esi */ 10960 esp = ebp; /* 0x36155B36: mov esp, ebp */ 10961 ebp = POP32_VAL(esp); /* 0x36155B38: pop ebp */ 10962 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155B39: ret */ 10963 RECOMP_REGS_OUT(); 10964 } 10965 10966 void sub_36155B40(void) { 10967 int _fpu_cmp = 0; 10968 uint32_t _cf = 0; 10969 int _df = 1; 10970 uint32_t _flag_k = FK_NONE; 10971 uint32_t _flag_a = 0, _flag_b = 0; 10972 uint32_t _itail_tgt = 0; 10973 RECOMP_REGS_LOCALS 10974 RECOMP_ENTER(0x36155B40u); 10975 10976 L_36155B40: 10977 PUSH32(esp, ebp); /* 0x36155B40: push ebp */ 10978 ebp = esp; /* 0x36155B41: mov ebp, esp */ 10979 PUSH32(esp, esi); /* 0x36155B43: push esi */ 10980 esi = ecx; /* 0x36155B44: mov esi, ecx */ 10981 RECOMP_ICALL(0x36155B70u); /* 0x36155B46: call 0x36155b70 */ /* not lifted */ 10982 RECOMP_FLAGS_IN(); 10983 /* test MEM8(ebp + 0x8), 1 */ /* 0x36155B4B: test byte ptr [ebp + 8], 1 */ 10984 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10985 _cf = 0; 10986 _flag_k = FK_NARROW(FK_TEST, 24); 10987 if (TEST_Z(_flag_a, _flag_b)) goto L_36155B5A; /* 0x36155B4F: je 0x36155b5a */ 10988 L_36155B51: 10989 PUSH32(esp, esi); /* 0x36155B51: push esi */ 10990 RECOMP_ICALL(0x3615FCC4u); /* 0x36155B52: call 0x3615fcc4 */ /* not lifted */ 10991 RECOMP_FLAGS_IN(); 10992 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10994 esp = esp + 4; /* 0x36155B57: add esp, 4 */ 10995 _flag_k = FK_ADD; 10996 L_36155B5A: 10997 eax = esi; /* 0x36155B5A: mov eax, esi */ 10998 esi = POP32_VAL(esp); /* 0x36155B5C: pop esi */ 10999 ebp = POP32_VAL(esp); /* 0x36155B5D: pop ebp */ 11000 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155B5E: ret 4 */ 11001 RECOMP_REGS_OUT(); 11002 } 11003 11004 void sub_36155B70(void) { 11005 int _fpu_cmp = 0; 11006 uint32_t _cf = 0; 11007 int _df = 1; 11008 uint32_t _flag_k = FK_NONE; 11009 uint32_t _flag_a = 0, _flag_b = 0; 11010 uint32_t _itail_tgt = 0; 11011 RECOMP_REGS_LOCALS 11012 RECOMP_ENTER(0x36155B70u); 11013 11014 L_36155B70: 11015 PUSH32(esp, ebp); /* 0x36155B70: push ebp */ 11016 ebp = esp; /* 0x36155B71: mov ebp, esp */ 11017 PUSH32(esp, ecx); /* 0x36155B73: push ecx */ 11018 PUSH32(esp, esi); /* 0x36155B74: push esi */ 11019 esi = ecx; /* 0x36155B75: mov esi, ecx */ 11020 MEM32(esi) = 0x36178C8Cu; /* 0x36155B77: mov dword ptr [esi], 0x36178c8c */ 11021 eax = MEM32(esi + 0x2C); /* 0x36155B7D: mov eax, dword ptr [esi + 0x2c] */ 11022 PUSH32(esp, eax); /* 0x36155B80: push eax */ 11023 MEM32(ebp + (-0x4)) = eax; /* 0x36155B81: mov dword ptr [ebp - 4], eax */ 11024 RECOMP_ICALL(0x3615FCC4u); /* 0x36155B84: call 0x3615fcc4 */ /* not lifted */ 11025 RECOMP_FLAGS_IN(); 11026 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11027 eax = 0; /* 0x36155B89: xor eax, eax */ 11028 _cf = 0; 11029 _flag_k = FK_TEST; 11030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11032 esp = esp + 4; /* 0x36155B8B: add esp, 4 */ 11033 _flag_k = FK_ADD; 11034 ecx = esi; /* 0x36155B8E: mov ecx, esi */ 11035 MEM32(esi + 0x2C) = eax; /* 0x36155B90: mov dword ptr [esi + 0x2c], eax */ 11036 MEM32(esi + 0x30) = eax; /* 0x36155B93: mov dword ptr [esi + 0x30], eax */ 11037 MEM32(esi + 0x34) = eax; /* 0x36155B96: mov dword ptr [esi + 0x34], eax */ 11038 RECOMP_ICALL(0x36154D20u); /* 0x36155B99: call 0x36154d20 */ /* not lifted */ 11039 RECOMP_FLAGS_IN(); 11040 esi = POP32_VAL(esp); /* 0x36155B9E: pop esi */ 11041 esp = ebp; /* 0x36155B9F: mov esp, ebp */ 11042 ebp = POP32_VAL(esp); /* 0x36155BA1: pop ebp */ 11043 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155BA2: ret */ 11044 RECOMP_REGS_OUT(); 11045 } 11046 11047 void sub_36155BB0(void) { 11048 int _fpu_cmp = 0; 11049 uint32_t _cf = 0; 11050 int _df = 1; 11051 uint32_t _flag_k = FK_NONE; 11052 uint32_t _flag_a = 0, _flag_b = 0; 11053 uint32_t _itail_tgt = 0; 11054 RECOMP_REGS_LOCALS 11055 RECOMP_ENTER(0x36155BB0u); 11056 11057 L_36155BB0: 11058 PUSH32(esp, ebp); /* 0x36155BB0: push ebp */ 11059 ebp = esp; /* 0x36155BB1: mov ebp, esp */ 11060 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11061 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11062 esp = esp - 8; /* 0x36155BB3: sub esp, 8 */ 11063 _flag_k = FK_CMP; 11064 PUSH32(esp, ebx); /* 0x36155BB6: push ebx */ 11065 PUSH32(esp, esi); /* 0x36155BB7: push esi */ 11066 esi = MEM32(ebp + 0x8); /* 0x36155BB8: mov esi, dword ptr [ebp + 8] */ 11067 eax = MEM32(esi); /* 0x36155BBB: mov eax, dword ptr [esi] */ 11068 PUSH32(esp, edi); /* 0x36155BBD: push edi */ 11069 PUSH32(esp, 2); /* 0x36155BBE: push 2 */ 11070 edi = ecx; /* 0x36155BC0: mov edi, ecx */ 11071 PUSH32(esp, 0x2BEu); /* 0x36155BC2: push 0x2be */ 11072 ecx = esi; /* 0x36155BC7: mov ecx, esi */ 11073 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36155BC9: call dword ptr [eax + 4] */ 11074 RECOMP_FLAGS_IN(); 11075 edx = MEM32(esi); /* 0x36155BCC: mov edx, dword ptr [esi] */ 11076 PUSH32(esp, 2); /* 0x36155BCE: push 2 */ 11077 PUSH32(esp, 0x2BFu); /* 0x36155BD0: push 0x2bf */ 11078 ecx = esi; /* 0x36155BD5: mov ecx, esi */ 11079 MEM32(ebp + 0x8) = eax; /* 0x36155BD7: mov dword ptr [ebp + 8], eax */ 11080 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36155BDA: call dword ptr [edx + 4] */ 11081 RECOMP_FLAGS_IN(); 11082 PUSH32(esp, 2); /* 0x36155BDD: push 2 */ 11083 MEM32(ebp + (-0x4)) = eax; /* 0x36155BDF: mov dword ptr [ebp - 4], eax */ 11084 eax = MEM32(esi); /* 0x36155BE2: mov eax, dword ptr [esi] */ 11085 PUSH32(esp, 0x36u); /* 0x36155BE4: push 0x36 */ 11086 ecx = esi; /* 0x36155BE6: mov ecx, esi */ 11087 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36155BE8: call dword ptr [eax + 4] */ 11088 RECOMP_FLAGS_IN(); 11089 MEM32(ebp + (-0x8)) = eax; /* 0x36155BEB: mov dword ptr [ebp - 8], eax */ 11090 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11091 ecx = 0; /* 0x36155BEE: xor ecx, ecx */ 11092 _cf = 0; 11093 _flag_k = FK_TEST; 11094 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11095 eax = 0; /* 0x36155BF0: xor eax, eax */ 11096 _cf = 0; 11097 _flag_k = FK_TEST; 11098 L_36155BF2: 11099 edx = MEM32(edi + 0x2C); /* 0x36155BF2: mov edx, dword ptr [edi + 0x2c] */ 11100 /* test edx, edx */ /* 0x36155BF5: test edx, edx */ 11101 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11102 _cf = 0; 11103 _flag_k = FK_TEST; 11104 if (TEST_Z(_flag_a, _flag_b)) goto L_36155C84; /* 0x36155BF7: je 0x36155c84 */ 11105 L_36155BFD: 11106 esi = MEM32(edi + 0x30); /* 0x36155BFD: mov esi, dword ptr [edi + 0x30] */ 11107 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 11108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11109 esi = esi - edx; /* 0x36155C00: sub esi, edx */ 11110 _flag_k = FK_CMP; 11111 if (4u) _cf = (((esi) >> 3) & 1u); /* 0x36155C02: sar esi, 4 */ 11112 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11113 esi = (uint32_t)((int32_t)esi >> 4u); 11114 /* cmp ecx, esi */ /* 0x36155C05: cmp ecx, esi */ 11115 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 11116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11117 _flag_k = FK_CMP; 11118 if (CMP_AE(_flag_a, _flag_b)) goto L_36155C84; /* 0x36155C07: jae 0x36155c84 */ 11119 L_36155C09: 11120 esi = MEM32(edx + eax + 0x8); /* 0x36155C09: mov esi, dword ptr [edx + eax + 8] */ 11121 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 11122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11123 edx = edx + eax; /* 0x36155C0D: add edx, eax */ 11124 _flag_k = FK_ADD; 11125 /* cmp esi, 0xFFFFFFFFu */ /* 0x36155C0F: cmp esi, -1 */ 11126 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 11127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11128 _flag_k = FK_CMP; 11129 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155C28; /* 0x36155C12: je 0x36155c28 */ 11130 L_36155C14: 11131 ebx = MEM32(ebp + 0x8); /* 0x36155C14: mov ebx, dword ptr [ebp + 8] */ 11132 /* cmp MEM32(edx), ebx */ /* 0x36155C17: cmp dword ptr [edx], ebx */ 11133 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(ebx); 11134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11135 _flag_k = FK_CMP; 11136 if (CMP_NE(_flag_a, _flag_b)) goto L_36155C28; /* 0x36155C19: jne 0x36155c28 */ 11137 L_36155C1B: 11138 ebx = MEM32(ebp + (-0x4)); /* 0x36155C1B: mov ebx, dword ptr [ebp - 4] */ 11139 /* cmp MEM32(edx + 0x4), ebx */ /* 0x36155C1E: cmp dword ptr [edx + 4], ebx */ 11140 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(ebx); 11141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11142 _flag_k = FK_CMP; 11143 if (CMP_NE(_flag_a, _flag_b)) goto L_36155C28; /* 0x36155C21: jne 0x36155c28 */ 11144 L_36155C23: 11145 /* cmp esi, MEM32(ebp + (-0x8)) */ /* 0x36155C23: cmp esi, dword ptr [ebp - 8] */ 11146 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + (-0x8))); 11147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11148 _flag_k = FK_CMP; 11149 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155C2E; /* 0x36155C26: je 0x36155c2e */ 11150 L_36155C28: 11151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11152 ecx = ecx + 1; /* 0x36155C28: inc ecx */ 11153 _flag_k = FK_INC; 11154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11156 eax = eax + 0x10u; /* 0x36155C29: add eax, 0x10 */ 11157 _flag_k = FK_ADD; 11158 RECOMP_BACKEDGE(); 11159 goto L_36155BF2; /* 0x36155C2C: jmp 0x36155bf2 */ 11160 L_36155C2E: 11161 edx = MEM32(edi + 0x2C); /* 0x36155C2E: mov edx, dword ptr [edi + 0x2c] */ 11162 if (4u) _cf = (((ecx) >> 28) & 1u); /* 0x36155C31: shl ecx, 4 */ 11163 if (4u) { _flag_a = recomp_flags_pack((ecx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11164 ecx = ecx << 4u; /* 0x36155C31: shl ecx, 4 */ 11165 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 11166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11167 ecx = ecx + edx; /* 0x36155C34: add ecx, edx */ 11168 _flag_k = FK_ADD; 11169 edx = MEM32(edi + 0x30); /* 0x36155C36: mov edx, dword ptr [edi + 0x30] */ 11170 eax = ecx + 0x10; /* 0x36155C39: lea eax, [ecx + 0x10] */ 11171 /* cmp eax, edx */ /* 0x36155C3C: cmp eax, edx */ 11172 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11174 _flag_k = FK_CMP; 11175 MEM32(ebp + 0x8) = edx; /* 0x36155C3E: mov dword ptr [ebp + 8], edx */ 11176 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155C6D; /* 0x36155C41: je 0x36155c6d */ 11177 L_36155C43: 11178 ecx = eax + (-0x10); /* 0x36155C43: lea ecx, [eax - 0x10] */ 11179 L_36155C46: 11180 edx = eax; /* 0x36155C46: mov edx, eax */ 11181 ebx = MEM32(edx); /* 0x36155C48: mov ebx, dword ptr [edx] */ 11182 esi = ecx; /* 0x36155C4A: mov esi, ecx */ 11183 MEM32(esi) = ebx; /* 0x36155C4C: mov dword ptr [esi], ebx */ 11184 ebx = MEM32(edx + 0x4); /* 0x36155C4E: mov ebx, dword ptr [edx + 4] */ 11185 MEM32(esi + 0x4) = ebx; /* 0x36155C51: mov dword ptr [esi + 4], ebx */ 11186 ebx = MEM32(edx + 0x8); /* 0x36155C54: mov ebx, dword ptr [edx + 8] */ 11187 MEM32(esi + 0x8) = ebx; /* 0x36155C57: mov dword ptr [esi + 8], ebx */ 11188 edx = MEM32(edx + 0xC); /* 0x36155C5A: mov edx, dword ptr [edx + 0xc] */ 11189 MEM32(esi + 0xC) = edx; /* 0x36155C5D: mov dword ptr [esi + 0xc], edx */ 11190 edx = MEM32(ebp + 0x8); /* 0x36155C60: mov edx, dword ptr [ebp + 8] */ 11191 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11192 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11193 eax = eax + 0x10u; /* 0x36155C63: add eax, 0x10 */ 11194 _flag_k = FK_ADD; 11195 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 11196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11197 ecx = ecx + 0x10u; /* 0x36155C66: add ecx, 0x10 */ 11198 _flag_k = FK_ADD; 11199 /* cmp eax, edx */ /* 0x36155C69: cmp eax, edx */ 11200 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11202 _flag_k = FK_CMP; 11203 RECOMP_BACKEDGE(); 11204 if (CMP_NE(_flag_a, _flag_b)) goto L_36155C46; /* 0x36155C6B: jne 0x36155c46 */ 11205 L_36155C6D: 11206 eax = MEM32(edi + 0x30); /* 0x36155C6D: mov eax, dword ptr [edi + 0x30] */ 11207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF0u); 11208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11209 eax = eax + 0xFFFFFFF0u; /* 0x36155C70: add eax, -0x10 */ 11210 _flag_k = FK_ADD; 11211 MEM32(edi + 0x30) = eax; /* 0x36155C73: mov dword ptr [edi + 0x30], eax */ 11212 edi = POP32_VAL(esp); /* 0x36155C76: pop edi */ 11213 esi = POP32_VAL(esp); /* 0x36155C77: pop esi */ 11214 MEM32(ebp + 0x8) = eax; /* 0x36155C78: mov dword ptr [ebp + 8], eax */ 11215 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 11216 SET_LO8(eax, 0); /* 0x36155C7B: xor al, al */ 11217 _cf = 0; 11218 _flag_k = FK_NARROW(FK_TEST, 24); 11219 ebx = POP32_VAL(esp); /* 0x36155C7D: pop ebx */ 11220 esp = ebp; /* 0x36155C7E: mov esp, ebp */ 11221 ebp = POP32_VAL(esp); /* 0x36155C80: pop ebp */ 11222 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155C81: ret 4 */ 11223 L_36155C84: 11224 edi = POP32_VAL(esp); /* 0x36155C84: pop edi */ 11225 esi = POP32_VAL(esp); /* 0x36155C85: pop esi */ 11226 SET_LO8(eax, 1); /* 0x36155C86: mov al, 1 */ 11227 ebx = POP32_VAL(esp); /* 0x36155C88: pop ebx */ 11228 esp = ebp; /* 0x36155C89: mov esp, ebp */ 11229 ebp = POP32_VAL(esp); /* 0x36155C8B: pop ebp */ 11230 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155C8C: ret 4 */ 11231 RECOMP_REGS_OUT(); 11232 } 11233 11234 void sub_36155C90(void) { 11235 int _fpu_cmp = 0; 11236 uint32_t _cf = 0; 11237 int _df = 1; 11238 uint32_t _flag_k = FK_NONE; 11239 uint32_t _flag_a = 0, _flag_b = 0; 11240 uint32_t _itail_tgt = 0; 11241 RECOMP_REGS_LOCALS 11242 RECOMP_ENTER(0x36155C90u); 11243 11244 L_36155C90: 11245 PUSH32(esp, ebp); /* 0x36155C90: push ebp */ 11246 ebp = esp; /* 0x36155C91: mov ebp, esp */ 11247 PUSH32(esp, ebx); /* 0x36155C93: push ebx */ 11248 PUSH32(esp, esi); /* 0x36155C94: push esi */ 11249 PUSH32(esp, edi); /* 0x36155C95: push edi */ 11250 edi = MEM32(ebp + 0x8); /* 0x36155C96: mov edi, dword ptr [ebp + 8] */ 11251 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11252 eax = 0; /* 0x36155C99: xor eax, eax */ 11253 _cf = 0; 11254 _flag_k = FK_TEST; 11255 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11256 esi = 0; /* 0x36155C9B: xor esi, esi */ 11257 _cf = 0; 11258 _flag_k = FK_TEST; 11259 L_36155C9D: 11260 edx = MEM32(ecx + 0x2C); /* 0x36155C9D: mov edx, dword ptr [ecx + 0x2c] */ 11261 /* test edx, edx */ /* 0x36155CA0: test edx, edx */ 11262 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 11263 _cf = 0; 11264 _flag_k = FK_TEST; 11265 if (TEST_Z(_flag_a, _flag_b)) goto L_36155D2E; /* 0x36155CA2: je 0x36155d2e */ 11266 L_36155CA8: 11267 ebx = MEM32(ecx + 0x30); /* 0x36155CA8: mov ebx, dword ptr [ecx + 0x30] */ 11268 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 11269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11270 ebx = ebx - edx; /* 0x36155CAB: sub ebx, edx */ 11271 _flag_k = FK_CMP; 11272 if (4u) _cf = (((ebx) >> 3) & 1u); /* 0x36155CAD: sar ebx, 4 */ 11273 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11274 ebx = (uint32_t)((int32_t)ebx >> 4u); 11275 /* cmp eax, ebx */ /* 0x36155CB0: cmp eax, ebx */ 11276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11278 _flag_k = FK_CMP; 11279 if (CMP_AE(_flag_a, _flag_b)) goto L_36155D2E; /* 0x36155CB2: jae 0x36155d2e */ 11280 L_36155CB4: 11281 ebx = MEM32(edx + esi + 0x8); /* 0x36155CB4: mov ebx, dword ptr [edx + esi + 8] */ 11282 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 11283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11284 edx = edx + esi; /* 0x36155CB8: add edx, esi */ 11285 _flag_k = FK_ADD; 11286 /* cmp ebx, 0xFFFFFFFFu */ /* 0x36155CBA: cmp ebx, -1 */ 11287 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xFFFFFFFFu); 11288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11289 _flag_k = FK_CMP; 11290 if (CMP_NE(_flag_a, _flag_b)) goto L_36155CD4; /* 0x36155CBD: jne 0x36155cd4 */ 11291 L_36155CBF: 11292 ebx = MEM32(edx + 0x4); /* 0x36155CBF: mov ebx, dword ptr [edx + 4] */ 11293 /* cmp ebx, MEM32(edi + 0x94) */ /* 0x36155CC2: cmp ebx, dword ptr [edi + 0x94] */ 11294 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x94)); 11295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11296 _flag_k = FK_CMP; 11297 if (CMP_NE(_flag_a, _flag_b)) goto L_36155CD4; /* 0x36155CC8: jne 0x36155cd4 */ 11298 L_36155CCA: 11299 edx = MEM32(edx); /* 0x36155CCA: mov edx, dword ptr [edx] */ 11300 /* cmp edx, MEM32(edi + 0x90) */ /* 0x36155CCC: cmp edx, dword ptr [edi + 0x90] */ 11301 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi + 0x90)); 11302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11303 _flag_k = FK_CMP; 11304 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155CDA; /* 0x36155CD2: je 0x36155cda */ 11305 L_36155CD4: 11306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11307 eax = eax + 1; /* 0x36155CD4: inc eax */ 11308 _flag_k = FK_INC; 11309 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 11310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11311 esi = esi + 0x10u; /* 0x36155CD5: add esi, 0x10 */ 11312 _flag_k = FK_ADD; 11313 RECOMP_BACKEDGE(); 11314 goto L_36155C9D; /* 0x36155CD8: jmp 0x36155c9d */ 11315 L_36155CDA: 11316 edi = MEM32(ecx + 0x2C); /* 0x36155CDA: mov edi, dword ptr [ecx + 0x2c] */ 11317 edx = MEM32(ecx + 0x30); /* 0x36155CDD: mov edx, dword ptr [ecx + 0x30] */ 11318 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36155CE0: shl eax, 4 */ 11319 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11320 eax = eax << 4u; /* 0x36155CE0: shl eax, 4 */ 11321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11323 eax = eax + edi; /* 0x36155CE3: add eax, edi */ 11324 _flag_k = FK_ADD; 11325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11327 eax = eax + 0x10u; /* 0x36155CE5: add eax, 0x10 */ 11328 _flag_k = FK_ADD; 11329 /* cmp eax, edx */ /* 0x36155CE8: cmp eax, edx */ 11330 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11332 _flag_k = FK_CMP; 11333 MEM32(ebp + 0x8) = edx; /* 0x36155CEA: mov dword ptr [ebp + 8], edx */ 11334 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155D19; /* 0x36155CED: je 0x36155d19 */ 11335 L_36155CEF: 11336 edx = eax + (-0x10); /* 0x36155CEF: lea edx, [eax - 0x10] */ 11337 L_36155CF2: 11338 esi = eax; /* 0x36155CF2: mov esi, eax */ 11339 ebx = MEM32(esi); /* 0x36155CF4: mov ebx, dword ptr [esi] */ 11340 edi = edx; /* 0x36155CF6: mov edi, edx */ 11341 MEM32(edi) = ebx; /* 0x36155CF8: mov dword ptr [edi], ebx */ 11342 ebx = MEM32(esi + 0x4); /* 0x36155CFA: mov ebx, dword ptr [esi + 4] */ 11343 MEM32(edi + 0x4) = ebx; /* 0x36155CFD: mov dword ptr [edi + 4], ebx */ 11344 ebx = MEM32(esi + 0x8); /* 0x36155D00: mov ebx, dword ptr [esi + 8] */ 11345 MEM32(edi + 0x8) = ebx; /* 0x36155D03: mov dword ptr [edi + 8], ebx */ 11346 esi = MEM32(esi + 0xC); /* 0x36155D06: mov esi, dword ptr [esi + 0xc] */ 11347 MEM32(edi + 0xC) = esi; /* 0x36155D09: mov dword ptr [edi + 0xc], esi */ 11348 esi = MEM32(ebp + 0x8); /* 0x36155D0C: mov esi, dword ptr [ebp + 8] */ 11349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11351 eax = eax + 0x10u; /* 0x36155D0F: add eax, 0x10 */ 11352 _flag_k = FK_ADD; 11353 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x10u); 11354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11355 edx = edx + 0x10u; /* 0x36155D12: add edx, 0x10 */ 11356 _flag_k = FK_ADD; 11357 /* cmp eax, esi */ /* 0x36155D15: cmp eax, esi */ 11358 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 11359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11360 _flag_k = FK_CMP; 11361 RECOMP_BACKEDGE(); 11362 if (CMP_NE(_flag_a, _flag_b)) goto L_36155CF2; /* 0x36155D17: jne 0x36155cf2 */ 11363 L_36155D19: 11364 eax = MEM32(ecx + 0x30); /* 0x36155D19: mov eax, dword ptr [ecx + 0x30] */ 11365 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF0u); 11366 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11367 eax = eax + 0xFFFFFFF0u; /* 0x36155D1C: add eax, -0x10 */ 11368 _flag_k = FK_ADD; 11369 edi = POP32_VAL(esp); /* 0x36155D1F: pop edi */ 11370 esi = POP32_VAL(esp); /* 0x36155D20: pop esi */ 11371 MEM32(ebp + 0x8) = eax; /* 0x36155D21: mov dword ptr [ebp + 8], eax */ 11372 MEM32(ecx + 0x30) = eax; /* 0x36155D24: mov dword ptr [ecx + 0x30], eax */ 11373 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 11374 SET_LO8(eax, 0); /* 0x36155D27: xor al, al */ 11375 _cf = 0; 11376 _flag_k = FK_NARROW(FK_TEST, 24); 11377 ebx = POP32_VAL(esp); /* 0x36155D29: pop ebx */ 11378 ebp = POP32_VAL(esp); /* 0x36155D2A: pop ebp */ 11379 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155D2B: ret 4 */ 11380 L_36155D2E: 11381 edi = POP32_VAL(esp); /* 0x36155D2E: pop edi */ 11382 esi = POP32_VAL(esp); /* 0x36155D2F: pop esi */ 11383 SET_LO8(eax, 1); /* 0x36155D30: mov al, 1 */ 11384 ebx = POP32_VAL(esp); /* 0x36155D32: pop ebx */ 11385 ebp = POP32_VAL(esp); /* 0x36155D33: pop ebp */ 11386 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36155D34: ret 4 */ 11387 RECOMP_REGS_OUT(); 11388 } 11389 11390 void sub_36155D40(void) { 11391 int _fpu_cmp = 0; 11392 uint32_t _cf = 0; 11393 int _df = 1; 11394 uint32_t _flag_k = FK_NONE; 11395 uint32_t _flag_a = 0, _flag_b = 0; 11396 uint32_t _itail_tgt = 0; 11397 RECOMP_REGS_LOCALS 11398 RECOMP_ENTER(0x36155D40u); 11399 11400 L_36155D40: 11401 PUSH32(esp, ebp); /* 0x36155D40: push ebp */ 11402 ebp = esp; /* 0x36155D41: mov ebp, esp */ 11403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 11404 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11405 esp = esp - 0x44u; /* 0x36155D43: sub esp, 0x44 */ 11406 _flag_k = FK_CMP; 11407 eax = MEM32(0x3616FF74); /* 0x36155D46: mov eax, dword ptr [0x3616ff74] */ 11408 MEM32(ebp + (-0x8)) = ecx; /* 0x36155D4B: mov dword ptr [ebp - 8], ecx */ 11409 ecx = MEM32(eax); /* 0x36155D4E: mov ecx, dword ptr [eax] */ 11410 RECOMP_ICALL(0x3601F240u); /* 0x36155D50: call 0x3601f240 */ /* not lifted */ 11411 RECOMP_FLAGS_IN(); 11412 /* test eax, eax */ /* 0x36155D55: test eax, eax */ 11413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11414 _cf = 0; 11415 _flag_k = FK_TEST; 11416 MEM32(ebp + (-0x14)) = eax; /* 0x36155D57: mov dword ptr [ebp - 0x14], eax */ 11417 if (TEST_NZ(_flag_a, _flag_b)) goto L_36155D60; /* 0x36155D5A: jne 0x36155d60 */ 11418 L_36155D5C: 11419 esp = ebp; /* 0x36155D5C: mov esp, ebp */ 11420 ebp = POP32_VAL(esp); /* 0x36155D5E: pop ebp */ 11421 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155D5F: ret */ 11422 L_36155D60: 11423 eax = MEM32(eax + 0x150); /* 0x36155D60: mov eax, dword ptr [eax + 0x150] */ 11424 PUSH32(esp, ebx); /* 0x36155D66: push ebx */ 11425 ebx = MEM32(eax + 0xC); /* 0x36155D67: mov ebx, dword ptr [eax + 0xc] */ 11426 PUSH32(esp, esi); /* 0x36155D6A: push esi */ 11427 esi = MEM32(eax + 0x10); /* 0x36155D6B: mov esi, dword ptr [eax + 0x10] */ 11428 MEM32(ebp + (-0xC)) = eax; /* 0x36155D6E: mov dword ptr [ebp - 0xc], eax */ 11429 eax = MEM32(esi + 0x8); /* 0x36155D71: mov eax, dword ptr [esi + 8] */ 11430 PUSH32(esp, edi); /* 0x36155D74: push edi */ 11431 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11432 edi = 0; /* 0x36155D75: xor edi, edi */ 11433 _cf = 0; 11434 _flag_k = FK_TEST; 11435 /* test eax, eax */ /* 0x36155D77: test eax, eax */ 11436 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11437 _cf = 0; 11438 _flag_k = FK_TEST; 11439 if (TEST_LE(_flag_a, _flag_b)) goto L_36155EFF; /* 0x36155D79: jle 0x36155eff */ 11440 L_36155D7F: 11441 PUSH32(esp, edi); /* 0x36155D7F: push edi */ 11442 ecx = esi; /* 0x36155D80: mov ecx, esi */ 11443 RECOMP_ICALL(0x3602D710u); /* 0x36155D82: call 0x3602d710 */ /* not lifted */ 11444 RECOMP_FLAGS_IN(); 11445 /* test LO8(eax), LO8(eax) */ /* 0x36155D87: test al, al */ 11446 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11447 _cf = 0; 11448 _flag_k = FK_NARROW(FK_TEST, 24); 11449 if (TEST_Z(_flag_a, _flag_b)) goto L_36155E4A; /* 0x36155D89: je 0x36155e4a */ 11450 L_36155D8F: 11451 PUSH32(esp, 0x30u); /* 0x36155D8F: push 0x30 */ 11452 ecx = ebx; /* 0x36155D91: mov ecx, ebx */ 11453 RECOMP_ICALL(0x3602D210u); /* 0x36155D93: call 0x3602d210 */ /* not lifted */ 11454 RECOMP_FLAGS_IN(); 11455 /* cmp eax, 0xFFFFFFFFu */ /* 0x36155D98: cmp eax, -1 */ 11456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 11457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11458 _flag_k = FK_CMP; 11459 MEM32(ebp + (-0x4)) = eax; /* 0x36155D9B: mov dword ptr [ebp - 4], eax */ 11460 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155EFF; /* 0x36155D9E: je 0x36155eff */ 11461 L_36155DA4: 11462 PUSH32(esp, edi); /* 0x36155DA4: push edi */ 11463 ecx = esi; /* 0x36155DA5: mov ecx, esi */ 11464 RECOMP_ICALL(0x3602D330u); /* 0x36155DA7: call 0x3602d330 */ /* not lifted */ 11465 RECOMP_FLAGS_IN(); 11466 /* test eax, eax */ /* 0x36155DAC: test eax, eax */ 11467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11468 _cf = 0; 11469 _flag_k = FK_TEST; 11470 MEM32(ebp + (-0x10)) = eax; /* 0x36155DAE: mov dword ptr [ebp - 0x10], eax */ 11471 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155DB1: je 0x36155ef3 */ 11472 L_36155DB7: 11473 ecx = MEM32(ebp + (-0x8)); /* 0x36155DB7: mov ecx, dword ptr [ebp - 8] */ 11474 PUSH32(esp, eax); /* 0x36155DBA: push eax */ 11475 RECOMP_ICALL(0x36155BB0u); /* 0x36155DBB: call 0x36155bb0 */ /* not lifted */ 11476 RECOMP_FLAGS_IN(); 11477 /* test LO8(eax), LO8(eax) */ /* 0x36155DC0: test al, al */ 11478 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11479 _cf = 0; 11480 _flag_k = FK_NARROW(FK_TEST, 24); 11481 if (TEST_Z(_flag_a, _flag_b)) goto L_36155DDF; /* 0x36155DC2: je 0x36155ddf */ 11482 L_36155DC4: 11483 PUSH32(esp, edi); /* 0x36155DC4: push edi */ 11484 ecx = ebp + (-0x1C); /* 0x36155DC5: lea ecx, [ebp - 0x1c] */ 11485 PUSH32(esp, ecx); /* 0x36155DC8: push ecx */ 11486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11487 eax = 0; /* 0x36155DC9: xor eax, eax */ 11488 _cf = 0; 11489 _flag_k = FK_TEST; 11490 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155DCB: push -1 */ 11491 ecx = esi; /* 0x36155DCD: mov ecx, esi */ 11492 MEM32(ebp + (-0x1C)) = eax; /* 0x36155DCF: mov dword ptr [ebp - 0x1c], eax */ 11493 MEM32(ebp + (-0x18)) = eax; /* 0x36155DD2: mov dword ptr [ebp - 0x18], eax */ 11494 RECOMP_ICALL(0x3602D620u); /* 0x36155DD5: call 0x3602d620 */ /* not lifted */ 11495 RECOMP_FLAGS_IN(); 11496 goto L_36155EF3; /* 0x36155DDA: jmp 0x36155ef3 */ 11497 L_36155DDF: 11498 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11499 eax = 0; /* 0x36155DDF: xor eax, eax */ 11500 _cf = 0; 11501 _flag_k = FK_TEST; 11502 PUSH32(esp, 1); /* 0x36155DE1: push 1 */ 11503 PUSH32(esp, edi); /* 0x36155DE3: push edi */ 11504 ecx = esi; /* 0x36155DE4: mov ecx, esi */ 11505 MEM32(ebp + (-0x24)) = eax; /* 0x36155DE6: mov dword ptr [ebp - 0x24], eax */ 11506 MEM32(ebp + (-0x20)) = eax; /* 0x36155DE9: mov dword ptr [ebp - 0x20], eax */ 11507 RECOMP_ICALL(0x3602D600u); /* 0x36155DEC: call 0x3602d600 */ /* not lifted */ 11508 RECOMP_FLAGS_IN(); 11509 edx = MEM32(ebp + (-0x4)); /* 0x36155DF1: mov edx, dword ptr [ebp - 4] */ 11510 PUSH32(esp, eax); /* 0x36155DF4: push eax */ 11511 PUSH32(esp, edx); /* 0x36155DF5: push edx */ 11512 eax = ebp + (-0x24); /* 0x36155DF6: lea eax, [ebp - 0x24] */ 11513 PUSH32(esp, eax); /* 0x36155DF9: push eax */ 11514 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155DFA: push -1 */ 11515 ecx = ebx; /* 0x36155DFC: mov ecx, ebx */ 11516 RECOMP_ICALL(0x3602D580u); /* 0x36155DFE: call 0x3602d580 */ /* not lifted */ 11517 RECOMP_FLAGS_IN(); 11518 PUSH32(esp, edi); /* 0x36155E03: push edi */ 11519 ecx = esi; /* 0x36155E04: mov ecx, esi */ 11520 RECOMP_ICALL(0x3602D2C0u); /* 0x36155E06: call 0x3602d2c0 */ /* not lifted */ 11521 RECOMP_FLAGS_IN(); 11522 ecx = MEM32(ebp + (-0x4)); /* 0x36155E0B: mov ecx, dword ptr [ebp - 4] */ 11523 PUSH32(esp, eax); /* 0x36155E0E: push eax */ 11524 PUSH32(esp, ecx); /* 0x36155E0F: push ecx */ 11525 ecx = ebx; /* 0x36155E10: mov ecx, ebx */ 11526 RECOMP_ICALL(0x3602D2F0u); /* 0x36155E12: call 0x3602d2f0 */ /* not lifted */ 11527 RECOMP_FLAGS_IN(); 11528 PUSH32(esp, edi); /* 0x36155E17: push edi */ 11529 edx = ebp + (-0x2C); /* 0x36155E18: lea edx, [ebp - 0x2c] */ 11530 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11531 eax = 0; /* 0x36155E1B: xor eax, eax */ 11532 _cf = 0; 11533 _flag_k = FK_TEST; 11534 PUSH32(esp, edx); /* 0x36155E1D: push edx */ 11535 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155E1E: push -1 */ 11536 ecx = esi; /* 0x36155E20: mov ecx, esi */ 11537 MEM32(ebp + (-0x2C)) = eax; /* 0x36155E22: mov dword ptr [ebp - 0x2c], eax */ 11538 MEM32(ebp + (-0x28)) = eax; /* 0x36155E25: mov dword ptr [ebp - 0x28], eax */ 11539 RECOMP_ICALL(0x3602D620u); /* 0x36155E28: call 0x3602d620 */ /* not lifted */ 11540 RECOMP_FLAGS_IN(); 11541 eax = MEM32(ebp + (-0x4)); /* 0x36155E2D: mov eax, dword ptr [ebp - 4] */ 11542 PUSH32(esp, eax); /* 0x36155E30: push eax */ 11543 ecx = ebx; /* 0x36155E31: mov ecx, ebx */ 11544 RECOMP_ICALL(0x3602D2C0u); /* 0x36155E33: call 0x3602d2c0 */ /* not lifted */ 11545 RECOMP_FLAGS_IN(); 11546 ecx = MEM32(ebp + (-0x10)); /* 0x36155E38: mov ecx, dword ptr [ebp - 0x10] */ 11547 PUSH32(esp, eax); /* 0x36155E3B: push eax */ 11548 PUSH32(esp, ecx); /* 0x36155E3C: push ecx */ 11549 ecx = MEM32(ebp + (-0xC)); /* 0x36155E3D: mov ecx, dword ptr [ebp - 0xc] */ 11550 RECOMP_ICALL(0x360626E0u); /* 0x36155E40: call 0x360626e0 */ /* not lifted */ 11551 RECOMP_FLAGS_IN(); 11552 goto L_36155EF3; /* 0x36155E45: jmp 0x36155ef3 */ 11553 L_36155E4A: 11554 PUSH32(esp, edi); /* 0x36155E4A: push edi */ 11555 ecx = esi; /* 0x36155E4B: mov ecx, esi */ 11556 RECOMP_ICALL(0x3602D7B0u); /* 0x36155E4D: call 0x3602d7b0 */ /* not lifted */ 11557 RECOMP_FLAGS_IN(); 11558 /* test LO8(eax), LO8(eax) */ /* 0x36155E52: test al, al */ 11559 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11560 _cf = 0; 11561 _flag_k = FK_NARROW(FK_TEST, 24); 11562 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155E54: je 0x36155ef3 */ 11563 L_36155E5A: 11564 PUSH32(esp, 0x30u); /* 0x36155E5A: push 0x30 */ 11565 ecx = ebx; /* 0x36155E5C: mov ecx, ebx */ 11566 RECOMP_ICALL(0x3602D210u); /* 0x36155E5E: call 0x3602d210 */ /* not lifted */ 11567 RECOMP_FLAGS_IN(); 11568 /* cmp eax, 0xFFFFFFFFu */ /* 0x36155E63: cmp eax, -1 */ 11569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 11570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11571 _flag_k = FK_CMP; 11572 MEM32(ebp + (-0x4)) = eax; /* 0x36155E66: mov dword ptr [ebp - 4], eax */ 11573 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155EFF; /* 0x36155E69: je 0x36155eff */ 11574 L_36155E6F: 11575 PUSH32(esp, edi); /* 0x36155E6F: push edi */ 11576 ecx = esi; /* 0x36155E70: mov ecx, esi */ 11577 RECOMP_ICALL(0x3602D980u); /* 0x36155E72: call 0x3602d980 */ /* not lifted */ 11578 RECOMP_FLAGS_IN(); 11579 /* test eax, eax */ /* 0x36155E77: test eax, eax */ 11580 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11581 _cf = 0; 11582 _flag_k = FK_TEST; 11583 MEM32(ebp + (-0x10)) = eax; /* 0x36155E79: mov dword ptr [ebp - 0x10], eax */ 11584 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155E7C: je 0x36155ef3 */ 11585 L_36155E7E: 11586 ecx = MEM32(ebp + (-0x8)); /* 0x36155E7E: mov ecx, dword ptr [ebp - 8] */ 11587 PUSH32(esp, eax); /* 0x36155E81: push eax */ 11588 RECOMP_ICALL(0x36155C90u); /* 0x36155E82: call 0x36155c90 */ /* not lifted */ 11589 RECOMP_FLAGS_IN(); 11590 /* test LO8(eax), LO8(eax) */ /* 0x36155E87: test al, al */ 11591 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11592 _cf = 0; 11593 _flag_k = FK_NARROW(FK_TEST, 24); 11594 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EA3; /* 0x36155E89: je 0x36155ea3 */ 11595 L_36155E8B: 11596 PUSH32(esp, edi); /* 0x36155E8B: push edi */ 11597 edx = ebp + (-0x34); /* 0x36155E8C: lea edx, [ebp - 0x34] */ 11598 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11599 eax = 0; /* 0x36155E8F: xor eax, eax */ 11600 _cf = 0; 11601 _flag_k = FK_TEST; 11602 PUSH32(esp, edx); /* 0x36155E91: push edx */ 11603 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155E92: push -1 */ 11604 ecx = esi; /* 0x36155E94: mov ecx, esi */ 11605 MEM32(ebp + (-0x34)) = eax; /* 0x36155E96: mov dword ptr [ebp - 0x34], eax */ 11606 MEM32(ebp + (-0x30)) = eax; /* 0x36155E99: mov dword ptr [ebp - 0x30], eax */ 11607 RECOMP_ICALL(0x3602D940u); /* 0x36155E9C: call 0x3602d940 */ /* not lifted */ 11608 RECOMP_FLAGS_IN(); 11609 goto L_36155EF3; /* 0x36155EA1: jmp 0x36155ef3 */ 11610 L_36155EA3: 11611 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11612 eax = 0; /* 0x36155EA3: xor eax, eax */ 11613 _cf = 0; 11614 _flag_k = FK_TEST; 11615 PUSH32(esp, edi); /* 0x36155EA5: push edi */ 11616 ecx = esi; /* 0x36155EA6: mov ecx, esi */ 11617 MEM32(ebp + (-0x3C)) = eax; /* 0x36155EA8: mov dword ptr [ebp - 0x3c], eax */ 11618 MEM32(ebp + (-0x38)) = eax; /* 0x36155EAB: mov dword ptr [ebp - 0x38], eax */ 11619 RECOMP_ICALL(0x3602DAB0u); /* 0x36155EAE: call 0x3602dab0 */ /* not lifted */ 11620 RECOMP_FLAGS_IN(); 11621 PUSH32(esp, eax); /* 0x36155EB3: push eax */ 11622 eax = MEM32(ebp + (-0x4)); /* 0x36155EB4: mov eax, dword ptr [ebp - 4] */ 11623 PUSH32(esp, eax); /* 0x36155EB7: push eax */ 11624 ecx = ebp + (-0x3C); /* 0x36155EB8: lea ecx, [ebp - 0x3c] */ 11625 PUSH32(esp, ecx); /* 0x36155EBB: push ecx */ 11626 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155EBC: push -1 */ 11627 ecx = ebx; /* 0x36155EBE: mov ecx, ebx */ 11628 RECOMP_ICALL(0x3602D7E0u); /* 0x36155EC0: call 0x3602d7e0 */ /* not lifted */ 11629 RECOMP_FLAGS_IN(); 11630 PUSH32(esp, edi); /* 0x36155EC5: push edi */ 11631 edx = ebp + (-0x44); /* 0x36155EC6: lea edx, [ebp - 0x44] */ 11632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11633 eax = 0; /* 0x36155EC9: xor eax, eax */ 11634 _cf = 0; 11635 _flag_k = FK_TEST; 11636 PUSH32(esp, edx); /* 0x36155ECB: push edx */ 11637 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155ECC: push -1 */ 11638 ecx = esi; /* 0x36155ECE: mov ecx, esi */ 11639 MEM32(ebp + (-0x44)) = eax; /* 0x36155ED0: mov dword ptr [ebp - 0x44], eax */ 11640 MEM32(ebp + (-0x40)) = eax; /* 0x36155ED3: mov dword ptr [ebp - 0x40], eax */ 11641 RECOMP_ICALL(0x3602D940u); /* 0x36155ED6: call 0x3602d940 */ /* not lifted */ 11642 RECOMP_FLAGS_IN(); 11643 eax = MEM32(ebp + (-0x4)); /* 0x36155EDB: mov eax, dword ptr [ebp - 4] */ 11644 PUSH32(esp, eax); /* 0x36155EDE: push eax */ 11645 ecx = ebx; /* 0x36155EDF: mov ecx, ebx */ 11646 RECOMP_ICALL(0x3602D2C0u); /* 0x36155EE1: call 0x3602d2c0 */ /* not lifted */ 11647 RECOMP_FLAGS_IN(); 11648 ecx = MEM32(ebp + (-0x10)); /* 0x36155EE6: mov ecx, dword ptr [ebp - 0x10] */ 11649 PUSH32(esp, eax); /* 0x36155EE9: push eax */ 11650 PUSH32(esp, ecx); /* 0x36155EEA: push ecx */ 11651 ecx = MEM32(ebp + (-0xC)); /* 0x36155EEB: mov ecx, dword ptr [ebp - 0xc] */ 11652 RECOMP_ICALL(0x36062760u); /* 0x36155EEE: call 0x36062760 */ /* not lifted */ 11653 RECOMP_FLAGS_IN(); 11654 L_36155EF3: 11655 eax = MEM32(esi + 0x8); /* 0x36155EF3: mov eax, dword ptr [esi + 8] */ 11656 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11657 edi = edi + 1; /* 0x36155EF6: inc edi */ 11658 _flag_k = FK_INC; 11659 /* cmp edi, eax */ /* 0x36155EF7: cmp edi, eax */ 11660 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11662 _flag_k = FK_CMP; 11663 RECOMP_BACKEDGE(); 11664 if (CMP_L(_flag_a, _flag_b)) goto L_36155D7F; /* 0x36155EF9: jl 0x36155d7f */ 11665 L_36155EFF: 11666 PUSH32(esp, 1); /* 0x36155EFF: push 1 */ 11667 RECOMP_ICALL(0x3601C590u); /* 0x36155F01: call 0x3601c590 */ /* not lifted */ 11668 RECOMP_FLAGS_IN(); 11669 ecx = eax; /* 0x36155F06: mov ecx, eax */ 11670 RECOMP_ICALL(0x3601C880u); /* 0x36155F08: call 0x3601c880 */ /* not lifted */ 11671 RECOMP_FLAGS_IN(); 11672 ebx = MEM32(ebp + (-0x8)); /* 0x36155F0D: mov ebx, dword ptr [ebp - 8] */ 11673 eax = MEM32(ebx + 0x38); /* 0x36155F10: mov eax, dword ptr [ebx + 0x38] */ 11674 /* test eax, eax */ /* 0x36155F13: test eax, eax */ 11675 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11676 _cf = 0; 11677 _flag_k = FK_TEST; 11678 if (TEST_LE(_flag_a, _flag_b)) goto L_36155F3A; /* 0x36155F15: jle 0x36155f3a */ 11679 L_36155F17: 11680 edx = MEM32(ebp + (-0x14)); /* 0x36155F17: mov edx, dword ptr [ebp - 0x14] */ 11681 edi = MEM32(edx + 0xE4); /* 0x36155F1A: mov edi, dword ptr [edx + 0xe4] */ 11682 esi = edx + 0xE4; /* 0x36155F20: lea esi, [edx + 0xe4] */ 11683 PUSH32(esp, 2); /* 0x36155F26: push 2 */ 11684 PUSH32(esp, 0x3Du); /* 0x36155F28: push 0x3d */ 11685 ecx = esi; /* 0x36155F2A: mov ecx, esi */ 11686 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36155F2C: call dword ptr [edi + 4] */ 11687 RECOMP_FLAGS_IN(); 11688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x38)); 11689 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11690 eax = eax + MEM32(ebx + 0x38); /* 0x36155F2F: add eax, dword ptr [ebx + 0x38] */ 11691 _flag_k = FK_ADD; 11692 PUSH32(esp, eax); /* 0x36155F32: push eax */ 11693 PUSH32(esp, 0x3Du); /* 0x36155F33: push 0x3d */ 11694 ecx = esi; /* 0x36155F35: mov ecx, esi */ 11695 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36155F37: call dword ptr [edi + 8] */ 11696 RECOMP_FLAGS_IN(); 11697 L_36155F3A: 11698 PUSH32(esp, 0xD4u); /* 0x36155F3A: push 0xd4 */ 11699 PUSH32(esp, 0x25u); /* 0x36155F3F: push 0x25 */ 11700 RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36155F41: call dword ptr [0x3616f304] */ 11701 RECOMP_FLAGS_IN(); 11702 ecx = eax; /* 0x36155F47: mov ecx, eax */ 11703 RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36155F49: call dword ptr [0x3616f2e8] */ 11704 RECOMP_FLAGS_IN(); 11705 edi = POP32_VAL(esp); /* 0x36155F4F: pop edi */ 11706 esi = POP32_VAL(esp); /* 0x36155F50: pop esi */ 11707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11708 eax = 0; /* 0x36155F51: xor eax, eax */ 11709 _cf = 0; 11710 _flag_k = FK_TEST; 11711 ebx = POP32_VAL(esp); /* 0x36155F53: pop ebx */ 11712 esp = ebp; /* 0x36155F54: mov esp, ebp */ 11713 ebp = POP32_VAL(esp); /* 0x36155F56: pop ebp */ 11714 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155F57: ret */ 11715 RECOMP_REGS_OUT(); 11716 } 11717 11718 void sub_36155D7F(void) { 11719 int _fpu_cmp = 0; 11720 uint32_t _cf = 0; 11721 int _df = 1; 11722 uint32_t _flag_k = FK_NONE; 11723 uint32_t _flag_a = 0, _flag_b = 0; 11724 uint32_t _itail_tgt = 0; 11725 RECOMP_REGS_LOCALS 11726 RECOMP_ENTER(0x36155D7Fu); 11727 11728 L_36155D7F: 11729 PUSH32(esp, edi); /* 0x36155D7F: push edi */ 11730 ecx = esi; /* 0x36155D80: mov ecx, esi */ 11731 RECOMP_ICALL(0x3602D710u); /* 0x36155D82: call 0x3602d710 */ /* not lifted */ 11732 RECOMP_FLAGS_IN(); 11733 /* test LO8(eax), LO8(eax) */ /* 0x36155D87: test al, al */ 11734 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11735 _cf = 0; 11736 _flag_k = FK_NARROW(FK_TEST, 24); 11737 if (TEST_Z(_flag_a, _flag_b)) goto L_36155E4A; /* 0x36155D89: je 0x36155e4a */ 11738 L_36155D8F: 11739 PUSH32(esp, 0x30u); /* 0x36155D8F: push 0x30 */ 11740 ecx = ebx; /* 0x36155D91: mov ecx, ebx */ 11741 RECOMP_ICALL(0x3602D210u); /* 0x36155D93: call 0x3602d210 */ /* not lifted */ 11742 RECOMP_FLAGS_IN(); 11743 /* cmp eax, 0xFFFFFFFFu */ /* 0x36155D98: cmp eax, -1 */ 11744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 11745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11746 _flag_k = FK_CMP; 11747 MEM32(ebp + (-0x4)) = eax; /* 0x36155D9B: mov dword ptr [ebp - 4], eax */ 11748 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155EFF; /* 0x36155D9E: je 0x36155eff */ 11749 L_36155DA4: 11750 PUSH32(esp, edi); /* 0x36155DA4: push edi */ 11751 ecx = esi; /* 0x36155DA5: mov ecx, esi */ 11752 RECOMP_ICALL(0x3602D330u); /* 0x36155DA7: call 0x3602d330 */ /* not lifted */ 11753 RECOMP_FLAGS_IN(); 11754 /* test eax, eax */ /* 0x36155DAC: test eax, eax */ 11755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11756 _cf = 0; 11757 _flag_k = FK_TEST; 11758 MEM32(ebp + (-0x10)) = eax; /* 0x36155DAE: mov dword ptr [ebp - 0x10], eax */ 11759 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155DB1: je 0x36155ef3 */ 11760 L_36155DB7: 11761 ecx = MEM32(ebp + (-0x8)); /* 0x36155DB7: mov ecx, dword ptr [ebp - 8] */ 11762 PUSH32(esp, eax); /* 0x36155DBA: push eax */ 11763 RECOMP_ICALL(0x36155BB0u); /* 0x36155DBB: call 0x36155bb0 */ /* not lifted */ 11764 RECOMP_FLAGS_IN(); 11765 /* test LO8(eax), LO8(eax) */ /* 0x36155DC0: test al, al */ 11766 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11767 _cf = 0; 11768 _flag_k = FK_NARROW(FK_TEST, 24); 11769 if (TEST_Z(_flag_a, _flag_b)) goto L_36155DDF; /* 0x36155DC2: je 0x36155ddf */ 11770 L_36155DC4: 11771 PUSH32(esp, edi); /* 0x36155DC4: push edi */ 11772 ecx = ebp + (-0x1C); /* 0x36155DC5: lea ecx, [ebp - 0x1c] */ 11773 PUSH32(esp, ecx); /* 0x36155DC8: push ecx */ 11774 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11775 eax = 0; /* 0x36155DC9: xor eax, eax */ 11776 _cf = 0; 11777 _flag_k = FK_TEST; 11778 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155DCB: push -1 */ 11779 ecx = esi; /* 0x36155DCD: mov ecx, esi */ 11780 MEM32(ebp + (-0x1C)) = eax; /* 0x36155DCF: mov dword ptr [ebp - 0x1c], eax */ 11781 MEM32(ebp + (-0x18)) = eax; /* 0x36155DD2: mov dword ptr [ebp - 0x18], eax */ 11782 RECOMP_ICALL(0x3602D620u); /* 0x36155DD5: call 0x3602d620 */ /* not lifted */ 11783 RECOMP_FLAGS_IN(); 11784 goto L_36155EF3; /* 0x36155DDA: jmp 0x36155ef3 */ 11785 L_36155DDF: 11786 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11787 eax = 0; /* 0x36155DDF: xor eax, eax */ 11788 _cf = 0; 11789 _flag_k = FK_TEST; 11790 PUSH32(esp, 1); /* 0x36155DE1: push 1 */ 11791 PUSH32(esp, edi); /* 0x36155DE3: push edi */ 11792 ecx = esi; /* 0x36155DE4: mov ecx, esi */ 11793 MEM32(ebp + (-0x24)) = eax; /* 0x36155DE6: mov dword ptr [ebp - 0x24], eax */ 11794 MEM32(ebp + (-0x20)) = eax; /* 0x36155DE9: mov dword ptr [ebp - 0x20], eax */ 11795 RECOMP_ICALL(0x3602D600u); /* 0x36155DEC: call 0x3602d600 */ /* not lifted */ 11796 RECOMP_FLAGS_IN(); 11797 edx = MEM32(ebp + (-0x4)); /* 0x36155DF1: mov edx, dword ptr [ebp - 4] */ 11798 PUSH32(esp, eax); /* 0x36155DF4: push eax */ 11799 PUSH32(esp, edx); /* 0x36155DF5: push edx */ 11800 eax = ebp + (-0x24); /* 0x36155DF6: lea eax, [ebp - 0x24] */ 11801 PUSH32(esp, eax); /* 0x36155DF9: push eax */ 11802 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155DFA: push -1 */ 11803 ecx = ebx; /* 0x36155DFC: mov ecx, ebx */ 11804 RECOMP_ICALL(0x3602D580u); /* 0x36155DFE: call 0x3602d580 */ /* not lifted */ 11805 RECOMP_FLAGS_IN(); 11806 PUSH32(esp, edi); /* 0x36155E03: push edi */ 11807 ecx = esi; /* 0x36155E04: mov ecx, esi */ 11808 RECOMP_ICALL(0x3602D2C0u); /* 0x36155E06: call 0x3602d2c0 */ /* not lifted */ 11809 RECOMP_FLAGS_IN(); 11810 ecx = MEM32(ebp + (-0x4)); /* 0x36155E0B: mov ecx, dword ptr [ebp - 4] */ 11811 PUSH32(esp, eax); /* 0x36155E0E: push eax */ 11812 PUSH32(esp, ecx); /* 0x36155E0F: push ecx */ 11813 ecx = ebx; /* 0x36155E10: mov ecx, ebx */ 11814 RECOMP_ICALL(0x3602D2F0u); /* 0x36155E12: call 0x3602d2f0 */ /* not lifted */ 11815 RECOMP_FLAGS_IN(); 11816 PUSH32(esp, edi); /* 0x36155E17: push edi */ 11817 edx = ebp + (-0x2C); /* 0x36155E18: lea edx, [ebp - 0x2c] */ 11818 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11819 eax = 0; /* 0x36155E1B: xor eax, eax */ 11820 _cf = 0; 11821 _flag_k = FK_TEST; 11822 PUSH32(esp, edx); /* 0x36155E1D: push edx */ 11823 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155E1E: push -1 */ 11824 ecx = esi; /* 0x36155E20: mov ecx, esi */ 11825 MEM32(ebp + (-0x2C)) = eax; /* 0x36155E22: mov dword ptr [ebp - 0x2c], eax */ 11826 MEM32(ebp + (-0x28)) = eax; /* 0x36155E25: mov dword ptr [ebp - 0x28], eax */ 11827 RECOMP_ICALL(0x3602D620u); /* 0x36155E28: call 0x3602d620 */ /* not lifted */ 11828 RECOMP_FLAGS_IN(); 11829 eax = MEM32(ebp + (-0x4)); /* 0x36155E2D: mov eax, dword ptr [ebp - 4] */ 11830 PUSH32(esp, eax); /* 0x36155E30: push eax */ 11831 ecx = ebx; /* 0x36155E31: mov ecx, ebx */ 11832 RECOMP_ICALL(0x3602D2C0u); /* 0x36155E33: call 0x3602d2c0 */ /* not lifted */ 11833 RECOMP_FLAGS_IN(); 11834 ecx = MEM32(ebp + (-0x10)); /* 0x36155E38: mov ecx, dword ptr [ebp - 0x10] */ 11835 PUSH32(esp, eax); /* 0x36155E3B: push eax */ 11836 PUSH32(esp, ecx); /* 0x36155E3C: push ecx */ 11837 ecx = MEM32(ebp + (-0xC)); /* 0x36155E3D: mov ecx, dword ptr [ebp - 0xc] */ 11838 RECOMP_ICALL(0x360626E0u); /* 0x36155E40: call 0x360626e0 */ /* not lifted */ 11839 RECOMP_FLAGS_IN(); 11840 goto L_36155EF3; /* 0x36155E45: jmp 0x36155ef3 */ 11841 L_36155E4A: 11842 PUSH32(esp, edi); /* 0x36155E4A: push edi */ 11843 ecx = esi; /* 0x36155E4B: mov ecx, esi */ 11844 RECOMP_ICALL(0x3602D7B0u); /* 0x36155E4D: call 0x3602d7b0 */ /* not lifted */ 11845 RECOMP_FLAGS_IN(); 11846 /* test LO8(eax), LO8(eax) */ /* 0x36155E52: test al, al */ 11847 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11848 _cf = 0; 11849 _flag_k = FK_NARROW(FK_TEST, 24); 11850 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155E54: je 0x36155ef3 */ 11851 L_36155E5A: 11852 PUSH32(esp, 0x30u); /* 0x36155E5A: push 0x30 */ 11853 ecx = ebx; /* 0x36155E5C: mov ecx, ebx */ 11854 RECOMP_ICALL(0x3602D210u); /* 0x36155E5E: call 0x3602d210 */ /* not lifted */ 11855 RECOMP_FLAGS_IN(); 11856 /* cmp eax, 0xFFFFFFFFu */ /* 0x36155E63: cmp eax, -1 */ 11857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 11858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11859 _flag_k = FK_CMP; 11860 MEM32(ebp + (-0x4)) = eax; /* 0x36155E66: mov dword ptr [ebp - 4], eax */ 11861 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155EFF; /* 0x36155E69: je 0x36155eff */ 11862 L_36155E6F: 11863 PUSH32(esp, edi); /* 0x36155E6F: push edi */ 11864 ecx = esi; /* 0x36155E70: mov ecx, esi */ 11865 RECOMP_ICALL(0x3602D980u); /* 0x36155E72: call 0x3602d980 */ /* not lifted */ 11866 RECOMP_FLAGS_IN(); 11867 /* test eax, eax */ /* 0x36155E77: test eax, eax */ 11868 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11869 _cf = 0; 11870 _flag_k = FK_TEST; 11871 MEM32(ebp + (-0x10)) = eax; /* 0x36155E79: mov dword ptr [ebp - 0x10], eax */ 11872 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155E7C: je 0x36155ef3 */ 11873 L_36155E7E: 11874 ecx = MEM32(ebp + (-0x8)); /* 0x36155E7E: mov ecx, dword ptr [ebp - 8] */ 11875 PUSH32(esp, eax); /* 0x36155E81: push eax */ 11876 RECOMP_ICALL(0x36155C90u); /* 0x36155E82: call 0x36155c90 */ /* not lifted */ 11877 RECOMP_FLAGS_IN(); 11878 /* test LO8(eax), LO8(eax) */ /* 0x36155E87: test al, al */ 11879 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 11880 _cf = 0; 11881 _flag_k = FK_NARROW(FK_TEST, 24); 11882 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EA3; /* 0x36155E89: je 0x36155ea3 */ 11883 L_36155E8B: 11884 PUSH32(esp, edi); /* 0x36155E8B: push edi */ 11885 edx = ebp + (-0x34); /* 0x36155E8C: lea edx, [ebp - 0x34] */ 11886 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11887 eax = 0; /* 0x36155E8F: xor eax, eax */ 11888 _cf = 0; 11889 _flag_k = FK_TEST; 11890 PUSH32(esp, edx); /* 0x36155E91: push edx */ 11891 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155E92: push -1 */ 11892 ecx = esi; /* 0x36155E94: mov ecx, esi */ 11893 MEM32(ebp + (-0x34)) = eax; /* 0x36155E96: mov dword ptr [ebp - 0x34], eax */ 11894 MEM32(ebp + (-0x30)) = eax; /* 0x36155E99: mov dword ptr [ebp - 0x30], eax */ 11895 RECOMP_ICALL(0x3602D940u); /* 0x36155E9C: call 0x3602d940 */ /* not lifted */ 11896 RECOMP_FLAGS_IN(); 11897 goto L_36155EF3; /* 0x36155EA1: jmp 0x36155ef3 */ 11898 L_36155EA3: 11899 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11900 eax = 0; /* 0x36155EA3: xor eax, eax */ 11901 _cf = 0; 11902 _flag_k = FK_TEST; 11903 PUSH32(esp, edi); /* 0x36155EA5: push edi */ 11904 ecx = esi; /* 0x36155EA6: mov ecx, esi */ 11905 MEM32(ebp + (-0x3C)) = eax; /* 0x36155EA8: mov dword ptr [ebp - 0x3c], eax */ 11906 MEM32(ebp + (-0x38)) = eax; /* 0x36155EAB: mov dword ptr [ebp - 0x38], eax */ 11907 RECOMP_ICALL(0x3602DAB0u); /* 0x36155EAE: call 0x3602dab0 */ /* not lifted */ 11908 RECOMP_FLAGS_IN(); 11909 PUSH32(esp, eax); /* 0x36155EB3: push eax */ 11910 eax = MEM32(ebp + (-0x4)); /* 0x36155EB4: mov eax, dword ptr [ebp - 4] */ 11911 PUSH32(esp, eax); /* 0x36155EB7: push eax */ 11912 ecx = ebp + (-0x3C); /* 0x36155EB8: lea ecx, [ebp - 0x3c] */ 11913 PUSH32(esp, ecx); /* 0x36155EBB: push ecx */ 11914 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155EBC: push -1 */ 11915 ecx = ebx; /* 0x36155EBE: mov ecx, ebx */ 11916 RECOMP_ICALL(0x3602D7E0u); /* 0x36155EC0: call 0x3602d7e0 */ /* not lifted */ 11917 RECOMP_FLAGS_IN(); 11918 PUSH32(esp, edi); /* 0x36155EC5: push edi */ 11919 edx = ebp + (-0x44); /* 0x36155EC6: lea edx, [ebp - 0x44] */ 11920 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11921 eax = 0; /* 0x36155EC9: xor eax, eax */ 11922 _cf = 0; 11923 _flag_k = FK_TEST; 11924 PUSH32(esp, edx); /* 0x36155ECB: push edx */ 11925 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155ECC: push -1 */ 11926 ecx = esi; /* 0x36155ECE: mov ecx, esi */ 11927 MEM32(ebp + (-0x44)) = eax; /* 0x36155ED0: mov dword ptr [ebp - 0x44], eax */ 11928 MEM32(ebp + (-0x40)) = eax; /* 0x36155ED3: mov dword ptr [ebp - 0x40], eax */ 11929 RECOMP_ICALL(0x3602D940u); /* 0x36155ED6: call 0x3602d940 */ /* not lifted */ 11930 RECOMP_FLAGS_IN(); 11931 eax = MEM32(ebp + (-0x4)); /* 0x36155EDB: mov eax, dword ptr [ebp - 4] */ 11932 PUSH32(esp, eax); /* 0x36155EDE: push eax */ 11933 ecx = ebx; /* 0x36155EDF: mov ecx, ebx */ 11934 RECOMP_ICALL(0x3602D2C0u); /* 0x36155EE1: call 0x3602d2c0 */ /* not lifted */ 11935 RECOMP_FLAGS_IN(); 11936 ecx = MEM32(ebp + (-0x10)); /* 0x36155EE6: mov ecx, dword ptr [ebp - 0x10] */ 11937 PUSH32(esp, eax); /* 0x36155EE9: push eax */ 11938 PUSH32(esp, ecx); /* 0x36155EEA: push ecx */ 11939 ecx = MEM32(ebp + (-0xC)); /* 0x36155EEB: mov ecx, dword ptr [ebp - 0xc] */ 11940 RECOMP_ICALL(0x36062760u); /* 0x36155EEE: call 0x36062760 */ /* not lifted */ 11941 RECOMP_FLAGS_IN(); 11942 L_36155EF3: 11943 eax = MEM32(esi + 0x8); /* 0x36155EF3: mov eax, dword ptr [esi + 8] */ 11944 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 11945 edi = edi + 1; /* 0x36155EF6: inc edi */ 11946 _flag_k = FK_INC; 11947 /* cmp edi, eax */ /* 0x36155EF7: cmp edi, eax */ 11948 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11949 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11950 _flag_k = FK_CMP; 11951 RECOMP_BACKEDGE(); 11952 if (CMP_L(_flag_a, _flag_b)) goto L_36155D7F; /* 0x36155EF9: jl 0x36155d7f */ 11953 L_36155EFF: 11954 PUSH32(esp, 1); /* 0x36155EFF: push 1 */ 11955 RECOMP_ICALL(0x3601C590u); /* 0x36155F01: call 0x3601c590 */ /* not lifted */ 11956 RECOMP_FLAGS_IN(); 11957 ecx = eax; /* 0x36155F06: mov ecx, eax */ 11958 RECOMP_ICALL(0x3601C880u); /* 0x36155F08: call 0x3601c880 */ /* not lifted */ 11959 RECOMP_FLAGS_IN(); 11960 ebx = MEM32(ebp + (-0x8)); /* 0x36155F0D: mov ebx, dword ptr [ebp - 8] */ 11961 eax = MEM32(ebx + 0x38); /* 0x36155F10: mov eax, dword ptr [ebx + 0x38] */ 11962 /* test eax, eax */ /* 0x36155F13: test eax, eax */ 11963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11964 _cf = 0; 11965 _flag_k = FK_TEST; 11966 if (TEST_LE(_flag_a, _flag_b)) goto L_36155F3A; /* 0x36155F15: jle 0x36155f3a */ 11967 L_36155F17: 11968 edx = MEM32(ebp + (-0x14)); /* 0x36155F17: mov edx, dword ptr [ebp - 0x14] */ 11969 edi = MEM32(edx + 0xE4); /* 0x36155F1A: mov edi, dword ptr [edx + 0xe4] */ 11970 esi = edx + 0xE4; /* 0x36155F20: lea esi, [edx + 0xe4] */ 11971 PUSH32(esp, 2); /* 0x36155F26: push 2 */ 11972 PUSH32(esp, 0x3Du); /* 0x36155F28: push 0x3d */ 11973 ecx = esi; /* 0x36155F2A: mov ecx, esi */ 11974 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36155F2C: call dword ptr [edi + 4] */ 11975 RECOMP_FLAGS_IN(); 11976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x38)); 11977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11978 eax = eax + MEM32(ebx + 0x38); /* 0x36155F2F: add eax, dword ptr [ebx + 0x38] */ 11979 _flag_k = FK_ADD; 11980 PUSH32(esp, eax); /* 0x36155F32: push eax */ 11981 PUSH32(esp, 0x3Du); /* 0x36155F33: push 0x3d */ 11982 ecx = esi; /* 0x36155F35: mov ecx, esi */ 11983 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36155F37: call dword ptr [edi + 8] */ 11984 RECOMP_FLAGS_IN(); 11985 L_36155F3A: 11986 PUSH32(esp, 0xD4u); /* 0x36155F3A: push 0xd4 */ 11987 PUSH32(esp, 0x25u); /* 0x36155F3F: push 0x25 */ 11988 RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36155F41: call dword ptr [0x3616f304] */ 11989 RECOMP_FLAGS_IN(); 11990 ecx = eax; /* 0x36155F47: mov ecx, eax */ 11991 RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36155F49: call dword ptr [0x3616f2e8] */ 11992 RECOMP_FLAGS_IN(); 11993 edi = POP32_VAL(esp); /* 0x36155F4F: pop edi */ 11994 esi = POP32_VAL(esp); /* 0x36155F50: pop esi */ 11995 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11996 eax = 0; /* 0x36155F51: xor eax, eax */ 11997 _cf = 0; 11998 _flag_k = FK_TEST; 11999 ebx = POP32_VAL(esp); /* 0x36155F53: pop ebx */ 12000 esp = ebp; /* 0x36155F54: mov esp, ebp */ 12001 ebp = POP32_VAL(esp); /* 0x36155F56: pop ebp */ 12002 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155F57: ret */ 12003 RECOMP_REGS_OUT(); 12004 } 12005 12006 void sub_36155EF3(void) { 12007 int _fpu_cmp = 0; 12008 uint32_t _cf = 0; 12009 int _df = 1; 12010 uint32_t _flag_k = FK_NONE; 12011 uint32_t _flag_a = 0, _flag_b = 0; 12012 uint32_t _itail_tgt = 0; 12013 RECOMP_REGS_LOCALS 12014 RECOMP_ENTER(0x36155EF3u); 12015 12016 goto L_36155EF3; 12017 L_36155D7F: 12018 PUSH32(esp, edi); /* 0x36155D7F: push edi */ 12019 ecx = esi; /* 0x36155D80: mov ecx, esi */ 12020 RECOMP_ICALL(0x3602D710u); /* 0x36155D82: call 0x3602d710 */ /* not lifted */ 12021 RECOMP_FLAGS_IN(); 12022 /* test LO8(eax), LO8(eax) */ /* 0x36155D87: test al, al */ 12023 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12024 _cf = 0; 12025 _flag_k = FK_NARROW(FK_TEST, 24); 12026 if (TEST_Z(_flag_a, _flag_b)) goto L_36155E4A; /* 0x36155D89: je 0x36155e4a */ 12027 L_36155D8F: 12028 PUSH32(esp, 0x30u); /* 0x36155D8F: push 0x30 */ 12029 ecx = ebx; /* 0x36155D91: mov ecx, ebx */ 12030 RECOMP_ICALL(0x3602D210u); /* 0x36155D93: call 0x3602d210 */ /* not lifted */ 12031 RECOMP_FLAGS_IN(); 12032 /* cmp eax, 0xFFFFFFFFu */ /* 0x36155D98: cmp eax, -1 */ 12033 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 12034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12035 _flag_k = FK_CMP; 12036 MEM32(ebp + (-0x4)) = eax; /* 0x36155D9B: mov dword ptr [ebp - 4], eax */ 12037 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155EFF; /* 0x36155D9E: je 0x36155eff */ 12038 L_36155DA4: 12039 PUSH32(esp, edi); /* 0x36155DA4: push edi */ 12040 ecx = esi; /* 0x36155DA5: mov ecx, esi */ 12041 RECOMP_ICALL(0x3602D330u); /* 0x36155DA7: call 0x3602d330 */ /* not lifted */ 12042 RECOMP_FLAGS_IN(); 12043 /* test eax, eax */ /* 0x36155DAC: test eax, eax */ 12044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12045 _cf = 0; 12046 _flag_k = FK_TEST; 12047 MEM32(ebp + (-0x10)) = eax; /* 0x36155DAE: mov dword ptr [ebp - 0x10], eax */ 12048 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155DB1: je 0x36155ef3 */ 12049 L_36155DB7: 12050 ecx = MEM32(ebp + (-0x8)); /* 0x36155DB7: mov ecx, dword ptr [ebp - 8] */ 12051 PUSH32(esp, eax); /* 0x36155DBA: push eax */ 12052 RECOMP_ICALL(0x36155BB0u); /* 0x36155DBB: call 0x36155bb0 */ /* not lifted */ 12053 RECOMP_FLAGS_IN(); 12054 /* test LO8(eax), LO8(eax) */ /* 0x36155DC0: test al, al */ 12055 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12056 _cf = 0; 12057 _flag_k = FK_NARROW(FK_TEST, 24); 12058 if (TEST_Z(_flag_a, _flag_b)) goto L_36155DDF; /* 0x36155DC2: je 0x36155ddf */ 12059 L_36155DC4: 12060 PUSH32(esp, edi); /* 0x36155DC4: push edi */ 12061 ecx = ebp + (-0x1C); /* 0x36155DC5: lea ecx, [ebp - 0x1c] */ 12062 PUSH32(esp, ecx); /* 0x36155DC8: push ecx */ 12063 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12064 eax = 0; /* 0x36155DC9: xor eax, eax */ 12065 _cf = 0; 12066 _flag_k = FK_TEST; 12067 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155DCB: push -1 */ 12068 ecx = esi; /* 0x36155DCD: mov ecx, esi */ 12069 MEM32(ebp + (-0x1C)) = eax; /* 0x36155DCF: mov dword ptr [ebp - 0x1c], eax */ 12070 MEM32(ebp + (-0x18)) = eax; /* 0x36155DD2: mov dword ptr [ebp - 0x18], eax */ 12071 RECOMP_ICALL(0x3602D620u); /* 0x36155DD5: call 0x3602d620 */ /* not lifted */ 12072 RECOMP_FLAGS_IN(); 12073 goto L_36155EF3; /* 0x36155DDA: jmp 0x36155ef3 */ 12074 L_36155DDF: 12075 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12076 eax = 0; /* 0x36155DDF: xor eax, eax */ 12077 _cf = 0; 12078 _flag_k = FK_TEST; 12079 PUSH32(esp, 1); /* 0x36155DE1: push 1 */ 12080 PUSH32(esp, edi); /* 0x36155DE3: push edi */ 12081 ecx = esi; /* 0x36155DE4: mov ecx, esi */ 12082 MEM32(ebp + (-0x24)) = eax; /* 0x36155DE6: mov dword ptr [ebp - 0x24], eax */ 12083 MEM32(ebp + (-0x20)) = eax; /* 0x36155DE9: mov dword ptr [ebp - 0x20], eax */ 12084 RECOMP_ICALL(0x3602D600u); /* 0x36155DEC: call 0x3602d600 */ /* not lifted */ 12085 RECOMP_FLAGS_IN(); 12086 edx = MEM32(ebp + (-0x4)); /* 0x36155DF1: mov edx, dword ptr [ebp - 4] */ 12087 PUSH32(esp, eax); /* 0x36155DF4: push eax */ 12088 PUSH32(esp, edx); /* 0x36155DF5: push edx */ 12089 eax = ebp + (-0x24); /* 0x36155DF6: lea eax, [ebp - 0x24] */ 12090 PUSH32(esp, eax); /* 0x36155DF9: push eax */ 12091 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155DFA: push -1 */ 12092 ecx = ebx; /* 0x36155DFC: mov ecx, ebx */ 12093 RECOMP_ICALL(0x3602D580u); /* 0x36155DFE: call 0x3602d580 */ /* not lifted */ 12094 RECOMP_FLAGS_IN(); 12095 PUSH32(esp, edi); /* 0x36155E03: push edi */ 12096 ecx = esi; /* 0x36155E04: mov ecx, esi */ 12097 RECOMP_ICALL(0x3602D2C0u); /* 0x36155E06: call 0x3602d2c0 */ /* not lifted */ 12098 RECOMP_FLAGS_IN(); 12099 ecx = MEM32(ebp + (-0x4)); /* 0x36155E0B: mov ecx, dword ptr [ebp - 4] */ 12100 PUSH32(esp, eax); /* 0x36155E0E: push eax */ 12101 PUSH32(esp, ecx); /* 0x36155E0F: push ecx */ 12102 ecx = ebx; /* 0x36155E10: mov ecx, ebx */ 12103 RECOMP_ICALL(0x3602D2F0u); /* 0x36155E12: call 0x3602d2f0 */ /* not lifted */ 12104 RECOMP_FLAGS_IN(); 12105 PUSH32(esp, edi); /* 0x36155E17: push edi */ 12106 edx = ebp + (-0x2C); /* 0x36155E18: lea edx, [ebp - 0x2c] */ 12107 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12108 eax = 0; /* 0x36155E1B: xor eax, eax */ 12109 _cf = 0; 12110 _flag_k = FK_TEST; 12111 PUSH32(esp, edx); /* 0x36155E1D: push edx */ 12112 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155E1E: push -1 */ 12113 ecx = esi; /* 0x36155E20: mov ecx, esi */ 12114 MEM32(ebp + (-0x2C)) = eax; /* 0x36155E22: mov dword ptr [ebp - 0x2c], eax */ 12115 MEM32(ebp + (-0x28)) = eax; /* 0x36155E25: mov dword ptr [ebp - 0x28], eax */ 12116 RECOMP_ICALL(0x3602D620u); /* 0x36155E28: call 0x3602d620 */ /* not lifted */ 12117 RECOMP_FLAGS_IN(); 12118 eax = MEM32(ebp + (-0x4)); /* 0x36155E2D: mov eax, dword ptr [ebp - 4] */ 12119 PUSH32(esp, eax); /* 0x36155E30: push eax */ 12120 ecx = ebx; /* 0x36155E31: mov ecx, ebx */ 12121 RECOMP_ICALL(0x3602D2C0u); /* 0x36155E33: call 0x3602d2c0 */ /* not lifted */ 12122 RECOMP_FLAGS_IN(); 12123 ecx = MEM32(ebp + (-0x10)); /* 0x36155E38: mov ecx, dword ptr [ebp - 0x10] */ 12124 PUSH32(esp, eax); /* 0x36155E3B: push eax */ 12125 PUSH32(esp, ecx); /* 0x36155E3C: push ecx */ 12126 ecx = MEM32(ebp + (-0xC)); /* 0x36155E3D: mov ecx, dword ptr [ebp - 0xc] */ 12127 RECOMP_ICALL(0x360626E0u); /* 0x36155E40: call 0x360626e0 */ /* not lifted */ 12128 RECOMP_FLAGS_IN(); 12129 goto L_36155EF3; /* 0x36155E45: jmp 0x36155ef3 */ 12130 L_36155E4A: 12131 PUSH32(esp, edi); /* 0x36155E4A: push edi */ 12132 ecx = esi; /* 0x36155E4B: mov ecx, esi */ 12133 RECOMP_ICALL(0x3602D7B0u); /* 0x36155E4D: call 0x3602d7b0 */ /* not lifted */ 12134 RECOMP_FLAGS_IN(); 12135 /* test LO8(eax), LO8(eax) */ /* 0x36155E52: test al, al */ 12136 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12137 _cf = 0; 12138 _flag_k = FK_NARROW(FK_TEST, 24); 12139 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155E54: je 0x36155ef3 */ 12140 L_36155E5A: 12141 PUSH32(esp, 0x30u); /* 0x36155E5A: push 0x30 */ 12142 ecx = ebx; /* 0x36155E5C: mov ecx, ebx */ 12143 RECOMP_ICALL(0x3602D210u); /* 0x36155E5E: call 0x3602d210 */ /* not lifted */ 12144 RECOMP_FLAGS_IN(); 12145 /* cmp eax, 0xFFFFFFFFu */ /* 0x36155E63: cmp eax, -1 */ 12146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 12147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12148 _flag_k = FK_CMP; 12149 MEM32(ebp + (-0x4)) = eax; /* 0x36155E66: mov dword ptr [ebp - 4], eax */ 12150 if (CMP_EQ(_flag_a, _flag_b)) goto L_36155EFF; /* 0x36155E69: je 0x36155eff */ 12151 L_36155E6F: 12152 PUSH32(esp, edi); /* 0x36155E6F: push edi */ 12153 ecx = esi; /* 0x36155E70: mov ecx, esi */ 12154 RECOMP_ICALL(0x3602D980u); /* 0x36155E72: call 0x3602d980 */ /* not lifted */ 12155 RECOMP_FLAGS_IN(); 12156 /* test eax, eax */ /* 0x36155E77: test eax, eax */ 12157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12158 _cf = 0; 12159 _flag_k = FK_TEST; 12160 MEM32(ebp + (-0x10)) = eax; /* 0x36155E79: mov dword ptr [ebp - 0x10], eax */ 12161 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EF3; /* 0x36155E7C: je 0x36155ef3 */ 12162 L_36155E7E: 12163 ecx = MEM32(ebp + (-0x8)); /* 0x36155E7E: mov ecx, dword ptr [ebp - 8] */ 12164 PUSH32(esp, eax); /* 0x36155E81: push eax */ 12165 RECOMP_ICALL(0x36155C90u); /* 0x36155E82: call 0x36155c90 */ /* not lifted */ 12166 RECOMP_FLAGS_IN(); 12167 /* test LO8(eax), LO8(eax) */ /* 0x36155E87: test al, al */ 12168 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12169 _cf = 0; 12170 _flag_k = FK_NARROW(FK_TEST, 24); 12171 if (TEST_Z(_flag_a, _flag_b)) goto L_36155EA3; /* 0x36155E89: je 0x36155ea3 */ 12172 L_36155E8B: 12173 PUSH32(esp, edi); /* 0x36155E8B: push edi */ 12174 edx = ebp + (-0x34); /* 0x36155E8C: lea edx, [ebp - 0x34] */ 12175 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12176 eax = 0; /* 0x36155E8F: xor eax, eax */ 12177 _cf = 0; 12178 _flag_k = FK_TEST; 12179 PUSH32(esp, edx); /* 0x36155E91: push edx */ 12180 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155E92: push -1 */ 12181 ecx = esi; /* 0x36155E94: mov ecx, esi */ 12182 MEM32(ebp + (-0x34)) = eax; /* 0x36155E96: mov dword ptr [ebp - 0x34], eax */ 12183 MEM32(ebp + (-0x30)) = eax; /* 0x36155E99: mov dword ptr [ebp - 0x30], eax */ 12184 RECOMP_ICALL(0x3602D940u); /* 0x36155E9C: call 0x3602d940 */ /* not lifted */ 12185 RECOMP_FLAGS_IN(); 12186 goto L_36155EF3; /* 0x36155EA1: jmp 0x36155ef3 */ 12187 L_36155EA3: 12188 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12189 eax = 0; /* 0x36155EA3: xor eax, eax */ 12190 _cf = 0; 12191 _flag_k = FK_TEST; 12192 PUSH32(esp, edi); /* 0x36155EA5: push edi */ 12193 ecx = esi; /* 0x36155EA6: mov ecx, esi */ 12194 MEM32(ebp + (-0x3C)) = eax; /* 0x36155EA8: mov dword ptr [ebp - 0x3c], eax */ 12195 MEM32(ebp + (-0x38)) = eax; /* 0x36155EAB: mov dword ptr [ebp - 0x38], eax */ 12196 RECOMP_ICALL(0x3602DAB0u); /* 0x36155EAE: call 0x3602dab0 */ /* not lifted */ 12197 RECOMP_FLAGS_IN(); 12198 PUSH32(esp, eax); /* 0x36155EB3: push eax */ 12199 eax = MEM32(ebp + (-0x4)); /* 0x36155EB4: mov eax, dword ptr [ebp - 4] */ 12200 PUSH32(esp, eax); /* 0x36155EB7: push eax */ 12201 ecx = ebp + (-0x3C); /* 0x36155EB8: lea ecx, [ebp - 0x3c] */ 12202 PUSH32(esp, ecx); /* 0x36155EBB: push ecx */ 12203 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155EBC: push -1 */ 12204 ecx = ebx; /* 0x36155EBE: mov ecx, ebx */ 12205 RECOMP_ICALL(0x3602D7E0u); /* 0x36155EC0: call 0x3602d7e0 */ /* not lifted */ 12206 RECOMP_FLAGS_IN(); 12207 PUSH32(esp, edi); /* 0x36155EC5: push edi */ 12208 edx = ebp + (-0x44); /* 0x36155EC6: lea edx, [ebp - 0x44] */ 12209 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12210 eax = 0; /* 0x36155EC9: xor eax, eax */ 12211 _cf = 0; 12212 _flag_k = FK_TEST; 12213 PUSH32(esp, edx); /* 0x36155ECB: push edx */ 12214 PUSH32(esp, 0xFFFFFFFFu); /* 0x36155ECC: push -1 */ 12215 ecx = esi; /* 0x36155ECE: mov ecx, esi */ 12216 MEM32(ebp + (-0x44)) = eax; /* 0x36155ED0: mov dword ptr [ebp - 0x44], eax */ 12217 MEM32(ebp + (-0x40)) = eax; /* 0x36155ED3: mov dword ptr [ebp - 0x40], eax */ 12218 RECOMP_ICALL(0x3602D940u); /* 0x36155ED6: call 0x3602d940 */ /* not lifted */ 12219 RECOMP_FLAGS_IN(); 12220 eax = MEM32(ebp + (-0x4)); /* 0x36155EDB: mov eax, dword ptr [ebp - 4] */ 12221 PUSH32(esp, eax); /* 0x36155EDE: push eax */ 12222 ecx = ebx; /* 0x36155EDF: mov ecx, ebx */ 12223 RECOMP_ICALL(0x3602D2C0u); /* 0x36155EE1: call 0x3602d2c0 */ /* not lifted */ 12224 RECOMP_FLAGS_IN(); 12225 ecx = MEM32(ebp + (-0x10)); /* 0x36155EE6: mov ecx, dword ptr [ebp - 0x10] */ 12226 PUSH32(esp, eax); /* 0x36155EE9: push eax */ 12227 PUSH32(esp, ecx); /* 0x36155EEA: push ecx */ 12228 ecx = MEM32(ebp + (-0xC)); /* 0x36155EEB: mov ecx, dword ptr [ebp - 0xc] */ 12229 RECOMP_ICALL(0x36062760u); /* 0x36155EEE: call 0x36062760 */ /* not lifted */ 12230 RECOMP_FLAGS_IN(); 12231 L_36155EF3: 12232 eax = MEM32(esi + 0x8); /* 0x36155EF3: mov eax, dword ptr [esi + 8] */ 12233 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 12234 edi = edi + 1; /* 0x36155EF6: inc edi */ 12235 _flag_k = FK_INC; 12236 /* cmp edi, eax */ /* 0x36155EF7: cmp edi, eax */ 12237 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12239 _flag_k = FK_CMP; 12240 RECOMP_BACKEDGE(); 12241 if (CMP_L(_flag_a, _flag_b)) goto L_36155D7F; /* 0x36155EF9: jl 0x36155d7f */ 12242 L_36155EFF: 12243 PUSH32(esp, 1); /* 0x36155EFF: push 1 */ 12244 RECOMP_ICALL(0x3601C590u); /* 0x36155F01: call 0x3601c590 */ /* not lifted */ 12245 RECOMP_FLAGS_IN(); 12246 ecx = eax; /* 0x36155F06: mov ecx, eax */ 12247 RECOMP_ICALL(0x3601C880u); /* 0x36155F08: call 0x3601c880 */ /* not lifted */ 12248 RECOMP_FLAGS_IN(); 12249 ebx = MEM32(ebp + (-0x8)); /* 0x36155F0D: mov ebx, dword ptr [ebp - 8] */ 12250 eax = MEM32(ebx + 0x38); /* 0x36155F10: mov eax, dword ptr [ebx + 0x38] */ 12251 /* test eax, eax */ /* 0x36155F13: test eax, eax */ 12252 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12253 _cf = 0; 12254 _flag_k = FK_TEST; 12255 if (TEST_LE(_flag_a, _flag_b)) goto L_36155F3A; /* 0x36155F15: jle 0x36155f3a */ 12256 L_36155F17: 12257 edx = MEM32(ebp + (-0x14)); /* 0x36155F17: mov edx, dword ptr [ebp - 0x14] */ 12258 edi = MEM32(edx + 0xE4); /* 0x36155F1A: mov edi, dword ptr [edx + 0xe4] */ 12259 esi = edx + 0xE4; /* 0x36155F20: lea esi, [edx + 0xe4] */ 12260 PUSH32(esp, 2); /* 0x36155F26: push 2 */ 12261 PUSH32(esp, 0x3Du); /* 0x36155F28: push 0x3d */ 12262 ecx = esi; /* 0x36155F2A: mov ecx, esi */ 12263 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36155F2C: call dword ptr [edi + 4] */ 12264 RECOMP_FLAGS_IN(); 12265 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x38)); 12266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12267 eax = eax + MEM32(ebx + 0x38); /* 0x36155F2F: add eax, dword ptr [ebx + 0x38] */ 12268 _flag_k = FK_ADD; 12269 PUSH32(esp, eax); /* 0x36155F32: push eax */ 12270 PUSH32(esp, 0x3Du); /* 0x36155F33: push 0x3d */ 12271 ecx = esi; /* 0x36155F35: mov ecx, esi */ 12272 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36155F37: call dword ptr [edi + 8] */ 12273 RECOMP_FLAGS_IN(); 12274 L_36155F3A: 12275 PUSH32(esp, 0xD4u); /* 0x36155F3A: push 0xd4 */ 12276 PUSH32(esp, 0x25u); /* 0x36155F3F: push 0x25 */ 12277 RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36155F41: call dword ptr [0x3616f304] */ 12278 RECOMP_FLAGS_IN(); 12279 ecx = eax; /* 0x36155F47: mov ecx, eax */ 12280 RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36155F49: call dword ptr [0x3616f2e8] */ 12281 RECOMP_FLAGS_IN(); 12282 edi = POP32_VAL(esp); /* 0x36155F4F: pop edi */ 12283 esi = POP32_VAL(esp); /* 0x36155F50: pop esi */ 12284 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12285 eax = 0; /* 0x36155F51: xor eax, eax */ 12286 _cf = 0; 12287 _flag_k = FK_TEST; 12288 ebx = POP32_VAL(esp); /* 0x36155F53: pop ebx */ 12289 esp = ebp; /* 0x36155F54: mov esp, ebp */ 12290 ebp = POP32_VAL(esp); /* 0x36155F56: pop ebp */ 12291 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155F57: ret */ 12292 RECOMP_REGS_OUT(); 12293 } 12294 12295 void sub_36155EFF(void) { 12296 int _fpu_cmp = 0; 12297 uint32_t _cf = 0; 12298 int _df = 1; 12299 uint32_t _flag_k = FK_NONE; 12300 uint32_t _flag_a = 0, _flag_b = 0; 12301 uint32_t _itail_tgt = 0; 12302 RECOMP_REGS_LOCALS 12303 RECOMP_ENTER(0x36155EFFu); 12304 12305 L_36155EFF: 12306 PUSH32(esp, 1); /* 0x36155EFF: push 1 */ 12307 RECOMP_ICALL(0x3601C590u); /* 0x36155F01: call 0x3601c590 */ /* not lifted */ 12308 RECOMP_FLAGS_IN(); 12309 ecx = eax; /* 0x36155F06: mov ecx, eax */ 12310 RECOMP_ICALL(0x3601C880u); /* 0x36155F08: call 0x3601c880 */ /* not lifted */ 12311 RECOMP_FLAGS_IN(); 12312 ebx = MEM32(ebp + (-0x8)); /* 0x36155F0D: mov ebx, dword ptr [ebp - 8] */ 12313 eax = MEM32(ebx + 0x38); /* 0x36155F10: mov eax, dword ptr [ebx + 0x38] */ 12314 /* test eax, eax */ /* 0x36155F13: test eax, eax */ 12315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12316 _cf = 0; 12317 _flag_k = FK_TEST; 12318 if (TEST_LE(_flag_a, _flag_b)) goto L_36155F3A; /* 0x36155F15: jle 0x36155f3a */ 12319 L_36155F17: 12320 edx = MEM32(ebp + (-0x14)); /* 0x36155F17: mov edx, dword ptr [ebp - 0x14] */ 12321 edi = MEM32(edx + 0xE4); /* 0x36155F1A: mov edi, dword ptr [edx + 0xe4] */ 12322 esi = edx + 0xE4; /* 0x36155F20: lea esi, [edx + 0xe4] */ 12323 PUSH32(esp, 2); /* 0x36155F26: push 2 */ 12324 PUSH32(esp, 0x3Du); /* 0x36155F28: push 0x3d */ 12325 ecx = esi; /* 0x36155F2A: mov ecx, esi */ 12326 RECOMP_ICALL(MEM32(edi + 0x4)); /* 0x36155F2C: call dword ptr [edi + 4] */ 12327 RECOMP_FLAGS_IN(); 12328 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x38)); 12329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12330 eax = eax + MEM32(ebx + 0x38); /* 0x36155F2F: add eax, dword ptr [ebx + 0x38] */ 12331 _flag_k = FK_ADD; 12332 PUSH32(esp, eax); /* 0x36155F32: push eax */ 12333 PUSH32(esp, 0x3Du); /* 0x36155F33: push 0x3d */ 12334 ecx = esi; /* 0x36155F35: mov ecx, esi */ 12335 RECOMP_ICALL(MEM32(edi + 0x8)); /* 0x36155F37: call dword ptr [edi + 8] */ 12336 RECOMP_FLAGS_IN(); 12337 L_36155F3A: 12338 PUSH32(esp, 0xD4u); /* 0x36155F3A: push 0xd4 */ 12339 PUSH32(esp, 0x25u); /* 0x36155F3F: push 0x25 */ 12340 RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36155F41: call dword ptr [0x3616f304] */ 12341 RECOMP_FLAGS_IN(); 12342 ecx = eax; /* 0x36155F47: mov ecx, eax */ 12343 RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x36155F49: call dword ptr [0x3616f2e8] */ 12344 RECOMP_FLAGS_IN(); 12345 edi = POP32_VAL(esp); /* 0x36155F4F: pop edi */ 12346 esi = POP32_VAL(esp); /* 0x36155F50: pop esi */ 12347 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12348 eax = 0; /* 0x36155F51: xor eax, eax */ 12349 _cf = 0; 12350 _flag_k = FK_TEST; 12351 ebx = POP32_VAL(esp); /* 0x36155F53: pop ebx */ 12352 esp = ebp; /* 0x36155F54: mov esp, ebp */ 12353 ebp = POP32_VAL(esp); /* 0x36155F56: pop ebp */ 12354 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36155F57: ret */ 12355 RECOMP_REGS_OUT(); 12356 } 12357 12358 void sub_36155F60(void) { 12359 int _fpu_cmp = 0; 12360 uint32_t _cf = 0; 12361 int _df = 1; 12362 uint32_t _flag_k = FK_NONE; 12363 uint32_t _flag_a = 0, _flag_b = 0; 12364 uint32_t _itail_tgt = 0; 12365 RECOMP_REGS_LOCALS 12366 RECOMP_ENTER(0x36155F60u); 12367 12368 L_36155F60: 12369 PUSH32(esp, ebp); /* 0x36155F60: push ebp */ 12370 ebp = esp; /* 0x36155F61: mov ebp, esp */ 12371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 12372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12373 esp = esp - 0x38u; /* 0x36155F63: sub esp, 0x38 */ 12374 _flag_k = FK_CMP; 12375 PUSH32(esp, ebx); /* 0x36155F66: push ebx */ 12376 ebx = MEM32(ebp + 0x8); /* 0x36155F67: mov ebx, dword ptr [ebp + 8] */ 12377 PUSH32(esp, esi); /* 0x36155F6A: push esi */ 12378 esi = ecx; /* 0x36155F6B: mov esi, ecx */ 12379 PUSH32(esp, ebx); /* 0x36155F6D: push ebx */ 12380 MEM32(ebp + (-0x20)) = esi; /* 0x36155F6E: mov dword ptr [ebp - 0x20], esi */ 12381 RECOMP_ICALL(0x36154D50u); /* 0x36155F71: call 0x36154d50 */ /* not lifted */ 12382 RECOMP_FLAGS_IN(); 12383 /* test eax, eax */ /* 0x36155F76: test eax, eax */ 12384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12385 _cf = 0; 12386 _flag_k = FK_TEST; 12387 if (TEST_NZ(_flag_a, _flag_b)) goto L_361561F6; /* 0x36155F78: jne 0x361561f6 */ 12388 L_36155F7E: 12389 PUSH32(esp, edi); /* 0x36155F7E: push edi */ 12390 edi = MEM32(0x3616FA8C); /* 0x36155F7F: mov edi, dword ptr [0x3616fa8c] */ 12391 eax = ebp + (-0x10); /* 0x36155F85: lea eax, [ebp - 0x10] */ 12392 PUSH32(esp, eax); /* 0x36155F88: push eax */ 12393 ecx = ebx; /* 0x36155F89: mov ecx, ebx */ 12394 RECOMP_ICALL(edi); /* 0x36155F8B: call edi */ 12395 RECOMP_FLAGS_IN(); 12396 eax = MEM32(ebp + (-0x10)); /* 0x36155F8D: mov eax, dword ptr [ebp - 0x10] */ 12397 /* test eax, eax */ /* 0x36155F90: test eax, eax */ 12398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12399 _cf = 0; 12400 _flag_k = FK_TEST; 12401 MEM32(ebp + (-0xC)) = 0; /* 0x36155F92: mov dword ptr [ebp - 0xc], 0 */ 12402 if (TEST_LE(_flag_a, _flag_b)) goto L_361561E0; /* 0x36155F99: jle 0x361561e0 */ 12403 L_36155F9F: 12404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 12405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12406 esi = esi + 0x28u; /* 0x36155F9F: add esi, 0x28 */ 12407 _flag_k = FK_ADD; 12408 goto L_36155FAA; /* 0x36155FA2: jmp 0x36155faa */ 12409 L_36155FA4: 12410 edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */ 12411 L_36155FAA: 12412 ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */ 12413 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12414 eax = 0; /* 0x36155FAD: xor eax, eax */ 12415 _cf = 0; 12416 _flag_k = FK_TEST; 12417 PUSH32(esp, ecx); /* 0x36155FAF: push ecx */ 12418 PUSH32(esp, ebx); /* 0x36155FB0: push ebx */ 12419 MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */ 12420 MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */ 12421 RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */ 12422 RECOMP_FLAGS_IN(); 12423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12425 esp = esp + 8; /* 0x36155FBC: add esp, 8 */ 12426 _flag_k = FK_ADD; 12427 edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */ 12428 PUSH32(esp, edx); /* 0x36155FC2: push edx */ 12429 ecx = ebx; /* 0x36155FC3: mov ecx, ebx */ 12430 RECOMP_ICALL(edi); /* 0x36155FC5: call edi */ 12431 RECOMP_FLAGS_IN(); 12432 eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */ 12433 PUSH32(esp, eax); /* 0x36155FCA: push eax */ 12434 ecx = ebx; /* 0x36155FCB: mov ecx, ebx */ 12435 RECOMP_ICALL(edi); /* 0x36155FCD: call edi */ 12436 RECOMP_FLAGS_IN(); 12437 edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */ 12438 eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */ 12439 ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */ 12440 MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */ 12441 edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */ 12442 MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */ 12443 eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */ 12444 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12446 edx = edx - eax; /* 0x36155FE4: sub edx, eax */ 12447 _flag_k = FK_CMP; 12448 MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */ 12449 ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */ 12450 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */ 12451 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12452 edx = (uint32_t)((int32_t)edx >> 4u); 12453 /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */ 12454 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12456 _flag_k = FK_CMP; 12457 MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */ 12458 edi = eax; /* 0x36155FF5: mov edi, eax */ 12459 if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */ 12460 L_36155FFD: 12461 edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */ 12462 /* test edx, edx */ /* 0x36156000: test edx, edx */ 12463 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12464 _cf = 0; 12465 _flag_k = FK_TEST; 12466 if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */ 12467 L_36156004: 12468 ecx = eax; /* 0x36156004: mov ecx, eax */ 12469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12470 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12471 ecx = ecx - edx; /* 0x36156006: sub ecx, edx */ 12472 _flag_k = FK_CMP; 12473 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */ 12474 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12475 ecx = (uint32_t)((int32_t)ecx >> 4u); 12476 /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */ 12477 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12479 _flag_k = FK_CMP; 12480 if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */ 12481 L_36156010: 12482 ecx = 1; /* 0x36156010: mov ecx, 1 */ 12483 L_36156015: 12484 /* test edx, edx */ /* 0x36156015: test edx, edx */ 12485 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12486 _cf = 0; 12487 _flag_k = FK_TEST; 12488 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */ 12489 L_36156019: 12490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12491 eax = 0; /* 0x36156019: xor eax, eax */ 12492 _cf = 0; 12493 _flag_k = FK_TEST; 12494 goto L_36156022; /* 0x3615601B: jmp 0x36156022 */ 12495 L_3615601D: 12496 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12498 eax = eax - edx; /* 0x3615601D: sub eax, edx */ 12499 _flag_k = FK_CMP; 12500 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */ 12501 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12502 eax = (uint32_t)((int32_t)eax >> 4u); 12503 L_36156022: 12504 ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */ 12505 /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */ 12506 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12507 _cf = 0; 12508 _flag_k = FK_TEST; 12509 eax = ebx; /* 0x36156027: mov eax, ebx */ 12510 if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */ 12511 L_3615602B: 12512 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12513 eax = 0; /* 0x3615602B: xor eax, eax */ 12514 _cf = 0; 12515 _flag_k = FK_TEST; 12516 L_3615602D: 12517 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */ 12518 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12519 eax = eax << 4u; /* 0x3615602D: shl eax, 4 */ 12520 PUSH32(esp, eax); /* 0x36156030: push eax */ 12521 RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */ 12522 RECOMP_FLAGS_IN(); 12523 MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */ 12524 MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */ 12525 eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */ 12526 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12527 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12528 esp = esp + 4; /* 0x3615603F: add esp, 4 */ 12529 _flag_k = FK_ADD; 12530 /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */ 12531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12533 _flag_k = FK_CMP; 12534 MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */ 12535 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */ 12536 L_36156049: 12537 goto L_3615604E; /* 0x36156049: jmp 0x3615604e */ 12538 L_3615604B: 12539 eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */ 12540 L_3615604E: 12541 PUSH32(esp, eax); /* 0x3615604E: push eax */ 12542 eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */ 12543 PUSH32(esp, eax); /* 0x36156052: push eax */ 12544 RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */ 12545 RECOMP_FLAGS_IN(); 12546 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u); 12547 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12548 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */ 12549 _flag_k = FK_ADD; 12550 eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */ 12551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 12552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12553 eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */ 12554 _flag_k = FK_ADD; 12555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12557 esp = esp + 8; /* 0x36156062: add esp, 8 */ 12558 _flag_k = FK_ADD; 12559 /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */ 12560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12562 _flag_k = FK_CMP; 12563 MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */ 12564 RECOMP_BACKEDGE(); 12565 if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */ 12566 L_3615606C: 12567 edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */ 12568 ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */ 12569 PUSH32(esp, ecx); /* 0x36156072: push ecx */ 12570 PUSH32(esp, 1); /* 0x36156073: push 1 */ 12571 PUSH32(esp, edx); /* 0x36156075: push edx */ 12572 ecx = esi; /* 0x36156076: mov ecx, esi */ 12573 RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */ 12574 RECOMP_FLAGS_IN(); 12575 eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */ 12576 ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */ 12577 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 12578 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12579 eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */ 12580 _flag_k = FK_ADD; 12581 PUSH32(esp, eax); /* 0x36156086: push eax */ 12582 PUSH32(esp, ecx); /* 0x36156087: push ecx */ 12583 PUSH32(esp, edi); /* 0x36156088: push edi */ 12584 ecx = esi; /* 0x36156089: mov ecx, esi */ 12585 RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */ 12586 RECOMP_FLAGS_IN(); 12587 edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */ 12588 eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */ 12589 PUSH32(esp, edx); /* 0x36156096: push edx */ 12590 PUSH32(esp, eax); /* 0x36156097: push eax */ 12591 ecx = esi; /* 0x36156098: mov ecx, esi */ 12592 RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */ 12593 RECOMP_FLAGS_IN(); 12594 ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */ 12595 PUSH32(esp, ecx); /* 0x361560A2: push ecx */ 12596 RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */ 12597 RECOMP_FLAGS_IN(); 12598 eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */ 12599 ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */ 12600 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */ 12601 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12602 ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */ 12603 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 12604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12605 ebx = ebx + eax; /* 0x361560B1: add ebx, eax */ 12606 _flag_k = FK_ADD; 12607 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12608 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12609 esp = esp + 4; /* 0x361560B3: add esp, 4 */ 12610 _flag_k = FK_ADD; 12611 /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */ 12612 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12613 _cf = 0; 12614 _flag_k = FK_TEST; 12615 MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */ 12616 if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */ 12617 L_361560BD: 12618 ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */ 12619 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12620 edx = 0; /* 0x361560C0: xor edx, edx */ 12621 _cf = 0; 12622 _flag_k = FK_TEST; 12623 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12624 edx = edx + 1; /* 0x361560C2: inc edx */ 12625 _flag_k = FK_INC; 12626 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */ 12627 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12628 edx = edx << 4u; /* 0x361560C3: shl edx, 4 */ 12629 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12631 edx = edx + eax; /* 0x361560C6: add edx, eax */ 12632 _flag_k = FK_ADD; 12633 MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */ 12634 MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */ 12635 goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */ 12636 L_361560D3: 12637 edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */ 12638 ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */ 12639 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12641 edx = edx - ecx; /* 0x361560D9: sub edx, ecx */ 12642 _flag_k = FK_CMP; 12643 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */ 12644 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12645 edx = (uint32_t)((int32_t)edx >> 4u); 12646 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12647 edx = edx + 1; /* 0x361560DE: inc edx */ 12648 _flag_k = FK_INC; 12649 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */ 12650 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12651 edx = edx << 4u; /* 0x361560DF: shl edx, 4 */ 12652 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12654 edx = edx + eax; /* 0x361560E2: add edx, eax */ 12655 _flag_k = FK_ADD; 12656 MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */ 12657 MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */ 12658 goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */ 12659 L_361560EF: 12660 ecx = eax; /* 0x361560EF: mov ecx, eax */ 12661 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 12662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12663 ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */ 12664 _flag_k = FK_CMP; 12665 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */ 12666 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12667 ecx = (uint32_t)((int32_t)ecx >> 4u); 12668 /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */ 12669 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12671 _flag_k = FK_CMP; 12672 if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */ 12673 L_361560FB: 12674 edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */ 12675 PUSH32(esp, edx); /* 0x361560FE: push edx */ 12676 PUSH32(esp, eax); /* 0x361560FF: push eax */ 12677 PUSH32(esp, edi); /* 0x36156100: push edi */ 12678 ecx = esi; /* 0x36156101: mov ecx, esi */ 12679 RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */ 12680 RECOMP_FLAGS_IN(); 12681 eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */ 12682 edx = eax; /* 0x3615610B: mov edx, eax */ 12683 ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */ 12684 PUSH32(esp, ecx); /* 0x36156110: push ecx */ 12685 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 12686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12687 edx = edx - edi; /* 0x36156111: sub edx, edi */ 12688 _flag_k = FK_CMP; 12689 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */ 12690 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12691 edx = (uint32_t)((int32_t)edx >> 4u); 12692 ecx = 1; /* 0x36156116: mov ecx, 1 */ 12693 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12695 ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */ 12696 _flag_k = FK_CMP; 12697 PUSH32(esp, ecx); /* 0x3615611D: push ecx */ 12698 PUSH32(esp, eax); /* 0x3615611E: push eax */ 12699 ecx = esi; /* 0x3615611F: mov ecx, esi */ 12700 RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */ 12701 RECOMP_FLAGS_IN(); 12702 eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */ 12703 /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */ 12704 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12706 _flag_k = FK_CMP; 12707 if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */ 12708 L_36156131: 12709 ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */ 12710 edx = edi; /* 0x36156134: mov edx, edi */ 12711 MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */ 12712 ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */ 12713 MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */ 12714 ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */ 12715 MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */ 12716 ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */ 12717 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 12718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12719 edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */ 12720 _flag_k = FK_ADD; 12721 /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */ 12722 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12724 _flag_k = FK_CMP; 12725 MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */ 12726 RECOMP_BACKEDGE(); 12727 if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */ 12728 L_36156151: 12729 goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */ 12730 L_36156153: 12731 PUSH32(esp, eax); /* 0x36156153: push eax */ 12732 ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */ 12733 PUSH32(esp, eax); /* 0x36156157: push eax */ 12734 MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */ 12735 PUSH32(esp, ecx); /* 0x3615615B: push ecx */ 12736 ecx = esi; /* 0x3615615C: mov ecx, esi */ 12737 RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */ 12738 RECOMP_FLAGS_IN(); 12739 ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */ 12740 eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */ 12741 /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */ 12742 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12743 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12744 _flag_k = FK_CMP; 12745 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */ 12746 L_3615616D: 12747 goto L_36156172; /* 0x3615616D: jmp 0x36156172 */ 12748 L_3615616F: 12749 ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */ 12750 L_36156172: 12751 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 12752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12753 eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */ 12754 _flag_k = FK_CMP; 12755 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 12756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12757 ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */ 12758 _flag_k = FK_CMP; 12759 /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */ 12760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12762 _flag_k = FK_CMP; 12763 edx = eax; /* 0x3615617A: mov edx, eax */ 12764 ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */ 12765 MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */ 12766 MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */ 12767 ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */ 12768 MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */ 12769 ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */ 12770 MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */ 12771 edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */ 12772 MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */ 12773 RECOMP_BACKEDGE(); 12774 if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */ 12775 L_36156197: 12776 ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */ 12777 L_3615619A: 12778 eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */ 12779 /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */ 12780 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12781 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12782 _flag_k = FK_CMP; 12783 if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */ 12784 L_361561A1: 12785 edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */ 12786 ecx = edi; /* 0x361561A4: mov ecx, edi */ 12787 MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */ 12788 edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */ 12789 MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */ 12790 edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */ 12791 MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */ 12792 edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */ 12793 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 12794 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12795 edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */ 12796 _flag_k = FK_ADD; 12797 /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */ 12798 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12799 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12800 _flag_k = FK_CMP; 12801 MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */ 12802 RECOMP_BACKEDGE(); 12803 if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */ 12804 L_361561C1: 12805 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 12806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12807 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */ 12808 _flag_k = FK_ADD; 12809 L_361561C5: 12810 eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */ 12811 ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */ 12812 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12813 eax = eax + 1; /* 0x361561CB: inc eax */ 12814 _flag_k = FK_INC; 12815 /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */ 12816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12818 _flag_k = FK_CMP; 12819 MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */ 12820 RECOMP_BACKEDGE(); 12821 if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */ 12822 L_361561D7: 12823 esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */ 12824 edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */ 12825 L_361561E0: 12826 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u); 12827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12828 esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */ 12829 _flag_k = FK_ADD; 12830 PUSH32(esp, esi); /* 0x361561E3: push esi */ 12831 ecx = ebx; /* 0x361561E4: mov ecx, ebx */ 12832 RECOMP_ICALL(edi); /* 0x361561E6: call edi */ 12833 RECOMP_FLAGS_IN(); 12834 ecx = ebx; /* 0x361561E8: mov ecx, ebx */ 12835 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */ 12836 RECOMP_FLAGS_IN(); 12837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 12838 _cf = (eax) != 0; 12839 eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */ 12840 _flag_k = FK_CMP; 12841 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */ 12842 eax = _sc ? 0xFFFFFFFFu : 0; 12843 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 12844 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 12845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 12846 eax = eax + 1; /* 0x361561F4: inc eax */ 12847 _flag_k = FK_INC; 12848 edi = POP32_VAL(esp); /* 0x361561F5: pop edi */ 12849 L_361561F6: 12850 esi = POP32_VAL(esp); /* 0x361561F6: pop esi */ 12851 ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */ 12852 esp = ebp; /* 0x361561F8: mov esp, ebp */ 12853 ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */ 12854 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */ 12855 RECOMP_REGS_OUT(); 12856 } 12857 12858 void sub_36155FA4(void) { 12859 int _fpu_cmp = 0; 12860 uint32_t _cf = 0; 12861 int _df = 1; 12862 uint32_t _flag_k = FK_NONE; 12863 uint32_t _flag_a = 0, _flag_b = 0; 12864 uint32_t _itail_tgt = 0; 12865 RECOMP_REGS_LOCALS 12866 RECOMP_ENTER(0x36155FA4u); 12867 12868 L_36155FA4: 12869 edi = MEM32(0x3616FA8C); /* 0x36155FA4: mov edi, dword ptr [0x3616fa8c] */ 12870 ecx = ebp + (-0x28); /* 0x36155FAA: lea ecx, [ebp - 0x28] */ 12871 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12872 eax = 0; /* 0x36155FAD: xor eax, eax */ 12873 _cf = 0; 12874 _flag_k = FK_TEST; 12875 PUSH32(esp, ecx); /* 0x36155FAF: push ecx */ 12876 PUSH32(esp, ebx); /* 0x36155FB0: push ebx */ 12877 MEM32(ebp + (-0x28)) = eax; /* 0x36155FB1: mov dword ptr [ebp - 0x28], eax */ 12878 MEM32(ebp + (-0x24)) = eax; /* 0x36155FB4: mov dword ptr [ebp - 0x24], eax */ 12879 RECOMP_ICALL(0x3615B870u); /* 0x36155FB7: call 0x3615b870 */ /* not lifted */ 12880 RECOMP_FLAGS_IN(); 12881 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12882 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12883 esp = esp + 8; /* 0x36155FBC: add esp, 8 */ 12884 _flag_k = FK_ADD; 12885 edx = ebp + (-0x14); /* 0x36155FBF: lea edx, [ebp - 0x14] */ 12886 PUSH32(esp, edx); /* 0x36155FC2: push edx */ 12887 ecx = ebx; /* 0x36155FC3: mov ecx, ebx */ 12888 RECOMP_ICALL(edi); /* 0x36155FC5: call edi */ 12889 RECOMP_FLAGS_IN(); 12890 eax = ebp + (-0x18); /* 0x36155FC7: lea eax, [ebp - 0x18] */ 12891 PUSH32(esp, eax); /* 0x36155FCA: push eax */ 12892 ecx = ebx; /* 0x36155FCB: mov ecx, ebx */ 12893 RECOMP_ICALL(edi); /* 0x36155FCD: call edi */ 12894 RECOMP_FLAGS_IN(); 12895 edx = MEM32(ebp + (-0x24)); /* 0x36155FCF: mov edx, dword ptr [ebp - 0x24] */ 12896 eax = MEM32(ebp + (-0x14)); /* 0x36155FD2: mov eax, dword ptr [ebp - 0x14] */ 12897 ecx = MEM32(ebp + (-0x28)); /* 0x36155FD5: mov ecx, dword ptr [ebp - 0x28] */ 12898 MEM32(ebp + (-0x34)) = edx; /* 0x36155FD8: mov dword ptr [ebp - 0x34], edx */ 12899 edx = MEM32(esi + 0xC); /* 0x36155FDB: mov edx, dword ptr [esi + 0xc] */ 12900 MEM32(ebp + (-0x30)) = eax; /* 0x36155FDE: mov dword ptr [ebp - 0x30], eax */ 12901 eax = MEM32(esi + 0x8); /* 0x36155FE1: mov eax, dword ptr [esi + 8] */ 12902 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 12903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12904 edx = edx - eax; /* 0x36155FE4: sub edx, eax */ 12905 _flag_k = FK_CMP; 12906 MEM32(ebp + (-0x38)) = ecx; /* 0x36155FE6: mov dword ptr [ebp - 0x38], ecx */ 12907 ecx = MEM32(ebp + (-0x18)); /* 0x36155FE9: mov ecx, dword ptr [ebp - 0x18] */ 12908 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36155FEC: sar edx, 4 */ 12909 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12910 edx = (uint32_t)((int32_t)edx >> 4u); 12911 /* cmp edx, 1 */ /* 0x36155FEF: cmp edx, 1 */ 12912 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12914 _flag_k = FK_CMP; 12915 MEM32(ebp + (-0x2C)) = ecx; /* 0x36155FF2: mov dword ptr [ebp - 0x2c], ecx */ 12916 edi = eax; /* 0x36155FF5: mov edi, eax */ 12917 if (CMP_AE(_flag_a, _flag_b)) goto L_361560EF; /* 0x36155FF7: jae 0x361560ef */ 12918 L_36155FFD: 12919 edx = MEM32(esi + 0x4); /* 0x36155FFD: mov edx, dword ptr [esi + 4] */ 12920 /* test edx, edx */ /* 0x36156000: test edx, edx */ 12921 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12922 _cf = 0; 12923 _flag_k = FK_TEST; 12924 if (TEST_Z(_flag_a, _flag_b)) goto L_36156010; /* 0x36156002: je 0x36156010 */ 12925 L_36156004: 12926 ecx = eax; /* 0x36156004: mov ecx, eax */ 12927 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 12928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12929 ecx = ecx - edx; /* 0x36156006: sub ecx, edx */ 12930 _flag_k = FK_CMP; 12931 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36156008: sar ecx, 4 */ 12932 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12933 ecx = (uint32_t)((int32_t)ecx >> 4u); 12934 /* cmp ecx, 1 */ /* 0x3615600B: cmp ecx, 1 */ 12935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12937 _flag_k = FK_CMP; 12938 if (CMP_A(_flag_a, _flag_b)) goto L_36156015; /* 0x3615600E: ja 0x36156015 */ 12939 L_36156010: 12940 ecx = 1; /* 0x36156010: mov ecx, 1 */ 12941 L_36156015: 12942 /* test edx, edx */ /* 0x36156015: test edx, edx */ 12943 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 12944 _cf = 0; 12945 _flag_k = FK_TEST; 12946 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615601D; /* 0x36156017: jne 0x3615601d */ 12947 L_36156019: 12948 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12949 eax = 0; /* 0x36156019: xor eax, eax */ 12950 _cf = 0; 12951 _flag_k = FK_TEST; 12952 goto L_36156022; /* 0x3615601B: jmp 0x36156022 */ 12953 L_3615601D: 12954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12956 eax = eax - edx; /* 0x3615601D: sub eax, edx */ 12957 _flag_k = FK_CMP; 12958 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x3615601F: sar eax, 4 */ 12959 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12960 eax = (uint32_t)((int32_t)eax >> 4u); 12961 L_36156022: 12962 ebx = eax + ecx; /* 0x36156022: lea ebx, [eax + ecx] */ 12963 /* test ebx, ebx */ /* 0x36156025: test ebx, ebx */ 12964 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12965 _cf = 0; 12966 _flag_k = FK_TEST; 12967 eax = ebx; /* 0x36156027: mov eax, ebx */ 12968 if (TEST_NS(_flag_a, _flag_b)) goto L_3615602D; /* 0x36156029: jge 0x3615602d */ 12969 L_3615602B: 12970 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12971 eax = 0; /* 0x3615602B: xor eax, eax */ 12972 _cf = 0; 12973 _flag_k = FK_TEST; 12974 L_3615602D: 12975 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x3615602D: shl eax, 4 */ 12976 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12977 eax = eax << 4u; /* 0x3615602D: shl eax, 4 */ 12978 PUSH32(esp, eax); /* 0x36156030: push eax */ 12979 RECOMP_ICALL(0x3615FD6Au); /* 0x36156031: call 0x3615fd6a */ /* not lifted */ 12980 RECOMP_FLAGS_IN(); 12981 MEM32(ebp + (-0x1C)) = eax; /* 0x36156036: mov dword ptr [ebp - 0x1c], eax */ 12982 MEM32(ebp + (-0x4)) = eax; /* 0x36156039: mov dword ptr [ebp - 4], eax */ 12983 eax = MEM32(esi + 0x4); /* 0x3615603C: mov eax, dword ptr [esi + 4] */ 12984 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12986 esp = esp + 4; /* 0x3615603F: add esp, 4 */ 12987 _flag_k = FK_ADD; 12988 /* cmp eax, edi */ /* 0x36156042: cmp eax, edi */ 12989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12991 _flag_k = FK_CMP; 12992 MEM32(ebp + (-0x8)) = eax; /* 0x36156044: mov dword ptr [ebp - 8], eax */ 12993 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615606C; /* 0x36156047: je 0x3615606c */ 12994 L_36156049: 12995 goto L_3615604E; /* 0x36156049: jmp 0x3615604e */ 12996 L_3615604B: 12997 eax = MEM32(ebp + (-0x8)); /* 0x3615604B: mov eax, dword ptr [ebp - 8] */ 12998 L_3615604E: 12999 PUSH32(esp, eax); /* 0x3615604E: push eax */ 13000 eax = MEM32(ebp + (-0x4)); /* 0x3615604F: mov eax, dword ptr [ebp - 4] */ 13001 PUSH32(esp, eax); /* 0x36156052: push eax */ 13002 RECOMP_ICALL(0x361562E0u); /* 0x36156053: call 0x361562e0 */ /* not lifted */ 13003 RECOMP_FLAGS_IN(); 13004 _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0x10u); 13005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13006 MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) + 0x10u; /* 0x36156058: add dword ptr [ebp - 4], 0x10 */ 13007 _flag_k = FK_ADD; 13008 eax = MEM32(ebp + (-0x8)); /* 0x3615605C: mov eax, dword ptr [ebp - 8] */ 13009 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 13010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13011 eax = eax + 0x10u; /* 0x3615605F: add eax, 0x10 */ 13012 _flag_k = FK_ADD; 13013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13015 esp = esp + 8; /* 0x36156062: add esp, 8 */ 13016 _flag_k = FK_ADD; 13017 /* cmp eax, edi */ /* 0x36156065: cmp eax, edi */ 13018 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13020 _flag_k = FK_CMP; 13021 MEM32(ebp + (-0x8)) = eax; /* 0x36156067: mov dword ptr [ebp - 8], eax */ 13022 RECOMP_BACKEDGE(); 13023 if (CMP_NE(_flag_a, _flag_b)) goto L_3615604B; /* 0x3615606A: jne 0x3615604b */ 13024 L_3615606C: 13025 edx = MEM32(ebp + (-0x4)); /* 0x3615606C: mov edx, dword ptr [ebp - 4] */ 13026 ecx = ebp + (-0x38); /* 0x3615606F: lea ecx, [ebp - 0x38] */ 13027 PUSH32(esp, ecx); /* 0x36156072: push ecx */ 13028 PUSH32(esp, 1); /* 0x36156073: push 1 */ 13029 PUSH32(esp, edx); /* 0x36156075: push edx */ 13030 ecx = esi; /* 0x36156076: mov ecx, esi */ 13031 RECOMP_ICALL(0x36029B20u); /* 0x36156078: call 0x36029b20 */ /* not lifted */ 13032 RECOMP_FLAGS_IN(); 13033 eax = MEM32(ebp + (-0x4)); /* 0x3615607D: mov eax, dword ptr [ebp - 4] */ 13034 ecx = MEM32(esi + 0x8); /* 0x36156080: mov ecx, dword ptr [esi + 8] */ 13035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 13036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13037 eax = eax + 0x10u; /* 0x36156083: add eax, 0x10 */ 13038 _flag_k = FK_ADD; 13039 PUSH32(esp, eax); /* 0x36156086: push eax */ 13040 PUSH32(esp, ecx); /* 0x36156087: push ecx */ 13041 PUSH32(esp, edi); /* 0x36156088: push edi */ 13042 ecx = esi; /* 0x36156089: mov ecx, esi */ 13043 RECOMP_ICALL(0x361562A0u); /* 0x3615608B: call 0x361562a0 */ /* not lifted */ 13044 RECOMP_FLAGS_IN(); 13045 edx = MEM32(esi + 0x8); /* 0x36156090: mov edx, dword ptr [esi + 8] */ 13046 eax = MEM32(esi + 0x4); /* 0x36156093: mov eax, dword ptr [esi + 4] */ 13047 PUSH32(esp, edx); /* 0x36156096: push edx */ 13048 PUSH32(esp, eax); /* 0x36156097: push eax */ 13049 ecx = esi; /* 0x36156098: mov ecx, esi */ 13050 RECOMP_ICALL(0x3610ED60u); /* 0x3615609A: call 0x3610ed60 */ /* not lifted */ 13051 RECOMP_FLAGS_IN(); 13052 ecx = MEM32(esi + 0x4); /* 0x3615609F: mov ecx, dword ptr [esi + 4] */ 13053 PUSH32(esp, ecx); /* 0x361560A2: push ecx */ 13054 RECOMP_ICALL(0x3615FCC4u); /* 0x361560A3: call 0x3615fcc4 */ /* not lifted */ 13055 RECOMP_FLAGS_IN(); 13056 eax = MEM32(ebp + (-0x1C)); /* 0x361560A8: mov eax, dword ptr [ebp - 0x1c] */ 13057 ecx = MEM32(esi + 0x4); /* 0x361560AB: mov ecx, dword ptr [esi + 4] */ 13058 if (4u) _cf = (((ebx) >> 28) & 1u); /* 0x361560AE: shl ebx, 4 */ 13059 if (4u) { _flag_a = recomp_flags_pack((ebx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13060 ebx = ebx << 4u; /* 0x361560AE: shl ebx, 4 */ 13061 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 13062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13063 ebx = ebx + eax; /* 0x361560B1: add ebx, eax */ 13064 _flag_k = FK_ADD; 13065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13067 esp = esp + 4; /* 0x361560B3: add esp, 4 */ 13068 _flag_k = FK_ADD; 13069 /* test ecx, ecx */ /* 0x361560B6: test ecx, ecx */ 13070 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13071 _cf = 0; 13072 _flag_k = FK_TEST; 13073 MEM32(esi + 0xC) = ebx; /* 0x361560B8: mov dword ptr [esi + 0xc], ebx */ 13074 if (TEST_NZ(_flag_a, _flag_b)) goto L_361560D3; /* 0x361560BB: jne 0x361560d3 */ 13075 L_361560BD: 13076 ebx = MEM32(ebp + 0x8); /* 0x361560BD: mov ebx, dword ptr [ebp + 8] */ 13077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13078 edx = 0; /* 0x361560C0: xor edx, edx */ 13079 _cf = 0; 13080 _flag_k = FK_TEST; 13081 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13082 edx = edx + 1; /* 0x361560C2: inc edx */ 13083 _flag_k = FK_INC; 13084 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560C3: shl edx, 4 */ 13085 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13086 edx = edx << 4u; /* 0x361560C3: shl edx, 4 */ 13087 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13089 edx = edx + eax; /* 0x361560C6: add edx, eax */ 13090 _flag_k = FK_ADD; 13091 MEM32(esi + 0x8) = edx; /* 0x361560C8: mov dword ptr [esi + 8], edx */ 13092 MEM32(esi + 0x4) = eax; /* 0x361560CB: mov dword ptr [esi + 4], eax */ 13093 goto L_361561C5; /* 0x361560CE: jmp 0x361561c5 */ 13094 L_361560D3: 13095 edx = MEM32(esi + 0x8); /* 0x361560D3: mov edx, dword ptr [esi + 8] */ 13096 ebx = MEM32(ebp + 0x8); /* 0x361560D6: mov ebx, dword ptr [ebp + 8] */ 13097 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 13098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13099 edx = edx - ecx; /* 0x361560D9: sub edx, ecx */ 13100 _flag_k = FK_CMP; 13101 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x361560DB: sar edx, 4 */ 13102 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13103 edx = (uint32_t)((int32_t)edx >> 4u); 13104 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 13105 edx = edx + 1; /* 0x361560DE: inc edx */ 13106 _flag_k = FK_INC; 13107 if (4u) _cf = (((edx) >> 28) & 1u); /* 0x361560DF: shl edx, 4 */ 13108 if (4u) { _flag_a = recomp_flags_pack((edx << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13109 edx = edx << 4u; /* 0x361560DF: shl edx, 4 */ 13110 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 13111 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13112 edx = edx + eax; /* 0x361560E2: add edx, eax */ 13113 _flag_k = FK_ADD; 13114 MEM32(esi + 0x8) = edx; /* 0x361560E4: mov dword ptr [esi + 8], edx */ 13115 MEM32(esi + 0x4) = eax; /* 0x361560E7: mov dword ptr [esi + 4], eax */ 13116 goto L_361561C5; /* 0x361560EA: jmp 0x361561c5 */ 13117 L_361560EF: 13118 ecx = eax; /* 0x361560EF: mov ecx, eax */ 13119 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 13120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13121 ecx = ecx - edi; /* 0x361560F1: sub ecx, edi */ 13122 _flag_k = FK_CMP; 13123 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x361560F3: sar ecx, 4 */ 13124 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13125 ecx = (uint32_t)((int32_t)ecx >> 4u); 13126 /* cmp ecx, 1 */ /* 0x361560F6: cmp ecx, 1 */ 13127 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13128 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13129 _flag_k = FK_CMP; 13130 if (CMP_AE(_flag_a, _flag_b)) goto L_36156153; /* 0x361560F9: jae 0x36156153 */ 13131 L_361560FB: 13132 edx = edi + 0x10; /* 0x361560FB: lea edx, [edi + 0x10] */ 13133 PUSH32(esp, edx); /* 0x361560FE: push edx */ 13134 PUSH32(esp, eax); /* 0x361560FF: push eax */ 13135 PUSH32(esp, edi); /* 0x36156100: push edi */ 13136 ecx = esi; /* 0x36156101: mov ecx, esi */ 13137 RECOMP_ICALL(0x361562A0u); /* 0x36156103: call 0x361562a0 */ /* not lifted */ 13138 RECOMP_FLAGS_IN(); 13139 eax = MEM32(esi + 0x8); /* 0x36156108: mov eax, dword ptr [esi + 8] */ 13140 edx = eax; /* 0x3615610B: mov edx, eax */ 13141 ecx = ebp + (-0x38); /* 0x3615610D: lea ecx, [ebp - 0x38] */ 13142 PUSH32(esp, ecx); /* 0x36156110: push ecx */ 13143 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 13144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13145 edx = edx - edi; /* 0x36156111: sub edx, edi */ 13146 _flag_k = FK_CMP; 13147 if (4u) _cf = (((edx) >> 3) & 1u); /* 0x36156113: sar edx, 4 */ 13148 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 13149 edx = (uint32_t)((int32_t)edx >> 4u); 13150 ecx = 1; /* 0x36156116: mov ecx, 1 */ 13151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 13152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13153 ecx = ecx - edx; /* 0x3615611B: sub ecx, edx */ 13154 _flag_k = FK_CMP; 13155 PUSH32(esp, ecx); /* 0x3615611D: push ecx */ 13156 PUSH32(esp, eax); /* 0x3615611E: push eax */ 13157 ecx = esi; /* 0x3615611F: mov ecx, esi */ 13158 RECOMP_ICALL(0x36029B20u); /* 0x36156121: call 0x36029b20 */ /* not lifted */ 13159 RECOMP_FLAGS_IN(); 13160 eax = MEM32(esi + 0x8); /* 0x36156126: mov eax, dword ptr [esi + 8] */ 13161 /* cmp edi, eax */ /* 0x36156129: cmp edi, eax */ 13162 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13164 _flag_k = FK_CMP; 13165 if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615612B: je 0x361561c1 */ 13166 L_36156131: 13167 ecx = MEM32(ebp + (-0x38)); /* 0x36156131: mov ecx, dword ptr [ebp - 0x38] */ 13168 edx = edi; /* 0x36156134: mov edx, edi */ 13169 MEM32(edx) = ecx; /* 0x36156136: mov dword ptr [edx], ecx */ 13170 ecx = MEM32(ebp + (-0x34)); /* 0x36156138: mov ecx, dword ptr [ebp - 0x34] */ 13171 MEM32(edx + 0x4) = ecx; /* 0x3615613B: mov dword ptr [edx + 4], ecx */ 13172 ecx = MEM32(ebp + (-0x30)); /* 0x3615613E: mov ecx, dword ptr [ebp - 0x30] */ 13173 MEM32(edx + 0x8) = ecx; /* 0x36156141: mov dword ptr [edx + 8], ecx */ 13174 ecx = MEM32(ebp + (-0x2C)); /* 0x36156144: mov ecx, dword ptr [ebp - 0x2c] */ 13175 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 13176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13177 edi = edi + 0x10u; /* 0x36156147: add edi, 0x10 */ 13178 _flag_k = FK_ADD; 13179 /* cmp edi, eax */ /* 0x3615614A: cmp edi, eax */ 13180 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13182 _flag_k = FK_CMP; 13183 MEM32(edx + 0xC) = ecx; /* 0x3615614C: mov dword ptr [edx + 0xc], ecx */ 13184 RECOMP_BACKEDGE(); 13185 if (CMP_NE(_flag_a, _flag_b)) goto L_36156131; /* 0x3615614F: jne 0x36156131 */ 13186 L_36156151: 13187 goto L_361561C1; /* 0x36156151: jmp 0x361561c1 */ 13188 L_36156153: 13189 PUSH32(esp, eax); /* 0x36156153: push eax */ 13190 ecx = eax + (-0x10); /* 0x36156154: lea ecx, [eax - 0x10] */ 13191 PUSH32(esp, eax); /* 0x36156157: push eax */ 13192 MEM32(ebp + (-0x1C)) = ecx; /* 0x36156158: mov dword ptr [ebp - 0x1c], ecx */ 13193 PUSH32(esp, ecx); /* 0x3615615B: push ecx */ 13194 ecx = esi; /* 0x3615615C: mov ecx, esi */ 13195 RECOMP_ICALL(0x361562A0u); /* 0x3615615E: call 0x361562a0 */ /* not lifted */ 13196 RECOMP_FLAGS_IN(); 13197 ecx = MEM32(esi + 0x8); /* 0x36156163: mov ecx, dword ptr [esi + 8] */ 13198 eax = ecx + (-0x10); /* 0x36156166: lea eax, [ecx - 0x10] */ 13199 /* cmp edi, eax */ /* 0x36156169: cmp edi, eax */ 13200 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13201 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13202 _flag_k = FK_CMP; 13203 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615619A; /* 0x3615616B: je 0x3615619a */ 13204 L_3615616D: 13205 goto L_36156172; /* 0x3615616D: jmp 0x36156172 */ 13206 L_3615616F: 13207 ecx = MEM32(ebp + (-0x1C)); /* 0x3615616F: mov ecx, dword ptr [ebp - 0x1c] */ 13208 L_36156172: 13209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 13210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13211 eax = eax - 0x10u; /* 0x36156172: sub eax, 0x10 */ 13212 _flag_k = FK_CMP; 13213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 13214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13215 ecx = ecx - 0x10u; /* 0x36156175: sub ecx, 0x10 */ 13216 _flag_k = FK_CMP; 13217 /* cmp eax, edi */ /* 0x36156178: cmp eax, edi */ 13218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13220 _flag_k = FK_CMP; 13221 edx = eax; /* 0x3615617A: mov edx, eax */ 13222 ebx = MEM32(edx); /* 0x3615617C: mov ebx, dword ptr [edx] */ 13223 MEM32(ebp + (-0x1C)) = ecx; /* 0x3615617E: mov dword ptr [ebp - 0x1c], ecx */ 13224 MEM32(ecx) = ebx; /* 0x36156181: mov dword ptr [ecx], ebx */ 13225 ebx = MEM32(edx + 0x4); /* 0x36156183: mov ebx, dword ptr [edx + 4] */ 13226 MEM32(ecx + 0x4) = ebx; /* 0x36156186: mov dword ptr [ecx + 4], ebx */ 13227 ebx = MEM32(edx + 0x8); /* 0x36156189: mov ebx, dword ptr [edx + 8] */ 13228 MEM32(ecx + 0x8) = ebx; /* 0x3615618C: mov dword ptr [ecx + 8], ebx */ 13229 edx = MEM32(edx + 0xC); /* 0x3615618F: mov edx, dword ptr [edx + 0xc] */ 13230 MEM32(ecx + 0xC) = edx; /* 0x36156192: mov dword ptr [ecx + 0xc], edx */ 13231 RECOMP_BACKEDGE(); 13232 if (CMP_NE(_flag_a, _flag_b)) goto L_3615616F; /* 0x36156195: jne 0x3615616f */ 13233 L_36156197: 13234 ebx = MEM32(ebp + 0x8); /* 0x36156197: mov ebx, dword ptr [ebp + 8] */ 13235 L_3615619A: 13236 eax = edi + 0x10; /* 0x3615619A: lea eax, [edi + 0x10] */ 13237 /* cmp edi, eax */ /* 0x3615619D: cmp edi, eax */ 13238 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13240 _flag_k = FK_CMP; 13241 if (CMP_EQ(_flag_a, _flag_b)) goto L_361561C1; /* 0x3615619F: je 0x361561c1 */ 13242 L_361561A1: 13243 edx = MEM32(ebp + (-0x38)); /* 0x361561A1: mov edx, dword ptr [ebp - 0x38] */ 13244 ecx = edi; /* 0x361561A4: mov ecx, edi */ 13245 MEM32(ecx) = edx; /* 0x361561A6: mov dword ptr [ecx], edx */ 13246 edx = MEM32(ebp + (-0x34)); /* 0x361561A8: mov edx, dword ptr [ebp - 0x34] */ 13247 MEM32(ecx + 0x4) = edx; /* 0x361561AB: mov dword ptr [ecx + 4], edx */ 13248 edx = MEM32(ebp + (-0x30)); /* 0x361561AE: mov edx, dword ptr [ebp - 0x30] */ 13249 MEM32(ecx + 0x8) = edx; /* 0x361561B1: mov dword ptr [ecx + 8], edx */ 13250 edx = MEM32(ebp + (-0x2C)); /* 0x361561B4: mov edx, dword ptr [ebp - 0x2c] */ 13251 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 13252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13253 edi = edi + 0x10u; /* 0x361561B7: add edi, 0x10 */ 13254 _flag_k = FK_ADD; 13255 /* cmp edi, eax */ /* 0x361561BA: cmp edi, eax */ 13256 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13258 _flag_k = FK_CMP; 13259 MEM32(ecx + 0xC) = edx; /* 0x361561BC: mov dword ptr [ecx + 0xc], edx */ 13260 RECOMP_BACKEDGE(); 13261 if (CMP_NE(_flag_a, _flag_b)) goto L_361561A1; /* 0x361561BF: jne 0x361561a1 */ 13262 L_361561C1: 13263 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(0x10u); 13264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13265 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 0x10u; /* 0x361561C1: add dword ptr [esi + 8], 0x10 */ 13266 _flag_k = FK_ADD; 13267 L_361561C5: 13268 eax = MEM32(ebp + (-0xC)); /* 0x361561C5: mov eax, dword ptr [ebp - 0xc] */ 13269 ecx = MEM32(ebp + (-0x10)); /* 0x361561C8: mov ecx, dword ptr [ebp - 0x10] */ 13270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13271 eax = eax + 1; /* 0x361561CB: inc eax */ 13272 _flag_k = FK_INC; 13273 /* cmp eax, ecx */ /* 0x361561CC: cmp eax, ecx */ 13274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13276 _flag_k = FK_CMP; 13277 MEM32(ebp + (-0xC)) = eax; /* 0x361561CE: mov dword ptr [ebp - 0xc], eax */ 13278 RECOMP_BACKEDGE(); 13279 if (CMP_L(_flag_a, _flag_b)) goto L_36155FA4; /* 0x361561D1: jl 0x36155fa4 */ 13280 L_361561D7: 13281 esi = MEM32(ebp + (-0x20)); /* 0x361561D7: mov esi, dword ptr [ebp - 0x20] */ 13282 edi = MEM32(0x3616FA8C); /* 0x361561DA: mov edi, dword ptr [0x3616fa8c] */ 13283 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x38u); 13284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13285 esi = esi + 0x38u; /* 0x361561E0: add esi, 0x38 */ 13286 _flag_k = FK_ADD; 13287 PUSH32(esp, esi); /* 0x361561E3: push esi */ 13288 ecx = ebx; /* 0x361561E4: mov ecx, ebx */ 13289 RECOMP_ICALL(edi); /* 0x361561E6: call edi */ 13290 RECOMP_FLAGS_IN(); 13291 ecx = ebx; /* 0x361561E8: mov ecx, ebx */ 13292 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x361561EA: call dword ptr [0x3616fadc] */ 13293 RECOMP_FLAGS_IN(); 13294 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 13295 _cf = (eax) != 0; 13296 eax = (uint32_t)(-(int32_t)eax); /* 0x361561F0: neg eax */ 13297 _flag_k = FK_CMP; 13298 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x361561F2: sbb eax, eax */ 13299 eax = _sc ? 0xFFFFFFFFu : 0; 13300 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 13301 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 13302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 13303 eax = eax + 1; /* 0x361561F4: inc eax */ 13304 _flag_k = FK_INC; 13305 edi = POP32_VAL(esp); /* 0x361561F5: pop edi */ 13306 esi = POP32_VAL(esp); /* 0x361561F6: pop esi */ 13307 ebx = POP32_VAL(esp); /* 0x361561F7: pop ebx */ 13308 esp = ebp; /* 0x361561F8: mov esp, ebp */ 13309 ebp = POP32_VAL(esp); /* 0x361561FA: pop ebp */ 13310 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x361561FB: ret 4 */ 13311 RECOMP_REGS_OUT(); 13312 }